/**
 * Jízdárna Hostinné — stylopis veřejného webu.
 *
 * Mobile-first. Plátno je světlá máta, text a tmavé pruhy jsou lesní zeleň.
 * Nadpisy jsou serif, text a menu grotesk. Motto je jediné místo pro skript.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/great-vibes.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  --color-ink: #062A06;
  --color-ink-2: #0C3A0C;
  --color-ink-3: #145214;
  --color-accent: #062A06;
  --color-accent-hover: #145214;
  --color-accent-text: #062A06;
  --color-gold: #C6A15B;
  --color-canvas: #DCF2DF;
  --color-surface: #ffffff;
  --color-surface-2: #cfe6d4;
  --color-text-dark: #062A06;
  --color-text-light: #DCF2DF;
  --color-muted-dark: #3D5A42;
  --color-muted-light: #c5dcc8;
  --color-line-dark: rgba(220, 242, 223, 0.28);
  --color-line-light: rgba(6, 42, 6, 0.16);
  --color-open: #2f9e6f;

  --radius-card: 0px;
  --radius-photo: 18px;
  --radius-btn: 80px;
  --radius-pill: 999px;

  --maxw: 1120px;
  --gap: 24px;
  --header-h: 88px;
  --section-y: clamp(56px, 8vw, 108px);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", cursive;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-soft: none;
  --shadow-card: none;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --icon-photo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3 7.5 5H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.5L15 3H9Zm3 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z'/%3E%3C/svg%3E");
  --icon-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-2 6 6 4-6 4V8Z'/%3E%3C/svg%3E");
  --icon-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E");
}

/* Na tmavých plochách je světlá modrá čitelná sama o sobě a tmavší odstín
   pro světlé pozadí by v nich splýval. Proměnná se uvnitř tmavých bloků
   přepíná zpátky. */
.hero,
.section--dark,
.section--accent,
.site-header,
.footer,
.utilbar,
.preview-bar,
.promo { --color-accent-text: var(--color-accent); }

* { box-sizing: border-box; }

/* Plynulé posouvání platí pro kotvy v už načtené stránce, ne pro skok, který
   dělá prohlížeč sám při načtení adresy s kotvou (téma programu z QR kódu).
   Třídu doplní skript teprve po načtení. */
html { scroll-behavior: auto; }
html.is-loaded { scroll-behavior: smooth; }
html:has(.preview-bar) { scroll-padding-top: 40px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text-dark);
  background: var(--color-canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 56px; /* prostor pro sticky utility lištu */
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { margin: 0 0 0.4em; font-family: var(--font-display); font-weight: 600; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: var(--section-y) 0; }
.section--dark { background: var(--color-ink); color: var(--color-text-light); }
.section--accent { background: var(--color-ink-2); color: var(--color-text-light); }
.section--light { background: var(--color-canvas); color: var(--color-text-dark); }
.section--surface { background: var(--color-surface); color: var(--color-text-dark); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--color-gold);
  border-radius: 2px;
  flex: none;
}
.hero .eyebrow,
.section--dark .eyebrow,
.section--accent .eyebrow,
.footer .eyebrow,
.utilbar .eyebrow { color: var(--color-canvas); }
.section-lead { max-width: 62ch; color: inherit; opacity: 0.82; font-size: 1.05rem; }

/* Nadpis sekce s odkazem vpravo (Všechny aktuality, Celá kandidátka). */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Text z editoru ---------- */
.rich p:not(:last-child),
.rich :is(ul, ol):not(:last-child) { margin-bottom: 0.7em; }
.rich :is(ul, ol) { margin-top: 0; padding-left: 1.35em; }
.rich > :last-child { margin-bottom: 0; }
.rich li { margin-bottom: 0.25em; }
.rich li:last-child { margin-bottom: 0; }
.rich a { color: var(--color-accent-text); text-underline-offset: 2px; }

/* ---------- Mřížky ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cta-row--center { justify-content: center; }
.mt-0 { margin-top: 0; }

.desktop-only { display: initial; }
.mobile-only { display: none; }
@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex; }
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  padding: 13px 22px;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[hidden] { display: none; }
.btn--primary { background: transparent; color: var(--color-ink); border-color: var(--color-ink); letter-spacing: 0.04em; font-weight: 500; padding: 14px 28px; }
.btn--primary:hover { background: var(--color-ink); color: var(--color-canvas); }
.btn--primary:active { transform: none; box-shadow: none; }
.hero .btn--primary,
.section--dark .btn--primary,
.section--accent .btn--primary,
.site-header .btn--primary,
.footer .btn--primary,
.utilbar .btn--primary { color: var(--color-canvas); border-color: var(--color-canvas); }
.hero .btn--primary:hover,
.section--dark .btn--primary:hover,
.section--accent .btn--primary:hover,
.site-header .btn--primary:hover,
.footer .btn--primary:hover,
.utilbar .btn--primary:hover { background: var(--color-canvas); color: var(--color-ink); }
.btn--light { background: transparent; color: var(--color-canvas); border-color: var(--color-canvas); }
.btn--light:hover { background: var(--color-canvas); color: var(--color-ink); }
.btn--ghost-light { background: transparent; color: var(--color-text-light); border-color: var(--color-line-dark); }
.btn--ghost-light:hover { border-color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--color-text-dark); border-color: var(--color-line-light); }
.btn--ghost-dark:hover { border-color: var(--color-text-dark); }
.btn--solid-dark { background: var(--color-text-dark); color: #fff; border-color: var(--color-text-dark); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 15px; font-size: 0.85rem; }

.btn .ext { font-size: 0.72rem; opacity: 0.7; font-weight: 500; }

.ext-link {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-weight: 600; color: var(--color-accent-text);
  white-space: nowrap; padding-bottom: 4px;
}
.ext-link::after { content: "\2192"; font-size: 0.9em; transition: transform 0.2s var(--ease); }
.ext-link:hover::after { transform: translateX(3px); }

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

/* ---------- Hlavička ---------- */
.chrome { position: sticky; top: 0; z-index: 50; }

