/* Canonical Kalinka skeleton; art direction: Щурче (shturche). */
body[data-theme="shturche"] {
    /* Мостът към настройките: всяка стойност идва от админ токен, а темата само я
       превежда на своя език. Смени ли собственикът основния цвят, „Щурче“ го
       следва, без да губи характера си. */
    --shturche-cream: var(--canvas);
    --shturche-surface: var(--surface);
    --shturche-green: var(--secondary);
    --shturche-green-deep: color-mix(in srgb, var(--secondary) 74%, #08150d);
    --shturche-green-soft: color-mix(in srgb, var(--secondary) 14%, var(--canvas));
    --shturche-red: var(--primary);
    --shturche-red-ink: var(--on-primary);
    --shturche-yellow: var(--accent);
    --shturche-yellow-ink: var(--on-accent);
    --shturche-ink: var(--text);
    --shturche-muted: var(--muted);
    --shturche-border: var(--border);
    --shturche-shadow: 0 1.15rem 2.6rem color-mix(in srgb, var(--secondary) 26%, transparent);
    --shturche-panel-radius: 1.9rem;
    /* The body owns only the fallback colour. Щурче's artwork lives in the
       shared fixed atmosphere layer so scrolling never stretches the painting. */
    background-color: var(--shturche-cream);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Separate canonical compositions: a landscape painting for desktop and a
   portrait painting for phones. There is no wash, blur or translucent veil. */
body[data-theme="shturche"][data-background="theme"] .theme-atmosphere {
    display: block;
    /* The shared layer defaults to z-index:-2. With a painted body canvas that
       puts the artwork behind the page itself. Щурче keeps the layer inside
       the page stack; header/main/footer are explicitly at z-index:1 below. */
    z-index: 0;
    background: var(--shturche-cream);
}

body[data-theme="shturche"][data-background="theme"] .theme-atmosphere__wash {
    display: none;
}

body[data-theme="shturche"][data-background="theme"] .theme-atmosphere__art {
    /* shturche-v1.css intentionally hid the legacy artwork. The canonical pack
       owns this layer now, so explicitly restore it without an !important war. */
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("shturche_d.webp?v=a244abfdbc42bef7");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    opacity: 1;
    mask-image: none;
}

/* A library background is emitted onto the body by theme-backgrounds.css.
   Hide only Щурче's own painting in that case; the saved choice remains real. */
body[data-theme="shturche"]:not([data-background="theme"]) .theme-atmosphere {
    display: none;
}

@media (max-width: 48rem) {
    body[data-theme="shturche"][data-background="theme"] .theme-atmosphere__art {
        background-image: url("shturche_m.webp?v=41a4f7c829e269b9");
        background-position: center top;
    }
}

body[data-theme="shturche"] main,
body[data-theme="shturche"] .site-header,
body[data-theme="shturche"] .site-footer {
    position: relative;
    z-index: 1;
}

body[data-theme="shturche"] .shturche-home {
    color: var(--shturche-ink);
    /* Ъгловите цветя нарочно стърчат извън разделите; отрязваме ги тук, за да не
       разширяват страницата и да не се появява хоризонтално превъртане. */
    overflow: clip;
}

/* ------------------------------ Заглавна лента ---------------------------- */
/* Заглавието тече със страницата като в одобрения дизайн — никаква лепкава
   лента, никакво крем-було: знакът и менюто стоят направо върху градината. */
body[data-theme="shturche"] .shturche-header {
    z-index: 40;
    position: relative;
    padding: .7rem 0 .45rem;
    background: transparent;
}

/* Заглавната лента живее направо върху градината, както в одобрения дизайн:
   никаква бяла плоча, никаква сянка — само знак и навигация върху сцената.
   (Панелна повърхност се появява само ако собственикът зададе цвят на менюто.) */
body[data-theme="shturche"] .shturche-header__shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 4.1rem;
    padding: .45rem .3rem;
    border: 0;
    border-radius: 1.1rem;
    background: var(--menu-surface, transparent);
    box-shadow: none;
}

/* Знакът виси на флаг, спуснат от горния ръб: плътна светла плоскост със
   златна ивица и остър долен край. Логото стои върху нея — чете се без ореоли
   и сенки, каквото и да минава отзад. */
/* Марката виси на табелка от градината: дъсчица на два канапа, с листна клонка
   и калинка — не на хералдически флаг. Рисунката стои до този файл. */
body[data-theme="shturche"] .shturche-brand {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    /* Логото стои самò: без табелка отзад, без рамка и без фон. Редът се
       определя от височината на самото лого. */
    padding: .2rem .3rem;
    text-decoration: none;
    transition: translate .2s ease;
}

body[data-theme="shturche"] .shturche-brand:hover,
body[data-theme="shturche"] .shturche-brand:focus-visible {
    translate: 0 .12rem;
}

body[data-theme="shturche"] .shturche-brand__logo {
    /* Височината води реда: широко лого-надпис и квадратно лого-значка заемат
       еднаква височина, а ширината следва собствената им пропорция. */
    width: auto;
    height: clamp(3.4rem, 5.2vw, 5.4rem);
    max-width: min(22rem, 32vw);
    object-fit: contain;
}

body[data-theme="shturche"] .shturche-brand__mark {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 58% 42% 50% 50% / 48% 58% 42% 52%;
    background: var(--shturche-red);
}

body[data-theme="shturche"] .shturche-brand__words {
    min-width: 0;
    max-width: 16rem;
}

body[data-theme="shturche"] .shturche-brand__words strong,
body[data-theme="shturche"] .shturche-brand__words small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-theme="shturche"] .shturche-nav {
    /* Центрирането караше списъка да излиза извън колоната си и да ляга върху
       логото. Разпънат по колоната, той започва след логото и тече надясно. */
    justify-self: stretch;
    min-width: 0;
    max-width: 100%;
    background: transparent;
}

body[data-theme="shturche"] .shturche-nav__list {
    align-items: center;
    justify-content: flex-end;
    /* Единадесет раздела трябва да се поберат, без да застъпват логото:
       листчетата се свиват, вместо списъкът да излезе извън колоната си. */
    flex-wrap: nowrap;
    min-width: 0;
    gap: .3rem;
}

body[data-theme="shturche"] .shturche-nav__link,
body[data-theme="shturche"] .shturche-nav__disclosure {
    min-height: 2.45rem;
    padding-inline: clamp(.6rem, .9vw, 1.05rem);
    border: 0;
    border-radius: .7rem;
    background: var(--shturche-surface);
    box-shadow: 0 .2rem .55rem rgb(31 70 43 / .16);
    color: var(--shturche-green-deep);
    font-size: clamp(.83rem, .9vw, .94rem);
    font-weight: 800;
    white-space: nowrap;
}

/* Падащите елементи са ЕДИН бутон: групата носи повърхността, а линкът и
   стрелката вътре са прозрачни — никакво разделяне на две хапчета. */
body[data-theme="shturche"] .shturche-nav-group {
    border-radius: .7rem;
    background: var(--shturche-surface);
    box-shadow: 0 .2rem .55rem rgb(31 70 43 / .16);
}

body[data-theme="shturche"] .shturche-nav-group .shturche-nav__link,
body[data-theme="shturche"] .shturche-nav-group .shturche-nav__disclosure {
    background: transparent;
    box-shadow: none;
}

body[data-theme="shturche"] .shturche-nav-group .shturche-nav__link {
    padding-right: .15rem;
}

body[data-theme="shturche"] .shturche-nav-group .shturche-nav__disclosure {
    min-height: 2.45rem;
    padding-inline: .3rem .65rem;
}

body[data-theme="shturche"] .shturche-nav__item.is-current-trail > a,
body[data-theme="shturche"] .shturche-nav__item.is-current-trail .shturche-nav-group,
body[data-theme="shturche"] .shturche-nav__item.is-current-trail .shturche-nav__link,
body[data-theme="shturche"] .shturche-nav__item.is-current-trail .shturche-nav__disclosure {
    color: var(--on-primary);
    background: var(--shturche-green);
}

body[data-theme="shturche"] .shturche-nav__item.is-current-trail .shturche-nav-group .shturche-nav__link,
body[data-theme="shturche"] .shturche-nav__item.is-current-trail .shturche-nav-group .shturche-nav__disclosure {
    background: transparent;
}

body[data-theme="shturche"] .shturche-nav-group {
    display: inline-flex;
    align-items: center;
    position: relative;
}

body[data-theme="shturche"] .shturche-nav__submenu {
    min-width: 17rem;
    padding: .65rem;
    border: .1rem solid var(--shturche-border);
    border-radius: 1.35rem;
    background: var(--shturche-surface);
    box-shadow: var(--shturche-shadow);
}

body[data-theme="shturche"] .shturche-nav__submenu a {
    border-radius: .7rem;
    color: var(--shturche-green-deep);
    font-weight: 750;
}

/* Задържане/фокус в подменюто: светла зелена подложка с тъмен текст — никога
   тъмно върху тъмно. Текущата страница е плътно зелено с БЯЛ текст. */
body[data-theme="shturche"] .shturche-nav__submenu a:hover,
body[data-theme="shturche"] .shturche-nav__submenu a:focus-visible {
    background: color-mix(in srgb, var(--shturche-green) 14%, #fff);
    color: var(--shturche-green-deep);
}

body[data-theme="shturche"] .shturche-nav__submenu a[aria-current="page"] {
    background: var(--shturche-green);
    color: var(--on-primary);
}

body[data-theme="shturche"] .shturche-header__actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

body[data-theme="shturche"] .shturche-nav-toggle {
    flex: 0 0 auto;
}

/* --------------------------------- Слайдер --------------------------------
   Един широк заоблен кадър по одобрения дизайн. Слайд с текст: панел с меко
   кремаво прехождане отляво върху снимката. Слайд без текст: снимката изцяло. */
body[data-theme="shturche"] .shturche-hero {
    position: relative;
    padding: clamp(.5rem, 1.2vw, 1rem) 0 clamp(2.4rem, 4.2vw, 3.8rem);
    isolation: isolate;
}

body[data-theme="shturche"] .shturche-hero__frame {
    position: relative;
    overflow: hidden;
    height: clamp(21rem, 38vw, 31rem);
    border: .4rem solid #fff;
    border-radius: clamp(1.4rem, 2.6vw, 2.4rem);
    background: var(--shturche-surface);
    box-shadow: 0 1.6rem 3.4rem rgb(31 70 43 / .24);
}

body[data-theme="shturche"] .shturche-hero__slides,
body[data-theme="shturche"] .shturche-hero-slide {
    position: absolute;
    inset: 0;
}

body[data-theme="shturche"] .shturche-hero-slide[hidden] {
    display: none;
}

body[data-theme="shturche"] .shturche-hero-slide__media {
    position: absolute;
    inset: 0;
}

body[data-theme="shturche"] .shturche-hero-slide__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

body[data-theme="shturche"] .shturche-hero-slide__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-theme="shturche"] .shturche-hero-slide__panel {
    position: absolute;
    z-index: 2;
    inset: clamp(1rem, 2vw, 1.7rem) auto clamp(1rem, 2vw, 1.7rem) clamp(1rem, 2vw, 1.7rem);
    display: grid;
    align-content: center;
    width: min(29rem, 54%);
    padding: clamp(1.2rem, 3vw, 2.6rem) clamp(1.1rem, 2.6vw, 2.4rem);
    border-radius: 1.5rem;
    background: var(--shturche-surface);
    box-shadow: 0 .9rem 2rem rgb(31 70 43 / .2);
}

