/*
 * The public school website (resources/views/site). One stylesheet for every tenant: the school's own colours arrive
 * as custom properties set inline by site/layout.blade.php, mixed there in PHP so a phone without color-mix() still
 * gets them.
 *
 *   --primary / --on-primary      the school's colour and the text that reads on it
 *   --secondary / --on-secondary  its accent: the badge, the call to action, the rule under the current menu item
 *   --deep                        the primary, darkened: the top strip, the honours board, the footer
 *   --ink                         headings; --link for links (the primary, or --ink when the primary is too light)
 *   --wash / --line               the primary at 6% and 17% on white: tinted bands and hairlines
 *   --tint / --tint-2             the primary at 10% and 20% on white: icon discs, hover washes
 *   --primary-rgb                 the primary as "r g b", for shadows and glows that follow the school's colour
 *
 * A welcoming, card-based look: a bold cover with the school's picture, a row of quick doors for parents and students,
 * rounded cards that lift on hover, soft shadows, and generous space. Every class a template uses is kept, so a school's
 * CMS blocks, its three treatments (classic, modern, minimal) and every inner page get the same care.
 */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.62 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.28; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.ur, [lang=ur] { font-family: var(--urdu); line-height: 2.1; letter-spacing: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 2px solid var(--primary); border-radius: 999px; background: var(--primary); color: var(--on-primary); font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; box-shadow: 0 8px 20px -10px rgb(var(--primary-rgb) / .7); }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgb(var(--primary-rgb) / .8); }
.btn--accent { background: var(--secondary); border-color: var(--secondary); color: var(--on-secondary); box-shadow: 0 8px 20px -10px rgb(0 0 0 / .45); }
.btn--accent:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); box-shadow: 0 12px 24px -10px rgb(0 0 0 / .5); }
.btn--line { background: transparent; border-color: currentColor; color: inherit; box-shadow: none; }
.btn--line:hover { background: rgb(255 255 255 / .14); border-color: currentColor; box-shadow: none; }

/* ---------- the public demo's note (config/erp/demo.php) ---------- */
.demonote { position: fixed; bottom: 14px; left: 14px; z-index: 60; max-width: min(320px, calc(100vw - 28px)); margin: 0; padding: 11px 15px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .95rem; line-height: 1.35; box-shadow: 0 14px 30px -14px rgb(0 0 0 / .7); }
.demonote a { display: block; color: var(--secondary); font-weight: 700; }

