/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4
 * Genre: school magazine · macrostructure: masthead → photo marquee → editorial lead → category desks → agenda → school life → archive footer.
 * theme: Mading SMP · studied: yes · DNA-source: url · source-url: https://ciuss.net/mading/
 * observed-font: Inter · source accents: #001188 / #ffcc00 · rhythm: unknown (URL mode)
 */
/*
Theme Name: Mading SMP
Theme URI: https://ciuss.net/mading/
Author: Local Site
Description: Tema majalah sekolah dengan beranda editorial, arsip berita, dan artikel responsif.
Version: 1.9.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mading-smp
*/

:root {
	--color-brand: #15564f;
	--color-brand-deep: #0d3d38;
	--color-accent: #f4a62a;
	--color-paper: #fbf9f3;
	--color-surface: #f0eee7;
	--color-ink: #202b2a;
	--color-muted: #66716e;
	--color-line: #d9ded8;
	--color-white: #ffffff;
	--color-on-brand: #ffffff;
	--color-on-accent: #0d3d38;
	--color-soft-blue: #e1ece8;
	--color-image-shade: #000000cc;
	--content-width: 1400px;
	--font-body: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font: 16px/1.6 var(--font-body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--color-brand-deep); }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: .75rem 1rem; margin: .5rem; background: #fff; z-index: 10000; }
.site-shell { width: min(var(--content-width), calc(100% - 40px)); margin-inline: auto; }

