/* ──────────────────────────────────────────────────────────────────────
 * SurfCheck — Country Landing template
 * Loaded by /{country}.html pages (pilot: ireland.html)
 * Tokens only — every color/font here comes from brand.css's :root /
 * [data-theme="light"] block (D-001, D-008). No raw hex, no border-radius
 * anywhere in this file.
 * ────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--void); color: var(--foam); font-family: var(--fb); line-height: 1.55; min-height: 100vh; }
a { color: inherit; }

.cl-page { max-width: 1200px; margin: 0 auto; padding: 20px var(--pad) 48px; }

/* ── Breadcrumb ── */
.cl-crumb {
  font-family: var(--fm); font-size: 0.7rem; color: var(--mist);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.cl-crumb a { color: var(--mist); text-decoration: none; }
.cl-crumb a:hover { color: var(--foam); }
.cl-crumb-sep { color: var(--border); }

/* ── Hero ── */
.cl-hero { margin-bottom: 18px; }
.cl-hero-title {
  font-family: var(--fd); font-weight: 700; letter-spacing: 0.02em;
  font-size: clamp(1.7rem, 5vw, 2.6rem); color: var(--tidal); line-height: 1.1;
}
.cl-hero-stats {
  font-family: var(--fm); font-size: 0.75rem; color: var(--mist);
  letter-spacing: 0.04em; margin-top: 8px;
}

/* ── Hero tool chips (Tides / Webcams / Map) ── */
.cl-hero-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cl-entry-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fb); font-size: 0.78rem; font-weight: 500; color: var(--foam);
  background: var(--raised); border: 1px solid var(--border-dim);
  padding: 6px 12px; text-decoration: none; transition: border-color .15s, color .15s;
}
.cl-entry-chip:hover { border-color: var(--tidal); color: var(--tidal); }
.cl-entry-chip .arrow { color: var(--fog); }

.cl-block-h {
  font-family: var(--fd); 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;
}

/* ── Best This Week: seven day-cards, the best spot each day ──
   Structure from the archived homepage's week row; current system. */