/* ---------- the strip above the menu ---------- */
.strip { background: var(--deep); color: rgb(255 255 255 / .86); font-size: .875rem; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; padding-block: 9px; }
.strip__group { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.strip a { color: #fff; text-underline-offset: .2em; }
.strip strong { color: var(--secondary); font-weight: 700; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.masthead .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font: 800 1.25rem/1.1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand img { width: auto; height: 50px; }
.brand__mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--on-primary); font: 800 1.35rem/1 var(--display); box-shadow: 0 8px 18px -8px rgb(var(--primary-rgb) / .8); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { padding: 9px 14px; border-radius: 999px; color: var(--ink); font-size: .98rem; font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease; }
.nav a:not(.btn):hover { background: var(--tint); }
.nav a[aria-current=page] { background: var(--tint-2); color: var(--ink); }
.nav .btn { margin-left: 10px; padding: 10px 20px; }
.burger { display: none; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .95rem var(--sans); cursor: pointer; }
.burger i { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }

@media (max-width: 1000px) {
    .burger { display: inline-flex; }
    .nav { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 24px 32px -26px rgb(0 0 0 / .55); }
    .nav.is-open { display: flex; }
    .nav a:not(.btn) { padding: 13px 14px; border-radius: 12px; }
    .nav .btn { margin: 14px 0 0; }
}

/* ---------- the cover ---------- */
.cover { position: relative; overflow: hidden; background: var(--cover-bg); color: var(--cover-ink); isolation: isolate; }
.cover::before, .cover::after { position: absolute; z-index: -1; border-radius: 50%; content: ''; pointer-events: none; }
.cover::before { top: -26%; right: -8%; width: min(680px, 70vw); aspect-ratio: 1; background: radial-gradient(circle at 35% 35%, rgb(255 255 255 / .16), transparent 64%); }
.cover::after { bottom: -32%; left: -10%; width: min(560px, 60vw); aspect-ratio: 1; background: radial-gradient(circle at 60% 40%, rgb(var(--secondary-rgb) / .22), transparent 66%); }
.theme-classic .cover { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.cover__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5.4fr); gap: clamp(28px, 5vw, 76px); align-items: center; padding-block: clamp(48px, 6vw, 92px) clamp(92px, 9vw, 128px); }
.cover__grid--text { grid-template-columns: minmax(0, 1fr); }
.cover__text { }
.cover h1 { max-width: 13ch; margin-bottom: .28em; color: inherit; font-size: clamp(2.6rem, 1.3rem + 5.2vw, 5.1rem); line-height: 1; letter-spacing: -.035em; }
.cover__grid--text h1 { max-width: 18ch; }
.nobreak { white-space: nowrap; }
.cover__lede { max-width: 34ch; margin-bottom: .6em; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.4; opacity: .96; }
.cover__motto { margin: 0 0 .5em; color: var(--cover-accent); font-size: 1.6rem; text-align: left; }
.cover__body { max-width: 52ch; color: var(--cover-soft); }
.cover__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 0; }
.cover__actions .btn { padding: 14px 28px; font-size: 1.05rem; }
.cover__plate { position: relative; margin: 0; padding: 0; color: var(--muted); }
.cover__plate::before { position: absolute; inset: 22px -18px -18px 22px; z-index: -1; border-radius: 30px; background: rgb(var(--secondary-rgb) / .9); content: ''; transform: rotate(2.5deg); }
.cover__plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 7px solid #fff; border-radius: 28px; box-shadow: 0 34px 60px -28px rgb(0 0 0 / .65); }
.cover__plate figcaption { position: absolute; right: 18px; bottom: 18px; left: 18px; padding: 8px 14px; border-radius: 12px; background: rgb(255 255 255 / .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); font-size: .875rem; font-weight: 600; }
.cover__plate--bare::before { content: none; }
.stamp { display: inline-block; max-width: 18ch; text-wrap: balance; padding: 10px 18px; border-radius: 999px; background: var(--secondary); color: var(--on-secondary); font: 800 1rem/1.15 var(--display); box-shadow: 0 12px 22px -12px rgb(0 0 0 / .6); }
.cover__plate .stamp { position: absolute; top: -18px; left: -14px; z-index: 2; transform: rotate(-4deg); }
.cover__text > .stamp { margin-bottom: 22px; }

/* the facts float over the bottom edge of the cover as one panel */
.facts { position: relative; z-index: 2; background: transparent; }
.cover + .facts, .hero + .facts { margin-top: -62px; }
.facts .wrap { }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; padding: 8px 0; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 28px 50px -30px rgb(var(--primary-rgb) / .55), 0 2px 6px rgb(0 0 0 / .04); }
.facts dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px 22px; text-align: center; }
.facts dl > div + div { border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .95rem; }
.facts dd { margin: 0; color: var(--link); font: 800 clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem)/1.15 var(--display); letter-spacing: -.02em; }
main > .facts { margin-block: 0; padding-block: 40px; }
.cover--text + .facts { margin-top: -50px; }

@media (max-width: 860px) {
    .cover__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 100px; }
    .cover__plate::before { inset: 16px -8px -12px 14px; }
    .cover__plate .stamp { left: 8px; }
    .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts dl > div + div { border-left: 0; }
    .facts dl > div:nth-child(even) { border-left: 1px solid var(--line); }
    .facts dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- the doors: where a parent or a student goes first ---------- */
