:root {
  --ink: #11243A;
  --body: #2E3844;
  --muted: #6B7480;
  --teal: #127C71;
  --teal-deep: #0E665C;
  --page: #F7F8F6;
  --card: #FFFFFF;
  --line: #E6E9E4;
  --field: #D9DDD6;
  --good: #2E7D32; --good-soft: #E6F2E7; --good-ink: #1E5B22;
  --marg: #B5710C; --marg-soft: #FBEFDC; --marg-ink: #7A4A06;
  --poor: #B23B3B; --poor-soft: #F6E1E1; --poor-ink: #8A2626;
  --night: #C9CEC6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--body);
  font: 400 16px/1.5 Inter, system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}
button, input { font: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; display: flex; flex-direction: column; gap: 16px; }
.top { display: flex; align-items: baseline; justify-content: space-between; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.wordmark { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 500; color: var(--ink); }
.product { color: var(--muted); font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.muted { color: var(--muted); }

.query { padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; align-items: end; }
.query label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.query input { height: 44px; border: 1px solid var(--field); border-radius: 8px; padding: 0 12px; color: var(--ink); background: #fff; width: 100%; text-transform: uppercase; }
.query input[type=date] { text-transform: none; }
.query input:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.primary { height: 44px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font-weight: 500; padding: 0 20px; cursor: pointer; }
.primary:hover:not(:disabled) { background: var(--teal-deep); }
.primary:disabled { background: #C5CBC2; color: #fff; cursor: not-allowed; }
.secondary { height: 40px; border: 1px solid var(--field); background: #fff; color: var(--ink); border-radius: 8px; padding: 0 14px; cursor: pointer; }
.secondary[aria-expanded=true] { background: var(--ink); color: #fff; border-color: var(--ink); }

.error { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--poor-soft); color: var(--poor-ink); }

.result { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.pill { font-size: 13px; font-weight: 500; border-radius: 999px; padding: 3px 10px; }
.pill.good { background: var(--good-soft); color: var(--good-ink); }
.pill.marginal { background: var(--marg-soft); color: var(--marg-ink); }
.pill.poor { background: var(--poor-soft); color: var(--poor-ink); }
h1 { margin: -8px 0 0; font-size: 24px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.detail { margin: -10px 0 0; }

.hours { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.hours button { flex: 0 0 auto; min-width: 54px; height: 52px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 14px; }
.hours button i { display: block; width: 26px; height: 5px; border-radius: 3px; }
.hours button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }

.ribbon { list-style: none; margin: 0; padding: 0; }
.ribbon li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 14px; }
.rail { display: flex; flex-direction: column; align-items: center; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; margin-top: 3px; flex: none; }
.seg { width: 6px; flex: 1; min-height: 46px; border-radius: 3px; margin: 4px 0; }
.ribbon li:last-child .seg { display: none; }
.place { display: flex; flex-direction: column; gap: 1px; padding-bottom: 20px; min-width: 0; }
.place b { font-weight: 500; color: var(--ink); }
.place span { font-size: 13px; color: var(--muted); }
.badge { font-size: 14px; font-weight: 500; border-radius: 999px; padding: 3px 10px; align-self: start; white-space: nowrap; }

.detail-row { display: flex; }
.profile { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.profile-grid { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; }
.yaxis { position: relative; height: 260px; font-size: 12px; color: var(--muted); }
.yaxis span { position: absolute; right: 0; transform: translateY(-50%); }
#svg { display: block; width: 100%; height: 260px; background: #F3F6F9; border-radius: 6px; }
.xaxis { position: relative; height: 22px; font-size: 12px; color: var(--ink); margin-top: 6px; }
.xaxis span { position: absolute; white-space: nowrap; transform: translateX(-50%); }
.xaxis span:first-child { transform: none; }
.xaxis span:last-child { transform: translateX(-100%); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 10px; }
.sw.cloud { background: #BCC4CE; border-top: 2px solid var(--ink); }
.sw.ground { background: #D3E0CF; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-size: 17px; color: var(--ink); }
.actions { display: flex; }

.foot { font-size: 12px; line-height: 1.6; color: var(--muted); }
.pnote { margin: 0; font-size: 14px; color: var(--muted); }

.notes { margin: -10px 0 0; font-size: 14px; color: var(--marg-ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: -4px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; margin-bottom: -1px; color: var(--muted); cursor: pointer; font-weight: 500; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--teal); }
.tabs button[hidden] { display: none; }
.panel { display: flex; flex-direction: column; gap: 18px; }
.panel[hidden] { display: none; }
.gamets { display: flex; flex-direction: column; gap: 12px; }
.gamet-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gamet-row b { font-weight: 500; color: var(--ink); min-width: 96px; }
.gamet-row a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px; color: var(--ink); text-decoration: none; }
.gamet-row a:hover { border-color: var(--teal); color: var(--teal-deep); }
.caption { margin: 0; font-size: 13px; color: var(--muted); }
.chart { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.chart img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.chart-times button { min-width: 74px; height: 44px; }
.wip { display: block; margin-bottom: 6px; color: var(--body); }

.result { transition: opacity .15s; }
.result.loading { opacity: .55; pointer-events: none; }

/* Today-only panels: no animation, video or map framework. */
.now { font-size: 14px; line-height: 1.65; }
.now p { margin: 0 0 6px; }
.now .old-report { color: #976100; font-weight: 500; }
.webcams { display: grid; gap: 24px; }
.webcam { margin: 0; }
.webcam img { display: block; width: 100%; height: auto; background: #18232c; border-radius: 6px; }
.webcam figcaption { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; font-size: 14px; }
.webcam a { color: var(--teal-deep); }
#radar-map { width: 100%; height: auto; border-radius: 6px; background: #0b1720; }
.radar-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.radar-legend [style]::before { content: ''; display: inline-block; width: 12px; height: 10px; margin-right: 4px; background: var(--swatch); }
.result.today .tabs { overflow-x: auto; }
@media (max-width: 440px) { .result.today .tabs button { padding: 10px 7px; font-size: 13px; } }
