@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

:root {
  /* Editorial paleta — paper / ink / red */
  --paper: #fbf8f1;
  --paper2: #f3eee2;
  --ink: #1f1a14;
  --ink-mut: rgba(31,26,20,0.66);
  --ink-mut2: rgba(31,26,20,0.5);
  --rule: rgba(31,26,20,0.13);
  --rule2: rgba(31,26,20,0.27);
  --red: #b8361e;
  --red-soft: rgba(184,54,30,0.08);

  /* Sémantické signály — sladěné s editorial paletou */
  --good: #2f6b1f;
  --warn: #a05a08;
  --bad: #b8361e;
  --neutral: #6b6357;

  /* Aliasy pro zpětnou kompatibilitu (nepoužívat přímo v nových stylech) */
  --primary: var(--red);
  --primary-dark: var(--ink);
  --accent: var(--red);
  --bg: var(--paper);
  --card: var(--paper);
  --border: var(--rule);
  --text: var(--ink);
  --muted: var(--ink-mut);
  --modal-bg: rgba(31,26,20,0.45);

  /* Typografie */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

body {
  font-family: var(--serif);
  background: var(--paper); color: var(--ink); line-height: 1.55;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

/* =================================================================
   Editorial masthead (replaces old topbar)
   ================================================================= */
header.topbar {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 40px 8px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: none;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex: 0 0 auto;
}
.brand-logo {
  display: none;
}
.brand h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: var(--ink);
}
.brand h1 em {
  font-style: italic;
  font-weight: 400;
  font-family: var(--serif);
  color: var(--ink);
}
.brand h1 small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mut2);
  letter-spacing: 0.02em;
  margin-top: 2px;
  text-transform: none;
  opacity: 1;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}
.brand-link:hover h1 { opacity: 0.8; }

.topbar-actions { display: flex; align-items: center; gap: 14px; }
.last-updated {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  letter-spacing: 0.02em;
}
.last-updated.stale {
  background: var(--red);
  color: var(--paper);
  padding: 2px 8px;
  border-radius: 0;
  font-weight: 600;
}

/* Masthead sub-strip — date left, score right */
.masthead-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 40px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  letter-spacing: 0.02em;
  background: var(--paper);
}
.masthead-strip .masthead-date { font-weight: 500; }
.masthead-strip .masthead-score strong {
  color: var(--ink);
  font-weight: 700;
}
.modal-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: flex-end; }
.card-notice {
  background: var(--paper2); border-left: 3px solid var(--red);
  padding: 10px 14px; font-family: var(--sans); font-size: 12px;
  color: var(--ink); margin-bottom: 16px;
}
.btn-csv {
  background: var(--ink); color: var(--paper); border: none;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
}
.btn-csv:hover { background: var(--red); }
.btn-theme {
  background: transparent; color: var(--ink); border: 1px solid var(--rule2);
  padding: 6px 10px; border-radius: 999px; cursor: pointer; font-size: 14px; line-height: 1;
  font-family: var(--sans);
}
.btn-theme:hover { background: var(--paper2); }
.btn-reload {
  background: transparent; color: var(--ink); border: 1px solid var(--rule2);
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.02em;
}
.btn-reload:hover { background: var(--paper2); border-color: var(--ink); }
.btn-reload:disabled { opacity: 0.4; cursor: not-allowed; }

nav.dimnav {
  background: var(--paper); border-bottom: 1px solid var(--rule);
  padding: 0 40px; display: flex; gap: 0; overflow-x: auto;
}
nav.dimnav button {
  background: none; border: none; padding: 14px 18px;
  font-family: var(--sans); font-size: 12px; cursor: pointer; color: var(--ink-mut);
  border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500;
  letter-spacing: 0.01em;
}
nav.dimnav button:hover { color: var(--ink); }
nav.dimnav button.active {
  color: var(--red); border-bottom-color: var(--red); font-weight: 600;
}

main { padding: 28px 40px 60px; max-width: 1400px; margin: 0 auto; }


.section-title {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--ink);
}
.section-title h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.section-title .badge {
  font-family: var(--sans);
  background: transparent;
  color: var(--ink-mut2);
  font-size: 11px;
  padding: 0;
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.section-title .desc {
  font-family: var(--sans);
  color: var(--ink-mut2); font-size: 11px; margin-left: auto;
  letter-spacing: 0.02em;
}

.grid-area-desc {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mut);
  margin: -8px 0 20px;
  max-width: 760px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.indicator-card {
  background: var(--paper);
  border: none;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-radius: 0;
  padding: 18px 20px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.indicator-card:hover { background: var(--paper2); transform: none; box-shadow: none; }
.indicator-card .top {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px;
  gap: 10px;
}
.indicator-card h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.indicator-card .area-tag {
  font-family: var(--sans);
  font-size: 10px; color: var(--red); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.indicator-card .signal {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 8px;
}
.signal.good { background: var(--good); }
.signal.warn { background: var(--warn); }
.signal.bad { background: var(--bad); }
.signal.neutral { background: var(--neutral); }
.indicator-card .value-row {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px;
}
.indicator-card .big-value {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1;
}
.indicator-card .unit {
  font-family: var(--sans);
  font-size: 11px; color: var(--ink-mut2);
  text-transform: lowercase;
}
.indicator-card .compare {
  font-family: var(--sans);
  font-size: 11px; color: var(--ink-mut);
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 10px;
}
.indicator-card .compare strong { color: var(--ink); font-weight: 600; }
.indicator-card .chart-wrap { height: 60px; margin-top: 10px; }
.indicator-card .source {
  font-family: var(--sans);
  font-size: 10px; color: var(--ink-mut2);
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid var(--rule);
  letter-spacing: 0.02em;
}
.indicator-card .source a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--ink-mut2); }
.indicator-card .source a:hover { color: var(--red); border-bottom-color: var(--red); }

footer.bottom {
  background: var(--paper);
  color: var(--ink-mut);
  padding: 28px 40px;
  margin-top: 40px;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
}
footer.bottom .row {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
footer.bottom h6 {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 600;
}
footer.bottom p, footer.bottom a {
  font-size: 12px; color: var(--ink-mut); text-decoration: none; line-height: 1.7;
}
footer.bottom a { border-bottom: 1px dashed transparent; }
footer.bottom a:hover { color: var(--red); border-bottom-color: var(--red); }
footer.bottom .disclaimer {
  max-width: 1400px; margin: 24px auto 0; padding-top: 18px;
  border-top: 1px solid var(--rule); font-size: 11px; color: var(--ink-mut2);
}
.footer-privacy {
  font-size: 11px !important; color: var(--ink-mut2) !important;
  margin-top: 6px; font-style: italic;
}

.score-explain {
  font-family: var(--sans); font-size: 13px; color: var(--ink-mut);
  margin: 4px 0 0; line-height: 1.5;
}
.score-explain a { color: var(--ink-mut); border-bottom: 1px dashed var(--ink-mut2); text-decoration: none; }
.score-explain a:hover { color: var(--red); border-bottom-color: var(--red); }

.feedback-link {
  margin-left: auto; font-size: 11px; color: var(--ink-mut2);
  text-decoration: none; border-bottom: 1px dashed var(--ink-mut2);
}
.feedback-link:hover { color: var(--red); border-bottom-color: var(--red); }

.status {
  padding: 10px 14px; margin-bottom: 16px;
  font-family: var(--sans); font-size: 12px;
  border-left: 3px solid var(--ink);
  background: var(--paper2);
}
.status.error { color: var(--red); border-left-color: var(--red); }
.status.warn { color: var(--warn); border-left-color: var(--warn); }
.hidden { display: none !important; }

/* Modal pro metodické karty */
.modal-backdrop {
  position: fixed; inset: 0; background: var(--modal-bg);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal {
  background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 32px;
  max-width: 720px; width: 90%; max-height: 84vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 40px rgba(31,26,20,0.2);
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--ink-mut); line-height: 1; padding: 4px 10px;
  font-family: var(--sans);
}
.modal-close:hover { color: var(--red); }
.modal h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  color: var(--ink); margin-bottom: 6px; letter-spacing: -0.5px; line-height: 1.15;
}
.modal .sub { font-family: var(--sans); font-size: 11px; color: var(--ink-mut2); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.modal dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: 14px; font-family: var(--serif); }
.modal dt { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.modal dd { color: var(--ink); }
.modal pre { background: var(--paper2); padding: 14px; border-radius: 0; font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 11px; overflow-x: auto; margin-top: 8px; border-left: 2px solid var(--rule2); }

/* Scorecard — editorial 6-dimension index strip */
.scorecard {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-bottom: 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.sc-tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  padding: 18px 18px;
  background: transparent; border: none; box-shadow: none;
  border-right: 1px solid var(--rule);
}
.sc-tile:last-child { border-right: none; }
.sc-num {
  font-family: var(--serif);
  font-size: 38px; font-weight: 700; line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
}
.sc-lbl {
  font-family: var(--sans);
  font-size: 10px; color: var(--ink-mut2); margin-top: 8px;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.sc-total .sc-num { color: var(--ink); }
.sc-good .sc-num { color: var(--good); }
.sc-warn .sc-num { color: var(--warn); }
.sc-bad .sc-num { color: var(--red); }
.sc-neutral .sc-num { color: var(--neutral); }

/* Section actions: search, sort, csv */
.section-actions {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.search-box {
  padding: 6px 14px; border: 1px solid var(--rule2); border-radius: 999px;
  font-family: var(--sans); font-size: 12px; min-width: 220px;
  background: transparent; color: var(--ink);
}
.search-box:focus { outline: none; border-color: var(--ink); }
.search-box::placeholder { color: var(--ink-mut2); }
.sort-select {
  padding: 6px 14px; border: 1px solid var(--rule2); border-radius: 999px;
  font-family: var(--sans); font-size: 12px; background: transparent; color: var(--ink);
}
.sort-select:focus { outline: none; border-color: var(--ink); }
.btn-export {
  padding: 6px 14px; background: var(--ink); color: var(--paper);
  border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
}
.btn-export:hover { background: var(--red); }
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--ink-mut);
  font-family: var(--serif); font-size: 16px;
  background: var(--paper2); border-radius: 0; margin-top: 12px;
  border: 1px solid var(--rule);
}

/* Trend arrows on cards */
.trend {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 0;
  margin-left: auto; letter-spacing: 0.02em;
}
.trend-good { background: transparent; color: var(--good); }
.trend-bad { background: transparent; color: var(--red); }
.trend-flat { background: transparent; color: var(--ink-mut2); }
.year-badge {
  background: transparent; color: var(--ink-mut2);
  font-family: var(--sans); font-size: 10px;
  padding: 0 0 0 6px; border-left: 1px solid var(--rule2);
  border-radius: 0; margin-left: 6px;
  letter-spacing: 0.02em;
}

/* Regions section */
.regions-section { margin-top: 36px; }
.regions-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.regions-label { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--ink-mut2); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.08em; }
.regions-select {
  padding: 6px 14px; border: 1px solid var(--rule2); border-radius: 999px;
  font-family: var(--sans); font-size: 12px; background: transparent; color: var(--ink); cursor: pointer;
  min-width: 240px;
}
.regions-select:focus { outline: none; border-color: var(--ink); }
.regions-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.regions-chart-wrap { height: 420px; background: var(--paper); padding: 14px; border: 1px solid var(--rule); }
.regions-table-wrap { background: var(--paper); padding: 14px; border: 1px solid var(--rule); overflow-x: auto; }
.regions-table { width: 100%; font-family: var(--sans); font-size: 12px; border-collapse: collapse; }
.regions-table th, .regions-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.regions-table th { background: transparent; font-family: var(--sans); font-weight: 600; color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; }
.regions-table td { font-family: var(--serif); font-size: 14px; }
.regions-table .diff.pos { color: var(--good); }
.regions-table .diff.neg { color: var(--red); }

.regions-teaser {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 22px;
}
.regions-teaser-eyebrow {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mut2);
  white-space: nowrap;
}
.regions-teaser-h {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.regions-teaser-text {
  grid-column: 1 / span 2;
  grid-row: 2;
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mut);
}
.regions-teaser-cta {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 120ms ease;
}
.regions-teaser-cta:hover,
.regions-teaser-cta:focus { background: var(--red); color: var(--paper); }
.regions-teaser-arrow { margin-left: 6px; }

@media (max-width: 720px) {
  .regions-teaser { grid-template-columns: 1fr; }
  .regions-teaser-eyebrow,
  .regions-teaser-h,
  .regions-teaser-text,
  .regions-teaser-cta { grid-column: 1; grid-row: auto; }
  .regions-teaser-cta { justify-self: start; }
}

/* Finance section — kam jdou peníze (DPDR / ÚZIS NRHZS data) */
.finance-section { margin-top: 36px; }
.finance-lead {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mut);
  margin: 0 0 22px;
  max-width: 880px;
}
.finance-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.finance-chart-wrap {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 18px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.finance-chart-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.finance-chart-center-value {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.finance-chart-center-unit {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mut2);
  margin-top: 4px;
}
.finance-chart-center-year {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  margin-top: 2px;
}
.finance-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.finance-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 2px 12px;
  padding: 18px 18px 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 120ms ease, transform 120ms ease;
}
a.finance-tile { cursor: pointer; }
a.finance-tile:hover,
a.finance-tile:focus {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.finance-tile-dot {
  grid-row: 1 / span 3;
  width: 8px;
  height: 100%;
  min-height: 60px;
  margin-left: -10px;
  background: var(--ink-mut2);
}
.finance-tile-luzkova .finance-tile-dot { background: #B45F06; }
.finance-tile-ambul   .finance-tile-dot { background: #38761D; }
.finance-tile-leky    .finance-tile-dot { background: #0B5394; }
.finance-tile-other   .finance-tile-dot { background: #999; }
.finance-tile-label {
  grid-column: 2;
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mut2);
  font-weight: 600;
}
.finance-tile-value {
  grid-column: 2;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.finance-tile-abs {
  grid-column: 2;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mut);
}
.finance-tile-sub {
  grid-column: 2;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink-mut2);
  margin-top: 2px;
  line-height: 1.35;
}
.finance-cta {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.finance-cta-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mut);
  flex: 1 1 320px;
}
.finance-cta-link {
  padding: 9px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 120ms ease;
}
.finance-cta-link:hover,
.finance-cta-link:focus { background: var(--red); }
.finance-cta-link > span { margin-left: 6px; }

@media (max-width: 880px) {
  .finance-wrap { grid-template-columns: 1fr; }
  .finance-chart-wrap { height: 320px; }
  .finance-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .finance-tiles { grid-template-columns: 1fr; }
  .finance-chart-center-value { font-size: 36px; }
}

/* Modal: data source blocks + signal pill */
.modal-summary { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--paper2); border-radius: 0; margin-bottom: 20px; font-family: var(--sans); font-size: 12px; border-left: 2px solid var(--ink); }
.signal-pill { padding: 2px 10px; border-radius: 0; font-family: var(--sans); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.signal-pill.good { background: transparent; color: var(--good); border: 1px solid var(--good); }
.signal-pill.warn { background: transparent; color: var(--warn); border: 1px solid var(--warn); }
.signal-pill.bad { background: transparent; color: var(--red); border: 1px solid var(--red); }
.signal-pill.neutral { background: transparent; color: var(--ink-mut); border: 1px solid var(--rule2); }
.ds-heading { margin-top: 22px; font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mut2); font-weight: 600; }
.ds-block { margin-top: 12px; }
.ds-block h4 { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-mut2); margin-bottom: 6px; font-weight: 600; }
.ds-table { width: 100%; font-family: var(--sans); font-size: 12px; border-collapse: collapse; }
.ds-table th, .ds-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--rule); }
.ds-table th { color: var(--ink-mut2); font-weight: 500; width: 110px; }
.ds-note { font-family: var(--serif); font-size: 13px; color: var(--ink-mut); margin-top: 8px; font-style: italic; }

/* Domain filter chips (pod oblastní navigací) */
.domain-filter {
  background: var(--paper); border-bottom: 1px solid var(--rule);
  padding: 10px 40px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.domain-chip {
  background: transparent; border: 1px solid var(--rule2); border-radius: 999px;
  padding: 4px 14px; font-family: var(--sans); font-size: 12px; cursor: pointer; color: var(--ink-mut);
  white-space: nowrap; transition: all 0.12s;
}
.domain-chip:hover { border-color: var(--ink); color: var(--ink); }
.domain-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 500; }

