/* SDSURFONLINE — design tokens
   Palette: San Diego blue sky, clear blue-green water, white foam,
   white/tan sand and the gold mica flecks of Coronado's beach. */
:root {
  /* Dark = sunset session: deep Pacific water, warm sand, mica-gold highlights */
  --bg: #04283a;
  --bg-alt: #06324a;
  --panel: #0a3a52;
  --panel-2: #0e4862;
  --line: #1b5d76;
  --text: #f1f8fa;
  --muted: #a3c7d2;
  --accent: #3ddcc4;        /* clear blue-green water */
  --accent-2: #5ab8f0;      /* sky */
  --on-accent: #032a30;
  --sun: #e8b84a;           /* Coronado mica gold */
  --mica: #f3cf6b;
  --sky-1: #0b3d63; --sky-2: #1c6a8f;
  --sea-1: #0e7c93; --sea-2: #13a5ad; --sea-3: #2cc7bd;
  --foam: rgba(255, 255, 255, .85);
  --sand-1: #cdb68a; --sand-2: #a98d5f;
  --shadow: 0 10px 30px rgba(0, 18, 28, .4);
  --radius: 16px;
  --r-flat: #64748b; --r-poor: #f87171; --r-pf: #fb923c; --r-fair: #facc15; --r-fg: #4ade80; --r-good: #2dd4bf; --r-epic: #c084fc;
  --wq-open: #22c55e; --wq-advisory: #eab308; --wq-warning: #f97316; --wq-closure: #ef4444;
  color-scheme: dark;
}
:root[data-theme="light"] {
  /* Light = Coronado at noon: blue sky, turquoise surf, white sand */
  --bg: #fbf8f1;            /* white sand */
  --bg-alt: #f3ead6;        /* warm tan sand */
  --panel: #ffffff;
  --panel-2: #eef7f8;       /* sea-glass */
  --line: #e2d7bd;
  --text: #0a2c3d;
  --muted: #557583;
  --accent: #0b9c95;        /* blue-green water */
  --accent-2: #1e88d6;      /* sky */
  --on-accent: #ffffff;
  --sun: #c9971c;           /* mica gold, darkened for contrast on sand */
  --mica: #e9bf45;
  --sky-1: #4aa9e8; --sky-2: #bfe5fb;
  --sea-1: #1b8fb5; --sea-2: #22b3bd; --sea-3: #5fd6cc;
  --foam: rgba(255, 255, 255, .95);
  --sand-1: #f4e8cc; --sand-2: #e2cc9c;
  --shadow: 0 8px 24px rgba(10, 44, 61, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
button, select, input { font: inherit; color: inherit; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "Space Grotesk"; font-weight: 700; letter-spacing: .04em; font-size: 18px; }
.brand svg { width: 34px; height: 34px; color: var(--accent); }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; white-space: nowrap; font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--panel); }
.icon-btn { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }

