  /* ── NAV ── */
  nav {
    background: var(--abyss);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  .nav-brand {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tidal);
    letter-spacing: 1px;
    white-space: nowrap;
    margin-right: 8px;
    padding: 14px 0;
  }
  .nav-divider {
    width: 1px; height: 20px;
    background: var(--border);
    margin: 0 8px;
    flex-shrink: 0;
  }
  .nav-link {
    padding: 14px 12px;
    font-size: 0.75rem;
    color: var(--mist);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    font-weight: 500;
    flex-shrink: 0;
  }
  .nav-link:hover { color: var(--foam); }
  .nav-link.active { color: var(--tidal); border-bottom-color: var(--tidal); }

  :root {
    /* Dawn Patrol Palette — V2.0 (dark, default) */
    --void:       #0C2033;
    --abyss:      #091929;
    --deep:       #152C40;
    --surface:    #1B3850;
    --raised:     #24485E;
    --border-dim: rgba(50,120,170,0.28);
    --border:     #2E6080;
    --tidal:      #00D4AC;
    --tidal-glow: rgba(0,212,172,0.10);
    --amber:      #F5A623;
    --amber-glow: rgba(245,166,35,0.10);
    --storm:      #E63946;
    --storm-glow: rgba(230,57,70,0.08);
    --mist:       #7AB8D4;
    --fog:        #5A9AB8;
    --foam:       #C8E4F2;
    --white:      #EBF4FA;
    --score-go:   #00D4AC;
    --score-fair: #F5A623;
    --score-nlg:  #E63946;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
  }

  [data-theme="light"] {
    /* Option A — Pure White + Dark Nav */
    --void:           #f2f6f9;
    --abyss:          #f2f6f9;
    --deep:           #f8fbfd;
    --surface:        #ffffff;
    --raised:         #f4f9fc;
    --border:         #dde5ea;
    --border-dim:     rgba(0,0,0,0.06);
    --tidal:          #00A882;
    --tidal-glow:     rgba(0,168,130,0.08);
    --amber:          #B07800;
    --amber-glow:     rgba(176,120,0,0.08);
    --storm:          #C0303A;
    --storm-glow:     rgba(192,48,58,0.08);
    --mist:           #5A8AA0;
    --fog:            #8AAFC0;
    --foam:           #0C2033;
    --white:          #0C2033;
    --score-go:       #00A882;
    --score-fair:     #B07800;
    --score-nlg:      #C0303A;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--void);
    color: var(--foam);
    font-family: var(--font-body);
    min-height: 100vh;
    padding: 24px 16px;
  }

  header {
    text-align: center;
    margin-bottom: 32px;
  }
  header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--tidal);
    text-transform: uppercase;
    font-family: var(--font-mono);
  }
  header p {
    color: var(--mist);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    margin-top: 6px;
  }

  /* ── BEACH DIAGRAM ── */
  .beach-diagram-wrap {
    padding: 12px 16px 0;
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .beach-diagram-svg {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
  }
  .beach-conditions-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .bc-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .bc-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mist);
    width: 36px;
    font-family: var(--font-mono);
  }
  .bc-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--foam);
    font-family: var(--font-mono);
    line-height: 1;
  }
  .bc-sub {
    font-size: 0.7rem;
    color: var(--mist);
  }
  #updated-at {
    font-size: 0.75rem;
    color: var(--mist);
    margin-top: 4px;
  }

  .spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
  }

  .spot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
  }

  .spot-header {
    padding: 16px 20px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
  }
  .spot-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  .spot-meta {
    font-size: 0.72rem;
    color: var(--mist);
    margin-top: 2px;
  }

  .score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
  }
  .score-number {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
  }
  .score-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 2px;
  }

  .now-conditions {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  .cond-item {
    text-align: center;
  }
  .cond-label {
    font-size: 0.65rem;
    color: var(--mist);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
  }
  .cond-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foam);
  }
  .cond-sub {
    font-size: 0.7rem;
    color: var(--mist);
    margin-top: 1px;
  }

  .tide-bar {
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
  }
  .tide-label { color: var(--mist); }
  .tide-track {
    flex: 1;
    height: 6px;
    background: var(--abyss);
    border-radius: 3px;
    overflow: hidden;
  }
  .tide-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tidal), var(--tidal));
    transition: width 0.4s;
  }
  .tide-state { color: var(--tidal); font-weight: 600; }

  .forecast-section {
    padding: 14px 20px;
  }
  .forecast-title {
    font-size: 0.7rem;
    color: var(--mist);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .forecast-row {
    display: grid;
    grid-template-columns: 60px 1fr 56px;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.8rem;
  }
  .forecast-row:last-child { border-bottom: none; }

  .fc-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    cursor: pointer;
    color: var(--mist);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    border-top: 1px solid var(--border);
    transition: color 0.15s, background 0.15s;
    user-select: none;
    letter-spacing: 0.5px;
  }
  .fc-toggle:hover { color: var(--tidal); background: rgba(0,212,172,0.05); }
  .fc-toggle-icon { transition: transform 0.2s; display: inline-block; }
  .fc-toggle.open .fc-toggle-icon { transform: rotate(180deg); }

  .fc-extended { display: none; }
  .fc-extended.open { display: block; }
  .fc-day { color: var(--mist); font-size: 0.75rem; }
  .fc-bar-wrap { display: flex; align-items: center; gap: 6px; }
  .fc-bar {
    height: 6px;
    border-radius: 3px;
    min-width: 4px;
    max-width: 100%;
  }
  .fc-detail { font-size: 0.7rem; color: var(--mist); }
  .fc-score {
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
  }
  .fc-label {
    font-size: 0.6rem;
    text-align: right;
    color: var(--mist);
  }

  /* ── HOURLY EXPAND ── */
  .forecast-row {
    cursor: pointer;
    transition: background 0.15s;
  }
  .forecast-row:hover { background: rgba(255,255,255,0.03); }
  .forecast-row.expanded { background: rgba(0,212,172,0.05); }
  .fc-expand-icon {
    font-size: 0.6rem;
    color: var(--mist);
    margin-left: 4px;
    transition: transform 0.2s;
    display: inline-block;
  }
  .forecast-row.expanded .fc-expand-icon { transform: rotate(180deg); }

  .hourly-panel {
    display: none;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--border);
    overflow-x: auto;
  }
  .hourly-panel.open { display: block; }
  .hourly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.68rem;
    font-family: var(--font-mono);
  }
  .hourly-table th {
    padding: 6px 8px;
    color: var(--mist);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
    font-weight: 400;
  }
  .hourly-table td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    white-space: nowrap;
    vertical-align: middle;
  }
  .hourly-table tr:last-child td { border-bottom: none; }
  .hourly-table tr:hover td { background: rgba(255,255,255,0.02); }
  .h-time { color: var(--mist); }
  .h-good { color: #00D4AC; }
  .h-fair { color: #F5A623; }
  .h-poor { color: #F5A623; }
  .h-flat { color: #E63946; }

  .dir-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .dir-arrow-wrap {
    position: relative;
    width: 40px;
    height: 40px;
  }
  .wind-badge {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
  }
  .badge-offshore { background: rgba(0,212,172,0.15); color: #00D4AC; border: 1px solid rgba(0,212,172,0.3); }
  .badge-cross-off { background: rgba(245,166,35,0.12); color: #F5A623; border: 1px solid rgba(245,166,35,0.25); }
  .badge-cross    { background: rgba(245,166,35,0.12);  color: #F5A623; border: 1px solid rgba(245,166,35,0.25); }
  .badge-onshore  { background: rgba(230,57,70,0.12);  color: #E63946; border: 1px solid rgba(230,57,70,0.25); }

  .loading-state, .error-state {
    text-align: center;
    padding: 40px;
    color: var(--mist);
  }
  .spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--tidal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .wind-arrow {
    display: inline-block;
    font-size: 1rem;
  }

  .ideal-box {
    background: rgba(0,212,172,0.06);
    border: 1px solid rgba(0,212,172,0.15);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 20px 14px;
    font-size: 0.7rem;
    color: var(--mist);
    line-height: 1.6;
  }
  .ideal-box strong { color: var(--tidal); }

  .section-title {
    text-align: center;
    font-size: 0.8rem;
    color: var(--mist);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 auto 20px;
    max-width: 1200px;
  }

  /* ── WEEKEND OUTLOOK ── */
  .weekend-section {
    max-width: 1200px;
    margin: 0 auto 48px;
  }
  .weekend-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
  }
  .weekend-section-header h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mist);
    font-weight: 600;
  }
  .weekend-section-header::before,
  .weekend-section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  .weekends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
  }

  .weekend-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
  }
  .weekend-card-header {
    background: linear-gradient(135deg, #091929, #162d4a);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
  }
  .weekend-dates {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tidal);
    letter-spacing: 0.3px;
  }
  .weekend-subtitle {
    font-size: 0.7rem;
    color: var(--mist);
    margin-top: 2px;
  }

  .weekend-days {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
  }
  .weekend-day {
    padding: 14px 16px;
    border-right: 1px solid var(--border);
  }
  .weekend-day:last-child { border-right: none; }
  .wd-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mist);
    margin-bottom: 8px;
  }
  .wd-date {
    font-size: 0.75rem;
    color: var(--mist);
    margin-bottom: 8px;
  }

  .wd-spot-scores {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
  }
  .wd-spot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
  }
  .wd-spot-name {
    color: var(--mist);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .wd-spot-score {
    font-weight: 700;
    font-size: 0.8rem;
    margin-left: 6px;
  }
  .wd-spot-label {
    font-size: 0.6rem;
    margin-left: 4px;
    opacity: 0.8;
  }

  .wd-best-tag {
    display: inline-block;
    background: rgba(0,212,172,0.12);
    border: 1px solid rgba(0,212,172,0.25);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.6rem;
    color: var(--tidal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }

  .camping-block {
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
  }
  .camping-header {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mist);
    margin-bottom: 8px;
  }
  .camping-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .camp-stat {
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .camp-stat span:first-child { font-size: 0.9rem; }
  .camp-stat span:last-child { color: var(--mist); }
  .camp-vibe {
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
  }
  .vibe-great  { background: rgba(0,212,172,0.1);  color: #00D4AC; border: 1px solid rgba(0,212,172,0.2); }
  .vibe-decent { background: rgba(245,166,35,0.1);  color: #F5A623; border: 1px solid rgba(245,166,35,0.2); }
  .vibe-rough  { background: rgba(245,166,35,0.1);   color: #F5A623; border: 1px solid rgba(245,166,35,0.2); }
  .vibe-grim   { background: rgba(230,57,70,0.1);   color: #E63946; border: 1px solid rgba(230,57,70,0.2); }

  .no-weekend {
    padding: 30px;
    text-align: center;
    color: var(--mist);
    font-size: 0.85rem;
  }

  /* ── M6 BUOY PANEL ── */
  .m6-panel {
    max-width: 1200px;
    margin: 0 auto 24px;
    background: rgba(0,212,172,0.06);
    border: 1px solid rgba(0,212,172,0.18);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .m6-loading {
    color: var(--mist);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
  }
  .m6-badge {
    font-size: 0.65rem;
    background: rgba(0,212,172,0.15);
    border: 1px solid rgba(0,212,172,0.3);
    color: var(--tidal);
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    white-space: nowrap;
  }
  .m6-label {
    font-size: 0.7rem;
    color: var(--mist);
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }
  .m6-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foam);
  }
  .m6-stat {
    text-align: center;
    min-width: 60px;
  }
  .m6-note {
    font-size: 0.68rem;
    color: var(--mist);
    margin-left: auto;
    font-style: italic;
  }
  .m6-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
  }

  /* ── SWELL MAP ── */
  .swell-map-section {
    max-width: 1200px;
    margin: 0 auto 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .swell-map-header {
    background: var(--surface);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tidal);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
  }
  .swell-map-sub {
    font-size: 0.65rem;
    color: var(--mist);
    font-weight: 400;
    letter-spacing: 0;
  }

  /* ── COUNTY STRIP ── */
  .county-strip {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .county-strip-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mist);
    font-family: var(--font-mono);
    white-space: nowrap;
    margin-right: 4px;
  }
  .county-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
  }
  .county-chip-medal { font-size: 1rem; flex-shrink: 0; }
  .county-chip-body { flex: 1; min-width: 0; }
  .county-chip-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--foam);
    white-space: nowrap;
  }
  .county-chip-spot {
    font-size: 0.65rem;
    color: var(--mist);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .county-chip-score {
    font-size: 1.3rem;
    font-weight: 900;
    font-family: var(--font-mono);
    line-height: 1;
    flex-shrink: 0;
  }
  .county-chip-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    width: 36px;
  }
  .county-chip-swell {
    font-size: 0.62rem;
    color: var(--mist);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-mono);
  }

  /* ── DEBUG PANEL ── */
  .debug-panel {
    max-width: 1200px;
    margin: 0 auto 32px;
    border: 1px solid rgba(255,100,100,0.2);
    border-radius: 10px;
    overflow: hidden;
    font-family: monospace;
    font-size: 0.72rem;
  }
  .debug-toggle {
    background: rgba(255,100,100,0.08);
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,150,150,0.7);
    user-select: none;
  }
  .debug-toggle:hover { background: rgba(255,100,100,0.12); }
  .debug-body {
    display: none;
    padding: 12px 14px;
    background: rgba(0,0,0,0.3);
    max-height: 260px;
    overflow-y: auto;
  }
  .debug-body.open { display: block; }
  .debug-entry {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--mist);
    line-height: 1.5;
  }
  .debug-entry.ok   { color: #00D4AC; }
  .debug-entry.err  { color: #E63946; }
  .debug-entry.info { color: #7AB8D4; }

  /* ─── MOBILE RESPONSIVE ─────────────────────────────────────────────────────
     Target: phones 320px–600px (car park check, thumb-friendly)
     Strategy: single column, larger touch targets, hide non-essential chrome  */

  @media (max-width: 640px) {

    body { padding: 0; font-size: 15px; }

    /* Nav — brand hidden, just links scrollable */
    .nav-brand { display: none; }
    .nav-divider { display: none; }
    nav { padding: 0 8px; gap: 0; }
    .nav-link { padding: 12px 10px; font-size: 0.7rem; }

    /* Header */
    header { margin-bottom: 16px; padding: 16px 12px 8px; }
    header h1 { font-size: 1.3rem; letter-spacing: 2px; }
    header p, #updated-at { font-size: 0.7rem; }

    /* County strip */
    .county-strip { flex-direction: column; padding: 0 12px; margin-bottom: 12px; }
    .county-chip { max-width: 100%; min-width: unset; }

    /* Spot grid — single column */
    .spots-grid {
      grid-template-columns: 1fr;
      gap: 12px;
      padding: 0 10px;
      margin-bottom: 24px;
    }

    /* Spot card header */
    .spot-header { padding: 12px 14px; }
    .spot-name { font-size: 1rem; }
    .spot-meta { font-size: 0.65rem; }
    .score-number { font-size: 1.6rem; }
    .score-label { font-size: 0.6rem; }

    /* Beach diagram + conditions — stack vertically on small phones */
    .beach-diagram-wrap {
      flex-direction: column;
      align-items: flex-start;
      padding: 10px 14px 0;
      gap: 10px;
    }
    .beach-diagram-svg { width: 120px; height: 120px; }
    .beach-conditions-right { width: 100%; }

    /* Condition values */
    .bc-value { font-size: 0.95rem; }
    .bc-sub { font-size: 0.65rem; }
    .bc-label { font-size: 0.55rem; width: 32px; }

    /* Big wave height */
    .beach-diagram-wrap > div > div[style*="2.2rem"] {
      font-size: 1.8rem !important;
    }

    /* Wind badge */
    .wind-badge { font-size: 0.5rem; padding: 2px 4px; }

    /* Ideal box */
    .ideal-box { margin: 8px 14px 10px; font-size: 0.68rem; padding: 7px 10px; }

    /* Tide strip */
    .tide-bar { padding: 8px 14px; }
    .tide-bar svg { min-width: 0; }

    /* Forecast */
    .forecast-section { padding: 10px 14px; }
    .forecast-title { font-size: 0.65rem; margin-bottom: 8px; }
    .forecast-row {
      grid-template-columns: 54px 1fr 48px;
      gap: 6px;
      padding: 6px 0;
    }
    .fc-day { font-size: 0.7rem; }
    .fc-detail { font-size: 0.65rem; }
    .fc-score { font-size: 0.8rem; }
    .fc-label { font-size: 0.55rem; }
    .fc-toggle { font-size: 0.65rem; padding: 7px; }

    /* Hourly table — horizontal scroll */
    .hourly-table { font-size: 0.6rem; }
    .hourly-table th { padding: 5px 6px; font-size: 0.52rem; }
    .hourly-table td { padding: 4px 6px; }

    /* M6 panel */
    .m6-panel { padding: 10px 14px; margin: 0 10px 16px; }
    .m6-value { font-size: 0.85rem; }
    .m6-label { font-size: 0.6rem; }
    .m6-stat { min-width: 44px; }
    .m6-divider { height: 24px; }
    .m6-badge { font-size: 0.58rem; }

    /* Swell map — shorter on mobile */
    .swell-map-section { margin: 0 10px 16px; }
    .swell-map-section iframe { height: 280px; }
    .swell-map-header { padding: 10px 14px; font-size: 0.75rem; }
    .swell-map-sub { font-size: 0.6rem; }

    /* Weekend section */
    .weekend-section { padding: 0 10px; }
    .weekends-grid { grid-template-columns: 1fr; gap: 12px; }
    .weekend-card-header { padding: 12px 14px; }
    .weekend-dates { font-size: 0.85rem; }
    .weekend-subtitle { font-size: 0.65rem; }
    .weekend-day { padding: 10px 12px; }
    .wd-label { font-size: 0.6rem; margin-bottom: 6px; }
    .wd-spot-row { font-size: 0.68rem; }
    .wd-spot-score { font-size: 0.75rem; }
    .wd-best-tag { font-size: 0.55rem; padding: 2px 5px; }
    .camping-block { padding: 10px 12px; }
    .camping-stats { gap: 8px; }
    .camp-stat { font-size: 0.65rem; }
    .camp-vibe { font-size: 0.72rem; padding: 5px 8px; }

    /* Debug panel */
    .debug-panel { margin: 0 10px 20px; font-size: 0.65rem; }

    /* Section title */
    .section-title { font-size: 0.72rem; margin-bottom: 14px; }

    /* Weekend header */
    .weekend-section-header h2 { font-size: 0.75rem; }
  }

  /* Medium — tablet portrait */
  @media (min-width: 641px) and (max-width: 900px) {
    .spots-grid { grid-template-columns: 1fr; padding: 0 16px; }
    .weekends-grid { grid-template-columns: 1fr; }
    .county-strip { flex-wrap: wrap; }
  }

  /* ─── ENHANCED TIDE PANEL ────────────────────────────────────────────────── */
  .tide-panel {
    padding: 10px 16px 8px;
    border-top: 1px solid var(--border);
  }
  .tide-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }
  .tide-panel-label {
    font-size: 0.6rem;
    color: var(--mist);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-mono);
  }
  .tide-panel-now {
    display: flex;
    align-items: baseline;
    gap: 5px;
  }
  .tide-panel-ht {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tidal);
    font-family: var(--font-mono);
  }
  .tide-panel-state {
    font-size: 0.62rem;
    color: var(--mist);
  }
  .tide-panel-events {
    display: flex;
    gap: 10px;
  }
  .tide-event-pill {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
  }
  .tide-event-pill.high { background: rgba(0,212,172,0.12); color: var(--tidal); }
  .tide-event-pill.low  { background: rgba(245,166,35,0.12);  color: #F5A623; }
  .tide-status-bar {
    margin-top: 6px;
    font-size: 0.62rem;
    padding: 4px 8px;
    border-radius: 5px;
    font-family: var(--font-mono);
  }
  .tide-status-bar.optimal  { background: rgba(0,212,172,0.12); color: #00D4AC; }
  .tide-status-bar.good     { background: rgba(0,212,172,0.10); color: var(--tidal); }
  .tide-status-bar.marginal { background: rgba(245,166,35,0.10); color: #F5A623; }
  .tide-status-bar.poor     { background: rgba(230,57,70,0.10); color: #E63946; }

  /* ─── TIDE PANEL ─────────────────────────────────────────────────────────── */
  .tide-panel { padding: 10px 16px 8px; border-top: 1px solid var(--border); }
  .tide-status-optimal  { background: rgba(0,212,172,0.12); color: #00D4AC; }
  .tide-status-good     { background: rgba(0,212,172,0.10); color: var(--tidal); }
  .tide-status-marginal { background: rgba(245,166,35,0.10);  color: #F5A623; }
  .tide-status-poor     { background: rgba(230,57,70,0.10);  color: #E63946; }

  /* Tide summary in forecast rows */
  .fc-tide-summary { border-top: 1px solid rgba(255,255,255,0.04); }

  /* ── NAV — scrollable on mobile with fade affordance ── */
  nav {
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .nav-link, .nav-brand, .nav-divider { flex-shrink: 0; }

  @media (max-width: 640px) {
    .nav-brand   { display: inline-block !important; font-size: 0.7rem !important; padding: 12px 8px 12px 0 !important; margin-right: 4px !important; }
    .nav-divider { display: none !important; }
    .nav-link    { padding: 12px 10px !important; font-size: 0.68rem !important; }
  }


  /* ── NAV REGIONAL DROPDOWNS ── */
  .nav-dropdown { position: relative; flex-shrink: 0; display: inline-flex; align-items: stretch; }
  .nav-dropdown-btn {
    background: transparent;
    border-top: 0; border-left: 0; border-right: 0;
    cursor: pointer; font: inherit; color: inherit;
    -webkit-appearance: none; appearance: none;
    display: inline-flex; align-items: center;
  }
  .nav-dropdown-btn .caret {
    font-size: 0.75em; margin-left: 4px;
    display: inline-block; transition: transform 0.18s; opacity: 0.7;
  }
  .nav-dropdown.open .nav-dropdown-btn .caret { transform: rotate(180deg); opacity: 1; }
  .nav-dropdown-menu {
    position: fixed; display: none; z-index: 200;
    min-width: 140px;
    background: rgba(9,25,41,0.96);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 4px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-link {
    display: block; padding: 9px 14px;
    font-size: 0.75rem; color: var(--mist);
    text-decoration: none; white-space: nowrap;
    transition: color 0.15s, background 0.15s; font-weight: 500;
  }
  .nav-dropdown-link:hover { color: var(--foam); background: rgba(255,255,255,0.04); }
  .nav-dropdown-link.active { color: var(--tidal); background: rgba(0,212,172,0.08); }
  @media (max-width: 640px) {
    .nav-dropdown-link { padding: 10px 14px !important; font-size: 0.7rem !important; }
  }

  /* Unified nav font sizes */
  nav .nav-brand,
  nav .nav-link,
  nav .nav-dropdown-btn {
    font-size: 0.8rem !important;
  }
  @media (max-width: 640px) {
    nav .nav-brand,
    nav .nav-link,
    nav .nav-dropdown-btn {
      font-size: 0.7rem !important;
    }
  }


  /* ── LIGHT THEME SCOPED OVERRIDES (active only when [data-theme="light"]) ── */
  [data-theme="light"] body { background: #f2f6f9; color: #0C2033; }
  [data-theme="light"] header h1 { color: #0C2033; }
  [data-theme="light"] header p,
  [data-theme="light"] #updated-at { color: #5A8AA0; }

  [data-theme="light"] .spot-card { background: #ffffff; border: 1px solid #dde5ea; box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
  [data-theme="light"] .spot-header { background: #ffffff; border-bottom: 2px solid #00D4AC; }
  [data-theme="light"] .spot-name { color: #0C2033; }
  [data-theme="light"] .spot-meta { color: #6A8EA0; }

  [data-theme="light"] .ideal-box { background: #f4f9fc; border: 1px solid #d0e4ef; color: #4A7A90; }
  [data-theme="light"] .ideal-label,
  [data-theme="light"] .ideal-tide-note,
  [data-theme="light"] .ideal-box strong { color: #007060; }

  [data-theme="light"] .forecast-section { background: #ffffff; }
  [data-theme="light"] .forecast-row { border-bottom: 1px solid #eef4f8; }
  [data-theme="light"] .forecast-title { color: #8AAFC0; text-transform: uppercase; }
  [data-theme="light"] .fc-day { color: #6A8EA0; }
  [data-theme="light"] .fc-ht  { color: #8AAFC0; }

  [data-theme="light"] .badge-onshore       { background: rgba(192,48,58,0.10); color: #C0303A; border: 1px solid rgba(192,48,58,0.20); }
  [data-theme="light"] .badge-offshore,
  [data-theme="light"] .badge-offshore-plus { background: rgba(0,168,130,0.10); color: #00785A; border: 1px solid rgba(0,168,130,0.20); }
  [data-theme="light"] .badge-cross,
  [data-theme="light"] .badge-cross-off     { background: rgba(176,120,0,0.10); color: #8A6000; border: 1px solid rgba(176,120,0,0.20); }

  [data-theme="light"] .tide-bar-fill.tide-optimal { background: rgba(0,168,130,0.5); }
  [data-theme="light"] .tide-bar-fill.tide-high    { background: rgba(0,168,130,0.3); }
  [data-theme="light"] .tide-bar-fill.tide-low     { background: rgba(176,120,0,0.3); }
  [data-theme="light"] .tide-time-label            { color: #8AAFC0; }

  /* Nav always stays dark regardless of theme */
  [data-theme="light"] .nav,
  [data-theme="light"] nav { background: #091929 !important; }

  /* Theme toggle button */
  #theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #5A9AB8;
    padding: 4px;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
  }
  #theme-toggle:hover { opacity: 1; color: #00D4AC; }


  /* ─── NAV (matches ireland.html) ─── */
  .nav { position:sticky; top:0; z-index:200; height:50px; background:rgba(8,14,22,0.92); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom:1px solid rgba(50,120,170,0.28); display:flex; align-items:center; justify-content:space-between; padding:0 24px; gap:16px; }
  .nav-logo { font-family:'Space Grotesk',sans-serif; font-size:16px; font-weight:700; color:#EBF4FA; letter-spacing:.06em; display:flex; align-items:center; gap:9px; flex-shrink:0; text-decoration:none; }
  .nav-logo span { color:#00D4AC; }
  .nav-links { display:flex; align-items:center; gap:2px; overflow-x:auto; scrollbar-width:none; flex:1; }
  .nav-links::-webkit-scrollbar { display:none; }
  .nl { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; color:#5A9AB8; letter-spacing:.03em; text-transform:uppercase; padding:5px 9px; border-radius:3px; white-space:nowrap; transition:color .15s, background .15s; text-decoration:none; }
  .nl:hover { color:#00D4AC; background:rgba(0,212,172,0.10); }
  .nl.on { color:#00D4AC; }
  .nav-live { display:flex; align-items:center; gap:5px; font-family:'JetBrains Mono',monospace; font-size:10px; color:#00D4AC; letter-spacing:.08em; flex-shrink:0; }
  .dot { width:5px; height:5px; background:#00D4AC; border-radius:50%; animation:blink 2s infinite; }
  @keyframes blink { 0%,100% { opacity:1 } 50% { opacity:.3 } }
  /* Mobile-only right-edge fade indicator (removed white streak on desktop) */
  @media (max-width: 768px) {
    .nav::after {
      content:'';
      position:sticky; right:0; top:0;
      align-self:stretch; flex-shrink:0;
      width:40px;
      background:linear-gradient(to right, rgba(8,14,22,0), rgba(8,14,22,0.92));
      pointer-events:none;
    }
  }

/* ── COUNTY PAGE V2 (H.1) ─────────────────────────────────────────────────── */

body { padding: 0; }
.page { max-width: 1200px; margin: 0 auto; padding: 20px 16px; }

/* ── HERO ── */
.c-hero { margin-bottom: 24px; }
.c-hero-crumb { font-family: var(--font-mono); font-size: 0.7rem; color: var(--mist); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.c-hero-crumb a { color: var(--mist); text-decoration: none; }
.c-hero-crumb a:hover { color: var(--foam); }
.c-hero-sep { color: var(--border); }
.c-hero-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--tidal); letter-spacing: 0.04em; line-height: 1.1; }
.c-hero-sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--mist); letter-spacing: 0.08em; margin-top: 4px; margin-bottom: 16px; }
.c-hero-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: var(--deep); margin-bottom: 16px; border: 1px solid var(--border-dim); }
.c-hero-bar-l { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); font-family: var(--font-display); }
.c-hero-bar-r { font-family: var(--font-mono); font-size: 0.7rem; color: var(--mist); }
.c-hero-grid { display: grid; grid-template-columns: 250px 1fr 230px; gap: 14px; align-items: stretch; }
.c-hero-outlook { background: var(--surface); border: 1px solid var(--border-dim); display: flex; flex-direction: column; overflow: hidden; }
.c-hero-chart-inner { flex: 1; overflow: hidden; }
.c-hero-7grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border-dim); }
.c-hero-7day { background: var(--surface); display: flex; flex-direction: column; }
.c-hero-7day-h { padding: 4px 2px 3px; text-align: center; border-bottom: 1px solid var(--border-dim); }
.c-hero-7day-h .n { font-family: var(--font-display); font-size: 9px; font-weight: 700; color: var(--foam); text-transform: uppercase; letter-spacing: 0.04em; }
.c-hero-7day-h .dt { font-family: var(--font-mono); font-size: 8px; color: var(--fog); margin-top: 1px; }
.c-hero-7peak { padding: 3px 2px; text-align: center; font-family: var(--font-mono); font-size: 8px; color: var(--foam); font-weight: 600; border-bottom: 1px solid var(--border-dim); }
.c-hero-7bars { height: 80px; padding: 3px 1px; display: flex; align-items: flex-end; justify-content: center; gap: 1px; background: var(--abyss); }
.c-hero-7bar { flex: 1; min-height: 3px; max-width: 9px; }
.c-hero-7bar.empty { background: var(--border-dim); opacity: 0.3; }
.c-hero-7winds { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--border-dim); }
.c-hero-7w { padding: 4px 1px; text-align: center; border-right: 1px solid var(--border-dim); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.c-hero-7w:last-child { border-right: none; }
.c-hero-7w .ar { font-size: 12px; line-height: 1; color: var(--foam); }
.c-hero-7w .compass { font-family: var(--font-display); font-size: 7px; letter-spacing: 0.06em; color: var(--fog); font-weight: 700; text-transform: uppercase; }
.c-hero-7w-bar { height: 3px; width: 100%; background: var(--border-dim); }
.c-hero-7w-bar.go   { background: var(--tidal); }
.c-hero-7w-bar.fair { background: var(--amber); }
.c-hero-7w-bar.bad  { background: var(--storm); }
.c-hero-7score { padding: 4px 2px; text-align: center; font-family: var(--font-display); font-size: 9px; font-weight: 800; letter-spacing: 0.02em; }
.c-hero-7score.go   { background: var(--tidal); color: #0C2033; }
.c-hero-7score.fair { background: var(--amber); color: #0C2033; }
.c-hero-7score.bad  { background: var(--storm); color: #fff; }
.c-hero-counts { padding: 8px 12px; border-top: 1px solid var(--border-dim); display: flex; gap: 6px; flex-wrap: wrap; }
.c-count-pill { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; }
.c-count-pill.go   { background: var(--tidal); color: #0C2033; }
.c-count-pill.fair { background: var(--amber); color: #0C2033; }
.c-count-pill.bad  { background: var(--storm); color: #fff; }
.c-count-pill .n { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0; }
.c-hero-side { background: var(--surface); padding: 14px; border: 1px solid var(--border-dim); }
.c-hero-side-h { font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; }
.c-hero-tide { display: grid; grid-template-columns: auto 1fr auto; gap: 3px 10px; align-items: center; margin-bottom: 4px; }
.c-hero-tide .tt { font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); }
.c-hero-tide .tm { font-family: var(--font-mono); font-size: 0.75rem; color: var(--foam); }
.c-hero-tide .th { font-family: var(--font-mono); font-size: 0.7rem; text-align: right; }
.c-hero-day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.c-hero-day-cell { background: var(--deep); padding: 5px 8px; }
.c-hero-day-cell .l { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); font-family: var(--font-display); }
.c-hero-day-cell .v { font-size: 0.62rem; color: var(--foam); font-family: var(--font-mono); margin-top: 2px; }

/* ── HERO BLOCK HEADER ── */
.c-hero-block-h { font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--foam); padding: 8px 16px; background: var(--abyss); line-height: 1; }
/* ── LEADER CARD ── */
.c-hero-leader { display: flex; flex-direction: column; }
.c-hero-leader-link { display: grid; grid-template-columns: 108px 1fr; grid-template-rows: auto auto; gap: 10px; padding: 12px; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border-dim); flex: 1; align-items: start; }
.c-hero-leader-link:hover { background: rgba(255,255,255,0.03); }
[data-theme="light"] .c-hero-leader-link:hover { background: rgba(0,0,0,0.04); }
.c-hero-leader-diag { width: 100px; height: 100px; grid-row: 1 / 2; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-dim); background: var(--raised); overflow: hidden; }
.c-hero-leader-diag svg { width: 100%; height: 100%; }
.c-hero-leader-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; grid-column: 2 / 3; grid-row: 1 / 2; }
.c-hero-leader-name { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--foam); text-transform: none; letter-spacing: -0.005em; line-height: 1.15; }
.c-hero-leader-type { font-family: var(--font-mono); font-size: 9px; color: var(--fog); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.c-hero-leader-size { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--foam); line-height: 1; margin-top: 2px; }
.c-hero-leader-size .u { font-size: 0.65rem; color: var(--fog); font-weight: 500; margin-left: 2px; }
.c-hero-leader-wind { display: flex; align-items: baseline; gap: 5px; font-family: var(--font-mono); font-size: 11px; color: var(--foam); font-weight: 600; margin-top: 4px; flex-wrap: wrap; }
.c-hero-leader-wind .arr { font-size: 13px; font-weight: 400; }
.c-hero-leader-wind .arr.off { color: var(--tidal); }
.c-hero-leader-wind .arr.cross { color: var(--amber); }
.c-hero-leader-wind .arr.on { color: var(--storm); }
.c-hero-leader-wind .tag { font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 5px; }
.c-hero-leader-wind .tag.off { color: var(--tidal); }
.c-hero-leader-wind .tag.cross { color: var(--amber); }
.c-hero-leader-wind .tag.on { color: var(--storm); }
.c-hero-leader-score { grid-column: 1 / 3; grid-row: 2 / 3; padding: 6px 10px; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #fff !important; letter-spacing: 0.06em; text-align: center; }
.c-hero-leader-score.go   { background: var(--tidal); color: #0C2033 !important; }
.c-hero-leader-score.fair { background: var(--amber); color: #0C2033 !important; }
.c-hero-leader-score.bad  { background: var(--storm); }

/* ── CONTROLS ── */
.c-controls { margin-bottom: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.c-controls-tabs { display: flex; gap: 3px; background: var(--deep); border-radius: 8px; padding: 3px; border: 1px solid var(--border-dim); }
.c-tab { background: transparent; border: none; color: var(--mist); font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; padding: 6px 14px; border-radius: 5px; cursor: pointer; transition: background 0.15s, color 0.15s; letter-spacing: 0.02em; }
.c-tab:hover { color: var(--foam); }
.c-tab.active { background: var(--raised); color: var(--foam); }

/* ── RANKED TABLE ── */
.c-table-wrap { background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-dim); margin-bottom: 20px; }
.c-table { width: 100%; border-collapse: collapse; }
.c-table thead th { background: var(--deep); padding: 8px 12px; text-align: left; font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); border-bottom: 1px solid var(--border-dim); }
.c-table thead th.col-score { text-align: center; }
.c-row { border-bottom: 1px solid rgba(46,96,128,0.2); cursor: pointer; transition: background 0.12s; }
.c-row:last-child { border-bottom: none; }
.c-row:hover { background: var(--raised); }
.c-table td { padding: 10px 12px; vertical-align: middle; }
.col-name { min-width: 120px; }
.c-spot-name { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--foam); }
.c-spot-sub  { font-size: 0.65rem; color: var(--mist); font-family: var(--font-body); margin-top: 2px; }
.col-height { min-width: 60px; }
.c-height     { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--foam); }
.c-height-sub { font-size: 0.62rem; color: var(--mist); margin-top: 2px; font-family: var(--font-mono); }
.c-swell-line { display: flex; align-items: center; gap: 4px; }
.c-swell-arrow { font-size: 15px; color: var(--tidal); }
.c-swell-val   { font-size: 0.75rem; color: var(--mist); }
.c-wind-line { display: flex; align-items: center; gap: 4px; }
.c-wind-arrow { font-size: 15px; color: var(--fog); }
.c-wind-val   { font-size: 0.75rem; color: var(--mist); }
.c-wind-tag   { display: block; font-family: var(--font-display); font-size: 0.57rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fog); margin-top: 2px; }
/* Wind quality backgrounds on the td */
.col-wind.c-wind-off   { background: rgba(0,212,172,0.06); }
.col-wind.c-wind-cross { background: rgba(245,166,35,0.06); }
.col-wind.c-wind-on    { background: rgba(230,57,70,0.05); }
.col-wind.c-wind-off   .c-wind-arrow { color: var(--tidal); }
.col-wind.c-wind-cross .c-wind-arrow { color: var(--amber); }
.col-wind.c-wind-on    .c-wind-arrow { color: var(--storm); }
.col-wind.c-wind-off   .c-wind-tag { color: var(--tidal); }
.col-wind.c-wind-cross .c-wind-tag { color: var(--amber); }
.col-wind.c-wind-on    .c-wind-tag { color: var(--storm); }
.c-tide-state  { font-size: 0.75rem; color: var(--mist); }
.c-tide-align  { font-size: 0.6rem; color: var(--tidal); margin-top: 2px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; }
.c-peak-score  { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 700; }
.c-peak-time   { font-size: 0.62rem; color: var(--mist); font-family: var(--font-body); margin-top: 2px; }
.col-score { text-align: center; min-width: 56px; }
.c-score-go   { background: var(--tidal);  color: #0C2033; font-family: var(--font-mono); font-weight: 800; font-size: 1rem; }
.c-score-fair { background: var(--amber);  color: #0C2033; font-family: var(--font-mono); font-weight: 800; font-size: 1rem; }
.c-score-bad  { background: var(--storm);  color: #fff;    font-family: var(--font-mono); font-weight: 800; font-size: 1rem; }
.c-table-loading { text-align: center; padding: 28px; color: var(--mist); }

/* ── 7-DAY MATRIX ── */
.c-matrix-wrap { margin-bottom: 24px; }
.c-matrix-bar { display: flex; align-items: center; padding: 7px 12px; background: var(--deep); border-radius: 8px 8px 0 0; border: 1px solid var(--border-dim); border-bottom: none; }
.c-matrix-bar-l { font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
.c-matrix { background: var(--surface); border-radius: 0 0 8px 8px; border: 1px solid var(--border-dim); overflow-x: auto; }
.c-matrix table { border-collapse: collapse; width: 100%; min-width: 500px; }
.c-matrix th, .c-matrix td { padding: 7px 10px; border: 1px solid rgba(46,96,128,0.12); }
.c-matrix thead th { background: var(--deep); font-family: var(--font-display); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); text-align: center; white-space: nowrap; }
.c-matrix thead th:first-child { text-align: left; }
.c-matrix tbody td:first-child { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--foam); min-width: 120px; white-space: nowrap; }
.c-matrix tbody td { text-align: center; }
.mtx-cell { display: inline-block; padding: 3px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; min-width: 36px; text-align: center; }
.mtx-cell.go   { background: rgba(0,212,172,0.18); color: var(--tidal); }
.mtx-cell.fair { background: rgba(245,166,35,0.18); color: var(--amber); }
.mtx-cell.bad  { background: rgba(230,57,70,0.12);  color: var(--storm); }

/* ── MOBILE ── */
@media (max-width: 700px) {
  .c-hero-grid { grid-template-columns: 1fr; }
  .c-hero-leader { display: none; }
  .c-hero-side { display: none; }
  .c-hero-title { font-size: 1.5rem; }
  .col-tide, .col-peak { display: none; }
  .c-table thead th.col-tide, .c-table thead th.col-peak { display: none; }
}

/* ── LIGHT THEME ── */
[data-theme="light"] .c-hero-outlook,
[data-theme="light"] .c-hero-side { background: #fff; border-color: var(--border); }
[data-theme="light"] .c-hero-day-cell { background: var(--raised); }
[data-theme="light"] .c-hero-bar { background: var(--raised); border-color: var(--border); }
[data-theme="light"] .c-table-wrap { background: #fff; border-color: var(--border); }
[data-theme="light"] .c-table thead th { background: var(--raised); }
[data-theme="light"] .c-row:hover { background: var(--raised); }
[data-theme="light"] .c-controls-tabs { background: var(--raised); border-color: var(--border); }
[data-theme="light"] .c-tab.active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
[data-theme="light"] .c-matrix-bar { background: var(--raised); border-color: var(--border); }
[data-theme="light"] .c-matrix { background: #fff; border-color: var(--border); }
[data-theme="light"] .c-matrix thead th { background: var(--raised); }
[data-theme="light"] .c-score-go   { color: #fff; }
[data-theme="light"] .c-score-fair { color: #fff; }