body[data-theme="shturche"] .shturche-hero-slide__panel :is(h2, h3) {
    margin: 0 0 .55rem;
    color: var(--shturche-green-deep);
    font-size: clamp(1.55rem, 3vw, 2.7rem);
    line-height: 1.02;
    letter-spacing: -.04em;
}

body[data-theme="shturche"] .shturche-hero-slide__panel p:not(.shturche-eyebrow) {
    margin: 0;
    max-width: 26rem;
    color: var(--shturche-ink);
    font-size: clamp(.95rem, 1.25vw, 1.12rem);
    line-height: 1.5;
}

body[data-theme="shturche"] .shturche-hero-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.1rem;
}

body[data-theme="shturche"] .shturche-hero__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 50%;
    color: var(--shturche-green-deep);
    background: var(--shturche-surface);
    box-shadow: 0 .55rem 1.3rem rgb(31 70 43 / .28);
    cursor: pointer;
}

body[data-theme="shturche"] .shturche-hero__arrow svg {
    width: 1.35rem;
    height: 1.35rem;
}

body[data-theme="shturche"] .shturche-hero__arrow--prev { left: clamp(.6rem, 1.6vw, 1.3rem); }
body[data-theme="shturche"] .shturche-hero__arrow--next { right: clamp(.6rem, 1.6vw, 1.3rem); }

body[data-theme="shturche"] .shturche-hero__dots {
    position: absolute;
    z-index: 3;
    inset: auto auto .85rem 50%;
    translate: -50% 0;
    width: max-content;
    display: flex;
    justify-content: center;
    gap: .45rem;
    /* Общият стил на .slider-dots рисува бяла плочка — тук точките стоят сами. */
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-theme="shturche"] .shturche-hero__dots .slider-dot {
    width: .72rem;
    height: .72rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--shturche-surface);
    box-shadow: 0 .15rem .5rem rgb(31 70 43 / .35);
    cursor: pointer;
}

body[data-theme="shturche"] .shturche-hero__dots .slider-dot[aria-current="true"] {
    background: var(--shturche-green);
}

body[data-theme="shturche"] .shturche-hero__dots .slider-dot span { display: none; }

@media (prefers-reduced-motion: no-preference) {
    body[data-theme="shturche"] .shturche-hero-slide.is-entering {
        animation: shturche-slide-fade .55s ease both;
    }

    @keyframes shturche-slide-fade {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* ------------------------------ Общи елементи ----------------------------- */
body[data-theme="shturche"] .shturche-section {
    position: relative;
    padding-block: clamp(1.1rem, 2vw, 1.8rem);
}

body[data-theme="shturche"] .shturche-section > .shell {
    position: relative;
    z-index: 1;
}

body[data-theme="shturche"] .shturche-panel {
    position: relative;
    padding: clamp(1.2rem, 2.6vw, 2.1rem);
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: var(--shturche-panel-radius);
    background: color-mix(in srgb, var(--shturche-surface) 55%, var(--shturche-cream));
    box-shadow: 0 .9rem 2.2rem rgb(31 70 43 / .1);
}

body[data-theme="shturche"] .shturche-panel__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .8rem 1.5rem;
    margin-bottom: clamp(1rem, 2vw, 1.6rem);
}

body[data-theme="shturche"] .shturche-panel__head h2,
body[data-theme="shturche"] .shturche-section__heading h2 {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    color: var(--shturche-green-deep);
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    letter-spacing: -.02em;
}

body[data-theme="shturche"] .shturche-section__heading {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
}


body[data-theme="shturche"] .shturche-eyebrow {
    margin: 0 0 .55rem;
    color: var(--shturche-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: .78rem;
}

body[data-theme="shturche"] .shturche-chip-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.05rem;
    border-radius: 999rem;
    color: var(--shturche-red);
    background: color-mix(in srgb, var(--shturche-red) 9%, var(--shturche-surface));
    border: .09rem solid color-mix(in srgb, var(--shturche-red) 26%, transparent);
    font-weight: 800;
    font-size: .92rem;
    text-decoration: none;
    white-space: nowrap;
}

body[data-theme="shturche"] .shturche-inline-link {
    color: var(--shturche-green-deep);
    font-weight: 800;
    text-decoration: none;
    border-bottom: .18rem solid var(--shturche-yellow);
    justify-self: start;
}

body[data-theme="shturche"] .card-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--shturche-red);
    font-weight: 800;
    font-size: .92rem;
    text-decoration: none;
}

body[data-theme="shturche"] .shturche-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: .85rem 1.25rem;
    border-radius: var(--shturche-button-radius, 999rem);
    font-weight: 850;
    text-decoration: none;
}

body[data-theme="shturche"] .shturche-button--primary {
    color: var(--on-primary);
    background: linear-gradient(135deg, var(--shturche-red), color-mix(in srgb, var(--shturche-red) 78%, #fff));
    box-shadow: 0 .75rem 1.55rem rgb(143 29 44 / .22);
}

body[data-theme="shturche"] .shturche-button--ghost {
    color: var(--shturche-green-deep);
    background: var(--shturche-surface);
    border: .12rem solid var(--shturche-border);
}

/* ------------------------------ Бързи връзки ------------------------------ */
body[data-theme="shturche"] .shturche-quicklink-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: clamp(.8rem, 1.6vw, 1.3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

body[data-theme="shturche"] .shturche-quicklink {
    display: grid;
    justify-items: center;
    gap: .55rem;
    padding: 1.15rem 1rem 1rem;
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: 1.5rem;
    background: color-mix(in srgb, var(--shturche-surface) 55%, var(--shturche-cream));
    box-shadow: 0 .7rem 1.7rem rgb(31 70 43 / .09);
    color: var(--shturche-green-deep);
    text-decoration: none;
    text-align: center;
    transition: box-shadow .18s ease;
}

body[data-theme="shturche"] .shturche-quicklink:hover {
    box-shadow: 0 1rem 2.2rem rgb(31 70 43 / .16);
}

body[data-theme="shturche"] .shturche-quicklink__art {
    position: relative;
    display: grid;
    place-items: center;
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
    color: var(--shturche-green);
    background:
        radial-gradient(circle at 30% 26%, color-mix(in srgb, var(--shturche-yellow) 30%, transparent) 0 1.1rem, transparent 1.2rem),
        color-mix(in srgb, var(--shturche-green) 12%, var(--shturche-surface));
}

/* Every semantic icon carries the same small Щурче signature. The function
   stays readable (book, camera, people, document…), while the family is tied
   together by one consistently sized ladybird motif. */
body[data-theme="shturche"] .shturche-quicklink__art::after {
    content: "";
    position: absolute;
    right: -.35rem;
    bottom: -.25rem;
    width: 1.55rem;
    aspect-ratio: 1;
    background: url("shturche_motif.webp") center / contain no-repeat;
    filter: drop-shadow(0 .18rem .18rem rgb(31 70 43 / .22));
    rotate: 12deg;
}

body[data-theme="shturche"] .shturche-quicklink__art svg { width: 3.3rem; height: 3.3rem; }

body[data-theme="shturche"] .shturche-quicklink__art--projects,
body[data-theme="shturche"] .shturche-quicklink__art--news {
    color: var(--shturche-red);
    background:
        radial-gradient(circle at 30% 26%, color-mix(in srgb, var(--shturche-yellow) 30%, transparent) 0 1.1rem, transparent 1.2rem),
        color-mix(in srgb, var(--shturche-red) 10%, var(--shturche-surface));
}

body[data-theme="shturche"] .shturche-quicklink__label {
    font-weight: 850;
    font-size: 1.02rem;
}

body[data-theme="shturche"] .shturche-quicklink__arrow {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    color: var(--shturche-green-deep);
    background: color-mix(in srgb, var(--shturche-yellow) 55%, var(--shturche-surface));
}

body[data-theme="shturche"] .shturche-quicklink__arrow svg { width: .95rem; height: .95rem; }

/* --------------------------------- Новини --------------------------------- */
body[data-theme="shturche"] .content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

body[data-theme="shturche"] .content-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: 1.4rem;
    background: var(--shturche-surface);
    box-shadow: 0 .6rem 1.5rem rgb(31 70 43 / .08);
}

body[data-theme="shturche"] .card-media {
    display: block;
}

body[data-theme="shturche"] .card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

body[data-theme="shturche"] .content-card__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .8rem;
    padding: 1rem 1.05rem 1.1rem;
}

body[data-theme="shturche"] .content-card__body h3 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    line-height: 1.3;
}

body[data-theme="shturche"] .content-card__body h3 a {
    color: var(--shturche-green-deep);
    text-decoration: none;
}

body[data-theme="shturche"] .content-card__body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 .5rem;
    color: var(--shturche-muted);
    font-size: .9rem;
    line-height: 1.45;
}

body[data-theme="shturche"] .card-date {
    display: grid;
    place-items: center;
    align-self: start;
    width: 3rem;
    padding: .4rem 0 .45rem;
    border-radius: .85rem;
    color: var(--on-primary);
    background: var(--shturche-green);
    line-height: 1;
}

body[data-theme="shturche"] .card-date b { font-size: 1.15rem; }
body[data-theme="shturche"] .card-date span { font-size: .72rem; }

/* -------------------------------- Фотолента ------------------------------- */
body[data-theme="shturche"] .shturche-photo-strip {
    display: grid;
    /* Малко снимки се разширяват до приятна мярка, вместо да оставят празни
       полета; много снимки се подреждат в плътен ред като в референцията. */
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    justify-content: center;
    gap: clamp(.6rem, 1.4vw, 1rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

body[data-theme="shturche"] .shturche-photo-strip a {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 .5rem 1.2rem rgb(31 70 43 / .12);
}

body[data-theme="shturche"] .shturche-photo-strip img,
body[data-theme="shturche"] .shturche-photo-strip__empty {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: scale .25s ease;
}

body[data-theme="shturche"][data-card-animation="zoom-cover"] .shturche-photo-strip a:hover img { scale: 1.05; }

body[data-theme="shturche"] .shturche-photo-strip__empty {
    background: var(--shturche-green-soft);
}

/* --------------------------------- Контакт -------------------------------- */
body[data-theme="shturche"] .shturche-contact__panel {
    display: grid;
    grid-template-columns: minmax(15rem, 1fr) minmax(0, 1.15fr) minmax(11rem, .7fr);
    gap: clamp(1.1rem, 2.4vw, 2rem);
    align-items: center;
}

body[data-theme="shturche"] .shturche-contact__list {
    display: grid;
    gap: .9rem;
    font-style: normal;
}

body[data-theme="shturche"] .shturche-contact__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    color: var(--shturche-ink);
    font-size: .95rem;
}

body[data-theme="shturche"] .shturche-contact__row b { color: var(--shturche-green-deep); }
body[data-theme="shturche"] .shturche-contact__row a {
    color: var(--shturche-ink);
    text-decoration: none;
}

body[data-theme="shturche"] .shturche-contact__icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    color: var(--shturche-green);
    background: color-mix(in srgb, var(--shturche-green) 13%, var(--shturche-surface));
}

body[data-theme="shturche"] .shturche-contact__icon svg { width: 1.35rem; height: 1.35rem; }

body[data-theme="shturche"] .shturche-contact__cta { justify-self: start; margin-top: .3rem; }

body[data-theme="shturche"] .shturche-contact__map {
    overflow: hidden;
    border: .28rem solid #fff;
    border-radius: 1.4rem;
    box-shadow: 0 .7rem 1.6rem rgb(31 70 43 / .14);
}

body[data-theme="shturche"] .shturche-contact__map iframe {
    display: block;
    width: 100%;
    height: clamp(15rem, 24vw, 19rem);
    border: 0;
}

body[data-theme="shturche"] .shturche-contact__mascot {
    display: grid;
    justify-items: center;
    gap: .4rem;
}