.cl-week { margin: 0 0 28px; }
.cl-week-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cl-day-card {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border-dim);
  padding: 9px 10px 10px; text-decoration: none; color: inherit;
  transition: border-color .15s, background .15s;
}
a.cl-day-card:hover { border-color: var(--tidal); background: var(--raised); }
.cl-day-card.peak { border-color: var(--tidal); background: var(--tidal-glow); }
.cl-day-skel { min-height: 150px; opacity: 0.5; }
.cl-day-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.cl-day-name { font-family: var(--fd); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--foam); }
.cl-day-date { font-family: var(--fm); font-size: 0.6rem; color: var(--fog); white-space: nowrap; }
.cl-day-spot { font-family: var(--fd); font-size: 0.8rem; font-weight: 700; color: var(--foam); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cl-day-region { font-family: var(--fm); font-size: 0.58rem; color: var(--mist); margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-day-main { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 3px; }
.cl-day-v { font-family: var(--fd); font-size: 1.48rem; font-weight: 700; color: var(--foam); line-height: 1; white-space: nowrap; }
.cl-day-u { font-family: var(--fm); font-size: 0.6rem; font-weight: 500; color: var(--tidal); margin-left: 2px; }
.cl-day-score { font-family: var(--fd); font-size: 0.85rem; font-weight: 800; padding: 2px 6px; letter-spacing: 0.02em; }
.cl-day-score.go   { background: var(--tidal-glow); color: var(--tidal); }
.cl-day-score.fair { background: var(--amber-glow); color: var(--amber); }
.cl-day-score.bad  { background: var(--storm-glow); color: var(--storm); }
.cl-day-card.peak .cl-day-score.go { background: var(--surface); }
.cl-day-rows { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; border-top: 1px solid var(--border-dim); padding-top: 5px; }
.cl-day-r { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; font-family: var(--fb); font-size: 0.62rem; color: var(--fog); }
.cl-day-r b { font-family: var(--fm); font-size: 0.7rem; font-weight: 600; color: var(--foam); white-space: nowrap; }
.cl-day-peak { font-family: var(--fd); font-size: 0.62rem; font-weight: 700; color: var(--tidal); letter-spacing: 0.04em; margin-top: 2px; }
.cl-day-card.none { justify-content: flex-start; }
.cl-day-none { font-family: var(--fm); font-size: 0.62rem; color: var(--fog); }

/* ── Editorial: a titled section at reading size ── */
.cl-editorial-sec { margin: 28px 0; }
.cl-editorial {
  font-family: var(--fb); font-size: 1.1rem; line-height: 1.65; color: var(--foam);
  max-width: 74ch;
}

/* ── Regions overview (condition-first, the archived homepage's county
   strip hierarchy) + the grouped spot index that shares these classes ── */
.cl-counties { margin: 28px 0; }
.cl-overview { margin: 0 0 28px; }
.cl-section-h {
  font-family: var(--fd); font-size: 1.1rem; font-weight: 700; color: var(--foam);
  letter-spacing: 0.01em; margin-bottom: 14px;
}
.cl-coast-group { margin-bottom: 22px; }
.cl-coast-h {
  font-family: var(--fm); font-size: 0.72rem; font-weight: 600; color: var(--tidal);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border-dim);
}
.cl-county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cl-county-card {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border-dim);
  padding: 0 0 9px; text-decoration: none; color: inherit;
  transition: border-color .15s, background .15s;
}
.cl-county-card:hover { border-color: var(--tidal); background: var(--raised); }
.cl-county-card.go { border-color: var(--tidal); }
.cl-cc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--border-dim); }
.cl-county-name { font-family: var(--fd); font-weight: 700; font-size: 0.82rem; color: var(--foam); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-cc-band { font-family: var(--fd); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.cl-cc-band.go   { color: var(--tidal); }
.cl-cc-band.fair { color: var(--amber); }
.cl-cc-band.bad  { color: var(--storm); }
.cl-cc-ht { padding: 6px 10px 0; display: flex; align-items: baseline; gap: 2px; }
.cl-cc-v { font-family: var(--fd); font-size: 1.4rem; font-weight: 700; color: var(--foam); line-height: 1; }
.cl-cc-u { font-family: var(--fm); font-size: 0.6rem; font-weight: 500; color: var(--tidal); }
.cl-cc-row { display: flex; gap: 10px; padding: 0 10px; font-family: var(--fm); font-size: 0.6rem; color: var(--mist); flex-wrap: wrap; }
.cl-cc-row b { color: var(--foam); font-weight: 600; }
.cl-cc-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 2px 10px 0; min-width: 0; }
.cl-cc-top-spot { font-family: var(--fb); font-size: 0.66rem; color: var(--fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1em; }
.cl-county-count { font-family: var(--fm); font-size: 0.6rem; color: var(--mist); white-space: nowrap; }

/* ── Spots by region: designed index ──
   One bordered surface block per region (abyss header strip: name, muted
   count, live band + score right-aligned; chip links flex-wrapped). Two
   CSS columns from 1080px: `column-count` packs very unequal block heights
   (Donegal 20 spots beside Dublin 2) without the row-aligned gaps a
   2-column grid leaves; break-inside keeps a block whole. */
.cl-index { margin: 28px 0 0; }
.cl-index-cols { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: start; }
.cl-index-group { background: var(--surface); border: 1px solid var(--border-dim); }
.cl-index-h { display: flex; align-items: center; gap: 5px; padding: 0 12px; min-height: 30px; line-height: 1.2; }
.cl-index-name { color: var(--foam); }
.cl-index-count { color: var(--mist); font-weight: 500; letter-spacing: 0.08em; font-size: 0.56rem; }
.cl-index-live { margin-left: auto; color: var(--fog); font-family: var(--fm); font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.cl-index-live.go   { color: var(--tidal); }
.cl-index-live.fair { color: var(--amber); }
.cl-index-live.bad  { color: var(--storm); }
.cl-index-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 12px; }
.cl-index-links a {
  font-family: var(--fm); font-size: 11.5px; line-height: 1.2; color: var(--foam);
  background: var(--raised); border: 1px solid var(--border-dim); padding: 3px 8px;
  text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s;
}
.cl-index-links a:hover { border-color: var(--tidal); color: var(--tidal); }
/* Two columns from 1080px as a GRID (iteration 4): blocks top-align in
   rows with one consistent gap; coast-group order pairs similar sizes
   (Donegal/Sligo, Mayo/Clare …) so the row-height cost is small. */
@media (min-width: 1080px) {
  .cl-index-cols { grid-template-columns: 1fr 1fr; }
}

/* ── Flagship spots: six cards, one row on desktop ── */
.cl-flagships { margin: 28px 0; }
.cl-flagship-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cl-flagship-card {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border-dim);
  padding: 9px 10px 10px; text-decoration: none; color: inherit;
  transition: border-color .15s, background .15s;
}
.cl-flagship-card:hover { border-color: var(--tidal); background: var(--raised); }
.cl-flagship-name { font-family: var(--fd); font-weight: 700; font-size: 0.84rem; color: var(--foam); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-flagship-loc  { font-family: var(--fm); font-size: 0.62rem; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-flagship-live { font-family: var(--fm); font-size: 0.66rem; color: var(--fog); min-height: 1em; margin-top: 2px; }
.cl-flagship-live.go   { color: var(--tidal); }
.cl-flagship-live.fair { color: var(--amber); }
.cl-flagship-live.bad  { color: var(--storm); }

/* ── Footer: brand · countries · tools · regions ── */
.cl-footer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border-dim); }
.cl-footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 880px) {
  .cl-footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 1.6fr; gap: 28px; }
}
.cl-footer-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fd); font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; color: var(--foam); text-decoration: none; }
.cl-footer-logo span { color: var(--tidal); }
.cl-footer-tag { font-family: var(--fb); font-size: 0.82rem; color: var(--mist); margin-top: 8px; max-width: 30ch; line-height: 1.5; }
.cl-footer-h { font-family: var(--fm); font-size: 0.72rem; font-weight: 600; color: var(--tidal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-dim); }
.cl-footer-sub { font-family: var(--fm); font-size: 0.6rem; font-weight: 600; color: var(--mist); text-transform: uppercase; letter-spacing: 0.08em; margin: 8px 0 4px; }
.cl-footer-sub:first-of-type { margin-top: 0; }
.cl-footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cl-footer-links a, .cl-footer-current { font-family: var(--fm); font-size: 0.78rem; color: var(--foam); text-decoration: none; line-height: 1.7; }
.cl-footer-links a:hover { color: var(--tidal); }
.cl-footer-current { color: var(--tidal); }
.cl-footer-regions .cl-footer-links { flex-direction: column; gap: 0; }
.cl-footer-col:not(.cl-footer-regions) .cl-footer-links { flex-direction: column; gap: 0; }

