/* Kalailm – design system + components.
   Identity: pale northern light, reed, stone and peat (light) / Baltic night (dark).
   Neutrals are tinted (green-grey paper, sea-black), never pure grey or navy. One accent – moss –
   used sparingly (active tab, "nüüd", focus). Ratings are their own set: hea = Baltic blue,
   rahuldav = reed gold, nõrk = peat rust, suletud = stone (+ hatch), andmed puuduvad = pale stone
   (outline) – checked for deuter-/prot-/tritanopia (min ΔE ≥ 18 between any two).
   Type: Schibsted Grotesk (text), Archivo semi-condensed for figures (tabular), both OFL, subset
   to Latin + Estonian in /fonts. Scale 11.5 / 13 / 15 / 17 / 21 / 28 + numbers 22 / 30 / 44. */

/* text face: Plus Jakarta Sans (owner's pick 2026-11-21; OFL, vendored). Schibsted Grotesk file kept in /fonts as the previous face. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113; }
@font-face { font-family: "Kalailm Num"; src: url("/fonts/archivo-num.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0020, U+0025, U+002B-003A, U+007E, U+00B0-00B3, U+2009, U+2013, U+2212, U+202F; }

:root {
  /* colour – light */
  --bg: #f2f1eb;
  --bg-raised: #fbfaf6;
  --bg-sunk: #e7e6dd;
  --ink: #17201e;
  --ink-2: #46514d;
  --ink-3: #66706b;
  --hair: #dcdad0;
  --hair-2: #c6c4b8;
  --accent: #4d6b1f;          /* moss */
  --accent-soft: #e3e8d3;
  --on-ink: #f6f5ef;
  --warn: #8a5a00;
  --bad: #a8361c;
  --cold: #2f5d8a;
  --future: rgba(70, 81, 77, 0.055);
  --night: rgba(23, 32, 30, 0.028);
  --shadow-1: 0 1px 2px rgba(23, 32, 30, 0.06), 0 3px 10px rgba(23, 32, 30, 0.07);
  --shadow-2: 0 10px 34px rgba(23, 32, 30, 0.2);
  /* ratings */
  --b-hea: #2a8548;
  --b-rahuldav: #d9861a;
  --b-nork: #c63f2e;
  --b-suletud: #7a776f;
  --b-nodata: #b3b1a8;
  --on-band: #ffffff;
  --track: #dedcd2;
  /* data palette (charts, map lines) */
  --c-wind: #24486b;
  --c-gust: #9db0c4;
  --c-obs: #17201e;
  --c-level: #1e6c83;
  --c-flow: #9a5a22;
  --c-temp: #b8542a;
  --c-wtemp: #5257a3;
  --c-sst: #5257a3;
  --c-rain: #3f7cb3;
  --c-cloud: #8b938f;
  --c-wave: #2c7f8c;
  --c-on: #2f7fa6;            /* wind from the sea */
  --c-off: #9c6b3f;           /* wind from the land */
  --c-along: #b8b6ab;
  --c-south: rgba(194, 150, 42, 0.16);
  --zone-1: rgba(180, 80, 47, 0.045);
  --zone-2: rgba(180, 80, 47, 0.09);
  /* type */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Kalailm Num", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --fs-xs: 11.5px;
  --fs-s: 13px;
  --fs: 15px;
  --fs-m: 17px;
  --fs-l: 21px;
  --fs-xl: 28px;
  --num-s: 22px;
  --num: 30px;
  --num-l: 44px;
  /* space, radius, motion */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --gut: 16px;
  --r-s: 6px; --r: 10px; --r-l: 16px; --r-xl: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
  --hdr-h: calc(52px + env(safe-area-inset-top));
  --tab-h: calc(60px + env(safe-area-inset-bottom));
  color-scheme: light dark;
  /* glass look ("2 · Klaas", owner's pick 2026-11-21) – defined once here, dark values below.
     Surfaces are opaque (top → bottom gradient) so sheets, sticky panels and map chips need no fallback;
     the glass reads from the rim light on the top edge, a faint outline and a soft drop shadow. */
  --glow: color-mix(in srgb, var(--bg) 82%, #c9de8e);         /* page tint at the very top */
  --glass-top: #ffffff;
  --glass-bot: color-mix(in srgb, #ffffff 55%, var(--bg));
  --glass-bg: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  --glass-rim: inset 0 1px 0 #ffffff;
  --glass-edge: rgba(23, 32, 30, 0.07);
  --glass-line: inset 0 0 0 1px var(--glass-edge);
  --glass-drop: 0 1px 2px rgba(23, 32, 30, 0.05), 0 6px 18px rgba(23, 32, 30, 0.09);
  --glass-shadow: var(--glass-rim), var(--glass-line), var(--glass-drop);
  --glass-shadow-2: var(--glass-rim), var(--glass-line), 0 14px 40px rgba(23, 32, 30, 0.22);
  /* buttons: primary = glossy accent pill, secondary = glass pill; --btn-spec = the curved top highlight */
  --btn-p-bg: radial-gradient(80% 120% at 50% 60%, color-mix(in srgb, var(--accent) 92%, #fff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 62%, #000) 100%);
  --btn-p-ink: #ffffff;
  --btn-p-text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
  --btn-p-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(23, 32, 30, 0.25);
  --btn-spec: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02));
  --btn-s-bg: linear-gradient(180deg, #ffffff, #ecebe3);
  --btn-s-ink: var(--ink);
  --btn-s-shadow: inset 0 1px 0 #ffffff, inset 0 0 0 1px rgba(23, 32, 30, 0.12), 0 2px 5px rgba(23, 32, 30, 0.12);
  --btn-s-spec: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  /* segmented controls: sunken track + raised thumb */
  --seg-track: rgba(23, 32, 30, 0.065);
  --seg-track-shadow: inset 0 1px 2px rgba(23, 32, 30, 0.13), 0 1px 0 rgba(255, 255, 255, 0.8);
  --seg-thumb: linear-gradient(180deg, #ffffff, #f2f1ea);
  --seg-thumb-shadow: inset 0 1px 0 #ffffff, 0 0 0 0.5px rgba(23, 32, 30, 0.1), 0 1px 3px rgba(23, 32, 30, 0.2);
  /* top bar + bottom tab bar (translucent over a blur; solid where backdrop-filter is missing) */
  --bar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.6)), color-mix(in srgb, var(--bg) 70%, transparent);
  --bar-solid: linear-gradient(180deg, #ffffff, var(--glass-bot));
  --bar-shadow-top: 0 1px 0 rgba(23, 32, 30, 0.07), 0 4px 14px rgba(23, 32, 30, 0.06);
  --bar-shadow-bot: inset 0 1px 0 #ffffff, 0 -1px 0 rgba(23, 32, 30, 0.07), 0 -4px 14px rgba(23, 32, 30, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1514; --bg-raised: #172120; --bg-sunk: #1c2826; --ink: #e9ebe4; --ink-2: #b0b9b4; --ink-3: #87918c; --hair: #24302e; --hair-2: #34413e;
    --accent: #b4d46b; --accent-soft: #26301c; --on-ink: #0e1514; --warn: #e9b44c; --bad: #f08a6a; --cold: #8fbbe8;
    --future: rgba(233, 235, 228, 0.035); --night: rgba(0, 0, 0, 0.28);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 3px 12px rgba(0, 0, 0, 0.3); --shadow-2: 0 12px 40px rgba(0, 0, 0, 0.55);
    --b-hea: #5fc47c; --b-rahuldav: #f0a23c; --b-nork: #ee6753; --b-suletud: #8a877f; --b-nodata: #4e5351; --on-band: #0e1514; --track: #26322f;
    --c-wind: #a9c8e8; --c-gust: #4d6680; --c-obs: #e9ebe4; --c-level: #58b5cf; --c-flow: #dc9d5c; --c-temp: #ef8a5b; --c-wtemp: #a3a6f0; --c-sst: #a3a6f0;
    --c-rain: #7fb0de; --c-cloud: #77817d; --c-wave: #6cc3c9; --c-on: #6cb8de; --c-off: #c99a68; --c-along: #5d6663; --c-south: rgba(221, 178, 74, 0.12);
    --zone-1: rgba(226, 114, 76, 0.05); --zone-2: rgba(226, 114, 76, 0.1);
    --glow: color-mix(in srgb, var(--bg) 91%, var(--accent));
    --glass-top: color-mix(in srgb, var(--bg) 93.5%, var(--ink)); --glass-bot: color-mix(in srgb, var(--bg) 97.5%, var(--ink));
    --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.17); --glass-edge: rgba(255, 255, 255, 0.055);
    --glass-drop: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.28); --glass-shadow-2: var(--glass-rim), var(--glass-line), 0 16px 44px rgba(0, 0, 0, 0.6);
    --btn-p-bg: radial-gradient(80% 120% at 50% 60%, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 66%, #000) 100%);
    --btn-p-ink: #0c1512; --btn-p-text-shadow: none;
    --btn-p-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 3px 7px rgba(0, 0, 0, 0.45);
    --btn-spec: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
    --btn-s-bg: linear-gradient(180deg, color-mix(in srgb, var(--bg) 85%, var(--ink)), color-mix(in srgb, var(--bg) 94%, var(--ink))); --btn-s-ink: var(--ink);
    --btn-s-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 2px 6px rgba(0, 0, 0, 0.35);
    --btn-s-spec: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    --seg-track: rgba(0, 0, 0, 0.3); --seg-track-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.05);
    --seg-thumb: linear-gradient(180deg, color-mix(in srgb, var(--bg) 74%, var(--ink)), color-mix(in srgb, var(--bg) 86%, var(--ink)));
    --seg-thumb-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.45);
    --bar-bg: linear-gradient(180deg, rgba(233, 235, 228, 0.07), rgba(233, 235, 228, 0.025)), color-mix(in srgb, var(--bg) 86%, transparent);
    --bar-solid: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
    --bar-shadow-top: 0 1px 0 rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.3);
    --bar-shadow-bot: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 -6px 18px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1514; --bg-raised: #172120; --bg-sunk: #1c2826; --ink: #e9ebe4; --ink-2: #b0b9b4; --ink-3: #87918c; --hair: #24302e; --hair-2: #34413e;
  --accent: #b4d46b; --accent-soft: #26301c; --on-ink: #0e1514; --warn: #e9b44c; --bad: #f08a6a; --cold: #8fbbe8;
  --future: rgba(233, 235, 228, 0.035); --night: rgba(0, 0, 0, 0.28);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 3px 12px rgba(0, 0, 0, 0.3); --shadow-2: 0 12px 40px rgba(0, 0, 0, 0.55);
  --b-hea: #5fc47c; --b-rahuldav: #f0a23c; --b-nork: #ee6753; --b-suletud: #8a877f; --b-nodata: #4e5351; --on-band: #0e1514; --track: #26322f;
  --c-wind: #a9c8e8; --c-gust: #4d6680; --c-obs: #e9ebe4; --c-level: #58b5cf; --c-flow: #dc9d5c; --c-temp: #ef8a5b; --c-wtemp: #a3a6f0; --c-sst: #a3a6f0;
  --c-rain: #7fb0de; --c-cloud: #77817d; --c-wave: #6cc3c9; --c-on: #6cb8de; --c-off: #c99a68; --c-along: #5d6663; --c-south: rgba(221, 178, 74, 0.12);
  --zone-1: rgba(226, 114, 76, 0.05); --zone-2: rgba(226, 114, 76, 0.1);
  --glow: color-mix(in srgb, var(--bg) 91%, var(--accent));
  --glass-top: color-mix(in srgb, var(--bg) 93.5%, var(--ink)); --glass-bot: color-mix(in srgb, var(--bg) 97.5%, var(--ink));
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.17); --glass-edge: rgba(255, 255, 255, 0.055);
  --glass-drop: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.28); --glass-shadow-2: var(--glass-rim), var(--glass-line), 0 16px 44px rgba(0, 0, 0, 0.6);
  --btn-p-bg: radial-gradient(80% 120% at 50% 60%, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 66%, #000) 100%);
  --btn-p-ink: #0c1512; --btn-p-text-shadow: none;
  --btn-p-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 3px 7px rgba(0, 0, 0, 0.45);
  --btn-spec: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
  --btn-s-bg: linear-gradient(180deg, color-mix(in srgb, var(--bg) 85%, var(--ink)), color-mix(in srgb, var(--bg) 94%, var(--ink))); --btn-s-ink: var(--ink);
  --btn-s-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 2px 6px rgba(0, 0, 0, 0.35);
  --btn-s-spec: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  --seg-track: rgba(0, 0, 0, 0.3); --seg-track-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.05);
  --seg-thumb: linear-gradient(180deg, color-mix(in srgb, var(--bg) 74%, var(--ink)), color-mix(in srgb, var(--bg) 86%, var(--ink)));
  --seg-thumb-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.45);
  --bar-bg: linear-gradient(180deg, rgba(233, 235, 228, 0.07), rgba(233, 235, 228, 0.025)), color-mix(in srgb, var(--bg) 86%, transparent);
  --bar-solid: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  --bar-shadow-top: 0 1px 0 rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.3);
  --bar-shadow-bot: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 -6px 18px rgba(0, 0, 0, 0.3);
}