.site-header {
  background: rgba(6, 42, 6, 0.92);
  backdrop-filter: blur(8px);
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-line-dark);
}
.nav { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; color: #fff; }
.brand__logo { display: block; height: 64px; width: auto; }
@media (max-width: 700px) {
  :root { --header-h: 68px; }
  .brand__logo { height: 48px; }
}
.nav__links { display: flex; gap: 20px; margin-left: 16px; }
.nav__links a {
  text-decoration: none; color: var(--color-muted-light);
  font-weight: 500; font-size: 0.95rem; white-space: nowrap;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav__actions .btn { white-space: nowrap; }
.nav__cislo {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-line-dark);
  font-weight: 700; font-size: 0.85rem; color: var(--color-accent);
  white-space: nowrap;
}
.nav__toggle { display: none; background: transparent; border: 1px solid var(--color-line-dark); color: #fff; border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.nav__toggle-icon, .nav__toggle-icon::before, .nav__toggle-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.nav__toggle-icon { position: relative; }
.nav__toggle-icon::before, .nav__toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav__toggle-icon::before { top: -6px; }
.nav__toggle-icon::after { top: 6px; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__mobile {
    display: none; flex-direction: column; gap: 4px;
    padding: 12px 20px 20px; background: var(--color-ink-2);
    border-bottom: 1px solid var(--color-line-dark);
  }
  .nav__mobile.open { display: flex; }
  .nav__mobile a { color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--color-line-dark); font-weight: 500; }
  .nav__mobile a[aria-current="page"] { color: var(--color-accent); }
  .nav__mobile .btn { margin-top: 12px; border-bottom: 0; }
}
@media (min-width: 901px) { .nav__mobile { display: none; } }

/* ---------- Hero ----------
   Fotka je pozadí celé obrazovky: médium sahá od horní hrany okna k dolní
   a titulek sedí nízko nad ním. Závoj z tmavé modré drží čitelnost textu
   na jakékoli fotce. */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 66svh;
  background: var(--color-ink); color: #fff; overflow: hidden; isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
}
.hero--full { min-height: 100svh; }
.hero::after {
  content: ""; position: absolute; inset: var(--header-h) 0 0 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top,
      rgba(6, 42, 6, 0.96) 0%,
      rgba(6, 42, 6, 0.78) 26%,
      rgba(6, 42, 6, 0.34) 52%,
      rgba(6, 42, 6, 0.08) 74%,
      rgba(6, 42, 6, 0.4) 100%);
}
/* Na úzké obrazovce se hero rozdělí: fotka nahoře, text pod ní na tmavém
   podkladu. Přes celou plochu by titulek ležel lidem v obličeji — a závoj
   tmavý natolik, aby text udržel čitelný, by z fotky nenechal nic. Dole se
   fotka prolne do tmavé modré, takže na text navazuje bez hrany. */
@media (max-width: 700px) {
  .hero--full {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    /* Pás fotky je tady samostatný, ne pozadí pod textem, takže se nemá kam
       schovat: bez zrušeného vytažení pod hlavičku by z něj menu ukrojilo
       horních 64 px, což je na mobilu skoro třetina jeho výšky. */
    margin-top: 0;
  }
  /* Pás má tvar fotky, ne podíl z výšky obrazovky. Vyšší pás vypadá na
     telefonu velkoryse, ale hero varianta je 16:9, takže by se z ní do stojícího
     obdélníku vešel jen prostřední pruh — u skupinové fotky bez lidí na krajích.
     Výška se proto počítá z vlastní šířky pásu přes poměr stran; kdyby se
     odvozovala z 100vw, přičetla by se i šířka posuvníku a fotka by na krajích
     zůstala o několik pixelů uříznutá. Kdo chce jít blíž, přiblíží si rámování. */
  .hero--full .hero__media {
    position: relative;
    /* Odsazení pod menu patří jen pozadí na široké obrazovce. Tady je pás
       v toku a top by ho jen posunul dolů, aniž by na to layout reagoval. */
    inset: auto;
    flex: none;
    height: auto;
  }
  .hero--full .hero__media > .ph {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .hero--full::after {
    inset: 0 0 auto 0;
    height: auto;
    aspect-ratio: 16 / 9;
    /* Horní kraj zůstává světlý. Tmavý byl, dokud fotka mizela pod hlavičkou
       a měla se do ní plynule ztratit; teď pod ní začíná, takže by stmívání
       padlo přesně na to, co má být vidět nejvíc — na hlavy v prvním řadě. */
    background: linear-gradient(to bottom,
      rgba(6, 42, 6, 0.28) 0%,
      rgba(6, 42, 6, 0.1) 24%,
      rgba(6, 42, 6, 0.14) 60%,
      rgba(6, 42, 6, 0.9) 92%,
      var(--color-ink) 100%);
  }
  .hero--full .hero__grid {
    padding-top: 22px;
    padding-bottom: 34px;
  }
  .hero--full .hero__content h1 { font-size: clamp(2rem, 8.4vw, 2.7rem); }
}
.hero__grid {
  position: relative; z-index: 2; width: 100%;
  padding-top: calc(var(--header-h) + clamp(40px, 9vh, 104px));
  padding-bottom: clamp(84px, 10vh, 120px);
}
.hero--full .hero__grid { padding-bottom: clamp(96px, 13vh, 156px); }
.hero__content { max-width: 42rem; }
.hero__content h1 { margin-bottom: 20px; }
.hero--full .hero__content h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); line-height: 1.05; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--color-muted-light); margin-bottom: 30px; max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* Fotka i závoj začínají pod menu, ne u horní hrany okna. Hero je pod hlavičku
   vytažené negativním okrajem, ale hlavička je krytá na 92 %, takže co je za ní,
   nikdo neuvidí — a je to zrovna nejcennější pruh fotky. U skupinové fotky se
   za menu schovají hlavy a rámováním se vytáhnout nedají: fotka výš než nahoru
   nejde. Odsazením se ten pruh vrátí do viditelné části sekce. */
