/**
 * Obrlobus — společné rozložení webu (načítá se po site-header.css, před styly stránek a vzhledem Příchod).
 * Velikosti, odsazení, umístění, písmo, mobilní menu a rušení stylů ze základních souborů (none / transparent / 0).
 * Vzhled (barvy, plochy, zaoblení, stíny) patří do assets/css/prichod/*.css.
 *
 * Do 10. 10. 2026 se soubor jmenoval theme-pastel.css a nesl i vzhled Pastel (pravidla s
 * „:where(html:not([data-look="prichod"]))“). Pastel je vyřazený – jeho pravidla, textury a mapy jsou v archivu
 * assets/css/pastel-archiv/ (necommituje se, README tam popisuje, jak Pastel fungoval). Proměnné --pastel-* zůstaly
 * jako společné tokeny: hodnoty jim dává Příchod (prichod.css), textury mají none.
 */

/* ---------- Základní stavební kameny ---------- */

/* Nerovné okraje */
.pastel-rough,
.obrlobus-dash-card,
.obrlobus-promo__viewport,
.obrlobus-articles__media,
.gallery-card__media,
.auth-form__submit,
.site-utility-auth-form__submit {
    border-radius: 0 !important;
}

/* Tah pastelem (oddělovač / podtržení) */
.pastel-stroke {
    display: block;
    height: 7px;
}

/* ---------- Hlavička ---------- */

header.site-header,
.site-utility-bar,
.site-topbar {
    border: 0 !important;
}

.site-topbar {
    background: transparent !important;
    position: relative;
}

.site-utility-bar {
    padding-bottom: 4px;
}

/* Rozbalovací panel hlavičky */

.site-breadcrumb {
    background: transparent !important;
}

/* ---------- Nadpisy a tahy pod nimi ---------- */

.page-heading,
.site-page-heading,
.obrlobus-section__title,
.obrlobus-hero__title {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}

.page-heading::after,
.obrlobus-section__title.page-heading::after {
    content: "" !important;
    display: block !important;
    width: min(160px, 40%) !important;
    height: 8px !important;
    margin-top: 0.45em !important;
    border: 0 !important;
    opacity: 1 !important;
}

/* tah pod nadpisem drží zarovnání nadpisu (vycentrované jen tam, kde je vycentrovaný nadpis) */
body.page-gallery-archive .page-heading::after,
body.page-contact .page-heading::after {
    margin-inline: auto !important;
}

hr.obrlobus-home-intro-divider,
.page-subsection-divider {
    border: 0 !important;
    height: 0 !important;
    opacity: 1 !important;
    background: none !important;
}

/* ---------- Úvodní stránka ---------- */

.obrlobus-promo__viewport {
    border: 0 !important;
    box-shadow: none !important;
}

.obrlobus-promo__dot {
    border: 0 !important;
}

.obrlobus-dash-card {
    border: 0 !important;
    box-shadow: none !important;
}

.obrlobus-dash-card__value {
    font-family: var(--font-heading) !important;
}

.obrlobus-dash-card:hover,
.obrlobus-dash-card:focus-visible {
    filter: brightness(1.06) saturate(1.05);
    border: 0 !important;
}

.obrlobus-articles__media,
.gallery-card__media {
    border: 0 !important;
    box-shadow: none !important;
}

.obrlobus-articles__title {
    font-family: var(--font-heading) !important;
}

.obrlobus-articles__more {
    font-weight: 600;
}

/* ---------- Formuláře ---------- */

.auth-form__submit,
.site-utility-auth-form__submit {
    border: 0 !important;
    font-weight: 600 !important;
}

.auth-form__input:focus,
.site-utility-auth-form__input:focus {
    outline: none;
}

.site-auth-overlay__dialog,
.site-utility-auth-panel,
.ui-card {
    border: 0 !important;
}

.site-utility-auth-panel__title,
.ui-card__title {
    font-family: var(--font-heading);
}

.site-auth-overlay__close {
    background: transparent !important;
}

/* ---------- Patička ---------- */

.site-footer {
    border: 0 !important;
    padding-top: calc(1.5rem + 6px) !important;
}

/* ---------- Přepínač motivu ---------- */

.site-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.site-theme-toggle svg {
    width: 16px;
    height: 16px;
}

/* ikona = co udělá další klik (data-next ze site-header.js: dark = měsíc, light = slunce, auto = hodiny);
   než skript doběhne, podle motivu jako dřív */
.site-theme-toggle .site-theme-toggle__sun,
.site-theme-toggle .site-theme-toggle__auto { display: none; }

:root[data-theme="dark"] .site-theme-toggle:not([data-next]) .site-theme-toggle__sun { display: block; }
:root[data-theme="dark"] .site-theme-toggle:not([data-next]) .site-theme-toggle__moon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .site-theme-toggle:not([data-next]) .site-theme-toggle__sun { display: block; }
    :root:not([data-theme="light"]) .site-theme-toggle:not([data-next]) .site-theme-toggle__moon { display: none; }
}

.site-theme-toggle[data-next] svg { display: none; }
.site-theme-toggle[data-next="dark"] .site-theme-toggle__moon,
.site-theme-toggle[data-next="light"] .site-theme-toggle__sun,
.site-theme-toggle[data-next="auto"] .site-theme-toggle__auto { display: block; }

@media (prefers-reduced-motion: reduce) {
    .obrlobus-dash-card:hover { filter: none; }
}

/* ---------- Karty postav (archiv příběhů má vlastní story-archive.css) ---------- */

:root body .obr-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.story-filters__drawer,
.story-filters__panel {
    background-color: transparent !important;
}

/* ---------- Postavy — karusel, karty, rejstřík ---------- */

:root {
    --nature-negative: #8e2a2a;
    --nature-positive: #2f6a38;
    --nature-torn: #8a5d05;
    --nature-dark: #5b3a78;
    --nature-neutral: #5a4f43;
}

:root[data-theme="dark"] {
    --nature-negative: #e59a92;
    --nature-positive: #8fd19a;
    --nature-torn: #f0c060;
    --nature-dark: #c7a6e6;
    --nature-neutral: #b7aca3;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --nature-negative: #e59a92;
        --nature-positive: #8fd19a;
        --nature-torn: #f0c060;
        --nature-dark: #c7a6e6;
        --nature-neutral: #b7aca3;
    }
}