/* Panel nejkritičtějších indikátorů */
.top-critical {
  background: var(--paper); border: 1px solid var(--rule);
  border-top: 2px solid var(--red);
  border-left: none; border-right: none;
  padding: 16px 20px; margin-bottom: 28px;
}
.top-critical-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.top-critical-list { display: flex; flex-direction: column; gap: 0; }
.top-critical-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  background: transparent; border-radius: 0; cursor: pointer;
  border-bottom: 1px solid var(--rule);
  transition: background 0.12s;
}
.top-critical-item:last-child { border-bottom: none; }
.top-critical-item:hover { background: var(--paper2); }
.top-critical-name { flex: 1; font-family: var(--serif); font-weight: 500; font-size: 15px; color: var(--ink); }
.top-critical-value { font-family: var(--serif); color: var(--red); font-weight: 700; font-size: 17px; white-space: nowrap; }
.top-critical-oecd { font-family: var(--sans); color: var(--ink-mut2); font-size: 11px; white-space: nowrap; }
.top-critical-gap { font-family: var(--sans); font-size: 10px; color: var(--red); font-weight: 600; background: transparent; padding: 0; border-radius: 0; white-space: nowrap; letter-spacing: 0.02em; }

/* Benchmark gauge (miniaturní porovnávací pruh v kartách) */
.bm-gauge { margin-bottom: 12px; }
.bm-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bm-key { font-family: var(--sans); font-size: 9px; font-weight: 600; color: var(--ink-mut2); width: 30px; flex-shrink: 0; text-align: right; text-transform: uppercase; letter-spacing: 0.06em; }
.bm-track { flex: 1; height: 4px; background: var(--paper2); border-radius: 0; overflow: hidden; border: none; }
.bm-fill { height: 100%; border-radius: 0; min-width: 2px; }
.bm-val { font-family: var(--sans); font-size: 10px; color: var(--ink); width: 44px; text-align: left; flex-shrink: 0; padding-left: 2px; }

/* Graf trendu v modálním okně */
.modal-chart-wrap { height: 200px; margin: 4px 0 20px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.indicator-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

@media (max-width: 768px) {
  header.topbar { flex-direction: column; gap: 14px; align-items: flex-start; }
  main { padding: 18px 16px 40px; }
  .scorecard { grid-template-columns: repeat(2, 1fr); }
  .section-actions { width: 100%; flex-wrap: wrap; }
  .search-box { min-width: 0; flex: 1; }
  .regions-wrap { grid-template-columns: 1fr; }
  .regions-chart-wrap { height: 360px; }
}

/* Screen-reader only utility — vizuálně skryté, ale čtečky to přečtou */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link (pro klávesnicové uživatele) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  z-index: 9999;
  font-family: var(--sans);
  font-size: 12px;
  text-decoration: none;
  border-radius: 0;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

@media print {
  /* Skryj interaktivní prvky */
  .topbar-actions,
  .audience-switch,
  .dimnav,
  .domain-filter,
  .section-actions,
  .btn-export,
  .btn-reload,
  .btn-theme,
  .regions-controls,
  .modal-backdrop,
  .skip-link { display: none !important; }

  /* Layout */
  body { background: #fff; color: #000; font-size: 11pt; }
  main { padding: 0; max-width: 100%; }
  header.topbar { border-bottom: 2px solid #000; padding: 8px 0; background: #fff; color: #000; box-shadow: none; }
  header.topbar h1 { color: #000; }
  header.topbar h1 small { color: #444; }

  /* Scorecard */
  .scorecard { display: flex; gap: 8px; flex-wrap: wrap; }
  .sc-tile { border: 1px solid #ccc; }

  /* Karta grid — 2 sloupce */
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .indicator-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  /* Skryj sparklines v tisku (Chart.js canvas se špatně tiskne) */
  .chart-wrap { display: none; }

  /* Regiony tabulka */
  .regions-chart-wrap { display: none; }
  .regions-table-wrap { width: 100%; }

  /* Footer */
  footer.bottom { border-top: 1px solid #ccc; padding-top: 8px; font-size: 9pt; }

  /* Signály v BW tisku — použij text místo barvy */
  .signal.good::after { content: " ✓"; }
  .signal.bad::after { content: " ✗"; }
  .signal.warn::after { content: " △"; }

  /* Přidej URL za linky */
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  a[href^="data/"]::after, a[href^="#"]::after { content: ""; }
}

/* =================================================================
   Module navigation — inside topbar, top-right
   ================================================================= */
.module-nav {
  display: flex;
  gap: 22px;
  background: transparent;
  border-bottom: none;
  padding: 0;
  position: static;
  align-items: center;
  font-family: var(--sans);
  flex-wrap: wrap;
}
.module-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mut);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.12s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.module-tab:hover { color: var(--ink); }
.module-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
}
@media (max-width: 720px) {
  .module-nav {
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    width: 100%;
    padding-bottom: 4px;
  }
  .module-tab {
    padding: 12px 14px;
    font-size: 13px;
    flex-shrink: 0;
  }
}

/* =================================================================
   Page intro (above grids)
   ================================================================= */
.page-intro { padding: 36px 40px 0; max-width: 900px; }
.page-intro h2 {
  font-family: var(--serif);
  font-size: 48px; font-weight: 700; color: var(--ink);
  margin-bottom: 14px; letter-spacing: -1px; line-height: 1.05;
}
.page-intro .lead {
  font-family: var(--serif);
  font-size: 18px; color: var(--ink-mut); line-height: 1.55; max-width: 720px;
}

/* Filters row */
.filters-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 40px; background: var(--paper);
  border-bottom: 1px solid var(--ink); flex-wrap: wrap;
  position: sticky; top: 35px; z-index: 40;
}
.level-nav, .cat-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.level-nav::before, .cat-nav::before {
  content: 'Pohled'; font-family: var(--sans); font-size: 11px;
  color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.1em;
  margin-right: 8px; font-weight: 600;
}
.level-nav button, .cat-nav button {
  background: transparent; border: 1px solid var(--rule2);
  padding: 5px 14px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; color: var(--ink); font-weight: 500;
  transition: all 0.12s;
}
.level-nav button:hover, .cat-nav button:hover { border-color: var(--ink); }
.level-nav button.active, .cat-nav button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* =================================================================
   Strategy / Explainer grid + cards (editorial newspaper-style)
   ================================================================= */
.strategy-grid, .explainer-grid { padding: 24px 40px 32px; }
.level-block, .cat-block { margin-bottom: 40px; }
.level-title {
  font-family: var(--sans);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mut2); margin-bottom: 14px; font-weight: 700;
  border-bottom: 1px solid var(--ink); padding-bottom: 6px;
}
.level-title .badge {
  background: transparent; color: var(--ink-mut2); padding: 0;
  border-radius: 0; font-size: 11px; margin-left: 8px; letter-spacing: 0.04em;
}

.cat-header { margin-bottom: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.cat-header h3 {
  font-family: var(--serif); font-size: 22px; margin: 0;
  font-weight: 700; letter-spacing: -0.3px; color: var(--ink);
}
.cat-desc { font-family: var(--serif); font-size: 14px; color: var(--ink-mut); display: block; margin-top: 4px; }

.strategy-cards, .explainer-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0;
  border-top: 1px solid var(--rule);
}

.strategy-card, .explainer-card {
  display: block; padding: 18px 20px; background: var(--paper);
  border: none;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-radius: 0;
  text-decoration: none; color: inherit; transition: background 0.12s;
}
.strategy-card:hover, .explainer-card:hover {
  border-color: var(--rule); background: var(--paper2);
  box-shadow: none; transform: none;
}

.strategy-card h4, .explainer-card h4 {
  font-family: var(--serif);
  font-size: 19px; color: var(--ink); margin-bottom: 6px; line-height: 1.25;
  font-weight: 600; letter-spacing: -0.3px;
}
.card-sub {
  font-family: var(--sans);
  font-size: 11px; color: var(--ink-mut2); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}
.card-tldr { font-family: var(--serif); font-size: 14px; color: var(--ink-mut); line-height: 1.55; margin: 10px 0; }
.card-meta { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.card-horizon { font-family: var(--sans); font-size: 11px; color: var(--ink-mut2); }
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 11px; color: var(--ink-mut2);
}
.card-owner { font-weight: 500; color: var(--ink); }

.status-pill {
  font-family: var(--sans);
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  padding: 2px 8px; border-radius: 0;
}
.st-active { background: transparent; color: var(--good); border: 1px solid var(--good); }
.st-proposed { background: transparent; color: var(--warn); border: 1px solid var(--warn); }
.st-revision { background: transparent; color: var(--red); border: 1px solid var(--red); }
.st-obsolete { background: transparent; color: var(--ink-mut2); border: 1px solid var(--rule2); }

.absurdity-counter {
  background: transparent; color: var(--ink-mut2); padding: 2px 8px;
  border-radius: 0; font-family: var(--sans); font-size: 10px; font-weight: 500;
  border: 1px solid var(--rule2); letter-spacing: 0.04em;
}

/* =================================================================
   Detail view (strategie + explainer)
   ================================================================= */
.detail-view { padding: 32px 40px; max-width: 880px; }
.back-link {
  display: inline-block; margin-bottom: 24px;
  font-family: var(--sans); font-size: 12px;
  color: var(--ink-mut); text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.back-link:hover { color: var(--red); border-bottom-color: var(--red); }

.detail-header { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.detail-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; font-family: var(--sans); font-size: 11px; color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.06em; }
.detail-header h2 {
  font-family: var(--serif); font-size: 44px; color: var(--ink);
  margin-bottom: 6px; font-weight: 700; letter-spacing: -1px; line-height: 1.05;
}
.detail-subtitle { font-family: var(--serif); font-size: 18px; color: var(--ink-mut); margin-top: 6px; line-height: 1.45; }

.detail-tldr {
  background: var(--paper2); border-left: 3px solid var(--ink);
  padding: 18px 22px; border-radius: 0; margin-bottom: 28px;
}
.detail-tldr p { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--ink); }
.audience-hint { font-family: var(--sans); font-size: 11px; color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; font-weight: 600; }

.detail-section { margin-bottom: 28px; }
.detail-section h3 {
  font-family: var(--sans);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--red); margin-bottom: 12px; font-weight: 600;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 3px 12px;
  background: transparent; color: var(--ink); border: 1px solid var(--rule2);
  border-radius: 999px;
  font-family: var(--sans); font-size: 11px; text-decoration: none; transition: all 0.12s;
}
.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-strategy { color: var(--ink); border-color: var(--rule2); }
.chip-explainer { color: var(--red); border-color: var(--red); }
.chip-article { color: var(--paper); background: var(--red); border-color: var(--red); }
.chip-article:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.docs-list { list-style: none; padding: 0; }
.docs-list li {
  padding: 10px 14px; border-left: 2px solid var(--rule2);
  margin-bottom: 4px; background: var(--paper2);
  font-family: var(--serif); font-size: 14px;
}
.docs-list li:hover { border-left-color: var(--ink); }
.docs-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule2); }
.docs-list a:hover { color: var(--red); border-bottom-color: var(--red); }
.docs-list .lang {
  font-family: var(--sans); font-size: 9px; background: transparent;
  padding: 1px 6px; border: 1px solid var(--rule2); border-radius: 0;
  margin-left: 8px; color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.06em;
}

.monitoring-block { background: var(--paper2); padding: 18px 22px; border-radius: 0; border-left: 2px solid var(--ink); }
.monitoring-block p { font-family: var(--serif); font-size: 14px; line-height: 1.6; color: var(--ink); }

.detail-footer {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 11px; color: var(--ink-mut2);
  display: flex; gap: 16px; align-items: center;
}
.verification-badge { padding: 2px 8px; border-radius: 0; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 9px; }
.verification-badge.ok { background: transparent; color: var(--good); border: 1px solid var(--good); }
.verification-badge.needs_verification { background: transparent; color: var(--warn); border: 1px solid var(--warn); }
.verification-badge.broken { background: transparent; color: var(--red); border: 1px solid var(--red); }

/* =================================================================
   Explainer-specific: key_facts, timeline, absurdity blocks
   ================================================================= */
.key-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.kf-row { background: transparent; border-radius: 0; padding: 14px 16px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.kf-row dt { font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mut2); margin-bottom: 6px; font-weight: 600; }
.kf-row dd { font-family: var(--serif); font-size: 18px; color: var(--ink); font-weight: 500; }

.process-timeline { list-style: none; padding: 0; counter-reset: ts; position: relative; }
.process-timeline::before {
  content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 1px; background: var(--rule2);
}
.process-timeline li {
  position: relative; padding-left: 40px; padding-bottom: 18px; counter-increment: ts;
}
.process-timeline li::before {
  content: counter(ts); position: absolute; left: 0; top: 0; width: 26px; height: 26px;
  background: var(--paper); color: var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  border: 1px solid var(--ink); box-shadow: none;
}
.ts-phase { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); }
.ts-dates { font-family: var(--sans); font-size: 11px; color: var(--ink-mut2); margin-top: 4px; letter-spacing: 0.02em; }

.absurdity-section {
  background: var(--paper2); border: 1px solid var(--rule); border-left: 3px solid var(--ink);
  padding: 22px; border-radius: 0;
}
.section-note { font-family: var(--serif); font-size: 14px; color: var(--ink-mut); margin-bottom: 18px; line-height: 1.55; }

