@font-face{font-family:Fraunces;font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-normal-latin.woff2) format("woff2");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:Fraunces;font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-normal-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(fonts/source-serif-4-normal-latin.woff2) format("woff2");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:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(fonts/source-serif-4-normal-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Serif 4";font-style:italic;font-weight:200 900;font-display:swap;src:url(fonts/source-serif-4-italic-latin.woff2) format("woff2");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:"Source Serif 4";font-style:italic;font-weight:200 900;font-display:swap;src:url(fonts/source-serif-4-italic-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibmplexsans-normal-500-latin.woff2) format("woff2");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:"IBM Plex Sans";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibmplexsans-normal-500-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ibmplexsans-normal-600-latin.woff2) format("woff2");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}

/* Linia de peste Prut — design system
   Themes: paper (light, default) and river night (dark). Semantic tokens only. */

:root {
  --bg: #f6f1e6;
  --surface: #ede7d7;
  --panel: #fdfbf2;
  --panel-2: #f1ecdd;
  --text: #212a2c;
  --secondary: #414b50;
  --line: rgba(33, 42, 44, 0.22);
  --line-soft: rgba(33, 42, 44, 0.12);
  --accent: #a33f2b;
  --accent-ink: #7c2f1e;
  --river: #2d6a87;
  --river-deep: #1d4b5f;
  --sage: #5c7150;
  --gold: #8f6b1f;
  --land: #e4dec9;
  --land-stroke: #b9b194;
  --country: #d7d1ba;
  --country-stroke: #a89f7e;
  --annex: rgba(163, 63, 43, 0.20);
  --annex-edge: #a33f2b;
  --dot: #6d6650;
  --shadow: 0 18px 48px rgba(33, 42, 44, 0.18);
  --radius: 14px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f1519;
  --surface: #141d24;
  --panel: #17212a;
  --panel-2: #1c2731;
  --text: #eae5d3;
  --secondary: #b3bdb9;
  --line: rgba(234, 229, 211, 0.22);
  --line-soft: rgba(234, 229, 211, 0.10);
  --accent: #d9704e;
  --accent-ink: #e58460;
  --river: #6db4d8;
  --river-deep: #8cc9e4;
  --sage: #93ad7e;
  --gold: #d3a94e;
  --land: #1c2830;
  --land-stroke: #31424e;
  --country: #202d37;
  --country-stroke: #3b4c59;
  --annex: rgba(217, 112, 78, 0.22);
  --annex-edge: #d9704e;
  --dot: #a99f7e;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.075rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--panel); color: var(--text); padding: 0.55rem 1rem;
  border: 1px solid var(--line); border-radius: 8px; transition: top 0.15s ease;
}
.skip:focus { top: 0.75rem; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  height: 44px; padding: 0 0.9rem; background: var(--panel); border-bottom: 1px solid var(--line-soft);
  position: relative; z-index: 20;
}
.topbar .brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--text); }
.topbar .brand svg { display: block; }
.topbar .brand span { font-family: "Fraunces", serif; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap; }
.topbar .tools { display: flex; align-items: center; gap: 0.35rem; }
.lang-switch { display: flex; align-items: center; gap: 0.15rem; font-family: "IBM Plex Sans", sans-serif; font-size: 0.8rem; }
.lang-switch a { color: var(--secondary); text-decoration: none; padding: 0.25rem 0.45rem; border-radius: 6px; }
.lang-switch a[aria-current="true"] { color: var(--accent-ink); font-weight: 700; border: 1px solid var(--line); }
.lang-switch a:hover { color: var(--text); background: var(--panel-2); }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: transparent;
  color: var(--text); border-radius: 10px; cursor: pointer;
}
.icon-btn:hover { background: var(--panel-2); }

.progress { position: absolute; left: 0; top: 44px; height: 2px; width: 100%; overflow: hidden; background: transparent; z-index: 19; }
.progress .fill { height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .progress .fill { transform: scaleX(0) !important; } }