/* Alerts */
.alerts { background: linear-gradient(90deg, #7a1d1d, #9a3412); color: #fff; }
.alerts .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 0; font-size: 14px; }
.alerts details summary { cursor: pointer; font-weight: 600; }
.alerts details p { white-space: pre-line; max-width: 900px; opacity: .92; }
.alerts.mild { background: linear-gradient(90deg, #854d0e, #a16207); }

/* Hero */
.hero { position: relative; padding: 56px 0 150px; overflow: hidden; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 78%, var(--sea-3) 100%); }
.hero-bg { position: absolute; inset: auto 0 0 0; height: 190px; pointer-events: none; }
.hero-bg svg { position: absolute; left: 0; bottom: 34px; width: 200%; height: 150px; }
.hero-bg .w1 { fill: var(--sea-1); animation: drift 22s linear infinite; }
.hero-bg .w2 { fill: var(--sea-2); animation: drift 14s linear infinite reverse; }
.hero-bg .w3 { fill: var(--sea-3); animation: drift 9s linear infinite; }
.hero-bg .foam { fill: none; stroke: var(--foam); stroke-width: 5; stroke-linecap: round; animation: drift 9s linear infinite, wash 4.5s ease-in-out infinite; }
@keyframes wash { 50% { opacity: .45; } }
.hero-bg .foam.soft { stroke-width: 3; opacity: .55; animation-duration: 14s, 6s; animation-direction: reverse, normal; }
/* Whitewash running up the beach and pulling back */
.sand::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 14px; z-index: 1;
  background: linear-gradient(var(--foam), var(--foam)) 0 0 / 100% 4px no-repeat,
    radial-gradient(ellipse 70% 100% at 50% 0, var(--foam) 74%, transparent 78%) 0 0 / 70px 14px repeat-x;
  animation: shore 5s ease-in-out infinite; }
@keyframes shore { 0%, 100% { transform: translateY(0); opacity: .95; } 55% { transform: translateY(9px); opacity: .35; } }
/* Sand strip with twinkling gold mica flecks (Coronado) */
.sand { position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background:
    radial-gradient(circle, var(--mica) 0 1px, transparent 1.6px) 0 0 / 23px 13px,
    radial-gradient(circle, rgba(255,255,255,.9) 0 .8px, transparent 1.4px) 7px 5px / 31px 17px,
    radial-gradient(circle, var(--mica) 0 .9px, transparent 1.5px) 13px 9px / 41px 11px,
    linear-gradient(180deg, var(--sand-1), var(--sand-2)); }
.sand::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, #fff6c8 0 1.2px, transparent 2px) 3px 4px / 57px 19px,
              radial-gradient(circle, var(--mica) 0 1.3px, transparent 2px) 29px 12px / 73px 23px;
  animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg path, .sand::after, .sand::before { animation: none; } html { scroll-behavior: auto; } }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; margin: 0 0 10px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 60px); max-width: 860px; letter-spacing: -.02em; }