.absurdity-card {
  background: var(--paper); border-radius: 0; padding: 20px;
  margin-bottom: 14px; border: 1px solid var(--rule);
}
.absurdity-card h4 { font-family: var(--serif); font-size: 17px; color: var(--ink); margin-bottom: 12px; line-height: 1.3; font-weight: 600; letter-spacing: -0.2px; }
.absurdity-card blockquote {
  background: transparent; border-left: 2px solid var(--red);
  padding: 8px 16px; margin: 14px 0;
  font-family: var(--serif); color: var(--ink); font-size: 16px; line-height: 1.55;
  font-style: italic; quotes: "„" "“";
}
.absurdity-card blockquote::before { content: open-quote; color: var(--ink-mut2); }
.absurdity-card blockquote::after { content: close-quote; color: var(--ink-mut2); }
.abs-context { font-family: var(--serif); font-size: 14px; color: var(--ink); line-height: 1.6; margin: 12px 0; }
.abs-source { font-family: var(--sans); font-size: 11px; color: var(--ink-mut2); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.abs-source a { color: var(--ink); border-bottom: 1px dashed var(--ink-mut2); }
.abs-source a:hover { color: var(--red); border-bottom-color: var(--red); }

.cat-badge {
  padding: 3px 12px; background: transparent;
  border: 1px solid var(--rule2); border-radius: 999px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink);
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 880px) {
  header.topbar {
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .masthead-strip { flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 20px; }
}
@media (max-width: 480px) {
  .brand h1 {
    font-size: 22px;
    letter-spacing: -0.3px;
  }
  .brand h1 small { font-size: 10px; }
  header.topbar { padding: 10px 16px; }
  .topbar-actions { width: 100%; flex-wrap: wrap; gap: 10px; }
  .btn-csv, .btn-theme, .btn-reload, .aud-btn {
    min-height: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
@media (max-width: 768px) {
  .filters-row { padding: 12px 16px; }
  .strategy-grid, .explainer-grid, .detail-view, .page-intro { padding-left: 16px; padding-right: 16px; }
  .strategy-cards, .explainer-cards { grid-template-columns: 1fr; }
  .filters-actions { width: 100%; }
}

/* =================================================================
   Policy extras (M-STR-4): Timeline + Responsibility matrix
   ================================================================= */
.policy-extras { padding: 12px 40px; }
.policy-block { background: var(--paper); border: 1px solid var(--rule); border-radius: 0; padding: 22px; margin-bottom: 22px; }
.policy-block-header h3 { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 6px; font-weight: 700; letter-spacing: -0.3px; }
.policy-block-header .section-note { font-family: var(--serif); font-size: 14px; color: var(--ink-mut); font-style: italic; margin-bottom: 16px; }

/* Timeline (Gantt-like for strategies) */
.timeline-wrap { font-family: var(--sans); font-size: 12px; }
.ts-header { display: flex; align-items: center; padding-left: 220px; margin-bottom: 4px; }
.ts-label-spacer { display: none; }
.ts-axis {
  position: relative; flex: 1; height: 18px;
  border-bottom: 1px solid var(--rule);
}
.ts-tick {
  position: absolute; transform: translateX(-50%); top: 0;
  font-family: var(--sans); font-size: 10px; color: var(--ink-mut2);
  border-left: 1px dashed var(--rule); padding-left: 4px; padding-right: 4px;
  height: 14px;
}
.ts-now {
  position: absolute; top: 0; bottom: -200px;
  width: 1px; background: var(--red); z-index: 1; opacity: 0.7;
}
.ts-rows { display: flex; flex-direction: column; gap: 2px; position: relative; }
.ts-row {
  display: flex; align-items: center; text-decoration: none; color: var(--ink);
  padding: 5px 0; border-radius: 0; transition: background 0.12s;
}
.ts-row:hover { background: var(--paper2); }
.ts-label {
  width: 220px; flex-shrink: 0; padding-right: 12px;
  font-family: var(--serif); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ts-track {
  position: relative; flex: 1; height: 12px; background: var(--paper2); border-radius: 0;
}
.ts-bar {
  position: absolute; top: 2px; bottom: 2px; min-width: 4px;
  border-radius: 0; opacity: 0.9;
  transition: opacity 0.12s;
}
.ts-row:hover .ts-bar { opacity: 1; }
.ts-bar.ts-national { background: var(--ink); }
.ts-bar.ts-sector { background: #5a4f42; }
.ts-bar.ts-institution { background: #7a6f5e; }
.ts-bar.ts-eu { background: var(--warn); }
.ts-bar.ts-global { background: var(--good); }
.ts-bar.ts-standard { background: var(--ink-mut2); }
.ts-bar.st-revision_due { opacity: 0.55; border: 1px dashed var(--red); }
.ts-bar.st-proposed { opacity: 0.4; }
.ts-bar.st-obsolete { opacity: 0.22; }

.ts-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 10px; color: var(--ink-mut2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ts-legend i.ts-bar { position: static; display: inline-block; width: 16px; height: 8px; vertical-align: middle; margin-right: 4px; }
.ts-legend i.ts-now { position: static; display: inline-block; width: 2px; height: 12px; background: rgba(220,38,38,0.7); vertical-align: middle; margin-right: 4px; }

/* Responsibility matrix */
.rm-wrap { overflow-x: auto; }
.responsibility-matrix {
  border-collapse: collapse; font-family: var(--sans); font-size: 12px; min-width: 100%;
}
.responsibility-matrix th, .responsibility-matrix td {
  border-bottom: 1px solid var(--rule); padding: 6px 4px; text-align: center;
}
.rm-strategy-col, .rm-strategy-cell {
  text-align: left; padding-left: 8px; padding-right: 8px;
  width: 240px; max-width: 240px;
}
.rm-strategy-cell a { color: var(--primary-dark); text-decoration: none; font-size: 12px; }
.rm-strategy-cell a:hover { text-decoration: underline; }
.rm-inst-col {
  height: 110px; vertical-align: bottom; min-width: 38px; max-width: 38px;
  font-weight: normal; color: var(--muted);
}
.rm-inst-col span {
  display: inline-block; transform: rotate(-60deg); transform-origin: left bottom;
  white-space: nowrap; padding-left: 18px; font-size: 11px;
}
.rm-cell { font-family: var(--serif); font-size: 14px; line-height: 1; min-width: 38px; max-width: 38px; }
.rm-owner { color: var(--red); font-size: 18px; font-weight: 700; }
.rm-co { color: var(--ink-mut); }
.rm-legend {
  display: flex; gap: 16px; margin-top: 10px;
  font-size: 11px; color: var(--muted);
}

/* =================================================================
   Explainer policy extras (M-EXPL-4): Gantt + DRG kalkulátor
   ================================================================= */
.gantt-details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.gantt-details summary {
  cursor: pointer; font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink-mut); padding: 4px 0; text-transform: uppercase; letter-spacing: 0.1em;
}
.gantt-details summary:hover { color: var(--ink); }
.gantt-details[open] summary { margin-bottom: 14px; color: var(--red); }

.gantt-wrap { font-family: var(--sans); font-size: 11px; }
.gantt-header { position: relative; height: 22px; margin-bottom: 6px; padding-left: 200px; border-bottom: 1px solid var(--rule); }
.gantt-tick {
  position: absolute; top: 4px; transform: translateX(-50%);
  font-family: var(--sans); font-size: 10px; color: var(--ink-mut2);
}
.gantt-rows { display: flex; flex-direction: column; gap: 3px; }
.gantt-row { display: flex; align-items: center; }
.gantt-label {
  width: 200px; flex-shrink: 0; padding-right: 10px;
  font-family: var(--serif); font-size: 13px; color: var(--ink);
}
.gantt-track {
  position: relative; flex: 1; height: 22px; background: var(--paper2); border-radius: 0;
}
.gantt-bar {
  position: absolute; top: 3px; bottom: 3px;
  border-radius: 0; padding: 0 8px; color: var(--paper);
  display: flex; align-items: center; overflow: hidden;
  font-family: var(--sans); font-size: 10px; white-space: nowrap; font-weight: 500;
}
.gantt-phase-0 { background: var(--ink); }
.gantt-phase-1 { background: var(--good); }
.gantt-phase-2 { background: var(--warn); }
.gantt-phase-3 { background: var(--red); }
.gantt-bar-label { font-family: var(--sans); font-size: 10px; opacity: 0.95; }

.drg-calc-section {
  background: var(--paper2); border-left: 3px solid var(--ink);
  padding: 22px; border-radius: 0;
}
.drg-calc { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.drg-row { display: flex; flex-direction: column; gap: 6px; }
.drg-row label { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--ink-mut); text-transform: uppercase; letter-spacing: 0.06em; }
.drg-row input, .drg-row select {
  padding: 8px 12px; border: 1px solid var(--rule2); border-radius: 0;
  font-family: var(--serif); font-size: 14px; background: var(--paper); color: var(--ink);
}
.drg-row input:focus, .drg-row select:focus { outline: none; border-color: var(--ink); }
.drg-hint { font-family: var(--sans); font-size: 11px; color: var(--ink-mut2); margin-top: 4px; }
.drg-suggest {
  background: transparent; color: var(--ink); border: 1px solid var(--rule2);
  padding: 2px 10px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 11px; margin-right: 4px;
}
.drg-suggest:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary {
  background: var(--ink); color: var(--paper); border: none;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  align-self: flex-start; letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--red); }

.drg-result { margin-top: 18px; padding: 18px; background: var(--paper); border-radius: 0; border: 1px solid var(--rule); }
.drg-result:empty { display: none; }
.drg-result h4 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 12px; font-weight: 700; letter-spacing: -0.3px; }
.drg-result-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0;
  font-size: 13px; border-top: 1px solid var(--rule);
}
.drg-result-grid > div { padding: 10px 14px; background: transparent; border-radius: 0; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.drg-result-grid dt { font-family: var(--sans); font-size: 10px; color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; font-weight: 600; }
.drg-result-grid dd { font-family: var(--serif); font-size: 16px; color: var(--ink); font-weight: 500; }
.drg-final { background: var(--paper2) !important; }
.drg-final dd strong { color: var(--red); font-size: 20px; font-family: var(--serif); font-weight: 700; }
.drg-comparison {
  margin-top: 14px; padding: 12px 14px; background: transparent; border-left: 3px solid var(--warn);
  font-family: var(--serif); font-size: 14px; color: var(--ink);
}
.drg-warn {
  padding: 12px 14px; background: transparent; border-left: 3px solid var(--warn);
  font-family: var(--sans); color: var(--ink); font-size: 12px;
}
.drg-disclaimer { font-family: var(--sans); font-size: 11px; color: var(--ink-mut2); font-style: italic; margin-top: 14px; }

/* Cross-link box v modalu indikátoru */
.modal-cross-links { margin-top: 16px; }
.modal-cross-links:empty { display: none; }

/* Top country label v benchmark gauge */
.bm-best { transition: background 0.15s; }
.bm-best:hover { background: rgba(22,163,74,0.06); border-radius: 4px; }
.bm-country {
  font-size: 9px; color: var(--muted); font-weight: 500;
  margin-left: 2px; white-space: nowrap;
}

/* =================================================================
   Section + filter panel (indikátorová sekce)
   ================================================================= */
.section { margin-bottom: 28px; }

details.filter-panel {
  background: var(--paper);
  border: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
details.filter-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mut);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
details.filter-panel > summary::-webkit-details-marker { display: none; }
details.filter-panel > summary::marker { content: ''; }
details.filter-panel > summary::before {
  content: '+';
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mut2);
  transition: transform 0.2s;
  display: inline-block;
  width: 14px;
}
details.filter-panel[open] > summary::before { content: '−'; color: var(--red); }
details.filter-panel > summary:hover { color: var(--ink); }

.filter-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; flex-wrap: wrap;
}
.filter-row + .filter-row { border-top: 1px dashed var(--rule); }
.filter-row:last-child { padding-bottom: 16px; }
.filter-label {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* =================================================================
   Úvodní hero sekce — editorial story hero "Co je HSPA"
   ================================================================= */
details.hero {
  background: var(--paper);
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  margin: 0 0 28px;
  box-shadow: none;
  overflow: hidden;
  transition: none;
}
details.hero[open] { box-shadow: none; }
details.hero:hover { box-shadow: none; }

details.hero > summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  user-select: none;
  border-left: none;
  transition: opacity 0.15s;
}
details.hero > summary::-webkit-details-marker { display: none; }
details.hero > summary::marker { content: ''; }
details.hero > summary::before {
  content: 'Co je HSPA';
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  border-right: 1px solid var(--rule2);
  padding-right: 22px;
}
details.hero > summary:hover { opacity: 0.78; }
details.hero[open] > summary { border-bottom: none; padding-bottom: 18px; }

.hero-summary-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-summary-q {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.hero-summary-hint {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.hero-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mut);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.15s;
}
details.hero[open] .hero-summary-icon {
  transform: rotate(180deg);
  color: var(--red);
}
details.hero > summary:hover .hero-summary-icon { color: var(--ink); }

.hero-content {
  padding: 8px 0 32px;
  max-width: 760px;
}
.hero-content p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-mut);
  margin-bottom: 16px;
  max-width: none;
}
.hero-content p:last-of-type { margin-bottom: 0; }
.hero-content p strong { color: var(--ink); font-weight: 600; }
.hero-content a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule2);
  transition: color 0.15s, border-color 0.15s;
}
.hero-content a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.hero-content .hero-sources {
  margin-top: 22px !important;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12px !important;
  color: var(--ink-mut2);
  max-width: none;
}
.hero-content .hero-sources strong { color: var(--ink); }

@media (max-width: 768px) {
  details.hero { margin-bottom: 20px; }
  details.hero > summary {
    padding: 18px 0;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  details.hero > summary::before { display: none; }
  .hero-summary-q { font-size: 18px; }
  .hero-summary-hint { font-size: 11px; }
  .hero-content { padding: 0 0 24px; }
  .hero-content p { font-size: 15px; line-height: 1.6; }
}

/* =================================================================
   Detail page indikátoru (indicator.html) — editorial layout
   ================================================================= */
.indicator-detail { max-width: 1100px; margin: 0 auto; padding: 28px 0 8px; }
.indicator-detail .loading-msg {
  font-family: var(--serif); font-size: 18px; color: var(--ink-mut);
  text-align: center; padding: 80px 20px;
}

.ind-detail-header {
  border-bottom: 1px solid var(--ink); padding-bottom: 18px; margin-bottom: 22px;
}
.ind-detail-area {
  font-family: var(--sans); font-size: 11px;
  color: var(--red); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.ind-detail-header h2 {
  font-family: var(--serif); font-size: 44px;
  font-weight: 700; letter-spacing: -1px; line-height: 1.05;
  color: var(--ink); margin-bottom: 6px;
}
.ind-detail-subtitle {
  font-family: var(--serif); font-size: 17px;
  color: var(--ink-mut); line-height: 1.5; max-width: 760px;
  margin-top: 8px;
}
.ind-detail-footer {
  margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 11px; color: var(--ink-mut2);
  display: flex; flex-wrap: wrap; gap: 14px;
}

.ind-hero {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 32px; padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.ind-hero-value {
  display: flex; flex-direction: column; gap: 8px;
}
.ind-hero-big { display: flex; align-items: baseline; gap: 10px; }
.ind-hero-num {
  font-family: var(--serif); font-size: 76px; font-weight: 700;
  letter-spacing: -2.4px; line-height: 0.95; color: var(--ink);
}
.ind-hero-unit { font-family: var(--sans); font-size: 13px; color: var(--ink-mut2); }
.ind-hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-family: var(--sans); font-size: 11px; color: var(--ink-mut);
}
.ind-hero-year {
  background: transparent; color: var(--ink-mut2);
  border-left: 1px solid var(--rule2); padding-left: 8px;
}
.ind-hero-yoy { font-family: var(--sans); font-weight: 500; }
.ind-hero-yoy.up { color: var(--good); }
.ind-hero-yoy.down { color: var(--red); }
.ind-hero-yoy.flat { color: var(--ink-mut2); }

.ind-hero-bench {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; align-items: stretch;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ind-bench-table {
  padding: 14px 14px 14px 0; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 4px;
}
.ind-bench-table:last-child { border-right: none; }
.ind-bench-table dt {
  font-family: var(--sans); font-size: 10px;
  color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600;
}
.ind-bench-table dd {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.5px;
}
.ind-bench-unit { font-family: var(--sans); font-size: 11px; color: var(--ink-mut2); margin-left: 4px; font-weight: 400; }
.ind-no-bench {
  font-family: var(--serif); color: var(--ink-mut); font-style: italic; padding: 14px 0;
}

.ind-section {
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.ind-section h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  letter-spacing: -0.4px; color: var(--ink); margin-bottom: 14px;
}
.ind-section .ind-method-sub {
  font-family: var(--sans); font-size: 11px;
  color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; margin-bottom: 6px;
}
.ind-narrative {
  font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.65;
  max-width: 760px;
}
.ind-narrative p { margin-bottom: 12px; }
.ind-narrative p:last-child { margin-bottom: 0; }
.ind-narrative strong { font-weight: 600; }
.ind-narrative a {
  color: var(--ink); border-bottom: 1px solid var(--rule2); text-decoration: none;
}
.ind-narrative a:hover { color: var(--red); border-bottom-color: var(--red); }

.ind-story-section { background: var(--paper2); margin: 0 -24px; padding: 28px 24px; border-top: 2px solid var(--ink); }
.ind-story-section h3 { font-size: 13px; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mut); font-weight: 700; margin-bottom: 16px; }
.ind-story {
  font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.7;
  max-width: 760px;
}
.ind-story p { margin-bottom: 14px; }
.ind-story p:first-child { font-size: 18px; font-weight: 600; color: var(--ink); }
.ind-story p:last-child { margin-bottom: 0; }

.ind-trend-chart-wrap { height: 360px; padding: 14px; border: 1px solid var(--rule); }

.ind-map-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start;
}
.ind-map-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cz-map-host { width: 100%; max-width: 540px; display: block; }
.cz-map-svg { width: 100%; height: auto; display: block; }
.cz-tile {
  cursor: pointer;
  transition: opacity 0.12s, stroke-width 0.12s;
  stroke: var(--rule2); stroke-width: 1;
}
.cz-tile:hover, .cz-tile:focus { stroke: var(--ink); stroke-width: 1.5; outline: none; }
.cz-tile-lbl {
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  fill: var(--ink); pointer-events: none; text-transform: uppercase; letter-spacing: 0.04em;
}
.cz-tile-val {
  font-family: var(--serif); font-size: 12px; font-weight: 700;
  fill: var(--ink); pointer-events: none;
}
.cz-map-tooltip {
  position: absolute; pointer-events: none;
  background: var(--ink); color: var(--paper);
  padding: 6px 10px; font-family: var(--sans); font-size: 11px;
  white-space: nowrap; z-index: 10;
}
.ind-map-legend {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--sans); font-size: 10px; color: var(--ink-mut2);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ind-map-table-wrap { overflow-x: auto; }
.ind-map-table-wrap .regions-table th { font-size: 10px; }
.ind-map-table-wrap tr.row-hover td { background: var(--paper2); }
.ind-region-note {
  font-family: var(--serif); font-style: italic; color: var(--ink-mut);
  font-size: 14px; margin-top: 12px;
}
.ind-no-region {
  font-family: var(--serif); color: var(--ink-mut); padding: 14px 0; font-style: italic;
}

.ind-method-dl {
  display: grid; grid-template-columns: 200px 1fr; gap: 10px 16px;
  font-family: var(--serif); font-size: 14px;
}
.ind-method-dl dt {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.06em;
  padding-top: 2px;
}
.ind-method-dl dd { color: var(--ink); }

.ind-related-heading {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink-mut2); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.ind-related-sub { font-family: var(--serif); font-size: 14px; color: var(--ink-mut); margin-bottom: 14px; }
.ind-related-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0; border-top: 1px solid var(--rule);
}
.cml-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; text-decoration: none;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-family: var(--serif); color: var(--ink); transition: background 0.12s;
}
.cml-item:hover { background: var(--paper2); color: var(--red); }
.cml-sw {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex-shrink: 0;
  border: 1px solid var(--rule2); font-family: var(--sans); font-size: 12px;
  text-transform: uppercase; font-weight: 700; color: var(--ink-mut);
}
.cml-sw.cml-good { background: #1F7A1F; }
.cml-sw.cml-bad { background: #990000; }
.cml-sw.cml-mid { background: #E2E8F0; }
.cml-sw.cml-ctx-above { background: #3B5BDB; }
.cml-sw.cml-ctx-below { background: #D9480F; }
.cml-ctx-note {
  font-style: italic; color: var(--ink-mut); padding: 6px 10px;
  font-family: var(--serif); font-size: 13px;
}
.ind-no-related {
  font-family: var(--serif); font-style: italic; color: var(--ink-mut); padding: 8px 0;
}

/* Související články — speciální formát s perexem (uvnitř karty indikátoru) */
.ind-related-articles {
  display: block;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--rule);
}
.ind-related-articles li {
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}
.ind-related-articles li a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.12s, color 0.12s;
}
.ind-related-articles li a:hover { padding-left: 6px; color: var(--red); }
.ind-related-articles li strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.ind-related-articles li .ind-related-sub {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-mut);
  margin: 0;
}

/* Související články v sekci prevence (Co s tím můžu dělat já) */
.prev-article-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--rule);
}
.prev-article-item { border-bottom: 1px solid var(--rule); }
.prev-article-link {
  display: block;
  padding: 18px 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.12s, color 0.12s;
}
.prev-article-link:hover { padding-left: 8px; color: var(--red); }
.prev-article-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.prev-article-title {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.prev-article-perex {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mut);
}