/* ---------- base ---------- */
* { box-sizing: border-box; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(140% 100% at 50% 0%, var(--glow) 0%, var(--bg) 70%) top / 100% 420px no-repeat, var(--bg);
  font: 400 var(--fs)/1.45 var(--font);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--tab-h);
}
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
input, select, textarea { font-size: 16px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.b-hea { --bc: var(--b-hea); }
.b-rahuldav { --bc: var(--b-rahuldav); }
.b-nork { --bc: var(--b-nork); }
.b-suletud { --bc: var(--b-suletud); }
.b-nodata { --bc: var(--b-nodata); }
.num, .stat .v, .tile .tv, .sc, .sday .sc, .ro-w, table.t td, table.an-tb td, .wsc, .pl-w, .sol-p, ul.when .ww { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-stretch: 92%; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ic .f { fill: currentColor; stroke: none; }
.ic-s { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- header + bottom tabs ---------- */
.top { position: sticky; top: 0; z-index: 1000; background: var(--bar-bg); padding-top: env(safe-area-inset-top); box-shadow: var(--bar-shadow-top);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.top-in { max-width: 1200px; margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 2px; padding: 0 calc(var(--gut) - 6px) 0 var(--gut); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 19px; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; flex: 1; min-width: 0; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand .bm-float { fill: var(--accent); }
.brand .bm-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.brand .bm-body { fill: var(--ink); }
.back { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: -10px; color: var(--ink); border-radius: 50%; }
.back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back[hidden] { display: none; }
.icon-btn, .sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 8px; border: 0; border-radius: var(--r); background: none;
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-s); font-weight: 600; transition: color var(--dur) var(--ease); }
.icon-btn:hover, .sp-btn:hover { color: var(--ink); }
.icon-btn { width: 38px; min-width: 38px; height: 38px; padding: 0; margin-left: 6px; border-radius: 50%; background: var(--btn-s-bg); box-shadow: var(--btn-s-shadow); isolation: isolate; }
.icon-btn svg, .sp-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sp-btn svg .f, .icon-btn svg .f { fill: currentColor; stroke: none; }
.sp-btn.on { color: var(--ink); }
.sp-btn.on span { box-shadow: inset 0 -2px 0 var(--accent); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--bar-bg); box-shadow: var(--bar-shadow-bot); padding-bottom: env(safe-area-inset-bottom);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .top, .tabs { background: var(--bar-solid); } }
.tabs-in { max-width: 560px; margin: 0 auto; height: 60px; display: grid; grid-template-columns: repeat(3, 1fr); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; transition: color var(--dur) var(--ease); }
.tabs a::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); transform: translateX(-50%) scaleX(0); transition: transform var(--dur) var(--ease); }
.tabs svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--ink); }
.tabs a.on::before { transform: translateX(-50%) scaleX(1); }

main { max-width: 720px; margin: 0 auto; padding: 0 var(--gut) var(--s5); }
.loading, .muted { color: var(--ink-3); }
.loading { padding: var(--s6) 0; text-align: center; }
.offline { background: var(--warn); color: var(--bg); padding: 7px 16px; font-size: var(--fs-s); text-align: center; font-weight: 600; }

h1 { font-size: var(--fs-xl); line-height: 1.12; margin: 0; font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-l); line-height: 1.2; margin: var(--s6) 0 var(--s2); font-weight: 720; letter-spacing: -0.015em; }
h3 { font-size: var(--fs); margin: var(--s4) 0 var(--s1); font-weight: 680; }
.phead { padding: var(--s5) 0 var(--s3); }
.sub { color: var(--ink-3); font-size: var(--fs-s); margin: 6px 0 0; }
.sub a { color: var(--ink-2); }
.note { font-size: var(--fs-s); color: var(--ink-3); margin: var(--s2) 0; line-height: 1.45; }
.note a, .lnote a, .gnote a { color: var(--ink-2); }
.warnline { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-s); color: var(--warn); border-top: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); padding: 8px 0; margin: var(--s2) 0; }
.dline { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; margin: var(--s6) 0 var(--s2); letter-spacing: 0.01em; }
.lnote { font-size: var(--fs-s); color: var(--ink-3); margin: var(--s3) 0 var(--s1); }
.lnote b { color: var(--ink); font-weight: 650; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--ink-2); font-size: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
/* buttons: primary = glossy accent pill, .ghost = secondary glass pill; the specular band is ::before, under the text */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; background: var(--btn-p-bg); color: var(--btn-p-ink); text-shadow: var(--btn-p-text-shadow); box-shadow: var(--btn-p-shadow); text-decoration: none; font-weight: 650; padding: 10px 18px; border-radius: 999px; border: 0; }
.btn.ghost { background: var(--btn-s-bg); color: var(--btn-s-ink); text-shadow: none; box-shadow: var(--btn-s-shadow); }
.btn::before, .wk-map::before, .icon-btn::before, .sheet-x::before, .favf::before, .mx-sort::before { content: ""; position: absolute; z-index: -1; left: 3px; right: 3px; top: 1.5px; height: 46%; pointer-events: none;
  border-radius: 999px 999px 60% 60% / 999px 999px 40% 40%; background: var(--btn-spec); }
.btn.ghost::before, .icon-btn::before, .sheet-x::before, .favf::before, .mx-sort::before { background: var(--btn-s-spec); }
.btn:active, .wk-map:active { filter: brightness(0.96); }
.bad { color: var(--bad); }
.hint { border-left: 2px solid var(--b-rahuldav); padding: 2px 0 2px 12px; font-size: var(--fs-s); margin: var(--s2) 0; color: var(--ink-2); }
ul.plain { margin: 6px 0; padding-left: 18px; font-size: var(--fs-s); color: var(--ink-2); }
ul.plain li { margin: 5px 0; }
ul.plain li::marker { color: var(--ink-3); }
.warntxt { color: var(--warn); }

/* ---------- controls: week strip, text tabs, view toggle ---------- */
.ctl { position: sticky; top: var(--hdr-h); z-index: 900; background: var(--bg); padding: var(--s2) 0 var(--s1); display: grid; gap: 2px; margin: 0 calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); border-bottom: 1px solid var(--hair); }
.pills { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; min-width: 0; }
.pills button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 0; height: 48px; border: 0; background: none; border-radius: var(--r);
  color: var(--ink-2); padding: 0; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.pills .pd-w { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: lowercase; letter-spacing: 0.02em; line-height: 1.2; }
.pills .pd-d { font: 650 18px/1.15 var(--font-num); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.pills button::before { content: ""; position: absolute; bottom: 5px; left: 50%; width: 14px; height: 3px; border-radius: 2px; transform: translateX(-50%); background: var(--bc, transparent); opacity: .9; }
.pills button.on { background: var(--seg-thumb); color: var(--ink); box-shadow: var(--seg-thumb-shadow); }
.pills button.on .pd-w { color: var(--ink-2); }
.pills button.on::before { bottom: 4px; }
.pills button:not(.on):hover { background: var(--bg-sunk); }

/* text tabs with an underline indicator (species, period, score species) */
/* segmented controls: a sunken track, the selected item is a raised glass thumb */
.seg { display: inline-flex; gap: 2px; min-width: 0; padding: 3px; border-radius: 12px; background: var(--seg-track); box-shadow: var(--seg-track-shadow); }
.seg button, .seg a { position: relative; border: 0; background: none; color: var(--ink-3); padding: 6px 12px; font-weight: 620; font-size: var(--fs); text-decoration: none; white-space: nowrap; border-radius: 9px; transition: color var(--dur) var(--ease); }
.seg button.on, .seg a.on { color: var(--ink); background: var(--seg-thumb); box-shadow: var(--seg-thumb-shadow); }
.seg button:not(.on):hover, .seg a:not(.on):hover { color: var(--ink-2); }
.seg.sm button { padding: 7px 8px; font: 600 var(--fs-s)/1 var(--font-num); font-stretch: 92%; }
.ctl2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ctl2 .sps { flex: 1; min-width: 0; }
/* Nimekiri | Kaart: two icons in a sunk track */
.seg.vw { flex: none; gap: 0; }
.seg.vw button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--ink-3); border-radius: 8px; font-size: var(--fs-s); }
.seg.vw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 400px) { .seg.vw span { display: none; } }

/* ---------- score gauge: 300° arc in the band colour, the score in figures ---------- */
.ring { --s: 0; --rw: 3.5px; position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 680 18px/1 var(--font-num); font-stretch: 90%; font-variant-numeric: tabular-nums; color: var(--ink); flex: none; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--bc, var(--b-nodata)) 0 calc(var(--s) * 3deg), var(--track) calc(var(--s) * 3deg) 300deg, transparent 300deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw) - 0.5px), #000 calc(100% - var(--rw))); mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw) - 0.5px), #000 calc(100% - var(--rw))); }
.ring.x::before { background: repeating-conic-gradient(from 0deg, var(--b-suletud) 0 6deg, transparent 6deg 12deg); }
.ring.x { color: var(--b-suletud); }
.ring.x svg { width: 18px; height: 18px; }
.ring.nd { color: var(--ink-3); }
.ring.big { width: 72px; height: 72px; --rw: 5px; font-size: 30px; }

/* ---------- Meri: today summary ---------- */
.chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kplink .chev, .sheet-sp .chev { margin-left: auto; color: var(--ink-3); display: inline-flex; }
.hl-upw { margin: var(--s2) 0 0; font-size: var(--fs-s); line-height: 1.4; color: var(--ink-2); padding-left: 12px; border-left: 2px solid var(--cold); }
.hl-upw b { color: var(--ink); }

/* ---------- ranked list ---------- */
.list { margin: 0 calc(-1 * var(--gut)); }
.row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "sc nm wx" "sc why wx"; column-gap: 12px; row-gap: 2px; align-items: center;
  position: relative; padding: 7px var(--gut); min-height: 60px; color: inherit; text-decoration: none; transition: background var(--dur) var(--ease); }
