:root {
    --green: #2e5b24;
    --green-dark: #203f19;
    --green-deep: #173112;
    --berry: #8b2546;
    --gold: #f1d447;
    --cream: #f3dfad;
    --mint: #e3ecd7;
    --sky: #e7eff0;
    --rose: #f6dfe5;
    --ink: #1d2419;
    --muted: #6a715f;
    --line: #e1d7bf;
    --paper: #fffaf0;
    --soft: #f8ead0;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(23, 33, 31, 0.14);
    --radius: 8px;
    --wrap: min(1160px, calc(100vw - 32px));
    --a11y-scale: 1;
    --a11y-font: 1;
    --a11y-line: 1.6;
    --a11y-letter: 0em;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% -8rem, rgba(241, 212, 71, 0.22), transparent 30rem),
        radial-gradient(circle at 88% 10rem, rgba(46, 91, 36, 0.08), transparent 30rem),
        linear-gradient(180deg, #fffdf8 0, #fff7e6 56rem, #fffaf0 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: calc(16px * var(--a11y-scale) * var(--a11y-font));
    line-height: var(--a11y-line);
    letter-spacing: var(--a11y-letter);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--green-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--berry);
}

body.dark {
    color: #fff;
    background: #050805;
}

body.dark .site-header,
body.dark .identitybar,
body.dark .section-hero,
body.dark .single-hero {
    background: #000;
}

body.dark .site-main,
body.dark .card,
body.dark .post-card,
body.dark .resource-card,
body.dark .single-card,
body.dark .page-card,
body.dark .archive-sidebar,
body.dark .single-aside,
body.dark .event-card,
body.dark .gallery-card,
body.dark .gallery-group-card,
body.dark .site-footer {
    color: #fff;
    background: #111;
}

body.dark a {
    color: #9fd3ff;
}

body.light {
    color: #000;
    background: #fffbe9;
}

body.light .site-main,
body.light .card,
body.light .post-card,
body.light .resource-card,
body.light .single-card,
body.light .page-card,
body.light .archive-sidebar,
body.light .single-aside,
body.light .event-card,
body.light .gallery-card,
body.light .gallery-group-card {
    color: #000;
    background: #fff;
}

body.invert .site-main,
body.invert .site-header,
body.invert .site-footer {
    filter: invert(1) hue-rotate(180deg);
}

body.mono .site-main,
body.mono .site-header,
body.mono .site-footer {
    filter: grayscale(1);
}

body.low .site-main,
body.low .site-header,
body.low .site-footer {
    filter: saturate(0.25);
}

body.high .site-main,
body.high .site-header,
body.high .site-footer {
    filter: saturate(1.8);
}

.archive-subcategories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 32px;
}

.archive-subcategories a {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 18px 20px;
    color: var(--ink);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--green);
    border-radius: var(--radius);
}

.archive-subcategories a:hover,
.archive-subcategories a:focus-visible {
    border-left-color: var(--berry);
    box-shadow: 0 10px 24px rgba(23, 49, 18, 0.1);
}

.archive-subcategories strong,
.archive-subcategories span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.archive-subcategories span {
    color: var(--muted);
    font-size: 0.92rem;
}

.location-page {
    display: grid;
    gap: 24px;
}

.location-page__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    gap: 16px 32px;
    align-items: start;
}

.location-page__details h2,
.location-page__details p {
    margin: 0;
}

.location-page__map {
    overflow: hidden;
    aspect-ratio: 16 / 8;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.location-page__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 680px) {
    .archive-subcategories {
        grid-template-columns: 1fr;
    }

    .location-page__details {
        grid-template-columns: 1fr;
    }

    .location-page__map {
        aspect-ratio: 4 / 5;
        min-height: 420px;
    }
}

body.mark-links .site-main a,
body.mark-links .site-footer a {
    color: #000;
    background: #fff2a8;
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

body.mark-headings .site-main h1,
body.mark-headings .site-main h2,
body.mark-headings .site-main h3,
body.mark-headings .site-main h4 {
    color: #000;
    background: #e9f7e3;
    outline: 3px solid #111;
    outline-offset: 4px;
}

.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
    z-index: 50;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    color: var(--white);
    background: var(--green-dark);
    border-radius: var(--radius);
}

.topbar {
    display: none;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 8px;
}

.topbar ul,
.primary-nav ul,
.site-footer ul {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar a {
    color: var(--white);
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(30, 63, 25, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(23, 49, 18, 0.1);
    backdrop-filter: blur(16px);
}

.identitybar {
    background: linear-gradient(90deg, #2d5924 0%, #183914 100%);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 9px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    text-decoration: none;
}

.brand:hover {
    color: var(--white);
}

.brand__logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    color: var(--white);
    font-size: clamp(1.18rem, 1.8vw, 1.58rem);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.brand small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.1;
    text-shadow: none;
}

.navstrip {
    background: rgba(255, 252, 245, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-bottom: 1px solid rgba(32, 63, 25, 0.1);
}

.navstrip__inner {
    min-height: 54px;
    display: flex;
    align-items: center;
}

.primary-nav ul {
    gap: 0;
}

.primary-nav li {
    position: relative;
}

.primary-nav a {
    display: block;
    min-height: 38px;
    padding: 9px 13px;
    color: var(--green-dark);
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    text-shadow: none;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-nav a:hover {
    color: var(--white);
    background: var(--green);
    box-shadow: 0 10px 22px rgba(46, 91, 36, 0.16);
    text-shadow: none;
}

.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-menu-ancestor > a,
.primary-nav > div > ul > li.current-menu-item > a,
.primary-nav > div > ul > li.current-menu-ancestor > a {
    color: var(--green-dark);
    background: #e6eee2;
    box-shadow: inset 0 0 0 1px rgba(46, 91, 36, 0.16), 0 8px 18px rgba(23, 33, 31, 0.05);
}

.primary-nav .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0.42em;
    height: 0.42em;
    margin-left: 0.45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.18em) rotate(45deg);
}

.primary-nav .sub-menu {
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    display: grid;
    min-width: 260px;
    max-width: 340px;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(32, 63, 25, 0.13);
    border-radius: var(--radius);
    box-shadow: 0 24px 56px rgba(23, 33, 31, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.primary-nav .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.primary-nav .sub-menu a {
    min-height: auto;
    padding: 8px 11px;
    color: var(--green-dark);
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.25;
    white-space: normal;
}

.primary-nav .sub-menu a:hover {
    color: var(--white);
}

.primary-nav .sub-menu .sub-menu {
    top: -10px;
    left: 100%;
}

.primary-nav .menu-item--students > .sub-menu {
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(46, 91, 36, 0.62) rgba(225, 215, 191, 0.45);
    scrollbar-width: thin;
}

.primary-nav .menu-item--students > .sub-menu::-webkit-scrollbar {
    width: 10px;
}

.primary-nav .menu-item--students > .sub-menu::-webkit-scrollbar-thumb {
    background: rgba(46, 91, 36, 0.62);
    border: 2px solid rgba(255, 253, 248, 0.98);
    border-radius: 999px;
}

.header-search {
    width: min(310px, 32vw);
    margin: 0 0 0 auto;
}

.header-search input {
    width: 100%;
    min-height: 38px;
    padding: 8px 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.08);
    font: inherit;
    font-weight: 750;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.88);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--radius);
}

.menu-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 50px 0 74px;
    color: var(--white);
    background: #1d2b18;
    border-bottom: 1px solid rgba(32, 63, 25, 0.12);
}

.hero__media,
.hero__media span {
    position: absolute;
    inset: 0;
}

.hero__media {
    overflow: hidden;
}

.hero__media span {
    background: var(--hero-image) center / cover;
    filter: blur(1.5px) saturate(0.98) brightness(0.9);
    opacity: 0;
    transform: scale(1.025);
    animation: hero-fade 14s infinite;
}

.hero__media span:nth-child(1) {
    opacity: 1;
}

.hero__media span:nth-child(2) {
    animation-delay: 7s;
}

@keyframes hero-fade {
    0%,
    42% {
        opacity: 1;
    }

    50%,
    92% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 20, 13, 0.7) 0%, rgba(15, 20, 13, 0.46) 48%, rgba(15, 20, 13, 0.18) 100%),
        linear-gradient(180deg, rgba(15, 20, 13, 0.06) 0%, rgba(15, 20, 13, 0.28) 100%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero__copy {
    max-width: 760px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.25rem, 3.8vw, 3.55rem);
    line-height: 1.04;
    text-wrap: balance;
}

.hero p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.02rem;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.hero__actions,
.pill-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.button,
.hero__panel a,
.pill-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.hero__panel a:hover,
.pill-links a:hover {
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(23, 33, 31, 0.12);
}

.button--primary {
    color: var(--white);
    background: var(--green);
    border-color: rgba(255, 255, 255, 0.22);
}

.button--primary:hover,
.button--primary:focus-visible {
    color: var(--white);
    background: var(--green-dark);
    border-color: rgba(241, 212, 71, 0.34);
}

.hero__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    background: rgba(255, 253, 248, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.hero__panel a {
    min-height: 52px;
    justify-content: flex-start;
    padding: 10px 12px;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 7px;
    box-shadow: none;
    backdrop-filter: none;
}

.hero__panel a::before {
    content: attr(data-icon);
    display: grid;
    flex: 0 0 30px;
    width: 28px;
    height: 28px;
    margin-right: 9px;
    place-items: center;
    color: var(--white);
    background: var(--green);
    border-radius: 50%;
    font-size: 0.95rem;
}

.hero__panel a:hover {
    color: var(--green-dark);
    border-color: rgba(241, 212, 71, 0.68);
    box-shadow: none;
}

.notice-strip {
    position: relative;
    z-index: 2;
    margin-top: -34px;
}

.notice-strip__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 11px 14px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(32, 63, 25, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(23, 33, 31, 0.08);
}

.notice-label {
    color: var(--green-dark);
    padding: 6px 10px;
    background: rgba(46, 91, 36, 0.1);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.notice-strip p {
    margin: 0;
    font-weight: 750;
}

.notice-strip a {
    font-weight: 900;
    white-space: nowrap;
}


.highlight-strip {
    position: relative;
    z-index: 2;
    margin-top: -34px;
}

.highlight-strip__inner {
    display: grid;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(32, 63, 25, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(23, 33, 31, 0.08);
}

.highlight-strip__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.highlight-strip__nav,
.highlight-strip__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-strip__button,
.highlight-strip__dots button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--green-dark);
    background: rgba(46, 91, 36, 0.08);
    border: 1px solid rgba(46, 91, 36, 0.12);
    border-radius: 999px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.highlight-strip__dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(46, 91, 36, 0.18);
}

.highlight-strip__dots button.is-active {
    background: var(--green);
}

.highlight-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.highlight-slider::-webkit-scrollbar {
    display: none;
}

.highlight-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(32, 63, 25, 0.1);
    border-radius: 10px;
    scroll-snap-align: start;
}

.highlight-card__media {
    display: block;
    min-height: 250px;
}

.highlight-card__media img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.highlight-card__body {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 24px;
}

.highlight-card__body.is-full {
    grid-column: 1 / -1;
}

.highlight-card__body h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    line-height: 1.08;
}

.highlight-card__body h2 a {
    color: var(--berry);
    text-decoration: none;
}

.highlight-card__body p {
    margin: 0;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.65;
}

.home-alerts,
.section-grid {
    margin-block: 54px;
}

.notice-panel,
.info-box {
    padding: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(62, 91, 54, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(23, 33, 31, 0.06);
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 32px;
    align-items: start;
}

.section-heading h2,
.page-header h1 {
    margin: 0;
    font-size: clamp(1.85rem, 3.4vw, 2.9rem);
    line-height: 1.05;
    text-wrap: balance;
}

.post-list {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.post-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(32, 63, 25, 0.1);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(23, 33, 31, 0.05);
}

.content-stream .post-card:first-child,
.archive-list .post-card:first-child {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    min-height: 310px;
    border-color: rgba(46, 91, 36, 0.16);
    box-shadow: 0 18px 46px rgba(23, 33, 31, 0.08);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.content-stream .post-card:first-child .post-card__image img,
.archive-list .post-card:first-child .post-card__image img {
    min-height: 310px;
}

.post-card__image--placeholder {
    display: grid;
    position: relative;
    isolation: isolate;
    min-height: 180px;
    overflow: hidden;
    place-items: center;
    padding: 24px;
    color: var(--school-deep);
    background:
        linear-gradient(145deg, transparent 0 46%, rgba(255, 255, 255, 0.34) 46% 62%, transparent 62%),
        repeating-linear-gradient(0deg, rgba(21, 53, 22, 0.045) 0 1px, transparent 1px 24px),
        var(--placeholder-bg, #dff1e7);
    text-decoration: none;
}

.post-card__image--placeholder::before,
.post-card__image--placeholder::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.post-card__image--placeholder::before {
    top: -50px;
    right: -42px;
    width: 155px;
    height: 155px;
    background: var(--placeholder-accent, var(--school-yellow));
    border-radius: 50%;
    opacity: 0.78;
}

.post-card__image--placeholder::after {
    bottom: -54px;
    left: -34px;
    width: 145px;
    height: 112px;
    background: rgba(255, 255, 255, 0.52);
    border: 3px solid rgba(21, 53, 22, 0.1);
    border-radius: 50% 50% 12px 12px;
    transform: rotate(12deg);
}

.post-card__image--tone-1 {
    --placeholder-bg: #dff1e7;
    --placeholder-accent: #f4d83f;
}

.post-card__image--tone-2 {
    --placeholder-bg: #f7d7df;
    --placeholder-accent: #f48c6c;
}

.post-card__image--tone-3 {
    --placeholder-bg: #d9eef3;
    --placeholder-accent: #f4d83f;
}

.post-card__image--tone-4 {
    --placeholder-bg: #f8edb9;
    --placeholder-accent: #a9dbe5;
}

.post-card-placeholder {
    display: grid;
    position: relative;
    z-index: 1;
    justify-items: center;
    gap: 12px;
}

.post-card-placeholder__kicker,
.post-card-placeholder__label {
    padding: 6px 11px 5px;
    color: var(--school-deep);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(21, 53, 22, 0.1);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.post-card-placeholder__initial {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    color: var(--school-deep);
    background: rgba(255, 255, 255, 0.9);
    border: 4px solid var(--school-deep);
    border-radius: 22px 7px 22px 7px;
    box-shadow: 8px 8px 0 var(--placeholder-accent, var(--school-yellow));
    font-size: 2.45rem;
    font-weight: 950;
    line-height: 1;
    transform: rotate(-2deg);
}

.post-card-placeholder__label {
    background: var(--placeholder-accent, var(--school-yellow));
    border-color: transparent;
    letter-spacing: 0.04em;
}

.gallery-card__image span {
    display: grid;
    min-height: 180px;
    place-items: center;
    color: var(--green-dark);
    background: linear-gradient(135deg, rgba(227, 236, 215, 0.72), rgba(255, 244, 215, 0.72));
    font-size: 2.2rem;
    font-weight: 900;
    text-decoration: none;
}

.post-card__body {
    align-self: center;
    padding: 22px;
}

.post-card h2 {
    margin: 6px 0 8px;
    font-size: 1.32rem;
    line-height: 1.25;
    text-wrap: balance;
}

.content-stream .post-card:first-child h2,
.archive-list .post-card:first-child h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.post-card h2 a {
    color: var(--berry);
    text-decoration: none;
}

.post-card p {
    margin: 0;
    color: var(--muted);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.post-meta {
    display: grid;
    gap: 9px;
    color: var(--muted);
    font-size: 0.84rem;
}

.post-meta__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
}

.post-meta__type {
    padding: 4px 8px 3px;
    color: var(--green-dark);
    background: #f5e8aa;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.post-meta__date,
.post-meta__reading {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    font-weight: 750;
}

.post-meta__details {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.post-meta__reading {
    padding-left: 10px;
    border-left: 1px solid #ccd4cb;
}

.post-meta__byline {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #435048;
    font-weight: 750;
}

.post-meta__avatar {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    color: var(--white);
    background: var(--green);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
}

.sidebar-stack {
    display: grid;
    gap: 18px;
}

.info-box h2 {
    margin: 0 0 14px;
    color: var(--green-dark);
}

.event-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-list li {
    margin: 0;
}

.event-list time {
    color: var(--berry);
    font-weight: 850;
}

.event-list--home .event-list__item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 10px;
    color: var(--ink);
    text-decoration: none;
    background: linear-gradient(135deg, #fffdf8 0%, #f7f1e2 100%);
    border: 1px solid rgba(46, 91, 36, 0.14);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 49, 18, 0.06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.event-list--home .event-list__item:hover {
    color: var(--ink);
    border-color: rgba(46, 91, 36, 0.32);
    box-shadow: 0 16px 34px rgba(23, 49, 18, 0.12);
    transform: translateY(-1px);
}

.event-list--home .event-list__date {
    display: flex;
    min-width: 58px;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    text-decoration: none;
    background: var(--green);
    border-radius: 8px;
}

.event-list--home .event-list__date strong {
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
}

.event-list--home .event-list__date span {
    margin-top: 3px;
    color: inherit;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}

.event-list--home .event-list__body {
    display: block;
    min-width: 0;
}

.event-list--home .event-list__body strong {
    display: block;
    color: var(--green-dark);
    font-size: 1rem;
    line-height: 1.18;
}

.event-list--home .event-list__body small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pill-links a {
    background: var(--soft);
}

.pill-links a:nth-child(2) {
    background: var(--sky);
}

.pill-links a:nth-child(3) {
    background: var(--rose);
}

.pill-links a:nth-child(4) {
    background: #fff4d7;
}

.compact-links-box h2 {
    margin-bottom: 12px;
}

.compact-link-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.compact-link-list li {
    margin: 0;
    padding: 0;
}

.compact-link-list a {
    display: inline-block;
    color: var(--green-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    line-height: 1.35;
}

.compact-link-list a:hover,
.compact-link-list a:focus-visible {
    color: var(--berry);
}

.area-band {
    padding: 48px 0;
    background:
        radial-gradient(circle at 12% 0, rgba(241, 212, 71, 0.14), transparent 28rem),
        linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(243, 223, 173, 0.42));
    border-block: 1px solid var(--line);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.area-card {
    min-height: 170px;
    padding: 22px;
    color: var(--white);
    background: var(--green);
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(23, 33, 31, 0.1);
}

.area-card:hover,
.area-card:focus-visible {
    color: var(--white);
    outline: 3px solid var(--gold);
    outline-offset: 4px;
    transform: translateY(-2px);
}

.area-card:hover strong,
.area-card:focus-visible strong {
    color: var(--gold);
}

.area-card:hover span,
.area-card:focus-visible span {
    color: rgba(255, 255, 255, 0.92);
}

.area-card:nth-child(2) {
    background: #516a32;
}

.area-card:nth-child(3) {
    background: var(--berry);
}

.area-card:nth-child(4) {
    background: #6d5a28;
}

.area-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.area-card span {
    color: rgba(255, 255, 255, 0.82);
}

.archive-hero,
.single-hero {
    padding: 38px 0;
    background:
        radial-gradient(circle at 18% 0, rgba(241, 212, 71, 0.12), transparent 26rem),
        linear-gradient(135deg, var(--green-deep), var(--green-dark) 56%, var(--green));
    color: var(--white);
}

.single-hero--page {
    padding: 30px 0;
}

.archive-hero h1,
.single-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.04;
    text-wrap: balance;
}

.single-hero--page h1 {
    font-size: clamp(2rem, 3.4vw, 3rem);
}

.archive-description {
    max-width: 760px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.archive-layout,
.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
    margin-block: 42px;
}

.archive-main {
    display: grid;
    gap: 26px;
    min-width: 0;
}

.archive-intro {
    padding: clamp(26px, 4vw, 44px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(46, 91, 36, 0.14);
    border-radius: var(--radius);
    box-shadow: 0 14px 38px rgba(23, 33, 31, 0.06);
}

.archive-intro .entry-content {
    max-width: 900px;
    color: #3f463a;
    font-size: 1.06rem;
    line-height: 1.74;
}

.archive-intro .entry-content p {
    margin-bottom: 1.15em;
}

.archive-intro .entry-content a {
    color: var(--green-dark);
    font-weight: 850;
}

.archive-intro .entry-content a:hover {
    color: var(--ink);
}

.archive-section-heading {
    display: grid;
    gap: 5px;
}

.archive-section-heading h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.12;
}

.archive-list,
.archive-list--wide {
    display: grid;
    gap: 18px;
}

.archive-list--wide {
    max-width: 960px;
    margin-block: 42px;
}

.archive-list--embedded {
    margin-top: 22px;
}

.archive-full-list {
    display: grid;
    gap: 24px;
}

.archive-full-entry {
    min-width: 0;
}

.archive-main > .archive-full-list .archive-full-entry {
    padding: clamp(26px, 4vw, 44px);
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid rgba(21, 53, 22, 0.12);
    border-radius: 22px 7px 22px 7px;
    box-shadow: 9px 11px 0 rgba(21, 53, 22, 0.1);
}

.archive-full-entry__title {
    margin: 0 0 24px;
    color: var(--school-deep);
    font-size: clamp(1.55rem, 2.8vw, 2.3rem);
    line-height: 1.12;
}

.archive-full-entry__title a {
    color: inherit;
    text-decoration: none;
}

.archive-full-entry__title a:hover,
.archive-full-entry__title a:focus-visible {
    color: var(--school-green);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.archive-full-list--embedded {
    margin-top: 22px;
}

.archive-full-list--embedded .archive-full-entry__title {
    margin-bottom: 20px;
}

.archive-static-content {
    display: grid;
    gap: clamp(28px, 5vw, 52px);
    padding: clamp(26px, 4vw, 44px);
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid rgba(21, 53, 22, 0.12);
    border-radius: 22px 7px 22px 7px;
    box-shadow: 9px 11px 0 rgba(21, 53, 22, 0.1);
}

.archive-static-content__section + .archive-static-content__section {
    padding-top: clamp(28px, 5vw, 52px);
    border-top: 2px solid rgba(21, 53, 22, 0.1);
}

.archive-static-content__section > h2 {
    margin: 0 0 20px;
    color: var(--school-deep);
    font-size: clamp(1.55rem, 2.8vw, 2.3rem);
    line-height: 1.12;
}

.document-groups,
.document-group {
    display: grid;
    gap: 22px;
}

.document-groups {
    gap: clamp(36px, 6vw, 64px);
}

.pagination {
    width: 100%;
    margin: 34px 0 0;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(32, 63, 25, 0.14);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(23, 33, 31, 0.06);
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}

.page-numbers.current {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 10px 24px rgba(46, 91, 36, 0.18);
}

.page-numbers.dots {
    min-width: auto;
    padding-inline: 4px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

a.page-numbers:hover,
a.page-numbers:focus-visible {
    color: var(--white);
    background: var(--green-dark);
    border-color: var(--green-dark);
    outline: 2px solid rgba(241, 212, 71, 0.8);
    outline-offset: 2px;
}

.page-numbers.prev,
.page-numbers.next {
    padding-inline: 18px;
}

.archive-sidebar,
.single-aside {
    position: sticky;
    top: 110px;
}

.resource-card,
.event-card {
    display: grid;
    gap: 18px;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(23, 33, 31, 0.05);
}

.resource-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}

.archive-list--embedded .resource-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 15px 16px;
}

.resource-card__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--white);
    background: var(--berry);
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 900;
}

.archive-list--embedded .resource-card__icon {
    width: 44px;
    height: 44px;
    font-size: 0.68rem;
}

.resource-card h2,
.event-card h2,
.gallery-card h2 {
    margin: 4px 0 6px;
    font-size: 1.22rem;
    line-height: 1.25;
}

.archive-list--embedded .resource-card h2 {
    margin: 2px 0 0;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.archive-list--embedded .resource-card .meta {
    font-size: 0.82rem;
}

.resource-card h2 a,
.event-card h2 a,
.gallery-card h2 a {
    color: var(--ink);
    text-decoration: none;
}

.resource-card p,
.event-card p {
    margin: 0;
    color: var(--muted);
}

.resource-card__action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    color: var(--white);
    background: var(--green);
    border-radius: var(--radius);
    font-weight: 850;
    text-decoration: none;
}

.archive-list--embedded .resource-card__action {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.92rem;
}

.resource-card__action:hover,
.resource-card__action:focus-visible {
    color: var(--white);
    background: var(--green-dark);
    box-shadow: 0 10px 22px rgba(46, 91, 36, 0.16);
}

.event-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
}

.event-card__date {
    display: grid;
    width: 50px;
    min-height: 50px;
    place-items: center;
    color: var(--white);
    background: var(--green);
    border-radius: var(--radius);
    text-align: center;
}

.event-card__date span {
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1;
}

.event-card__date strong {
    font-size: 0.62rem;
    text-transform: uppercase;
}

.event-feed {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 0;
}

.event-calendar-panel {
    position: sticky;
    top: 132px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(23, 33, 31, 0.06);
}

.event-calendar-panel__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.event-calendar-panel h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: 1.16rem;
    line-height: 1.1;
}

.event-calendar-panel__header span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-align: right;
    text-transform: uppercase;
}

.event-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.event-calendar__weekday {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.event-calendar__day {
    display: grid;
    min-height: 31px;
    align-content: center;
    justify-items: center;
    padding: 4px;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid rgba(225, 215, 191, 0.74);
    border-radius: 6px;
    text-decoration: none;
}

.event-calendar__day strong {
    color: inherit;
    font-size: 0.78rem;
}

.event-calendar__day small {
    width: 5px;
    height: 5px;
    overflow: hidden;
    margin-top: 3px;
    background: var(--gold);
    border-radius: 50%;
    text-indent: -999px;
}

.event-calendar__day.has-events {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

.event-calendar__day.has-events:hover,
.event-calendar__day.has-events:focus-visible {
    color: var(--white);
    background: var(--green-dark);
}

.event-calendar-panel__legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.event-calendar-panel__legend span {
    display: block;
    width: 9px;
    height: 9px;
    background: var(--gold);
    border-radius: 50%;
}

.event-calendar-panel__events {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(225, 215, 191, 0.7);
}

.event-calendar-panel__events a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}

.event-calendar-panel__events a:hover span {
    color: var(--green-dark);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.event-calendar-panel__events strong {
    color: var(--green-dark);
    font-size: 0.82rem;
}

.event-calendar-panel__events span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-calendar__day--empty {
    visibility: hidden;
}

.event-feed__list {
    margin-top: 0;
}

.event-feed__list .event-card {
    align-items: start;
    min-height: 0;
    padding: 14px 16px;
}

.event-feed__list .event-card h2 {
    margin-top: 3px;
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.18;
}

.event-feed__list .event-card p {
    font-size: 0.88rem;
    line-height: 1.45;
}

.event-feed__list .event-card .meta {
    gap: 7px;
    font-size: 0.78rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-archive {
    margin-block: 42px;
}

.gallery-group-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    margin-bottom: 46px;
}

.gallery-group-grid--index {
    margin-bottom: 0;
}

.gallery-group-grid--children {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 36px;
}

.gallery-group-card {
    display: grid;
    grid-template-rows: 190px auto;
    overflow: hidden;
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(32, 63, 25, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(23, 33, 31, 0.05);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gallery-group-card:hover,
.gallery-group-card:focus-visible {
    color: var(--ink);
    border-color: rgba(46, 91, 36, 0.32);
    box-shadow: 0 18px 42px rgba(23, 33, 31, 0.12);
    transform: translateY(-2px);
}

.gallery-group-card--small {
    grid-template-rows: 150px auto;
}

.gallery-group-card__image {
    display: grid;
    height: 190px;
    min-height: 0;
    overflow: hidden;
    place-items: center;
    background: var(--soft);
}

.gallery-group-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-group-card__image strong {
    color: var(--green-dark);
    font-size: 2rem;
}

.gallery-group-card__body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
    min-height: 72px;
    padding: 15px;
    background: var(--white);
}

.gallery-group-card__body strong {
    display: block;
    overflow: hidden;
    color: var(--green-dark);
    font-size: 1.08rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-group-card__body em {
    color: var(--muted);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 750;
}

.gallery-group-card__body span {
    margin-top: 8px;
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

.gallery-group-section {
    margin-block: 44px;
}

.gallery-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 22px;
}

.gallery-chip-list a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 7px 12px;
    color: var(--green-dark);
    background: rgba(46, 91, 36, 0.08);
    border: 1px solid rgba(46, 91, 36, 0.13);
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.gallery-chip-list a:hover {
    color: var(--white);
    background: var(--green);
}

.gallery-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(23, 33, 31, 0.05);
}

.gallery-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--soft);
}

.gallery-card__image img,
.gallery-card__image span {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-card__image img {
    transition: transform 220ms ease;
}

.gallery-card:hover .gallery-card__image img {
    transform: scale(1.035);
}

.gallery-card__image em {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    color: var(--white);
    background: rgba(32, 63, 25, 0.9);
    border-radius: 999px;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 850;
}

.gallery-card__body {
    padding: 18px;
}

.single-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
}

.single-meta,
.post-meta--hero {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 750;
}

.post-meta--hero {
    display: grid;
    width: fit-content;
    gap: 10px;
}

.post-meta--hero .post-meta__facts {
    color: rgba(255, 255, 255, 0.86);
}

.post-meta--hero .post-meta__reading {
    border-color: rgba(255, 255, 255, 0.32);
}

.post-meta--hero .post-meta__byline {
    color: var(--white);
}

.post-meta--hero .post-meta__avatar {
    color: var(--green-deep);
    background: var(--gold);
}

.single-content {
    min-width: 0;
    padding: 34px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(23, 33, 31, 0.05);
}

.single-content:has(.event-feed) {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.single-content:has(.event-feed) .entry-content {
    max-width: none;
}

.single-content:has(.event-feed) .entry-content > h2 {
    margin: 0 0 18px;
}

.single-layout--page {
    grid-template-columns: minmax(0, 980px);
    justify-content: start;
}

.single-layout--page:has(.event-feed) {
    margin-block: 30px 46px;
}

.single-layout--with-aside {
    grid-template-columns: minmax(0, 860px) 300px;
}

.single-layout--page .single-content {
    width: 100%;
    padding: clamp(28px, 4vw, 48px);
}

.entry-content {
    color: #20271c;
    font-size: 1.12rem;
    line-height: 1.72;
}

.entry-content > :first-child {
    margin-top: 0;
}

.entry-content > :last-child {
    margin-bottom: 0;
}

.entry-content p:empty {
    display: none;
}

.entry-content h2,
.entry-content h3 {
    margin: 1.6em 0 0.55em;
    color: var(--green-dark);
    line-height: 1.16;
}

.entry-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.entry-content h3 {
    font-size: clamp(1.32rem, 2vw, 1.7rem);
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 1.55em 0 0.55em;
    color: var(--green-dark);
    font-size: clamp(1.25rem, 1.7vw, 1.48rem);
    line-height: 1.25;
}

.entry-content .branch-school-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}

.entry-content .branch-school-link::after {
    content: "→";
    display: inline-block;
    color: var(--school-coral);
    font-size: 0.9em;
    transition: transform 160ms ease;
}

.entry-content .branch-school-link:hover,
.entry-content .branch-school-link:focus-visible {
    color: var(--school-green);
    text-decoration: underline;
}

.entry-content .branch-school-link:hover::after,
.entry-content .branch-school-link:focus-visible::after {
    transform: translateX(4px);
}

.entry-content .branch-school-link:focus-visible {
    outline: 3px solid rgba(244, 216, 63, 0.72);
    outline-offset: 4px;
}

.entry-content p {
    margin: 0 0 1.05em;
}

.entry-content p:has(> strong:first-child) {
    margin-top: 1.4em;
}

/* The opening paragraph must begin at the card padding. A bold lead used to
 * reintroduce a large top margin after the generic first-child reset. */
.entry-content > p:first-child {
    margin-top: 0;
}

.entry-content p > strong:first-child {
    color: var(--green-dark);
    font-size: 1.08em;
}

.single-layout--page .entry-content {
    max-width: 760px;
}

.single-layout--page .entry-content:has(table) {
    max-width: none;
    overflow-x: auto;
    padding-bottom: 8px;
}

.page-aside {
    position: sticky;
    top: 120px;
}

.side-nav {
    display: grid;
    gap: 6px;
}

.side-nav a {
    display: block;
    padding: 9px 10px;
    color: var(--green-dark);
    background: rgba(46, 91, 36, 0.07);
    border-radius: 6px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.side-nav a:hover {
    color: var(--white);
    background: var(--green);
}

.location-content {
    display: grid;
    gap: 22px;
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 18px;
}

.location-card {
    padding: 22px;
    background: rgba(255, 250, 240, 0.72);
    border: 1px solid rgba(46, 91, 36, 0.14);
    border-radius: var(--radius);
}

.location-card h2 {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.12;
}

.location-card p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 1.05rem;
}

.location-card p:last-child {
    margin-bottom: 0;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.location-map {
    overflow: hidden;
    min-height: 460px;
    margin: 0;
    background: var(--soft);
    border: 1px solid rgba(46, 91, 36, 0.16);
    border-radius: var(--radius);
    box-shadow: 0 16px 44px rgba(23, 33, 31, 0.08);
}

.location-map iframe {
    display: block;
    width: 100%;
    min-height: 460px;
    border: 0;
}

.location-extra:empty,
.location-extra p:empty {
    display: none;
}

.staff-directory {
    display: grid;
    gap: 22px;
}

.staff-directory__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 18px;
    align-items: end;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(46, 91, 36, 0.16);
}

.staff-directory__intro .eyebrow {
    grid-column: 1 / -1;
}

.staff-directory__intro h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.08;
}

.staff-directory__intro p {
    grid-column: 1;
    margin: 0;
    color: var(--muted);
}

.staff-directory__count {
    grid-row: 2 / span 2;
    grid-column: 2;
    padding: 8px 11px;
    color: var(--green-dark);
    background: rgba(227, 236, 215, 0.85);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.staff-directory__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    padding: 18px;
    background: rgba(227, 236, 215, 0.42);
    border: 1px solid rgba(46, 91, 36, 0.15);
    border-radius: var(--radius);
}

.staff-filter--search {
    grid-column: 1 / -1;
}

.staff-filter {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.staff-filter > span {
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
}

.staff-filter input,
.staff-filter select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.2);
    border-radius: 12px;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.2;
    box-sizing: border-box;
}

.staff-filter input:focus,
.staff-filter select:focus {
    outline: 3px solid rgba(150, 211, 221, 0.5);
    outline-offset: 1px;
}

.staff-filter__reset {
    height: 46px;
    min-height: 46px;
    padding: 9px 14px;
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.2);
    border-radius: 12px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.2;
    box-sizing: border-box;
    cursor: pointer;
}

