/* ──────────────────────────────────────────────────────────────────────
 * 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;
}

/* ── Live bar ── */
.cl-live-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 14px; background: var(--deep); border: 1px solid var(--border-dim);
  margin: 16px 0;
}
.cl-live-l {
  font-family: var(--fd); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist);
}
.cl-live-r { font-family: var(--fm); font-size: 0.7rem; color: var(--mist); }

/* ── 3-block grid ── */
.cl-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch; margin-bottom: 28px; }
@media (min-width: 880px) {
  .cl-grid { grid-template-columns: 270px 1fr 240px; }
}

.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-odds leader */
.cl-leader { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-dim); }
.cl-leader-link {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  text-decoration: none; color: inherit; flex: 1;
}
.cl-leader-link:hover { background: rgba(255,255,255,0.03); }
[data-theme="light"] .cl-leader-link:hover { background: rgba(0,0,0,0.03); }
.cl-leader-name { font-family: var(--fd); font-weight: 800; font-size: 1.05rem; color: var(--foam); line-height: 1.15; }
.cl-leader-meta { font-family: var(--fm); font-size: 9px; color: var(--fog); text-transform: uppercase; letter-spacing: 0.08em; }
.cl-leader-size { font-family: var(--fd); font-weight: 800; font-size: 1.5rem; color: var(--foam); line-height: 1; margin-top: 6px; }
.cl-leader-size .u { font-size: 0.65rem; color: var(--fog); font-weight: 500; margin-left: 2px; }
.cl-leader-wind { display: flex; align-items: baseline; gap: 6px; font-family: var(--fm); font-size: 11px; color: var(--foam); font-weight: 600; margin-top: 4px; flex-wrap: wrap; }
.cl-leader-wind .arr { font-size: 13px; font-weight: 400; }
.cl-leader-wind .arr.off   { color: var(--tidal); }
.cl-leader-wind .arr.cross { color: var(--amber); }
.cl-leader-wind .arr.on    { color: var(--storm); }
.cl-leader-wind .tag { font-family: var(--fd); font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 5px; }
.cl-leader-wind .tag.off   { color: var(--tidal); }
.cl-leader-wind .tag.cross { color: var(--amber); }
.cl-leader-wind .tag.on    { color: var(--storm); }
.cl-leader-score-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cl-leader-score {
  font-family: var(--fd); font-weight: 800; font-size: 0.95rem;
  padding: 4px 10px; letter-spacing: 0.03em;
}
.cl-leader-score.go   { background: var(--tidal-glow); color: var(--tidal); }
.cl-leader-score.fair { background: var(--amber-glow); color: var(--amber); }
.cl-leader-score.bad  { background: var(--storm-glow); color: var(--storm); }

/* 7-day outlook */
.cl-outlook { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-dim); overflow: hidden; }
.cl-outlook-spot { text-transform: none; color: var(--tidal); font-family: var(--fm); letter-spacing: 0; }
.cl-outlook-days { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border-dim); overflow-x: auto; }
.cl-day { background: var(--surface); display: flex; flex-direction: column; min-width: 34px; }
.cl-day-h { padding: 4px 2px 3px; text-align: center; border-bottom: 1px solid var(--border-dim); }
.cl-day-h .n  { font-family: var(--fd); font-size: 9px; font-weight: 700; color: var(--foam); text-transform: uppercase; letter-spacing: 0.04em; }
.cl-day-h .dt { font-family: var(--fm); font-size: 8px; color: var(--fog); margin-top: 1px; }
.cl-day-peak { padding: 3px 2px; text-align: center; font-family: var(--fm); font-size: 8px; color: var(--foam); font-weight: 600; border-bottom: 1px solid var(--border-dim); }
.cl-day-bars { height: 70px; padding: 3px 1px; display: flex; align-items: flex-end; justify-content: center; gap: 1px; background: var(--abyss); }
.cl-day-bar { flex: 1; min-height: 3px; max-width: 9px; }
.cl-day-bar.empty { background: var(--border-dim); opacity: 0.3; }
.cl-day-score { padding: 4px 2px; text-align: center; font-family: var(--fd); font-size: 9px; font-weight: 800; 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-outlook-counts { padding: 8px 12px; border-top: 1px solid var(--border-dim); display: flex; gap: 6px; flex-wrap: wrap; }
.cl-count-pill { display: inline-flex; align-items: center; gap: 4px; font-family: var(--fd); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; }
.cl-count-pill.go   { background: var(--tidal-glow); color: var(--tidal); }
.cl-count-pill.fair { background: var(--amber-glow); color: var(--amber); }
.cl-count-pill.bad  { background: var(--storm-glow); color: var(--storm); }
.cl-count-pill .n { font-family: var(--fm); font-weight: 600; letter-spacing: 0; }

/* On-this-coast side panel */
.cl-side { background: var(--surface); border: 1px solid var(--border-dim); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cl-side-h { font-family: var(--fd); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
.cl-entries { display: flex; flex-direction: column; gap: 6px; }
.cl-entry-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--fb); font-size: 0.8rem; font-weight: 500; color: var(--foam);
  background: var(--raised); border: 1px solid var(--border-dim);
  padding: 8px 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); }

/* ── Editorial ── */
.cl-editorial {
  font-family: var(--fb); font-size: 0.95rem; line-height: 1.65; color: var(--foam);
  max-width: 74ch; padding: 16px 0 8px; border-top: 1px solid var(--border-dim); margin-bottom: 8px;
}

/* ── County index ── */
.cl-counties { margin: 28px 0; }
.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: 10px; }
.cl-county-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--border-dim);
  padding: 12px 14px; text-decoration: none; color: inherit;
  transition: border-color .15s, background .15s;
}
.cl-county-card:hover { border-color: var(--tidal); background: var(--raised); }
.cl-county-name { font-family: var(--fd); font-weight: 700; font-size: 0.95rem; color: var(--foam); }
.cl-county-count { font-family: var(--fm); font-size: 0.7rem; color: var(--mist); }
.cl-county-live { font-family: var(--fm); font-size: 0.68rem; color: var(--fog); min-height: 1em; }
.cl-county-live.go   { color: var(--tidal); }
.cl-county-live.fair { color: var(--amber); }
.cl-county-live.bad  { color: var(--storm); }

/* ── Flagship spots ── */
.cl-flagships { margin: 28px 0; }
.cl-flagship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cl-flagship-card {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border: 1px solid var(--border-dim);
  padding: 12px 14px; 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.9rem; color: var(--foam); }
.cl-flagship-loc  { font-family: var(--fm); font-size: 0.68rem; color: var(--mist); }
.cl-flagship-live { font-family: var(--fm); font-size: 0.68rem; color: var(--fog); min-height: 1em; }
.cl-flagship-live.go   { color: var(--tidal); }
.cl-flagship-live.fair { color: var(--amber); }
.cl-flagship-live.bad  { color: var(--storm); }

/* ── Footer credits ── */
.cl-footer-credits {
  margin-top: 32px; padding-top: 16px; 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); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .cl-page { padding: 16px 14px 36px; }
  .cl-live-bar { flex-wrap: wrap; gap: 4px; }
  .cl-day-bars { height: 52px; }
  .cl-county-grid, .cl-flagship-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
