/* ==========================================================================
   elohim.ro — v4 · portal
   Muzeu digital + platformă de research. Intrare întunecată și imersivă,
   suprafețe ivory pentru lectură, aur doar ca semnal.
   ========================================================================== */

:root {
  --ink-0:   #0e0f11;   /* cel mai adânc charcoal */
  --ink-1:   #15171a;
  --ink-2:   #1c1f23;
  --ink-3:   #262a2f;
  --ink-4:   #343940;

  --ivory:   #faf8f3;
  --ivory-2: #f3f0e8;
  --ivory-3: #e9e4d9;
  --line:    #e4ded1;

  --text:    #16160f;
  --text-2:  #4f4a41;
  --text-3:  #8a8377;

  --on-dark:   #efebe3;
  --on-dark-2: #a7a197;
  --on-dark-3: #6f6a61;

  --gold:      #a07f38;
  --gold-up:   #cfae6b;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  --shell: 78rem;
  --pad:   clamp(1.25rem, 4vw, 3.5rem);
  --sec:   clamp(4.5rem, 11vh, 8rem);

  --ease: cubic-bezier(.22,.61,.36,1);

  color-scheme: dark light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 68px;          /* locul navigației fixe */
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* paginile care încep cu un antet întunecat îl lasă să urce sub navigație */
body.has-hero { padding-top: 0; }

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.022em; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
::selection { background: color-mix(in srgb, var(--gold) 26%, transparent); }
:focus-visible { outline: 2px solid var(--gold-up); outline-offset: 3px; border-radius: 2px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.wide  { max-width: 92rem; margin-inline: auto; padding-inline: var(--pad); }

/* ---------------------------------------------------------------- reveal */

/* Ascunderea se aplică doar dacă JS-ul rulează; fără el, totul rămâne vizibil.
   Altfel o eroare de script ar face pagina goală. */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.on { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .06s } .rv-d2 { transition-delay: .12s }
.rv-d3 { transition-delay: .18s } .rv-d4 { transition-delay: .24s }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   NAVIGAȚIE
   ========================================================================== */

/* Navigația plutește peste conținut, ca să poată trece peste secțiunile
   întunecate și să-și inverseze tema. Paginile fără antet întunecat
   compensează înălțimea prin padding pe body. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: color-mix(in srgb, var(--ivory) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav--onDark {
  background: color-mix(in srgb, var(--ink-0) 70%, transparent);
  border-bottom-color: transparent;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav--onDark.is-stuck { border-bottom-color: var(--ink-3); background: color-mix(in srgb, var(--ink-0) 92%, transparent); }

.nav__in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: 1rem;
  letter-spacing: 0.3em; text-transform: uppercase; flex: none;
  color: var(--text);
}
.nav--onDark .brand { color: var(--on-dark); }
.brand::before {
  content: ""; width: 8px; height: 8px; flex: none;
  border: 1px solid var(--gold); transform: rotate(45deg);
}

.nav__links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav__links a {
  font-size: 0.8125rem; color: var(--text-2);
  padding: 0.45rem 0.7rem; border-radius: 3px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--ivory-2); }
.nav__links a.on { color: var(--text); background: var(--ivory-2); }
.nav--onDark .nav__links a { color: var(--on-dark-2); }
.nav--onDark .nav__links a:hover,
.nav--onDark .nav__links a.on { color: var(--on-dark); background: var(--ink-3); }

.nav__search {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.8rem; border-radius: 3px;
  border: 1px solid var(--line); color: var(--text-3);
  font-size: 0.8125rem; transition: border-color .2s, color .2s;
}
.nav__search:hover { border-color: var(--gold); color: var(--text); }
.nav__search svg { width: 14px; height: 14px; }
.nav--onDark .nav__search { border-color: var(--ink-4); color: var(--on-dark-2); }
.nav--onDark .nav__search:hover { border-color: var(--gold-up); color: var(--on-dark); }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; color: inherit; }
.nav__burger svg { width: 20px; height: 20px; }

/* meniul desfășurabil există doar pe ecrane mici */
.navdrop { display: none; }

/* ==========================================================================
   INTRARE — charcoal, imersiv
   ========================================================================== */

.gate {
  background: var(--ink-0);
  color: var(--on-dark);
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.gate::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(48% 38% at 50% 0%, rgba(207,174,107,.15), transparent 70%),
    radial-gradient(60% 50% at 82% 110%, rgba(239,235,227,.05), transparent 72%);
}
.gate__in {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(68px + clamp(3rem, 9vh, 6rem)) clamp(3rem, 9vh, 6rem);
}
.gate__eyebrow {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-up);
  margin: 0 0 1.75rem;
}
.gate h1 {
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  line-height: 1.04; letter-spacing: -0.035em;
  color: var(--on-dark); max-width: 17ch; margin: 0 0 1.5rem;
}
.gate h1 em { font-style: italic; color: var(--gold-up); }
.gate__lead {
  font-family: var(--serif); font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.65; color: var(--on-dark-2); max-width: 50ch; margin: 0 0 clamp(2.5rem, 6vh, 3.5rem);
}

/* --------------------------------------------------- căutare */

.find { position: relative; max-width: 42rem; }
.find__box {
  display: flex; align-items: center; gap: 0.9rem;
  border: 1px solid var(--ink-4);
  background: color-mix(in srgb, var(--ink-2) 80%, transparent);
  border-radius: 4px;
  padding: 0 1.1rem;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.find__box:focus-within {
  border-color: var(--gold-up);
  background: var(--ink-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-up) 11%, transparent);
}
.find__box svg { width: 18px; height: 18px; color: var(--on-dark-3); flex: none; transition: color .25s; }
.find__box:focus-within svg { color: var(--gold-up); }
.find input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--on-dark);
  font-family: var(--serif); font-size: clamp(1rem, 1.5vw, 1.15rem);
  padding: 1.05rem 0;
}
.find input::placeholder { color: var(--on-dark-3); }
.find__key {
  font-family: var(--mono); font-size: 0.625rem; color: var(--on-dark-3);
  border: 1px solid var(--ink-4); border-radius: 3px; padding: 0.15rem 0.35rem; flex: none;
}