.row + .row::after { content: ""; position: absolute; top: 0; left: calc(var(--gut) + 58px); right: var(--gut); height: 1px; background: var(--hair); }
.row:active, a.row:hover { background: color-mix(in srgb, var(--bg-sunk) 70%, transparent); }
.row .nm { grid-area: nm; font-weight: 640; font-size: 16px; line-height: 1.2; min-width: 0; align-self: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm:has(.nt) { display: flex; align-items: center; }
.row .nm .nt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row .nm .wmark, .row .nm .fav { flex: none; }
.row .sc { grid-area: sc; position: relative; }
.row .wx { grid-area: wx; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.row .wx .w { display: flex; align-items: center; gap: 3px; font: 600 var(--fs)/1.2 var(--font-num); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.row .wx .t { font: 500 var(--fs-s)/1.2 var(--font-num); font-stretch: 92%; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row .why { grid-area: why; display: flex; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; align-self: start; }
.row .cl { font-size: var(--fs-s); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.row.b-suletud .nm, .row.b-nodata .nm { color: var(--ink-3); }
.row .sc .q { position: absolute; top: -3px; right: -5px; margin: 0; background: var(--bg); }

/* ---------- reason tokens, markers, tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: var(--s2) 0 2px; }
.rc { display: inline-flex; align-items: baseline; gap: 4px; font-size: var(--fs-s); line-height: 1.35; color: var(--ink-2); white-space: nowrap; flex: none; }
.rc.p::before, .rc.n::before { font: 700 13px/1 var(--font-num); width: 8px; text-align: center; }
.rc.p::before { content: "+"; color: var(--b-hea); }
.rc.n::before { content: "−"; color: var(--b-nork); }
.rc.warn { color: var(--warn); font-weight: 600; }
.q { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 5px; border-radius: 50%; border: 1.2px solid var(--ink-3); color: var(--ink-3);
  font-size: 10.5px; font-weight: 750; line-height: 1; vertical-align: 1px; flex: none; }
.mdl { white-space: nowrap; }
.wmark { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; color: var(--warn); vertical-align: -2px; }
.wmark svg { width: 15px; height: 15px; }
.wmark.w-ohtlik { color: var(--bad); }
.wmark.w-kulm { color: var(--cold); }
.wade { display: flex; gap: 8px; align-items: flex-start; margin: var(--s2) 0 2px; font-size: var(--fs-s); line-height: 1.4; font-weight: 600; color: var(--warn); }
.wade::before { content: ""; flex: none; width: 3px; align-self: stretch; border-radius: 2px; background: currentColor; }
.wade.w-ohtlik { color: var(--bad); }
.wade.w-kulm { color: var(--cold); }
.wade .muted { font-weight: 400; }
.mdx { font-weight: 800; color: var(--warn); }
.sday .mdx { position: absolute; top: 2px; right: 4px; font-size: 11px; line-height: 1; }
.mdl-n { margin: 6px 0 2px; }
.band { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-s); font-weight: 650; padding: 2px 8px; border-radius: var(--r-s); white-space: nowrap;
  background: color-mix(in srgb, var(--bc) 15%, transparent); color: var(--ink); box-shadow: inset 2px 0 0 var(--bc); }
.band b { font-family: var(--font-num); font-stretch: 92%; font-weight: 700; }
.band.b-suletud { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--bc) 18%, transparent) 0 4px, transparent 4px 8px); }
.band.big { font-size: var(--fs); padding: 4px 10px; }
.tag { display: inline-block; font-size: 11px; font-weight: 650; padding: 1px 6px; border-radius: 4px; background: var(--bg-sunk); color: var(--ink-2); vertical-align: 1px; white-space: nowrap; letter-spacing: 0.01em; }
.tag.low { background: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 60%, transparent); color: var(--warn); }
.tag.own { background: var(--accent-soft); color: var(--ink); }

/* ---------- spot page ---------- */
.stats { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); margin: var(--s3) 0 var(--s2); padding: var(--s3) 14px; border-radius: var(--r-l); background: var(--glass-bg); box-shadow: var(--glass-shadow); }
.stat { display: flex; flex-direction: column; min-width: 0; padding: 0 var(--s3); }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--hair); }
.stat .v, .tile .tv { font-size: var(--num); font-weight: 620; line-height: 1.05; display: flex; align-items: center; gap: 4px; white-space: nowrap; letter-spacing: -0.01em; }
.stat .v small, .tile .tv small { font-family: var(--font); font-size: var(--fs-s); font-weight: 500; color: var(--ink-3); margin-left: 1px; letter-spacing: 0; align-self: flex-end; padding-bottom: 3px; }
.stat .l { font-size: var(--fs-s); color: var(--ink-3); line-height: 1.3; margin-top: 4px; }
.clr-b { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.clr-b.clr-hagune, .clr-b.clr-sogane { color: var(--b-nork); font-weight: 650; }
.clr-n { margin: 2px 0 6px; }
.arrow-ico { display: inline-block; flex: none; }
.arrow-ico path { fill: currentColor; }
.stat .arrow-ico, .row .arrow-ico { color: var(--c-wind); }
.trend { display: inline-flex; align-items: center; color: var(--ink-3); }
.trend svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.trend.up { color: var(--b-nork); }
.trend.down { color: var(--b-hea); }
.trend.flat { color: var(--ink-3); }
.trend.wt svg { width: 16px; height: 16px; }

#score-sec { margin-top: var(--s5); }
#score-sec > .seg { margin: 0 0 var(--s3); }
.sdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin: 0 0 var(--s3); }
.sday { position: relative; border: 0; background: none; border-radius: var(--r); padding: 6px 0 9px; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; color: var(--ink); transition: background var(--dur) var(--ease); }
.sday::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 3px; border-radius: 2px; background: var(--bc); }
.sday.b-suletud::after { background: repeating-linear-gradient(90deg, var(--bc) 0 3px, transparent 3px 5px); }
.sday.b-nodata::after { background: none; box-shadow: inset 0 0 0 1px var(--bc); }
.sday .dd { font-size: 11px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.sday .sc { font-size: 19px; font-weight: 650; font-stretch: 90%; line-height: 1.1; display: inline-flex; align-items: center; min-height: 21px; }
.sday .sc svg { width: 16px; height: 16px; color: var(--b-suletud); }
.sday.on { background: var(--seg-thumb); box-shadow: var(--seg-thumb-shadow); }
.sday.on .dd { color: var(--ink); }
.sday:not(.on):hover { background: color-mix(in srgb, var(--bg-sunk) 60%, transparent); }
.dcard { padding: var(--s3) 0 var(--s2); border-top: 1px solid var(--hair); }
.dhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bt { font-size: var(--fs-s); color: var(--ink-2); font-family: var(--font-num); font-stretch: 92%; }
.side-l { font-size: var(--fs-s); color: var(--ink-2); margin: var(--s2) 0 0; }
.more { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 10px 0 2px; color: var(--ink-2); font-weight: 620; font-size: var(--fs-s); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 4px; }
.calc { margin-top: 6px; }
ul.contrib { list-style: none; margin: 4px 0 0; padding: 0; }
ul.contrib li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hair); font-size: var(--fs-s); line-height: 1.4; }
ul.contrib li:first-child { border-top: 0; }
ul.contrib .p { flex: none; width: 30px; text-align: right; font: 700 var(--fs)/1.3 var(--font-num); font-stretch: 92%; font-variant-numeric: tabular-nums; }
ul.contrib li.pos .p { color: var(--b-hea); }
ul.contrib li.neg .p { color: var(--b-nork); }
ul.contrib li.zero { color: var(--ink-3); }
ul.contrib .ct { display: block; color: var(--ink-3); margin-top: 2px; }

.sec { margin-top: var(--s6); }
.sec h2, .sec-h h2 { margin: 0 0 var(--s2); }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s1); }
.sec-h h2 { margin-bottom: 0; }
/* collapsed sections: a list of rows with hairlines, no boxes */
.accs { margin-top: var(--s6); border-top: 1px solid var(--hair); }
details.acc { border-bottom: 1px solid var(--hair); }
details.acc > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 0; font-weight: 640; font-size: 16px; cursor: pointer; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary > span:first-child { flex: 1; }
details.acc > summary::after { content: ""; flex: none; width: 16px; height: 16px; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease); }
details.acc[open] > summary::after { transform: rotate(180deg); }
details.acc .pv { font-size: var(--fs-s); font-weight: 500; color: var(--ink-3); white-space: nowrap; font-family: var(--font-num); font-stretch: 94%; }
.acc-b { padding: 0 0 var(--s4); }
.acc-b > h3:first-child, .acc-b .cbox:first-child h3 { margin-top: 0; }
.cbox { margin-top: 6px; }
.cbox + .cbox { margin-top: var(--s4); }
.cbox h3 { font-size: var(--fs-s); color: var(--ink-2); margin: 0 0 2px; }

