/* SKINCHEESE / MAPS — shared tokens + sensor modes (v2 preview).
   Same family as home v3 (IBM Plex, dark, hairlines); Maps accent = gold. */
:root {
  --bg: #07080a; --bg2: #0c0e11; --bg3: #13161a;
  --panel: rgba(11,13,16,.82); --panel-solid: #0f1114;
  --ink: #ebe6da; --muted: #a8a193; --dim: #7a7366; --hair: rgba(235,230,218,.12); --hair2: rgba(235,230,218,.22);
  --gold: #e5ad45; --gold-ink: #120d03; --live: #4fd18b; --alert: #e35d70; --amber: #eaa63f; --cyan: #7db3c7;
  --c-geo: #e06c6c; --c-map: #e5ad45; --c-sacred: #7f9fd6; --c-pop: #57b3a8; --c-border: #a08fd0; --c-us: #d98a5b;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --cond: 'IBM Plex Sans Condensed', 'IBM Plex Sans', system-ui, sans-serif;
  --r: 12px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.eyebrow { font: 500 11px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hl { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* classification banner — the contractor tell */
.cls { font: 600 10px/1 var(--mono); letter-spacing: .22em; text-align: center; padding: 6px 12px; background: #1d4d33; color: #c9f2d8; text-transform: uppercase; }
.cls b { color: #fff; font-weight: 700; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 16px; background: rgba(7,8,10,.84); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--hair); }
.brand { font: 600 13px/1 var(--mono); letter-spacing: .26em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); }
.bar nav { display: flex; gap: 18px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bar nav a { text-decoration: none; } .bar nav a:hover { color: var(--ink); }
.clock { font: 500 11px var(--mono); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .bar nav { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--hair2); background: var(--panel); font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--gold); }
.btn.gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hair); background: transparent; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; color: var(--muted); white-space: nowrap; }
.chip[aria-pressed="true"] { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; }
.live.off { background: var(--amber); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79,209,139,.6); } 70% { box-shadow: 0 0 0 8px rgba(79,209,139,0); } 100% { box-shadow: 0 0 0 0 rgba(79,209,139,0); } }

/* index meter */
.meter { height: 4px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--gold); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.stats a { background: var(--bg2); padding: 12px 10px; text-decoration: none; display: block; min-width: 0; }
.stats b { display: block; font: 600 20px/1.1 var(--mono); color: var(--gold); }
.stats span { display: block; font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.stats a:hover { background: var(--bg3); }

/* sensor modes (shared with home v3 gev.css) */
.sensor { position: relative; overflow: hidden; isolation: isolate; }
.sensor::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 500; opacity: 0; transition: opacity .35s; }
.sensor canvas, .sensor .leaflet-tile-pane, .sensor img.tile { transition: filter .35s; }
html.m-crt .sensor canvas, html.m-crt .sensor .leaflet-tile-pane, html.m-crt .sensor img.tile { filter: contrast(1.25) saturate(.65) brightness(1.08) sepia(.25); }
html.m-crt .sensor::after { opacity: 1; background: repeating-linear-gradient(0deg, rgba(0,0,0,.32) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)); }
html.m-nvg .sensor canvas, html.m-nvg .sensor .leaflet-tile-pane, html.m-nvg .sensor img.tile { filter: grayscale(1) brightness(1.15) contrast(1.35) sepia(1) hue-rotate(68deg) saturate(3); }
html.m-nvg .sensor::after { opacity: 1; background: radial-gradient(circle at center, transparent 52%, rgba(0,12,0,.75) 82%); }
html.m-flir .sensor canvas, html.m-flir .sensor .leaflet-tile-pane, html.m-flir .sensor img.tile { filter: grayscale(1) invert(1) contrast(1.5) brightness(1.05); }
html.m-flir .sensor::after { opacity: 1; mix-blend-mode: color; background: linear-gradient(180deg, rgba(255,120,20,.55), rgba(255,40,80,.35)); }
html.m-noir .sensor canvas, html.m-noir .sensor .leaflet-tile-pane, html.m-noir .sensor img.tile { filter: grayscale(1) contrast(1.8) brightness(.95); }
html.m-noir .sensor::after { opacity: 1; background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.6)); }
.modes { display: flex; flex-wrap: wrap; gap: 6px; }
.modes button { min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--hair); background: var(--panel); font: 500 11px var(--mono); letter-spacing: .1em; cursor: pointer; color: var(--ink); }
.modes button kbd { font: inherit; opacity: .55; margin-right: 6px; }
.modes button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* leaflet tweaks */
.leaflet-container { background: #0b0f12; font: 12px var(--mono); }
.leaflet-control-attribution { font: 9px var(--mono) !important; background: rgba(0,0,0,.55) !important; color: #bdb7aa !important; }
.leaflet-control-attribution a { color: #bdb7aa !important; }
.leaflet-bar a { background: var(--panel-solid) !important; color: var(--ink) !important; border-color: var(--hair) !important; }
.ac-ico { background: none; border: 0; }
.ac-ico svg { width: 22px; height: 22px; filter: drop-shadow(0 0 3px #000); }
.ac-ico span { position: absolute; left: 24px; top: 3px; font: 600 10px var(--mono); color: #fff; text-shadow: 0 0 4px #000; white-space: nowrap; }

.wv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wv-chips .chip { min-height: 32px; font-size: 10px; }
.wv-key { font: 11px/1.5 var(--mono); color: var(--muted); margin-top: 8px; }
.wv-key span { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }

/* preview options bar */
.optbar { position: fixed; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); z-index: 2000; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(20,22,26,.92); border: 1px solid var(--hair2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; }
.optbar::-webkit-scrollbar { display: none; }
.optbar a { font: 600 11px/1 var(--mono); letter-spacing: .12em; padding: 10px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.optbar a[aria-current="page"] { background: var(--gold); color: var(--gold-ink); }
.optbar a:hover { color: var(--ink); }
.optbar.hide { transform: translate(-50%, 140%); transition: transform .3s; }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } }

/* ── v3: no pills. Plain text links, square edges (Colin: pills look vibe-coded) ── */
:root { --r: 3px; }
.btn, .chip { border: 0 !important; background: none !important; border-radius: 0 !important; min-height: 36px; padding: 0 2px !important; color: var(--ink) !important; text-decoration: underline; text-decoration-color: var(--hair2); text-underline-offset: 5px; font: 500 12px var(--mono); letter-spacing: .12em; }
.btn:hover, .chip:hover { text-decoration-color: var(--gold); }
.btn.gold, .chip[aria-pressed="true"] { color: var(--gold) !important; text-decoration-color: var(--gold); }
.chip { color: var(--muted) !important; text-decoration: none; }
.chip[aria-pressed="true"] { text-decoration: underline; }
.modes button { border: 0 !important; background: none !important; border-radius: 0 !important; padding: 0 6px; color: var(--muted); }
.modes button[aria-pressed="true"] { color: var(--gold) !important; background: none !important; text-decoration: underline; text-underline-offset: 5px; }
.optbar { border-radius: 0; padding: 0; gap: 0; }
.optbar a { border-radius: 0; padding: 12px 12px; }
.optbar a[aria-current="page"] { background: none; color: var(--gold); text-decoration: underline; text-underline-offset: 5px; }