.origin-tag {
  display: inline-block; padding: 1px 8px; margin-left: 6px;
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--rule2); color: var(--ink-mut);
}
.origin-tag.live { color: var(--good); border-color: var(--good); }
.origin-tag.seed { color: var(--ink-mut2); }

/* Verifikační badge — P0.4 */
.verif-badge {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border: 1px solid currentColor;
  margin-left: auto;
  display: inline-block;
  vertical-align: middle;
}
.verif-verified { color: var(--good); }
.verif-preliminary { color: var(--warn); }
.verif-illustrative { color: var(--red); }
.verif-hint { font-size: 10px; opacity: 0.65; cursor: help; }

/* Framework badge — HSPA vs. doplňkový Monitoring */
.fw-badge {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border: 1px solid currentColor;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}
.fw-hspa { color: var(--ink); background: var(--paper2); }
.fw-monitoring { color: var(--warn); background: rgba(160,90,8,0.06); }

/* ================================================================
   Krajský pohled — choropleth /kraje.html
   ================================================================ */
.kraje-section {
  max-width: var(--max-w);
  margin: 0 auto 64px;
  padding: 0 var(--content-pad, 32px);
}
.kraje-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 24px;
}
.kraje-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mut);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kraje-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mut);
  margin-left: auto;
}
.kraje-meta-area {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kraje-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}
.kraje-map-wrap {
  background: var(--paper2);
  border: 1px solid var(--rule);
  padding: 16px;
}
.kraje-map {
  width: 100%;
  height: 480px;
}
.kraje-map-disclaimer {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  margin-top: 12px;
  line-height: 1.5;
  font-style: italic;
}

.kraje-side-h {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.kraje-rank {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kraje-rank-row {
  display: grid;
  grid-template-columns: 30px 1fr auto auto;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
}
.kraje-rank-row:last-child { border-bottom: none; }
.kraje-rank-pos {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink-mut);
}
.kraje-rank-good .kraje-rank-pos { color: var(--good); }
.kraje-rank-bad .kraje-rank-pos { color: var(--bad); }
.kraje-rank-name { color: var(--ink); }
.kraje-rank-val { font-weight: 600; color: var(--ink); }
.kraje-rank-diff {
  font-size: 11px;
  color: var(--ink-mut);
  min-width: 60px;
  text-align: right;
}

.kraje-foot {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--paper2);
  border-left: 3px solid var(--ink);
}
.kraje-foot-text {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-mut);
}
.kraje-foot-text a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.kraje-foot-text a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .kraje-layout { grid-template-columns: 1fr; }
  .kraje-map { height: 400px; }
}
@media (max-width: 480px) {
  .kraje-rank-row { grid-template-columns: 24px 1fr auto; }
  .kraje-rank-diff { display: none; }
}

/* Detail link na indikátorové kartě */
.card-detail-link {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule2);
  font-weight: 500;
}
.card-detail-link:hover { color: var(--red); border-bottom-color: var(--red); }
.indicator-card .source { display: flex; align-items: center; gap: 12px; }

@media (max-width: 880px) {
  .ind-hero { grid-template-columns: 1fr; }
  .ind-hero-num { font-size: 56px; letter-spacing: -1.5px; }
  .ind-map-grid { grid-template-columns: 1fr; }
  .ind-method-dl { grid-template-columns: 1fr; gap: 4px; }
  .ind-method-dl dt { padding-top: 8px; }
}

/* =================================================================
   Editorial hero story (homepage) — stav českého zdravotnictví
   ================================================================= */

.ed-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 14px;
}

.ed-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding: 12px 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--ink);
}

.ed-hero-content { min-width: 0; }

.ed-hero-headline {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 720px;
}

.ed-hero-lead {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-mut);
  max-width: 660px;
}

.ed-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.ed-stat {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.12s, color 0.12s;
}
.ed-stat:hover { padding-left: 6px; color: var(--red); }
.ed-stat-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--ink);
  line-height: 1;
}
.ed-stat:hover .ed-stat-num { color: var(--red); }
.ed-stat-unit {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mut2);
}
.ed-stat-lbl {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.3;
}
.ed-stat-meta {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink-mut2);
  margin-top: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Sekce „Tento týden v datech" */
.ed-stories {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.ed-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ed-story {
  display: block;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.12s;
}
.ed-story:hover { opacity: 0.78; }
.ed-story:hover .ed-story-headline { color: var(--red); }

.ed-story-area {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mut2);
  margin-bottom: 8px;
}
.ed-story-headline {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 14px;
  transition: color 0.12s;
}
.ed-story-bignum {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.ed-story-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--ink);
}
.ed-story-unit {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mut2);
}
.ed-story-bench {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ed-story-sub {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-mut);
  line-height: 1.5;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

/* Sekce „Stav napříč rámcem HSPA" — 4 oblasti */
.ed-areas {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.ed-areas-h {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 18px;
}

.ed-areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ed-area {
  display: block;
  padding: 18px 18px 18px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s;
  cursor: pointer;
}
.ed-area:last-child { border-right: none; }
.ed-area:hover { background: var(--paper2); }

.ed-area-num {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 8px;
}
.ed-area-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: 8px;
}
.ed-area-desc {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-mut);
  line-height: 1.45;
  margin-bottom: 18px;
  min-height: 60px;
}
.ed-area-score {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--ink);
  line-height: 1;
}
.ed-area-score-unit {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mut2);
  margin-left: 4px;
}
.ed-area-meta {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink-mut2);
  letter-spacing: 0.02em;
  margin-top: 6px;
  text-transform: lowercase;
}

/* Signál tečka — sdílená napříč ed-* sekcemi */
.signal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0;
}
.signal-dot.good { background: var(--good); }
.signal-dot.warn { background: var(--warn); }
.signal-dot.bad { background: var(--red); }
.signal-dot.neutral { background: var(--neutral); }

@media (max-width: 880px) {
  .ed-hero { grid-template-columns: 1fr; gap: 28px; }
  .ed-hero-headline { font-size: 38px; letter-spacing: -0.8px; }
  .ed-hero-lead { font-size: 16px; }
  .ed-stories-grid { grid-template-columns: 1fr; gap: 24px; }
  .ed-areas-grid { grid-template-columns: 1fr 1fr; }
  .ed-area:nth-child(2) { border-right: none; }
  .ed-area:nth-child(1), .ed-area:nth-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .ed-areas-grid { grid-template-columns: 1fr; }
  .ed-area { border-right: none !important; border-bottom: 1px solid var(--rule); }
  .ed-area:last-child { border-bottom: none; }
}

/* =================================================================
   Editorial manifest — „Proč to měříme" sekce na úvodní straně
   Sdílí .ed-flow-grid + .ed-flow-step strukturu pro vizuální konzistenci
   se sekcí „Jak to spolu souvisí" na jak-funguje.html.
   ================================================================= */
.ed-manifest {
  padding: 0 0 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.ed-manifest-headline {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 820px;
}
.ed-manifest-lead {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-mut);
  max-width: 760px;
  margin-bottom: 28px;
}
.ed-manifest-lead strong {
  color: var(--ink);
  font-weight: 600;
}
.ed-manifest-disclosure {
  font-size: 14px !important;
  color: var(--ink-mut2) !important;
  border-left: 2px solid var(--rule2);
  padding-left: 16px;
  margin-top: -12px !important;
  margin-bottom: 28px !important;
}

/* Principles — recykluje .ed-flow-step (article místo a, neutralizuje hover/cursor) */
.ed-principle-step {
  cursor: default;
}
.ed-principle-step:hover {
  background: var(--paper);
}
.ed-principle-step:hover .ed-flow-num {
  color: var(--ink);
}

.ed-manifest-cta {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}
.ed-manifest-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: color 0.12s, border-color 0.12s;
}
.ed-manifest-link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

@media (max-width: 880px) {
  .ed-manifest-headline { font-size: 32px; letter-spacing: -0.6px; }
  .ed-manifest-lead { font-size: 16px; }
  .ed-manifest-cta { justify-content: flex-start; }
}

/* =================================================================
   Editorial — Jak funguje (statické hero stats + flow diagram)
   ================================================================= */

/* Static stat (bez href) — odlišení od klikatelných ed-stat */
.ed-stat-static {
  cursor: default;
  pointer-events: none;
}
.ed-stat-static:hover { padding-left: 0; color: var(--ink); }
.ed-stat-static:hover .ed-stat-num { color: var(--ink); }

/* Sekce „Jak to spolu souvisí" — 4 kroky/mechanismy
   Vizuální jazyk: velká serif čísla, výrazné odsazení, arrow chip jako
   editorial subheading. Karty jsou klikatelné <a> s paper2 hover. */
.ed-flow {
  padding: 8px 0 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.ed-flow-lead {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mut);
  max-width: 780px;
  margin-bottom: 28px;
}
.ed-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.ed-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 22px;
  row-gap: 0;
  align-items: start;
  padding: 28px 26px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s;
  cursor: pointer;
  background: var(--paper);
}
.ed-flow-step:nth-child(2n) { border-right: none; }
.ed-flow-step:nth-child(n+3) { border-bottom: none; }
.ed-flow-step:hover { background: var(--paper2); }
.ed-flow-step:hover .ed-flow-link { color: var(--red); border-bottom-color: var(--red); }
.ed-flow-step:hover .ed-flow-num { color: var(--red); }

/* Velké serif číslo přes 4 řádky vlevo */
.ed-flow-num {
  grid-column: 1;
  grid-row: 1 / span 4;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 0.9;
  color: var(--ink);
  align-self: start;
  transition: color 0.12s;
}

/* Název mechanismu — velký headline */
.ed-flow-name {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Arrow chip — uppercase mono-feel s ink top rule */
.ed-flow-arrow {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  border-top: 1px solid var(--rule2);
  padding: 8px 0 0;
  margin-bottom: 14px;
}

/* Popis — Source Serif body */
.ed-flow-desc {
  grid-column: 2;
  grid-row: 3;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mut);
  margin-bottom: 18px;
}

/* Odkaz na kategorii dole */
.ed-flow-link {
  grid-column: 2;
  grid-row: 4;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  justify-self: start;
  transition: color 0.12s, border-color 0.12s;
}

/* Storytelling intro pro každou kategorii v gridu */
.cat-header-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
}
.cat-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
}
.cat-count {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  letter-spacing: 0.02em;
  margin-left: auto;
}
.cat-story {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--paper2);
  border-left: 2px solid var(--ink);
  max-width: 820px;
}

/* Hero collapsible details — used on jak-funguje.html for progressive disclosure
   of the long context. Compact summary, expandable body. */
.hero-more {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: 720px;
}
.hero-detail {
  border-bottom: 1px solid var(--rule);
}
.hero-detail > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: color 0.12s;
}
.hero-detail > summary::-webkit-details-marker { display: none; }
.hero-detail > summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-mut);
  line-height: 1;
  transition: transform 0.18s;
}
.hero-detail[open] > summary::after { content: '−'; }
.hero-detail > summary:hover { color: var(--red); }
.hero-detail > summary:hover::after { color: var(--red); }
.hero-detail-summary {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-detail-body {
  padding: 0 0 16px;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-mut);
}
.hero-detail-body p + p { margin-top: 10px; }
.hero-detail-body a { color: var(--red); text-decoration: none; }
.hero-detail-body a:hover { text-decoration: underline; }
.hero-detail-body strong { color: var(--ink); }

/* Detail-tldr: výsledek renderBlockMarkdown — odstavce + seznamy */
.detail-tldr p + p { margin-top: 12px; }
.detail-tldr ul,
.detail-tldr ol {
  margin: 12px 0 12px 22px;
}
.detail-tldr li { margin-bottom: 6px; }

/* Auto-rozbalená inline výčetka (1)/(a) */
ol.md-enum,
ul.md-enum {
  margin: 12px 0 12px 22px;
  padding: 0;
}
ol.md-enum > li,
ul.md-enum > li {
  margin-bottom: 8px;
  padding-left: 4px;
  line-height: 1.55;
}
ol.md-enum > li > strong:first-child,
ul.md-enum > li > strong:first-child {
  color: var(--ink);
}
.detail-tldr code {
  background: var(--paper2);
  padding: 1px 5px;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.92em;
  border-radius: 2px;
}

/* Absurdity context — markdown blok */
.abs-context p + p { margin-top: 8px; }
.abs-context ul, .abs-context ol { margin: 8px 0 8px 22px; }
.abs-context strong { color: var(--ink); }

/* =================================================================
   Explainer visuals — sloupcové grafy, srovnávací tabulky, cyklus
   ================================================================= */
.section-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mut);
  margin-bottom: 14px;
  line-height: 1.5;
}
.ex-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 8px;
}
.ex-bar-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
}
.ex-bar-label {
  color: var(--ink);
  text-align: right;
  line-height: 1.3;
}
.ex-bar-track {
  position: relative;
  height: 22px;
  background: var(--paper2);
  border: 1px solid var(--rule);
}
.ex-bar-fill {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 2px;
}
.ex-bar-fill-pos { background: var(--ink); }
.ex-bar-fill-cz { background: var(--red); }
.ex-bar-fill-neutral { background: var(--neutral); }
.ex-bar-value { color: #fff; }
.ex-bar-side {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mut);
}
.ex-bar-side-neg { color: var(--bad); }
.ex-bar-foot {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-mut);
  margin-top: 8px;
  font-style: italic;
}

/* Per-row threshold marker (svislá čárkovaná linka v každém řádku grafu) */
.ex-bar-threshold {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 0;
  border-left: 2px dashed var(--red);
  pointer-events: none;
  z-index: 2;
}

/* Komparativní tabulka */
.ex-compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13.5px;
}
.ex-compare th,
.ex-compare td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.45;
}
.ex-compare th {
  background: var(--paper2);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ex-compare tbody tr:hover { background: rgba(31,26,20,0.03); }
.ex-cell-good { background: rgba(47,107,31,0.08); }

/* Roční cyklus — vertikální timeline */
.ex-cycle {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  border-left: 2px solid var(--ink);
}
.ex-cycle-step {
  position: relative;
  padding: 10px 0 10px 22px;
  margin-left: -1px;
  font-family: var(--sans);
  font-size: 13.5px;
}
.ex-cycle-step::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.ex-cycle-deadline::before { background: var(--red); border-color: var(--red); }
.ex-cycle-fallback::before { background: var(--warn); border-color: var(--warn); }
.ex-cycle-start::before { background: var(--ink); }
.ex-cycle-when {
  display: inline-block;
  font-weight: 600;
  color: var(--ink);
  margin-right: 8px;
  min-width: 130px;
}
.ex-cycle-deadline .ex-cycle-when { color: var(--red); }
.ex-cycle-fallback .ex-cycle-when { color: var(--warn); }
.ex-cycle-what { color: var(--ink-mut); }

@media (max-width: 720px) {
  .ex-bar-row { grid-template-columns: 1fr; gap: 4px; }
  .ex-bar-label { text-align: left; }
  .ex-cycle-when { display: block; min-width: 0; margin-bottom: 2px; }
  .ex-compare { font-size: 12.5px; }
  .ex-compare th, .ex-compare td { padding: 8px; }
}
.cat-block { scroll-margin-top: 70px; }

.schema-promo-block { margin-top: 8px; }
.schema-promo-link {
  display: block; text-decoration: none; color: inherit;
  border: 1.5px solid var(--ink); border-radius: 0;
  transition: background 0.12s;
}
.schema-promo-link:hover { background: var(--paper2); }
.schema-promo-inner {
  padding: 24px 28px;
}
.schema-promo-label {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-mut2); font-weight: 700; margin-bottom: 8px;
}
.schema-promo-title {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  letter-spacing: -0.3px; color: var(--ink); margin: 0 0 8px;
}
.schema-promo-desc {
  font-family: var(--serif); font-size: 15px; color: var(--ink-mut); margin: 0;
}

