/* Generated file. Edit source files and run scripts/build-spj-front-css.sh. */

/* ===== SOURCE: spj-mobile-fixes-v1.css ===== */
/* ================================================================
   SP Jaczów — korekta widoku mobilnego v1.1
   Zakres: nagłówek, menu, hero i pływające narzędzia dostępności.
   Plik musi być ładowany jako ostatni arkusz strony.
   ================================================================ */

/* Link do dziennika powielony w menu jest przeznaczony wyłącznie na mobile. */
.sp11-nav__item--mobile-journal {
    display: none;
}

@media (max-width: 47.99rem) {
    :root {
        --sp11-sticky-offset: 0rem;
    }

    /* Na telefonie duży nagłówek nie zasłania treści podczas przewijania. */
    body.sp11-site .sp11-site-header {
        position: relative;
        top: auto;
        z-index: 1000;
        overflow: visible;
        box-shadow: 0 0.45rem 1.5rem rgba(11, 31, 51, 0.08);
    }

    body.sp11-site .sp11-site-header.is-condensed {
        box-shadow: 0 0.45rem 1.5rem rgba(11, 31, 51, 0.08);
    }

    /* ------------------------------------------------------------
       Górny pasek kontaktowy
       ------------------------------------------------------------ */

    body.sp11-site .sp11-topbar__inner {
        min-height: 0;
        display: block;
        padding-block: 0.55rem;
    }

    body.sp11-site .sp11-topbar__links {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: center;
        gap: 0.25rem 0.75rem;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    body.sp11-site .sp11-topbar__links a,
    body.sp11-site .sp11-topbar__links span {
        min-width: 0;
    }

    body.sp11-site .sp11-topbar__links a:nth-child(2) {
        overflow-wrap: anywhere;
    }

    body.sp11-site .sp11-topbar__links > span:last-child {
        grid-column: 1 / -1;
        margin-top: 0.08rem;
        color: rgba(255, 255, 255, 0.92);
    }

    /* Wyłączamy mobilne zwijanie topbara — nagłówek nie jest już sticky. */
    body.sp11-site .sp11-site-header .sp11-topbar,
    body.sp11-site .sp11-site-header.is-condensed .sp11-topbar {
        max-height: none;
        overflow: visible;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
    }

    /* ------------------------------------------------------------
       Wiersz marki i hamburger
       ------------------------------------------------------------ */

    body.sp11-site .sp11-header__brand-row,
    body.sp11-site .sp11-site-header.is-condensed .sp11-header__brand-row {
        min-height: 4.65rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.7rem;
        padding-block: 0.5rem;
    }

    body.sp11-site .sp11-brand {
        min-width: 0;
        flex: 1 1 auto;
        gap: 0.7rem;
    }

    body.sp11-site .sp11-brand__mark,
    body.sp11-site .sp11-site-header.is-condensed .sp11-brand__mark {
        width: 3.2rem;
        height: 3.2rem;
        flex-basis: 3.2rem;
        padding: 0.12rem;
        border-radius: 0.75rem;
    }

    body.sp11-site .sp11-brand__mark img,
    body.sp11-site .sp11-site-header.is-condensed .sp11-brand__mark img {
        width: 100%;
        height: 100%;
    }

    body.sp11-site .sp11-brand__text {
        min-width: 0;
    }

    body.sp11-site .sp11-brand__name,
    body.sp11-site .sp11-site-header.is-condensed .sp11-brand__name {
        max-width: 9.4rem;
        font-size: 1.02rem;
        line-height: 1.08;
        overflow-wrap: normal;
    }

    body.sp11-site .sp11-brand__patron {
        display: none;
    }

    body.sp11-site .sp11-header__actions {
        flex: 0 0 auto;
        gap: 0;
    }

    /* Dziennik przenosimy z ciasnego wiersza nagłówka do menu. */
    body.sp11-site .sp11-header-journal {
        display: none;
    }

    body.sp11-site .sp11-nav-toggle {
        width: 3rem;
        min-width: 3rem;
        height: 3rem;
        min-height: 3rem;
        padding: 0;
        border: 1px solid #cbd6df;
        border-radius: 0.75rem;
        box-shadow: 0 0.2rem 0.6rem rgba(11, 31, 51, 0.06);
    }

    body.sp11-site .sp11-nav-toggle[aria-expanded="true"] {
        color: #ffffff;
        background: #163a57;
        border-color: #163a57;
    }

    body.sp11-site .sp11-nav-toggle__bars,
    body.sp11-site .sp11-nav-toggle__bars::before,
    body.sp11-site .sp11-nav-toggle__bars::after {
        transition: transform 160ms ease, top 160ms ease, background-color 120ms ease;
    }

    body.sp11-site .sp11-nav-toggle[aria-expanded="true"] .sp11-nav-toggle__bars {
        background: transparent;
    }

    body.sp11-site .sp11-nav-toggle[aria-expanded="true"] .sp11-nav-toggle__bars::before {
        top: 0;
        transform: rotate(45deg);
    }

    body.sp11-site .sp11-nav-toggle[aria-expanded="true"] .sp11-nav-toggle__bars::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* ------------------------------------------------------------
       Rozwijane menu
       ------------------------------------------------------------ */

    body.sp11-site .sp11-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        max-height: calc(100dvh - 1rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #ffffff;
        border-top: 1px solid #d7e0e6;
        border-bottom: 1px solid #cbd6df;
        box-shadow: 0 1.1rem 2.4rem rgba(11, 31, 51, 0.18);
    }

    body.sp11-site .sp11-nav > .sp11-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    body.sp11-site .sp11-nav__list {
        display: block;
        padding: 0.65rem;
    }

    body.sp11-site .sp11-nav__item + .sp11-nav__item {
        margin-top: 0.12rem;
    }

    body.sp11-site .sp11-nav__link,
    body.sp11-site .sp11-nav__button {
        width: 100%;
        min-height: 2.85rem;
        justify-content: space-between;
        padding: 0.58rem 0.75rem;
        border-radius: 0.62rem;
        font-size: 0.92rem;
        line-height: 1.25;
        text-align: left;
    }

    body.sp11-site .sp11-nav__link[aria-current="page"] {
        color: #ffffff;
        background: #233d61;
        box-shadow: inset 0.22rem 0 0 #d6a63b;
    }

    body.sp11-site .sp11-nav__button[aria-expanded="true"] {
        color: #163a57;
        background: #eaf0f4;
        box-shadow: inset 0.22rem 0 0 #d6a63b;
    }

    body.sp11-site .sp11-nav__button[aria-expanded="true"] .sp11-nav__chevron {
        transform: rotate(225deg) translate(-0.05rem, -0.05rem);
    }

    body.sp11-site .sp11-nav__submenu {
        position: static;
        min-width: 0;
        margin: 0.15rem 0 0.5rem 0.75rem;
        padding: 0.25rem 0 0.25rem 0.55rem;
        background: #f7f9fa;
        border: 0;
        border-left: 0.18rem solid #d6a63b;
        border-radius: 0 0.55rem 0.55rem 0;
        box-shadow: none;
    }

    body.sp11-site .sp11-nav__submenu a {
        padding: 0.58rem 0.65rem;
        font-size: 0.88rem;
        line-height: 1.35;
    }

    body.sp11-site .sp11-nav__item--mobile-journal {
        display: list-item;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #d7e0e6;
    }

    body.sp11-site .sp11-nav__journal-link {
        color: #0b1f33;
        background: #f8ebc8;
        border: 1px solid #d6a63b;
        font-weight: 800;
    }

    body.sp11-site .sp11-nav__journal-link::after {
        content: "↗";
        flex: 0 0 auto;
        font-size: 1.05rem;
        line-height: 1;
    }

    /* ------------------------------------------------------------
       Hero — mniejsze odstępy i stabilne kadrowanie
       ------------------------------------------------------------ */

    body.sp11-site .spj-home-hero__layout {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        padding-top: 1.6rem;
        padding-bottom: 2rem;
    }

    body.sp11-site .spj-home-hero__eyebrow {
        margin-bottom: 0.75rem;
        font-size: 0.76rem;
        letter-spacing: 0.06em;
    }

    body.sp11-site .spj-home-hero__eyebrow::before {
        width: 1.45rem;
    }

    body.sp11-site .spj-home-hero__title {
        max-width: 100%;
        font-size: clamp(2.8rem, 14.5vw, 4.15rem);
        line-height: 0.98;
        letter-spacing: -0.035em;
    }

    body.sp11-site .spj-home-hero__lead {
        margin-top: 1.35rem;
        font-size: 1rem;
        line-height: 1.58;
    }

    body.sp11-site .spj-home-hero__actions {
        display: grid;
        gap: 0.72rem;
        margin-top: 1.55rem;
    }

    body.sp11-site .spj-home-hero__button {
        width: 100%;
        min-height: 3.2rem;
        padding: 0.72rem 0.9rem;
        border-radius: 0.72rem;
        font-size: 0.91rem;
    }

    body.sp11-site .spj-home-hero__visual {
        padding-bottom: 0;
    }

    body.sp11-site .spj-home-hero__photo-frame {
        aspect-ratio: 4 / 3;
        min-height: 0;
        border-radius: 1.65rem;
    }

    body.sp11-site .spj-home-hero__photo {
        height: 100%;
        min-height: 0;
        object-position: center 54%;
    }

    body.sp11-site .spj-home-hero__school-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: calc(100% - 1rem);
        margin: -2rem auto 0;
        padding: 1rem;
        border-radius: 1rem;
    }

    body.sp11-site .spj-home-hero__school-main {
        grid-template-columns: 4.2rem minmax(0, 1fr);
        gap: 0.8rem;
    }

    body.sp11-site .spj-home-hero__school-logo {
        width: 4.2rem;
        height: 4.2rem;
        border-radius: 0.6rem;
    }

    body.sp11-site .spj-home-hero__school-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }

    body.sp11-site .spj-home-hero__school-title {
        font-size: clamp(1.28rem, 6vw, 1.65rem);
        line-height: 1.08;
    }

    body.sp11-site .spj-home-hero__school-patron {
        font-size: 0.86rem;
        line-height: 1.35;
    }

    body.sp11-site .spj-home-hero__values {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        margin-top: 0.9rem;
        padding-top: 0.9rem;
    }

    body.sp11-site .spj-home-hero__values li {
        grid-template-columns: 1.55rem minmax(0, 1fr);
        gap: 0.55rem;
        font-size: 0.88rem;
    }

    body.sp11-site .spj-home-hero__values svg {
        width: 1.4rem;
        height: 1.4rem;
    }

    body.sp11-site .spj-home-hero__features {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    body.sp11-site .spj-home-hero__features > ul {
        grid-template-columns: 1fr;
        padding: 0.55rem;
        border-radius: 1rem;
    }

    body.sp11-site .spj-home-hero__features li,
    body.sp11-site .spj-home-hero__features li:nth-child(2) {
        grid-template-columns: 2.6rem minmax(0, 1fr);
        gap: 0.8rem;
        padding: 0.72rem;
        border-right: 0;
        border-bottom: 1px solid #d8e0e8;
    }

    body.sp11-site .spj-home-hero__features li:last-child {
        border-bottom: 0;
    }

    body.sp11-site .spj-home-hero__features svg {
        width: 2.25rem;
        height: 2.25rem;
    }

    body.sp11-site .spj-home-hero__features strong {
        font-size: 0.92rem;
    }

    /* ------------------------------------------------------------
       Pływający przycisk dostępności
       ------------------------------------------------------------ */

    body.sp11-site #aiq-bar {
        right: 0 !important;
        padding-right: 0.55rem !important;
        padding-bottom: calc(0.55rem + env(safe-area-inset-bottom)) !important;
    }

    body.sp11-site #aiq-bar #aiq-opts-btn {
        min-height: 2.55rem !important;
        max-width: calc(100vw - 1.1rem) !important;
        padding: 0.46rem 0.7rem !important;
        border-radius: 999px !important;
        font-size: 0.78rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    body.sp11-site .atools-launcher {
        right: 0.55rem;
        bottom: calc(0.55rem + env(safe-area-inset-bottom));
        min-height: 2.65rem;
        max-width: calc(100vw - 1.1rem);
        padding: 0.5rem 0.75rem;
        color: #ffffff;
        background: #163a57;
        border: 2px solid #d6a63b;
        border-radius: 999px;
        box-shadow: 0 0.55rem 1.4rem rgba(11, 31, 51, 0.24);
        font-size: 0.82rem;
        line-height: 1.15;
    }

    body.sp11-site .atools-launcher:hover {
        color: #ffffff;
        background: #0b1f33;
        border-color: #edc766;
    }

    /* Menu ma pierwszeństwo nad pływającym przyciskiem. */
    body.sp11-site:has(.sp11-nav.is-open) #aiq-bar,
    body.sp11-site:has(.sp11-nav.is-open) .atools-launcher {
        opacity: 0;
        visibility: hidden;
        pointer-events: none !important;
    }
}