.hero__media { position: absolute; inset: var(--header-h) 0 0 0; z-index: 0; }
.hero__media > .ph {
  position: absolute; inset: 0;
  height: 100%; min-height: 0; aspect-ratio: auto;
}

/* Rámování hero fotky.
   Ohnisko říká, které místo fotky zůstane vidět, přiblížení jak zblízka.
   Hodnoty posílá šablona z řádku stránky (proměnné --hero-*), takže je klient
   nastaví tažením přímo ve fotce a stylopis se kvůli tomu nepřepisuje.

   Fotka se neškáluje přes transform. Škálovat by se s ním dal jen výsledek
   ořezu, který object-fit: cover udělal ještě předtím: zmenšení pod 100 %
   by fotku srazilo do menšího obdélníku, ale odříznuté kraje by nevrátilo,
   protože co cover ukrojí, závisí jen na poměru stran sekce. Místo toho se
   fotce předepíše vlastní šířka a poměr 16:9 (v té je každá hero varianta,
   viz Media::ROLES), takže se nic neořezává vlastním boxem a přiblížení
   opravdu mění, kolik fotky je vidět.

   Sto procent je „právě vyplněná sekce“: šířka, při které fotka sekci pokryje
   i tam, kde je sekce vyšší než 16:9. Proto se počítá z cq jednotek — bez nich
   by CSS výšku sekce neznalo a šlo by ji jen hádat z svh. Míň než sto procent
   nechá kolem fotky tmavé pásy; v hero je to tmavá modrá pod fotkou, ne díra.

   Ohnisko se nastavuje posunem, ne přes object-position: fotka se odsune tak,
   aby její bod (x %, y %) padl do středu sekce. Procenta v translate se totiž
   počítají z velikosti fotky, takže vyjdou i u fotky přetékající ze sekce. */
.hero__media .ph.is-filled {
  /* Odsazení placeholderu by zmenšilo obsahový box, a s ním i cq jednotky —
     fotka by pak sekci nepokryla o pár pixelů u každého kraje. */
  padding: 0;
  container-type: size;
}
.hero__media .ph.is-filled > picture,
.hero__media .ph.is-filled > video {
  inset: auto;
  left: var(--hero-x, 50%);
  top: var(--hero-y, 50%);
  width: calc(var(--hero-zoom, 1) * max(100cqw, 100cqh * var(--hero-aspect, 1.7778)));
  height: auto;
  aspect-ratio: var(--hero-aspect, 1.7778);
  transform: translate(calc(-1 * var(--hero-x, 50%)), calc(-1 * var(--hero-y, 50%)));
}

/* Do stojícího obdélníku se ze široké fotky vejde něco jiného než do ležícího,
   takže mobil má vlastní ohnisko i přiblížení. Pravidlo musí stát až za tím
   desktopovým: obě mají stejnou specificitu, takže dřív zapsané by prohrálo
   a mobilní rámování by se nikde neprojevilo. */
@media (max-width: 700px) {
  .hero__media .ph.is-filled > picture,
  .hero__media .ph.is-filled > video {
    left: var(--hero-x-mobil, var(--hero-x, 50%));
    top: var(--hero-y-mobil, var(--hero-y, 50%));
    width: calc(var(--hero-zoom-mobil, 1) * max(100cqw, 100cqh * var(--hero-aspect, 1.7778)));
    transform: translate(
      calc(-1 * var(--hero-x-mobil, var(--hero-x, 50%))),
      calc(-1 * var(--hero-y-mobil, var(--hero-y, 50%)))
    );
  }
}

/* Šipka dolů: přes celou obrazovku není vidět, že stránka pokračuje. */
.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; z-index: 2;
  width: 44px; height: 44px; margin-left: -22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--color-line-dark);
  opacity: 0.8;
}
.hero__scroll span {
  display: block; width: 10px; height: 10px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}
