/* supergraf: tot curriculumul pe un canvas, cu meniul de vizualizare și panoul elementului ales */
:root {
  --sg-dark: 0;
  --sg-bg0: #fdfefe; --sg-bg1: #e6eef2; --sg-grid: #cfdae0; --sg-label: #18252e; --sg-halo: #ffffff; --sg-strip: rgba(255, 255, 255, .9);
  /* disciplinele, în ordinea ariilor: limbă (calde), matematică și științe (reci), socio-umanistică */
  --sg-d0: #c2410c; --sg-d1: #a16207; --sg-d2: #db2777; --sg-d3: #006184; --sg-d4: #2563eb; --sg-d5: #6d28d9;
  --sg-d6: #15803d; --sg-d7: #0d9488; --sg-d8: #9f1239; --sg-d9: #65a30d; --sg-d10: #475569; --sg-d11: #0891b2;
  --sg-fir: #014761; --sg-nec: #c026d3; --sg-leg: #d99a00; --sg-ed: #2a78d6;
  --sg-t-clasa: #18252e; --sg-t-cs: #b86e00; --sg-t-fin: #db2777; --sg-t-ui: #006184; --sg-t-uc: #2a78d6; --sg-t-ri: #15803d; --sg-t-ucont: #8f9aa1;
  --sg-s-fara: #a7b4bc; --sg-s-auto: #4f6170;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sg-dark: 1;
    --sg-bg0: #0f2735; --sg-bg1: #03090d; --sg-grid: #1c3646; --sg-label: #e2ebf0; --sg-halo: #04202c; --sg-strip: rgba(6, 20, 28, .86);
    --sg-d0: #fb923c; --sg-d1: #facc15; --sg-d2: #f472b6; --sg-d3: #38bdf8; --sg-d4: #60a5fa; --sg-d5: #a78bfa;
    --sg-d6: #4ade80; --sg-d7: #2dd4bf; --sg-d8: #fb7185; --sg-d9: #a3e635; --sg-d10: #94a3b8; --sg-d11: #22d3ee;
    --sg-fir: #7dd3fc; --sg-nec: #e879f9; --sg-leg: #ffc23d; --sg-ed: #60a5fa;
    --sg-t-clasa: #e2ebf0; --sg-t-cs: #ffc23d; --sg-t-fin: #f472b6; --sg-t-ui: #5bbbe0; --sg-t-uc: #60a5fa; --sg-t-ri: #4ade80; --sg-t-ucont: #9ab0bd;
    --sg-s-fara: #5d7380; --sg-s-auto: #a7b7c3;
  }
}
:root[data-theme="dark"] {
  --sg-dark: 1;
  --sg-bg0: #0f2735; --sg-bg1: #03090d; --sg-grid: #1c3646; --sg-label: #e2ebf0; --sg-halo: #04202c; --sg-strip: rgba(6, 20, 28, .86);
  --sg-d0: #fb923c; --sg-d1: #facc15; --sg-d2: #f472b6; --sg-d3: #38bdf8; --sg-d4: #60a5fa; --sg-d5: #a78bfa;
  --sg-d6: #4ade80; --sg-d7: #2dd4bf; --sg-d8: #fb7185; --sg-d9: #a3e635; --sg-d10: #94a3b8; --sg-d11: #22d3ee;
  --sg-fir: #7dd3fc; --sg-nec: #e879f9; --sg-leg: #ffc23d; --sg-ed: #60a5fa;
  --sg-t-clasa: #e2ebf0; --sg-t-cs: #ffc23d; --sg-t-fin: #f472b6; --sg-t-ui: #5bbbe0; --sg-t-uc: #60a5fa; --sg-t-ri: #4ade80; --sg-t-ucont: #9ab0bd;
  --sg-s-fara: #5d7380; --sg-s-auto: #a7b7c3;
}

/* ── pagina ocupă tot ecranul de sub antet */
body.sg-on .frame { max-width: none; padding: 0; display: block; }
body.sg-on .rail, body.sg-on .rail-bar, body.sg-on .rail-fundal, body.sg-on .foot-site { display: none !important; }
body.sg-on main { display: block; }
body.sg-on main > * { animation: none; }
.sg-boot { min-height: 50vh; display: grid; place-items: center; }

