/*
Theme Name: Aster Grove School
Description: A responsive school website with announcements, school life, and admissions.
Version: 1.3.26
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: aster-grove-school
*/

:root {
    --paper: #f9f7ef;
    --white: #fffdf8;
    --forest: #172f26;
    --muted: #4f6157;
    --line: #d9dfd4;
    --leaf: #e7eddf;
    --gold: #f2bf70;
    --gold-hover: #ffcf86;
    --serif: 'Montserrat', sans-serif;
    --sans: 'Montserrat', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--forest); background: var(--paper); font: 1rem/1.65 var(--sans); overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #206449; outline-offset: 5px; }
[id] { scroll-margin-top: 2rem; }
.wrap { width: min(100% - 5rem, 1320px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 1rem; left: 1rem; transform: translateY(-200%); background: var(--white); padding: .65rem 1rem; }
.skip-link:focus { transform: none; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.04; font-family: var(--serif); text-wrap: balance; }
h2 { font-size: clamp(2.45rem, 5vw, 4.7rem); letter-spacing: -.055em; }
p { margin: 0; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.15 var(--serif); }
.brand-mark { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 50%; background: var(--forest); position: relative; display: block; }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; top: 12px; width: 11px; height: 19px; background: var(--gold); }
.brand-mark::before { left: 10px; border-radius: 2px 12px 2px 8px; transform: rotate(-13deg); }
.brand-mark::after { right: 10px; border-radius: 12px 2px 8px 2px; transform: rotate(13deg); }
.school-logo { width: 45px; height: 45px; object-fit: contain; }
.site-nav, .nav-list { display: flex; align-items: center; gap: clamp(1.1rem, 2.8vw, 2.5rem); }
.nav-list { list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list a { text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav-list a:hover { text-decoration: underline; }
.menu-toggle { border: 1px solid var(--line); border-radius: 100px; background: transparent; padding: .45rem .95rem; cursor: pointer; font-weight: 650; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 51px; padding: .72rem 1.36rem; border: 1px solid transparent; border-radius: 100px; background: var(--forest); color: var(--white); text-decoration: none; font-size: .95rem; font-weight: 700; white-space: nowrap; transition: background-color .2s; }
.button:hover { background: #2b503e; }
.button-small { min-height: 44px; padding: .53rem 1.1rem; }
.text-link { font-weight: 700; }
.text-link:hover { color: #386447; }
.section-label { color: #4d674f; font-size: .77rem; line-height: 1.4; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .65rem; }

.hero { position: relative; width: 100%; overflow: hidden; background: var(--forest); color: var(--white); }
.hero-copy { position: relative; z-index: 2; width: min(35%,36rem); margin-left: clamp(1.5rem,5vw,5rem); display: flex; flex-direction: column; overflow-wrap: anywhere; pointer-events: none; }
.hero-slide.is-active .hero-copy > * { animation: hero-copy-reveal .72s cubic-bezier(.2,.7,.2,1) both; }
.hero-slide.is-active .hero-copy > :nth-child(1) { animation-delay: .4s; }
.hero-slide.is-active .hero-copy > :nth-child(2) { animation-delay: .46s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { animation-delay: .54s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { animation-delay: .62s; }
.hero .section-label { color: var(--gold); }
.hero h1 { font-size: clamp(2.8rem,5vw,5.5rem); letter-spacing: -.062em; line-height: .98; max-width: 15ch; }
.hero-intro { color: #e4ebe0; font-size: clamp(1rem, 1.4vw, 1.15rem); margin-top: .9rem; max-width: 42ch; }
.hero-actions { margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.hero .button { color: var(--forest); background: var(--gold); }
.hero .button:hover { background: var(--gold-hover); }
.hero .text-link:hover { color: var(--gold); }
.hero-copy a { pointer-events: auto; }
.hero a:focus-visible, .admissions-feature a:focus-visible, .site-footer a:focus-visible { outline-color: var(--gold); }
.hero button:focus-visible { outline-color: var(--gold); }
.hero-media { display: grid; min-height: clamp(520px, calc(100vh - 84px), 780px); min-height: clamp(520px, calc(100svh - 84px), 780px); overflow: hidden; background: #334d3d; }
.hero-slide { position: relative; grid-area: 1 / 1; display: flex; align-items: center; min-width: 0; padding-block: 2.5rem 7rem; z-index: 0; opacity: 0; pointer-events: none; transition: opacity .65s ease; }
.hero-slide.is-active { z-index: 2; opacity: 1; pointer-events: auto; }
.hero-slide.is-outgoing { z-index: 1; opacity: 1; }
.hero-slide.is-opening, .hero-slide.is-outgoing { transition: none; }
.hero-photo { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 52% 50%; }
.hero-slide.is-active img.hero-photo { animation: hero-image-reveal 1.2s cubic-bezier(.2,.7,.2,1) both; }
.hero-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgb(13 27 21 / 88%), rgb(23 47 38 / 48%) 48%, rgb(23 47 38 / 10%)), linear-gradient(0deg, rgb(16 37 28 / 80%), transparent 65%); pointer-events: none; }
.hero-video { background: #172f26; }
.hero-card-track { position: absolute; z-index: 3; right: clamp(1.5rem,5vw,5rem); bottom: clamp(1.5rem,3vw,2.5rem); display: flex; width: min(54%,720px); gap: .85rem; overflow-x: auto; padding: .5rem .3rem .85rem; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hero-card-track::-webkit-scrollbar { display: none; }
.hero-card { position: relative; isolation: isolate; display: block; flex: 0 0 clamp(135px,16vw,195px); height: clamp(175px,20vw,240px); overflow: hidden; padding: 0; border: 1px solid rgb(255 255 255 / 38%); border-radius: 15px; background: #334d3d; color: var(--white); text-align: left; cursor: pointer; opacity: .76; transform: translateY(18px) scale(.94); scroll-snap-align: start; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease; }
.hero-card.is-active { z-index: 1; border-color: var(--gold); opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 12px 30px rgb(0 0 0 / 35%); }
.hero-card:hover, .hero-card:focus-visible { opacity: 1; transform: translateY(-4px) scale(1); }
.hero-card-image, .hero-card-video { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card-image { transition: transform .8s ease; }
.hero-card.is-active .hero-card-image { transform: scale(1.08); }
.hero-card-video { display: grid; place-content: center; gap: .5rem; background: radial-gradient(circle at 30% 20%, #52715a, #172f26 75%); text-align: center; }
.hero-card-video > span { color: var(--gold); font-size: 2.5rem; line-height: 1; }
.hero-card-video small { font-size: .85rem; font-weight: 700; }
.hero-card-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(13 27 21 / 5%) 20%, rgb(13 27 21 / 92%) 100%); }
.hero-card-copy { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: .35rem; padding: 1rem; }
.hero-card-number { color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.hero-card-title { display: -webkit-box; overflow: hidden; font-size: clamp(.95rem,1.35vw,1.2rem); font-weight: 750; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.hero-pagination { position: absolute; z-index: 4; left: clamp(1.5rem,5vw,5rem); bottom: clamp(1.5rem,3vw,2.5rem); display: flex; align-items: center; gap: .75rem; }
.hero-arrow { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; background: rgb(13 27 21 / 18%); color: var(--white); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.hero-arrow:hover { border-color: var(--gold); background: rgb(13 27 21 / 58%); transform: scale(1.06); }
.hero-arrow svg { width: 21px; height: 21px; }
.hero-progress { position: relative; flex: 0 0 auto; width: clamp(6rem,18vw,17rem); height: 3px; overflow: hidden; background: rgb(255 255 255 / 30%); }
.hero-progress span { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left center; animation: hero-progress 5s linear both; }
.hero-counter { min-width: 4.2rem; color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
@keyframes hero-copy-reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-image-reveal { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes hero-progress { to { transform: scaleX(1); } }
.home-welcome { background: #fff; padding: clamp(1.75rem,3.5vw,3rem) 1.25rem; text-align: center; }
.home-welcome-inner { max-width: 60rem; margin-inline: auto; font-family: Georgia, "Times New Roman", serif; }
.home-welcome h2 { font-family: inherit; font-size: clamp(2.25rem,4vw,3rem); font-weight: 700; letter-spacing: -.025em; }
.home-welcome-message { margin-top: 1.5rem; font-size: clamp(1.05rem,2vw,1.25rem); line-height: 1.7; }
.home-welcome-message p + p { margin-top: .75rem; }
.home-welcome-signature { width: auto; max-width: min(100%,10rem); max-height: 5rem; height: auto; margin: 1.75rem auto 0; }
.home-welcome-signoff { margin-top: 1.75rem; color: var(--muted); font-size: 1.25rem; font-style: italic; }
.family-bar { --family-icon-height: 0rem; --family-icon-opacity: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--forest); color: var(--white); padding-inline: max(1rem, calc((100% - 75rem) / 2)); }
.family-bar:focus-within { --family-icon-height: 6rem; --family-icon-opacity: 1; }
@media (hover: hover) {
    .family-bar:hover { --family-icon-height: 6rem; --family-icon-opacity: 1; }
}
.family-bar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 1rem .5rem; text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; }
.family-bar a:focus-visible { outline-color: var(--gold); outline-offset: -4px; }
.family-bar a + a::before { content: ""; position: absolute; inset-inline-start: 0; bottom: 1.3rem; width: 1px; height: .9rem; background: rgb(255 255 255 / 26%); }
.family-link-icon { display: grid; place-items: center; height: var(--family-icon-height); overflow: hidden; opacity: var(--family-icon-opacity); transition: height .3s ease, opacity .25s ease; }
.family-link-icon .dashicons { width: auto; height: auto; font-size: 2.85rem; }
.family-link-label { position: relative; }
.family-link-label::after { content: ""; position: absolute; inset-inline: 0; bottom: -.45rem; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.family-bar a:is(:hover, :focus-visible) .family-link-label::after { transform: scaleX(1); }
.home-explore { padding: clamp(2.5rem,6vw,5rem) 0; background: var(--paper); }
.home-explore h2 { padding-inline: 1rem; margin-bottom: clamp(1.25rem,3vw,2rem); text-align: center; font-size: clamp(2rem,4.5vw,3.5rem); }
.explore-carousel { position: relative; max-width: 75rem; margin-inline: auto; --explore-card-width: min(76vw, 42rem); }
.explore-track { display: flex; gap: clamp(.75rem,2vw,1.5rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem max(.5rem, calc((100% - var(--explore-card-width)) / 2)); }
.explore-track::-webkit-scrollbar { display: none; }
.explore-card { position: relative; isolation: isolate; flex: 0 0 var(--explore-card-width); display: flex; align-items: end; min-height: clamp(16rem,34vw,26rem); border-radius: 1rem; overflow: hidden; padding: clamp(1rem,3vw,2rem); color: var(--white); background: var(--forest); text-decoration: none; scroll-snap-align: center; }
.explore-card img, .explore-card::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.explore-card img { object-fit: cover; }
.explore-card::after { content: ""; background: linear-gradient(0deg, rgb(13 27 21 / 96%), rgb(13 27 21 / 40%) 62%, transparent); }
.explore-card:focus-visible { outline-color: var(--gold); outline-offset: -5px; }
.explore-card-copy { display: grid; gap: .35rem; max-width: 32ch; }
.explore-card-copy strong { font-size: clamp(1.4rem,3vw,2.3rem); line-height: 1.1; }
.explore-card:hover .explore-card-copy strong { text-decoration: underline; text-underline-offset: .2em; }
.explore-controls { position: absolute; inset: 50% 0 auto; display: flex; justify-content: space-between; padding-inline: max(.25rem, calc((100% - var(--explore-card-width)) / 2 - 1.4rem)); transform: translateY(-50%); pointer-events: none; }
.explore-controls button { width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); box-shadow: 0 3px 12px rgb(0 0 0 / 18%); cursor: pointer; pointer-events: auto; }
.explore-controls button:hover { background: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
    [data-home-reveal].is-revealed { animation: home-scroll-reveal .65s cubic-bezier(.2,.65,.3,1) var(--reveal-delay, 0s) backwards; }
    [data-home-reveal].is-revealed:focus-within { animation: none; }
}
@media (min-width: 721px) {
    .highlight-card:nth-child(2) { --reveal-delay: .09s; }
    .highlight-card:nth-child(3) { --reveal-delay: .18s; }
}
@keyframes home-scroll-reveal { from { opacity: .15; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.life-section { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: clamp(1.5rem,4vw,4rem); padding-block: clamp(2rem,4vw,4rem); }
.life-visual { position: relative; isolation: isolate; padding: 0 .9rem .9rem 0; }
.life-visual::before { content: ""; position: absolute; inset: 1rem 0 0 1rem; z-index: -1; border-radius: 1.4rem; background: var(--leaf); }
.life-photo-frame { overflow: hidden; border-radius: 1.4rem; background: var(--leaf); box-shadow: 0 14px 32px rgb(23 47 38 / 14%); }
.life-photo { width: 100%; height: auto; aspect-ratio: 1.22; object-fit: cover; transition: transform .55s ease; }
.life-heading { --reveal-delay: .06s; }
.life-heading h2 { font-size: clamp(2.25rem,4.5vw,4.25rem); }
.life-heading .section-label::after { content: ""; display: inline-block; width: 2rem; height: 2px; margin-inline-start: .65rem; background: #668f70; vertical-align: middle; }
.section-intro { margin-top: .8rem; color: var(--muted); font-size: 1.08rem; max-width: 47ch; }
.life-list { display: grid; gap: .6rem; list-style: none; padding: 0; margin: 1.1rem 0 0; }
.life-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: .9rem; padding: .7rem .9rem; background: var(--white); transition: box-shadow .25s ease, border-color .25s ease, translate .25s ease; }
.life-list li:nth-child(2) { --reveal-delay: .08s; }
.life-list li:nth-child(3) { --reveal-delay: .16s; }
.life-list .dashicons { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: .7rem; background: var(--leaf); color: var(--forest); }
.life-list p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
@media (hover: hover) {
    .life-photo-frame:hover .life-photo { transform: scale(1.04); }
    .life-list li:hover { translate: 0 -.2rem; border-color: #9cba9d; box-shadow: 0 7px 18px rgb(23 47 38 / 10%); }
}
@media (prefers-reduced-motion: no-preference) {
    .life-visual.is-revealed .life-photo-frame { animation: life-photo-reveal .85s cubic-bezier(.2,.65,.3,1) backwards; }
}
@keyframes life-photo-reveal { from { clip-path: inset(0 18% 14% 0 round 1.4rem); } to { clip-path: inset(0 round 1.4rem); } }
.school-editor { padding-bottom: 1.5rem; }
.school-stats { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(2.5rem,6vw,5rem); background: var(--forest); color: var(--white); }
.school-stats-photo, .school-stats::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.school-stats-photo { z-index: -2; object-fit: cover; object-position: center 45%; }
.school-stats::before { content: ""; z-index: -1; background: linear-gradient(105deg, rgb(12 33 25 / 92%), rgb(12 33 25 / 70%)); }
.school-stats-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-block: 0; padding: 0; list-style: none; }
.school-stat { display: flex; justify-content: center; align-items: center; gap: clamp(.65rem,2vw,1.3rem); }
.school-stat:nth-child(2) { --reveal-delay: .08s; }
.school-stat:nth-child(3) { --reveal-delay: .16s; }
.school-stat:nth-child(4) { --reveal-delay: .24s; }
.school-stat .dashicons { display: grid; place-items: center; flex: 0 0 auto; width: clamp(2.35rem,5vw,3.75rem); height: clamp(2.35rem,5vw,3.75rem); border: 1px solid rgb(242 191 112 / 55%); border-radius: 50%; color: var(--gold); font-size: clamp(1.15rem,2.6vw,1.8rem); }
.school-stat-value { display: block; font-size: clamp(1.8rem,4.3vw,3.65rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.school-stat-label { display: block; margin-top: .45rem; line-height: 1.3; }
.school-stat-accessible-value { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.school-stats-sample { margin-top: 1.25rem; color: var(--white); font-size: .8rem; text-align: center; }
@media (max-width: 800px) {
    .school-stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .85rem; }
    .school-stat { justify-content: flex-start; }
}

.updates-section { background: var(--leaf); padding-block: clamp(2rem,4vw,4rem); }
.section-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.updates-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.update-card { padding: clamp(1rem,2vw,1.75rem); background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.update-card time { display: block; margin-bottom: .7rem; color: var(--muted); font-size: .86rem; font-weight: 700; }
.update-card :is(h2,h3) { font-size: clamp(1.45rem,2.25vw,2.15rem); letter-spacing: -.03em; }
.update-card :is(h2,h3) a { text-decoration-thickness: 1px; }
.update-card p, .empty-updates { color: var(--muted); margin-top: .7rem; }
.home-highlights { padding-block: clamp(1.25rem,2.5vw,2rem) clamp(1.75rem,4vw,3rem); background: #fff; }
.home-highlights .section-heading { margin-bottom: clamp(.85rem,2vw,1.35rem); }
.home-highlights h2 { font-size: clamp(1.75rem,3.2vw,2.8rem); }
.home-highlights .section-label::after { content: ""; display: block; width: 3rem; height: 3px; margin-block: .4rem .55rem; background: #5c9673; }
.highlights-track { --highlight-gap: clamp(1rem,2.5vw,2rem); display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--highlight-gap)) / 4); gap: var(--highlight-gap); overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.highlights-track > .highlight-card { scroll-snap-align: start; }
.highlights-controls { display: flex; justify-content: center; gap: .75rem; margin-top: .75rem; }
.highlights-controls button { width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--forest); cursor: pointer; }
.highlights-controls button:hover { background: var(--leaf); }
[dir="rtl"] .highlights-controls button { rotate: 180deg; }
@media (max-width: 960px) {
    .highlights-track { grid-auto-columns: calc((100% - var(--highlight-gap)) / 2); }
}
@media (max-width: 600px) {
    .highlights-track { grid-auto-columns: 100%; }
}
.highlight-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.highlight-photo { flex: none; overflow: hidden; aspect-ratio: 16 / 9; border-radius: .65rem; background: var(--leaf); }
.highlight-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.highlight-copy { position: relative; display: flex; flex: 1; flex-direction: column; margin: -1.5rem clamp(.65rem,2vw,1.5rem) 0; padding: .8rem clamp(.75rem,2vw,1.5rem); border-radius: .4rem; background: #fff; text-align: center; transition: box-shadow .35s ease; }
.highlight-copy time { color: var(--muted); font-size: .8rem; }
.highlight-copy h3 { margin-top: .35rem; font-size: clamp(1.1rem,1.65vw,1.4rem); line-height: 1.3; }
.highlight-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; height: 6em; margin-top: .55rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.highlight-link { text-decoration: none; }
.highlight-link > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.highlight-link::after { content: ""; position: absolute; inset: 0; }
.highlight-card:focus-within .highlight-link { text-decoration: underline; }
.highlight-actions { margin-top: auto; padding-top: 1rem; }
.highlight-cta { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.highlight-cta span { transition: transform .35s ease; }
.highlight-download-slot { display: none; }
.highlights-track:has(.highlight-download) .highlight-download-slot { display: block; min-height: 1.6rem; padding-top: .25rem; font-size: .82rem; }
.highlight-download { position: relative; }
.highlight-card:is(:hover, :focus-within) .highlight-photo img { transform: scale(1.07); }
.highlight-card:is(:hover, :focus-within) .highlight-copy { box-shadow: 0 12px 28px rgb(23 47 38 / 12%); }
.highlight-card:is(:hover, :focus-within) .highlight-cta span { transform: translateX(.25rem); }
.empty-updates { padding: 1rem 1.3rem; border-left: 3px solid #68826d; background: var(--white); }
.notice-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.notice-filters a { padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 100px; background: var(--white); text-decoration: none; font-size: .9rem; font-weight: 650; }
.notice-filters a:hover { background: var(--leaf); }
.notice-card-categories { color: var(--muted); font-size: .85rem; margin-block: -.65rem .85rem !important; }
.notice-card-categories a { text-decoration: none; }
.notice-card .text-link { display: inline-block; margin-top: 1rem; }
.notice-download-link { margin-left: .8rem; }
.notice-date { display: block; margin-top: .75rem; color: var(--muted); font-weight: 650; }
.notice-single-categories { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.notice-single-categories a { text-decoration: none; }

.admissions-feature { position: relative; isolation: isolate; display: grid; place-items: end center; min-height: clamp(26rem,68svh,44rem); padding: clamp(4rem,12vw,9rem) 1.25rem clamp(3rem,7vw,6rem); overflow: hidden; background: var(--forest); color: var(--white); text-align: center; }
.admissions-feature-photo, .admissions-feature::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.admissions-feature-photo { z-index: -2; object-fit: cover; object-position: center 42%; }
.admissions-feature::before { content: ""; z-index: -1; background: linear-gradient(180deg, rgb(10 24 18 / 24%), rgb(10 24 18 / 88%)); }
.admissions-feature .section-label { color: var(--white); }
.admissions-feature .section-label::after { content: ""; display: block; width: 4rem; height: 3px; margin: .9rem auto 0; background: var(--gold); }
.admissions-feature h2 { max-width: 20ch; margin: 1.25rem auto 0; font-size: clamp(2rem,5vw,4.25rem); letter-spacing: -.025em; text-transform: uppercase; --reveal-delay: .09s; }
.admissions-feature-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: clamp(1.5rem,4vw,3rem); --reveal-delay: .18s; }
.admissions-feature-actions a { min-width: min(100%, 14rem); padding: .95rem 1.25rem; border: 1px solid var(--white); color: var(--white); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.admissions-feature-actions a:is(:hover, :focus-visible) { background: var(--white); color: var(--forest); }
.site-footer { color: var(--white); background: #222421; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-primary { padding-block: clamp(1.35rem,4vw,2.75rem); border-bottom: 1px solid rgb(255 255 255 / 16%); }
.footer-primary-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem clamp(1rem,3vw,3rem); }
.footer-primary-list a { display: block; padding-block: .25rem; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,.9fr); gap: clamp(1.5rem,4vw,3.5rem); padding-block: clamp(1.75rem,4vw,3.25rem); }
.site-footer h2 { margin-bottom: 1rem; color: var(--gold); font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
.footer-office { padding-inline-end: 1.5rem; border-inline-end: 1px solid rgb(242 191 112 / 35%); }
.footer-office .school-logo { width: auto; max-width: min(6rem, 35%); height: auto; max-height: 4rem; object-fit: contain; }
.footer-office address { display: grid; justify-items: start; gap: .45rem; margin-top: 1rem; color: #e5e6e0; font-style: normal; }
.footer-office .footer-phone { font-size: clamp(1.15rem,2.3vw,1.65rem); font-weight: 600; }
.footer-quick-list, .footer-social-list { display: grid; gap: .5rem; }
.footer-quick-list a::before { content: ""; display: inline-block; width: .42em; height: .42em; margin-inline-end: .7em; border-block-start: 1px solid var(--gold); border-inline-end: 1px solid var(--gold); rotate: 45deg; vertical-align: .12em; }
.site-footer .footer-social-list { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }
.footer-social-list a { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; padding: .35rem; }
.footer-social-icon { font-size: 1.35rem; line-height: 1; }
.footer-social-icon.dashicons { width: auto; height: auto; }
.footer-social-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-footer .footer-action { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 99px; background: var(--gold); color: var(--forest); font-size: .85rem; font-weight: 750; }
.site-footer .footer-action:hover { background: var(--gold-hover); }
.footer-end { display: flex; align-items: center; gap: 1rem; padding-block: .9rem; border-top: 1px solid rgb(255 255 255 / 16%); color: #e5e6e0; }
.footer-end small { flex: 1; text-align: center; }
.footer-back-top { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; border: 1px solid rgb(255 255 255 / 30%); border-radius: 50%; }
.reading-page { min-height: 45vh; padding-block: clamp(2rem,4vw,4rem); max-width: 900px; overflow-wrap: anywhere; }
.reading-page h1 { font-size: clamp(2.6rem,5vw,4.7rem); margin-bottom: .75rem; }
.reading-entry { margin-bottom: 1.5rem; }
.reading-entry p { margin-block: .75rem; }
.interior-banner { position: relative; overflow: hidden; background: var(--leaf); }
.interior-banner.has-featured-image { background: var(--forest); color: var(--white); }
.interior-banner.has-featured-image::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgb(23 47 38 / 88%), rgb(23 47 38 / 62%) 55%, rgb(23 47 38 / 22%)); }
.interior-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.interior-banner.has-featured-image .section-label { color: var(--gold); }
.interior-banner.has-featured-image .notice-date, .interior-banner.has-featured-image .notice-single-categories { color: #f0f3eb; }
.interior-banner-inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: clamp(1.75rem,3.5vw,3.25rem); }
.interior-banner.has-featured-image .interior-banner-inner { min-height: clamp(250px,28vw,390px); }
.interior-banner h1 { font-size: clamp(2.8rem,7vw,6rem); letter-spacing: -.06em; }
.interior-content { min-height: 30vh; padding-block: clamp(1.75rem,3.5vw,3.5rem); }
.about-profile-layout { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,1.4fr); gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.about-profile-photo { margin: 0; }
.about-profile-photo img { width: 100%; aspect-ratio: .78; object-fit: cover; border-radius: 15px; }
.about-profile-layout .interior-article { max-width: none; }
.interior-content.with-sidebar { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.42fr); gap: clamp(1.5rem,3vw,3rem); align-items: start; }
.interior-article { max-width: 800px; }
.interior-article h2 { font-size: clamp(1.9rem,4vw,3.15rem); }
:is(.admissions-page, .school-life-page) .interior-banner h1 { font-size: clamp(2rem,4.25vw,3.5rem); }
:is(.admissions-page, .school-life-page) .interior-article h2 { font-size: clamp(1.35rem,2.15vw,1.85rem); }
.school-life-page .about-profile-photo img { aspect-ratio: 4 / 3; }
.interior-article h3 { font-size: clamp(1.5rem,3vw,2.2rem); }
.interior-article > * + * { margin-top: .9rem; }
.gallery-page .interior-article { max-width: none; }
.album-gallery { --album-border: #ccd8ca; padding-block: clamp(2rem,5vw,4rem); }
.album-gallery h1 { font-size: clamp(2.35rem,5vw,4.15rem); margin-bottom: 1rem; }
.album-gallery h2 { font-size: clamp(1.55rem,3vw,2.5rem); }
.album-gallery h3 { font-size: clamp(1.15rem,2vw,1.5rem); line-height: 1.25; }
.album-gallery .button { width: fit-content; min-height: 2.65rem; background: var(--forest); color: var(--white); }
.album-gallery .button:hover { background: #2a5841; }
.album-total { text-align: end; margin-block: 1rem .45rem; font-weight: 650; }
.album-search { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; border: 1px solid var(--album-border); border-radius: .8rem; padding: .8rem; background: var(--white); }
.album-search label { display: grid; gap: .25rem; min-width: 0; font-size: .85rem; font-weight: 650; }
.album-search-term { flex: 1 1 15rem; }
.album-search :is(input,select) { min-height: 2.65rem; width: 100%; padding: .45rem .65rem; border: 1px solid var(--album-border); border-radius: .45rem; background: #fff; color: var(--forest); font: inherit; }
.album-search .text-link { align-self: center; font-size: .86rem; }
.album-featured { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: clamp(1.25rem,4vw,4rem); align-items: start; margin-top: clamp(1.5rem,4vw,3rem); }
.album-featured.without-photos { grid-template-columns: minmax(0,1fr); }
.album-featured.without-photos > div:first-child { display: none; }
.album-featured-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; gap: .3rem; padding: .3rem; aspect-ratio: 16 / 10; border-radius: .8rem; background: var(--forest); overflow: hidden; }
.album-featured-preview.is-single { grid-template-columns: 1fr; }
.album-featured-preview img:nth-child(3):last-child { grid-column: 1 / -1; }
.album-featured-preview img, .album-card-photo img, .album-photo-grid img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.album-featured-copy h2, .album-card h3 { padding-bottom: .65rem; margin-bottom: .8rem; border-bottom: 1px solid var(--album-border); }
.album-featured-copy p { margin-top: .85rem; }
.album-featured-copy .button { margin-top: 1.2rem; }
.album-thumbnails { margin-top: .75rem; }
.album-thumbnails summary { width: fit-content; color: var(--forest); font-weight: 700; cursor: pointer; }
.album-thumbnail-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(4.5rem,1fr)); gap: .45rem; margin-top: .55rem; }
.album-thumbnail-grid img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: .35rem; }
.album-results { margin-top: clamp(2rem,5vw,3.5rem); }
.album-results h2 { margin-bottom: 1.15rem; text-align: center; }
.album-card-grid, .album-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.9rem,2.5vw,1.6rem); }
.album-card { display: flex; flex-direction: column; min-width: 0; padding: .9rem; border: 1px solid var(--album-border); border-radius: .9rem; background: var(--white); }
.album-card-photo { aspect-ratio: 16 / 10; margin-bottom: 1rem; border-radius: .55rem; overflow: hidden; background: var(--leaf); }
.album-card .button { align-self: center; margin-top: auto; }
.album-meta { display: grid; gap: .2rem; margin: .65rem 0 1.1rem; }
.album-meta div { display: flex; flex-wrap: wrap; gap: .35rem; }
.album-meta dt { font-weight: 700; }
.album-meta dd { margin: 0; color: var(--muted); }
.album-back { display: inline-block; margin-bottom: .85rem; }
.album-photo-grid { margin-top: 1rem; }
.album-photo-grid a { aspect-ratio: 4 / 3; overflow: hidden; border-radius: .65rem; }
.album-single-cover { max-height: 36rem; width: auto; height: auto; }
.album-pagination { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.album-pagination .current { font-weight: 750; }
.album-message { margin-top: 1.25rem; }
@media (max-width: 850px) {
    .album-featured { grid-template-columns: minmax(0,1fr); }
    .album-card-grid, .album-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
    .album-card-grid { grid-template-columns: minmax(0,1fr); }
}
.office-card { padding: 1.3rem; border-radius: 14px; background: var(--leaf); }
.office-card h2 { font-size: 1.7rem; margin-bottom: .65rem; }
.office-card a { display: block; width: fit-content; margin-top: .45rem; }
.office-hours { margin-top: .8rem; }
.office-hours p { margin-top: .25rem; }
.contact-form-section { margin-top: 2rem; }
.contact-form-section h2 { font-size: clamp(1.9rem,4vw,2.7rem); margin-bottom: 1rem; }
.contact-form-status { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 8px; }
.contact-form-status.is-success { background: #e7eddf; }
.contact-form-status.is-error { background: #f7e6df; color: #742e1e; }
.contact-form { padding: clamp(1rem,2vw,1.5rem); border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.contact-form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem 1rem; }
.contact-form-fields p { margin: 0; }
.contact-form-fields label { display: block; margin-bottom: .35rem; font-size: .92rem; font-weight: 700; }
.contact-form-fields label span { color: var(--muted); font-weight: 500; }
.contact-form-fields input, .contact-form-fields textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #aeb9ad; border-radius: 7px; background: #fff; color: var(--forest); font: inherit; }
.contact-form-fields textarea { resize: vertical; }
.contact-form-message { grid-column: 1 / -1; }
.contact-form .button { margin-top: 1rem; border: 0; cursor: pointer; }
.contact-form-privacy { margin-top: .75rem; color: var(--muted); font-size: .85rem; }
.contact-form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pagination { margin-top: 1.5rem; }

@media (max-width: 960px) {
    .wrap { width: min(100% - 3rem,1320px); }
    .hero h1 { font-size: clamp(2.4rem,5vw,3.5rem); }
    .hero-copy { width: min(36%,430px); }
    .hero-card-track { width: min(52%,640px); }
    .hero-card { flex-basis: clamp(125px,18vw,175px); height: clamp(165px,23vw,215px); }
}
@media (max-width: 1100px) {
    .hero-progress { width: clamp(4rem,10vw,7rem); }
}
@media (max-width: 720px) {
    .wrap { width: min(100% - 2rem,1320px); }
    .header-inner { min-height: 68px; position: relative; flex-wrap: wrap; padding-block: .65rem; }
    .site-nav { width: 100%; align-items: stretch; gap: .85rem; flex-direction: column; }
    .site-nav .button { align-self: flex-start; }
    .nav-list { gap: .7rem 1.25rem; }
    .hero-media { min-height: clamp(620px, calc(100vh - 68px), 760px); min-height: clamp(620px, calc(100svh - 68px), 760px); }
    .hero-slide { padding-block: 5rem 12rem; }
    .hero h1 { font-size: clamp(2.6rem,9vw,4.1rem); }
    .hero-copy { margin-inline: 1rem; width: calc(100% - 2rem); }
    .hero-shade { background: linear-gradient(90deg, rgb(23 47 38 / 78%), rgb(23 47 38 / 32%) 100%), linear-gradient(0deg, rgb(16 37 28 / 88%), transparent 78%); }
    .hero-card-track { right: 1rem; bottom: 1rem; left: 1rem; width: auto; gap: .65rem; }
    .hero-card { flex-basis: clamp(105px,32vw,140px); height: clamp(125px,36vw,150px); border-radius: 12px; }
    .hero-card-copy { padding: .75rem; }
    .hero-card-title { font-size: .95rem; }
    .hero-pagination { top: 1rem; right: 1rem; bottom: auto; left: auto; gap: .45rem; }
    .hero-arrow { flex-basis: 36px; width: 36px; height: 36px; }
    .hero-progress { width: clamp(3.5rem,18vw,5.5rem); }
    .hero-counter { min-width: 3.6rem; font-size: .7rem; }
    .family-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .family-bar a:nth-child(odd)::before { display: none; }
    .family-bar a:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 18%); }
    .life-section { grid-template-columns: 1fr; gap: 1.25rem; }
    .life-photo { aspect-ratio: 1.45; }
    .updates-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-grid { gap: 1.25rem; }
    .footer-office { padding-inline-end: 0; border-inline-end: 0; }
    .interior-banner-inner { align-items: start; flex-direction: column; gap: 1.3rem; }
    .interior-content.with-sidebar { grid-template-columns: 1fr; }
    .about-profile-layout { grid-template-columns: 1fr; }
    .about-profile-photo { max-width: 440px; }
    .contact-form-fields { grid-template-columns: 1fr; }
    .contact-form-message { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .life-photo, .life-list li { transition: none; }
    .life-photo-frame:hover .life-photo { transform: none; }
    .life-list li:hover { translate: none; }
    .highlight-photo img, .highlight-copy, .highlight-cta span { transition: none; }
    .highlight-card:is(:hover, :focus-within) :is(.highlight-photo img, .highlight-cta span) { transform: none; }
    .family-link-icon, .family-link-label::after { transition: none; }
    html { scroll-behavior: auto; }
    .button { transition: none; }
    .hero-slide, .hero-card, .hero-card-image { transition: none; }
    .hero-arrow { transition: none; }
    .hero-slide.is-active img.hero-photo, .hero-slide.is-active .hero-copy > *, .hero-progress span { animation: none; transform: none; }
    .hero-card:hover, .hero-card:focus-visible { transform: none; }
}