.hero__scroll:hover { opacity: 1; }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* Vnitřní stránky: nižší hlavička bez fotky. */
.hero--page {
  min-height: 0;
  align-items: flex-end;
  background: linear-gradient(150deg, var(--color-ink), var(--color-ink-3));
}
.hero--page::after { background: none; }
.hero--page .container {
  position: relative; z-index: 2;
  padding-top: calc(var(--header-h) + clamp(36px, 7vh, 72px));
  padding-bottom: clamp(36px, 6vh, 64px);
}
.hero--page h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.hero--page .hero__lead { margin-bottom: 0; }
.hero--post .container { max-width: 880px; }
.hero--post .eyebrow a { color: inherit; }

/* ---------- Fotosloty ---------- */
.ph {
  position: relative;
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(160deg, var(--color-ink-3), var(--color-ink-2));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 18px; text-align: center;
  color: var(--color-muted-light); font-size: 0.85rem;
  border-radius: var(--radius-photo); overflow: hidden;
  min-height: 160px;
}
.ph::before {
  content: "";
  width: 40px; height: 40px; flex: none;
  background: currentColor;
  -webkit-mask: var(--icon-photo) center / contain no-repeat;
          mask: var(--icon-photo) center / contain no-repeat;
  opacity: 0.55;
}
.ph--video::before { -webkit-mask-image: var(--icon-play); mask-image: var(--icon-play); }
.ph--map::before { -webkit-mask-image: var(--icon-map); mask-image: var(--icon-map); }
.ph--light {
  color: var(--color-muted-dark);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
    linear-gradient(160deg, var(--color-surface-2), var(--color-surface));
  border: 1px solid var(--color-line-light);
}
.ph__label { max-width: 30ch; opacity: 0.9; line-height: 1.4; }
.ph[data-ratio="16x9"] { aspect-ratio: 16 / 9; height: auto; }
.ph[data-ratio="4x3"] { aspect-ratio: 4 / 3; height: auto; }
.ph[data-ratio="3x4"] { aspect-ratio: 3 / 4; height: auto; }
.ph[data-ratio="2x3"] { aspect-ratio: 2 / 3; height: auto; }
.ph[data-ratio="1x1"] { aspect-ratio: 1 / 1; height: auto; }

.ph.is-filled { color: transparent; background: var(--color-ink-3); }
.ph.is-filled::before { display: none; }
.ph.is-filled > picture,
.ph.is-filled > video { position: absolute; inset: 0; display: block; }
.ph.is-filled img,
.ph.is-filled video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero slot je pozadí sekce: žádný rámeček, rádius ani stín. */
.hero__media .ph { border-radius: 0; border: 0; }

/* Ambientní smyčka: poster zůstává, video se prolne, až když hraje. */
.ph.is-ambient > video {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.ph.is-ambient.is-playing > video { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ph.is-ambient > video { display: none; }
}

/* Obsahové video (detail aktuality). */
.ph.is-content { background: #000; }
.ph.is-content > video { object-fit: contain; }
.video-content { width: 100%; height: auto; display: block; border-radius: var(--radius-photo); background: #000; }

/* Výškové video z telefonu. Přes celou šířku sloupce by bylo vyšší než
   obrazovka, takže ho omezuje výška podle okna a šířku si dopočítá samo
   z posteru. Na střed, aby nestálo nalepené vlevo. */
.video-content--portrait {
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 720px);
  margin-inline: auto;
}
.video-ambient__poster { position: absolute; inset: 0; }

/* Mapa vložená z Googlu. */
.ph--map.is-embed { padding: 0; }
.ph--map.is-embed::before,
.ph--map.is-embed .ph__label { display: none; }
.ph--map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Přeskočení na obsah ---------- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: #fff; color: var(--color-text-dark);
  padding: 10px 16px; border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 600;
  transition: top 0.15s var(--ease);
}
.skip-link:focus-visible { top: 0; }

/* ---------- Oznámení / pruh (promo) ---------- */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
  background: rgba(255, 255, 255, 0.06); color: #fff;
  border: 1px solid var(--color-line-dark); border-radius: var(--radius-card);
  padding: 24px 28px;
}
.promo__badge {
  flex: none;
  background: var(--color-gold); color: var(--color-ink);
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.promo__text { flex: 1 1 320px; }
.promo__text h2, .promo__text h3 { margin-bottom: 4px; font-size: 1.2rem; }
.promo__body { color: var(--color-muted-light); font-size: 0.95rem; }

/* ---------- Karty aktualit ---------- */
.posts-grid { margin-top: 32px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--color-canvas);
  border: 1px solid var(--color-line-light); border-radius: var(--radius-photo);
  overflow: hidden; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.post-card__media { position: relative; }
.post-card__media .ph { border-radius: 0; border: 0; }
/* Tichá ukázka videa v kartě. Leží nad posterem a zviditelní se, teprve až
   se opravdu přehrává — do té doby (i bez JavaScriptu) zůstává poster.
   Výškové video se ořezává k horní části záběru, kde bývá hlava mluvčího. */
.post-card__preview {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.post-card__media.is-playing .post-card__preview { opacity: 1; }

.post-card__play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.post-card__play::before {
  content: "";
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(6, 42, 6, 0.75);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
}
.post-card__play::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-style: solid; border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.post-card:hover .post-card__play::before { background: var(--color-accent); }
.post-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.post-card__date { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-text); }
.contact-card .ico,
.support-block .ico { margin-bottom: 10px; }
.utilbar__phone { color: inherit; text-decoration: none; }
.topic-nav__row .ico--sm { width: 18px; height: 18px; }
.post-card__body h3 { margin: 0; font-size: 1.15rem; }
.post-card__body p { margin: 0; color: var(--color-muted-dark); font-size: 0.93rem; }
.post-card__cta { margin-top: auto; padding-top: 12px; font-weight: 650; color: var(--color-accent-text); font-size: 0.9rem; }

/* ---------- Karty témat programu ---------- */
.topics-grid { margin-top: 32px; }
.topic-card {
  display: flex; flex-direction: column;
  background: var(--color-canvas);
  border: 1px solid var(--color-line-light); border-radius: var(--radius-card);
  overflow: hidden; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.topic-card .ph { border-radius: 0; border: 0; }
.topic-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.topic-card__body h3 { margin: 0; }
.topic-card__body p { margin: 0; color: var(--color-muted-dark); font-size: 0.93rem; }
.topic-card__cta { margin-top: auto; padding-top: 12px; font-weight: 650; color: var(--color-accent-text); font-size: 0.9rem; }

/* ---------- Číslované bloky (třináctka, hodnoty týmu) ---------- */
.features-grid { margin-top: 32px; }
.feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-line-dark); border-radius: var(--radius-card);
  padding: 24px;
}
.section--light .feature,
.section--surface .feature {
  background: var(--color-canvas);
  border-color: var(--color-line-light);
}
.feature__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 12px;
  background: var(--color-gold); color: var(--color-ink);
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 14px;
}
.feature h3 { margin-bottom: 8px; }
.feature .rich { font-size: 0.94rem; opacity: 0.85; }