@media (max-width: 880px) {
  .ed-flow-grid { grid-template-columns: 1fr; }
  .ed-flow-step {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    grid-template-columns: 64px 1fr;
    column-gap: 16px;
    padding: 22px 0;
  }
  /* Přepsání desktop selectorů se stejnou specificitou v 1-col layoutu —
     desktop měl :nth-child(n+3) odstraňující spodní border u karet 3 a 4. */
  .ed-flow-step:nth-child(2n) { border-bottom: 1px solid var(--rule); }
  .ed-flow-step:nth-child(n+3) { border-bottom: 1px solid var(--rule); }
  .ed-flow-step:last-child { border-bottom: none; }
  .ed-flow-num { font-size: 48px; letter-spacing: -1.4px; }
  .ed-flow-name { font-size: 22px; }
  .ed-flow-desc { font-size: 14px; }
  .cat-header-row { flex-wrap: wrap; }
  .cat-count { margin-left: 0; }
}

/* =================================================================
   P3.8 + P3.9 · Strategie editorial: accountability + badges
   ================================================================= */

/* Accountability badge (inline pill on cards and detail header) */
.acct-badge {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 0;
  white-space: nowrap;
}
.acct-published { color: var(--good); }
.acct-pending { color: var(--warn); }
.acct-missing { color: var(--red); }

/* P3.9 · Sekce „Veřejná kontrola" na rozcestí */
.ed-accountability {
  background: var(--paper2);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 32px 40px;
  margin-bottom: 0;
}
.ed-accountability h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.15;
}
.ed-accountability p {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-mut);
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 20px;
}
.ed-acct-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
}
.ed-acct-questions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.ed-acct-questions li {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 20px 0;
  border-right: 1px solid var(--rule2);
}
.ed-acct-questions li:last-child { border-right: none; }
.acct-q-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}
.acct-q-text {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

/* P3.9 · Accountability detail grid in strategy detail page */
.ed-accountability-detail { margin-bottom: 28px; }
.acct-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.acct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.acct-row dt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mut2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.acct-row dd {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.acct-row dd a {
  color: var(--ink);
  border-bottom: 1px dashed var(--rule2);
  text-decoration: none;
}
.acct-row dd a:hover { color: var(--red); border-bottom-color: var(--red); }

@media (max-width: 768px) {
  .ed-accountability { padding: 24px 16px; }
  .ed-acct-questions { grid-template-columns: 1fr 1fr; }
  .ed-acct-questions li { border-right: none; border-bottom: 1px solid var(--rule2); }
  .ed-acct-questions li:nth-child(odd) { border-right: 1px solid var(--rule2); }
  .ed-acct-questions li:nth-last-child(-n+2) { border-bottom: none; }
  .acct-q-num { font-size: 36px; }
  .acct-row { grid-template-columns: 1fr; gap: 4px; }
}

/* =================================================================
   Prevention page (prevence.html)
   Recykluje ed-hero, ed-flow, ed-stat — přidává jen prevention-grid
   ================================================================= */
.prevention-grid-section {
  padding: 0 0 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.prevention-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.prevention-card {
  display: block;
  padding: 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s;
}
.prevention-card:nth-child(3n) { border-right: none; }
.prevention-card:nth-child(n+7) { border-bottom: none; }
.prevention-card:hover { background: var(--paper2); }

.prevention-card-daily {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 10px;
}
.prevention-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 4px;
}
.prevention-card-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mut);
  margin-bottom: 14px;
}
.prevention-card-snippet {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 14px;
}
.prevention-card-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  letter-spacing: 0.02em;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

/* Detail page */
.prevention-detail .ed-hero { padding-bottom: 22px; }
.prevention-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 28px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.prevention-action {
  padding: 22px;
  border-right: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.prevention-action:last-child { border-right: none; }
.prevention-action-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.prevention-source-list {
  list-style: none; padding: 0; margin: 0;
}
.prevention-source-list li {
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 14px;
}
.prevention-source-list a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule2);
  text-decoration: none;
}
.prevention-source-list a:hover { color: var(--red); border-bottom-color: var(--red); }

.prevention-caveat {
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--paper2);
  border-left: 3px solid var(--warn);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

/* =================================================================
   Akční plán — týdenní startovací balíček (7 dní × 1 změna)
   ================================================================= */
.action-plan-section {
  padding: 48px 40px;
  margin: 24px 0 0;
  background: var(--paper2);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.action-plan-lead {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-mut);
  max-width: 820px;
  margin-bottom: 28px;
}
.action-plan-lead strong { color: var(--ink); }

.action-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.action-day {
  position: relative;
  padding: 18px 16px 56px;
  background: var(--paper);
  border-right: 1px solid var(--rule2);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.action-day:last-child { border-right: none; }
.action-day-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.action-day-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
  line-height: 1;
}
.action-day-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  width: max-content;
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
}
.action-day-tag[data-theme="jidlo"] { color: #a05a08; border-bottom-color: #a05a08; }
.action-day-tag[data-theme="pohyb"] { color: #2f6b1f; border-bottom-color: #2f6b1f; }
.action-day-tag[data-theme="screening_preventivni_pece"] { color: #0b4fa8; border-bottom-color: #0b4fa8; }
.action-day-tag[data-theme="alkohol"] { color: #b8361e; border-bottom-color: #b8361e; }
.action-day-tag[data-theme="vztahy_samota"] { color: #5c4099; border-bottom-color: #5c4099; }
.action-day-tag[data-theme="digitalni_zdravi"] { color: #1a7a4a; border-bottom-color: #1a7a4a; }
.action-day-tag[data-theme="smysl_zivota"] { color: #b45f06; border-bottom-color: #b45f06; }

.action-day-text {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  flex-grow: 1;
}
.action-day-link {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.action-day-link:hover { color: var(--ink); }

.action-plan-foot {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--paper);
  border-left: 3px solid var(--ink);
}
.action-plan-foot-icon {
  font-size: 28px;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
}
.action-plan-foot-text {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.action-plan-foot-text strong { color: var(--ink); }
.action-plan-foot-text em { color: var(--ink-mut); }

/* =================================================================
   Kontakty — sekce pro vyhledání pomoci
   ================================================================= */
.contacts-section {
  padding: 48px 40px 56px;
  margin-bottom: 0;
}
.contacts-lead {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-mut);
  max-width: 820px;
  margin-bottom: 32px;
}

.contacts-section-block { margin-bottom: 36px; }
.contacts-section-block h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.contacts-section-note {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mut);
  max-width: 820px;
  margin-bottom: 18px;
  font-style: italic;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s, transform 0.12s;
}
.contact-card:hover {
  background: var(--paper2);
  transform: translateX(2px);
}
.contact-card-label {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.contact-card-tel {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.02em;
}
.contact-card-desc {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-mut);
  margin-top: 4px;
}
.contact-card-desc a { color: var(--red); text-decoration: none; }
.contact-card-desc a:hover { text-decoration: underline; }

/* Krizové karty — výrazná červená pro upozornění */
.contact-card.contact-crisis {
  border-left: 3px solid var(--red);
}
.contact-card.contact-crisis .contact-card-tel {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}

.contacts-disclaimer {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--paper2);
  border-left: 3px solid var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mut);
}
.contacts-disclaimer strong { color: var(--ink); }
.contacts-disclaimer a { color: var(--red); text-decoration: none; }
.contacts-disclaimer a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .action-week { grid-template-columns: repeat(4, 1fr); }
  .action-day:nth-child(4n) { border-right: none; }
  .action-day:nth-child(-n+4) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  .action-plan-section,
  .contacts-section { padding-left: 20px; padding-right: 20px; }
  .action-week { grid-template-columns: 1fr 1fr; }
  .action-day { border-right: 1px solid var(--rule2) !important; min-height: 180px; }
  .action-day:nth-child(2n) { border-right: none !important; }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .action-week { grid-template-columns: 1fr; }
  .action-day { border-right: none !important; border-bottom: 1px solid var(--rule); min-height: auto; }
  .action-day:last-child { border-bottom: none; }
}

@media (max-width: 880px) {
  .prevention-grid { grid-template-columns: 1fr; }
  .prevention-card { border-right: none !important; border-bottom: 1px solid var(--rule) !important; }
  .prevention-card:last-child { border-bottom: none !important; }
  .prevention-actions { grid-template-columns: 1fr; }
  .prevention-action { border-right: none; border-bottom: 1px solid var(--rule); }
  .prevention-action:last-child { border-bottom: none; }
}

/* ===== SPRINT 2+3 ADDITIONS ===== */

/* Skeleton loaders */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton-card {
  height: 160px;
  border: 1px solid var(--rule);
  background: linear-gradient(90deg, var(--paper2) 25%, var(--paper) 50%, var(--paper2) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-card { animation: none; background: var(--paper2); }
}

/* Audience switch */
.masthead-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.audience-switch {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.aud-btn {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-mut);
  cursor: pointer;
  transition: all 0.15s;
}
.aud-btn:hover { color: var(--ink); border-color: var(--ink-mut); }
.aud-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Filter bar — visible by default */
.filter-bar {
  background: var(--paper2);
  border: 1px solid var(--rule);
  border-top: none;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.filter-bar-main {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar .search-box { flex: 1 1 200px; min-width: 140px; }
.filter-bar .sort-select { flex: 0 0 auto; }
.filter-bar .btn-export { flex-shrink: 0; }

/* HSPA abbr tooltip */
.hspa-abbr {
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-mut2);
  cursor: help;
}

/* Hero HSPA one-liner */
.ed-hero-hspa-line {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mut);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 6px 0 16px;
}
.ed-hero-hspa-line a { color: var(--red); text-decoration: none; }
.ed-hero-hspa-line a:hover { text-decoration: underline; }

/* Empty state with CTA */
.empty-state-msg {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-mut);
}
.empty-state-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.empty-state-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.empty-state-btn:hover { background: var(--red); border-color: var(--red); }
.empty-state-btn-sec { background: transparent; color: var(--ink); }
.empty-state-btn-sec:hover { background: var(--ink); color: var(--paper); }

/* HSPA abbr in topbar doesn't underline on dark bg */
.topbar .hspa-abbr { border-bottom-color: rgba(255,255,255,0.3); }

@media (max-width: 640px) {
  .audience-switch { margin-left: 0; }
  .filter-bar-main { flex-direction: column; align-items: stretch; }
  .filter-bar .sort-select, .filter-bar .btn-export { width: 100%; }
}

/* O projektu stránka */
.ed-about-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.ed-about-block:last-child { border-bottom: none; }
.ed-about-block h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mut);
  margin: 0 0 12px;
}
.ed-about-block p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 10px;
}
.ed-about-block p:last-child { margin-bottom: 0; }
.ed-about-sources {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  padding-left: 20px;
  margin: 0 0 10px;
}
.ed-about-sources li { margin-bottom: 4px; }
.ed-about-block code {
  font-family: monospace;
  font-size: 13px;
  background: var(--paper2);
  padding: 1px 6px;
  border: 1px solid var(--rule);
}

/* === Narrative section (4-step: Jak jsme na tom / Proč / Kdo / Jak poznáme) === */
.ed-narrative {
  padding: 56px var(--content-pad) 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.ed-narrative-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin: 0 0 12px;
}
.ed-narrative-headline {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
}
.ed-narrative-lead {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-mut);
  margin: 0 0 40px;
  max-width: 620px;
  line-height: 1.6;
}
.ed-narrative-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}
.ed-narrative-step {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
}
.ed-narrative-step:last-child { border-right: none; }
.ed-narrative-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin: 0 0 10px;
}
.ed-narrative-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.ed-narrative-desc {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mut);
  margin: 0 0 16px;
}
.ed-narrative-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ed-narrative-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  text-decoration: none;
}
.ed-narrative-links a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .ed-narrative-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-narrative-step:nth-child(2) { border-right: none; }
  .ed-narrative-step:nth-child(1),
  .ed-narrative-step:nth-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .ed-narrative-grid { grid-template-columns: 1fr; }
  .ed-narrative-step { border-right: none; border-bottom: 1px solid var(--rule); }
  .ed-narrative-step:last-child { border-bottom: none; }
}

/* === Success stories section (Kde Česko vede) === */
.ed-success {
  background: var(--paper2);
  padding: 56px var(--content-pad) 56px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ed-success-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.ed-success-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mut);
  margin: 0 0 12px;
}
.ed-success-headline {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.35;
  max-width: 600px;
}
.ed-success-lead {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-mut);
  margin: 0 0 36px;
  max-width: 560px;
  line-height: 1.6;
}
.ed-success-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ed-success-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 24px 20px;
}
.ed-success-icon {
  font-size: 14px;
  color: var(--red);
  margin: 0 0 12px;
}
.ed-success-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
}
.ed-success-desc {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mut);
  margin: 0 0 14px;
}
.ed-success-link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  text-decoration: none;
}
.ed-success-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .ed-success-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ed-success-grid { grid-template-columns: 1fr; }
}

/* Patient story block in indicator modal */
.patient-story {
  margin: 24px 0 0;
  padding: 20px 20px 20px 16px;
  border-left: 3px solid var(--red);
  background: var(--paper2);
}
.patient-story-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin: 0 0 10px;
}
.patient-story p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 10px;
}
.patient-story p:last-child { margin-bottom: 0; }

/* === Tematické linie — list view === */
.theme-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--content-pad) 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.theme-card {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  gap: 0 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.theme-card:first-child { border-top: 1px solid var(--rule); }
.theme-card:hover { background: var(--paper2); }
.theme-card-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  padding-top: 4px;
}
.theme-card-body { min-width: 0; }
.theme-card-kicker {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mut);
  margin: 0 0 6px;
}
.theme-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
}
.theme-card:hover .theme-card-title { color: var(--red); }
.theme-card-headline {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.5;
}
.theme-card-lead {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-mut);
  margin: 0 0 12px;
  line-height: 1.6;
}
.theme-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.theme-meta-item {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut);
  background: var(--paper2);
  padding: 2px 8px;
  border: 1px solid var(--rule);
}
.theme-meta-bad {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--paper);
  background: #c0392b;
  padding: 2px 8px;
}
.theme-meta-good {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--paper);
  background: #27ae60;
  padding: 2px 8px;
}
.theme-card-arrow {
  font-size: 18px;
  color: var(--ink-mut);
  padding-top: 2px;
  transition: transform 0.1s, color 0.1s;
}
.theme-card:hover .theme-card-arrow { color: var(--red); transform: translateX(4px); }

/* === Tematické linie — detail view === */
.theme-detail { display: block; }
.theme-detail-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--content-pad) 0;
}
.theme-back-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mut);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.theme-back-btn:hover { color: var(--red); }
.theme-detail-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--content-pad) 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.theme-section {}
.theme-section-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mut);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

/* Indicator rows */
.theme-ind-grid { display: flex; flex-direction: column; gap: 0; }
.theme-ind-row {
  display: grid;
  grid-template-columns: 90px 1fr 130px 130px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.theme-ind-row:hover { background: var(--paper2); }
.theme-ind-name {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
}
.theme-ind-value {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.theme-ind-year {
  font-weight: 400;
  color: var(--ink-mut);
}
.theme-ind-bench {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mut);
  text-align: right;
}

/* Strategy + explainer grids */
.theme-strat-grid,
.theme-expl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.theme-strat-card,
.theme-expl-card {
  padding: 16px;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  display: block;
}
.theme-strat-card:hover,
.theme-expl-card:hover { border-color: var(--ink); }
.theme-strat-title,
.theme-expl-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
.theme-strat-sub,
.theme-expl-sub {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--ink-mut);
  margin: 0 0 6px;
}
.theme-strat-owner {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .theme-strat-grid,
  .theme-expl-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-ind-row { grid-template-columns: 80px 1fr 110px; }
  .theme-ind-bench { display: none; }
}
@media (max-width: 560px) {
  .theme-card { grid-template-columns: 36px 1fr 24px; gap: 0 12px; }
  .theme-strat-grid,
  .theme-expl-grid { grid-template-columns: 1fr; }
  .theme-ind-row { grid-template-columns: 70px 1fr; }
  .theme-ind-value { display: none; }
}

/* ================================================================
   GLOSÁŘ — stránka glosar.html + inline <abbr> tooltips
   ================================================================ */

