/* Rozložení řádků a sloupců z editoru stránky. Připojuje ho $t->head() před CSS šablony,
   takže ho šablona webu může přepsat. Viz docs/08-pagebuilder.md, sekce Rozvržení sloupců. */

.row {
    display: grid;
    grid-template-columns: var(--row-cols, 1fr);
    align-items: start;
    gap: var(--row-gap, 2rem);
}

.row--align-center { align-items: center; }
.row--align-end { align-items: end; }
.row--align-stretch { align-items: stretch; }

.col {
    display: grid;
    align-content: start;
    gap: var(--widget-gap, 1.5rem);
    min-width: 0;
}

/* Široký obsah widgetu (tabulka, kód) nesmí roztáhnout sloupec — posouvá se uvnitř svého obalu. */
.col > * { min-width: 0; }

/* Na telefonu jsou sloupce pod sebou ve stejném pořadí jako v editoru. */
@media (max-width: 767px) {
    .row { grid-template-columns: 1fr; }
}

/* Výpisy modulů — rozvržení Mřížka a Seznam (core/lists). Vzhled položek patří šabloně.
   Viz docs/07-moduly.md, sekce Výpisy a vzhledy. */

.listing--grid {
    display: grid;
    grid-template-columns: repeat(var(--listing-columns, 3), minmax(0, 1fr));
    gap: var(--listing-gap, 2rem);
}

.listing--list {
    display: grid;
    gap: var(--listing-gap, 1.5rem);
}