/* ---------- Slovo starosty ---------- */
.quote-block {
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.quote-block__media .ph { aspect-ratio: 3 / 4; height: auto; }
.quote-block__text h2 { margin-bottom: 16px; }
.quote-block__text .rich { font-size: 1.02rem; }
.quote-block__sign { margin-top: 20px; font-weight: 700; color: var(--color-accent-text); }
@media (max-width: 800px) {
  .quote-block { grid-template-columns: 1fr; }
  .quote-block__media { max-width: 280px; }
}

/* ---------- Kandidátka ---------- */
.team-grid {
  margin-top: 32px;
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.team-grid--teaser { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .team-grid--teaser { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid--teaser { grid-template-columns: repeat(2, 1fr); }
}
.member { text-align: left; }
.member__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface));
  border: 1px solid var(--color-line-light);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.member__photo .ph { position: absolute; inset: 0; border-radius: 0; border: 0; min-height: 0; aspect-ratio: auto; }
.member__initials {
  font-size: 2.2rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--color-accent);
  opacity: 0.85;
}
.member__num {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 10px;
  background: var(--color-ink); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
}
.member h3 { font-size: 1rem; margin-bottom: 2px; }
.member p { margin: 0; font-size: 0.86rem; color: var(--color-muted-dark); }
.member__bio { margin-top: 6px !important; }
.section--dark .member p { color: var(--color-muted-light); }

/* ---------- Výzva k volbám ---------- */
.volby-cta { max-width: 680px; margin: 0 auto; }
.volby-cta__badge {
  display: inline-block; margin-bottom: 18px;
  background: #fff; color: var(--color-ink);
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.volby-cta .rich { color: var(--color-muted-light); font-size: 1.05rem; }

/* ---------- Program: lišta témat ---------- */
.topic-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-line-light);
}
.topic-nav__row {
  display: flex; gap: 4px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 8px; padding-bottom: 8px;
}
.topic-nav__row::-webkit-scrollbar { display: none; }
.topic-nav__row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  text-decoration: none; font-weight: 600; font-size: 0.86rem;
  color: var(--color-muted-dark);
  padding: 7px 13px; border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}
.topic-nav__row a:hover { color: var(--color-text-dark); border-color: var(--color-line-light); }

/* ---------- Program: téma ---------- */
.topic { scroll-margin-top: calc(var(--header-h) + 56px); }
.topic__articles { margin-top: 36px; display: grid; gap: clamp(28px, 4vw, 48px); }
.topic-article { max-width: 800px; }
.topic-article--media {
  max-width: none;
  display: grid; grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(24px, 4vw, 48px); align-items: start;
}
.topic-article__media .ph { border-radius: var(--radius-photo); }
.topic-article__text h3 { font-size: 1.35rem; margin-bottom: 12px; }
@media (max-width: 800px) {
  .topic-article--media { grid-template-columns: 1fr; }
}
.topic__posts { margin-top: 48px; }
.topic__posts-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent-text); }
.topic__posts .posts-grid { margin-top: 20px; }

/* ---------- Detail aktuality ---------- */
.post__layout { max-width: 880px; padding-top: clamp(28px, 4vw, 48px); padding-bottom: var(--section-y); }
.post__media { margin-bottom: clamp(24px, 4vw, 40px); }
.post__media .ph[data-ratio] { min-height: 0; }
.post__body { font-size: 1.05rem; line-height: 1.65; }
.post__topic { margin-top: 32px; }

/* ---------- Kontakt ---------- */
.contacts-grid { margin-top: 32px; }
.contact-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-line-light); border-radius: var(--radius-card);
  padding: 24px;
}
.contact-card__photo { max-width: 160px; margin-bottom: 16px; aspect-ratio: 3 / 4; height: auto; }
.contact-card h3 { margin-bottom: 2px; }
.contact-card__role { color: var(--color-muted-dark); font-size: 0.9rem; margin-bottom: 10px; }
.contact-card__line { margin: 0; font-weight: 600; display: flex; align-items: flex-start; gap: 8px; }
.contact-summary {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.contact-summary__big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none; font-weight: 800;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem); letter-spacing: -0.01em;
  color: var(--color-accent-text); margin-bottom: 6px;
}
.contact-summary__big:hover { text-decoration: underline; }
@media (max-width: 800px) { .contact-summary { grid-template-columns: 1fr; } }

