/* Al-Hamd Progressive School — public website
   Classic American collegiate (Harvard-inspired) in the school's crest colours: deep green, gold, burnt orange, cream. One loud element: the oversized Caslon headline beside the framed hero picture. */

body.site { font-size: 17px; line-height: 1.6; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body.site { font-size: 16px; } }

.site h1, .site h2, .site h3 { color: var(--ink); }
.site a { text-decoration-thickness: 1px; }
.btn-lg { padding: .95rem 1.4rem; font-size: .98rem; min-height: 48px; }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--cream); color: var(--brand-dark); border-color: var(--cream); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.opt { font-weight: 400; color: var(--muted); }

/* ---------- utility bar */
.utility { background: var(--ink); color: #E9E9E9; font-size: .82rem; }
.utility-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.utility p { margin: 0; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }
.utility-links a:last-child { color: #fff; font-weight: 600; border-bottom: 2px solid var(--brand); }
@media (max-width: 760px) { .utility-addr { display: none; } .utility-links a:nth-child(2) { display: none; } .utility-in { min-height: 34px; } .utility p { gap: .9rem; } }
@media (max-width: 400px) { .utility-links a:last-child { display: none; } }

/* ---------- masthead */
.masthead { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.masthead-in { display: flex; align-items: center; gap: 1.25rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand { display: flex; align-items: center; gap: .95rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.72rem; line-height: 1.05; letter-spacing: -.005em; }
.brand-place { font-size: .82rem; color: var(--slate); margin-top: .3rem; }
.masthead-actions { display: flex; gap: .6rem; }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .8rem; font: 600 .85rem var(--sans); color: var(--ink); cursor: pointer; min-height: 42px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
.nav-toggle-bars::before { position: absolute; top: -6px; } .nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.sitenav { border-top: 1px solid var(--line-soft); }
.sitenav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.1rem; flex-wrap: wrap; }
.sitenav ul a { display: block; padding: .85rem 0 .8rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sitenav ul a:hover { color: var(--brand); }
.sitenav ul a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.sitenav-actions { display: none; }

@media (max-width: 960px) {
  .masthead-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-name { font-size: 1.32rem; }
  .sitenav { display: none; border-top: 1px solid var(--line); }
  .sitenav.is-open { display: block; }
  .sitenav ul { flex-direction: column; gap: 0; }
  .sitenav li + li { border-top: 1px solid var(--line-soft); }
  .sitenav ul a { padding: .9rem 0; border-bottom: 0; font-size: 1.02rem; }
  .sitenav ul a[aria-current="page"] { border-left: 3px solid var(--brand); padding-left: .75rem; }
  .sitenav-actions { display: grid; gap: .6rem; padding: 1rem 0 1.25rem; }
}
@media (max-width: 420px) { .brand .crest { width: 38px !important; height: 45px !important; } .brand-name { font-size: 1.12rem; } .brand-place { font-size: .74rem; } .nav-toggle-label { display: none; } }

.flash-wrap { padding-top: 1.25rem; }

/* ---------- hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-kicker { font-family: var(--serif); font-style: italic; color: var(--brand); font-size: 1.15rem; margin-bottom: 1rem; }
.hero-title { font-family: var(--serif-display); font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.03; letter-spacing: -.012em; margin: 0 0 1.4rem; max-width: 13ch; text-wrap: balance; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--slate); max-width: 44ch; margin-bottom: 2rem; }
.hero-actions { gap: .75rem; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.seal-panel { background: var(--brand); color: #fff; aspect-ratio: 4 / 5; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 2.25rem; }
.seal-panel::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.35); pointer-events: none; }
.seal-mark { position: absolute; width: 78%; right: -12%; top: 6%; color: rgba(255,255,255,.28); }
.seal-words { font-family: var(--serif-display); font-size: clamp(1.9rem, 3.3vw, 2.9rem); line-height: 1.08; margin: 0 0 3.5rem; position: relative; }
.hero-card { position: absolute; left: -2rem; bottom: -1.75rem; background: #fff; border-top: 3px solid var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.10); padding: 1rem 1.25rem; display: grid; gap: .15rem; min-width: 240px; font-size: .9rem; }
.hc-label { font-weight: 600; }
.hc-addr { color: var(--slate); }
.hero-card a { font-weight: 600; text-decoration: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 520px; }
  .seal-panel, .hero-figure img { aspect-ratio: 16 / 11; }
  .hero-card { position: relative; left: auto; bottom: auto; margin: -1.75rem 1rem 0; min-width: 0; }
  .seal-words { margin-bottom: 1.5rem; }
}
@media (max-width: 480px) { .seal-panel { padding: 1.25rem; } .hero-title { font-size: 2.45rem; } }

/* ---------- sections */
.section { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-mist { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-mist + .section { border-top: 0; }
.section-h { font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.2rem); margin-bottom: 1.5rem; letter-spacing: -.005em; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head .section-h { margin: 0; }
.more { font-weight: 600; font-size: .92rem; }
.lede { font-family: var(--serif); font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink); }

.intro { padding-top: clamp(4rem, 7vw, 6rem); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 2.5rem; }
.intro-h { font-family: var(--serif); font-style: italic; color: var(--brand); font-size: 1.5rem; padding-top: .35rem; border-top: 3px solid var(--brand); align-self: start; }
.intro-body .lede { max-width: 40ch; margin-bottom: 1.5rem; }
.intro-links { display: flex; gap: 1.75rem; flex-wrap: wrap; margin: 0; font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .intro-grid { grid-template-columns: 1fr; gap: 1rem; } .intro-h { border-top: 0; padding-top: 0; } }

.hl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.hl-list li { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.hl-list h3 { font-family: var(--serif); font-size: 1.28rem; margin-bottom: .5rem; }
.hl-list p { color: var(--slate); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .hl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hl-list { grid-template-columns: 1fr; gap: 1.5rem; } }

.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; }
.news-list h3, .news-list h2 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; margin: 0 0 .5rem; }
.news-list h3 a, .news-list h2 a { color: var(--ink); text-decoration: none; }
.news-list h3 a:hover, .news-list h2 a:hover { color: var(--brand); text-decoration: underline; }
.news-list p { color: var(--slate); font-size: .96rem; margin-bottom: .4rem; }
.news-meta { display: flex; gap: 1rem; font-size: .82rem !important; color: var(--muted) !important; margin-bottom: .55rem !important; flex-wrap: wrap; }
.news-meta span { color: var(--brand); font-weight: 600; }
.news-meta .pin { color: var(--gold); }
.news-list-full { grid-template-columns: 1fr; gap: 0; max-width: 820px; }
.news-list-full li { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.news-list-full li:first-child { padding-top: .5rem; }
.news-list-full h2 { font-size: 1.5rem; }
.news-list-full li.is-pinned { border-left: 3px solid var(--brand); padding-left: 1.25rem; }
@media (max-width: 860px) { .news-list { grid-template-columns: 1fr; gap: 1.75rem; } }

/* crimson band */
.band { background: var(--brand); color: #fff; padding: clamp(2.75rem, 6vw, 4.25rem) 0; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.band h2 { font-family: var(--serif-display); font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: .6rem; }
.band p { margin: 0; max-width: 48ch; opacity: .92; font-size: 1.05rem; }
.band + .section { border-top: 0; }

.visit-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; }
.visit-addr { font-style: normal; font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; margin-bottom: 1.5rem; max-width: 30ch; }
.visit-sub { font-family: var(--serif); font-size: 1.3rem; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.hours div:first-child { border-top: 1px solid var(--line); }
.hours dt { color: var(--slate); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- inner pages */
.pagehead { padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2rem, 4vw, 2.75rem); border-bottom: 1px solid var(--line); }
.pagehead-crumbs { font-size: .84rem; color: var(--muted); display: flex; gap: .5rem; margin-bottom: 1rem; }
.pagehead-crumbs a { color: var(--slate); text-decoration: none; }
.pagehead-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.pagehead h1 { font-family: var(--serif-display); font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.06; letter-spacing: -.01em; margin: 0; max-width: 20ch; text-wrap: balance; }
.pagehead-lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--slate); max-width: 58ch; margin: 1rem 0 0; }

.page-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(2.25rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 860px) { .page-grid { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; }
.prose-narrow { padding-top: 2.5rem; }
.prose h2 { font-family: var(--serif); font-size: 1.6rem; margin: 2rem 0 .75rem; }
.prose h3 { font-family: var(--serif); font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--brand); font-family: var(--serif); font-size: 1.15rem; }
.prose img { margin: 1.25rem 0; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5rem; text-align: left; }
.page-aside { align-self: start; }
.aside-block { border-top: 3px solid var(--brand); padding-top: 1rem; margin-bottom: 2.25rem; }
.aside-block h2 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .6rem; }
.aside-block p { color: var(--slate); }
.aside-links { list-style: none; padding: 0; margin: 0; }
.aside-links li { padding: .55rem 0; border-bottom: 1px solid var(--line-soft); display: grid; }
.ann-figure { margin: 0 0 1.5rem; }

.principal { background: var(--mist); border-top: 1px solid var(--line); }
.principal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; }
.principal-quote { margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; max-width: 58ch; }
.principal-quote footer { font-family: var(--sans); font-size: .92rem; font-weight: 600; margin-top: 1rem; color: var(--slate); }
.principal-quote footer::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--brand); vertical-align: middle; margin-right: .6rem; }
@media (max-width: 760px) { .principal-grid { grid-template-columns: 1fr; gap: .5rem; } }
.visit-cta .lede { max-width: 32ch; }