/* ── Footer credits ── */
.cl-footer-credits {
  margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border-dim);
  font-family: var(--fm); font-size: 0.68rem; color: var(--fog); line-height: 1.7;
}
.cl-footer-credits a { color: var(--mist); text-decoration: underline; text-decoration-color: var(--border); }
.cl-footer-credits a:hover { color: var(--tidal); }

/* ── Swell & Wind forecast: two Windy.com ECMWF embeds ── */
.cl-windy { margin: 28px 0 0; }
.cl-windy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cl-windy-box { display: flex; flex-direction: column; background: var(--abyss); border: 1px solid var(--border-dim); min-width: 0; }
.cl-windy-box iframe { display: block; width: 100%; height: 340px; border: 0; background: var(--void); }

/* ── Sticky best-day bar ── */
body.cl-has-sticky { padding-bottom: 60px; }
.cl-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--abyss); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(0,0,0,0.35); }
.cl-sticky-inner { max-width: 1200px; margin: 0 auto; padding: 9px var(--pad); display: flex; align-items: center; gap: 14px; min-width: 0; }
.cl-sticky-eyebrow { font-family: var(--fd); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tidal); white-space: nowrap; }
.cl-sticky-text { font-family: var(--fb); font-size: 0.85rem; color: var(--foam); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-sticky-text b { font-family: var(--fd); font-weight: 700; }
.cl-sticky-sep { color: var(--fog); margin: 0 7px; }
.cl-sticky-score { font-family: var(--fd); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; padding: 4px 9px; white-space: nowrap; }
.cl-sticky-score.go   { background: var(--tidal-glow); color: var(--tidal); }
.cl-sticky-score.fair { background: var(--amber-glow); color: var(--amber); }
.cl-sticky-score.bad  { background: var(--storm-glow); color: var(--storm); }
.cl-sticky-cta { font-family: var(--fd); font-size: 0.78rem; font-weight: 700; color: var(--void); background: var(--tidal); padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.cl-sticky-cta:hover { filter: brightness(1.1); }
.cl-sticky-x { font-family: var(--fd); font-size: 1.1rem; line-height: 1; color: var(--mist); background: none; border: 1px solid var(--border-dim); width: 28px; height: 28px; cursor: pointer; flex-shrink: 0; }
.cl-sticky-x:hover { color: var(--foam); border-color: var(--tidal); }

/* ── Top row: hero + live map (+ buoys) ──
   .cl-top only exists when the map or buoy panel renders (generator
   TOP_GROUP). Desktop: hero top-left, buoys under it, map spanning the
   right column. Below 880px it stacks in DOM order: hero, map, buoys. */
.cl-top { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
.cl-top .cl-hero { margin-bottom: 0; }
@media (min-width: 880px) {
  /* Rows: hero (auto) then buoys (auto); the map spans both and its height
     is whatever the left column needs — no dead band under the buoys. The
     min-height only matters when the left column is shorter than it
     (Morocco: no buoys). */
  .cl-top { grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto auto; align-items: end; margin-bottom: 14px; }
  .cl-top .cl-hero { grid-column: 1; grid-row: 1; align-self: start; }
  .cl-top .cl-map-panel { grid-column: 2; grid-row: 1 / 3; align-self: stretch; }
  .cl-top .cl-buoys { grid-column: 1; grid-row: 2; align-self: end; }
  .cl-top .cl-map { min-height: 300px; }
}

/* ── Map panel ── */
.cl-map-panel { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-dim); min-width: 0; }
.cl-map-panel .cl-block-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cl-map-legend { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fm); font-size: 8px; letter-spacing: 0.06em; color: var(--mist); font-weight: 500; }
.cl-map-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 3px; vertical-align: -1px; }
.cl-map-legend i.go   { background: var(--tidal); }
.cl-map-legend i.fair { background: var(--amber); }
.cl-map-legend i.bad  { background: var(--storm); }
.cl-map { flex: 1; min-height: 240px; background: var(--void); }
/* OpenFreeMap Liberty ships light; invert only the MapLibre basemap
   canvas in the dark theme (map.html's filter). Leaflet's own panes —
   markers, popups, controls — are not inverted. */