/* ---------- Oznámení o transparentnosti ----------
   Příloha III prováděcího nařízení (EU) 2025/1410: bezpatkové písmo nejméně
   12 bodů (16 px = 12 pt), řádkování 1,5, mezera mezi odstavci 1,5násobek
   řádkování, kontrast textu k pozadí nejméně 4,5:1. Text je proto tmavý
   na bílé a bez zeslabení průhledností, které zbytek webu používá. */
.notice { font-size: 1rem; line-height: 1.6; color: var(--color-text-dark); }
.notice p { margin: 0 0 1.5em; }
.notice p:last-child { margin-bottom: 0; }
.notice a { color: var(--color-accent-text); text-underline-offset: 2px; }
.notice__container { max-width: 880px; }
.notice__title { margin: clamp(32px, 5vw, 48px) 0 12px; }
.notice__title--sub { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.notice__intro { color: var(--color-muted-dark); margin-bottom: 1.5em; }
.notice__strong { font-weight: 700; }
.notice__muted { color: var(--color-muted-dark); }

/* Označení podle čl. 11 — věta, kterou nese tiskovina vedle QR kódu. */
.notice__label {
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 20px 24px;
}
.notice__label-title { font-weight: 800; letter-spacing: -0.01em; }
.notice__label-url { font-family: var(--font-mono); font-size: 0.95rem; }

/* Číslované body vzoru. */
.notice__dl { margin: 0; padding: 0; border-top: 1px solid var(--color-line-light); }
.notice__row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 28px;
  padding: 18px 0; border-bottom: 1px solid var(--color-line-light);
}
.notice__row dt { font-weight: 700; margin: 0; }
.notice__row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.notice__row dd .rich p:last-child { margin-bottom: 0; }
.notice__num {
  display: inline-block; min-width: 2.2em; font-family: var(--font-mono);
  font-weight: 600; color: var(--color-accent-text);
}
@media (max-width: 640px) { .notice__row { grid-template-columns: 1fr; gap: 4px; } }

/* Jednotlivá reklamní sdělení — karta s kotvou, na kterou míří QR tiskoviny. */
.notice__adverts { display: grid; gap: 16px; margin-top: 32px; }
.notice-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-line-light); border-radius: var(--radius-card);
  padding: 24px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.notice-card:target { border-color: var(--color-gold); box-shadow: none; }
.notice-card__title { font-size: 1.25rem; margin-bottom: 4px; }
.notice-card__medium { color: var(--color-muted-dark); margin-bottom: 1em; }
.notice-card__dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px;
  margin: 0 0 1em; padding: 0;
}
.notice-card__dl div { min-width: 0; }
.notice-card__dl dt { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted-dark); }
.notice-card__dl dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.notice-card__body { margin-bottom: 1em; }
.notice-card__link { font-size: 0.9rem; margin: 0; }

.notice--meta { padding-top: 0; }
.notice__meta { color: var(--color-muted-dark); font-size: 0.95rem; overflow-wrap: anywhere; }

/* ---------- Ptáte se — odpovídáme ---------- */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq__item {
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.section--light .faq__item,
.section--surface .faq__item { border-color: var(--color-line-light); background: var(--color-canvas); }
.faq__q {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; color: inherit; font: inherit;
  font-weight: 650; font-size: 1rem;
  padding: 18px 48px 18px 20px; cursor: pointer;
  position: relative;
}
.faq__q::after {
  content: "";
  position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  opacity: 0.6;
}
.faq__q[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: -2px; }
.faq__a { overflow: hidden; transition: max-height 0.25s var(--ease); }
.faq__a p { padding: 0 20px 18px; margin: 0; opacity: 0.85; line-height: 1.6; }

/* ---------- Patička ---------- */
.footer { background: var(--color-ink); color: var(--color-muted-light); padding: clamp(48px, 7vw, 80px) 0 24px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) max-content max-content max-content;
  gap: 32px 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-line-dark);
}
.footer__about { margin-top: 16px; max-width: 32ch; font-size: 0.92rem; }
.footer h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer a { display: block; color: var(--color-muted-light); text-decoration: none; padding: 4px 0; font-size: 0.95rem; }
.footer a:hover { color: #fff; }
.footer .social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social__icon { width: 1.15em; height: 1.15em; flex: none; display: block; }
.footer .brand a { display: inline-flex; padding: 0; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-top: 20px; font-size: 0.82rem;
}
.footer__bottom a { display: inline; padding: 0; text-decoration: underline; }
.footer__consent { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Utility lišta ---------- */
.utilbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 16px;
  background: rgba(6, 42, 6, 0.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; border-top: 1px solid var(--color-line-dark);
  font-size: 0.88rem;
}
.utilbar__status { display: flex; align-items: center; gap: 9px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utilbar__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-open); flex: none; }
.utilbar__actions { display: flex; align-items: center; gap: 12px; flex: none; }
@media (max-width: 480px) {
  .utilbar { padding: 0 12px; gap: 8px; font-size: 0.84rem; }
  .utilbar .btn--sm { padding: 8px 12px; font-size: 0.82rem; }
}

/* ---------- Lišta souhlasu ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 64px; z-index: 150;
  background: var(--color-ink-2); color: #fff;
  border: 1px solid var(--color-line-dark); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 20px 22px;
  max-width: 720px; margin: 0 auto;
}
.consent[hidden] { display: none; }
.consent__title { font-size: 1.05rem; margin: 0 0 8px; }
.consent__text { font-size: 0.88rem; color: var(--color-muted-light); margin: 0 0 16px; }
.consent__text a { color: #fff; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__detail { margin-top: 16px; border-top: 1px solid var(--color-line-dark); padding-top: 16px; }
.consent__detail[hidden] { display: none; }
.consent__option { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; margin-bottom: 12px; }
.consent__option input { margin-top: 3px; }
.consent__option b { display: block; }
.consent__option span { color: var(--color-muted-light); }
@media (max-width: 560px) { .consent { bottom: 60px; padding: 16px; } }

/* ---------- Lišta náhledu skrytého obsahu ---------- */
.preview-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding: 10px 24px; background: var(--color-accent-text); color: #fff;
  font-size: 0.86rem; line-height: 1.45;
}
.preview-bar b { font-weight: 700; }
.preview-bar span { color: rgba(255, 255, 255, 0.88); }
.preview-bar__off { margin-left: auto; color: #fff; font-weight: 600; }

/* ---------- Panel editora ---------- */
.editor-panel {
  position: fixed; right: 12px; bottom: 64px; z-index: 140;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--color-ink-2); color: #fff;
  border: 1px solid var(--color-line-dark); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
}
.editor-panel__label { color: rgba(255, 255, 255, 0.72); }
.editor-panel__btn {
  padding: 7px 12px; border-radius: var(--radius-pill);
  background: var(--color-canvas); color: var(--color-ink);
  font-weight: 650; text-decoration: none; white-space: nowrap;
}
.editor-panel__btn:hover { background: var(--color-accent-hover); }
@media (max-width: 600px) {
  .editor-panel__label { display: none; }
}