.find__out {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.5rem);
  background: var(--ink-1); border: 1px solid var(--ink-3);
  border-radius: 4px; overflow: hidden; z-index: 30;
  max-height: 24rem; overflow-y: auto;
  display: none;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.7);
}
.find__out.on { display: block; }
.find__hit {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--ink-2);
  cursor: pointer;
}
.find__hit:last-child { border-bottom: 0; }
.find__hit:hover, .find__hit.sel { background: var(--ink-2); }
.find__hit b { font-family: var(--serif); font-weight: 400; font-size: 1.0625rem; color: var(--on-dark); }
.find__hit span { font-size: 0.8125rem; color: var(--on-dark-3); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find__none { padding: 1.1rem; color: var(--on-dark-3); font-size: 0.875rem; }

/* pastile sub căutare */
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.25rem; align-items: center; }
.chips > span {
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-3); margin-right: 0.35rem;
}
.chip {
  font-size: 0.8125rem; color: var(--on-dark-2);
  border: 1px solid var(--ink-4); border-radius: 100px;
  padding: 0.3rem 0.8rem;
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--gold-up); color: var(--on-dark); background: var(--ink-2); }

/* bara de jos a porții */
.gate__foot {
  border-top: 1px solid var(--ink-3);
  padding-block: 1.25rem;
  display: flex; gap: clamp(1.5rem, 5vw, 3.5rem); flex-wrap: wrap;
}
.gate__fact { display: flex; align-items: baseline; gap: 0.6rem; }
.gate__fact b {
  font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--on-dark);
  font-variant-numeric: lining-nums;
}
.gate__fact span { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); }

/* ==========================================================================
   SECȚIUNI
   ========================================================================== */

.sec { padding-block: var(--sec); }
.sec--line { border-top: 1px solid var(--line); }
.sec--dark { background: var(--ink-0); color: var(--on-dark); }
.sec--dark h2, .sec--dark h3 { color: var(--on-dark); }

.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 5vh, 3.25rem); }
.sec__head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.1; }
.sec__head p { color: var(--text-3); font-size: 0.9375rem; margin: 0.6rem 0 0; max-width: 46ch; }
.sec--dark .sec__head p { color: var(--on-dark-3); }
.sec__more {
  font-size: 0.8125rem; color: var(--text-2); white-space: nowrap;
  border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.sec__more:hover { color: var(--gold); border-color: var(--gold); }
.sec--dark .sec__more { color: var(--on-dark-2); border-color: var(--ink-4); }
.sec--dark .sec__more:hover { color: var(--gold-up); border-color: var(--gold-up); }

.eyebrow {
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 0.9rem;
}
.sec--dark .eyebrow { color: var(--gold-up); }

/* ==========================================================================
   DALE DE TEMĂ — puține, mari, cu slot de imagine
   ========================================================================== */

/* Bordurile stau pe elemente, nu pe fundalul grilei: altfel un ultim rând
   incomplet lasă la vedere un bloc colorat care arată a greșeală. */
.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}

