/* Emerald Coast Beach Report — coastal probe (working title).
 * Loaded AFTER css/styles.css, so it inherits the Deep Marine tokens
 * (--bg, --panel, --emerald, --score-good/mid/poor, --amber, …) and reuses
 * the existing .hero-gauge component. This file holds only the beach-specific
 * surfaces so the probe is easy to iterate on — or pull out — without
 * touching the fishing dashboard's CSS.
 *
 * Design laws held here: answer-first (verdict above the fold), rip risk as a
 * SEPARATE override banner (never a quiet tile), regional conditions only.
 */

.beach {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
}

.beach-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 64px;
}
/* Desktop gets the §6 two-column layout; the wrap widens to fit the rail. */
@media (min-width: 1020px) {
  .beach-wrap { max-width: 1120px; }
}
.beach-columns { display: block; }
@media (min-width: 1020px) {
  .beach-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
  }
  .beach-rail { position: sticky; top: 12px; }
}

/* ---- Top bar (neutral working-title brand) ---- */
/* ---- Cinematic masthead: real Destin photo behind the brand, fading into
   the conditions panel. Static brand band (the reactive gradient stays on the
   conditions hero below). Full-bleed photo; brand row stays centered. ---- */
.masthead {
  position: relative;
  min-height: 190px;
  background-image:
    linear-gradient(to bottom, rgba(8,18,28,0.5) 0%, rgba(8,18,28,0.08) 28%, rgba(12,26,40,0.55) 72%, var(--bg) 100%),
    url('/img/destin-hero.jpg');
  background-size: cover;
  background-position: center 44%;
}
.beach-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 16px;
}
.beach-brand { text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.beach-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.01em; }
.beach-brand .mark { color: var(--emerald); display: inline-flex; }
.beach-brand small { display: block; font-weight: 600; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
/* Unified nav ribbon (doctrine §6) — one pattern, every vertical. Pills over
   the masthead photo; horizontally scrollable on small phones. */
.site-nav {
  display: flex; gap: 5px; flex-wrap: nowrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; max-width: 100%;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: 0.76rem; font-weight: 700; color: #DCE8F2;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 6px 12px;
  text-decoration: none; white-space: nowrap;
  background: rgba(8,18,28,0.42); backdrop-filter: blur(2px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.site-nav a:hover { background: rgba(8,18,28,0.68); }
.site-nav a.active {
  color: var(--emerald);
  border-color: rgba(39,195,165,0.55);
  background: rgba(10,35,32,0.6);
}
@media (max-width: 560px) {
  .beach-top { flex-direction: column; align-items: stretch; }
}

/* ---- Hero: photo + verdict (answer-first) ---- */
.beach-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--panel-3);
  margin-top: 4px;
}
/* Condition-reactive atmospheric hero. The mood gradient shifts with the
   verdict band — set by beach-page.js (.mood-excellent / -good / -marginal /
   -poor on .beach-hero). Premium/marine, not a tourism photo. To layer a real
   emerald-water image later, set background-image here; the vignette sits above. */
.beach-hero-photo {
  position: absolute; inset: 0;
  background: var(--hero-mood, linear-gradient(165deg, #123c54 0%, #0f2a3d 50%, #0a1b29 100%));
  background-size: cover; background-position: center 55%;
  transition: background 0.8s ease;
}
/* bottom vignette keeps the verdict text legible over any mood/photo */
.beach-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,28,43,0.05) 0%, rgba(11,28,43,0.45) 56%, rgba(11,28,43,0.86) 100%);
}
.beach-hero.mood-excellent .beach-hero-photo { --hero-mood: radial-gradient(120% 95% at 22% 6%, rgba(39,195,165,0.50), transparent 55%), linear-gradient(165deg, #0d3f3c 0%, #0f2c3f 48%, #0a1b29 100%); }
.beach-hero.mood-good      .beach-hero-photo { --hero-mood: radial-gradient(120% 95% at 22% 6%, rgba(90,190,255,0.40), transparent 55%), linear-gradient(165deg, #123c54 0%, #0f2a3d 50%, #0a1b29 100%); }
.beach-hero.mood-marginal  .beach-hero-photo { --hero-mood: radial-gradient(120% 95% at 22% 6%, rgba(251,191,36,0.24), transparent 52%), linear-gradient(165deg, #2b3140 0%, #1b2636 52%, #0e1925 100%); }
.beach-hero.mood-poor      .beach-hero-photo { --hero-mood: radial-gradient(120% 95% at 22% 6%, rgba(150,164,180,0.26), transparent 52%), linear-gradient(165deg, #2a2e37 0%, #1b232e 52%, #0e161f 100%); }
.beach-hero-body {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px 22px 22px;
}
.beach-hero-text { min-width: 200px; }

/* Word-first Sand/Water read cards (doctrine §6). The state word leads; the
   ring stays as the evidence instrument (A3) with its number demoted. */
.read-cards { display: flex; flex-direction: column; gap: 10px; }
.read-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(9, 22, 34, 0.62);
  border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 12px 14px;
  backdrop-filter: blur(3px);
}
.rc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rc-label {
  font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); font-weight: 700;
}
.rc-word { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.rc-desc { font-size: 0.74rem; color: #B9CBDA; }
.read-card .hero-gauge { width: 88px; height: 88px; flex: none; }
.read-card .hero-gauge .score-number { font-size: 1.4rem; }
.read-card .hero-gauge .score-caption { font-size: 0.44rem; }
@media (min-width: 560px) and (max-width: 899px) {
  .read-cards { flex-direction: row; }
  .read-card { flex: 1; }
}
/* Desktop hero: verdict text left, the two read cards stacked right. */
@media (min-width: 900px) {
  .beach-hero-body { flex-direction: row; align-items: center; gap: 26px; }
  .beach-hero-text { flex: 1; }
  .read-cards { width: 350px; flex: none; }
}

/* Meta chip row — the four questions, answered in a glance (§6). */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-chips .chip {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 12px; border-radius: 10px;
  background: rgba(9, 22, 34, 0.6);
  border: 1px solid var(--border-soft);
}
.hero-chips .chip small {
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 700;
}
.hero-chips .chip b { font-size: 0.79rem; color: #E7F0F7; }

.beach-loc { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 6px; }
/* Serif verdict (§6): the one editorial voice moment on the page. */
.beach-verdict {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: 2.1rem; line-height: 1.08; font-weight: 700;
  letter-spacing: -0.01em; margin: 0;
}
.beach-reason { color: #DCE8F2; font-size: 0.95rem; margin: 8px 0 0; max-width: 42ch; }
.beach-scope { color: var(--muted); font-size: 0.74rem; margin: 8px 0 0; max-width: 46ch; line-height: 1.45; }
.beach-updated { font-size: 0.68rem; color: var(--muted); margin-top: 10px; }

/* ---- Rip-current SAFETY OVERRIDE banner ----
 * The most important element on the page. Sits directly under the verdict.
 * Low = quiet reassurance; Moderate/High = loud, regardless of the score. */
.rip-banner {
  display: flex; align-items: flex-start; gap: 12px;
  border-radius: 14px; padding: 14px 16px; margin: 14px 0 0;
  border: 1px solid var(--border-soft);
  background: var(--panel-3);
}
.rip-banner .rip-ico { flex: none; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.rip-banner .rip-head { font-weight: 800; font-size: 0.96rem; display: flex; align-items: center; gap: 8px; }
.rip-banner .rip-note { color: #DCE8F2; font-size: 0.85rem; margin-top: 2px; }
.rip-banner .rip-src { color: var(--muted); font-size: 0.68rem; margin-top: 6px; }
.rip-pill { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 9px; border-radius: 999px; }

/* tone variants */
.rip-banner.good   { border-color: rgba(52,211,153,0.4); }
.rip-banner.good   .rip-ico, .rip-banner.good .rip-pill   { color: var(--score-good); }
.rip-banner.good   .rip-pill { background: rgba(52,211,153,0.14); }

.rip-banner.warn   { border-color: var(--amber); background: rgba(249,115,22,0.12); }
.rip-banner.warn   .rip-ico, .rip-banner.warn .rip-pill   { color: var(--amber); }
.rip-banner.warn   .rip-pill { background: rgba(249,115,22,0.18); }

.rip-banner.danger { border-color: var(--score-poor); background: rgba(239,68,68,0.16); }
.rip-banner.danger .rip-ico, .rip-banner.danger .rip-pill { color: var(--score-poor); }
.rip-banner.danger .rip-pill { background: rgba(239,68,68,0.22); }
.rip-banner.danger { animation: rip-flash 2.4s ease-in-out infinite; }
@keyframes rip-flash { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } 50% { box-shadow: 0 0 0 3px rgba(239,68,68,0.18); } }

.rip-banner.muted  .rip-ico, .rip-banner.muted .rip-pill  { color: var(--muted); }
.rip-banner.muted  .rip-pill { background: var(--panel-2); }

/* ---- Section scaffolding ---- */
.beach-section { margin-top: 26px; }
.beach-section > h2 {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin: 0 0 12px; font-weight: 700;
}

/* ---- At-a-glance tiles ---- */
.glance-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}
.glance {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 12px; text-align: center;
}
.glance .g-ico { width: 34px; height: 34px; border-radius: 10px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--g-color, var(--emerald)) 16%, transparent); color: var(--g-color, var(--emerald)); }
.glance .g-ico svg { width: 19px; height: 19px; }
.glance .g-label { display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.glance .g-value { display: block; font-weight: 800; font-size: 1.15rem; margin: 2px 0; }
.glance .g-sub { display: block; font-size: 0.66rem; color: var(--muted); }
.glance.is-rip .g-sub { font-weight: 700; }

/* Safety-alert treatment (Nick, 2026-07-03): the WHOLE tile borders + tints
 * in its own already-computed color — reserved for UV Very High/Extreme and
 * Rip Moderate/High, the two tiles with a genuine safety tier. Static, not
 * animated; the rip banner above is the one pulsing element on the page. */
.glance.glance-alert {
  border-color: color-mix(in srgb, var(--g-color) 55%, var(--border-soft));
  background: color-mix(in srgb, var(--g-color) 12%, var(--panel));
}
.glance.glance-alert .g-value { color: var(--g-color); }

/* ---- Best time to go — coarse block timeline (§6) ---- */
.besttime {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 16px 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.besttime.besttime-rail { flex-direction: column; align-items: stretch; gap: 8px; }
.besttime .bt-window { font-size: 1.5rem; font-weight: 800; color: var(--emerald); }
.besttime .bt-label { color: var(--muted); font-size: 0.84rem; }
.bt-blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bt-block {
  text-align: center; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 8px 2px; border-radius: 8px;
  background: var(--panel-2); color: var(--muted);
  border: 1px solid transparent;
}
.bt-block.on {
  background: rgba(39,195,165,0.14); color: var(--emerald);
  border-color: rgba(39,195,165,0.4);
}

/* ---- County flag link-out (we link, never mirror) ---- */
.flag-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--panel-3); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 16px 18px;
}
.flag-card .fc-text { flex: 1; min-width: 220px; }
.flag-card .fc-text strong { display: block; font-size: 0.98rem; }
.flag-card .fc-text span { color: var(--muted); font-size: 0.84rem; }
.flag-card a.fc-btn {
  background: var(--emerald); color: #06231d; font-weight: 800; font-size: 0.84rem;
  text-decoration: none; padding: 10px 16px; border-radius: 10px; white-space: nowrap;
}
.flag-card a.fc-btn:hover { filter: brightness(1.06); }

/* ---- Fishing handoff (the funnel) ---- */
.beach-handoff {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--panel-2), var(--panel-3));
  border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px 20px;
}
.beach-handoff .bh-text strong { display: block; }
.beach-handoff .bh-text span { color: var(--muted); font-size: 0.85rem; }
.beach-handoff a {
  background: transparent; border: 1px solid var(--emerald); color: var(--emerald);
  font-weight: 800; font-size: 0.84rem; text-decoration: none; padding: 9px 16px; border-radius: 10px; white-space: nowrap;
}
.beach-handoff a:hover { background: rgba(39,195,165,0.12); }

/* ---- Beach Outlook strip: 7 coarse day chips ---- */
.outlook-strip {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
@media (max-width: 560px) {
  .outlook-strip {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin: 0 -16px; padding: 0 16px;
  }
  .outlook-strip::-webkit-scrollbar { display: none; }
  .outlook-strip .ol-day { min-width: 76px; }
}
.ol-day {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 12px 4px 10px;
}
.ol-day.ol-wknd { border-color: rgba(255, 196, 0, 0.35); }
.ol-day.ol-far { opacity: 0.62; }   /* forecast confidence honestly decays */
.ol-name { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.ol-band { font-size: 0.82rem; font-weight: 800; }
.ol-temp { font-size: 0.7rem; color: var(--muted); }
.ol-best {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 0.52rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: #ffc400; background: #1d2a3a; border: 1px solid rgba(255, 196, 0, 0.45);
  border-radius: 999px; padding: 2px 7px; white-space: nowrap;
}
.ol-note { margin-top: 10px; font-size: 0.7rem; }

/* Rail cards stack their action button under the text. */
.beach-rail .rail-card { flex-direction: column; align-items: stretch; }
.beach-rail .rail-card a { text-align: center; }
.beach-rail .beach-handoff { margin-top: 26px; }

/* Footer trust row: shared styles moved to styles.css (2026-07-03 fishing
   pass) so both verticals render the identical strip. */

.beach-foot { color: var(--muted); font-size: 0.72rem; text-align: center; margin-top: 28px; line-height: 1.5; }
.beach-foot a { color: var(--muted); }

/* ---- Beach profile (guide) ---- */
.draft-flag { margin: 14px 0 0; padding: 8px 12px; border-radius: 8px; background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.4); color: var(--gold); font-size: 0.76rem; }
.profile-head { margin-top: 16px; }
.profile-name { font-size: 1.9rem; font-weight: 800; margin: 2px 0 0; }
.profile-tagline { color: #DCE8F2; font-size: 0.95rem; margin: 8px 0 0; max-width: 52ch; }
.vibe-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.vibe-tag { font-size: 0.72rem; font-weight: 700; color: var(--emerald); background: rgba(39,195,165,0.12); border: 1px solid rgba(39,195,165,0.35); padding: 3px 11px; border-radius: 999px; }
.cond-note { font-size: 0.62rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.profile-rings { margin-top: 6px; }
.cond-fulllink { margin-top: 12px; font-size: 0.82rem; }
.guide-block dt, .kv dt { font-weight: 700; font-size: 0.82rem; color: var(--text); }
.kv-list { margin: 0; }
.kv { padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.kv:last-child { border-bottom: none; }
.kv dd { margin: 3px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.guide-list { margin: 0; padding-left: 18px; color: #DCE8F2; font-size: 0.88rem; line-height: 1.7; }
.guide-text { color: #DCE8F2; font-size: 0.9rem; line-height: 1.55; margin: 0 0 12px; }
.guide-block, .insider { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px 16px; }
.insider { background: linear-gradient(120deg, var(--panel-2), var(--panel-3)); }
.cam-slot { }

/* ---- Loading / unavailable states ---- */
.beach-na { color: var(--muted); font-size: 0.85rem; }

/* ---- Multi-location board (prototype) ---- */
.board-intro { margin-top: 18px; }
.board-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.board-lead { color: var(--muted); font-size: 0.88rem; max-width: 52ch; line-height: 1.5; }
.loc-board { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.loc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 14px 16px;
}
.loc-meta { min-width: 0; }
.loc-meta strong { display: block; font-size: 1rem; }
.loc-meta span { color: var(--muted); font-size: 0.74rem; }
.loc-rip { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.loc-rip.warn   { color: var(--amber); background: rgba(249,115,22,0.16); }
.loc-rip.danger { color: var(--score-poor); background: rgba(239,68,68,0.2); }
.loc-scores { display: flex; gap: 8px; flex: none; }
.loc-chip {
  display: flex; flex-direction: column; align-items: center;
  min-width: 52px; padding: 6px 8px; border-radius: 10px;
  background: var(--panel-3); border: 1px solid color-mix(in srgb, var(--c, var(--emerald)) 35%, transparent);
}
.loc-chip b { font-size: 1.15rem; font-weight: 800; color: var(--c, var(--emerald)); line-height: 1; }
.loc-chip small { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 3px; }

/* ---- Load motion (subtle, premium) — disabled for reduced-motion users ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes beach-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .beach-hero-text { animation: beach-rise 0.6s ease both; animation-delay: 0.05s; }
  .read-cards      { animation: beach-rise 0.6s ease both; animation-delay: 0.12s; }
  .rip-banner      { animation: beach-rise 0.6s ease both; animation-delay: 0.18s; }
  .besttime, .flag-card, .beach-handoff { animation: beach-rise 0.55s ease both; }
  /* the at-a-glance tiles cascade in as the data lands */
  .glance { animation: beach-rise 0.5s ease both; }
  .glance:nth-child(1) { animation-delay: 0.06s; }
  .glance:nth-child(2) { animation-delay: 0.12s; }
  .glance:nth-child(3) { animation-delay: 0.18s; }
  .glance:nth-child(4) { animation-delay: 0.24s; }
  .glance:nth-child(5) { animation-delay: 0.30s; }
  .glance:nth-child(6) { animation-delay: 0.36s; }
}

@media (max-width: 460px) {
  .glance-grid { grid-template-columns: repeat(2, 1fr); }
  .beach-verdict { font-size: 1.6rem; }
}

/* Sticky mobile Reality CTA (2026-07 trust-hierarchy pass). Thin, calm,
   mobile-only — the in-page card serves desktop. */
.reality-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  background: rgba(15, 30, 44, 0.96);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: #DCE8F2;
}
.reality-bar a {
  flex: none;
  padding: 7px 14px;
  border-radius: 18px;
  background: var(--emerald);
  color: #05241f;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.8rem;
}
@media (min-width: 760px) { .reality-bar { display: none; } }
body.beach { padding-bottom: 56px; }
@media (min-width: 760px) { body.beach { padding-bottom: 0; } }

/* Inline emphasis inside flag-card text (block styling is reserved for the
   <strong> card title — inline bolds use <b> so "text BEACH to 44144" stays
   on one line). */
.flag-card .fc-text b { font-weight: 800; color: var(--text); }