:root[data-theme="light"] .hero .eyebrow { color: #0a3d5c; }
:root[data-theme="light"] .hero .lede { color: #18465c; }
:root[data-theme="light"] .hero .grad { background-image: linear-gradient(90deg, #06627c, #0a8f86); }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); max-width: 640px; font-size: 17px; margin: 14px 0 30px; }
.now-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative; }
.now-card { background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-height: 118px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
a.now-card:hover { border-color: var(--accent); }
.now-card .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.now-card .v { font-family: "Space Grotesk"; font-size: 28px; font-weight: 700; line-height: 1.1; }
.now-card .v small { font-size: 15px; color: var(--muted); font-weight: 500; }
.now-card .d { color: var(--muted); font-size: 13px; }
.skeleton { background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 6px 0 0; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
h3.minor { margin: 34px 0 12px; font-size: 18px; }
h3.minor .muted { font-family: Inter; font-weight: 400; font-size: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h3 { font-size: 16px; margin-bottom: 12px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 7px 13px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip .n { opacity: .7; margin-left: 4px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }
.btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.select, .search { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.range-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

/* Cams */
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.cam-grid.multi { grid-template-columns: repeat(2, 1fr); }
.cam { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cam-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.cam-media img, .cam-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.cam-play { position: absolute; inset: 0; border: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); cursor: pointer; display: grid; place-items: center; padding: 0; }
.cam-play span { width: 62px; height: 62px; border-radius: 50%; background: rgba(6, 20, 31, .72); display: grid; place-items: center; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); transition: transform .15s; }
.cam-play:hover span { transform: scale(1.08); }
.cam-play svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.live { position: absolute; top: 10px; left: 10px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; display: flex; align-items: center; gap: 6px; z-index: 2; pointer-events: none; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.5s infinite; }
.live.off { background: #475569; }
.live.off::before { animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
.cam-body { padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cam-body h3 { font-size: 15.5px; }
.cam-body .meta { color: var(--muted); font-size: 12.5px; }
.cam-cond { font-size: 12.5px; text-align: right; white-space: nowrap; }
.cam-cond b { display: block; font-family: "Space Grotesk"; font-size: 16px; }
.link-cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.link-cam { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; color: var(--text); text-decoration: none; }
.link-cam:hover { border-color: var(--accent); }
.link-cam svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.link-cam small { display: block; color: var(--muted); font-size: 12px; }

/* Surf */
.srf { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.srf .card { padding: 14px 16px; }
.srf .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.srf .v { font-family: "Space Grotesk"; font-size: 20px; font-weight: 600; margin-top: 2px; }
.risk { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.risk.low { background: color-mix(in srgb, var(--wq-open) 22%, transparent); color: var(--wq-open); }
.risk.moderate { background: color-mix(in srgb, var(--wq-advisory) 22%, transparent); color: var(--wq-advisory); }
.risk.high { background: color-mix(in srgb, var(--wq-closure) 22%, transparent); color: var(--wq-closure); }
.surf-list { display: flex; flex-direction: column; gap: 8px; }
.region-title { margin: 18px 0 4px; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.beach { display: grid; grid-template-columns: 6px 1.6fr .8fr 1fr 1fr .8fr 1fr 34px; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 0; cursor: pointer; transition: border-color .15s, transform .15s; }
.beach:hover { border-color: var(--accent); }
.beach .bar { align-self: stretch; border-radius: 14px 0 0 14px; }
.beach .name { font-weight: 600; }
.beach .name small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.beach .ht { font-family: "Space Grotesk"; font-weight: 700; font-size: 22px; white-space: nowrap; }
.beach .ht small { font-size: 13px; color: var(--muted); font-weight: 500; }
.beach .cell { font-size: 13px; color: var(--muted); line-height: 1.35; }
.beach .cell b { color: var(--text); font-weight: 600; display: block; font-size: 14px; }
.rating { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: #08131c; }
.star { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 8px; }
.star svg { width: 20px; height: 20px; }
.star[aria-pressed="true"] { color: var(--sun); }
.arrow { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.wq-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; text-transform: capitalize; }

/* Drawer (beach detail) */
.drawer { border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(720px, 100vw); background: var(--bg); color: var(--text); box-shadow: -10px 0 40px rgba(0,0,0,.5); }
.drawer::backdrop { background: rgba(2, 8, 14, .6); backdrop-filter: blur(3px); }
.drawer[open] { animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-inner { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.drawer-head h2 { font-size: 28px; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kv > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kv .k { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kv .v { font-weight: 600; margin-top: 2px; }
.fc-chart svg, .hour-chart svg { width: 100%; height: auto; display: block; }
.fc-chart text, .hour-chart text, .tide-chart text { fill: var(--muted); font-size: 11px; font-family: Inter; }
.drawer .cam-media { border-radius: 12px; overflow: hidden; }

/* Tides */
.tide-card { display: grid; grid-template-columns: 1fr 260px; gap: 18px; }
.tide-chart svg { width: 100%; height: auto; display: block; }
.tide-list { display: flex; flex-direction: column; gap: 6px; max-height: 330px; overflow: auto; }
.tide-day { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-top: 8px; }
.tide-row { display: flex; justify-content: space-between; padding: 7px 10px; background: var(--panel-2); border-radius: 8px; font-size: 14px; }
.tide-row.past { opacity: .45; }
.tide-row b { font-family: "Space Grotesk"; }

/* Weather */
.weather-layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
.wx-now { display: flex; flex-direction: column; gap: 10px; }
.wx-big { display: flex; align-items: center; gap: 14px; }
.wx-big .t { font-family: "Space Grotesk"; font-size: 56px; font-weight: 700; line-height: 1; }
.wx-icon { font-size: 46px; line-height: 1; }
.wx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wx-stats div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--muted); }
.wx-stats b { display: block; color: var(--text); font-size: 15px; }
.hourly { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.hour { flex: 0 0 64px; text-align: center; background: var(--panel-2); border-radius: 12px; padding: 10px 4px; font-size: 13px; }
.hour .i { font-size: 22px; margin: 4px 0; }
.hour b { display: block; font-family: "Space Grotesk"; font-size: 16px; }
.hour .p { color: var(--accent-2); font-size: 11.5px; }
.wx-periods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.period { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.period h4 { font-size: 15px; }
.period .t { font-family: "Space Grotesk"; font-size: 24px; font-weight: 700; margin: 4px 0; }
.period p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* Maps */
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map { height: 460px; background: var(--panel); }
.map.tall { height: 540px; }
.map-badge { position: absolute; z-index: 500; top: 12px; right: 12px; background: rgba(6,20,31,.8); color: #fff; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.leaflet-container { font: inherit; background: var(--panel); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--text); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-control-attribution { font-size: 10.5px; }
.wq-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.wq-side { display: flex; flex-direction: column; gap: 10px; padding: 14px; max-height: 542px; }
.wq-list { list-style: none; margin: 0; padding: 0; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.wq-list li button { width: 100%; text-align: left; display: flex; gap: 10px; align-items: center; background: none; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; }
.wq-list li button:hover { background: var(--panel-2); }
.wq-list small { color: var(--muted); display: block; font-size: 12px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.open { background: var(--wq-open); } .dot.advisory { background: var(--wq-advisory); } .dot.warning { background: var(--wq-warning); } .dot.closure { background: var(--wq-closure); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }

/* Buoys */
.buoy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.buoy { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.buoy h3 { font-size: 15px; grid-column: 1 / -1; }
.buoy .big { font-family: "Space Grotesk"; font-size: 26px; font-weight: 700; }
.buoy .big small { font-size: 14px; color: var(--muted); }
.buoy .meta { color: var(--muted); font-size: 12.5px; grid-column: 1 / -1; }
.compass-rose { width: 48px; height: 48px; }

/* Footer */
.footer { border-top: 3px solid var(--sun); padding: 36px 0 48px; background: radial-gradient(circle, color-mix(in srgb, var(--mica) 55%, transparent) 0 1px, transparent 1.6px) 0 0 / 27px 15px, var(--bg-alt); }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 16px 40px; }
.footer-inner > .small { grid-column: 1 / -1; }
.sources h4 { font-size: 14px; margin-bottom: 6px; }
.sources p { color: var(--muted); font-size: 13px; margin: 0; }

.error { color: var(--wq-closure); font-size: 14px; }

/* Responsive */
@media (max-width: 1100px) {
  .now-grid { grid-template-columns: repeat(3, 1fr); }
  .beach { grid-template-columns: 6px 1.6fr .8fr 1fr 1fr 34px; }
  .beach .c-tide, .beach .c-best { display: none; }
  .wx-periods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 6px 12px; justify-content: space-between; }
  .nav { order: 3; width: 100%; margin: 0 -4px; padding-bottom: 8px; }
  .nav a { padding: 6px 10px; font-size: 13.5px; }
  .srf, .tide-card, .weather-layout, .wq-layout, .footer-inner { grid-template-columns: 1fr; }
  .cam-grid.multi { grid-template-columns: 1fr; }
  .wq-side { max-height: 360px; }
  .kv { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .now-grid { grid-template-columns: repeat(2, 1fr); }
  .beach { grid-template-columns: 6px 1fr auto 34px; row-gap: 4px; }
  .beach .c-swell, .beach .c-wind, .beach .c-wq { display: none; }
  .wx-periods { grid-template-columns: 1fr; }
  .map { height: 380px; } .map.tall { height: 420px; }
  .section { padding: 44px 0; }
}

/* Grid children must be allowed to shrink below their content width */
.weather-layout > *, .tide-card > *, .wq-layout > *, .srf > *, .now-grid > *, .beach > * { min-width: 0; }
html, body { overflow-x: clip; }