/* Inline abbr tooltip (pure CSS) */
.glossary-abbr {
  text-decoration: underline dotted var(--ink-mut2);
  text-underline-offset: 2px;
  cursor: help;
  position: relative;
  white-space: nowrap;
}
.glossary-abbr::after {
  content: attr(data-def);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  padding: 7px 10px;
  border-radius: 3px;
  width: max-content;
  max-width: 280px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.glossary-abbr:hover::after,
.glossary-abbr:focus-visible::after {
  opacity: 1;
}

/* Glosář stránka */
.glossary-search-wrap {
  margin: 0 0 32px;
}
.glossary-search {
  width: 100%;
  max-width: 480px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 14px;
  border: 1px solid var(--rule2);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.glossary-search:focus { border-color: var(--ink); }

.glossary-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 32px;
}
.glossary-alpha-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border: 1px solid var(--rule2);
  background: transparent;
  color: var(--ink-mut);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.glossary-alpha-btn:hover,
.glossary-alpha-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.glossary-group {
  margin: 0 0 32px;
}
.glossary-group-letter {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mut);
  padding: 0 0 8px;
  border-bottom: 2px solid var(--ink);
  margin: 0 0 0;
}
.glossary-term {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.glossary-term:hover { background: var(--paper2); }
.glossary-term-key {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 1px;
}
.glossary-term-body {}
.glossary-term-full {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 3px;
}
.glossary-term-def {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-mut);
  line-height: 1.5;
}
.glossary-empty {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-mut);
  padding: 40px 0;
  text-align: center;
}

@media (max-width: 560px) {
  .glossary-term { grid-template-columns: 90px 1fr; gap: 10px; }
  .glossary-term-key { font-size: 12px; }
}

/* ===== SCHEMA PAGE ===== */

.schema-page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--content-pad) 56px;
}

.schema-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.schema-legend-arrows { margin-bottom: 20px; }
.schema-legend-item { display: flex; align-items: center; gap: 8px; }
.schema-dot {
  width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0;
}
.schema-dot-regulator { background: #1e293b; }
.schema-dot-payer     { background: #1e40af; }
.schema-dot-provider  { background: #166534; }
.schema-dot-patient   { background: #92400e; }
.schema-dot-support   { background: #64748b; }
.schema-line {
  width: 32px; height: 2px; flex-shrink: 0;
}
.schema-line-money   { background: #1a7a4a; }
.schema-line-reg     { background: #0b4fa8; border-top: 2px dashed #0b4fa8; height: 0; }
.schema-line-service { background: #b45f06; }
.schema-line-data    { background: #5c4099; border-top: 2px dotted #5c4099; height: 0; }

.schema-container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.schema-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* SVG node styles */
.schema-node rect {
  stroke-width: 2;
  transition: opacity 0.15s;
  cursor: pointer;
}
.schema-node:focus { outline: none; }
.schema-node:focus rect { stroke-width: 3; }
.schema-node-active rect { filter: drop-shadow(0 0 6px rgba(0,0,0,0.35)); }

.schema-node-regulator rect { fill: #1e293b; stroke: #1e293b; }
.schema-node-payer     rect { fill: #1e40af; stroke: #1e40af; }
.schema-node-provider  rect { fill: #166534; stroke: #166534; }
.schema-node-patient   rect { fill: #92400e; stroke: #92400e; }
.schema-node-support   rect { fill: #f8fafc; stroke: #64748b; stroke-dasharray: 4 3; }

.schema-node-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
.schema-node-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
.schema-node-regulator .schema-node-label,
.schema-node-payer .schema-node-label,
.schema-node-provider .schema-node-label,
.schema-node-patient .schema-node-label { fill: #fff; }
.schema-node-regulator .schema-node-sub,
.schema-node-payer .schema-node-sub,
.schema-node-provider .schema-node-sub,
.schema-node-patient .schema-node-sub { fill: rgba(255,255,255,0.75); }
.schema-node-support .schema-node-label { fill: #1e293b; }
.schema-node-support .schema-node-sub { fill: #64748b; }

/* SVG arrow styles */
.schema-arrow {
  fill: none;
  stroke-width: 1.8;
}
.schema-arrow-money   { stroke: #1a7a4a; }
.schema-arrow-reg     { stroke: #0b4fa8; stroke-dasharray: 6 3; }
.schema-arrow-service { stroke: #b45f06; }
.schema-arrow-data    { stroke: #5c4099; stroke-dasharray: 2 3; }

.schema-arrow-lbl {
  font-family: var(--sans);
  font-size: 9.5px;
  fill: var(--ink-mut2);
  text-anchor: middle;
  pointer-events: none;
  letter-spacing: 0.02em;
}
.schema-arrow-lbl-left  { text-anchor: end; }
.schema-arrow-lbl-right { text-anchor: start; }

/* Info panel */
.schema-panel {
  background: var(--paper2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  min-height: 200px;
  padding: 22px;
}
.schema-hint {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-mut2);
  line-height: 1.6;
  margin: 0;
}
.schema-panel-inner {}
.schema-panel-role {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
}
.schema-role-regulator { background: #1e293b; color: #fff; }
.schema-role-payer     { background: #1e40af; color: #fff; }
.schema-role-provider  { background: #166534; color: #fff; }
.schema-role-patient   { background: #92400e; color: #fff; }
.schema-role-support   { background: #e2e8f0; color: #475569; }

.schema-panel-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 12px;
  line-height: 1.2;
}
.schema-panel-desc {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-mut);
  margin-bottom: 18px;
}
.schema-panel-explainers h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mut2);
  margin-bottom: 8px;
}

/* Mobile fallback */
.schema-fallback {
  display: none;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.schema-fallback h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mut);
  margin-bottom: 16px;
}
.schema-fallback li {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .schema-container { grid-template-columns: 1fr; }
  .schema-panel { min-height: auto; }
}
@media (max-width: 560px) {
  .schema-svg { display: none; }
  .schema-fallback { display: block; }
  .schema-legend { display: none; }
}

/* =========================================================
   Sekce Články — listing (clanky.html) + detail (clanek-*.html)
   Recykluje .ed-kicker, .ed-hero, .ed-areas-h.
   ========================================================= */

/* --- Listing --- */
.article-list-section { padding: 24px 0 8px; }
.article-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border-top: 2px solid var(--ink);
}
.article-list-item { border-bottom: 1px solid var(--rule); }
.article-list-link {
  display: block;
  padding: 28px 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.14s ease, background 0.14s ease;
}
.article-list-link:hover { padding-left: 8px; background: var(--red-soft); }
.article-list-link:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.article-list-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mut);
  margin-bottom: 10px;
}
.article-list-num {
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
}
.article-list-tag {
  font-weight: 600;
  color: var(--ink);
}
.article-list-date { color: var(--ink-mut2); }

.article-list-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 760px;
}
.article-list-link:hover .article-list-title { color: var(--red); }

.article-list-perex {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mut);
  max-width: 720px;
  margin: 0 0 14px;
}
.article-list-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.02em;
}

/* --- Připravujeme --- */
.article-upcoming-section {
  padding: 40px 0 24px;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}
.article-upcoming-lead {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-mut);
  max-width: 720px;
  margin: 0 0 22px;
}
.article-upcoming-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.article-upcoming-list li {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 14px;
  border-left: 2px solid var(--rule);
}
.article-upcoming-list li strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.article-upcoming-foot {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mut);
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.article-upcoming-foot a { color: var(--red); }

/* --- Detail článku --- */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 48px;
}

.article-breadcrumb {
  font-family: var(--sans);
  font-size: 13px;
  margin-bottom: 28px;
}
.article-breadcrumb a {
  color: var(--ink-mut);
  text-decoration: none;
}
.article-breadcrumb a:hover { color: var(--red); }

/* =================================================================
   Redakční fronta /redakce.html
   ================================================================= */
.redakce-section {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  padding: 32px var(--content-pad, 32px);
}
.redakce-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mut2);
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.redakce-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.redakce-row {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.redakce-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut);
}
.redakce-state {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border: 1px solid currentColor;
}
.redakce-state-overdue { color: var(--red); background: rgba(184,54,30,0.06); }
.redakce-state-today { color: var(--good); background: rgba(47,107,31,0.08); }
.redakce-state-future { color: var(--ink-mut); }
.redakce-state-quarantine { color: var(--warn); background: rgba(160,90,8,0.08); }
.redakce-row-quarantined {
  background: rgba(160,90,8,0.04);
  padding: 14px 16px;
  border-left: 3px solid var(--warn);
}
.redakce-quarantine-note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mut);
  margin: 8px 0;
  padding: 8px 10px;
  background: var(--paper);
  border-left: 2px solid var(--warn);
}
.redakce-quarantine-note strong { color: var(--warn); }
.redakce-date {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}
.redakce-num { color: var(--ink-mut2); }
.redakce-tag {
  background: var(--paper2);
  padding: 2px 8px;
  font-weight: 500;
}
.redakce-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: 6px 0 8px;
  color: var(--ink);
}
.redakce-title a {
  color: inherit;
  text-decoration: none;
}
.redakce-title a:hover { color: var(--red); }
.redakce-perex {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mut);
  margin: 0 0 10px;
}
.redakce-row-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
}
.redakce-cta {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
}
.redakce-cta:hover { color: var(--ink); border-bottom-color: var(--ink); }
.redakce-id {
  color: var(--ink-mut2);
  font-family: 'JetBrains Mono', Menlo, monospace;
}
.redakce-empty {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-mut);
  margin-top: 24px;
}
.redakce-empty a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.redakce-howto {
  margin: 14px 0 0 22px;
  padding: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mut);
}
.redakce-howto li { margin-bottom: 10px; }
.redakce-howto strong { color: var(--ink); }
.redakce-howto code {
  background: var(--paper2);
  padding: 1px 5px;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.9em;
}

@media (max-width: 720px) {
  .redakce-section { padding: 24px 20px; }
  .redakce-row-head { gap: 8px; }
  .redakce-title { font-size: 18px; }
}

/* =================================================================
   AI disclaimer — clanky.html (hub) + clanek-*.html (per-article)
   ================================================================= */
.ai-disclaimer {
  font-family: var(--serif);
}
.ai-disclaimer-icon {
  font-family: var(--sans);
  font-size: 28px;
  line-height: 1;
  color: var(--red);
  flex-shrink: 0;
}
.ai-disclaimer-icon-small {
  display: inline-block;
  margin-right: 6px;
  color: var(--red);
  font-weight: 700;
}

/* =================================================================
   EPHF infographics — clanek-institut-verejneho-zdravi
   ================================================================= */

.ephf-h {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 28px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* WHO 4 domén — 2x2 grid karet */
.ephf-domains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 12px 0 8px;
}
.ephf-domain {
  background: var(--paper2);
  padding: 18px 20px;
  border-left: 4px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.ephf-domain-1 { border-left-color: #2f6d4f; }
.ephf-domain-2 { border-left-color: #2c5a8a; }
.ephf-domain-3 { border-left-color: #a36728; }
.ephf-domain-4 { border-left-color: #5f4a8c; }

.ephf-domain-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--rule);
}
.ephf-domain-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-mut2);
  letter-spacing: 0.1em;
}
.ephf-domain-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.2px;
  flex-grow: 1;
}
.ephf-domain-tagline {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut);
  font-style: italic;
  width: 100%;
}
.ephf-fn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.ephf-fn-list li {
  padding: 4px 0 4px 18px;
  position: relative;
}
.ephf-fn-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ink-mut2);
}

/* PAHO 11 funkcí — column-numbered list */
.ephf-paho-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}
.ephf-paho-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 14px;
}
.ephf-paho-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-mut2);
}
.ephf-paho-name {
  color: var(--ink);
  line-height: 1.4;
}
.ephf-paho-name em {
  font-size: 12px;
  color: var(--red);
  font-style: italic;
}
.ephf-paho-highlight {
  background: rgba(184,54,30,0.04);
  border-bottom-color: var(--red) !important;
}
.ephf-paho-highlight .ephf-paho-num { color: var(--red); }
.ephf-paho-highlight .ephf-paho-name { font-weight: 600; }

@media (max-width: 720px) {
  .ephf-domains { grid-template-columns: 1fr; gap: 14px; }
  .ephf-paho-list { grid-template-columns: 1fr; }
}

/* EPHF assessment 3 pilíře */
.ephf-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 14px 0;
}
.ephf-pillar {
  background: var(--paper2);
  padding: 18px 20px;
  border-top: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.ephf-pillar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ephf-pillar-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.ephf-pillar-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.2px;
}
.ephf-pillar-text {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mut);
  margin: 0;
}

/* Generic bulleted list pro článek */
.article-list-bullets {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  padding-left: 22px;
  margin: 12px 0;
}
.article-list-bullets li {
  margin-bottom: 8px;
  color: var(--ink-mut);
}
.article-list-bullets strong { color: var(--ink); }

@media (max-width: 720px) {
  .ephf-pillars { grid-template-columns: 1fr; }
}

/* Hub variant — prominentní karta na clanky.html */
.ai-disclaimer-hub {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  padding: 24px 28px;
  background: var(--paper2);
  border: 1.5px solid var(--ink);
  border-left: 6px solid var(--red);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  align-items: start;
}
.ai-disclaimer-h {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.25;
}
.ai-disclaimer-lead {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-mut);
  margin: 0 0 10px;
}
.ai-disclaimer-lead strong { color: var(--ink); }

.ai-disclaimer-more {
  margin-top: 8px;
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}
.ai-disclaimer-more > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.02em;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ai-disclaimer-more > summary::-webkit-details-marker { display: none; }
.ai-disclaimer-more > summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
}
.ai-disclaimer-more[open] > summary::after { content: '−'; }
.ai-disclaimer-more > summary:hover { color: var(--ink); }

.ai-disclaimer-steps {
  margin: 12px 0 4px 22px;
  padding: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mut);
}
.ai-disclaimer-steps li { margin-bottom: 8px; }
.ai-disclaimer-steps strong { color: var(--ink); }

.ai-disclaimer-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mut);
}
.ai-disclaimer-foot strong { color: var(--ink); }
.ai-disclaimer-foot em { color: var(--red); font-style: italic; font-weight: 600; }
.ai-disclaimer-foot a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
}
.ai-disclaimer-foot a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Per-article variant — kompaktní pásek pod breadcrumbem */
.ai-disclaimer-article {
  max-width: var(--article-max-w, 760px);
  margin: -16px auto 28px;
  padding: 12px 16px;
  background: var(--paper2);
  border-left: 3px solid var(--red);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mut);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ai-disclaimer-article strong { color: var(--ink); }
.ai-disclaimer-article a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.ai-disclaimer-article a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .ai-disclaimer-hub {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 20px;
  }
  .ai-disclaimer-icon { display: none; }
  .ai-disclaimer-h { font-size: 18px; }
  .ai-disclaimer-lead { font-size: 14.5px; }
  .ai-disclaimer-article { font-size: 12px; flex-direction: column; gap: 4px; }
}

.article-header {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 28px;
  margin-bottom: 36px;
}
.article-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-tag { color: var(--red); }
.article-tag-muted { color: var(--ink-mut2); }

.article-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0 0 22px;
}

.article-deck {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 660px;
}

.article-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mut);
}
.article-meta-sep { margin: 0 8px; color: var(--rule2); }

/* Tělo článku — prose */
.article-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.article-body p {
  margin: 0 0 22px;
}
.article-body .article-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--red);
  padding-left: 18px;
  margin-bottom: 32px;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 38px 0 18px;
}
.article-body strong { font-weight: 700; }
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--red); }

/* Datový rámec */
.article-databox {
  margin: 48px 0 0;
  padding: 28px 28px 24px;
  background: var(--paper2);
  border-left: 3px solid var(--red);
}
.article-databox-h {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
}
.article-databox-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-databox-list li {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.article-databox-list li:last-child { border-bottom: none; }
.article-databox-list a {
  color: var(--ink);
  text-decoration: none;
}
.article-databox-list a:hover { color: var(--red); text-decoration: underline; }

/* Zdroje */
.article-sources {
  margin: 36px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
}
.article-sources-h {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 18px;
  color: var(--ink);
}
.article-sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-sources-list li {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-mut);
}
.article-sources-list li:last-child { border-bottom: none; }
.article-sources-list strong { color: var(--ink); }
.article-sources-list a { color: var(--red); text-decoration: none; }
.article-sources-list a:hover { text-decoration: underline; }
.sources-group {
  margin: 0 0 18px;
}
.sources-group:last-of-type { margin-bottom: 0; }
.sources-group-h {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mut);
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ink);
}
.article-sources-disclaimer {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mut);
  margin-top: 18px;
  padding: 14px;
  background: var(--paper2);
}

.article-nav-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
}
.article-nav-back {
  color: var(--ink-mut);
  text-decoration: none;
}
.article-nav-back:hover { color: var(--red); }

@media (max-width: 720px) {
  .article-list-title { font-size: 24px; }
  .article-title { font-size: 34px; letter-spacing: -0.6px; }
  .article-deck { font-size: 18px; }
  .article-body { font-size: 17px; }
  .article-body .article-lead { font-size: 18px; }
  .article-body h3 { font-size: 22px; }
  .article-upcoming-list { grid-template-columns: 1fr; }
  .article-databox { padding: 20px; }
}