@media (max-width: 22.5rem) {
    body.sp11-site .sp11-topbar__links {
        grid-template-columns: 1fr;
    }

    body.sp11-site .sp11-topbar__links > span:last-child {
        grid-column: auto;
    }

    body.sp11-site .sp11-brand__name {
        max-width: 7.2rem;
        font-size: 0.94rem;
    }

    body.sp11-site .spj-home-hero__title {
        font-size: 2.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sp11-site .sp11-nav-toggle__bars,
    body.sp11-site .sp11-nav-toggle__bars::before,
    body.sp11-site .sp11-nav-toggle__bars::after {
        transition: none !important;
    }
}

@media (forced-colors: active) {
    body.sp11-site .sp11-nav,
    body.sp11-site .sp11-nav__journal-link,
    body.sp11-site .sp11-nav-toggle {
        color: CanvasText;
        background: Canvas;
        border: 1px solid CanvasText;
        box-shadow: none;
    }
}

@media print {
    .sp11-nav__item--mobile-journal {
        display: none !important;
    }
}


/* ===== SOURCE: spj-footer-mobile-v1.css ===== */
/* ==========================================================
   SP Jaczów — stopka responsywna v1.2
   Plik ładowany po pozostałych arkuszach projektu.
   ========================================================== */

/* Tablet: opis szkoły zajmuje całą szerokość, linki są w 2 kolumnach. */
@media (max-width: 67.49rem) {
    body.sp11-site .sp11-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.75rem 2rem !important;
        padding-block: 2.5rem !important;
    }

    body.sp11-site .sp11-footer__grid > :first-child {
        grid-column: 1 / -1;
        max-width: 46rem;
    }

    body.sp11-site .sp11-contact-band__grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) !important;
        align-items: start !important;
    }

    body.sp11-site .sp11-contact-band__grid > :first-child {
        grid-column: 1 / -1;
    }
}