body[data-theme="shturche"] .shturche-contact__bubble {
    position: relative;
    margin: 0;
    padding: .85rem 1rem;
    border-radius: 1.2rem;
    color: var(--shturche-green-deep);
    background: var(--shturche-surface);
    border: .1rem solid rgb(47 101 61 / .14);
    box-shadow: 0 .5rem 1.2rem rgb(31 70 43 / .1);
    font-weight: 750;
    font-size: .92rem;
    text-align: center;
}

body[data-theme="shturche"] .shturche-contact__bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -.55rem;
    width: 1.1rem;
    height: 1.1rem;
    translate: -50% 0;
    rotate: 45deg;
    background: inherit;
    border-right: .1rem solid rgb(47 101 61 / .14);
    border-bottom: .1rem solid rgb(47 101 61 / .14);
}

body[data-theme="shturche"] .shturche-contact__mascot img {
    width: clamp(5rem, 9vw, 7.5rem);
    height: auto;
}

/* ---------------------- Наследени секции от строителя --------------------- */
body[data-theme="shturche"] .shturche-section__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 2rem;
    align-items: end;
    margin-bottom: clamp(1.2rem, 2.4vw, 1.9rem);
}

body[data-theme="shturche"] .shturche-section__intro h2 {
    margin: 0;
    color: var(--shturche-green-deep);
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
    letter-spacing: -.03em;
}














body[data-theme="shturche"] .shturche-flower-card__photo {
    display: grid;
    place-items: center;
    width: 6.2rem;
    aspect-ratio: 1;
    overflow: hidden;
    border: .35rem solid #fff;
    border-radius: 50%;
    background: var(--shturche-yellow);
}

body[data-theme="shturche"] .shturche-flower-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-theme="shturche"] .shturche-flower-card__label {
    font-size: 1.2rem;
    font-weight: 900;
}

body[data-theme="shturche"] .shturche-flower-card__summary {
    max-width: 16ch;
    color: var(--shturche-muted);
    font-size: .9rem;
}








body[data-theme="shturche"] .shturche-story__media {
    overflow: hidden;
    border-radius: 54% 46% 60% 40% / 46% 58% 42% 54%;
}

body[data-theme="shturche"] .shturche-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-theme="shturche"] .shturche-garden-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    width: min(52rem, 86vw);
    margin: 1rem auto;
}

body[data-theme="shturche"] .shturche-garden-divider::before,
body[data-theme="shturche"] .shturche-garden-divider::after {
    content: "";
    height: .22rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, transparent, var(--shturche-green), transparent);
}

body[data-theme="shturche"] .shturche-garden-divider span {
    width: 2rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--shturche-yellow);
}

/* ---------------------------------- Дъно ---------------------------------- */
body[data-theme="shturche"] .shturche-footer {
    position: relative;
    margin-top: clamp(1.2rem, 2.4vw, 2rem);
    color: var(--on-primary);
    /* Едно плътно парче, но зеленото започва ТОЧНО под златната вълна:
       над гребена ѝ остава градината, не зелен правоъгълник. */
    background:
        linear-gradient(var(--shturche-green-deep), var(--shturche-green-deep))
        bottom / 100% calc(100% - clamp(2.8rem, 5.2vw, 4.6rem) + 2px) no-repeat;
}

body[data-theme="shturche"] .shturche-footer::before,
body[data-theme="shturche"] .shturche-footer::after {
    content: none;
}

body[data-theme="shturche"] .shturche-footer__wave {
    line-height: 0;
}

body[data-theme="shturche"] .shturche-footer__wave svg {
    display: block;
    width: 100%;
    height: clamp(2.8rem, 5.2vw, 4.6rem);
}

/* Референцията носи тънка златна ивица по гребена на вълната. */
body[data-theme="shturche"] .shturche-footer__wave-trim {
    fill: color-mix(in srgb, var(--shturche-yellow) 62%, #8a6d1f);
}

body[data-theme="shturche"] .shturche-footer__wave-body {
    fill: var(--shturche-green-deep);
}

body[data-theme="shturche"] .shturche-footer__shell,
body[data-theme="shturche"] .shturche-footer__legal {
    background: transparent;
}

body[data-theme="shturche"] .shturche-footer > .shturche-footer__shell,
body[data-theme="shturche"] .shturche-footer > .shturche-footer__legal {
    position: relative;
    z-index: 2;
}




body[data-theme="shturche"] .shturche-footer__shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1.2rem, 3vw, 2.6rem);
    align-items: center;
    padding-block: clamp(1.6rem, 3vw, 2.4rem) 1.4rem;
}

body[data-theme="shturche"] .shturche-footer a { color: var(--on-primary); }

body[data-theme="shturche"] .shturche-footer__identity {
    display: flex;
    gap: 1rem;
    align-items: center;
}

body[data-theme="shturche"] .shturche-footer__identity h2 {
    margin: 0;
    font-size: 1.25rem;
}

body[data-theme="shturche"] .shturche-footer__identity p {
    margin: .15rem 0 0;
    opacity: .85;
    font-size: .9rem;
}

body[data-theme="shturche"] .shturche-footer__logo {
    width: 4.6rem;
    height: 4.6rem;
    object-fit: contain;
    background: var(--shturche-surface);
    border: .18rem solid color-mix(in srgb, var(--shturche-yellow) 62%, #8a6d1f);
    border-radius: 50%;
    padding: .4rem;
}

body[data-theme="shturche"] .shturche-footer__links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem 1.1rem;
    max-width: 34rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

body[data-theme="shturche"] .shturche-footer__links a {
    display: inline-block;
    padding: .35rem .6rem;
    border-radius: 999rem;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
}

body[data-theme="shturche"] .shturche-footer__links a:hover {
    background: color-mix(in srgb, #fff 14%, var(--shturche-green-deep));
}

body[data-theme="shturche"] .shturche-footer__social-label {
    margin: 0 0 .45rem;
    font-weight: 800;
    font-size: .95rem;
}

body[data-theme="shturche"] .shturche-footer__social ul {
    display: flex;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body[data-theme="shturche"] .shturche-footer__social a {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: color-mix(in srgb, #fff 16%, var(--shturche-green-deep));
}

body[data-theme="shturche"] .shturche-footer__social svg { width: 1.25rem; height: 1.25rem; }

body[data-theme="shturche"] .shturche-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .55rem 1rem;
    padding: .9rem 0 1.2rem;
    border-top: .08rem solid color-mix(in srgb, #fff 22%, var(--shturche-green-deep));
    font-size: .9rem;
}

body[data-theme="shturche"] .shturche-footer__legal p { margin: 0; }
body[data-theme="shturche"] .shturche-footer__legal nav { display: flex; gap: 1rem; }

body[data-theme="shturche"] .button--primary {
    border-radius: var(--shturche-button-radius, 999rem);
}

/* ---------------------------------------------------------------------------
   Настройките от панела командват. Темата дава характера, но всеки избор на
   собственика се вижда: форма на бутоните, цветове на менюто, плътност на
   украсата, движение. Нищо тук не е фиксирано с цвят или число „на ръка“.
   --------------------------------------------------------------------------- */

/* Форма на бутоните — панелът предлага три семейства, темата ги изписва на своя език. */
body[data-theme="shturche"][data-button-shape="pill"],
body[data-theme="shturche"][data-button-shape="capsule"] { --shturche-button-radius: 999rem; }
body[data-theme="shturche"][data-button-shape="rounded"],
body[data-theme="shturche"][data-button-shape="round"] { --shturche-button-radius: .9rem; }
body[data-theme="shturche"][data-button-shape="soft"],
body[data-theme="shturche"][data-button-shape="leaf"] { --shturche-button-radius: 62% 38% 58% 42% / 52% 56% 44% 48%; }

/* Цветове на менюто: при „многоцветно“ всяко листче взема свой цвят от палитрата
   на собственика заедно с четимото си мастило. */
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n + 1) > .shturche-nav__link { color: var(--menu-ink-1); background: var(--menu-color-1); }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n + 2) > .shturche-nav__link { color: var(--menu-ink-2); background: var(--menu-color-2); }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n + 3) > .shturche-nav__link { color: var(--menu-ink-3); background: var(--menu-color-3); }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n + 4) > .shturche-nav__link { color: var(--menu-ink-4); background: var(--menu-color-4); }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n + 5) > .shturche-nav__link { color: var(--menu-ink-5); background: var(--menu-color-5); }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n) > .shturche-nav__link { color: var(--menu-ink-6); background: var(--menu-color-6); }

/* Групата е ЕДИН бутон и в многоцветен режим: цветът отива на ГРУПАТА, а
   линкът и стрелката вътре остават прозрачни. Иначе наследеният слой
   (`site/themes.css`, тежест 0-3-2) оцветява само <a> и хапчето се разцепва
   на две с бяла резка по средата. */
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n + 1) > .shturche-nav-group { color: var(--menu-ink-1); background: var(--menu-color-1); }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n + 2) > .shturche-nav-group { color: var(--menu-ink-2); background: var(--menu-color-2); }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n + 3) > .shturche-nav-group { color: var(--menu-ink-3); background: var(--menu-color-3); }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n + 4) > .shturche-nav-group { color: var(--menu-ink-4); background: var(--menu-color-4); }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n + 5) > .shturche-nav-group { color: var(--menu-ink-5); background: var(--menu-color-5); }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item:nth-child(6n) > .shturche-nav-group { color: var(--menu-ink-6); background: var(--menu-color-6); }
/* Тежестта е нарочна: наследеният слой пише
   `… .primary-nav__item:nth-child(6n+2) > .nav-group > .nav-parent-link` (0-5-1).
   Със същата тежест и по-късен файл темата надделява и групата остава ЕДНО хапче. */
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item > .shturche-nav-group > .shturche-nav__link,
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item > .shturche-nav-group > .shturche-nav__disclosure { background: transparent; color: inherit; }



/* Плътност на украсата: „без“ прибира градинското платно до чисто кремаво. */
/* „Плътност на украсата: без“ приглушава ОРНАМЕНТИТЕ (мотиви, разделители,
   декор), но НЕ изтрива рисунката: фонът на темата е самата картина
   (THEME-TRAPS #17). Старото правило тук пребоядисваше тялото в плътен
   цвят и сцената изчезваше. */
/* Типографията идва от профила, избран в панела: темата задава само ритъма. */
body[data-theme="shturche"] .shturche-home :is(h2, h3) { font-weight: var(--heading-weight, 700); }

/* Прелистването на слайдера следва избора в панела; „petal-wipe“ е собственият
   почерк на „Щурче“, а всичко останало ползва общия плавен преход. */
@media (prefers-reduced-motion: no-preference) {
    body[data-theme="shturche"] [data-slider-root][data-transition="petal-wipe"] .shturche-hero-slide.is-entering .shturche-hero-slide__media {
        animation: shturche-petal-wipe .62s cubic-bezier(.2, .8, .2, 1) both;
    }
    @keyframes shturche-petal-wipe {
        from { opacity: 0; clip-path: inset(0 46% 46% 0 round 58% 42% 50% 50%); }
        to { opacity: 1; clip-path: inset(0 round 0); }
    }
}


/* -------------------------------- Отзивчивост ------------------------------ */
@media (max-width: 74rem) {
}

