/* Adaptace Podřipska — draft v2
   Jedna HTML struktura, tři plnohodnotné designové směry (data-style) + přístupnostní režimy.
   A „Krajina"  — fotografický, teplý, zelený; kontinuita s živým webem
   B „Pole"     — editorial / tiskovina; serif, papír, linky, rez
   C „Civic"    — veřejná správa; navy, tvrdé hrany, silná typografie */

/* ================= tokeny — výchozí: A „Krajina" ================= */
:root{
  --font-display:"Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body:"Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-s:10px; --radius:16px; --radius-l:24px;
  --border-w:1px;

  --bg:#f7f5ee;
  --surface:#ffffff;
  --surface-2:#ecefe2;
  --ink:#1c241f;
  --muted:#4c5a51;
  --line:#dcdfcd;
  --brand:#1d5c45;
  --brand-ink:#123d2d;
  --brand-soft:#e2ede4;
  --accent:#b05a2a;
  --accent-ink:#7e3d1a;
  --accent-soft:#f4e3d7;
  --shadow:0 1px 2px rgba(28,36,31,.05), 0 14px 40px rgba(28,36,31,.09);

  --header-bg:rgba(247,245,238,.92);
  --header-ink:var(--ink);
  --header-muted:var(--muted);
  --header-soft:var(--surface-2);
  --header-line:var(--line);

  --hero-ink:#ffffff;
  --hero-muted:rgba(255,255,255,.88);
  --hero-scrim:linear-gradient(190deg, rgba(8,20,15,.14) 0%, rgba(9,26,20,.48) 42%, rgba(8,22,17,.82) 78%, rgba(7,19,14,.9) 100%);
  --btn-shadow:0 10px 26px -8px rgba(18,61,45,.55);

  --footer-bg:var(--surface);
  --footer-ink:var(--muted);
  --footer-head:var(--ink);
  --footer-line:var(--line);
}

/* ================= B „Pole" — editorial ================= */
:root[data-style="pole"]{
  --font-display:"Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-s:4px; --radius:6px; --radius-l:8px;
  --border-w:1px;
  --bg:#eef0e5; --surface:#f7f8f0; --surface-2:#e3e6d5;
  --ink:#20281f; --muted:#57655c; --line:#c9cdb7;
  --brand:#1f6e63; --brand-ink:#123f38; --brand-soft:#dbe9e4;
  --accent:#a13c2e; --accent-ink:#7c2c21; --accent-soft:#f0dcd2;
  --shadow:none;
  --header-bg:#eef0e5;
  --hero-ink:var(--ink);
  --hero-muted:var(--muted);
  --hero-scrim:none;
  --btn-shadow:none;
  --footer-bg:transparent;
}

/* ================= C „Civic" — veřejná správa ================= */
:root[data-style="civic"]{
  --font-display:"Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:"Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-s:2px; --radius:4px; --radius-l:6px;
  --border-w:1.5px;
  --bg:#ffffff; --surface:#ffffff; --surface-2:#eef1f6;
  --ink:#101828; --muted:#42506b; --line:#c9d1e0;
  --brand:#16408f; --brand-ink:#0e2a61; --brand-soft:#e4eafb;
  --accent:#c8a013; --accent-ink:#6b5406; --accent-soft:#f7efd2;
  --shadow:none;
  --header-bg:#0e2a61;
  --header-ink:#ffffff;
  --header-muted:#b9c6e4;
  --header-soft:rgba(255,255,255,.12);
  --header-line:#0e2a61;
  --hero-ink:#ffffff;
  --hero-muted:#c6d2ee;
  --hero-scrim:none;
  --btn-shadow:none;
  --footer-bg:#0e2a61;
  --footer-ink:#b9c6e4;
  --footer-head:#ffffff;
  --footer-line:rgba(255,255,255,.2);
}

/* ================= základ ================= */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:clip; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--font-body);
  font-size:1.03rem; line-height:1.65;
  overflow-x:clip;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--brand); }
a:hover{ color:var(--brand-ink); }
::selection{ background:var(--brand-soft); color:var(--brand-ink); }

h1,h2,h3,h4{
  font-family:var(--font-display); font-weight:700; letter-spacing:-.01em;
  text-wrap:balance; margin:0 0 .3em; color:var(--ink);
}
:root[data-style="civic"] h1, :root[data-style="civic"] h2,
:root[data-style="civic"] h3, :root[data-style="civic"] h4{ font-weight:800; letter-spacing:-.02em; }

:focus-visible{ outline:3px solid var(--brand); outline-offset:2px; border-radius:2px; }

.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-link{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--ink); color:var(--bg); padding:10px 18px; font-weight:700;
  border-radius:0 0 var(--radius-s) 0; text-decoration:none;
}
.skip-link:focus{ left:0; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation:none !important; transition:none !important; }
}

.eyebrow{
  font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:var(--brand);
  font-weight:700; margin-bottom:.7em; display:block; font-family:var(--font-body);
}
:root[data-style="pole"] .eyebrow::before{ content:"— "; color:var(--accent); }
:root[data-style="civic"] .eyebrow{ border-left:4px solid var(--accent); padding-left:10px; }

