/* ==========================================================================
   Novoměstský advent — veřejná část
   Barvy z ilustrace (advent/grafika/paleta.json). Žádné vložené styly v HTML:
   Content-Security-Policy je zakazuje, proto se vše řídí třídami.
   ========================================================================== */

@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("pisma/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("pisma/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 300 900; font-display: swap;
  src: url("pisma/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 300 900; font-display: swap;
  src: url("pisma/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("pisma/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("pisma/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-style: italic; font-weight: 300 900; font-display: swap;
  src: url("pisma/nunito-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: italic; font-weight: 300 900; font-display: swap;
  src: url("pisma/nunito-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Barvy. Kontrast textu (WCAG): bílá na modré 6,8 : 1, na noční 15 : 1;
   zlatá z ilustrace (#b2a759) má na modré jen 2,8 : 1 → na TEXT se bere světlejší.
   -------------------------------------------------------------------------- */
:root {
  --modra: #3357a4;
  --noc: #261a5f;
  --zlata: #b2a759;
  --zlata-text: #ebe2a1;
  --bila: #fefefe;
  --led: #f2f4fa;
  --papir: #fefefe;
  --inkoust: #261a5f;
  --stin: 15 10 55;

  --pozadi: var(--modra);
  --okno: var(--modra);

  --pismo-nadpis: "Fraunces", Georgia, "Times New Roman", serif;
  --pismo: "Nunito", "Segoe UI", system-ui, sans-serif;
  --zaobleni: 1.1rem;
  color-scheme: light;
}

/* Ladění stránky — vybírá se v administraci u každé stránky. */
.barva-modra  { --pozadi: var(--modra); --okno: var(--modra); }
.barva-noc    { --pozadi: var(--noc);   --okno: var(--modra); }
.barva-zlata  { --pozadi: var(--modra); --okno: var(--zlata); }
.barva-pulnoc { --pozadi: var(--noc);   --okno: var(--zlata); }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--pozadi);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -8%, rgb(255 255 255 / .13), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgb(var(--stin) / .35), transparent 70%);
  background-attachment: fixed;
  color: var(--bila);
  font-family: var(--pismo);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--zlata-text);
  outline-offset: 3px;
  border-radius: .25rem;
}

.preskoc {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: .6rem 1rem; border-radius: .5rem;
  background: var(--bila); color: var(--inkoust); font-weight: 800;
}
.preskoc:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Nebe — sníh a rozházené ozdoby z ilustrace. Leží POD obsahem a nejde na ně kliknout.
   -------------------------------------------------------------------------- */
.nebe {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

.snih {
  position: absolute; inset: -40rem 0 0;
  background: url("/grafika/snih.svg") 0 0 / 56rem auto repeat;
  opacity: .75;
}
.snih-blizko {
  background-size: 92rem auto;
  background-position: 30rem 12rem;
  opacity: .45;
}

.dekor { position: absolute; height: auto; display: block; }
.d1  { width: 2.6rem; top: 12%;   left: 1.5%; }
.d2  { width: 3.4rem; top: 11%;   right: 5%;  }
.d3  { width: 7.5rem; bottom: 5%; left: 1.5%; transform: rotate(-14deg); }
.d4  { width: 2.8rem; top: 40%;   left: 3.5%; }
.d5  { width: 3rem;   top: 60%;   right: 2.5%; }
.d6  { width: 2.6rem; top: -.4rem; right: 9%; }
.d7  { width: 4rem;   bottom: 30%; right: 2%; }
.d8  { width: 3.6rem; top: 1.5%;  left: 1%;   }
.d9  { width: 3.6rem; top: 1.5%;  right: 1%;  }
.d10 { width: 2.4rem; top: 27%;   right: 2.5%; }
.d11 { width: 7rem;   bottom: -1%; right: .5%; transform: rotate(10deg); }
.d12 { width: 2.2rem; top: -.4rem; left: 13%; }
.d13 { width: 2.6rem; top: 72%;   left: 5%;   }
.d14 { width: 3.2rem; bottom: 32%; left: 1.2%; }
.d15 { width: 2.2rem; top: 47%;   right: 8%;  }
.d16 { width: 3rem;   bottom: 9%; right: 17%; }

@media (prefers-reduced-motion: no-preference) {
  .snih        { animation: snezi 90s linear infinite; }
  .snih-blizko { animation-duration: 60s; }
  .trpyt       { animation: trpyt 5s ease-in-out infinite; transform-origin: 50% 50%; }
  .d2.trpyt    { animation-delay: -1.2s; }
  .d7.trpyt    { animation-delay: -2.6s; animation-duration: 6.5s; }
  .d10.trpyt   { animation-delay: -3.8s; }
  .d15.trpyt   { animation-delay: -.6s; animation-duration: 4.2s; }
}

/* Pod 100rem se okraje vedle obsahu zúží a ozdoby u levého sloupce by ležely přes menu. */
@media (max-width: 100rem) {
  .d3, .d4, .d13, .d14 { display: none; }
}

@keyframes snezi {
  from { transform: translateY(0); }
  to   { transform: translateY(40rem); }
}
@keyframes trpyt {
  0%, 100% { opacity: 1;   scale: 1; }
  50%      { opacity: .45; scale: .86; rotate: 9deg; }
}

/* --------------------------------------------------------------------------
   Rozvržení: vlevo kostel a menu, vpravo nadpis, panel a patička.
   -------------------------------------------------------------------------- */
.rozvrzeni {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(12.5rem, 15.5rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.2vw, 3.5rem);
  max-width: 84rem;
  margin: 0 auto;
  padding: clamp(1rem, 2.6vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) 1rem;
}

/* Levý sloupec se natáhne přes celou výšku stránky — jen tak může menu v něm zůstat při posouvání na místě. */
.bok { align-self: stretch; padding-top: .25rem; }

.bok-kostel {
  display: block; width: clamp(5.5rem, 7.5vw, 7.25rem);
  margin: 0 0 .75rem .25rem;
  transition: transform .4s ease;
}
.bok-kostel:hover, .kostel-mobil:hover { transform: translateY(-.25rem) rotate(-1.5deg); }
.kostel-mobil { display: none; }
.kostel { display: block; width: 100%; filter: drop-shadow(0 .5rem .9rem rgb(var(--stin) / .35)); }
/* Na tmavém ladění se ukáže světlý kostel. Skrytý obrázek má loading="lazy" → nestahuje se. */
.kostel-svetly { display: none; }
.barva-noc .kostel-tmavy, .barva-pulnoc .kostel-tmavy { display: none; }
.barva-noc .kostel-svetly, .barva-pulnoc .kostel-svetly { display: block; }

/* Menu je vidět vždy (správce 21. 10.): při posouvání stránky zůstává na místě; kdyby se do výšky okna
   nevešlo (17 položek, nízký notebook), posouvá se samo uvnitř. */
.menu {
  position: sticky; top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .35) transparent;
  padding-right: .25rem;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li + li { margin-top: .2rem; }

/* Čáry pod položkami — jako v návrhu (rozlozeni-webu.pdf); vybraná položka se PODBARVÍ (správce 21. 10.). */
.menu a {
  position: relative; display: block;
  padding: .5rem .55rem .42rem 1.65rem;
  border-bottom: 2px solid rgb(255 255 255 / .55);
  border-radius: .5rem .5rem .2rem .2rem;
  color: var(--bila); text-decoration: none;
  font-weight: 800; font-size: .98rem; line-height: 1.22;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.menu a::before {
  content: ""; position: absolute; left: .4rem; top: calc(50% - .5rem);
  width: 1rem; height: 1rem;
  background: var(--zlata-text);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0; transform: scale(.4) rotate(-40deg);
  transition: opacity .25s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.menu a:hover, .menu a:focus-visible { background: rgb(255 255 255 / .13); border-color: var(--bila); }
.menu a:hover::before, .menu a:focus-visible::before,
.menu a[aria-current="page"]::before { opacity: 1; transform: none; }
/* Zlatá s tmavě modrým textem: kontrast 6,4 : 1. */
.menu a[aria-current="page"] {
  background: var(--zlata); color: var(--inkoust); border-color: var(--zlata);
  box-shadow: 0 .35rem .9rem rgb(var(--stin) / .3);
}
.menu a[aria-current="page"]::before { background: var(--inkoust); }

/* --------------------------------------------------------------------------
   Hlavní nadpis a podnadpis
   -------------------------------------------------------------------------- */
.hlavni { min-width: 0; }

.titul {
  margin: .5rem 0 clamp(1.25rem, 2.5vw, 2rem);
  text-align: center; font-weight: inherit;
}
.titul-nazev {
  display: block;
  font-family: var(--pismo-nadpis);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4.7rem);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  line-height: 1.02; letter-spacing: -.012em;
  text-shadow: 0 .12em .45em rgb(var(--stin) / .4);
  text-wrap: balance;
}
.titul-podnadpis {
  display: inline-flex; align-items: center; gap: .7em;
  margin-top: .45rem;
  font-family: var(--pismo); font-weight: 800;
  font-size: clamp(1.15rem, 2.3vw, 1.85rem);
  letter-spacing: .02em; color: var(--zlata-text);
  text-wrap: balance;
}
.titul-podnadpis::before, .titul-podnadpis::after {
  content: ""; flex: none; width: .75em; height: .75em;
  background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

/* --------------------------------------------------------------------------
   Panel: nahoře náladový text a okno s obrázkem za úhlopříčkou, pod tím text.
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--papir);
  background-image: radial-gradient(ellipse 70% 60% at 0 0, var(--bila), var(--led));
  color: var(--inkoust);
  border: 3px solid var(--inkoust);
  border-radius: var(--zaobleni);
  box-shadow: 0 1.6rem 3.6rem rgb(var(--stin) / .42), 0 .2rem .6rem rgb(var(--stin) / .25);
  overflow: hidden;
  view-transition-name: panel;
}

.panel-hlava {
  --pad: clamp(1.4rem, 3vw, 2.75rem);
  position: relative;
  height: clamp(26rem, 40vw, 37rem);
  padding: var(--pad);
}
.panel-hlava.bez-okna { height: auto; }

/* Okno = plovoucí blok vpravo dole. Text ho obtéká podél úhlopříčky (shape-outside).
   Plocha okna je oříznutá do trojúhelníku; ILUSTRACE oříznutá není a smí z okna
   „vystoupit" přes čáru do papíru — široká rodinka by se jinak do trojúhelníku nevešla. */
.okno {
  float: right;
  width: 64%;
  height: calc(100% + 2 * var(--pad));
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0 1rem;
  position: relative;
  shape-outside: polygon(100% 16%, 100% 100%, 0 100%) border-box;
  shape-margin: 1.1rem;
}
.okno-plocha {
  position: absolute; inset: 0;
  background: var(--okno);
  background-image: radial-gradient(ellipse 90% 70% at 85% 100%, rgb(255 255 255 / .14), transparent 70%);
  clip-path: polygon(100% 16%, 100% 100%, 0 100%);
}

.okno-modre .okno-plocha { background-color: var(--modra); }

.okno .ilustrace {
  position: absolute; right: 4%; bottom: 5%;
  width: auto; height: auto;
  max-width: 88%; max-height: 68%;
  filter: drop-shadow(0 .35rem .5rem rgb(var(--stin) / .28));
}
.okno-foto .okno-plocha img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.okno-cara {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
}
.okno-cara line { stroke: var(--inkoust); stroke-width: 7; stroke-linecap: round; }

.perex {
  font-family: var(--pismo-nadpis);
  font-weight: 560;
  font-size: clamp(1.3rem, 2.25vw, 2.05rem);
  font-variation-settings: "SOFT" 100, "opsz" 72;
  line-height: 1.3;
  text-align: center;
  text-wrap: pretty;
}
.perex p { margin: 0 0 .6em; }
.perex a { text-decoration-color: var(--zlata); text-decoration-thickness: .1em; text-underline-offset: .15em; }
.bez-okna .perex { max-width: 46rem; margin: 0 auto; }

/* --- Běžný text pod panelem --------------------------------------------- */
.panel-telo {
  padding: clamp(1.4rem, 3vw, 2.75rem);
  border-top: 2px dashed rgb(38 26 95 / .25);
}
.panel-hlava + .panel-telo { padding-top: clamp(1.6rem, 3vw, 2.5rem); }
.panel > .panel-telo:first-child { border-top: 0; }

.text { max-width: 46rem; }
.text > :first-child { margin-top: 0; }
.text h2, .text h3 {
  font-family: var(--pismo-nadpis);
  font-variation-settings: "SOFT" 100;
  line-height: 1.2; margin: 1.6em 0 .45em;
}
.text h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 750; }
.text h3 { font-size: 1.25rem; font-weight: 700; }
.text p { margin: 0 0 1em; }
.text ul { margin: 0 0 1.1em; padding: 0; list-style: none; }
.text li { position: relative; padding-left: 1.6rem; margin: .3em 0; }
.text li::before {
  content: ""; position: absolute; left: .1rem; top: .38em;
  width: .85em; height: .85em;
  background: var(--zlata);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.text a {
  color: var(--inkoust); font-weight: 700;
  text-decoration-color: var(--zlata); text-decoration-thickness: .12em; text-underline-offset: .18em;
}
.text a:hover { text-decoration-color: var(--inkoust); }

/* --- Video: z YouTube se nenačte nic, dokud návštěvník neklikne ---------- */
.video { margin-top: 1.75rem; max-width: 46rem; }
.video-spoustec {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: .8rem; border: 3px solid var(--inkoust);
  background: var(--okno);
  background-image: radial-gradient(circle at 30% 20%, rgb(255 255 255 / .18), transparent 55%);
  color: var(--bila); text-decoration: none;
}
.video-ikona {
  flex: none; width: 4.4rem; height: 4.4rem; border-radius: 50%;
  background: var(--bila);
  box-shadow: 0 .5rem 1.4rem rgb(var(--stin) / .35);
  transition: transform .25s ease;
}
.video-ikona::after {
  content: ""; display: block; width: 100%; height: 100%;
  background: var(--inkoust);
  clip-path: polygon(40% 30%, 72% 50%, 40% 70%);
}
.video-spoustec:hover .video-ikona { transform: scale(1.08); }
.video-text { font-weight: 800; font-size: 1.2rem; line-height: 1.3; }
.video-text small { display: block; font-weight: 600; font-size: .85rem; opacity: .85; }
.video iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
  border-radius: .8rem;
}

/* --- Fotky ---------------------------------------------------------------- */
.galerie {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: .8rem;
}
.galerie a { display: block; border-radius: .65rem; overflow: hidden; border: 2px solid var(--inkoust); }
.galerie img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .4s ease;
}
.galerie a:hover img { transform: scale(1.05); }

.prohlizec {
  max-width: 96vw; max-height: 94vh; padding: 0; border: 0; background: transparent;
  overflow: visible;
}
.prohlizec::backdrop { background: rgb(var(--stin) / .88); }
.prohlizec img { display: block; max-width: 96vw; max-height: 86vh; width: auto; border-radius: .6rem; }
.prohlizec p { margin: .6rem 0 0; color: var(--bila); text-align: center; }
.prohlizec button {
  position: absolute; top: -.9rem; right: -.9rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0;
  background: var(--bila); color: var(--inkoust); font: 800 1.4rem/1 var(--pismo); cursor: pointer;
}

/* --------------------------------------------------------------------------
   Patička: „Sledujte nás" + odkazy, pod tím tiráž
   -------------------------------------------------------------------------- */
.sledujte {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}
.sledujte-nadpis {
  margin: 0 .4rem 0 0;
  font-family: var(--pismo-nadpis); font-weight: 750; font-size: 1.45rem;
  font-variation-settings: "SOFT" 100;
}
.sledujte-odkazy { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.sledujte-odkazy a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem .45rem .75rem;
  border: 2px solid rgb(255 255 255 / .62); border-radius: 999px;
  color: var(--bila); text-decoration: none; font-weight: 800;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.sledujte-odkazy a:hover { background: var(--bila); color: var(--inkoust); border-color: var(--bila); }
.ikona { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ikona .plna { fill: currentColor; stroke: none; }

.tiraz {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
  margin: 1.75rem 0 .5rem; padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / .25);
  font-size: .9rem; opacity: .85;
}
.tiraz p { margin: 0; }

/* --------------------------------------------------------------------------
   Přechod mezi stránkami (prohlížeče, které to umějí; ostatní nic nepoznají)
   -------------------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(panel), ::view-transition-new(panel) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  * { scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   Užší obrazovky
   -------------------------------------------------------------------------- */
@media (max-width: 72rem) {
  .okno { width: 60%; }
}

@media (max-width: 56rem) {
  .rozvrzeni { grid-template-columns: minmax(0, 1fr); gap: .75rem; padding-top: 0; }

  /* Na telefonu je menu vodorovný pruh, přilepený nahoře — pořád vidět, posouvá se prstem do stran.
     `.bok` se „rozpustí", aby se pruh lepil k celé stránce, ne jen ke svému obalu. */
  .bok { display: contents; }
  .bok-kostel { display: none; }
  .menu {
    position: sticky; top: 0; z-index: 5;
    max-height: none; overflow: visible; padding: 0;
    margin: 0 calc(-1 * clamp(1rem, 3vw, 2.5rem));
    background: var(--pozadi);
    box-shadow: 0 .6rem 1.2rem -0.6rem rgb(var(--stin) / .55);
  }
  .menu ul {
    display: flex; gap: .45rem;
    overflow-x: auto; scrollbar-width: none;
    padding: .6rem clamp(1rem, 3vw, 2.5rem);
    scroll-padding-inline: 1rem;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2rem), transparent);
  }
  .menu ul::-webkit-scrollbar { display: none; }
  .menu li { flex: none; }
  .menu li + li { margin-top: 0; }
  .menu a {
    white-space: nowrap;
    padding: .45rem .95rem;
    border: 2px solid rgb(255 255 255 / .6); border-radius: 999px;
    font-size: .92rem;
  }
  .menu a::before { display: none; }

  /* Kostel na telefonu vedle nadpisu, ať nezabírá celý řádek. */
  .titul-obal { position: relative; margin-top: .9rem; }
  .kostel-mobil {
    display: block; position: absolute; left: 0; top: -.2rem;
    width: clamp(2.6rem, 11vw, 3.6rem);
    transition: transform .4s ease;
  }
  .titul { margin-top: .25rem; padding-inline: clamp(2.8rem, 12vw, 3.9rem); }

  /* Okno je v HTML PŘED textem (kvůli obtékání na šířku); na telefonu jde pod text. */
  .panel-hlava { height: auto; display: flex; flex-direction: column; }
  .perex { order: 1; }
  .okno {
    order: 2;
    float: none; width: auto;
    height: clamp(15rem, 62vw, 22rem);
    margin: 1.4rem calc(-1 * var(--pad)) calc(-1 * var(--pad));
    shape-outside: none;
  }
  .okno-plocha { clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%); }
  .okno .ilustrace { right: 50%; translate: 50% 0; bottom: 6%; max-width: 86%; max-height: 76%; }
  .okno-cara .cara-siroka { display: none; }
  .perex { text-align: center; }

  .jen-siroka, .d1 { display: none; }
  .d1 { width: 2.2rem; } .d2 { width: 2.4rem; } .d4 { width: 2rem; top: 55%; }
  .d7 { width: 3rem; } .d8, .d9 { width: 2.6rem; } .d12 { left: 70%; }
  .d10 { width: 1.8rem; top: 35%; }
  .sledujte { justify-content: center; }
  .sledujte-nadpis { width: 100%; text-align: center; margin: 0; }
  .sledujte-odkazy { justify-content: center; }
  .tiraz { justify-content: center; text-align: center; }
}

@media (min-width: 56.01rem) {
  .okno-cara .cara-uzka { display: none; }
}

@media (max-width: 26rem) {
  .sledujte-odkazy a { padding: .4rem .8rem .4rem .6rem; font-size: .95rem; }
}

@media print {
  .nebe, .menu, .sledujte, .video { display: none !important; }
  body { background: #fff; color: #000; }
  .rozvrzeni { display: block; }
  .panel { box-shadow: none; border-color: #000; }
}