.sg { height: var(--sg-h, calc(100vh - 66px)); display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--bg); min-width: 0; }
.sg-top {
  display: flex; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-2) var(--s-4); flex-wrap: wrap;
  background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 6;
}
.sg-acasa { display: none; }
.sg-title { display: grid; min-width: 0; }
.sg-title h1 { font-size: 1.2rem; line-height: 1.2; }
.sg-title p { font-variant-numeric: tabular-nums; }
.sg-search { position: relative; flex: 1 1 240px; max-width: 520px; min-width: 0; }
.sg-q { position: relative; display: block; }
.sg-q svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.sg-q input { width: 100%; font: inherit; font-size: var(--t-s); padding: .5rem .75rem .5rem 2.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-height: 40px; }
.sg-q input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.sg-res {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none;
  max-height: min(60vh, 520px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
}
.sg-res li { display: grid; gap: 2px; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; min-width: 0; }
.sg-res li[aria-selected="true"], .sg-res li[data-i]:hover { background: var(--accent-soft); }
.sg-res li.sg-res-more { cursor: default; background: none; }
.sg-it-h { display: flex; flex-wrap: wrap; gap: 4px var(--s-2); align-items: center; min-width: 0; }
.sg-it-t { font-size: var(--t-s); line-height: 1.4; overflow-wrap: anywhere; color: var(--ink); }
.sg-p-d { color: var(--c, var(--muted)); font-weight: 600; }
.sg-lay { flex: none; }
.sg-menu-btn { flex: none; }
.sg-menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── corpul: meniu | scenă | panou */
.sg-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 0; position: relative; }
.sg-menu {
  width: 300px; min-height: 0; overflow: auto; overscroll-behavior: contain; display: none;
  background: var(--surface); border-right: 1px solid var(--line); padding: var(--s-2) var(--s-4) var(--s-6);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sg.meniu-deschis .sg-menu { display: block; }
.sg-menu-head { display: none; }
.sg-sec { border: 0; margin: 0; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.sg-sec:last-child { border-bottom: 0; }
.sg-h { font-family: var(--f-body); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 0; margin-bottom: 2px; }
.sg-presets { display: grid; gap: 6px; }
.sg-preset {
  font: inherit; text-align: left; cursor: pointer; display: grid; gap: 1px; padding: .5rem .7rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.sg-preset b { font-size: var(--t-s); font-weight: 600; }
.sg-preset span { font-size: var(--t-xs); color: var(--muted); line-height: 1.35; }
.sg-preset:hover { border-color: var(--accent); }
.sg-preset[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--gold); background: var(--accent-soft); }
.sg-ier { display: grid; gap: 2px; margin: -2px 0 4px 12px; }
.sg-ier[hidden] { display: none; }
.sg-ier select { font: inherit; font-size: var(--t-s); min-height: 40px; padding: .4rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }
.sg-seg { max-width: 100%; }
.sg-seg button { padding: .3rem .65rem; }
.sg-chk { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; gap: 6px; font-size: var(--t-s); line-height: 1.35; cursor: pointer; padding: 2px 0; }
.sg-chk:not(:has(i)) { grid-template-columns: auto minmax(0, 1fr); }
.sg-chk input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--accent); }
.sg-chk small { display: block; font-size: var(--t-xs); color: var(--muted); }
.sg-chk input:disabled + span { color: var(--muted); }
.sg-n { font-weight: 500; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.sg-sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-top: 4px; background: var(--muted); }
.sg-sw.t-clasa { background: var(--sg-t-clasa); } .sg-sw.t-cs { background: var(--sg-t-cs); } .sg-sw.t-fin { background: var(--sg-t-fin); }
.sg-sw.t-ui { background: var(--sg-t-ui); } .sg-sw.t-uc { background: var(--sg-t-uc); } .sg-sw.t-ri { background: var(--sg-t-ri); } .sg-sw.t-ucont { background: var(--sg-t-ucont); }
.sg-sw-l { width: 16px; height: 3px; border-radius: 2px; display: inline-block; margin-top: 8px; background: var(--muted); }
.sg-sw-l.f1 { background: var(--sg-fir); } .sg-sw-l.f2 { background: var(--sg-nec); } .sg-sw-l.f3 { background: var(--sg-leg); } .sg-sw-l.f4 { background: var(--sg-ed); }
.sg-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sg-mini {
  font: inherit; font-size: var(--t-xs); padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); cursor: pointer; min-height: 26px;
}
.sg-mini:hover { border-color: var(--accent); }
.sg-arie { display: grid; gap: 2px; padding-top: 4px; }
.sg-arie[open] { padding-bottom: 6px; }
.sg-arie-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--muted); font-weight: 600; cursor: pointer; list-style: none; padding: 6px 2px; min-height: 32px; border-radius: 6px; }
.sg-arie-h::-webkit-details-marker { display: none; }
.sg-arie-h::before { content: "›"; display: inline-block; width: 1em; transition: transform .12s; }
.sg-arie[open] > .sg-arie-h::before { transform: rotate(90deg); }
.sg-arie-h span { flex: 1 1 auto; }
.sg-arie-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.sg-drow { display: flex; align-items: center; gap: 6px; }
.sg-drow .sg-chk { flex: 1 1 auto; min-width: 0; }
.sg-drow .sg-mini { opacity: .0; transition: opacity .12s; }
.sg-drow:hover .sg-mini, .sg-drow .sg-mini:focus-visible { opacity: 1; }
.sg-cls { flex-wrap: nowrap; }
.sg-cls label.f { flex: 1 1 0; min-width: 0; font-size: var(--t-xs); }
.sg-cls select { padding: .35rem .5rem; font-size: var(--t-s); }
.sg-nota { border-left: 3px solid var(--gold); padding-left: var(--s-2); line-height: 1.45; }