[data-theme="dark"] .cl-map .leaflet-gl-layer { filter: invert(1) hue-rotate(180deg) saturate(0.9) brightness(0.95); }
.cl-map.leaflet-container { font-family: var(--fb); }
.cl-map .leaflet-control-attribution { background: var(--abyss) !important; color: var(--mist) !important; font-family: var(--fm); font-size: 9px !important; padding: 2px 6px !important; }
.cl-map .leaflet-control-attribution a { color: var(--tidal) !important; }
.cl-map .leaflet-bar { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.cl-map .leaflet-control-zoom a { background: var(--abyss) !important; color: var(--foam) !important; border: 1px solid var(--border) !important; border-radius: 0 !important; }
.cl-map .leaflet-control-zoom a:hover { background: var(--surface) !important; }
.cl-map .leaflet-popup-content-wrapper { background: var(--abyss) !important; color: var(--foam) !important; border: 1px solid var(--border); border-radius: 0 !important; padding: 0 !important; box-shadow: 0 8px 28px rgba(0,0,0,0.45) !important; }
.cl-map .leaflet-popup-content { margin: 0 !important; width: 220px !important; line-height: 1.4; }
.cl-map .leaflet-popup-tip { background: var(--abyss) !important; border: 1px solid var(--border); }
.cl-map .leaflet-popup-close-button { color: var(--mist) !important; }
.cl-map-pop { padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cl-map-pop-name { font-family: var(--fd); font-weight: 700; font-size: 0.95rem; color: var(--foam); line-height: 1.15; }
.cl-map-pop-meta { font-family: var(--fm); font-size: 9px; color: var(--fog); text-transform: uppercase; letter-spacing: 0.08em; }
.cl-map-pop-score { font-family: var(--fd); font-weight: 800; font-size: 0.85rem; padding: 3px 8px; margin-top: 4px; color: var(--fog); background: var(--surface); }
.cl-map-pop-score.go   { background: var(--tidal-glow); color: var(--tidal); }
.cl-map-pop-score.fair { background: var(--amber-glow); color: var(--amber); }
.cl-map-pop-score.bad  { background: var(--storm-glow); color: var(--storm); }
.cl-map-pop-cta { font-family: var(--fd); font-size: 0.72rem; font-weight: 700; color: var(--tidal); text-decoration: none; margin-top: 6px; }
.cl-map-pop-cta:hover { text-decoration: underline; }

/* ── Offshore buoys ──
   Structure inherited from the archived Ireland homepage's buoy blocks
   (two side-by-side blocks, each with a hero-sized height number); style
   is the current system: abyss strip header, sharp corners, mono values. */
.cl-buoys { background: var(--surface); border: 1px solid var(--border-dim); min-width: 0; }
.cl-buoys .cl-block-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-buoys-src { font-family: var(--fm); font-size: 8px; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--mist); }
.cl-buoy-cards { display: grid; grid-template-columns: 1fr 1fr; }
.cl-buoy { padding: 14px 16px 14px; border-right: 1px solid var(--border-dim); min-width: 0; }
.cl-buoy:last-child { border-right: 0; }
.cl-buoy-name { font-family: var(--fd); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--foam); line-height: 1; }
.cl-buoy-coord { font-family: var(--fm); font-size: 9px; color: var(--fog); letter-spacing: 0.04em; margin: 5px 0 12px; }
.cl-buoy-main { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.cl-buoy-ht { font-family: var(--fm); font-size: 2.4rem; font-weight: 600; color: var(--foam); line-height: 1; letter-spacing: -0.02em; }
.cl-buoy-u { font-family: var(--fm); font-size: 0.85rem; font-weight: 500; color: var(--tidal); }
.cl-buoy-delta { font-family: var(--fm); font-size: 0.7rem; font-weight: 500; margin-left: 8px; color: var(--fog); }
.cl-buoy-delta.up     { color: var(--tidal); }
.cl-buoy-delta.down   { color: var(--storm); }
.cl-buoy-delta.steady { color: var(--fog); }
.cl-buoy-row { display: flex; gap: 8px; font-family: var(--fm); font-size: 0.72rem; color: var(--mist); margin-top: 10px; flex-wrap: wrap; align-items: baseline; }
.cl-buoy-row b { color: var(--foam); font-weight: 600; font-size: 0.95rem; }
.cl-buoy-row .cl-buoy-sep { color: var(--border); }
.cl-buoy.unavailable .cl-buoy-ht { color: var(--fog); }

/* ── Top Spots Today ──
   Five compact cards in one row (the archived homepage's density, the
   current system's language): band strip + score, name, region, two
   stat boxes with inline units, 13px stars, a single-line power meter. */
.cl-top-spots { margin: 4px 0 28px; }
.cl-sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-sec-head .cl-section-h { margin-bottom: 0; }
.cl-sec-meta { font-family: var(--fm); font-size: 0.68rem; color: var(--fog); margin-left: auto; }
.cl-ts-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cl-ts-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--border-dim);
  text-decoration: none; color: inherit;
  transition: border-color .15s, background .15s;
}
.cl-ts-card:hover { border-color: var(--tidal); background: var(--raised); }
.cl-ts-card.go { border-color: var(--tidal); }
.cl-ts-skel { min-height: 126px; opacity: 0.5; }
.cl-ts-band {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 3px 8px; border-bottom: 1px solid var(--border-dim);
  font-family: var(--fd); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.cl-ts-band.go   { background: var(--tidal-glow); color: var(--tidal); }
.cl-ts-band.fair { background: var(--amber-glow); color: var(--amber); }
.cl-ts-band.bad  { background: var(--storm-glow); color: var(--storm); }
.cl-ts-verdict { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-ts-score { font-family: var(--fm); font-size: 0.76rem; letter-spacing: 0; flex-shrink: 0; }
.cl-ts-body { padding: 7px 8px 8px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.cl-ts-name { font-family: var(--fd); font-weight: 700; font-size: 0.82rem; color: var(--foam); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ts-loc { font-family: var(--fm); font-size: 0.58rem; color: var(--mist); margin-top: -3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ts-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cl-ts-stat { background: var(--raised); padding: 3px 4px 2px; text-align: center; }
.cl-ts-v { font-family: var(--fd); font-size: 1rem; font-weight: 700; color: var(--foam); line-height: 1; display: block; white-space: nowrap; }
.cl-ts-u { font-family: var(--fm); font-size: 0.55rem; font-weight: 500; color: var(--tidal); margin-left: 1px; }
.cl-ts-l { font-family: var(--fb); font-size: 0.56rem; color: var(--fog); display: block; margin-top: 1px; line-height: 1.2; }
.cl-ts-stars { display: flex; justify-content: center; line-height: 1; } /* 15px: brand.css sc-stars-sm */
.cl-ts-power { display: flex; align-items: center; gap: 6px; line-height: 1; }
.cl-ts-power .cl-ts-l { display: inline; margin: 0; }
.cl-ts-pbar { flex: 1; height: 2px; background: var(--border-dim); overflow: hidden; }
.cl-ts-pfill { height: 100%; background: linear-gradient(90deg, var(--tidal), var(--amber)); transition: width .5s ease; }
.cl-ts-kw { font-family: var(--fm); font-size: 0.62rem; font-weight: 600; color: var(--amber); white-space: nowrap; min-width: 40px; text-align: right; }

/* ── Responsive ──
   Top Spots: 5-up ≥1024px, 3-up tablet, 2-up small tablet, and below
   560px a horizontal scroll-snap row (rank 1→5 reads left to right, as
   on desktop, instead of a 5-deep stack pushing the outlook down). The
   row scrolls inside its own box; the page never scrolls sideways. */
@media (max-width: 1023px) {
  .cl-ts-grid, .cl-flagship-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 879px) {
  .cl-map { min-height: 240px; height: 240px; }
  .cl-ts-grid, .cl-flagship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Best This Week: seven cards can't share 390px — a scroll-snap row */
  .cl-week-row {
    display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
  .cl-day-card { flex: 0 0 150px; scroll-snap-align: start; }
  .cl-windy-row { grid-template-columns: 1fr; }
  .cl-windy-box iframe { height: 280px; }
  /* Sticky bar: one thin line — eyebrow hidden, text + score + CTA + X */
  body.cl-has-sticky { padding-bottom: 46px; }
  .cl-sticky-inner { padding: 6px 12px; gap: 8px; }
  .cl-sticky-eyebrow { display: none; }
  .cl-sticky-text { font-size: 0.74rem; }
  .cl-sticky-sep { margin: 0 4px; }
  .cl-sticky-score { font-size: 0.62rem; padding: 3px 6px; }
  .cl-sticky-cta { font-size: 0.68rem; padding: 5px 8px; }
  .cl-sticky-x { width: 24px; height: 24px; font-size: 1rem; }
}
@media (max-width: 559px) {
  .cl-ts-grid {
    display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
  .cl-ts-card { flex: 0 0 200px; scroll-snap-align: start; }
  .cl-flagship-grid {
    display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
  .cl-flagship-card { flex: 0 0 170px; scroll-snap-align: start; }
  .cl-buoy-cards { grid-template-columns: 1fr; }
  .cl-buoy { border-right: 0; border-bottom: 1px solid var(--border-dim); }
  .cl-buoy:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .cl-page { padding: 16px 14px 36px; }
  .cl-county-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