/* ---------- Kasari ---------- */
.rsw { display: flex; margin: var(--s4) 0 var(--s2); }
.rsw.seg a { padding: 8px 20px; font-size: var(--fs-m); font-weight: 720; letter-spacing: -0.01em; color: var(--ink-3); }
.rsw.seg a.on { color: var(--ink); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: var(--s3) 0 0; }
.tile { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; border-radius: var(--r-l); background: var(--glass-bg); box-shadow: var(--glass-shadow); }
.tile .tl { font-size: var(--fs-s); color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.tile .tl .ic { width: 16px; height: 16px; vertical-align: 0; }
.tile .ts { font-size: var(--fs-s); color: var(--ink-3); font-family: var(--font-num); font-stretch: 94%; font-variant-numeric: tabular-nums; }
.tile .tv .trend svg { width: 20px; height: 20px; }
.tv.tv-s { font-size: var(--num-s); font-family: var(--font); font-weight: 650; }
ul.coming { list-style: none; margin: var(--s3) 0 0; padding: 0; font-size: var(--fs-s); color: var(--ink-2); }
ul.coming li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; line-height: 1.45; }
ul.coming li b { color: var(--ink); font-weight: 650; }
ul.coming li > span:last-child { min-width: 0; }
.ico { display: inline-flex; width: 20px; flex: none; justify-content: center; align-items: center; min-height: 19px; color: var(--ink-3); }
.ico svg { width: 18px; height: 18px; }
.ico.warntxt { color: var(--warn); }
.ico.q { width: 20px; margin: 1px 0 0; }
.ico.q .q { margin: 0; }
.gnote { font-size: var(--fs-s); color: var(--ink-3); margin: var(--s5) 0 0; line-height: 1.5; }
.kplink { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: var(--s4); padding: 12px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; font-size: var(--fs-s); min-height: 48px; }
.kplink .kpl { color: var(--ink-3); }
.kp { display: inline-flex; align-items: center; gap: 6px; font-weight: 620; white-space: nowrap; }
.kp::before { content: ""; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--bc); }
.kpback { font-size: var(--fs-s); text-align: right; margin: var(--s4) 0 0; }
.kpback a { color: var(--ink-2); }
/* Kalapüük: one river rating, then the places on the river */
.verdict { margin-top: var(--s2); }
.verdict .row { min-height: 60px; }
.verdict .row .nm { align-self: center; }
.verdict .wx .t { font-family: var(--font); font-size: var(--fs-s); font-weight: 650; color: var(--ink-2); }
.rnote { margin: var(--s2) 0 0; }
.plist { display: grid; gap: var(--s2); }
.place { padding: var(--s3) 14px; border-radius: var(--r-l); background: var(--glass-bg); box-shadow: var(--glass-shadow); font-size: var(--fs-s); scroll-margin: 90px; transition: background 600ms var(--ease); }
.place.hl { background: linear-gradient(90deg, var(--accent-soft), transparent 70%), var(--glass-bg); box-shadow: inset 3px 0 0 var(--accent), var(--glass-shadow); }
.pl-h { display: flex; align-items: center; gap: 6px 10px; font-size: var(--fs-m); flex-wrap: wrap; }
.pl-h b { font-weight: 680; }
.kmap, .kfoto { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-s); white-space: nowrap; color: var(--ink-2); }
.kfoto { margin-left: auto; }
.kfoto + .kmap { margin-left: 0; }
.kmap .ic, .kfoto .ic { width: 15px; height: 15px; vertical-align: 0; }
.pl-n { margin: 4px 0 0; color: var(--ink-3); }
.pl-w { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 4px 0 0; color: var(--ink-2); }
.pl-w .sep { color: var(--ink-3); }
.pl-d { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; }
.pd { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pd::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--bc); }
/* solunar reference card (not a scoring input; nothing highlighted) */
.sol { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--hair); font-size: var(--fs-s); }
.sol-h { display: flex; align-items: baseline; gap: 8px; }
.sol-h b { font-size: var(--fs); font-weight: 650; }
.sol-m { margin-left: auto; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.sol-m svg { width: 16px; height: 16px; }
.sol-p { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 6px; color: var(--ink); }
.sol-p i { font-style: normal; font-family: var(--font); color: var(--ink-3); display: inline-block; min-width: 40px; }
.sol .note { margin: 6px 0 0; }

/* tables */
table.t { border-collapse: collapse; width: 100%; font-size: var(--fs-s); }
table.t th, table.t td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
table.t th { color: var(--ink-3); font-weight: 600; font-size: var(--fs-xs); }
table.t td b { font-weight: 700; }
.scroll-x { overflow-x: auto; }
table.params th { width: 34%; vertical-align: top; white-space: normal; word-break: break-word; }
table.params td { white-space: normal; word-break: break-word; font-family: var(--font); }
table.t.mini th, table.t.mini td { padding: 2px 6px 2px 0; }
code { font-size: 12px; background: var(--bg-sunk); padding: 1px 5px; border-radius: 4px; word-break: break-all; }

/* ---------- charts (chart.js) ---------- */
.chart { position: relative; width: 100%; margin: 2px 0 0; user-select: none; -webkit-user-select: none; }
.chart-svg { display: block; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-height: 22px; margin: 0 0 4px; font-size: var(--fs-s); color: var(--ink-3); line-height: 1.45; }
.chart-head .ch-t { color: var(--ink); font: 700 var(--fs)/1.3 var(--font-num); font-stretch: 92%; min-width: 34px; font-variant-numeric: tabular-nums; }
.chart.scrub .chart-head .ch-t { color: var(--accent); }
.chart-head .ch-s { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.chart-head b { color: var(--ink); font: 650 var(--fs)/1 var(--font-num); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.chart-head small { font-family: var(--font-num); font-stretch: 92%; font-size: var(--fs-xs); }
.chart-head .ch-cls { font: 600 var(--fs-s)/1 var(--font); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--c) 70%, transparent); padding-bottom: 2px; }
.sw { display: inline-block; width: 12px; height: 0; border-top: 2.5px solid var(--c); border-radius: 2px; transform: translateY(-3px); flex: none; }
.sw-dash { border-top-style: dashed; border-top-width: 2px; }
.sw-dot { width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--c); transform: translateY(-1px); }
.sw-bar, .sw-band { width: 10px; height: 9px; border: 0; border-radius: 2px; background: var(--c); transform: translateY(0); }
.sw-band { opacity: .35; }
.chart .grid { stroke: var(--hair); stroke-width: 1; }
.chart .grid.zero { stroke: var(--hair-2); }
.chart .axis-base { stroke: var(--hair-2); stroke-width: 1; }
.chart .xtick { stroke: var(--hair-2); stroke-width: 1; }
.chart .vgrid { stroke: var(--hair); stroke-width: 1; }
.chart .xtick.minor { stroke: var(--hair-2); opacity: .8; }
.chart .axis-x.yr { font-weight: 650; fill: var(--ink-2); }
.chart .mmline { stroke: var(--ink-3); stroke-width: 0.8; stroke-dasharray: 1 3; opacity: .75; }
.chart .axis-x, .chart .axis-y, .chart .axis-unit, .chart .axis-yr { fill: var(--ink-3); font: 500 10.5px var(--font-num); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.chart .axis-x { font-family: var(--font); font-size: 10.5px; }
.chart .axis-unit { font-family: var(--font); font-weight: 600; }
.chart .axis-yr { font-weight: 650; fill: var(--ink-2); }
.chart .night { fill: var(--night); }
.chart .wkend { fill: var(--night); }
.chart .future { fill: var(--future); }
.chart .futlabel { fill: var(--ink-3); font: 600 10px var(--font); letter-spacing: 0.04em; }
.chart .zone.z1 { fill: var(--zone-1); }
.chart .zone.z2, .chart .zone.z3 { fill: var(--zone-2); }
.chart .hline { stroke: color-mix(in srgb, var(--b-nork) 55%, transparent); stroke-width: 1; }
.chart .hlabel { fill: color-mix(in srgb, var(--b-nork) 80%, var(--ink)); font: 600 10px var(--font); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.chart .hlabel.above { fill: var(--ink-3); font-weight: 500; }
.chart path.line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart path.line.model { stroke-linecap: butt; }
.chart path.halo { fill: none; stroke: var(--bg); stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { stroke: var(--bg); stroke-width: 1; }
.chart .nowline { stroke: var(--accent); stroke-width: 1.5; }
.chart .nowtag rect { fill: var(--accent); }
.chart .nowlabel { fill: var(--on-ink); font: 700 9.5px var(--font); letter-spacing: 0.02em; }
:root:not([data-theme="dark"]) .chart .nowlabel { fill: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chart .nowlabel { fill: var(--bg); } }
.chart .enddot { stroke: var(--bg); stroke-width: 2; }
.chart .endlabel { font: 700 12px var(--font-num); font-stretch: 92%; paint-order: stroke; stroke: var(--bg); stroke-width: 3.5px; stroke-linejoin: round; }
.chart .xtr { fill: var(--bg); stroke-width: 1.6; }
.chart .xtr-l { fill: var(--ink-2); font: 600 10px var(--font-num); font-stretch: 92%; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.chart .cursor { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 2; }
.chart .cmark { stroke: var(--bg); stroke-width: 1.5; }
.chart .arrow { fill: var(--ink-2); }
.chart .strip { opacity: 0.9; }
.legend { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: var(--fs-xs); color: var(--ink-3); margin: 6px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 0; border-top: 2.5px solid var(--lc); border-radius: 2px; }
.legend span.dash::before { border-top-style: dashed; border-top-width: 2px; }
.legend span.dot::before { width: 7px; height: 7px; border: none; border-radius: 50%; background: var(--lc); }
.legend span.box::before { width: 11px; height: 9px; border: none; border-radius: 2px; background: var(--lc); }
.legend span.dotted::before { border-top-style: dotted; border-top-width: 2px; }
.fc-ctl[hidden] { display: none; }
.fc-ctl { display: flex; justify-content: flex-start; margin: var(--s2) 0 0; font-size: var(--fs-s); color: var(--ink-2); }
.fc-ctl .chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 40px; }
.fc-ctl input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.fc-acc { margin-top: 2px; }
.wetm { display: inline-flex; gap: 2px; margin-top: 3px; }
.wetm i { width: 3px; height: 12px; border-radius: 1.5px; background: var(--track); }
.wetm i.on { background: var(--c-level); }
ol.plain-ol { margin: 4px 0 8px; padding-left: 20px; font-size: var(--fs-s); color: var(--ink-2); }
ol.plain-ol li { margin: 4px 0; }

/* ---------- map page: fills the space between header and tab bar, no page scroll ---------- */
body.mapmode main { max-width: none; padding: 0; }
.mapview { position: fixed; top: var(--hdr-h); bottom: var(--tab-h); left: 0; right: 0; display: flex; flex-direction: column; }
.mapview > .ctl, .mapview > .warnline { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
.mapview > .ctl { position: static; border-bottom: 0; background: transparent; }
.mareas { display: flex; flex-direction: column; gap: 6px; }
.mareas button, .mzones button, .mlayers button { border: 0; background: var(--btn-s-bg); color: var(--ink); border-radius: var(--r); font-size: var(--fs-s); font-weight: 620; padding: 6px 12px; text-align: left; box-shadow: var(--btn-s-shadow); min-height: 44px; }
.map-wrap { position: relative; flex: 1; min-height: 0; }
#map { position: absolute; inset: 0; background: var(--bg-sunk); }
.mlegend { position: absolute; left: 10px; bottom: 26px; z-index: 800; display: flex; align-items: center; gap: 10px; background: var(--glass-bg); border-radius: var(--r); padding: 5px 10px; font-size: var(--fs-xs); font-weight: 600; box-shadow: var(--glass-shadow); color: var(--ink-2); }
.mlegend span { display: inline-flex; align-items: center; gap: 5px; }
.mlegend span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--bc); }
.mlegend span.b-suletud::before { box-shadow: none; background: repeating-linear-gradient(135deg, var(--bc) 0 2px, transparent 2px 4px); border: 1.5px solid var(--bc); }
.mlegend .linkbtn { font-weight: 750; text-decoration: none; padding: 0 2px; }
.mlegend span.ll::before { display: none; }
.mlegend span.ll svg { width: 14px; height: 14px; }
.mlegend span.zl::before { border-radius: 2px; box-shadow: none; background: color-mix(in srgb, var(--b-suletud) 40%, transparent); border: 1.5px solid var(--b-suletud); width: 9px; height: 9px; }
.msheet { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 900; max-width: 480px; margin: 0 auto; background: var(--glass-bg); border-radius: var(--r-xl); padding: 18px 16px 16px; box-shadow: var(--glass-shadow-2); max-height: 72%; overflow: auto; animation: rise 220ms var(--ease); }
.msheet::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; border-radius: 2px; background: var(--hair-2); transform: translateX(-50%); }
.ms-h { display: flex; flex-direction: column; padding-right: 36px; margin-bottom: 8px; }
.ms-h b { font-size: var(--fs-l); line-height: 1.15; font-weight: 720; letter-spacing: -0.015em; }
.ms-h .muted { font-size: var(--fs-s); margin-top: 2px; }
.ms-wx { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: var(--fs-s); margin: 8px 0 14px; color: var(--ink-2); }
.ms-wx span { display: inline-flex; align-items: center; gap: 4px; }
.ms-wx .arrow-ico { color: var(--c-wind); }
.mk { background: transparent; border: 0; }
.mk-in { display: flex; align-items: center; gap: 3px; background: var(--bg-raised); color: var(--ink); border-radius: 999px; padding: 2px 8px 2px 2px; font: 650 12px/1 var(--font-num); font-stretch: 92%; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); transform: translate(-13px, -13px); width: max-content; }
.mk-in .arrow-ico { color: var(--c-wind); }
.mk-in .wt { color: var(--c-wtemp); }
.mk-b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: var(--bc, var(--b-nodata)); color: var(--on-band); font: 720 12px/1 var(--font-num); font-stretch: 90%; padding: 0 5px; }
.mk-in.b-suletud .mk-b { background: repeating-linear-gradient(135deg, var(--bc) 0 3px, color-mix(in srgb, var(--bc) 60%, var(--bg-raised)) 3px 6px); }
.mk-b svg { width: 13px; height: 13px; }
.zoomed-out .mk-in > :not(.mk-b) { display: none; }
.zoomed-out .mk-in { padding: 2px; transform: translate(-14px, -14px); }
.leaflet-container { font: inherit; background: var(--bg-sunk); }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-bar { border: 0 !important; box-shadow: var(--btn-s-shadow) !important; border-radius: var(--r) !important; overflow: hidden; }
.leaflet-bar a { background: var(--btn-s-bg) !important; color: var(--ink) !important; border-bottom-color: var(--hair) !important; width: 36px !important; height: 36px !important; line-height: 36px !important; }
.leaflet-control-layers { background: var(--bg-raised); color: var(--ink); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--glass-bot); color: var(--ink); box-shadow: var(--shadow-2); }
.leaflet-popup-content-wrapper { background: var(--glass-bg); box-shadow: var(--glass-shadow-2); }
.leaflet-popup-content-wrapper { border-radius: var(--r-l); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-3); width: 32px; height: 32px; font-size: 20px; }

/* ---------- bottom sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 3000; }
.sheet[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(8, 12, 11, 0.45); animation: fade 200ms var(--ease); }
.sheet-body { position: absolute; left: 0; right: 0; bottom: 0; max-width: 720px; margin: 0 auto; max-height: 88vh; overflow: auto; background: linear-gradient(180deg, var(--glass-top), var(--glass-bot) 320px) var(--glass-bot); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 20px var(--gut) calc(var(--s5) + env(safe-area-inset-bottom)); box-shadow: var(--glass-shadow-2); animation: rise 260ms var(--ease); }
.sheet-body::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; border-radius: 2px; background: var(--hair-2); transform: translateX(-50%); }
.sheet-body h2:first-of-type { margin-top: var(--s5); }
.sheet-body .accs { margin-top: var(--s2); }
.sheet-x { position: absolute; right: 10px; top: 12px; width: 36px; height: 36px; border: 0; background: var(--btn-s-bg); box-shadow: var(--btn-s-shadow); isolation: isolate; border-radius: 50%; color: var(--ink-2); padding: 0; display: grid; place-items: center; }
.sheet-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.msheet .sheet-x { right: 10px; top: 12px; }
.legend-b { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* rules page */
.rlist { border-top: 1px solid var(--hair); }
details.rrow { border-bottom: 1px solid var(--hair); }
details.rrow > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; min-height: 48px; cursor: pointer; }
details.rrow > summary::-webkit-details-marker { display: none; }
details.rrow .rt { flex: 1; font-weight: 600; min-width: 0; }
.rb { padding: 0 0 12px; font-size: var(--fs-s); color: var(--ink-2); }
.rb p { margin: 6px 0; }

/* ---------- wind rose (src/rose.js): strong / good (lighter) / neutral / bad sectors in the rating colours;
   strong also gets a tick, the day's own sector an outline, so colour is never the only cue ---------- */