@media (max-width: 68rem) {
    body[data-theme="shturche"] .shturche-header__shell {
        grid-template-columns: minmax(0, 1fr) auto;
        border-radius: 1rem;
    }

    body[data-theme="shturche"] .shturche-nav {
        /* Общият стил вече го позиционира като падащ панел под заглавието;
           тук връщаме бялата плоскост, която прозрачният десктоп стил маха. */
        background: var(--shturche-surface);
        border: .1rem solid rgb(47 101 61 / .12);
        border-radius: 0 0 1.35rem 1.35rem;
        box-shadow: var(--shturche-shadow);
    }

    body[data-theme="shturche"] .shturche-nav__list {
        display: grid;
        align-items: stretch;
        justify-content: stretch;
        padding: 1rem 0 0;
    }

    body[data-theme="shturche"] .shturche-nav-group {
        display: grid;
    }

    body[data-theme="shturche"] .shturche-nav__link,
    body[data-theme="shturche"] .shturche-nav-group {
        background: color-mix(in srgb, var(--shturche-green) 8%, #fff);
        box-shadow: none;
    }

    body[data-theme="shturche"] .shturche-nav__submenu {
        position: static;
        min-width: 0;
        margin-top: .35rem;
        box-shadow: none;
    }

    body[data-theme="shturche"] .shturche-brand__words {
        max-width: min(16rem, 40vw);
    }

    body[data-theme="shturche"] .shturche-hero__frame {
        height: clamp(19rem, 44vw, 26rem);
    }

    body[data-theme="shturche"] .shturche-hero-slide__panel {
        width: min(24rem, 62%);
    }

    
    body[data-theme="shturche"] .shturche-photo-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body[data-theme="shturche"] .shturche-photo-strip li:nth-child(n + 4) {
        display: none;
    }

    body[data-theme="shturche"] .shturche-contact__panel {
        grid-template-columns: 1fr 1fr;
    }

    body[data-theme="shturche"] .shturche-contact__mascot {
        grid-column: 1 / -1;
    }

    body[data-theme="shturche"] .shturche-footer__shell {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

@media (max-width: 48rem) {
    body[data-theme="shturche"] .shturche-header {
        padding: .55rem 0;
    }

    body[data-theme="shturche"] .shturche-header__shell {
        padding: .55rem;
    }

    /* На телефона табелката е малка и стои вляво, а не през целия екран. */
    body[data-theme="shturche"] .shturche-brand {
        justify-self: start;
        width: max-content;
        max-width: 62vw;
        padding: .15rem .2rem;
    }

    body[data-theme="shturche"] .shturche-brand__logo {
        width: auto;
        height: clamp(2.8rem, 10vw, 4.2rem);
        max-width: 56vw;
    }

    body[data-theme="shturche"] .shturche-brand__words {
        max-width: min(14rem, 38vw);
    }

    body[data-theme="shturche"] .shturche-brand__words small {
        display: block;
    }

    /* В потока два слайда не могат да съществуват едновременно: излизащият си
       тръгва веднага, иначе новият застава под стария и страницата подскача. */
    body[data-theme="shturche"] .shturche-hero-slide.is-leaving {
        display: none;
    }

    /* На телефона слайдът тече в потока: снимка отгоре, текст под нея, точки под
       текста. Рамката расте с дължината на текста и нищо не се отрязва. */
    body[data-theme="shturche"] .shturche-hero__frame {
        height: auto;
    }

    body[data-theme="shturche"] .shturche-hero__slides {
        position: static;
    }

    body[data-theme="shturche"] .shturche-hero-slide {
        position: relative;
        inset: auto;
    }

    body[data-theme="shturche"] .shturche-hero-slide__media {
        position: static;
        inset: auto;
    }

    body[data-theme="shturche"] .shturche-hero-slide__media img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    body[data-theme="shturche"] .shturche-hero-slide__panel {
        position: static;
        inset: auto;
        width: 100%;
        height: auto;
        padding: 1rem 1.1rem 1.2rem;
        background: color-mix(in srgb, var(--shturche-cream) 96%, #fff);
    }

    body[data-theme="shturche"] .shturche-hero__arrow {
        top: clamp(4.5rem, 30vw, 8.5rem);
        translate: 0 0;
    }

    body[data-theme="shturche"] .shturche-hero__dots {
        position: static;
        inset: auto;
        translate: 0 0;
        width: auto;
        margin: 0 0 .8rem;
    }


    body[data-theme="shturche"] .content-grid {
        grid-template-columns: 1fr;
    }

    body[data-theme="shturche"] .shturche-photo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-theme="shturche"] .shturche-photo-strip li:nth-child(n + 3) {
        display: none;
    }

    body[data-theme="shturche"] .shturche-contact__panel {
        grid-template-columns: 1fr;
    }

    body[data-theme="shturche"] .shturche-section__intro {
        grid-template-columns: 1fr;
        align-items: start;
    }

    
    body[data-theme="shturche"] .shturche-footer__legal {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 24rem) {
    body[data-theme="shturche"] .shturche-brand__words {
        max-width: min(9rem, 40vw);
    }

    body[data-theme="shturche"] .shturche-nav-toggle [data-nav-label] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    body[data-theme="shturche"] .shturche-hero__arrow {
        width: 2.3rem;
        height: 2.3rem;
    }
}

/* ---------------------------------------------------------------------------
   Поправки от визуалния контрол: декорът никога не ляга върху текст, стрелките
   не захапват панела, а логото остава четимо върху бялата лента.
   --------------------------------------------------------------------------- */

/* Стрелките живеят в собствен улей: панелът започва след тях (само на широк
   екран — на телефона стрелките са върху снимката, не върху панела). */
@media (min-width: 48.01rem) {
    body[data-theme="shturche"] .shturche-hero-slide__panel {
        padding-left: clamp(3.6rem, 5vw, 4.6rem);
    }
}




/* Списъчните карти стоят на една линия: старата „градинска“ разместеност си отива. */
body[data-theme="shturche"] .content-card:nth-child(n) {
    translate: 0 0;
}

/* ---------------------------------------------------------------------------
   Одобреният дизайн държи съдържанието ВЪРХУ градината: „Новини“ и „Галерия“
   нямат обща плоча — само картите носят повърхност, заглавията стоят направо
   на сцената. Плоча пази единствено контактният блок, както в референцията.
   --------------------------------------------------------------------------- */
body[data-theme="shturche"] .shturche-news .shturche-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-theme="shturche"] .shturche-news .shturche-panel__head {
    margin-bottom: clamp(.9rem, 1.8vw, 1.3rem);
}

/* Kartlar sahnede tek basina durdugu icin golgeleri biraz belirginlessin. */
body[data-theme="shturche"] .content-card,
body[data-theme="shturche"] .shturche-photo-strip a {
    box-shadow: 0 .7rem 1.6rem rgb(31 70 43 / .14);
}



/* Заглавията на разделите носят същия бутонен език: заоблен правоъгълен
   медальон върху градината — четими без никакво було. */
body[data-theme="shturche"] .shturche-panel__head h2,
body[data-theme="shturche"] .shturche-section__heading h2 {
    display: inline-flex;
    align-items: center;
    padding: .5rem 1.2rem;
    /* Формата повтаря съседния бутон „Виж всички…“: закръглено хапче с мек ръб. */
    border: .09rem solid color-mix(in srgb, var(--shturche-green) 26%, transparent);
    border-radius: 999rem;
    background: var(--shturche-surface);
    box-shadow: 0 .25rem .7rem rgb(31 70 43 / .16);
}

/* Всяко заглавие на начална секция започва с малкия знак на темата. Иконата
   е част от визуалния език, не от съдържанието, затова остава CSS декорация. */
body[data-theme="shturche"] .shturche-panel__head h2::before,
body[data-theme="shturche"] .shturche-section__heading h2::before,
body[data-theme="shturche"] .page-hero h1::before {
    content: "";
    flex: 0 0 auto;
    width: clamp(1.5rem, 2.2vw, 1.9rem);
    aspect-ratio: 1;
    background: url("shturche_motif.webp") center / contain no-repeat;
    filter: drop-shadow(0 .14rem .18rem rgb(31 70 43 / .2));
    rotate: -9deg;
}

/* Същият знак продължава и във вътрешните страници: заглавията на плочи,
   подраздели и контактни карти принадлежат към същата система като началната. */
body[data-theme="shturche"] :is(
    .content-section > h1,
    .content-section > h2,
    .related-content > h2,
    .related-content > h3,
    .staff-role-group__heading > h2,
    .staff-role-group__heading > h3,
    .contact-panel > h2,
    .contact-form-panel__intro > h2
)::before {
    content: "";
    display: inline-block;
    width: clamp(1.25rem, 1.8vw, 1.6rem);
    aspect-ratio: 1;
    margin-inline-end: .45rem;
    vertical-align: -.22em;
    background: url("shturche_motif.webp") center / contain no-repeat;
    filter: drop-shadow(0 .12rem .16rem rgb(31 70 43 / .18));
    rotate: -8deg;
}

/* Kart başlıklarındaki işaret daha küçük kalır; başlığın önünde bir imza gibi
   görünür ve haber, galeri, grup, belge, ekip ve kitap kartlarını kapsar. */
body[data-theme="shturche"] :is(
    .content-card__copy h3,
    .group-card__name,
    .gallery-card__copy strong,
    .document-card__title,
    .staff-card__copy h2,
    .staff-card__copy h3,
    .staff-card__copy h4,
    .shturche-staff-card h3,
    .book-thumb__title
)::before {
    content: "";
    display: inline-block;
    width: .95rem;
    aspect-ratio: 1;
    margin-inline-end: .32rem;
    vertical-align: -.14em;
    background: url("shturche_motif.webp") center / contain no-repeat;
    filter: drop-shadow(0 .08rem .1rem rgb(31 70 43 / .16));
    rotate: -7deg;
}

/* Всички бутони в менюто носят ЕДНА и съща форма: старите теми-слоеве подават
   свои радиуси (хапче/капка) с равна тежест — тук се затваря веднъж завинаги. */
body[data-theme="shturche"] .shturche-nav__list .shturche-nav__item > a,
body[data-theme="shturche"] .shturche-nav__list .shturche-nav-group,
body[data-theme="shturche"] .shturche-nav__list .shturche-nav__link,
body[data-theme="shturche"] .shturche-nav__list .shturche-nav__disclosure,
body[data-theme="shturche"] .shturche-nav__list .nav-parent-link {
    border-radius: .7rem;
}

/* ---------------------------------------------------------------------------
   Един картов език за всички раздели: същата рамка, ъгли и сянка като
   „Последни новини“. Никакви яйцевидни петна и ленти от старата версия.
   --------------------------------------------------------------------------- */
body[data-theme="shturche"] .content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

body[data-theme="shturche"] .content-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: 1.4rem;
    background: var(--shturche-surface);
    box-shadow: 0 .7rem 1.6rem rgb(31 70 43 / .14);
}

body[data-theme="shturche"] .card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

body[data-theme="shturche"] .content-card__body { padding: 1rem 1.05rem 1.1rem; }

body[data-theme="shturche"] .content-card__body h3 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    line-height: 1.3;
}

body[data-theme="shturche"] .content-card__body h3 a {
    color: var(--shturche-green-deep);
    text-decoration: none;
}

body[data-theme="shturche"] .content-card__body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 .5rem;
    color: var(--shturche-muted);
    font-size: .9rem;
    line-height: 1.45;
}

body[data-theme="shturche"] .group-grid,
body[data-theme="shturche"] .shturche-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(11.5rem, 100%), 1fr));
    gap: clamp(.9rem, 1.8vw, 1.4rem);
}

body[data-theme="shturche"] .group-card,
body[data-theme="shturche"] .shturche-staff-card {
    display: grid;
    justify-items: center;
    gap: .45rem;
    padding: 1.1rem 1rem 1.2rem;
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: 1.4rem;
    background: var(--shturche-surface);
    box-shadow: 0 .7rem 1.6rem rgb(31 70 43 / .14);
    color: var(--shturche-green-deep);
    text-align: center;
    text-decoration: none;
}

