: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);
}

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%;
}

.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;
}

.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,
.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;
}

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

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

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

.event-list li {
    display: grid;
    gap: 2px;
}

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

.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;
}

.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;
}

.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 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 750;
}

.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 p {
    margin: 0 0 1.05em;
}

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

.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-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__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__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: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    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__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 {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    padding: min(4vw, 32px);
    background: rgba(10, 18, 9, 0.86);
    backdrop-filter: blur(8px);
}

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

.gallery-lightbox__inner {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    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: calc(100vh - 116px);
    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;
    margin: 0;
    place-items: center;
    background: #f8f3e8;
    border-radius: 7px;
}

.gallery-lightbox__stage img {
    max-width: 100%;
    max-height: calc(100vh - 142px);
    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;
}

.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: 8px;
    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-panel {
    position: fixed;
    inset: min(5vh, 48px) max(24px, calc((100vw - 980px) / 2));
    z-index: 130;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 18px;
    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] {
    display: none;
}

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

.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 {
    color: var(--white);
    background: #303030;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    font: inherit;
    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 {
    min-height: 84px;
    padding: 18px 20px;
    text-align: left;
    font-size: 1.18rem;
}

.a11y-option:hover,
.a11y-option:focus-visible,
.a11y-step:hover,
.a11y-step:focus-visible,
.a11y-reset:hover,
.a11y-reset: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(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #303030;
    border: 1px solid #3b3b3b;
    border-radius: 8px;
}

.a11y-row strong {
    min-width: 0;
}

.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;
}

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

.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);
}

.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: 72px;
    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);
}

.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;
}

.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-form {
    display: grid;
    gap: 18px;
}

.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-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 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-field-grid__full {
    grid-column: 1 / -1;
}

.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;
}

.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-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;
    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 .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;
    }

    .staff-directory__intro {
        grid-template-columns: 1fr;
    }

    .staff-directory__intro p,
    .staff-directory__count {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
    }

    .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,
    .single-gallery {
        grid-template-columns: 1fr;
    }

    .event-feed {
        grid-template-columns: 1fr;
    }

    .portal-type-grid,
    .portal-related-grid,
    .portal-field-grid,
    .portal-login__grid,
    .linked-content-panel__grid {
        grid-template-columns: 1fr;
    }

    .portal-card--intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-calendar-panel {
        position: static;
    }

    .gallery-lightbox {
        padding: 12px;
    }

    .gallery-lightbox__inner {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .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: calc(100vh - 230px);
    }

    .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;
    }
}

@media (max-width: 560px) {
    .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;
    }
}

.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__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:hover,
.school-month-calendar__event:focus-visible {
    color: var(--white);
    background: var(--green);
}

.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 {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .school-month-calendar__toolbar,
    .school-month-calendar__quick,
    .school-month-calendar__grid {
        min-width: 820px;
    }
}

@media (max-width: 560px) {
    .school-month-calendar__toolbar {
        grid-template-columns: 1fr;
    }

    .school-month-calendar__toolbar a:first-child,
    .school-month-calendar__toolbar a:last-child {
        justify-self: stretch;
    }
}

.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: 50%;
    bottom: calc(100% + 10px);
    z-index: 40;
    display: grid;
    width: min(330px, 78vw);
    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(-50%, 8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: normal;
}

.school-month-calendar__tooltip::after {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 12px;
    height: 12px;
    content: "";
    background: #17211f;
    transform: translate(-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(-50%, 0);
}

.school-month-calendar__day:nth-child(7n + 1) .school-month-calendar__tooltip,
.school-month-calendar__day:nth-child(7n + 2) .school-month-calendar__tooltip {
    left: 0;
    transform: translate(0, 8px);
}

.school-month-calendar__day:nth-child(7n + 1) .school-month-calendar__event:hover .school-month-calendar__tooltip,
.school-month-calendar__day:nth-child(7n + 2) .school-month-calendar__event:hover .school-month-calendar__tooltip,
.school-month-calendar__day:nth-child(7n + 1) .school-month-calendar__event:focus-visible .school-month-calendar__tooltip,
.school-month-calendar__day:nth-child(7n + 2) .school-month-calendar__event:focus-visible .school-month-calendar__tooltip {
    transform: translate(0, 0);
}

.school-month-calendar__day:nth-child(7n) .school-month-calendar__tooltip,
.school-month-calendar__day:nth-child(7n - 1) .school-month-calendar__tooltip {
    right: 0;
    left: auto;
    transform: translate(0, 8px);
}

.school-month-calendar__day:nth-child(7n) .school-month-calendar__event:hover .school-month-calendar__tooltip,
.school-month-calendar__day:nth-child(7n - 1) .school-month-calendar__event:hover .school-month-calendar__tooltip,
.school-month-calendar__day:nth-child(7n) .school-month-calendar__event:focus-visible .school-month-calendar__tooltip,
.school-month-calendar__day:nth-child(7n - 1) .school-month-calendar__event:focus-visible .school-month-calendar__tooltip {
    transform: translate(0, 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;
    }
}

.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__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__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;
    }
}
