/* MI Lake Depths — bathymetric chart identity.
   Palette derives from the product's own markers: the Blues depth ramp, the red
   deep-spot survey tags, the gold access buoys. Two grounds: deep-water (dark),
   chart-paper (light). Tokens carry both; components never style inside a media
   query. */
:root {
  --navy-abyss: #071c2e;
  --navy-deep:  #0a2740;
  --water-mid:  #1c5a80;
  --shoal:      #7fb5d4;
  --sound-red:  #c1121f;
  --buoy-gold:  #d99a1c;

  /* depth ramp — the signature, shallow -> deep */
  --ramp: linear-gradient(90deg,#eaf3fb,#cfe3f2,#9ecae1,#6baed6,#4292c6,#2171b5,#08519c,#08306b);

  --ground:   #eef2f2;   /* cool off-white, faint cyan bias — a chosen neutral */
  --surface:  #ffffff;
  --raised:   #f6f9f9;
  --ink:      #0a2740;
  --ink-soft: #40596b;
  --muted:    #6a8092;
  --hairline: #d3dee1;
  --accent:   var(--sound-red);
  --gold:     #b7860f;
  --loc-dot:  #12233a;

  --serif: "Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --sans: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono: ui-monospace,"Cascadia Code","SF Mono",Menlo,Consolas,monospace;

  --wrap: 1120px;
  --r: 10px;
  --shadow: 0 1px 2px rgba(8,30,50,.06),0 8px 30px rgba(8,30,50,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground:   #071c2e;
    --surface:  #0d2a42;
    --raised:   #113253;
    --ink:      #e9eff2;
    --ink-soft: #b6cad7;
    --muted:    #86a4b8;
    --hairline: #1c3e58;
    --accent:   #e2564f;   /* soundings red, lifted for a dark ground */
    --gold:     #e0a72e;
    --loc-dot:  #ffffff;
    --shadow: 0 1px 2px rgba(0,0,0,.3),0 10px 34px rgba(0,0,0,.38);
  }
}
:root[data-theme="light"] {
  --ground:#eef2f2; --surface:#ffffff; --raised:#f6f9f9; --ink:#0a2740;
  --ink-soft:#40596b; --muted:#6a8092; --hairline:#d3dee1; --accent:#c1121f;
  --gold:#b7860f; --loc-dot:#12233a; --shadow:0 1px 2px rgba(8,30,50,.06),0 8px 30px rgba(8,30,50,.08);
}
:root[data-theme="dark"] {
  --ground:#071c2e; --surface:#0d2a42; --raised:#113253; --ink:#e9eff2;
  --ink-soft:#b6cad7; --muted:#86a4b8; --hairline:#1c3e58; --accent:#e2564f;
  --gold:#e0a72e; --loc-dot:#ffffff; --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 34px rgba(0,0,0,.38);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
h1,h2,h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.tnum { font-variant-numeric: tabular-nums; }

/* ---- header ---- */
.site-head {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb,var(--ground) 88%,transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--hairline);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px;
  font-weight: 600; letter-spacing: .01em; text-decoration: none; margin-right: auto; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.navlink { text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.navlink:hover { color: var(--ink); }
.tgl { border: 1px solid var(--hairline); background: var(--surface); color: var(--ink-soft);
  width: 38px; height: 34px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.tgl:hover { color: var(--ink); border-color: var(--muted); }

/* ---- hero / model ---- */
.hero { position: relative; }
.hero-model {
  position: relative; width: 100%; height: min(66vh,620px);
  background: radial-gradient(120% 90% at 50% 12%, #12456b 0%, var(--navy-deep) 55%, var(--navy-abyss) 100%);
  border-bottom: 1px solid var(--hairline); overflow: hidden;
}
model-viewer { width: 100%; height: 100%; --poster-color: transparent;
  background: transparent; }
.mv-load {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4;
  font: 600 12px var(--sans); letter-spacing: .04em; color: #cfe3f2;
  background: rgba(7,28,46,.55); padding: 6px 12px; border-radius: 20px; display: none;
}
.mv-load.on { display: block; }

/* sounding card overlaid on the hero */
.sounding {
  position: absolute; left: 24px; bottom: 24px; z-index: 5; width: min(360px,calc(100% - 48px));
  background: color-mix(in srgb,var(--surface) 94%,transparent); border: 1px solid var(--hairline);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px 16px; backdrop-filter: blur(6px);
}
.sounding .place { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sounding h1 { font-size: clamp(24px,3.4vw,34px); }
.sounding .sub { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.depthbig { display: flex; align-items: baseline; gap: 8px; }
.depthbig .n { font-family: var(--serif); font-size: 58px; font-weight: 600; line-height: .9;
  color: var(--accent); font-variant-numeric: tabular-nums; }
.depthbig .u { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.depthbig .lbl { margin-left: auto; text-align: right; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); align-self: center; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft); background: var(--raised); border: 1px solid var(--hairline);
  padding: 4px 10px; border-radius: 20px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip.acc .dot { background: var(--gold); }
.chip.veg .dot { background: #4e9450; }
.chip.warn { color: var(--accent); border-color: color-mix(in srgb,var(--accent) 40%,var(--hairline)); }

/* model-viewer hotspots */
.hs { border: none; padding: 0; width: 13px; height: 13px; border-radius: 50%; cursor: pointer;
  background: var(--sound-red); box-shadow: 0 0 0 3px rgba(255,255,255,.9),0 1px 4px rgba(0,0,0,.5); position: relative; }
.hs .lab { position: absolute; left: 16px; top: -5px; white-space: nowrap; font: 600 12px var(--sans);
  color: #fff; background: rgba(193,18,31,.95); padding: 2px 7px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hs.acc { background: var(--buoy-gold); }
.hs.acc .lab { background: rgba(255,255,255,.94); color: var(--navy-deep); }
.hs[data-visible="false"] { opacity: 0; pointer-events: none; }

/* ---- on-model tools: compass, reset, measure (ported from v1) ----
   All overlay the hero. pointer-events:none on wrappers so orbiting still works;
   only the actual controls take pointer events. */
.tools-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.tools-layer > * { pointer-events: auto; }

/* compass rose — rotates so N always points to on-screen north; click = face N */
#compass { position: absolute; left: 18px; top: 18px; width: 88px; height: 88px;
  cursor: pointer; filter: drop-shadow(0 2px 5px rgba(0,0,0,.45)); }
#compass svg { width: 100%; height: 100%; display: block; }
#compass:hover { filter: drop-shadow(0 2px 7px rgba(0,0,0,.6)) brightness(1.06); }
#compass:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 50%; }

/* shared pill button styling for on-model controls */
.mbtn { font: 600 12px var(--sans); letter-spacing: .01em; border: 1px solid rgba(255,255,255,.5);
  background: rgba(7,28,46,.62); color: #eaf3fb; border-radius: 18px; padding: 6px 13px;
  cursor: pointer; backdrop-filter: blur(6px); }
.mbtn:hover { background: rgba(7,28,46,.85); border-color: #fff; }
.mbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mbtn.on { background: var(--sound-red); border-color: var(--sound-red); color: #fff; }

#resetView { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); }

/* 2D / 3D segmented toggle (top-right of the model) */
.viewseg { position: absolute; right: 16px; top: 16px; display: flex;
  background: rgba(7,28,46,.62); border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px; overflow: hidden; backdrop-filter: blur(6px); }
.viewseg button { font: 700 12px var(--sans); letter-spacing: .02em; border: none;
  background: transparent; color: #cfe3f2; padding: 6px 14px; cursor: pointer; }
.viewseg button:hover { color: #fff; }
.viewseg button.on { background: var(--sound-red); color: #fff; }
.viewseg button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

#mtools { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 7px; align-items: center;
  background: rgba(7,28,46,.62); padding: 6px 8px; border-radius: 20px; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28); }
#mout { min-width: 118px; text-align: right; font: 600 12px var(--mono); color: #eaf3fb;
  font-variant-numeric: tabular-nums; padding-right: 4px; }
#mline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
#mlabels { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
#mlabels .seg { position: absolute; transform: translate(-50%,-50%); background: var(--sound-red);
  color: #fff; font: 600 11px var(--mono); padding: 2px 7px; border-radius: 4px; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.mdot { border: none; width: 12px; height: 12px; border-radius: 50%; background: var(--sound-red);
  padding: 0; pointer-events: none; box-shadow: 0 0 0 3px #fff, 0 1px 3px rgba(0,0,0,.55); }
model-viewer.measuring { cursor: crosshair; }

/* weather card — live NWS forecast (public domain, commercial-OK, keyless) */
.wx { margin-top: 16px; padding: 14px 16px; background: var(--raised);
  border: 1px solid var(--hairline); border-radius: var(--r); }
.wx:empty { display: none; }
.wx-head { font: 700 11px var(--sans); letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; }
.wx-now { display: flex; align-items: center; gap: 12px; }
.wx-ico { font-size: 34px; line-height: 1; }
.wx-temp { font-family: var(--serif); font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wx-desc { font-size: 13px; font-weight: 600; line-height: 1.3; }
.wx-desc small { font-weight: 500; color: var(--muted); }
.wx-row { display: flex; gap: 8px; margin-top: 14px; }
.wx-cell { flex: 1; text-align: center; padding: 8px 4px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 8px; }
.wx-cell .d { font: 700 10px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.wx-cell .i { font-size: 20px; margin: 3px 0; }
.wx-cell .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.wx-src { margin-top: 10px; font-size: 11px; color: var(--muted); }

/* sun card — pure client-side solar math, no API */
.sun { display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline; margin-top: 16px;
  padding: 14px 16px; background: var(--raised); border: 1px solid var(--hairline);
  border-radius: var(--r); }
.sun .k { font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sun .v { font-family: var(--serif); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sun .note { flex-basis: 100%; font-size: 12px; color: var(--muted); }

@media (max-width: 760px) {
  #compass { width: 62px; height: 62px; left: 12px; top: 12px; }
  #mtools { right: 10px; bottom: 10px; padding: 5px 6px; }
  #mout { min-width: 88px; font-size: 11px; }
  .mbtn { padding: 5px 10px; font-size: 11.5px; }
}

/* ---- depth scale legend ---- */
.scale { padding: 30px 0; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.scale .row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.scale h2 { font-size: 16px; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.rampbar { position: relative; flex: 1 1 340px; height: 20px; border-radius: 4px; background: var(--ramp);
  border: 1px solid var(--hairline); }
.rampbar .tick { position: absolute; top: 100%; transform: translateX(-50%); font: 600 11px var(--mono);
  color: var(--muted); padding-top: 6px; white-space: nowrap; }
.rampbar .tick::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 5px;
  background: var(--muted); }
.rampbar .spot { position: absolute; top: -7px; transform: translateX(-50%); width: 10px; height: 10px;
  border-radius: 50%; background: var(--sound-red); box-shadow: 0 0 0 2px var(--surface); }

/* ---- facts ---- */
.facts { padding: 46px 0 12px; }
.facts .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; }
.facts h2 { font-size: 22px; margin-bottom: 4px; }
.section-note { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 0; border-top: 1px solid var(--hairline); }
.dl > div { display: contents; }
.dl dt, .dl dd { padding: 11px 0; border-bottom: 1px solid var(--hairline); margin: 0; }
.dl dt { color: var(--muted); font-size: 13px; font-weight: 600; padding-right: 20px; align-self: center; }
.dl dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.dl dd small { color: var(--muted); font-weight: 500; }
.dl dd.mono { font-family: var(--mono); font-size: 13px; font-weight: 500; }

/* locator mini-map (generated SVG: county silhouette + this lake among the rest,
   each other lake a hover-labelled link to its page) */
.locator { margin-top: 26px; }
.locator .eyebrow { margin-bottom: 8px; }
.loc-wrap { position: relative; max-width: 300px; }
.locator-map { width: 100%; height: auto; display: block; overflow: visible; }
.locator-map .cty { fill: var(--raised); stroke: var(--muted); stroke-width: 1;
  stroke-linejoin: round; }
.locator-map .pt { fill: var(--loc-dot); opacity: .8;
  transform-box: fill-box; transform-origin: center;
  transition: transform .1s ease, fill .1s ease, opacity .1s ease; }
.locator-map .dotlink { cursor: pointer; }
.locator-map .dotlink .hit { fill: transparent; }
.locator-map .dotlink:hover .pt,
.locator-map .dotlink:focus-visible .pt { transform: scale(2.1); fill: var(--accent); opacity: 1; }
.locator-map .dotlink:focus { outline: none; }
.locator-map .dotlink:focus-visible .pt { stroke: var(--surface); stroke-width: 1.2; }
.locator-map .here-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .5; }
.locator-map .here { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; }
.loc-tip { position: absolute; transform: translate(-50%, -100%); margin-top: -6px;
  background: var(--ink); color: var(--surface); font: 600 11px var(--sans);
  padding: 3px 8px; border-radius: 5px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 1px 5px rgba(0,0,0,.3); z-index: 3; }
.loc-tip[hidden] { display: none; }
.loc-cap { margin-top: 7px; font-size: 12px; color: var(--muted); }

.provenance { margin-top: 40px; padding: 22px 24px; background: var(--raised);
  border: 1px solid var(--hairline); border-left: 3px solid var(--water-mid); border-radius: var(--r); }
.provenance h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.provenance p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.provenance .src { font-size: 12.5px; color: var(--muted); }
.notnav { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

/* ---- fishery panel (from DNR SFR reports) ---- */
.fishery { padding: 8px 0 46px; }
.fishery .head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.fishery h2 { font-size: 22px; }
.fishery .survey { color: var(--muted); font-size: 13px; }
.fishery .kpis { display: flex; gap: 26px; flex-wrap: wrap; margin: 16px 0 24px; }
.fishery .kpi { display: flex; flex-direction: column; gap: 2px; }
.fishery .kpi .v { font-family: var(--serif); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fishery .kpi .k { font: 700 11px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.catgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.catcol h3 { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--water-mid); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--hairline); }
.catcol.gamefish h3 { color: var(--accent); }
.sprow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent); }
.sprow .nm { font-size: 14px; font-weight: 600; }
.sprow .meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sprow .meta b { color: var(--ink-soft); font-weight: 700; }
.fishery .foot { margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.fishery .foot a { color: var(--water-mid); }
.fishery .stock { margin-top: 16px; padding: 12px 16px; background: var(--raised);
  border: 1px solid var(--hairline); border-radius: var(--r); font-size: 13px; color: var(--ink-soft); }
.fishery .stock b { color: var(--ink); }

/* ---- ad slot (direct-sold, self-hosted; no third-party scripts) ---- */
.adslot { padding: 10px 0 30px; }
.adslot .wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-label { font: 700 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ad-unit { display: block; max-width: 970px; width: 100%; text-align: center; }
.ad-unit img { max-width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--hairline); }
.adslot.house .ad-unit { padding: 18px 22px; background: var(--raised); border: 1px dashed var(--hairline);
  border-radius: var(--r); color: var(--ink-soft); font-size: 14px; font-weight: 600; text-decoration: none; }
.adslot.house .ad-unit:hover { border-color: var(--water-mid); color: var(--ink); }

/* ---- more-in-county rail ---- */
.more { padding: 40px 0 60px; }
.more h2 { font-size: 18px; margin-bottom: 16px; font-family: var(--sans); font-weight: 700; }
.railwrap { overflow-x: auto; }
.rail { display: flex; gap: 14px; padding-bottom: 6px; }
.rail .card { flex: 0 0 200px; }

/* ---- lake cards (landing + rail) ---- */
.card { display: block; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--water-mid); }
.card:focus-visible { outline: 2px solid var(--water-mid); outline-offset: 2px; }
.card .thumb { aspect-ratio: 4/3; width: 100%; object-fit: cover; background: var(--navy-deep); display: block; }
.card .body { padding: 12px 14px 14px; }
.card .cname { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.card .meta { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; color: var(--muted);
  font-size: 13px; font-variant-numeric: tabular-nums; }
.card .meta .d { color: var(--accent); font-weight: 700; }
.card .meta .acc { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* ---- landing ---- */
.county-hero { padding: 54px 0 30px; }
.county-hero h1 { font-size: clamp(30px,5vw,50px); }
.county-hero p { color: var(--ink-soft); font-size: 17px; max-width: 60ch; margin: 12px 0 0; }
.tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 26px 0 4px; }
.search { flex: 1 1 280px; position: relative; }
.search input { width: 100%; font: 15px var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 24px; padding: 11px 16px 11px 42px; }
.search input:focus { outline: 2px solid var(--water-mid); outline-offset: 1px; border-color: var(--water-mid); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.sortsel { font: 600 14px var(--sans); color: var(--ink-soft); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 24px; padding: 10px 16px; cursor: pointer; }
.fbtn { display: inline-flex; align-items: center; gap: 7px; font: 600 14px var(--sans);
  color: var(--ink-soft); background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 24px; padding: 10px 16px; cursor: pointer; }
.fbtn:hover { border-color: var(--muted); color: var(--ink); }
.fbtn .fcount { display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.fbtn .fcount[hidden] { display: none; }

.filters { margin-top: 16px; padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 12px; }
.filters[hidden] { display: none; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 24px; }
.fgroup { display: flex; flex-direction: column; gap: 7px; }
.flabel { font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.flabel small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.frange { display: flex; align-items: center; gap: 8px; }
.frange span { color: var(--muted); }
.funit { color: var(--muted); }
.filters input[type="number"], .filters select { width: 100%; font: 14px var(--sans); color: var(--ink);
  background: var(--raised); border: 1px solid var(--hairline); border-radius: 7px; padding: 8px 10px; }
.frange input[type="number"] { width: 5.5em; }
.filters input:focus, .filters select:focus { outline: 2px solid var(--water-mid); outline-offset: 1px; }
.fchecks { gap: 10px; }
.fchecks label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.fchecks input { width: 16px; height: 16px; accent-color: var(--water-mid); }
.fnear { justify-content: flex-start; }
.nearbtn { font: 600 14px var(--sans); color: var(--water-mid); background: var(--raised);
  border: 1px solid var(--hairline); border-radius: 8px; padding: 9px 14px; cursor: pointer; text-align: left; }
.nearbtn:hover { border-color: var(--water-mid); }
.nearnote { font-size: 12px; color: var(--muted); margin-top: 5px; }
.freset { margin-top: 16px; font: 600 13px var(--sans); color: var(--muted); background: none;
  border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.freset:hover { color: var(--ink); }
.card .meta .dist { color: var(--water-mid); font-weight: 700; }
.linklike { background: none; border: none; color: var(--water-mid); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.count { color: var(--muted); font-size: 14px; padding: 8px 2px 20px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 18px; padding-bottom: 60px; }
.empty { padding: 40px 0; color: var(--muted); }

/* ---- advertise page ---- */
.adv-hero { padding: 54px 0 34px; }
.adv-hero h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 14px; }
.adv-hero p { color: var(--ink-soft); font-size: 18px; max-width: 60ch; margin: 0 0 26px; }
.adv-band { background: var(--navy-deep); padding: 26px 0; }
.adv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.adv-stats > div { display: flex; flex-direction: column; gap: 4px; }
.adv-stats .v { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #eaf3fb; }
.adv-stats .k { font-size: 13px; color: #9ec3dd; }
.adv-sec { padding: 44px 0; }
.adv-sec.adv-alt { background: var(--surface); border-block: 1px solid var(--hairline); }
.adv-sec h2 { font-size: 26px; margin-bottom: 20px; }
.adv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.adv-cols h3, .adv-tier h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.adv-cols p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0; }
.adv-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; max-width: 70ch; }
.adv-steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--ink-soft); line-height: 1.6; }
.adv-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; background: var(--water-mid); color: #fff;
  font: 700 14px var(--sans); }
.adv-steps strong { color: var(--ink); }
.adv-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.adv-tier { padding: 22px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); }
.adv-tier.feat { border-color: var(--water-mid); box-shadow: var(--shadow); }
.adv-tier p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.adv-rate { font: 700 13px var(--sans); color: var(--accent); }
.adv-cta { padding: 50px 0 64px; text-align: center; }
.adv-cta h2 { font-size: 28px; margin-bottom: 10px; }
.adv-cta p { color: var(--ink-soft); max-width: 54ch; margin: 0 auto 24px; }
.cta-btn { display: inline-block; font: 700 15px var(--sans); color: #fff; background: var(--accent);
  border: none; border-radius: 26px; padding: 13px 26px; text-decoration: none; }
.cta-btn:hover { filter: brightness(1.06); }
.cta-todo { background: var(--raised); color: var(--muted); border: 1px dashed var(--hairline);
  font-weight: 600; font-family: var(--mono); font-size: 13px; }

/* ---- legal pages ---- */
.legal { padding: 46px 0 60px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.legal h2 { font-size: 19px; font-family: var(--sans); font-weight: 700; margin: 30px 0 8px; }
.legal p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 12px; max-width: 68ch; }
.legal p strong { color: var(--ink); }
.legal-meta { font-size: 13px; color: var(--muted); }
.legal-meta strong { color: var(--ink-soft); }
.legal-note { margin: 18px 0 26px; padding: 12px 16px; background: var(--raised);
  border: 1px solid var(--hairline); border-left: 3px solid var(--gold); border-radius: var(--r);
  font-size: 13.5px; color: var(--ink-soft); }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--hairline); background: var(--surface); padding: 34px 0 46px; }
.site-foot .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-foot p, .site-foot li { font-size: 13px; color: var(--muted); }
.site-foot h4 { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.disclaim { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline);
  font-size: 12px; color: var(--muted); max-width: 78ch; }

@media (max-width: 760px) {
  .facts .grid { grid-template-columns: 1fr; gap: 30px; }
  .wrap { padding: 0 16px; }

  /* Phone hero: stack, don't overlay. The sounding card was covering the map on
     small screens (Jay's iPhone), so drop it out of the absolute overlay and place
     it as a normal block BELOW the map -- the lake is fully visible again. */
  .hero { display: flex; flex-direction: column; }
  .hero-model { height: 52vh; order: 1; border-bottom: 1px solid var(--hairline); }
  .sounding { position: static; order: 2; left: auto; right: auto; bottom: auto;
    width: auto; max-width: none; margin: 0; border: none; border-radius: 0;
    box-shadow: none; backdrop-filter: none; background: var(--surface);
    padding: 16px 16px 18px; }
  .sounding h1 { font-size: 26px; }
  .depthbig .n { font-size: 44px; }

  /* compact the on-map tools so they don't crowd the smaller map */
  #compass { width: 50px; height: 50px; left: 10px; top: 10px; }
  .viewseg button { padding: 5px 12px; font-size: 12px; }
  #mtools { right: 10px; bottom: 10px; padding: 4px 6px; gap: 5px; }
  #mout { min-width: 60px; font-size: 10.5px; }
  /* drop the reset button on phones: it would collide with the measure bar, and
     the 2D/3D toggle already re-centers the camera (its apply() resets the view). */
  #resetView { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