/* Masthead and navigation */
.contact-strip { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 1.75rem; padding: .35rem 1rem; background: var(--color-brand-deep); color: #fff; font-size: .84rem; }
.contact-strip a { color: #fff; text-decoration: none; }
.contact-strip__item { display: inline-flex; align-items: center; gap: .55rem; }
.contact-strip__mark { display: inline-grid; place-items: center; flex: 0 0 25px; width: 25px; height: 20px; border-radius: 99px; background: var(--color-accent); color: var(--color-brand-deep); font-size: 1rem; line-height: 1; font-weight: 800; }
.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--color-line); }
.site-header__inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-brand { flex: 0 0 auto; display: flex; align-items: center; gap: .65rem; color: var(--color-ink); text-decoration: none; }
.site-brand .custom-logo { max-height: 56px; width: auto; }
.site-brand__name { margin: 0; color: var(--color-brand-deep); font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.1; font-weight: 750; letter-spacing: -.04em; }
.site-brand__tagline { display: block; margin-top: .2rem; color: var(--color-muted); font-size: .72rem; letter-spacing: .04em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(.6rem, 1.4vw, 1.45rem); padding: 0; margin: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: .65rem .2rem; color: var(--color-brand-deep); text-decoration: none; font-size: .9rem; font-weight: 700; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--color-brand); }
.primary-nav .sub-menu { position: absolute; top: 100%; left: -.75rem; display: none; min-width: 210px; padding: .45rem; background: #fff; border: 1px solid var(--color-line); box-shadow: 0 14px 28px #193c351c; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: .55rem .7rem; }
.header-search { display: inline-grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 0; background: var(--color-brand); color: #fff; text-decoration: none; font-size: 1.5rem; line-height: 1; }
.header-search:hover { background: var(--color-brand-deep); color: #fff; }
.school-ribbon { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: .25rem max(20px, calc((100% - var(--content-width)) / 2)); background: var(--color-brand); color: #fff; font-size: .78rem; }
.school-ribbon a { display: inline-block; padding: .12rem .55rem; background: var(--color-accent); color: var(--color-brand-deep); text-decoration: none; }
.school-ribbon time { color: var(--color-on-brand); }

/* Home page */
.home-marquee { position: relative; min-height: clamp(220px, 33vw, 430px); display: grid; align-items: end; overflow: hidden; background: linear-gradient(115deg, #15564f, #0d3d38 70%, #47766b); color: #fff; }
.home-marquee__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-marquee::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #0d302dcc, #0d302d2c 68%, #0d302d10), linear-gradient(0deg, #0d302d88, transparent 60%); }
.home-marquee__copy { position: relative; z-index: 1; width: min(var(--content-width), calc(100% - 40px)); margin: 0 auto; padding: 3.25rem 0 2rem; }
.home-marquee__eyebrow, .section-kicker { margin: 0 0 .45rem; color: var(--color-accent); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-marquee h1 { max-width: 780px; margin: 0; color: #fff; font-size: clamp(2rem, 4.3vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; }
.home-marquee__copy p:last-child { max-width: 620px; margin: .7rem 0 0; color: #f3f5f1; }
.school-nameplate { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--color-line); }
.school-nameplate h2 { margin: 0; color: var(--color-brand-deep); font-size: 1.1rem; }
.school-nameplate p { margin: 0; color: var(--color-muted); font-size: .83rem; }
.home-section { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.home-section--tight { padding-top: 1.1rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.section-heading h2 { margin: 0; color: var(--color-brand-deep); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.section-heading a { color: var(--color-brand); font-size: .86rem; font-weight: 750; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr) minmax(210px, .8fr); gap: 1rem; }
.lead-stack { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.story-card { min-width: 0; }
.story-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--color-surface); color: var(--color-brand); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-card__media img { transform: scale(1.035); }
.story-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background: linear-gradient(135deg, var(--color-brand), var(--color-brand-deep)); color: var(--color-on-brand); font-size: 2rem; font-weight: 800; }
.story-card__category { position: absolute; top: .65rem; left: .65rem; padding: .2rem .55rem; background: var(--color-accent); color: var(--color-brand-deep); font-size: .68rem; font-weight: 800; }
.story-card__body { padding-top: .6rem; }
.story-card__meta { margin: 0 0 .25rem; color: var(--color-muted); font-size: .75rem; }
.story-card h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.story-card h3 a { color: var(--color-brand-deep); text-decoration: none; }
.story-card__excerpt { margin: .4rem 0 0; color: var(--color-muted); font-size: .88rem; line-height: 1.5; }
.story-card--lead .story-card__media { aspect-ratio: 1.23 / 1; }
.story-card--lead .story-card__body { position: relative; margin: -3.5rem .8rem 0; padding: .8rem; background: #fff; }
.story-card--compact { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: start; gap: .7rem; }
.story-card--compact .story-card__media { aspect-ratio: 1; }
.story-card--compact .story-card__category { display: none; }
.story-card--compact .story-card__body { padding: 0; }
.story-card--compact .story-card__excerpt { display: none; }
.editorial-panel { padding: 1rem; background: var(--color-brand); color: #fff; }
.editorial-panel h3 { margin: 0 0 .8rem; color: #fff; font-size: 1rem; }
.editorial-panel__list { display: grid; gap: .65rem; }
.editorial-panel__list a { color: #fff; font-size: .86rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.editorial-panel__list a::after { content: "↗"; float: right; color: var(--color-accent); }
.category-desks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.category-desk { padding: .75rem; background: #fff; border-bottom: 3px solid var(--color-accent); }
.category-desk__title { margin: 0 0 .65rem; color: var(--color-brand-deep); font-size: 1rem; }
.category-desk__title a { color: inherit; text-decoration: none; }
.category-desk .story-card + .story-card { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--color-line); }
.category-desk .story-card__media { display: none; }
.category-desk .story-card h3 { font-size: .86rem; }
.category-desk .story-card__meta { color: var(--color-muted); font-size: .7rem; }
.category-desk__more { display: inline-block; margin-top: .75rem; padding: .35rem .7rem; background: var(--color-accent); color: var(--color-brand-deep); font-size: .75rem; font-weight: 800; text-decoration: none; }
.agenda-band { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--color-brand); color: #fff; }
.agenda-band .section-heading h2 { color: #fff; }
.agenda-band .section-heading a { color: var(--color-accent); }
.agenda-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.agenda-card { display: grid; grid-template-columns: 74px 1fr; gap: .8rem; padding: 1rem; background: #ffffff12; border: 1px solid #ffffff26; color: #fff; text-decoration: none; }
.agenda-card__date { display: grid; align-content: center; justify-items: center; min-height: 68px; background: var(--color-accent); color: var(--color-brand-deep); font-size: .75rem; font-weight: 800; text-align: center; }
.agenda-card__date strong { display: block; font-size: 1.5rem; line-height: 1; }
.agenda-card h3 { margin: 0; color: #fff; font-size: .94rem; line-height: 1.3; }
.agenda-card p { margin: .25rem 0 0; color: var(--color-on-brand); font-size: .75rem; }
.school-life { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; align-items: center; }
.school-life__note { padding-right: 1rem; }
.school-life__note h2 { margin: 0 0 .55rem; color: var(--color-brand-deep); font-size: 1.5rem; }
.school-life__note p { margin: 0 0 .8rem; color: var(--color-muted); }
.school-life__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.school-life__gallery a { display: block; overflow: hidden; aspect-ratio: 1.25; background: var(--color-surface); }
.school-life__gallery img { width: 100%; height: 100%; object-fit: cover; }
.people-row { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .8rem; }
.people-card { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-surface); }
.people-card img { width: 100%; height: 100%; object-fit: cover; }
.people-card__caption { position: absolute; inset: auto 0 0; padding: 1.6rem .7rem .65rem; background: linear-gradient(transparent, var(--color-image-shade)); color: var(--color-on-brand); }
.people-card__caption strong, .people-card__caption span { display: block; }
.people-card__caption strong { font-size: .82rem; }
.people-card__caption span { color: var(--color-accent); font-size: .68rem; }

/* Archive, single, and page templates */
.breadcrumb { padding: 1.2rem 0; color: var(--color-muted); font-size: .82rem; text-align: center; }
.breadcrumb a { text-decoration: none; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; padding: 1.2rem 0 4rem; }
.archive-title { margin: 0 0 1.2rem; color: var(--color-brand-deep); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.archive-description { margin: -.6rem 0 1.4rem; color: var(--color-muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem 1rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 38px; min-height: 38px; padding: .35rem .65rem; background: #fff; border: 1px solid var(--color-line); color: var(--color-brand); text-decoration: none; }
.pagination .current { background: var(--color-brand); color: #fff; }
.sidebar { min-width: 0; }
.widget { margin-bottom: 2rem; }
.widget-title { margin: 0 0 .75rem; color: var(--color-ink); font-size: 1.2rem; line-height: 1.25; }
.widget ul { padding: 0; margin: 0; list-style: none; }
.widget li { padding: .55rem 0; border-bottom: 1px solid var(--color-line); }
.widget li a { text-decoration: none; }
.search-form { display: flex; gap: .4rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 40px; padding: .45rem .6rem; border: 1px solid var(--color-brand); background: #fff; }
.search-submit, .button-link { min-height: 40px; padding: .45rem .85rem; border: 0; background: var(--color-brand); color: #fff; font-weight: 750; text-decoration: none; cursor: pointer; }
.search-submit:hover, .button-link:hover { background: var(--color-brand-deep); color: #fff; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2.5rem; padding: .5rem 0 4rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin: .4rem 0 1.2rem; color: var(--color-muted); font-size: .82rem; }
.article-meta__item { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta__item > svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.article-title { margin: 0; color: var(--color-brand-deep); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.04em; }
.article-featured { width: 100%; max-height: 620px; margin: 1rem 0 1.5rem; object-fit: cover; }
.entry-content { font-size: 1.02rem; }
.entry-content > * { max-width: 76ch; }
.entry-content h2, .entry-content h3 { color: var(--color-brand-deep); line-height: 1.25; }
.entry-content blockquote { margin: 1.5rem 0; padding: .5rem 1.2rem; border-left: 4px solid var(--color-accent); color: var(--color-brand-deep); font-size: 1.25rem; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content figure img { width: 100%; }
.post-navigation { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--color-line); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post-navigation .nav-previous, .post-navigation .nav-next { min-width: 0; background: var(--color-surface); }
.post-navigation a { display: flex; height: 100%; flex-direction: column; gap: .35rem; padding: 1rem; color: var(--color-brand-deep); text-decoration: none; overflow-wrap: anywhere; }
.post-navigation a > span { color: var(--color-muted); font-size: .78rem; font-weight: 600; }
.post-navigation a > strong { display: block; line-height: 1.4; }
.post-navigation .nav-next { text-align: right; }
.related-stories { margin-top: 2.5rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.related-stories h2 { color: var(--color-brand-deep); }
.related-stories .archive-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.comments-area { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-line); }
.comments-title, .comment-reply-title { margin: 0 0 1rem; color: var(--color-brand-deep); font-size: 1.3rem; }
.comment-list { padding: 0; margin: 0; list-style: none; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--color-line); }
.comment-list .children { padding-left: 1.5rem; list-style: none; }
.comment-body { overflow-wrap: anywhere; }
.comment-meta { margin-bottom: .5rem; color: var(--color-muted); font-size: .82rem; }
.comment-author .avatar { float: left; width: 40px; height: 40px; margin: 0 .7rem .5rem 0; border-radius: 50%; }
.comment-content p { margin: .5rem 0; }
.comment-respond { margin-top: 1.5rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-weight: 650; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; padding: .55rem .65rem; border: 1px solid var(--color-line); background: #fff; }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit { padding: .65rem 1rem; border: 0; background: var(--color-brand); color: var(--color-on-brand); font-weight: 700; cursor: pointer; }
.page-content { max-width: 880px; margin: 2.5rem auto 4rem; }
.page-content h1 { color: var(--color-brand-deep); font-size: clamp(2rem,4vw,3rem); line-height: 1.1; }
.page-content .entry-content { margin-top: 1.4rem; }
.empty-state { padding: 2rem; background: var(--color-surface); }

/* Footer */
.site-footer { padding: 2.5rem 0; background: var(--color-brand-deep); color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; }
.site-footer h2, .site-footer h3 { margin: 0 0 .55rem; color: #fff; font-size: 1.15rem; }
.site-footer p { margin: 0; color: var(--color-on-brand); }
.site-footer a { color: #fff; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { padding: .28rem 0; border-bottom: 1px solid #ffffff1f; }
.site-footer__bottom { padding: .8rem 1rem; background: var(--color-accent); color: var(--color-brand-deep); font-size: .8rem; text-align: center; }
.site-footer__bottom a { color: inherit; }

@media (max-width: 980px) {
	.site-header__inner { flex-wrap: wrap; gap: .4rem 1rem; padding-block: .8rem; }
	.primary-nav { order: 3; width: 100%; overflow-x: auto; }
	.primary-nav ul { justify-content: center; min-width: max-content; }
	.lead-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
	.editorial-panel { grid-column: 1 / -1; }
	.editorial-panel__list { grid-template-columns: repeat(2,1fr); }
	.category-desks { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.content-layout, .article-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 1.5rem; }
}
@media (max-width: 700px) {
	.site-shell { width: min(var(--content-width), calc(100% - 28px)); }
	/* Keep long article titles and metadata inside the mobile grid track. */
	.article-layout,
	.article-layout > article,
	.article-layout .sidebar,
	.article-layout header { min-width: 0; }
	.article-title { font-size: clamp(1.75rem, 7vw, 2.5rem); overflow-wrap: anywhere; }
	.breadcrumb { overflow-wrap: anywhere; }
	.article-meta__item { min-width: 0; max-width: 100%; }
	.article-meta__item > span,
	.article-meta__item > time { min-width: 0; overflow-wrap: anywhere; }
	.article-featured { height: auto; }
	.contact-strip { gap: .75rem; font-size: .72rem; }
	.contact-strip__item:first-child { display: none; }
	.site-header__inner { min-height: 68px; }
	.site-brand .custom-logo { max-height: 44px; }
	.primary-nav ul { justify-content: flex-start; gap: 1rem; }
	.primary-nav a { font-size: .82rem; }
	.school-ribbon { padding-inline: 14px; font-size: .7rem; }
	.home-marquee { min-height: 260px; }
	.home-marquee__copy { width: calc(100% - 28px); padding-bottom: 1.35rem; }
	.school-nameplate { align-items: start; flex-direction: column; gap: .1rem; }
	.home-section { padding-block: 2rem; }
	.lead-grid { grid-template-columns: 1fr; }
	.lead-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.story-card--lead .story-card__media { aspect-ratio: 16 / 9; }
	.editorial-panel { grid-column: auto; }
	.category-desks { grid-template-columns: 1fr 1fr; gap: .7rem; }
	.category-desk { padding: .7rem; }
	.agenda-grid { grid-template-columns: 1fr; }
	.school-life { grid-template-columns: 1fr; gap: 1rem; }
	.school-life__gallery { grid-template-columns: repeat(2,1fr); }
	.people-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.content-layout, .article-layout { grid-template-columns: 1fr; }
	.archive-grid, .related-stories .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem .75rem; }
	.sidebar { padding-top: 1rem; border-top: 1px solid var(--color-line); }
	.site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 420px) {
	.archive-grid, .related-stories .archive-grid { grid-template-columns: 1fr; }
	.lead-stack { grid-template-columns: 1fr; }
	.category-desks { grid-template-columns: 1fr; }
	.school-ribbon time { font-size: .65rem; }
}

/* Mading reference: blue masthead, image led news, yellow section markers. */
.contact-strip { min-height: 46px; background: var(--color-brand); }
.contact-strip__mark { background: var(--color-accent); color: var(--color-on-accent); }
.site-header { border-bottom: 0; box-shadow: 0 3px 14px #0000001a; }
.site-header__inner { min-height: 104px; }
.site-brand__name, .primary-nav a { color: var(--color-brand); }
.site-brand__tagline { color: var(--color-muted); }
.site-brand .custom-logo { max-height: 60px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--color-brand); box-shadow: inset 0 -3px var(--color-accent); }
.primary-nav .sub-menu { background: var(--color-brand); border: 0; box-shadow: 0 10px 24px #00000024; }
.primary-nav .sub-menu a { color: var(--color-on-brand); }
.primary-nav .sub-menu a:hover { background: var(--color-accent); color: var(--color-on-accent); box-shadow: none; }
.header-search { border-radius: 50%; background: var(--color-brand); }
.school-ribbon { min-height: 36px; background: var(--color-brand); }
.school-ribbon--home { gap: 1rem; }
.school-ribbon--home span, .school-ribbon--home time { flex: 0 0 auto; padding: .15rem .65rem; background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; }
.school-ribbon--home p { flex: 1; margin: 0; color: var(--color-on-brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.school-ribbon--home time { font-size: .72rem; }

.home-marquee { width: min(var(--content-width), 100%); min-height: 0; aspect-ratio: 1280 / 510; margin-inline: auto; background: var(--color-brand); }
.home-marquee--image::after { display: none; }
.home-marquee__image { object-fit: cover; }
.home-marquee:not(.home-marquee--image) { min-height: 300px; }
.home-marquee:not(.home-marquee--image)::after { background: linear-gradient(90deg, var(--color-brand-deep), transparent); }
.school-nameplate { min-height: 96px; padding: 20px 0; border-bottom: 0; }
.school-nameplate__eyebrow { margin: 0 0 .1rem; color: var(--color-muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.school-nameplate h1, .school-nameplate h2 { margin: 0; color: var(--color-brand); font-size: clamp(1.75rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.school-nameplate > p { color: var(--color-brand); font-size: .83rem; }
.home-section--tight { padding-top: 1.25rem; }
.section-heading { align-items: center; margin-bottom: .75rem; }
.section-heading h2 { display: inline-block; padding: .32rem .75rem; background: var(--color-accent); color: var(--color-on-accent); font-size: 1rem; letter-spacing: 0; }
.section-heading a { color: var(--color-brand); }
.lead-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.15fr); grid-template-rows: 350px; gap: 10px; }
.lead-stack { grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lead-grid .story-card { position: relative; overflow: hidden; background: var(--color-brand); }
.lead-grid .story-card__media { height: 100%; aspect-ratio: auto; background: var(--color-brand); }
.lead-grid .story-card__media img { height: 100%; }
.lead-grid .story-card__media::after { position: absolute; inset: 30% 0 0; content: ''; background: linear-gradient(transparent, var(--color-image-shade)); pointer-events: none; }
.lead-grid .story-card__placeholder { background: var(--color-brand); }
.lead-grid .story-card__body, .lead-grid .story-card--lead .story-card__body { position: absolute; inset: auto 0 0; margin: 0; padding: 1.7rem 1rem .85rem; background: transparent; color: var(--color-on-brand); pointer-events: none; }
.lead-grid .story-card h3 { font-size: .9rem; }
.lead-grid .story-card--lead h3 { font-size: 1.3rem; }
.lead-grid .story-card h3 a { color: var(--color-on-brand); pointer-events: auto; }
.lead-grid .story-card__meta { color: var(--color-accent); }
.lead-grid .story-card--compact { display: block; min-height: 0; }
.lead-grid .story-card--lead .story-card__media { aspect-ratio: auto; }
.lead-grid .story-card__category { z-index: 1; background: var(--color-accent); color: var(--color-on-accent); }
.editorial-panel { background: var(--color-brand); }
.editorial-panel h3 { display: inline-block; padding: .25rem .6rem; background: var(--color-accent); color: var(--color-on-accent); }
.editorial-panel__list a { padding-bottom: .6rem; border-bottom: 1px solid #ffffff38; }

.category-desks { gap: 10px; padding-bottom: 2rem; }
.category-desk { padding: 0 5px 1rem; background: var(--color-paper); border-bottom: 0; }
.category-desk__title { position: relative; margin: 0 0 .65rem; padding: 1rem 0 .4rem; color: var(--color-brand); font-size: 1.45rem; letter-spacing: -.035em; }
.category-desk__title::before { position: absolute; top: .55rem; left: 0; width: 70px; height: 3px; background: var(--color-accent); content: ''; }
.category-desk .story-card:first-of-type { position: relative; overflow: hidden; background: var(--color-brand); }
.category-desk .story-card:first-of-type { display: block; }
.category-desk .story-card:first-of-type .story-card__media { display: block; aspect-ratio: 4 / 3; }
.category-desk .story-card:first-of-type .story-card__media img { height: 100%; }
.category-desk .story-card:first-of-type .story-card__media::after { position: absolute; inset: 35% 0 0; content: ''; background: linear-gradient(transparent, var(--color-image-shade)); }
.category-desk .story-card:first-of-type .story-card__body { position: absolute; inset: auto 0 0; padding: 1.5rem .8rem .7rem; pointer-events: none; }
.category-desk .story-card:first-of-type h3 a { color: var(--color-on-brand); pointer-events: auto; }
.category-desk .story-card:first-of-type .story-card__meta { color: var(--color-accent); }
.category-desk .story-card + .story-card { margin-top: .75rem; padding-top: .75rem; }
.category-desk .story-card__meta { color: var(--color-muted); }
.category-desk .story-card h3 a { color: var(--color-brand); }
.category-desk__more { background: var(--color-accent); color: var(--color-on-accent); }

.agenda-band, .site-footer { background: var(--color-brand); }
.agenda-band .section-heading h2 { color: var(--color-on-accent); }
.agenda-band .section-heading a { color: var(--color-accent); }
.agenda-card { border-color: #ffffff44; }
.agenda-card__date { color: var(--color-on-accent); }
.school-life__note h2, .archive-title, .article-title, .related-stories h2, .page-content h1 { color: var(--color-brand); }
.school-life__gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-footer__bottom { color: var(--color-on-accent); }
.pagination .current, .search-submit, .button-link { background: var(--color-brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

@media (max-width: 980px) {
	.site-header__inner { min-height: 84px; }
	.lead-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 350px auto; }
	.lead-grid .story-card--lead { min-height: 350px; }
	.editorial-panel { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
	.site-header__inner { min-height: 68px; }
	.home-marquee { min-height: 190px; }
	.school-nameplate { min-height: 0; }
	.school-ribbon--home time { display: none; }
	.lead-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
	.lead-grid .story-card--lead { min-height: 300px; }
	.lead-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
	.lead-stack .story-card { min-height: 175px; }
	.editorial-panel { grid-column: auto; }
}
@media (max-width: 420px) {
	.contact-strip { justify-content: space-between; gap: .5rem; }
	.contact-strip__item { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.school-ribbon--home { gap: .5rem; }
	.school-nameplate > p { display: none; }
	.lead-stack { grid-template-columns: minmax(0, 1fr); }
	.lead-stack .story-card { min-height: 200px; }
}

/* School homepage: information, identity, carousel, news, notices, teachers, activities, gallery. */
.site-identity { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 38%; }
.site-identity .custom-logo-link { flex: 0 0 auto; }
.site-identity .custom-logo { max-height: 60px; width: auto; max-width: 100px; }
.site-identity .site-brand { flex: 1; min-width: 0; }
.site-brand__name { display: block; overflow-wrap: anywhere; }
.contact-strip { background: var(--color-brand-deep); flex-wrap: wrap; }
.contact-strip { min-height: 46px; flex-wrap: nowrap; justify-content: space-between; gap: 1.25rem; padding-inline: max(20px, calc((100% - var(--content-width)) / 2)); }
.school-announcement { min-width: 0; flex: 1; display: flex; align-items: center; gap: .7rem; }
.school-announcement__label { flex: 0 0 auto; padding: .15rem .65rem; background: var(--color-accent); color: var(--color-on-accent); font-weight: 800; }
.school-announcement__viewport { min-width: 0; overflow: hidden; }
.school-announcement__track { display: flex; width: max-content; white-space: nowrap; }
.school-announcement__track > span { flex: 0 0 auto; padding-right: 4rem; }
.school-announcement__track a { color: var(--color-accent); text-decoration: underline; }
.school-announcement__track a:hover, .school-announcement__track a:focus-visible { color: var(--color-on-brand); }
.school-announcement__viewport.is-overflowing .school-announcement__track { animation: school-announcement-scroll 24s linear infinite; }
.school-announcement__viewport:hover .school-announcement__track, .school-announcement__viewport:focus-within .school-announcement__track { animation-play-state: paused; }
.contact-strip__contacts { flex: 0 0 auto; display: flex; align-items: center; gap: 1.25rem; }
@keyframes school-announcement-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .school-announcement__viewport.is-overflowing .school-announcement__track { animation: none; } }
.primary-nav a { white-space: nowrap; }
.home-section .section-heading h2 { background: transparent; padding: 0 0 .6rem; border-bottom: 3px solid var(--color-accent); color: var(--color-brand-deep); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.2; }
.section-heading a { white-space: nowrap; }
.home-section .section-heading { margin-bottom: 1.3rem; }
.school-carousel { position: relative; max-width: var(--content-width); margin-inline: auto; background: var(--color-brand-deep); color: var(--color-on-brand); }
.school-carousel__track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.school-carousel__track::-webkit-scrollbar { display: none; }
.school-carousel__slide { flex: 0 0 100%; min-width: 0; position: relative; aspect-ratio: 1920 / 620; scroll-snap-align: start; scroll-snap-stop: always; }
.school-carousel__slide > img { width: 100%; height: 100%; object-fit: cover; }
.school-carousel__empty { display: grid; align-content: center; padding: 2rem; }
.school-carousel__caption { position: absolute; inset: auto 0 0; padding: 5rem 5% 4.5rem; background: linear-gradient(transparent, var(--color-image-shade)); }
.school-carousel__caption span { color: var(--color-accent); font-size: .8rem; }
.school-carousel__caption h2 { margin: .4rem 0 0; max-width: 700px; font-size: clamp(1.25rem, 3vw, 2.5rem); line-height: 1.2; }
.school-carousel__caption a { color: var(--color-on-brand); text-decoration: none; }
.school-carousel__controls { position: absolute; bottom: 16px; right: 20px; display: flex; align-items: center; gap: 12px; padding: 5px; background: var(--color-brand-deep); }
.school-carousel__controls[hidden] { display: none; }
.school-carousel__controls button { width: 40px; height: 40px; border: 0; cursor: pointer; background: var(--color-accent); color: var(--color-on-accent); font-size: 1.2rem; }
.school-carousel__controls button:hover { background: var(--color-paper); }
.school-carousel__status { font-size: .8rem; min-width: 40px; text-align: center; }
.news-editorial { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.news-grid .story-card:only-child { grid-column: 1 / -1; }
.news-grid .story-card:only-child .story-card__media { aspect-ratio: 2 / 1; }
.editorial-panel { padding: 24px; background: var(--color-brand); }
.editorial-panel h2 { color: var(--color-on-brand); margin: 0 0 1.25rem; font-size: 1.4rem; }
.editorial-panel__list a { padding-block: .75rem; line-height: 1.6; }
.announcements { background: var(--color-surface); }
.announcement-list article { display: grid; grid-template-columns: 150px minmax(0, 1fr) 24px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--color-line); }
.announcement-list time { color: var(--color-muted); font-size: .85rem; }
.announcement-list h3 { margin: 0; font-size: 1.05rem; }
.announcement-list h3 a { text-decoration: none; }
.announcement-list article > span { color: var(--color-brand); }
.teacher-card { min-width: 0; }
.agenda-band.home-section .section-heading h2 { color: var(--color-on-brand); }
.activity-card { background: var(--color-paper); color: var(--color-ink); }
.activity-card > a { display: block; }
.activity-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.activity-card > div { padding: 20px; }
.activity-card h3 { margin: .5rem 0; line-height: 1.4; }
.activity-card h3 a { text-decoration: none; }
.activity-card p { margin: .5rem 0 0; font-size: .85rem; }
.activity-card__category { font-size: .75rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-brand); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span { position: absolute; inset: auto 0 0; padding: 3rem 16px 16px; background: linear-gradient(transparent, var(--color-image-shade)); color: var(--color-on-brand); font-size: .9rem; }
.site-footer { background: var(--color-brand-deep); }
.footer-social a { display: flex; align-items: center; justify-content: flex-start; gap: .65rem; text-decoration: none; padding: .25rem 0; }
.footer-social__icon { flex: 0 0 20px; width: 20px; height: 20px; }
.footer-social__arrow { margin-left: auto; }
.footer-social a:hover { color: var(--color-accent); }
.search-form label { min-width: 0; }
@media (max-width: 980px) {
    .site-identity { max-width: calc(100% - 64px); }
    .news-editorial { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .editorial-panel__list { grid-template-columns: minmax(0, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .agenda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .primary-nav { overflow: visible; }
    .primary-nav ul { min-width: 0; flex-wrap: wrap; }
    .primary-nav .sub-menu { left: 0; }
}
@media (max-width: 700px) {
    .site-identity .custom-logo { max-height: 44px; max-width: 64px; }
    .site-brand__name { font-size: 1.2rem; letter-spacing: -.025em; }
    .site-brand__tagline { font-size: .65rem; }
    .primary-nav ul { gap: 0 16px; }
    .primary-nav .sub-menu { position: static; min-width: 0; }
    .section-heading { flex-direction: row; align-items: baseline; gap: .5rem; }
    .section-heading a { flex-shrink: 0; font-size: .75rem; }
    .school-carousel__slide { aspect-ratio: 4 / 3; }
    .school-carousel__controls { right: 12px; bottom: 12px; }
    .news-editorial { grid-template-columns: minmax(0, 1fr); }
    .news-grid { gap: 20px; }
    .announcement-list article { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px; }
    .announcement-list time { grid-column: 1 / -1; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agenda-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    .news-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery-grid { gap: 12px; }
    .gallery-item { aspect-ratio: 1; }
    .gallery-item span { font-size: .78rem; padding-inline: 10px; }
    .contact-strip__item:first-child { display: inline-flex; }
    .contact-strip__item { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .story-card__media img, .gallery-item img { transition: none; }
}
.site-logo-placeholder { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 54px; background: var(--color-brand); color: var(--color-accent); border-bottom: 4px solid var(--color-accent); }
.site-logo-placeholder svg { width: 32px; height: 32px; }

/* Match the reference composition inside the approved section order. */
.home-marquee, .school-carousel__slide { aspect-ratio: 1280 / 510; }
.news-editorial { grid-template-columns: minmax(0, 61.5fr) minmax(0, 38.5fr); gap: 12px; align-items: stretch; }
.news-grid { height: 350px; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.news-feature { grid-area: 1 / 1; width: calc(50% - 6px); height: 100%; }
.news-feature .story-card { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--color-brand-deep); }
.news-stack { position: absolute; top: 0; right: 0; bottom: 0; width: calc(50% - 6px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 12px; }
.news-grid { position: relative; background: #fff; }
.news-stack .story-card { position: relative; overflow: hidden; min-height: 0; background: var(--color-brand-deep); }
.news-stack .story-card:first-child { grid-column: 1 / -1; }
.news-stack .story-card__media, .news-feature .story-card__media { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.news-stack .story-card__media img, .news-feature .story-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-stack .story-card__media::after, .news-feature .story-card__media::after { content: ''; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, var(--color-image-shade)); }
.news-stack .story-card__body, .news-feature .story-card__body { position: absolute; inset: auto 0 0; z-index: 1; padding: 1rem; background: transparent; color: var(--color-on-brand); pointer-events: none; }
.news-stack .story-card__body h3 a, .news-feature .story-card__body h3 a { color: var(--color-on-brand); pointer-events: auto; }
.news-stack .story-card__meta, .news-feature .story-card__meta { color: var(--color-accent); }
.news-feature .story-card__body h3 { font-size: 1.25rem; }
.news-stack .story-card__excerpt { display: none; }
.editorial-panel { min-width: 0; display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); grid-template-rows: auto minmax(0, 1fr); gap: 0 14px; padding: 0; background: var(--color-paper); color: var(--color-ink); }
.editorial-panel > h2 { grid-column: 1 / -1; margin: 0 0 1.3rem; padding-bottom: .5rem; border-bottom: 3px solid var(--color-accent); color: var(--color-brand-deep); }
.editorial-feature { min-width: 0; height: 100%; }
.editorial-feature a { position: relative; display: block; height: 100%; color: var(--color-brand-deep); font-size: .9rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.editorial-feature a::after { position: absolute; z-index: 0; inset: 45% 0 0; background: linear-gradient(transparent, var(--color-image-shade)); content: ''; pointer-events: none; }
.editorial-feature img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; margin: 0; }
.editorial-feature .story-card__category { z-index: 2; }
.editorial-feature__title { position: absolute; z-index: 1; inset: auto 0 0; display: block; padding: 1rem; color: var(--color-on-brand); font-size: .95rem; font-weight: 700; line-height: 1.35; }
.editorial-panel__list { min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: .4rem; }
.editorial-panel__list a { padding-block: .35rem; color: var(--color-brand-deep); font-size: .85rem; }
.announcement-grid { min-height: 310px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.announcement-grid > .story-card { position: relative; min-height: 280px; overflow: hidden; background: var(--color-brand-deep); }
.announcement-grid > .story-card .story-card__media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.announcement-grid > .story-card .story-card__media img { width: 100%; height: 100%; object-fit: cover; }
.announcement-grid > .story-card .story-card__body { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, var(--color-image-shade)); color: var(--color-on-brand); }
.announcement-grid > .story-card .story-card__body h3 a { color: var(--color-on-brand); }
.announcement-stack { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.announcement-stack .story-card { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--color-line); }
.announcement-stack .story-card__media { display: block; aspect-ratio: 4 / 3; }
.announcement-stack .story-card__category { display: none; }
.announcement-stack .story-card__body { padding: 0; }
.announcement-stack .story-card__excerpt { display: none; }
.teacher-grid { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 12px; scroll-snap-type: x mandatory; scrollbar-color: var(--color-brand) var(--color-surface); }
.teacher-card { position: relative; flex: 0 0 calc((100% - 40px) / 5); scroll-snap-align: start; }
.teacher-grid { scrollbar-width: none !important; }
.teacher-grid::-webkit-scrollbar { display: none !important; width: 0; height: 0; }
.teacher-card img, .teacher-card__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agenda-band { position: relative; isolation: isolate; background-color: var(--color-brand-deep); background-image: linear-gradient(135deg, var(--color-brand), var(--color-brand-deep)); }
.agenda-band .site-shell { position: relative; z-index: 1; }
.agenda-band .section-heading { justify-content: center; }
.agenda-band .section-heading a { display: none; }
.agenda-grid { max-width: 850px; margin-inline: auto; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.activity-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 22px; background: #ffffff1a; color: var(--color-on-brand); }
.activity-card__category { margin: 0; color: var(--color-accent); font-size: .76rem; font-weight: 700; }
.activity-card__category a { color: var(--color-accent); }
.activity-card h3 { margin: .3rem 0; font-size: 1.1rem; }
.activity-card h3 a { color: var(--color-on-brand); }
.activity-card > div:last-child > p:last-child { margin: 0; color: var(--color-on-brand); font-size: .84rem; }
.agenda-date { display: grid; place-content: center; min-height: 78px; background: var(--color-accent); color: var(--color-on-accent); text-align: center; }
.agenda-date strong { font-size: 1.8rem; line-height: 1.1; }
.agenda-date span { font-size: .75rem; }
.activity-card { background: #00000020; }
.teacher-card:only-child { flex-basis: min(100%, 240px); }
.teacher-grid:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
@media (max-width: 1024px) {
    .news-editorial { grid-template-columns: minmax(0, 1fr); }
    .editorial-panel { grid-template-columns: 180px minmax(0, 1fr); }
    .teacher-card { flex-basis: calc((100% - 40px) / 5); }
}
@media (max-width: 700px) {
    .news-grid { height: auto; grid-template-rows: 230px auto; gap: 8px; }
    .news-feature { width: 100%; grid-area: 1 / 1; }
    .news-stack { position: static; width: 100%; grid-area: 2 / 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 140px); }
    .news-stack .story-card:first-child { grid-column: auto; }
    .news-editorial { row-gap: 1.5rem; }
    .editorial-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
    .editorial-feature { height: auto; }
    .editorial-feature a { width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: 280px; overflow: hidden; background: var(--color-brand-deep); }
    .editorial-feature__title { font-size: 1rem; line-height: 1.4; }
    .editorial-panel__list { gap: 0; margin-top: .5rem; }
    .editorial-panel__list a { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: .5rem; padding-block: .65rem; border-bottom: 1px solid var(--color-line); font-size: .85rem; line-height: 1.5; }
    .editorial-panel__list a::after { float: none; align-self: center; justify-self: end; }
    .announcement-grid { min-height: 0; grid-template-columns: minmax(0, 1fr); }
    .announcement-grid > .story-card { min-height: 230px; }
    .announcement-stack { grid-template-rows: auto; }
    .teacher-card { flex-basis: calc((100% - 10px) / 2); }
    .school-carousel__slide { aspect-ratio: 4 / 3; }
    .activity-card { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px; }
    .agenda-date { min-height: 68px; }
}
@media (max-width: 420px) {
    .school-carousel__slide { aspect-ratio: 4 / 3; }
    .news-stack { grid-template-rows: repeat(2, 125px); }
}
.contact-strip { position: sticky; top: 0; z-index: 100; }
.site-header { position: sticky; top: 46px; z-index: 90; }
@media (max-width: 700px) {
    .contact-strip { min-height: 38px; }
    .contact-strip { padding-inline: 14px; }
    .contact-strip__contacts { display: none; }
    .site-header { top: 38px; }
}
.menu-toggle { display: none; }
@media (max-width: 700px) {
    .site-header__inner { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; grid-template-rows: minmax(52px, auto); align-content: start; gap: 8px; min-height: 72px; padding-block: 10px; }
    .site-identity { grid-column: 2; grid-row: 1; gap: 8px; width: 100%; max-width: 100%; margin: 0; }
    .site-identity .custom-logo-link { flex: 0 0 48px; }
    .site-identity .custom-logo { width: 48px; max-width: 48px; max-height: 48px; object-fit: contain; }
    .site-identity .site-brand { display: block; }
    .site-brand__name { font-size: clamp(.9rem, 3.8vw, 1.1rem); line-height: 1.25; letter-spacing: -.02em; }
    .site-brand__tagline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: .2rem; font-size: .6rem; line-height: 1.4; letter-spacing: 0; }
    .site-logo-placeholder { flex-basis: 48px; width: 48px; height: 48px; }
    .site-logo-placeholder svg { width: 34px; height: 34px; }
    .header-search { position: static; grid-column: 3; grid-row: 1; width: 32px; height: 32px; font-size: 1.25rem; transform: none; }
    .menu-toggle { position: static; grid-column: 1; grid-row: 1; transform: none; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: var(--color-brand); color: var(--color-on-brand); font-size: 1rem; }
    .primary-nav { display: none; grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; padding-top: .5rem; border-top: 1px solid var(--color-line); }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .primary-nav a { padding: .6rem .5rem; white-space: normal; }
}
.teacher-intro { max-width: 680px; margin: -.25rem 0 1.5rem; color: var(--color-muted); line-height: 1.7; }
.teacher-card__caption { display: grid; gap: .25rem; padding: .75rem .1rem 0; color: var(--color-ink); line-height: 1.4; }
.teacher-card__caption h2, .teacher-card__caption h3 { position: static; margin: 0; padding: 0; color: var(--color-ink); font-size: .95rem; line-height: 1.4; }
.teacher-card__caption p { margin: 0; color: var(--color-muted); font-size: .8rem; }

.teacher-card__image { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--color-brand-deep); }
.teacher-card__image img, .teacher-card__image .teacher-card__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teacher-directory { padding-bottom: 4rem; }
.teacher-directory__header { margin-bottom: 1.5rem; }
.teacher-directory__header .archive-title { margin-bottom: .8rem; }
.teacher-directory__header .teacher-intro { margin: 0; }
.teacher-directory-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.25rem; }
@media (max-width: 980px) {
    .teacher-directory-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .teacher-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .75rem; }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
    .post-navigation .nav-next { text-align: left; }
}