/* ---------- Zprávy (flash) ---------- */
.flash {
  margin: 16px auto; max-width: var(--maxw); padding: 12px 20px;
  border-radius: var(--radius-card); font-size: 0.92rem;
  background: var(--color-surface-2); color: var(--color-text-dark);
  border: 1px solid var(--color-line-light);
}

/* ---------- Odhalení sekcí při scrollu ---------- */
html.js-reveal .reveal-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
html.js-reveal .reveal-target.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal-target { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tisk ---------- */
@media print {
  .site-header, .utilbar, .consent, .footer__consent, .hero__scroll,
  .topic-nav, .editor-panel { display: none !important; }
  body { padding-bottom: 0; }
  /* Oznámení o transparentnosti se tiskne pro archiv: bez barevných ploch,
     s viditelnými adresami odkazů a bez stránkových zlomů uvnitř bodu. */
  .notice__label { background: none; }
  .notice__row, .notice-card { break-inside: avoid; }
  .notice a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}

/* ---------- Jízdárna: motto, karty, koně, jízda ---------- */
.motto-block {
  margin: 0 auto;
  max-width: 36rem;
  text-align: center;
  border: 0;
  padding: 0;
}
.motto-block--uzka { max-width: 18rem; }
.motto-block--siroka { max-width: 54rem; }
.motto-block--radek { max-width: none; }
.motto-block .rich,
.motto-block p {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}
.motto-block--radek .rich,
.motto-block--radek p {
  white-space: nowrap;
  font-size: clamp(1.15rem, 2.05vw, 2.35rem);
}
@media (max-width: 800px) {
  .motto-block--radek .rich,
  .motto-block--radek p {
    white-space: normal;
    font-size: clamp(1.7rem, 6.5vw, 2.2rem);
  }
}

.do-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.do-card {
  background: #fff;
  color: var(--color-ink);
  padding: 22px 22px 8px;
  border-top: 1px solid var(--color-gold);
  transition: transform 0.22s var(--ease);
}
.do-card .ico { margin-bottom: 12px; }
.do-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .do-card { transition: none; }
  .do-card:hover { transform: none; }
}
.do-card p:last-child,
.do-card .rich:last-child { margin-bottom: 14px; }
@media (max-width: 700px) {
  .do-grid { grid-template-columns: 1fr; }
}

.jizda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 56px;
  align-items: center;
}
.jizda__title { font-size: clamp(2.1rem, 4vw, 3.4rem); max-width: 12em; }
.jizda__cena {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  line-height: 0.95;
}
.jizda__castka { font-size: clamp(2.8rem, 5vw, 4.4rem); }
.jizda__doba {
  margin-top: 0.28em;
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.1;
}
@media (max-width: 800px) {
  .jizda { grid-template-columns: 1fr; }
  .jizda__cena { margin-top: 8px; }
}

