@charset "UTF-8";
/* ============================================================
   Obec Bělov — v7
   Návrh: 2026, autor: web team
   Důraz na: WCAG 2.2 AA, vysoký kontrast, velké písmo, klávesnice
   ============================================================ */

/* ---------- 1. Design tokens (CSS proměnné) ---------- */
:root {
  /* Barvy z obecního erbu / loga */
  --c-red:        #C8102E;   /* hlavní akcent */
  --c-red-d:      #9C0A23;   /* hover */
  --c-blue:       #1F3D8B;   /* sekundární akcent */
  --c-blue-d:     #142B66;
  --c-yellow:     #F4C430;   /* zvýraznění z erbu */

  /* Kontrastní podklad */
  --c-bg:         #ffffff;
  --c-surface:    #ffffff;
  --c-surface-2:  #f5f5f3;   /* mírně teplá šedá pro odstínění sekcí */
  --c-text:       #111111;   /* skoro černá – kontrast 19:1 na bílé */
  --c-text-soft:  #4a4a4a;   /* pro popisky, datumy */
  --c-border:     #d4d4d0;
  --c-border-strong: #111111;

  --c-focus:      #FF8800;   /* fokus – výrazný, kontrast >3:1 na bílé i černé */

  /* Rádia */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;

  /* Mezery */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;

  /* Typografie – základ 18 px */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  /* Display font pro nadpisy — Oswald (jako ve v6), kondenzovaný sans-serif */
  --font-display: "Oswald", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-w: 1240px;
  --max-w-narrow: 880px;

  /* Stíny */
  --shadow-1: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-3: 0 8px 32px rgba(0,0,0,0.15);
}

/* ---------- 2. Reset a základní typografie ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 112.5%;             /* 1rem = 18px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-y: auto;              /* pojistka — html nikdy nezamknout scroll */
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 1rem;               /* 18 px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Tělo má overflow:hidden jen když je otevřený lightbox/modal — třída se přidá z JS */
body.is-modal-open { overflow: hidden; }

/* Manuální nastavení velikosti písma z lišty přístupnosti */
html[data-fontsize="large"]  { font-size: 125%; }   /* 20 px */
html[data-fontsize="xlarge"] { font-size: 137.5%; } /* 22 px */

/* Vysoký kontrast (manuální) */
html[data-contrast="high"] {
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-surface-2: #ffffff;
  --c-text: #000000;
  --c-text-soft: #000000;
  --c-border: #000000;
  --c-red: #B00020;
  --c-blue: #002060;
}

/* Nadpisy — Oswald (kondenzovaný sans-serif, jako ve v6).
   Lehčí váhy než běžně — Oswald působí elegantně i v light/regular,
   bold by byl zbytečně agresivní. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 var(--s-2);
  color: var(--c-text);
}
h1 { font-size: clamp(2.125rem, 1.7rem + 1.7vw, 2.875rem); font-weight: 300; }  /* 34 → 46 px, light */
h2 { font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2.125rem);  font-weight: 400; } /* 26 → 36 px, regular */
h3 { font-size: 1.375rem; font-weight: 400; }                                   /* 24 px */
h4 { font-size: 1.125rem; font-weight: 500; }                                   /* 20 px, jen lehce zvýrazněno */

p { margin: 0 0 var(--s-2); }

a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--c-red);
  text-decoration-thickness: 2px;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* Viditelný fokus (KRITICKÉ) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-2);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Pomocné třídy ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--s-3);
  padding-right: var(--s-3);
}
.container--narrow { max-width: var(--max-w-narrow); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-2);
  background: var(--c-text);
  color: #fff;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-2);
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: var(--s-2); color: #fff; }

/* ---------- 4. Lišta přístupnosti ---------- */
.a11y-bar {
  background: var(--c-text);
  color: #fff;
  font-size: 0.875rem;
}
.a11y-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.4rem var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  justify-content: flex-end;
}
.a11y-bar__group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.a11y-bar__label {
  font-size: 0.8125rem;
  opacity: 0.8;
  margin-right: 0.25rem;
}
.a11y-bar button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--r-2);
  padding: 0.15rem 0.6rem;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  min-height: 28px;
  line-height: 1.2;
}
.a11y-bar button:hover { border-color: #fff; }
.a11y-bar button[aria-pressed="true"] {
  background: #fff;
  color: var(--c-text);
  border-color: #fff;
  font-weight: 600;
}

.a11y-bar__social {
  margin-left: auto;
  display: inline-flex;
  gap: var(--s-1);
}
.a11y-bar__social a {
  color: #fff;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--r-2);
}
.a11y-bar__social a:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ---------- 5. Hlavička s logem a znakem ---------- */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  z-index: 1000;     /* hlavička i menu musí být nad mapou Leafletu (400+) */
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-3);
  display: grid;
  /* logo (auto) | mezerník (1fr) | vyhledávání (do 360 px) */
  grid-template-columns: auto 1fr minmax(0, 360px);
  gap: var(--s-3);
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: var(--c-text);
}
.brand__crest {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}
.brand__text {
  font-family: var(--font-display);
  font-size: 2.25rem;       /* o stupeň větší — Oswald je kondenzovaný */
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--c-text);
  text-transform: uppercase;
}
.brand__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-top: 0.3rem;
}

/* Vyhledávání (v headeru a všude jinde) — šířku řídí kontejner */
.search {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--c-text);
  border-radius: var(--r-2);
  overflow: hidden;
  background: #fff;
  width: 100%;
}
.search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  background: transparent;
  color: var(--c-text);
}
.search input[type="search"]:focus { outline: 0; }
.search input[type="search"]:focus + button,
.search:focus-within { box-shadow: 0 0 0 3px var(--c-focus); }
.search button {
  background: var(--c-red);     /* tlačítko v barvě brandu */
  color: #fff;
  border: 0;
  padding: 0 var(--s-2);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background 0.15s ease;
}
.search button:hover { background: var(--c-red-d); }

/* ---------- 6. Hlavní navigace (červená lišta) ----------
   Mobile-first: defaultně je menu sbalené do hamburgeru.
   Desktop styly se aktivují přes @media (min-width: 1025px) níže. */
.main-nav {
  background: var(--c-red);
  color: #fff;
  border-top: 1px solid var(--c-red-d);
  border-bottom: 4px solid var(--c-blue);
  position: relative;
  z-index: 1000;     /* nad mapou Leafletu (default panes 400, controls 800) */
}
.main-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;   /* mobile: stack — toggle nahoře, list dole */
  align-items: stretch;
}
.main-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;            /* mobile: skryté dokud uživatel neklikne hamburger */
  flex-direction: column;
  width: 100%;
}
.main-nav__list.is-open { display: flex; }
.main-nav__item {
  position: relative;
  width: 100%;              /* mobile: každá položka full-width */
  border-top: 1px solid var(--c-red-d);
}
.main-nav__link,
.main-nav__btn {
  display: flex;            /* mobile: full-width */
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  color: #fff;
  text-decoration: none;
  background: var(--c-red);
  background-color: var(--c-red);  /* dvojí, aby přebilo i UA gradient */
  background-image: none;
  border: 0;
  outline: 0;
  box-shadow: none;
  text-shadow: none;
  font: inherit;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-height: 56px;
  width: 100%;
  justify-content: space-between;
  white-space: nowrap;        /* text + ▾ nikdy nezalomit na 2 řádky */
  -webkit-appearance: none;   /* iOS/Safari */
  -moz-appearance: none;
  appearance: none;
  margin: 0;                  /* žádné UA default margin */
}
.main-nav__link:hover,
.main-nav__btn:hover,
.main-nav__btn[aria-expanded="true"],
.main-nav__link[aria-current="page"] {
  background: var(--c-red-d);
  color: #fff;
  text-decoration: none;
}
.main-nav__btn .arrow {
  transition: transform 0.2s ease;
}
.main-nav__btn[aria-expanded="true"] .arrow { transform: rotate(180deg); }

/* Dropdown — mobile: rozbalí se inline pod položkou; desktop: absolutní */
.main-nav__sub {
  display: none;
  position: static;          /* mobile default */
  background: var(--c-red-d);
  color: #fff;
  border: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: none;
  z-index: 1010;             /* nad mapou Leafletu */
}
.main-nav__btn[aria-expanded="true"] + .main-nav__sub { display: block; }
.main-nav__sub a {
  display: block;
  padding: 0.55rem var(--s-3) 0.55rem var(--s-5);
  color: #fff;              /* mobile default */
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}
.main-nav__sub a:hover {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}
.main-nav__sub a[aria-current="page"] {
  background: var(--c-red);
  color: #fff;
}

/* 2-sloupcový dropdown pro dlouhá podmenu */
.main-nav__sub--wide {
  columns: 2;
  column-gap: 0;
  min-width: 520px;
  padding: var(--s-1) 0;
}
.main-nav__sub--wide li {
  break-inside: avoid;
}
.main-nav__sub--wide a {
  padding-right: var(--s-2);
}

/* Toggle pro mobil — viditelný defaultně (mobile-first), skryje se na desktopu */
.nav-toggle {
  display: flex;
  background: var(--c-red-d);
  color: #fff;
  border: 0;
  padding: 0.75rem var(--s-3);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

/* ---------- 7. Hero (úvodní slider/grid s prioritními zprávami) ----------
   Pozn.: hero je vložené do `.intro-slider__slide--hero`, takže background
   už nastavuje slider. Tady jen layout. */
.hero {
  padding: 0;             /* slider má vlastní padding */
}

/* ---------- 7b. Intro slider — hero + panoramatické fotky obce ----------
   Slide 1: hero (3 nejnovější zprávy)
   Slide 2–4: panorama obce přes celou šířku
   Bez autoplay; navigace tečkami / šipkami / swipem. */
.intro-slider {
  position: relative;
  background: var(--c-surface-2);
  padding: var(--s-4) 0 var(--s-2);
}
.intro-slider__viewport {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 440px;       /* místo pro hero / fotku */
}
.intro-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.intro-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;      /* aktivní slide drží výšku containeru */
}
/* Fotka — vyplní viewport */
.intro-slider__slide--photo {
  padding: 0 var(--s-3);
}
.intro-slider__slide--photo img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--r-3);
  display: block;
}
.intro-slider__slide--photo.is-active { min-height: 440px; }
.intro-slider__caption {
  position: absolute;
  right: var(--s-3);
  bottom: 0.75rem;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 0.4rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-top-left-radius: var(--r-2);
  border-bottom-right-radius: var(--r-3);
  letter-spacing: 0.02em;
  max-width: 80%;
}
/* Hero slide — bez vlastního pozadí, drží layout */
.intro-slider__slide--hero { padding: 0; }