.staff-filter__reset:hover {
    color: var(--white);
    background: var(--green);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.staff-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 15px;
    background: rgba(255, 250, 240, 0.72);
    border: 1px solid rgba(46, 91, 36, 0.13);
    border-radius: var(--radius);
}

.staff-card[hidden] {
    display: none;
}

.staff-card__avatar {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--white);
    background: var(--green);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 900;
}

.staff-card h3 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 1.04rem;
    line-height: 1.18;
}

.staff-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.staff-card .staff-card__room {
    margin-top: 5px;
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.staff-card .staff-card__note {
    margin-top: 6px;
    font-size: 0.84rem;
}

.staff-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

.staff-chip {
    padding: 3px 7px;
    color: var(--green-dark);
    background: rgba(227, 236, 215, 0.82);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.25;
}

.staff-empty {
    margin: 0;
    padding: 28px;
    color: var(--muted);
    background: var(--soft);
    border: 1px dashed rgba(46, 91, 36, 0.25);
    border-radius: var(--radius);
    text-align: center;
}

.staff-empty[hidden] {
    display: none;
}

.staff-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.staff-card__links a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 8px;
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.staff-card__links a:hover {
    color: var(--white);
    background: var(--green);
}

.entry-content table {
    display: table;
    width: 100% !important;
    min-width: 620px;
    margin: 20px 0 30px !important;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.18) !important;
    border-collapse: separate !important;
    border-radius: var(--radius);
    border-spacing: 0 !important;
    box-shadow: 0 14px 38px rgba(23, 33, 31, 0.06);
    font-family: inherit !important;
}

.entry-content th,
.entry-content td {
    min-height: 0 !important;
    padding: 12px 14px !important;
    color: var(--ink) !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid rgba(46, 91, 36, 0.13) !important;
    border-bottom: 1px solid rgba(46, 91, 36, 0.13) !important;
    font-family: inherit !important;
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
}

.entry-content th:last-child,
.entry-content td:last-child {
    border-right: 0 !important;
}

.entry-content tr:last-child th,
.entry-content tr:last-child td {
    border-bottom: 0 !important;
}

.entry-content th,
.entry-content thead th,
.entry-content tbody tr:first-child td,
.entry-content tbody tr:nth-child(2) td {
    color: var(--green-dark) !important;
    background: rgba(227, 236, 215, 0.78) !important;
    font-weight: 850 !important;
    text-align: center !important;
}

.entry-content tbody tr:nth-child(even):not(:first-child):not(:nth-child(2)) td {
    background: rgba(255, 250, 240, 0.72) !important;
}

.entry-content tbody tr:hover td {
    background: rgba(241, 212, 71, 0.14) !important;
}

.entry-content tbody tr:has(strong) td {
    color: var(--green-dark) !important;
    background: rgba(227, 236, 215, 0.46) !important;
    font-weight: 850 !important;
}

.entry-content tbody tr:has(strong):hover td {
    background: rgba(227, 236, 215, 0.7) !important;
}

.entry-content td strong,
.entry-content th strong {
    color: var(--green-dark);
    font-weight: 900;
}

.entry-content table p,
.entry-content table span,
.entry-content table strong {
    margin: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.entry-content table p {
    color: inherit !important;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
    max-width: 100%;
}

.legacy-gallery {
    display: grid;
    gap: 4px;
    margin: 0 0 24px;
    padding: 18px;
    color: var(--green-dark);
    background: var(--mint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.linked-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin: 26px 0;
    padding: 16px 18px;
    background: rgba(255, 250, 240, 0.92);
    border: 1px solid rgba(48, 86, 37, 0.14);
    border-left: 5px solid var(--green);
    border-radius: var(--radius);
    box-shadow: none;
}

.linked-gallery--has-image {
    grid-template-columns: 156px minmax(0, 1fr) auto;
}

.linked-gallery__image {
    display: block;
    align-self: stretch;
    min-height: 104px;
    overflow: hidden;
    background: var(--mint);
    border-radius: calc(var(--radius) - 2px);
}

.linked-gallery__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 104px;
    object-fit: cover;
    transition: transform 180ms ease;
}

.linked-gallery__image:hover img,
.linked-gallery__image:focus-visible img {
    transform: scale(1.035);
}

.linked-gallery__body span {
    color: var(--berry);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.linked-gallery__body h2 {
    margin: 2px 0 3px;
    color: var(--green-dark);
    font-size: 1.22rem;
}

.linked-gallery__body p {
    margin: 0;
    color: var(--muted);
}

.linked-gallery__action {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    color: var(--white);
    background: var(--green);
    border-radius: var(--radius);
    font-weight: 850;
    text-decoration: none;
}

.linked-gallery__action:hover {
    color: var(--white);
    background: var(--berry);
}

.single-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.single-gallery a {
    display: block;
    overflow: hidden;
    background: var(--soft);
    border-radius: 7px;
}

.single-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 180ms ease;
}

.single-gallery a:hover img {
    transform: scale(1.04);
}

.has-gallery-lightbox,
.has-gallery-lightbox body {
    overflow: hidden;
    overscroll-behavior: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-width: 0;
    min-height: 0;
    padding:
        max(min(4vw, 32px), env(safe-area-inset-top))
        max(min(4vw, 32px), env(safe-area-inset-right))
        max(min(4vw, 32px), env(safe-area-inset-bottom))
        max(min(4vw, 32px), env(safe-area-inset-left));
    overflow: hidden;
    background: rgba(10, 18, 9, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox__inner {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    width: min(100%, 1600px);
    max-height: 100%;
    justify-self: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 14px;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox__thumbs {
    display: flex;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 6px 2px 2px;
    overscroll-behavior: contain;
    scrollbar-color: rgba(46, 91, 36, 0.55) rgba(225, 215, 191, 0.45);
    scrollbar-width: thin;
}

.gallery-lightbox__thumbs button {
    flex: 0 0 74px;
    overflow: hidden;
    padding: 0;
    background: var(--white);
    border: 2px solid rgba(225, 215, 191, 0.78);
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(23, 33, 31, 0.08);
    cursor: pointer;
    opacity: 0.74;
    transition: border-color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.gallery-lightbox__thumbs button.is-active {
    border-color: var(--green);
    opacity: 1;
    transform: translateX(2px);
}

.gallery-lightbox__thumbs button:hover,
.gallery-lightbox__thumbs button:focus-visible {
    border-color: var(--gold);
    opacity: 1;
}

.gallery-lightbox__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-lightbox__stage {
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    place-items: center;
    background: #f8f3e8;
    border-radius: 7px;
    touch-action: pan-y pinch-zoom;
}

.gallery-lightbox__stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.gallery-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 48px;
    height: 48px;
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.gallery-lightbox__controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    justify-self: center;
    padding: 8px;
    color: var(--white);
    background: rgba(23, 49, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.gallery-lightbox__controls button {
    display: grid;
    width: 44px;
    height: 38px;
    place-items: center;
    color: var(--green-dark);
    background: var(--white);
    border: 0;
    border-radius: 999px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-lightbox__controls span {
    min-width: 72px;
    text-align: center;
    font-weight: 850;
}

.cookie-manage {
    position: fixed;
    right: 24px;
    bottom: 108px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(46, 91, 36, 0.18);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(12, 22, 17, 0.14);
    font: inherit;
    font-weight: 700;
}

.cookie-manage:hover,
.cookie-manage:focus-visible {
    color: var(--white);
    background: var(--green);
}

.cookie-banner {
    position: fixed;
    inset: auto 20px 20px 20px;
    z-index: 90;
}

.cookie-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto;
    gap: 20px;
    align-items: center;
    padding: 20px 22px;
    background: rgba(18, 27, 20, 0.94);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(12, 22, 17, 0.35);
}

.cookie-banner__copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-banner__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 22, 17, 0.58);
}

.cookie-modal[hidden] {
    display: none;
}

.cookie-modal__panel {
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fffdf7;
    border: 1px solid rgba(46, 91, 36, 0.14);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(12, 22, 17, 0.22);
}

.cookie-modal__header,
.cookie-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
}

.cookie-modal__header {
    border-bottom: 1px solid rgba(46, 91, 36, 0.12);
}

.cookie-modal__header h2 {
    margin: 6px 0 0;
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.cookie-modal__body {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.cookie-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(46, 91, 36, 0.14);
    border-radius: 18px;
}

.cookie-option strong,
.cookie-option small {
    display: block;
}

.cookie-option small {
    margin-top: 6px;
    color: var(--ink-soft);
}

.cookie-option input {
    inline-size: 22px;
    block-size: 22px;
}

.cookie-details {
    padding: 18px 20px;
    background: rgba(46, 91, 36, 0.05);
    border: 1px solid rgba(46, 91, 36, 0.12);
    border-radius: 18px;
}

.cookie-details h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.cookie-details ul {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-soft);
}

.cookie-details li + li {
    margin-top: 8px;
}

.cookie-option--locked {
    background: rgba(46, 91, 36, 0.06);
}

.cookie-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 44px;
    block-size: 44px;
    color: var(--green-dark);
    background: rgba(46, 91, 36, 0.08);
    border: 1px solid rgba(46, 91, 36, 0.14);
    border-radius: 999px;
    font-size: 1.6rem;
}

.has-cookie-modal {
    overflow: hidden;
}

.consent-embed-placeholder {
    display: grid;
    gap: 14px;
    padding: clamp(24px, 3vw, 34px);
    background: linear-gradient(180deg, rgba(46, 91, 36, 0.06), rgba(46, 91, 36, 0.02));
    border: 1px solid rgba(46, 91, 36, 0.12);
    border-radius: 26px;
}

.consent-embed-placeholder h2 {
    margin: 0;
}

.consent-embed-placeholder p {
    margin: 0;
}

.location-map[data-consent-embed] iframe {
    border-radius: 26px;
}

.a11y-open {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    min-width: 230px;
    padding: 18px 24px;
    color: var(--white);
    background: #111;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 850;
    cursor: pointer;
}

.a11y-open:hover,
.a11y-open:focus-visible {
    color: var(--white);
    background: var(--green-dark);
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.a11y-backdrop {
    position: fixed;
    inset: 0;
    z-index: 125;
    background: rgba(14, 20, 17, 0.56);
    backdrop-filter: blur(4px);
}

.a11y-panel {
    position: fixed;
    inset: min(5vh, 48px) max(24px, calc((100vw - 980px) / 2));
    z-index: 130;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 20px;
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding: clamp(24px, 3vw, 42px);
    color: var(--white);
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.a11y-panel[hidden],
.a11y-backdrop[hidden] {
    display: none;
}

.a11y-head,
.a11y-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.a11y-head__copy {
    max-width: 58rem;
}

.a11y-head__copy .eyebrow {
    margin-bottom: 10px;
}

.a11y-head__copy p:last-child {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
}

.a11y-head h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.a11y-close {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--white);
    background: #2f75ff;
    border: 0;
    border-radius: 50%;
    font: inherit;
    font-size: 2.1rem;
    line-height: 1;
    cursor: pointer;
}

.a11y-reset,
.a11y-option,
.a11y-step,
.a11y-range {
    font: inherit;
}

.a11y-reset,
.a11y-option,
.a11y-step {
    color: var(--white);
    background: #303030;
    border: 1px solid #3d3d3d;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.a11y-reset {
    padding: 12px 16px;
}

.a11y-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.a11y-option {
    display: grid;
    gap: 8px;
    min-height: 98px;
    padding: 18px 20px;
    text-align: left;
}

.a11y-option strong,
.a11y-option small {
    display: block;
}

.a11y-option strong {
    font-size: 1.08rem;
}

.a11y-option small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.4;
}

.a11y-option:hover,
.a11y-option:focus-visible,
.a11y-step:hover,
.a11y-step:focus-visible,
.a11y-reset:hover,
.a11y-reset:focus-visible,
.a11y-close:hover,
.a11y-close:focus-visible,
.a11y-range:hover,
.a11y-range:focus-visible {
    border-color: #6ea2ff;
    outline: 2px solid #6ea2ff;
    outline-offset: 2px;
}

.a11y-option[aria-pressed="true"] {
    background: #26385c;
    border-color: #6ea2ff;
    outline: 2px solid #6ea2ff;
}

.a11y-controls {
    display: grid;
    gap: 12px;
}

.a11y-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #303030;
    border: 1px solid #3b3b3b;
    border-radius: 10px;
}

.a11y-row__meta {
    display: grid;
    gap: 4px;
}

.a11y-row__meta strong,
.a11y-row__meta small {
    display: block;
}

.a11y-row__meta small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.4;
}

.a11y-range {
    width: 100%;
    accent-color: #2f75ff;
    cursor: pointer;
}

.a11y-row span {
    min-width: 68px;
    text-align: right;
    font-weight: 850;
}

.a11y-step {
    min-width: 54px;
    min-height: 46px;
    padding: 8px 14px;
    font-size: 1.3rem;
}

