/* Lizard Island Climate: shared tokens and components, desktop and phone layouts (from the October 2026 mockup) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff") format("woff"); }

:root {
  --bg: #f3f4f1;
  --surface: #ffffff;
  --surface-2: #f8f9f7;
  --ink: #16201c;
  --ink-2: #47524d;
  --muted: #5c6661;
  --faint: #a9b0ac;
  --line: #e4e7e2;
  --line-2: #eef0ec;
  --sun: #f2a93b;
  --sun-deep: #b86a0c;
  --sun-soft: #fdf1dc;
  --sun-text: #8a4f00;
  --live: #0d7466;
  --live-soft: #e2f2ee;
  --model: #43508f;
  --model-soft: #eaedf8;
  --static: #5e6762;
  --static-soft: #eceeec;
  --off: #7a5a12;
  --off-soft: #f6efdc;
  --shadow-1: 0 1px 2px rgba(22, 32, 28, .06), 0 1px 1px rgba(22, 32, 28, .03);
  --shadow-2: 0 2px 4px rgba(22, 32, 28, .05), 0 8px 24px rgba(22, 32, 28, .07);
  --shadow-3: 0 4px 10px rgba(22, 32, 28, .08), 0 18px 40px rgba(22, 32, 28, .14);
  --r-card: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.4 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; }
a { color: var(--live); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid #1a73e8; outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 8px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.tag.live { background: var(--live-soft); color: var(--live); }
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(13, 116, 102, .16); }
.tag.model { background: var(--model-soft); color: var(--model); }
.tag.model.ld::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2.5px rgba(13, 116, 102, .16); }
.tag.static { background: var(--static-soft); color: var(--static); }
.tag.off { background: var(--off-soft); color: var(--off); }
.badge-sky { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--sun); color: #3d2604; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge-sky.cloud { background: #dfe3e1; color: #26302c; }
.badge-sky.night { background: #26304a; color: #e9ecf7; }

.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-2); border: 1px solid rgba(22, 32, 28, .04); }
.card-h { display: flex; align-items: center; gap: 8px; }
.card-h h2 { font-size: 13px; font-weight: 650; letter-spacing: -.005em; color: var(--ink); }
.card-h .aside { margin-left: auto; font-size: 12px; color: var(--muted); }
.glass { background: rgba(255, 255, 255, .93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 14px; box-shadow: var(--shadow-3); border: 1px solid rgba(255, 255, 255, .7); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 12.5px/1 var(--font); white-space: nowrap; }
.btn[aria-pressed="true"], .btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ramp { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #24304a 0%, #4d5570 25%, #a8683a 50%, #eb9a2a 75%, #ffc83d 100%); }
.hatch { display: inline-block; width: 16px; height: 10px; border-radius: 2px;
  background: repeating-linear-gradient(135deg, rgba(110,112,116,.65) 0 3px, rgba(215,215,215,.95) 3px 5px); }
.water { background: radial-gradient(ellipse 70% 65% at 50% 48%, #9cc6d4 0%, #8fbccb 100%); }

/* ---------------------------------------------------------------- desktop */
.hdr { display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, #12806f, #0b5f54); display: grid; place-items: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); color: #fff; flex: none; }
.mark svg { width: 20px; height: 20px; }
.brand h1 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.brand .sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.clock { display: flex; align-items: center; gap: 16px; padding-left: 24px; border-left: 1px solid var(--line); height: 36px; }
.clock .t { font-size: 20px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.clock .t small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.clock .d { font-size: 12px; color: var(--muted); line-height: 1.25; white-space: nowrap; }
.sunrs { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.sunrs > span { display: inline-flex; align-items: center; gap: 6px; }
.sunrs svg { width: 16px; height: 16px; stroke-width: 1.5; }
.sunrs .rise svg { color: #e0961f; } .sunrs .set svg { color: #b86a0c; }
nav.tabs { display: flex; gap: 2px; padding: 3px; background: var(--bg); border-radius: 11px; margin-left: auto; }
nav.tabs a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
nav.tabs a svg { width: 15px; height: 15px; }
nav.tabs a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 650; }
.upd { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.pulse.ok { background: var(--live); box-shadow: 0 0 0 4px rgba(13,116,102,.15); }
.pulse.stale { background: #d08a12; box-shadow: 0 0 0 4px rgba(208,138,18,.18); }
.pulse.bad { background: #b3402f; box-shadow: 0 0 0 4px rgba(179,64,47,.16); }
.ptop, .tabbar, .fab, .maplabel { display: none; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "map side" "today today"; gap: 16px; padding: 16px 24px; height: calc(100vh - 64px); min-height: 700px; }
.mapcol { grid-area: map; position: relative; min-height: 0; }
.mapbox { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--shadow-2); touch-action: none; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#map.dragging { cursor: grabbing; }

.layers { position: absolute; left: 16px; top: 16px; width: 256px; padding: 8px; margin: 0; z-index: 3; }
.layers .hd { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 2px 6px 6px; float: left; width: 100%; }
.layers .hd svg { width: 14px; height: 14px; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; font-size: 13px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; clear: both; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .rd { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #b8bfba; flex: none; }
.opt .tag { margin-left: auto; height: 18px; font-size: 9.5px; padding: 0 6px; }
.opt { flex-wrap: wrap; row-gap: 0; }
.opt .sub { display: none; flex-basis: 100%; padding-left: 26px; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: -1px; }
.opt:has(input:checked) { background: var(--sun-soft); color: var(--ink); font-weight: 600; }
.opt:has(input:checked) .rd { border: 5px solid var(--ink); }
.opt:has(input:checked) .sub { display: block; }
.opt:has(input:focus-visible) { outline: 2.5px solid #1a73e8; outline-offset: 1px; }
.islchip { position: absolute; left: 284px; top: 16px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px;
  border-radius: 999px; font-size: 12.5px; color: var(--ink-2); z-index: 2; white-space: nowrap; }
.islchip b { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.islchip .dot { width: 10px; height: 10px; border-radius: 50%; background: #ffc83d; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(184,106,12,.45); }
.islchip.night .dot { background: #26304a; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(38,48,74,.45); }

.mapctl { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.mapctl .grp { display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; }
.mapctl button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); }
.mapctl button:hover { background: rgba(0,0,0,.04); }
.mapctl .grp button + button { border-top: 1px solid var(--line); }
.north { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }

.pin { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; z-index: 1;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 3px 10px rgba(0, 0, 0, .35); display: grid; place-items: center; pointer-events: none; }
.pin::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.pin::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); }
.pin[hidden] { display: none; }

.spot { position: absolute; right: 16px; top: 16px; width: 300px; padding: 12px 14px; z-index: 3; }
.spot .hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.spot h2 { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.spot .loc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.spot .x { border: 0; background: transparent; color: var(--muted); padding: 4px; margin: -4px -4px 0 0; border-radius: 6px; display: grid; }
.spot .x svg { width: 16px; height: 16px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.kv b { font-weight: 650; color: var(--ink); font-size: 13.5px; white-space: nowrap; }
.kv .yes { display: inline-flex; align-items: center; gap: 6px; }
.kv .yes::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dotc, var(--sun)); box-shadow: 0 0 0 3px rgba(242,169,59,.25); }
.kv .lab { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kv .tag { height: 18px; font-size: 9.5px; padding: 0 6px; }
.minichart { padding: 8px 0; border-top: 1px solid var(--line-2); }
.minichart .top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.minichart .top b { font-size: 13px; font-weight: 650; color: var(--ink); }
.minichart .top b small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.minichart svg { display: block; width: 100%; height: 30px; }
.minichart .ax { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; }

.legend { position: absolute; right: 64px; bottom: 184px; width: 240px; padding: 11px 13px; z-index: 2; }
.legend.compact .tt, .legend.compact .ds { display: none; }
.legend .tt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.legend .tt .num { font-weight: 500; color: var(--muted); font-size: 12px; }
.legend .tt .tag { margin-left: auto; height: 18px; font-size: 9.5px; padding: 0 6px; }
.legend .ds { font-size: 11.5px; color: var(--muted); margin: 2px 0 9px; }
.legend .ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-top: 5px; }
.legend .row2 { display: flex; gap: 16px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-2); }
.legend .row2 span { display: inline-flex; align-items: center; gap: 6px; }
.legend .row2[hidden] { display: none; }
.scale { position: absolute; left: 16px; bottom: 16px; padding: 5px 10px 7px; border-radius: 8px; background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-1); color: var(--ink-2); font-size: 11px; font-weight: 600; z-index: 2; }
.scale .bar { height: 5px; border: 1.5px solid var(--ink-2); border-top: 0; margin-top: 3px; }
.loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.9);
  font-size: 12.5px; color: var(--ink-2); box-shadow: var(--shadow-1); z-index: 4; }

.inset { position: absolute; right: 64px; bottom: 16px; width: 240px; padding: 12px; z-index: 2; }
.inset .hd { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.inset .hd h2 { font-size: 12px; font-weight: 650; }
.inset .hd svg { width: 15px; height: 15px; color: var(--ink-2); }
.inset .hd .tag { margin-left: auto; height: 18px; font-size: 9.5px; padding: 0 6px; }
/* the satellite loop: a square frame, the frame's time and cloud, play or pause, a step per frame */
.lp { display: flex; gap: 10px; align-items: stretch; }
.lpimg { position: relative; flex: none; width: 132px; height: 132px; padding: 0; border: 0; border-radius: 8px; overflow: hidden;
  background: #1a2d40; display: block; cursor: zoom-in; }
.lpimg:disabled { cursor: default; }
.lpimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lpimg img[hidden], .lpimg .ring[hidden], .kind[hidden] { display: none; }
.lpimg .ring { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 2px solid #ffc83d; box-shadow: 0 0 0 1.5px rgba(0,0,0,.35); }
.lpimg .grow { position: absolute; right: 5px; top: 5px; width: 16px; height: 16px; color: #fff; stroke-width: 2.2;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.7)); }
.lpimg:disabled .grow { display: none; }
.kind { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 5px;
  font-size: 9.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; background: rgba(255, 200, 61, .94); color: #3d2604;
  pointer-events: none; }
.kind.ir { background: rgba(38, 48, 74, .92); color: #e9ecf7; }
.lpinfo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); }
.lpt b { display: block; font-size: 15px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.lpt b small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.lpt > span { display: block; font-size: 11px; margin-top: 1px; }
.lpc { color: var(--ink-2); font-size: 11.5px; line-height: 1.3; }
.lpc b { font-weight: 600; color: var(--ink); }
.lpplay { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center;
  flex: none; padding: 0; }
.lpinfo .lpplay { margin-top: auto; }
.lpplay svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.lpplay.is-play svg { margin-left: 2px; }
.lpplay[hidden] { display: none; }
.lpsteps { display: flex; gap: 2px; height: 3px; margin-top: 8px; }
/* desktop, a spot open and no room for the legend: a small frame, the play button beside the time */
.inset.short .lpimg { width: 64px; height: 64px; }
.inset.short .kind, .inset.short .grow { display: none; }
.inset.short .lpinfo { position: relative; gap: 3px; }
.inset.short .lpinfo .lpplay { position: absolute; right: 0; top: 0; width: 28px; height: 28px; margin: 0; }
.inset.short .lpinfo .lpplay svg { width: 12px; height: 12px; }
.inset.short .lpt b { font-size: 14px; }
.inset.short #loopAgo::before { content: attr(data-kind) ", "; }
.lpsteps i { flex: 1 1 0; border-radius: 2px; background: #dde1de; }
.lpsteps i.on { background: var(--ink-2); }

/* the larger view */
.lpdlg { padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3);
  width: min(600px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; }
.lpdlg::backdrop { background: rgba(10, 22, 20, .6); }
.lpbox { padding: 14px 16px 16px; }
.lpwrap { width: min(100%, max(240px, calc(100vh - 270px))); width: min(100%, max(240px, calc(100dvh - 270px))); margin: 0 auto; }
.lphd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lphd h2 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.lphd .x { border: 0; background: transparent; color: var(--muted); padding: 8px; margin: -8px -8px -8px 0; border-radius: 8px; display: grid; }
.lphd .x svg { width: 18px; height: 18px; }
.lpbig { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #1a2d40; }
.lpbig img { width: 100%; height: 100%; display: block; }
.lpbig .kind { left: 10px; top: 10px; height: 21px; padding: 0 8px; font-size: 11px; border-radius: 6px; }
.lpsteps.big { height: 16px; padding: 6px 0; margin-top: 4px; cursor: pointer; }
.lpbar { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.lpstep { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; flex: none; padding: 0; }
.lpstep svg { width: 16px; height: 16px; stroke-width: 2.2; }
.lpbar .lpplay { width: 40px; height: 40px; }
.lpbar .lpplay svg { width: 16px; height: 16px; }
.lpbt { margin-left: 6px; font-size: 12px; color: var(--muted); line-height: 1.4; min-width: 0; }
.lpbt b { font-size: 15px; color: var(--ink); font-weight: 650; }
.lpbt #loopBigCloud { color: var(--ink-2); }
.lpnote { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* side */
.side { grid-area: side; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding: 0 2px 2px; margin: 0 -2px; }
.wx { padding: 14px 16px 12px; flex: none; }
.wxnote { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tile { position: relative; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); min-width: 0; }
.tile .lb { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.tile .lb svg { width: 15px; height: 15px; color: var(--ink-2); }
.tile .v { margin-top: 5px; font-size: 22px; font-weight: 650; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.tile .v.sm { font-size: 15px; letter-spacing: -.01em; line-height: 1.25; white-space: normal; }
.tile .v small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.tile .note { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.tile .note.pr { padding-right: 34px; }
.tile .compass { position: absolute; right: 10px; top: 50%; margin-top: -14px; width: 30px; height: 30px; }
.sparkbox { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); position: relative; }
.sparkbox .top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.sparkbox .top span { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.sparkbox .plot { position: relative; }
.sparkbox svg { display: block; width: 100%; height: 50px; margin-top: 4px; }
.sparkbox .minlbl { position: absolute; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.sparkbox .minlbl b { color: var(--ink-2); font-weight: 600; }
.sparkbox .ax { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.suncard { padding: 12px 16px; flex: none; }
.sunrow { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.hero { font-size: 38px; font-weight: 700; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.hero small { font-size: 22px; font-weight: 650; color: var(--ink-2); margin-left: 1px; }
.sunrow .txt { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.meter { position: relative; height: 8px; border-radius: 4px; background: #e9ebe7; margin: 12px 0 6px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #eb9a2a, #ffc83d); width: 0; }
.meter b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink-2); border-radius: 1px; }
.sunpos { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); justify-content: space-between; }
.sunpos b { color: var(--ink-2); font-weight: 600; }
.placeholder { margin: 10px 0 0; padding: 6px 9px; border-radius: 8px; background: var(--off-soft); color: #5e4510; font-size: 11.5px; line-height: 1.35; }
.keys { padding: 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; font-size: 11px; line-height: 1.3; color: var(--muted); flex: none; }
.keys > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.keys .tag { height: 18px; font-size: 9.5px; padding: 0 6px; }

/* today strip */
.today { grid-area: today; padding: 10px 18px 6px; }
.ctl { display: flex; align-items: center; gap: 10px; }
.play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sun); color: #3d2604; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(242,169,59,.45); flex: none; }
.play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.play.is-play svg { margin-left: 2px; }
.ctl .t { font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin-left: 6px; display: flex; align-items: baseline; gap: 10px; }
.ctl .hint { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.ctl .right { margin-left: auto; display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-2); flex-wrap: wrap; justify-content: flex-end; }
.ctl .right span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ctl .right i { width: 14px; height: 8px; border-radius: 3px; display: inline-block; }
.tracks { position: relative; display: grid; grid-template-columns: 152px 40px minmax(0, 1fr) 64px; row-gap: 2px; align-items: center; margin-top: 8px; }
.tracks .lbl { font-size: 12px; color: var(--ink-2); font-weight: 500; display: flex; flex-direction: column; gap: 3px; }
.tracks .lbl .tag { height: 16px; font-size: 9px; padding: 0 5px; align-self: flex-start; }
.tracks .sc { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 8px 2px 0; font-size: 11px; color: var(--muted); text-align: right; }
.tracks .val { font-size: 12.5px; font-weight: 650; text-align: right; white-space: nowrap; }
.tracks svg { display: block; width: 100%; }
.tracks .band { height: 12px; }
.tracks .c1 { height: 48px; } .tracks .c2 { height: 40px; }
.axis { position: relative; height: 20px; font-size: 11px; color: var(--muted); }
.axis span { position: absolute; transform: translateX(-50%); top: 3px; white-space: nowrap; }
.axis span.e0 { transform: none; } .axis span.e1 { transform: translateX(-100%); }
.axis span.e0, .axis span.e1 { display: inline-flex; align-items: center; gap: 4px; top: 1px; color: var(--ink-2); font-weight: 500; }
.axis svg { width: 16px; height: 16px; stroke-width: 1.5; }
.axis .tk { position: absolute; top: -2px; width: 1px; height: 4px; background: var(--faint); }
.nowline { position: absolute; top: 0; bottom: 22px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; pointer-events: none; display: none; }
.nowline .knob { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 7px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 650; white-space: nowrap; box-shadow: var(--shadow-1); }
.nowline .knob::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.selline { position: absolute; top: 0; bottom: 22px; width: 2px; margin-left: -1px; background: var(--sun-deep); pointer-events: none; }
.selline[hidden] { display: none; }
.tip { position: absolute; padding: 6px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11.5px; pointer-events: none;
  white-space: nowrap; opacity: 0; transform: translate(-50%, -110%); transition: opacity .1s; z-index: 5; }

/* the time slider (a custom slider so that it lines up with the charts exactly) */
.slider { position: relative; height: 6px; border-radius: 3px; background: #eceee9; margin: 10px 0 8px; cursor: pointer; touch-action: none; }
.slider::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
.slider .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #f7d9a4, var(--sun)); width: 0; }
.slider .thumb { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff;
  border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.slider:focus-visible { outline: none; }
.slider:focus-visible .thumb { outline: 2.5px solid #1a73e8; outline-offset: 2px; }
.tracks .chartarea { cursor: crosshair; }

.foot { display: none; }

/* short desktop windows: let the page scroll instead of squashing the map */
@media (min-width: 821px) and (max-height: 780px) {
  .layout { height: auto; grid-template-rows: 560px auto; }
}
@media (min-width: 821px) and (max-width: 1260px) {
  .clock .d, .brand .sub { display: none; }
  .ctl .right { display: none; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .sunrs { display: none; }
  .islchip { left: auto; right: 332px; }
  .inset { display: none; }
}

/* ---------------------------------------------------------------- phone (one column) */
@media (max-width: 820px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom) + 8px); overflow-x: hidden; }
  .hdr { display: none; }
  .ptop { display: block; position: relative; padding: 12px 16px 14px; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, #1b8a78 0%, #0d6a5d 45%, #0a4f46 100%); }
  .ptop .row1 { display: flex; align-items: center; gap: 10px; }
  .ptop .mark { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.14); box-shadow: none; }
  .ptop .mark svg { width: 17px; height: 17px; }
  .ptop .h1 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
  .ptop .badge-sky { margin-left: auto; }
  .ptop .row2 { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
  .ptop .hero { font-size: 40px; color: #fff; line-height: .95; }
  .ptop .hero small { color: rgba(255,255,255,.82); font-size: 21px; }
  .ptop .meta { font-size: 12.5px; color: rgba(255,255,255,.85); line-height: 1.45; }
  .ptop .meta b { color: #fff; font-weight: 650; }
  .ptop .live { display: inline-flex; align-items: center; gap: 6px; }
  .ptop .live i { width: 7px; height: 7px; border-radius: 50%; background: #7ee0c8; box-shadow: 0 0 0 3px rgba(126,224,200,.25); }
  .ptop .live i.stale { background: #f2c062; } .ptop .live i.bad { background: #f08f7f; }

  .layout { display: flex; flex-direction: column; height: auto; min-height: 0; padding: 0; gap: 0; }
  .mapcol, .side { display: contents; }
  .mapbox { position: relative; inset: auto; height: 360px; border-radius: 0; box-shadow: none; order: 1; }
  .layers { display: none; left: 12px; top: 52px; width: min(300px, calc(100% - 24px)); }
  .layers.open { display: block; }
  .opt { padding: 9px 8px; min-height: 44px; }
  .islchip { display: none; }
  .maplabel { display: inline-flex; position: absolute; left: 12px; top: 12px; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px;
    border-radius: 999px; font-size: 13px; font-weight: 650; z-index: 2; }
  .maplabel .num { font-weight: 500; color: var(--muted); }
  .maplabel .tag { height: 18px; font-size: 9.5px; padding: 0 6px; }
  .scale { left: auto; right: 12px; bottom: auto; top: 12px; font-size: 10.5px; }
  .mapctl { right: 12px; bottom: auto; top: 58px; }
  .mapctl .north, .mapctl .grp:nth-child(2) { display: none; }
  .mapctl button { width: 40px; height: 40px; }
  .fab { display: grid; position: absolute; right: 12px; bottom: 30px; width: 46px; height: 46px; border-radius: 50%; place-items: center; color: var(--ink); z-index: 3; border: 0; }
  .fab svg { width: 20px; height: 20px; }
  .legend { left: 0; right: 0; bottom: 0; width: auto; padding: 22px 72px 26px 16px; border-radius: 0; background: linear-gradient(180deg, rgba(10,30,30,0) 0%, rgba(10,30,30,.34) 100%);
    box-shadow: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; pointer-events: none; }
  .legend .tt, .legend .ds { display: none; }
  .legend .ends { color: #fff; font-weight: 600; font-size: 11.5px; text-shadow: 0 1px 3px rgba(0,0,0,.55); margin: 0 0 4px; order: -1; }
  .legend { display: flex; flex-direction: column; }
  .legend .ramp { height: 6px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.5); }
  .legend .row2 { border: 0; padding: 0; margin-top: 6px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
  .legend { right: 0; bottom: 0; }

  .spot { position: relative; right: auto; top: auto; width: auto; order: 2; margin-top: -18px; border-radius: 20px 20px 0 0; padding: 14px 16px 14px;
    background: var(--surface); box-shadow: 0 -6px 20px rgba(22,32,28,.12); backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; z-index: 3; }
  .spot::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: #d6dad6; margin: -6px auto 8px; }
  .spot h2 { font-size: 15px; }
  .spot .loc { font-size: 12px; }
  .spot .x { padding: 10px; margin: -10px -10px 0 0; }

  .today { order: 3; margin: 12px 16px 0; padding: 10px 14px 8px; }
  .ctl { flex-wrap: nowrap; }
  .ctl .t { min-width: 0; flex: 1 1 auto; }
  .dt { display: none; }
  .play { width: 44px; height: 44px; }
  .ctl .t { flex-direction: column; gap: 0; font-size: 14px; margin-left: 0; order: 1; }
  .ctl .hint { font-size: 11.5px; }
  #nowBtn { order: 2; margin-left: auto; height: 44px; padding: 0 16px; border-radius: 22px; font-size: 13px; }
  .play { order: 0; }
  .ctl .right { display: none; }
  .tracks { grid-template-columns: 0 0 minmax(0, 1fr) 0; margin-top: 12px; }
  .tracks .lbl, .tracks .sc, .tracks .val { visibility: hidden; overflow: hidden; min-width: 0; height: 0; padding: 0; }
  .tracks .air { display: none; }
  .tracks .band { margin-top: 18px; }
  .tracks::before { content: "Cloud, satellite"; position: absolute; left: 0; top: 0; font-size: 11px; color: var(--muted); }
  .tracks .c1 { height: 44px; margin-top: 4px; }

  .inset { position: relative; right: auto; bottom: auto; width: auto; order: 4; margin: 12px 16px 0; background: var(--surface); box-shadow: var(--shadow-2);
    backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid rgba(22,32,28,.04); border-radius: var(--r-card); }
  .inset .hd h2 { font-size: 13px; }
  .lp { gap: 14px; }
  .lpimg { width: 168px; height: 168px; }
  .lpt b { font-size: 17px; }
  .lpt b small { font-size: 12px; }
  .lpt > span { font-size: 12px; }
  .lpc { font-size: 13px; }
  .lpinfo .lpplay { width: 44px; height: 44px; }
  .lpinfo .lpplay svg { width: 16px; height: 16px; }
  .lpsteps { height: 4px; margin-top: 10px; }
  .lpsteps.big { height: 24px; padding: 10px 0; margin-top: 0; }
  .lpdlg { width: calc(100vw - 16px); border-radius: 16px; }
  .lpbox { padding: 12px 12px 14px; }
  .lpwrap { width: min(100%, max(240px, calc(100vh - 290px))); width: min(100%, max(240px, calc(100dvh - 290px))); }
  .lpstep { width: 44px; height: 44px; }
  .lpbar .lpplay { width: 48px; height: 48px; }
  .lphd .x { padding: 12px; margin: -12px -12px -12px 0; }

  .wx { order: 5; margin: 12px 16px 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 8px 9px; }
  .tile .v { font-size: 19px; }
  .tile .v.sm { font-size: 13.5px; }
  .tile .lb { font-size: 11px; gap: 4px; }
  .tile .lb svg { width: 13px; height: 13px; }
  .tile .compass { display: none; }
  .suncard { order: 6; margin: 12px 16px 0; }
  .keys { order: 7; margin: 14px 16px 0; grid-template-columns: 1fr 1fr; }
  .foot { display: flex; order: 8; flex-direction: column; gap: 4px; padding: 16px; text-align: center; font-size: 11.5px; color: var(--muted); }

  nav.tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; grid-template-columns: repeat(4, 1fr);
    height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 6px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 20; }
  nav.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 500;
    color: var(--muted); text-decoration: none; border-radius: 10px; }
  nav.tabbar a svg { width: 21px; height: 21px; }
  nav.tabbar a.on { color: var(--live); font-weight: 650; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------------------------------------------------------------- about page */
.page-about .hdr .clock { display: none; }
.doc { max-width: 760px; margin: 0 auto; padding: 28px 24px 64px; }
.doc h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.doc .lede { font-size: 15.5px; color: var(--ink-2); margin: 0 0 22px; line-height: 1.5; }
.doc h2 { font-size: 17px; letter-spacing: -.01em; margin: 30px 0 8px; }
.doc h3 { font-size: 14px; margin: 18px 0 6px; }
.doc p, .doc li { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc .card { padding: 16px 18px; margin: 14px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc th, .doc td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--line-2); vertical-align: top; }
.doc th { font-weight: 600; color: var(--ink); }
.doc .tagrow { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; align-items: start; }
.doc .tagrow .tag { justify-self: start; margin-top: 2px; }
.doc .tagrow p { margin: 0; }
.doc .st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.doc .st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.doc .st.ok::before { background: var(--live); } .doc .st.stale::before { background: #d08a12; } .doc .st.error::before, .doc .st.none::before { background: #b3402f; }
@media (max-width: 820px) {
  .page-about .ptop .row2 { display: none; }
  .doc { padding: 18px 16px 40px; }
  .doc h1 { font-size: 22px; }
  .doc .tagrow { grid-template-columns: 1fr; gap: 4px 0; }
  .doc .tagrow p { margin-top: 0; }
}