/* ── scena */
.sg-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--sg-bg1); }
/* coloane fixe: cu meniul închis, scena nu alunecă în coloana lui (lată de 0) */
.sg-menu { grid-column: 1; grid-row: 1; }
.sg-stage { grid-column: 2; grid-row: 1; }
.sg-panel { grid-column: 3; grid-row: 1; }
.sg-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.sg-stage canvas.trage { cursor: grabbing; }
.sg-stage canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.sg-help { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sg-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; gap: 4px; z-index: 3; }
.sg-zoom button {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.sg-zoom button:hover { border-color: var(--accent); color: var(--accent); }
.sg-zoom svg { width: 18px; height: 18px; }
/* săgețile care mută imaginea fără tragere (WCAG 2.5.7), deasupra butoanelor de apropiere */
.sg-pan {
  --sg-zb: 38px; position: absolute; right: 12px; bottom: calc(12px + 3 * var(--sg-zb) + 2 * 4px + 8px); z-index: 3;
  display: grid; grid-template-columns: repeat(3, 28px); grid-template-rows: repeat(3, 28px); gap: 2px; grid-template-areas: ". s ." "l . r" ". j .";
}
.sg-pan button {
  display: grid; place-items: center; padding: 0; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.sg-pan button:hover { border-color: var(--accent); color: var(--accent); }
.sg-pan svg { width: 16px; height: 16px; }
.sg-pan .sg-pan-sus { grid-area: s; }
.sg-pan .sg-pan-st { grid-area: l; } .sg-pan .sg-pan-st svg { transform: rotate(-90deg); }
.sg-pan .sg-pan-dr { grid-area: r; } .sg-pan .sg-pan-dr svg { transform: rotate(90deg); }
.sg-pan .sg-pan-jos { grid-area: j; } .sg-pan .sg-pan-jos svg { transform: rotate(180deg); }
.sg-legend { position: absolute; left: 12px; bottom: 12px; z-index: 3; max-width: min(400px, calc(100% - 124px)); }
.sg-legend details {
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); font-size: var(--t-xs); backdrop-filter: blur(6px);
}
.sg-legend summary { cursor: pointer; padding: .35rem .7rem; font-weight: 600; }
.sg-leg-in { display: grid; gap: 5px; padding: 0 .7rem .55rem; max-height: 34vh; overflow: auto; line-height: 1.35; }
.sg-leg-sub { color: var(--muted); font-weight: 600; }
.sg-leg-g { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.sg-leg-g span { display: inline-flex; align-items: center; gap: 5px; }
.sg-leg-g i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sg-leg-g i.lin { width: 16px; height: 3px; border-radius: 2px; }
.sg-hint {
  position: absolute; top: 42px; right: 12px; z-index: 3; margin: 0; max-width: calc(100% - 24px); pointer-events: none;
  padding: .3rem .7rem; border-radius: 999px; font-size: var(--t-xs); color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: opacity .4s ease;
}
.sg-hint.gata { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sg-hint { transition: none; } }
.sg-wait { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); z-index: 4; padding: .35rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: var(--t-xs); }

/* ── panoul elementului ales */
.sg-panel {
  width: 380px; min-height: 0; overflow: auto; overscroll-behavior: contain; background: var(--surface);
  border-left: 1px solid var(--line); padding: var(--s-3) var(--s-4) var(--s-6); display: grid; gap: var(--s-2); align-content: start;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sg-p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); }