.rosebox { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--hair); font-size: var(--fs-s); }
.ro-h { display: flex; align-items: baseline; gap: 8px; }
.ro-h b { font-size: var(--fs); font-weight: 650; }
.ro-unv { margin-left: auto; color: var(--ink-3); }
.ro-b { display: flex; align-items: center; gap: var(--s4); margin-top: 4px; }
.ro-b svg.rose { flex: none; }
.ro-t { min-width: 0; flex: 1; color: var(--ink-2); }
.ro-t p { margin: 3px 0; }
.ro-w { font-size: var(--fs-m); font-weight: 650; color: var(--ink); }
.ro-w .muted { font-family: var(--font); font-size: var(--fs-s); font-weight: 500; }
.ro-l { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--ink-3); }
.ro-l i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ro-l i.rs-strong { background: var(--b-hea); }
.ro-l i.rs-good { background: color-mix(in srgb, var(--b-hea) 42%, var(--bg)); }
.ro-l i.rs-bad { background: var(--b-nork); }
.ro-l i.rs-neutral { background: var(--track); }
.ro-l i.ro-sea { height: 3px; width: 14px; background: var(--c-on); vertical-align: 2px; border-radius: 2px; }
.rosebox .note { margin: 6px 0 0; }
svg.rose .rs { stroke: var(--bg); stroke-width: 1.4; }
svg.rose .rs-strong { fill: var(--b-hea); }
svg.rose .rs-good { fill: color-mix(in srgb, var(--b-hea) 42%, var(--bg)); }
svg.rose .rs-bad { fill: var(--b-nork); }
svg.rose .rs-neutral { fill: var(--track); }
svg.rose .rs-tick { stroke: var(--bg); stroke-width: 1.8; stroke-linecap: round; }
svg.rose .rs-day { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
svg.rose .rs-sea { fill: none; stroke: var(--c-on); stroke-width: 3; stroke-linecap: round; }
svg.rose .rs-own { fill: none; stroke: var(--ink-3); stroke-width: 3; stroke-linecap: round; }
svg.rose .rs-halo { stroke: var(--bg); stroke-width: 6; stroke-linecap: round; }
svg.rose .rs-arrow { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
svg.rose .rs-head { fill: var(--ink); stroke: var(--bg); stroke-width: 1; stroke-linejoin: round; }
svg.rose .rs-c { fill: var(--bg); stroke: var(--hair-2); }
svg.rose text { fill: var(--ink); font-weight: 700; text-anchor: middle; dominant-baseline: central; font-family: var(--font-num); }
svg.rose .rs-v { font-size: 12px; }
svg.rose .rs-n { font-size: 11px; fill: var(--ink-3); font-family: var(--font); }
svg.rose.mini .rs-n { font-size: 18px; }
svg.rose.mini .rs-day { stroke-width: 3.5; }
.msheet svg.rose .rs, .msheet svg.rose .rs-tick, .msheet svg.rose .rs-halo, .msheet svg.rose .rs-head { stroke: var(--glass-top); }
.msheet svg.rose .rs-c { fill: var(--glass-top); }
.ms-b { display: flex; align-items: flex-start; gap: 10px; }
.ms-m { flex: 1; min-width: 0; }
.ms-rose { flex: none; display: flex; flex-direction: column; align-items: center; margin-top: -4px; }
.ms-rose:empty { display: none; }

/* ---------- map layers, aerial photo pin, Aerofoto mini map ---------- */
.mlayers { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); background: var(--bg-raised); }
.mlayers button { box-shadow: none; border-radius: 0; display: flex; align-items: center; gap: 8px; }
.mlayers button + button { border-top: 1px solid var(--hair); }
.mlayers button.on { background: var(--ink); color: var(--on-ink); }
.mlayers.open button.on { background: var(--bg-sunk); color: var(--ink); }
.mlayers:not(.open) button:not(.on) { display: none; }
.mlayers:not(.open) button.on { background: var(--bg-raised); color: var(--ink); }
.mlayers:not(.open) button.on::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l9 4.5-9 4.5-9-4.5z M3 13l9 4.5 9-4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l9 4.5-9 4.5-9-4.5z M3 13l9 4.5 9-4.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.pin span { display: block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.75), inset 0 0 0 1.5px rgba(0,0,0,.75); box-sizing: border-box;
  background: radial-gradient(circle, #fff 0 2px, rgba(0,0,0,.75) 2.5px 3.5px, transparent 4px); }
.minimap { height: 260px; border-radius: var(--r-l); overflow: hidden; background: var(--bg-sunk); }
.fhead { display: flex; align-items: baseline; gap: 8px; padding: 10px var(--gut); width: 100%; max-width: 720px; margin: 0 auto; }
.fhead b { font-size: var(--fs-m); font-weight: 700; }
.fhead a { margin-left: auto; font-size: var(--fs-s); white-space: nowrap; color: var(--ink-2); }
.leaflet-container[data-layer="foto"] .leaflet-control-attribution, .leaflet-container[data-layer="nimed"] .leaflet-control-attribution { background: rgba(255,255,255,.8); color: #333; }
/* no hairline seams between tiles at fractional offsets (Chrome/Safari antialias each tile edge):
   overlapping half-transparent edges add up to full inside each tile layer */
.leaflet-layer { isolation: isolate; }
.leaflet-tile-container img.leaflet-tile { mix-blend-mode: plus-lighter; }

/* ---------- Kalaliigid (species encyclopedia) ---------- */
.splink { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.sheet-sp { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; margin: 22px 0 4px; padding: 12px 14px; border: 0; border-radius: var(--r-l); background: var(--glass-bg); box-shadow: var(--glass-shadow); color: var(--ink); text-decoration: none; min-height: 56px; }
.sheet-sp b { font-size: var(--fs-m); font-weight: 680; }
.sheet-sp .muted { grid-column: 1; font-size: var(--fs-s); }
.sheet-sp .chev { grid-column: 2; grid-row: 1 / span 2; }
.legal-b { width: 100%; margin: var(--s3) 0 var(--s3); padding: var(--s3) 14px; font: inherit; text-align: left; cursor: pointer; }
#legal-today { margin-top: 0; }
#legal-today h3 { margin: 12px 0 4px; font-size: var(--fs); }
.sheet-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }

.spcs { display: grid; gap: var(--s2); margin-top: var(--s2); }
.spc { display: grid; gap: 4px; padding: var(--s3) 14px var(--s3); border-radius: var(--r-l); background: var(--glass-bg); box-shadow: var(--glass-shadow); color: inherit; text-decoration: none; transition: filter var(--dur) var(--ease); }
.spc:active { filter: brightness(0.97); }
.spc-h { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.spc-h b { font-size: var(--fs-l); font-weight: 720; letter-spacing: -0.015em; }
.spc-h i { font-size: var(--fs-s); color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spc-cl { margin-left: auto; align-self: center; }
.spc-w, .spc-k { font-size: var(--fs-s); color: var(--ink-3); }
.spc-n { font-size: var(--fs-s); line-height: 1.45; color: var(--ink-2); }
.spc-n b { color: var(--ink); font-weight: 650; }
.spc .cal { margin: 6px 0 2px; }

.cal { display: grid; gap: 3px; }
.cal-r { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; align-items: center; }
.cal:not(.compact) .cal-r { grid-template-columns: 56px repeat(12, minmax(0, 1fr)); }
.cal-l { font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.cal .c { height: 24px; border: 0; border-radius: 5px; padding: 0; background: var(--bg-sunk); min-width: 0; }
.cal.compact .c { height: 10px; border-radius: 3px; pointer-events: none; }
.c.c0 { background: var(--bg-sunk); }
.c.c1 { background: color-mix(in srgb, var(--b-hea) 26%, var(--bg)); }
.c.c2 { background: color-mix(in srgb, var(--b-hea) 58%, var(--bg)); }
.c.c3 { background: var(--b-hea); }
.cal .c.now { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); position: relative; z-index: 1; }
.cal .c.sel:not(.now) { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink-3); position: relative; }
.cal-x span { height: 3px; border-radius: 2px; }
.cal-x span.x { background: repeating-linear-gradient(90deg, var(--b-suletud) 0 3px, transparent 3px 5px); }
.cal-note { font-size: var(--fs-s); margin: 10px 0 0; line-height: 1.45; color: var(--ink-2); }
.cal-note b { color: var(--ink); }
.cal-nl { display: block; }
.cal-nl i { font-style: normal; color: var(--ink-3); }
.cal-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cal-leg .c { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-left: 6px; }
.cal-leg .c:first-child { margin-left: 0; }
.cal-leg .cx { display: inline-block; width: 12px; height: 3px; border-radius: 2px; background: var(--b-suletud); margin-left: 6px; }

.sp-head { position: relative; padding-right: 112px; min-height: 76px; }
.sp-head h1 { text-transform: capitalize; }
.sp-head .sil { position: absolute; right: 0; top: 20px; width: 104px; height: 52px; color: var(--ink-2); }
.sp-head .sil svg { width: 100%; height: 100%; }
.sp-lead { margin: var(--s2) 0 var(--s4); font-size: var(--fs-m); line-height: 1.45; color: var(--ink); max-width: 62ch; }
.spclosed { font-size: var(--fs-s); margin: 4px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-2); }
dl.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--hair); }
dl.kv div { min-width: 0; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); }
dl.kv div:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--hair); }
dl.kv dt { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; letter-spacing: 0.01em; }
dl.kv dd { margin: 2px 0 0; font-size: var(--fs-s); font-weight: 620; line-height: 1.35; }
.rnow { margin-top: var(--s5); padding: 2px 0 2px 14px; border-left: 3px solid var(--c-level); font-size: var(--fs-s); color: var(--ink-2); }
.rnow p { margin: 4px 0; }
.rnow b { color: var(--ink); }
.rnow .note { margin-top: 6px; }
.sp-p { font-size: var(--fs); margin: 8px 0; line-height: 1.55; max-width: 68ch; }
.sp-ul { font-size: var(--fs); padding-left: 20px; margin-bottom: 0; color: var(--ink); }
.sp-ul li { margin: 5px 0; line-height: 1.5; }
.acc-b h3 { font-size: var(--fs); margin: 14px 0 2px; }
.ev-l { margin: 0 0 6px; font-size: var(--fs-s); text-align: right; }
.tag.ev { font-weight: 600; }
.src-n { font-size: 11px; color: var(--ink-3); white-space: nowrap; font-family: var(--font-num); }
ol.srcs { margin: 4px 0; padding-left: 22px; font-size: var(--fs-s); color: var(--ink-2); }
ol.srcs li { margin: 6px 0; word-break: break-word; }
.sprules { margin-top: var(--s6); padding-top: var(--s3); border-top: 2px solid var(--ink); }
.sprules h2 { font-size: var(--fs-m); margin: 0 0 4px; }
.sil .sil-g { opacity: .6; }
.sil .sil-b { fill: currentColor; }
.sil .sil-f { fill: color-mix(in srgb, currentColor 55%, var(--bg)); }
.sil .sil-m { fill: none; stroke: var(--bg); stroke-width: 2.5; opacity: .5; }
.sil .sil-x { fill: none; stroke: currentColor; stroke-width: 1.3; }
.sil .sil-e { fill: var(--bg); }
/* gear-limited zone (lisa 8 / 14) on the day card + Kasari legal list */
.restr { margin: 6px 0 2px; font-size: var(--fs-s); color: var(--ink-2); }
.legal li { margin-bottom: 5px; }
.pl-n.pa { font-size: var(--fs-s); }
.contrib .cn { display: block; font-size: var(--fs-s); color: var(--ink-3); }
/* closed zones on the maps (CSS beats Leaflet's presentation attributes, so tokens work) */
.leaflet-container path.zn { stroke-width: 2; }
.leaflet-container path.zn-act { stroke: var(--b-suletud); fill: var(--b-suletud); fill-opacity: .3; stroke-width: 2.5; }
.leaflet-container path.zn-gear { stroke: var(--warn); fill: var(--warn); fill-opacity: .18; stroke-dasharray: 6 4; }
.leaflet-container path.zn-off { stroke: var(--ink-3); fill: var(--ink-3); fill-opacity: .04; stroke-opacity: .55; stroke-width: 1.2; stroke-dasharray: 3 4; }
.leaflet-container path.zn-apx { stroke-dasharray: 2 3; }
.mzones button.on { background: var(--ink); color: var(--on-ink); }
.mlaunch { margin-top: 6px !important; }
.lp-ic { display: grid !important; place-items: center; border-radius: 50%; background: var(--bg-raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.35), 0 0 0 1.5px var(--ink); }
.lp-ic svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-ic.slip { background: var(--ink); color: var(--on-ink); }
.zpop ul { margin: 4px 0; padding-left: 0; list-style: none; }
.zpop .note { margin: 4px 0 0; }
.leaflet-popup-content { font-size: var(--fs-s); line-height: 1.4; }
.msheet .zpop { padding-right: 36px; }
.msheet .zpop b { font-size: var(--fs-m); }
/* favourites: a small star after the name (rows, spot title, Kasari Kohad) + the Lemmikud filter */
.fav { border: 0; background: none; padding: 0 0 0 4px; margin: 0; width: 26px; height: 22px; vertical-align: -3px; color: var(--ink-3); cursor: pointer; }
.fav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fav.on { color: var(--b-rahuldav); }
.fav.on svg { fill: currentColor; }
.row .fav { width: 20px; height: 15px; padding-left: 4px; vertical-align: -2px; line-height: 1; }
.row .fav svg { width: 13px; height: 13px; }
h1 .fav { width: 34px; height: 28px; vertical-align: -1px; }
h1 .fav svg { width: 22px; height: 22px; }
.favf { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; border: 0; border-radius: 999px; background: var(--btn-s-bg); box-shadow: var(--btn-s-shadow); color: var(--ink-2); padding: 6px 12px 6px 10px; font-weight: 620; font-size: var(--fs-s); flex: none; }
.favf::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.favf svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.favf.on { color: var(--ink); background: var(--seg-track); box-shadow: var(--seg-track-shadow); }
.favf.on::before { display: none; }
.favf.on svg { fill: var(--b-rahuldav); stroke: var(--b-rahuldav); }
.favf[hidden] { display: none; }
@media (max-width: 400px) { .favf span { display: none; } }
/* Millal minna (spot page + Kalapüük): best days and dawn/dusk windows for the coming week */
.when-w { margin-top: var(--s3); }
.when-w.accs { margin-top: var(--s4); }
.when-pick { margin: 0 0 10px; font-size: var(--fs-s); color: var(--ink-2); }
.when-pick b { color: var(--ink); }
ul.when { list-style: none; margin: 0; padding: 0; }
ul.when li { display: grid; grid-template-columns: 52px 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--hair); font-size: var(--fs-s); }
ul.when li:first-child { border-top: 0; }
ul.when .wd { font-weight: 650; padding-top: 1px; }
ul.when .wsc { text-align: center; font-weight: 700; padding: 1px 0 3px; color: var(--ink); box-shadow: inset 0 -3px 0 var(--bc); }
ul.when .wsc svg { width: 14px; height: 14px; color: var(--b-suletud); vertical-align: -2px; }
ul.when .ww span { white-space: nowrap; }
ul.when .ww { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--ink-2); font-family: var(--font); }
ul.when .ww .arrow-ico { vertical-align: -2px; color: var(--c-wind); margin: 0 2px 0 6px; }
/* Rändekalad (Kasari · Kalapüük + species pages): information lines, no rating colours */
.runs .rk-x { font-size: var(--fs-s); }
.rk { border-top: 1px solid var(--hair); }
details.rk-i { border-bottom: 1px solid var(--hair); }
details.rk-i > summary { list-style: none; display: grid; grid-template-columns: 64px minmax(0, 1fr) 14px; gap: 10px; align-items: start; padding: 12px 0; min-height: 48px; box-sizing: border-box; cursor: pointer; font-size: var(--fs-s); color: var(--ink-2); }
details.rk-i > summary::-webkit-details-marker { display: none; }
details.rk-i > summary::after { content: ""; width: 14px; height: 14px; margin-top: 2px; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease); }
details.rk-i[open] > summary::after { transform: rotate(180deg); }
.rk-n { font-size: var(--fs); color: var(--ink); font-weight: 650; }
.rk-t { min-width: 0; padding-top: 1px; }
.rk-t .band { font-size: 11px; padding: 0 6px; }
details.rk-i > ul, details.rk-i > p { margin: 0; padding: 0 0 0 74px; font-size: var(--fs-s); }
details.rk-i > p:last-child { padding-bottom: 12px; }
.rk-bs { color: var(--ink-2); }
.rk-bs li { margin: 0 0 5px; }
.rk-l { color: var(--ink-3); margin: 2px 0 4px; }
.rnow details.rk-i { border-bottom: 0; }
.rnow details.rk-i > summary { grid-template-columns: minmax(0, 1fr) 14px; padding: 11px 0; min-height: 0; }
.rnow details.rk-i > p { padding: 0; }
.rnow details.rk-i > ul { padding: 0 0 0 16px; }
/* Päevad nagu täna (Kasari Andmed + Kalapüük): analogue days, level spaghetti */
.an-t, .an-s { margin: 0 0 8px; font-size: var(--fs-s); color: var(--ink-2); }
.an-t b { color: var(--ink); }
.an-svg { display: block; width: 100%; height: auto; max-width: 560px; }
.an-svg .an-0 { stroke: var(--hair-2); stroke-width: 1; }
.an-svg .an-ax { font: 500 10px var(--font-num); fill: var(--ink-3); }
.an-svg .an-l { fill: none; stroke: var(--c-level); stroke-width: 1.2; opacity: .35; stroke-linecap: round; stroke-linejoin: round; }
.an-svg .an-m { fill: none; stroke: var(--c-level); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.an-svg .an-f { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.an-leg { margin-top: 4px; }
.an-k { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--c-level); vertical-align: 3px; margin: 0 4px 0 8px; }
.an-k:first-child { margin-left: 0; }
.an-kl { opacity: .5; border-top-width: 1px; }
.an-km { border-top-width: 3px; }
.an-kf { border-top: 2px dashed var(--ink); }
table.an-tb { width: 100%; border-collapse: collapse; font-size: var(--fs-s); margin-top: 8px; }
table.an-tb th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 2px 4px 6px 0; font-size: var(--fs-xs); }
table.an-tb td { padding: 6px 4px 3px 0; border-top: 1px solid var(--hair); white-space: nowrap; }
table.an-tb tr.an-fo td { border-top: 0; padding-top: 0; padding-bottom: 6px; color: var(--ink-3); white-space: normal; font-family: var(--font); }
/* tap targets ≥ 44 px through an invisible hit area (layout unchanged) */
.icon-btn, .sp-btn, .back, .fav, .more, .clr-b, .linkbtn, .kfoto, .kmap, .pills button, .seg button, .seg a { position: relative; }
:is(.fav, .more, .clr-b, .linkbtn, .kfoto, .kmap)::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
.seg button::after, .seg a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: max(100%, 44px); transform: translate(-50%, -50%); }
.vrow.nowhy { grid-template-areas: "sc nm wx"; }
.vrow.nowhy .nm { align-self: center; }
/* seaward bearing(s) + the day's wind on the photo maps (fixed colours: always on an orthophoto) */
path.sea-arrow { stroke: #2ec4ff; stroke-width: 4; stroke-linecap: round; fill: none; }
path.sea-arrow.head { fill: #2ec4ff; stroke-width: 1; }
path.wind-arrow { stroke: #fff; stroke-width: 3; stroke-dasharray: 7 5; fill: none; }
path.wind-arrow.head { fill: #fff; stroke-dasharray: none; stroke-width: 1; }
.sea-lab { background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; line-height: 1; padding: 3px 5px; border-radius: 4px; white-space: nowrap; transform: translate(-50%, -50%); }
.lg-sea, .lg-wind { display: inline-block; width: 16px; height: 4px; border-radius: 2px; vertical-align: 3px; background: #2ec4ff; }
.lg-wind { background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 8px); }

/* ---------- motion: restrained; none when the system asks for less ---------- */
#app > * { animation: page-in 240ms var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- wider screens ---------- */
/* phone / tablet: the desktop column wrappers do not exist for layout (sticky controls keep working) */
@media (max-width: 999.98px) { .cols > .col-a, .cols > .col-b, .k-side { display: contents; } }
@media (min-width: 720px) {
  :root { --gut: 24px; }
  .list { margin: 0; }
  .row { padding-left: 4px; padding-right: 4px; }
  .row + .row::after { left: 62px; right: 0; }
}
/* desktop (≥ 1000 px): use the width – two columns where a page has two kinds of content */
@media (min-width: 1000px) {
  :root { --gut: 32px; --fs-xl: 34px; }
  main { max-width: 1200px; }
  body.mapmode .mapview > .ctl { max-width: 1200px; }
  .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 56px; align-items: start; }
  .cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cols > .col-a { position: sticky; top: calc(var(--hdr-h) + 8px); }
  .cols.nostick > .col-a { position: static; }
  .cols > .col-b > .sec:first-child, .cols > .col-b > .accs:first-child, .cols > .col-b > .runs:first-child { margin-top: var(--s5); }
  .ctl { position: static; margin: 0; padding-left: 0; padding-right: 0; }
  .meri .col-b .lnote { margin-top: var(--s5); }
  /* Kasari Andmed: readouts and outlook side by side, charts at full width, details in two columns */
  .k-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 48px; align-items: start; }
  .k-top .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .k-top ul.coming { margin-top: var(--s2); }
  .k-charts { display: grid; grid-template-columns: minmax(0, 1fr); }
  .k-bottom { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 48px; align-items: start; }
  .k-bottom .gnote { margin-top: var(--s6); }
  .spcs { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .rlist, .rules-w { max-width: 860px; }
  .sheet-body { max-width: 760px; border-radius: var(--r-xl); bottom: 24px; max-height: calc(100vh - 48px); }
  .dline { text-align: left; }
  /* the two sections move into the header bar on a computer */
  body { padding-bottom: 0; }
  .tabs { top: 0; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: 420px; background: none; border: 0; box-shadow: none; padding: env(safe-area-inset-top) 0 0; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 1001; }
  .tabs-in { height: 52px; }
  .tabs a { flex-direction: row; gap: 8px; font-size: var(--fs); }
  .tabs a::before { top: auto; bottom: 0; border-radius: 3px 3px 0 0; }
  .tabs svg { width: 22px; height: 22px; }
  .mapview { bottom: 0; }
}
#sheet-c > .sheet-sp:first-child { margin-top: 40px; }
#sheet-c > .sheet-sp + .accs { border-top: 0; }

/* ---------- (i) explanations: a small button after a title; the text opens in the sheet ---------- */
.ib { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 0 0 6px; padding: 0; border: 0; background: none; color: var(--ink-3); vertical-align: middle; border-radius: 50%; flex: none; transition: color var(--dur) var(--ease); }
.ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ib svg .f { fill: currentColor; stroke: none; }
.ib:hover { color: var(--ink); }
.ib::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
h1 .ib { width: 26px; height: 26px; } h1 .ib svg { width: 21px; height: 21px; }
.cbox.has-ib { position: relative; }
.cbox-ib { position: absolute; top: -2px; right: -4px; z-index: 2; }
.cbox.has-ib .chart-head { padding-right: 28px; }
.ib-h { margin: var(--s4) 0 var(--s2) !important; padding-right: 44px; }
.ib-body { font-size: var(--fs); line-height: 1.55; color: var(--ink-2); }
.ib-body p { margin: 0 0 var(--s3); }
.ib-body .note { font-size: var(--fs); color: var(--ink-2); }
.rsw-row { display: flex; align-items: center; gap: 8px; }
.rsw-row .rsw { flex: none; }
.rsw-i { margin-left: auto; }
.sol .note { color: var(--ink-3); font-size: var(--fs-xs); margin: 6px 0 0; }
/* the Kasari period switch stays in view while the three charts scroll */
.k-range { position: sticky; top: var(--hdr-h); z-index: 850; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: var(--s5) calc(-1 * var(--gut)) 0; padding: 2px var(--gut); background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.k-rl { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.k-range { padding-top: 6px; padding-bottom: 6px; }
.k-range .seg.sm button { padding: 7px 7px; }
.k-charts > .k-range + .sec { margin-top: var(--s4); }
.chart-loading { min-height: 200px; display: grid; place-items: center; color: var(--ink-3); font-size: var(--fs-s); margin: 0; background: repeating-linear-gradient(90deg, transparent 0 40px, var(--hair) 40px 41px); border-radius: var(--r); animation: fade 600ms ease-in-out infinite alternate; }
@media (min-width: 1000px) { .k-range { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }

/* ---------- map controls: compact floating chips (visual 36 px, hit area 44 px) ---------- */
.mareas, .mzones, .mlayers { margin-top: 8px !important; }
.mareas { gap: 6px; }
.mareas button, .mzones button, .mlayers button { position: relative; min-height: 32px; padding: 4px 10px; font-size: 12px; font-weight: 620; border-radius: 8px; line-height: 1.2; }
.mareas button::after, .mzones button::after, .mlayers button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.mlayers button { min-height: 32px; }
.mlayers:not(.open) button.on::before { width: 15px; height: 15px; }
.mlaunch { margin-top: 6px !important; }
.mzones button.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.mzones button.on { background: var(--bg-raised); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--ink); }

/* header refresh button */
#refresh-btn.spin svg { animation: kl-spin .8s linear infinite; }
@keyframes kl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #refresh-btn.spin svg { animation: none; opacity: .5; } }

/* brand in capitals; the species tab's fish icon has a filled eye */
.brand { text-transform: uppercase; letter-spacing: 0.06em; font-size: 17px; }
.tabs svg .f { fill: currentColor; stroke: none; }

/* ---------- Meri: "Nädal ühe pilguga" – spots × 7 days matrix (2026-11-21, replaces hero + list) ----------
   Intensity = quality: hea is the only solid tile, rahuldav a medium gold tint, nõrk a faint rust wash,
   suletud hatched + no-entry mark, andmed puuduvad a dashed outline – readable without colour too.
   The selected day is one continuous tinted column from the header down; ranking follows that day. */
.wk { --namew: 116px; --rowh: 44px; --stripe: color-mix(in srgb, var(--ink) 6.5%, transparent); }
.wk-sum { padding: var(--s4) 0 var(--s3); }
.wk-line { margin: 0; font-size: var(--fs-m); line-height: 1.4; color: var(--ink-2); letter-spacing: -0.005em; text-wrap: pretty; }
.wk-line b { color: var(--ink); font-weight: 680; }
.wk-line a { color: var(--ink); font-weight: 680; text-decoration: none; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--b-hea) 55%, transparent); }
.wk-line .num { font-weight: 720; }
.wk-line .linkbtn { color: var(--ink); font-weight: 680; font-family: var(--font-num); font-stretch: 92%; }
.wk-head { position: sticky; top: var(--hdr-h); z-index: 900; background: var(--bg); margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); transition: box-shadow var(--dur) var(--ease); }
.wk-head:not(.stuck) { background: transparent; }
.wk-head.stuck { box-shadow: 0 10px 18px -14px rgba(10, 20, 18, 0.45), 0 1px 0 var(--hair); }
.wk-ctl { display: flex; align-items: center; gap: 4px; min-height: 50px; margin-left: -10px; }
.wk-ctl .sps { flex: 1; min-width: 0; }
.wk-map { position: relative; isolation: isolate; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: var(--btn-p-bg); color: var(--btn-p-ink); text-shadow: var(--btn-p-text-shadow); font-weight: 650; font-size: var(--fs-s); box-shadow: var(--btn-p-shadow); transition: transform var(--dur) var(--ease); }
.wk-map:active { transform: scale(0.97); }
.wk-map::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.wk-map svg, .dt-btns .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mapview .ctl2 { margin-right: 0; }

/* column header: corner = sort switch, then the 7 days (tap = select + rank by that day) */
.mx-h { display: grid; grid-template-columns: var(--namew) repeat(7, minmax(0, 1fr)); align-items: stretch; }
.mx-sort { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 4px; justify-self: start; border: 0; border-radius: 999px; background: var(--btn-s-bg); box-shadow: var(--btn-s-shadow); padding: 0 10px 0 7px; margin-bottom: 8px; color: var(--ink-2); font-size: 12px; font-weight: 620; text-align: left; height: 30px; align-self: end; }
.mx-sort::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.mx-sort svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mx-sort:hover { color: var(--ink); }
.mx-d { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; min-width: 0; padding: 6px 0 5px; border: 0; background: none; color: var(--ink-2); border-radius: 10px 10px 0 0; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.mx-dw { font-size: 11px; font-weight: 600; color: var(--ink-3); line-height: 1.2; text-transform: lowercase; }
.mx-dd { font: 650 17px/1.1 var(--font-num); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.mx-db { display: grid; place-items: center; height: 11px; font: 750 8.5px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.mx-db:empty::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--bc, transparent); opacity: .85; }
.mx-d.best .mx-db { color: var(--ink); background: none; }
.mx-d.best .mx-dd { box-shadow: inset 0 -2px 0 var(--bc, var(--ink)); }
.mx-d.best .mx-db::after { content: ""; }
.mx-d.td .mx-dw { color: var(--ink); font-weight: 750; }
.mx-d.on { background: var(--stripe); color: var(--ink); }
.mx-d.on .mx-dd { font-weight: 760; }
.mx-d:not(.on):hover { color: var(--ink); }

/* rows */
.mx { position: relative; --col: 0; padding-bottom: 6px; }
.mx::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--namew) + (100% - var(--namew)) / 7 * var(--col)); width: calc((100% - var(--namew)) / 7); background: var(--stripe); border-radius: 0 0 10px 10px; pointer-events: none; transition: left 220ms var(--ease); }
.mx-r { position: relative; display: grid; grid-template-columns: var(--namew) repeat(7, minmax(0, 1fr)); height: var(--rowh); align-items: stretch; }
.mx-r + .mx-r .mx-n { box-shadow: inset 0 1px 0 var(--hair); }
.mx-n { display: flex; align-items: center; gap: 3px; min-width: 0; padding-right: 6px; color: var(--ink); text-decoration: none; font-weight: 620; font-size: 14px; line-height: 1.15; letter-spacing: -0.005em; }
.mx-n:hover .mx-nt { text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
.mx-nt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; overflow-wrap: anywhere; }
.mx-n .q { margin-left: 2px; flex: none; }
.mx-n .wmark { margin-left: 1px; flex: none; }
.mx-n .wmark svg { width: 13px; height: 13px; }
.mx-fav { display: inline-flex; flex: none; }
.mx-fav svg { width: 12px; height: 12px; fill: var(--b-rahuldav); stroke: var(--b-rahuldav); stroke-width: 1.5; stroke-linejoin: round; }
.mx-g { padding: 16px 0 4px; font-size: 11px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.mx-g:first-child { padding-top: 8px; }
.mx-empty { padding: var(--s5) 0; }

/* cells (also the swatches of the legend and the detail's week strip) */
.mxc { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; margin: 2px 1.5px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 680 15px/1 var(--font-num); font-stretch: 90%; font-variant-numeric: tabular-nums;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.mxc b { font-weight: inherit; }
.mxc::after { content: ""; position: absolute; left: -1.5px; right: -1.5px; top: -2px; bottom: -2px; }
.mxc .ic { width: 15px; height: 15px; vertical-align: 0; }
.mxc.b-hea, .lg.b-hea i { background: var(--b-hea); color: var(--on-band); }
.mxc.b-rahuldav, .lg.b-rahuldav i { background: color-mix(in srgb, var(--b-rahuldav) 42%, var(--bg)); color: var(--ink); }
.mxc.b-nork, .lg.b-nork i { background: color-mix(in srgb, var(--b-nork) 14%, var(--bg)); color: var(--ink-2); }
.mxc.b-nork b { font-weight: 560; }
.mxc.b-suletud, .lg.b-suletud i { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--b-suletud) 38%, transparent) 0 2.5px, transparent 2.5px 6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-suletud) 55%, transparent); color: var(--ink-2); }
.mxc.b-nodata, .lg.b-nodata i { background: none; border: 1.5px dashed var(--hair-2); color: var(--ink-3); }
.mxc:hover { transform: translateY(-1px); }
.mxc.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); transform: scale(1.06); z-index: 2; }
.mxc.b-suletud.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-suletud) 55%, transparent), 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.mx-w { display: none; align-items: center; gap: 2px; font: 560 11px/1 var(--font-num); font-stretch: 92%; opacity: .85; }
.mx-w .arrow-ico { color: inherit; }
.mx-w em { font: 600 10px/1 var(--font); font-style: normal; margin-left: 3px; opacity: .9; }

