/* =====================================================================
   SP Jaczów — lista stron z kaflem daty v1.0
   Jedna kolumna, brak zdjęć, data aktualizacji po lewej stronie.
   Szablon szkolny: proste narożniki, cienkie linie, spokojne akcenty.
   ===================================================================== */

body.sp11-site .spj-page-index {
    padding-block: clamp(2.5rem, 5vw, 4.375rem);
}

body.sp11-site .spj-page-index__header {
    border-radius: 0;
}

body.sp11-site .spj-page-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid #d7e0e6;
}

body.sp11-site .spj-page-list__item {
    min-width: 0;
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-right: 1px solid #d7e0e6;
    border-bottom: 1px solid #d7e0e6;
    border-left: 3px solid transparent;
    border-radius: 0;
    box-shadow: none;
    transition: background-color 160ms ease, border-left-color 160ms ease;
}

body.sp11-site .spj-page-list__item:hover,
body.sp11-site .spj-page-list__item:focus-within {
    background: #fffdf9;
    border-left-color: #d6a63b;
}

body.sp11-site .spj-page-list__date {
    min-height: 9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 1rem 0.65rem;
    color: #10213a;
    background: #fffdf9;
    border-right: 1px solid #d6a63b;
    text-align: center;
    text-decoration: none;
}

body.sp11-site .spj-page-list__date-day {
    display: block;
    font-family: Georgia, "Times New Roman", ui-serif, serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

body.sp11-site .spj-page-list__date-month {
    display: block;
    margin-top: 0.45rem;
    color: #76251f;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.sp11-site .spj-page-list__date-year {
    display: block;
    margin-top: 0.22rem;
    color: #536272;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

body.sp11-site .spj-page-list__content {
    min-width: 0;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 0.65rem;
    padding: clamp(1.1rem, 2.5vw, 1.65rem);
}

body.sp11-site .spj-page-list__category {
    width: fit-content;
    padding: 0.28rem 0.58rem;
    color: #76251f;
    background: #fffaf0;
    border: 1px solid #e3d4b2;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

body.sp11-site .spj-page-list__title {
    margin: 0;
    color: #10213a;
    font-family: Georgia, "Times New Roman", ui-serif, serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

body.sp11-site .spj-page-list__excerpt {
    max-width: 54rem;
    margin: 0;
    color: #536272;
    line-height: 1.7;
}

body.sp11-site .spj-page-list__link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.15rem;
    color: #10213a;
    border-bottom: 2px solid #d6a63b;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

body.sp11-site .spj-page-list__link svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    transition: transform 160ms ease;
}

body.sp11-site .spj-page-list__link:hover,
body.sp11-site .spj-page-list__link:focus-visible {
    color: #76251f;
}

body.sp11-site .spj-page-list__link:hover svg,
body.sp11-site .spj-page-list__link:focus-visible svg {
    transform: translateX(0.2rem);
}

body.sp11-site .spj-page-list__link:focus-visible {
    outline: 0.2rem solid #ffbf47;
    outline-offset: 0.2rem;
}

body.sp11-site .spj-page-list__empty {
    border-radius: 0;
}

body.sp11-site .spj-page-index .sp11-pagination {
    margin-top: 1.5rem;
}

@media (max-width: 45rem) {
    body.sp11-site .spj-page-list__item {
        grid-template-columns: 5.25rem minmax(0, 1fr);
    }

    body.sp11-site .spj-page-list__date {
        min-height: 7.5rem;
        padding-inline: 0.35rem;
    }

    body.sp11-site .spj-page-list__date-day {
        font-size: 2rem;
    }

    body.sp11-site .spj-page-list__date-month {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }

    body.sp11-site .spj-page-list__date-year {
        font-size: 0.7rem;
    }

    body.sp11-site .spj-page-list__content {
        padding: 1rem;
    }

    body.sp11-site .spj-page-list__title {
        font-size: 1.3rem;
    }

    body.sp11-site .spj-page-list__excerpt {
        font-size: 0.96rem;
        line-height: 1.62;
    }
}

@media (max-width: 25rem) {
    body.sp11-site .spj-page-list__item {
        grid-template-columns: 4.65rem minmax(0, 1fr);
    }

    body.sp11-site .spj-page-list__date-day {
        font-size: 1.75rem;
    }

    body.sp11-site .spj-page-list__content {
        padding: 0.9rem 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sp11-site .spj-page-list__item,
    body.sp11-site .spj-page-list__link svg {
        transition: none;
    }
}

@media (forced-colors: active) {
    body.sp11-site .spj-page-list__item,
    body.sp11-site .spj-page-list__date,
    body.sp11-site .spj-page-list__category,
    body.sp11-site .spj-page-list__link {
        color: CanvasText;
        background: Canvas;
        border-color: CanvasText;
        box-shadow: none;
    }
}

@media print {
    body.sp11-site .spj-page-index {
        padding: 0;
    }

    body.sp11-site .spj-page-list__item {
        break-inside: avoid;
        grid-template-columns: 5.5rem minmax(0, 1fr);
        background: #ffffff;
        border: 1px solid #000000;
    }

    body.sp11-site .spj-page-list__date {
        min-height: 0;
        color: #000000;
        background: #ffffff;
        border-right: 1px solid #000000;
    }

    body.sp11-site .spj-page-list__category,
    body.sp11-site .spj-page-list__title,
    body.sp11-site .spj-page-list__excerpt,
    body.sp11-site .spj-page-list__link {
        color: #000000;
    }
}