/* Šipky vypnuté — navigace pouze tečkami / klávesnicí / swipem */
.intro-slider__arrow { display: none; }

/* Tečky pod sliderem */
.intro-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--s-2) 0 0;
}
.intro-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-border);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.intro-slider__dot:hover { background: var(--c-text-soft); }
.intro-slider__dot.is-active {
  background: var(--c-red);
  transform: scale(1.2);
}
.intro-slider__dot:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .intro-slider__viewport { min-height: 360px; }
  .intro-slider__slide--photo img { max-height: 360px; }
  .intro-slider__slide--photo.is-active { min-height: 360px; }
}
@media (max-width: 700px) {
  .intro-slider__viewport { min-height: 280px; }
  .intro-slider__slide--photo img { max-height: 280px; }
  .intro-slider__slide--photo.is-active { min-height: 280px; }
}
.hero__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-3);
}
.hero__main,
.hero__side > a {
  position: relative;
  background: var(--c-text);
  color: #fff;
  border-radius: var(--r-3);
  overflow: hidden;
  display: block;
  text-decoration: none;
  isolation: isolate;        /* drží absolutní potomky uvnitř */
}
.hero__main {
  min-height: 420px;
}
.hero__side {
  display: grid;
  gap: var(--s-3);
  grid-template-rows: 1fr 1fr;
}
.hero__side > a {
  min-height: 200px;
}
.hero__main > img,
.hero__side > a > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  z-index: 0;
}
.hero__main > .hero__caption,
.hero__side > a > .hero__caption {
  z-index: 1;                /* popisky vždy nad obrázkem */
}
.hero__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-3);
  background: linear-gradient(transparent, rgba(0,0,0,0.85) 60%);
}
.hero__caption .badge {
  display: inline-block;
  background: var(--c-red);
  color: #fff;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--r-1);
  margin-bottom: var(--s-1);
}
.hero__caption h2,
.hero__caption h3 {
  color: #fff;
  margin: 0;
}
.hero__caption h2 { font-size: 1.625rem; }
.hero__caption h3 { font-size: 1.125rem; }
.hero__caption time {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.4rem;
}
.hero__main:hover .hero__caption,
.hero__side > a:hover .hero__caption {
  background: linear-gradient(transparent, rgba(200,16,46,0.95) 60%);
}

