:root {
  color-scheme: dark;
  --ink: #061721;
  --ink-2: #0a2432;
  --ink-3: #123648;
  --paper: #f4f8fa;
  --mist: #afc0cb;
  --line: rgba(185, 213, 227, 0.2);
  --blue: #63c9f5;
  --coral: #ff566d;
  --gold: #ffc949;
  --green: #42df9a;
  --shadow: 0 22px 60px rgba(0, 9, 14, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.hero { min-height: min(520px, 58vh); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-image { position: absolute; inset: 0; background: url("/wrmr-2026/assets/lake-bled.jpg") 54% 50% / cover no-repeat; transform: scale(1.015); }
.hero-shade { position: absolute; inset: 0; background: rgba(3, 18, 27, 0.67); }
.hero-inner { width: min(1180px, calc(100% - 48px)); min-width: 0; min-height: inherit; margin: 0 auto; position: relative; display: grid; grid-template-rows: auto 1fr auto; }
.topbar { min-width: 0; min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.2); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 58px; height: 54px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.brand span { display: grid; }
.brand strong { font-size: 1.2rem; letter-spacing: 0; }
.brand small { color: #d5e4ec; font-weight: 650; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.stream-link { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.34); color: var(--paper); font-size: .82rem; font-weight: 900; text-decoration: none; }
.stream-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255,86,109,.16); }
.stream-link:hover, .stream-link:focus-visible { border-color: var(--coral); background: rgba(255,86,109,.12); }
.results-link { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: var(--paper); font-size: .82rem; font-weight: 900; text-decoration: none; }
.results-link span { font-size: 1rem; }
.results-link:hover, .results-link:focus-visible { background: var(--paper); color: var(--ink); }
.archive-link { padding: 9px 0; color: #eef8fc; font-weight: 750; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hero-copy { min-width: 0; align-self: center; padding: 38px 0 30px; }
.eyebrow { margin: 0 0 7px; color: #dbe8ee; font-size: .75rem; line-height: 1.2; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow.coral { color: var(--coral); }
.hero h1 { margin: 0; max-width: 700px; font-size: 6.2rem; line-height: .86; letter-spacing: 0; text-shadow: 0 4px 24px rgba(0, 9, 14, .4); text-wrap: balance; }
.event-dates { margin: 18px 0 0; color: #e9f4f8; font-size: 1.08rem; font-weight: 760; }
.hero-stats { width: max-content; display: flex; margin-left: auto; border: 1px solid rgba(255,255,255,.28); border-bottom: 0; background: rgba(5,28,40,.82); backdrop-filter: blur(8px); }
.hero-stats > div, .hero-stats > button { width: 126px; min-height: 88px; padding: 15px 18px; display: grid; align-content: center; background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,.2); text-align: left; }
.hero-stats > :last-child { border-right: 0; }
.hero-stats button { cursor: pointer; }
.hero-stats button:hover, .hero-stats button:focus-visible { background: rgba(99,201,245,.13); }
.hero-stats strong { color: var(--gold); font-size: 1.8rem; line-height: 1; }
.hero-stats span { margin-top: 4px; color: #c4d4dd; font-size: .8rem; font-weight: 850; text-transform: uppercase; }

main { overflow: clip; }
.status-band { background: #0c2d3d; border-bottom: 1px solid var(--line); }
.status-inner { width: min(1180px, calc(100% - 48px)); min-height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.status-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }
.status-copy > div { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 9px; }
.status-copy strong { font-size: .9rem; }
.status-copy span:not(.status-dot) { color: var(--mist); font-size: .9rem; }
.status-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(255,201,73,.12); }
.status-dot.live { background: var(--green); box-shadow: 0 0 0 7px rgba(66,223,154,.12); }
.status-dot.complete { background: var(--blue); box-shadow: 0 0 0 7px rgba(99,201,245,.12); }
.refresh-copy { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; color: #a9bdc8; font-size: .78rem; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; font-size: 1.25rem; }
.icon-button:hover, .icon-button:focus-visible { border-color: var(--blue); color: var(--blue); }
.icon-button.spinning { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.race-band, .results-band, .links-band { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0; }
.section-head { margin-bottom: 23px; }
.section-head h2 { margin: 0; font-size: 2.35rem; line-height: 1; letter-spacing: 0; }
.section-intro { max-width: 480px; margin: 14px 0 0; color: var(--mist); }
.split-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.timezone-control { display: grid; gap: 5px; }
.timezone-control span { color: var(--mist); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.timezone-control select { min-width: 220px; padding: 9px 34px 9px 11px; border: 1px solid var(--line); border-radius: 0; background: var(--ink-2); color: var(--paper); font-weight: 720; }

.race-watch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--ink-2); box-shadow: var(--shadow); }
.watch-card { min-height: 280px; padding: 24px; position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.watch-card:last-child { border-right: 0; }
.watch-card.featured { background: linear-gradient(145deg, rgba(255,86,109,.12), rgba(99,201,245,.04)); }
.watch-card.is-favorite { background: linear-gradient(145deg, rgba(255,201,73,.13), rgba(99,201,245,.04)); box-shadow: inset 4px 0 var(--gold); }
.watch-label { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; color: var(--coral); font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.watch-label span:last-child { color: var(--mist); }
.watch-time { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.watch-time span { display: grid; color: var(--mist); font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.watch-time strong { margin-top: 3px; color: var(--paper); font-size: 1rem; text-transform: none; }
.race-title-button { width: 100%; padding: 0; border: 0; background: transparent; color: var(--paper); text-align: left; cursor: pointer; font-weight: 860; line-height: 1.1; }
.race-title-button:hover, .race-title-button:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.watch-event { font-size: 1.22rem; }
.race-meta { margin: 7px 0 0; color: var(--mist); font-size: .84rem; }
.watch-card .crew-chips { margin-top: auto; padding-top: 18px; }
.watch-empty { margin: auto 0; color: var(--mist); }
.watch-empty strong { display: block; margin-bottom: 7px; color: var(--paper); font-size: 1.1rem; }
.watch-placeholder { min-height: 280px; border-right: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.05), rgba(255,255,255,.02)); background-size: 200% 100%; animation: shimmer 1.7s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.content-grid { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 16px 0 66px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .72fr); gap: 42px; align-items: start; }
.upcoming-section, .crew-section { min-width: 0; }
.count-label { color: var(--mist); font-weight: 800; }
.day-tabs { margin-bottom: 18px; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.day-tab { min-width: 92px; padding: 10px 12px; border: 1px solid var(--line); background: transparent; color: var(--mist); cursor: pointer; text-align: left; }
.day-tab strong, .day-tab span { display: block; }
.day-tab strong { color: inherit; font-size: .84rem; }
.day-tab span { font-size: .7rem; }
.day-tab:hover, .day-tab:focus-visible { border-color: var(--blue); }
.day-tab.active { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.race-list, .results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.race-card { min-height: 214px; padding: 18px; display: flex; gap: 14px; background: var(--ink-2); border: 1px solid var(--line); position: relative; }
.race-card.is-favorite { border-color: rgba(255,201,73,.65); box-shadow: inset 4px 0 var(--gold); }
.boat-trigger { width: 48px; min-width: 48px; height: 78px; padding: 1px; border: 0; background: transparent; cursor: pointer; }
.boat-trigger:hover .boat-shell, .boat-trigger:focus-visible .boat-shell, .boat-trigger:hover .boat-spine, .boat-trigger:focus-visible .boat-spine, .boat-trigger:hover .boat-oar, .boat-trigger:focus-visible .boat-oar { stroke: var(--gold); }
.boat-icon { width: 44px; height: 74px; overflow: visible; }
.boat-shell, .boat-spine, .boat-oar, .boat-blade { fill: none; stroke: #d8e8ee; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.boat-cox-halo { fill: rgba(255,86,109,.2); }
.boat-cox-ring { fill: var(--ink-2); stroke: var(--coral); stroke-width: 2; }
.boat-cox { fill: var(--paper); }
.race-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.race-card-top { display: flex; justify-content: space-between; gap: 12px; }
.race-card-time { color: var(--coral); font-size: .73rem; font-weight: 900; text-transform: uppercase; }
.race-card-time strong { display: block; margin-top: 2px; color: var(--paper); font-size: 1.15rem; text-transform: none; }
.lane-badge, .place-badge { height: fit-content; padding: 6px 9px; border: 1px solid rgba(99,201,245,.38); background: rgba(99,201,245,.08); color: var(--blue); font-size: .76rem; font-weight: 850; white-space: nowrap; }
.place-badge.medal { border-color: rgba(255,201,73,.5); color: var(--gold); }
.race-card-title { margin-top: 13px; font-size: 1rem; }
.code-row { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.code-button, .code-chip { padding: 4px 7px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--mist); font-size: .67rem; font-weight: 850; }
.code-button { cursor: pointer; }
.code-button:hover, .code-button:focus-visible { border-color: var(--blue); color: var(--blue); }
.crew-chips { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crew-link { padding: 0; border: 0; background: transparent; color: #e9f5f9; cursor: pointer; font-size: .78rem; font-weight: 720; text-align: left; }
.crew-link::after { content: " ·"; color: #5f7c8b; }
.crew-link:last-child::after { display: none; }
.crew-link:hover, .crew-link:focus-visible { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.crew-link.is-rmrc { color: var(--gold); }
.crew-link.is-favorite { padding: 2px 6px; background: var(--gold); color: var(--ink); font-weight: 900; text-decoration: none; }
.crew-link.is-favorite:hover, .crew-link.is-favorite:focus-visible { background: var(--paper); color: var(--ink); text-decoration: none; }
.favorite-marker { margin-right: 4px; color: inherit; }
.race-card .crew-chips { margin-top: auto; padding-top: 15px; }
.favorite-star { color: var(--gold); }
.favorite-callout { margin-top: 13px; padding: 10px 11px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; align-items: center; border: 1px solid rgba(255,201,73,.52); border-left: 4px solid var(--gold); background: rgba(255,201,73,.1); }
.favorite-callout-icon { width: 28px; height: 28px; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-size: .95rem; }
.favorite-callout small { display: block; margin-bottom: 2px; color: var(--gold); font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.favorite-person-list { display: flex; flex-wrap: wrap; gap: 3px 10px; }
.favorite-person-link { padding: 0; border: 0; background: transparent; color: var(--paper); cursor: pointer; font-weight: 900; text-align: left; text-decoration: underline; text-decoration-color: rgba(255,201,73,.6); text-underline-offset: 3px; }
.favorite-person-link:hover, .favorite-person-link:focus-visible { color: var(--gold); }
.watch-card .favorite-callout { margin-top: 14px; }

.crew-section { position: sticky; top: 18px; padding: 24px; background: #0b2a39; border-top: 4px solid var(--coral); box-shadow: var(--shadow); }
.search-field { height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: var(--paper); color: var(--ink); }
.search-field > span { font-size: 1.25rem; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.favorites-toggle { min-height: 46px; margin-top: 8px; padding: 0 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); cursor: pointer; }
.favorites-toggle input { accent-color: var(--gold); }
.favorites-toggle span { flex: 1; font-weight: 760; }
.favorites-toggle strong { color: var(--gold); }
.crew-list { max-height: 590px; margin-top: 12px; overflow: auto; scrollbar-width: thin; }
.crew-row { width: 100%; min-height: 48px; padding: 7px 5px; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; }
.crew-row.is-favorite { padding-left: 8px; background: rgba(255,201,73,.08); box-shadow: inset 3px 0 var(--gold); }
.crew-row.is-favorite .avatar { background: var(--gold); color: var(--ink); }
.crew-row.is-favorite .crew-profile strong { color: var(--gold); }
.crew-profile { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--paper); text-align: left; cursor: pointer; }
.crew-profile strong, .crew-profile span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-profile span { color: var(--mist); font-size: .72rem; }
.crew-profile:hover strong, .crew-profile:focus-visible strong { color: var(--blue); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; background: #164155; color: var(--blue); font-size: .72rem; font-weight: 900; }
.favorite-button { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--mist); cursor: pointer; font-size: 1.2rem; }
.favorite-button.active { border-color: var(--gold); color: var(--gold); background: rgba(255,201,73,.1); }
.favorite-button:hover, .favorite-button:focus-visible { border-color: var(--gold); color: var(--gold); }

.results-band { border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.result-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 18px; }
.text-link { color: var(--blue); font-weight: 800; text-underline-offset: 4px; }
.video-link { color: var(--gold); }
.wins-strip { margin-bottom: 18px; }
.win-callout { padding: 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border: 1px solid rgba(255,201,73,.52); background: linear-gradient(90deg, rgba(255,201,73,.13), transparent); }
.win-medal { font-size: 2rem; }
.win-callout strong, .win-callout span { display: block; }
.win-callout span { color: var(--mist); }
.empty-state { grid-column: 1 / -1; min-height: 170px; padding: 28px; display: grid; align-content: center; border: 1px solid var(--line); color: var(--mist); }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--paper); font-size: 1.1rem; }

.bled-band { padding: 58px max(24px, calc((100% - 1180px) / 2)); background: #e6f0f3; color: var(--ink); }
.bled-band .eyebrow { color: #e23d56; }
.bled-band .section-intro { color: #4a6470; }
.bled-layout { display: grid; grid-template-columns: .8fr 1.7fr; gap: 58px; align-items: start; }
.weather-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid rgba(6,23,33,.2); }
.weather-stat { min-height: 124px; padding: 17px; display: grid; align-content: space-between; border-right: 1px solid rgba(6,23,33,.18); }
.weather-stat:last-child { border-right: 0; }
.weather-stat span { color: #4a6470; font-size: .69rem; font-weight: 850; text-transform: uppercase; }
.weather-stat strong { font-size: 1.5rem; line-height: 1; }
.weather-stat small { color: #4a6470; }

.official-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.official-links a { min-height: 124px; padding: 20px; display: grid; grid-template-columns: 1fr auto; align-content: center; border-right: 1px solid var(--line); text-decoration: none; }
.official-links a:last-child { border-right: 0; }
.official-links span { grid-column: 1 / -1; margin-bottom: 6px; color: var(--coral); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.official-links strong { font-size: 1rem; }
.official-links i { color: var(--blue); font-style: normal; font-size: 1.2rem; }
.official-links a:hover, .official-links a:focus-visible { background: var(--ink-2); }
.archive-note { margin: 16px 0 0; color: var(--mist); font-size: .82rem; }
.archive-note span { color: var(--green); }
footer { min-height: 76px; padding: 0 max(24px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #8fa7b4; font-size: .76rem; }

.detail-dialog { width: min(820px, calc(100% - 28px)); max-height: min(880px, calc(100vh - 28px)); padding: 0; border: 1px solid rgba(99,201,245,.35); background: #071e2b; color: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.detail-dialog::backdrop { background: rgba(0,10,15,.82); backdrop-filter: blur(4px); }
.dialog-shell > header { min-height: 112px; padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.dialog-shell h2 { margin: 0; font-size: 2.3rem; line-height: 1; }
.close-button { width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); cursor: pointer; font-size: 1.7rem; line-height: 1; }
.close-button:hover, .close-button:focus-visible { border-color: var(--coral); color: var(--coral); }
.dialog-body { max-height: calc(100vh - 155px); padding: 26px 28px 32px; overflow-y: auto; }
.dialog-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; border: 1px solid var(--line); }
.dialog-summary > div { min-height: 82px; padding: 14px; display: grid; align-content: center; border-right: 1px solid var(--line); }
.dialog-summary > div:last-child { border-right: 0; }
.dialog-summary span { color: var(--mist); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.dialog-summary strong { margin-top: 4px; }
.lineup { border-top: 1px solid var(--line); }
.lineup-row { min-height: 58px; display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.lineup-row > span:first-child { color: #84a0af; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.lineup-row strong { font-size: .95rem; }
.lineup-row strong.is-rmrc { color: var(--gold); }
.lineup-row small { color: var(--coral); font-weight: 900; }
.lineup-row.is-favorite { padding: 0 8px; background: rgba(255,201,73,.08); box-shadow: inset 3px 0 var(--gold); }
.lineup-row.is-favorite small { color: var(--gold); }
.dialog-section-title { margin: 26px 0 10px; color: var(--blue); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.profile-races { display: grid; gap: 8px; }
.profile-race, .field-row { padding: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.profile-race-top, .field-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; }
.profile-race time, .field-bow { color: var(--coral); font-size: .76rem; font-weight: 900; }
.profile-race strong, .field-row strong { display: block; }
.profile-race span, .field-row span { color: var(--mist); font-size: .8rem; }
.fields { display: grid; gap: 6px; }
.field-row.rmrc-field { border-color: rgba(255,201,73,.5); background: rgba(255,201,73,.07); }
.field-result { text-align: right; }
.field-result strong.medal { color: var(--gold); }
.boat-guide-visual { min-height: 150px; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 24px; }
.boat-guide-visual .boat-icon { width: 90px; height: 150px; margin: auto; }
.boat-guide-visual h3 { margin: 0 0 8px; font-size: 1.45rem; }
.boat-guide-visual p { margin: 0; color: var(--mist); }
.guide-facts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.guide-facts span { padding: 6px 9px; border: 1px solid var(--line); color: var(--blue); font-size: .73rem; font-weight: 850; }
.age-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); }
.age-cell { min-height: 70px; padding: 10px; display: grid; align-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.age-cell:nth-child(7n) { border-right: 0; }
.age-cell strong { color: var(--coral); }
.age-cell span { color: var(--mist); font-size: .7rem; }
.age-cell.active { background: rgba(255,201,73,.12); box-shadow: inset 0 -3px var(--gold); }
.age-explainer { margin: 18px 0 0; color: var(--mist); }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 200; max-width: 320px; padding: 12px 16px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; font-weight: 750; }
.toast.show { opacity: 1; transform: translateY(0); }
.loading-line { grid-column: 1 / -1; min-height: 90px; display: grid; place-items: center; color: var(--mist); }

@media (max-width: 900px) {
  .hero { min-height: 500px; }
  .hero-shade { background: rgba(3,18,27,.72); }
  .hero h1 { font-size: 5rem; }
  .race-watch { grid-template-columns: 1fr; }
  .watch-card, .watch-placeholder { min-height: 228px; border-right: 0; border-bottom: 1px solid var(--line); }
  .watch-card:last-child { border-bottom: 0; }
  .content-grid { grid-template-columns: 1fr; }
  .crew-section { grid-row: 1; position: static; }
  .upcoming-section { grid-row: 2; }
  .bled-layout { grid-template-columns: 1fr; gap: 25px; }
  .weather-grid { grid-template-columns: repeat(3, 1fr); }
  .weather-stat:nth-child(3) { border-right: 0; }
  .weather-stat:nth-child(-n+3) { border-bottom: 1px solid rgba(6,23,33,.18); }
  .official-links { grid-template-columns: 1fr; }
  .official-links a { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line); }
  .official-links a:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .hero { min-height: 450px; }
  .hero-inner, .status-inner, .race-band, .results-band, .links-band, .content-grid { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 76px; }
  .brand img { width: 47px; height: 44px; }
  .brand small { display: none; }
  .top-actions { gap: 7px; }
  .stream-link, .results-link { min-height: 40px; padding: 0 10px; }
  .archive-link { flex: 0 0 auto; font-size: 0; }
  .archive-link::after { content: "Events"; font-size: .78rem; }
  .hero-copy { align-self: end; padding-bottom: 25px; }
  .hero h1 { max-width: 100%; font-size: 2.9rem; overflow-wrap: normal; }
  .hero .eyebrow { max-width: 320px; font-size: .65rem; }
  .hero-stats { width: 100%; margin: 0; }
  .hero-stats > div, .hero-stats > button { width: 33.333%; min-height: 70px; padding: 10px 12px; }
  .hero-stats strong { font-size: 1.45rem; }
  .hero-stats span { font-size: .65rem; }
  .status-inner { min-height: 82px; }
  .status-copy > div { display: grid; }
  .refresh-copy > span { display: none; }
  .race-band, .results-band, .links-band { padding: 42px 0; }
  .split-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .timezone-control { width: 100%; max-width: none; }
  .timezone-control select { width: 100%; min-width: 0; }
  .race-list, .results-list { grid-template-columns: 1fr; }
  .race-card { min-height: 205px; }
  .content-grid { padding-bottom: 48px; gap: 40px; }
  .crew-section { padding: 19px; }
  .weather-grid { grid-template-columns: repeat(2, 1fr); }
  .weather-stat, .weather-stat:nth-child(3) { border-right: 1px solid rgba(6,23,33,.18); border-bottom: 1px solid rgba(6,23,33,.18); }
  .weather-stat:nth-child(2n), .weather-stat:last-child { border-right: 0; }
  .weather-stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .dialog-shell > header { min-height: 94px; padding: 20px; }
  .dialog-shell h2 { font-size: 1.7rem; }
  .dialog-body { padding: 20px; }
  .dialog-summary { grid-template-columns: 1fr; }
  .dialog-summary > div { min-height: 62px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-summary > div:last-child { border-bottom: 0; }
  .profile-race-top, .field-row { grid-template-columns: 64px 1fr; }
  .profile-race-top > :last-child, .field-result { grid-column: 2; text-align: left; }
  .boat-guide-visual { grid-template-columns: 80px 1fr; gap: 15px; }
  .boat-guide-visual .boat-icon { width: 65px; height: 118px; }
  .age-grid { grid-template-columns: repeat(4, 1fr); }
  .age-cell:nth-child(7n) { border-right: 1px solid var(--line); }
  .age-cell:nth-child(4n) { border-right: 0; }
  footer { align-items: start; flex-direction: column; justify-content: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
