/* Over voľby – pokojný, novinársky vzhľad.
   Farba len pre význam: červená = mohlo to zmeniť zvoleného, oranžová = vplyv nemožno vylúčiť,
   sivá = výsledok nemení, zelená = overené. Grafy: tmavomodrá = okrsok s nálezom, sivá = ostatné. */
:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --text: #1b1d1f;
  --muted: #555a60;
  --border: #dcd9d1;
  --accent: #165a8c;
  --mark: #1d3d5c;
  --mark-soft: #dde7f0;
  --bar: #c5cbd1;
  --bar-strong: #8d98a3;
  --grid: #e8e6e0;
  --crit: #a61b14;
  --crit-bg: #fbe8e6;
  --crit-line: #d33a2f;
  --warn: #8a4600;
  --warn-bg: #fdf0df;
  --warn-line: #e08a1e;
  --none: #50565c;
  --none-bg: #eceae5;
  --none-line: #a9adb2;
  --ok: #276234;
  --ok-bg: #e4f1e6;
  --banner: #3a3a3a;
  --banner-text: #fffbe6;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121416; --surface: #1a1d20; --surface-2: #24282c; --text: #e9e7e2; --muted: #a8adb3; --border: #343a40;
    --accent: #8cc3ee; --mark: #cfe4f7; --mark-soft: #22374a; --bar: #4a535c; --bar-strong: #7d8994; --grid: #2a2f34;
    --crit: #ff9b92; --crit-bg: #3b1d1a; --crit-line: #e2554a; --warn: #ffbd6b; --warn-bg: #3a2914; --warn-line: #d98a2b;
    --none: #b4b8bd; --none-bg: #2a2d31; --none-line: #6c7278; --ok: #93d6a2; --ok-bg: #1c3222;
    --banner: #e3bf5c; --banner-text: #1b1b1b; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121416; --surface: #1a1d20; --surface-2: #24282c; --text: #e9e7e2; --muted: #a8adb3; --border: #343a40;
  --accent: #8cc3ee; --mark: #cfe4f7; --mark-soft: #22374a; --bar: #4a535c; --bar-strong: #7d8994; --grid: #2a2f34;
  --crit: #ff9b92; --crit-bg: #3b1d1a; --crit-line: #e2554a; --warn: #ffbd6b; --warn-bg: #3a2914; --warn-line: #d98a2b;
  --none: #b4b8bd; --none-bg: #2a2d31; --none-line: #6c7278; --ok: #93d6a2; --ok-bg: #1c3222;
  --banner: #e3bf5c; --banner-text: #1b1b1b; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-wrap: break-word;
  font: 18px/1.62 var(--sans);
}
@media (max-width: 640px) { body { font-size: 17px; } }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { line-height: 1.22; font-weight: 700; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: .5em 0 .3em; font-weight: 700; }
h2 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2em 0 .5em; }
h3 { font-size: 1.1rem; margin: 0 0 .35em; }
p { margin: .55em 0 .9em; }
p, li, dd, figcaption { max-width: 68ch; }
code, .mono { font-family: var(--mono); font-size: .86em; }
.lead { font-size: 1.15em; color: var(--text); line-height: 1.55; }
.sub { color: var(--muted); font-size: .9rem; }
.caveat { border-left: 4px solid var(--accent); background: var(--surface-2); padding: 10px 14px; border-radius: var(--radius); margin: 8px 0 4px; }
.caveat-s { color: var(--muted); font-size: .92em; border-left: 3px solid var(--accent); padding-left: 10px; margin: 6px 0; }
.note { background: var(--surface-2); padding: 12px 16px; border-radius: var(--radius); }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 800px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1140px; }
header.site .wrap, footer.site .wrap { max-width: 1140px; }

.banner { background: var(--banner); color: var(--banner-text); text-align: center; font-weight: 700;
  letter-spacing: .03em; padding: 6px 16px; font-size: .82rem; }
.banner span { font-weight: 400; letter-spacing: 0; }

