/* Opt din zece — stratigrafia numelor de râuri și de sate.
   Harta eroului e întotdeauna întunecată (sediment); restul paginii urmează tema. */

:root {
  color-scheme: light;
  --bg: #f5f0e7;
  --bg-raised: #fffdf8;
  --bg-sunken: #ebe3d5;
  --fg: #1b1712;
  --fg-soft: #5a524a;
  --fg-faint: #8d847a;
  --line: rgba(27, 23, 18, 0.14);
  --line-strong: rgba(27, 23, 18, 0.32);
  --shadow: rgba(40, 28, 10, 0.16);

  --sed: #0f0d0b;          /* fundalul hărții, în ambele teme */
  --sed-ink: #efe7d8;
  --sed-soft: #b9b0a2;

  --A: #c98f1f; --A-tint: #f7ecd2;
  --S: #268a76; --S-tint: #d8efe8;
  --T: #cf4d36; --T-tint: #f9dcd6;
  --H: #6d55c4; --H-tint: #e5dff7;
  --G: #3f79b8; --G-tint: #dae7f5;
  --R: #8f7350; --R-tint: #ede2d3;
  --U: #8a847d; --U-tint: #e6e2dc;
  --N: #b9b3aa;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 900px;
  --wide: 1240px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121009;
    --bg-raised: #1b1812;
    --bg-sunken: #0c0a07;
    --fg: #f1eadc;
    --fg-soft: #c2b8a8;
    --fg-faint: #8e857a;
    --line: rgba(241, 234, 220, 0.14);
    --line-strong: rgba(241, 234, 220, 0.3);
    --shadow: rgba(0, 0, 0, 0.5);
    --A: #e7b04a; --A-tint: #2f2410;
    --S: #46bda3; --S-tint: #0f2a24;
    --T: #ef7b64; --T-tint: #33150f;
    --H: #a48de6; --H-tint: #1f1936;
    --G: #7fb0e6; --G-tint: #0f2033;
    --R: #c9a97e; --R-tint: #2a2118;
    --U: #a19a92; --U-tint: #24211d;
    --N: #4a453f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121009;
  --bg-raised: #1b1812;
  --bg-sunken: #0c0a07;
  --fg: #f1eadc;
  --fg-soft: #c2b8a8;
  --fg-faint: #8e857a;
  --line: rgba(241, 234, 220, 0.14);
  --line-strong: rgba(241, 234, 220, 0.3);
  --shadow: rgba(0, 0, 0, 0.5);
  --A: #e7b04a; --A-tint: #2f2410;
  --S: #46bda3; --S-tint: #0f2a24;
  --T: #ef7b64; --T-tint: #33150f;
  --H: #a48de6; --H-tint: #1f1936;
  --G: #7fb0e6; --G-tint: #0f2033;
  --R: #c9a97e; --R-tint: #2a2118;
  --U: #a19a92; --U-tint: #24211d;
  --N: #4a453f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.16em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--A); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; margin: 0; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin: 0 0 0.6em; font-variation-settings: "opsz" 96; }
h3 { font-size: 1.28rem; margin: 0 0 0.4em; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }
.wrap.wide { width: min(var(--wide), calc(100% - 2.5rem)); }
.kicker { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); font-weight: 600; margin: 0 0 0.9em; }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 0.9rem; color: var(--fg-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
strong { font-weight: 600; }
em { font-style: italic; }

/* ---------- bara de sus */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.4rem;
  color: var(--sed-ink);
  font-size: 0.88rem;
}
.topbar a { text-decoration: none; opacity: 0.85; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar .lang { display: flex; gap: 0.6rem; align-items: center; }
.topbar .lang a[aria-current] { font-weight: 700; opacity: 1; border-bottom: 1px solid currentColor; }

/* ---------- eroul: harta */
.hero {
  position: relative;
  background: var(--sed);
  color: var(--sed-ink);
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .title {
  position: relative; z-index: 2;
  padding: clamp(5rem, 12vh, 8rem) 1.4rem 1rem;
  max-width: 44rem;
  pointer-events: none;
}
.hero .title > * { pointer-events: auto; }
.hero h1 {
  font-size: clamp(3.2rem, 2rem + 7vw, 7.2rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 0.35em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
}
.hero .deck {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.45rem);
  line-height: 1.4;
  max-width: 34rem;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.8);
  color: var(--sed-ink);
  margin: 0;
}
.hero .deck b { color: var(--A); font-weight: 600; }

/* consola stratigrafică (jos în erou) */
.strat-console {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding: 1rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(15, 13, 11, 0.96), rgba(15, 13, 11, 0.7) 70%, rgba(15, 13, 11, 0));
}
.timeline { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: center; }
.timeline .play {
  appearance: none; border: 1px solid rgba(239, 231, 216, 0.4); background: rgba(255, 255, 255, 0.06);
  color: var(--sed-ink); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; font-size: 1rem;
  display: grid; place-items: center;
}
.timeline .play:hover { background: rgba(255, 255, 255, 0.14); }
.timeline .track { position: relative; padding-top: 2.2rem; }
.timeline input[type="range"] {
  width: 100%; margin: 0; accent-color: var(--A); height: 30px; cursor: pointer;
}
.timeline .ticks { position: absolute; left: 0; right: 0; top: 0; height: 2rem; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sed-soft); }
.timeline .ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; cursor: pointer; }
.timeline .ticks span[data-row="2"] { top: 0.95rem; }
.timeline .ticks span::after { content: ""; position: absolute; left: 50%; top: 1.05rem; width: 1px; height: 0.95rem; background: rgba(239, 231, 216, 0.35); }
.timeline .ticks span[data-row="2"]::after { height: 0.35rem; }
.timeline .ticks span:hover { color: var(--sed-ink); }
.year-out { font-family: var(--serif); font-size: 1.5rem; font-variation-settings: "opsz" 72; min-width: 4.6ch; text-align: right; }
.strat-counts { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.82rem; align-items: baseline; }
.strat-counts .c { display: inline-flex; align-items: baseline; gap: 0.4rem; color: var(--sed-soft); transition: opacity 0.3s; }
.strat-counts .c[data-off="1"] { opacity: 0.35; }
.strat-counts .c i { width: 10px; height: 10px; border-radius: 50%; background: var(--sw); display: inline-block; transform: translateY(1px); }
.strat-counts .c b { color: var(--sed-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.strat-status { font-size: 0.88rem; color: var(--sed-ink); min-height: 1.4em; }
.strat-status em { font-style: normal; color: var(--A); }
@media (min-width: 760px) {
  .strat-console { grid-template-columns: 1.1fr 1fr; align-items: end; padding-inline: 2rem; }
  .strat-console .right { display: grid; gap: 0.5rem; }
  .hero .title { padding-inline: 2rem; }
  .topbar { padding-inline: 2rem; }
}
.scroll-hint { position: absolute; right: 1.4rem; bottom: 1.2rem; z-index: 4; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sed-soft); display: none; }
@media (min-width: 1100px) { .scroll-hint { display: block; } }

/* ---------- secțiuni */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; scroll-margin-top: 1rem; }
section + section { border-top: 1px solid var(--line); }
.lede { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); line-height: 1.45; color: var(--fg); }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- navigarea în pagină */
.section-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; padding-top: 1rem; padding-bottom: 0.2rem; }
.section-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 0.26em 0.75em; color: var(--fg-soft); font-size: 0.82rem; text-decoration: none; }
.section-nav a:hover { border-color: var(--line-strong); color: var(--fg); }

