/* Busola Curriculară
   Layout: an atlas. A slim header with the compass mark and search, then one
   readable column; on wide screens a side rail lists disciplines and editions.
   Codes (CS 1, UC 1.2, RÎ) are always set in mono, as they are in the documents. */
:root {
  --bg: #f2f5f7;
  --surface: #ffffff;
  --surface-2: #eaf0f3;
  --ink: #18252e;
  --muted: #56666f;
  --line: #d5dee3;
  --accent: #13759a;
  --accent-strong: #006184;
  --accent-ink: #ffffff;
  --accent-soft: #e0eef4;
  --bar: #006184;
  --bar-2: #014761;
  --bar-ink: #ffffff;
  --gold: #ffb400;
  --needle: #b86e00;
  --ed19: #8a5a00;
  --ed19-soft: #fdf0d2;
  --ed26: #006184;
  --ed26-soft: #e0eef4;
  --ok: #2c7a3a;
  --ok-soft: #e1f2e3;
  --warn: #9a6300;
  --warn-soft: #fbefd6;
  --auto: #4f6170;
  --auto-soft: #e7ecf0;
  /* vizualizări: categoriile de schimbare și cerneala graficelor */
  --v-grid: #e3e9ed;
  --v-axis: #c2ccd2;
  --v-pastrat: #8f9aa1;
  --v-reformulat: #2a78d6;
  --v-restructurat: #4a3aa7;
  --v-mutat: #eb6834;
  --v-nou: #1baf7a;
  --v-eliminat: #e34948;
  --v-istorie: #8a5a00;
  --v-informatica: #13759a;
  --shadow: 0 1px 2px rgba(1, 71, 97, .06), 0 4px 16px rgba(1, 71, 97, .06);

  --f-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem;
  --r: 10px;
  --t-xs: .78rem; --t-s: .88rem; --t-m: 1rem; --t-l: 1.18rem; --t-xl: 1.5rem; --t-2xl: 2.1rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1820; --surface: #102330; --surface-2: #163040; --ink: #e2ebf0; --muted: #9ab0bd;
    --line: #24404f; --accent: #5bbbe0; --accent-strong: #5bbbe0; --accent-ink: #04202c; --accent-soft: #123a4b;
    --bar: #0a3446; --bar-2: #062635; --bar-ink: #ffffff; --gold: #ffc23d;
    --needle: #ffc23d; --ed19: #f2c25c; --ed19-soft: #3a2c0c; --ed26: #5bbbe0; --ed26-soft: #123a4b;
    --ok: #78c487; --ok-soft: #1b3321; --warn: #e2b057; --warn-soft: #3a2d12; --auto: #a7b7c3; --auto-soft: #23313c;
    --v-grid: #1c3646; --v-axis: #2f4d5e; --v-pastrat: #7d8c95; --v-reformulat: #3987e5; --v-restructurat: #9085e9;
    --v-mutat: #d95926; --v-nou: #199e70; --v-eliminat: #e66767; --v-istorie: #f2c25c; --v-informatica: #5bbbe0;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1820; --surface: #102330; --surface-2: #163040; --ink: #e2ebf0; --muted: #9ab0bd;
  --line: #24404f; --accent: #5bbbe0; --accent-strong: #5bbbe0; --accent-ink: #04202c; --accent-soft: #123a4b;
  --bar: #0a3446; --bar-2: #062635; --bar-ink: #ffffff; --gold: #ffc23d;
  --needle: #ffc23d; --ed19: #f2c25c; --ed19-soft: #3a2c0c; --ed26: #5bbbe0; --ed26-soft: #123a4b;
  --ok: #78c487; --ok-soft: #1b3321; --warn: #e2b057; --warn-soft: #3a2d12; --auto: #a7b7c3; --auto-soft: #23313c;
  --v-grid: #1c3646; --v-axis: #2f4d5e; --v-pastrat: #7d8c95; --v-reformulat: #3987e5; --v-restructurat: #9085e9;
  --v-mutat: #d95926; --v-nou: #199e70; --v-eliminat: #e66767; --v-istorie: #f2c25c; --v-informatica: #5bbbe0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-m)/1.55 var(--f-body);
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; line-height: 1.2; margin: 0; font-weight: 600; }
h1 { font-size: var(--t-2xl); letter-spacing: -.01em; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-l); }
p { margin: 0; }
code, .mono { font-family: var(--f-mono); font-size: .92em; }
[hidden] { display: none !important; }