/* ---------- hlavička ---------- */
header.site { background: var(--surface); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1rem; line-height: 1.2; }
.brand .logo { font-size: 1.6rem; color: var(--mark); }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
nav.main { display: flex; flex-wrap: wrap; gap: 2px 2px; }
nav.main a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .92rem; }
nav.main a:hover { background: var(--surface-2); }
nav.main a[aria-current="page"] { background: var(--mark-soft); color: var(--text); font-weight: 650; }
nav.desk { flex: 1 1 auto; }
.navd { display: none; }
.navd > summary { list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .92rem; color: var(--text); }
.navd > summary::-webkit-details-marker { display: none; }
.navd > summary::before { content: "☰ "; }
.navd[open] nav.main { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 8px 16px 14px; z-index: 30; box-shadow: var(--shadow); }
@media (max-width: 1020px) {
  nav.desk { display: none; }
  .navd { display: block; margin-left: auto; }
  header.site .wrap { position: relative; }
}
.search { position: relative; flex: 0 1 230px; min-width: 170px; }
header .search { margin-left: auto; }
@media (max-width: 1020px) { header .search { flex: 1 1 100%; order: 3; margin-left: 0; } }
.search input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; }
.q-res { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; list-style: none; margin: 0; padding: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; }
.q-res a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.q-res a:hover, .q-res a.act { background: var(--surface-2); }
.q-res small { color: var(--muted); }
.bigsearch { max-width: 560px; margin: 26px 0 8px; }
.bigsearch label { display: block; font-weight: 700; margin-bottom: 6px; }
.bigsearch input { font-size: 1.1rem; padding: 14px 16px; border-width: 2px; border-radius: 12px; background: var(--surface); }

main { padding: 6px 0 56px; }
footer.site { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .88rem; padding: 18px 0 28px; }
footer.site p { max-width: none; }

/* ---------- úvod ---------- */
.hero h1 { max-width: 22ch; }
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 6px; }
@media (max-width: 880px) { .answers { grid-template-columns: 1fr; } }
.ans { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.ans.ok { border-top: 4px solid var(--ok); }
.ans-k { margin: 0; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: var(--muted); }
.ans-v { margin: .15em 0 .3em; font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; font-weight: 700; }
.ans-v span { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--text); margin-top: 2px; }
.ans p:last-child { margin: 0; font-size: .95rem; color: var(--muted); }
.howsteps { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .howsteps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .howsteps { grid-template-columns: 1fr; } }
.howsteps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: relative; }
.howsteps p { font-size: .93rem; color: var(--muted); margin: 0; }
.hs-ico { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--mark-soft); color: var(--mark);
  align-items: center; justify-content: center; margin-bottom: 8px; }
.ico-s { width: 24px; height: 24px; }
.hs-n { position: absolute; top: 14px; right: 16px; font-family: var(--serif); font-size: 1.5rem; color: var(--bar-strong); font-weight: 700; }
.legend2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin: 10px 0 18px; }
@media (max-width: 760px) { .legend2 { grid-template-columns: 1fr; } }
.legend2 h3 { font-size: 1rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 4px 0; font-size: .95rem; }
ul.plain.dl li { margin: 8px 0; }
.limits li { margin: .4em 0; }