/* ---------- 8. Rychlé akce (4 velká tlačítka) ---------- */
.quick-actions {
  background: var(--c-bg);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--c-border);
}
.quick-actions__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
}
.qa {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--c-bg);
  border: 2px solid var(--c-text);
  border-radius: var(--r-3);
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.15s ease, background 0.15s ease;
}
.qa:hover {
  background: var(--c-text);
  color: #fff;
  transform: translateY(-2px);
}
.qa:hover .qa__icon { background: #fff; color: var(--c-text); }
.qa__icon {
  width: 48px;
  height: 48px;
  background: var(--c-text);
  color: #fff;
  border-radius: var(--r-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.qa__title {
  display: block;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}
.qa__sub {
  display: block;
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ---------- 9. Sekce a hlavičky sekcí ---------- */
.section {
  padding: var(--s-5) 0;
}
.section--alt { background: var(--c-surface-2); }

.section__head {
  max-width: var(--max-w);
  margin: 0 auto var(--s-3);
  padding: 0 var(--s-3);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  border-bottom: 4px solid var(--c-text);
  padding-bottom: var(--s-1);
}
.section__head h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.section__head .more {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Layout dvou sloupců — interně 3 stejné sloupce + gap stejný jako info-trio,
   takže pravý sloupec (Rychlé odkazy) lícuje přesně se 3. sloupcem info-trio
   pod ním (Místní části obce). První dítě (Úřední deska) zabírá 2 sloupce. */
.two-col {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.two-col > :first-child { grid-column: span 2; }
.three-col {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

/* ---------- 10. Úřední deska / seznam dokumentů ---------- */
.board { list-style: none; padding: 0; margin: 0; }
.board__item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}
.board__item:last-child { border-bottom: 0; }
.board__date {
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  color: var(--c-text-soft);
  font-weight: 600;
}
.board__title {
  font-size: 1.0625rem;
  font-weight: 500;
  font-family: var(--font-sans);   /* běžné písmo, ne Oswald */
  letter-spacing: 0;
  line-height: 1.4;
}
.board__title a {
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-text-soft);
}
.board__title a:hover {
  color: var(--c-red);
  border-bottom-color: var(--c-red);
}
.board__meta {
  font-size: 0.8125rem;
  color: var(--c-text-soft);
}

/* ---------- 10b. Kompaktní výpis úřední desky (homepage) ---------- */
.board-mini { list-style: none; padding: 0; margin: 0; }
.board-mini__item {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-border);
}
.board-mini__item:last-child { border-bottom: 0; }
.board-mini__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  font-family: var(--font-sans);   /* běžné písmo, ne Oswald */
  letter-spacing: 0;
}
.board-mini__title a {
  color: var(--c-text);
  text-decoration: none;
}
.board-mini__title a:hover {
  color: var(--c-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.board-mini__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--c-text-soft);
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}
.board-mini__meta .att {
  background: var(--c-text);
  color: #fff;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.board-mini__item.is-new .board-mini__title::after {
  content: "NOVÉ";
  display: inline-block;
  background: var(--c-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.4rem;
  letter-spacing: 0.05em;
}

/* Vyšlý dokument — utlumená barva, přeškrtnutý datum, šedý badge */
.board-mini__item.is-past .board-mini__title a {
  color: var(--c-text-soft);
}
.board-mini__item.is-past .board-mini__title a:hover {
  color: var(--c-text);
}
.board-mini__item.is-past .board-mini__meta time {
  text-decoration: line-through;
  color: var(--c-text-soft);
}
.board-mini__badge {
  display: inline-block;
  background: var(--c-border);
  color: var(--c-text-soft);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.board-mini__badge--past { background: var(--c-border); color: var(--c-text-soft); }

/* ---------- 11. Boční sloupec / rychlé odkazy ---------- */
.side-block {
  background: var(--c-surface-2);
  border-left: 6px solid var(--c-red);
  padding: var(--s-3);
  border-radius: 0 var(--r-3) var(--r-3) 0;
  margin-bottom: var(--s-3);
}
.side-block h2 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--s-2);
}
.side-block ul { list-style: none; padding: 0; margin: 0; }
.side-block li { border-bottom: 1px solid var(--c-border); }
.side-block li:last-child { border-bottom: 0; }
.side-block a {
  display: block;
  padding: 0.55rem 0;
  color: var(--c-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}
.side-block a:hover {
  color: var(--c-red);
  padding-left: 0.4rem;
}

/* Inline odkazy uvnitř seznamu kontaktů — bez block, bez padding skoku */
.side-block .data-list a,
.side-block .data-list a:hover {
  display: inline;
  padding: 0;
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: inherit;
  white-space: nowrap;       /* drží "573 358 071" / "ucetni@belov.cz" pohromadě */
}
.side-block .data-list a:hover {
  color: var(--c-red);
  text-decoration-thickness: 1px; /* nemění tloušťku → nepřeskakuje */
}
.side-block .external::after {
  content: "  ↗";
  color: var(--c-text-soft);
  font-size: 0.8em;
}

/* ---------- 12. Tabulka poplatků ---------- */
.table-wrap { overflow-x: auto; }
table.fees {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fff;
}
table.fees caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: var(--s-2);
  font-size: 1.125rem;
}
table.fees th, table.fees td {
  padding: 0.75rem var(--s-2);
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}
table.fees thead th {
  background: var(--c-text);
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.fees tbody tr:nth-child(even) td { background: var(--c-surface-2); }
table.fees td.amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

/* Krátký highlight: další svoz + tři klíčové poplatky */
.fees-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-3);
  align-items: stretch;
}
.fees-summary__next {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--s-2) var(--s-3);
  background: var(--c-text);
  color: #fff;
  border-radius: var(--r-2);
}
.fees-summary__next strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
}
.fees-summary__next time {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-top: 0.1rem;
}
.fees-summary__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.fees-summary__highlights li {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.fees-summary__highlights li:has(.fees-summary__card:hover),
.fees-summary__highlights li:has(.fees-summary__card:focus-visible) {
  border-color: var(--c-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.1);
}
.fees-summary__card {
  display: block;
  padding: var(--s-2);
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-2);
}
.fees-summary__card:hover,
.fees-summary__card:focus-visible {
  text-decoration: none;
  color: inherit;
}
.fees-summary__card:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
}
.fees-summary__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fees-summary__amount {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--c-text);
  margin: 0.2rem 0;
}
.fees-summary__sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-text-soft);
}
@media (max-width: 900px) {
  .fees-summary { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fees-summary__highlights { grid-template-columns: 1fr; }
}

/* Rozbalovací podrobnosti pod krátkým souhrnem */
.fees-details {
  margin-top: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  background: #fff;
}
.fees-details summary {
  list-style: none;          /* skryje výchozí trojúhelník */
  cursor: pointer;
  padding: 0.75rem var(--s-3);
  font-weight: 500;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
}
.fees-details summary::-webkit-details-marker { display: none; }
.fees-details summary:hover { background: var(--c-surface-2); }
.fees-details summary:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: -2px;
}
.fees-details__chevron {
  font-size: 1.2rem;
  color: var(--c-red);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.fees-details[open] .fees-details__chevron { transform: rotate(180deg); }
.fees-details .fees-details__less { display: none; }
.fees-details[open] .fees-details__more { display: none; }
.fees-details[open] .fees-details__less { display: inline; }
.fees-details > *:not(summary) {
  padding: 0 var(--s-3);
}
.fees-details > *:last-child { padding-bottom: var(--s-3); }
.fees-info {
  margin-top: var(--s-2);
  font-size: 0.9375rem;
  color: var(--c-text-soft);
}
.fees-info p { margin: 0 0 0.6rem; }
.fees-info p:last-child { margin-bottom: 0; }
.fees-info strong { color: var(--c-text); }

/* Odpady — 3 sloupce s textem o tříděném sběru (uvnitř <details class="fees-details">) */
.waste-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.waste-card {
  background: var(--c-surface-2);
  border-left: 3px solid var(--c-red);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  padding: var(--s-2) var(--s-3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--c-text);
}
.waste-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.waste-card__icon {
  font-size: 1.25em;
  flex: 0 0 auto;
}
.waste-card p { margin: 0 0 0.6rem; }
.waste-card p:last-child { margin-bottom: 0; }
.waste-card strong { color: var(--c-red); }
@media (max-width: 900px) {
  .waste-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .waste-grid { grid-template-columns: 1fr; }
}

/* ---------- 13. Aktuality – karty ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-3);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--c-text);
}
.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-surface-2);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* Univerzální placeholder (SVG erb obce) — nechceme cover crop, ať je celý vidět */
.card__media img.is-fallback,
.gallery-card__thumb img.is-fallback,
.search-result__media img.is-fallback {
  object-fit: contain;
  background: #f5f0e6;
}
.card__body {
  padding: var(--s-2) var(--s-3) var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.card__title {
  font-size: 1.125rem;
  margin: 0;
  line-height: 1.3;
}
.card__title a {
  color: var(--c-text);
  text-decoration: none;
}
.card__title a:hover { color: var(--c-red); }
.card__meta {
  font-size: 0.8125rem;
  color: var(--c-text-soft);
  font-variant-numeric: tabular-nums;
}
.card__excerpt {
  font-size: 0.9375rem;
  color: var(--c-text-soft);
  margin: 0;
}

/* ---------- 14. Události ---------- */
.events {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 0 var(--s-3);
}
.events li {
  border-bottom: 1px solid var(--c-border);
}
.events li:last-child { border-bottom: 0; }

/* Celý řádek je klikatelný odkaz */
.events__item {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  gap: var(--s-3);
  padding: var(--s-2);
  align-items: center;
  text-decoration: none;
  color: var(--c-text);
  border-radius: var(--r-2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.events__item:hover,
.events__item:focus-visible {
  background: var(--c-surface-2);
  transform: translateX(2px);
  color: var(--c-text);
  text-decoration: none;
}
.events__item:hover strong { color: var(--c-red); }

/* Proběhlé akce — utlumený vizuál, ale stále kompletně klikatelné */
.events--past .events__item { opacity: 0.62; }
.events--past .events__item:hover,
.events--past .events__item:focus-visible { opacity: 1; }
.events--past .date { background: var(--c-text-soft); }

.events__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.events__body strong {
  font-size: 1.0625rem;
  line-height: 1.3;
}
.events__sub {
  font-size: 0.9rem;
  color: var(--c-text-soft);
}

/* Datum (kostka vlevo) */
.events .date {
  background: var(--c-text);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--r-2);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  display: block;
}
.events .date strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Počet zbývajících dní */
.events__remaining {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.events__remaining.is-soon {        /* dnes / zítra */
  background: var(--c-red);
  color: #fff;
  border-color: var(--c-red);
}
.events__remaining.is-near {        /* do týdne */
  background: var(--c-yellow);
  color: var(--c-text);
  border-color: var(--c-yellow);
}
.events__remaining.is-past {        /* už proběhlo */
  background: var(--c-border);
  color: var(--c-text-soft);
  text-decoration: line-through;
}
.events__remaining:empty { display: none; }

.events .badge {
  background: var(--c-red);
  color: #fff;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-1);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Mobil: kompaktnější uspořádání */
@media (max-width: 640px) {
  .events__item {
    grid-template-columns: 80px 1fr;
    grid-template-areas:
      "date body"
      "date body"
      "rem  badge";
  }
  .events .date { grid-area: date; align-self: start; }
  .events__body { grid-area: body; }
  .events__remaining { grid-area: rem; justify-self: start; }
  .events .badge { grid-area: badge; justify-self: end; align-self: end; }
}

/* ---------- 15. Fotogalerie thumbnails ---------- */
.gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-2);
}
.gallery a {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-2);
  background: var(--c-surface-2);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery a:hover img { transform: scale(1.05); }
.gallery .label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  padding: var(--s-2);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- 16. Štítky / tag cloud ---------- */
.tag-cloud {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-cloud a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--c-surface-2);
  color: var(--c-text);
  text-decoration: none;
  border-radius: var(--r-2);
  font-size: 0.9375rem;
  border: 1px solid var(--c-border);
}
.tag-cloud a:hover {
  background: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
}

/* ---------- 17. Newsletter ---------- */
.newsletter {
  background: var(--c-text);
  color: #fff;
  padding: var(--s-5) 0;
}
.newsletter__inner {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--s-3);
  text-align: center;
}
.newsletter h2 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-2);
}
.newsletter p { opacity: 0.9; margin-bottom: var(--s-3); }
.newsletter__notice {
  max-width: 480px;
  margin: 0 auto var(--s-2);
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-2);
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 1;
}
.newsletter__notice--ok    { background: rgba(31,122,58,0.85); color: #fff; }
.newsletter__notice--info  { background: rgba(255,255,255,0.18); color: #fff; }
.newsletter__notice--error { background: rgba(200,16,46,0.85); color: #fff; }
.newsletter form {
  display: flex;
  flex-wrap: wrap;                /* aby consent přeskočil na nový řádek */
  gap: var(--s-1);
  max-width: 480px;
  margin: 0 auto;
}
.newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.8rem var(--s-2);
  border: 0;
  border-radius: var(--r-2);
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--c-text);
}
.newsletter button {
  background: var(--c-red);
  color: #fff;
  border: 0;
  padding: 0 var(--s-3);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--r-2);
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.newsletter button:hover { background: var(--c-red-d); }
.newsletter button:disabled,
.newsletter button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.newsletter__consent {
  flex: 0 0 100%;                 /* zalomení na celý řádek pod e-mailem */
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: var(--s-2);
  font-size: 0.8125rem;
  line-height: 1.4;
  opacity: 0.9;
  text-align: left;
  cursor: pointer;
}
.newsletter__consent input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

/* ---------- 17b. Statistický pásek ---------- */
.stats-bar {
  background: var(--c-blue);
  color: #fff;
  padding: var(--s-4) 0;
}
.stats-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
  text-align: center;
}
.stats-bar dt {
  font-family: var(--font-display);
  font-size: 2.25rem;          /* trochu větší — Oswald je kondenzovaný */
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0.25rem;
}
.stats-bar dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.3;
  opacity: 0.9;
}
.stats-bar dd small {
  display: block;
  font-size: 0.8125rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}

/* ---------- 17c. Mapa (full-width nad obsahem) ---------- */
.map-wrap {
  background: var(--c-surface-2);
  border-top: 4px solid var(--c-blue);
  border-bottom: 4px solid var(--c-blue);
}
.map-wrap__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0;
}
.map-wrap__placeholder,
.map-wrap iframe,
.map-wrap #map {
  width: 100%;
  aspect-ratio: 21 / 9;
  display: grid;
  place-items: center;
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  border: 0;
}
/* Mapa na kontaktu (Leaflet) — explicitní výška, místo aspect-ratio (lépe pro Leaflet) */
.kontakt-map {
  width: 100%;
  height: 480px;
  aspect-ratio: auto;
  display: block;
  background: var(--c-surface-2);
}
@media (max-width: 700px) {
  .kontakt-map { height: 360px; }
}

/* ---------- 17b8. Úmrtní oznámení (page-umrti.php) ----------
   Admin píše do WP obsahu tabulku s 4 sloupci:
   Jméno (odkaz na parte JPEG) | Věk | Datum úmrtí | Poznámka.
   CSS styluje tabulku do pietní podoby. */

/* Pietní úvodní pásek se svíčkou */
.umrti-intro {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--c-surface-2);
  border-left: 4px solid var(--c-text-soft);
  border-radius: var(--r-2);
  max-width: 65ch;
}
.umrti-intro__icon {
  color: #c8a04a;             /* teplá zlatá — barva plamene svíčky */
  flex: 0 0 auto;
  display: inline-flex;
}
.umrti-intro__icon svg { display: block; }
.umrti-intro__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--c-text-soft);
}
.umrti-intro__text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--c-text);
  margin-bottom: 0.1rem;
}
.umrti-page table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-2) 0 var(--s-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-left: 4px solid #6b7280;     /* utlumený šedý akcent — pietní */
  border-radius: 0 var(--r-2) var(--r-2) 0;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.umrti-page thead {
  background: var(--c-surface-2);
}
.umrti-page th {
  text-align: left;
  padding: 0.75rem var(--s-2);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-soft);
  border-bottom: 2px solid var(--c-border);
}
.umrti-page td {
  padding: 0.75rem var(--s-2);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
  line-height: 1.45;
}
.umrti-page tbody tr:last-child td { border-bottom: 0; }
.umrti-page tbody tr:hover { background: var(--c-surface-2); }
.umrti-page td:first-child {
  font-weight: 500;
  min-width: 180px;
}
.umrti-page td:first-child a {
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-text-soft);
}
.umrti-page td:first-child a:hover {
  color: var(--c-red);
  border-bottom-color: var(--c-red);
}
.umrti-page td:nth-child(2) {
  color: var(--c-text-soft);
  white-space: nowrap;
}
.umrti-page td:nth-child(3) {
  color: var(--c-text-soft);
  white-space: nowrap;
}
.umrti-page td:nth-child(4) {
  color: var(--c-text-soft);
  font-size: 0.9375rem;
}

