/* The quiet, wind-and-tide-first interface. Detailed tools retain styles.css. */
:root, body.dim-mode {
  color-scheme: light;
  --paper: #f6f8f7;
  --panel: #fff;
  --surface: #f4f7f6;
  --chart-bg: #fff;
  --ink: #172e31;
  --muted: #697c7c;
  --line: #e1e9e6;
  --sea: #25877a;
  --sea-deep: #17665d;
  --mint: #eaf5ef;
  --amber: #a06b21;
  --rose: #ae5442;
  --shadow: 0 16px 50px #133e3210;
}
html, body { width: 100%; min-height: 100%; height: auto; }
body { background: var(--paper); font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
body::before, body::after { content: none; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, canvas:focus-visible { outline: 3px solid #359b82; outline-offset: 4px; }
button:disabled { cursor: default; opacity: .35; }
button, a, summary { touch-action: manipulation; }
button { transition: background .15s, color .15s, border-color .15s; }
p, h1, h2, h3 { margin: 0; }
.dashboard-shell { width: min(1264px, 100%); height: auto; min-height: 100svh; padding: 0 48px 24px; margin: auto; display: block; }
.site-header { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 17px; letter-spacing: .1em; }
.brand-mark { color: var(--sea); width: 39px; height: 39px; }
.brand-subtitle { display: block; margin-top: 4px; font-size: 11px; font-weight: 450; letter-spacing: .04em; color: var(--muted); }
.wind-unit-toggle { background: #e8eeeb; border: 0; padding: 4px; gap: 3px; grid-template-columns: repeat(2, 49px); border-radius: 9px; }
.wind-unit-toggle button { border-radius: 6px; font-size: 12px; font-weight: 650; min-height: 32px; }
.wind-unit-toggle button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px #12372c12; }
.page-heading { display: flex; justify-content: space-between; align-items: end; padding: 26px 0 18px; }
.page-heading .eyebrow { font-size: 10px; font-weight: 650; color: var(--muted); letter-spacing: .16em; margin-bottom: 7px; }
.page-heading h1 { color: var(--ink); font-size: clamp(28px, 3vw, 39px); font-weight: 550; line-height: 1.1; letter-spacing: -.045em; }
.today-date { font-size: 13px; color: var(--muted); padding-bottom: 3px; }
.view-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.view-tabs { display: flex; align-items: center; gap: 26px; }
.view-tabs button { position: relative; min-height: 45px; padding: 8px 2px 15px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 550; cursor: pointer; }
.view-tabs button[aria-selected="true"] { color: var(--sea-deep); }
.view-tabs button[aria-selected="true"]::after { position: absolute; content: ""; height: 3px; bottom: -1px; left: 0; right: 0; background: var(--sea); border-radius: 3px 3px 0 0; }
.webcam-nav { border: 0; background: none; color: var(--muted); display: flex; align-items: center; gap: 7px; padding: 8px 0 15px; min-height: 44px; cursor: pointer; font-size: 13px; }
.webcam-nav svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.4; }
.view-nav button:hover { color: var(--sea-deep); }
.live-view:focus, .forecast-view:focus, .more-view:focus { outline: none; }
.conditions-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 22px #193e3003; }
.wind-panel { min-width: 0; display: flex; flex-direction: column; padding: 22px 28px 20px; background: #eef5f1; border-right: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 27px; }
.section-heading h2 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.live-badge { display: inline-flex; gap: 6px; align-items: center; color: var(--sea-deep); font-size: 10px; font-weight: 600; }
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #30896a; box-shadow: 0 0 0 3px #30896a12; }
.live-badge.is-stale { color: var(--amber); }
.live-badge.is-stale::before { background: var(--amber); box-shadow: none; }
.live-badge.is-unavailable { color: var(--muted); }
.live-badge.is-unavailable::before { background: var(--muted); box-shadow: none; }
.current-wind { display: block; width: 100%; padding: 0; margin: 16px 0 0; border: 0; border-radius: 0; background: none; color: var(--ink); box-shadow: none; text-align: left; cursor: pointer; }
.current-wind:hover { background: none; color: var(--sea-deep); }
.wind-station-name { font-size: 13px; font-weight: 500; color: var(--muted); }
.wind-value-line { display: flex; align-items: baseline; gap: 9px; margin-top: 0; white-space: nowrap; }
.current-wind #currentWindValue { color: inherit; font-size: 88px; font-weight: 450; line-height: 1.12; letter-spacing: -.085em; font-variant-numeric: tabular-nums; }
#currentWindUnit { color: var(--muted); font-size: 23px; font-weight: 400; letter-spacing: -.03em; flex-shrink: 0; }
.wind-reading-caption { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; font-weight: 400; }
.wind-harbour { width: 210px; max-width: 100%; margin: 12px auto 0; }
.wind-harbour svg { display: block; width: 100%; height: auto; border-radius: 10px; background: #f8fbf9; }
.harbour-north { fill: var(--muted); stroke: var(--muted); }
.harbour-north text { font-size: 10px; text-anchor: middle; stroke: none; }
.harbour-north path { fill: none; stroke-width: 1.5; }
.harbour-station { color: var(--sea-deep); }
.harbour-station text { fill: currentColor; font-size: 25px; font-weight: 650; letter-spacing: -1px; paint-order: stroke; stroke: #f8fbf9; stroke-width: 6px; stroke-linejoin: round; }
.harbour-wind-arrow { fill: none; stroke: currentColor; stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; }
.harbour-station-dot { fill: currentColor; }
.harbour-station.is-selected { color: #123d36; }
.harbour-station.is-stale { color: var(--amber); }
.harbour-station.is-unavailable { color: #788b80; }
.harbour-stale-mark { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 2 3; }
.harbour-caption { display: flex; justify-content: space-between; gap: 4px; margin-top: 5px; font-size: 9px; color: var(--muted); }
.harbour-caption a { color: inherit; text-decoration: none; }
.harbour-caption a:hover { text-decoration: underline; }
.wind-recent { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border-top: 1px solid #d6e3dc; padding-top: 14px; gap: 5px 20px; }
.wind-recent div { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.wind-recent span { font-size: 11px; color: var(--muted); }
.wind-recent strong { font-size: 17px; font-weight: 550; font-variant-numeric: tabular-nums; }
#windPeriod { grid-column: 1 / -1; font-size: 10px; margin-top: 4px; }
.reading-time { color: var(--muted); font-size: 10px; line-height: 1.6; font-weight: 400; margin-top: 14px; }
.wind-is-stale #currentWindValue { color: var(--amber); }
.tide-panel { background: white; padding: 25px 27px 19px; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; display: block; min-height: 0; }
.day-navigation { display: flex; align-items: center; gap: 3px; }
.icon-button, .text-button, .install-button { background: transparent; color: var(--sea-deep); border: 0; border-radius: 6px; font-size: 12px; font-weight: 550; box-shadow: none; min-height: 36px; cursor: pointer; }
.text-button, .install-button { padding: 8px 10px; }
.icon-button { width: 30px; min-width: 30px; padding: 0; font-size: 23px; line-height: 1; }
.icon-button:hover, .text-button:hover, .install-button:hover { background: var(--mint); }
.day-navigation .text-button { font-size: 11px; padding: 6px 9px; }
.tide-overview { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.tide-height-line { display: flex; align-items: center; gap: 12px; }
#currentHeight { color: var(--ink); font-size: 35px; font-weight: 450; letter-spacing: -.045em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tide-trend { font-size: 11px; color: var(--sea-deep); background: var(--mint); border-radius: 5px; padding: 5px 7px; white-space: nowrap; }
#clockLabel { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.tide-next { display: grid; gap: 3px; text-align: right; }
.tide-next > span { font-size: 10px; color: var(--muted); }
.tide-next strong { color: var(--ink); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.chart-frame { height: 243px; min-height: 0; margin-top: 22px; padding: 0; background: #fff; border: 0; border-radius: 0; position: relative; }
#tideCanvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.chart-status { margin-top: 13px; padding: 8px 10px; font-size: 11px; line-height: 1.5; background: #fbf4e8; color: #805519; border-radius: 5px; }
.chart-caption { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 10px; margin: 4px 0 20px; }
.tide-context { display: flex; gap: 7px; white-space: nowrap; }
.tide-events { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 17px 0 0; border-top: 1px solid var(--line); overflow: visible; }
.event-pill { display: grid; background: none; border: 0; border-radius: 0; padding: 0 0 0 16px; gap: 4px; min-width: 0; box-shadow: none; }
.event-pill:first-child { padding-left: 0; }
.event-pill + .event-pill { border-left: 1px solid var(--line); }
.event-pill .event-kind { font-size: 9px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.event-pill strong { color: var(--ink); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.event-pill span { font-size: 10px; color: var(--muted); }
.event-pill.is-next strong { color: var(--sea-deep); }
.event-pill.is-next .event-kind { color: var(--sea-deep); }
.stations-section { padding: 26px 0 0; }
.stations-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stations-heading h2 { font-size: 12px; font-weight: 550; color: var(--muted); }
.stations-heading .text-button { font-size: 11px; padding-right: 0; }
.station-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.station-choice { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-width: 0; text-align: left; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 14px 17px; cursor: pointer; }
.station-choice[aria-pressed="true"] { background: #edf4ef; border-color: #b7d1c3; }
.station-choice:hover { background: var(--mint); border-color: #bfd5c9; }
.station-choice .station-name { display: block; color: var(--ink); font-size: 12px; font-weight: 550; }
.station-choice .station-meta { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; }
.station-speed { color: var(--ink); font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.03em; }
.station-speed small { color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.station-choice.is-stale .station-meta { color: var(--amber); }
.update-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 16px 0 0; min-height: 37px; }
#loadStatus { font-size: 10px; font-weight: 400; line-height: 1.5; color: var(--muted); margin: 0; }
#loadStatus.error-state { color: var(--amber); }
#reloadData { font-size: 11px; padding-right: 0; white-space: nowrap; }
.footnote { display: flex; justify-content: space-between; flex-wrap: wrap; padding: 20px 0 0; margin-top: 15px; border-top: 1px solid var(--line); gap: 8px 20px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.detail-intro { margin: 34px 0 25px; }
.detail-intro .eyebrow { font-size: 10px; letter-spacing: .12em; }
.detail-intro h2 { font-size: 30px; font-weight: 500; letter-spacing: -.03em; margin: 8px 0 10px; }
.detail-intro > p:last-child { font-size: 13px; color: var(--muted); }
.forecast-actions { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.forecast-actions .text-button { border: 1px solid var(--line); background: white; padding: 9px 14px; }
#weatherSource { font-size: 11px; color: var(--muted); margin-left: auto; }
.weather-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 0; overflow: visible; }
.weather-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 20px 16px; }
.weather-card time { font-size: 14px; font-weight: 550; }
.weather-card-past { opacity: .65; }
.weather-temp { font-weight: 450; }
.weather-main { margin: 22px 0; }
.weather-unavailable { padding: 30px; grid-column: 1/-1; background: white; border: 1px solid var(--line); border-radius: 10px; }
.forecast-view, .more-view { min-height: 480px; }
.forecast-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.forecast-heading .detail-intro { margin: 25px 0 18px; }
.forecast-heading .detail-intro h2 { margin-bottom: 0; }
.forecast-heading > .text-button { border: 1px solid var(--line); background: white; padding: 8px 13px; }
.forecast-days { display: flex; gap: 8px; overflow-x: auto; padding: 5px 2px 12px; margin: 0 -2px 12px; scrollbar-width: thin; scrollbar-color: #c8d9ce transparent; scroll-snap-type: x proximity; }
.forecast-day-tab { flex: 1 0 124px; min-width: 0; display: grid; gap: 5px; padding: 14px 15px; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; scroll-snap-align: start; }
.forecast-day-tab:hover { border-color: #aacaba; background: #f1f7f3; }
.forecast-day-tab[aria-selected="true"] { background: #eaf3ee; border-color: #96beaa; box-shadow: inset 0 2px var(--sea); }
.forecast-day-name { font-size: 13px; font-weight: 600; }
.forecast-day-date { color: var(--muted); font-size: 10px; }
.forecast-day-outlook { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.forecast-day-outlook .weather-icon { width: 29px; height: 29px; flex: 0 0 29px; }
.forecast-day-outlook > span:last-child { font-size: 18px; font-weight: 550; white-space: nowrap; }
.forecast-day-outlook small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.hourly-forecast { border: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; }
.hourly-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.hourly-heading h3 { font-size: 17px; font-weight: 550; letter-spacing: -.025em; }
.hourly-controls { display: flex; gap: 6px; }
.hourly-controls .icon-button { border: 1px solid var(--line); width: 34px; }
.hourly-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #bfd2c6 #f4f7f5; }
.hourly-scroll:focus-visible { outline: 3px solid #359b82; outline-offset: -3px; }
.hourly-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: center; font-variant-numeric: tabular-nums; }
.hourly-label-column { width: 96px; }
.hourly-table th, .hourly-table td { box-sizing: border-box; border-right: 1px solid #edf2ef; }
.hourly-table th:last-child, .hourly-table td:last-child { border-right: 0; }
.hourly-table thead th { height: 59px; font-size: 12px; font-weight: 550; padding: 10px 4px; background: #fcfdfc; border-bottom: 1px solid #edf2ef; }
.hourly-table .hourly-row-label { position: sticky; left: 0; z-index: 1; padding: 8px 0 8px 20px; background: #fff; text-align: left; color: var(--muted); font-size: 11px; font-weight: 450; }
.hourly-row-label > span { display: block; margin-top: 4px; font-size: 10px; }
.hourly-table thead .is-current-hour { color: var(--sea-deep); background: #eff7f2; }
.forecast-now { display: block; font-size: 9px; font-weight: 400; margin-top: 4px; }
.hourly-symbols td { height: 73px; padding: 16px 8px 10px; }
.hourly-symbols .weather-icon { width: 39px; height: 39px; }
.weather-icon .icon-moon { color: #778f9c; fill: #e4ecef; }
.hourly-temps td { height: 59px; padding: 4px 8px 17px; font-size: 29px; font-weight: 450; color: var(--ink); letter-spacing: -.05em; }
.hourly-winds td { border-top: 1px solid #edf2ef; height: 109px; padding: 10px 8px 12px; }
.hourly-winds .hourly-row-label { border-top: 1px solid #edf2ef; }
.forecast-wind { width: 62px; height: 62px; display: block; margin: auto; overflow: visible; color: var(--sea-deep); }
.forecast-wind circle { fill: #edf5f0; stroke: #bfd7c9; stroke-width: 1; }
.forecast-wind text { fill: currentColor; font-size: 19px; font-weight: 600; letter-spacing: -.5px; }
.forecast-wind-arrow { fill: currentColor; }
.forecast-wind.is-strong circle { fill: var(--sea-deep); stroke: var(--sea-deep); }
.forecast-wind.is-strong text { fill: white; }
.forecast-bearing { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.hourly-gusts td { height: 44px; padding: 7px 8px 15px; font-size: 15px; color: var(--muted); }
.forecast-missing { color: var(--muted); font-size: 20px; }
.hourly-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding: 13px 20px; color: var(--muted); font-size: 9px; border-top: 1px solid var(--line); }
.forecast-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.forecast-footer p, .forecast-footer .text-button { font-size: 10px; color: var(--muted); }
.forecast-footer a { color: inherit; text-decoration: none; }
.forecast-footer a:hover { text-decoration: underline; }
.hourly-scroll .weather-unavailable { border: 0; border-radius: 0; padding: 36px 22px; min-height: 280px; font-size: 13px; }
.hourly-scroll .weather-unavailable p { color: var(--muted); line-height: 1.6; margin-top: 10px; max-width: 460px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.extra-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; gap: 15px; }
.extra-metrics .metric { background: white; border: 1px solid var(--line); padding: 22px; border-radius: 10px; }
.extra-metrics .metric strong { font-size: 33px; font-weight: 450; margin: 10px 0; }
.metric-label { font-size: 11px; }
.more-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0; }
.more-links .text-button, .more-links .install-button { border: 1px solid var(--line); background: white; padding: 10px 15px; }
.advanced-guide { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 20px; }
.advanced-guide summary { font-size: 13px; color: var(--sea-deep); cursor: pointer; }
.guide-description { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 17px 0; }
.advanced-guide .sport-lights { margin: 15px 0; }
.decision-panel { display: block; height: auto; padding: 20px 0 0; border: 0; box-shadow: none; background: transparent; }
.decision-head { margin-bottom: 16px; display: flex; justify-content: space-between; gap: 15px; }
.decision-head h2 { font-size: 20px; }
.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; overflow: visible; }
.decision-card { min-width: 0; }
.data-details { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 25px; }
.data-details h3 { font-size: 12px; font-weight: 550; color: var(--ink); margin-bottom: 10px; }
.condition-summary { white-space: normal; }
.sponsorship { margin-top: 20px; }
dialog { background: white !important; border-radius: 14px !important; padding: 25px !important; box-shadow: var(--shadow); }
dialog::backdrop { background: #122f2a60 !important; backdrop-filter: blur(3px); }
.dialog-head { align-items: center; margin-bottom: 22px; }
.dialog-head h2 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.panel-kicker { font-size: 10px; font-weight: 600; color: var(--muted); }
.close-button { background: var(--surface); width: 36px; }
.summary-pill { background: var(--surface); }
.summary-pill strong { font-weight: 550; }
.skip-link { position: absolute; top: -60px; left: 10px; z-index: 100; padding: 12px; background: white; color: var(--ink); }
.skip-link:focus { top: 10px; }
.no-script { padding: 20px; text-align: center; }
@media (min-width: 1450px) { .dashboard-shell { padding-top: 16px; } .page-heading { padding-top: 44px; } }
@media (max-width: 1100px) {
  .dashboard-shell { padding: 0 28px 22px; }
  .conditions-grid { grid-template-columns: 260px minmax(0, 1fr); }
  .wind-panel { padding: 25px 22px 20px; }
  .tide-panel { padding: 23px 22px 18px; }
  .station-choice { padding: 14px 12px; gap: 8px; }
  .weather-strip { gap: 9px; }
  .weather-card { padding: 17px 10px; }
}
@media (max-width: 800px) {
  .dashboard-shell { padding: 0 22px 22px; }
  .site-header { height: 80px; }
  .page-heading { padding: 26px 0 20px; }
  .conditions-grid { grid-template-columns: 1fr; }
  .wind-panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 22px 16px; display: block; }
  .wind-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .current-wind { margin-top: 13px; width: auto; }
  .current-wind #currentWindValue { font-size: 84px; }
  .wind-harbour { margin: 9px 0 0; width: 180px; flex: 0 0 180px; }
  .wind-recent { margin-top: 14px; padding-top: 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 24px; }
  .wind-recent div { gap: 12px; }
  #windPeriod { margin-top: 0; margin-left: auto; }
  .reading-time { margin-top: 8px; }
  .tide-panel { padding: 20px 22px; }
  .tide-overview { margin-top: 16px; }
  .chart-frame { height: 275px; margin-top: 20px; }
  .station-strip { gap: 8px; }
  .station-choice { align-items: start; flex-direction: column; gap: 10px; }
  .station-speed { font-size: 23px; }
  .weather-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-card { padding: 20px; }
  .weather-card:last-child { grid-column: 1/-1; }
  .decision-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wind-layout, .webcam-layout, .watersports-layout { grid-template-columns: 1fr; }
  .wind-station-list { max-height: none; }
  .wind-map { min-height: 340px; }
  .webcam-side { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); max-height: none; }
  dialog { width: calc(100vw - 28px) !important; max-height: calc(100svh - 28px) !important; }
}
@media (max-width: 480px) {
  .forecast-heading .detail-intro { margin: 18px 0 15px; }
  .forecast-heading .detail-intro h2 { font-size: 27px; }
  .forecast-heading > .text-button { font-size: 10px; padding: 7px 9px; }
  .forecast-day-tab { flex-basis: 103px; flex-grow: 0; padding: 12px; }
  .forecast-day-name { font-size: 12px; }
  .forecast-day-outlook { gap: 6px; }
  .forecast-day-outlook .weather-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .forecast-day-outlook > span:last-child { font-size: 16px; }
  .forecast-day-outlook small { font-size: 10px; margin-left: 4px; }
  .hourly-label-column { width: 76px; }
  .hourly-table .hourly-row-label { padding-left: 13px; font-size: 10px; }
  .hourly-heading { padding: 13px 14px; }
  .hourly-heading h3 { font-size: 15px; }
  .hourly-footnote { font-size: 8px; padding: 12px 14px; }
  .forecast-footer p, .forecast-footer .text-button { font-size: 9px; line-height: 1.6; }
  .forecast-footer .text-button { padding-left: 0; }
  .tide-context { gap: 5px; }
  .dashboard-shell { padding: 0 16px 20px; }
  .site-header { height: 64px; }
  .brand { font-size: 14px; gap: 9px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-subtitle { font-size: 9px; }
  .wind-unit-toggle { grid-template-columns: repeat(2, 39px); }
  .wind-unit-toggle button { min-height: 30px; font-size: 10px; }
  .page-heading { padding: 16px 0 12px; }
  .page-heading .eyebrow { font-size: 8px; }
  .page-heading h1 { font-size: 30px; }
  .today-date { font-size: 10px; max-width: 90px; line-height: 1.6; text-align: right; }
  .view-nav { margin-bottom: 18px; }
  .view-tabs { gap: 22px; }
  .view-tabs button { font-size: 12px; min-height: 43px; }
  .webcam-nav { font-size: 11px; gap: 5px; }
  .webcam-nav svg { width: 15px; }
  .conditions-grid { border-radius: 12px; }
  .wind-panel { padding: 15px 18px 13px; }
  .section-heading h2 { font-size: 12px; }
  .wind-station-name { font-size: 11px; }
  .current-wind #currentWindValue { font-size: 64px; }
  #currentWindUnit { font-size: 20px; }
  .wind-reading-caption { font-size: 9px; }
  .wind-main { gap: 12px; }
  .current-wind { min-width: 0; }
  .wind-harbour { width: clamp(126px, 40vw, 180px); flex-basis: clamp(126px, 40vw, 180px); }
  .harbour-caption { font-size: 8px; }
  .wind-recent { gap: 6px 21px; margin-top: 12px; }
  .wind-recent span { font-size: 10px; }
  .wind-recent strong { font-size: 16px; }
  #windPeriod { width: 100%; margin: 0; font-size: 9px; }
  .reading-time { font-size: 9px; }
  .tide-panel { padding: 16px 15px 19px; }
  .day-navigation .text-button { font-size: 10px; padding: 6px; }
  .day-navigation .icon-button { width: 26px; min-width: 26px; }
  #currentHeight { font-size: 29px; }
  .tide-height-line { gap: 8px; }
  .tide-trend { font-size: 9px; padding: 4px 5px; }
  #clockLabel { font-size: 9px; }
  .tide-next strong { font-size: 20px; }
  .tide-next > span { font-size: 9px; }
  .chart-frame { height: 205px; margin-top: 17px; }
  .chart-caption { font-size: 8px; margin-bottom: 15px; }
  .tide-events { padding-top: 14px; }
  .event-pill { padding-left: 9px; }
  .event-pill .event-kind { font-size: 8px; letter-spacing: 0; }
  .event-pill strong { font-size: 15px; }
  .event-pill span { font-size: 9px; }
  .stations-section { padding-top: 18px; }
  .station-choice { padding: 12px 9px; border-radius: 7px; gap: 8px; }
  .station-choice .station-name { font-size: 10px; min-height: 24px; line-height: 1.3; }
  .station-choice .station-meta { font-size: 8px; }
  .station-speed { font-size: 20px; }
  .station-speed small { font-size: 9px; }
  .station-strip { gap: 6px; }
  .update-line { margin-top: 12px; }
  #loadStatus { font-size: 9px; }
  .footnote { font-size: 8px; margin-top: 10px; padding-top: 16px; }
  .detail-intro h2 { font-size: 26px; }
  .detail-intro > p:last-child { font-size: 12px; line-height: 1.6; }
  .weather-strip { gap: 10px; }
  .weather-card { padding: 16px; }
  #weatherSource { width: 100%; margin-left: 0; }
  .extra-metrics .metric { padding: 17px; }
  .extra-metrics .metric strong { font-size: 28px; }
  .extra-metrics .metric-label { font-size: 9px; }
  .decision-grid { grid-template-columns: 1fr; }
  .dialog-head h2 { font-size: 20px; }
  .dialog-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  dialog { padding: 19px !important; }
}
@media (max-width: 360px) {
  .current-wind #currentWindValue { font-size: 52px; }
  .wind-value-line { gap: 6px; }
  #currentWindUnit { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