body[data-theme="shturche"] .group-card:hover { translate: 0 -.2rem; }

body[data-theme="shturche"] .group-card__photo,
body[data-theme="shturche"] .shturche-staff-card__photo {
    display: grid;
    place-items: center;
    width: 6.4rem;
    aspect-ratio: 1;
    overflow: hidden;
    border: .3rem solid #fff;
    border-radius: 50%;
    background: color-mix(in srgb, var(--shturche-yellow) 35%, #fff);
    box-shadow: 0 .35rem .9rem rgb(31 70 43 / .18);
    font-size: 2rem;
    font-weight: 900;
}

body[data-theme="shturche"] .shturche-staff-card__photo {
    background: color-mix(in srgb, var(--shturche-green) 16%, #fff);
}

body[data-theme="shturche"] .group-card__photo img,
body[data-theme="shturche"] .shturche-staff-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-theme="shturche"] .group-card__name { font-size: 1.02rem; font-weight: 850; }

body[data-theme="shturche"] .group-card__summary,
body[data-theme="shturche"] .shturche-staff-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: var(--shturche-muted);
    font-size: .85rem;
    line-height: 1.4;
}

body[data-theme="shturche"] .shturche-staff-card h3 {
    margin: 0;
    color: var(--shturche-green-deep);
    font-size: .98rem;
}

body[data-theme="shturche"] .document-list,
body[data-theme="shturche"] .shturche-notice-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body[data-theme="shturche"] .document-card__link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .8rem;
    align-items: center;
    padding: .8rem .95rem;
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: 1.1rem;
    background: var(--shturche-surface);
    box-shadow: 0 .5rem 1.2rem rgb(31 70 43 / .12);
    color: var(--shturche-green-deep);
    text-decoration: none;
}

body[data-theme="shturche"] .shturche-notice-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .8rem;
    align-items: center;
    padding: .8rem .95rem;
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: 1.1rem;
    background: var(--shturche-surface);
    box-shadow: 0 .5rem 1.2rem rgb(31 70 43 / .12);
}

body[data-theme="shturche"] .document-card__type {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: .7rem;
    color: var(--on-primary);
    background: var(--shturche-red);
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

body[data-theme="shturche"] .document-card__text,
body[data-theme="shturche"] .shturche-notice-list li > span:last-child {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

body[data-theme="shturche"] .document-card__text b,
body[data-theme="shturche"] .shturche-notice-list b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .95rem;
}

body[data-theme="shturche"] .shturche-notice-list b a {
    color: var(--shturche-green-deep);
    text-decoration: none;
}

body[data-theme="shturche"] .document-card__text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--shturche-muted);
    font-size: .82rem;
}

body[data-theme="shturche"] .shturche-notice-list small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--shturche-muted);
    font-size: .84rem;
    line-height: 1.4;
}

body[data-theme="shturche"] .document-card__go {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: var(--shturche-green-deep);
    background: color-mix(in srgb, var(--shturche-yellow) 55%, var(--shturche-surface));
}

body[data-theme="shturche"] .document-card__go svg { width: 1.05rem; height: 1.05rem; }

body[data-theme="shturche"] .card-date--accent {
    color: var(--shturche-green-deep);
    background: var(--shturche-yellow);
}

body[data-theme="shturche"] .shturche-story__panel {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(1.2rem, 2.6vw, 2.2rem);
    align-items: start;
    padding: clamp(1.2rem, 2.6vw, 2.1rem);
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: var(--shturche-panel-radius);
    background: color-mix(in srgb, var(--shturche-surface) 92%, var(--shturche-cream));
    box-shadow: 0 .9rem 2.2rem rgb(31 70 43 / .12);
}

body[data-theme="shturche"] .shturche-story__media {
    overflow: hidden;
    border-radius: 1.2rem;
}

body[data-theme="shturche"] .shturche-story__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

body[data-theme="shturche"] .shturche-story__copy {
    color: var(--shturche-ink);
    font-size: .95rem;
    line-height: 1.62;
}

body[data-theme="shturche"] .shturche-story__copy :is(h2, h3) { color: var(--shturche-green-deep); }

@media (max-width: 68rem) {
    body[data-theme="shturche"] .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body[data-theme="shturche"] .shturche-story__panel { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
    body[data-theme="shturche"] .content-grid,
    body[data-theme="shturche"] .document-list,
    body[data-theme="shturche"] .shturche-notice-list { grid-template-columns: 1fr; }
}

/* Раздел без изображение не оставя празна колона: текстът заема цялата плоча
   и се чете в спокойна мярка. */
body[data-theme="shturche"] .shturche-story__panel--text {
    grid-template-columns: minmax(0, 1fr);
}

/* ---------------------------------------------------------------------------
   Хоризонтална въртележка: когато записите са повече от мястото, редът се
   плъзга (с пръст, колело или стрелки). Когато се побират — изглежда точно
   като статична решетка и стрелките изобщо не се появяват.
   --------------------------------------------------------------------------- */
body[data-theme="shturche"] .shturche-row {
    position: relative;
}

body[data-theme="shturche"] .shturche-row [data-row-track] {
    /* Решетките носят собствени явни колони (repeat(3, …) и auto-fit); при
       колонен поток те се смачкват до нула и първите карти изчезват в тънки
       чертички. В реда явните колони отпадат — ширината идва само оттук. */
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: .25rem;
    padding: .35rem .1rem .6rem;
    scrollbar-width: none;
}

/* Отрязаната карта в края не свършва рязко: редът избледнява натам, откъдето
   продължава — знак, че има още, вместо да изглежда като счупен ръб. */
body[data-theme="shturche"] .shturche-row.is-scrollable [data-row-track] {
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 3rem), transparent 100%);
}

body[data-theme="shturche"] .shturche-row [data-row-track]::-webkit-scrollbar { display: none; }

body[data-theme="shturche"] .shturche-row [data-row-track] > * {
    scroll-snap-align: start;
}

/* Плъзгащ се ред: картите пазят четима ширина, вместо да се смачкват. */
body[data-theme="shturche"] .shturche-row .content-grid { grid-auto-columns: minmax(min(19rem, 82vw), 1fr); }
body[data-theme="shturche"] .shturche-row .group-grid,
body[data-theme="shturche"] .shturche-row .shturche-staff-grid { grid-auto-columns: minmax(min(12rem, 44vw), 1fr); }

body[data-theme="shturche"] .shturche-row__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    translate: 0 -50%;
    display: none;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    color: var(--shturche-green-deep);
    background: var(--shturche-surface);
    box-shadow: 0 .4rem 1rem rgb(31 70 43 / .28);
    cursor: pointer;
}

body[data-theme="shturche"] .shturche-row.is-scrollable .shturche-row__arrow { display: grid; }

/* При въртележка и двете стрелки стоят на място: в края само избледняват,
   за да е ясно, че оттам няма накъде. */
body[data-theme="shturche"] .shturche-row__arrow[disabled] {
    opacity: .4;
    cursor: default;
}

body[data-theme="shturche"] .shturche-row__arrow svg { width: 1.2rem; height: 1.2rem; }
body[data-theme="shturche"] .shturche-row__arrow--prev { left: -.9rem; }
body[data-theme="shturche"] .shturche-row__arrow--next { right: -.9rem; }

@media (max-width: 48rem) {
    body[data-theme="shturche"] .shturche-row.is-scrollable .content-grid { grid-auto-columns: minmax(15rem, 88%); }
    body[data-theme="shturche"] .shturche-row.is-scrollable .group-grid,
    body[data-theme="shturche"] .shturche-row.is-scrollable .shturche-staff-grid { grid-auto-columns: minmax(10rem, 45%); }
    body[data-theme="shturche"] .shturche-row__arrow--prev { left: -.35rem; }
    body[data-theme="shturche"] .shturche-row__arrow--next { right: -.35rem; }
}

/* Точките бяха едри копчета: общият стил ги прави 2.75rem мишена с рамка.
   Мишената остава (за пръст и клавиатура), но видимият знак е малкото кръгче
   вътре — дискретно, а активното се разтяга в чертичка. */