.a11y-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.has-a11y-panel {
    overflow: hidden;
}

@media (max-width: 900px) {
    .a11y-panel {
        inset: 12px;
        max-height: calc(100vh - 24px);
        border-radius: 18px;
    }

    .a11y-grid {
        grid-template-columns: 1fr;
    }

    .a11y-row {
        grid-template-columns: 1fr;
    }

    .a11y-row span {
        text-align: left;
    }
}

@media (max-width: 700px) {
    .a11y-open {
        right: 14px;
        bottom: 14px;
        min-width: 0;
        max-width: calc(100vw - 28px);
        padding: 14px 18px;
        font-size: 0.95rem;
    }

    .a11y-head {
        flex-direction: column;
        align-items: stretch;
        padding-right: 52px;
    }

    .a11y-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .a11y-reset {
        width: 100%;
    }

    .a11y-close {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        font-size: 1.6rem;
    }
}

/* Quiet quick links: the strip is a utility, not a second navigation. */
.home .home-quickbar .hero__panel {
    grid-template-columns: minmax(0, 1fr);
    width: min(1240px, 100%);
    gap: 0;
}

.home .home-quickbar .hero__panel-links a,
.home .home-quickbar .hero__panel-links a:nth-child(2n),
.home .home-quickbar .hero__panel-links a:nth-child(3n) {
    min-height: 44px;
    justify-content: center;
    padding: 5px 16px;
    font-size: 0.84rem;
    font-weight: 760;
}

.home .home-quickbar .hero__panel-links a::before {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    margin-right: 7px;
    border-radius: 50%;
    box-shadow: none;
    font-size: 0.67rem;
}

.home .home-quickbar .hero__panel-links a:hover::before,
.home .home-quickbar .hero__panel-links a:focus-visible::before {
    box-shadow: none;
    transform: none;
}

.home .home-quickbar .hero__panel-links a:hover,
.home .home-quickbar .hero__panel-links a:focus-visible {
    color: var(--school-green);
    background: transparent;
    text-decoration: underline;
    text-decoration-color: var(--school-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.home .home-quickbar .hero__panel-links .home-quickbar__mobile-only {
    display: none;
}

@media (max-width: 700px) {
    .home .home-quickbar .hero__panel-links .home-quickbar__mobile-only {
        display: flex;
    }

    .home .home-quickbar .hero__panel-links a,
    .home .home-quickbar .hero__panel-links a:nth-child(2n),
    .home .home-quickbar .hero__panel-links a:nth-child(3n) {
        min-height: 40px;
        padding: 5px 7px;
        font-size: 0.75rem;
    }
}

/* Embedded public timetable. */
.timetable-page .single-layout {
    display: block;
}

.timetable-page .single-content {
    width: 100%;
    max-width: none;
}

.timetable-embed {
    display: grid;
    gap: 14px;
}

.timetable-embed__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.timetable-embed__intro p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.timetable-embed__frame {
    overflow: hidden;
    min-height: 720px;
    height: calc(100vh - 190px);
    max-height: 1050px;
    background: #f4f6f3;
    border: 1px solid rgba(21, 53, 22, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(23, 33, 31, 0.08);
}

.timetable-embed__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .timetable-page .single-content {
        padding: 14px;
    }

    .timetable-embed__intro {
        align-items: stretch;
    }

    .timetable-embed__intro .button {
        width: 100%;
        justify-content: center;
    }

    .timetable-embed__frame {
        min-height: 640px;
        height: calc(100vh - 150px);
        border-radius: 12px;
    }
}

/* Curated resource hub for safe and responsible internet use. */
.safe-web {
    display: grid;
    gap: 24px;
    margin-top: 26px;
}

.safe-web__heading {
    max-width: 760px;
}

.safe-web__heading h2 {
    margin: 5px 0 10px;
    color: var(--school-deep);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.safe-web__heading > p:last-child {
    margin: 0;
    color: var(--school-muted);
    font-size: 1rem;
}

.safe-web__help {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(244, 216, 63, 0.16), transparent 28%),
        var(--school-deep);
    border-radius: 18px 6px 18px 6px;
    box-shadow: 8px 8px 0 rgba(244, 216, 63, 0.35);
}

.safe-web__help-symbol {
    display: grid;
    min-width: 78px;
    min-height: 58px;
    place-items: center;
    padding: 8px;
    color: var(--school-deep);
    background: var(--school-yellow);
    border-radius: 13px 4px 13px 4px;
    font-weight: 900;
}

.safe-web__help strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 1.1rem;
}

.safe-web__help p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.safe-web__help > a {
    padding: 10px 14px;
    color: var(--school-deep);
    background: #fff;
    border-radius: 10px 3px 10px 3px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.safe-web__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.safe-web-card {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    padding: 20px;
    color: var(--school-deep);
    background: #fff;
    border: 1px solid rgba(21, 53, 22, 0.13);
    border-radius: 16px 5px 16px 5px;
    box-shadow: 5px 5px 0 rgba(169, 219, 229, 0.25);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.safe-web-card:nth-child(3n + 2) {
    box-shadow: 5px 5px 0 rgba(244, 216, 63, 0.3);
}

.safe-web-card:nth-child(3n) {
    box-shadow: 5px 5px 0 rgba(242, 140, 111, 0.22);
}

.safe-web-card:hover,
.safe-web-card:focus-visible {
    border-color: rgba(21, 53, 22, 0.35);
    box-shadow: 8px 8px 0 rgba(169, 219, 229, 0.35);
    transform: translate(-2px, -2px);
}

.safe-web-card__top {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 17px;
}

.safe-web-card__symbol {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--school-deep);
    background: var(--school-blue);
    border-radius: 10px 3px 10px 3px;
    font-size: 0.88rem;
    font-weight: 900;
}

.safe-web-card:nth-child(3n + 2) .safe-web-card__symbol {
    background: var(--school-yellow);
}

.safe-web-card:nth-child(3n) .safe-web-card__symbol {
    background: var(--school-coral);
}

.safe-web-card__label {
    color: var(--school-muted);
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.safe-web-card > strong {
    margin-bottom: 8px;
    color: var(--school-deep);
    font-size: 1.18rem;
    line-height: 1.2;
}

.safe-web-card__description {
    color: var(--school-muted);
    font-size: 0.91rem;
    line-height: 1.55;
}

.safe-web-card__action {
    margin-top: auto;
    padding-top: 18px;
    color: var(--school-green);
    font-size: 0.84rem;
    font-weight: 850;
}

/* Curated project overview, matching the resource-hub visual language. */
.project-hub {
    display: grid;
    gap: 24px;
    margin-top: 26px;
}

.project-hub__heading {
    max-width: 780px;
}

.project-hub__heading h2 {
    margin: 5px 0 10px;
    color: var(--school-deep);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.project-hub__heading > p:last-child {
    margin: 0;
    color: var(--school-muted);
    font-size: 1rem;
}

.project-hub__lead {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(244, 216, 63, 0.16), transparent 28%),
        var(--school-deep);
    border-radius: 18px 6px 18px 6px;
    box-shadow: 8px 8px 0 rgba(244, 216, 63, 0.35);
}

.project-hub__lead-symbol {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    color: var(--school-deep);
    background: var(--school-yellow);
    border-radius: 13px 4px 13px 4px;
    font-size: 1.55rem;
    font-weight: 950;
}

.project-hub__lead strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 1.1rem;
}

.project-hub__lead p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.project-hub__lead > a {
    padding: 10px 14px;
    color: var(--school-deep);
    background: #fff;
    border-radius: 10px 3px 10px 3px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.project-hub__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    scroll-margin-top: 140px;
}

.project-card {
    display: flex;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    color: var(--school-deep);
    background: #fff;
    border: 1px solid rgba(21, 53, 22, 0.13);
    border-radius: 19px 6px 19px 6px;
    box-shadow: 6px 8px 0 rgba(169, 219, 229, 0.28);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-card:nth-child(3n + 2) {
    box-shadow: 6px 8px 0 rgba(244, 216, 63, 0.3);
}

.project-card:nth-child(3n) {
    box-shadow: 6px 8px 0 rgba(242, 140, 111, 0.22);
}

.project-card:first-child {
    display: grid;
    min-height: 310px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
}

.project-card:hover,
.project-card:focus-visible {
    border-color: rgba(21, 53, 22, 0.35);
    box-shadow: 9px 11px 0 rgba(169, 219, 229, 0.38);
    transform: translate(-2px, -2px);
}

.project-card__media {
    display: grid;
    height: 230px;
    min-height: 230px;
    flex: 0 0 230px;
    overflow: hidden;
    place-items: center;
    background:
        linear-gradient(rgba(21, 53, 22, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 53, 22, 0.035) 1px, transparent 1px),
        #f8f2de;
    background-size: 24px 24px, 24px 24px, auto;
}

.project-card:first-child .project-card__media {
    height: 310px;
    min-height: 310px;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.project-card:first-child .project-card__media img {
    min-height: 0;
}

.project-card__media--contain img {
    max-width: 86%;
    max-height: 86%;
    min-height: 0;
    object-fit: contain;
}

.project-card__media--top img {
    object-position: 50% 18%;
}

.project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 21px;
}

.project-card:first-child .project-card__body {
    align-self: center;
    padding: 28px;
}

.project-card__label {
    margin-bottom: 10px;
    color: var(--school-green);
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-card__body > strong {
    margin-bottom: 9px;
    color: var(--school-deep);
    font-size: 1.22rem;
    line-height: 1.2;
}

.project-card:first-child .project-card__body > strong {
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.project-card__description {
    color: var(--school-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.project-card__action {
    margin-top: auto;
    padding-top: 18px;
    color: var(--school-green);
    font-size: 0.84rem;
    font-weight: 850;
}

@media (max-width: 700px) {
    .safe-web__help {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 17px;
    }

    .safe-web__help > a {
        grid-column: 1 / -1;
        text-align: center;
    }

    .safe-web__grid {
        grid-template-columns: 1fr;
    }

    .safe-web-card {
        min-height: 0;
    }

    .project-hub__lead {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 17px;
    }

    .project-hub__lead > a {
        grid-column: 1 / -1;
        text-align: center;
    }

    .project-hub__grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card:first-child {
        display: flex;
        min-height: 0;
        grid-column: auto;
    }

    .project-card:first-child .project-card__media,
    .project-card:first-child .project-card__media img {
        height: 220px;
        min-height: 220px;
    }

    .project-card:first-child .project-card__body {
        align-self: auto;
        padding: 21px;
    }
}

/* Tables should fill their frame on desktop; horizontal scrolling is mobile-only. */
@media (min-width: 721px) {
    .entry-content table {
        display: table;
        overflow-x: visible !important;
    }
}

.school-hours-lead {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 26px;
    width: min(100%, 800px);
    margin-inline: auto;
}

.school-hours-clock {
    width: 96px;
    border-width: 6px;
}

.school-hours-clock::before,
.school-hours-clock::after {
    top: -12px;
    width: 30px;
    height: 18px;
}

.school-hours-clock::before {
    left: 10px;
}

.school-hours-clock::after {
    right: 10px;
}

.entry-content .school-bell-table {
    display: table;
    table-layout: fixed;
}

@media (max-width: 720px) {
    .school-hours-lead {
        width: 100%;
    }

    .entry-content .school-bell-table {
        display: table;
        min-width: 0;
    }
}

@media (min-width: 901px) {
    .school-community-band__grid:has(.anthem-card[open]) {
        grid-template-columns: minmax(360px, 0.46fr) minmax(0, 1fr);
        align-items: start;
    }

    .home .hero__utilities {
        margin-top: 24px;
    }
}

/* Polished, still lightweight quick-access bar. */
.home-quickbar {
    background:
        linear-gradient(90deg, rgba(244, 216, 63, 0.08), transparent 28%, rgba(169, 219, 229, 0.08) 72%, transparent),
        #fffdf6;
}

.home .home-quickbar .hero__panel {
    gap: 18px;
}

.home .home-quickbar .hero__panel-heading {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 13px;
    color: #fff;
    background: var(--school-deep);
    border-radius: 10px 3px 10px 3px;
    box-shadow: 3px 3px 0 rgba(244, 216, 63, 0.72);
}

.home .home-quickbar .hero__panel-heading::before {
    content: "✦";
    color: var(--school-yellow);
    font-size: 0.78rem;
}

.home .home-quickbar .hero__panel-heading strong {
    color: #fff;
    letter-spacing: 0.01em;
}

.home .home-quickbar .hero__panel-links a,
.home .home-quickbar .hero__panel-links a:nth-child(2n),
.home .home-quickbar .hero__panel-links a:nth-child(3n) {
    position: relative;
    border-left: 0;
    font-size: 0.9rem;
    transition: color 160ms ease, background-color 160ms ease;
}

.home .home-quickbar .hero__panel-links a + a::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 22px;
    content: "";
    background: rgba(21, 53, 22, 0.13);
    transform: translateY(-50%);
}

.home .home-quickbar .hero__panel-links a::before {
    border-radius: 8px 3px 8px 3px;
    box-shadow: 2px 2px 0 rgba(21, 53, 22, 0.1);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.home .home-quickbar .hero__panel-links a:hover::before,
.home .home-quickbar .hero__panel-links a:focus-visible::before {
    box-shadow: 3px 3px 0 rgba(21, 53, 22, 0.13);
    transform: rotate(-4deg) scale(1.06);
}

.home .home-quickbar .hero__panel-links a:hover,
.home .home-quickbar .hero__panel-links a:focus-visible {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 700px) {
    .home .home-quickbar .hero__panel-heading {
        display: none;
    }

    .home .home-quickbar .hero__panel-links a + a::after {
        display: none;
    }

}

.document-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    padding: min(4vw, 34px);
    background: rgba(10, 18, 9, 0.82);
    backdrop-filter: blur(8px);
}

.document-modal[hidden] {
    display: none;
}

.document-modal__panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.document-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.document-modal__header h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: 1.15rem;
}

.document-modal__header div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.document-modal__download {
    color: var(--white);
    background: var(--green);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-weight: 850;
    text-decoration: none;
}

.document-modal__download:hover,
.document-modal__download:focus-visible {
    color: var(--white);
    background: var(--green-dark);
}

.document-modal__close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.document-modal iframe {
    width: 100%;
    height: 100%;
    min-height: 70vh;
    border: 0;
    background: #f4f2ec;
}

.legacy-gallery strong {
    font-size: 1.05rem;
}

.legacy-gallery span {
    color: var(--muted);
}

.featured-image {
    margin: 0 0 28px;
}

.featured-image img {
    width: 100%;
    border-radius: var(--radius);
}

.featured-image--project {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: clamp(12px, 2vw, 20px);
    background: #fffdf6;
    border: 1px solid rgba(21, 53, 22, 0.12);
    border-radius: var(--radius);
}

.featured-image--project img {
    width: auto;
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.featured-image--gallery {
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-featured-link {
    display: block;
    cursor: zoom-in;
}

.gallery-featured-link img {
    display: block;
    transition: transform 180ms ease, filter 180ms ease;
}

.gallery-featured-link:hover img,
.gallery-featured-link:focus-visible img {
    filter: brightness(0.94);
    transform: scale(1.015);
}

.search-form {
    display: flex;
    max-width: 620px;
    gap: 10px;
    margin-top: 20px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
}

.search-form button {
    min-height: 46px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--berry);
    border: 0;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 850;
}

.site-footer {
    margin-top: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(248, 234, 208, 0.9)),
        var(--paper);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(170px, 1fr));
    gap: 28px 36px;
    padding-block: 48px;
}

.footer-grid > section,
.footer-grid > nav {
    min-width: 0;
}

.footer-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--green-dark);
    text-decoration: none;
}

.footer-brand__link img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    padding: 5px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(32, 63, 25, 0.12);
}

.footer-brand__link strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.05;
}

.footer-brand__link small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-weight: 800;
}

.footer-brand p,
.footer-contact p {
    margin: 14px 0 0;
    color: var(--muted);
}

.footer-meta {
    font-weight: 800;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--green-dark);
    font-size: 1.1rem;
}

.site-footer a {
    color: var(--green-dark);
    font-weight: 800;
}

.site-footer ul {
    display: grid;
    gap: 10px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    text-decoration: none;
}

.footer-links a::before {
    width: 7px;
    height: 7px;
    margin-right: 10px;
    background: var(--gold);
    border: 1px solid rgba(32, 63, 25, 0.22);
    border-radius: 50%;
    content: "";
}

.footer-links a:hover {
    color: var(--berry);
    text-decoration: underline;
}

.footer-bottom {
    color: var(--white);
    background: var(--green-dark);
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-bottom p {
    margin: 0;
    padding-block: 14px;
}

.footer-bottom a {
    color: var(--white);
}

.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-bottom .footer-login {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.88rem;
    font-weight: 700;
    opacity: 0.72;
    text-decoration: none;
}

.footer-bottom .footer-login:hover,
.footer-bottom .footer-login:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.portal-shell .single-hero p {
    max-width: 660px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.08rem;
    line-height: 1.65;
}

.teacher-shortcuts {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 45;
    display: grid;
    justify-items: start;
    gap: 10px;
}

.teacher-shortcuts__toggle {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 9px;
    padding: 10px 16px 10px 11px;
    color: var(--white);
    background: var(--green);
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(23, 33, 31, 0.24);
    cursor: pointer;
    font: inherit;
}

.teacher-shortcuts__toggle > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--green-dark);
    background: var(--yellow);
    border-radius: 50%;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.teacher-shortcuts__toggle strong {
    font-size: 0.94rem;
    font-weight: 900;
}

.teacher-shortcuts__toggle:hover,
.teacher-shortcuts__toggle:focus-visible {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.teacher-shortcuts__menu {
    display: grid;
    width: min(300px, calc(100vw - 36px));
    padding: 10px;
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.2);
    border-radius: 18px;
    box-shadow: 0 20px 54px rgba(23, 33, 31, 0.24);
}

.teacher-shortcuts__menu > strong {
    padding: 8px 10px 10px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.teacher-shortcuts__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--green-dark);
    border-radius: 11px;
    font-weight: 850;
    text-decoration: none;
}

.teacher-shortcuts__menu a span {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--white);
    background: var(--green);
    border-radius: 50%;
    line-height: 1;
}

.teacher-shortcuts__menu a:hover,
.teacher-shortcuts__menu a:focus-visible {
    background: rgba(241, 212, 71, 0.22);
}

@media (max-width: 600px) {
    .teacher-shortcuts {
        left: 12px;
        bottom: 12px;
    }

    .teacher-shortcuts__toggle {
        min-height: 46px;
        padding: 8px 13px 8px 8px;
    }
}

.portal-layout {
    display: grid;
    gap: 18px;
    max-width: 1060px;
    margin-block: 42px;
}

.portal-card {
    padding: clamp(22px, 3vw, 34px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(23, 33, 31, 0.06);
}

.portal-card h2 {
    margin: 0 0 18px;
    color: var(--green-dark);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.12;
}

.portal-card--intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 18px;
}

.portal-card--intro span {
    color: var(--muted);
    font-weight: 800;
}

.portal-card--intro h2 {
    margin: 2px 0 0;
}

.portal-message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    color: var(--berry);
    background: #fff7f2;
    border: 1px solid rgba(153, 35, 76, 0.18);
    border-radius: var(--radius);
    font-weight: 850;
}

.portal-message.is-success {
    color: var(--green-dark);
    background: #f2f8ed;
    border-color: rgba(46, 91, 36, 0.18);
}

.portal-message a {
    color: inherit;
}

.portal-quick-upload {
    display: grid;
    gap: 18px;
    padding: clamp(22px, 3vw, 32px);
    background: linear-gradient(145deg, rgba(239, 246, 225, 0.92), rgba(226, 242, 244, 0.92));
    border: 1px solid rgba(46, 91, 36, 0.16);
    border-radius: var(--radius);
}

.portal-quick-upload__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    align-items: end;
    gap: 24px;
}

.portal-quick-upload__heading span {
    color: var(--berry);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-quick-upload__heading h2 {
    margin: 4px 0 0;
    color: var(--green-dark);
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.08;
}

.portal-quick-upload__heading p,
.portal-quick-upload__help {
    margin: 0;
    color: var(--muted);
}

.portal-quick-upload__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.portal-quick-card {
    display: grid;
    align-content: start;
    gap: 16px;
    box-shadow: none;
}

.portal-quick-card--menu {
    border-top: 7px solid var(--gold);
}

.portal-quick-card--substitutions {
    border-top: 7px solid var(--berry);
}

.portal-quick-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--green-dark);
    background: var(--gold);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 950;
}

.portal-quick-card--substitutions .portal-quick-card__icon {
    color: var(--white);
    background: var(--berry);
}

.portal-quick-card .eyebrow {
    margin: 0 0 3px;
}

.portal-quick-card h3 {
    margin: 0;
    color: var(--green-dark);
    font-size: 1.4rem;
}

.portal-quick-card p {
    margin: 5px 0 0;
    color: var(--muted);
}

.portal-quick-card label {
    display: grid;
    gap: 7px;
    color: var(--green-dark);
    font-weight: 850;
}

.portal-quick-card input[type='file'],
.portal-quick-card input[type='date'] {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.2);
    border-radius: 11px;
    font: inherit;
}

.portal-quick-card .portal-date-picker {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.2);
    border-radius: 11px;
}

.portal-quick-card .portal-date-picker:focus-within {
    border-color: var(--berry);
    box-shadow: 0 0 0 3px rgba(153, 35, 73, 0.12);
}

.portal-quick-card .portal-date-picker__display {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
}

.portal-quick-card .portal-date-picker__button {
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--green);
    border-left: 1px solid rgba(46, 91, 36, 0.2);
}

.portal-quick-card .portal-date-picker__button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.portal-quick-card .portal-date-picker__native {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 100%;
    min-height: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.portal-quick-card .button {
    justify-self: start;
    border: 0;
    cursor: pointer;
}

.portal-manage {
    display: grid;
    gap: 18px;
    scroll-margin-top: 130px;
}

.portal-manage__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.portal-manage__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-manage__head span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-manage__head h2 {
    margin: 2px 0 0;
}

.portal-manage-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(170px, 1fr));
    gap: 10px;
    align-items: end;
    padding: 14px;
    background: rgba(248, 245, 235, 0.62);
    border: 1px solid rgba(46, 91, 36, 0.13);
    border-radius: 14px;
}

.portal-manage-filter label {
    display: grid;
    gap: 6px;
}

.portal-manage-filter span {
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-manage-filter input,
.portal-manage-filter select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.18);
    border-radius: 11px;
    font: inherit;
    font-weight: 750;
}

.portal-manage-filter__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.portal-manage-summary {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 850;
}

.portal-edit-notice {
    padding: 12px 14px;
    color: var(--green-dark);
    background: rgba(46, 91, 36, 0.08);
    border: 1px solid rgba(46, 91, 36, 0.16);
    border-radius: 12px;
    font-weight: 850;
}

.portal-manage__list {
    display: grid;
    gap: 8px;
}

.portal-manage-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(46, 91, 36, 0.13);
    border-radius: 12px;
}

.portal-manage-item.is-active {
    background: rgba(46, 91, 36, 0.09);
    border-color: rgba(46, 91, 36, 0.28);
}

.portal-manage-item span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 4px;
    padding: 4px 8px;
    color: var(--green-dark);
    background: rgba(46, 91, 36, 0.09);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-manage-item h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.portal-manage-item p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.portal-manage-item p em {
    font-style: normal;
}

.portal-manage-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-manage-item__actions .button {
    min-height: 42px;
    padding: 10px 14px;
}

.button--danger {
    color: #8d251f;
    background: #fff4f2;
    border-color: rgba(141, 37, 31, 0.28);
}

.button--danger:hover,
.button--danger:focus-visible {
    color: #fff;
    background: #8d251f;
    border-color: #8d251f;
}