/* =========================================================
   Manifest — vizuální odlišení od redakčních článků
   ========================================================= */

/* Listing — manifest item má sytější pozadí a žlutý prouek vlevo */
.article-list-item-manifest .article-list-link {
  background: var(--paper2);
  border-left: 4px solid var(--warn);
  padding-left: 18px;
}
.article-list-item-manifest .article-list-link:hover {
  background: var(--red-soft);
}
.article-list-tag-manifest {
  background: var(--warn);
  color: var(--paper);
  padding: 2px 8px;
  letter-spacing: 0.06em !important;
}

/* Tag v hlavičce článku */
.article-tag-manifest {
  background: var(--warn);
  color: var(--paper);
  padding: 2px 10px;
  letter-spacing: 0.08em !important;
}

/* Stránka manifestu — zachovává typografii, ale dává jí jiný tón */
.article-page-manifest .article-title {
  /* podtržení pro odlišení */
}

/* Editorial-note — výrazný box, který musí být na první pohled vidět */
.editorial-note {
  margin: 0 0 32px;
  padding: 20px 24px;
  background: var(--paper2);
  border-left: 4px solid var(--warn);
  font-family: var(--serif);
}
.editorial-note-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: 10px;
}
.editorial-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.editorial-note p strong { color: var(--ink); }
.editorial-note p em { color: var(--ink-mut); font-style: italic; }

@media (max-width: 720px) {
  .editorial-note { padding: 16px 18px; }
  .editorial-note p { font-size: 14px; }
}

/* =========================================================
   Časová osa HSPA — historie-hspa.html
   ========================================================= */

.timeline-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px var(--content-pad, 32px) 32px;
}
.timeline-section + .timeline-section {
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}

/* Dvousloupcová časová osa (Globální vlevo, Česká vpravo, zarovnané v 1960 — vznik ÚZIS) */
.timeline-pair {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--content-pad, 32px) 48px;
}
.timeline-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  margin-top: 24px;
}
.timeline-pair-col h4 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.timeline-pair-col .timeline-col-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mut);
  margin-bottom: 16px;
}
.timeline-pair-col-cz {
  /* Česká cesta začíná 1960 — vizuální offset proti globální (1948) */
  margin-top: 96px;
}
@media (max-width: 720px) {
  .timeline-pair-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 16px;
  }
  .timeline-pair-col-cz { margin-top: 0; }
  .timeline-pair-col + .timeline-pair-col {
    border-top: 1px solid var(--rule);
    padding-top: 24px;
  }
}

.timeline {
  list-style: none;
  padding: 0 0 0 24px;
  margin: 24px 0 0;
  position: relative;
  border-left: 2px solid var(--rule2);
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 32px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-mut2);
}
.timeline-item-key::before {
  background: var(--red);
  border-color: var(--red);
}

.timeline-year {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-mut);
  margin-bottom: 6px;
}
.timeline-item-key .timeline-year {
  color: var(--red);
}

.timeline-card {
  background: var(--paper);
}

.timeline-card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0 0 10px;
}

.timeline-card p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 8px;
}

.timeline-card p.timeline-source {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mut);
  margin-top: 8px;
}
.timeline-card p.timeline-source a {
  color: var(--red);
  text-decoration: none;
}
.timeline-card p.timeline-source a:hover { text-decoration: underline; }

.timeline-disclaimer-section p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-mut);
  margin: 12px 0;
}

@media (max-width: 720px) {
  .timeline-section { padding: 16px 16px 24px; }
  .timeline-card h4 { font-size: 19px; }
  .timeline-card p { font-size: 15px; }
}

/* Homepage — blok nejnovějších článků */
.home-articles {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--content-pad, 32px) 32px;
  border-top: 1px solid var(--rule);
}

/* Prominent variant — když articles tvoří hlavní sekci hned po hero */
.home-articles-prominent {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-top: 48px;
  padding-bottom: 48px;
  margin-bottom: 32px;
  background: var(--paper);
}
.home-articles-prominent .home-article-card {
  border: 1px solid var(--rule);
  background: var(--paper2);
  transition: background 0.12s, transform 0.12s;
}
.home-articles-prominent .home-article-card:hover {
  background: var(--paper);
  transform: translateX(2px);
}

/* =================================================================
   /hspa-prehled.html — O HSPA stránka (per design V2 about.jsx)
   ================================================================= */
.hspa-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: 48px 40px 28px;
  border-bottom: 1px solid var(--rule);
  max-width: var(--max-w);
  margin: 0 auto;
}
.hspa-hero-headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -1.4px;
  margin: 12px 0 22px;
  max-width: 760px;
  color: var(--ink);
}
.hspa-hero-lead {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-mut);
  max-width: 680px;
}
.hspa-hero-lead p { margin: 0 0 12px; }
.hspa-hero-lead strong { color: var(--ink); }
.hspa-hero-side {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  align-self: start;
}
.hspa-hero-date {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  margin-top: 6px;
  line-height: 1.1;
  color: var(--ink);
}
.hspa-hero-date-sub {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-mut);
  margin-top: 4px;
}
.hspa-hero-meta {
  border-top: 1px solid var(--rule);
  margin-top: 18px;
  padding-top: 12px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
}
.hspa-hero-meta > div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.hspa-hero-meta dt { display: inline; }
.hspa-hero-meta dd { display: inline; color: var(--ink); margin: 0; text-align: right; }

/* 6 dimensions grid */
.hspa-dims-section {
  padding: 40px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.hspa-dims-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  margin: 8px 0 12px;
  letter-spacing: -0.6px;
  color: var(--ink);
}
.hspa-dims-lead {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-mut);
  max-width: 820px;
  margin: 0 0 22px;
}
.hspa-dims-lead a { color: var(--red); text-decoration: none; }
.hspa-dims-lead a:hover { text-decoration: underline; }

.hspa-dims-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hspa-dim-card {
  border-top: 2px solid var(--dim-color, var(--ink));
  padding-top: 14px;
  display: flex;
  flex-direction: column;
}
.hspa-dim-card-num {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim-color, var(--ink));
}
.hspa-dim-card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  margin: 6px 0 8px;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.hspa-dim-card-desc {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-mut);
  line-height: 1.5;
  margin: 0 0 16px;
}
.hspa-dim-card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.hspa-dim-card-score {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 38px;
  color: var(--dim-color, var(--ink));
  line-height: 1;
}
.hspa-dim-card-score-unit {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  font-weight: 400;
  margin-left: 2px;
}
.hspa-dim-card-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut2);
  margin-top: 4px;
}
.hspa-dim-card-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
}
.hspa-dim-card-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 880px) {
  .hspa-hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 20px 24px; }
  .hspa-hero-headline { font-size: 42px; letter-spacing: -1px; }
  .hspa-dims-grid { grid-template-columns: 1fr 1fr; }
  .hspa-dims-section { padding: 32px 20px; }
  .hspa-dims-h { font-size: 26px; }
}
@media (max-width: 560px) {
  .hspa-dims-grid { grid-template-columns: 1fr; }
}

/* Timeline 2000-2026 */
.hspa-timeline-section {
  padding: 40px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.hspa-timeline {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  position: relative;
}
.hspa-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--rule2);
}
.hspa-timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 14px 0;
  position: relative;
}
.hspa-timeline-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-radius: 50%;
}
.hspa-timeline-current::before { background: var(--red); }
.hspa-timeline-year {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  padding-left: 24px;
  color: var(--ink);
}
.hspa-timeline-current .hspa-timeline-year { color: var(--red); }
.hspa-timeline-body h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--ink);
}
.hspa-timeline-body p {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-mut);
  margin: 0;
  line-height: 1.5;
  max-width: 700px;
}
.hspa-timeline-body a { color: var(--red); text-decoration: none; }
.hspa-timeline-body a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .hspa-timeline-section { padding: 32px 20px; }
  .hspa-timeline-item { grid-template-columns: 80px 1fr; gap: 16px; }
  .hspa-timeline-year { font-size: 20px; padding-left: 20px; }
}

/* 4-step diagram (jak funguje) */
.hspa-flow-section {
  padding: 40px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.hspa-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 14px;
}
.hspa-flow-step {
  background: var(--paper2);
  padding: 22px;
  border: 1px solid var(--rule);
}
.hspa-flow-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  color: var(--red);
  line-height: 1;
}
.hspa-flow-step h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  margin: 10px 0 6px;
  color: var(--ink);
}
.hspa-flow-step p {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-mut);
  margin: 0 0 10px;
  line-height: 1.5;
}
.hspa-flow-stat {
  border-top: 1px solid var(--rule2);
  padding-top: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
}
.hspa-flow-more {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-mut);
  margin-top: 24px;
  font-style: italic;
}
.hspa-flow-more a {
  color: var(--red);
  text-decoration: none;
  font-style: normal;
  font-weight: 600;
}
.hspa-flow-more a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .hspa-flow-grid { grid-template-columns: 1fr 1fr; }
  .hspa-flow-section { padding: 32px 20px; }
}
@media (max-width: 480px) {
  .hspa-flow-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   6 HSPA dimenzí — index na homepage (per design V2)
   ================================================================= */
.ed-dims {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  padding: 0 var(--content-pad, 32px);
}
.ed-dims-headline {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 8px 0 22px;
  line-height: 1.2;
}
.ed-dims-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ed-dim {
  display: block;
  padding: 18px 16px;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid var(--rule);
  transition: background 0.12s;
}
.ed-dim:last-child { border-right: none; }
.ed-dim:hover { background: var(--paper2); }
.ed-dim-num {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim-color, var(--ink));
}
.ed-dim-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  margin-top: 6px;
  line-height: 1.2;
}
.ed-dim-score {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 38px;
  margin-top: 14px;
  color: var(--dim-color, var(--ink));
  line-height: 1;
}
.ed-dim-score-unit {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mut2);
  margin-left: 2px;
}
.ed-dim-meta {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink-mut2);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.ed-dim-bar {
  margin-top: 10px;
  height: 4px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.ed-dim-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--dim-color, var(--ink));
  transition: width 0.4s;
}
.ed-dims-more {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
}
.ed-dims-more:hover { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 880px) {
  .ed-dims-grid { grid-template-columns: repeat(3, 1fr); }
  .ed-dim:nth-child(3n) { border-right: none; }
  .ed-dim:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .ed-dims-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-dim { border-right: 1px solid var(--rule) !important; border-bottom: 1px solid var(--rule); }
  .ed-dim:nth-child(2n) { border-right: none !important; }
}

/* HSPA promo card — kompaktní poutač na podstránku */
.ed-promo {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  padding: 0 var(--content-pad, 32px);
}
.ed-promo-card {
  display: block;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.ed-promo-card:hover { background: var(--paper2); }
.ed-promo-inner {
  padding: 28px 32px;
}
.ed-promo-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1.2;
  margin: 8px 0;
}
.ed-promo-desc {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-mut);
  max-width: 720px;
}
@media (max-width: 720px) {
  .ed-promo-title { font-size: 22px; }
  .ed-promo-inner { padding: 22px 20px; }
}
.home-articles-lead {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mut);
  margin: 0 0 24px;
}
.home-articles-all {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  margin-left: 12px;
  white-space: nowrap;
}
.home-articles-all:hover { text-decoration: underline; }
.home-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: home-art;
}
.home-article-card {
  border-top: 2px solid var(--ink);
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.home-article-link:hover .home-article-title { color: var(--red); }
.home-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mut);
}
.home-article-num {
  font-weight: 700;
  color: var(--red);
}
.home-article-tag {
  border: 1px solid var(--rule2);
  padding: 2px 8px;
  border-radius: 2px;
}
.home-article-title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  transition: color 0.15s;
}
.home-article-perex {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mut);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-article-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  margin-top: auto;
  padding-top: 6px;
}
@media (max-width: 880px) {
  .home-articles-grid { grid-template-columns: 1fr; gap: 24px; }
  .home-articles { padding: 40px 20px 24px; }
}

/* Související články — chip strip na konci každé Jak funguje kategorie */
.cat-articles {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
}
.cat-articles-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mut);
  margin-bottom: 12px;
}
.cat-articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-article-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid var(--rule2);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  max-width: 360px;
  transition: border-color 0.15s, color 0.15s;
}
.cat-article-chip:hover {
  border-color: var(--red);
  color: var(--red);
}
.cat-article-chip-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mut);
}
.cat-article-chip-title {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

/* Časová osa — collapse pomocí <details>/<summary> */
.timeline-pair-details {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--content-pad, 32px) 32px;
}
.timeline-pair-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s;
}
.timeline-pair-summary::-webkit-details-marker { display: none; }
.timeline-pair-summary:hover { border-bottom-color: var(--ink); }
.timeline-pair-summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.timeline-pair-summary-inner { flex: 1; }
.timeline-pair-summary-inner > * { margin-top: 0; }
.timeline-pair-summary-inner .ed-flow-lead { margin-bottom: 0; }
.timeline-pair-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.timeline-pair-summary:hover .timeline-pair-toggle {
  background: var(--ink);
  color: var(--paper);
}
.timeline-pair-toggle-icon {
  font-size: 14px;
  transition: transform 0.2s;
  display: inline-block;
}
.timeline-pair-details[open] .timeline-pair-toggle-icon {
  transform: rotate(180deg);
}
.timeline-pair-details[open] .timeline-pair-toggle-text::before {
  content: 'Sbalit ';
}
.timeline-pair-details[open] .timeline-pair-toggle-text {
  font-size: 0;
}
.timeline-pair-details[open] .timeline-pair-toggle-text::before {
  content: 'Sbalit časovou osu';
  font-size: 13px;
}
.timeline-pair-details[open] .timeline-pair {
  animation: timelineFadeIn 0.25s ease-out;
}
@keyframes timelineFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .timeline-pair-summary {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .timeline-pair-toggle { justify-content: center; }
}

/* Hamburger menu — slide-in drawer pro mobil (<720px) */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule2);
  border-radius: 4px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.mobile-nav-toggle:hover { background: var(--paper2); border-color: var(--ink); }
.mobile-nav-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.mobile-nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.mobile-nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
body.mobile-nav-open .mobile-nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.mobile-nav-open .mobile-nav-toggle-bars span:nth-child(2) { opacity: 0; }
body.mobile-nav-open .mobile-nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
body.mobile-nav-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  z-index: 9100;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
body.mobile-nav-open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
}
.mobile-nav-drawer-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mut);
}
.mobile-nav-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-close:hover { background: var(--paper2); }
.mobile-nav-close:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.mobile-nav-list .module-tab {
  border-bottom: 1px solid var(--rule);
  padding: 16px 20px;
  font-size: 15px;
  white-space: normal;
  min-height: 56px;
  border-radius: 0;
  border-bottom-width: 1px;
}
.mobile-nav-list .module-tab.active {
  background: var(--paper2);
  border-bottom-color: var(--rule);
  border-left: 3px solid var(--red);
  padding-left: 17px;
}

@media (max-width: 720px) {
  .mobile-nav-toggle { display: inline-flex; }
  /* Skryjeme inline module-nav v topbaru — místo ní hamburger */
  header.topbar .module-nav { display: none; }
  header.topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .brand { flex: 1; min-width: 0; }
}

/* Lock scroll when drawer open */
body.mobile-nav-open { overflow: hidden; }

/* Scroll-to-top FAB — kulaté tlačítko vpravo dole, viditelné po scrollování */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  z-index: 8500;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover { background: var(--red); }
.scroll-top-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Když je otevřený mobilní drawer, schováme FAB aby nebyl nad backdrop */
body.mobile-nav-open .scroll-top-btn {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .scroll-top-btn {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn { transition: opacity 0.1s; transform: none !important; }
}

/* Newsletter blok ve footeru — globální komponenta na každé stránce */
.newsletter-block {
  background: var(--paper2);
  border-bottom: 1px solid var(--rule);
  padding: 36px var(--content-pad, 32px);
  margin: 0 calc(-1 * var(--content-pad, 32px));
}
.newsletter-inner {
  max-width: 720px;
  margin: 0 auto;
}
.newsletter-h {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 6px 0 8px;
  color: var(--ink);
}
.newsletter-lead {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mut);
  margin: 0 0 18px;
}
.newsletter-form-slot {
  margin-top: 8px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 12px 14px;
  border: 1px solid var(--rule2);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  min-height: 44px;
}
.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--ink);
}
.newsletter-submit {
  padding: 12px 22px;
  border: none;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.15s;
}
.newsletter-submit:hover { background: var(--red); }
.newsletter-submit:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-mut);
  cursor: pointer;
}
.newsletter-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.newsletter-status {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0 0;
  min-height: 1.5em;
  color: var(--ink);
}
.newsletter-status[data-tone="error"] { color: #b3261e; }
.newsletter-status[data-tone="info"] {
  color: var(--ink);
  background: var(--paper);
  border-left: 3px solid var(--red);
  padding: 10px 12px;
}
.newsletter-foot {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mut);
  margin: 16px 0 0;
}
.newsletter-foot a { color: var(--red); text-decoration: none; }
.newsletter-foot a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .newsletter-block { padding: 28px 20px; margin: 0 -20px; }
  .newsletter-h { font-size: 22px; }
  .newsletter-form { gap: 10px; }
  .newsletter-form input[type="email"] { min-width: 0; width: 100%; }
  .newsletter-submit { width: 100%; }
}