/* ── Header: banda MEC, albastru-petrol cu accent auriu */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: linear-gradient(to bottom, var(--bar) 0%, var(--bar-2) 100%);
  color: var(--bar-ink); border-bottom: 3px solid var(--gold);
}
.top-in {
  max-width: 1240px; margin: 0 auto; padding: var(--s-3) var(--s-4);
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: var(--s-2); color: var(--bar-ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.005em; }
.brand small { display: block; color: rgba(255,255,255,.78); font-size: var(--t-xs); line-height: 1.1; }
.search { flex: 1 1 180px; min-width: 0; position: relative; }
.search input {
  width: 100%; font: inherit; padding: .6rem .8rem .6rem 2.3rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: var(--surface); color: var(--ink);
}
.search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: rgba(255,255,255,.88); padding: .4rem .7rem; border-radius: 6px; font-size: var(--t-s); font-weight: 500;
}
.nav a:hover { color: var(--gold); background: rgba(0,0,0,.18); }
.nav a[aria-current="page"] { color: var(--gold); background: rgba(0,0,0,.22); box-shadow: inset 0 -2px 0 var(--gold); }
.theme-btn { border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--bar-ink); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; }
.theme-btn svg { width: 18px; height: 18px; }
.top a:focus-visible, .top button:focus-visible { outline-color: var(--gold); }