/* legend + notes under the matrix */
.mx-foot { padding: var(--s3) 0 0; border-top: 1px solid var(--hair); }
.mx-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); color: var(--ink-2); font-weight: 600; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { display: inline-block; width: 18px; height: 13px; border-radius: 4px; box-sizing: border-box; }
.mx-notes { margin: var(--s2) 0 0; font-size: var(--fs-s); color: var(--ink-3); line-height: 1.5; }
.mx-notes .splink, .mx-notes a { color: var(--ink-2); }

/* cell detail (bottom sheet on a phone, docked panel on a computer) */
.dt-h { padding-right: 40px; }
.dt-t { display: flex; align-items: center; gap: 4px; }
.dt-name { font-size: var(--fs-l); font-weight: 740; letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); text-decoration: none; }
.dt-name:hover { text-decoration: underline; text-decoration-color: var(--hair-2); }
.dt-t .fav { width: 32px; height: 32px; }
.dt-sub { margin: 3px 0 14px; font-size: var(--fs-s); color: var(--ink-3); }
.dt-sub a { color: var(--ink-2); }
.dt-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 0 0 16px; }
.mxc.sm { height: 48px; margin: 0; font-size: 15px; gap: 3px; }
.mxc.sm::after { left: 0; right: 0; top: 0; bottom: 0; }
.dt-wd { font: 600 10.5px/1 var(--font); opacity: .8; text-transform: lowercase; }
.dt-sc { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.dt-band { display: block; font-size: var(--fs-l); font-weight: 720; letter-spacing: -0.01em; line-height: 1.1; }
.dt-bt { display: block; font-size: var(--fs-s); color: var(--ink-3); margin-top: 3px; font-family: var(--font-num); font-stretch: 94%; }
.dt-nd { margin: var(--s3) 0; }
ul.dt-why { list-style: none; padding: 0; margin: var(--s2) 0 var(--s3); }
ul.dt-why li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair); }
ul.dt-why li:first-child { border-top: 0; }
.dt-pt { text-align: right; font: 720 16px/1.25 var(--font-num); font-stretch: 92%; font-variant-numeric: tabular-nums; }
ul.dt-why li.p .dt-pt { color: var(--b-hea); }
ul.dt-why li.n .dt-pt { color: var(--b-nork); }
ul.dt-why b { display: block; font-weight: 650; font-size: var(--fs); line-height: 1.25; }
ul.dt-why small { display: block; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.4; margin-top: 1px; }
.dt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin: var(--s3) 0; }
.dt-tile { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 11px; border-radius: var(--r-l); background: var(--glass-bg); box-shadow: var(--glass-shadow); min-width: 0; }
.dt-k { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.dt-v { display: flex; align-items: center; gap: 4px; font: 650 24px/1.1 var(--font-num); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.dt-v small { font: 500 var(--fs-s)/1 var(--font); color: var(--ink-3); margin-left: 2px; align-self: flex-end; padding-bottom: 3px; }
.dt-v .arrow-ico { color: var(--c-wind); }
.dt-vt { font: 650 var(--fs-m)/1.3 var(--font); }
.dt-s { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.35; }
.dt-s b { font-weight: 700; }
.sh-onshore { color: var(--c-on); }
.sh-offshore { color: var(--c-off); }
.sh-along { color: var(--ink-2); }
.dt-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s4) 0 var(--s1); }
.dt-btns .btn { flex: 1; min-width: 0; }
.wk-det { display: none; }