/* skyline-ul râurilor */
.skyline-wrap { position: relative; }
.skyline { position: relative; margin: 1.6rem 0 0.4rem; overflow-x: auto; padding-top: 6px; }
.sky-tip[data-below="1"] { transform: translate(-50%, 0); }
.ten-more { appearance: none; font: inherit; font-size: 0.9rem; font-weight: 600; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4em 1.1em; cursor: pointer; color: var(--fg); margin: 0.9rem 0 0; }
.ten-more:hover { border-color: var(--fg); }
.ten td:focus { outline: none; }
.hero .fullscreen { position: absolute; right: 1.4rem; top: 3.4rem; z-index: 4; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sed-soft); text-decoration: none; border: 1px solid rgba(239,231,216,0.3); border-radius: 999px; padding: 0.35em 0.9em; }
.hero .fullscreen:hover { color: var(--sed-ink); border-color: var(--sed-ink); }
@media (min-width: 760px) { .hero .fullscreen { right: 2rem; } }
body.map-page .hero { min-height: 100svh; height: 100svh; }
body.map-page .hero .title { max-width: 30rem; padding-top: 4.2rem; }
body.map-page .hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin-bottom: 0.3em; }
body.map-page .hero .deck { font-size: 1rem; max-width: 26rem; }
body.map-page .hero .deck a { color: var(--A); }
.skyline svg { min-width: 680px; }
.skyline svg { width: 100%; height: auto; display: block; overflow: visible; }
.skyline .bar { cursor: pointer; transition: opacity 0.2s; }
.skyline[data-focus] .bar { opacity: 0.25; }
.skyline[data-focus="A"] .bar[data-s="A"], .skyline[data-focus="S"] .bar[data-s="S"], .skyline[data-focus="T"] .bar[data-s="T"],
.skyline[data-focus="H"] .bar[data-s="H"], .skyline[data-focus="U"] .bar[data-s="U"], .skyline[data-focus="R"] .bar[data-s="R"],
.skyline[data-focus="G"] .bar[data-s="G"], .skyline[data-focus="N"] .bar[data-s="N"] { opacity: 1; }
.skyline .axis { font-size: 11px; fill: var(--fg-faint); font-family: var(--sans); }
.skyline .label { font-size: 11px; fill: var(--fg-soft); font-family: var(--sans); }
.sky-tip {
  position: absolute; z-index: 3; pointer-events: none;
  background: var(--bg-raised); color: var(--fg); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow); padding: 0.6rem 0.8rem; font-size: 0.85rem; max-width: 20rem; line-height: 1.4;
  transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity 0.15s;
}
.sky-tip[data-show="1"] { opacity: 1; }
.sky-tip b { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.sky-tip .st { display: inline-block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.1em 0.5em; border-radius: 999px; color: #fff; margin-left: 0.4em; vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.82rem; color: var(--fg-soft); margin: 0.6rem 0 0; padding: 0; list-style: none; }
.legend button { appearance: none; background: none; border: 0; padding: 0.2em 0.1em; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4em; border-radius: 4px; }
.legend button i { width: 11px; height: 11px; border-radius: 3px; background: var(--sw); display: inline-block; }
.legend button[aria-pressed="true"] { color: var(--fg); font-weight: 600; }

/* tabelul celor zece */
.ten { width: 100%; border-collapse: collapse; margin: 1.4rem 0 0; font-size: 0.95rem; }
.ten th, .ten td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ten th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); font-weight: 600; }
.ten td.r { font-family: var(--serif); font-size: 1.08rem; }
.ten td.anc { font-family: var(--serif); font-style: italic; color: var(--fg-soft); }
.ten .num { text-align: right; }
.ten .pill { display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15em 0.55em; border-radius: 999px; color: #fff; background: var(--sw); white-space: nowrap; }
.ten .pill.light { color: var(--fg); }
.ten-wrap { overflow-x: auto; }

/* ---------- straturile */
.strata-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .strata-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .strata-grid { grid-template-columns: repeat(3, 1fr); } }
.stratum {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1rem; position: relative; overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.5rem;
}
.stratum::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--sw); }
.stratum .when { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); font-weight: 600; }
.stratum h3 { font-size: 1.45rem; }
.stratum .count { font-family: var(--serif); font-size: 2.2rem; line-height: 1; font-variation-settings: "opsz" 96; color: var(--sw); }
.stratum .count small { font-family: var(--sans); font-size: 0.85rem; color: var(--fg-soft); margin-left: 0.4em; }
.stratum p { font-size: 0.95rem; color: var(--fg-soft); margin: 0.2rem 0 0.6rem; }
.stratum ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.stratum li button, .chip {
  appearance: none; font: inherit; font-size: 0.85rem; cursor: pointer;
  background: var(--tint); color: var(--fg); border: 1px solid transparent; border-radius: 999px; padding: 0.22em 0.7em;
}
.stratum li button:hover, .chip:hover { border-color: var(--sw); }
.stratum .show { justify-self: start; margin-top: 0.4rem; appearance: none; font: inherit; font-size: 0.85rem; font-weight: 600; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.3em 0.9em; cursor: pointer; color: var(--fg); }
.stratum .show[aria-pressed="true"] { background: var(--sw); color: #fff; border-color: var(--sw); }
.atlas-box { position: relative; margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden; background: var(--sed); }
.atlas-box canvas { width: 100%; display: block; }
.atlas-box .cap { position: absolute; left: 1rem; bottom: 0.8rem; right: 1rem; color: var(--sed-ink); font-size: 0.85rem; text-shadow: 0 1px 10px rgba(0,0,0,0.8); }
.atlas-box .cap em { font-style: normal; color: var(--A); }

/* ---------- carota */
.core { display: grid; gap: 1.5rem; margin-top: 1.4rem; }
@media (min-width: 900px) { .core { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.core form { display: grid; gap: 0.6rem; }
.core label { font-size: 0.85rem; font-weight: 600; color: var(--fg-soft); }
.core input[type="search"] {
  width: 100%; font: inherit; font-size: 1.15rem; padding: 0.7em 0.9em; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--fg);
}
.core .suggest { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; max-height: 19rem; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raised); }
.core .suggest:empty { display: none; }
.core .suggest li button { appearance: none; width: 100%; text-align: left; font: inherit; background: none; border: 0; padding: 0.5em 0.8em; cursor: pointer; color: var(--fg); display: flex; justify-content: space-between; gap: 0.6rem; }
.core .suggest li button:hover, .core .suggest li button:focus { background: var(--bg-sunken); }
.core .suggest li button small { color: var(--fg-faint); font-size: 0.8rem; white-space: nowrap; }
.core .suggest li button i { width: 9px; height: 9px; border-radius: 50%; background: var(--sw); display: inline-block; margin-right: 0.5em; }
.core .examples { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0 0; }
.core .examples .chip { background: var(--bg-sunken); }
.core-result { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 14rem; }
.core-result .band { padding: 1.1rem 1.3rem; border-left: 8px solid var(--sw); }
.core-result .band + .band { border-top: 1px solid var(--line); }
.core-result .band .lab { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); font-weight: 600; margin-bottom: 0.2rem; }
.core-result .band.head { background: var(--tint); }
.core-result .band.head h3 { font-size: 1.9rem; font-weight: 500; margin: 0; }
.core-result .band.head .meta { color: var(--fg-soft); font-size: 0.9rem; }
.core-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.85rem; }
.copy-link { appearance: none; font: inherit; font-size: 0.82rem; font-weight: 600; background: var(--bg-raised); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.35em 0.8em; cursor: pointer; }
.copy-link:hover { border-color: var(--fg); }
.copy-status { color: var(--fg-soft); font-size: 0.8rem; overflow-wrap: anywhere; }
.clipboard-helper { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.core-result .band p { margin: 0 0 0.4em; font-size: 0.97rem; }
.core-result .band .anc { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.core-result .src { font-size: 0.82rem; color: var(--fg-soft); }
.core-result .src a { color: inherit; }
.core-result .empty { padding: 1.6rem 1.3rem; color: var(--fg-soft); }
.core-result .par { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; font-size: 0.95rem; }
.core-result .par dt { color: var(--fg-faint); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; align-self: center; }
.core-result .par dd { margin: 0; font-family: var(--serif); font-size: 1.1rem; }

/* ---------- trei nume */
.triplets { width: 100%; border-collapse: collapse; margin: 1.3rem 0 0.4rem; font-size: 0.95rem; }
.triplets th, .triplets td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.triplets th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); font-weight: 600; }
.triplets td:first-child { font-family: var(--serif); font-size: 1.08rem; }
.triplets td .g { color: var(--fg-soft); font-size: 0.82rem; display: block; }
.triplets-wrap { overflow-x: auto; }
.stat-row { display: grid; gap: 1rem; margin: 1.4rem 0 0; }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat b { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; display: block; line-height: 1.05; font-variation-settings: "opsz" 96; color: var(--sw, var(--fg)); }
.stat > span { font-size: 0.88rem; color: var(--fg-soft); }

