/* Článok „Polopravdy verzus fakty a štatistiky“ (fakty.html) */
:root {
  --navy-900: #11223d;
  --gold: #c99b45;
  --gold-soft: #f3e8ce;
  --red: #c4161c;
  --red-2: #e06a60;
  --red-3: #7d0a0e;
  --green: #4e8a3e;
  --bar: #22386a;
  --bar-soft: #a9b9d8;
  --line: rgba(17, 68, 158, 0.12);
}

html {
  scroll-padding-top: 72px;
}

.profile-nav {
  padding-inline: clamp(12px, 2.2vw, 34px);
}

/* ---------- hlavička ---------- */

.fakty-hero h1 {
  max-width: 960px;
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
}

.fakty-hero .identity,
html[lang="hu"] .fakty-hero .identity {
  white-space: normal;
  font-size: 1em;
}

.fakty-hero .launch-card__content {
  min-height: 300px;
}

.fakty-hero .hero-note {
  max-width: 52ch;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ---------- všeobecné ---------- */

.band h2 {
  max-width: 22ch;
}

.sub {
  margin: clamp(2.6rem, 5vw, 4rem) 0 1rem;
  padding-top: 1.2rem;
  border-top: 3px solid var(--yellow);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.sub--hl {
  border-top-color: var(--red);
  color: var(--red);
}

.band p.note,
.band p.sources {
  max-width: 80ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.band p.sources {
  margin-top: 1.4rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
}

.sources a {
  color: var(--blue);
}

.callout {
  margin: 2rem 0;
  padding: clamp(20px, 2.6vw, 32px) clamp(20px, 3vw, 38px);
  border-left: 6px solid var(--yellow);
  background: var(--blue);
  color: var(--white);
}

.band .callout p {
  max-width: 75ch;
  margin: 0;
  color: inherit;
  font-weight: 700;
  line-height: 1.55;
}

.band .callout p + p {
  margin-top: 0.9rem;
}

.callout--big p {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.4;
}

/* ---------- kľúčové čísla ---------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0.4rem 0 2.6rem;
  border: 1px solid rgba(17, 68, 158, 0.14);
  background: rgba(17, 68, 158, 0.14);
}

.kpis--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.kpi {
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--blue);
  color: var(--white);
}

.kpi b {
  display: block;
  color: var(--yellow);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.kpi > span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.kpi em {
  font-style: normal;
  opacity: 0.75;
}

/* ---------- zistenia ---------- */

.findings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: f;
}

.findings > li {
  position: relative;
  padding: 20px 22px 18px 64px;
  border: 1px solid var(--line);
  background: var(--white);
  counter-increment: f;
}

.findings > li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  content: counter(f);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 900;
}

.findings h3 {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}

.band .findings p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- obsah ---------- */

.toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2.4rem;
}