@media (max-width: 700px) {
  .umrti-page table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .umrti-page td:nth-child(4) { white-space: normal; min-width: 200px; }
}

/* ---------- 17b9. Časová osa událostí (page-casova-osa-udalosti.php) ----------
   Admin píše do WP obsahu pro každý rok H2 a jednotlivé položky jako odstavce.
   CSS to transformuje na vertikální časovou osu: svislá čára uprostřed/vlevo,
   roky jako velké štítky a odstavce jako události s tečkou-kotvou na ose. */
.timeline-page {
  position: relative;
  padding-left: 56px;      /* místo pro svislou osu + tečky */
  margin-top: var(--s-3);
}
.timeline-page::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--c-red);
  border-radius: 1px;
}
.timeline-page h2,
.timeline-page h3 {
  position: relative;
  margin: var(--s-4) 0 var(--s-2);
  padding: 0.25rem 0.9rem;
  background: var(--c-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  border-radius: 0 var(--r-2) var(--r-2) 0;
  display: inline-block;
  margin-left: -56px;
  padding-left: 1.5rem;
}
.timeline-page h2:first-child,
.timeline-page h3:first-child { margin-top: 0; }

.timeline-page p {
  position: relative;
  margin: 0 0 var(--s-2);
  padding: 0.4rem 0 0.4rem 1rem;
  line-height: 1.55;
  color: var(--c-text);
}
.timeline-page p::before {
  content: '';
  position: absolute;
  left: -42px;       /* z padding-left 56 zbývá 14 → osa je v 20px, tečka centrem na 20px = vzdálenost -36px (přibližně) */
  top: 0.85em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 3px solid var(--c-red);
  box-shadow: 0 0 0 2px var(--c-bg);
}
.timeline-page p:hover::before {
  background: var(--c-red);
  transition: background 0.15s ease;
}
.timeline-page ul,
.timeline-page ol {
  position: relative;
  padding-left: 1.2rem;
  margin: 0 0 var(--s-2);
}
.timeline-page li {
  position: relative;
  padding: 0.25rem 0;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .timeline-page { padding-left: 36px; }
  .timeline-page::before { left: 12px; }
  .timeline-page h2,
  .timeline-page h3 {
    margin-left: -36px;
    padding-left: 0.9rem;
    font-size: 1.25rem;
  }
  .timeline-page p::before { left: -28px; width: 10px; height: 10px; border-width: 2px; }
}

/* ---------- 17c0. Kalendář akcí (page-kalendar.php) ---------- */
.cal-strip {
  max-width: var(--max-w);
  margin: 0 auto var(--s-3);
  padding: 0 var(--s-3);
}
.cal-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
}
.cal-mini {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  padding: 0.6rem;
  font-size: 0.8125rem;
}
.cal-mini__head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text);
  text-align: center;
  border-bottom: 2px solid var(--c-text);
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
}
.cal-mini__grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.cal-mini__grid th {
  font-weight: 600;
  font-size: 0.6875rem;
  color: var(--c-text-soft);
  text-transform: uppercase;
  padding: 0.2rem 0;
  letter-spacing: 0.04em;
}
.cal-mini__day {
  text-align: center;
  padding: 0.3rem 0 0.5rem;
  color: var(--c-text);
  position: relative;
}
.cal-mini__day.is-past { color: var(--c-text-soft); opacity: 0.7; }
.cal-mini__day.is-today .cal-mini__num,
.cal-mini__day.is-today > span:first-child {
  font-weight: 700;
  position: relative;
}
.cal-mini__day.is-today .cal-mini__num::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border: 2px solid var(--c-text);
  border-radius: 50%;
  z-index: -1;
}
.cal-mini__num {
  display: inline-block;
  position: relative;
  line-height: 1;
}
/* Tečka pod číslem — den s událostí */
.cal-mini__day.has-event a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: inherit;
  text-decoration: none;
  padding: 2px 0;
  border-radius: 4px;
  transition: background 0.15s ease;
  position: relative;        /* kotva pro plovoucí tooltip */
}
.cal-mini__day.has-event a:hover { background: rgba(0, 0, 0, 0.05); }
.cal-mini__dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-red);
}
.cal-mini__day.has-event.is-past .cal-mini__dot {
  background: var(--c-text-soft);
}
.cal-mini__empty { padding: 0; }

/* Plovoucí tooltip s názvy událostí — zobrazí se na hover/focus odkazu.
   Vlastní stylovaný tooltip (krásnější než nativní `title`), který se
   automaticky umisťuje nad dnem v kalendáři. Native title zůstává jako
   fallback pro klávesnici/screen readery. */
.cal-mini__tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1d1d1d;
  color: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-2);
  font-size: 0.8125rem;
  line-height: 1.35;
  white-space: nowrap;
  max-width: 280px;
  width: max-content;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}
.cal-mini__tip::after {
  /* trojúhelníková šipka pod bublinou */
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1d1d1d;
}
.cal-mini__tip-date {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.2rem;
}
.cal-mini__tip-row {
  display: block;
  white-space: normal;
}
.cal-mini__tip-row + .cal-mini__tip-row {
  margin-top: 0.15rem;
}
/* Zobrazení tooltipu na hover/focus odkazu */
.cal-mini__day.has-event a:hover .cal-mini__tip,
.cal-mini__day.has-event a:focus-visible .cal-mini__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: none;       /* tooltip nesmí krást click */
}
/* Na úzkých obrazovkách — tooltip menší a více lámaný */
@media (max-width: 700px) {
  .cal-mini__tip { max-width: 180px; white-space: normal; }
}

/* Legenda pod mini kalendáři */
.cal-strip__legend {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--c-text-soft);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.cal-strip__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}
.cal-strip__dot--future { background: var(--c-red); }
.cal-strip__dot--past   { background: var(--c-text-soft); }

@media (max-width: 900px) {
  .cal-strip__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cal-strip__grid { grid-template-columns: 1fr; }
}

/* Seznam událostí seskupený podle roku */
.cal-year { margin-bottom: var(--s-3); }
.cal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.cal-list__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s-3);
  padding: var(--s-2);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-red);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cal-list__item:hover { transform: translateY(-1px); }
.cal-list__item.is-past {
  border-left-color: var(--c-border);
  opacity: 0.7;
}
.cal-list__date {
  text-align: center;
  background: var(--c-surface-2);
  border-radius: var(--r-2);
  padding: 0.5rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.cal-list__day {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1;
  color: var(--c-red);
}
.cal-list__item.is-past .cal-list__day { color: var(--c-text-soft); }
.cal-list__month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-soft);
  margin-top: 0.2rem;
}
.cal-list__body { min-width: 0; }
.cal-list__title {
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
  line-height: 1.35;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.cal-list__title a {
  color: var(--c-text);
  text-decoration: none;
}
.cal-list__title a:hover { color: var(--c-red); text-decoration: underline; }
.cal-list__excerpt {
  color: var(--c-text-soft);
  font-size: 0.9375rem;
  margin: 0 0 0.35rem;
  line-height: 1.45;
}
.cal-list__meta {
  font-size: 0.8125rem;
  color: var(--c-text-soft);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.cal-list__place { color: var(--c-text); font-weight: 500; }
.cal-list__remain {
  display: inline-block;
  background: var(--c-yellow);
  color: var(--c-text);
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.4rem;
}
@media (max-width: 560px) {
  .cal-list__item { grid-template-columns: 64px 1fr; gap: var(--s-2); }
  .cal-list__day { font-size: 1.5rem; }
}

/* ---------- 17c1. Legenda míst (čísla nad mapou na stránce Místní části) ---------- */
.parts-legend {
  max-width: var(--max-w);
  margin: 0 auto var(--s-3);
  padding: 0 var(--s-3);
}
.parts-legend__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}
.parts-legend__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.parts-legend__item:hover {
  border-color: var(--c-red);
  transform: translateY(-1px);
}
.parts-legend__num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}
.parts-legend__name {
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--c-text);
}
@media (max-width: 560px) {
  .parts-legend__list { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .parts-legend__name { font-size: 0.875rem; }
}

/* Leaflet mapa — výška a vlastní očíslovaný marker */
.parts-map {
  width: 100%;
  height: 540px;
  background: var(--c-surface-2);
}
@media (max-width: 700px) {
  .parts-map { height: 420px; }
}
/* Vlastní marker — kruh s číslem, „kapka" se špičkou dolů */
.parts-marker {
  background: transparent;
  border: 0;
}
.parts-marker__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  border: 2px solid #fff;
  position: relative;
}
/* Trojúhelníková špička pod kruhem — ukazuje na přesný bod */
.parts-marker__num::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -5px;
  margin-top: -2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--c-red);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.2));
}

/* ---------- 17d. 3-sloupcový kontakt ---------- */
.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-4) var(--s-3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  font-size: 1rem;
  line-height: 1.6;
}
.contact-grid h3 {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text);
  margin: 0 0 0.25rem;
  border-bottom: 2px solid var(--c-red);
  padding-bottom: 0.25rem;
  display: inline-block;
}
.contact-grid p { margin: 0 0 var(--s-3); }
.contact-grid a { color: var(--c-blue); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- 18. Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: var(--s-5) 0 var(--s-3);
  font-size: 0.9375rem;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--s-2);
  border-bottom: 2px solid var(--c-red);
  padding-bottom: 0.4rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.3rem 0; }
.site-footer a {
  color: #f0f0f0;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .address { color: #ccc; line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-3) 0;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #aaa;
}