.portal-content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
}

.home-posts-more {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.single-gallery-panel {
    margin-top: 28px;
}

.single-gallery-panel__head {
    display: flex;
    gap: 20px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.single-gallery-panel__head span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.single-gallery-panel__head h2 {
    margin: 4px 0 0;
}

.portal-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
}

.portal-pagination a,
.portal-pagination span {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.16);
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.portal-pagination a:hover,
.portal-pagination a:focus-visible,
.portal-pagination a.is-current {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

.portal-pagination__direction {
    min-width: auto !important;
}

.portal-form {
    display: grid;
    gap: 18px;
    scroll-margin-top: 130px;
}

.portal-type-grid,
.portal-related-grid,
.portal-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.portal-type-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 118px;
    padding: 18px;
    background: rgba(248, 245, 235, 0.72);
    border: 1px solid rgba(46, 91, 36, 0.16);
    border-radius: var(--radius);
    cursor: pointer;
}

.portal-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.portal-type-card strong {
    color: var(--green-dark);
    font-size: 1.15rem;
}

.portal-type-card span {
    color: var(--muted);
    line-height: 1.5;
}

.portal-type-card:has(input:checked) {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 14px 32px rgba(46, 91, 36, 0.16);
}

.portal-type-card:has(input:checked) strong,
.portal-type-card:has(input:checked) span {
    color: var(--white);
}

.portal-calendar-choice {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

/* The nested choice belongs only to a linked event inside an ordinary post. */
.portal-form:has(input[name="submission_type"][value="event"]:checked) .portal-calendar-choice,
.portal-form:has(input[name="submission_type"][value="assessment"]:checked) .portal-calendar-choice {
    display: none !important;
}

/* Keep the assessment form visible even if an older cached script hid it. */
.portal-form:has(input[name="submission_type"][value="assessment"]:checked) [data-portal-section="event"] {
    display: block !important;
}

.portal-calendar-choice legend {
    margin-bottom: 8px;
    color: var(--green-dark);
    font-weight: 900;
}

.portal-calendar-choice__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.portal-field-grid .portal-calendar-choice__option {
    position: relative;
    display: grid;
    gap: 5px;
    min-height: 104px;
    padding: 16px;
    background: rgba(220, 235, 238, 0.72);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
}

.portal-field-grid .portal-calendar-choice__option--assessments {
    background: rgba(247, 225, 231, 0.8);
}

.portal-field-grid .portal-calendar-choice__option input {
    position: absolute;
    width: 1px;
    min-height: 1px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.portal-calendar-choice__option strong {
    color: var(--green-dark);
    font-size: 1.05rem;
}

.portal-calendar-choice__option span {
    color: var(--muted) !important;
    font-weight: 650 !important;
    line-height: 1.4;
}

.portal-calendar-choice__option:has(input:checked) {
    border-color: #34747e;
    box-shadow: 0 10px 24px rgba(52, 116, 126, 0.14);
}

.portal-calendar-choice__option--assessments:has(input:checked) {
    border-color: #914058;
    box-shadow: 0 10px 24px rgba(145, 64, 88, 0.14);
}

@media (max-width: 700px) {
    .portal-calendar-choice__options {
        grid-template-columns: 1fr;
    }
}

.portal-fields {
    display: grid;
    gap: 16px;
}

.portal-fields label,
.portal-field-grid label {
    display: grid;
    gap: 8px;
}

.portal-fields label span,
.portal-field-grid label span {
    color: var(--green-dark);
    font-weight: 850;
}

.portal-fields .portal-highlight-option {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(241, 212, 71, 0.15);
    border: 1px solid rgba(153, 35, 73, 0.22);
    border-radius: var(--radius);
    cursor: pointer;
}

.portal-fields .portal-highlight-option input {
    width: 22px;
    min-height: 22px;
    flex: 0 0 22px;
    margin: 0;
    padding: 0;
    accent-color: var(--berry);
}

.portal-fields .portal-highlight-option span {
    display: grid;
    gap: 3px;
}

.portal-fields .portal-highlight-option strong {
    color: var(--green-dark);
}

.portal-fields .portal-highlight-option small {
    color: var(--muted);
    font-weight: 650;
    line-height: 1.45;
}

.portal-fields input,
.portal-fields textarea,
.portal-field-grid input,
.portal-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(46, 91, 36, 0.2);
    border-radius: 12px;
    font: inherit;
}

.portal-select--native-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.portal-combobox {
    position: relative;
}

.portal-combobox__input {
    width: 100%;
}

.portal-combobox__list {
    position: absolute;
    z-index: 20;
    inset-inline: 0;
    top: calc(100% + 6px);
    display: grid;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.18);
    border-radius: 12px;
    box-shadow: 0 18px 38px rgba(23, 33, 31, 0.14);
}

.portal-combobox__list[hidden] {
    display: none;
}

.portal-combobox__list button,
.portal-combobox__list span {
    display: block;
    width: 100%;
    padding: 10px 12px 10px calc(12px + (var(--portal-option-depth, 0) * 18px));
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 750;
    text-align: left;
}

.portal-combobox__list button[style*='--portal-option-depth: 1'],
.portal-combobox__list button[style*='--portal-option-depth: 2'],
.portal-combobox__list button[style*='--portal-option-depth: 3'],
.portal-combobox__list button[style*='--portal-option-depth: 4'],
.portal-combobox__list button[style*='--portal-option-depth: 5'],
.portal-combobox__list button[style*='--portal-option-depth: 6'] {
    color: #52604a;
}

.portal-combobox__list button:hover,
.portal-combobox__list button:focus,
.portal-combobox__list button.is-selected {
    color: var(--white);
    background: var(--green);
}

.portal-date-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.35fr 0.9fr;
    gap: 10px;
}

.portal-fields input[type='date'].portal-date-input,
.portal-fields input[type='datetime-local'].portal-date-input,
.portal-field-grid input[type='datetime-local'].portal-date-input,
.portal-fields input[type='time'].portal-time-input,
.portal-field-grid input[type='date'].portal-date-input,
.portal-field-grid input[type='time'].portal-time-input {
    min-height: 58px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
}

.portal-fields input[type='date'].portal-date-input,
.portal-fields input[type='datetime-local'].portal-date-input,
.portal-field-grid input[type='datetime-local'].portal-date-input {
    max-width: 320px;
}

.portal-fields input[type='time'].portal-time-input,
.portal-field-grid input[type='time'].portal-time-input {
    max-width: 260px;
}

.portal-fields label[data-portal-new-field='event'] .portal-help {
    margin-top: 8px;
    color: var(--ink-soft);
}

.portal-field-grid__full {
    grid-column: 1 / -1;
}

.portal-field-grid__hint {
    grid-column: 1 / -1;
    margin: -2px 0 2px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.portal-existing-field {
    padding: 14px;
    background: rgba(46, 91, 36, 0.06);
    border: 1px solid rgba(46, 91, 36, 0.14);
    border-radius: 14px;
}

.portal-existing-field .portal-help {
    margin-top: 0;
}

.portal-fields textarea {
    resize: vertical;
}

.portal-editor {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.2);
    border-radius: 14px;
}

.portal-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: #f8f5eb;
    border-bottom: 1px solid rgba(46, 91, 36, 0.14);
}

.portal-editor__toolbar button {
    min-height: 34px;
    padding: 6px 10px;
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.16);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
    cursor: pointer;
}

.portal-editor__toolbar button:hover,
.portal-editor__toolbar button:focus-visible {
    color: var(--white);
    background: var(--green);
}

.portal-editor__area {
    min-height: 330px;
    padding: 18px;
    outline: 0;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.7;
}

[data-portal-event-description] .portal-editor__area {
    min-height: 190px;
}

.portal-editor__area:empty::before {
    color: #8a8f82;
    content: "Vnesi vsebino ali prilepi besedilo iz Worda ...";
}

.portal-editor__area p,
.portal-editor__area ul,
.portal-editor__area ol,
.portal-editor__area table {
    margin-top: 0;
    margin-bottom: 1em;
}

.portal-editor__area ul,
.portal-editor__area ol {
    padding-left: 1.4em;
}

.portal-editor__area table {
    width: 100%;
    border-collapse: collapse;
}

.portal-editor__area th,
.portal-editor__area td {
    padding: 9px 10px;
    border: 1px solid rgba(46, 91, 36, 0.22);
}

.portal-editor__area h2,
.portal-editor__area h3 {
    color: var(--green-dark);
}

.portal-fields input[type='file'] {
    padding: 10px;
    background: rgba(248, 245, 235, 0.68);
}

.portal-featured-field {
    display: grid;
    gap: 10px;
}

.portal-featured-current {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    color: var(--ink) !important;
    background: rgba(46, 91, 36, 0.08);
    border: 1px solid rgba(46, 91, 36, 0.22);
    border-radius: 14px;
}

.portal-featured-current__preview {
    display: block;
    width: 112px;
    flex: 0 0 112px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eef2e8;
    border-radius: 10px;
}

.portal-featured-current__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-featured-current__details {
    display: grid;
    min-width: 0;
    gap: 4px;
    color: var(--ink) !important;
}

.portal-featured-current__details strong {
    color: var(--green-dark);
}

.portal-featured-current__details small {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-weight: 700;
}

.portal-featured-empty {
    padding: 12px 14px;
    color: var(--muted) !important;
    background: rgba(248, 245, 235, 0.72);
    border: 1px dashed rgba(46, 91, 36, 0.28);
    border-radius: 12px;
    font-weight: 750 !important;
}

.portal-fields .portal-featured-remove {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--berry);
    background: rgba(153, 35, 73, 0.06);
    border: 1px solid rgba(153, 35, 73, 0.18);
    border-radius: 12px;
    cursor: pointer;
}

.portal-fields .portal-featured-remove input {
    width: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    margin: 0;
    padding: 0;
    accent-color: var(--berry);
}

.portal-fields .portal-featured-remove span {
    color: var(--berry);
    font-size: 0.9rem;
}

@media (max-width: 520px) {
    .portal-featured-current {
        align-items: flex-start;
    }

    .portal-featured-current__preview {
        width: 86px;
        flex-basis: 86px;
    }
}

.portal-gallery-editor {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 16px;
    background: rgba(46, 91, 36, 0.05);
    border: 1px solid rgba(46, 91, 36, 0.16);
    border-radius: 14px;
}

.portal-gallery-editor legend {
    padding: 0 8px;
    color: var(--green-dark);
    font-size: 1.02rem;
    font-weight: 900;
}

.portal-gallery-editor .portal-help {
    margin: 0;
}

.portal-gallery-editor__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.portal-gallery-thumb {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 8px;
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.16);
    border-radius: 12px;
    cursor: pointer;
}

.portal-gallery-thumb input {
    position: absolute;
    inset: 10px auto auto 10px;
    z-index: 1;
    width: 20px;
    height: 20px;
    accent-color: var(--berry);
}

.portal-gallery-thumb__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: #eef2e8;
    border-radius: 8px;
}

.portal-gallery-thumb__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-gallery-thumb__text {
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 850;
    text-align: center;
}

.portal-gallery-thumb:has(input:checked) {
    background: rgba(153, 35, 76, 0.08);
    border-color: rgba(153, 35, 76, 0.35);
}

.portal-gallery-thumb:has(input:checked) .portal-gallery-thumb__image {
    opacity: 0.45;
}

.portal-gallery-thumb:has(input:checked) .portal-gallery-thumb__text {
    color: var(--berry);
}

.portal-help {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.portal-upload-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.portal-upload-item {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(248, 245, 235, 0.78);
    border: 1px solid rgba(46, 91, 36, 0.14);
    border-radius: 12px;
}

.portal-upload-item > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.portal-upload-item strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-upload-item span[data-upload-status] {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.portal-upload-progress {
    height: 8px;
    overflow: hidden;
    background: rgba(46, 91, 36, 0.12);
    border-radius: 999px;
}

.portal-upload-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--green);
    border-radius: inherit;
    transition: width 160ms ease;
}

.portal-upload-item.is-done {
    background: rgba(46, 91, 36, 0.08);
    border-color: rgba(46, 91, 36, 0.25);
}

.portal-upload-item.is-done span[data-upload-status] {
    color: var(--green-dark);
}

.portal-upload-item.is-error {
    background: rgba(153, 35, 73, 0.07);
    border-color: rgba(153, 35, 73, 0.28);
}

.portal-upload-item.is-error span[data-upload-status] {
    color: var(--berry);
}

.portal-upload-item.is-error .portal-upload-progress span {
    background: var(--berry);
}

.portal-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-related-grid label {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 14px;
    color: var(--green-dark);
    background: rgba(248, 245, 235, 0.72);
    border: 1px solid rgba(46, 91, 36, 0.15);
    border-radius: var(--radius);
    font-weight: 850;
}

.portal-submit {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.portal-login {
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(22px, 4vw, 42px);
}

.portal-login__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
}

.portal-login__copy {
    display: grid;
    gap: 14px;
    max-width: 470px;
}

.portal-login__copy span {
    width: fit-content;
    padding: 7px 11px;
    color: var(--green-dark);
    background: rgba(46, 91, 36, 0.1);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-login__copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.portal-login__copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.portal-login__copy ul {
    display: grid;
    gap: 9px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.portal-login__copy li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green-dark);
    font-weight: 850;
}

.portal-login__copy li::before {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--white);
    background: var(--green);
    border-radius: 50%;
    font-size: 0.8rem;
    content: "✓";
}

.portal-login__form {
    padding: 22px;
    background: linear-gradient(180deg, #fffdf8, #f8f5eb);
    border: 1px solid rgba(46, 91, 36, 0.16);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(23, 33, 31, 0.08);
}

.portal-login form {
    display: grid;
    gap: 16px;
}

.portal-login label {
    display: grid;
    gap: 8px;
    color: var(--green-dark);
    font-weight: 850;
}

.portal-login input[type='text'],
.portal-login input[type='password'] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.2);
    border-radius: 12px;
    font: inherit;
}

.portal-login .login-remember label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.portal-login input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.portal-login .login-submit {
    margin: 0;
}

.portal-login input[type='submit'] {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--green);
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.portal-login input[type='submit']:hover,
.portal-login input[type='submit']:focus-visible {
    background: var(--green-dark);
}

.linked-content-panel {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    padding: clamp(20px, 3vw, 28px);
    background: #f7f7ef;
    border: 1px solid rgba(46, 91, 36, 0.15);
    border-radius: var(--radius);
}

.linked-content-panel h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.linked-content-panel__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.linked-content-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(46, 91, 36, 0.14);
    border-radius: var(--radius);
    text-decoration: none;
}

.linked-content-card:hover,
.linked-content-card:focus-visible {
    color: var(--ink);
    border-color: rgba(46, 91, 36, 0.34);
    box-shadow: 0 12px 26px rgba(23, 33, 31, 0.08);
}