/* Rozvržení Posuvník — pás s scroll-snap, šipky odkryje front/slider.js. */
.listing--slider { position: relative; }
.listing__track {
    --listing-per-view: var(--listing-columns, 3);
    display: flex;
    gap: var(--listing-gap, 2rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.listing__track::-webkit-scrollbar { display: none; }
.listing__slide { display: flex; flex: 0 0 calc((100% - (var(--listing-per-view) - 1) * var(--listing-gap, 2rem)) / var(--listing-per-view)); min-width: 0; scroll-snap-align: start; }
.listing__slide > * { flex: 1; min-width: 0; }
.listing__controls { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.listing__controls[hidden] { display: none; }
.listing__arrow { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; color: inherit; background: none; border: 1px solid currentColor; border-radius: 50%; cursor: pointer; }

@media (max-width: 991px) {
    .listing--grid:not(.listing--cols-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .listing--slider:not(.listing--cols-1) .listing__track { --listing-per-view: 2; }
}

@media (max-width: 600px) {
    .listing--slider:not(.listing--cols-1) .listing__track { --listing-per-view: 1.15; }
}

@media (max-width: 600px) {
    .listing--grid:not(.listing--cols-1) { grid-template-columns: minmax(0, 1fr); }
}

/* Galerie (widget Galerie, $t->gallery()) — mřížka náhledů; vzhled patří šabloně. Viz docs/11-media.md. */

.gallery {
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns, 4), minmax(0, 1fr));
    gap: var(--gallery-gap, .75rem);
}

.gallery__item { min-width: 0; margin: 0; }
.gallery__link, .gallery picture { display: block; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery--square img { aspect-ratio: 1; object-fit: cover; }

@media (max-width: 767px) {
    .gallery--cols-4, .gallery--cols-5, .gallery--cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .gallery:not(.gallery--cols-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cookie lišta. Barvy mění šablona proměnnými --consent-bg, --consent-fg a --consent-accent. Viz docs/20-bezpecnost-a-vykon.md. */
.consent { position: fixed; inset: auto 1rem 1rem; z-index: 1000; display: grid; gap: .75rem; max-width: 40rem; margin-inline: auto; padding: 1.25rem; color: var(--consent-fg, #1d2327); background: var(--consent-bg, #fff); border-radius: .5rem; box-shadow: 0 .5rem 2rem rgb(0 0 0 / .25); }
.consent[hidden], .consent-open[hidden], .consent__choices[hidden], .consent__button[hidden] { display: none; }
.consent__title { margin: 0; font-weight: 700; }
.consent__text { margin: 0; }
.consent__id { margin: 0; font-size: .75rem; opacity: .7; overflow-wrap: anywhere; }
.consent__id[hidden] { display: none; }
.consent__choices { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent__button { padding: .5rem 1rem; font: inherit; color: #fff; background: var(--consent-accent, #1d2327); border: 1px solid var(--consent-accent, #1d2327); border-radius: .25rem; cursor: pointer; }
.consent__button--plain { color: inherit; background: none; }
.consent-open { position: fixed; bottom: .75rem; left: .75rem; z-index: 999; padding: .25rem .625rem; font: inherit; font-size: .8125rem; color: var(--consent-fg, #1d2327); background: var(--consent-bg, #fff); border: 1px solid rgb(0 0 0 / .2); border-radius: 1rem; cursor: pointer; }
.cookie-link { padding: 0; font: inherit; color: inherit; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.cookie-table { width: 100%; margin: 0 0 1.5rem; border-collapse: collapse; }
.cookie-table caption { padding: .5rem 0; font-weight: 700; text-align: left; }
.cookie-table th, .cookie-table td { padding: .5rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(0 0 0 / .15); }
@media (max-width: 40rem) { .cookie-tables { overflow-x: auto; } }

/* Mapa (widget Mapa, $t->map()): bez JavaScriptu a bez API klíče seznam míst s odkazy na Mapy.com, po načtení
   front/map.js mapa ve výšce podle volby. Vzhled obsahu a seznamu patří šabloně. Viz docs/09-sablonovani.md, sekce Mapa. */

.map { position: relative; }
.map__places { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.map__title, .map__text, .map__link { display: block; }
.map--ready { height: var(--map-height, 25rem); max-height: 80vh; }
.map--ready.map--small { --map-height: 17.5rem; }
.map--ready.map--large { --map-height: 37.5rem; }
/* Seznam míst zůstává pro čtečky a vyhledávače, jen není vidět. */
.map--ready .map__places { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.map__canvas { position: absolute; inset: 0; }
.map__logo img { display: block; }
/* Značka: barvu a tvar mění šablona proměnnými --map-marker-color a --map-marker-image. */
.map__marker {
  background: var(--map-marker-color, #2a81cb);
  -webkit-mask: var(--map-marker-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath fill-rule='evenodd' d='M12 0C5.4 0 0 5.3 0 11.9 0 20.8 12 32 12 32s12-11.2 12-20.1C24 5.3 18.6 0 12 0Zm0 16.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9Z'/%3E%3C/svg%3E")) center / contain no-repeat;
  mask: var(--map-marker-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath fill-rule='evenodd' d='M12 0C5.4 0 0 5.3 0 11.9 0 20.8 12 32 12 32s12-11.2 12-20.1C24 5.3 18.6 0 12 0Zm0 16.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9Z'/%3E%3C/svg%3E")) center / contain no-repeat;
}

.map-block { display: grid; gap: var(--map-gap, 1.5rem); }
.map-block--left:not(.map-block--no-map) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; }
.map-block--right:not(.map-block--no-map) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; }
.map-block--right .map-block__content, .map-block--below .map-block__content { order: 2; }
/* Obsah v mapě jen nad hotovou mapou (nad dlaždicemi, pod ovládáním Leafletu); jinak pod sebou. */
.map-block:has(.map--ready) { position: relative; }
.map-block--inside-left:has(.map--ready) .map-block__content,
.map-block--inside-right:has(.map--ready) .map-block__content {
    position: absolute;
    z-index: 500;
    top: 1rem;
    left: 1rem;
    max-width: min(22rem, calc(100% - 2rem));
    padding: 1rem 1.25rem;
    background: var(--map-content-background, #fff);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}
.map-block--inside-right:has(.map--ready) .map-block__content { left: auto; right: 1rem; }

@media (max-width: 767px) {
    .map-block--left:not(.map-block--no-map), .map-block--right:not(.map-block--no-map) { grid-template-columns: minmax(0, 1fr); }
    .map-block--right .map-block__content { order: 0; }
    .map-block--inside-left:has(.map--ready) .map-block__content,
    .map-block--inside-right:has(.map--ready) .map-block__content { position: static; max-width: none; padding: 0; background: none; box-shadow: none; }
}

/* Slideshow (celošířkový widget): pás snímků s CSS scroll-snap, ovládání odkryje front/slider.js.
   Písmo a barvy tlačítek patří šabloně. Viz docs/08-pagebuilder.md, sekce Celošířkový widget. */

.slideshow { position: relative; }

.slideshow__track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.slideshow__track::-webkit-scrollbar { display: none; }

.slideshow__slide {
    position: relative;
    display: flex;
    flex: 0 0 100%;
    align-items: flex-end;
    min-height: 60vh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #1d2327;
}

.slideshow--small .slideshow__slide { min-height: 40vh; }
.slideshow--large .slideshow__slide { min-height: 80vh; }
.slideshow--screen .slideshow__slide { min-height: 100vh; min-height: 100svh; }

.slideshow__slide > picture, .slideshow__slide > img { position: absolute; inset: 0; }
.slideshow__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

.slideshow__content {
    position: relative;
    width: 100%;
    padding-block: 3rem 4.5rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}

.slideshow__controls {
    position: absolute;
    right: 0;
    bottom: 1rem;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    pointer-events: none;
}

.slideshow__controls[hidden] { display: none; }
.slideshow__controls > * { pointer-events: auto; }
.slideshow__dots { display: flex; gap: .375rem; }

.slideshow__arrow, .slideshow__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.slideshow__arrow svg, .slideshow__toggle svg { width: 1.25rem; height: 1.25rem; }
.slideshow__toggle > span { display: flex; }
.slideshow__play, .slideshow__toggle.is-paused .slideshow__pause { display: none !important; }
.slideshow__toggle.is-paused .slideshow__play { display: flex !important; }

.slideshow__dot {
    width: .75rem;
    height: .75rem;
    padding: 0;
    background: rgba(255, 255, 255, .5);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.slideshow__dot[aria-current="true"] { background: #fff; }
.slideshow__controls button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .slideshow__track { scroll-behavior: auto; }
}

/* Popup ve stránce (vzhled Vizitka): bez JavaScriptu ho otevře kotva (:target), front/popup.js přidá Esc a fokus.
   Viz docs/07-moduly.md, sekce Typ bez detailu. */

.popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .6);
}

.popup:target, .popup.is-open { display: flex; }

.popup__box {
    position: relative;
    width: min(40rem, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 2rem 1.5rem 1.5rem;
    color: #1d2327;
    text-align: left;
    background: #fff;
    border-radius: 8px;
}

.popup__close { position: absolute; top: .5rem; right: .75rem; font-size: 1.75rem; line-height: 1; color: inherit; text-decoration: none; }

/* Popisek ve zvětšení (core/assets/front/gallery.js). */
.pswp__cms-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: .75rem 1rem;
    font-size: .9rem;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, .5);
}

/* Zarovnání odstavce z editoru textu (data-align) — struktura, ne vzhled. Viz docs/08-pagebuilder.md. */

.editor [data-align="center"] { text-align: center; }
.editor [data-align="end"] { text-align: right; }

/* Widget Tlačítko — zarovnání ve sloupci; vzhled tlačítka patří šabloně (.btn). Viz docs/08-pagebuilder.md. */

.button-widget { display: flex; }
.button-widget--center { justify-content: center; }
.button-widget--end { justify-content: flex-end; }

/* Widget Tabulka — posun do strany, zarovnání sloupců a karty na telefonu; čáry, barvy a písmo patří šabloně.
   Viz docs/08-pagebuilder.md, sekce Tabulka. */

.table-widget { margin: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-widget table { width: 100%; border-collapse: collapse; }
.table-widget caption { text-align: left; }
.table-widget :is(th, td) { text-align: left; vertical-align: top; }
.table-widget :is(th, td).is-align-center { text-align: center; }
.table-widget :is(th, td).is-align-end { text-align: right; }

@media (max-width: 600px) {
    .table-widget--scroll table { min-width: 36rem; }
    .table-widget--cards .table-scroll { overflow: visible; }
    .table-widget--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .table-widget--cards :is(tbody, tr, th, td) { display: block; }
    .table-widget--cards tr + tr { margin-top: 1rem; }
    .table-widget--cards :is(td, th)[data-label] { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .75rem; text-align: left; }
    .table-widget--cards :is(td, th)[data-label]::before { content: attr(data-label); font-weight: 600; }
}

/* Widget FAQ — rozbalovací sekce <details>; vzhled patří šabloně. Viz docs/08-pagebuilder.md, sekce FAQ. */

.faq { display: grid; gap: .5rem; }
.faq__question { cursor: pointer; }
.faq__answer > :last-child { margin-bottom: 0; }

/* Widget Dokumenty — seznam, tabulka, dlaždice; štítek přípony a barvy patří šabloně. Viz docs/08-pagebuilder.md, sekce Dokumenty. */

.downloads:is(ul) { margin: 0; padding: 0; list-style: none; }
.downloads--list { display: grid; gap: .5rem; }
.downloads--tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.downloads__link { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.downloads--tiles .downloads__link { flex-direction: column; align-items: flex-start; height: 100%; }
.downloads__name { min-width: 0; overflow-wrap: anywhere; }
.downloads__meta { white-space: nowrap; }
.downloads--list .downloads__meta { margin-left: auto; }

/* Widgety Kroky, Časová osa, Čísla, Výhody, Citát a Tarify — jen rozvržení; barvy, čáry a písmo patří šabloně.
   Viz docs/08-pagebuilder.md, sekce Výchozí sada widgetů. */

:is(.steps, .timeline, .features, .pricing__features) { margin: 0; padding: 0; list-style: none; }

.steps { display: grid; gap: var(--steps-gap, 1.5rem); }
.steps--tiles { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.steps__item { position: relative; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.steps--list .steps__item { flex-direction: row; align-items: flex-start; }
.steps__number { display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-weight: 700; }
.steps__body > :first-child { margin-top: 0; }
.steps__text > :last-child { margin-bottom: 0; }
.steps--tiles.steps--arrows .steps__item:not(:last-child)::after {
    content: "→"; position: absolute; top: .5rem; right: calc(var(--steps-gap, 1.5rem) / -2); transform: translateX(50%); line-height: 1.5rem;
}
@media (max-width: 600px) {
    .steps--tiles { grid-template-columns: minmax(0, 1fr); }
    .steps--tiles.steps--arrows .steps__item:not(:last-child)::after { content: "↓"; top: auto; right: auto; left: 1.25rem; bottom: calc(var(--steps-gap, 1.5rem) / -2); transform: translate(-50%, 50%); line-height: 1; }
}

.steps--list.steps--arrows .steps__item:not(:last-child)::after {
    content: "↓"; position: absolute; left: 1.25rem; bottom: calc(var(--steps-gap, 1.5rem) / -2); transform: translate(-50%, 50%); line-height: 1;
}

.timeline { position: relative; display: grid; gap: 2rem; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: .5rem; width: 2px; background: currentColor; opacity: .2; }
.timeline__item { position: relative; padding-left: 2.5rem; min-width: 0; }
.timeline__item::before { content: ""; position: absolute; top: .35rem; left: .5rem; width: 1rem; height: 1rem; border-radius: 50%; background: currentColor; transform: translateX(calc(-50% + 1px)); }
.timeline__when { margin: 0 0 .25rem; font-weight: 700; }
.timeline__image { display: block; width: 100%; height: auto; margin-bottom: .75rem; }
.timeline__title { margin-top: 0; }
.timeline__text > :last-child { margin-bottom: 0; }

@media (min-width: 768px) {
    .timeline--alternate::before { left: 50%; }
    .timeline--alternate .timeline__item { width: 50%; padding: 0 2.5rem 0 0; text-align: right; }
    .timeline--alternate .timeline__item::before { left: 100%; }
    .timeline--alternate .timeline__item:nth-child(even) { margin-left: 50%; padding: 0 0 0 2.5rem; text-align: left; }
    .timeline--alternate .timeline__item:nth-child(even)::before { left: 0; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1.5rem; margin: 0; }
.stats--center { text-align: center; }
.stats__item { display: flex; flex-direction: column-reverse; min-width: 0; }
.stats__value { margin: 0; font-size: 2.5rem; font-weight: 700; line-height: 1.1; }
.stats__label { margin: .25rem 0 0; }

.features { display: grid; grid-template-columns: repeat(var(--features-columns, 3), minmax(0, 1fr)); gap: 1.5rem; }
.features--center { text-align: center; }
.features__item { min-width: 0; }
.features__image { display: block; width: 3.5rem; height: auto; margin-bottom: .75rem; }
.features--center .features__image { margin-inline: auto; }
.features__title { margin-top: 0; }
.features__text > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .features { grid-template-columns: repeat(min(2, var(--features-columns, 3)), minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .features { grid-template-columns: minmax(0, 1fr); }
}

.quote { margin: 0; }
.quote--center { text-align: center; }
.quote__text { margin: 0; }
.quote__text > :last-child { margin-bottom: 0; }
.quote__author { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.quote--center .quote__author { justify-content: center; }
.quote__image { display: block; flex: none; width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: 50%; }
.quote__who { display: flex; flex-direction: column; text-align: left; }
.quote__name { font-weight: 700; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; align-items: stretch; }
.pricing__plan { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pricing__plan > :first-child { margin-top: 0; }
.pricing__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.pricing__amount { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.pricing__features { display: grid; gap: .35rem; margin-bottom: 1.5rem; }
.pricing__button { margin-top: auto; align-self: flex-start; }

/* Widgety se skriptem: Vložený obsah, Odpočet, Před a po — a Koláž. Rozvržení a stavy bez skriptu; vzhled patří
   šabloně. Viz docs/08-pagebuilder.md, sekce Widgety se skriptem a Koláž. */

.embed { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; background: #111; color: #fff; }
.embed--4x3 { aspect-ratio: 4 / 3; }
.embed--1x1 { aspect-ratio: 1; }
.embed--9x16 { aspect-ratio: 9 / 16; max-height: 90vh; }
.embed--spotify { aspect-ratio: auto; height: 352px; }
.embed__poster, .embed__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embed__play { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem; color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
.embed__play:not([hidden]) ~ .embed__notice { position: absolute; left: 0; right: 0; bottom: 0; }
.embed__icon { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgba(0, 0, 0, .65); }
.embed__icon::before { content: ""; display: block; margin: 1.35rem 0 0 1.75rem; border-style: solid; border-width: .9rem 0 .9rem 1.5rem; border-color: transparent transparent transparent #fff; }
.embed__label { padding: .15rem .5rem; background: rgba(0, 0, 0, .65); border-radius: 4px; }
.embed__notice { position: relative; margin: 0; padding: .5rem .75rem; font-size: .8rem; text-align: center; background: rgba(0, 0, 0, .65); }
.embed__notice a { color: inherit; }
.embed__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.countdown--center { text-align: center; }
.countdown__date.is-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.countdown__units { display: flex; flex-wrap: wrap; gap: .5rem; font-variant-numeric: tabular-nums; }
.countdown--center .countdown__units { justify-content: center; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 3.75rem; }
.countdown__value { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.1; }
.countdown__finished > :last-child { margin-bottom: 0; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.compare figure { position: relative; margin: 0; }
.compare picture, .compare img { display: block; width: 100%; height: auto; }
.compare__label { position: absolute; top: .75rem; left: .75rem; padding: .15rem .5rem; font-size: .8rem; color: #fff; background: rgba(0, 0, 0, .6); border-radius: 4px; }
.compare.is-ready { position: relative; display: block; overflow: hidden; }
.compare.is-ready .compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--compare, 50%)); }
.compare.is-ready .compare__after img { height: 100%; object-fit: cover; }
.compare.is-ready .compare__after .compare__label { left: auto; right: .75rem; }
.compare.is-ready::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--compare, 50%); width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare__range:focus-visible) { outline: 3px solid currentColor; outline-offset: 3px; }

.collage { display: grid; gap: var(--collage-gap, .75rem); }
.collage__item { min-width: 0; margin: 0; }
.collage__link, .collage picture { display: block; height: 100%; }
.collage img { display: block; width: 100%; height: auto; }
.collage--mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(8rem, 12vw); }
.collage--mosaic .collage__item:first-child { grid-column: span 2; grid-row: span 2; }
.collage--mosaic img { height: 100%; object-fit: cover; }
.collage--masonry { display: block; columns: 3 14rem; column-gap: var(--collage-gap, .75rem); }
.collage--masonry .collage__item { margin-bottom: var(--collage-gap, .75rem); break-inside: avoid; }
.collage--staggered { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.collage--staggered .collage__item:nth-child(even) { margin-top: 3rem; }
.collage--stack { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; padding-bottom: 2rem; }
.collage--stack .collage__item { grid-row: 1; }
.collage--stack .collage__item:nth-child(1) { grid-column: 1 / 9; }
.collage--stack .collage__item:nth-child(2) { grid-column: 5 / 13; margin-top: 18%; z-index: 1; }
.collage--stack .collage__item:nth-child(3) { grid-column: 3 / 10; margin-top: 42%; z-index: 2; }

@media (max-width: 767px) {
    .collage--mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9rem; }
    .collage--staggered .collage__item:nth-child(even) { margin-top: 1.5rem; }
}

/* Anketa (modul Ankety) — sloupec výsledků s pruhem podle --poll-share; barvy patří šabloně. Viz docs/07-moduly.md, sekce Ankety. */

.poll__options { display: grid; gap: .5rem; margin: 0 0 1rem; padding: 0; border: 0; }
.poll__option { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; }
.poll__option input { margin-top: .3em; }
.poll__results { margin-top: 1.25rem; }
.poll__change { margin-top: .75rem; }
.poll__bars { display: grid; gap: .75rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
.poll__result { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; }
.poll__percent { font-variant-numeric: tabular-nums; font-weight: 700; }
.poll__bar { grid-column: 1 / -1; height: .5rem; border-radius: .25rem; background: linear-gradient(90deg, currentColor var(--poll-share, 0%), rgba(127, 127, 127, .2) var(--poll-share, 0%)); }

/* Obrázek a tabulka vložené do textu (editor textu). Vzhled dolaďuje šablona. Viz docs/08-pagebuilder.md. */
.richtext__image { max-width: 100%; height: auto; }
.widget--text table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.widget--text th, .widget--text td { padding: .5rem .75rem; text-align: start; vertical-align: top; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.widget--text th { font-weight: 600; }
@media (max-width: 560px) { .widget--text table { display: block; overflow-x: auto; } }

/* Řádek s efektem, který je vidět už při načtení: odkryje se bez přechodu (front/reveal.js třídu za dva snímky odebere).
   Viz docs/08-pagebuilder.md, sekce Efekt při zobrazení. */
.is-reveal-instant, .is-reveal-instant * { transition: none !important; }