/* ---------- 18b. Plovoucí tlačítko „Upravit" (pro přihlášené) ---------- */
.belov-edit-floating {
  position: fixed;
  bottom: var(--s-3);
  right: var(--s-3);
  z-index: 90;
  padding: 0.55rem var(--s-3);
  background: var(--c-red);
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--r-3);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: var(--shadow-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.belov-edit-floating:hover {
  background: var(--c-red-d);
  color: #fff;
  transform: translateY(-2px);
}
.belov-edit-floating:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

/* Když je horní WordPress admin bar, neztrácet ho */
body.admin-bar .belov-edit-floating { bottom: calc(var(--s-3) + 32px); }

@media print {
  .belov-edit-floating, .belov-edit-link { display: none !important; }
}

/* ---------- 19. Cookies dialog ---------- */
dialog.cookies {
  position: fixed;
  bottom: var(--s-3);
  left: var(--s-3);
  right: auto;
  margin: 0;
  max-width: 380px;
  border: 2px solid var(--c-text);
  border-radius: var(--r-3);
  padding: var(--s-3);
  background: #fff;
  color: var(--c-text);
  box-shadow: var(--shadow-3);
  font-size: 0.9375rem;
}
dialog.cookies::backdrop { background: rgba(0,0,0,0.2); }
dialog.cookies h2 {
  font-size: 1.125rem;
  margin: 0 0 var(--s-2);
}
dialog.cookies .actions {
  display: flex;
  gap: var(--s-1);
  margin-top: var(--s-2);
}

/* ---------- 20. Tlačítka ---------- */
.btn {
  display: inline-block;
  padding: 0.6rem var(--s-3);
  background: var(--c-text);
  color: #fff;
  border: 2px solid var(--c-text);
  border-radius: var(--r-2);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.btn:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.btn--outline { background: transparent; color: var(--c-text); }
.btn--outline:hover { background: var(--c-text); color: #fff; }
.btn--red { background: var(--c-red); border-color: var(--c-red); }
.btn--red:hover { background: var(--c-red-d); border-color: var(--c-red-d); }
.btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

/* Čtvercové tlačítko jen s ikonkou — udržuje min. velikost pro klik (44 × 44 px dle WCAG 2.5.5) */
.btn--icon {
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

/* ---------- 21. Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-2) var(--s-3);
  font-size: 0.875rem;
  color: var(--c-text-soft);
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.breadcrumb li::after {
  content: "›";
  margin-left: 0.4rem;
  color: var(--c-text-soft);
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--c-text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-red); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--c-text); font-weight: 600; }

/* ---------- 22. Stránka článku/podstránky ---------- */
.page-header {
  background: var(--c-text);
  color: #fff;
  padding: var(--s-5) 0;
}
.page-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.page-header h1 { color: #fff; margin: 0; }
.page-header p { color: rgba(255,255,255,0.85); margin: 0.5rem 0 0; }

.prose {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: var(--s-5) var(--s-3);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.prose h2, .prose h3 { margin-top: var(--s-4); }

/* ---------- 21b. Hlavička uvnitř sloupce ---------- */
.col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  border-bottom: 4px solid var(--c-text);
  padding-bottom: var(--s-1);
  margin: 0 0 var(--s-3);
}
.col-head h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}
.col-head .more {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 22a. Trojblok foto + kontakty + info ---------- */
.info-trio {
  max-width: var(--max-w);
  margin: var(--s-4) auto 0;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  align-items: stretch;
}
.info-trio > * { min-width: 0; }
.info-trio .side-block { height: 100%; }
/* Varianta bez fotografie (foto je nad tímto blokem v plné šířce) */
.info-trio--duo { grid-template-columns: repeat(2, 1fr); margin-top: var(--s-3); }

/* ---------- Slideshow obce (úvodní stránka, jednoduchý crossfade)
   Plnošířková fotka 21:9, jemné prolínání + tečková navigace pod tím.
   Šipky vlevo/vpravo umožní ruční přepínání, autoplay 6 s. */
.slideshow {
  max-width: var(--max-w);
  margin: var(--s-4) auto 0;
  padding: 0 var(--s-3);
}
.slideshow__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--r-3);
  background: var(--c-surface-2);
}
.slideshow__track { display: contents; }
.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow__slide.is-active { opacity: 1; }
.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slideshow__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-top-left-radius: var(--r-2);
  max-width: 80%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Šipky — diskrétní, v rohu viewportu */
.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.slideshow__arrow:hover { background: rgba(0, 0, 0, 0.7); }
.slideshow__arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.slideshow__arrow--prev { left: 0.75rem; }
.slideshow__arrow--next { right: 0.75rem; }

/* Tečková navigace pod fotkou — drobná, ladí s designem */
.slideshow__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.slideshow__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--c-border);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease;
}
.slideshow__dot:hover { background: var(--c-text-soft); }
.slideshow__dot.is-active { background: var(--c-red); }
.slideshow__dot:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .slideshow__slide { transition: none; }
}
@media (max-width: 1024px) {
  .slideshow__viewport { aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  .slideshow__viewport { aspect-ratio: 4 / 3; }
  .slideshow__arrow { width: 32px; height: 32px; }
  .slideshow__caption {
    font-size: 0.8125rem;
    padding: 0.35rem 0.7rem;
    max-width: 90%;
  }
}

/* Původní in-grid foto (pro případ, že někde zbylo) */
.info-trio__photo {
  margin: 0;
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--c-surface-2);
  display: flex;
  flex-direction: column;
}
.info-trio__photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.info-trio__photo figcaption {
  padding: 0.6rem var(--s-2);
  background: var(--c-text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}
@media (max-width: 1024px) {
  .info-trio { grid-template-columns: 1fr 1fr; }
  .info-trio__photo { grid-column: 1 / -1; }
  .info-trio__photo img { max-height: 320px; }
}
@media (max-width: 700px) {
  .info-trio,
  .info-trio--duo { grid-template-columns: 1fr; }
}

/* ---------- 22z. Lightbox (fullscreen prohlížeč fotek) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;     /* nad menu (1000) i nad jeho dropdownem (1010) */
  display: none;
  flex-direction: column;
  padding: var(--s-2);
  color: #fff;
}
.lightbox.is-open {
  display: flex;
}

/* Horní lišta: počítadlo vlevo, akční ikony uprostřed, zavřít vpravo */
.lightbox__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;     /* left | center | right */
  align-items: center;
  padding: var(--s-1) var(--s-2);
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.lightbox__counter {
  justify-self: start;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-2);
  font-weight: 600;
}
/* Akční ikony (slideshow / download / náhledy) — uprostřed, vedle sebe */
.lightbox__actions {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lightbox__close { justify-self: end; }
.lightbox__download {
  /* anchor, ale chová se jako button */
  text-decoration: none;
}

/* Tlačítka (close, prev, next) */
.lightbox__btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.15s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__btn:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}
.lightbox__btn[disabled] { opacity: 0.3; cursor: not-allowed; }

/* Play / Pause tlačítko prezentace */
.lightbox__play .lightbox__icon { display: block; }
.lightbox__play .lightbox__icon[hidden] { display: none; }
.lightbox__play.is-playing {
  background: var(--c-red, #C8102E);
  animation: lightbox-pulse 2s ease-in-out infinite;
}
.lightbox__play.is-playing:hover { background: var(--c-red, #C8102E); filter: brightness(1.1); }
@keyframes lightbox-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.55); }
  50%      { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox__play.is-playing { animation: none; }
}

/* Hlavní část s obrázkem + bočními šipkami */
.lightbox__stage {
  flex: 1;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: var(--s-2);
  align-items: center;
  min-height: 0;
}
.lightbox__nav {
  display: grid;
  place-items: center;
}
.lightbox__image-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  position: relative;
  overflow: hidden;             /* sousední obrázek se schová za okraj */
  cursor: grab;
  touch-action: pan-y;          /* dovolíme vertikální scroll, horizontální gesto chytíme */
  user-select: none;
  -webkit-user-select: none;
}
.lightbox__image-wrap.is-dragging { cursor: grabbing; }
.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity   0.45s ease,
              filter    0.45s ease;
  will-change: transform, opacity, filter;
  -webkit-user-drag: none;      /* zákaz nativního drag-n-drop obrázku */
  user-drag: none;
  pointer-events: none;         /* pointer eventy chytá wrap, ne img */
  grid-column: 1;               /* obě vrstvy do stejné cell — vrší se na sebe */
  grid-row: 1;
}
/* Sousední obrázek (jako součást „pásu" během tažení) */
.lightbox__image--neighbor {
  z-index: 1;
}
.lightbox__image--neighbor[hidden] { display: none; }

/* Loading spinner — kruh nad obrázkem; ukazuje se, dokud se další foto
   ještě nestáhlo. */
.lightbox__spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lb-spin 0.8s linear infinite;
  z-index: 3;
  pointer-events: none;
}
@keyframes lb-spin {
  to { transform: rotate(360deg); }
}

/* Popisek pod obrázkem */
.lightbox__caption {
  text-align: center;
  padding: var(--s-2) var(--s-3) var(--s-1);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}
.lightbox__caption:empty { display: none; }

/* Progress bar pro slideshow — rostoucí čára nad pásem náhledů,
   indikuje čas do další fotky. Aktivuje se třídou .is-active. */
.lightbox__progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 3;
}
.lightbox__progress-bar {
  position: absolute;
  inset: 0;
  background: var(--c-red);
  transform-origin: left center;
  transform: scaleX(0);
}
.lightbox__progress.is-active .lightbox__progress-bar {
  animation: lightbox-progress 4s linear forwards;
}
@keyframes lightbox-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox__progress.is-active .lightbox__progress-bar { animation: none; transform: scaleX(0); }
}

/* Pás miniatur pod velkým obrázkem — neprůhledný „podstavec",
   aby byl vizuálně oddělen od fotky a stál nad ní (vyšší kontrast) */
.lightbox__thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--s-2) var(--s-3);
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
  scroll-behavior: smooth;
  justify-content: flex-start;
  align-items: center;
  background: rgba(0, 0, 0, 0.92);    /* neprůhledný pás */
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);   /* stín nahoru — odděluje od fotky */
  position: relative;
  z-index: 2;                          /* nad fotkou */
}
.lightbox__thumbs::-webkit-scrollbar {
  height: 8px;
}
.lightbox__thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
}
.lightbox__thumbs:not(.is-visible) { display: none; }