.sg-p-t { font-family: var(--f-body); font-size: var(--t-l); display: flex; flex-wrap: wrap; gap: 4px var(--s-2); align-items: baseline; }
.sg-p-t .sg-p-d { font-size: var(--t-s); }
.sg-p-text { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; }
.sg-p-links { gap: var(--s-3); }
.sg-p-links a { display: inline-flex; align-items: center; min-height: 24px; }
.sg-p-hops { gap: var(--s-2); }
.sg-close { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; margin: -4px -8px 0 0; }
.sg-close:hover { background: var(--surface-2); }
.sg-close svg { width: 18px; height: 18px; }
.sg-p-rel { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.sg-g { display: grid; gap: 4px; }
.sg-g.ascuns { opacity: .6; }
.sg-g h3 { font-family: var(--f-body); font-size: var(--t-s); font-weight: 600; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s-2); align-items: start; }
.sg-g h3 .sg-sw-l { margin-top: 9px; }
.sg-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sg-it {
  font: inherit; width: 100%; text-align: left; display: grid; gap: 2px; padding: .4rem .55rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0;
}
.sg-it:hover { border-color: var(--accent); }
.sg-it:disabled { cursor: default; opacity: .7; }
.sg-dv { color: var(--warn); font-weight: 600; }
.sg-chg { font-size: var(--t-xs); padding: .05rem .4rem; border-radius: 999px; }