.char-catalog .obr-card,
.char-grid .obr-card {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.char-catalog .card-content-wrapper,
.char-grid .card-content-wrapper {
    border: 0 !important;
}

.char-catalog .card-title,
.char-grid .card-title {
    font-family: var(--font-heading) !important;
}

.page-characters-archive .char-alpha-index__title::after {
    height: 6px !important;
}

/* ---------- Detail postavy ---------- */

.character-detail-page.character-detail-main,
.character-detail-main {
    background: transparent !important;
}

.character-detail-card,
.character-detail-facts,
.character-detail-intro {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.character-detail-name {
    font-family: var(--font-heading) !important;
}

/* ---------- Čtečka příběhu ---------- */

.story-reader-body .story-body {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.story-reader-body .story-header .page-heading,
.story-reader-body .story-title {
    font-family: var(--font-heading) !important;
}

/* Noční režim čtečky: hlavička a patička splynou s tmavým papírem */
.story-reader-body.story-reader--theme-night header.site-header {
    background-image: none !important;
}

/* ---------- Autor, článek, galerie, formuláře ---------- */

.author-page__portrait,
.home-article-detail__figure,
.gallery-overlay__figure {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.author-page__portrait img,
.home-article-detail__figure img {
    border-radius: 0 !important;
}

.gallery-card__peek-title {
    font-family: var(--font-heading) !important;
}

.gallery-overlay__title {
    font-family: var(--font-heading) !important;
}

.gallery-overlay__close {
    border: 0 !important;
}

/* Účet — rozečtené příběhy */

.account-reading-progress__new-part {
    font-weight: 700;
}

/* ---------- Sjednocená ovládací tlačítka ----------
 * Filtry (čipy, kulatá tlačítka rodin, Vymazat), šipky karuselů, „Celá galerie“, „Zpět“.
 * Nevybrané = bílý pastel (95 %), vybrané = tyrkys. Bez obrysů (obrys + maska dělal „rohy“).
 */

/* Obdélníková tlačítka s nerovným okrajem */
.list-chip,
.obrlobus-section__more,
.back-link {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0;
    text-decoration: none !important;
}

.obrlobus-section__more,
.back-link {
    padding: 0.6em 1.15em !important;
    font-weight: 600;
}

/* Šipky (rodiny filtrů, karusely): „vyosený“ čtverec s nerovným okrajem */
.char-catalog__arrow,
.page-characters-archive .char-catalog__arrow,
.obrlobus-promo__nav {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Jemný stín, aby bílá tlačítka nesplynula s bílým papírem.
   Stín nese rodič (drop-shadow respektuje nerovný okraj masky dítěte). */
.list-chip {
    padding: 0.5em 0.95em !important;
}

.page-actions-center,
.home-article-detail__back {
    filter: drop-shadow(0 1px 1.5px rgba(29, 27, 28, 0.3));
}

:root[data-theme="dark"] .page-actions-center,
:root[data-theme="dark"] .home-article-detail__back {
    filter: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .page-actions-center,
    :root:not([data-theme="light"]) .home-article-detail__back {
        filter: none;
    }
}

/* Ostré rohy: obrázky a vnitřní vrstvy uvnitř maskovaných ploch bez zaoblení
   (zaoblení + nerovná maska dělalo v rozích divné fragmenty). */
.obrlobus-promo__viewport img,
.obrlobus-promo__viewport .obrlobus-promo__slide,
.obrlobus-promo__viewport .obrlobus-promo__link,
.obrlobus-articles__media img,
.obrlobus-articles__media-placeholder,
.gallery-card__media img,
.gallery-card__image,
.char-catalog .obr-card img,
.char-grid .obr-card img,
.author-page__portrait img,
.home-article-detail__figure img,
.gallery-overlay__figure img {
    border-radius: 0 !important;
}

/* Desktop: bez „nájezdu“ karet při scrollu (listing reveal). Mobil zatím beze změny. */
@media (min-width: 1025px) {
    .listing-reveal-ready .js-listing-card,
    .listing-reveal-ready .js-listing-card.reveal-from-left,
    .listing-reveal-ready .js-listing-card.reveal-from-right,
    .listing-reveal-ready .js-listing-card.reveal-from-bottom,
    .listing-reveal-ready .js-listing-card.has-entered:not(.is-revealed),
    .listing-reveal-ready[data-listing-reveal-smooth='desktop'].listing-reveal-smooth .js-listing-card.is-revealed {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
    }
}

/* ---------- Rozcestník (bannery na úvodní stránce) ----------
 * Každý banner = pastelová plocha s otřepeným okrajem; barvy se střídají
 * (tyrkys, mosaz, oceán, kůže). Obrázek z administrace ji překryje, zrno zůstává.
 */

.banner-container {
    gap: clamp(0.75rem, 2.5vw, 1.25rem);
    padding: clamp(0.75rem, 3vw, 1.5rem) var(--page-gutter);
    box-sizing: border-box;
}

.banner,
.banner:link,
.banner:visited,
.banner:hover,
.banner:active {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* pátý banner (Lokace) = smaragd, ať se neopakuje tyrkys prvního */

.banner .banner-content {
    border-radius: 0 !important;
}

/* Zrno a prosvítající papír nad barvou i nad obrázkem (inline background-image je nepřebije) */
.banner .banner-content::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.banner .banner-content h2 {
    position: relative;
    z-index: 1;
}

.banner .reveal-visual {
    border-radius: 0 !important;
}

.banner:focus-visible {
    outline: none;
}

/* ---------- Kulaté „erodované“ filtry ----------
 * Podle návrhu (design/pastelovy-motiv): nevybraný filtr = otřepený obrys pilulky,
 * vybraný = tyrkysová pastelová pilulka. Tvar = 9-slice PNG na ::before
 * (Safari + Chrome), Firefox = obyčejná pilulka. Šipky karuselů zůstávají čtvercové.
 */

:root body .story-filters__chip,
:root body .story-filters__reset,
:root body .page-list-filter__reset,
:root body .story-filters--panel .story-filters__trigger,
:root body .story-filters--panel .story-filters__mobile-toggle {
    position: relative;
    isolation: isolate;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    -webkit-mask-box-image: none !important;
    text-decoration: none !important;
}

/* rodina filtrů: ikona přímo v kulatém tlačítku (místo šipky) */
:root body .story-filters--panel .story-filters__trigger {
    width: 3rem !important;
    height: 3rem !important;
}

.story-filters__trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.story-filters__trigger-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

:root body .story-filters__chip {
    padding: 0.45em 1.1em !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

:root body .story-filters__chip.is-active {
    font-weight: 600 !important;
}

:root body .story-filters__chip::before,
:root body .story-filters__reset::before,
:root body .page-list-filter__reset::before,
:root body .story-filters--panel .story-filters__trigger::before,
:root body .story-filters--panel .story-filters__mobile-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

:root body .story-filters__chip:hover::before,
:root body .story-filters__reset:hover::before,
:root body .page-list-filter__reset:hover::before,
:root body .story-filters--panel .story-filters__trigger:hover::before,
:root body .story-filters--panel .story-filters__mobile-toggle:hover::before {
    opacity: 1;
}

/* vybraný filtr / otevřená nebo použitá rodina = tyrkysová výplň */
:root body .story-filters__chip.is-active,
:root body .story-filters__chip[aria-pressed="true"],
:root body .story-filters--panel .story-filters__trigger[aria-expanded="true"],
:root body .story-filters--panel .story-filters__trigger.is-active,
:root body .story-filters--panel .story-filters__trigger.has-selection {
    background: transparent !important;
}

:root body .story-filters__chip.is-active::before,
:root body .story-filters__chip[aria-pressed="true"]::before,
:root body .story-filters--panel .story-filters__trigger[aria-expanded="true"]::before,
:root body .story-filters--panel .story-filters__trigger.is-active::before,
:root body .story-filters--panel .story-filters__trigger.has-selection::before {
    border: 0;
    opacity: 1;
}

@supports (-webkit-mask-box-image: url("x.png") 58 fill / 29px round) {
    :root body .story-filters__chip::before,
    :root body .story-filters__reset::before,
    :root body .page-list-filter__reset::before,
    :root body .story-filters--panel .story-filters__trigger::before,
    :root body .story-filters--panel .story-filters__mobile-toggle::before {
        border: 0;
        border-radius: 0;
    }

}

/* ---------- Vodorovné oddělovače = tah pastelem ----------
 * Návrh „Oddělovače (tah pastelem)“: 1) uhel přes celou šířku (tmavý motiv: křída).
 * Vnitřní linky v kartách a seznamech = slabší tah (--pastel-rule-soft).
 * Kreslí se přes border-image (funguje i ve Firefoxu), PNG rule-*.png.
 */

/* hlavní oddělovače (sekce stránky) — silný „tah pastelem 1“ už jen pod úvodem galerie;
   úvodní stránka a postavy ho nemají (přání: jen tenké tahy a krátké tahy pod nadpisy) */
hr.obrlobus-home-intro-divider,
html body.page-characters-archive .page-list-intro::after {
    display: none !important;
}

html body.page-characters-archive .char-overview-divider {
    height: 0 !important;
    background: none !important;
    opacity: 1 !important;
    border: 0 !important;
}

:root body .page-list-intro::after,
:root body .page-stories-archive .page-list-intro::after {
    height: 0 !important;
    background: none !important;
    opacity: 1 !important;
    border: 0 !important;
}

/* vnitřní linky (karty, seznamy) */
html body.page-characters-archive .char-alpha-group__rule {
    height: 0 !important;
    background: none !important;
}

@media (max-width: 768px) {

:root body .story-filters--panel .story-filters__family:last-child {
        border-bottom: 0 !important;
        border-image: none !important;
    }
}

/* Okraj tahu pastelem jako 9-slice PNG (Safari + Chrome). Stejný tvar jako SVG maska,
   ale předkreslený, takže nezávisí na podpoře SVG filtrů v maskách. */
@supports (-webkit-mask-box-image: url("x.png") 1 fill) {
    .pastel-rough,
    .obrlobus-dash-card,
    .obrlobus-promo__viewport,
    .obrlobus-articles__media,
    .gallery-card__media,
    .auth-form__submit,
    .site-utility-auth-form__submit,
    .char-catalog .obr-card,
    .char-grid .obr-card,
    .character-detail-card,
    .character-detail-facts,
    .character-detail-intro,
    .story-reader-body .story-body,
    .author-page__portrait,
    .home-article-detail__figure,
    .gallery-overlay__figure,
    .list-chip,
    .obrlobus-section__more,
    .back-link,
    .char-catalog__arrow,
    .page-characters-archive .char-catalog__arrow,
    .obrlobus-promo__nav,
    .banner {
        -webkit-mask: none !important;
        mask: none !important;
    }

.site-utility-bar {
        -webkit-mask: none !important;
        mask: none !important;
    }

.site-footer {
        -webkit-mask: none !important;
        mask: none !important;
    }
    
}

/* ---------- Hlavička — blok s knoflíkem ----------
 * Hlavička si drží výšku rozbaleného panelu, takže obsah stránky začíná tam, kam se panel rozbalí
 * (nic se nepřekrývá). Zavřeno: knoflík uprostřed bloku. Otevřeno: knoflík vyjede nahoru
 * a pod ním se na místě objeví drobečky, vyhledávání a názvy stránek. Bez oddělovačů.
 * --header-dd-h = skutečná výška panelu (měří site-header.js), níže jen výchozí odhad.
 */

:root {
    --header-dd-h: 168px;
    --header-logo-row: calc(var(--topbar-height) + 20px);
    /* místo pod hlavičkou dělá sám blok hlavičky */
    --site-content-offset-desktop: 28px;
}

html body header.site-header {
    position: relative !important;
    top: auto !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* hlavička už nelepí → lepivé prvky pod ní začínají u horního okraje */
:root body {
    --site-header-height: 0px;
}

/* utility bar: odkazy vlevo, přepínač motivu uprostřed, účet vpravo */
.site-utility-bar__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

.site-utility-bar__center {
    display: flex;
    justify-content: center;
}

.site-utility-bar__right {
    justify-content: flex-end;
}

.site-topbar {
    height: calc(var(--header-logo-row) + var(--header-dd-h));
    min-height: 0 !important;
}

.site-topbar .nav-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-logo-row);
    min-height: 0;
    padding-top: 12px;
    box-sizing: border-box;
    justify-content: center;
    transform: translateY(calc(var(--header-dd-h) / 2));
    transition: transform 320ms var(--easing, ease);
}

.site-topbar:hover .nav-container,
.site-header.is-nav-open .site-topbar .nav-container,
.site-header.is-breadcrumb-open .site-topbar .nav-container,
.site-header:focus-within .site-topbar .nav-container {
    transform: none;
}

.site-topbar .logo-mark {
    width: 52px;
    height: 52px;
}

html body .site-topbar-dropdown {
    top: var(--header-logo-row) !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: translateY(-6px);
    transition:
        opacity 220ms ease,
        transform 320ms var(--easing, ease),
        visibility 0s linear 320ms !important;
}

.site-topbar:hover .site-topbar-dropdown,
.site-header.is-nav-open .site-topbar-dropdown,
.site-header.is-breadcrumb-open .site-topbar-dropdown,
.site-header:focus-within .site-topbar-dropdown {
    transform: none;
    transition-delay: 60ms, 0s, 0s !important;
}

html body .site-breadcrumb,
html body .site-topbar-search-strip,
html body .site-nav-mega {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

html body .site-nav-mega {
    max-height: none;
    overflow: visible;
}

html body .site-nav-mega__inner {
    padding: 0.6rem 0 1.1rem;
}

/* názvy stránek: hover / tap = o 5 % větší + podtržení tahem pastelu; aktuální stránka podtržená */
html body .site-nav-mega__heading {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    padding: 0.2em 0.15em 0.45em;
    font-family: var(--font-heading) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    transition: transform 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

html body .site-nav-mega__heading::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 0;
    height: 7px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
    pointer-events: none;
}

html body .site-nav-mega__heading:hover,
html body .site-nav-mega__heading:focus-visible,
html body .site-nav-mega__heading:active {
    transform: scale(1.05);
}

html body .site-nav-mega__heading:hover::after,
html body .site-nav-mega__heading:focus-visible::after,
html body .site-nav-mega__heading:active::after,
html body .site-nav-mega__heading.is-current::after {
    transform: scaleX(1);
}

/* vyhledávání: obrys jako nevybraný filtr (otřepená pilulka) */
html body .site-search {
    position: relative;
    z-index: 5;
    /* výsledky nad názvy stránek */
    isolation: isolate;
    height: 42px;
    padding: 0 1.1rem;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    -webkit-mask-box-image: none !important;
}

html body .site-search::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

html body .site-search:focus-within {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .site-search:focus-within::before {
    opacity: 1;
}

html body .site-search__input:focus {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

html body .site-search__input::-webkit-search-cancel-button {
    filter: grayscale(1);
    opacity: 0.6;
    cursor: pointer;
}

html body .site-search__icon {
    opacity: 0.75;
}

html body .site-search__input {
    background: transparent !important;
    font-size: 0.95rem !important;
}

html body .site-search__input::placeholder {
    opacity: 1;
}

/* výsledky: pastelový list pod polem (nesmí být uvnitř maskované plochy – maska by je ořízla) */
html body .site-search__results {
    top: calc(100% + 8px);
    padding: 6px 4px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 6px 14px rgba(20, 16, 12, 0.18));
}

html body .site-search__result {
    padding: 0.6rem 1rem;
    border-bottom: 0 !important;
    border-radius: 0;
}

html body .site-search__result-title {
    font-family: var(--font-heading);
    font-size: 1rem;
}

html body .site-search__empty {
    padding: 0.6rem 1rem;
}

@supports (-webkit-mask-box-image: url("x.png") 58 fill / 29px round) {
    html body .site-search::before {
        border: 0;
        border-radius: 0;
    }

html body .site-search__results {
        -webkit-mask: none !important;
        mask: none !important;
    }
    
}

@media (max-width: 768px) {
    :root {
        --header-logo-row: calc(var(--topbar-height) + 12px);
    }

    .site-topbar .nav-container {
        padding-top: 8px;
    }

    .site-topbar .logo-mark {
        width: 46px;
        height: 46px;
    }

    html body .site-nav-mega__inner {
        padding: 0.4rem 0 0.8rem;
    }

    html body .site-nav-mega__grid {
        flex-wrap: nowrap;
        gap: 0.5rem clamp(0.6rem, 3.5vw, 1.25rem) !important;
    }

    html body .site-nav-mega__heading {
        font-size: clamp(0.72rem, 3.3vw, 0.88rem) !important;
        letter-spacing: 0.03em !important;
    }

    .site-utility-bar__inner {
        column-gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-topbar .nav-container,
    html body .site-topbar-dropdown,
    html body .site-nav-mega__heading,
    html body .site-nav-mega__heading::after {
        transition: none !important;
    }
}

/* ---------- Formuláře, kontakt a Můj účet — sjednocení ----------
 * Formulář = pastelový list s nerovným okrajem (vrstva ::before, maska neořízne obsah).
 * Pole: jednotná světlá plocha (i textarea). Hlavní tlačítko = mosazná plocha jako „Pokračovat ve čtení“.
 * Záložky účtu = kulaté erodované pilulky jako filtry.
 */

html body .page-main .auth-form:not(.account-panel__form),
html body.page-account .account-panel:not(.account-reading-progress) {
    position: relative;
    isolation: isolate;
    border: 0 !important;
    border-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

html body .page-main .auth-form:not(.account-panel__form)::before,
html body.page-account .account-panel:not(.account-reading-progress)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

html body .page-main .auth-form.contact-form {
    width: min(100%, 34rem);
    padding: clamp(1.4rem, 3vw, 2rem) !important;
}

html body .page-main .auth-form input[type="email"],
html body .page-main .auth-form input[type="password"],
html body .page-main .auth-form input[type="text"],
html body .page-main .auth-form textarea,
html body .auth-form__input {
    box-shadow: none !important;
}

html body .page-main .auth-form input:focus,
html body .page-main .auth-form textarea:focus,
html body .auth-form__input:focus {
    outline: none !important;
}

html body .page-main .auth-form input:disabled {
    opacity: 0.7;
}

/* hlavní tlačítko formulářů a výzvy účtu */
html body .page-main .auth-form .auth-form__submit,
html body .page-main .auth-form button[type="submit"],
html body .account-panel__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.5em !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

html body .page-main .auth-form .auth-form__submit:hover,
html body .account-panel__cta:hover {
    filter: brightness(1.06);
}

html body .auth-form__hint {
    font-weight: 700;
}

/* Můj účet: stejné okraje a šířka jako ostatní stránky, obsah v čitelném sloupci vlevo */
html body.page-account .account-shell {
    width: 100%;
    max-width: var(--content-shell-max);
    margin-inline: auto;
    padding-inline: var(--page-gutter-left) var(--page-gutter-right);
    box-sizing: border-box;
}

html body.page-account .account-shell > .page-heading {
    padding-inline: 0 !important;
}

html body.page-account .account-shell > :not(.page-heading) {
    max-width: 52rem;
}

html body.page-account .account-panel:not(.account-reading-progress) {
    padding: clamp(1.4rem, 3vw, 2rem) !important;
}

html body.page-account .account-panel.account-reading-progress {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.account-panel__title {
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
}

/* záložky účtu = pilulky */
html body .account-nav__list {
    gap: 0.6rem;
}

html body .account-nav__link {
    position: relative;
    isolation: isolate;
    padding: 0.5em 1.2em !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.95rem !important;
}

html body .account-nav__link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.8;
}

html body .account-nav__link.is-active {
    font-weight: 600 !important;
}

html body .account-nav__link.is-active::before {
    border: 0;
    opacity: 1;
}

/* Rozečtené: nadpisy sekcí s tahem, karty jako v archivu příběhů */
html body .account-reading-section__title {
    font-weight: 600 !important;
}

html body .account-reading-section__head::after {
    height: 0 !important;
    background: none !important;
}

html body .account-reading-progress__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body .account-reading-progress__card {
    position: relative;
    isolation: isolate;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-bottom: 0.4rem;
}

html body .account-reading-progress__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

html body .account-reading-progress__link {
    gap: 1.1rem !important;
    padding: 1.1rem 1.2rem 0.7rem !important;
}

html body .account-reading-progress__media {
    flex: 0 0 4.5rem !important;
    width: 4.5rem !important;
}

html body .account-reading-progress__thumb {
    aspect-ratio: 3 / 4;
    height: auto !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

html body .account-reading-progress__title {
    font-family: var(--font-heading) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

html body .account-reading-progress__chapter {
    font-weight: 700;
    font-size: 0.85rem;
}

html body .account-reading-progress__progress {
    width: auto !important;
    height: 8px !important;
    margin: 0.2rem 1.2rem 0.6rem calc(1.2rem + 4.5rem + 1.1rem) !important;
    max-width: 24rem;
}

html body .account-reading-progress__actions {
    top: 0.9rem !important;
    right: 0.9rem !important;
}

html body .account-reading-progress__mark-read,
html body .account-reading-progress__mark-in-progress {
    position: relative;
    isolation: isolate;
    padding: 0.35em 0.95em !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
}

html body .account-reading-progress__mark-read::before,
html body .account-reading-progress__mark-in-progress::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.75;
}

@supports (-webkit-mask-box-image: url("x.png") 58 fill / 29px round) {
    html body .account-nav__link::before,
    html body .account-reading-progress__mark-read::before,
    html body .account-reading-progress__mark-in-progress::before {
        border: 0;
        border-radius: 0;
    }

html body .page-main .auth-form:not(.account-panel__form)::before,
    html body.page-account .account-panel:not(.account-reading-progress)::before,
    html body .account-reading-progress__card::before,
    html body .account-reading-progress__thumb,
    html body .page-main .auth-form .auth-form__submit,
    html body .page-main .auth-form button[type="submit"],
    html body .account-panel__cta {
        -webkit-mask: none !important;
        mask: none !important;
    }

}

@media (max-width: 560px) {
    html body .account-reading-progress__progress {
        margin-left: 1.2rem !important;
    }
}

/* ---------- Velikost písma podle systému ----------
 * Všechny velikosti jsou v rem → řídí se nastavením prohlížeče / systému (Android, desktop).
 * iPhone / iPad: -apple-system-body převezme velikost z Nastavení → Zobrazení → Velikost textu
 * (Dynamic Type; výchozí 17 px). Jen na dotykových zařízeních – macOS Safari by dal 13 px.
 */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@supports (font: -apple-system-body) {
    @media (hover: none) and (pointer: coarse) {
        html {
            font: -apple-system-body;
        }
    }
}

/* Úvodní stránka: „Celá galerie“ = kulaté tlačítko s ikonou (jako rodiny filtrů na Postavách) */
html body .obrlobus-section__more.obrlobus-section__more--icon {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    -webkit-mask-box-image: none !important;
}

html body .obrlobus-section__more--icon::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

html body .obrlobus-section__more--icon:hover::before,
html body .obrlobus-section__more--icon:focus-visible::before {
    border: 0;
    opacity: 1;
}

@supports (-webkit-mask-box-image: url("x.png") 58 fill / 29px round) {
    html body .obrlobus-section__more--icon::before {
        border: 0;
        border-radius: 0;
    }

}

/* ---------- Úpravy 30. 9.: hlavička, Můj účet ---------- */

/* drobečková navigace uprostřed hlavičky */
html body .site-breadcrumb__list {
    justify-content: center;
}

html body .site-breadcrumb__item {
    flex: 0 1 auto !important;
}

/* Můj účet: obsah ve sloupci uprostřed stránky */
html body.page-account .account-shell > :not(.page-heading) {
    margin-inline: auto;
}

html body.page-account .account-shell > .page-heading {
    text-align: center;
}

html body.page-account .account-shell > .page-heading::after {
    margin-inline: auto !important;
}

html body.page-account .account-nav__list {
    justify-content: center;
}

html body .account-reading-section__title {
    text-align: center;
}

/* karta rozečteného příběhu: záložky pod ikonou vpravo nahoře, akce dole */
html body .account-reading-progress__card:has(.js-story-marks.is-open) {
    z-index: 20;
}

html body .account-reading-progress__tools {
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    z-index: 3;
}

/* přehled značek zarovnaný k pravému okraji karty (i na mobilu) */
html body .account-reading-progress__tools .story-row__marks {
    position: relative;
}

html body .account-reading-progress__tools .story-row__marks-panel {
    top: calc(100% + 0.5rem);
    left: auto;
    right: -0.4rem;
    width: min(22rem, calc(100vw - 2.5rem));
}

html body .account-reading-progress__card:has(.account-reading-progress__tools) .account-reading-progress__link {
    padding-right: 4rem !important;
}

html body .account-reading-progress__actions {
    position: static !important;
    display: flex;
    justify-content: flex-end;
    max-width: none !important;
    padding: 0 1.2rem 0.9rem;
}

html body .account-reading-progress__meta {
    font-family: var(--font-body);
    font-size: 0.85rem;
}

html body .account-reading-progress__date {
    display: none;
}

/* ---------- Mobil: užší postranní okraje (30. 9.) ----------
 * Dřív: obal obsahu = šířka okna − 2× okraj A K TOMU vnitřní okraj → text ~33 px od kraje.
 * Teď: na mobilu obal přes celou šířku, zůstává jen jeden okraj (~16 px) = o polovinu užší.
 */
@media (max-width: 768px) {
    :root {
        --layout-inline: 100%;
    }

    /* Můj účet měl okraj dvakrát (stránka + obal účtu) */
    html body.page-account .account-shell {
        padding-inline: 0;
    }
}

/* ---------- GLOBÁLNÍ PRAVIDLO: kulaté rámečky ikon mají erodovaný okraj ----------
 * Každé kulaté ikonové tlačítko (sdílení, kopírování, listování…) dostane třídu .pastel-ring:
 * rámeček na ::before = otřepený obrys pastelem (9-slice pill-line, střídá a/b); po najetí,
 * při fokusu a v aktivním stavu (.is-active / .is-done) se podbarví celá ikona tyrkysovou
 * pastelovou výplní (pill-fill). Firefox: obyčejný kruh.
 */
html body .pastel-ring {
    position: relative;
    isolation: isolate;
}

html body .pastel-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.75;
}

html body .pastel-ring:hover:not(:disabled)::before,
html body .pastel-ring:focus-visible::before,
html body .pastel-ring.is-active::before,
html body .pastel-ring.is-done::before {
    border: 0;
    opacity: 1;
}

@supports (-webkit-mask-box-image: url("x.png") 58 fill / 29px round) {
    html body .pastel-ring::before {
        border: 0;
        border-radius: 0;
    }

}

/* ---------- Menu „Můj účet“ (Čtenářský deník / Nastavení / Odhlásit se) ---------- */
html body .site-utility-account--menu .site-utility-account__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

html body .site-account-menu__chevron {
    width: 0.8rem;
    height: 0.8rem;
    transition: transform 0.15s ease;
}

html body .site-utility-account__trigger.is-open .site-account-menu__chevron {
    transform: rotate(180deg);
}

html body .site-account-menu {
    position: absolute;
    z-index: 60;
    display: flex;
    flex-direction: column;
    min-width: 13.5rem;
    padding: 0.55rem;
    isolation: isolate;
}

html body .site-account-menu[hidden] {
    display: none;
}

html body .site-account-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

html body .site-account-menu__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
}

html body .site-account-menu__link svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

html body .site-account-menu__link:hover,
html body .site-account-menu__link:focus-visible {
    outline: none;
}

html body .site-account-menu__link--logout {
    margin-top: 0.25rem;
    border-top: 0;
}

/* ---------- Postavy: „Netrpělivost“ – odhalování postav až v příběhu ---------- */
html body.page-characters-archive .char-alpha-index__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

html body.page-characters-archive .char-reveal-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    margin-top: 0.3rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

html body.page-characters-archive .char-reveal-note {
    margin: -0.8rem 0 1.4rem;
    font-size: 0.95rem;
}

html body.page-characters-archive .char-reveal-note button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* skryté (nepotkané) položky přehledu a prázdná písmena */
html body.page-characters-archive .char-alpha-group__item.is-unmet-hidden,
html body.page-characters-archive .char-alpha-group.is-unmet-empty {
    display: none !important;
}

/* nepotkaná postava v karuselu = silueta s otazníkem */
html body.page-characters-archive .obr-card.is-unmet .card-image {
    filter: brightness(0) !important;
    opacity: 0.22;
}

html body.page-characters-archive .obr-card.is-unmet .nature-tag,
html body.page-characters-archive .obr-card.is-unmet .card-occupation,
html body.page-characters-archive .obr-card.is-unmet .card-character-title,
html body.page-characters-archive .obr-card.is-unmet .card-description,
html body.page-characters-archive .obr-card.is-unmet .card-subtitle {
    visibility: hidden;
}

html body.page-characters-archive .obr-card.is-unmet::after {
    content: "?";
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    pointer-events: none;
}

/* dialog Netrpělivost */
html body .char-reveal-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    width: min(28rem, calc(100vw - 2rem));
    padding: 0;
    border: 0;
    background: transparent;
}

html body .char-reveal-dialog__form {
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: 1.6rem 1.5rem 1.4rem;
}

html body .char-reveal-dialog__form::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

html body .char-reveal-dialog__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

html body .char-reveal-dialog__lead {
    margin: 0 0 1rem;
    line-height: 1.5;
}

html body .char-reveal-dialog__option {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.7rem 0.8rem;
    cursor: pointer;
}

html body .char-reveal-dialog__option input {
    margin-top: 0.25rem;
}

html body .char-reveal-dialog__option strong {
    display: block;
}

html body .char-reveal-dialog__option small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.88rem;
}

html body .char-reveal-dialog__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* ---------- Hlášky formulářů (uloženo / chyba / info) = pastelový lísteček ----------
 * Plocha barvou pastelu se zrnem a otřepeným okrajem (maska na ::after, text zůstává ostrý),
 * vlevo ikona. Úspěch tyrkys, chyba rtěnka, informace smetana. Platí pro všechny formuláře webu.
 */
html body .auth-form-message {
    position: relative;
    isolation: isolate;
    display: block;
    box-sizing: border-box;
    margin-bottom: 1.2rem !important;
    padding: 0.9rem 1.2rem 0.9rem 3rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

html body .auth-form-message::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

html body .auth-form-message::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 50%;
    width: 1.25rem;
    height: 1.25rem;
    transform: translateY(-50%);
}

/* Stránka nenalezena – i vypnutá stránka webu (includes/site_sections.php) */
.site-section-off {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(64px, 14vh, 140px) 20px;
    text-align: center;
}

.site-section-off h1 {
    font-family: var(--font-heading);
    margin: 0 0 16px;
}
.site-section-off p {
    margin: 0 0 12px;
}

/* ---------- Telefon: menu pod knoflíkem = boční panel zprava (8. 10. 2026) ----------
 * Dřív se na telefonu rozbalil řádek pod knoflíkem a při mnoha stránkách názvy přetékaly z obrazovky.
 * Teď klepnutí na knoflík (site-header.js, jen do 768 px) knoflík odsune doleva a zprava vysune panel:
 * cesta (Rozcestník › stránka), vyhledávání, stránky pod sebou. Hlavička si už nedrží výšku panelu.
 * Rozložení platí pro oba vzhledy; plochu panelu kreslí každý vzhled sám (pastel níže, Příchod v prichod.css).
 */
@media (max-width: 768px) {
    html body .site-header {
        --header-dd-h: 0px !important;
        --nav-panel-bleed: 160px;    }

    /* knoflík: bez rozbalování najetím; otevřený panel ho odsune k levému okraji */
    html body .site-header .site-topbar .nav-container,
    html body .site-header .site-topbar:hover .nav-container,
    html body .site-header:focus-within .site-topbar .nav-container {
        transform: none;
        transition: translate 320ms var(--easing, ease);
    }

    html body .site-header.is-nav-open .site-topbar .nav-container {
        translate: calc(-50vw + 2.4rem + env(safe-area-inset-left, 0px)) 0;
    }

    /* otevřený panel (je uvnitř .site-topbar) nad lištou Autor / Kontakt */
    html body .site-header.is-nav-open .site-topbar {
        z-index: 5;
    }

    html body .site-header .site-topbar-dropdown,
    html body .site-header .site-topbar:hover .site-topbar-dropdown,
    html body .site-header:focus-within .site-topbar-dropdown {
        position: fixed !important;
        top: calc(-1 * var(--nav-panel-bleed)) !important;
        bottom: calc(-1 * var(--nav-panel-bleed)) !important;
        left: auto !important;
        right: 0 !important;
        z-index: 3000;
        display: flex !important;
        flex-direction: column;
        gap: 1.1rem;
        width: min(86vw, 22rem) !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: calc(var(--nav-panel-bleed) + env(safe-area-inset-top, 0px) + 1.25rem) 1.25rem calc(var(--nav-panel-bleed) + 2rem) !important;
        box-sizing: border-box;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        opacity: 1 !important;
        visibility: hidden !important;
        pointer-events: none;
        transform: translateX(105%) !important;
        transition: transform 320ms var(--easing, ease), visibility 0s linear 320ms !important;
    }

    /* otevřený panel musí přebít i „najetí“ (:hover zůstane po klepnutí prstem na knoflík) */
    html body .site-header.is-nav-open .site-topbar .site-topbar-dropdown,
    html body .site-header.is-nav-open .site-topbar:hover .site-topbar-dropdown {
        visibility: visible !important;
        pointer-events: auto;
        transform: none !important;
        transition: transform 320ms var(--easing, ease), visibility 0s !important;
    }

    /* Plochu panelu nese vnitřní vrstva ::before (barvu dává každý vzhled): Safari na iOS 26 dělá z pevného
       prvku u okraje s vlastním pozadím / backdrop-filter plnou barvu lišt – i u zavřeného panelu. */
    html body .site-header .site-topbar-dropdown {
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    /* vysoká vrstva: při posouvání obsahu panelu (malý telefon) jede s obsahem, panel ji ořízne na svůj tvar */
    html body .site-header .site-topbar-dropdown::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 300%;
        z-index: -1;
        pointer-events: none;
    }

    html body .site-header .site-topbar-dropdown > * {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* drobečková navigace (Rozcestník / …) v bočním panelu není potřeba (Jakub 10. 10.); vyhledávání je pak první
       a site-header.js ho při otevření posune do výšky knoflíku (--nav-search-top) */
    html body .site-header .site-topbar-dropdown > .site-breadcrumb {
        display: none !important;
    }

    /* věci čtenáře dole v panelu (margin-top: auto = k dolnímu okraji, panel je sloupec přes celou výšku):
       sekce deníku a Nastavení, úplně dole dvojice tlačítek (Jakub 12. 10.) */
    html body .site-header .site-topbar-dropdown > .site-nav-account {
        display: flex !important;
        flex-direction: column;
        gap: 0.4rem;
        margin-top: auto !important;
        padding-top: 1rem !important;
        border-top: 1px solid var(--border-soft);
    }

    html body .site-nav-account__title {
        margin: 0 0 0.2rem;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        opacity: 0.7;
    }

    html body .site-nav-account__list {
        display: grid;
        margin: 0 0 0.9rem;
        padding: 0;
        list-style: none;
    }

    html body .site-nav-account__item {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.55rem 0;
        color: inherit !important;
        font-size: 1rem;
        text-decoration: none;
    }

    /* Můj účet = hlavní zelené tlačítko (Jakub 12. 10.) */
    html body .site-nav-account__link.site-nav-account__link--primary {
        border-color: transparent;
        background: var(--pr-btn, #2a553e);
        color: var(--pr-btn-ink, #f2f4f5) !important;
        font-weight: 600;
    }

    /* Můj účet | Odhlásit (Přihlásit se | Registrace): dvojice vedle sebe – vnější rohy plně zaoblené, vnitřní ostřejší */
    html body .site-nav-account__pair {
        display: flex;
        gap: var(--pr-stack-gap, 4px);
    }

    html body .site-nav-account__pair .site-nav-account__link:first-child {
        border-radius: 999px var(--pr-stack-inner, 6px) var(--pr-stack-inner, 6px) 999px;
    }

    html body .site-nav-account__pair .site-nav-account__link:last-child {
        border-radius: var(--pr-stack-inner, 6px) 999px 999px var(--pr-stack-inner, 6px);
    }

    html body .site-nav-account__link {
        display: flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-width: 0;
        min-height: 2.75rem;
        padding: 0 0.9rem;
        border: 1px solid currentColor;
        background: none;
        color: inherit !important; /* odkaz i tlačítko stejnou barvou (jinak odkaz zelený jako ostatní odkazy) */
        font: inherit;
        white-space: nowrap;
        text-decoration: none;
        cursor: pointer;
        background: transparent;
        color: inherit;
        font: inherit;
        font-size: 0.95rem;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    html body .site-header .site-topbar-dropdown,
    html body .site-header .site-topbar:hover .site-topbar-dropdown,
    html body .site-header:focus-within .site-topbar-dropdown {
        padding-top: calc(var(--nav-panel-bleed) + var(--nav-search-top, env(safe-area-inset-top, 0px) + 1.25rem)) !important;
        /* dole účet: nad spodní lištou / proužkem iPhonu */
        padding-bottom: calc(var(--nav-panel-bleed) + 1.5rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    html body .site-header .site-topbar-search-strip__inner {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    /* stránky pod sebou, celé názvy, dostatečně velké pro prst */
    html body .site-nav-mega__inner {
        padding: 0;
    }

    html body .site-nav-mega__grid {
        display: flex !important;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0 !important;
    }

    html body .site-nav-mega__column {
        width: 100%;
    }

    html body .site-nav-mega__heading {
        display: flex;
        align-items: center;
        min-height: 3rem;
        padding: 0.35rem 0.1rem !important;
        font-size: 1.05rem !important;
        letter-spacing: 0.04em !important;
        white-space: normal;
    }

    html body .site-nav-mega__heading:hover,
    html body .site-nav-mega__heading:focus-visible,
    html body .site-nav-mega__heading:active {
        transform: none;
    }

    /* ztmavení stránky za panelem (prvek vkládá site-header.js) – pod hlavičkou (z-index 100),
       takže knoflík, lišta i panel zůstávají světlé. Zavřené = display: none (skrytá pevná vrstva s pozadím
       by Safari na iOS 26 barvila lišty i při opacity 0). */
    .site-nav-backdrop {
        display: none;
        position: fixed;
        inset: calc(-1 * 160px) 0;
        z-index: 99;
        background: rgba(12, 14, 20, 0.42);
    }

    .site-nav-backdrop.is-visible {
        display: block;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    html body .site-header .site-topbar .nav-container,
    html body .site-header .site-topbar-dropdown,
    .site-nav-backdrop {
        transition: none !important;
    }
}

/* ---------- Textové odstavce a náhledy dlaždic na telefonu (Jakub 10. 10.) – oba vzhledy ----------
   Do bloku, poslední řádek vlevo, české dělení slov (lang="cs" na <html>); nezlomitelné mezery dává server celé
   stránce (includes/czech_typography.php, ob_start v bootstrap.php). Dělení: slovo aspoň 6 znaků, na řádku zůstanou
   aspoň 2 a 3 znaky, nejvýš 2 rozdělené řádky pod sebou.
   Odstavce obecně: pravidlo bez síly (:where) – prvky s vlastním zarovnáním (vystředěné nadpisy, poznámky) si ho
   nechají. Čtečka má vlastní nastavení sazby (Nastavení → Čtečka), proto je vynechaná. */
@media (max-width: 768px) {
    :where(body:not(.story-reader-body) main) :where(
        p:not([class])
    ) {
        text-align: justify;
        text-align-last: left;
        -webkit-hyphens: auto;
        hyphens: auto;
        -webkit-hyphenate-limit-before: 2;
        -webkit-hyphenate-limit-after: 3;
        hyphenate-limit-chars: 6 2 3;
        -webkit-hyphenate-limit-lines: 2;
        hyphenate-limit-lines: 2;
    }

    /* textové bloky webu (mají vlastní zarovnání vlevo, proto plná síla) a náhledy dlaždic */
    html body :is(
        .page-prose,
        .page-list-intro,
        .character-detail-bio-content,
        .pr-hero__lead,
        .story-row__annotation,
        .obrlobus-articles__excerpt,
        .obrlobus-articles__excerpt p,
        .card-description,
        .obrlobus-char-marquee-card__quote
    ) {
        text-align: justify !important; /* starší pravidla výpisů drží úvod vlevo silnějším selektorem */
        text-align-last: left !important;
        -webkit-hyphens: auto;
        hyphens: auto;
        -webkit-hyphenate-limit-before: 2;
        -webkit-hyphenate-limit-after: 3;
        hyphenate-limit-chars: 6 2 3;
        -webkit-hyphenate-limit-lines: 2;
        hyphenate-limit-lines: 2;
    }
}

/* proklik na účet je jen v bočním panelu na telefonu (header.php) */
.site-nav-account {
    display: none;
}

/* hamburger v horní liště jen na telefonu; tam místo něj zmizí ikona účtu (účet je dole v bočním panelu) */
html body .site-nav-burger {
    display: none !important;
}

@media (max-width: 768px) {
    html body .site-nav-burger {
        display: inline-flex !important;
        justify-content: flex-end;
        min-width: 2.25rem;
        min-height: 2.25rem;
    }

    html body .site-nav-burger .site-utility-bar__icon {
        width: 1.35rem;
        height: 1.35rem;
    }

    html body .site-utility-bar__right .site-utility-account {
        display: none !important;
    }
}

/* Počítač (Jakub 10. 10.): rozcestník, vyhledávání a menu pod knoflíkem trvale viditelné, bez animace knoflíku;
   výšku pro blok lišta rezervuje vždy (.site-topbar: řádek knoflíku + --header-dd-h). Telefon: boční panel beze změny. */
@media (min-width: 769px) {
    html body .site-topbar .nav-container {
        transform: none !important;
        transition: none !important;
    }

    html body .site-topbar-dropdown {
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Lícování (Jakub 10. 10.): horní lišta (Autor … Můj účet) má stejný obal a okraje jako obsah stránky – první
   a poslední položka začínají / končí na hraně obsahu (dřív vlastní šířka 92 % / 1400 px a jiné odsazení).
   Pravidlo pro web: obsah i pruhy přes celou šířku drží hranu --content-shell-max + --page-gutter-left/right. */
html body .site-utility-bar__inner {
    width: 100% !important;
    max-width: var(--content-shell-max) !important;
    margin-inline: auto !important;
    padding-inline: var(--page-gutter-left) var(--page-gutter-right) !important;
    box-sizing: border-box !important;
}

/* Šířka webu (Jakub 10. 10.): na počítači a tabletu drží obsah šířku horní lišty (92 % okna, nejvýš 1400 px) –
   lišta i obsah berou stejný obal, takže lícují. Telefon (≤ 768 px) beze změny: okraje 16 px (30. 9.). */
@media (min-width: 769px) {
    :root {
        --content-shell-max: min(1400px, 92vw);
    }
}

/* ikona účtu vpravo: kresba na hraně obsahu (plocha pro klepnutí zůstává, roste doleva) */
html body .site-utility-bar__right .site-utility-bar__action--icon {
    justify-content: flex-end !important;
}

/* Drobečková navigace: položky ořezávají přesah (zkrácení „…“) a měly výšku řádku = velikost písma → háčky a čárky
   nad velkými písmeny se ořízly („CTENARSKY DENIK“). Vyšší řádek, záporný okraj drží výšku lišty. */
html body :is(.site-breadcrumb__link, .site-breadcrumb__current) {
    line-height: 1.6 !important;
    margin-block: -0.3em;
}