.lightbox__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-2);
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.lightbox__thumb:hover { opacity: 0.9; }
.lightbox__thumb:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}
.lightbox__thumb.is-active {
  opacity: 1;
  border-color: #fff;
  transform: translateY(-2px);
}
.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Tlačítko skrýt/zobrazit pás (volitelné) */
.lightbox__thumbs-toggle {
  position: relative;
  margin: 0 auto;
  display: block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 0;
  border-radius: var(--r-2);
  padding: 0.3rem 0.8rem;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.lightbox__thumbs-toggle:hover { background: rgba(255,255,255,0.3); }

/* Mobil: menší miniatury */
@media (max-width: 768px) {
  .lightbox__thumb { width: 56px; height: 42px; }
}

/* Mobil: šipky pod obrázkem */
@media (max-width: 768px) {
  .lightbox__stage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .lightbox__nav {
    grid-row: 2;
    flex-direction: row;
    display: flex;
    justify-content: space-between;
    grid-column: 1 / -1;
  }
  .lightbox__nav--prev { order: 1; }
  .lightbox__nav--next { order: 2; }
  .lightbox__image-wrap { grid-row: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lightbox__spinner { animation: none; }
}

/* ---------- 22aa. Mřížka galerií (přehled) ---------- */
.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-3);
}
.gallery-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--c-text);
  background: var(--c-bg);
  border-radius: var(--r-2);
  transition: transform 0.2s ease;
}
.gallery-card:hover { transform: translateY(-3px); }
.gallery-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-2);
  background: var(--c-surface-2);
  isolation: isolate;
  /* Měkký stín pod náhledem — viditelný v klidu, mírně silnější při hoveru */
  box-shadow: var(--shadow-2);
  transition: box-shadow 0.2s ease;
}
.gallery-card:hover .gallery-card__thumb { box-shadow: var(--shadow-3); }
.gallery-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-card__thumb img { transform: scale(1.05); }
.gallery-card__count {
  position: absolute;
  top: 0; right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.4rem 0.7rem;
  font-weight: 800;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  border-radius: 0 var(--r-2) 0 var(--r-2);
  min-width: 44px;
  text-align: center;
  z-index: 1;
}
/* „NOVÉ" badge — pilulka v rohu náhledu (sjednoceno s úřední deskou) */
.gallery-card__new {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--c-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
  text-transform: uppercase;
  line-height: 1.2;
}
/* Sjednoceno s .card__title (aktuality) — Oswald, regular, stejná velikost a řádkování */
.gallery-card__title {
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0.6rem 0 0.15rem;
  line-height: 1.3;
}
.gallery-card:hover .gallery-card__title { color: var(--c-red); }
.gallery-card__date {
  font-size: 0.875rem;
  color: var(--c-text-soft);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

/* ---------- 22ab. Roční filtr ---------- */
.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 var(--s-3);
  padding: var(--s-2);
  background: var(--c-surface-2);
  border-radius: var(--r-2);
  border-left: 4px solid var(--c-red);
}
.year-filter__label {
  font-weight: 600;
  margin-right: 0.25rem;
  color: var(--c-text);
  letter-spacing: 0.02em;
}
.year-filter a {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-1);
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  text-align: center;
}
.year-filter a:hover {
  background: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
}
.year-filter a[aria-current="page"] {
  background: var(--c-red);
  color: #fff;
  border-color: var(--c-red);
  font-weight: 700;
}

/* ---------- 22ac. Mřížka fotek v detailu galerie ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.photo-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-1);
  background: var(--c-surface-2);
  position: relative;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.2s ease;
}
.photo-grid a:hover img { transform: scale(1.05); }
.photo-grid a:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}
/* Skryté anchor položky (4. a další při total > 4) zůstávají v DOMu pro lightbox skupinu,
   ale neviditelné — modal je zobrazí ve své mřížce. */
.photo-grid a[hidden] { display: none !important; }

/* Dlaždice „+N" — tlačítko v mřížce s tmavým overlay přes 4. fotku */
.photo-grid__more {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-1);
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--c-surface-2);
  font: inherit;
  color: #fff;
}
.photo-grid__more img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.photo-grid__more:hover img { transform: scale(1.05); }
.photo-grid__more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  transition: background 0.15s ease;
}
.photo-grid__more:hover .photo-grid__more-overlay { background: rgba(0, 0, 0, 0.7); }
.photo-grid__more-count {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.photo-grid__more:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

/* ---------- 22ac1. Gallery modal — přehled všech náhledů ---------- */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;     /* nad menu (1000) i nad jeho dropdownem (1010) */
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-modal.is-open { opacity: 1; }
.gallery-modal[hidden] { display: none; }
.gallery-modal__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-2) var(--s-3);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.gallery-modal__heading {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-right: var(--s-2);
}
.gallery-modal__title {
  font-size: 1.0625rem;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 0;
}
.gallery-modal__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  /* zkrátit dlouhý popisek na 2 řádky, ať nezatíží header */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-modal__desc[hidden] { display: none; }
.gallery-modal__title-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
}
.gallery-modal__title-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.gallery-modal__close {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.gallery-modal__close:hover { background: rgba(255, 255, 255, 0.3); }
.gallery-modal__close:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}
.gallery-modal__grid {
  flex: 1 1 auto;
  overflow-y: scroll;
  padding: var(--s-3);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  /* Fixní mezery mezi sloupci i řádky — vůbec se nemění s počtem položek */
  column-gap: 1rem;
  row-gap: 1rem;
  align-content: start;
  align-items: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.08);
}
/* Stylovaný posuvník (WebKit / Chromium) */
.gallery-modal__grid::-webkit-scrollbar {
  width: 10px;
}
.gallery-modal__grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}
.gallery-modal__grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.gallery-modal__grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
  background-clip: padding-box;
  border: 2px solid transparent;
}
.gallery-modal__thumb {
  display: block;
  position: relative;
  width: 100%;
  /* Padding-bottom 100% = vždy čtverec, robustnější než aspect-ratio
     v různých grid kontextech. Nezávisle na obsahu zachová proporce. */
  padding-top: 100%;
  overflow: hidden;
  border-radius: var(--r-1);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 0 0 0 transparent;
}
.gallery-modal__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-modal__thumb:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 3px var(--c-red);
}
.gallery-modal__thumb:hover img { transform: scale(1.05); }
.gallery-modal__thumb:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .gallery-modal__grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    padding: var(--s-2);
    column-gap: 0.6rem;
    row-gap: 0.6rem;
  }
  .gallery-modal__title-main { font-size: 1.0625rem; }
  .gallery-modal__title-count { font-size: 0.8125rem; }
}

/* ---------- 22b. Tabulka úřední deska ---------- */
table.deska {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fff;
}
table.deska thead th {
  text-align: left;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-soft);
  font-weight: 600;
  padding: 0.5rem var(--s-2);
  border-bottom: 2px solid var(--c-text);
}
table.deska tbody td {
  padding: 0.85rem var(--s-2);
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
table.deska tbody tr:hover td { background: var(--c-surface-2); }
table.deska .doc-title a {
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-sans);   /* běžné písmo, ne Oswald */
}
table.deska .doc-title a:hover { color: var(--c-red); text-decoration: underline; }
table.deska .att {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 0.4rem;
  background: var(--c-text);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
table.deska .att--zero { background: var(--c-border); color: var(--c-text-soft); }
table.deska .date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--c-text-soft);
  font-size: 0.9375rem;
}

/* Vyhledávací řádek nad úřední deskou */
.deska-search {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.deska-search input {
  flex: 1;
  padding: 0.7rem var(--s-2);
  border: 2px solid var(--c-border);
  border-radius: var(--r-2);
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--c-text);
}
.deska-search input:focus { border-color: var(--c-text); outline: 0; box-shadow: 0 0 0 3px var(--c-focus); }

/* Aktivní filtr nad tabulkou úřední desky */
.deska-active-filter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
}
.deska-active-filter strong { color: var(--c-text-soft); font-weight: 500; }
.deska-active-filter__chip {
  display: inline-flex;
  align-items: center;
  background: var(--c-red);
  color: #fff;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.deska-active-filter__clear {
  color: var(--c-text-soft);
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px dotted var(--c-text-soft);
}
.deska-active-filter__clear:hover {
  color: var(--c-red);
  border-bottom-color: var(--c-red);
}

/* ---------- 22c. Filter / kategorie navigace ---------- */
.filter-nav h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--s-2);
  color: var(--c-text);
  border-bottom: 2px solid var(--c-red);
  padding-bottom: 0.4rem;
}
.filter-nav h3:not(:first-child) { margin-top: var(--s-3); }
.filter-nav ul { list-style: none; padding: 0; margin: 0; }
.filter-nav li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--c-border);
}
.filter-nav li:last-child { border-bottom: 0; }
.filter-nav a {
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  display: block;
}
.filter-nav a:hover { color: var(--c-red); }
.filter-nav a[aria-current="page"] { color: var(--c-red); font-weight: 700; }

/* „O článku" — meta info (Kategorie, Štítky): odkazy inline, oddělené čárkou */
.filter-nav .article-meta-list a {
  display: inline;            /* zruší block z .filter-nav a — kategorie/štítky v řadě */
  padding-left: 0;
  font-weight: 500;
  border-bottom: 1px dotted var(--c-text-soft);
}
.filter-nav .article-meta-list a:hover {
  border-bottom-color: var(--c-red);
}