/* ── ecrane înguste: meniul și panoul devin foi care urcă de jos */
/* ecranul „hartă” (implicit pe ecran lat): scena pe toată lățimea, meniul și panoul plutesc deasupra ei */
@media (min-width: 900px) {
  .sg:not(.sg-coloane) .sg-body { grid-template-columns: minmax(0, 1fr); }
  .sg:not(.sg-coloane) .sg-stage { grid-column: 1; }
  .sg:not(.sg-coloane) .sg-menu, .sg:not(.sg-coloane) .sg-panel {
    position: absolute; top: 12px; z-index: 6; max-height: calc(100% - 24px);
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  }
  .sg:not(.sg-coloane) .sg-menu { left: 12px; bottom: 12px; width: 300px; }
  .sg:not(.sg-coloane) .sg-panel { right: 12px; width: 380px; }
  .sg:not(.sg-coloane) .sg-menu-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-1) 0; }
  .sg:not(.sg-coloane).meniu-deschis .sg-legend { left: 328px; max-width: min(400px, calc(100% - 420px)); }
  .sg:not(.sg-coloane).cu-panou :is(.sg-zoom, .sg-pan) { right: 408px; }
  /* lista nu intră sub ferestre: stă între meniu și panou */
  .sg:not(.sg-coloane).meniu-deschis .sg-lista { left: 324px; }
  .sg:not(.sg-coloane).cu-panou .sg-lista { right: 404px; }
  .sg:not(.sg-coloane).cu-panou .sg-hint { right: 408px; max-width: calc(100% - 420px); }
}
@media (max-width: 899.98px) {
  .sg-top { padding: 6px var(--s-3); gap: 6px var(--s-2); }
  .sg-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sg-search { order: 3; flex-basis: 100%; max-width: none; }
  .sg-lay { order: 1; flex-wrap: nowrap; }
  .sg-lay button { padding: .3rem .55rem; font-size: var(--t-xs); }
  .sg-menu-btn { order: 2; margin-left: auto; min-height: 34px; padding: .3rem .7rem; }
  .sg-body { grid-template-columns: minmax(0, 1fr); }
  .sg-stage { grid-column: 1; }
  .sg-menu, .sg-panel {
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; width: auto; max-height: 76vh; border: 0; border-top: 3px solid var(--gold);
    border-radius: 14px 14px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--s-5));
  }
  .sg-panel { max-height: 56vh; }
  .sg-menu-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: calc(-1 * var(--s-2)); background: var(--surface); padding: var(--s-2) 0; z-index: 1; }
  .sg-menu { scroll-padding-top: 3.75rem; } /* sub capul lipicios al foii (WCAG 2.4.11) */
  .sg-drow .sg-mini { opacity: 1; }
  .sg-legend { bottom: 10px; left: 10px; max-width: calc(100% - 118px); }
  .sg-zoom { right: 10px; bottom: 10px; }
  .sg-zoom button { width: 40px; height: 40px; }
  .sg-pan { --sg-zb: 40px; right: 10px; bottom: calc(10px + 3 * var(--sg-zb) + 2 * 4px + 8px); }
  /* panoul elementului ales acoperă partea de jos a scenei: butoanele și legenda de sub el nu se arată
     și nu primesc focus până se închide panoul (WCAG 2.4.11) */
  .sg.cu-panou :is(.sg-zoom, .sg-pan, .sg-legend) { display: none; }
  .sg-chk { padding: 4px 0; }
}
@media (max-width: 420px) {
  .sg-menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sg-menu-btn { padding: .3rem .55rem; }
}
@media (prefers-reduced-motion: reduce) { .sg-drow .sg-mini { transition: none; } }

/* ── telefon ținut culcat (ecran scund): antetul site-ului se ascunde cât timp e deschis supergraful,
   bara de unelte stă pe un singur rând, iar busola din stânga duce la pagina de start.
   Clasa sg-on dispare când se pleacă de pe pagină, deci antetul revine singur. */
@media (max-height: 520px) and (orientation: landscape) {
  body.sg-on .top { display: none; }
  .sg-acasa { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 999px; color: var(--ink); }
  .sg-acasa svg { width: 26px; height: 26px; }
  .sg-acasa:hover { background: var(--surface-2); }
  .sg-top { padding: 4px var(--s-3); gap: 6px var(--s-2); flex-wrap: nowrap; }
  .sg-acasa { order: 0; }
  .sg-lay { order: 1; }
  .sg-search { order: 2; flex: 1 1 160px; max-width: none; }
  .sg-q input { min-height: 34px; padding-top: .35rem; padding-bottom: .35rem; }
  .sg-menu-btn { order: 3; margin-left: 0; }
  .sg-hint { top: 40px; }
  .sg-menu, .sg-panel { max-height: 86vh; }
  .sg-legend .sg-leg-in { max-height: 52vh; }
}

/* „Vezi ca listă”: vederea curentă ca tabel, peste scenă (docs/accesibilitate.md) */
.sg-lista-btn { flex: none; }
.sg-lista-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sg-lista {
  position: absolute; inset: 0; z-index: 5; overflow: auto; overscroll-behavior: contain; display: grid; gap: var(--s-3); align-content: start;
  background: var(--surface); padding: var(--s-4); color: var(--ink);
}
.sg-lista:focus { outline: none; }
.sg-lista-h { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; justify-content: space-between; }
.sg-lista-h h2 { font-size: var(--t-l); }
.sg-lista .v-lista > summary { display: none; }
.sg-lista > * { min-width: 0; }