.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 40px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 140px;
  max-width: 200px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.sponsor .ph {
  width: 168px;
  height: 72px;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--color-muted-dark);
}
.sponsor .ph.is-filled { background: transparent; }
.sponsor .ph.is-filled img {
  object-fit: contain;
}
.sponsor__name {
  border-top: 1px solid var(--color-gold);
  padding-top: 8px;
  font-size: 1.05rem;
}
.sponsor__name--with-logo {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
body:has(.edit-bar):not(.is-edit-browsing) .sponsor__name--with-logo {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  font-size: 0.85rem;
  color: var(--color-muted-dark);
}

.horse__facts {
  display: grid;
  grid-template-columns: 9.4rem 1fr;
  gap: 8px 12px;
  margin: 0 0 18px;
}
.ico {
  width: 28px;
  height: 28px;
  display: block;
  flex: none;
  color: currentColor;
}
.ico--sm { width: 16px; height: 16px; }
.ico--gold { color: var(--color-gold); }
.jizda__cena .ico { width: 36px; height: 36px; margin-bottom: 6px; }
.horse__facts dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted-dark);
  margin: 0;
}
.footer .footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.utilbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.horse__facts dd { margin: 0; }

.medailon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 22px;
  margin-top: 8px;
}
.medailon {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.medailon__photo { display: block; }
.medailon__photo .ph { min-height: 0; }
.medailon__copy { display: flex; flex-direction: column; gap: 4px; }
.medailon__nick {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--color-text-dark);
}
.medailon__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
  text-wrap: balance;
}
a.medailon:hover .medailon__name,
a.medailon:focus-visible .medailon__name { text-decoration: underline; text-underline-offset: 0.16em; }
.medailon__meta { color: var(--color-muted-dark); font-size: 0.95rem; }
.medailon__photo .ph.is-filled img { transition: transform 0.6s var(--ease); }
a.medailon:hover .ph.is-filled img,
a.medailon:focus-visible .ph.is-filled img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .medailon__photo .ph.is-filled img { transition: none; }
}
@media (max-width: 800px) {
  .medailon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .medailon-grid { grid-template-columns: 1fr; gap: 28px; }
}

.galerie {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 16px;
  margin-top: 8px;
}
.galerie__item { margin: 0; }
.galerie__link { color: inherit; text-decoration: none; display: block; }
.galerie__caption {
  margin: 10px 0 0;
  color: var(--color-muted-dark);
  font-size: 0.95rem;
}
.galerie__more { margin-top: 10px; }
@media (max-width: 800px) {
  .galerie { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .galerie { grid-template-columns: 1fr; }
}

.kun { display: grid; grid-template-columns: minmax(220px, 380px) minmax(0, 1fr); gap: 28px 48px; align-items: start; }
.kun:has(.kun__thumbs) { grid-template-columns: minmax(280px, 470px) minmax(0, 1fr); }
.kun__back { margin: 0 0 22px; }
.ext-link--back::after { content: none; }
.ext-link--back::before { content: "\2190"; font-size: 0.9em; }
.kun__copy h1 { margin: 0 0 16px; text-wrap: balance; }
.kun__gallery-title { margin: 56px 0 18px; }
.kun__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line-light);
}
.kun__switch { color: inherit; text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; }
.kun__switch span { display: block; font-family: var(--font); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--color-muted-dark); margin-bottom: 2px; }
.kun__switch--next { text-align: right; }
.kun__switch:hover { text-decoration: underline; text-underline-offset: 0.16em; }
.kun__stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
.kun__stage:has(.kun__thumbs) { grid-template-columns: minmax(0, 1fr) 76px; }
.kun__open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  border-radius: var(--radius-photo);
}
.kun__open .ph { width: 100%; }
.kun__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 76px;
}
.kun__thumb {
  width: 76px;
  height: 76px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface-2);
  cursor: zoom-in;
}
.kun__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kun-lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-ink);
  color: var(--color-text-light);
}
.kun-lightbox::backdrop { background: rgba(6, 42, 6, 0.94); }
.kun-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.kun-lightbox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}
.kun-lightbox__bar p { margin: 0; }
.kun-lightbox__bar p:first-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.kun-lightbox__bar [data-kun-count] { color: var(--color-muted-light); font-size: 0.9rem; }
.kun-lightbox__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 8px 4px;
}
.kun-lightbox__close:hover { text-decoration: underline; text-underline-offset: 0.16em; }
.kun-lightbox__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 0 12px 20px;
}
.kun-lightbox__stage img {
  justify-self: center;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.kun-lightbox__nav {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 12px 8px;
}
.kun-lightbox__nav:hover { text-decoration: underline; text-underline-offset: 0.16em; }
@media (max-width: 800px) {
  .kun, .kun:has(.kun__thumbs) { grid-template-columns: 1fr; }
  .kun__photo { max-width: 420px; }
  .kun__stage:has(.kun__thumbs) { grid-template-columns: 1fr; }
  .kun__thumbs {
    flex-direction: row;
    width: auto;
    max-width: 100%;
    overflow-x: auto;
  }
  .kun-lightbox__nav { padding: 8px 4px; }
}

/* Rozbalený profil na stránce Koně se v úpravách skládá pod sebe.
   Medailonky na úvodu zůstávají vedle sebe, stejně jako pro návštěvníka. */
body:has(.edit-bar):not(.is-edit-browsing) .medailon-grid:has(.medailon--edit) { grid-template-columns: 1fr; }
body:has(.edit-bar):not(.is-edit-browsing) .medailon--edit {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: start;
}
body.is-edit-browsing .medailon__edit { display: none; }
@media (max-width: 800px) {
  body:has(.edit-bar):not(.is-edit-browsing) .medailon--edit { grid-template-columns: 1fr; }
}

.milestones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.milestones__year {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  margin: 0 0 6px;
}
.support-block + .support-block { margin-top: 28px; }

.nav__links a { letter-spacing: 0.03em; font-weight: 400; }
.footer .brand__logo { height: 72px; }