/* ---------- Mapa webu (page-mapa-webu.php) ---------- */
.sitemap {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: var(--s-3);
  align-items: start;
}
.sitemap__col { min-width: 0; }
.sitemap__h {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--c-text);
  padding-bottom: 0.4rem;
  margin: 0 0 var(--s-2);
}
.sitemap__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sitemap__list li {
  padding: 0.25rem 0;
}
.sitemap__list a {
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted transparent;
}
.sitemap__list a:hover,
.sitemap__list a:focus-visible {
  color: var(--c-red);
  border-bottom-color: var(--c-red);
}
.sitemap__list ul {
  list-style: none;
  padding-left: var(--s-2);
  margin: 0.2rem 0 0.4rem;
  border-left: 1px solid var(--c-border);
}
.sitemap__list ul li { padding: 0.2rem 0 0.2rem var(--s-2); }
.sitemap__list ul a { font-weight: 400; font-size: 0.9375rem; }
.sitemap__count {
  color: var(--c-text-soft);
  font-size: 0.8125rem;
  margin-left: 0.25rem;
}
.sitemap__list--pages > .page_item { padding: 0.25rem 0; }
.sitemap__list--pages .children {
  list-style: none;
  padding-left: var(--s-2);
  margin: 0.2rem 0 0.4rem;
  border-left: 1px solid var(--c-border);
}
.sitemap__list--pages .children li { padding: 0.2rem 0 0.2rem var(--s-2); }
.sitemap__list--pages .children a { font-weight: 400; font-size: 0.9375rem; }

@media (max-width: 900px) {
  .sitemap { grid-template-columns: 1fr 1fr; }
  .sitemap__col--wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sitemap { grid-template-columns: 1fr; }
}

/* ---------- Poslední komentáře v sidebaru ---------- */
.recent-comments { display: grid; gap: 0.5rem; }
.recent-comments__item {
  padding: 0;
  border-bottom: 0 !important;   /* zruš spodní čáru, kterou jinak přidává .filter-nav li */
}
.recent-comments__link {
  display: block;
  padding: 0.6rem 0.7rem;
  border-left: 3px solid var(--c-border);
  background: var(--c-surface-2);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  text-decoration: none;
  color: var(--c-text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.recent-comments__link:hover,
.recent-comments__link:focus-visible {
  border-left-color: var(--c-red);
  background: var(--c-bg);
  text-decoration: none;
}
.recent-comments__meta {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  color: var(--c-text-soft);
}
.recent-comments__author { color: var(--c-text); font-weight: 600; }
.recent-comments__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  font-style: italic;
}
.recent-comments__source {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  color: var(--c-text-soft);
}
.recent-comments__source span { color: var(--c-text); }

/* ---------- 22d. Detail článku / dokumentu ---------- */
.article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-3);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--s-4);
}
.article__main { min-width: 0; }
.article__sidebar { min-width: 0; }
@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; }
}

.article h1 { margin-top: 0; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  font-size: 0.9375rem;
  color: var(--c-text-soft);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--c-border);
}
.article-meta strong { color: var(--c-text); }

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--r-3);
  margin-bottom: var(--s-3);
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.article-content p { margin: 0 0 var(--s-2); }
.article-content h2 { margin-top: var(--s-4); font-size: 1.5rem; }
.article-content h3 { margin-top: var(--s-3); font-size: 1.25rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }

/* Tagy / kategorie pod článkem */
.article-tags {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.article-tags .label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.4rem;
  color: var(--c-text-soft);
}
.article-tags a {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--c-surface-2);
  color: var(--c-text);
  border-radius: var(--r-2);
  text-decoration: none;
  font-size: 0.875rem;
  border: 1px solid var(--c-border);
}
.article-tags a:hover { background: var(--c-text); color: #fff; }

/* Přílohy */
.attachments {
  margin: var(--s-3) 0;
  padding: var(--s-2);
  background: var(--c-surface-2);
  border-left: 4px solid var(--c-red);
  border-radius: 0 var(--r-2) var(--r-2) 0;
}
.attachments h3 {
  margin: 0 0 var(--s-1);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.attachments ul { list-style: none; padding: 0; margin: 0; }
.attachments li { padding: 0.4rem 0; border-bottom: 1px solid var(--c-border); }
.attachments li:last-child { border-bottom: 0; }
.attachments a {
  display: flex;              /* block-level, vezme šířku <li> → umožní ellipsis */
  align-items: center;
  gap: 0.5rem;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  max-width: 100%;
  min-width: 0;
}
.attachments a .i-paperclip {
  flex: 0 0 auto;
  color: var(--c-red);
  transition: transform 0.15s ease;
}
/* Hover bez podtržení — jen barva + animace sponky. Tím se zároveň vyhneme
   tomu, že by se přes inline-block štítek typu souboru (PDF/DOCX) přetáhla
   spodní čára z parent <a>. */
.attachments a:hover { color: var(--c-red); text-decoration: none; }
.attachments a:hover .att-label { text-decoration: underline; }
.attachments a:hover .i-paperclip { transform: rotate(-12deg); }
/* Název souboru — flex: 1, ořež ellipsi pokud je moc dlouhý */
.attachments .att-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachments .size {
  color: var(--c-text-soft);
  font-size: 0.875rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
/* Datum konání akce (místo data publikování) — zvoneček + datum.
   Aplikuje se přes helper belov_v7_post_date_html() všude, kde se vypisují
   příspěvky v seznamech. Datum drží barvu okolního textu, zvoneček taky. */
.evt-date {
  color: inherit;
  white-space: nowrap;          /* zvoneček + datum NIKDY na různé řádky */
}
/* Globální `svg { display: block }` (řádek 121) by zvoneček odřádkoval —
   tady ho přepneme zpět na inline. */
.evt-date .i-bell {
  display: inline-block;
  vertical-align: -2px;
  color: inherit;               /* stejná barva jako datum */
  margin-right: 0.25em;
}
/* Krátký textový štítek typu souboru — PDF / DOCX / XLSX / ZIP … */
.attachments .att-kind {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-text-soft);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
  text-decoration: none;        /* štítek se nepodtrhává ani když je rodičovský <a> hover */
}
.attachments a:hover .att-kind {
  border-color: var(--c-red);
  color: var(--c-red);
}
/* Barevné odlišení nejčastějších typů — usnadní rychlé skenování seznamu */
.attachments .att-kind[aria-label*="PDF"]  { color: #b3261e; border-color: rgba(179,38,30,0.4); }
.attachments .att-kind[aria-label*="DOC"]  { color: #1a5fb4; border-color: rgba(26,95,180,0.4); }
.attachments .att-kind[aria-label*="XLS"],
.attachments .att-kind[aria-label*="CSV"]  { color: #1f7a3a; border-color: rgba(31,122,58,0.4); }
.attachments .att-kind[aria-label*="ZIP"],
.attachments .att-kind[aria-label*="RAR"],
.attachments .att-kind[aria-label*="7Z"]   { color: #8a5a00; border-color: rgba(138,90,0,0.4); }

/* Stránkování */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: var(--s-4);
  list-style: none;
  padding: 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  text-decoration: none;
  color: var(--c-text);
  font-weight: 600;
  background: #fff;
}
.pagination a:hover { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.pagination [aria-current="page"] { background: var(--c-red); color: #fff; border-color: var(--c-red); }

/* ---------- 22d2. Komentáře ---------- */
.comments-area {
  max-width: var(--max-w-narrow);
  margin: 0;
  padding: var(--s-4) 0 0;
}
.comments-area__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  border-bottom: 4px solid var(--c-text);
  padding-bottom: var(--s-1);
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
}
.comments-area__head h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.5rem;
}
.comments-area__count {
  font-size: 0.9375rem;
  color: var(--c-text-soft);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
}
.comment-list .children {
  list-style: none;
  padding-left: var(--s-4);
  margin: var(--s-2) 0 0;
  border-left: 3px solid var(--c-border);
}
.comment-list > li,
.comment-list .children > li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-border);
}
.comment-list > li:last-child,
.comment-list .children > li:last-child {
  border-bottom: 0;
}

.comment-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-2);
  align-items: start;
}
.comment-author {
  display: contents;
}
.comment-author .avatar {
  border-radius: 50%;
  background: var(--c-surface-2);
  grid-column: 1;
}
.comment-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--c-text-soft);
  margin-bottom: 0.4rem;
}
.comment-meta .fn,
.comment-author-name {
  font-weight: 700;
  color: var(--c-text);
  font-size: 1rem;
}
.comment-meta time {
  font-variant-numeric: tabular-nums;
}
.comment-content {
  grid-column: 2;
  font-size: 1rem;
  line-height: 1.6;
}
.comment-content p { margin: 0 0 0.6rem; }
.comment-content p:last-child { margin-bottom: 0; }

.comment-reply-link {
  grid-column: 2;
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.7rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.comment-reply-link:hover {
  background: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
}

.comment-awaiting-moderation {
  grid-column: 2;
  background: var(--c-yellow);
  color: var(--c-text);
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-2);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.comment-edit-link {
  font-size: 0.8125rem;
  color: var(--c-text-soft);
  text-decoration: none;
}
.comment-edit-link::before { content: "✎ "; }

/* Formulář pro nový komentář */
.comment-respond {
  margin-top: var(--s-3);
  padding: var(--s-3);
  background: var(--c-surface-2);
  border-left: 6px solid var(--c-red);
  border-radius: 0 var(--r-3) var(--r-3) 0;
}
.comment-respond .comment-reply-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 var(--s-2);
}
.comment-respond .comment-reply-title small {
  font-size: 0.85rem;
  font-weight: 400;
  margin-left: var(--s-1);
}
.comment-respond .comment-reply-title small a {
  color: var(--c-red);
}

.comment-notes,
.logged-in-as {
  font-size: 0.9375rem;
  color: var(--c-text-soft);
  margin: 0 0 var(--s-2);
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: var(--s-2);
}
.comment-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.3rem;
  color: var(--c-text);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.6rem var(--s-2);
  border: 2px solid var(--c-border);
  border-radius: var(--r-2);
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--c-text);
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--c-text);
  outline: 0;
  box-shadow: 0 0 0 3px var(--c-focus);
}
.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form-cookies-consent,
.comment-form-gdpr-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  margin: var(--s-2) 0;
}
.comment-form-cookies-consent input[type="checkbox"],
.comment-form-gdpr-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--c-red);
}
.comment-form-cookies-consent label,
.comment-form-gdpr-consent label {
  font-weight: 400;
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: 1.4;
}