.tile {
  background: var(--ivory);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex; flex-direction: column; min-height: 15rem;
  position: relative; overflow: hidden;
  transition: background .3s var(--ease);
}
.tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.tile:hover { background: var(--ivory-2); }
.tile:hover::after { transform: scaleX(1); }
.tile__art {
  aspect-ratio: 16 / 9; margin: -1.5rem -1.5rem 1.25rem;
  background: linear-gradient(145deg, var(--ivory-2), var(--ivory-3));
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
}
.tile__art::after {
  content: attr(data-note); font-family: var(--mono); font-size: 0.5625rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
  text-align: center; padding: 0.75rem; line-height: 1.8;
}
.tile h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.4rem; }
.tile p { font-size: 0.875rem; color: var(--text-2); margin: 0; }
.tile__foot {
  margin-top: auto; padding-top: 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.06em; color: var(--text-3);
}

/* ==========================================================================
   ZONELE PORTALULUI
   ========================================================================== */

.areas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  border-top: 1px solid var(--ink-3); border-left: 1px solid var(--ink-3);
}
.area {
  background: var(--ink-0);
  border-right: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3);
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.35rem; min-height: 9.5rem;
  transition: background .3s var(--ease);
}
.area:hover { background: var(--ink-2); }
.area__n { font-family: var(--mono); font-size: 0.625rem; color: var(--gold-up); }
.area h3 { font-size: 1.3rem; color: var(--on-dark); }
.area p { font-size: 0.8125rem; color: var(--on-dark-3); margin: 0; }
.area__count {
  margin-top: auto; font-family: var(--mono); font-size: 0.625rem;
  color: var(--on-dark-2); display: flex; align-items: center; gap: 0.4rem;
}
.area__count::before { content: ""; width: 4px; height: 4px; background: var(--gold-up); flex: none; }

/* ==========================================================================
   ENTITĂȚI — insigne, rânduri, relații
   ========================================================================== */

.kind {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--sans); font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
.kind::before { content: ""; width: 5px; height: 5px; background: var(--gold); flex: none; }
.kind--on-dark { color: var(--on-dark-3); }
.kind--on-dark::before { background: var(--gold-up); }

/* rând de entitate, folosit în liste și în relații */
.row {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 0.35rem 1.25rem; align-items: baseline;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease);
}
.row:last-child { border-bottom: 0; }
.row:hover { padding-left: 0.5rem; }
.row__n { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.35; transition: color .2s; }
.row:hover .row__n { color: var(--gold); }
.row__s { grid-column: 1; font-size: 0.8125rem; color: var(--text-3); }
.row__t { font-family: var(--mono); font-size: 0.625rem; color: var(--text-3); white-space: nowrap; }

/* panoul de relații */
.rel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.rel__grp {
  background: var(--ivory); padding: 1.35rem 1.4rem 1.5rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rel__grp > h3 {
  font-family: var(--sans); font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
}
.rel__grp > h3 b { font-family: var(--mono); font-weight: 400; color: var(--gold); }
.rel__item { display: block; padding: 0.4rem 0; border-bottom: 1px solid var(--ivory-3); }
.rel__item:last-child { border-bottom: 0; }
.rel__item b { font-family: var(--serif); font-weight: 400; font-size: 1rem; transition: color .2s; display: block; }
.rel__item span { font-size: 0.75rem; color: var(--text-3); }
.rel__item:hover b { color: var(--gold); }

/* --------------------------------------------- demonstrația de conexiuni */

.demo { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); align-items: start; }
.demo__name { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0.75rem 0 0.6rem; color: var(--on-dark); }
.demo__sub { font-family: var(--serif); font-size: 1.0625rem; color: var(--on-dark-2); margin: 0 0 1.25rem; }
.demo__count { font-size: 0.875rem; color: var(--on-dark-3); margin: 0; }
/* trei coloane fixe: cele șase direcții umplu exact două rânduri,
   fără celule goale care ar arăta a eroare */
.demo__panel {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink-3); border-left: 1px solid var(--ink-3); min-width: 0;
}
.demo__grp {
  background: var(--ink-0); padding: 1.2rem 1.25rem 1.35rem; min-width: 0;
  border-right: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3);
}
.demo__grp h3 {
  font-family: var(--sans); font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 0.85rem;
}
.demo__grp h3 b { font-family: var(--mono); font-weight: 400; color: var(--gold-up); }
.demo__grp a {
  display: block; padding: 0.3rem 0; font-family: var(--serif);
  font-size: 0.9375rem; color: var(--on-dark-2); transition: color .2s;
}
.demo__grp a:hover { color: var(--gold-up); }

/* ==========================================================================
   PAGINA DE ENTITATE
   ========================================================================== */

.ehead {
  background: var(--ivory-deep);
  color: var(--text);
  padding-block: calc(68px + clamp(2.5rem, 7vh, 5rem)) clamp(2.5rem, 6vh, 4rem);
  border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate;
}
.ehead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(52% 50% at 18% 0%, rgba(255,252,243,.95), transparent 72%);
}
.crumbs { display: flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; color: var(--text-3); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--line); }

