@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: 16px;
  flex-wrap: wrap;
  box-shadow: none;
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand-logo {
  display: none;
}
.brand h1 {
  font-family: var(--serif);
  font-size: 26px;
  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;
}

.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 + score banner pod hlavičkou */
.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: 600; }
.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;
}

.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);
}

.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); }

/* 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 (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; }
}

@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 (editorial inline nav, masthead-style)
   ================================================================= */
.module-nav {
  display: flex; gap: 22px; padding: 6px 40px;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  font-family: var(--sans);
  align-items: center;
}
.module-tab {
  padding: 8px 0; font-size: 11px; font-weight: 500;
  color: var(--ink-mut); text-decoration: none;
  border-bottom: 1px solid transparent; transition: all 0.12s;
  letter-spacing: 0.02em;
}
.module-tab:hover { color: var(--ink); }
.module-tab.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* =================================================================
   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); }

.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: 768px) {
  .module-nav { padding: 0 16px; overflow-x: auto; }
  .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-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);
}
.ind-no-related {
  font-family: var(--serif); font-style: italic; color: var(--ink-mut); padding: 8px 0;
}

.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); }

/* 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;
}
.cat-block { scroll-margin-top: 70px; }

@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; }
}