.form-submit {
  margin-top: var(--s-2);
}
.form-submit .submit {
  background: var(--c-red);
  color: #fff;
  border: 0;
  padding: 0.7rem var(--s-3);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--r-2);
  cursor: pointer;
}
.form-submit .submit:hover { background: var(--c-red-d); }
.form-submit .submit:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

/* Cancel reply link */
#cancel-comment-reply-link {
  display: inline-block;
  margin-left: var(--s-2);
  font-size: 0.875rem;
  color: var(--c-red);
}

/* Žádné komentáře */
.no-comments {
  padding: var(--s-2);
  background: var(--c-surface-2);
  border-radius: var(--r-2);
  color: var(--c-text-soft);
  font-style: italic;
}

/* Stránkování komentářů */
.comments-pagination {
  margin: var(--s-3) 0;
}
.comments-pagination .nav-links {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
}

/* Mobil */
@media (max-width: 600px) {
  .comment-body {
    grid-template-columns: 36px 1fr;
    gap: var(--s-1);
  }
  .comment-author .avatar { width: 36px; height: 36px; }
  .comment-list .children {
    padding-left: var(--s-2);
  }
}

/* ---------- 22e. Stránka 404 ---------- */
.error-404 {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-5) var(--s-3);
}
.error-404__hero {
  text-align: center;
  padding: var(--s-5) var(--s-3);
  background: var(--c-surface-2);
  border-radius: var(--r-3);
  margin-bottom: var(--s-4);
  border-top: 6px solid var(--c-red);
}
.error-404__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--c-red);
  letter-spacing: -0.02em;
  margin: 0;
  display: block;
}
.error-404__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin: var(--s-2) 0;
  color: var(--c-text);
}
.error-404__lead {
  font-size: 1.0625rem;
  color: var(--c-text-soft);
  max-width: 56ch;
  margin: 0 auto var(--s-3);
  line-height: 1.6;
}
.error-404__search {
  max-width: 480px;
  margin: 0 auto;
}
.error-404__search .search {
  max-width: none;
  border-color: var(--c-text);
}

.error-404__suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-4);
}
@media (max-width: 700px) {
  .error-404__suggestions { grid-template-columns: 1fr; }
}

/* ---------- 22f. Vyhledávání (search.php) ---------- */
.search-page { padding-top: var(--s-3); padding-bottom: var(--s-5); }

/* Page head — zarovnaný vlevo, stejně jako u archivů/kategorií */
.search-page .page-head {
  border-bottom: 4px solid var(--c-text);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-3);
}
.search-page .page-head__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.search-page .page-head__meta {
  margin: var(--s-1) 0 0;
  color: var(--c-text-soft);
  font-size: 0.9375rem;
}
.search-page .page-head__meta strong { color: var(--c-text); font-variant-numeric: tabular-nums; }
.search-page .search-q {
  color: var(--c-red);
  font-weight: 700;
  word-break: break-word;
}

/* Vyhledávací pole — větší a širší než v hlavičce */
.search-page__form.search {
  max-width: 640px;
  margin: 0 0 var(--s-4);
  border-color: var(--c-text);
}
.search-page__form input[type="search"] { padding: 0.75rem 1rem; font-size: 1.0625rem; }
.search-page__form button { padding: 0 var(--s-3); }

/* Štítek typu obsahu (badge) */
.card__type {
  display: inline-block;
  background: var(--c-text);
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Seznam výsledků — list, ne karty (méně vizuálního chaosu) */
.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.search-result {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-3);
  padding: var(--s-2);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.search-result:hover { border-color: var(--c-text); transform: translateY(-1px); }
.search-result__media {
  display: block;
  width: 120px;
  height: 90px;
  overflow: hidden;
  border-radius: var(--r-1);
  background: var(--c-surface-2);
}
.search-result__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.search-result__media--empty {
  background: var(--c-surface-2) linear-gradient(135deg, transparent 45%, var(--c-border) 45%, var(--c-border) 55%, transparent 55%);
}
.search-result__body {
  display: flex; flex-direction: column; gap: 0.3rem; min-width: 0;
}
.search-result__meta {
  margin: 0;
  display: flex; gap: 0.4rem 0.6rem; align-items: center; flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--c-text-soft);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.search-result__meta time { white-space: nowrap; }
.search-result__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}
.search-result__title a { color: var(--c-text); text-decoration: none; }
.search-result__title a:hover { color: var(--c-red); text-decoration: underline; }
.search-result__excerpt {
  margin: 0;
  color: var(--c-text-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result__excerpt mark {
  background: var(--c-yellow);
  color: var(--c-text);
  padding: 0 0.15em;
  border-radius: 2px;
  font-weight: 500;
}

@media (max-width: 560px) {
  .search-result { grid-template-columns: 80px 1fr; gap: var(--s-2); }
  .search-result__media { width: 80px; height: 60px; }
}

/* Prázdný stav — bez velkého rámečku, jen lehký box s tipy */
.search-empty {
  background: var(--c-surface-2);
  border-left: 4px solid var(--c-yellow);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  padding: var(--s-3);
  margin-bottom: var(--s-3);
}
.search-empty__lead { margin: 0 0 var(--s-1); font-weight: 600; }
.search-empty__tips {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--c-text-soft);
}
.search-empty__tips li { margin: 0.2rem 0; }
.search-empty__sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-2);
}

/* ---------- 23. Responzivita ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .hero__side > a { min-height: 240px; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

/* Tablet a níže — header search se schová a přesune se do menu
   (na úzkých viewportech není místo na search v hlavičce) */
@media (max-width: 1024px) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
    gap: var(--s-2);
  }
  .search { display: none; }
  .brand__crest { width: 48px; }
  .brand__text { font-size: 1.5rem; }
  .brand__sub { font-size: 0.75rem; }
}

/* Desktop nav — od 900 px se hlavní menu rozvine do horizontální řady
   a hamburger zmizí. Pod tuto hranici platí mobile-first defaulty. */
@media (min-width: 900px) {
  .main-nav__inner {
    flex-direction: row;
    padding: 0 var(--s-3);
    align-items: center;
  }
  .nav-toggle { display: none !important; }
  .main-nav__list {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    width: auto;
    flex: 1;
  }
  .main-nav__item {
    width: auto;
    border-top: 0;
    flex: 0 0 auto;
  }
  .main-nav__link,
  .main-nav__btn {
    width: auto;
    display: inline-flex;
    justify-content: flex-start;
  }
  /* Dropdown na desktopu = absolutní pozice pod tlačítkem */
  .main-nav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    color: var(--c-text);
    border: 2px solid var(--c-text);
    border-top: 0;
    padding: var(--s-1) 0;
    min-width: 260px;
    box-shadow: var(--shadow-2);
  }
  .main-nav__sub a {
    padding: 0.55rem var(--s-3);
    color: var(--c-text);
  }
  .main-nav__sub a:hover {
    background: var(--c-text);
    color: #fff;
  }
  .main-nav__sub--wide { columns: 2; min-width: 520px; }
}

/* Malý telefon — menší font a kompaktnější header */
@media (max-width: 768px) {
  html { font-size: 100%; }              /* na malém telefonu spíš 16 px */
  html[data-fontsize="large"]  { font-size: 112.5%; }
  html[data-fontsize="xlarge"] { font-size: 125%; }

  .three-col,
  .hero__side { grid-template-columns: 1fr; }

  .events li { grid-template-columns: 80px 1fr; }
  .events .badge { grid-column: 2; justify-self: start; }

  .board__item { grid-template-columns: 100px 1fr; }
  .board__meta { grid-column: 2; }
}

@media (max-width: 480px) {
  .a11y-bar__inner { font-size: 0.8125rem; }
  .a11y-bar__label { display: none; }

  .container,
  .section__head,
  .hero__grid,
  .quick-actions__grid,
  .two-col, .three-col,
  .events, .cards, .gallery, .tag-cloud,
  .site-footer__inner, .footer-bottom,
  .breadcrumb { padding-left: var(--s-2); padding-right: var(--s-2); }

  .newsletter form { flex-direction: column; }
}

/* ---------- 24. Tisk ---------- */
/* ---------- Související články pod článkem ---------- */
.related-block {
  margin-top: var(--s-5);
}
.related-block__title {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--c-text);
  padding-bottom: 0.4rem;
  margin-bottom: var(--s-3);
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
}
.related-list__link {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s-2);
  padding: var(--s-2);
  background: var(--c-surface-2);
  border-radius: var(--r-2);
  color: var(--c-text);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.related-list__link:hover,
.related-list__link:focus-visible {
  background: var(--c-bg);
  outline: 1px solid var(--c-border);
  transform: translateX(2px);
}
.related-list__thumb {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-2);
  width: 100%;
  height: 100%;
  display: block;
}
.related-list__body { min-width: 0; }
.related-list__meta {
  font-size: 0.8125rem;
  color: var(--c-text-soft);
  margin: 0;
}
.related-list__h3 {
  font-size: 1rem;
  margin: 0.25rem 0 0;
  line-height: 1.3;
}
.related-list__link:hover .related-list__h3 { color: var(--c-red); }
.related-list__shared {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--c-red);
  font-weight: 500;
}

/* Patička bloku — odkaz na kategorii + procházení podle štítků */
.related-block__more {
  margin: var(--s-3) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.related-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.related-block__tags-label {
  font-size: 0.875rem;
  color: var(--c-text-soft);
}
.related-block__tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--c-surface-2);
  color: var(--c-text);
  font-size: 0.8125rem;
  text-decoration: none;
  border: 1px solid var(--c-border);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.related-block__tag:hover,
.related-block__tag:focus-visible {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
}

@media (max-width: 560px) {
  .related-list__link { grid-template-columns: 80px 1fr; }
}

@media print {
  .a11y-bar, .nav-toggle, .main-nav, .search,
  .quick-actions, .newsletter, dialog.cookies,
  .site-footer, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .hero, .section, .page-header { padding: 1em 0; background: #fff; color: #000; }
  .page-header h1 { color: #000; }
}