.linked-content-card span {
    color: var(--berry);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.linked-content-card strong {
    color: var(--green-dark);
    font-size: 1.05rem;
    line-height: 1.25;
}

.linked-content-card em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 900px) {
    .site-header {
        position: relative;
        z-index: 90;
    }

    body.is-mobile-menu-open {
        overflow: hidden;
    }

    .masthead {
        align-items: center;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .navstrip {
        display: none;
    }

    body.is-mobile-menu-open .navstrip {
        position: fixed;
        z-index: 95;
        inset: var(--mobile-menu-top, 172px) 0 0;
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 14px 0 max(26px, env(safe-area-inset-bottom));
        background: rgba(255, 252, 245, 0.98);
        border-top: 1px solid rgba(32, 63, 25, 0.1);
        overscroll-behavior: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .navstrip__inner {
        display: block;
        min-height: 0;
    }

    .primary-nav {
        display: none;
        width: 100%;
        padding: 0;
        background: transparent;
        border-bottom: 0;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul,
    .topbar ul {
        display: grid;
        gap: 9px;
    }

    .primary-nav a {
        min-height: 46px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.52);
        border: 1px solid rgba(32, 63, 25, 0.08);
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(23, 33, 31, 0.06);
        font-size: 1rem;
        line-height: 1.2;
    }

    .primary-nav .sub-menu,
    .primary-nav .sub-menu .sub-menu {
        position: static;
        display: grid;
        min-width: 0;
        max-width: none;
        gap: 6px;
        margin: 5px 0 3px 12px;
        padding: 0 0 0 10px;
        background: transparent;
        border: 0;
        border-left: 2px solid rgba(48, 86, 37, 0.18);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .primary-nav .menu-item--students > .sub-menu {
        max-height: none;
        overflow: visible;
    }

    .primary-nav .sub-menu a {
        min-height: 38px;
        padding: 9px 12px;
        background: rgba(255, 255, 255, 0.36);
        font-size: 0.92rem;
    }

    body.is-mobile-menu-open .a11y-open {
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
    }

    .header-search {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .hero__grid,
    .section-grid,
    .area-grid,
    .staff-grid,
    .archive-layout,
    .single-layout,
    .single-layout--with-aside,
    .single-hero__grid,
    .location-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .notice-strip__inner {
        grid-template-columns: 1fr;
    }

    .highlight-card {
        grid-template-columns: 1fr;
    }

    .highlight-card__media,
    .highlight-card__media img {
        min-height: 220px;
    }

    .staff-directory__intro {
        grid-template-columns: 1fr;
    }

    .staff-directory__intro p,
    .staff-directory__count {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
    }

    .staff-directory__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-filter--search {
        grid-column: 1 / -1;
    }

    .staff-filter__reset {
        align-self: end;
    }

    .post-card,
    .content-stream .post-card:first-child,
    .archive-list .post-card:first-child,
    .resource-card,
    .archive-list--embedded .resource-card,
    .event-card {
        grid-template-columns: 1fr;
    }

    .pagination .nav-links {
        justify-content: center;
    }

    .archive-sidebar,
    .single-aside,
    .page-aside {
        position: static;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .linked-gallery,
    .linked-gallery--has-image,
    .single-gallery {
        grid-template-columns: 1fr;
    }

    .linked-gallery__image {
        aspect-ratio: 16 / 9;
    }

    .linked-gallery__action {
        justify-self: start;
    }

    .event-feed {
        grid-template-columns: 1fr;
    }

    .portal-type-grid,
    .portal-related-grid,
    .portal-field-grid,
    .portal-manage-filter,
    .portal-login__grid,
    .portal-quick-upload__heading,
    .portal-quick-upload__grid,
    .linked-content-panel__grid {
        grid-template-columns: 1fr;
    }

    .portal-card--intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-manage__head,
    .portal-manage-item {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .portal-manage-item__actions {
        width: 100%;
    }

    .portal-manage-item__actions .button {
        flex: 1;
    }

    .portal-manage-filter__actions {
        justify-content: stretch;
    }

    .portal-manage-filter__actions .button {
        flex: 1;
    }

    .event-calendar-panel {
        position: static;
    }

    .gallery-lightbox {
        gap: 8px;
        padding:
            max(10px, env(safe-area-inset-top))
            max(10px, env(safe-area-inset-right))
            max(10px, env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left));
    }

    .gallery-lightbox__inner {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px;
    }

    .gallery-lightbox__thumbs {
        grid-row: 2;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 6px;
    }

    .gallery-lightbox__thumbs button {
        flex: 0 0 86px;
        height: 64px;
    }

    .gallery-lightbox__thumbs button.is-active {
        transform: translateY(-2px);
    }

    .gallery-lightbox__stage img {
        max-height: 100%;
    }

    .gallery-lightbox__close {
        top: max(14px, env(safe-area-inset-top));
        right: max(14px, env(safe-area-inset-right));
        width: 44px;
        height: 44px;
    }

    .gallery-lightbox__controls {
        gap: 8px;
        padding: 6px;
    }

    .document-modal {
        padding: 10px;
    }

    .document-modal__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-modal iframe {
        min-height: 76vh;
    }

    .a11y-open {
        right: 14px;
        bottom: 14px;
        min-width: 0;
        max-width: calc(100vw - 28px);
        padding: 14px 18px;
        font-size: 0.95rem;
    }

    .a11y-panel {
        inset: 10px;
        max-height: calc(100vh - 20px);
        border-radius: 16px;
    }

    .a11y-grid,
    .a11y-row {
        grid-template-columns: 1fr;
    }

    .a11y-row span {
        text-align: left;
    }

    .footer-grid {
        gap: 26px;
        padding-block: 34px;
    }

    .footer-bottom__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding-block: 12px;
    }

    .footer-bottom p {
        padding-block: 4px;
    }

    .footer-bottom__links {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .footer-bottom .footer-login {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .staff-directory__filters {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .staff-filter--search {
        grid-column: auto;
    }

    .staff-filter__reset {
        width: 100%;
    }

    .topbar__inner {
        display: grid;
    }

    .topbar nav {
        display: none;
    }

    .brand {
        gap: 10px;
    }

    .brand__logo {
        width: 58px;
        height: 58px;
        border-width: 3px;
    }

    .brand strong {
        font-size: 1.38rem;
    }

    .brand small {
        font-size: 0.9rem;
    }

    .hero {
        min-height: 0;
        padding-block: 34px 58px;
    }

    .hero__panel {
        grid-template-columns: 1fr;
    }

    .button,
    .hero__panel a,
    .pill-links a {
        width: 100%;
    }

    .single-content {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-group-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        display: grid;
    }

    .page-numbers {
        min-width: 38px;
        min-height: 38px;
        padding: 7px 11px;
        font-size: 0.92rem;
    }

    .page-numbers.prev,
    .page-numbers.next {
        flex: 1 1 120px;
    }
}

.calendar-view-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    padding: 12px;
    background: #f8f5eb;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.calendar-view-switch > span {
    margin: 0 5px 0 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-view-switch__link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 14px;
    color: var(--green-dark) !important;
    background: var(--white);
    border: 1px solid rgba(32, 63, 25, 0.16);
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none !important;
}

.calendar-view-switch__label--mobile {
    display: none;
}

.calendar-view-switch__link:hover,
.calendar-view-switch__link:focus-visible,
.calendar-view-switch__link.is-active {
    color: var(--white) !important;
    background: var(--green);
    border-color: var(--green);
}

.calendar-view-switch__link--ocenjevanja:hover,
.calendar-view-switch__link--ocenjevanja:focus-visible,
.calendar-view-switch__link--ocenjevanja.is-active {
    background: #914058;
    border-color: #914058;
}

.school-month-calendar {
    overflow: hidden;
    margin-top: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(23, 33, 31, 0.06);
}

.school-month-calendar__toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: #eef3f0;
    border-bottom: 1px solid rgba(32, 63, 25, 0.12);
    text-align: center;
}

.school-month-calendar__toolbar a,
.school-month-calendar__quick a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid rgba(32, 63, 25, 0.12);
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
}

.school-month-calendar__toolbar a:first-child {
    justify-self: start;
}

.school-month-calendar__toolbar a:last-child {
    justify-self: end;
}

.school-month-calendar__toolbar a:hover,
.school-month-calendar__toolbar a:focus-visible,
.school-month-calendar__quick a:hover,
.school-month-calendar__quick a:focus-visible,
.school-month-calendar__quick a.is-active {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

.school-month-calendar__toolbar h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    line-height: 1.05;
}

.school-month-calendar__toolbar p,
.school-month-calendar__toolbar span {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.school-month-calendar__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f5eb;
    border-bottom: 1px solid rgba(32, 63, 25, 0.1);
}

.school-month-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: rgba(32, 63, 25, 0.12);
    gap: 1px;
}

.school-month-calendar__weekday {
    padding: 10px 8px;
    color: var(--white);
    background: #5e6f70;
    font-size: 0.86rem;
    font-weight: 900;
    text-align: center;
}

.school-month-calendar__day {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 128px;
    padding: 8px;
    background: #edf0ef;
}

.school-month-calendar__day--blank {
    background: #e0e5e3;
}

.school-month-calendar__day.has-events {
    background: #f6f8f7;
}

.school-month-calendar__day.is-today {
    box-shadow: inset 0 0 0 3px rgba(241, 212, 71, 0.85);
}

.school-month-calendar__date {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: #63706a;
    font-weight: 900;
}

.school-month-calendar__date span {
    font-size: 0.92rem;
}

.school-month-calendar__date em {
    color: var(--muted);
    font-size: 0.68rem;
    font-style: normal;
    text-transform: uppercase;
}

.school-month-calendar__mobile-date {
    display: none;
}

.school-month-calendar__event,
.school-month-calendar__more {
    display: block;
    overflow: hidden;
    padding: 5px 7px;
    color: #4d6268;
    background: #dfe7e5;
    border-bottom: 3px solid var(--gold);
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.18;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.school-month-calendar__event:nth-of-type(odd) {
    border-bottom-color: #8abe28;
}

.school-month-calendar__event--dogodki {
    color: #31595e;
    background: #dcebee;
    border-bottom-color: #3f8792;
}

.school-month-calendar__event--ocenjevanja,
.school-month-calendar__event--ocenjevanja:nth-of-type(odd) {
    color: #713247;
    background: #f7e1e7;
    border-bottom-color: #b64e6b;
}

.school-month-calendar__event:hover,
.school-month-calendar__event:focus-visible {
    color: var(--white);
    background: var(--green);
}

.school-month-calendar__event--ocenjevanja:hover,
.school-month-calendar__event--ocenjevanja:focus-visible {
    background: #914058;
}

.school-month-calendar__more {
    color: var(--green-dark);
    background: rgba(46, 91, 36, 0.1);
    border-bottom-color: rgba(46, 91, 36, 0.18);
}

.event-month-list {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.event-month-list header h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(1.45rem, 2.8vw, 2rem);
}

@media (max-width: 900px) {
    .school-month-calendar__toolbar,
    .school-month-calendar__quick,
    .school-month-calendar__grid {
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .calendar-view-switch {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 12px;
    }

    .calendar-view-switch > span {
        grid-column: 1 / -1;
    }

    .calendar-view-switch__link {
        min-height: 46px;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.86rem;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    .calendar-view-switch__label--desktop {
        display: none;
    }

    .calendar-view-switch__label--mobile {
        display: inline;
    }

    .school-month-calendar__toolbar {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
        padding: 12px;
    }

    .school-month-calendar__toolbar > div {
        grid-column: 2;
        grid-row: 1;
    }

    .school-month-calendar__toolbar a:first-child,
    .school-month-calendar__toolbar a:last-child {
        width: 44px;
        min-height: 44px;
        align-self: center;
        justify-self: center;
        padding: 0;
    }

    .school-month-calendar__toolbar a:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .school-month-calendar__toolbar a:last-child {
        grid-column: 3;
        grid-row: 1;
    }

    .school-month-calendar__nav-label,
    .school-month-calendar__today {
        display: none;
    }

    .school-month-calendar__toolbar .school-month-calendar__arrow {
        color: var(--green-dark);
        font-size: 1.7rem;
        line-height: 1;
    }

    .school-month-calendar__toolbar h2 {
        font-size: 1.45rem;
    }

    .school-month-calendar__toolbar p {
        line-height: 1.25;
    }

    .school-month-calendar__grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        background: #eef3f0;
    }

    .school-month-calendar__weekday,
    .school-month-calendar__day--blank,
    .school-month-calendar__day:not(.has-events):not(.is-today) {
        display: none;
    }

    .school-month-calendar__day {
        min-height: 0;
        gap: 8px;
        padding: 10px;
        border: 1px solid rgba(32, 63, 25, 0.12);
        border-radius: 12px;
    }

    .school-month-calendar__date {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 9px;
        align-items: center;
    }

    .school-month-calendar__date > span {
        display: grid;
        width: 38px;
        height: 38px;
        place-items: center;
        color: var(--white);
        background: var(--green);
        border-radius: 10px 3px 10px 3px;
        font-size: 1rem;
    }

    .school-month-calendar__mobile-date {
        display: block;
        min-width: 0;
        color: var(--green-dark);
        font-size: 0.9rem;
        font-weight: 900;
        text-transform: capitalize;
    }

    .school-month-calendar__date em {
        font-size: 0.72rem;
    }

    .school-month-calendar__event {
        min-height: 44px;
        padding: 11px 12px;
        border-bottom-width: 4px;
        border-radius: 8px;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .school-month-calendar__event-title {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .school-month-calendar--has-events + .event-month-list--compact {
        display: none;
    }
}

.school-month-calendar__event span {
    display: inline-block;
    margin-right: 5px;
    color: var(--green-dark);
    font-weight: 950;
}

.school-month-calendar__event:hover span,
.school-month-calendar__event:focus-visible span {
    color: var(--white);
}

.school-hours-page {
    display: grid;
    gap: 28px;
}

.school-hours-page p {
    max-width: 980px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    line-height: 1.8;
}

.school-hours-lead {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(280px, 560px);
    gap: clamp(22px, 4vw, 56px);
    align-items: center;
    margin-bottom: 6px;
}

.school-hours-clock {
    position: relative;
    display: grid;
    width: clamp(104px, 14vw, 150px);
    aspect-ratio: 1;
    place-items: center;
    color: var(--green-dark);
    background: radial-gradient(circle at 50% 50%, #fff8d8 0 36%, var(--gold) 37% 55%, #e8a626 56% 100%);
    border: 8px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(23, 33, 31, 0.14), inset 0 0 0 4px rgba(46, 91, 36, 0.16);
    font-weight: 950;
}

.school-hours-clock::before,
.school-hours-clock::after {
    position: absolute;
    top: -16px;
    width: 42px;
    height: 24px;
    content: "";
    background: var(--green);
    border-radius: 24px 24px 6px 6px;
}

.school-hours-clock::before {
    left: 14px;
    transform: rotate(-18deg);
}

.school-hours-clock::after {
    right: 14px;
    transform: rotate(18deg);
}

.school-hours-clock span {
    padding-top: 6px;
    color: var(--green-dark);
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
}

.entry-content .school-bell-table {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    border: 1px solid rgba(46, 91, 36, 0.24) !important;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(23, 33, 31, 0.08);
}

.entry-content .school-bell-table th,
.entry-content .school-bell-table td {
    padding: 10px 16px !important;
    color: var(--green-dark) !important;
    background: var(--white) !important;
    border-right: 1px solid rgba(46, 91, 36, 0.18) !important;
    border-bottom: 1px solid rgba(46, 91, 36, 0.18) !important;
    font-size: clamp(1rem, 1.4vw, 1.16rem) !important;
    font-weight: 850 !important;
    text-align: center !important;
}

.entry-content .school-bell-table td {
    color: var(--muted) !important;
    font-weight: 750 !important;
}

.entry-content .school-bell-table__break th {
    color: var(--green-dark) !important;
    background: rgba(227, 236, 215, 0.72) !important;
    letter-spacing: 0;
}

.entry-content .school-bell-table tr:hover th,
.entry-content .school-bell-table tr:hover td {
    background: rgba(241, 212, 71, 0.1) !important;
}

@media (max-width: 720px) {
    .school-hours-lead {
        grid-template-columns: 1fr;
    }

    .school-hours-clock {
        margin: 0 auto;
    }
}

.parent-meetings-page {
    display: grid;
    gap: 30px;
}

.parent-meetings-section {
    display: grid;
    gap: 16px;
}

.parent-meetings-section h2,
.content-attachments h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.parent-meetings-section p {
    margin: 0;
}

.parent-meetings-section ul {
    display: grid;
    gap: 10px;
    margin: 6px 0 0;
    padding-left: 1.2em;
}

.parent-meetings-section li::marker {
    color: var(--green);
}

.content-attachments {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.content-attachment {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    color: var(--ink);
    background: rgba(255, 250, 240, 0.9);
    border: 1px solid rgba(46, 91, 36, 0.16);
    border-radius: var(--radius);
    text-decoration: none;
}

.content-attachment:hover,
.content-attachment:focus-visible {
    color: var(--ink);
    background: var(--white);
    border-color: rgba(46, 91, 36, 0.32);
    box-shadow: 0 16px 34px rgba(23, 33, 31, 0.08);
}

.content-attachment__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--white);
    background: var(--green);
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 950;
}

.content-attachment__body {
    display: grid;
    gap: 4px;
}

.content-attachment__body strong {
    color: var(--green-dark);
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    line-height: 1.25;
}

.content-attachment__body small {
    color: var(--muted);
    font-weight: 800;
}

.content-attachment__action {
    color: var(--green-dark);
    font-weight: 950;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 620px) {
    .content-attachment {
        grid-template-columns: auto 1fr;
    }

    .content-attachment__action {
        grid-column: 2;
    }
}

.school-calendar-page {
    display: grid;
    gap: 24px;
}

.school-calendar-page > h2 {
    margin-bottom: 0.2em;
    color: var(--green-dark);
}

.entry-content .school-calendar-page > p:first-of-type {
    display: inline-flex;
    width: fit-content;
    padding: 8px 13px;
    color: var(--green-dark);
    background: rgba(227, 236, 215, 0.72);
    border-radius: 999px;
    font-weight: 900;
}

.entry-content .school-calendar-page table {
    min-width: 760px;
    margin: 0 0 26px !important;
}

.entry-content .school-calendar-page table td,
.entry-content .school-calendar-page table th {
    padding: 10px 14px !important;
    font-size: clamp(0.92rem, 1.2vw, 1.04rem) !important;
    line-height: 1.28 !important;
}

.entry-content .school-calendar-page table td:first-child,
.entry-content .school-calendar-page table td:nth-child(2) {
    width: 22%;
    color: var(--muted) !important;
    text-align: center !important;
    font-weight: 800 !important;
}

.entry-content .school-calendar-page table td:last-child {
    color: var(--ink) !important;
    font-weight: 850 !important;
}

.entry-content .school-calendar-page table tr:first-child td,
.entry-content .school-calendar-page table tbody tr:nth-child(2) td {
    background: var(--white) !important;
}

.single-layout--page:has(.school-month-calendar) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1680px;
}

.single-content:has(.school-month-calendar) {
    padding: clamp(22px, 3vw, 42px);
}

.single-content:has(.school-month-calendar) .entry-content {
    max-width: none;
}

.school-month-calendar {
    width: 100%;
}

.school-month-calendar__grid {
    overflow: visible;
}

.school-month-calendar__day {
    position: relative;
    overflow: visible;
    min-height: 150px;
}

.school-month-calendar__event {
    position: relative;
    z-index: 1;
}

.school-month-calendar__event:hover,
.school-month-calendar__event:focus-visible {
    z-index: 20;
}

.school-month-calendar__tooltip {
    position: absolute;
    left: var(--calendar-tooltip-left, 50%);
    right: var(--calendar-tooltip-right, auto);
    bottom: calc(100% + 10px);
    z-index: 40;
    display: grid;
    width: min(330px, calc(100vw - 32px));
    gap: 7px;
    padding: 14px 15px;
    color: var(--white) !important;
    background: #17211f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(23, 33, 31, 0.26);
    font-size: 0.88rem;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(var(--calendar-tooltip-shift, -50%), 8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: normal;
}

.school-month-calendar__tooltip::after {
    position: absolute;
    left: var(--calendar-tooltip-arrow-left, 50%);
    right: var(--calendar-tooltip-arrow-right, auto);
    top: 100%;
    width: 12px;
    height: 12px;
    content: "";
    background: #17211f;
    transform: translate(var(--calendar-tooltip-arrow-shift, -50%), -6px) rotate(45deg);
}

.school-month-calendar__tooltip strong,
.school-month-calendar__tooltip em,
.school-month-calendar__tooltip small {
    display: block;
    color: inherit !important;
}

.school-month-calendar__tooltip strong {
    font-size: 1rem;
    font-weight: 950;
}

.school-month-calendar__tooltip em {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 850;
}

.school-month-calendar__tooltip small {
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 0.82rem;
    font-weight: 650;
}

.school-month-calendar__tooltip em span {
    display: block;
}

.school-month-calendar__event:hover .school-month-calendar__tooltip,
.school-month-calendar__event:focus-visible .school-month-calendar__tooltip {
    opacity: 1;
    transform: translate(var(--calendar-tooltip-shift, -50%), 0);
}


.school-month-calendar:has(.school-month-calendar__tooltip) {
    overflow: visible;
}

.school-month-calendar__event {
    overflow: visible;
}

.school-month-calendar__event-title {
    display: block;
    overflow: hidden;
    color: inherit !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.school-month-calendar__event:hover .school-month-calendar__event-title,
.school-month-calendar__event:focus-visible .school-month-calendar__event-title {
    color: inherit !important;
}


.school-month-calendar__event {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
    white-space: normal;
}

.school-month-calendar__event-title {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .school-month-calendar__tooltip {
        display: none;
    }
}

@media (max-width: 700px) {
    .school-month-calendar__grid {
        grid-template-columns: 1fr;
        overflow: hidden;
    }

    .school-month-calendar__day {
        min-height: 0;
        overflow: hidden;
    }

    .school-month-calendar__event-title {
        white-space: normal;
    }
}

.event-month-list--compact {
    margin-top: clamp(24px, 4vw, 44px);
}

.event-month-list--compact header {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 10px 24px;
    margin-bottom: 14px;
}

.event-month-list--compact header h2 {
    flex: 1 1 360px;
}

.event-month-list--compact header > p:last-child {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}

.event-month-list__compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.event-mini-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(23, 33, 31, 0.04);
}

.event-mini-card:hover,
.event-mini-card:focus-visible {
    color: var(--ink);
    border-color: rgba(46, 91, 36, 0.28);
    box-shadow: 0 14px 32px rgba(23, 33, 31, 0.08);
    transform: translateY(-1px);
}

.event-mini-card__date {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 5px;
    color: var(--white);
    background: var(--green);
    border-radius: 8px;
    line-height: 1;
}

.event-mini-card--dogodki .event-mini-card__date {
    background: #34747e;
}

.event-mini-card--ocenjevanja .event-mini-card__date {
    background: #914058;
}

.event-mini-card__date strong,
.event-mini-card__date em {
    display: block;
    color: inherit !important;
}

.event-mini-card__date strong {
    font-size: 1.1rem;
    font-weight: 950;
}

.event-mini-card__date em {
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
}

.event-mini-card__body {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.event-mini-card__kind {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.event-mini-card--dogodki .event-mini-card__kind {
    color: #34747e;
}

.event-mini-card--ocenjevanja .event-mini-card__kind {
    color: #914058;
}

.event-mini-card__body strong,
.event-mini-card__body small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-mini-card__body strong {
    color: var(--green-dark);
    font-size: 1rem;
    font-weight: 950;
}

.event-mini-card__body small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

@media (max-width: 1100px) {
    .event-month-list__compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .event-month-list--compact header > p:last-child {
        text-align: left;
    }

    .event-month-list__compact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .cookie-banner__inner,
    .cookie-modal__footer {
        grid-template-columns: 1fr;
        display: grid;
        justify-content: stretch;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .button,
    .cookie-modal__footer .button {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .cookie-manage {
        right: 14px;
        bottom: 88px;
        left: 14px;
    }

    .cookie-banner {
        inset: auto 12px 12px 12px;
    }

    .cookie-banner__inner,
    .cookie-modal__header,
    .cookie-modal__footer,
    .cookie-modal__body {
        padding: 18px;
    }

    .cookie-option {
        grid-template-columns: 1fr;
    }
}

/* UI consistency pass */
body {
    background: #f4f6f2;
}

.site-main {
    min-width: 0;
    background: #f4f6f2;
}

.site-header {
    backdrop-filter: none;
}

.admin-bar .site-header {
    top: 32px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.hero__media span {
    filter: saturate(1.04) brightness(0.98);
}

.hero::after {
    background:
        linear-gradient(90deg, rgba(15, 20, 13, 0.72) 0%, rgba(15, 20, 13, 0.48) 48%, rgba(15, 20, 13, 0.2) 100%),
        linear-gradient(180deg, rgba(15, 20, 13, 0.04) 0%, rgba(15, 20, 13, 0.24) 100%);
}

.post-card,
.resource-card,
.event-card,
.gallery-card,
.gallery-group-card,
.single-content,
.info-box,
.notice-panel {
    background: var(--white);
    border-color: #d8ded5;
    box-shadow: none;
}

.post-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.post-card h2,
.resource-card h2,
.event-card h2,
.gallery-card h2,
.gallery-group-card strong,
.single-hero h1,
.archive-hero h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    overflow-wrap: anywhere;
}

.post-card__image img,
.featured-image img,
.gallery-card img,
.gallery-group-card img,
.linked-gallery img {
    filter: none;
    opacity: 1;
    mix-blend-mode: normal;
}

.post-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--green);
    border-bottom: 2px solid var(--gold);
    font-weight: 850;
    text-decoration: none;
}

.post-card__more span {
    font-size: 1.15rem;
    transition: transform 160ms ease;
}

.post-card__more:hover span {
    transform: translateX(3px);
}

.archive-hero,
.single-hero {
    background: linear-gradient(135deg, var(--green-deep), var(--green-dark) 64%, var(--green));
}

.entry-content {
    overflow-wrap: anywhere;
}

.entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    max-width: 100%;
}

.site-footer {
    background: var(--white);
}

.floating-control__icon {
    display: none;
}

.floating-control__label {
    display: inline;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 700px) {
    .cookie-manage,
    .a11y-open {
        right: 14px;
        left: auto;
        width: 52px;
        min-width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 0;
        border-radius: 50%;
    }

    .cookie-manage {
        bottom: 80px;
    }

    .a11y-open {
        bottom: 14px;
        max-width: none;
        font-size: 0.9rem;
    }

    .floating-control__icon {
        display: inline;
        font-weight: 900;
        line-height: 1;
    }

    .floating-control__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .cookie-banner {
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }

    .cookie-banner__copy p {
        font-size: 0.92rem;
    }
}

@media (max-width: 560px) {
    .single-hero,
    .archive-hero {
        padding-block: 30px;
    }

    .archive-layout,
    .single-layout {
        margin-block: 28px;
    }

    .single-content,
    .single-layout--page .single-content {
        padding: 22px 20px;
    }

    .post-card__body {
        padding: 20px;
    }
}

@media (max-width: 900px) {
    body.is-mobile-menu-open .cookie-manage,
    body.is-mobile-menu-open .a11y-open {
        opacity: 0;
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Home page art direction: an editorial school notebook in motion. */
.home {
    --school-green: #245522;
    --school-deep: #153516;
    --school-ink: #1c2920;
    --school-yellow: #f4d83f;
    --school-blue: #a9dbe5;
    --school-coral: #ef8f72;
    --school-paper: #fbf7e9;
    --school-lilac: #d8c8e8;
    background: var(--school-paper);
}

.home .site-main {
    background: var(--school-paper);
}

.site-header {
    --school-green: #245522;
    --school-deep: #153516;
    --school-ink: #1c2920;
    --school-yellow: #f4d83f;
    --school-blue: #a9dbe5;
    --school-coral: #ef8f72;
    --school-paper: #fbf7e9;
    --school-lilac: #d8c8e8;
    border-bottom: 0;
    box-shadow: 0 8px 28px rgba(21, 53, 22, 0.08);
}

.identitybar {
    position: relative;
    background: var(--school-deep);
}

.identitybar::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, var(--school-yellow) 0 36%, var(--school-coral) 36% 56%, var(--school-blue) 56% 78%, #7dbb82 78%);
}

.masthead {
    min-height: 78px;
    padding-block: 10px 14px;
}

.brand__logo {
    width: 54px;
    height: 54px;
    padding: 3px;
    border: 0;
    border-radius: 14px 4px 14px 4px;
    box-shadow: 5px 5px 0 rgba(244, 216, 63, 0.24);
}

.brand strong {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.header-search input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.navstrip {
    background: rgba(251, 247, 233, 0.98);
    border: 0;
}

.navstrip__inner {
    min-height: 58px;
}

.primary-nav a {
    position: relative;
    z-index: 1;
    border-radius: 8px 2px 8px 2px;
}

.primary-nav > ul > li > a::before,
.primary-nav > div > ul > li > a::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: 8px;
    bottom: 5px;
    left: 8px;
    height: 9px;
    background: var(--school-yellow);
    border-radius: 50%;
    opacity: 0;
    transform: rotate(-1.5deg) scaleX(0.6);
    transition: opacity 160ms ease, transform 160ms ease;
}

.primary-nav > ul > li > a:hover::before,
.primary-nav > ul > li.current-menu-item > a::before,
.primary-nav > ul > li.current-menu-ancestor > a::before,
.primary-nav > div > ul > li > a:hover::before,
.primary-nav > div > ul > li.current-menu-item > a::before,
.primary-nav > div > ul > li.current-menu-ancestor > a::before {
    opacity: 0.68;
    transform: rotate(-1.5deg) scaleX(1);
}

.primary-nav a:hover,
.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-menu-ancestor > a,
.primary-nav > div > ul > li.current-menu-item > a,
.primary-nav > div > ul > li.current-menu-ancestor > a {
    color: var(--school-deep);
    background: transparent;
    box-shadow: none;
}

.home .hero {
    isolation: isolate;
    min-height: 650px;
    padding: clamp(54px, 6.5vw, 86px) 0 46px;
    color: var(--school-ink);
    background:
        linear-gradient(rgba(36, 85, 34, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 85, 34, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 8% 15%, rgba(244, 216, 63, 0.26) 0 150px, transparent 151px),
        var(--school-paper);
    background-size: 28px 28px, 28px 28px, auto, auto;
    border: 0;
}

.home .hero::after {
    display: none;
}

.home .hero__doodles {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.home .hero__formula {
    position: absolute;
    top: 9%;
    right: 5%;
    color: rgba(36, 85, 34, 0.18);
    font-family: Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    font-style: italic;
    font-weight: 700;
    transform: rotate(7deg);
}

.home .hero__orbit {
    position: absolute;
    right: -90px;
    bottom: 15%;
    width: 320px;
    height: 170px;
    border: 4px dashed rgba(36, 85, 34, 0.18);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.home .hero__orbit::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 32px;
    width: 22px;
    height: 22px;
    background: var(--school-coral);
    border-radius: 50%;
    box-shadow: 120px 120px 0 var(--school-blue);
}

.home .hero__marker {
    position: absolute;
    bottom: 2%;
    left: 7%;
    width: 150px;
    height: 18px;
    background: var(--school-yellow);
    border-radius: 50%;
    opacity: 0.62;
    transform: rotate(-5deg);
}

.home .hero__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
    gap: clamp(44px, 7vw, 92px);
    align-items: center;
}

.home .hero__copy {
    max-width: 610px;
}

.home .hero .eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 12px 6px;
    color: var(--school-deep);
    background: var(--school-yellow);
    border-radius: 10px 2px 10px 2px;
    letter-spacing: 0.08em;
    transform: rotate(-1deg);
}

.home .hero h1 {
    color: var(--school-ink);
    font-size: clamp(3.25rem, 5.2vw, 5.7rem);
    line-height: 0.94;
}

.home .hero h1 strong {
    position: relative;
    display: block;
    width: fit-content;
    margin-top: 0.08em;
    color: var(--school-green);
    font-weight: 850;
}

.home .hero h1 strong::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -8px;
    bottom: 0.04em;
    left: -8px;
    height: 0.24em;
    background: var(--school-blue);
    border-radius: 50%;
    transform: rotate(-1deg);
}

.home .hero__copy > p:not(.eyebrow) {
    max-width: 570px;
    margin: 24px 0 0;
    color: #4d5d50;
    font-size: clamp(1.04rem, 1.6vw, 1.18rem);
    font-weight: 650;
    line-height: 1.7;
}

.home .hero__actions {
    margin-top: 28px;
}

.home .hero .button {
    min-height: 50px;
    padding: 12px 21px;
    border: 2px solid var(--school-deep);
    border-radius: 12px 3px 12px 3px;
    box-shadow: 5px 6px 0 rgba(169, 219, 229, 0.78);
}

.home .hero .button:hover,
.home .hero .button:focus-visible {
    transform: translateY(-3px) rotate(-0.8deg);
    box-shadow: 7px 9px 0 rgba(169, 219, 229, 0.88);
}

.home .hero .button--primary {
    background: var(--school-green);
    border-color: var(--school-green);
    box-shadow: 5px 6px 0 var(--school-yellow);
}

.home .hero .button--primary:hover,
.home .hero .button--primary:focus-visible {
    background: var(--school-deep);
    box-shadow: 7px 9px 0 var(--school-yellow);
}

.home .hero__visual {
    position: relative;
    min-width: 0;
    min-height: 400px;
}

.home .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 420px;
    overflow: visible;
}

.home .hero__media span {
    position: absolute;
    inset: auto;
    display: block;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: none;
    opacity: 1;
    animation: none;
}

.home .hero__media span:nth-child(1) {
    top: 0;
    right: 0;
    width: 82%;
    height: 86%;
    border: 10px solid #fff;
    border-radius: 8px 28px 8px 28px;
    box-shadow: 16px 18px 0 var(--school-yellow);
    transform: rotate(1.8deg);
}

.home .hero__media span:nth-child(2) {
    bottom: 0;
    left: 0;
    width: 43%;
    height: 50%;
    border: 9px solid #fff;
    border-radius: 22px 5px 22px 5px;
    box-shadow: -10px 12px 0 var(--school-blue);
    transform: rotate(-4deg);
}

.home .hero__visual::before,
.home .hero__visual::after {
    content: "";
    position: absolute;
    z-index: 3;
    background: rgba(239, 143, 114, 0.82);
}

.home .hero__visual::before {
    top: -6px;
    right: 25%;
    width: 96px;
    height: 28px;
    transform: rotate(4deg);
}

.home .hero__visual::after {
    display: none;
}

.home .hero__visual-note {
    position: absolute;
    z-index: 4;
    right: 5%;
    bottom: -4px;
    max-width: 300px;
    margin: 0;
    padding: 16px 19px;
    color: var(--school-deep);
    background: #fff;
    border-left: 7px solid var(--school-coral);
    box-shadow: 7px 8px 0 rgba(21, 53, 22, 0.12);
    transform: rotate(-1deg);
}

.home .hero__visual-note span,
.home .hero__visual-note strong {
    display: block;
}

.home .hero__visual-note span {
    margin-bottom: 3px;
    color: var(--berry);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home .hero__panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    margin-top: 4px;
    padding: 10px;
    background: var(--school-deep);
    border: 0;
    border-radius: 18px 4px 18px 4px;
    box-shadow: 9px 10px 0 rgba(36, 85, 34, 0.14);
    backdrop-filter: none;
}

.home .hero__panel a {
    min-height: 66px;
    padding: 10px 12px;
    color: var(--school-ink);
    background: #fff;
    border: 0;
    border-radius: 10px 3px 10px 3px;
    box-shadow: none;
    font-size: 0.92rem;
}

.home .hero__panel a::before {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    color: var(--school-deep);
    background: var(--school-yellow);
    border-radius: 9px 2px 9px 2px;
}

.home .hero__panel a:nth-child(2n)::before {
    background: var(--school-blue);
}

.home .hero__panel a:nth-child(3n)::before {
    background: var(--school-coral);
}

.home .hero__panel a:hover,
.home .hero__panel a:focus-visible {
    color: var(--school-deep);
    background: #fffdf5;
    border: 0;
    transform: translateY(-3px);
}

.home .notice-strip,
.home .highlight-strip {
    margin-top: -20px;
}

.home .notice-strip__inner,
.home .highlight-strip__inner {
    border: 0;
    border-left: 8px solid var(--school-yellow);
    border-radius: 6px 18px 6px 18px;
    box-shadow: 8px 9px 0 rgba(21, 53, 22, 0.1);
}

.home .notice-label {
    color: var(--school-deep);
    background: rgba(244, 216, 63, 0.5);
    border-radius: 8px 2px 8px 2px;
}

.home .section-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 38px;
    margin-block: 82px;
}

.home .section-heading {
    position: relative;
    padding-bottom: 18px;
}

.home .section-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 142px;
    height: 10px;
    background: var(--school-yellow);
    border-radius: 50%;
    transform: rotate(-1.5deg);
}

.home .section-heading .eyebrow {
    color: var(--school-green);
}

.home .section-heading h2 {
    color: var(--school-ink);
    font-size: clamp(2.4rem, 4.5vw, 4rem);
}

.home .post-list {
    gap: 22px;
    margin-top: 30px;
}

.home .post-card {
    border: 0;
    border-radius: 18px 5px 18px 5px;
    box-shadow: 7px 8px 0 rgba(21, 53, 22, 0.09);
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.home .post-card:nth-child(even) {
    border-radius: 5px 18px 5px 18px;
}

.home .post-card:hover {
    box-shadow: 10px 12px 0 rgba(21, 53, 22, 0.13);
    transform: translateY(-3px);
}

.home .content-stream .post-card:first-child {
    border: 0;
    box-shadow: 9px 10px 0 var(--school-blue);
}

.home .post-card__image {
    padding: 9px;
    background: var(--school-green);
}

.home .post-card:nth-child(even) .post-card__image {
    background: var(--berry);
}

.home .post-card:nth-child(3n) .post-card__image {
    background: #477c90;
}

.home .post-card__image img {
    border-radius: 11px 2px 2px 11px;
}

.home .post-card .post-card__image.post-card__image--placeholder {
    padding: 24px;
    background:
        linear-gradient(145deg, transparent 0 46%, rgba(255, 255, 255, 0.34) 46% 62%, transparent 62%),
        repeating-linear-gradient(0deg, rgba(21, 53, 22, 0.045) 0 1px, transparent 1px 24px),
        var(--placeholder-bg, #dff1e7);
}

.home .post-card h2 a {
    color: var(--school-deep);
}

.home .post-card__more {
    border-bottom-color: var(--school-yellow);
}

.home .sidebar-stack {
    gap: 22px;
}

.home .info-box {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 0;
    border-radius: 18px 5px 18px 5px;
    box-shadow: 7px 8px 0 rgba(21, 53, 22, 0.09);
}

.home .info-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 74px;
    height: 7px;
    background: var(--school-yellow);
}

.home .info-box:nth-child(2)::before {
    background: var(--school-blue);
}

.home .info-box:nth-child(3)::before {
    background: var(--school-coral);
}

.home .info-box:nth-child(4)::before {
    background: var(--school-lilac);
}

.home .event-list--home .event-list__item {
    border: 0;
    border-radius: 10px 3px 10px 3px;
    box-shadow: none;
}

.home .event-list--home .event-list__date {
    background: var(--school-green);
    border-radius: 10px 3px 10px 3px;
}

.home .pill-links a {
    border: 0;
    border-radius: 9px 2px 9px 2px;
}

.home .area-band {
    position: relative;
    overflow: hidden;
    padding: 82px 0 96px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        var(--school-deep);
    background-size: 28px 28px;
    border: 0;
}

.home .area-band::before {
    content: "→";
    position: absolute;
    top: 4%;
    right: 4%;
    color: rgba(244, 216, 63, 0.22);
    font-size: 10rem;
    font-weight: 900;
    transform: rotate(12deg);
}

.home .area-band .section-heading .eyebrow {
    color: var(--school-yellow);
}

.home .area-band .section-heading h2 {
    color: #fff;
}

.home .area-grid {
    gap: 18px;
    margin-top: 34px;
}

.home .area-card,
.home .area-card:nth-child(2),
.home .area-card:nth-child(3),
.home .area-card:nth-child(4) {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 68px 24px 24px;
    color: var(--school-ink);
    background: #fff;
    border: 0;
    border-radius: 20px 5px 20px 5px;
    box-shadow: 8px 9px 0 rgba(255, 255, 255, 0.12);
}

.home .area-card:nth-child(2) {
    background: #eef7f9;
    transform: translateY(12px);
}

.home .area-card:nth-child(3) {
    background: #fff7ce;
}

.home .area-card:nth-child(4) {
    background: #f3edf8;
    transform: translateY(12px);
}

.home .area-card::before {
    content: attr(data-number);
    position: absolute;
    top: 18px;
    left: 22px;
    color: var(--school-green);
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.home .area-card::after {
    content: "↗";
    position: absolute;
    top: 14px;
    right: 18px;
    color: var(--school-coral);
    font-size: 2rem;
    font-weight: 900;
    transition: transform 160ms ease;
}

.home .area-card:hover,
.home .area-card:focus-visible {
    color: var(--school-ink);
    outline: 3px solid var(--school-yellow);
    outline-offset: 5px;
    box-shadow: 11px 13px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-4px) rotate(-0.7deg);
}

.home .area-card:nth-child(2):hover,
.home .area-card:nth-child(4):hover {
    transform: translateY(6px) rotate(0.7deg);
}

.home .area-card:hover::after {
    transform: translate(4px, -4px);
}

.home .area-card strong {
    color: var(--school-deep);
    font-size: 1.42rem;
}

.home .area-card span {
    color: #59645b;
}

@media (max-width: 1080px) {
    .home .hero__grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(400px, 1.08fr);
        gap: 42px;
    }

    .home .hero h1 {
        font-size: clamp(3rem, 5.5vw, 4.7rem);
    }

    .home .hero__panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home .area-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home .hero {
        padding-top: 48px;
    }

    .home .hero__grid {
        grid-template-columns: 1fr;
    }

    .home .hero__copy {
        max-width: 720px;
    }

    .home .hero__visual {
        width: min(760px, calc(100% - 20px));
        margin-inline: auto;
    }

    .home .section-grid {
        grid-template-columns: 1fr;
    }

    .home .sidebar-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .home .hero {
        min-height: 0;
        padding: 34px 0 42px;
    }

    .home .hero h1 {
        font-size: clamp(3.05rem, 15vw, 4.2rem);
    }

    .home .hero__copy > p:not(.eyebrow) {
        margin-top: 19px;
        font-size: 1rem;
    }

    .home .hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home .hero .button {
        width: 100%;
        padding-inline: 13px;
    }

    .home .hero__visual {
        min-height: 310px;
    }

    .home .hero__media {
        height: 330px;
    }

    .home .hero__media span:nth-child(1) {
        width: 88%;
        height: 80%;
        border-width: 7px;
        box-shadow: 9px 10px 0 var(--school-yellow);
    }

    .home .hero__media span:nth-child(2) {
        width: 48%;
        height: 45%;
        border-width: 6px;
        box-shadow: -6px 8px 0 var(--school-blue);
    }

    .home .hero__visual-note {
        right: -3px;
        bottom: -7px;
        max-width: 245px;
        padding: 12px 14px;
        font-size: 0.8rem;
    }

    .home .hero__formula {
        display: none;
    }

    .home .hero__panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 8px;
    }

    .home .hero__panel a {
        width: auto;
        min-height: 62px;
        padding: 9px;
        font-size: 0.82rem;
    }

    .home .hero__panel a::before {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        margin-right: 6px;
        font-size: 0.82rem;
    }

    .home .notice-strip,
    .home .highlight-strip {
        margin-top: 22px;
    }

    .home .section-grid {
        margin-block: 58px;
    }

    .home .section-heading h2 {
        font-size: 2.5rem;
    }

    .home .sidebar-stack {
        grid-template-columns: 1fr;
    }

    .home .area-grid {
        grid-template-columns: 1fr;
    }

    .home .area-card:nth-child(2),
    .home .area-card:nth-child(4) {
        transform: none;
    }

    .home .area-card,
    .home .area-card:nth-child(2),
    .home .area-card:nth-child(3),
    .home .area-card:nth-child(4) {
        min-height: 190px;
    }
}

@media (max-width: 400px) {
    .home .hero h1 {
        font-size: 2.85rem;
    }

    .home .hero .eyebrow {
        font-size: 0.68rem;
    }

    .home .hero__actions {
        grid-template-columns: 1fr;
    }
}

/* The home hero remains deliberate in the accessibility dark-contrast mode. */
body.dark.home .site-main {
    background: #0c150e;
}

body.dark.home .hero {
    color: #fff;
    background:
        linear-gradient(rgba(244, 216, 63, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 216, 63, 0.07) 1px, transparent 1px),
        radial-gradient(circle at 8% 15%, rgba(244, 216, 63, 0.14) 0 150px, transparent 151px),
        #0f1f12;
    background-size: 28px 28px, 28px 28px, auto, auto;
}

body.dark.home .hero h1 {
    color: #fff;
}

body.dark.home .hero h1 strong {
    color: var(--school-yellow);
}

body.dark.home .hero h1 strong::after {
    background: rgba(169, 219, 229, 0.3);
}

body.dark.home .hero__copy > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.82);
}

body.dark.home .hero .eyebrow {
    color: var(--school-deep);
}

body.dark .primary-nav a {
    color: var(--school-deep);
}

body.dark.home .hero .button {
    color: var(--school-deep);
}

body.dark.home .hero .button--primary,
body.dark.home .hero .button--primary:hover,
body.dark.home .hero .button--primary:focus-visible {
    color: #fff;
}

body.dark.home .hero__formula {
    color: rgba(244, 216, 63, 0.28);
}

body.dark.home .hero__orbit {
    border-color: rgba(244, 216, 63, 0.2);
}

body.dark.home .hero__panel {
    background: var(--school-yellow);
    box-shadow: 9px 10px 0 rgba(169, 219, 229, 0.22);
}

body.dark.home .hero__panel a,
body.dark.home .hero__panel a:hover,
body.dark.home .hero__panel a:focus-visible {
    color: var(--school-deep);
    background: #fff;
}

body.dark.home .notice-strip__inner,
body.dark.home .highlight-strip__inner {
    color: #fff;
    background: #18241a;
    box-shadow: 8px 9px 0 rgba(244, 216, 63, 0.13);
}

body.dark.home .notice-strip__inner a,
body.dark.home .highlight-strip__inner a {
    color: var(--school-yellow);
}

body.dark.home .section-heading h2,
body.dark.home .info-box h2 {
    color: #fff;
}

/* Homepage utility desk: clearer hierarchy between shortcuts and the current notice. */
.home .hero__panel {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin-top: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(21, 53, 22, 0.12);
    border-radius: 22px 7px 22px 7px;
    box-shadow: 8px 10px 0 rgba(21, 53, 22, 0.1);
}

.home .hero__panel-heading {
    display: grid;
    align-content: center;
    min-height: 82px;
    padding: 16px 18px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 18%, rgba(244, 216, 63, 0.18) 0 24px, transparent 25px),
        var(--school-deep);
    border-radius: 14px 4px 14px 4px;
}

.home .hero__panel-heading span {
    margin-bottom: 5px;
    color: var(--school-yellow);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home .hero__panel-heading strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.22rem;
    line-height: 1.05;
}

.home .hero__panel-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.home .hero__panel-links a {
    min-height: 82px;
    padding: 12px;
    color: var(--school-ink);
    background: #f8f7f0;
    border: 1px solid rgba(21, 53, 22, 0.1);
    border-radius: 12px 4px 12px 4px;
}

.home .hero__panel-links a:nth-child(2n) {
    background: rgba(169, 219, 229, 0.19);
}

.home .hero__panel-links a:nth-child(3n) {
    background: rgba(244, 140, 108, 0.13);
}

.home .hero__panel-links a:hover,
.home .hero__panel-links a:focus-visible {
    color: var(--school-deep);
    background: #fff;
    border-color: rgba(21, 53, 22, 0.22);
    box-shadow: 0 6px 16px rgba(21, 53, 22, 0.09);
    transform: translateY(-3px);
}

.home .notice-strip {
    margin-top: -12px;
}

.home .notice-strip__inner {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 84px;
    padding: 14px 16px;
    background: #fffdf6;
    border: 1px solid rgba(21, 53, 22, 0.11);
    border-left: 0;
    border-radius: 7px 20px 7px 20px;
    box-shadow: 7px 8px 0 rgba(21, 53, 22, 0.09);
}

.home .notice-strip__symbol {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--school-deep);
    background: var(--school-yellow);
    border-radius: 15px 4px 15px 4px;
    box-shadow: 3px 3px 0 rgba(21, 53, 22, 0.12);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 950;
}