.ehead h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.05; color: var(--text); margin-bottom: 0.75rem; max-width: 20ch; }
.ehead__sub { font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--text-2); margin: 0; max-width: 46ch; }

.ehead__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.ehead__meta i {
  font-style: normal; font-family: var(--mono); font-size: 0.6875rem;
  color: var(--text-2); border: 1px solid var(--line);
  background: var(--ivory);
  padding: 0.25rem 0.6rem; border-radius: 2px;
}
.ehead__meta i.orig { font-family: var(--serif); font-size: 1rem; color: var(--gold); }

.ebody { padding-block: clamp(2.5rem, 6vh, 4rem); }
.ebody__text { max-width: 36rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; color: var(--text-2); }
.ebody__text p:first-child { color: var(--text); }

.graphbar {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  margin-top: 2rem;
}
.graphbar__c {
  background: var(--ivory); padding: 0.85rem 1.1rem; flex: 1 1 7rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.graphbar__c b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--gold); line-height: 1; font-variant-numeric: lining-nums; }
.graphbar__c span { font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.tl { border-top: 1px solid var(--line); }
.tl__row {
  display: grid; grid-template-columns: 8rem minmax(0,1fr) auto;
  gap: 1.5rem; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.tl__row::before {
  content: ""; position: absolute; left: 7.4rem; top: 1.45rem;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.tl__when { font-family: var(--mono); font-size: 0.6875rem; color: var(--text-3); }
.tl__what { font-family: var(--serif); font-size: 1.0625rem; transition: color .2s; }
.tl__row:hover .tl__what { color: var(--gold); }
.tl__note { font-size: 0.8125rem; color: var(--text-3); text-align: right; max-width: 28ch; }

/* ==========================================================================
   SUBSOL
   ========================================================================== */

.foot {
  background: var(--ivory-deep); color: var(--text-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 8vh, 5rem) 2.5rem;
}
.foot h4 { font-family: var(--sans); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin: 0 0 0.9rem; }
.foot a { display: block; font-size: 0.875rem; color: var(--text-2); padding: 0.25rem 0; transition: color .2s; }
.foot a:hover { color: var(--gold); }
.foot__grid { display: grid; gap: 2.5rem 3rem; grid-template-columns: minmax(0,1.3fr) repeat(auto-fit, minmax(9rem, 1fr)); }
.foot__say { font-family: var(--serif); font-size: 1.15rem; color: var(--text); max-width: 26ch; margin: 1rem 0 0; }
.foot__end {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--text-3);
}

/* ==========================================================================
   FILTRE (pagina Explorează)
   ========================================================================== */

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; }
.filter {
  font-size: 0.8125rem; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 100px; padding: 0.35rem 0.85rem;
  transition: border-color .2s, color .2s, background .2s;
}
.filter:hover { border-color: var(--gold); color: var(--text); }
.filter.on { background: var(--text); border-color: var(--text); color: var(--ivory); }
.filter b { font-family: var(--mono); font-weight: 400; font-size: 0.6875rem; opacity: .6; margin-left: 0.35rem; }

.cols2 { columns: 2; column-gap: 3rem; }
.cols2 > * { break-inside: avoid; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; margin-left: auto; }
  .nav__in { gap: 0.75rem; }
  .navdrop {
    display: none; flex-direction: column;
    padding: 0.5rem var(--pad) 1.25rem;
    border-bottom: 1px solid var(--line); background: var(--ivory);
  }
  .navdrop.on { display: flex; }
  .navdrop a { padding: 0.7rem 0; border-bottom: 1px solid var(--ivory-3); font-size: 0.9375rem; color: var(--text-2); }
  .navdrop a:last-child { border-bottom: 0; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .tl__row { grid-template-columns: 1fr; gap: 0.3rem; }
  .tl__row::before { display: none; }
  .tl__note { text-align: left; max-width: none; }
  .cols2 { columns: 1; }
  .ebody__text { font-size: 1.0625rem; }
  .demo { grid-template-columns: 1fr; gap: 1.75rem; }
  .demo__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ebody > .wide { grid-template-columns: 1fr !important; gap: 1.75rem !important; }
}

@media (max-width: 560px) {
  .gate { min-height: auto; }
  /* și aici se lasă loc navigației fixe, altfel titlul urcă sub ea */
  .gate__in { padding-block: calc(68px + 2.25rem) 2.5rem; }
  .find input { font-size: 1rem; padding-block: 0.9rem; }
  .find__key { display: none; }
  .tile { min-height: 0; }
  .row { grid-template-columns: 1fr; }
  .row__t { grid-column: 1; }
  .demo__panel { grid-template-columns: 1fr; }
}