/* academics */
.class-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.class-group h3 { font-family: var(--serif); font-size: 1.3rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.class-group ul { list-style: none; padding: 0; margin: 0; }
.class-group li { padding: .6rem 0; border-bottom: 1px solid var(--line-soft); display: grid; }
.cname { font-weight: 600; }
.cdesc { color: var(--slate); font-size: .9rem; }

/* admissions process — a real sequence, so it is numbered */
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.process li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1rem; position: relative; }
.process li::before { content: counter(step); font-family: var(--serif-display); font-size: 2.6rem; color: var(--brand); line-height: 1; display: block; margin-bottom: .6rem; }
.process h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .35rem; }
.process p { color: var(--slate); font-size: .94rem; margin: 0; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } .process li { display: grid; grid-template-columns: 3rem 1fr; column-gap: .75rem; } .process li::before { grid-row: span 2; font-size: 2.2rem; } }

.inquiry-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.inquiry-side p { color: var(--slate); }
.docs-h { font-family: var(--serif); font-size: 1.2rem; margin-top: 1.75rem; }
.doc-list { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.doc-list li { margin-bottom: .45rem; }
.doc-list li::marker { color: var(--brand); }
.inquiry-box { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: clamp(1.25rem, 3vw, 2rem); }
.box-h { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .3rem; }
.form-foot { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.form-foot p { margin: 0; flex: 1 1 220px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .inquiry-grid { grid-template-columns: 1fr; } }

.faq { max-width: 860px; }
.inquiry-form .check { font-weight: 400; font-size: .88rem; color: var(--slate); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-family: var(--serif); font-size: 1.18rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-family: var(--sans); font-size: 1.5rem; color: var(--brand); font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--brand); }
.faq-a { padding: 0 0 1.1rem; color: var(--slate); max-width: 68ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(2.25rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); align-items: start; }
.contact-block { padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.contact-block h2 { font-size: .9rem; font-family: var(--sans); font-weight: 600; color: var(--slate); margin-bottom: .6rem; }
.big-addr { font-style: normal; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.45; max-width: 28ch; }
.big-phone { font-family: var(--serif-display); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; margin-bottom: 1rem; }
.big-phone a { color: var(--ink); text-decoration: none; }
.big-phone a:hover { color: var(--brand); }
.map-embed { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* announcements filter */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; padding: 1.75rem 0 1rem; }
.chips a { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.chips a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.site-pager { display: flex; gap: 1.25rem; align-items: center; padding: 2rem 0 3.5rem; font-size: .92rem; }
.wrap > .news-list-full:last-child, .wrap > p.muted:last-child { margin-bottom: 4rem; }

/* gallery */
.album-grid, .photo-grid { list-style: none; padding: 0; margin: 2.25rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.album-grid a { display: grid; gap: .35rem; color: var(--ink); text-decoration: none; }
.album-cover { display: block; overflow: hidden; background: var(--mist); aspect-ratio: 4 / 3; }
.album-cover img, .photo-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.album-name { font-family: var(--serif); font-size: 1.2rem; }
.album-grid a:hover .album-name { color: var(--brand); text-decoration: underline; }
.album-count { font-size: .85rem; color: var(--muted); }
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; overflow: hidden; background: var(--mist); }
.photo-grid figcaption { font-size: .86rem; color: var(--slate); margin-top: .4rem; }
.wrap > .photo-grid:last-child, .wrap > .small.muted:last-child { margin-bottom: 4rem; }

.lightbox { position: fixed; inset: 0; background: rgba(15,15,15,.92); z-index: 100; display: grid; place-items: center; padding: 3.5rem 1rem 2rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #eee; margin-top: .75rem; font-size: .92rem; }
.lightbox button { position: absolute; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; font: 600 .9rem var(--sans); padding: .55rem .9rem; cursor: pointer; border-radius: var(--radius); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; }

/* downloads */
.dl-list { list-style: none; padding: 0; margin: 2rem 0 4rem; max-width: 860px; }
.dl-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.dl-list h2 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 .25rem; }
.dl-list p { margin: 0; color: var(--slate); font-size: .94rem; }
.dl-meta { font-size: .82rem; color: var(--muted); white-space: nowrap; }

/* thanks / verify */
.thanks { padding: clamp(3rem, 8vw, 6rem) 0; }
.thanks-in { max-width: 680px; }
.thanks-kicker { font-family: var(--serif); font-style: italic; color: var(--brand); font-size: 1.15rem; }
.thanks h1 { font-family: var(--serif-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
.thanks h2 { font-family: var(--serif); font-size: 1.4rem; margin-top: 2rem; }
.ref-no { font-family: var(--serif-display); font-size: clamp(1.8rem, 4vw, 2.4rem); border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: .8rem 1.2rem; display: inline-block; letter-spacing: .02em; }
.next-steps { padding-left: 1.25rem; } .next-steps li { margin-bottom: .5rem; } .next-steps li::marker { color: var(--brand); font-weight: 700; }
.verify-status { display: inline-block; font-weight: 700; padding: .45rem .9rem; border-radius: var(--radius); }
.verify-status.is-ok { background: var(--ok-tint); color: var(--ok); }
.verify-status.is-bad { background: var(--bad-tint); color: var(--bad); }
.error-page h1 { font-family: var(--serif-display) !important; }

/* ---------- footer */
.sitefoot { background: var(--ink); color: #DADADA; margin-top: 0; }
.sitefoot a { color: #fff; text-decoration: none; }
.sitefoot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem; }
.foot-name { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin: 1rem 0 .5rem; }
.foot-brand address { font-style: normal; font-size: .92rem; line-height: 1.6; max-width: 32ch; }
.sitefoot .foot-h { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: #fff; margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--brand); display: inline-block; }
.foot-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.foot-list li { margin-bottom: .55rem; }
.foot-hours { margin: 0; font-size: .9rem; display: grid; gap: .1rem; }
.foot-hours dt { color: #AFAFAF; font-size: .82rem; margin-top: .5rem; }
.foot-hours dd { margin: 0; color: #fff; }
.foot-base { border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: #AFAFAF; }
.foot-base-in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.foot-base p { margin: 0; }
.foot-social { display: flex; gap: 1rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: .5rem; background: #1A7F45; color: #fff; text-decoration: none; padding: .7rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.wa-float:hover { background: #146A39; color: #fff; }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .wa-float { padding: .8rem; right: 14px; bottom: 14px; } .wa-float span { display: none; } }

@media print { .utility, .sitenav, .nav-toggle, .masthead-actions, .wa-float, .sitefoot, .inquiry-box { display: none !important; } }

/* ---------- homepage imagery (v1.1) */
.hero-figure.has-photo { position: relative; }
.hero-frame { position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; border: 1px solid var(--brand); z-index: 0; pointer-events: none; }
.hero-pic { position: relative; z-index: 1; display: block; }
.hero-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 18px 40px rgba(30, 30, 30, .12); }
.hero-figure.has-photo .hero-card { z-index: 2; }

.intro-grid.has-img { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.intro-figure { margin: 0; position: relative; }
.intro-figure::after { content: ""; position: absolute; left: -14px; top: -14px; width: 38%; height: 46%; border-left: 3px solid var(--brand); border-top: 3px solid var(--brand); pointer-events: none; }
.intro-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.intro-grid.has-img .intro-h { border-top: 0; padding-top: 0; margin-bottom: .85rem; font-size: 1.6rem; }
.intro-grid.has-img .intro-body .lede { max-width: 34ch; }
@media (max-width: 860px) { .intro-grid.has-img { grid-template-columns: 1fr; } .intro-figure::after { left: -8px; top: -8px; } }

.hl-icon { width: 104px; height: 104px; object-fit: contain; margin: 0 0 1rem -6px; }
.hl-list li { padding-top: 1.4rem; }

.news-grid.has-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.news-figure { margin: 0; }
.news-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 6px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.news-grid.has-img .news-list-home { grid-template-columns: 1fr; gap: 0; }
.news-grid.has-img .news-list-home li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.news-grid.has-img .news-list-home li:first-child { padding-top: 0; }
@media (max-width: 860px) { .news-grid.has-img { grid-template-columns: 1fr; } .news-figure { max-width: 560px; } }
@media (max-width: 960px) { .hero-frame { inset: .6rem -.6rem -.6rem .6rem; } }
@media (max-width: 480px) { .hero-frame { inset: .5rem 0 -.5rem .5rem; } .hl-icon { width: 88px; height: 88px; } }


/* =====================================================================
   Theme v2 — school crest colours (green / gold / orange / cream)
   ===================================================================== */
.utility { background: var(--brand-deep); color: #E6EDE8; }
.utility-links a:last-child { color: var(--gold-light); border-bottom-color: var(--gold-light); }

.masthead { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.masthead::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--brand) 0 70%, var(--gold-light) 70% 88%, var(--orange) 88%); }
.masthead-in { padding-top: .85rem; padding-bottom: .85rem; }
.brand-name { color: var(--brand-dark); }
.brand-place { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8rem; margin-top: .4rem; }
.brand-levels { color: var(--gold); font-weight: 600; letter-spacing: .01em; }
.brand-rec { color: var(--slate); padding-left: 1rem; border-left: 1px solid var(--line); }
@media (max-width: 960px) { .brand-rec { display: none; } }
@media (max-width: 420px) { .brand .crest-img { height: 54px !important; } }
.sitenav { background: #fff; }
.sitenav ul a[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--orange); }

.hero-kicker { color: var(--gold); }
.hero-title { color: var(--brand-dark); }
.hero-frame { border-color: var(--gold-light); border-width: 2px; }
.hero-card { border-top-color: var(--orange); }
.hc-levels { font-family: var(--serif); color: var(--brand); font-size: 1.02rem; margin-bottom: .2rem; }
.seal-panel { background: var(--brand); }

.intro-h { color: var(--brand); }
.intro-figure::after { border-color: var(--orange); }

.highlights { background: var(--cream); border-top: 0 !important; }
.highlights + .section { border-top: 0; }
.hl-list li { border-top-color: var(--brand); }
.hl-list h3 { color: var(--brand-dark); }

.news-meta span { color: var(--orange); }
.news-figure img { border-color: var(--cream); }

.band { background: var(--brand-dark); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-light); }
.band h2 { color: #fff; }
.btn-light { color: var(--brand-dark); }
.band .btn-ghost-light { border-color: var(--gold-light); color: var(--gold-light); }
.band .btn-ghost-light:hover { background: rgba(217, 182, 106, .12); color: #fff; }

.visit-sub, .section-h { color: var(--brand-dark); }
.hours div:first-child { border-top-color: var(--brand); }

.pagehead { background: linear-gradient(180deg, var(--cream) 0, #fff 100%); }
.pagehead h1 { color: var(--brand-dark); }

.sitefoot { background: var(--brand-deep); color: #D7E1DA; }
.sitefoot .foot-h { border-bottom-color: var(--gold-light); }
.foot-hours dt { color: #9DB3A5; }
.foot-tagline { font-family: var(--serif); font-style: italic; color: var(--gold-light); margin: -.25rem 0 .75rem; }
.foot-base { color: #9DB3A5; border-top-color: rgba(255,255,255,.12); }
.foot-brand .crest-img { filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }

.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand-dark); }