.home .notice-strip__copy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.home .notice-strip__copy p {
    margin: 0;
    color: var(--school-ink);
    font-weight: 750;
    line-height: 1.35;
}

.home .notice-strip__action {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 14px;
    color: #fff;
    background: var(--school-deep);
    border-radius: 11px 3px 11px 3px;
    font-weight: 900;
    text-decoration: none;
}

.home .notice-strip__action:hover,
.home .notice-strip__action:focus-visible {
    color: var(--school-deep);
    background: var(--school-yellow);
}

.home .notice-strip__action span {
    font-size: 1.18em;
    line-height: 1;
    transition: transform 160ms ease;
}

.home .notice-strip__action:hover span,
.home .notice-strip__action:focus-visible span {
    transform: translateX(3px);
}

.home .section-grid {
    margin-block: 58px 82px;
}

@media (max-width: 1080px) {
    .home .hero__panel {
        grid-template-columns: 1fr;
    }

    .home .hero__panel-heading {
        grid-template-columns: auto 1fr;
        gap: 12px;
        align-items: center;
        min-height: auto;
        padding-block: 13px;
    }

    .home .hero__panel-heading span {
        margin: 0;
    }

    .home .hero__panel-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .home .hero__panel {
        gap: 10px;
        padding: 10px;
        border-radius: 17px 5px 17px 5px;
    }

    .home .hero__panel-heading {
        display: block;
        padding: 13px 14px;
    }

    .home .hero__panel-heading span {
        display: block;
        margin-bottom: 3px;
    }

    .home .hero__panel-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .home .hero__panel-links a {
        min-height: 68px;
        padding: 9px;
        font-size: 0.82rem;
    }

    .home .notice-strip {
        margin-top: -6px;
    }

    .home .notice-strip__inner {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .home .notice-strip__symbol {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .home .notice-strip__copy {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .home .notice-strip__copy .notice-label {
        width: fit-content;
    }

    .home .notice-strip__copy p {
        font-size: 0.9rem;
    }

    .home .notice-strip__action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .home .section-grid {
        margin-block: 42px 64px;
    }
}

body.dark.home .hero__panel {
    background: #18241a;
    border-color: rgba(244, 216, 63, 0.2);
    box-shadow: 8px 10px 0 rgba(169, 219, 229, 0.16);
}

body.dark.home .hero__panel-heading {
    background-color: #0f1f12;
}

body.dark.home .hero__panel-links a,
body.dark.home .hero__panel-links a:hover,
body.dark.home .hero__panel-links a:focus-visible {
    color: var(--school-deep);
}

body.dark.home .notice-strip__copy p {
    color: #fff;
}

body.dark.home .notice-strip__action {
    color: #fff;
    background: #2f6a2c;
}

body.dark.home .notice-strip__action:hover,
body.dark.home .notice-strip__action:focus-visible {
    color: var(--school-deep);
    background: var(--school-yellow);
}

/* Inner pages: carry the editorial school-notebook language beyond the homepage. */
body:not(.home) {
    --school-green: #245522;
    --school-deep: #153516;
    --school-ink: #1c2920;
    --school-yellow: #f4d83f;
    --school-blue: #a9dbe5;
    --school-coral: #ef8f72;
    --school-paper: #fbf7e9;
    --font-display: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}

body:not(.home) .site-main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(rgba(36, 85, 34, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 85, 34, 0.045) 1px, transparent 1px),
        #fbf7e9;
    background-size: 30px 30px;
}

body:not(.home) .site-main > *:not(.inner-page-watermarks) {
    position: relative;
    z-index: 1;
}

.inner-page-watermarks {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    color: rgba(36, 85, 34, 0.07);
    font-family: var(--font-display);
    font-weight: 950;
    pointer-events: none;
    user-select: none;
}

.inner-page-watermarks span {
    position: absolute;
    white-space: nowrap;
}

.inner-page-watermarks__formula {
    top: 8%;
    right: 6%;
    font-family: Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 5.8rem);
    font-style: italic;
    transform: rotate(7deg);
}

.inner-page-watermarks__value {
    font-size: clamp(2rem, 4.4vw, 5.2rem);
    letter-spacing: 0.035em;
}

.inner-page-watermarks__value--respect {
    top: 25%;
    left: 1%;
    transform: rotate(-8deg);
}

.inner-page-watermarks__value--responsibility {
    top: 39%;
    right: -1%;
    transform: rotate(7deg);
}

.inner-page-watermarks__value--knowledge {
    top: 54%;
    left: 8%;
    transform: rotate(-4deg);
}

.inner-page-watermarks__value--honesty {
    top: 70%;
    right: 9%;
    transform: rotate(4deg);
}

.inner-page-watermarks__value--tolerance {
    top: 86%;
    left: 3%;
    transform: rotate(-7deg);
}

body.dark .inner-page-watermarks {
    color: rgba(244, 216, 63, 0.08);
}

@media (max-width: 700px) {
    .inner-page-watermarks {
        color: rgba(36, 85, 34, 0.055);
    }

    .inner-page-watermarks__value--knowledge,
    .inner-page-watermarks__value--honesty {
        display: none;
    }
}

body:not(.home) .archive-hero,
body:not(.home) .single-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: 54px 64px;
    color: var(--school-ink);
    background:
        radial-gradient(circle at 88% 22%, rgba(169, 219, 229, 0.74) 0 84px, transparent 86px),
        radial-gradient(circle at 75% 110%, rgba(244, 140, 108, 0.52) 0 105px, transparent 107px),
        linear-gradient(rgba(36, 85, 34, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 85, 34, 0.055) 1px, transparent 1px),
        #f8f2de;
    background-size: auto, auto, 30px 30px, 30px 30px, auto;
    border: 0;
}

body:not(.home) .archive-hero::before,
body:not(.home) .single-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 28px;
    right: max(28px, calc((100vw - 1160px) / 2));
    width: 190px;
    height: 18px;
    background: var(--school-yellow);
    border-radius: 50%;
    opacity: 0.82;
    transform: rotate(-4deg);
}

body:not(.home) .archive-hero::after,
body:not(.home) .single-hero::after {
    content: "a  ·  2  +  b  ·  ?";
    position: absolute;
    z-index: -1;
    right: max(38px, calc((100vw - 1120px) / 2));
    bottom: 18px;
    color: rgba(21, 53, 22, 0.13);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.4vw, 3.2rem);
    font-weight: 950;
    letter-spacing: 0.08em;
    transform: rotate(-2deg);
}

body:not(.home) .archive-hero .wrap,
body:not(.home) .single-hero .wrap {
    position: relative;
    z-index: 1;
}

body:not(.home) .archive-hero .eyebrow,
body:not(.home) .single-hero .eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 11px;
    color: var(--school-deep);
    background: var(--school-yellow);
    border-radius: 9px 3px 9px 3px;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.09em;
}