/* Articles hero — 2-sloupcový layout (left = ed-hero-content, right = upcoming).
   Resetujeme parent .ed-hero grid (1.6fr 1fr), aby se náš vnořený grid
   roztáhl na celou šířku místo toho, aby se vmáčkl do první kolony. */
.articles-hero {
  display: block;
}
.articles-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  column-gap: 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--content-pad, 32px);
  align-items: start;
}
.upcoming-articles {
  background: var(--paper2);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 24px 22px;
  margin-top: 8px;
  position: sticky;
  top: 16px;
}
.upcoming-h {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 6px 0 16px;
  color: var(--ink);
}
.upcoming-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: upcoming;
}
.upcoming-list li {
  counter-increment: upcoming;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upcoming-list li:last-child { border-bottom: none; }
.upcoming-list li::before {
  content: counter(upcoming, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
}
.upcoming-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mut);
}
.upcoming-title {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
.upcoming-lead {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-mut);
  margin: 16px 0 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}
.upcoming-cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--ink);
  transition: background 0.15s, color 0.15s;
}
.upcoming-cta:hover {
  background: var(--red);
  border-color: var(--red);
}
.upcoming-cta-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

@media (max-width: 880px) {
  .articles-hero-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 32px;
  }
  .upcoming-articles {
    position: static;
    margin-top: 0;
  }
}

/* MailerLite iframe — newsletter signup */
.newsletter-iframe {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--rule);
  background: var(--paper);
  display: block;
}
@media (max-width: 720px) {
  .newsletter-iframe { min-height: 560px; }
}

/* Article figure — společný kontejner pro infografiky v článcích */
.article-figure {
  margin: 32px 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.article-figure-caption {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mut);
  margin-bottom: 14px;
}
.article-figure-source {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-mut);
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
}

.article-callout {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--ink);
  background: var(--bg-soft, #f5f3ee);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.article-callout p {
  margin: 0;
}
.article-callout p + p {
  margin-top: 10px;
}

/* Article flow — side-by-side income / expense layout */
.article-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.article-flow-side h5 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.article-flow-in h5 { color: var(--good); border-bottom-color: var(--good); }
.article-flow-out h5 { color: var(--bad); border-bottom-color: var(--bad); }
@media (max-width: 720px) {
  .article-flow { grid-template-columns: 1fr; gap: 24px; }
}
.article-bar-chart {
  width: 100%;
  height: auto;
  max-width: 720px;
  display: block;
}

/* Waffle chart — 10×10 grid se 100 buňkami, pct přes data-pct */
.waffle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 8px 0 4px;
}
.waffle { text-align: left; }
.waffle-100 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 3px;
  aspect-ratio: 1 / 1;
  max-width: 200px;
  margin-bottom: 12px;
}
.waffle-100 span {
  background: var(--rule);
  display: block;
}
.waffle-100 span.f { background: var(--red); }
.waffle-stat {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}
.waffle-label {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

@media (max-width: 720px) {
  .waffle-grid { grid-template-columns: 1fr; gap: 24px; }
  .waffle-100 { max-width: 240px; margin: 0 auto 12px; }
  .waffle { text-align: center; }
}

/* SHA donut chart — 3 conic-gradient donuts vedle sebe */
.sha-donut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 8px 0 4px;
}
.sha-donut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}
.sha-donut-h {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
  text-align: center;
}
.sha-donut {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--seg, conic-gradient(var(--rule), var(--rule)));
  position: relative;
  margin: 0 auto 16px;
}
.sha-donut::before {
  content: '';
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: var(--paper);
}
.sha-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  z-index: 1;
}
.sha-donut-center strong {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.sha-donut-center span {
  font-size: 11px;
  line-height: 1.25;
  color: var(--ink-mut);
  margin-top: 4px;
}
.sha-donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.sha-donut-legend li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px dotted var(--rule);
}
.sha-donut-legend li:last-child { border-bottom: none; }
.sha-donut-legend em {
  font-style: normal;
  font-weight: 600;
  margin-left: auto;
  color: var(--ink);
  white-space: nowrap;
}
.sha-donut-legend .sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .sha-donut-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* DRG paušál scénáře — srovnávací tabulka v článku */
.drg-scenarios {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  margin: 8px 0 4px;
}
.drg-scenarios th,
.drg-scenarios td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--rule);
}
.drg-scenarios thead th {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mut);
  border-bottom: 2px solid var(--ink);
}
.drg-scenarios thead th:first-child,
.drg-scenarios tbody th {
  text-align: left;
}
.drg-scenarios tbody th {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
}
.drg-scenarios tbody tr.drg-bad td:last-child {
  color: #a4262c;
  font-weight: 700;
}
.drg-scenarios tbody tr.drg-cap td:nth-child(3),
.drg-scenarios tbody tr.drg-cap td:nth-child(4) {
  font-style: italic;
  color: var(--ink-mut);
}
.drg-scenarios .drg-neutral { color: var(--ink-mut); }

@media (max-width: 720px) {
  .drg-scenarios { font-size: 13px; }
  .drg-scenarios th,
  .drg-scenarios td { padding: 10px 8px; }
}

/* SHA comparison — 3 small bar charts (HDP %, public %, OOP %) */
.sha-comp-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 28px;
  margin: 8px 0 4px;
}
.sha-comp-card { display: flex; flex-direction: column; }
.sha-comp-h {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.sha-comp-sub {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mut);
  margin: 2px 0 12px;
}
.sha-comp-bars {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sha-comp-bars li {
  display: grid;
  grid-template-columns: 86px 1fr 36px;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  font-family: var(--sans);
  font-size: 12px;
}
.sha-comp-lbl {
  text-align: right;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.sha-comp-bar {
  display: block;
  height: 14px;
  width: var(--w, 0%);
  background: var(--ink);
  min-width: 2px;
}
.sha-comp-bar-mut { background: #9a8f86; }
.sha-comp-bar-cz { background: #a4262c; }
.sha-comp-val {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.sha-comp-cz .sha-comp-lbl,
.sha-comp-cz .sha-comp-val { color: #a4262c; font-weight: 700; }
.sha-comp-note {
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-mut);
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
}

@media (max-width: 880px) {
  .sha-comp-grid { grid-template-columns: 1fr; gap: 32px; }
  .sha-comp-bars li { grid-template-columns: 100px 1fr 40px; }
}

/* Kapitace VPL — staircase chart se 4 kroky */
.kapitace-stairs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: end;
  margin: 8px 0 4px;
  min-height: 240px;
}
.kapitace-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.kapitace-bar {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  height: 200px;
  position: relative;
  background: var(--paper2);
  border-bottom: 2px solid var(--ink);
}
.kapitace-base {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  width: 100%;
}
.kapitace-bonus {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  width: 100%;
  border-top: 1px solid var(--paper);
  position: relative;
}
.kapitace-bonus:hover::after {
  content: attr(data-lbl);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -22px;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 8px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 2;
}
.kapitace-lbl {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-mut);
  margin: 8px 4px 4px;
}
.kapitace-tot {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.kapitace-step-max .kapitace-tot { color: var(--red); }

@media (max-width: 720px) {
  .kapitace-stairs {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-height: 0;
  }
}

/* Vakcinace gauge — horizontální track s WHO target a OECD markerem */
.vakc-gauges {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 8px 0 4px;
}
.vakc-gauge { display: flex; flex-direction: column; }
.vakc-gauge-h {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 30px;
}
.vakc-gauge-track {
  position: relative;
  height: 28px;
  background: var(--paper2);
  border: 1px solid var(--rule);
  width: 100%;
}
.vakc-gauge-fill {
  height: 100%;
  background: var(--ink);
}
.vakc-gauge-fill-cz { background: #a4262c; }
.vakc-gauge-fill-oecd {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #6f6760;
}
.vakc-gauge-fill-oecd::after {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 8px;
  background: #6f6760;
  transform: rotate(45deg);
}
.vakc-gauge-target {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink);
}
.vakc-gauge-target-lbl {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 6px;
  white-space: nowrap;
}
.vakc-gauge-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 13px;
  margin-top: 8px;
}
.vakc-cz { color: #a4262c; font-weight: 700; }
.vakc-gauge-mut { color: var(--ink-mut); }

/* PYLL drivers — comparison table */
.pyll-drivers {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  margin: 8px 0 4px;
}
.pyll-drivers th,
.pyll-drivers td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--rule);
}
.pyll-drivers thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mut);
  border-bottom: 2px solid var(--ink);
}
.pyll-drivers thead th:first-child,
.pyll-drivers tbody th { text-align: left; }
.pyll-drivers tbody th {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
}
.pyll-drivers tbody tr:first-child {
  background: var(--paper2);
}
.pyll-drivers tbody tr:first-child th { font-weight: 700; }
.pyll-drivers .pyll-bad {
  color: #a4262c;
  font-weight: 700;
}

/* Cekani — country comparison table */
.cekani-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  margin: 8px 0 4px;
}
.cekani-table th,
.cekani-table td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.cekani-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mut);
  border-bottom: 2px solid var(--ink);
}
.cekani-table tbody th {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.cekani-row-cz {
  background: rgba(164, 38, 44, 0.05);
}
.cekani-row-cz th { color: #a4262c; }
.cekani-row-cz td:nth-child(2) {
  font-size: 16px;
  font-weight: 700;
  color: #a4262c;
}
.cekani-empty {
  color: #a4262c;
  font-style: italic;
}
.cekani-mut { color: var(--ink-mut); font-style: italic; }

/* CMP funnel — 3 stage pathway */
.cmp-funnel {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: cmp-funnel;
}
.cmp-stage {
  position: relative;
  padding: 18px 16px 50px;
  background: var(--paper2);
  border-top: 4px solid var(--ink);
}
.cmp-stage-bad { border-top-color: #a4262c; }
.cmp-stage-good { border-top-color: #1a7a4a; }
.cmp-stage-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-mut);
  margin-bottom: 8px;
}
.cmp-stage-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.cmp-stage-desc {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.cmp-stage-tag {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
}
.cmp-stage-bad .cmp-stage-tag { color: #a4262c; border-color: #a4262c; }
.cmp-stage-good .cmp-stage-tag { color: #1a7a4a; border-color: #1a7a4a; }
.cmp-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.cmp-result-lbl {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mut);
  margin-bottom: 6px;
}
.cmp-result-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--serif);
}
.cmp-result-cz { color: var(--ink); font-size: 16px; }
.cmp-result-cz strong { font-size: 28px; color: #a4262c; margin-right: 4px; }
.cmp-result-oecd { color: var(--ink-mut); font-size: 14px; }
.cmp-result-gap {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: #a4262c;
  background: rgba(164, 38, 44, 0.08);
  padding: 4px 10px;
}
.cmp-result-context {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mut);
}

@media (max-width: 880px) {
  .cmp-funnel { grid-template-columns: 1fr; }
  .cmp-result { grid-template-columns: 1fr; }
}

/* RPP — dvoumístní timeline (CZ projektová vs. EU zákonná) */
.rpp-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 8px 0 4px;
}
.rpp-timeline-h {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
@media (max-width: 720px) {
  .rpp-timeline { grid-template-columns: 1fr; gap: 24px; }
}

/* Topic filters — chips na clanky.html */
.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 28px;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--rule2);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-height: 40px;
}
.topic-chip:hover {
  border-color: var(--ink);
  background: var(--paper2);
}
.topic-chip:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.topic-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.topic-chip.active .topic-count {
  background: rgba(255, 255, 255, 0.18);
  color: var(--paper);
}
.topic-count {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  background: var(--paper2);
  color: var(--ink-mut);
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}
.article-list-loading {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-mut);
  padding: 24px 0;
  text-align: center;
}
.article-list-empty {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-mut);
  padding: 32px 16px;
  margin: 16px 0;
  text-align: center;
  background: var(--paper2);
  border: 1px dashed var(--rule);
}

/* Topic mini-chips inline na kartě článku */
.article-list-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}
.article-list-topic {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mut);
  background: var(--paper2);
  padding: 4px 10px;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .topic-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-left: -16px;
    margin-right: -16px;
    padding: 4px 16px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .topic-chip { flex-shrink: 0; }
}

/* ============================================================
 * Pojištěnci — atlas struktury populace (pojistenci.html)
 * ============================================================ */

.pojistenci-section {
  margin: 48px 0;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--rule);
}
.pojistenci-section:last-of-type { border-bottom: none; }

.pojistenci-section-lead {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 880px;
  margin: 8px 0 24px;
}

/* Kontroly: dropdown + slider + autoplay */
.pojistenci-map-controls,
.pojistenci-pyramid-controls,
.pojistenci-zp-controls,
.pojistenci-race-controls,
.pojistenci-okres-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin: 12px 0 24px;
  padding: 16px 18px;
  background: var(--paper2);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.pojistenci-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pojistenci-time-controls {
  flex: 1;
  min-width: 280px;
}

.pojistenci-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.pojistenci-label strong {
  display: inline-block;
  min-width: 3em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--red);
}

.pojistenci-slider {
  flex: 1;
  min-width: 180px;
  height: 32px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.pojistenci-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
}
.pojistenci-slider::-moz-range-track {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
}
.pojistenci-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--red);
  border-radius: 50%;
  margin-top: -7px;
  border: 2px solid var(--paper);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.pojistenci-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--paper);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.pojistenci-slider:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

.pojistenci-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 40px;
}
.pojistenci-play:hover { background: var(--red); border-color: var(--red); }
.pojistenci-play:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.pojistenci-play.is-playing .pojistenci-play-icon::before { content: '⏸'; }
.pojistenci-play.is-playing .pojistenci-play-label { display: none; }
.pojistenci-play-icon { font-size: 14px; line-height: 1; }

/* Mapy a grafy */
.pojistenci-map-wrap,
.pojistenci-pyramid-wrap,
.pojistenci-zp-wrap,
.pojistenci-race-wrap {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.pojistenci-map { width: 100%; height: 540px; }
.pojistenci-pyramid { width: 100%; height: 520px; }
.pojistenci-zp-chart { width: 100%; height: 460px; }
.pojistenci-race { width: 100%; height: 520px; }

/* Drill-down grid */
.pojistenci-okres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.pojistenci-okres-card {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.pojistenci-okres-card-h {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mut);
  margin: 0 0 12px;
}
.pojistenci-okres-chart { width: 100%; height: 280px; }

/* Datový rámec (zdroje) */
.pojistenci-source-section {
  background: var(--paper2);
  padding: 32px 24px !important;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.pojistenci-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 16px;
}
.pojistenci-source-grid h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
}
.pojistenci-source-grid p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 8px;
}
.pojistenci-source-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pojistenci-source-list li {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  padding: 4px 0;
  color: var(--ink);
}
.pojistenci-source-list li::before { content: '· '; color: var(--ink-mut); }

/* Skeleton placeholdery (M1) */
.pojistenci-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  padding: 32px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mut);
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    var(--paper),
    var(--paper) 8px,
    var(--paper2) 8px,
    var(--paper2) 16px
  );
}
.pojistenci-placeholder strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.pojistenci-fatal-error {
  margin: 16px 0;
  padding: 16px;
  background: #fdecec;
  border: 1px solid var(--bad);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}

/* Reduced motion: vypnout animace mapy/race */
@media (prefers-reduced-motion: reduce) {
  .pojistenci-play { opacity: 0.6; }
  .pojistenci-slider::-webkit-slider-thumb,
  .pojistenci-slider::-moz-range-thumb { transition: none; }
}

/* Mobil */
@media (max-width: 720px) {
  .pojistenci-map-controls,
  .pojistenci-pyramid-controls,
  .pojistenci-zp-controls,
  .pojistenci-race-controls,
  .pojistenci-okres-controls {
    padding: 12px 14px;
    gap: 12px 16px;
  }
  .pojistenci-time-controls { flex-direction: column; align-items: stretch; }
  .pojistenci-map { height: 380px; }
  .pojistenci-pyramid { height: 440px; }
  .pojistenci-zp-chart { height: 380px; }
  .pojistenci-race { height: 440px; }
  .pojistenci-okres-chart { height: 220px; }
}