/* ---------- štítky ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650;
  line-height: 1.4; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.badge .lbl { font-weight: 500; color: var(--muted); }
.dots { letter-spacing: 1px; color: var(--mark); font-size: .78em; }
.badge.dop { border-color: transparent; }
.d-meni { background: var(--crit-bg); color: var(--crit); }
.d-moze { background: var(--warn-bg); color: var(--warn); }
.d-bez { background: var(--none-bg); color: var(--none); }
.d-neurc { background: var(--surface-2); color: var(--muted); }

/* ---------- zoznam nálezov (karty) ---------- */
.fcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .fcards { grid-template-columns: 1fr; } }
.fcard { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--none-line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.fcard.hidden { display: none; }
.fcard.dop-meni, .finding.dop-meni { border-left-color: var(--crit-line); }
.fcard.dop-moze, .finding.dop-moze { border-left-color: var(--warn-line); }
.fcard h3 { font-size: 1.06rem; line-height: 1.3; }
.fcard h3 a { color: var(--text); text-decoration: none; }
.fcard h3 a:hover { text-decoration: underline; }
.fcard p { font-size: .95rem; margin: .3em 0; }
.fc-body { display: flex; gap: 14px; align-items: flex-start; }
.fc-text { flex: 1 1 auto; min-width: 0; }
.fc-mini { flex: 0 0 150px; padding-top: 4px; }
@media (max-width: 480px) { .fc-body { flex-direction: column; } .fc-mini { flex-basis: auto; width: 100%; max-width: 260px; } }
.more-l { font-weight: 650; }
.f-place { color: var(--muted); font-size: .9rem; margin: .2em 0 .6em; }
.f-place b { color: var(--text); }

/* ---------- filtre ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 14px 0; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.filters label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: 3px; flex: 1 1 160px; }
.filters label.chk { flex-direction: row; align-items: center; gap: 6px; flex: 0 0 auto; font-size: .9rem; color: var(--text); }
.filters input, .filters select { font: inherit; font-size: .92rem; padding: 6px 8px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--bg); color: var(--text); min-width: 0; width: 100%; }
.filters label.chk input { width: auto; }
.filters .count { font-size: .85rem; color: var(--muted); flex: 1 1 100%; }

/* ---------- karta nálezu ---------- */
.finding { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--none-line);
  border-radius: var(--radius); padding: 18px 22px 10px; margin: 18px 0 28px; box-shadow: var(--shadow); scroll-margin-top: 12px; }
@media (max-width: 640px) { .finding { padding: 14px 14px 8px; } }
.f-head { font-family: var(--serif); font-size: clamp(1.3rem, 3.2vw, 1.6rem); line-height: 1.25; margin: .1em 0 .2em; }
.f-head a.anchor { color: var(--text); text-decoration: none; }
.fs { margin: 18px 0 6px; }
.fs h4 { font-size: 1rem; margin: 0 0 .4em; display: flex; align-items: center; gap: 8px; }
.fs h4 .n { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--mark-soft); color: var(--mark);
  font-size: .78rem; align-items: center; justify-content: center; flex: 0 0 auto; }