/* ---------- reading rail ---------- */
.rail { position: fixed; right: 0.9rem; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column; gap: 0.55rem; }
.rail a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--secondary); background: transparent; }
.rail a[aria-current="true"] { background: var(--accent); border-color: var(--accent); }
.rail a span { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-family: "IBM Plex Sans", sans-serif; font-size: 0.68rem; color: var(--text); background: var(--panel); border: 1px solid var(--line-soft); padding: 0.2rem 0.45rem; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.12s ease; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; }
@media (max-width: 1180px) { .rail { display: none; } }
@media print { .rail, .topbar .tools { display: none !important; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; min-height: var(--hero-h, 100svh);
  display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  align-items: stretch; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 78% 38%, var(--surface) 0%, var(--bg) 62%);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 3rem) clamp(1.25rem, 4.5vw, 4.25rem);
  position: relative; z-index: 2;
}
.kicker {
  font-family: "IBM Plex Sans", sans-serif; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0;
}
h1 {
  font-family: "Fraunces", serif; font-weight: 640; font-variation-settings: "opsz" 100;
  font-size: clamp(2.6rem, 6.2vw, 4.35rem); line-height: 1.02; letter-spacing: -0.015em; margin: 0;
}
h1 .thin { display: block; font-weight: 430; font-style: italic; color: var(--river-deep); font-size: 0.52em; letter-spacing: 0.01em; margin-top: 0.35em; }
.deck { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--text); max-width: 34ch; margin: 0; }
.deck strong { color: var(--accent-ink); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-family: "IBM Plex Sans", sans-serif; font-size: 0.78rem; color: var(--secondary); }
.hero-meta b { color: var(--text); font-weight: 600; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: start; margin-top: 0.35rem;
  font-family: "IBM Plex Sans", sans-serif; font-size: 0.85rem; color: var(--river-deep);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer; text-decoration: none;
}
.scroll-cue:hover { background: var(--panel-2); }
.hero-map { display: grid; place-items: center; padding: 1rem clamp(0.5rem, 2vw, 2rem); position: relative; z-index: 1; }
.hero-map svg { width: min(92%, 620px); height: auto; max-height: 92vh; overflow: visible; }
.hero-map figcaption { position: absolute; bottom: 0.6rem; right: 1rem; font-family: "IBM Plex Sans", sans-serif; font-size: 0.68rem; color: var(--secondary); max-width: 34ch; text-align: right; }

.river-glow { stroke: var(--river); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.annex-fill { fill: var(--annex); stroke: var(--annex-edge); stroke-width: 2.2; stroke-linejoin: round; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 1.5rem 1.25rem 0.75rem; }
  .deck { max-width: none; }
  .hero-map { padding: 0.5rem 0.5rem 2.4rem; }
  .hero-map svg { width: 100%; max-height: 68vh; }
  .hero-map figcaption { position: static; text-align: left; padding: 0 1.25rem 1rem; }
}

/* ---------- sections ---------- */
main { display: block; }
section.block { padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 4rem); }
.inner { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 44rem; margin: 0 auto; }
.kicker-sm { font-family: "IBM Plex Sans", sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--river-deep); margin: 0 0 0.4rem; }
h2 { font-family: "Fraunces", serif; font-weight: 620; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; margin: 0 0 0.9rem; letter-spacing: -0.01em; }
h3 { font-family: "Fraunces", serif; font-weight: 610; font-size: 1.18rem; margin: 1.6rem 0 0.5rem; }
p { margin: 0 0 1rem; }
.lede::first-letter { font-family: "Fraunces", serif; font-weight: 640; }
.small { font-size: 0.88rem; color: var(--secondary); }

/* facts card */
.facts {
  background: var(--panel); border: 1px solid var(--line-soft); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.25rem 0;
  font-family: "IBM Plex Sans", sans-serif; font-size: 0.86rem;
}
.facts dt { color: var(--secondary); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }
.facts dd { margin: 0 0 0.5rem; font-weight: 600; }
.facts dd:last-child { margin-bottom: 0; }

blockquote.source-quote {
  margin: 1.4rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--gold);
  background: var(--panel-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; font-size: 0.98rem;
}
blockquote.source-quote cite { display: block; font-style: normal; font-family: "IBM Plex Sans", sans-serif; font-size: 0.75rem; color: var(--secondary); margin-top: 0.6rem; }

.figure { margin: 1.5rem 0; }
.figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.figure figcaption { font-family: "IBM Plex Sans", sans-serif; font-size: 0.8rem; color: var(--secondary); margin-top: 0.55rem; line-height: 1.45; }
.figure figcaption b { color: var(--text); font-weight: 600; }