/* ---------- județe */
.counties { display: grid; gap: 1rem; margin-top: 1.4rem; }
@media (min-width: 760px) { .counties { grid-template-columns: repeat(3, 1fr); } }
.county-col { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.county-col h3 { font-size: 1.05rem; color: var(--sw); }
.county-col ol { margin: 0.4rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.county-col li { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: center; }
.county-col li .bar { height: 6px; border-radius: 3px; background: var(--sw); grid-column: 1 / -1; opacity: 0.8; }
.county-col li b { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- metodă și surse */
.method p, .sources p { color: var(--fg-soft); font-size: 0.97rem; }
.sources ol { padding-left: 1.2rem; color: var(--fg-soft); font-size: 0.92rem; }
.sources li { margin-bottom: 0.4rem; }
.limits { border-left: 4px solid var(--A); padding: 0.2rem 0 0.2rem 1rem; margin: 1.4rem 0; }
.limits p { margin-bottom: 0.6em; }

footer.wrap { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--fg-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer a.back-home { text-decoration: none; }

.noscript-note { background: var(--A-tint); border: 1px solid var(--A); padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.95rem; margin: 1rem 0; }
.fallback-note { display: none; }
body[data-failed="1"] .fallback-note { display: block; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* eroul pe telefon: titlul sus, harta la mijloc, consola jos */
@media (max-width: 759px) {
  .hero { grid-template-rows: auto auto auto; min-height: 100svh; align-content: space-between; }
  .hero canvas { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1.42; min-height: 0; }
  .timeline .ticks span[data-mobile-hide] { display: none; }
  .hero .title { padding-bottom: 0; padding-top: 4.2rem; order: -1; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .hero .deck { font-size: 1rem; }
  .hero .title .kicker { font-size: 0.68rem; }
  .strat-console { background: var(--sed); }
}