body:not(.home) .archive-hero h1,
body:not(.home) .single-hero h1 {
    max-width: 870px;
    margin: 0;
    color: var(--school-deep);
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5.2vw, 4.6rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

body:not(.home) .single-meta,
body:not(.home) .post-meta--hero,
body:not(.home) .archive-description {
    margin-top: 18px;
    color: rgba(21, 53, 22, 0.76);
}

body:not(.home) .portal-shell .single-hero p:not(.eyebrow) {
    color: rgba(21, 53, 22, 0.78);
}

body:not(.home) .post-meta--hero .post-meta__facts,
body:not(.home) .post-meta--hero .post-meta__byline {
    color: rgba(21, 53, 22, 0.78);
}

body:not(.home) .post-meta--hero .post-meta__reading {
    border-color: rgba(21, 53, 22, 0.24);
}

body:not(.home) .post-meta--hero .post-meta__avatar {
    color: var(--school-deep);
    background: var(--school-yellow);
}

body:not(.home) .archive-layout,
body:not(.home) .single-layout {
    gap: 28px;
    align-items: start;
    margin-block: 42px 86px;
}

body:not(.home) .single-content,
body:not(.home) .archive-intro {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid rgba(21, 53, 22, 0.12);
    border-radius: 22px 7px 22px 7px;
    box-shadow: 9px 11px 0 rgba(21, 53, 22, 0.1);
}

body:not(.home) .single-content::before,
body:not(.home) .archive-intro::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 34px;
    width: 112px;
    height: 18px;
    background: rgba(244, 216, 63, 0.88);
    border-radius: 2px;
    transform: rotate(-2deg);
}

body:not(.home) .single-layout--page .single-content {
    padding: clamp(24px, 4vw, 48px);
}

/* MEPI has no lead image, so a compact top inset keeps its text visually
 * attached to the top of the paper card instead of floating in empty space. */
body.postid-696 .single-content {
    padding-top: 24px;
}

body.postid-696 .entry-content > p:first-child {
    margin-top: 0;
}

body:not(.home) .entry-content h2 {
    position: relative;
    margin-top: 1.7em;
    padding-left: 18px;
    color: var(--school-deep);
}

body:not(.home) .entry-content h2::before {
    content: "";
    position: absolute;
    top: 0.12em;
    bottom: 0.12em;
    left: 0;
    width: 7px;
    background: var(--school-coral);
    border-radius: 5px 2px 5px 2px;
}

/* The directory heading already has its own compact intro layout. */
body:not(.home) .staff-directory__intro .eyebrow {
    margin-bottom: 2px;
}

body:not(.home) .staff-directory__intro h2 {
    margin-top: 0;
}

body:not(.home) .entry-content h3 {
    color: var(--school-green);
}

body:not(.home) .entry-content blockquote {
    margin-inline: 0;
    padding: 18px 22px;
    background: rgba(169, 219, 229, 0.22);
    border: 0;
    border-left: 7px solid var(--school-blue);
    border-radius: 5px 16px 5px 16px;
}

body:not(.home) .entry-content table {
    background: #fff;
    border: 1px solid rgba(21, 53, 22, 0.12);
    border-radius: 12px 4px 12px 4px;
}

body:not(.home) .archive-sidebar .info-box,
body:not(.home) .single-aside .info-box {
    position: relative;
    overflow: visible;
    padding: 26px 22px;
    background: #fffdf6;
    border: 2px solid rgba(21, 53, 22, 0.12);
    border-radius: 7px 20px 7px 20px;
    box-shadow: 7px 9px 0 rgba(21, 53, 22, 0.09);
}

body:not(.home) .archive-sidebar .info-box::before,
body:not(.home) .single-aside .info-box::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    width: 76px;
    height: 15px;
    background: var(--school-blue);
    border-radius: 2px;
    transform: rotate(2deg);
}

body:not(.home) .info-box h2 {
    color: var(--school-deep);
    font-family: var(--font-display);
    font-size: 1.35rem;
}

body:not(.home) .pill-links a,
body:not(.home) .side-nav a {
    border: 1px solid rgba(21, 53, 22, 0.1);
    border-radius: 10px 3px 10px 3px;
    background: rgba(227, 236, 215, 0.56);
}

body:not(.home) .pill-links a:nth-child(2n),
body:not(.home) .side-nav a:nth-child(2n) {
    background: rgba(169, 219, 229, 0.2);
}

body:not(.home) .archive-subcategories {
    gap: 14px;
}

body:not(.home) .archive-subcategories a,
body:not(.home) .post-card,
body:not(.home) .resource-card,
body:not(.home) .event-card,
body:not(.home) .gallery-card,
body:not(.home) .gallery-group-card {
    border: 2px solid rgba(21, 53, 22, 0.11);
    border-radius: 19px 6px 19px 6px;
    box-shadow: 6px 8px 0 rgba(21, 53, 22, 0.08);
}

body:not(.home) .archive-subcategories a {
    background: rgba(244, 216, 63, 0.24);
}

body:not(.home) .archive-subcategories a:nth-child(3n + 2) {
    background: rgba(169, 219, 229, 0.22);
}

body:not(.home) .archive-subcategories a:nth-child(3n) {
    background: rgba(244, 140, 108, 0.16);
}

body:not(.home) .post-card:hover,
body:not(.home) .resource-card:hover,
body:not(.home) .event-card:hover,
body:not(.home) .gallery-card:hover,
body:not(.home) .gallery-group-card:hover,
body:not(.home) .archive-subcategories a:hover {
    box-shadow: 9px 11px 0 rgba(21, 53, 22, 0.12);
    transform: translateY(-3px);
}

body:not(.home) .navigation.pagination .page-numbers {
    display: inline-grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid rgba(21, 53, 22, 0.14);
    border-radius: 10px 3px 10px 3px;
    text-decoration: none;
}

body:not(.home) .navigation.pagination .current {
    color: #fff;
    background: var(--school-deep);
}

@media (min-width: 1001px) {
    body:not(.home) .archive-sidebar,
    body:not(.home) .single-aside {
        position: sticky;
        top: 144px;
    }
}

@media (max-width: 700px) {
    body:not(.home) .archive-hero,
    body:not(.home) .single-hero {
        padding-block: 34px 42px;
        background:
            radial-gradient(circle at 108% 12%, rgba(169, 219, 229, 0.65) 0 68px, transparent 70px),
            linear-gradient(rgba(36, 85, 34, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(36, 85, 34, 0.05) 1px, transparent 1px),
            #f8f2de;
        background-size: auto, 26px 26px, 26px 26px, auto;
    }

    body:not(.home) .archive-hero::after,
    body:not(.home) .single-hero::after {
        display: none;
    }

    body:not(.home) .archive-hero h1,
    body:not(.home) .single-hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.35rem);
    }

    body:not(.home) .archive-layout,
    body:not(.home) .single-layout {
        margin-block: 28px 64px;
    }

    body:not(.home) .single-layout--page .single-content {
        padding: 26px 20px;
    }
}

body.dark:not(.home) .site-main {
    background:
        linear-gradient(rgba(244, 216, 63, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 216, 63, 0.055) 1px, transparent 1px),
        #0c150e;
    background-size: 30px 30px;
}

body.dark:not(.home) .archive-hero,
body.dark:not(.home) .single-hero {
    background: #0f1f12;
}

body.dark:not(.home) .archive-hero h1,
body.dark:not(.home) .single-hero h1,
body.dark:not(.home) .single-meta,
body.dark:not(.home) .archive-description {
    color: #fff;
}

body.dark:not(.home) .portal-shell .single-hero p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.82);
}

body.dark:not(.home) .single-content,
body.dark:not(.home) .archive-intro,
body.dark:not(.home) .archive-sidebar .info-box,
body.dark:not(.home) .single-aside .info-box {
    color: #fff;
    background: #17231a;
    border-color: rgba(244, 216, 63, 0.2);
}

body.dark:not(.home) .entry-content h2,
body.dark:not(.home) .entry-content h3,
body.dark:not(.home) .info-box h2 {
    color: #fff;
}

/* Dropdown links stay readable on their light paper background. */
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus-visible,
.primary-nav .sub-menu .current-menu-item > a,
.primary-nav .sub-menu .current-menu-ancestor > a {
    color: var(--school-deep, var(--green-deep));
    background: rgba(244, 216, 63, 0.28);
    box-shadow: none;
}

/* Compact multi-item "Ne spreglejte" rail on the school homepage. */
.home .highlight-strip {
    margin-top: -12px;
}

.home .highlight-strip__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    min-height: 112px;
    padding: 14px 16px;
    background: #fffdf6;
    border: 1px solid rgba(21, 53, 22, 0.11);
    border-left: 0;
    border-radius: 7px 20px 7px 20px;
    box-shadow: 7px 8px 0 rgba(21, 53, 22, 0.09);
}

.home .highlight-strip__header {
    justify-content: flex-start;
    gap: 11px;
}

.home .highlight-strip__symbol {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    color: var(--school-deep);
    background: var(--school-yellow);
    border-radius: 14px 4px 14px 4px;
    box-shadow: 3px 3px 0 rgba(21, 53, 22, 0.12);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 950;
}