body[data-theme="shturche"] .shturche-hero__dots .slider-dot {
    min-width: 1.1rem;
    min-height: 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body[data-theme="shturche"] .shturche-hero__dots .slider-dot span {
    display: block;
    width: .5rem;
    height: .5rem;
    border-radius: 999rem;
    background: var(--shturche-surface);
    box-shadow: 0 .1rem .3rem rgb(31 70 43 / .35);
    transition: width .18s ease, background .18s ease;
}

body[data-theme="shturche"] .shturche-hero__dots .slider-dot[aria-current="true"] span {
    width: 1.3rem;
    background: var(--shturche-green);
}

body[data-theme="shturche"] .shturche-hero__dots .slider-dot[aria-current="true"] {
    width: 1.35rem;
    border-radius: 999rem;
    background: var(--shturche-green);
}

body[data-theme="shturche"] .shturche-story__more {
    justify-self: start;
    margin-top: 1rem;
}



/* Фотогалерията живее в бяла плоча — снимките изпъкват върху нея, вместо да
   плуват свободно върху градината. */
body[data-theme="shturche"] .shturche-gallery .shturche-panel {
    background: var(--shturche-surface);
}

body[data-theme="shturche"] .shturche-gallery .shturche-panel__head h2 {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding-inline: 0;
}

/* Картите в един ред завършват на една линия: текстът заема мястото си, а
   връзката „Прочети още“ винаги ляга на дъното. */
body[data-theme="shturche"] .content-card__body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body[data-theme="shturche"] .content-card__body .card-link {
    margin-top: auto;
    padding-top: .35rem;
    align-self: start;
}

/* ===========================================================================
   ВЪТРЕШНИ СТРАНИЦИ — същият език като началната.
   Общата разметка е обща за всички теми, затова тук се сменя само облеклото:
   медальонни заглавия върху градината, един картов вид, едни и същи ъгли.
   =========================================================================== */

/* -- Заглавен блок: без кремава лента; името на страницата стои в медальон -- */
body[data-theme="shturche"] .page-hero {
    padding-block: clamp(.9rem, 2vw, 1.6rem) clamp(.6rem, 1.4vw, 1rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

body[data-theme="shturche"] .page-hero__inner {
    display: grid;
    justify-items: center;
    gap: .35rem;
}

body[data-theme="shturche"] .page-hero h1 {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    padding: .5rem 1.4rem;
    border: .09rem solid color-mix(in srgb, var(--shturche-green) 26%, transparent);
    border-radius: 999rem;
    background: var(--shturche-surface);
    box-shadow: 0 .25rem .7rem rgb(31 70 43 / .16);
    color: var(--shturche-green-deep);
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    letter-spacing: -.02em;
}

body[data-theme="shturche"] .page-hero .eyebrow {
    margin: 0;
    color: var(--shturche-red);
}

/* Надредът също не виси гол върху рисунката. Откакто фонът е самата картина
   (THEME-TRAPS #17), под него може да мине тъмна фигура: при „Радост“ лилавото
   мастило падаше до 1.71 на телефон. Взима същата полупрозрачна плоча, с която
   скелетът вече пази уводния текст — при 72%% и най-тъмната фигура дава 6.28. */
body[data-theme="shturche"] .page-hero .eyebrow {
    display: inline-block;
    padding: .28rem .7rem;
    border-radius: .7rem;
    background: var(--shturche-surface);
}


/* Уводният текст не виси гол върху градината. */
body[data-theme="shturche"] .page-lead {
    max-width: 62ch;
    margin-inline: auto;
    margin-block: 0 clamp(1rem, 2vw, 1.6rem);
    padding: .75rem 1.2rem;
    border-radius: 1rem;
    background: var(--shturche-surface);
    color: var(--shturche-ink);
    text-align: center;
}

body[data-theme="shturche"] .breadcrumbs {
    padding-block: .5rem 0;
}

/* -- Заглавия на подраздели (роли в екипа, свързано съдържание) ------------ */
body[data-theme="shturche"] :is(.staff-role-group__heading h2, .related-content > h2, .section-heading h2) {
    display: inline-flex;
    align-items: center;
    padding: .45rem 1.15rem;
    border: .09rem solid color-mix(in srgb, var(--shturche-green) 26%, transparent);
    border-radius: 999rem;
    background: var(--shturche-surface);
    box-shadow: 0 .2rem .6rem rgb(31 70 43 / .14);
    color: var(--shturche-green-deep);
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

body[data-theme="shturche"] .staff-role-group__heading {
    display: grid;
    justify-items: center;
    margin-bottom: clamp(.9rem, 1.8vw, 1.3rem);
}

/* -- Един картов вид навсякъде -------------------------------------------- */
body[data-theme="shturche"] :is(.content-card, .gallery-card, .group-card, .staff-card) {
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: 1.4rem;
    background: var(--shturche-surface);
    box-shadow: 0 .7rem 1.6rem rgb(31 70 43 / .14);
}

body[data-theme="shturche"] :is(.content-card, .gallery-card, .group-card) :is(h2, h3) a,
body[data-theme="shturche"] .staff-card :is(h2, h3) {
    color: var(--shturche-green-deep);
    text-decoration: none;
}

/* Датата става зелен знак, както в „Последни новини“. */
body[data-theme="shturche"] .card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
}

body[data-theme="shturche"] .card-meta time {
    padding: .2rem .6rem;
    border-radius: 999rem;
    color: var(--on-primary);
    background: var(--shturche-green);
    font-size: .74rem;
    font-weight: 800;
}

body[data-theme="shturche"] .card-meta > span {
    color: var(--shturche-muted);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* „Прочетете →“ говори със същия глас като на началната. */
body[data-theme="shturche"] .card-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--shturche-red);
    font-weight: 800;
    font-size: .92rem;
    text-decoration: none;
}

/* -- Екип: кръгъл портрет и центриран текст, както в началния раздел ------- */
body[data-theme="shturche"] .staff-card {
    padding: 1.1rem 1rem 1.2rem;
    text-align: center;
}

body[data-theme="shturche"] .staff-card__portrait {
    display: grid;
    place-items: center;
    width: 6.8rem;
    aspect-ratio: 1;
    margin-inline: auto;
    overflow: hidden;
    border: .3rem solid #fff;
    border-radius: 50%;
    background: color-mix(in srgb, var(--shturche-green) 16%, #fff);
    box-shadow: 0 .35rem .9rem rgb(31 70 43 / .18);
}

body[data-theme="shturche"] .staff-card__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-theme="shturche"] .staff-card__copy {
    display: grid;
    gap: .3rem;
    justify-items: center;
    margin-top: .6rem;
}

body[data-theme="shturche"] .staff-card__role {
    margin: 0;
    color: var(--shturche-muted);
    font-size: .85rem;
}

body[data-theme="shturche"] .staff-card .rich-text {
    color: var(--shturche-muted);
    font-size: .88rem;
    text-align: left;
}

/* -- Групи: номерът е знак, не украса -------------------------------------- */
body[data-theme="shturche"] .group-card__number {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    color: var(--on-primary);
    background: var(--shturche-green);
    font-weight: 900;
}

/* -- Празно състояние и панели --------------------------------------------- */
body[data-theme="shturche"] .empty-state {
    max-width: 46ch;
    margin-inline: auto;
    padding: 1.1rem 1.3rem;
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: 1.4rem;
    background: var(--shturche-surface);
    box-shadow: 0 .6rem 1.5rem rgb(31 70 43 / .12);
    color: var(--shturche-muted);
    text-align: center;
}

body[data-theme="shturche"] :is(.contact-form-panel, .map-panel, .related-content, .public-notice, .detail-cover, .content-section) {
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: var(--shturche-panel-radius);
    background: color-mix(in srgb, var(--shturche-surface) 92%, var(--shturche-cream));
    box-shadow: 0 .9rem 2.2rem rgb(31 70 43 / .12);
}

body[data-theme="shturche"] .rich-text :is(h2, h3, h4) {
    color: var(--shturche-green-deep);
}

body[data-theme="shturche"] .listing-page {
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Общият стил подрежда екипа „снимка вляво“ и разтяга портрета до 10rem —
   оттам идваха овалните лица. Тук картата е една колона, а портретът е кръг. */
body[data-theme="shturche"] .staff-card {
    grid-template-columns: minmax(0, 1fr);
    gap: .2rem;
    justify-items: center;
}

body[data-theme="shturche"] .staff-card__portrait {
    min-height: 0;
    border-radius: 50%;
}

/* В екипа документът се отваря с щракване върху самата карта: иконата на PDF
   вече казва какво следва, затова отделен бутон „Изтеглете“ е излишен. */
/* Общият стил слага жълта чертичка под заглавието; в медальона тя стърчи
   отстрани, затова тук отпада — формата сама носи акцента. */
body[data-theme="shturche"] .staff-role-group__heading h2::after,
body[data-theme="shturche"] .staff-role-group__heading h3::after {
    display: none;
}

/* Един и същ раздел не може да изглежда по два начина: екипът на вътрешната
   страница ползва ТОЧНО решетката и картата от началната. Общият стил ги
   разтяга до 34rem (по две в ред) — тук се връща плътният ред. */
body[data-theme="shturche"] .staff-role-group .staff-grid,
body[data-theme="shturche"] .staff-grid,
body[data-theme="shturche"] .shturche-staff-grid {
    /* Горна граница на колоната: роля с един човек не разтяга картата през
       цялата ширина — мярката е една и съща във всеки раздел. */
    grid-template-columns: repeat(auto-fit, minmax(min(11.5rem, 100%), 13.5rem));
    gap: clamp(.9rem, 1.8vw, 1.4rem);
    justify-content: center;
}

body[data-theme="shturche"] .staff-card {
    padding: 1.1rem 1rem 1.2rem;
    gap: .45rem;
}

body[data-theme="shturche"] .staff-card__portrait {
    width: 6.4rem;
}

body[data-theme="shturche"] .staff-card__copy {
    gap: .25rem;
    margin-top: .35rem;
}

body[data-theme="shturche"] .staff-card :is(h2, h3) {
    margin: 0;
    font-size: .98rem;
    line-height: 1.25;
}

body[data-theme="shturche"] .staff-card__role {
    font-size: .84rem;
}

/* Биографията и документите се събират в мярката на картата, вместо да я
   разливат: текстът е дребен, а документът е компактен ред. */
body[data-theme="shturche"] .staff-card .rich-text {
    font-size: .82rem;
    line-height: 1.45;
    text-align: center;
}

body[data-theme="shturche"] .staff-card__documents {
    width: 100%;
    margin-top: .55rem;
}

/* В картата на човека редът се свива до самия знак на файла: същата плочка,
   същият цвят, само без надписа — картата е малка и знакът стига. Това е
   свиване на общия ред, а не втори вид списък. */
body[data-theme="shturche"] .staff-card__documents .document-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
}

body[data-theme="shturche"] .staff-card__documents .document-card__link {
    grid-template-columns: auto;
    padding: .25rem;
    border: 0;
    border-radius: .7rem;
    background: transparent;
    box-shadow: none;
    transition: background .16s ease, translate .16s ease;
}

body[data-theme="shturche"] .staff-card__documents .document-card__link:hover {
    background: color-mix(in srgb, var(--shturche-green) 10%, transparent);
    translate: 0 -.1rem;
}

body[data-theme="shturche"] .staff-card__documents :is(.document-card__text, .document-card__go) {
    display: none;
}

body[data-theme="shturche"] .staff-card__documents .document-card__type {
    width: 2.3rem;
    height: 2.3rem;
    font-size: .6rem;
}

/* ---------------------------------------------------------------------------
   Екипът се чете като пирамида: най-горе директорът, под него всяко следващо
   ниво. Разстоянията се събират, а тънка връзка води окото от ниво към ниво.
   --------------------------------------------------------------------------- */
body[data-theme="shturche"] .staff-roles {
    gap: 0;
}

body[data-theme="shturche"] .staff-role-group {
    position: relative;
    gap: .9rem;
    padding-block: clamp(1rem, 2vw, 1.5rem);
}

/* Връзката между нивата: къса вертикална нишка, която не се появява преди
   първото ниво. */
body[data-theme="shturche"] .staff-role-group + .staff-role-group::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 50%;
    translate: -50% -50%;
    width: .16rem;
    height: clamp(1.4rem, 2.6vw, 2rem);
    border-radius: 999rem;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--shturche-green) 45%, transparent),
        color-mix(in srgb, var(--shturche-green) 18%, transparent));
}

body[data-theme="shturche"] .staff-role-group__heading {
    margin-bottom: .2rem;
}