/* Telefon: każda część stopki w osobnym wierszu. */
@media (max-width: 44rem) {
    body.sp11-site .sp11-contact-band {
        padding-block: 1.25rem !important;
    }

    body.sp11-site .sp11-contact-band__grid,
    body.sp11-site .sp11-footer__grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    body.sp11-site .sp11-contact-band__grid > *,
    body.sp11-site .sp11-footer__grid > * {
        grid-column: auto !important;
        min-width: 0;
        padding-block: 1.15rem;
    }

    body.sp11-site .sp11-contact-band__grid > :first-child,
    body.sp11-site .sp11-footer__grid > :first-child {
        padding-top: 0;
    }

    body.sp11-site .sp11-contact-band__grid > :last-child,
    body.sp11-site .sp11-footer__grid > :last-child {
        padding-bottom: 0;
    }

    body.sp11-site .sp11-contact-band__grid > * + *,
    body.sp11-site .sp11-footer__grid > * + * {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    body.sp11-site .sp11-footer__grid {
        padding-block: 2rem !important;
    }

    body.sp11-site .sp11-footer h2 {
        margin: 0 0 0.65rem;
        font-size: 1.15rem;
        line-height: 1.3;
    }

    body.sp11-site .sp11-footer p {
        margin-block: 0.45rem;
    }

    body.sp11-site .sp11-footer ul {
        display: grid;
        gap: 0.1rem;
    }

    body.sp11-site .sp11-footer li + li {
        margin-top: 0 !important;
    }

    body.sp11-site .sp11-footer a {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        max-width: 100%;
        padding-block: 0.35rem;
        overflow-wrap: anywhere;
        text-underline-offset: 0.2em;
    }

    body.sp11-site .sp11-contact-band a {
        overflow-wrap: anywhere;
    }

    body.sp11-site .sp11-footer__bottom {
        padding-top: 1.1rem !important;
        padding-right: 0.25rem;
        padding-bottom: max(5.25rem, calc(1rem + env(safe-area-inset-bottom))) !important;
        padding-left: 0.25rem;
        text-align: center;
        line-height: 1.55;
    }
}

@media (forced-colors: active) {
    body.sp11-site .sp11-contact-band__grid > * + *,
    body.sp11-site .sp11-footer__grid > * + * {
        border-top-color: CanvasText;
    }
}


/* ===== SOURCE: spj-dynamic-page-menu-v1.css ===== */
/*
 * SP Jaczów — dynamiczne menu kategorii stron v1.0
 *
 * Nie zmienia hero, typografii treści ani stopki.
 * Uzupełnia wyłącznie zachowanie głównej nawigacji.
 */

body.sp11-site .sp11-nav__button[aria-current="page"] {
    color: var(--sp11-blue-800);
    background: var(--sp11-sky-50);
    box-shadow: inset 0 -0.18rem 0 #d6a63b;
}

body.sp11-site .sp11-nav__submenu {
    max-width: min(24rem, calc(100vw - 2rem));
    max-height: min(70vh, 34rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

body.sp11-site .sp11-nav__submenu-overview {
    margin-bottom: 0.3rem;
    color: #163a57;
    background: #f4f7f9;
    border-bottom: 1px solid #d7e0e6;
    font-weight: 800;
}

body.sp11-site .sp11-nav__submenu a {
    overflow-wrap: anywhere;
}

@media (min-width: 64.01rem) {
    body.sp11-site .sp11-nav__list {
        flex-wrap: wrap;
    }

    /*
     * Ostatnie rozwijane pozycje otwierają się do lewej,
     * aby podmenu nie wychodziło poza prawą krawędź ekranu.
     */
    body.sp11-site .sp11-nav__item:nth-last-child(-n + 4) > .sp11-nav__submenu {
        right: 0;
        left: auto;
    }
}

@media (max-width: 64rem) {
    body.sp11-site .sp11-nav__submenu {
        max-width: none;
        max-height: none;
        overflow: visible;
        scrollbar-gutter: auto;
    }

    body.sp11-site .sp11-nav__button[aria-current="page"] {
        box-shadow: inset 0.22rem 0 0 #d6a63b;
    }

    body.sp11-site .sp11-nav__submenu-overview {
        margin-bottom: 0.15rem;
    }
}

@media (forced-colors: active) {
    body.sp11-site .sp11-nav__button[aria-current="page"],
    body.sp11-site .sp11-nav__submenu-overview {
        color: LinkText;
        background: Canvas;
        border: 2px solid LinkText;
    }
}