a.src { font-size: .72rem; vertical-align: super; text-decoration: none; border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.cap { font-size: .9rem; color: var(--muted); margin-bottom: .3em; }
.chg { color: var(--crit); }
.delta { color: var(--muted); font-size: .85em; }
.ist-line .dots { font-size: .95em; }
ul.pro, ul.con { list-style: none; padding: 0; margin: .3em 0 .8em; }
ul.pro li, ul.con li { display: flex; gap: 10px; margin: .35em 0; }
ul.pro .ico { color: var(--ok); font-weight: 700; flex: 0 0 auto; }
ul.con .ico { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); text-align: center;
  font-size: .8rem; line-height: 20px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.alts-h { font-weight: 650; margin-bottom: .1em; }
ol.steps { padding-left: 1.3em; }
ol.steps > li { margin: .5em 0 .8em; padding-left: .2em; }
ol.todo { padding-left: 1.3em; }
.rawbox { margin: 8px 0 10px; max-width: 100%; min-width: 0; }
.rawname { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
pre.raw { font-family: var(--mono); font-size: .82rem; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; margin: 4px 0; overflow-x: auto; max-width: 100%; white-space: pre; }
pre.raw .rh { color: var(--muted); }
details.tech { margin: 16px 0 6px; border-top: 1px solid var(--border); padding-top: 8px; }
details.tech dl { font-size: .86rem; display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr); gap: 4px 14px; }
@media (max-width: 560px) { details.tech dl { grid-template-columns: minmax(0, 1fr); } details.tech dd { margin-bottom: 6px; } }
details.tech dt { color: var(--muted); }
details.tech dd { margin: 0; overflow-wrap: anywhere; }
details.tech ul { margin: 0; padding-left: 1.1em; }
details.full > summary, details.more > summary, details.faq > summary { font-weight: 650; }
details.full { margin: 10px 0; }
summary { cursor: pointer; color: var(--accent); padding: 4px 0; }
.sub-h { margin-top: 1.6em; }
ol.steps li, .fs { min-width: 0; }

/* ---------- grafy ---------- */
figure.evid { margin: 8px 0 4px; min-width: 0; }
figure.evid figcaption { font-size: .93rem; color: var(--muted); margin-top: 8px; }
figure.evid figcaption strong { color: var(--text); }
.panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; }
@media (max-width: 700px) { .panels { grid-template-columns: minmax(0, 1fr); } }
.panel { min-width: 0; }
.panel-t { font-weight: 700; font-size: .98rem; }
.panel-t span { font-weight: 400; color: var(--muted); font-size: .88em; }
.panel-s { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
svg.c { width: 100%; height: auto; display: block; font-family: var(--sans); }
svg.c text { font-size: 13px; fill: var(--muted); }
svg.c .tk { font-size: 12px; }
svg.c .vl { fill: var(--text); font-weight: 700; font-size: 13px; }
svg.c .xl.hl { fill: var(--text); font-weight: 700; }
svg.c .gr { stroke: var(--grid); stroke-width: 1; }
svg.c .ax { stroke: var(--bar-strong); stroke-width: 1; }
svg.c .b { fill: var(--bar); }
svg.c .b.hl { fill: var(--mark); }
svg.c .ghost { fill: none; stroke: var(--mark); stroke-width: 1.6; stroke-dasharray: 4 3; }
svg.c .ref { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 5 4; }
svg.c .ln { fill: none; stroke-width: 2.2; }
svg.c .ln.exp { stroke: var(--bar-strong); }
svg.c .ln.rec { stroke: var(--mark); }
svg.c .pt.exp { fill: var(--bar-strong); }
svg.c .pt.rec { fill: var(--mark); }
svg.c .sp { fill: var(--bar-strong); opacity: .55; }
svg.c .sp.hl { fill: var(--mark); opacity: 1; stroke: var(--surface); stroke-width: 2; }
svg.c .sc circle { fill: var(--bar-strong); opacity: .5; }
svg.c .sc.hl circle { fill: var(--mark); opacity: .9; }
svg.mini { max-width: 220px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 14px; height: 10px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.k-b { background: var(--bar); }
.k-hl { background: var(--mark); }
.k-gh { border: 1.6px dashed var(--mark); }
.legend .k-exp, .legend .k-rec { height: 3px; }
.k-exp { background: var(--bar-strong); }
.k-rec { background: var(--mark); }
.k-rng { background: var(--bar); }
.legend .k-dot, .legend .k-gdot { width: 10px; border-radius: 50%; }
.k-dot { background: var(--mark); }
.k-gdot { border: 1.6px dashed var(--mark); }
svg.rc { width: 150px; height: 20px; display: block; }
svg.rc .rc-ax { stroke: var(--grid); }
svg.rc .rc-rng { fill: var(--bar); }
svg.rc .rc-x { fill: var(--mark); }
svg.rc .rc-gh { fill: none; stroke: var(--mark); stroke-width: 1.5; stroke-dasharray: 3 2; }
@media (max-width: 480px) { svg.rc { width: 80px; } }
.hbars { display: grid; gap: 10px; margin: 6px 0 10px; }
.hb-lab { font-size: .9rem; }
.hb-row { display: flex; align-items: center; gap: 10px; }
.hb-track { flex: 1 1 auto; height: 22px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hb-fill { display: block; height: 100%; background: var(--bar-strong); }
.hb.oso .hb-fill { background: var(--mark); }
.hb.osk .hb-fill { background: var(--bar-strong); }
.hb.zap .hb-fill { background: var(--bar); }
.hb-row b { min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }
.hb-note { font-size: .8rem; color: var(--muted); }
.fc-mini .hbars { gap: 4px; }
.fc-mini .hb-lab { font-size: .72rem; }
.fc-mini .hb-track { height: 10px; }
.fc-mini .hb-row b { font-size: .75rem; min-width: 2.5em; }

/* ---------- tabuľky ---------- */
.tablewrap { overflow-x: auto; margin: 8px 0 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 6px 10px; color: var(--muted); font-size: .85rem; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; font-size: .8rem; color: var(--muted); }
td.n, th.n { text-align: right; white-space: nowrap; }
tr.hl td { background: var(--mark-soft); font-weight: 650; }
tr.hidden { display: none; }
.tablewrap.mini { width: fit-content; max-width: 100%; }
.tablewrap.mini table { width: auto; }
.tablewrap.ba tr.hl td { background: var(--crit-bg); }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.tile b { display: block; font-size: 1.4rem; font-family: var(--serif); }
.tile span { font-size: .82rem; color: var(--muted); }
.summary { font-weight: 600; }
.crumbs { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* ---------- vysvetlivky (tooltipy) – bez JS: hover / focus (ťuknutie) ---------- */
.term { border-bottom: 1.5px dotted var(--muted); cursor: help; position: relative; }
.term:focus { outline: none; background: var(--mark-soft); border-radius: 3px; }
.term .tip { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 6px); z-index: 25;
  width: 300px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: .86rem; line-height: 1.45; font-weight: 400; box-shadow: 0 6px 24px rgba(0,0,0,.16);
  text-align: left; white-space: normal; font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.term .tip a { display: inline-block; margin-top: 2px; }
.term:hover .tip, .term:focus .tip, .term:focus-within .tip { display: block; }
@media (max-width: 1180px) {
  .term .tip { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; transform: none; width: auto; max-width: 560px; margin: 0 auto; }
}

/* ---------- Ako to funguje ---------- */
.prose h2 { margin-top: 1.8em; }
.howcard { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 14px 0; scroll-margin-top: 12px; }
.howcard p { font-size: .97rem; margin: .3em 0 .5em; }
@media (max-width: 640px) { .howcard { grid-template-columns: minmax(0, 1fr); } .hc-ill { max-width: 280px; } }
svg.ill { width: 100%; height: auto; display: block; font-family: var(--sans); }
svg.ill text { font-size: 13px; fill: var(--text); }
svg.ill .ill-h, svg.ill .ill-s { fill: var(--muted); font-size: 11.5px; }
svg.ill .paper { fill: var(--surface); stroke: var(--border); }
svg.ill .row { fill: var(--surface-2); }
svg.ill .row.hl { fill: var(--mark-soft); }
svg.ill .num { font-weight: 700; font-variant-numeric: tabular-nums; }
svg.ill .num.hl, svg.ill .big.hl { fill: var(--mark); }
svg.ill .big { font-size: 34px; font-weight: 700; font-family: var(--serif); }
svg.ill .strike { stroke: var(--crit-line); stroke-width: 3; }
svg.ill .arr { fill: none; stroke: var(--mark); stroke-width: 1.6; }
svg.ill .arrh { fill: var(--mark); }
svg.ill .b { fill: var(--bar-strong); }
svg.ill .b2 { fill: var(--bar); }
svg.ill .hlb { fill: var(--mark); }
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 14px; margin: 8px 0; }
details.faq p { margin: .3em 0 .6em; }
dl.gloss dt { font-weight: 700; margin-top: 1em; scroll-margin-top: 12px; }
dl.gloss dt:target { background: var(--mark-soft); }
dl.gloss dd { margin: .2em 0 0; }
.verdict { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--mark); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.sources li { margin: .35em 0; overflow-wrap: anywhere; }
.links a { white-space: nowrap; }
@media print { header.site, footer.site, .filters, .bigsearch { display: none; } }
.fc-mini .mc { display: block; font-size: .7rem; color: var(--muted); line-height: 1.3; margin-top: 4px; }
@media (max-width: 520px) {
  .tablewrap.mini th, .tablewrap.mini td { padding: 6px 6px; }
  .tablewrap.mini table { font-size: .82rem; }
}

/* ---------- Moja obec ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; font-size: .88rem; }
.toc a { padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; background: var(--surface); }
.toc a:hover { background: var(--surface-2); }
.obv { border-left: 3px solid var(--border); padding: 2px 0 2px 12px; margin: 10px 0 14px; }
.obv p { margin: .2em 0; }
.obv-h { font-weight: 700; font-size: .95rem; }
.obv-n { font-size: .95rem; }
details.obvs { margin: 8px 0; }
.tiles.rep .tile small { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.alist { list-style: none; padding: 0; margin: 4px 0 10px; columns: 4 210px; column-gap: 24px; }
.alist li { break-inside: avoid; padding: 2px 0; font-size: .95rem; max-width: none; }
.alist li.hidden { display: none; }
.alist small { color: var(--muted); font-size: .78rem; }
h2.letter { font-size: 1.3rem; margin: 1.1em 0 .2em; border-bottom: 1px solid var(--border); scroll-margin-top: 12px; }
.letters { display: flex; flex-wrap: wrap; gap: 2px; margin: 10px 0; }
.letters a { min-width: 32px; text-align: center; padding: 4px 6px; border-radius: 6px; text-decoration: none; background: var(--surface); border: 1px solid var(--border); font-weight: 650; }
.fl { color: var(--warn-line); font-size: .8em; }

/* ---------- Ďalšie prehľady (úvod) ---------- */
.morecards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 10px 0; }
@media (max-width: 860px) { .morecards { grid-template-columns: minmax(0, 1fr); } }
a.mcard { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--mark);
  border-radius: var(--radius); padding: 14px 16px; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
a.mcard:hover { border-color: var(--accent); }
.mc-t { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: var(--muted); }
.mc-v { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.mc-d { font-size: .95rem; color: var(--muted); }
.mc-l { color: var(--accent); font-weight: 650; font-size: .92rem; margin-top: auto; }
.bigsearch .sub { margin: 0 0 6px; }

/* ---------- váha hlasu: pruhy s pásmom ---------- */
svg.c .band { fill: var(--mark-soft); opacity: .8; }
svg.c .mean { stroke: var(--text); stroke-width: 1.4; stroke-dasharray: 5 3; }
svg.c .b.over { fill: var(--warn-line); }
svg.c .b.under { fill: var(--mark); }
svg.c.hbb .xl { fill: var(--text); }
svg.c.hbb .vl { font-weight: 600; font-size: 12px; }
.k-over { background: var(--warn-line); }
.k-under { background: var(--mark); }

/* ---------- mapa ---------- */
svg.map { width: 100%; height: auto; display: block; max-width: 900px; }
svg.map path { stroke: var(--surface); stroke-width: 1; }
svg.map path:hover { stroke: var(--text); stroke-width: 2; }
svg.map .q0, .mq.q0 { fill: #e7edf3; background: #e7edf3; }
svg.map .q1, .mq.q1 { fill: #b9cadb; background: #b9cadb; }
svg.map .q2, .mq.q2 { fill: #7f9fbf; background: #7f9fbf; }
svg.map .q3, .mq.q3 { fill: #3f6a94; background: #3f6a94; }
svg.map .q4, .mq.q4 { fill: #1d3d5c; background: #1d3d5c; }
svg.map .qna { fill: var(--surface-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) svg.map .q0, :root:not([data-theme="light"]) .mq.q0 { fill: #23303c; background: #23303c; }
  :root:not([data-theme="light"]) svg.map .q1, :root:not([data-theme="light"]) .mq.q1 { fill: #2f4c68; background: #2f4c68; }
  :root:not([data-theme="light"]) svg.map .q2, :root:not([data-theme="light"]) .mq.q2 { fill: #4b78a3; background: #4b78a3; }
  :root:not([data-theme="light"]) svg.map .q3, :root:not([data-theme="light"]) .mq.q3 { fill: #7fa9d1; background: #7fa9d1; }
  :root:not([data-theme="light"]) svg.map .q4, :root:not([data-theme="light"]) .mq.q4 { fill: #c4dcf2; background: #c4dcf2; }
}
:root[data-theme="dark"] svg.map .q0, :root[data-theme="dark"] .mq.q0 { fill: #23303c; background: #23303c; }
:root[data-theme="dark"] svg.map .q1, :root[data-theme="dark"] .mq.q1 { fill: #2f4c68; background: #2f4c68; }
:root[data-theme="dark"] svg.map .q2, :root[data-theme="dark"] .mq.q2 { fill: #4b78a3; background: #4b78a3; }
:root[data-theme="dark"] svg.map .q3, :root[data-theme="dark"] .mq.q3 { fill: #7fa9d1; background: #7fa9d1; }
:root[data-theme="dark"] svg.map .q4, :root[data-theme="dark"] .mq.q4 { fill: #c4dcf2; background: #c4dcf2; }
.maplegend .mq { width: 18px; height: 12px; }
.tablewrap.scroll { max-height: 75vh; overflow: auto; }
.tablewrap.scroll thead th { position: sticky; top: 0; z-index: 1; }
@media print { .tablewrap.scroll { max-height: none; overflow: visible; } }
.bigsearch .search { max-width: none; min-width: 0; }
.bigsearch { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--mark); border-radius: var(--radius); padding: 14px 16px; }
.bigsearch label { font-size: 1.15rem; font-family: var(--serif); }
svg.c.hbb .vl { paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }

/* SEO doplnky: podnadpis h1, faktická veta obce, obce v okrese */
.h1-sub { font-size: .5em; font-weight: 500; color: var(--muted); white-space: nowrap; }
.facts { color: var(--muted); max-width: 70ch; }
.okres-obce { line-height: 1.9; font-size: .92rem; }

/* ---------- Volebná noc ---------- */
.livetag { margin: 6px 0 10px; }
.livetag span { display: inline-block; background: var(--banner); color: var(--banner-text); font-weight: 700; letter-spacing: .03em;
  font-size: .85rem; padding: 4px 10px; border-radius: 6px; }
.livepause { border: 2px solid var(--warn-line); background: var(--warn-bg); color: var(--text); padding: 12px 16px; border-radius: var(--radius); margin: 10px 0; }
.livepause ~ .livetiles, .livepause ~ .kcards { opacity: .75; }
.livewait { border-left: 6px solid var(--accent); }
.livetiles .tile { display: flex; flex-direction: column; gap: 2px; }
.lbar { display: inline-block; width: 100%; height: 8px; background: var(--grid); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.lbar > span { display: block; height: 100%; background: var(--mark); border-radius: 4px; }
.lbar.oso > span { background: var(--accent); }
.lbar.c { height: 5px; grid-column: 1 / -1; }
.lbar.c > span { background: var(--bar-strong); }
.kcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 18px; }
@media (max-width: 760px) { .kcards { grid-template-columns: minmax(0, 1fr); } }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.kcard h3 { margin: 0 0 4px; font-size: 1.05rem; }
.kc-p { margin: 0 0 6px; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kc-p .lbar { flex: 0 0 90px; }
ol.kc { list-style: none; margin: 0; padding: 0; }
ol.kc li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; padding: 6px 0; border-top: 1px solid var(--grid); }
ol.kc li:first-child { border-top: 0; }
ol.kc li:first-child .kc-n { font-weight: 700; }
.kc-n small { display: block; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.kc-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kc-v small { display: block; color: var(--muted); font-size: .8rem; }
.kc-d { margin: 6px 0 0; font-size: .9rem; }
svg.livechart { width: 100%; height: auto; max-width: 720px; display: block; margin: 6px 0 0; }
svg.livechart .pl { fill: none; stroke-width: 2.5; }
svg.livechart .pl.osk { stroke: var(--mark); }
svg.livechart .pl.oso { stroke: var(--accent); stroke-dasharray: 6 4; }
.legend .k-osk, .legend .k-oso { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--mark); vertical-align: middle; margin: 0 4px 0 10px; }
.legend .k-oso { border-top: 3px dashed var(--accent); }
.liveupd { min-height: 1.4em; }
section.internal { border: 2px dashed var(--crit-line); border-radius: var(--radius); padding: 6px 14px 10px; margin: 22px 0; }
section.internal h2 { color: var(--crit); }
.livelegend span { display: inline-block; white-space: nowrap; margin-right: 14px; }
.livelegend .k-osk, .livelegend .k-oso { margin-left: 0; }
@media (max-width: 640px) { svg.livechart .tk { font-size: 20px; } }
/* 10 položiek menu + vyhľadávanie na jednom riadku (desktop) */
@media (min-width: 1021px) {
  nav.desk a { padding: 6px 7px; font-size: .9rem; }
  header .search { flex-basis: 185px; min-width: 150px; }
  header.site .wrap { column-gap: 12px; }
}
