/* elemente: listele pe tipuri de element și graful relațiilor */
:root {
  --g-ier: var(--accent); --g-fir: var(--needle); --g-ed: var(--v-reformulat);
  --g-nec: var(--v-restructurat); --g-leg: var(--ok);
}

/* ── listele */
.ex-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ex-tabs a {
  display: inline-flex; align-items: baseline; gap: .45rem; padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: var(--t-s); font-weight: 500;
}
.ex-tabs a b { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.ex-tabs a:hover { border-color: var(--accent); }
.ex-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ex-tabs a[aria-current="page"] b { color: inherit; }
.ex-desc { max-width: 75ch; }
.ex-filters { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.ex-filters .ex-q { grid-column: 1 / -1; }
.ex-sum { color: var(--muted); line-height: 1.6; }
.ex-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ex-all { min-height: 32px; padding: .2rem .7rem; margin-left: var(--s-2); }
.ex-index-w:has(.ex-index:empty) { display: none; }
.ex-index-w > summary { cursor: pointer; color: var(--accent); font-weight: 500; padding: 4px 0; min-height: 32px; }
.ex-index-w[open] > summary { margin-bottom: 6px; }
.ex-index { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-index:empty { display: none; }
.ex-index button {
  font: inherit; font-size: var(--t-xs); display: inline-flex; gap: .4rem; align-items: baseline; cursor: pointer;
  padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
}
.ex-index button b { font-variant-numeric: tabular-nums; color: var(--muted); }
.ex-index button:hover { border-color: var(--accent); }
.ex-index button:disabled { opacity: .45; cursor: default; }
.ex-list { display: grid; gap: var(--s-2); }
.ex-dh { font-size: var(--t-xl); margin-top: var(--s-4); }
.ex-dh:first-child { margin-top: 0; }
.ex-gh {
  font-family: var(--f-body); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  font-weight: 600; margin-top: var(--s-3); padding-bottom: 2px; border-bottom: 1px solid var(--line);
}
.ex-row { display: grid; gap: 6px; padding: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 6px var(--s-2); align-items: center; font-size: var(--t-xs); color: var(--muted); }
.ex-text { margin: 0; overflow-wrap: anywhere; }
.ex-text mark { background: color-mix(in srgb, var(--needle) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.ex-foot { display: flex; flex-wrap: wrap; gap: 4px var(--s-3); align-items: baseline; justify-content: space-between; }
.ex-foot .xs { min-width: 0; overflow-wrap: anywhere; }
.ex-graf { font-size: var(--t-s); font-weight: 500; white-space: nowrap; margin-left: auto; }
.ex-more { display: flex; justify-content: center; padding: var(--s-3) 0; }
.ex-more:empty { display: none; }

/* ── graful */
.gf-head .big { overflow-wrap: anywhere; }
.gf-head code.code { white-space: normal; overflow-wrap: anywhere; }
.gf-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-height: 120px; }
.gf-svg { display: block; width: 100%; height: auto; }
.gf-wait { padding: var(--s-5); text-align: center; }
.gf-svg text { font-family: var(--f-body); fill: var(--ink); }
.gf-e { stroke: var(--g-ier); stroke-width: 1.6; opacity: .75; fill: none; }
.gf-e.e2 { stroke-width: 1.1; opacity: .45; }
.gf-e.dedus { stroke-dasharray: 5 4; }
.v-legend .gf-e { stroke: var(--muted); opacity: 1; stroke-width: 2; }
.f-fir.gf-e, .gf-n.f-fir .gf-c { stroke: var(--g-fir); }
.f-ed.gf-e, .gf-n.f-ed .gf-c { stroke: var(--g-ed); }
.f-nec.gf-e, .gf-n.f-nec .gf-c { stroke: var(--g-nec); }
.f-leg.gf-e, .gf-n.f-leg .gf-c { stroke: var(--g-leg); }
.gf-n { cursor: pointer; }
.gf-n .gf-c { fill: var(--surface); stroke: var(--g-ier); stroke-width: 2; }
.gf-n.mic .gf-c { fill: var(--surface); stroke-width: 1.75; }
.gf-n .gf-hit { fill: transparent; stroke: none; }
.gf-n.plus .gf-c { stroke-dasharray: 3 3; fill: var(--surface-2); }
.gf-in { font-size: 10.5px; font-weight: 700; font-family: var(--f-mono) !important; fill: var(--ink); pointer-events: none; }
.gf-in.mic { font-size: 9.5px; font-weight: 600; }
.gf-l { font-size: 11.5px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.gf-l.mic { font-size: 10.5px; font-weight: 500; }
.gf-svg .gf-l.sub { font-size: 10.5px; font-weight: 400; fill: var(--muted); }
.gf-n:hover .gf-c, .gf-n:focus-visible .gf-c { fill: var(--accent-soft); stroke-width: 3; }
.gf-svg .gf-n:focus { outline: none; }
.gf-n.centru { cursor: default; }
.gf-n.centru .gf-c { fill: var(--accent); stroke: var(--gold); stroke-width: 3; }
.gf-n.centru .gf-in { fill: var(--accent-ink); font-size: 12px; }
.gf-n.centru .gf-in.mic { font-size: 10px; font-weight: 600; }
.gf-legend { align-items: center; }
.gf-sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; background: var(--g-ier); }
.gf-sw.f-fir { background: var(--g-fir); } .gf-sw.f-ed { background: var(--g-ed); } .gf-sw.f-nec { background: var(--g-nec); } .gf-sw.f-leg { background: var(--g-leg); }
.gf-dir { font-size: var(--t-l); margin-top: var(--s-3); }
.gf-grp h3 { display: grid; grid-template-columns: 12px minmax(0, 1fr); align-items: baseline; gap: var(--s-2); font-size: var(--t-m); font-family: var(--f-body); font-weight: 600; }
.gf-items { display: grid; gap: var(--s-2); }
.gf-items > li { list-style: none; min-width: 0; }
.gf-temei { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--t-xs); }
.gf-baza { font-size: var(--t-xs); padding: .12rem .5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.gf-baza.sigur { border-style: solid; }
.gf-baza.dedus { border-style: dashed; }
.gf-chg { font-size: var(--t-xs); font-weight: 700; padding: .12rem .5rem; border-radius: 999px; }
.gf-expl { margin: 0; overflow-wrap: anywhere; }
.gf-next summary { cursor: pointer; color: var(--accent); }
.gf-next ul { margin-top: var(--s-2); display: grid; gap: 4px; }
.gf-next li { overflow-wrap: anywhere; }
