/* cel-mai-lung-rau-romania v1 */
:root {
  --bg: #0b1526;
  --bg-soft: #0e1b32;
  --card: #111f38;
  --ink: #ece5d3;
  --muted: #a89f88;
  --line: #2a3a55;
  --line-soft: #1d2a43;
  --accent: #4fd6c4;
  --accent-soft: rgba(79, 214, 196, .12);
  --accent-ink: #06231f;
  --halo: #0b1526;
  --shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 12px 32px -18px rgba(0, 0, 0, .7);
  color-scheme: dark light;
}
[data-theme="light"] {
  --bg: #f5efe3;
  --bg-soft: #eee6d3;
  --card: #faf6ec;
  --ink: #1a1712;
  --muted: #6d6350;
  --line: #d3c8ad;
  --line-soft: #e3d9c2;
  --accent: #0b6e64;
  --accent-soft: rgba(11, 110, 100, .09);
  --accent-ink: #effffc;
  --halo: #f5efe3;
  --shadow: 0 1px 0 rgba(26, 23, 18, .06), 0 14px 34px -20px rgba(26, 23, 18, .35);
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500 850; font-display: swap;
  src: url("fonts/fraunces-normal-latin.woff2?v=48282a415e") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2019, U+201C-201D;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500 850; font-display: swap;
  src: url("fonts/fraunces-normal-latin-ext.woff2?v=f120089b94") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 500 850; font-display: swap;
  src: url("fonts/fraunces-italic-latin.woff2?v=4af9c759c8") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2019, U+201C-201D;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 500 850; font-display: swap;
  src: url("fonts/fraunces-italic-latin-ext.woff2?v=1e0d114a72") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/source-serif-4-normal-latin.woff2?v=2a24bad466") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2019, U+201C-201D;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/source-serif-4-normal-latin-ext.woff2?v=a0cd390d01") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("fonts/source-serif-4-italic-latin.woff2?v=011e0ca2bd") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2019, U+201C-201D;
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("fonts/source-serif-4-italic-latin-ext.woff2?v=513549ab98") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Atkinson"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/AtkinsonHyperlegibleNext.woff2?v=abde1ad5cf") format("woff2");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif; font-size: 1.075rem; line-height: 1.62;
}
main { display: block; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
section, aside.block { scroll-margin-top: 4.2rem; }
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 40, "WONK" 1;
  letter-spacing: -.015em; line-height: 1.08; font-weight: 650;
}
a { color: var(--accent); }
a.anchor { color: inherit; text-decoration: none; }
a.anchor:hover { text-decoration: underline; text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: .75rem; top: -3rem; z-index: 60; background: var(--accent);
  color: var(--accent-ink); font-family: "Atkinson", system-ui, sans-serif; font-size: .9rem;
  padding: .4rem .8rem; border-radius: .4rem; text-decoration: none; transition: top .15s;
}
.skip:focus { top: .6rem; }
/* topbar: one line, sideways scroll */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .9rem;
  height: 3.2rem; padding: 0 1rem; background: var(--bg); border-bottom: 1px solid var(--line-soft);
  font-family: "Atkinson", system-ui, sans-serif; font-size: .92rem; white-space: nowrap;
}
.topbar .home { color: var(--ink); text-decoration: none; font-weight: 700; flex: none; }
.topnav { display: flex; gap: 1rem; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { color: var(--muted); text-decoration: none; flex: none; }
.topnav a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.topbar .spacer { flex: 1; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: .18rem .8rem;
  color: var(--ink); text-decoration: none; flex: none;
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; flex: none; padding: 0;
}
.icon-btn svg { display: block; }
.icon-btn svg[hidden] { display: none; }
/* hero */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem; align-items: center; padding: 3rem 0 1rem; }
.kicker {
  font-family: "Atkinson", system-ui, sans-serif; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .8rem;
}
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); max-width: 24ch; margin: 0 0 1rem; }
.deck { font-size: 1.2rem; line-height: 1.55; max-width: 62ch; margin: 0 0 1rem; }
.byline { font-family: "Atkinson", system-ui, sans-serif; font-size: .9rem; color: var(--muted); margin: 0; }
.heromap { margin: 0; }
.heromap .map { width: 100%; height: auto; display: block; }
.herocap { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
/* winners */
.block { margin: 3.2rem 0 0; }
.block > h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 1rem; max-width: 30ch; }
.lede { max-width: 68ch; margin: 0 0 1.2rem; }
.wins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.win {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: .9rem;
  padding: 1.2rem 1.2rem 1.1rem; margin: 0; box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.wkicker {
  font-family: "Atkinson", system-ui, sans-serif; font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem;
}
.win h3 { font-size: 1.6rem; margin: 0; }
.wnum {
  font-family: "Fraunces", Georgia, serif; font-size: 2.4rem; font-weight: 750;
  font-variant-numeric: tabular-nums; color: var(--accent); margin: .3rem 0 .5rem; line-height: 1;
}
.wnum span { font-size: 1rem; font-family: "Atkinson", system-ui, sans-serif; font-weight: 400; color: var(--muted); }
.wtext { margin: 0; font-size: 1rem; }
/* ranking */
.sort {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem;
  font-family: "Atkinson", system-ui, sans-serif; font-size: .92rem; color: var(--muted);
  position: sticky; top: 3.2rem; background: var(--bg); padding: .5rem 0; z-index: 5;
}
.sort button {
  font: inherit; border: 1px solid var(--line); background: transparent; color: var(--ink);
  border-radius: 999px; padding: .25rem .9rem; cursor: pointer;
}
.sort button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.rows { display: grid; gap: .7rem; }
.rrow {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: start;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: .8rem;
  padding: .9rem 1rem; box-shadow: var(--shadow);
}
.rpos {
  font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 700;
  color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3;
}
.rmain h3 { font-size: 1.25rem; margin: 0; font-weight: 650; }
.rstatus {
  font-family: "Atkinson", system-ui, sans-serif; font-size: .72rem; font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: .05rem .55rem;
  vertical-align: .2em; margin-left: .5rem; white-space: nowrap;
}
.rmouth { margin: .15rem 0 .2rem; font-size: .98rem; color: var(--muted); }
.rnums {
  margin: 0 0 .55rem; font-family: "Atkinson", system-ui, sans-serif; font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
.n-tot { color: var(--muted); }
.n-inro { color: var(--accent); font-weight: 700; }
.bars { display: grid; gap: .3rem; }
.bar { height: 1.1rem; border-radius: .3rem; min-width: .8rem; }
.bar.tot { border: 1px dashed var(--muted); }
.bar.inro { background: var(--accent); }
/* map */
.mapfig { margin: 0; background: var(--card); border: 1px solid var(--line-soft); border-radius: .9rem; padding: 1rem; box-shadow: var(--shadow); }
.map { width: 100%; height: auto; display: block; }
.land { fill: var(--bg-soft); stroke: var(--line); stroke-width: 1.5; }
.rv { fill: none; stroke: var(--muted); stroke-linecap: round; opacity: .85; }
.rv.dan { stroke: var(--accent); opacity: 1; }
.rlab {
  font-family: "Atkinson", system-ui, sans-serif; font-size: 11px; fill: var(--ink);
  paint-order: stroke; stroke: var(--halo); stroke-width: 3px;
}
.sea-dot { fill: var(--accent); }
.mapfig figcaption { font-size: .92rem; color: var(--muted); margin-top: .6rem; }
/* explainer + box */
#rau-fluviu p, #metoda p { max-width: 68ch; }
.box {
  background: var(--accent-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: .8rem; padding: 1.3rem 1.4rem;
}
.box p { max-width: 70ch; margin: 0 0 .8rem; }
.box p:last-child { margin-bottom: 0; }
/* faq */
.faqs { display: grid; gap: .6rem; }
.faqs details { background: var(--card); border: 1px solid var(--line-soft); border-radius: .7rem; padding: .85rem 1.1rem; }
.faqs summary { font-family: "Fraunces", Georgia, serif; font-size: 1.12rem; font-weight: 650; cursor: pointer; }
.faqs summary::marker { color: var(--accent); }
.faqs details p { margin: .6rem 0 0; max-width: 70ch; }
/* sources */
.srcs { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; max-width: 76ch; }
.srcs li { padding-left: 1.2rem; position: relative; }
.srcs li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.srcs a { overflow-wrap: anywhere; }
/* share */
.share-row { display: flex; align-items: center; gap: .55rem; margin-top: 3rem; }
.share-label { font-family: "Atkinson", system-ui, sans-serif; font-size: .9rem; color: var(--muted); margin-right: .3rem; }
.share-row a, .share-row button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line-soft); background: transparent; color: var(--ink);
  cursor: pointer; padding: 0;
}
.share-row a:hover, .share-row button:hover { border-color: var(--accent); color: var(--accent); }
.copy-status { font-family: "Atkinson", system-ui, sans-serif; font-size: .85rem; color: var(--muted); }
@media (pointer: coarse) { .share-row a, .share-row button { width: 2.75rem; height: 2.75rem; } }
/* footer */
footer { border-top: 1px solid var(--line-soft); margin-top: 3rem; padding: 1.4rem 1.25rem 3rem; text-align: center; }
footer p { font-family: "Atkinson", system-ui, sans-serif; font-size: .88rem; color: var(--muted); margin: 0 0 .4rem; }
/* rail */
.rail { position: fixed; right: 1rem; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: .55rem; z-index: 40; }
@media (min-width: 80rem) { .rail { display: flex; } }
.rail a { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex-direction: row-reverse; }
.rail span {
  font-family: "Atkinson", system-ui, sans-serif; font-size: .78rem; color: var(--muted);
  opacity: 0; transition: opacity .15s; white-space: nowrap;
}
.rail a:hover span, .rail a:focus-visible span, .rail a[aria-current="true"] span { opacity: 1; }
.rail i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line); display: block; }
.rail a[aria-current="true"] i { background: var(--accent); }
/* to-top */
.to-top {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40;
  min-width: 2.75rem; min-height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-family: "Atkinson", system-ui, sans-serif; font-size: .85rem; cursor: pointer;
  box-shadow: var(--shadow);
}
.to-top[hidden] { display: none; }
/* responsive */
@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .heromap { order: 2; }
  .wins { grid-template-columns: 1fr; }
}
@media (max-width: 26rem) {
  body { font-size: 1rem; }
  .rrow { grid-template-columns: 1.8rem 1fr; padding: .75rem; }
  .rlab.min { display: none; }
}
/* resilience */
html:not(.js) .needs-js { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