/* ---------- the interactive map panel ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .map-layout { grid-template-columns: 1fr; } }
.map-stage { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 0.75rem; box-shadow: var(--shadow); }
.map-stage svg { width: 100%; height: auto; display: block; }
.map-caption { display: flex; justify-content: space-between; gap: 1rem; font-family: "IBM Plex Sans", sans-serif; font-size: 0.7rem; color: var(--secondary); padding: 0.4rem 0.25rem 0; flex-wrap: wrap; }

.side { display: flex; flex-direction: column; gap: 0.9rem; }
.year-big { font-family: "Fraunces", serif; font-weight: 700; font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; }
.act-label { font-family: "IBM Plex Sans", sans-serif; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.act-title { font-family: "Fraunces", serif; font-size: 1.28rem; font-weight: 620; line-height: 1.2; }
.act-text { font-size: 0.97rem; color: var(--text); margin: 0; }
.who { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.who-row { display: grid; grid-template-columns: 11.5rem 1fr; gap: 0.75rem; padding: 0.5rem 0.75rem; font-family: "IBM Plex Sans", sans-serif; font-size: 0.8rem; background: var(--panel); }
.who-row + .who-row { border-top: 1px solid var(--line-soft); }
.who-row dt { color: var(--secondary); }
.who-row dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .who-row { grid-template-columns: 1fr; gap: 0.15rem; } }

.scrub { margin-top: 0.25rem; }
.scrub input[type="range"] {
  width: 100%; appearance: none; height: 4px; border-radius: 2px; background: var(--line); outline-offset: 6px;
}
.scrub input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 3px solid var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,0.35); cursor: pointer;
}
.scrub input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--panel); }
.ticks { display: flex; justify-content: space-between; margin-top: 0.4rem; }
.ticks span { font-family: "IBM Plex Sans", sans-serif; font-size: 0.66rem; color: var(--secondary); width: 2ch; text-align: center; }
.scrub-row { display: flex; align-items: center; gap: 0.8rem; }
.scrub-row .scrub { flex: 1; }
.play-btn {
  flex: 0 0 auto; height: 44px; padding: 0 1.1rem; display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: "IBM Plex Sans", sans-serif; font-size: 0.83rem; font-weight: 600; color: #fdfbf2;
  background: var(--accent); border: 0; border-radius: 999px; cursor: pointer;
}
.play-btn:hover { filter: brightness(1.07); }
[data-theme="dark"] .play-btn { color: #241209; }

/* lookup */
.lookup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .lookup { grid-template-columns: 1fr; } }
.lookup label { display: block; font-family: "IBM Plex Sans", sans-serif; font-size: 0.8rem; color: var(--secondary); margin-bottom: 0.35rem; }
.lookup input[type="text"], .lookup input[type="search"] {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text); font-family: "IBM Plex Sans", sans-serif; font-size: 1rem; padding: 0 0.9rem;
}
.suggest { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.suggest button {
  font-family: "IBM Plex Sans", sans-serif; font-size: 0.78rem; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.3rem 0.7rem; cursor: pointer;
}
.suggest button:hover { border-color: var(--accent); color: var(--accent-ink); }
.hint { font-size: 0.8rem; color: var(--secondary); margin-top: 0.6rem; }

.strip { display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.strip-cell { padding: 0.55rem 0.45rem; min-height: 5.6rem; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 0.25rem; }
.strip-cell:first-child { border-left: 0; }
.strip-cell .yr { font-family: "IBM Plex Sans", sans-serif; font-size: 0.68rem; color: var(--secondary); letter-spacing: 0.06em; }
.strip-cell .who { font-family: "IBM Plex Sans", sans-serif; font-size: 0.74rem; font-weight: 600; line-height: 1.35; border: 0; background: transparent; padding: 0; }
.strip-cell.ro-side { background: color-mix(in srgb, var(--sage) 14%, transparent); }
.strip-cell.ru-side { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.strip-cell.at-side { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.strip-cell.now-side { box-shadow: inset 0 0 0 2px var(--river); border-radius: 0; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(4, 1fr); } .strip-cell:nth-child(5) { border-left: 0; border-top: 1px solid var(--line-soft); } .strip-cell:nth-child(n+5) { border-top: 1px solid var(--line-soft); } }
.result-head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.result-head h3 { margin: 0; }
.reset-btn { font-family: "IBM Plex Sans", sans-serif; font-size: 0.8rem; background: none; border: 1px solid var(--line); color: var(--river-deep); border-radius: 8px; padding: 0.35rem 0.65rem; cursor: pointer; }
.reset-btn:hover { background: var(--panel-2); }
.share-row { display: flex; align-items: center; gap: 0.45rem; margin: 0.75rem 0 0; }
.share-row small { font-family: "IBM Plex Sans", sans-serif; font-size: 0.75rem; color: var(--secondary); }
.share-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.share-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.share-status { font-family: "IBM Plex Sans", sans-serif; font-size: 0.75rem; color: var(--sage); min-height: 1.2em; margin: 0.35rem 0 0; }

/* ---------- docs & sources ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.doc { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1rem 1.1rem; }
.doc h3 { margin-top: 0; font-size: 1.02rem; }
.doc p { font-size: 0.9rem; }

.sources { font-family: "IBM Plex Sans", sans-serif; font-size: 0.85rem; }
.sources li { margin-bottom: 0.55rem; line-height: 1.5; }
.sources a { color: var(--river-deep); }

hr.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 2.5rem 0; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line-soft); background: var(--panel);
  padding: 1.25rem clamp(1rem, 4vw, 4rem) 2rem;
  font-family: "IBM Plex Sans", sans-serif; font-size: 0.83rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
footer.site a { color: var(--river-deep); }


/* chapter nav chips */
.timeline-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; }
.timeline-nav a { font-family: "IBM Plex Sans", sans-serif; font-size: 0.72rem; color: var(--secondary); text-decoration: none; border: 1px solid var(--line-soft); border-radius: 6px; padding: 0.25rem 0.55rem; }
.timeline-nav a:hover { color: var(--accent-ink); border-color: var(--accent); }

.dot { pointer-events: none; }
@media print {
  .hero { min-height: 0; }
  .scrub, .play-btn, .share-row, .map-caption, .timeline-nav { display: none !important; }
  body { font-size: 11pt; }
}

/* ---------- map layers ---------- */
.land-mass { fill: var(--land); stroke: var(--land-stroke); stroke-width: 1.1; stroke-linejoin: round; }
.country { fill: none; stroke: var(--country-stroke); stroke-width: 1.4; stroke-dasharray: 5 5; opacity: 0.85; }
.layer-grid line { stroke: var(--line); stroke-width: 0.6; opacity: 0.35; }
.river-casing { fill: none; stroke: var(--bg); stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.river { fill: none; stroke: var(--river); stroke-linecap: round; stroke-linejoin: round; }
.river-prut { stroke-width: 3.4; stroke: var(--river-deep); }
.river-dniester { stroke-width: 2.6; }
.river-danube { stroke-width: 2.2; opacity: 0.95; }
.map-label {
  font-family: "IBM Plex Sans", sans-serif; font-size: 12.5px; letter-spacing: 0.18em;
  fill: var(--secondary); stroke: var(--bg); stroke-width: 3.2; paint-order: stroke fill; stroke-linejoin: round;
}
.sea-label { font-size: 12px; letter-spacing: 0.28em; }
.dot { fill: var(--dot); stroke: var(--bg); stroke-width: 1.4; transition: fill 0.25s ease; }
.dot-border { stroke-dasharray: 2.5 2; stroke-width: 1.6; }
.g-ro { fill: #58a573; }
.g-ru { fill: #d05a41; }
.g-at { fill: #d3a94e; }
.g-md { fill: #4f86c6; }
.g-ua { fill: #d8b93a; }

.legend { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin: 0.5rem 0 0; font-family: "IBM Plex Sans", sans-serif; font-size: 0.72rem; color: var(--secondary); }
.legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--bg); }
.legend .l-ro { background: #58a573; } .legend .l-ru { background: #d05a41; } .legend .l-at { background: #d3a94e; } .legend .l-md { background: #4f86c6; } .legend .l-ua { background: #d8b93a; }
.md-side { background: color-mix(in srgb, var(--river) 16%, transparent); }
.ua-side { background: color-mix(in srgb, var(--gold) 18%, transparent); }
.dot-pick { stroke: var(--accent) !important; stroke-width: 2.6; }