.top-bar{
  background:var(--ink); color:var(--bg); font-size:.78rem;
  padding:6px 16px; letter-spacing:.02em;
  display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px 20px;
}
.top-bar .tb-note{ margin-right:auto; }
.tb-a11y{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.tb-a11y-label{ font-weight:700; opacity:.8; margin-right:2px; }
.tb-a11y button.tb-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; padding:0; cursor:pointer;
  border-radius:50%; border:1.5px solid rgba(255,255,255,.4); background:transparent; color:inherit;
}
.tb-a11y button.tb-icon:hover{ border-color:#fff; }
.tb-a11y button.tb-icon[aria-pressed="true"]{ background:#fff; border-color:#fff; color:var(--ink); }
.tb-a11y .ic{ width:14px; height:14px; border-radius:50%; display:block; box-shadow:0 0 0 1px rgba(255,255,255,.5) inset; }
.tb-a11y button[aria-pressed="true"] .ic{ box-shadow:0 0 0 1px rgba(0,0,0,.4) inset; }
.tb-a11y .ic-contrast{ background:linear-gradient(90deg, #fff 50%, #000 50%); }
.tb-a11y .ic-gray{ background:linear-gradient(135deg, #fff, #888 50%, #000); }
.tb-a11y .ic-bigfont{
  width:auto; height:auto; border-radius:0; box-shadow:none; background:none;
  font-size:.76rem; font-weight:800; line-height:1;
}

/* ================= hlavička ================= */
header.site{
  position:sticky; top:0; z-index:20; background:var(--header-bg);
  border-bottom:var(--border-w) solid var(--header-line); backdrop-filter:blur(8px);
}
:root[data-style="civic"] header.site{ border-bottom:4px solid var(--accent); }
:root[data-style="pole"] header.site{ border-bottom:2px solid var(--ink); }
.nav-wrap{
  max-width:1160px; margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{ display:flex; align-items:center; gap:11px; text-decoration:none; color:var(--header-ink); }
.brand .mark{ width:34px; height:34px; flex:none; }
:root[data-contrast="on"] .brand .mark [stroke]{ stroke:#000; }
:root[data-contrast="on"] .brand .mark [fill]{ fill:#000; }
.brand .word{ font-family:var(--font-display); font-weight:700; font-size:1.05rem; line-height:1.15; }
.brand .word small{ display:block; font-family:var(--font-body); font-weight:500; font-size:.68rem; color:var(--header-muted); letter-spacing:.03em; }

nav.main{ display:flex; flex-wrap:wrap; gap:4px 2px; align-items:center; }
nav.main a{
  text-decoration:none; color:var(--header-muted); font-size:.85rem; font-weight:600;
  padding:8px 11px; border-radius:var(--radius-s); white-space:nowrap;
}
nav.main a:hover{ color:var(--header-ink); background:var(--header-soft); }
nav.main a[aria-current="page"]{ color:var(--header-ink); background:var(--header-soft); box-shadow:inset 0 -3px 0 var(--accent); }
nav.main a.nav-cta{ background:var(--brand); color:#fff; margin-left:6px; }
:root[data-style="civic"] nav.main a.nav-cta{ background:var(--accent); color:#241b00; font-weight:800; }
nav.main a.nav-cta:hover{ filter:brightness(.92); }

/* ================= hamburger (mobil) ================= */
.nav-toggle{
  display:none; align-items:center; gap:9px; margin-left:auto;
  background:transparent; border:var(--border-w) solid var(--header-line); border-radius:var(--radius-s);
  padding:9px 14px; font-family:var(--font-body); font-weight:700; font-size:.85rem; color:var(--header-ink);
  cursor:pointer;
}
.nav-toggle .burger{ position:relative; width:18px; height:13px; flex:none; }
.nav-toggle .burger::before, .nav-toggle .burger::after, .nav-toggle .burger span{ display:none; }
.nav-toggle .burger{ border-top:2px solid currentColor; }
.nav-toggle .burger::before, .nav-toggle .burger::after{
  content:""; display:block; position:absolute; left:0; right:0; height:2px; background:currentColor;
}
.nav-toggle .burger::before{ top:5px; }
.nav-toggle .burger::after{ top:11px; }
.nav-toggle[aria-expanded="true"] .burger{ border-top-color:transparent; }
.nav-toggle[aria-expanded="true"] .burger::before{ top:5px; transform:rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after{ top:5px; transform:rotate(-45deg); }

main{ max-width:1160px; margin:0 auto; padding:0 24px; }

/* ================= plná šířka (full-bleed) ================= */
.bleed{ margin-inline:calc(50% - 50vw); padding-inline:calc(50vw - 50%); }

/* ================= hero (úvodní stránka) ================= */
.hero{
  position:relative; overflow:hidden;
  margin:0 calc(50% - 50vw) 64px; padding:96px calc(50vw - 50%) 88px;
  text-align:center;
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media img{ width:100%; height:100%; object-fit:cover; object-position:center 60%; }
.hero-media::after{ content:""; position:absolute; inset:0; background:var(--hero-scrim); }
.hero .inner{ position:relative; z-index:2; max-width:820px; margin:0 auto; }
.hero .eyebrow{ color:var(--hero-muted); }
.hero h1{ font-size:clamp(2.3rem, 5vw, 3.5rem); margin-bottom:.35em; color:var(--hero-ink); line-height:1.12; text-shadow:0 2px 24px rgba(0,0,0,.18); }
.hero p.lede{ font-size:1.2rem; color:var(--hero-ink); max-width:60ch; margin:0 auto 14px; font-weight:600; }
.hero p.sub{ font-size:.95rem; color:var(--hero-muted); max-width:68ch; margin:0 auto 30px; }
.cta-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.hero .btn.ghost{
  color:var(--hero-ink); border-color:rgba(255,255,255,.55); background:rgba(255,255,255,.08);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.hero .btn.ghost:hover{ background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.8); }

/* B: editorial hero — text vlevo, rámovaná fotka vpravo */
:root[data-style="pole"] .hero{
  text-align:left; padding-top:64px; padding-bottom:64px;
  display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center;
  background:var(--bg); border-bottom:2px solid var(--ink);
}
:root[data-style="pole"] .hero-media{
  position:relative; inset:auto; order:2; align-self:center;
  border:1px solid var(--ink); box-shadow:14px 14px 0 var(--accent-soft);
}
:root[data-style="pole"] .hero-media img{ height:380px; }
:root[data-style="pole"] .hero-media::after{ display:none; }
:root[data-style="pole"] .hero .inner{ margin:0; max-width:none; }
:root[data-style="pole"] .hero h1{ font-size:clamp(2.4rem, 4.6vw, 3.6rem); }
:root[data-style="pole"] .hero p.lede{ margin-left:0; font-weight:400; font-style:italic; }
:root[data-style="pole"] .hero p.sub{ margin-left:0; }
:root[data-style="pole"] .cta-row{ justify-content:flex-start; }
:root[data-style="pole"] .hero .btn.ghost{ color:var(--ink); border-color:var(--ink); background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; }
:root[data-style="pole"] .hero .btn.ghost:hover{ background:var(--surface-2); border-color:var(--ink); }

/* C: navy hero — text vlevo, fotka s bílým rámem vpravo */
:root[data-style="civic"] .hero{
  text-align:left; background:linear-gradient(115deg, #0e2a61 0%, #16408f 100%);
  display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center;
  padding-top:72px; padding-bottom:72px;
}
:root[data-style="civic"] .hero-media{
  position:relative; inset:auto; order:2; border:4px solid #fff;
}
:root[data-style="civic"] .hero-media img{ height:360px; }
:root[data-style="civic"] .hero-media::after{ display:none; }
:root[data-style="civic"] .hero .inner{ margin:0; max-width:none; }
:root[data-style="civic"] .hero .eyebrow{ color:var(--accent); border-color:var(--accent); }
:root[data-style="civic"] .hero p.lede{ margin-left:0; }
:root[data-style="civic"] .hero p.sub{ margin-left:0; }
:root[data-style="civic"] .cta-row{ justify-content:flex-start; }
:root[data-style="civic"] .btn.primary{ background:var(--accent); color:#241b00; }
:root[data-style="civic"] .btn.primary:hover{ filter:brightness(.94); }

/* ================= hero podstránek ================= */
.page-hero{
  position:relative; overflow:hidden;
  margin:0 calc(50% - 50vw) 56px; padding:64px calc(50vw - 50%) 56px;
}
/* Titulek bez lede textu (single.php) — 56+56 pod samotným h1 vypadá jako neúmyslná díra. */
.page-hero-post{ margin-bottom:0; padding-bottom:0; }
/* Obecné section{margin:72px 0} platí i pro tuhle sekci hned pod page-hero-post — bez lede
   textu v hero bloku to spolu vytváří velkou neúmyslnou mezeru nad textem článku. */
.aktuality-layout-post{ margin-top:24px; }

/* ---- detail aktuality / tiskové zprávy ---- */
.eyebrow-sep{ opacity:.5; margin:0 2px; }
.eyebrow-cat{ color:inherit; text-decoration:none; border-bottom:1px solid currentColor; }
.eyebrow-cat:hover{ color:var(--brand-ink); }

.article-body > div{ max-width:72ch; }
.article-body h2{ font-size:1.45rem; margin:1.7em 0 .45em; }
.article-body h3{ font-size:1.2rem; margin:1.7em 0 .45em; }
.article-body > div > *:first-child{ margin-top:0; }
.article-body p{ margin:0 0 1em; }
.article-body ul, .article-body ol{ margin:0 0 1em; padding-left:1.3em; }
.article-body li{ margin-bottom:.35em; }
.article-body a{ text-underline-offset:2px; }

.article-share{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-top:40px; padding-top:20px; border-top:1px solid var(--line);
}
.share-label{ font-size:.85rem; font-weight:700; color:var(--muted); margin-right:2px; }
.share-btn{
  display:inline-block; padding:6px 14px; border-radius:999px; font-size:.85rem; font-weight:600;
  border:1.5px solid var(--line); background:var(--surface); color:var(--ink);
  text-decoration:none; cursor:pointer; font-family:inherit; line-height:1.4;
}
.share-btn:hover{ border-color:var(--brand); color:var(--brand-ink); }
.share-btn.copied{ background:var(--brand-soft); border-color:var(--brand); color:var(--brand-ink); }

.post-nav{ display:flex; gap:16px; flex-wrap:wrap; margin-top:20px; }
.post-nav-link{
  flex:1 1 240px; display:flex; flex-direction:column; gap:4px;
  padding:16px 20px; border:var(--border-w) solid var(--line); border-radius:var(--radius);
  background:var(--surface); text-decoration:none;
}
.post-nav-link:hover{ border-color:var(--brand); }
.post-nav-next{ text-align:right; align-items:flex-end; }
.post-nav-dir{ font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; font-weight:700; color:var(--brand); }
.post-nav-title{ font-weight:600; color:var(--ink); line-height:1.35; }
.page-hero .ph-inner{ max-width:76ch; position:relative; z-index:2; }
.page-hero h1{ font-size:clamp(1.9rem, 3.6vw, 2.7rem); line-height:1.15; }
.page-hero p.lede{ font-size:1.1rem; max-width:70ch; }

/* A: fotobanda se scrimem, nebo jemný zelený přechod */
.page-hero{ background:linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.page-hero .ph-media{ position:absolute; inset:0; z-index:0; }
.page-hero .ph-media img{ width:100%; height:100%; object-fit:cover; }
.page-hero .ph-media::after{ content:""; position:absolute; inset:0; background:var(--hero-scrim); }
.page-hero.has-media h1, .page-hero.has-media p.lede{ color:var(--hero-ink); }
.page-hero.has-media .eyebrow{ color:var(--hero-muted); }
.page-hero.has-media p.lede{ color:var(--hero-muted); }

/* B: bez fotky, rezavá linka, papír */
:root[data-style="pole"] .page-hero{ background:var(--bg); border-bottom:2px solid var(--ink); padding-top:52px; padding-bottom:44px; }
:root[data-style="pole"] .page-hero .ph-media{ display:none; }
:root[data-style="pole"] .page-hero.has-media h1{ color:var(--ink); }
:root[data-style="pole"] .page-hero.has-media p.lede{ color:var(--muted); }
:root[data-style="pole"] .page-hero.has-media .eyebrow{ color:var(--brand); }
:root[data-style="pole"] .page-hero .ph-inner{ border-left:6px solid var(--accent); padding-left:26px; }

/* C: navy banda */
:root[data-style="civic"] .page-hero{ background:linear-gradient(115deg, #0e2a61 0%, #16408f 100%); }
:root[data-style="civic"] .page-hero .ph-media{ display:none; }
:root[data-style="civic"] .page-hero h1, :root[data-style="civic"] .page-hero.has-media h1{ color:#fff; }
:root[data-style="civic"] .page-hero p.lede, :root[data-style="civic"] .page-hero.has-media p.lede{ color:#c6d2ee; }
:root[data-style="civic"] .page-hero .eyebrow{ color:var(--accent); border-color:var(--accent); }

/* ================= sekce ================= */
section{ margin:72px 0; }
section > .head{ margin-bottom:30px; }
section > .head h2{ font-size:clamp(1.5rem, 2.6vw, 1.95rem); }
section > .head p{ color:var(--muted); margin:0; }
:root[data-style="pole"] section > .head h2{ padding-bottom:.35em; border-bottom:1px solid var(--line); }

/* střídavé pásy */
section.band{
  margin-inline:calc(50% - 50vw); padding:64px calc(50vw - 50%);
  background:var(--surface);
}
:root[data-style="civic"] section.band{ background:var(--surface-2); border-block:var(--border-w) solid var(--line); }
:root[data-style="pole"] section.band{ background:var(--surface); border-block:1px solid var(--line); }

/* ================= karty ================= */
.grid4{ display:grid; grid-template-columns:repeat(auto-fit, minmax(230px,1fr)); gap:18px; }
.grid3{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:18px; }
.card{
  background:var(--surface); border:var(--border-w) solid var(--line); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease;
}
:root[data-style="krajina"] .card, :root:not([data-style]) .card{ border-color:rgba(28,36,31,.09); }
:root[data-style="krajina"] .card:hover, :root:not([data-style]) .card:hover{
  transform:translateY(-3px); border-color:rgba(28,36,31,.06);
  box-shadow:0 2px 4px rgba(28,36,31,.06), 0 20px 48px rgba(28,36,31,.13);
}
section.band .card{ background:var(--bg); }
:root[data-style="civic"] section.band .card,
:root[data-style="civic"] .card{ background:var(--surface); }
:root[data-style="pole"] .card{ background:var(--surface); }
.card .num{ font-family:var(--font-display); font-size:1.7rem; color:var(--accent); font-weight:700; }
:root[data-style="civic"] .card .num{ color:var(--brand); }
.card[data-num]{ position:relative; overflow:hidden; }
.card[data-num]::after{
  content:attr(data-num); position:absolute; right:-8px; bottom:-30px; z-index:0;
  font-family:var(--font-display); font-weight:800; font-size:6.4rem; line-height:1;
  color:var(--brand); opacity:.08; pointer-events:none;
}
:root[data-style="civic"] .card[data-num]::after{ opacity:.06; }
.card[data-num] > *{ position:relative; z-index:1; }

/* ================= pull-quote na fotce ================= */
.statement{
  position:relative; overflow:hidden; text-align:center;
  margin:88px calc(50% - 50vw); padding:104px calc(50vw - 50%);
}
.statement-media{ position:absolute; inset:0; z-index:0; }
.statement-media img{ width:100%; height:100%; object-fit:cover; }
.statement-media::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(8,20,15,.5), rgba(8,20,15,.74));
}
:root[data-style="civic"] .statement-media::after{ background:linear-gradient(180deg, rgba(9,26,63,.58), rgba(9,26,63,.8)); }
:root[data-style="pole"] .statement-media::after{ background:linear-gradient(180deg, rgba(28,36,31,.48), rgba(28,36,31,.74)); }
.statement blockquote{ position:relative; z-index:1; margin:0 auto; max-width:920px; }
.statement blockquote p{
  font-family:var(--font-display); font-weight:700; color:#fff;
  font-size:clamp(1.55rem, 3.4vw, 2.5rem); line-height:1.32; margin:0; text-wrap:balance;
}
.statement footer{
  margin-top:22px; font-family:var(--font-body); font-weight:700; font-size:.82rem;
  letter-spacing:.03em; color:rgba(255,255,255,.7);
}
.statement footer::before{ content:"— "; }

/* ================= vrstevnicový motiv (topo) ================= */
.topo-divider{ color:var(--brand); opacity:.55; margin:0; line-height:0; }
.topo-divider svg{ width:100%; height:52px; display:block; }
:root[data-gray="on"] .topo-divider{ color:var(--muted); }
:root[data-contrast="on"] .topo-divider{ display:none; }
.card .kicker{
  display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--brand-ink); background:var(--brand-soft); padding:3px 9px; border-radius:var(--radius-s); margin-bottom:12px;
}
:root[data-style="civic"] .card .kicker{ background:var(--brand); color:#fff; }
.card h3, .card h4{ font-size:1.08rem; margin:.3em 0; }
.card p{ font-size:.95rem; color:var(--muted); margin:0; }
.card .more{ display:inline-block; margin-top:12px; font-size:.9rem; font-weight:700; }

/* ================= statistiky ================= */
.stats{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px,1fr)); gap:18px; }
.stat{
  background:var(--surface); border:var(--border-w) solid var(--line); border-radius:var(--radius);
  padding:20px 16px; text-align:center; box-shadow:var(--shadow);
}
:root[data-style="civic"] .stat{ border-top:4px solid var(--brand); text-align:left; }
:root[data-style="pole"] .stat{ border:none; border-top:2px solid var(--ink); border-radius:0; background:transparent; text-align:left; padding-inline:4px; }
.stat b{ display:block; font-family:var(--font-display); font-size:2.3rem; color:var(--brand); line-height:1.1; font-weight:800; }
:root[data-style="pole"] .stat b{ color:var(--accent); font-weight:700; }
.stat span{ font-size:.85rem; color:var(--muted); display:block; margin-top:4px; }
.stat small{ display:block; font-size:.68rem; color:var(--accent-ink); font-weight:700; margin-top:5px; text-transform:uppercase; letter-spacing:.06em; }
:root[data-style="civic"] .stat small{ color:var(--brand); }

/* ================= timeline ================= */
.timeline{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; border-top:2px solid var(--line); }
:root[data-style="pole"] .timeline{ border-top-color:var(--ink); }
.timeline .phase{ padding:24px 20px 0; border-left:2px solid var(--line); position:relative; }
.timeline .phase:first-child{ border-left:none; }
.timeline .phase::before{
  content:""; position:absolute; top:-8px; left:-7px; width:14px; height:14px; border-radius:50%;
  background:var(--brand); border:3px solid var(--bg);
}
:root[data-style="civic"] .timeline .phase::before{ border-radius:2px; background:var(--accent); }
.timeline .phase .dates{
  font-size:.78rem; color:var(--brand-ink); background:var(--brand-soft);
  display:inline-block; padding:3px 9px; border-radius:var(--radius-s); font-weight:700; margin-bottom:10px;
}
.timeline .phase .now{
  font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em;
  color:#fff; background:var(--accent); padding:3px 9px; border-radius:var(--radius-s);
  display:inline-block; margin-left:6px;
}
:root[data-style="civic"] .timeline .phase .now{ color:#241b00; }
.timeline .phase h3{ font-size:1.02rem; margin:0 0 6px; }
.timeline .phase p{ font-size:.9rem; color:var(--muted); margin:0; }

/* ================= chips, partneři, loga ================= */
.chip-row{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  background:var(--surface-2); border-radius:999px; padding:7px 16px;
  font-weight:700; font-size:.84rem; color:var(--ink);
}
:root[data-style="civic"] .chip{ border-radius:2px; background:var(--brand-soft); color:var(--brand-ink); }
:root[data-style="pole"] .chip{ background:transparent; border:1px solid var(--ink); border-radius:2px; }

.partners-strip{ display:flex; flex-wrap:wrap; gap:16px; align-items:stretch; }
.partner-chip{
  flex:1 1 200px; background:var(--surface); border:var(--border-w) solid var(--line);
  border-radius:var(--radius); padding:18px; text-align:center; font-weight:700; font-size:.88rem;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:80px;
}
.partner-chip img{ max-height:64px; width:auto; object-fit:contain; }
.plogo{ height:44px; width:auto; object-fit:contain; margin-bottom:14px; }
.partner-cards .card{ display:flex; flex-direction:column; align-items:flex-start; }

/* ================= tým (kontakt) ================= */
.team-cards{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:20px; }
.team-card{
  background:var(--surface); border:var(--border-w) solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; max-width:360px;
}
.team-card img.face{
  width:64px; height:64px; border-radius:50%; object-fit:cover; object-position:center 20%;
  margin:22px 22px 0; border:var(--border-w) solid var(--line);
}
:root[data-style="pole"] .team-card img.face{ filter:none; }
.team-card .tc-body{ padding:14px 22px 22px; display:flex; flex-direction:column; gap:6px; flex:1; }
.team-card .org{
  font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--brand-ink);
  background:var(--brand-soft); align-self:flex-start; padding:3px 9px; border-radius:var(--radius-s); font-weight:800;
}
:root[data-style="civic"] .team-card .org{ background:var(--brand); color:#fff; }
.team-card h3{ font-size:1.2rem; margin:.35em 0 0; }
.team-card .role{ font-size:.88rem; color:var(--muted); margin:0 0 4px; }
.team-card ul.tags{ list-style:none; margin:4px 0 10px; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.team-card ul.tags li{
  font-size:.78rem; font-weight:600; background:var(--surface-2); color:var(--muted);
  padding:3px 9px; border-radius:999px;
}
:root[data-style="civic"] .team-card ul.tags li{ border-radius:2px; }
.team-card a{ font-size:.9rem; text-decoration:none; font-weight:600; }
.team-card a:hover{ text-decoration:underline; }

/* ================= video karty ================= */
.video-card{
  position:relative; display:block; border-radius:var(--radius); overflow:hidden;
  border:var(--border-w) solid var(--line); background:var(--surface); box-shadow:var(--shadow);
  text-decoration:none; color:var(--ink);
}
.video-card img{ width:100%; aspect-ratio:16/10; object-fit:cover; }
.video-card .vc-title{
  display:block; padding:14px 16px 16px; font-weight:700; font-size:.92rem; line-height:1.4;
}
.video-card .play{
  position:absolute; top:calc((100% - 58px) * .38); left:50%; transform:translateX(-50%);
  width:58px; height:58px; border-radius:50%; background:rgba(0,0,0,.62);
  display:flex; align-items:center; justify-content:center;
}
.video-card .play::before{
  content:""; border-style:solid; border-width:11px 0 11px 19px;
  border-color:transparent transparent transparent #fff; margin-left:4px;
}
.video-card:hover .play{ background:var(--brand); }
button.video-card{
  appearance:none; padding:0; margin:0; font:inherit; text-align:left; cursor:pointer; width:100%;
}
button.video-card:focus-visible{ outline:3px solid var(--brand); outline-offset:3px; }

/* ================= obrázky / mapa ================= */
figure.photo{ margin:0; }
figure.photo img{
  width:100%; border-radius:var(--radius); border:var(--border-w) solid var(--line); box-shadow:var(--shadow);
}
:root[data-style="pole"] figure.photo img{ border:1px solid var(--ink); box-shadow:10px 10px 0 var(--accent-soft); border-radius:0; }
:root[data-style="civic"] figure.photo img{ border:var(--border-w) solid var(--line); }
figure.photo-sm{ max-width:360px; margin-inline:auto; }
figure.photo-sm img{ width:100%; }

.cf-stream-embed{
  position:relative; width:100%; padding-top:56.25%; height:0;
  border-radius:var(--radius); overflow:hidden; border:var(--border-w) solid var(--line);
  box-shadow:var(--shadow); background:#000;
}

.subgallery + .subgallery{ margin-top:48px; }
.subgallery h3{ font-size:1.15rem; margin:0 0 4px; }
.subgallery-note{ color:var(--muted); font-size:.9rem; margin:0 0 18px; font-style:italic; }

.photo-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:22px; }
.photo-grid figure.photo{ display:flex; flex-direction:column; }
.photo-grid .photo-zoom img{ aspect-ratio:4/3; object-fit:cover; }

/* Klasická WP galerie (Přidat média → Vytvořit galerii) přestylovaná na .photo-grid — viz inc/classic-gallery.php.
   Respektuje počet sloupců zvolený editorem, na užších obrazovkách se zúží. */
.photo-grid.gallery-styled{ grid-template-columns:repeat(var(--gallery-cols, 3), 1fr); margin:28px 0 36px; }
@media (max-width:760px){ .photo-grid.gallery-styled{ grid-template-columns:repeat(2, 1fr) !important; } }
@media (max-width:460px){ .photo-grid.gallery-styled{ grid-template-columns:1fr !important; } }
.photo-grid-caption{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  margin-top:10px; font-size:.85rem; color:var(--muted);
}
.photo-grid-caption .dl{
  flex:none; font-weight:700; color:var(--brand); text-decoration:none; white-space:nowrap;
}
.photo-grid-caption .dl:hover{ color:var(--brand-ink); }

button.photo-zoom{
  all:unset; display:block; width:100%; cursor:zoom-in; position:relative; border-radius:var(--radius);
}
button.photo-zoom:focus-visible{ outline:3px solid var(--brand); outline-offset:3px; }
button.photo-zoom::after{
  content:"⤢"; position:absolute; right:10px; bottom:10px; width:30px; height:30px;
  display:flex; align-items:center; justify-content:center; border-radius:50%;
  background:rgba(20,26,21,.62); color:#fff; font-size:.95rem; opacity:0; transition:opacity .15s;
}
button.photo-zoom:hover::after, button.photo-zoom:focus-visible::after{ opacity:1; }

.lightbox{
  position:fixed; inset:0; z-index:200; background:rgba(10,14,11,.88);
  display:flex; align-items:center; justify-content:center; padding:32px;
}
.lightbox-photo{ display:flex; flex-direction:column; align-items:center; gap:12px; max-width:min(92vw, 1200px); }
.lightbox img{
  max-width:min(92vw, 1200px); max-height:80vh; width:auto; height:auto;
  border-radius:var(--radius-s); box-shadow:0 20px 60px rgba(0,0,0,.45);
}
.lightbox-caption{
  margin:0; color:#fff; text-align:center; font-size:.95rem; max-width:70ch;
}
.lightbox-caption[hidden]{ display:none; }
.lightbox-close{
  position:absolute; top:18px; right:22px; width:46px; height:46px; border-radius:50%;
  border:none; background:rgba(0,0,0,.75); color:#fff; box-shadow:0 2px 10px rgba(0,0,0,.4);
  font-size:1.7rem; line-height:1; cursor:pointer; z-index:2;
}
.lightbox-close:hover, .lightbox-close:focus-visible{ background:#000; }

.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%;
  border:none; background:rgba(0,0,0,.55); color:#fff; box-shadow:0 2px 10px rgba(0,0,0,.4);
  font-size:2rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:2;
}
.lightbox-nav:hover, .lightbox-nav:focus-visible{ background:rgba(0,0,0,.8); }
.lightbox-prev{ left:14px; }
.lightbox-next{ right:14px; }
@media (max-width:640px){
  .lightbox-nav{ width:44px; height:44px; font-size:1.6rem; }
  .lightbox-prev{ left:6px; }
  .lightbox-next{ right:6px; }
}
.lightbox .lightbox-video{
  width:min(92vw, 1100px); max-width:1100px; aspect-ratio:16/9;
  position:relative; border-radius:var(--radius-s); overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.45);
}
.lightbox .lightbox-video iframe{ position:absolute; inset:0; width:100%; height:100%; border:none; }
figure.photo figcaption{ font-size:.85rem; color:var(--muted); margin-top:10px; }

/* ---- seznam obcí (abecední rejstřík) ---- */
.obce-letters{ display:flex; flex-wrap:wrap; gap:8px; }
.obce-letter{
  min-width:44px; height:44px; padding:0 10px; border-radius:var(--radius-s);
  border:1.5px solid var(--line); background:var(--surface); color:var(--ink);
  font-family:inherit; font-size:1rem; font-weight:700; cursor:pointer;
}
.obce-letter:hover{ border-color:var(--brand); color:var(--brand-ink); }
.obce-letter[aria-expanded="true"]{ background:var(--brand); border-color:var(--brand); color:#fff; }
.obce-panel{ margin-top:20px; }
.obce-panel-title{ font-size:1.05rem; margin:0 0 10px; }
.obce-panel-title span{ font-weight:500; color:var(--muted); font-size:.9rem; }
.obce-list{
  list-style:none; margin:0; padding:0;
  columns:220px 4; column-gap:28px;
}
.obce-list li{ break-inside:avoid; padding:4px 0; }
.obce-list a.obec-loc{ font-weight:700; text-decoration:none; color:var(--brand-ink); border-bottom:1.5px solid var(--brand); }
.obce-list a.obec-loc:hover{ color:var(--brand); }
.obce-legenda{ margin:22px 0 0; font-size:.9rem; color:var(--muted); }

.split{ display:grid; grid-template-columns:1.05fr .95fr; gap:36px; align-items:center; }
@media (max-width:860px){ .split{ grid-template-columns:1fr; } }

/* ================= placeholdery ================= */
.placeholder{
  border:1px solid var(--line); border-radius:var(--radius); padding:24px;
  color:var(--muted); font-size:.92rem; background:var(--surface-2);
}
.placeholder .tag{
  font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:var(--brand-ink); background:var(--brand-soft); padding:2px 8px; border-radius:var(--radius-s);
  display:inline-block; margin-bottom:10px;
}

/* ================= aktuality (seznam + sidebar) ================= */
.aktuality-layout{ display:flex; gap:40px; align-items:flex-start; flex-wrap:wrap; }
.aktuality-list{ flex:1 1 560px; min-width:0; display:flex; flex-direction:column; gap:20px; }
.aktuality-sidebar{ flex:1 1 260px; max-width:320px; display:flex; flex-direction:column; gap:24px; }
.side-block{
  background:var(--surface); border:var(--border-w) solid var(--line); border-radius:var(--radius);
  padding:20px 22px;
}
.side-block h2{ font-size:1rem; margin:0 0 12px; }
.side-block p{ font-size:.9rem; color:var(--muted); margin:0 0 12px; }
.side-block ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.side-block ul a{
  display:flex; justify-content:space-between; gap:8px; text-decoration:none;
  font-size:.92rem; font-weight:600; color:var(--ink);
}
.side-block ul a:hover{ color:var(--brand); }
.side-block ul a span{ color:var(--muted); font-weight:500; }
.side-block .more{ font-size:.9rem; font-weight:700; }

/* ================= mapa stránek ================= */
.sitemap-list{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:6px 28px;
}
.sitemap-list > li{ border-bottom:var(--border-w) solid var(--line); padding:12px 0; }
.sitemap-list > li > a{ font-weight:700; font-size:1.02rem; text-decoration:none; color:var(--ink); }
.sitemap-list > li > a:hover{ color:var(--brand); }
.sitemap-list ul{ list-style:none; margin:8px 0 0 16px; padding:0; display:flex; flex-direction:column; gap:6px; }
.sitemap-list ul li{ border-bottom:none; padding:0; }
.sitemap-list ul a{ font-weight:500; font-size:.9rem; color:var(--muted); text-decoration:none; }
.sitemap-list ul a:hover{ color:var(--brand); }

/* ================= dokumenty ================= */
.doclist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.doclist li{
  display:flex; align-items:center; gap:12px; background:var(--surface);
  border:var(--border-w) solid var(--line); border-radius:var(--radius-s); padding:14px 16px; font-size:.92rem;
}
.doclist li .ico{
  min-width:32px; height:32px; padding:0 5px; border-radius:var(--radius-s); background:var(--brand-soft); color:var(--brand-ink);
  display:flex; align-items:center; justify-content:center; font-size:.66rem; font-weight:800; flex:none; letter-spacing:.01em;
}
.doclist li .doc-body{ flex:1 1 auto; min-width:0; display:flex; flex-wrap:wrap; align-items:baseline; column-gap:8px; row-gap:2px; }
.doclist li .doc-title{ font-weight:600; }
.doclist li .meta{ color:var(--muted); font-size:.82rem; }
.doclist li .dl{
  flex:none; font-size:.82rem; font-weight:700; color:var(--brand); text-decoration:none;
  padding:6px 12px; border-radius:var(--radius-s); border:1px solid var(--line); white-space:nowrap;
}
.doclist li .dl:hover{ background:var(--brand-soft); border-color:var(--brand-soft); }
.doclist li .gated{ color:var(--muted); font-size:.82rem; white-space:nowrap; }

/* ================= checklisty ================= */
.checklist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.checklist.checklist-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:12px 32px; }
.checklist li{ padding-left:28px; position:relative; }
.checklist li::before{ content:"✓"; position:absolute; left:0; top:0; font-weight:800; color:var(--brand); }
:root[data-style="pole"] .checklist li::before{ content:"—"; color:var(--accent); }

/* ================= formuláře ================= */
.form-card{
  background:var(--surface); border:var(--border-w) solid var(--line); border-radius:var(--radius);
  padding:30px 34px; box-shadow:var(--shadow);
}
:root[data-style="pole"] .form-card{ border-radius:0; box-shadow:none; }
section.band .form-card{ background:var(--bg); }
form.stack{ display:grid; gap:14px; }
.cf-turnstile{ margin:2px 0 4px; }
.hp-field{ position:absolute; left:-9999px; top:-9999px; }
.form-notice{
  padding:12px 16px; border-radius:var(--radius-s); font-size:.92rem; font-weight:600; margin:0 0 16px;
}
.form-notice-ok{ background:var(--brand-soft); color:var(--brand-ink); }
.form-notice-err{ background:#fbe3df; color:#7a2418; }
:root[data-style="civic"] .form-notice-err{ background:#fbe3df; color:#7a2418; }
/* .newsletter p{color:#fff} má vyšší specificitu než .form-notice-ok/-err samotné — dorovnáno explicitně */
.newsletter .form-notice-ok{ background:var(--brand-soft); color:var(--brand-ink); }
.newsletter .form-notice-err{ background:#fbe3df; color:#7a2418; }
form.stack .row{ display:grid; gap:14px; grid-template-columns:1fr 1fr; }
form.stack label{ font-weight:700; font-size:.84rem; display:block; margin-bottom:5px; }
form.stack input, form.stack select, form.stack textarea{
  width:100%; padding:11px 14px; border-radius:var(--radius-s); font-size:.95rem;
  border:var(--border-w) solid var(--line); background:var(--surface); color:var(--ink); font-family:var(--font-body);
}
form.stack textarea{ min-height:120px; resize:vertical; }
form.stack .req{ color:var(--accent-ink); }
form .note{ font-size:.78rem; color:var(--muted); margin:6px 0 0; }

.btn{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  font-weight:700; font-size:.9rem; padding:13px 24px; border-radius:var(--radius-s);
  border:2px solid transparent; cursor:pointer; font-family:var(--font-body);
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, filter .15s ease;
}
.btn.primary{ background:var(--brand); color:#fff; box-shadow:var(--btn-shadow); }
.btn.primary:hover{ background:var(--brand-ink); color:#fff; transform:translateY(-1px); }
.btn.primary:active{ transform:translateY(0); }
.btn.ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn.ghost:hover{ border-color:var(--muted); }

/* ================= newsletter ================= */
.newsletter{
  margin:88px calc(50% - 50vw) 0; padding:56px calc(50vw - 50%);
  background:var(--brand-ink); color:#fff; text-align:center;
}
:root[data-style="krajina"] .newsletter, :root:not([data-style]) .newsletter{
  background:linear-gradient(120deg, #123d2d, #1d5c45);
}
:root[data-style="civic"] .newsletter{ background:#0e2a61; }
:root[data-style="pole"] .newsletter{ background:#20281f; }
.newsletter h2{ color:#fff; font-size:1.55rem; }
.newsletter p{ color:rgba(255,255,255,.82); max-width:54ch; margin:0 auto 22px; }
.newsletter form{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.newsletter .cf-turnstile{ flex-basis:100%; display:flex; justify-content:center; }
.newsletter input[type=email]{
  padding:12px 15px; border-radius:var(--radius-s); border:1px solid transparent;
  min-width:270px; font-size:.9rem;
}
.newsletter button{
  padding:12px 22px; border-radius:var(--radius-s); border:none;
  background:#fff; color:var(--brand-ink); font-weight:800; cursor:pointer; font-size:.9rem;
}
.newsletter button:hover{ background:var(--surface-2); }
:root[data-style="civic"] .newsletter button{ background:var(--accent); color:#241b00; }
:root[data-style="civic"] .newsletter button:hover{ background:var(--accent); filter:brightness(.92); }
.newsletter .note{ font-size:.74rem; color:rgba(255,255,255,.55); margin:16px 0 0; }

/* ================= patička ================= */
footer.site{ background:var(--footer-bg); border-top:var(--border-w) solid var(--footer-line); }
:root[data-style="pole"] footer.site{ border-top:2px solid var(--ink); }
.footer-wrap{
  max-width:1160px; margin:0 auto; padding:44px 24px 28px;
  display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px; font-size:.85rem; color:var(--footer-ink);
}
.footer-wrap h2{ font-size:.95rem; margin-bottom:.6em; color:var(--footer-head); }
.footer-wrap p{ color:var(--footer-ink); }
.footer-wrap ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.footer-wrap a{ color:var(--footer-ink); text-decoration:none; }
.footer-wrap a:hover{ color:var(--footer-head); text-decoration:underline; }
.footer-bottom{
  max-width:1160px; margin:0 auto; padding:0 24px 32px; font-size:.78rem; color:var(--footer-ink);
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.footer-meta-links{ display:flex; gap:16px; flex-wrap:wrap; }
.footer-meta-links a{ color:inherit; }

/* povinná publicita EU (Horizon Europe, čl. 17 MGA) */
.eu-funding{
  max-width:1160px; margin:0 auto 20px; padding:20px 24px 0;
  display:flex; gap:18px; align-items:flex-start; flex-wrap:wrap;
  border-top:1px solid var(--footer-line);
}
.eu-funding img.eu-logo{ flex:none; width:auto; height:64px; align-self:center; }
.eu-funding strong{ display:block; color:var(--footer-head); font-size:.9rem; margin-bottom:4px; }
.eu-funding p{ margin:0; font-size:.75rem; color:var(--footer-ink); max-width:85ch; line-height:1.5; }
.eu-funding img.p2r-logo{
  width:auto; height:64px; border:none; margin-left:auto; align-self:center;
}

/* ================= responzivita ================= */
@media (max-width:900px){
  :root[data-style="pole"] .hero,
  :root[data-style="civic"] .hero{ grid-template-columns:1fr; gap:28px; }
  :root[data-style="pole"] .hero-media img,
  :root[data-style="civic"] .hero-media img{ height:240px; }
}
@media (max-width:820px){
  .nav-wrap{ flex-wrap:wrap; }
  .nav-toggle{ display:flex; }
  nav.main{
    display:none; width:100%; order:3;
    flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:2px;
    padding-top:10px; margin-top:10px; border-top:var(--border-w) solid var(--header-line);
  }
  .nav-toggle[aria-expanded="true"] + nav.main{ display:flex; }
  nav.main a{
    width:100%; padding:13px 12px; font-size:.95rem; border-radius:var(--radius-s);
    border-bottom:1px solid var(--header-line);
  }
  nav.main a:last-of-type{ border-bottom:none; }
  nav.main a[aria-current="page"]{ box-shadow:inset 3px 0 0 var(--accent); }
  nav.main a.nav-cta{ margin-left:0; margin-top:8px; text-align:center; }
  .timeline{ grid-template-columns:1fr; }
  .timeline .phase{ border-left:none; border-top:2px solid var(--line); padding:22px 0 0; }
  .timeline .phase:first-child{ border-top:none; }
  .timeline .phase::before{ top:-7px; left:-2px; }
  form.stack .row{ grid-template-columns:1fr; }
  .footer-wrap{ grid-template-columns:1fr; gap:20px; }
}

/* ================= PŘÍSTUPNOSTNÍ REŽIMY (musí být poslední — přebíjí styly) ================= */

/* Bez barev — šedá škála */
:root[data-gray="on"]{
  --bg:#f4f4f4; --surface:#ffffff; --surface-2:#e7e7e7;
  --ink:#161616; --muted:#454545; --line:#c4c4c4;
  --brand:#333333; --brand-ink:#161616; --brand-soft:#e4e4e4;
  --accent:#2c2c2c; --accent-ink:#161616; --accent-soft:#dedede;
  --header-bg:#f4f4f4; --header-ink:#161616; --header-muted:#454545; --header-soft:#e7e7e7; --header-line:#c4c4c4;
  --footer-bg:#ffffff; --footer-ink:#454545; --footer-head:#161616; --footer-line:#c4c4c4;
  --hero-scrim:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75));
}
:root[data-gray="on"] img{ filter:grayscale(1); }
:root[data-gray="on"] .hero, :root[data-gray="on"] .page-hero,
:root[data-gray="on"] .newsletter, :root[data-gray="on"] .top-bar{ background:#2c2c2c; }
:root[data-gray="on"] .page-hero:not(.has-media){ background:#e7e7e7; }
:root[data-gray="on"] .page-hero:not(.has-media) h1{ color:#161616; }
:root[data-gray="on"] .page-hero:not(.has-media) p.lede{ color:#454545; }
:root[data-gray="on"] .page-hero:not(.has-media) .eyebrow{ color:#161616; border-color:#161616; }

/* Vysoký kontrast — černá na bílé, podtržené odkazy, žádné dekorace */
:root[data-contrast="on"]{
  --bg:#ffffff; --surface:#ffffff; --surface-2:#ffffff;
  --ink:#000000; --muted:#000000; --line:#000000;
  --brand:#000000; --brand-ink:#000000; --brand-soft:#ffffff;
  --accent:#000000; --accent-ink:#000000; --accent-soft:#ffffff;
  --shadow:none;
  --header-bg:#ffffff; --header-ink:#000000; --header-muted:#000000; --header-soft:#ffffff; --header-line:#000000;
  --footer-bg:#ffffff; --footer-ink:#000000; --footer-head:#000000; --footer-line:#000000;
  --hero-ink:#000000; --hero-muted:#000000; --hero-scrim:none;
}
:root[data-contrast="on"] a{ text-decoration:underline; color:#000; }
:root[data-contrast="on"] .hero, :root[data-contrast="on"] .page-hero{
  background:#fff; border-bottom:3px solid #000;
}
:root[data-contrast="on"] .hero-media, :root[data-contrast="on"] .page-hero .ph-media{ display:none; }
:root[data-contrast="on"] .hero{ display:block; text-align:left; }
:root[data-contrast="on"] .hero h1, :root[data-contrast="on"] .page-hero h1,
:root[data-contrast="on"] .page-hero.has-media h1{ color:#000; }
:root[data-contrast="on"] .hero p.lede, :root[data-contrast="on"] .hero p.sub,
:root[data-contrast="on"] .page-hero p.lede, :root[data-contrast="on"] .page-hero.has-media p.lede{ color:#000; }
:root[data-contrast="on"] .eyebrow, :root[data-contrast="on"] .hero .eyebrow,
:root[data-contrast="on"] .page-hero .eyebrow{ color:#000; border-color:#000; }
:root[data-contrast="on"] .card, :root[data-contrast="on"] .stat, :root[data-contrast="on"] .team-card,
:root[data-contrast="on"] .video-card, :root[data-contrast="on"] .placeholder,
:root[data-contrast="on"] .partner-chip, :root[data-contrast="on"] .chip,
:root[data-contrast="on"] .doclist li{ border:2px solid #000; background:#fff; box-shadow:none; }
:root[data-contrast="on"] .btn.primary, :root[data-contrast="on"] .newsletter button,
:root[data-contrast="on"] nav.main a.nav-cta,
:root[data-contrast="on"] .btn.primary:hover, :root[data-contrast="on"] .newsletter button:hover,
:root[data-contrast="on"] nav.main a.nav-cta:hover{ background:#000; color:#fff; }
:root[data-contrast="on"] .btn.ghost, :root[data-contrast="on"] .hero .btn.ghost{ color:#000; border-color:#000; }
:root[data-contrast="on"] .newsletter{ background:#000; }
:root[data-contrast="on"] .newsletter p, :root[data-contrast="on"] .newsletter .note{ color:#fff; }
:root[data-contrast="on"] nav.main a[aria-current="page"]{ outline:2px solid #000; box-shadow:none; }
:root[data-contrast="on"] header.site{ border-bottom:3px solid #000; }
:root[data-contrast="on"] footer.site{ border-top:3px solid #000; }
:root[data-contrast="on"] .top-bar{ background:#000; color:#fff; }
:root[data-contrast="on"] :focus-visible{ outline:3px solid #000; outline-offset:3px; }
:root[data-contrast="on"] .timeline .phase .now{ background:#000; color:#fff; }
:root[data-contrast="on"] img:not(.face):not([alt=""]):not(.plogo){ filter:none; }

/* Větší písmo */
:root[data-bigfont="on"]{ font-size:118%; }