@media (min-width: 720px) { .wk { --namew: 170px; --rowh: 48px; } .mx-n { font-size: 15px; } }
@media (min-width: 1000px) {
  .wk { --namew: 196px; --rowh: 54px; }
  .wk-sum { padding-top: var(--s5); }
  .wk-line { font-size: var(--fs-l); }
  .wk-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 40px; align-items: start; }
  .wk-head { margin: 0; padding: 0; }
  .wk-ctl { margin-left: -10px; }
  .mx-w { display: flex; }
  .mxc { gap: 4px; font-size: 17px; }
  .wk-det { display: block; position: sticky; top: calc(var(--hdr-h) + 16px); margin-top: 8px; background: linear-gradient(180deg, var(--glass-top), var(--glass-bot) 320px) var(--glass-bot); border-radius: var(--r-xl); padding: 20px 20px 16px; box-shadow: var(--glass-shadow); max-height: calc(100vh - var(--hdr-h) - 32px); overflow: auto; }
  .wk-det .dt-h { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .mxc.on { transform: none; } .mx::before { transition: none; } }

/* rating scale green / orange / red (owner's choice 2026-11-21); cells get an exact shade per score inline */
.mxc.b-rahuldav, .lg.b-rahuldav i { background: hsl(40 78% 57%); color: #0c1512; }
.mxc.b-nork, .lg.b-nork i { background: hsl(8 68% 54%); color: #0c1512; }
.mxc.b-hea, .lg.b-hea i { background: hsl(125 58% 48%); color: #0c1512; }
.mxc.b-nork b { font-weight: inherit; }

/* score tiles: a little depth – soft top light, darker foot, hairline glass highlight (kept very subtle) */
.mxc.b-hea, .mxc.b-rahuldav, .mxc.b-nork {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(0, 0, 0, 0.16), 0 1px 1.5px rgba(0, 0, 0, 0.28);
}
.mxc.b-hea::before, .mxc.b-rahuldav::before, .mxc.b-nork::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.05) 46%, rgba(255, 255, 255, 0) 47%, rgba(0, 0, 0, 0.07) 100%);
}
.mxc.b-hea > *, .mxc.b-rahuldav > *, .mxc.b-nork > * { position: relative; }
.mxc.b-hea.on, .mxc.b-rahuldav.on, .mxc.b-nork.on {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(0, 0, 0, 0.16), 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);
}

/* ---------- Kasari · Kalapüük: river week table in the Meri tile language (2026-11-21) ----------
   Two rating rows (haug, ahven) use the shared .mxc tiles + scoreBg(); the context rows under them
   are deliberately quiet (no tiles, small tabular figures) so they read as context, not ratings. */