.home .highlight-slider {
    min-width: 0;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.home .highlight-card {
    display: none;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    min-height: 78px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.home .highlight-card:first-child,
.home .highlight-card.is-active {
    display: grid;
}

.home .highlight-card[hidden] {
    display: none;
}

.home .highlight-card.no-media {
    grid-template-columns: minmax(0, 1fr);
}

.home .highlight-card__media {
    width: 72px;
    min-height: 72px;
    overflow: hidden;
    border-radius: 13px 4px 13px 4px;
}

.home .highlight-card__media img {
    width: 72px;
    height: 72px;
    min-height: 72px;
    object-fit: cover;
}

.home .highlight-card__body,
.home .highlight-card__body.is-full {
    display: grid;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 0;
}

.home .highlight-card__copy {
    min-width: 0;
}

.home .highlight-card__body h2 {
    margin: 0;
    font-size: clamp(1.08rem, 1.55vw, 1.42rem);
    line-height: 1.18;
}

.home .highlight-card__body h2 a {
    color: var(--school-deep);
}

.home .highlight-card__body h2 a:hover,
.home .highlight-card__body h2 a:focus-visible {
    color: var(--school-berry);
}

.home .highlight-card__body p {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: rgba(24, 39, 24, 0.76);
    font-size: 0.92rem;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home .highlight-card__action {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 13px;
    color: #fff;
    background: var(--school-deep);
    border-radius: 10px 3px 10px 3px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.home .highlight-card__action:hover,
.home .highlight-card__action:focus-visible {
    color: var(--school-deep);
    background: var(--school-yellow);
}

.home .highlight-card__action span {
    transition: transform 160ms ease;
}

.home .highlight-card__action:hover span,
.home .highlight-card__action:focus-visible span {
    transform: translateX(3px);
}

.home .highlight-strip__controls {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.home .highlight-strip__nav {
    gap: 6px;
}

.home .highlight-strip__button {
    width: 34px;
    height: 34px;
    background: rgba(46, 91, 36, 0.07);
}

.home .highlight-strip__button:hover,
.home .highlight-strip__button:focus-visible {
    color: #fff;
    background: var(--school-deep);
}

.home .highlight-strip__dots {
    gap: 6px;
}

@media (max-width: 860px) {
    .home .highlight-strip__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 16px;
    }

    .home .highlight-slider {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .home .highlight-strip__controls {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 600px) {
    .home .highlight-strip__inner {
        padding: 12px;
    }

    .home .highlight-strip__symbol {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .home .highlight-card {
        grid-template-columns: 1fr;
    }

    .home .highlight-card__media {
        display: none;
    }

    .home .highlight-card__body,
    .home .highlight-card__body.is-full {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .home .highlight-card__body p {
        display: none;
    }

    .home .highlight-card__action {
        min-height: 38px;
        padding: 7px 10px;
    }
}

body.dark.home .highlight-strip__inner {
    background: #17231a;
    border-color: rgba(244, 216, 63, 0.18);
}

body.dark.home .highlight-card__body h2 a {
    color: #fff;
}

body.dark.home .highlight-card__body p {
    color: rgba(255, 255, 255, 0.72);
}

/* Download cards used for grouped attachments inside school posts. */
.attachment-download-section {
    margin-top: 40px;
}

.attachment-download-section h2 {
    margin-bottom: 18px;
}

.attachment-download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.entry-content .attachment-download-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 82px;
    padding: 13px 15px;
    color: var(--school-deep);
    background: #fffdf6;
    border: 1px solid rgba(21, 53, 22, 0.14);
    border-radius: 6px 16px 6px 16px;
    box-shadow: 4px 5px 0 rgba(21, 53, 22, 0.08);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.entry-content .attachment-download-card:hover,
.entry-content .attachment-download-card:focus-visible {
    color: var(--school-deep);
    border-color: rgba(21, 53, 22, 0.3);
    box-shadow: 6px 7px 0 rgba(21, 53, 22, 0.1);
    transform: translateY(-2px);
}

.attachment-download-card__type {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--school-deep);
    background: rgba(244, 216, 63, 0.72);
    border-radius: 12px 3px 12px 3px;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.03em;
}

.attachment-download-card__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.attachment-download-card__copy strong {
    font-size: 1.02rem;
    line-height: 1.25;
}

.attachment-download-card__copy small {
    color: rgba(24, 39, 24, 0.62);
    font-size: 0.82rem;
}

.attachment-download-card__arrow {
    font-size: 1.35rem;
    font-weight: 900;
}

@media (max-width: 720px) {
    .attachment-download-grid {
        grid-template-columns: 1fr;
    }
}

body.dark .entry-content .attachment-download-card {
    color: #fff;
    background: #1b2a1e;
    border-color: rgba(244, 216, 63, 0.2);
}

body.dark .attachment-download-card__copy small {
    color: rgba(255, 255, 255, 0.66);
}

/* School motto, values, anthem and compact project showcase. */
.home .hero__value {
    position: absolute;
    color: rgba(36, 85, 34, 0.105);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 3.25rem);
    font-weight: 900;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.home .hero__value--respect {
    top: 27%;
    left: 2%;
    transform: rotate(-8deg);
}

.home .hero__value--responsibility {
    top: 45%;
    right: 2%;
    transform: rotate(7deg);
}

.home .hero__value--knowledge {
    bottom: 29%;
    left: 38%;
    transform: rotate(-4deg);
}

.home .hero__value--honesty {
    top: 18%;
    left: 42%;
    transform: rotate(4deg);
}

.home .hero__value--tolerance {
    right: 11%;
    bottom: 7%;
    transform: rotate(-7deg);
}

.home .hero__visual-note {
    max-width: 355px;
}

.home .hero__visual-note strong {
    line-height: 1.45;
}

.school-community-band {
    padding: clamp(38px, 5vw, 70px) 0;
    background:
        linear-gradient(rgba(36, 85, 34, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 85, 34, 0.035) 1px, transparent 1px),
        var(--school-paper);
    background-size: 24px 24px, 24px 24px, auto;
    border-top: 1px solid rgba(21, 53, 22, 0.1);
}

.school-community-band__grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 38px);
    align-items: start;
}

.anthem-card {
    color: #fff;
    background: var(--school-deep);
    border-radius: 18px 5px 18px 5px;
    box-shadow: 8px 9px 0 rgba(21, 53, 22, 0.13);
}

.anthem-card summary {
    display: flex;
    gap: 16px;
    align-items: center;
    min-height: 112px;
    padding: 20px;
    cursor: pointer;
    list-style: none;
}

.anthem-card summary::-webkit-details-marker {
    display: none;
}

.anthem-card__symbol {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    color: var(--school-deep);
    background: var(--school-yellow);
    border-radius: 15px 4px 15px 4px;
    font-size: 1.6rem;
}

.anthem-card__copy {
    display: grid;
    gap: 3px;
}

.anthem-card__copy small {
    color: var(--school-yellow);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.anthem-card__copy strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.55rem;
}

.anthem-card__prompt {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
    font-weight: 750;
}

.anthem-card__prompt span {
    display: inline-block;
    transition: transform 180ms ease;
}

.anthem-card[open] .anthem-card__prompt span {
    transform: rotate(180deg);
}

.anthem-card__lyrics {
    margin: 0 16px 16px;
    padding: 24px 18px;
    color: #159a36;
    background: #fff;
    border-radius: 5px 14px 5px 14px;
    text-align: center;
}

.anthem-card__lyrics p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 850;
    line-height: 1.6;
}

.anthem-card__lyrics p + p {
    margin-top: 1.5em;
}

.project-ribbon {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 2px solid rgba(21, 53, 22, 0.11);
    border-radius: 20px 6px 20px 6px;
    box-shadow: 8px 9px 0 rgba(21, 53, 22, 0.08);
}

.project-ribbon__heading {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.project-ribbon__heading > span {
    color: var(--school-deep);
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 900;
}

.project-ribbon__heading a {
    color: var(--school-green);
    font-weight: 850;
    text-decoration: none;
}

.project-ribbon__viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.project-ribbon__track,
.project-ribbon__set {
    display: flex;
    width: max-content;
    gap: 10px;
}

.project-ribbon__track {
    animation: school-projects-scroll 30s linear infinite;
}

.project-ribbon__set {
    padding-right: 10px;
}

.project-ribbon__viewport:hover .project-ribbon__track,
.project-ribbon__viewport:focus-within .project-ribbon__track {
    animation-play-state: paused;
}

.project-ribbon__set a {
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    padding: 10px 18px;
    color: var(--school-deep);
    background: rgba(169, 219, 229, 0.22);
    border: 1px solid rgba(21, 53, 22, 0.1);
    border-radius: 12px 4px 12px 4px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.project-ribbon__set a:nth-child(3n + 2) {
    background: rgba(244, 216, 63, 0.24);
}

.project-ribbon__set a:nth-child(3n) {
    background: rgba(244, 140, 108, 0.15);
}

.project-ribbon__set a:hover,
.project-ribbon__set a:focus-visible {
    color: #fff;
    background: var(--school-green);
}

@keyframes school-projects-scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .home .hero__copy {
        order: 1;
    }

    .home .hero__panel {
        order: 2;
    }

    .home .hero__grid > .highlight-strip,
    .home .hero__grid > .notice-strip {
        order: 3;
    }

    .home .hero__visual {
        order: 4;
    }

    .school-community-band__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .home .hero__value {
        font-size: 1.25rem;
        opacity: 0.76;
    }

    .home .hero__value--knowledge,
    .home .hero__value--honesty {
        display: none;
    }

    .school-community-band {
        padding-block: 34px;
    }

    .project-ribbon {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-ribbon__track {
        width: 100%;
        animation: none;
    }

    .project-ribbon__set {
        width: 100%;
        overflow-x: auto;
    }

    .project-ribbon__set[aria-hidden="true"] {
        display: none;
    }
}

/* Keep the current priority notice inside the hero flow and ahead of utilities. */
.home .hero__grid {
    column-gap: clamp(44px, 7vw, 92px);
    row-gap: 26px;
}

.home .hero__grid > .highlight-strip,
.home .hero__grid > .notice-strip {
    grid-column: 1 / -1;
    width: 100%;
    margin: 2px 0 0;
}

.home .hero__grid > .highlight-strip .highlight-strip__inner,
.home .hero__grid > .notice-strip .notice-strip__inner {
    width: 100%;
    max-width: none;
}

@media (max-width: 900px) {
    .home .hero__copy {
        order: 1;
    }

    .home .hero__panel {
        order: 2;
    }

    .home .hero__grid > .highlight-strip,
    .home .hero__grid > .notice-strip {
        order: 3;
        margin-top: 0;
    }

    .home .hero__visual {
        order: 4;
    }
}

/* Unified homepage utility row: roomy shortcuts and a compact priority card. */
.home .hero__utilities {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 20px;
    align-items: stretch;
    min-width: 0;
}

.home .hero__utilities .hero__panel {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    height: 100%;
    margin: 0;
    padding: 12px;
}

.home .hero__utilities > .hero__panel {
    order: 1;
}

.home .hero__utilities .hero__panel-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 0;
    padding: 12px 15px;
}

.home .hero__utilities .hero__panel-heading span {
    margin: 0;
}

.home .hero__utilities .hero__panel-heading strong {
    font-size: 1.12rem;
}

.home .hero__utilities .hero__panel-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.home .hero__utilities .hero__panel-links a {
    min-width: 0;
    min-height: 60px;
    padding: 9px 10px;
    overflow-wrap: anywhere;
    line-height: 1.16;
}

.home .hero__utilities .hero__panel-links a::before {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
    margin-right: 8px;
}

.home .hero__utilities > .highlight-strip,
.home .hero__utilities > .notice-strip {
    order: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.home .hero__utilities > .highlight-strip .highlight-strip__inner,
.home .hero__utilities > .notice-strip .notice-strip__inner {
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.home .hero__utilities > .highlight-strip .highlight-strip__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
}

.home .hero__utilities > .highlight-strip .highlight-slider {
    grid-column: 1 / -1;
    grid-row: 2;
}

.home .hero__utilities > .highlight-strip .highlight-strip__controls {
    grid-column: 2;
    grid-row: 1;
}

.home .hero__utilities > .highlight-strip .highlight-card__body p {
    -webkit-line-clamp: 1;
}

@media (max-width: 1180px) {
    .home .hero__utilities {
        grid-template-columns: 1fr;
    }

    .home .hero__utilities .hero__panel-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home .hero__copy {
        order: 1;
    }

    .home .hero__utilities {
        order: 2;
    }

    .home .hero__visual {
        order: 3;
    }
}

@media (max-width: 620px) {
    .home .hero__utilities {
        gap: 14px;
    }

    .home .hero__utilities .hero__panel {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .home .hero__utilities .hero__panel-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home .hero__utilities .hero__panel-links a {
        min-height: 60px;
    }
}

/* Quiet utility navigation: links instead of another group of cards. */
.home .hero__utilities {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.home .hero__utilities .hero__panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-block: 1px solid rgba(21, 53, 22, 0.16);
    border-radius: 0;
    box-shadow: none;
}

.home .hero__utilities .hero__panel-heading {
    display: block;
    min-height: 0;
    padding: 0;
    color: var(--school-deep);
    background: transparent;
    border-radius: 0;
}

.home .hero__utilities .hero__panel-heading span {
    display: none;
}

.home .hero__utilities .hero__panel-heading strong {
    color: var(--school-deep);
    font-size: 1rem;
    white-space: nowrap;
}

.home .hero__utilities .hero__panel-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.home .hero__utilities .hero__panel-links a,
.home .hero__utilities .hero__panel-links a:nth-child(2n),
.home .hero__utilities .hero__panel-links a:nth-child(3n) {
    min-height: 58px;
    padding: 8px 18px;
    color: var(--school-deep);
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(21, 53, 22, 0.12);
    border-radius: 0;
    box-shadow: none;
}

.home .hero__utilities .hero__panel-links a::before {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    margin-right: 9px;
    border-radius: 50%;
}

.home .hero__utilities .hero__panel-links a:hover,
.home .hero__utilities .hero__panel-links a:focus-visible {
    color: var(--school-green);
    background: rgba(244, 216, 63, 0.13);
    box-shadow: none;
    transform: none;
}

.home .hero__utilities > .highlight-strip .highlight-strip__inner,
.home .hero__utilities > .notice-strip .notice-strip__inner {
    min-height: 92px;
    height: auto;
    border: 1px solid rgba(21, 53, 22, 0.1);
    border-left: 6px solid var(--school-yellow);
    border-radius: 4px 12px 4px 12px;
    box-shadow: none;
}

/* Slim pre-footer for the anthem and the projects. */
.school-community-band {
    padding: 20px 0;
    color: #fff;
    background: var(--school-deep);
    border-top: 4px solid var(--school-yellow);
}

.home .site-footer {
    margin-top: 0 !important;
}

.school-community-band__grid {
    display: block;
}

.school-community-band .anthem-card {
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.school-community-band .anthem-card summary {
    min-height: 0;
    padding: 4px 0;
}

.school-community-band .anthem-card__symbol {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.school-community-band .anthem-card__copy small {
    display: none;
}

.school-community-band .anthem-card__copy strong {
    font-size: 1.18rem;
}

.school-community-band .anthem-card__prompt {
    font-size: 0.76rem;
}

.school-community-band .anthem-card__lyrics {
    margin: 16px 0 4px;
    padding: 20px;
}

.school-community-band .project-ribbon {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.sidebar-stack .anthem-card--sidebar {
    overflow: hidden;
}

.sidebar-stack .anthem-card--sidebar summary {
    min-height: 126px;
}

.school-community-band .project-ribbon__heading {
    margin-bottom: 6px;
}

.school-community-band .project-ribbon__heading > span {
    color: #fff;
    font-size: 1rem;
}

.school-community-band .project-ribbon__heading a {
    color: var(--school-yellow);
    font-size: 0.85rem;
}

.school-community-band .project-ribbon__viewport {
    mask-image: linear-gradient(90deg, #000 0, #000 95%, transparent);
}

.school-community-band .project-ribbon__track,
.school-community-band .project-ribbon__set {
    gap: 0;
}

.school-community-band .project-ribbon__set {
    padding-right: 0;
}

.school-community-band .project-ribbon__set a,
.school-community-band .project-ribbon__set a:nth-child(3n + 2),
.school-community-band .project-ribbon__set a:nth-child(3n) {
    min-height: 34px;
    padding: 4px 18px;
    color: rgba(255, 255, 255, 0.86);
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    font-size: 0.88rem;
    font-weight: 750;
}

.school-community-band .project-ribbon__set a:first-child {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.school-community-band .project-ribbon__set a:hover,
.school-community-band .project-ribbon__set a:focus-visible {
    color: var(--school-yellow);
    background: transparent;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .home .hero__utilities .hero__panel {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home .hero__utilities .hero__panel-heading {
        padding: 10px 2px 3px;
    }

    .home .hero__utilities .hero__panel-links a:first-child {
        border-left: 0;
    }

    .school-community-band__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 620px) {
    .home .hero__utilities .hero__panel {
        padding: 0;
    }

    .home .hero__utilities .hero__panel-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home .hero__utilities .hero__panel-links a,
    .home .hero__utilities .hero__panel-links a:nth-child(2n),
    .home .hero__utilities .hero__panel-links a:nth-child(3n) {
        min-height: 50px;
        padding: 7px 8px;
        border-top: 1px solid rgba(21, 53, 22, 0.1);
        border-left: 0;
        font-size: 0.8rem;
    }

    .school-community-band {
        padding-block: 18px;
    }
}

/* Slim quick-access row directly below the primary navigation. */
.home-quickbar {
    position: relative;
    z-index: 5;
    background: #fffdf6;
    border-bottom: 1px solid rgba(21, 53, 22, 0.12);
}

.home .home-quickbar .hero__panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin: 0 auto;
    padding-block: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.home .home-quickbar .hero__panel-heading {
    display: block;
    min-height: 0;
    padding: 0;
    color: var(--school-deep);
    background: transparent;
    border-radius: 0;
}

.home .home-quickbar .hero__panel-heading strong {
    color: var(--school-deep);
    font-size: 0.9rem;
    white-space: nowrap;
}

.home .home-quickbar .hero__panel-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
}

.home .home-quickbar .hero__panel-links a,
.home .home-quickbar .hero__panel-links a:nth-child(2n),
.home .home-quickbar .hero__panel-links a:nth-child(3n) {
    min-height: 48px;
    padding: 6px 18px;
    color: var(--school-deep);
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(21, 53, 22, 0.1);
    border-radius: 0;
    box-shadow: none;
}

.home .home-quickbar .hero__panel-links a::before {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    margin-right: 8px;
    border-radius: 50%;
    font-size: 0.76rem;
}

.home .home-quickbar .hero__panel-links a:hover,
.home .home-quickbar .hero__panel-links a:focus-visible {
    color: var(--school-green);
    background: rgba(244, 216, 63, 0.14);
    box-shadow: none;
    transform: none;
}

.home .hero__utilities {
    display: block;
}

.home .hero__utilities > .highlight-strip,
.home .hero__utilities > .notice-strip {
    max-width: none;
}

@media (max-width: 700px) {
    .home .home-quickbar .hero__panel {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home .home-quickbar .hero__panel-heading {
        display: none;
    }

    .home .home-quickbar .hero__panel-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home .home-quickbar .hero__panel-links a,
    .home .home-quickbar .hero__panel-links a:nth-child(2n),
    .home .home-quickbar .hero__panel-links a:nth-child(3n) {
        min-height: 42px;
        padding: 5px 8px;
        border-top: 1px solid rgba(21, 53, 22, 0.08);
        border-left: 0;
        font-size: 0.78rem;
    }
}

/* Final table layout overrides. */
@media (min-width: 721px) {
    .entry-content table {
        display: table;
        overflow-x: visible !important;
    }
}

.school-hours-lead {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 26px;
    width: min(100%, 800px);
    margin-inline: auto;
}

.school-hours-clock {
    width: 96px;
    border-width: 6px;
}

.school-hours-clock::before,
.school-hours-clock::after {
    top: -12px;
    width: 30px;
    height: 18px;
}

.school-hours-clock::before {
    left: 10px;
}

.school-hours-clock::after {
    right: 10px;
}

.entry-content .school-bell-table {
    display: table;
    min-width: 0;
    table-layout: fixed;
}

@media (max-width: 720px) {
    .school-hours-lead {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        width: 100%;
    }

    .school-hours-table-wrap,
    .entry-content .school-bell-table {
        width: 100% !important;
    }
}

@media (min-width: 901px) {
    .school-community-band__grid:has(.anthem-card[open]) {
        grid-template-columns: minmax(360px, 0.46fr) minmax(0, 1fr);
        align-items: start;
    }
}

/* Final quiet quick-access row. */
.home-quickbar {
    background:
        linear-gradient(90deg, rgba(244, 216, 63, 0.08), transparent 28%, rgba(169, 219, 229, 0.08) 72%, transparent),
        #fffdf6;
}

.home .home-quickbar .hero__panel {
    grid-template-columns: minmax(0, 1fr);
    width: min(1080px, 100%);
    gap: 0;
}

.home .home-quickbar .hero__panel-links a,
.home .home-quickbar .hero__panel-links a:nth-child(2n),
.home .home-quickbar .hero__panel-links a:nth-child(3n) {
    position: relative;
    min-height: 44px;
    justify-content: center;
    padding: 5px 16px;
    border-left: 0;
    font-size: 0.84rem;
    font-weight: 760;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease;
}

.home .home-quickbar .hero__panel-links a + a::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 22px;
    content: "";
    background: rgba(21, 53, 22, 0.13);
    transform: translateY(-50%);
}

.home .home-quickbar .hero__panel-links a::before {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    margin-right: 7px;
    border-radius: 50%;
    box-shadow: none;
    font-size: 0.67rem;
}

.home .home-quickbar .hero__panel-links a:hover::before,
.home .home-quickbar .hero__panel-links a:focus-visible::before {
    box-shadow: none;
    transform: none;
}

.home .home-quickbar .hero__panel-links a:hover,
.home .home-quickbar .hero__panel-links a:focus-visible {
    color: var(--school-green);
    background: transparent;
    text-decoration: underline;
    text-decoration-color: var(--school-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

@media (max-width: 700px) {
    .home .home-quickbar .hero__panel-links a + a::after {
        display: none;
    }

    .home .home-quickbar .hero__panel-links a,
    .home .home-quickbar .hero__panel-links a:nth-child(2n),
    .home .home-quickbar .hero__panel-links a:nth-child(3n) {
        min-height: 40px;
        padding: 5px 7px;
        font-size: 0.75rem;
        white-space: normal;
    }
}

@media (min-width: 701px) {
    .home .home-quickbar .hero__panel-links {
        display: flex;
        width: max-content;
        max-width: 100%;
        justify-content: center;
        margin-inline: auto;
        transform: translateX(var(--quickbar-align-shift, 0px));
    }

    .home .home-quickbar .hero__panel-links a,
    .home .home-quickbar .hero__panel-links a:nth-child(2n),
    .home .home-quickbar .hero__panel-links a:nth-child(3n) {
        flex: 0 0 auto;
    }
}

/* Parent and student guides: a dedicated landing page and sidebar shortcut. */
.home-guides-card {
    display: flex;
    min-height: 126px;
    gap: 16px;
    align-items: center;
    padding: 20px;
    color: #fff;
    background: var(--school-deep);
    border-radius: 18px 5px 18px 5px;
    box-shadow: 8px 9px 0 rgba(21, 53, 22, 0.13);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-guides-card:hover,
.home-guides-card:focus-visible {
    color: #fff;
    box-shadow: 10px 12px 0 rgba(21, 53, 22, 0.16);
    transform: translateY(-2px);
}

.home-guides-card__symbol {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    color: var(--school-deep, var(--green-dark));
    background: var(--school-blue, var(--blue));
    border-radius: 15px 4px 15px 4px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 950;
}

.home-guides-card__copy {
    display: grid;
    gap: 3px;
}

.home-guides-card__copy small {
    color: var(--school-yellow);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-guides-card__copy strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.55rem;
}

.home-guides-card__prompt {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
    font-weight: 750;
}

.home-guides-card__prompt span {
    display: inline-block;
    transition: transform 180ms ease;
}

.home-guides-card:hover .home-guides-card__prompt span,
.home-guides-card:focus-visible .home-guides-card__prompt span {
    transform: translateX(4px);
}

.guide-directory {
    display: grid;
    gap: 24px;
}

.guide-directory__intro {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(21, 53, 22, 0.14);
}

body:not(.home) .guide-directory__intro h2 {
    margin: 0 0 8px;
}

.guide-directory__intro > p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-card {
    display: flex;
    min-width: 0;
    min-height: 230px;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    color: var(--school-deep, var(--green-dark));
    background: #fffdf6;
    border: 2px solid rgba(21, 53, 22, 0.12);
    border-radius: 7px 18px 7px 18px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.guide-card:nth-child(3n + 2) {
    background: rgba(169, 219, 229, 0.18);
}

.guide-card:nth-child(3n) {
    background: rgba(244, 216, 63, 0.12);
}

.guide-card:hover,
.guide-card:focus-visible {
    border-color: var(--school-green, var(--green));
    box-shadow: 6px 7px 0 rgba(21, 53, 22, 0.1);
    transform: translateY(-3px);
}

.guide-card__top {
    display: flex;
    width: 100%;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
}

.guide-card__symbol {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--school-deep, var(--green-dark));
    background: var(--school-blue, var(--blue));
    border-radius: 50%;
    font-weight: 950;
}

.guide-card__type,
.guide-card__current {
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.guide-card__type {
    color: var(--muted);
}

.guide-card__current {
    margin-left: auto;
    padding: 5px 8px;
    color: var(--school-deep, var(--green-dark));
    background: var(--school-yellow, var(--gold));
    border-radius: 999px;
}

.guide-card > strong {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.17;
}

.guide-card__audience {
    margin-top: 8px;
    color: var(--muted);
}

.guide-card__action {
    margin-top: auto;
    padding-top: 20px;
    color: var(--school-green, var(--green));
    font-weight: 900;
}

@media (max-width: 700px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .guide-card {
        min-height: 210px;
    }
}

/* Photographic introductions for the three branch-school archives. */
.branch-school-hero {
    position: relative;
    isolation: isolate;
    min-height: 520px;
    overflow: hidden;
    padding: clamp(54px, 6vw, 82px) 0 clamp(64px, 7vw, 92px);
    color: var(--school-ink);
    background:
        linear-gradient(rgba(36, 85, 34, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 85, 34, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 5% 15%, rgba(244, 216, 63, 0.24) 0 130px, transparent 131px),
        var(--school-paper);
    background-size: 28px 28px, 28px 28px, auto, auto;
}

.branch-school-hero__doodles {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    color: rgba(36, 85, 34, 0.1);
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 800;
    pointer-events: none;
}

.branch-school-hero__doodles span {
    position: absolute;
    font-size: clamp(2.2rem, 4vw, 4.7rem);
    transform: rotate(-7deg);
}

.branch-school-hero__doodles span:nth-child(1) {
    top: 12%;
    right: 5%;
}

.branch-school-hero__doodles span:nth-child(2) {
    bottom: 5%;
    left: 31%;
    transform: rotate(6deg);
}

.branch-school-hero__doodles span:nth-child(3) {
    top: 43%;
    left: 2%;
    font-size: clamp(1.8rem, 3vw, 3.5rem);
    transform: rotate(-12deg);
}

.branch-school-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
    gap: clamp(44px, 7vw, 96px);
    align-items: center;
}

.branch-school-hero__copy {
    max-width: 620px;
}

.branch-school-hero__copy .eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 12px 6px;
    color: var(--school-deep);
    background: var(--school-yellow);
    border-radius: 10px 2px 10px 2px;
    transform: rotate(-1deg);
}

.branch-school-hero__copy h1 {
    margin: 0;
    color: var(--school-ink);
    font-size: clamp(3.15rem, 5.5vw, 6rem);
    line-height: 0.94;
    text-wrap: balance;
}

.branch-school-hero__copy > p:not(.eyebrow) {
    max-width: 590px;
    margin: 26px 0 0;
    color: #4d5d50;
    font-size: clamp(1.04rem, 1.6vw, 1.22rem);
    font-weight: 650;
    line-height: 1.65;
}

.branch-school-hero__visual {
    position: relative;
    min-width: 0;
    min-height: 390px;
}

.branch-school-hero__photo {
    position: absolute;
    margin: 0;
    overflow: hidden;
    background: #fff;
}

.branch-school-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-school-hero__photo--main {
    top: 0;
    right: 0;
    width: 83%;
    height: 88%;
    border: 10px solid #fff;
    border-radius: 8px 28px 8px 28px;
    box-shadow: 16px 18px 0 var(--school-yellow);
    transform: rotate(1.5deg);
}

.branch-school-hero__photo--detail {
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 43%;
    height: 52%;
    border: 9px solid #fff;
    border-radius: 22px 5px 22px 5px;
    box-shadow: -10px 12px 0 var(--school-blue);
    transform: rotate(-4deg);
}

.branch-school-hero__visual::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: -6px;
    right: 24%;
    width: 98px;
    height: 29px;
    background: rgba(239, 143, 114, 0.82);
    transform: rotate(4deg);
}

.branch-school-hero__note {
    position: absolute;
    z-index: 5;
    right: 4%;
    bottom: -3px;
    max-width: min(320px, 52%);
    margin: 0;
    padding: 16px 19px;
    color: var(--school-deep);
    background: #fff;
    border-left: 7px solid var(--school-coral);
    box-shadow: 7px 8px 0 rgba(21, 53, 22, 0.12);
    transform: rotate(-1deg);
}

.branch-school-hero__note span,
.branch-school-hero__note strong {
    display: block;
}

.branch-school-hero__note span {
    margin-bottom: 4px;
    color: var(--berry);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.branch-school-hero__note strong {
    line-height: 1.35;
}

@media (max-width: 980px) {
    .branch-school-hero__grid {
        grid-template-columns: 1fr;
    }

    .branch-school-hero__copy {
        max-width: 760px;
    }

    .branch-school-hero__visual {
        width: min(760px, calc(100% - 16px));
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    .branch-school-hero {
        min-height: 0;
        padding: 34px 0 48px;
    }

    .branch-school-hero__grid {
        gap: 34px;
    }

    .branch-school-hero__copy h1 {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }

    .branch-school-hero__copy > p:not(.eyebrow) {
        margin-top: 19px;
        font-size: 1rem;
    }

    .branch-school-hero__visual {
        width: calc(100% - 8px);
        min-height: 310px;
    }

    .branch-school-hero__photo--main {
        width: 92%;
        height: 78%;
        border-width: 7px;
        box-shadow: 10px 12px 0 var(--school-yellow);
    }

    .branch-school-hero__photo--detail {
        width: 47%;
        height: 46%;
        border-width: 6px;
        box-shadow: -7px 9px 0 var(--school-blue);
    }

    .branch-school-hero__note {
        right: 1%;
        bottom: 0;
        max-width: 60%;
        padding: 12px 14px;
        font-size: 0.84rem;
    }
}

/* Video stories on the home page. */
.home-video-band {
    position: relative;
    overflow: hidden;
    padding: clamp(62px, 7vw, 92px) 0;
    background:
        linear-gradient(rgba(36, 85, 34, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 85, 34, 0.04) 1px, transparent 1px),
        #f7f3e6;
    background-size: 28px 28px;
    border-block: 1px solid rgba(36, 85, 34, 0.1);
}

.home-video-band::after {
    content: "▶";
    position: absolute;
    right: 2%;
    bottom: -38px;
    color: rgba(239, 143, 114, 0.13);
    font-size: clamp(8rem, 17vw, 16rem);
    line-height: 1;
    transform: rotate(-7deg);
    pointer-events: none;
}

.home-video-band__heading {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
    gap: 36px;
    align-items: end;
    margin-bottom: 32px;
}

.home-video-band__heading .eyebrow {
    margin-bottom: 8px;
    color: var(--school-green);
}

.home-video-band__heading h2 {
    margin: 0;
    color: var(--school-ink);
    font-size: clamp(2.35rem, 4.3vw, 4rem);
    line-height: 1;
}

.home-video-band__heading > p {
    margin: 0;
    color: #59645b;
    font-size: 1.04rem;
    font-weight: 650;
    line-height: 1.6;
}

.home-video-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-video-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 18px 5px 18px 5px;
    box-shadow: 8px 9px 0 rgba(21, 53, 22, 0.1);
}

.home-video-card:nth-child(2) {
    transform: translateY(12px);
}

.home-video-card:nth-child(3) {
    border-radius: 5px 18px 5px 18px;
}

.home-video-card__embed {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--school-deep);
}

.home-video-card__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.home-video-card__placeholder.consent-embed-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #fff;
    background:
        linear-gradient(rgba(21, 53, 22, 0.7), rgba(21, 53, 22, 0.9)),
        radial-gradient(circle at 20% 15%, rgba(244, 216, 63, 0.32), transparent 55%);
    border: 0;
    border-radius: 0;
    text-align: center;
}

.home-video-card__placeholder[hidden] {
    display: none;
}

.home-video-card__placeholder p {
    max-width: 270px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
    line-height: 1.4;
}

.home-video-card__placeholder .button {
    min-height: 38px;
    padding: 8px 13px;
    color: var(--school-deep);
    background: #fff;
    border: 0;
    font-size: 0.78rem;
}

.home-video-card__play {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    padding-left: 4px;
    color: var(--school-deep);
    background: var(--school-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.15);
    font-size: 1.35rem;
}

.home-video-card__body {
    padding: 23px 24px 26px;
}

.home-video-card__body > span {
    display: block;
    margin-bottom: 7px;
    color: var(--berry);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-video-card__body h3 {
    margin: 0;
    color: var(--school-deep);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.15;
}

.home-video-card__body p {
    margin: 10px 0 0;
    color: #59645b;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .home-video-band__heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-video-card:nth-child(2) {
        transform: none;
    }
}

@media (max-width: 650px) {
    .home-video-band {
        padding: 52px 0 58px;
    }

    .home-video-grid {
        width: calc(100% + 16px);
        grid-auto-flow: column;
        grid-auto-columns: minmax(280px, 86vw);
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        padding: 2px 16px 18px 2px;
        scroll-padding-left: 2px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .home-video-card {
        scroll-snap-align: start;
    }

    .home-video-card__body {
        padding: 20px 20px 23px;
    }
}

/* Keep the wide curriculum tables readable instead of breaking values per character. */
body.category-predmetnik .archive-layout {
    grid-template-columns: minmax(0, 1fr);
}

body.category-predmetnik .archive-sidebar {
    position: static;
}

body.category-predmetnik .archive-static-content,
body.category-predmetnik .archive-static-content__section {
    min-width: 0;
}

body.category-predmetnik .archive-static-content__section .entry-content {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: normal;
    overscroll-behavior-inline: contain;
    padding: 0 0 12px;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

body.category-predmetnik .archive-static-content__section table {
    display: table;
    width: 100% !important;
    min-width: 980px;
    table-layout: fixed;
}

body.category-predmetnik .archive-static-content__section td {
    padding: 9px 7px !important;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
}

body.category-predmetnik .archive-static-content__section td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 210px !important;
    min-width: 210px;
    background: var(--white) !important;
    box-shadow: 5px 0 8px -8px rgba(21, 53, 22, 0.55);
}

body.category-predmetnik .archive-static-content__section tbody tr:nth-child(even):not(:first-child):not(:nth-child(2)) td:first-child {
    background: #fffbf1 !important;
}

body.category-predmetnik .archive-static-content__section tbody tr:first-child td:first-child,
body.category-predmetnik .archive-static-content__section tbody tr:nth-child(2) td:first-child,
body.category-predmetnik .archive-static-content__section tbody tr:has(strong) td:first-child {
    background: #edf3e6 !important;
}

body.category-predmetnik .archive-static-content__section td:not(:first-child),
body.category-predmetnik .archive-static-content__section td:not(:first-child) p,
body.category-predmetnik .archive-static-content__section td:not(:first-child) span {
    white-space: nowrap;
}

@media (max-width: 720px) {
    body.category-predmetnik .archive-static-content {
        padding: 20px 14px;
    }

    body.category-predmetnik .archive-static-content__section table {
        min-width: 920px;
    }

    body.category-predmetnik .archive-static-content__section td {
        padding: 8px 6px !important;
        font-size: 0.84rem !important;
    }

    body.category-predmetnik .archive-static-content__section td:first-child {
        width: 180px !important;
        min-width: 180px;
    }
}

/* Mobile quick links: keep all seven actions useful without a tall, uneven grid. */
@media (max-width: 700px) {
    .home .home-quickbar .hero__panel {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .home .home-quickbar .hero__panel-links {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 8px max(46px, calc(10px + env(safe-area-inset-right))) 10px max(10px, env(safe-area-inset-left));
        scroll-padding-inline: max(10px, env(safe-area-inset-left));
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .home .home-quickbar .hero__panel-links::-webkit-scrollbar {
        display: none;
    }

    .home .home-quickbar .hero__panel-links a,
    .home .home-quickbar .hero__panel-links a:nth-child(2n),
    .home .home-quickbar .hero__panel-links a:nth-child(3n) {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 7px 12px;
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(21, 53, 22, 0.12);
        border-radius: 999px;
        box-shadow: 0 2px 7px rgba(21, 53, 22, 0.07);
        font-size: 0.8rem;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .home .home-quickbar .hero__panel-links a::before {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        margin-right: 7px;
    }

    .home .home-quickbar .hero__panel-links a:hover,
    .home .home-quickbar .hero__panel-links a:focus-visible {
        background: #fff;
    }

    .home .home-quickbar.has-quickbar-overflow .hero__panel::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        width: 64px;
        pointer-events: none;
        content: "";
        background: linear-gradient(90deg, rgba(247, 243, 231, 0), rgba(247, 243, 231, 0.95) 58%);
        transition: opacity 160ms ease;
    }

    .home .home-quickbar.is-quickbar-end .hero__panel::after {
        opacity: 0;
    }

    .home .home-quickbar .home-quickbar__more {
        position: absolute;
        top: 50%;
        right: max(8px, env(safe-area-inset-right));
        z-index: 3;
        display: inline-flex;
        min-width: 44px;
        min-height: 36px;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 8px;
        color: #fff;
        background: #2e5b24;
        border: 0;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(21, 53, 22, 0.24);
        font: inherit;
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .home .home-quickbar .home-quickbar__more[hidden] {
        display: none;
    }

    .home .home-quickbar .home-quickbar__more svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .home .home-quickbar .home-quickbar__more:hover,
    .home .home-quickbar .home-quickbar__more:focus-visible {
        background: #153516;
    }

    .home .home-quickbar .home-quickbar__more:focus-visible {
        outline: 3px solid #f1d447;
        outline-offset: 2px;
    }

    .home .home-quickbar.has-quickbar-scrolled .home-quickbar__more span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }
}

/* On phones, leave more of the secondary school photo visible above the values card. */
@media (max-width: 620px) {
    .home .hero__visual {
        min-height: 365px;
    }

    .home .hero__visual-note {
        bottom: 0;
    }
}