/* ── Frame */
.frame { max-width: 1240px; margin: 0 auto; padding-inline: var(--s-4); padding-block: var(--s-5) var(--s-7); display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
@media (min-width: 1000px) { .frame { grid-template-columns: 240px minmax(0, 1fr); } }
.rail { display: none; }
@media (min-width: 1000px) {
  .rail { display: block; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
}
.rail h4 { margin: var(--s-4) 0 var(--s-2); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rail h4:first-child { margin-top: 0; }
.rail a { display: flex; justify-content: space-between; gap: var(--s-2); padding: .35rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: var(--t-s); }
.rail a:hover { background: var(--surface-2); }
.rail a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rail .classes { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px .6rem var(--s-2); }
.rail .classes a { padding: .15rem .45rem; font-family: var(--f-mono); font-size: var(--t-xs); border: 1px solid var(--line); }
main { min-width: 0; display: grid; gap: var(--s-6); align-content: start; }

/* ── Shared pieces */
.eyebrow { font-size: var(--t-xs); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lead { font-size: var(--t-l); color: var(--muted); max-width: 66ch; }
.prose { max-width: 70ch; display: grid; gap: var(--s-3); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-s); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: .5; }
.stack { display: grid; gap: var(--s-4); }
.stack-s { display: grid; gap: var(--s-2); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-4); min-width: 0; }
.panel.pad-l { padding: var(--s-5); }
.muted { color: var(--muted); }
.small { font-size: var(--t-s); }
.xs { font-size: var(--t-xs); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 0; }

.btn {
  font: inherit; font-weight: 500; font-size: var(--t-s); display: inline-flex; align-items: center; gap: .4rem;
  border-radius: 999px; padding: .5rem .9rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none; min-height: 40px;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn svg { width: 16px; height: 16px; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); flex-wrap: wrap; }
.seg a, .seg button { font: inherit; font-size: var(--t-s); border: 0; background: none; color: var(--muted); padding: .35rem .8rem; border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 500; }
.seg [aria-current="page"], .seg [aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Codes and chips */
.code {
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 600; letter-spacing: .01em;
  display: inline-flex; align-items: center; padding: .1rem .45rem; border-radius: 5px;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; text-decoration: none;
}
a.code:hover { border-color: var(--accent); color: var(--accent); }
.code.cs { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.code.dom { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ed { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 600; padding: .1rem .45rem; border-radius: 5px; white-space: nowrap; }
.ed.e2019 { background: var(--ed19-soft); color: var(--ed19); }
.ed.e2026p { background: var(--ed26-soft); color: var(--ed26); }

.stare { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--t-xs); font-weight: 600; padding: .12rem .5rem; border-radius: 999px; white-space: nowrap; }
.stare::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stare.extras-automat { background: var(--auto-soft); color: var(--auto); }
.stare.de-verificat { background: var(--warn-soft); color: var(--warn); }
.stare.verificat-expert { background: var(--ok-soft); color: var(--ok); }
.tag { font-size: var(--t-xs); padding: .12rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.new { background: color-mix(in srgb, var(--needle) 14%, transparent); color: var(--needle); font-weight: 600; }

/* ── Home */
.hero { display: grid; gap: var(--s-4); padding-block: var(--s-2) var(--s-2); }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); max-width: 22ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.disc-cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.disc-card { display: grid; gap: var(--s-3); }
.disc-card h3 { font-size: var(--t-xl); }
.ed-rows { display: grid; gap: var(--s-2); }
.ed-row { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: var(--s-3); border-radius: 8px; background: var(--surface-2); text-decoration: none; color: var(--ink); }
.ed-row:hover { outline: 2px solid var(--accent); }
.ed-row .nums { display: flex; gap: var(--s-3); font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.ed-row .nums b { color: var(--ink); font-size: var(--t-s); }
.uses { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.use h3 { font-size: var(--t-m); font-family: var(--f-body); font-weight: 600; margin-bottom: var(--s-2); }
.use p { color: var(--muted); font-size: var(--t-s); }
.use .who { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: var(--s-1); }

/* Verification bar */
.vbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.vbar i { display: block; height: 100%; }
.vbar .a { background: var(--auto); }
.vbar .d { background: var(--warn); }
.vbar .v { background: var(--ok); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Discipline / class */
.class-grid { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.class-tile { display: grid; gap: 2px; padding: var(--s-3); border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.class-tile:hover { border-color: var(--accent); }
.class-tile b { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.class-tile span { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-list { display: grid; gap: var(--s-2); counter-reset: none; }
.cs-item { display: grid; grid-template-columns: auto minmax(0,1fr); gap: var(--s-3); align-items: start; padding: var(--s-3); border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.cs-item .num { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--accent); line-height: 1; min-width: 1.6ch; text-align: center; }
.cs-item p { font-size: var(--t-m); }
.cs-item .meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); align-items: center; }

.unit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.unit > summary { list-style: none; cursor: pointer; padding: var(--s-4); display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: var(--s-3); align-items: start; }
.unit > summary::-webkit-details-marker { display: none; }
.unit > summary .n { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); padding-top: .3rem; }
.unit > summary h3 { font-size: var(--t-l); }
.unit > summary .hrs { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: .3rem; }
.unit > summary .sub { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-2); }
.unit[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.unit-body { padding: var(--s-4); display: grid; gap: var(--s-5); }
.unit-cols { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 820px) { .unit-cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.blk { display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.blk > h4 { margin: 0; font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.el { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-3); padding: var(--s-2) 0; border-top: 1px dashed var(--line); align-items: start; }
.el:first-of-type { border-top: 0; }
.el .txt { min-width: 0; }
.el .txt p { font-size: var(--t-m); }
.el .foot { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); align-items: center; }
.el .nota { font-size: var(--t-xs); color: var(--warn); }
ul.plain { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--s-1); }
ul.plain li::marker { color: var(--muted); }
.content-unit { padding: var(--s-2) 0; border-top: 1px dashed var(--line); }
.content-unit:first-of-type { border-top: 0; }
.content-unit b { font-weight: 600; }
.terms { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.terms span { font-size: var(--t-xs); padding: .15rem .5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.links-out { display: grid; gap: var(--s-2); }
.link-out { display: grid; gap: 2px; padding: var(--s-2) var(--s-3); border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 6px 6px 0; }
.link-out b { font-size: var(--t-s); }
.link-out span { font-size: var(--t-s); color: var(--muted); }

/* Element detail */
.el-head { display: grid; gap: var(--s-3); }
.el-head .big { font-family: var(--f-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.35; font-weight: 500; max-width: 48ch; }
.anatomy { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.anatomy div { padding: var(--s-3); border-radius: 8px; background: var(--surface-2); min-width: 0; }
.anatomy dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.anatomy dd { margin: 2px 0 0; overflow-wrap: anywhere; }
pre.json { margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: var(--s-3); font-family: var(--f-mono); font-size: var(--t-xs); line-height: 1.5; overflow-x: auto; max-height: 420px; white-space: pre; }

/* Progression */
.ladder { display: grid; gap: 0; position: relative; }
.rung { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-3); position: relative; padding-bottom: var(--s-4); }
.rung::before { content: ""; position: absolute; left: 31px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.rung:last-child::before { display: none; }
.rung .cl { width: 64px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--f-mono); font-weight: 700; font-size: var(--t-s); position: relative; z-index: 1; }
.rung .items { display: grid; gap: var(--s-2); min-width: 0; }
.rung .item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: var(--s-3); display: grid; gap: var(--s-1); min-width: 0; overflow-wrap: anywhere; }
.rung .item .ui { font-size: var(--t-xs); color: var(--muted); }

/* Comparison */
.cmp-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.cmp { display: grid; gap: var(--s-3); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-3); align-items: stretch; }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } .pair .arrow { justify-self: start; transform: rotate(90deg); } .cmp-head { display: none; } }
.side { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: var(--s-3); display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.side.e2019 { border-top: 3px solid var(--ed19); }
.side.e2026p { border-top: 3px solid var(--ed26); }
.side.empty { border-style: dashed; background: transparent; color: var(--muted); font-size: var(--t-s); place-content: center; text-align: center; }
.arrow { display: grid; place-items: center; gap: 4px; align-content: center; }
.arrow .chg { font-size: var(--t-xs); font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.chg { --c: var(--v-pastrat); background: color-mix(in srgb, var(--c) 15%, var(--surface)) !important; color: var(--ink) !important; box-shadow: inset 3px 0 0 var(--c); }
.chg.identic { --c: var(--v-pastrat); }
.chg.reformulat, .chg.extins, .chg.restrans { --c: var(--v-reformulat); }
.chg.divizat, .chg.comasat { --c: var(--v-restructurat); }
.chg.mutat-clasa, .chg.mutat-disciplina { --c: var(--v-mutat); }
.chg.nou { --c: var(--v-nou); }
.chg.eliminat { --c: var(--v-eliminat); text-decoration: line-through; }
.summary-tiles { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.summary-tiles div { padding: var(--s-3); border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.summary-tiles b { display: block; font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-tiles span { font-size: var(--t-xs); color: var(--muted); }
.changes10 { display: grid; gap: var(--s-2); counter-reset: ch; }
.changes10 li { list-style: none; display: grid; grid-template-columns: 2rem minmax(0,1fr); gap: var(--s-2); }
.changes10 li::before { counter-increment: ch; content: counter(ch); font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: var(--needle); }
.changes10 { padding: 0; margin: 0; }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
th, td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.heat { display: inline-block; min-width: 2.2rem; text-align: center; border-radius: 5px; padding: .1rem .3rem; font-weight: 600; }

/* Search */
.results { display: grid; gap: var(--s-2); }
.result { display: grid; gap: 4px; padding: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.result:hover { border-color: var(--accent); }
.result mark { background: color-mix(in srgb, var(--needle) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.result .where { font-size: var(--t-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* Forms */
label.f { display: grid; gap: 4px; font-size: var(--t-s); font-weight: 500; }
label.f input, label.f select, label.f textarea { font: inherit; padding: .55rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
label.f textarea { min-height: 96px; resize: vertical; }
.note { padding: var(--s-3); border-radius: 8px; background: var(--warn-soft); color: var(--ink); font-size: var(--t-s); }
.note.info { background: var(--accent-soft); }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; font-size: var(--t-s); z-index: 50; box-shadow: var(--shadow); }

/* Tour (v1.5 tutorial) */
.tour-steps { display: grid; gap: var(--s-3); counter-reset: st; }
.tour-step { display: grid; grid-template-columns: 2.4rem minmax(0,1fr); gap: var(--s-3); align-items: start; }
.tour-step::before { counter-increment: st; content: counter(st); width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-family: var(--f-display); }

.foot-site { max-width: 1240px; margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-6); color: var(--muted); font-size: var(--t-xs); display: grid; gap: var(--s-2); border-top: 1px solid var(--line); }

.loading { padding: var(--s-6); text-align: center; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  main > * { animation: rise .25s ease-out both; }
  @keyframes rise { from { transform: translateY(4px); opacity: .6; } to { transform: none; opacity: 1; } }
}

/* Telefon: antetul nu rămâne lipit și meniul curge pe un singur rând, glisabil. */
@media (max-width: 720px) {
  .top { position: static; }
  .top-in { gap: var(--s-2); }
  .brand small { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .nav { order: 4; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); scrollbar-width: none; width: calc(100% + 2 * var(--s-4)); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .theme-btn { margin-left: auto; }
  h1 { font-size: 1.75rem; }
}
.panel-note { border-left: 3px solid var(--gold); background: var(--surface-2); border-radius: 0 8px 8px 0; padding: var(--s-2) var(--s-3); line-height: 1.45; }