.quick { padding-block: clamp(36px, 5vw, 56px) 0; }
.quick h2 { margin-bottom: .9em; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); text-align: center; }
.quick ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.quick a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 16px; align-items: center; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.quick a:hover { transform: translateY(-4px); border-color: rgb(var(--primary-rgb) / .4); box-shadow: 0 22px 34px -22px rgb(var(--primary-rgb) / .6); }
.quick .icon { grid-row: 1 / span 2; width: 52px; height: 52px; padding: 13px; border-radius: 16px; background: var(--tint-2); color: var(--link); }
.quick strong { align-self: end; font: 700 1.08rem/1.2 var(--display); }
.quick span { align-self: start; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.quick li:first-child a { border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--on-primary); }
.quick li:first-child .icon { background: rgb(255 255 255 / .18); color: inherit; }
.quick li:first-child span { color: inherit; opacity: .86; }

/* ---------- spreads ---------- */
.spread { padding-block: clamp(52px, 7vw, 104px); }
.spread__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 3.4vw, 46px); }
.spread__margin { max-width: 46rem; margin-inline: auto; text-align: center; }
.spread__margin h2 { margin-bottom: .35em; }
.spread__margin h2::before { display: block; width: 54px; height: 5px; margin: 0 auto 16px; border-radius: 99px; background: var(--secondary); content: ''; }
.spread__margin p { max-width: 52ch; margin-inline: auto; color: var(--muted); font-size: 1.1rem; }
.spread__more { margin-top: 1.2em; font-weight: 700; }
.spread__more a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 2px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.spread__more a::after { content: '\2192'; }
.spread__more a:hover { border-color: var(--primary); background: var(--tint); }
.spread--aside .spread__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.spread--aside .spread__margin { max-width: none; margin: 0; text-align: left; }
.spread--aside .spread__margin h2::before { margin-left: 0; }
.spread--aside .spread__margin p { margin-inline: 0; }
.spread--wash { background: var(--wash); }
.spread--deep { background: linear-gradient(160deg, var(--deep), var(--primary-dark)); color: rgb(255 255 255 / .88); }
.spread--deep h2, .spread--deep h3 { color: #fff; }
.spread--deep .spread__margin p { color: rgb(255 255 255 / .78); }
.spread--deep a { color: #fff; }
.spread--deep .spread__more a { border-color: rgb(255 255 255 / .4); color: #fff; }
.spread--deep .spread__more a:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

@media (max-width: 900px) {
    .spread--aside .spread__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- running text ---------- */
.prose { max-width: 68ch; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 0 0 1em; padding: 14px 20px; border-left: 4px solid var(--secondary); border-radius: 0 14px 14px 0; background: var(--wash); color: var(--ink); font: 600 1.15rem/1.5 var(--display); }
.prose table { width: 100%; margin-bottom: 1em; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); }
@media (min-width: 700px) { .prose th:first-child, .prose td:first-child { white-space: nowrap; } }
.prose--lead > p:first-child { color: var(--ink); font: 600 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.45 var(--display); }

.message { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 26px 46px -34px rgb(var(--primary-rgb) / .5); }
.message--picture { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.message figure { margin: 0; }
.message figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.message figcaption { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.signature { margin: 1.6em 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.signature strong { display: block; color: var(--ink); font: 700 1.25rem/1.2 var(--display); }
.signature span { color: var(--muted); font-size: .95rem; }

@media (max-width: 700px) { .message--picture { grid-template-columns: minmax(0, 1fr); } }

/* ---------- highlights ---------- */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.points li:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -28px rgb(var(--primary-rgb) / .6); }
.points .icon { width: 56px; height: 56px; padding: 14px; border-radius: 18px; background: var(--tint-2); color: var(--link); }
.points h3 { margin: 0 0 .3em; }
.points p { margin: 0; color: var(--muted); }

/* ---------- programs and courses ---------- */
.catalogue { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.catalogue li { display: flex; }
.catalogue a { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.catalogue a::before { width: 44px; height: 6px; border-radius: 99px; background: var(--secondary); content: ''; }
.catalogue a:hover { transform: translateY(-5px); border-color: rgb(var(--primary-rgb) / .4); box-shadow: 0 28px 40px -28px rgb(var(--primary-rgb) / .6); }
.catalogue__name { color: var(--ink); font: 700 1.3rem/1.2 var(--display); letter-spacing: -.015em; }
.catalogue__name .ur { display: block; margin-top: 2px; color: var(--muted); font-size: 1.05rem; font-weight: 400; text-align: left; }
.catalogue__text { flex: 1; color: var(--muted); }
.catalogue__meta { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.catalogue__meta:empty { display: none; }
.spread--wash .catalogue a:hover { background: #fff; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; margin: 0 0 1.6em; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 24px 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; counter-increment: step; }
.steps li::before { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 800 1.25rem/1 var(--display); content: counter(step); box-shadow: 0 10px 18px -10px rgb(var(--primary-rgb) / .8); }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- roll of honour ---------- */
.honours { margin: 0; padding: 0; border-top: 1px solid rgb(255 255 255 / .3); list-style: none; }
.honours li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgb(255 255 255 / .16); }
.honours__year { color: var(--secondary); font: 700 1.15rem/1.2 var(--display); }
.honours__name { color: #fff; font: 700 1.35rem/1.2 var(--display); }
.honours__detail { color: rgb(255 255 255 / .78); text-align: right; }
.spread:not(.spread--deep) .honours { border-top-color: var(--ink); }
.spread:not(.spread--deep) .honours li { border-bottom-color: var(--line); }
.spread:not(.spread--deep) .honours__year { color: var(--link); }
.spread:not(.spread--deep) .honours__name { color: var(--ink); }
.spread:not(.spread--deep) .honours__detail { color: var(--muted); }

@media (max-width: 560px) {
    .honours li { grid-template-columns: 4rem minmax(0, 1fr); }
    .honours__detail { grid-column: 2; text-align: left; }
}

/* ---------- teachers ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.people li { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.people li:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -28px rgb(var(--primary-rgb) / .6); }
.people img, .people__monogram { width: 100%; aspect-ratio: 4 / 4.4; margin-bottom: 0; border-radius: 0; }
.people img { object-fit: cover; }
.people__monogram { display: grid; place-items: center; background: linear-gradient(135deg, var(--tint-2), var(--tint)); color: var(--link); font: 800 2.8rem/1 var(--display); }
.people h3, .people p { padding-inline: 16px; }
.people h3 { margin: 14px 0 .15em; font-size: 1.1rem; }
.people p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.people .people__bio { margin-top: .5em; }
.people--plain { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.people--plain li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 0 16px; align-items: start; padding: 18px; }
.people--plain h3, .people--plain p { padding-inline: 0; }
.people--plain h3 { margin-top: 2px; }
.people__badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--tint-2); color: var(--link); font: 800 1.1rem/1 var(--display); }

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(22px, 3vw, 36px); align-items: stretch; }
.news--list { grid-template-columns: minmax(0, 1fr); }
.news__lead { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.news__lead img { width: 100%; aspect-ratio: 16 / 10; margin-bottom: 0; object-fit: cover; transition: transform .5s ease; }
.news__lead:hover img { transform: scale(1.03); }
.news__lead a:first-child { display: block; overflow: hidden; }
.news .news__lead time, .news .news__lead h3, .news .news__lead p { margin-inline: 24px; }
.news .news__lead time { margin-top: 18px; }
.news__lead h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.news .news__lead p { margin-bottom: 24px; }
.news time, .dated time { display: block; margin-bottom: 4px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.news h3 a, .dated h3 a { color: var(--ink); text-decoration: none; }
.news h3 a:hover, .dated h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.news p { margin: 0; color: var(--muted); }
.news__rest { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; align-content: start; }
.news__rest li { padding: 18px 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.news__rest li:hover { transform: translateX(4px); box-shadow: 0 20px 30px -24px rgb(var(--primary-rgb) / .55); }
.news__rest h3 { margin: 0; font-size: 1.12rem; }

@media (max-width: 760px) { .news { grid-template-columns: minmax(0, 1fr); } }

.dated { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.dated li { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.dated li > :not(img) { margin-inline: 20px; }
.dated img { width: 100%; aspect-ratio: 16 / 10; margin-bottom: 14px; object-fit: cover; }
.dated time { margin-top: 16px; }
.dated p { margin: 0 20px 20px; color: var(--muted); }

/* ---------- calendar ---------- */
.calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.calendar li { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 0 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.calendar li:hover { transform: translateY(-3px); box-shadow: 0 20px 30px -24px rgb(var(--primary-rgb) / .55); }
.leaf { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center; }
.leaf span { display: block; padding: 4px 0; background: var(--primary); color: var(--on-primary); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.leaf strong { display: block; padding: 5px 0 7px; color: var(--ink); font: 800 1.6rem/1 var(--display); }
.calendar h3 { margin: 0 0 .15em; font-size: 1.1rem; }
.calendar h3 a { color: var(--ink); text-decoration: none; }
.calendar h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.calendar p { margin: 0; color: var(--muted); font-size: .95rem; }
.calendar .is-past .leaf span { background: var(--muted); color: #fff; }

/* ---------- photographs ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 190px); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mosaic li:first-child { grid-row: span 2; grid-column: span 2; }
.mosaic a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 22px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic span { position: absolute; right: 0; bottom: 0; left: 0; padding: 34px 16px 12px; background: linear-gradient(transparent, rgb(0 0 0 / .66)); color: #fff; font-size: .92rem; font-weight: 600; }
.mosaic a:hover img { transform: scale(1.06); }
.albums { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.albums li { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.albums a { font-weight: 700; text-decoration: none; }
.albums small { color: var(--muted); font-size: .9rem; font-weight: 400; }
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.plates figure { margin: 0; }
.plates img { width: 100%; aspect-ratio: 3 / 2; border-radius: 22px; object-fit: cover; transition: transform .4s ease; }
.plates a { display: block; overflow: hidden; border-radius: 22px; color: inherit; text-decoration: none; }
.plates figcaption, .plates .plates__title { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.plates .plates__title { display: block; color: var(--ink); font: 700 1.2rem/1.2 var(--display); }
.plates a:hover img { transform: scale(1.04); }
.plates a:hover .plates__title { text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 640px) {
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 36vw; }
    .mosaic li:not(:first-child) span { padding: 22px 9px 7px; font-size: .8rem; line-height: 1.3; }
}

/* ---------- what parents say ---------- */
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.voices blockquote { position: relative; height: 100%; margin: 0; padding: 34px 26px 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.voices blockquote::before { position: absolute; top: 6px; left: 20px; color: var(--secondary); font: 800 4.4rem/1 var(--display); content: '\201C'; }
.voices blockquote p { position: relative; margin: 0 0 1em; color: var(--ink); font: 500 1.15rem/1.5 var(--sans); }
.voices footer { font-size: .95rem; }
.voices footer strong { display: block; color: var(--ink); }
.voices footer span { color: var(--muted); }

/* ---------- questions ---------- */
.faq { display: grid; gap: 12px; max-width: 52rem; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: box-shadow .18s ease; }
.faq details[open] { box-shadow: 0 20px 32px -26px rgb(var(--primary-rgb) / .6); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; color: var(--ink); font: 700 1.1rem/1.3 var(--display); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint-2); color: var(--link); font: 400 1.4rem/1 var(--sans); content: '+'; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { max-width: 64ch; padding: 0 22px 20px; color: var(--text); }

/* ---------- downloads ---------- */
.files { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.files li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; align-items: baseline; padding: 16px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s ease; }
.files li:hover { border-color: rgb(var(--primary-rgb) / .45); }
.files a { font-weight: 700; }
.files span { color: var(--muted); font-size: .9rem; }

/* ---------- visit and write ---------- */
.visit { margin: 1.4em 0 0; }
.visit dt { margin-top: 1em; color: var(--muted); font-size: .9rem; }
.visit dd { margin: 0; color: var(--ink); font-weight: 700; }
.visit dd a { color: inherit; }
.spread--deep .visit dt { color: rgb(255 255 255 / .7); }
.spread--deep .visit dd { color: #fff; }

/* ---------- call to action ---------- */
.band { padding-block: clamp(20px, 3vw, 40px); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px); border-radius: 32px; background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); color: var(--on-secondary); box-shadow: 0 34px 60px -36px rgb(0 0 0 / .55); max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.band h2 { margin: 0 0 .2em; color: inherit; }
.band .prose { max-width: 56ch; }
.band .prose p { margin: 0; }
.band .btn { flex: none; border-color: var(--deep); background: var(--deep); color: #fff; padding: 14px 30px; }
.band .btn:hover { border-color: #000; background: #000; }

/* ---------- parents and students: the portal panel ---------- */
.portal { padding-block: clamp(36px, 5vw, 64px) clamp(52px, 7vw, 96px); }
.portal__card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 60px); border-radius: 34px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--on-primary); box-shadow: 0 40px 70px -40px rgb(var(--primary-rgb) / .8); }
.portal__card h2 { margin-bottom: .3em; color: inherit; }
.portal__card p { max-width: 46ch; opacity: .92; }
.portal__card .cover__actions { margin-top: 1.4em; }
.portal__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.portal__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; align-items: center; padding: 14px 16px; border: 1px solid rgb(255 255 255 / .22); border-radius: 18px; background: rgb(255 255 255 / .1); }
.portal__list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgb(255 255 255 / .18); }
.portal__list strong { display: block; font: 700 1.05rem/1.2 var(--display); }
.portal__list span { font-size: .92rem; opacity: .86; }

@media (max-width: 860px) { .portal__card { grid-template-columns: minmax(0, 1fr); } }

/* ---------- forms ---------- */
form.stack { display: grid; gap: 14px; max-width: 640px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: #fff; }
form.stack label { display: grid; gap: 6px; color: var(--ink); font-size: .95rem; font-weight: 700; }
form.stack input, form.stack select, form.stack textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--field); border-radius: 12px; background: #fff; color: var(--text); font: 400 1rem/1.4 var(--sans); }
form.stack input:focus, form.stack select:focus, form.stack textarea:focus { outline: 3px solid var(--secondary); outline-offset: 0; border-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice, .errors { padding: 14px 18px; border-left: 4px solid; border-radius: 0 14px 14px 0; }
.notice { border-color: #157347; background: #eef8f2; color: #0f4d31; }
.errors { border-color: #b42318; background: #fdf1ef; color: #8a1c13; }
table.result { min-width: min(100%, 360px); border: 1px solid var(--line); border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
table.result td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
table.result tr:last-child td { border-bottom: 0; }
table.result td:first-child { color: var(--muted); }

/* ---------- inner pages ---------- */
.pagehead { position: relative; overflow: hidden; padding-block: clamp(36px, 5vw, 68px); background: linear-gradient(135deg, var(--tint-2), var(--wash)); border-bottom: 1px solid var(--line); }
.pagehead::after { position: absolute; top: -40%; right: -6%; width: 420px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(var(--secondary-rgb) / .25), transparent 66%); content: ''; pointer-events: none; }
.pagehead p { margin: 0; }
.pagehead .crumb { margin-bottom: 10px; font-size: .9rem; }
.pagehead h1 { position: relative; margin: 0; max-width: 22ch; }
.pagehead .ur { margin: .2em 0 0; color: var(--muted); font-size: 1.5rem; }
.pagehead__intro { max-width: 60ch; margin-top: 12px !important; color: var(--muted); font-size: 1.15rem; }
.page { padding-block: clamp(36px, 5vw, 64px); }
.page > h1:first-child { margin-bottom: .7em; }
.page > h2 { margin-top: 1.8em; font-size: 1.6rem; }
.page > :last-child { margin-bottom: 0; }
.article { max-width: 72ch; }
.article > img { width: 100%; margin-bottom: 1.4em; border-radius: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { padding: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.pager span { color: var(--muted); }

/* ---------- colophon ---------- */
.colophon { position: relative; background: linear-gradient(180deg, var(--deep), var(--primary-dark)); color: rgb(255 255 255 / .78); font-size: .97rem; }
.colophon::before { display: block; height: 6px; background: linear-gradient(90deg, var(--secondary), rgb(var(--secondary-rgb) / .3)); content: ''; }
.colophon .wrap { padding-block: clamp(44px, 6vw, 72px) 28px; }
.colophon__cols { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: 32px 36px; }
.colophon h2 { margin-bottom: .7em; color: #fff; font-size: 1.05rem; letter-spacing: 0; }
.colophon__name { color: #fff; font: 800 1.6rem/1.1 var(--display); }
.colophon a { color: #fff; text-underline-offset: .2em; }
.colophon ul { margin: 0; padding: 0; list-style: none; }
.colophon li { margin-bottom: .5em; }
.colophon__rule { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .16); font-size: .875rem; }

@media (max-width: 860px) { .colophon__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .colophon__cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .colophon__cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the three shipped treatments (R19): the same rows, a different cover and radius ---------- */
/* classic: the bold cover above. modern: a light, airy cover. minimal: white and sharp. */
.theme-modern .cover { background: linear-gradient(160deg, var(--wash), var(--tint-2)); }
.theme-modern .cover::before { background: radial-gradient(circle at 35% 35%, rgb(var(--primary-rgb) / .18), transparent 64%); }
.theme-modern .cover__plate::before { background: rgb(var(--primary-rgb) / .22); }
.theme-modern .stamp { max-width: none; }
.theme-modern .cover .btn--line { border-color: var(--primary); color: var(--ink); }
.theme-modern .cover .btn--line:hover { background: var(--tint); }
.theme-minimal { --radius: 0px; }
.theme-minimal .cover { background: #fff; border-bottom: 1px solid var(--line); }
.theme-minimal .cover::before, .theme-minimal .cover::after { content: none; }
.theme-minimal .cover__plate::before { content: none; }
.theme-minimal .cover__plate img, .theme-minimal .message, .theme-minimal .message figure img, .theme-minimal .catalogue a, .theme-minimal .points li, .theme-minimal .steps li, .theme-minimal .people li, .theme-minimal .news__lead, .theme-minimal .news__rest li, .theme-minimal .calendar li, .theme-minimal .voices blockquote, .theme-minimal .faq details, .theme-minimal .files li, .theme-minimal .quick a, .theme-minimal .dated li, .theme-minimal .albums li, .theme-minimal .facts dl { border-radius: 4px; }
.theme-minimal .cover .btn--line { border-color: var(--primary); color: var(--ink); }
.theme-minimal .spread--wash, .theme-minimal .pagehead { background: #fff; }
.theme-minimal .pagehead::after { content: none; }
.theme-minimal .btn, .theme-minimal .nav a:not(.btn), .theme-minimal .stamp, .theme-minimal .spread__more a { border-radius: 4px; }
.theme-minimal .band .wrap, .theme-minimal .portal__card { border-radius: 8px; }

/* ---------- gentle motion: sections rise as they scroll in, where the browser supports it ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
    .spread__grid, .quick ul, .portal__card, .band .wrap, .message { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .strip, .masthead, .band, .colophon, .demonote, .quick, .portal { display: none; } }