body[data-theme="shturche"] .staff-role-group__heading h2,
body[data-theme="shturche"] .staff-role-group__heading h3 {
    padding: .35rem 1rem;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* В картата на човека иконата е дребен знак, не илюстрация. */
body[data-theme="shturche"] .staff-card__documents .file-type {
    width: 1.6rem;
}

/* Заглавният блок няма собствена рисунка: градината зад страницата е
   достатъчна, а цветята и калинката отгоре само добавяха шум зад медальона. */
body[data-theme="shturche"] .page-hero::after,
body[data-theme="shturche"] .page-hero::before,
body[data-theme="shturche"] .page-hero__decor {
    display: none;
}

/* Общият стил тегли линия под заглавието и слага 6rem въздух над списъците —
   и двете режат сцената. Тук лентата свършва без черта, а разстоянието е
   колкото трябва, за да диша заглавието, не да зее. */
body[data-theme="shturche"] .site-header {
    border-bottom: 0;
}

body[data-theme="shturche"] :is(.page-content, .listing-page, .detail-page, .contact-page) {
    padding-block: clamp(.5rem, 1.2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
}

/* Пътят до страницата говори със същия бутонен език като менюто. */
body[data-theme="shturche"] .breadcrumbs {
    padding-block: .65rem .2rem;
}

body[data-theme="shturche"] .breadcrumbs ol {
    justify-content: start;
    gap: .35rem;
}

body[data-theme="shturche"] .breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

body[data-theme="shturche"] .breadcrumbs :is(a, [aria-current="page"]) {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: .2rem .75rem;
    border-radius: 999rem;
    background: var(--shturche-surface);
    box-shadow: 0 .15rem .45rem rgb(31 70 43 / .14);
    color: var(--shturche-green-deep);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

body[data-theme="shturche"] .breadcrumbs [aria-current="page"] {
    color: var(--on-primary);
    background: var(--shturche-green);
    box-shadow: none;
}

body[data-theme="shturche"] .breadcrumbs li:not(:last-child)::after {
    margin-left: .35rem;
    color: color-mix(in srgb, var(--shturche-green) 45%, transparent);
    font-weight: 800;
}

/* ---------------------------------------------------------------------------
   Съдържателни страници (Прием и подобните): заглавието на раздела говори със
   зеления глас на темата, документът е ред, който сам се отваря, а връзките в
   текста носят червеното на „Щурче“.
   --------------------------------------------------------------------------- */
body[data-theme="shturche"] .content-section > h2 {
    margin: 0;
    color: var(--shturche-green-deep);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    letter-spacing: -.02em;
}

body[data-theme="shturche"] .content-section__media img {
    border-radius: 1.2rem;
}

body[data-theme="shturche"] .rich-text a {
    color: var(--shturche-red);
    font-weight: 700;
    text-underline-offset: .18em;
}

/* Блокът с документи заема цялата ширина на плочата и няма отделна рамка —
   плочата вече е рамка. */
body[data-theme="shturche"] .related-content {
    max-width: none;
    margin-top: 1.6rem;
    padding: 1.3rem 0 0;
    border: 0;
    border-top: .09rem solid rgb(47 101 61 / .14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-theme="shturche"] .related-content > :is(h2, h3) {
    margin-bottom: .9rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--shturche-green-deep);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

/* Редът се повдига при посочване — както картите в „Последни новини“. */
body[data-theme="shturche"] .document-card__link {
    transition: translate .16s ease, box-shadow .16s ease;
}

body[data-theme="shturche"] .document-card__link:hover {
    translate: 0 -.12rem;
    box-shadow: 0 .8rem 1.7rem rgb(31 70 43 / .16);
}

/* Заглавието на съдържателната страница вече стои вътре в плочата, затова
   лентата над нея отпада — иначе името се четеше два пъти. */
body[data-theme="shturche"] .content-section > h1 {
    margin: 0;
    color: var(--shturche-green-deep);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    letter-spacing: -.025em;
}

/* Редът с документи заема ширината на плочата, а не колкото е дълъг текстът. */
body[data-theme="shturche"] .document-list {
    width: 100%;
}

body[data-theme="shturche"] .related-content {
    width: 100%;
}

/* Карта без дата не оставя празна колона отляво. */
body[data-theme="shturche"] .content-card__body:not(:has(> .card-date)) {
    grid-template-columns: minmax(0, 1fr);
}

body[data-theme="shturche"] .content-card__copy {
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 0;
}

body[data-theme="shturche"] .content-card__copy .card-link { margin-top: auto; }

/* Събитията носят жълт знак за дата — единствената им разлика от новините. */
body[data-theme="shturche"] .shturche-events .card-date {
    color: var(--shturche-green-deep);
    background: var(--shturche-yellow);
}

/* ---------------------------------------------------------------------------
   Наследеният слой (site/shturche-v1.css) още разпъва картите на две колони,
   разминава ги по вертикала и слага калинка на всяка трета. Одобреният дизайн
   иска един и същи вид карта навсякъде — тук наследството се изключва.
   --------------------------------------------------------------------------- */
body[data-theme="shturche"] .content-card {
    grid-column: auto;
    rotate: none;
}

body[data-theme="shturche"] .card-media {
    aspect-ratio: 16 / 10;
}

body[data-theme="shturche"] .content-card:nth-child(3n + 1)::after {
    content: none;
    display: none;
}

/* Снимките вътре в страницата изглеждат точно като лентата на началната:
   същият ъгъл, същата сянка, същото съотношение. Бялата рамка около всяка
   снимка отпада — беше втори вид галерия. */
body[data-theme="shturche"] .photo-grid {
    columns: auto;
    display: grid;
    /* Същата мярка като лентата на началната: една снимка не се разпъва през
       цялата плоча, а няколко се подреждат в плътен ред. */
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    justify-content: center;
    gap: clamp(.6rem, 1.4vw, 1rem);
}

body[data-theme="shturche"] .photo-card {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body[data-theme="shturche"] .photo-card > a {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 .7rem 1.6rem rgb(31 70 43 / .14);
}

/* Снимката в страницата се показва цяла — както е качена и както стои в
   стария сайт. Изрязване тук би отрязало дати от обява или крайчеца на
   рисунка; лентата на началната реже само корици на албуми. */
body[data-theme="shturche"] .photo-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: contain;
    transition: scale .25s ease;
}

body[data-theme="shturche"] .photo-grid { align-items: start; }

body[data-theme="shturche"][data-card-animation="zoom-cover"] .photo-card > a:hover img { scale: 1.05; }

body[data-theme="shturche"] .photo-card figcaption {
    padding: .5rem .2rem 0;
    color: var(--shturche-muted);
    font-size: .85rem;
}

/* Една снимка не се разпъва през цялата плоча; няколко пълнят реда. */
body[data-theme="shturche"] .photo-card {
    width: 100%;
    max-width: 22rem;
    justify-self: center;
}

body[data-theme="shturche"] .content-section__media > a {
    border-radius: 1.2rem;
    box-shadow: 0 .7rem 1.6rem rgb(31 70 43 / .14);
}

body[data-theme="shturche"] .content-section__media > a img { border-radius: 0; }

/* ---------------------------------------------------------------------------
   Албумите изглеждат като всички други карти: три в ред, еднакви, със същия
   ъгъл и сянка. Старата мозайка (7/5 колони) правеше един албум два пъти
   по-широк от съседа си.
   --------------------------------------------------------------------------- */
body[data-theme="shturche"] .gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

body[data-theme="shturche"] .gallery-card {
    grid-column: auto;
    border: .1rem solid rgb(47 101 61 / .1);
    border-radius: 1.4rem;
    background: var(--shturche-surface);
    box-shadow: 0 .7rem 1.6rem rgb(31 70 43 / .14);
}

body[data-theme="shturche"] .gallery-card__media { aspect-ratio: 16 / 10; }

body[data-theme="shturche"] .gallery-card__copy {
    gap: .2rem;
    padding: 1rem 1.05rem 1.1rem;
}

body[data-theme="shturche"] .gallery-card__copy strong {
    color: var(--shturche-green-deep);
    font-size: 1.05rem;
}

body[data-theme="shturche"] .gallery-card__copy small { color: var(--shturche-muted); font-size: .85rem; }

@media (max-width: 68rem) {
    body[data-theme="shturche"] .gallery-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
    body[data-theme="shturche"] .gallery-preview-grid { grid-template-columns: 1fr; }
}

/* Заглавията на страницата за контакти говорят със същия глас като всички
   останали: зелени и със същата мярка, а не двойно по-едри и черни. */
body[data-theme="shturche"] :is(.contact-panel, .contact-form-panel, .map-panel) :is(h1, h2) {
    color: var(--shturche-green-deep);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    letter-spacing: -.025em;
}

/* Редовете с адрес, телефон и поща не се разделят с чертички — знакът отляво
   вече ги разделя достатъчно, а линиите не са част от този дизайн. */
body[data-theme="shturche"] .contact-list div {
    padding-bottom: .35rem;
    border-bottom: 0;
}

body[data-theme="shturche"] .contact-list { gap: .9rem; }

/* Лентата за бисквитки носи същата плоча като картите на темата. */
body[data-theme="shturche"] .cookie-notice {
    border: .1rem solid rgb(47 101 61 / .12);
    border-radius: 1.4rem;
    background: color-mix(in srgb, var(--shturche-surface) 94%, var(--shturche-cream));
    box-shadow: 0 .9rem 2.2rem rgb(31 70 43 / .18);
}

body[data-theme="shturche"] .cookie-notice p { color: var(--shturche-ink); }
body[data-theme="shturche"] .cookie-notice a { color: var(--shturche-red); font-weight: 700; }

/* Връзките в дъното: знак в кръгче и име отдолу — без отделно заглавие. */
body[data-theme="shturche"] .shturche-footer__social ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body[data-theme="shturche"] .shturche-footer__social a {
    display: grid;
    justify-items: center;
    gap: .35rem;
    width: auto;
    height: auto;
    border-radius: 1rem;
    background: transparent;
    color: inherit;
    text-decoration: none;
}

body[data-theme="shturche"] .shturche-footer__social-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: color-mix(in srgb, #fff 16%, var(--shturche-green-deep));
    transition: background .16s ease, translate .16s ease;
}

body[data-theme="shturche"] .shturche-footer__social a:hover .shturche-footer__social-icon {
    background: color-mix(in srgb, #fff 30%, var(--shturche-green-deep));
    translate: 0 -.12rem;
}

body[data-theme="shturche"] .shturche-footer__social-name {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
}

/* Партньорските знаци стоят върху бяла плочка, както в стария сайт. */
body[data-theme="shturche"] .shturche-footer__social-badge {
    display: grid;
    place-items: center;
    width: 6.6rem;
    height: 2.5rem;
    padding: .2rem .35rem;
    overflow: hidden;
    border-radius: .6rem;
    background: #fff;
    box-shadow: 0 .3rem .8rem rgb(0 0 0 / .18);
    transition: translate .16s ease;
}

body[data-theme="shturche"] .shturche-footer__social-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body[data-theme="shturche"] .shturche-footer__social a:hover .shturche-footer__social-badge { translate: 0 -.12rem; }

/* Къде е изработен сайтът се чете на собствен ред, в средата на дъното. */
body[data-theme="shturche"] .shturche-footer__credit {
    flex-basis: 100%;
    margin: 0;
    text-align: center;
    font-size: .92rem;
    font-weight: 700;
}

body[data-theme="shturche"] .shturche-footer__credit a {
    color: var(--shturche-yellow);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: .2em;
}

body[data-theme="shturche"] .shturche-footer__credit a:hover { color: #fff; }

/* ===========================================================================
   ЛЕТОПИСНАТА КНИГА В ГРАДИНАТА
   Книгата не е сив PDF прозорец: на страницата стои подвързан том със зелена
   ленена корица и златен кант, а отвореният четец е дървената маса под липата
   — тъмнозелен здрач, кремава хартия и копчета от същия език като сайта.
   =========================================================================== */
body[data-theme="shturche"] .book-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 18rem));
    justify-content: center;
    gap: clamp(1.2rem, 3vw, 2.4rem);
    padding-block: clamp(.6rem, 2vw, 1.4rem);
}

/* -- Томът: нарисуван подвързан летопис, а не зелено правоъгълниче --------- */
body[data-theme="shturche"] .book-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 300 / 400;
    width: 100%;
    padding: 0;
    border: 0;
    /* Рисунката стои до този файл, затова адресът е относителен. */
    background: url("shturche_book.svg") center / contain no-repeat;
    cursor: pointer;
    transition: translate .22s ease, rotate .22s ease, scale .22s ease;
}

body[data-theme="shturche"] .book-thumb:hover,
body[data-theme="shturche"] .book-thumb:focus-visible {
    translate: 0 -.45rem;
    rotate: -1deg;
    scale: 1.015;
}

/* Книгата е затворена: първата страница на PDF-а не се показва върху корицата. */
body[data-theme="shturche"] .book-thumb__paper { display: none; }

/* Името стои върху пергамента в средата на корицата. */
body[data-theme="shturche"] .book-thumb__title {
    /* Името стои върху етикета, вързан на стъблото. */
    position: absolute;
    top: 65.2%;
    left: 50.5%;
    translate: -50% -50%;
    width: 48%;
    color: var(--shturche-green-deep);
    font-family: var(--font-display, inherit);
    font-size: clamp(.8rem, 1.55vw, 1.02rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    /* Дълго име се смалява, но не изскача от етикета. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* -- Отвореният четец ------------------------------------------------------ */
body[data-theme="shturche"] .book-overlay {
    background:
        radial-gradient(circle at 50% 12%, rgb(47 101 61 / .55), transparent 62%),
        color-mix(in srgb, var(--shturche-green-deep) 92%, #000);
}

body[data-theme="shturche"] .book-page,
body[data-theme="shturche"] .book-sheet__face {
    background: var(--shturche-cream, #fdf7e6);
    box-shadow: 0 1.2rem 2.6rem rgb(0 0 0 / .45);
}

body[data-theme="shturche"] .book-page--left { border-radius: .8rem .2rem .2rem .8rem; }
body[data-theme="shturche"] .book-page--right { border-radius: .2rem .8rem .8rem .2rem; }

/* Лентата с копчета говори с езика на сайта: бяло хапче и зелени знаци. */
body[data-theme="shturche"] .book-bar {
    gap: .4rem;
    padding: .45rem .6rem;
    border: .09rem solid color-mix(in srgb, var(--shturche-green) 22%, transparent);
    border-radius: 999rem;
    background: var(--shturche-surface);
    box-shadow: 0 .8rem 1.8rem rgb(0 0 0 / .35);
}

body[data-theme="shturche"] .book-bar__btn {
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 50%;
    color: var(--shturche-green-deep);
    background: transparent;
}

body[data-theme="shturche"] .book-bar__btn:hover,
body[data-theme="shturche"] .book-bar__btn:focus-visible {
    color: var(--on-primary);
    background: var(--shturche-green);
}

body[data-theme="shturche"] .book-bar__page {
    padding: .3rem .8rem;
    border-radius: 999rem;
    color: var(--on-primary);
    background: var(--shturche-green);
    font-size: .85rem;
    font-weight: 800;
}

body[data-theme="shturche"] .book-close {
    color: #fff;
    background: var(--shturche-red);
    box-shadow: 0 .5rem 1.2rem rgb(0 0 0 / .4);
}

body[data-theme="shturche"] .book-edge {
    color: var(--shturche-green-deep);
    background: var(--shturche-surface);
    border-radius: 50%;
    box-shadow: 0 .5rem 1.2rem rgb(0 0 0 / .35);
}

body[data-theme="shturche"] .book-edge:hover { background: #fff; }

body[data-theme="shturche"] .book-loading {
    color: var(--shturche-cream, #fdf7e6);
    font-weight: 700;
}


/* Наследеният слой рисува и МЕНЮТО, но само в многоцветен режим: слага ръб
   между етикета и стрелката и подчертава текущата страница с вътрешна сянка.
   Каноничният скелет бележи текущото листче със запълване — менюто е на темата. */
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item > .shturche-nav-group > .shturche-nav__disclosure { border-inline-start: 0; }
body[data-theme="shturche"][data-menu-colors="multi-accessible"] .shturche-nav__item > a[aria-current="page"] { box-shadow: none; }
/* Решетката се изравнява по височина, както в скелета. */
body[data-theme="shturche"] .content-grid { align-items: stretch; }


/* Наследеният слой има ПО-ТЕЖЪК селектор за родителските листчета в група
   (`body[data-menu-colors="single"] .primary-nav__item > .nav-group > .nav-parent-link`,
   тежест 0-4-3) и menюто се разцепваше на два цвята: обикновените връзки в
   темата, а падащите — в мастилото на текста. Темата пише по-тежко и връща
   единия цвят. */


/* Наследеният слой реже картинката на картата (кръг, ромб, стрелка) за някои
   теми. Скелетът я показва цяла — темата решава с рисунка, не с ножица. */
body[data-theme="shturche"] .content-card .card-media,
body[data-theme="shturche"] .gallery-card .card-media,
body[data-theme="shturche"] .card-media { clip-path: none; }

/* ...но текущата пътека си остава запълнена: там мастилото е върху цвета на
   темата, не върху повърхността. (Без това правило горното сваля контраста
   до 1.50 — тъмно върху тъмно.) */


/* Наследеният слой реже и футъра (назъбен ръб, стрелка, вълна). Каноничният
   футър носи собствената си вълна в SVG — чуждата ножица пада. */
body[data-theme="shturche"] .site-footer { clip-path: none; padding-top: 0; box-shadow: none; border-top: 0; }

/* Наследеният слой преправя и самата карта за някои теми: квадрат, центрирано
   съдържание, снимка като избледнял фон. Скелетът е с правоъгълна снимка
   (`site.css`: position:relative, 16/10) и текст отляво. */
body[data-theme="shturche"] .content-card,
body[data-theme="shturche"] .content-card:nth-child(n) { aspect-ratio: auto; justify-content: normal; }
body[data-theme="shturche"] .content-card .card-media,
body[data-theme="shturche"] .gallery-card .card-media { position: relative; opacity: 1; inset: auto; }
body[data-theme="shturche"] .content-card .card-media,
body[data-theme="shturche"] .gallery-card .card-media,
body[data-theme="shturche"] .card-media { border-radius: 0; filter: none; margin: 0; }

/* Наследеният слой превръща решетката в хоризонтален плъзгач за някои теми
   (`scroll-snap` + `min-width` по картата) и реже бутоните с ножица. Скелетът
   има собствен плъзгащ ред (`[data-row-track]`) и заобля бутоните с радиус. */
body[data-theme="shturche"] .content-card,
body[data-theme="shturche"] .content-card:nth-child(n) { min-width: 0; min-height: auto; outline: none; outline-offset: 0; }
body[data-theme="shturche"] .content-grid { scroll-snap-type: none; padding-bottom: 0; }
body[data-theme="shturche"] .button { clip-path: none; }

/* Наследеният слой центрира текста в картата за някои теми; скелетът го подравнява
   отляво (решетка в `.content-card__body`). */
body[data-theme="shturche"] .content-card__body { justify-content: normal; z-index: auto; }

/* Наследеният слой прави картата двуколонна за някои теми (снимка отляво/отдясно
   през ред). Скелетът е с редова карта: снимка отгоре, текст отдолу
   (`display:grid; grid-template-rows: auto 1fr`). */
body[data-theme="shturche"] .content-card,
body[data-theme="shturche"] .content-card:nth-child(n) { grid-template-columns: none; }
body[data-theme="shturche"] .content-card > *,
body[data-theme="shturche"] .content-card:nth-child(n) > *,
body[data-theme="shturche"] .content-card:nth-child(n) .card-media,
body[data-theme="shturche"] .content-card:nth-child(n) .content-card__body { order: 0; }

/* МЕНЮТО НА ШИРОК ЕКРАН: тези правила важат само за лентата.
   Мобилното чекмедже е друга повърхност (при „Космонавт" - тъмна) и
   държи собствените си цветове; без този обхват мастилото на лентата
   ги пребиваше и листчетата ставаха тъмни върху тъмно. */
@media (min-width: 48.0625rem) {
body[data-theme="shturche"][data-menu-colors="single"] .shturche-nav__link { color: var(--menu-ink, var(--shturche-green-deep)); }
body[data-theme="shturche"][data-menu-colors="single"] .shturche-nav__item > .shturche-nav-group > .shturche-nav__link,
body[data-theme="shturche"][data-menu-colors="single"] .shturche-nav__item > .shturche-nav-group > .shturche-nav__disclosure {
    color: var(--menu-ink, var(--shturche-green-deep));
}
body[data-theme="shturche"][data-menu-colors="single"] .shturche-nav__item.is-current-trail > .shturche-nav-group > .shturche-nav__link,
body[data-theme="shturche"][data-menu-colors="single"] .shturche-nav__item.is-current-trail > .shturche-nav-group > .shturche-nav__disclosure {
    color: var(--on-primary, #fff);
}
}

/* KAPAN #19: наследеният слой дава `margin-left: .8rem` на всяка втора карта на
   телефон (`@media (max-width: 48rem)`), с което тя не само се измества, а и
   СТЕСНЯВА: 370 срещу 357. Двете ръчно направени теми нямаха този неутрализатор. */
body[data-theme="shturche"] .content-card,
body[data-theme="shturche"] .content-card:nth-child(n) { margin-inline: 0; }

/* Admin-selected card motion for every real Щурче card family. The shared
   stylesheet already owns content/group/gallery/staff cards; these selectors
   complete the theme-specific quick links, people, photos and documents. */
@media (prefers-reduced-motion: no-preference) {
    body[data-theme="shturche"][data-card-animation]:not([data-card-animation="none"])
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .document-card, .photo-card) {
        transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
        will-change: transform;
    }

    body[data-theme="shturche"][data-card-animation="lift"]
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .document-card, .photo-card):hover {
        transform: translateY(-.5rem);
        box-shadow: 0 1.4rem 2.6rem color-mix(in srgb, var(--shturche-ink) 20%, transparent);
    }

    body[data-theme="shturche"][data-card-animation="tilt"]
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .document-card, .photo-card) {
        transform-style: preserve-3d;
    }

    body[data-theme="shturche"][data-card-animation="tilt"]
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .document-card, .photo-card):hover {
        transform: perspective(900px) rotateX(3deg) rotateY(-3deg) translateY(-.25rem);
        box-shadow: 0 1.2rem 2.2rem color-mix(in srgb, var(--shturche-ink) 18%, transparent);
    }

    body[data-theme="shturche"][data-card-animation="glow"]
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .document-card, .photo-card):hover {
        border-color: var(--shturche-yellow);
        box-shadow: 0 0 0 .28rem color-mix(in srgb, var(--shturche-yellow) 42%, transparent),
            0 .9rem 2rem color-mix(in srgb, var(--shturche-ink) 14%, transparent);
    }

    body[data-theme="shturche"][data-card-animation="zoom-cover"]
        :is(.shturche-quicklink__art, .shturche-staff-card__photo, .shturche-photo-strip img, .photo-card img, .document-card__type) {
        transition: transform .5s var(--ease), scale .5s var(--ease);
    }

    body[data-theme="shturche"][data-card-animation="zoom-cover"]
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .photo-card, .document-card):hover
        :is(.shturche-quicklink__art, .shturche-staff-card__photo, img, .document-card__type) {
        transform: scale(1.07);
    }

    body[data-theme="shturche"][data-card-animation="rise-shadow"]
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .document-card, .photo-card):hover {
        transform: translateY(-.28rem) scale(1.012);
        box-shadow: 0 1.8rem 3rem color-mix(in srgb, var(--shturche-red) 22%, transparent);
    }

    body[data-theme="shturche"][data-card-animation="border-draw"]
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .document-card, .photo-card) {
        position: relative;
    }

    body[data-theme="shturche"][data-card-animation="border-draw"]
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .document-card, .photo-card)::before {
        content: "";
        position: absolute;
        z-index: 4;
        inset: 0;
        border: .18rem solid var(--shturche-red);
        border-radius: inherit;
        clip-path: inset(0 100% 100% 0);
        transition: clip-path .45s var(--ease);
        pointer-events: none;
    }

    body[data-theme="shturche"][data-card-animation="border-draw"]
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .document-card, .photo-card):hover::before {
        clip-path: inset(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-theme="shturche"]
        :is(.shturche-quicklink, .shturche-staff-card, .shturche-photo-strip a, .document-card, .photo-card,
            .shturche-quicklink__art, .shturche-staff-card__photo, .shturche-photo-strip img, .photo-card img, .document-card__type) {
        transition: none;
        transform: none;
        scale: 1;
    }
}

/* Admin'deki yoğunluk ayarı yalnızca kart/panel yüzeyini saydamlaştırır.
   Metin, ikon ve görseller tam opak kalır; böylece tema resmi görünürken içerik
   okunaklılığını korur. Varsayılan %100, canonical Щурче görünümüdür. */
body[data-theme="shturche"] :is(
    .content-card,
    .gallery-card,
    .group-card,
    .staff-card,
    .shturche-staff-card,
    .shturche-quicklink,
    .shturche-photo-strip a,
    .photo-card,
    .document-card__link,
    .shturche-notice-list li,
    .book-thumb,
    .shturche-panel,
    .contact-panel,
    .contact-form-panel,
    .map-panel,
    .related-content,
    .public-notice,
    .detail-cover,
    .content-section,
    .empty-state,
    .page-lead
) {
    background-color: color-mix(
        in srgb,
        var(--shturche-surface) var(--card-surface-opacity, 100%),
        transparent
    );
}

/* marka: dogrudan logo (brand-direct-logo.py) */