.toc__t {
  margin-right: 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc a {
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(17, 68, 158, 0.2);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.toc a:hover,
.toc a:focus-visible {
  border-color: var(--blue);
  background: rgba(245, 222, 64, 0.45);
}

/* ---------- tabuľky ---------- */

.tbl {
  margin: 1.2rem 0;
  overflow-x: auto;
}

.dtable {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dtable th,
.dtable td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.dtable thead th {
  background: var(--blue-deep);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: bottom;
}

.dtable tbody th {
  color: var(--blue-deep);
  font-weight: 800;
}

.dtable small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.dtable .amt {
  white-space: nowrap;
}

.dtable .muted {
  color: var(--muted);
}

.dtable tr.cat td {
  padding-top: 18px;
  background: rgba(17, 68, 158, 0.06);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dtable tr.total td,
.dtable tr.total th {
  border-bottom: 0;
  background: var(--yellow);
  color: var(--blue-deep);
  font-weight: 900;
}

.dtable tr.total + tr.total td {
  border-top: 1px solid rgba(9, 46, 117, 0.15);
}

.dtable tr.hlrow th,
.dtable tr.hlrow td {
  background: rgba(196, 22, 28, 0.07);
  color: var(--red);
}

.dtable--hl thead th {
  background: var(--red);
}

.dtable--num td,
.dtable--num thead th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dtable--num .hlcol {
  color: var(--red);
  font-weight: 800;
}

.dtable .pos {
  color: var(--green);
}

.dtable .neg {
  color: var(--red);
}

.dtable--proj {
  table-layout: fixed;
}

.dtable--proj thead th:nth-child(1) { width: 30%; }
.dtable--proj thead th:nth-child(2) { width: 15%; }
.dtable--proj thead th:nth-child(3) { width: 15%; }

.dtable--cmp th[scope="row"] {
  width: 17%;
}

.dtable--cmp td {
  width: 41%;
}

.dtable .neg-cell {
  color: var(--red);
  font-weight: 700;
}

.dtable--sale {
  table-layout: fixed;
}

.dtable--sale thead th:nth-child(1) { width: 12%; }
.dtable--sale thead th:nth-child(2) { width: 36%; }
.dtable--sale thead th:nth-child(3) { width: 26%; }
.dtable--sale thead th:nth-child(4) { width: 14%; }
.dtable--sale thead th:nth-child(5) { width: 12%; }

/* ---------- grafy ---------- */

.chart {
  margin: 2rem 0;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  background: var(--white);
}

.chart__title {
  margin-bottom: 1.2rem;
  color: var(--blue-deep);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 800;
  line-height: 1.3;
}

.band p.chart__note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.charts2,
.charts3 {
  display: grid;
  gap: 16px;
  margin: 2rem 0;
}

.charts2 {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.charts3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.charts2 .chart,
.charts3 .chart {
  margin: 0;
}

/* vodorovné stĺpce */
.hbars {
  display: grid;
  gap: 10px;
}

.hbar {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.hbar__label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.hbar__label small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.hbar__track {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hbar__fill {
  flex: none;
  width: var(--w);
  height: 30px;
  background: var(--bar-soft);
}

.hbar__val {
  flex: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.hbar--dark .hbar__fill {
  background: var(--bar);
}

.hbar--good .hbar__fill {
  background: var(--green);
}

.hbar--hl .hbar__fill {
  background: var(--red);
}

.hbar--hl .hbar__label,
.hbar--hl .hbar__val {
  color: var(--red);
  font-weight: 900;
}

.hbar--dark .hbar__label,
.hbar--bold .hbar__label {
  color: var(--blue-deep);
  font-weight: 900;
}

.charts3 .hbar {
  grid-template-columns: minmax(0, 6.6rem) minmax(0, 1fr);
}

.hbars--compact {
  gap: 3px;
}

.hbars--compact .hbar {
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
}

.hbars--compact .hbar__label {
  font-size: 0.86rem;
  font-weight: 600;
}

.hbars--compact .hbar__fill {
  height: 17px;
}

.hbars--compact .hbar__val {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.hbars--compact .hbar--hl {
  margin-block: 4px;
}

.hbars--compact .hbar--hl .hbar__fill {
  height: 24px;
}

.hbars--compact .hbar--hl .hbar__label,
.hbars--compact .hbar--hl .hbar__val {
  color: var(--red);
  font-size: 0.98rem;
}

.rk {
  display: inline-block;
  min-width: 1.8em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* rozdielové stĺpce (zmena obyvateľov) */
.dbars {
  display: grid;
  gap: 14px;
}

.dbar {
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) 6.6rem;
  align-items: center;
  gap: 12px;
}

.dbar__label {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

.dbar__track {
  display: grid;
  grid-template-columns: var(--neg) 1fr;
  align-items: center;
}

.dbar__half {
  display: flex;
  align-items: center;
  height: 34px;
}

.dbar__half--neg {
  justify-content: flex-end;
  border-right: 2px solid var(--ink);
}

.dbar__fill {
  flex: none;
  width: var(--w);
  height: 100%;
  background: var(--green);
}

.dbar--neg .dbar__fill {
  background: var(--red);
}

.dbar__val {
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.dbar__val small {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
}

.dbar--neg .dbar__val,
.dbar--neg .dbar__label {
  color: var(--red);
  font-weight: 900;
}

/* čiarový graf */
.line {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.line .grid {
  stroke: #e3e7ef;
  stroke-width: 1;
}

.line .tick {
  fill: var(--muted);
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

.line .tick--sm {
  font-size: 13px;
}

.line .ln {
  fill: none;
  stroke-width: 4;
  stroke-linejoin: round;
}

.line .lbl {
  font-size: 16px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}

.line .lbl__n {
  font-weight: 400;
}

.ln--hl { stroke: var(--red); stroke-width: 6; }
.ln--c1 { stroke: var(--bar); }
.ln--c2 { stroke: #5c7fc0; }
.ln--c3 { stroke: var(--bar-soft); }
.pt--hl, .lbl--hl { fill: var(--red); }
.pt--c1, .lbl--c1 { fill: var(--bar); }
.pt--c2, .lbl--c2 { fill: #5c7fc0; }
.pt--c3, .lbl--c3 { fill: #8399c4; }
.pt--c3 { fill: var(--bar-soft); }

/* skladané stĺpce */
.sbars {
  display: grid;
  gap: 18px;
}

.sbar {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.sbar__label {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
}

.sbar__track {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sbar__fill {
  display: flex;
  flex: none;
  width: var(--w);
  height: 46px;
}

.sbar__val {
  color: var(--bar);
  font-size: 1.15rem;
  font-weight: 900;
  white-space: nowrap;
}

.sbar--hl .sbar__val,
.sbar--hl .sbar__label {
  color: var(--red);
}

.seg {
  width: var(--s);
  height: 100%;
}

.seg--r1 { background: var(--red-2); }
.seg--r2,
.seg--red { background: var(--red); }
.seg--r3 { background: var(--red-3); }
.seg--dark { background: var(--bar); }
.seg--good { background: var(--green); }
.seg--empty { background: #e3e8f2; box-shadow: inset 0 0 0 1px rgba(34, 56, 106, 0.35); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend--top {
  margin: 0 0 -0.8rem;
}

.sw {
  flex: none;
  width: 14px;
  height: 14px;
}

/* čerpanie dotácie */
.budget {
  display: flex;
  height: 56px;
}

.budget .seg--red {
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.1rem;
}

.budget__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- časová os ---------- */

.timeline {
  position: relative;
  margin: 1.6rem 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 10.4rem;
  width: 2px;
  content: "";
  background: rgba(17, 68, 158, 0.18);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 9.6rem minmax(0, 1fr);
  gap: 2rem;
  padding: 0 0 1.5rem;
}

.timeline li::before {
  position: absolute;
  top: 6px;
  left: calc(10.4rem - 6px);
  width: 14px;
  height: 14px;
  content: "";
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--yellow);
}

.timeline time {
  color: var(--blue);
  font-weight: 900;
  text-align: right;
}

.band .timeline p {
  max-width: 75ch;
  margin: 0;
}

/* ---------- záväzky ---------- */

.hundred {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.hundred h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

/* ---------- prepínanie jazyka ---------- */

html[lang="hu"] [data-lang="sk"],
html:not([lang="hu"]) [data-lang="hu"] {
  display: none !important;
}

/* ---------- mobil ---------- */

@media (max-width: 1100px) {
  .charts3 {
    grid-template-columns: 1fr;
  }

  .charts3 .hbar {
    grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .findings,
  .charts2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tbl {
    overflow: visible;
  }

  .dtable,
  .dtable tbody,
  .dtable tr,
  .dtable th,
  .dtable td {
    display: block;
    width: auto !important;
  }

  .dtable thead {
    display: none;
  }

  .dtable {
    background: transparent;
  }

  .dtable tbody tr {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .dtable tbody th[scope="row"] {
    padding-top: 14px;
    background: rgba(17, 68, 158, 0.06);
    font-size: 1rem;
  }

  .dtable tbody td {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 10px;
    padding: 9px 14px;
    text-align: left !important;
  }

  .dtable tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .dtable tbody td:empty,
  .dtable td.total__pad {
    display: none;
  }

  .dtable tr.cat {
    margin: 18px 0 8px;
    border: 0;
    background: transparent;
  }

  .dtable tr.cat td,
  .dtable tr.total td {
    display: block;
    padding: 6px 0;
    background: transparent;
  }

  .dtable tr.cat td::before,
  .dtable tr.total td::before {
    content: none;
  }

  .dtable tr.total {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 12px 14px;
    border: 0;
    background: var(--yellow);
  }

  .dtable--hl tbody th[scope="row"] {
    color: var(--red);
  }

  .dtable .amt {
    white-space: normal;
  }

  .kpi b {
    white-space: normal;
  }

  .hbar,
  .charts3 .hbar {
    grid-template-columns: minmax(0, 6rem) minmax(0, 1fr);
    gap: 8px;
  }

  .dbar {
    grid-template-columns: minmax(0, 6rem) minmax(0, 1fr) 4.4rem;
    gap: 8px;
  }

  .hbars--compact .hbar {
    grid-template-columns: minmax(0, 8.6rem) minmax(0, 1fr);
  }

  .hbar__label,
  .dbar__label,
  .hbar__val {
    font-size: 0.82rem;
  }

  .hbars--compact .hbar__label {
    font-size: 0.76rem;
  }

  .sbar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sbar__label {
    text-align: left;
  }

  .sbar__fill {
    width: calc(var(--w) * 0.95);
  }

  .timeline::before {
    left: 6px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding-left: 2rem;
  }

  .timeline li::before {
    left: 0;
  }

  .timeline time {
    text-align: left;
  }

  .findings > li {
    padding: 18px 16px 16px 58px;
  }

  .findings > li::before {
    left: 14px;
  }
}

@media (max-width: 420px) {
  .kpis,
  .kpis--2 {
    grid-template-columns: 1fr;
  }
}

@media print {
  .profile-nav,
  .toc,
  .cta-action {
    display: none;
  }
}

@media (max-width: 700px) {
  .hbar__fill {
    width: calc(var(--w) * 0.8);
  }
}

/* ---------- leták a poznámka ---------- */

.pdf-bar {
  width: min(100%, 1120px);
  margin: clamp(28px, 4vw, 48px) auto calc(-1 * clamp(20px, 4vh, 60px));
}

.pdf-btn {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.pdf-btn:hover,
.pdf-btn:focus-visible {
  background: #a51217;
}

.disclaimer {
  padding-block: clamp(28px, 4vw, 44px);
}

.disclaimer p {
  max-width: 90ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.disclaimer strong {
  color: var(--ink);
}

.band p.lead--center {
  margin-inline: auto;
}


/* ---------- text z Wordu: doplnkové štýly ---------- */

.findings > li > p > strong:first-child {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--blue-deep);
  font-size: 1.08rem;
  line-height: 1.3;
}

.kpi__lab {
  margin: 0 0 0.5rem !important;
  color: var(--white);
  font-size: 0.78rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kpi b strong {
  font-weight: inherit;
}

.band p.legend-p {
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

.nku__head,
.timeline__head,
.listhead {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nku__head {
  grid-template-columns: auto 1fr auto;
}

.nku__head strong,
.timeline__head strong,
.listhead strong {
  font-weight: inherit;
}

.timeline__head {
  grid-template-columns: 9.6rem minmax(0, 1fr);
  gap: 2rem;
  margin-top: 1.6rem;
}

.timeline__head span:first-child {
  text-align: right;
}

.listhead {
  grid-template-columns: 54px minmax(0, 14rem) minmax(0, 1fr);
  margin-top: 1.6rem;
}

.listhead--steps {
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr);
}

.dtable th strong,
.dtable td strong {
  font-weight: 800;
}

.dtable thead th strong {
  font-weight: inherit;
}

.dtable .f-red {
  background: #fbe3e3;
}

.dtable .f-green {
  background: #e3f1da;
}

.dtable .f-yellow,
.dtable tr.total td {
  background: var(--yellow);
}

.dtable .f-cream {
  background: #fff8e1;
}

.dtable tr.cat td,
.dtable .f-blue,
.dtable .f-blue2 {
  background: rgba(17, 68, 158, 0.07);
}

.dtable .f-hl {
  background: var(--red);
  color: var(--white);
}

.c-red {
  color: var(--red);
}

.c-green {
  color: var(--green);
}

.c-muted {
  color: var(--muted);
}

.callout .c-red,
.callout .c-muted,
.callout .c-green,
.kpi .c-red,
.kpi .c-muted,
.dtable thead .c-red,
.dtable thead .c-muted {
  color: inherit;
}

.dtable--pop td,
.dtable--pop thead th:not(:first-child) {
  text-align: right;
}

@media (max-width: 700px) {
  .timeline__head {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-left: 2rem;
  }

  .timeline__head span:first-child {
    text-align: left;
  }

  .listhead,
  .listhead--steps {
    grid-template-columns: 40px 1fr 1fr;
  }

  .dtable--pop td {
    text-align: left;
  }
}
