/* Forecast recipe: a light reading page beside the marine wind map.
   Hazard colours match the map's warning lines (app.js WARN). */
:root {
  --bg: #f7f8fa; --card: #fff; --text: #1c2330; --muted: #5b6575; --rule: #dfe3ea;
  --accent: #0b5fa5;
  --gale: #fbbf24; --storm: #f97316; --hf: #f0679a;
  --gale-ink: #8a6100; --storm-ink: #b4470a; --hf-ink: #9b2fae;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.top, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 18px; }
.crumbs { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
a { color: var(--accent); }
h1 { font-size: 28px; line-height: 1.2; margin: 14px 0 8px; }
.lede { color: var(--muted); margin: 0 0 8px; }
section {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 16px 18px; margin: 16px 0;
}
h2 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 15px; margin: 0 0 4px; }
.n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
p { margin: 0 0 10px; }
b { font-variant-numeric: tabular-nums; }
.facts, .steps { margin: 0; padding-left: 20px; }
.facts li, .steps li { margin: 0 0 8px; }
.glance { border-left: 4px solid var(--accent); }
.note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.warn-list { display: grid; gap: 10px; margin: 6px 0 12px; }
.warn { border: 2px dashed; border-radius: 8px; padding: 10px 12px; }
.warn p { margin: 0; }
.warn.gale { border-color: var(--gale); } .warn.gale h3 { color: var(--gale-ink); }
.warn.storm { border-color: var(--storm); } .warn.storm h3 { color: var(--storm-ink); }
.warn.hf { border-color: var(--hf); } .warn.hf h3 { color: var(--hf-ink); }

.layers { list-style: none; margin: 0 0 10px; padding: 0; }
.layers li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; margin: 0 0 10px; }
.sw { display: block; width: 44px; height: 22px; border-radius: 4px; }
.sw-wind { background: linear-gradient(90deg, #3f74ab 0 25%, #e8d27a 25% 50%, #e06f2e 50% 75%, #b03454 75%); }
.sw-warn { border: 2px dashed var(--storm); }
.sw-poss { border: 1px solid var(--storm); }
.sw-track { height: 0; border-top: 2px dashed var(--text); border-radius: 0; }
.sw-iso { height: 0; border-top: 1px solid #9aa3b2; border-radius: 0; }

.port { width: 100%; border-collapse: collapse; font-size: 15px; }
.port th, .port td { text-align: left; vertical-align: top; padding: 8px 6px; border-top: 1px solid var(--rule); }
.port thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 13px; }
.port tbody th { width: 34%; font-weight: 600; }
.ok, .part, .no {
  display: block; width: max-content; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 4px; margin-bottom: 3px;
}
.ok { background: #dcf3e4; color: #17663a; }
.part { background: #fdf0d2; color: #7a5300; }
.no { background: #eceef2; color: #4a5260; }

.dead { columns: 2 220px; column-gap: 24px; margin: 0; padding-left: 20px; }
.dead li { margin: 0 0 6px; break-inside: avoid; }

footer { color: var(--muted); font-size: 13px; padding-bottom: 32px; }

@media (max-width: 520px) {
  h1 { font-size: 24px; }
  section { padding: 14px; border-radius: 8px; }
  .port, .port tbody, .port tr, .port th, .port td { display: block; width: auto; }
  .port thead { display: none; }
  .port tr { border-top: 1px solid var(--rule); padding: 8px 0; }
  .port th, .port td { border: 0; padding: 2px 0; }
}