.wk.kpw { --namew: 78px; }
/* first section: compact glass card – best day + river trend left, the day's wind rose top right */
.kp-top { display: flex; align-items: center; gap: var(--s3); margin: var(--s4) 0 var(--s3); padding: 10px 10px 10px var(--s4); background: var(--glass-bg); border-radius: 16px; box-shadow: var(--glass-shadow); }
.kp-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.kp-f { border: 0; background: none; padding: 2px 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
span.kp-f { cursor: default; }
.kp-f .wk-v { font-family: var(--font); }
.kp-fs { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
button.kp-f .wk-v { text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
button.kp-f .kp-fs { text-decoration: none; }
.kp-rose { flex: none; display: flex; flex-direction: column; align-items: center; width: 112px; }
.kp-rose .wk-bl { margin-bottom: 0; white-space: nowrap; }
.kp-rose svg.rose { display: block; margin: -2px 0 -4px; }
.kp-rw { font: 650 var(--fs-s)/1.2 var(--font-num); font-stretch: 92%; color: var(--ink); white-space: nowrap; }
.kp-rose svg.rose .rs, .kp-rose svg.rose .rs-halo, .kp-rose svg.rose .rs-head { stroke: var(--glass-top); }
.kp-rose svg.rose .rs-c { fill: var(--glass-top); }
.mx-corner { display: block; }
.kp-sr .mx-n { font-size: 15px; font-weight: 680; position: relative; padding-left: 0; }
.kp-sr .mx-n .splink { color: inherit; text-decoration-color: var(--hair-2); }
.kp-sr .mx-n .q { margin-left: 4px; }
.kp-sr.sel .mx-n::before { content: ""; position: absolute; left: calc(-1 * var(--gut) + 4px); top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--ink); }
.kp-sr:not(.sel) .mx-n { color: var(--ink-2); }
.kp-ctx { margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--hair); }
.mx-r.kp-cr { height: 34px; }
.kp-cr .mx-n { font-size: 12.5px; font-weight: 600; color: var(--ink-3); box-shadow: none !important; white-space: nowrap; }
.kp-cr .mx-n small { font-size: 10.5px; font-weight: 500; margin-left: 3px; opacity: .85; }
.kc { position: relative; display: flex; align-items: center; justify-content: center; gap: 1px; min-width: 0; font: 600 12.5px/1 var(--font-num); font-stretch: 88%; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.kc.cd { color: var(--ink); }
.kc .kc-v { display: inline-flex; align-items: center; gap: 1px; }
.kc .arrow-ico { color: var(--c-wind); }
.kc-t { display: inline-flex; }
.kc-t svg { width: 11px; height: 11px; stroke-width: 2.4; }
.dt-rt { margin-top: 3px; }
.dt-rt .tag { margin-left: 2px; }
ul.dt-legal { margin: var(--s2) 0; }
.dt-places { display: flex; flex-direction: column; margin: var(--s3) 0 0; }
.dt-places .dt-k { margin-bottom: 2px; }
.dt-pl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; min-height: 48px; padding: 8px 12px; margin-top: 6px; border: 0; border-radius: var(--r); background: var(--glass-bg); box-shadow: var(--glass-shadow); text-align: left; color: var(--ink); }
.dt-pl b { grid-column: 1; font-weight: 650; }
.dt-pl small { grid-column: 1; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.35; }
.dt-pl .chev { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-3); display: inline-flex; }
.kp-below > .sec:first-child { margin-top: var(--s6); }
@media (min-width: 720px) { .wk.kpw { --namew: 120px; } .kc { font-size: 14px; } }
@media (min-width: 1000px) {
  .wk.kpw { --namew: 140px; }
  .mx-r.kp-cr { height: 38px; }
  .kc { font-size: 15px; gap: 3px; }
  .kc-t svg { width: 14px; height: 14px; }
  .kp-below { max-width: 780px; }
  .kp-sr.sel .mx-n::before { left: -12px; }
  .kp-top { padding: 12px 16px 12px var(--s5); }
  .kp-sum { flex-direction: row; flex-wrap: wrap; gap: 10px var(--s7); }
  .kp-f .wk-v { font-size: var(--fs-l); }
  .kp-rose { width: 140px; }
  .kp-rose svg.rose { width: 124px; height: 124px; }
}
.kc .kc-v.fc { color: var(--ink-3); }
.kc.cd .kc-v.fc { color: var(--ink-2); }

/* realistic fish pictures; the silhouette (.sil) is the backup when a picture fails to load */
.fish-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.28)); }
.sp-head { padding-right: 0; min-height: 0; }
.fish-hero { display: block; width: 100%; max-width: 440px; aspect-ratio: 5 / 2; margin: 2px 0 10px; }
.fish-hero.sil { max-width: 140px; color: var(--ink-2); }
.fish-hero.sil svg { width: 100%; height: 100%; }
.spc { position: relative; }
.fish-th { position: absolute; right: 12px; top: 10px; width: 108px; height: 46px; }
.fish-th.sil { color: var(--ink-2); width: 72px; }
.fish-th.sil svg { width: 100%; height: 100%; }
.spc .spc-h, .spc .spc-w { padding-right: 116px; }

/* Meri: species tabs joined to the summary card, so the open species is obvious */
.wk-card { margin: var(--s4) 0 var(--s2); }
.wk-sp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 8px; position: relative; z-index: 1; }
.wk-sp button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 4px 7px; border: 1px solid transparent; border-bottom: 0; border-radius: 14px 14px 0 0; background: none; color: var(--ink-3); font: inherit; font-size: var(--fs-s); font-weight: 600; letter-spacing: -0.005em; cursor: pointer; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.wk-sp-f { display: block; width: 100%; max-width: 92px; height: 30px; opacity: .5; filter: saturate(.55); transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease), transform var(--dur) var(--ease); }
.wk-sp-f.sil { color: currentColor; } .wk-sp-f.sil svg { width: 100%; height: 100%; }
/* the open species tab is glass that runs into the card: opaque, its foot = the card's top colour, 1 px over the card's rim */
.wk-sp button.on { background: linear-gradient(180deg, var(--glass-top), var(--glass-top)); border: 0; color: var(--ink); font-weight: 720; margin-bottom: -1px; padding-bottom: 8px;
  box-shadow: var(--glass-rim), inset 1px 0 0 var(--glass-edge), inset -1px 0 0 var(--glass-edge), 0 -4px 10px -4px rgba(0, 0, 0, 0.18); }
.wk-sp button.on .wk-sp-f { opacity: 1; filter: none; transform: scale(1.06); }
.wk-card .wk-sum { background: var(--glass-bg); border-radius: 16px; padding: var(--s3) var(--s4) var(--s4); box-shadow: var(--glass-shadow); }
.wk-ctl { justify-content: space-between; margin-left: 0; }
.wk-ctl .wk-map { margin-left: auto; }

/* ---------- score tiles: thick glass ("Geel B", owner's pick 2026-11-21) ----------
   --c is the tile colour (scoreBg() sets it per score; the band class gives the default).
   Colour falls off to the sides, a crisp curved specular sits on top, a little light pools at the foot.
   Light theme uses a softer edge. */
.mxc.b-hea { --c: hsl(125 58% 48%); } .mxc.b-rahuldav { --c: hsl(40 78% 57%); } .mxc.b-nork { --c: hsl(8 68% 54%); }
.mxc.b-hea, .mxc.b-rahuldav, .mxc.b-nork {
  --gl-edge: 60%; --gl-ring: .2; --gl-in: .2; --gl-spec: .7; --gl-drop: .3;
  color: #0c1512; overflow: hidden;
  background:
    radial-gradient(42% 24% at 50% 96%, color-mix(in srgb, var(--c) 45%, #fff) 0%, transparent 100%),
    radial-gradient(74% 100% at 50% 62%, color-mix(in srgb, var(--c) 85%, #fff) 0%, var(--c) 42%, color-mix(in srgb, var(--c) var(--gl-edge), #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(0, 0, 0, var(--gl-ring)), inset 0 0 6px 1px rgba(0, 0, 0, var(--gl-in)), 0 2px 5px rgba(0, 0, 0, var(--gl-drop));
}
.mxc.b-hea::before, .mxc.b-rahuldav::before, .mxc.b-nork::before {
  content: ""; position: absolute; inset: 2px 2.5px auto 2.5px; height: 42%; pointer-events: none;
  border-radius: 6px 6px 60% 60% / 6px 6px 38% 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, var(--gl-spec)) 0%, rgba(255, 255, 255, .3) 55%, rgba(255, 255, 255, .08) 100%);
}
.mxc.b-hea::after, .mxc.b-rahuldav::after, .mxc.b-nork::after { left: 0; right: 0; top: 0; bottom: 0; }
.mxc.b-hea.on, .mxc.b-rahuldav.on, .mxc.b-nork.on {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(0, 0, 0, var(--gl-ring)), inset 0 0 6px 1px rgba(0, 0, 0, var(--gl-in)), 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mxc { --gl-edge: 50%; --gl-ring: .28; --gl-in: .28; --gl-spec: .9; --gl-drop: .5; }
}
:root[data-theme="dark"] .mxc { --gl-edge: 50%; --gl-ring: .28; --gl-in: .28; --gl-spec: .9; --gl-drop: .5; }

/* Liigid month strips in the same thick-glass language as the score tiles (2026-11-21) */
.cal .c.c1, .cal-leg .c.c1 { --c: color-mix(in srgb, var(--b-hea) 34%, var(--bg-sunk)); }
.cal .c.c2, .cal-leg .c.c2 { --c: color-mix(in srgb, var(--b-hea) 66%, var(--bg-sunk)); }
.cal .c.c3, .cal-leg .c.c3 { --c: var(--b-hea); }
.cal .c.c0, .cal-leg .c.c0 { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28), inset 0 -1px 0 rgba(255, 255, 255, .05); }
.cal .c.c1, .cal .c.c2, .cal .c.c3, .cal-leg .c.c1, .cal-leg .c.c2, .cal-leg .c.c3 {
  position: relative; overflow: hidden;
  background: radial-gradient(80% 110% at 50% 62%, color-mix(in srgb, var(--c) 93%, #fff) 0%, var(--c) 50%, color-mix(in srgb, var(--c) 62%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 0 0 1px rgba(0, 0, 0, .22), inset 0 0 4px rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .3);
}
.cal .c.c1::before, .cal .c.c2::before, .cal .c.c3::before {
  content: ""; position: absolute; inset: 1.5px 2px auto 2px; height: 44%; pointer-events: none;
  border-radius: 4px 4px 60% 60% / 4px 4px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .04));
}
.cal.compact .c::before { height: 50%; inset: 1px 1.5px auto 1.5px; border-radius: 2px; }
.cal .c.now { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 0 0 1px rgba(0, 0, 0, .22), 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.cal .c.sel:not(.now) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 0 0 1px rgba(0, 0, 0, .22), 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink-3); }
/* month initial inside each cell; text colour per fill level so it reads on every shade, both themes */
.cal .c { display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.cal .c .cm { position: relative; z-index: 1; font: 700 10px/1 var(--font); letter-spacing: 0; pointer-events: none; }
.cal .c.c1 { color: var(--ink); }
.cal .c.c2 { color: #0f1c17; }
.cal .c.c3 { color: var(--on-band); }
.cal .c.c2 .cm, .cal .c.c3 .cm { text-shadow: 0 0 2px color-mix(in srgb, var(--c) 70%, transparent); }
.cal .c.now .cm { font-weight: 800; }
.cal.compact .c { height: 17px; border-radius: 4px; }
.cal.compact .c .cm { font-size: 9.5px; }

/* Meri: compact summary – best spot today + Kaart in one card (owner 2026-11-21) */
.wk-box { display: flex; align-items: center; gap: 10px; background: var(--glass-bg); border-radius: 16px; padding: 8px 8px 8px var(--s4); box-shadow: var(--glass-shadow); }
.wk-card .wk-sum { flex: 1; min-width: 0; background: none; box-shadow: none; padding: 0; border-radius: 0; }
.wk-best { display: block; color: inherit; text-decoration: none; padding: 2px 0; }
.wk-bl { display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1px; }
.wk-v { display: block; font-size: var(--fs-m); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.wk-v .num { font-weight: 720; margin-left: 2px; }
.wk-v .num.b-hea { color: var(--b-hea); } .wk-v .num.b-rahuldav { color: var(--b-rahuldav); } .wk-v .num.b-nork { color: var(--b-nork); }
.wk-sum .hl-upw { margin: 6px 0 2px; font-size: var(--fs-s); }
.wk-box .wk-map { margin-left: 0; align-self: center; }
.wk-ctl { min-height: 0; }
.wk-ctl:has(.favf:not([hidden])) { min-height: 46px; }
