/* schoolweb.page look "Window" (round 4, 2026-11-12). Loaded after classic.css.
   The school's photo stands in an arched window, set in a wall of the school's
   colour. The wall is the accent mixed into warm stone; the window stands on
   the wall's lower edge, as on a sill. With no photo, and on inner pages, the
   window is the school's deep colour and holds the name or the title.
   One family (Instrument Sans), one shape; everything else is plain type,
   hairlines and white. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url("../../fonts/InstrumentSans.eb0d011dc89c.woff2") format("woff2"); }
/* Letters the fonts lack (Tshivenda's d, l, n, t with a circumflex below, and the
   combining marks). The browser fetches this file only for a page that uses them. */
@font-face { font-family: "Rare Latin"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../../fonts/NotoSansRare.746d07864173.woff2") format("woff2");
  unicode-range: U+0149, U+0300-036F, U+1E00-1EFF; }

:root {
  --serif: "Instrument Sans", "Rare Latin", "Instrument Sans fallback", system-ui, sans-serif;
  --sans: "Instrument Sans", "Rare Latin", "Instrument Sans fallback", system-ui, sans-serif;
  --ink: #1A1D24; --muted: #545A66; --line: #E4E5E9;
  /* the wall: the school's hue at one fixed lightness, so every colour gives the
     same quiet tone; a muted colour (a brown, a teal) gives a quieter wall, so a
     brown school gets stone, not cream. Text on it: ink, muted, and the
     link darkened a step, since --link is only promised AA up to --accent-tint */
  /* without relative colour: the theme's own pale tint and the plain hairline */
  --wall: var(--accent-tint);
  /* bands below the first screen take the same wall: one tint per page */
  --wall-band: var(--wall);
  --wall-line: var(--line);
  --wall-link: var(--link);
  /* the window: an arch as wide as the photo, this tall at its crown */
  --crown: 42vw;
  --prose: 31em;
}
@supports (color: color-mix(in srgb, red, red)) { :root { --wall-link: color-mix(in oklab, var(--link) 82%, #000); } }
/* a custom property takes any value, so the relative colours live behind @supports;
   an engine without them keeps the plain values above */
@supports (color: oklch(from red l c h)) {
  :root {
    --wall: oklch(from var(--accent) .94 min(calc(c * c * 1.3), .032) h);
    --wall-line: oklch(from var(--accent) .86 min(calc(c * .3), .05) h);
  }
}
body { font-size: 1.0625rem; line-height: 1.55; }
h1, h2, h3 { font-weight: 600; font-stretch: 86%; letter-spacing: -.012em; line-height: 1.08; }

/* every control's edge is the link tone: 4.5:1 on white, so over 3:1 on the wall
   for any school colour (a yellow school's pale fill needs it) */
.btn { border-radius: 10px; font-weight: 600; }
.btn.main { box-shadow: inset 0 0 0 1.5px var(--link); }
.btn.alt { background: #fff; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }

/* ---------- header ---------- */
.top { border-bottom: 0; min-height: 64px; }
.top .name { font-weight: 600; font-stretch: 86%; font-size: 1.125rem; letter-spacing: -.005em; }
.top .name.long { font-size: .9375rem; }
.top .menu { font-weight: 500; }
.nav > nav { box-shadow: 0 18px 30px rgb(20 25 40 / .12); border-top: 1px solid var(--line); }
.nav > nav a { font-weight: 500; }
.nav > nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--link); }

/* ---------- the wall ---------- */
.opening, main > .page-head, .block.visit.close { --link: var(--wall-link); }
.opening { background: var(--wall); }
.opening .next { border-top-color: var(--wall-line); }
.opening .tile { background: #fff; }
/* on the wall the status is white too, so the first screen keeps one colour family */
.opening .status { background: #fff; }
/* bands below take the lighter wall, so the page keeps one colour family */
.block.band, .pair.band-wide, .block.band-wide { --link: var(--wall-link); }
.block.band { background: var(--wall-band); }
/* a one-page site: the wall runs down to the footer */
main:has(> .opening):not(:has(> .block, > .pair)) { background: var(--wall); }
/* home closes on the wall too */
.block.visit.close { background: var(--wall); }
.block.visit.close .rows a { border-color: var(--wall-line); }

/* ---------- the window ---------- */
.hero { position: static; display: block; min-height: 0; overflow: visible; padding: 10px var(--pad) 0; background: none; }
.hero img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 50% 50% 0 0 / var(--crown) var(--crown) 0 0; background: var(--band); }
.hero-text { padding: 13px 0 0; background: none; color: var(--ink); }
.hero h1 { color: var(--ink); text-shadow: none; font-size: 2.375rem; font-weight: 600; font-stretch: 80%; line-height: .98; letter-spacing: -.018em; }
.hero h1.long { font-size: 1.875rem; line-height: 1.02; }
.hero .town { margin-top: 6px; font-size: 1.0625rem; font-weight: 500; color: var(--muted); }
.hero .town .ic { color: var(--link); }
.hero.tall { min-height: 0; }
.hero.tall img { aspect-ratio: 5 / 4; }
/* the arch is lower when the photo's subject sits in a top corner, so the
   subject stays in the window; it never goes flat */
.hero img:is(.fy-0, .fy-1, .fy-2, .fy-3):is(.fx-0, .fx-1, .fx-2, .fx-8, .fx-9, .fx-10) { --crown: 21vw; }

/* no photo: the window is the school's deep colour, and holds the name */
.hero.bare { min-height: 0; }
.hero.bare .hero-text { display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--crown) * .8) 22px 22px; background: var(--deep); color: var(--on-deep);
  border-radius: 50% 50% 0 0 / var(--crown) var(--crown) 0 0; }
.hero.bare h1, .hero.bare .town, .hero.bare .town .ic { color: var(--on-deep); }

/* ---------- the first screen ---------- */
.first { padding: 14px var(--pad) 22px; }
.status { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px;
  min-height: 48px; padding: 11px 14px 11px 34px; border-radius: 8px; }
.status::before { position: absolute; left: 14px; top: 20px; }
.status span, .first .status span { margin-left: 0; font-weight: 500; }
.lines { margin-top: 12px; line-height: 1.45; }
/* two buttons of one width while both labels fit, each as wide as its label when the room is
   tight; on a very narrow screen they stack */
.acts { margin-top: 14px; }
.acts:not(.one) { grid-template-columns: repeat(2, minmax(max-content, 1fr)); }
@media (max-width: 339px) { .acts:not(.one) { grid-template-columns: minmax(0, 1fr); } }
.share { font-weight: 500; }
.next { padding: 16px 0 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-top: 14px; }

/* the date: the window again, small */
.tile { border-radius: 50% 50% 6px 6px / 20px 20px 6px 6px; padding-top: 10px; min-height: 4.125rem; background: var(--accent-tint); }
.tile small { font-weight: 600; }
.tile b { font-weight: 600; font-stretch: 85%; font-size: 1.75rem; }
.date h3, .date h2 { font-weight: 600; }
/* a title that wraps keeps its date beside its first line */
.date { align-items: start; }

/* ---------- blocks ---------- */
.block { padding: 44px var(--pad); }
.block h2 { font-size: 1.875rem; font-stretch: 84%; }
.lede { font-family: var(--sans); font-size: 1.1875rem; line-height: 1.55; }
.more { font-weight: 600; }
.head2 a { font-weight: 600; }

.facts { border-top: 1px solid var(--ink); }
.facts b { font-weight: 600; font-stretch: 86%; font-size: 1.375rem; }

/* photos: big, square-cornered to each other, the set rounded once */
.photos { gap: 6px; border-radius: 6px; }
.photos:has(> img:only-child) { grid-template-columns: 1fr; }
.photos:has(> img:only-child) .wide { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 2; }
.photos:has(> img:nth-child(4):last-child) .wide { grid-row: span 3; aspect-ratio: auto; height: 100%; }
.photos:has(> img:nth-child(5):last-child) { grid-template-columns: 1fr 1fr; }
.photos:has(> img:nth-child(5):last-child) .wide { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
.gallery { gap: 22px 8px; }
.gallery img { border-radius: 4px; }
.gallery figcaption { color: var(--ink); font-size: .9375rem; }

.letter { border-radius: 8px; }
.letter span { font-weight: 600; }

.table, .list, .items { border-top: 1px solid var(--ink); }
.items li:first-child { border-top: 0; }
.table dt { font-weight: 400; }
.table dd { font-weight: 600; font-stretch: 86%; }
.table.plain dd { font-stretch: 100%; }

/* how to apply: the number alone, in the school's colour */
.steps li::before { box-shadow: none; background: none; font-weight: 600; font-stretch: 80%; font-size: 1.625rem; place-items: start; line-height: 1.1; }
.items .mark { border-radius: 50% 50% 6px 6px / 18px 18px 6px 6px; }
.byline b { font-weight: 600; }
.welcome { border-left: 0; padding-left: 0; }
.welcome p { font-family: var(--sans); font-size: 1.125rem; }

/* ---------- inner pages: the head is the wall, the title is the window ---------- */
main > .page-head { padding: 18px var(--pad) 0; background: var(--wall); border-bottom: 0; }
.page-head h1 { padding: calc(var(--crown) * .8) 22px 22px; background: var(--deep); color: var(--on-deep);
  border-radius: 50% 50% 0 0 / var(--crown) var(--crown) 0 0;
  font-size: 2.5rem; font-weight: 600; font-stretch: 80%; line-height: 1; letter-spacing: -.018em; }
.page-head + .block, .page-head + .first { padding-top: 32px; }

/* ---------- footer ---------- */
/* white with a hairline, so the page ends quietly */
.foot { --deep: #fff; --on-deep: var(--ink); border-top: 1px solid var(--line); }
.foot .small a, .foot details summary { color: var(--link); }
.foot .who b { font-weight: 600; font-stretch: 86%; font-size: 1.375rem; }
/* the pages: a small plain list under the name, so it never reads as a second header */
.foot { display: block; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 10px; border-top: 0; }
.foot nav a { min-height: 44px; border-bottom: 0; font-weight: 400; font-size: .9375rem; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot nav a[aria-current="page"] { text-decoration: none; }

/* ---------- phone ---------- */
@media (max-width: 959px) {
  /* home: the name is under the window, so a header with a logo keeps only the logo */
  /* hidden to the eye, read aloud: clipped by clip-path alone, at 1 px, so
     nothing overflows and the name is never cut */
  body:has(> main > .opening) .top:has(.logo) .name { position: absolute; left: 0; top: 0; width: 1px; height: 1px; font-size: 1px; line-height: 1; clip-path: inset(50%); white-space: nowrap; }
  body:has(> main > .opening) .top .home { min-width: 44px; }
  /* Coming up and the newsletter share one band; the block after it is white */
  .pair { background: var(--wall-band); --link: var(--wall-link); }
  .pair > .block, .pair + .block.band { background: none; }
  body:has(> main > .opening) .top { min-height: 60px; }
  body:has(> main > .opening) .top .logo { max-width: 70vw; }
  /* inner pages: a lower arch over the title, so the page's content starts in the first screen */
  main > .page-head { --crown: 28vw; }
  /* three or five campuses would leave one alone on the last row: they stack instead */
  .campuses:has(> .campus:nth-child(3)):has(> .campus:last-child:nth-child(odd)) { grid-template-columns: minmax(0, 1fr); }
  .pair > .block:last-child { padding-top: 0; }
  /* a date on the wall band is white, as in the opening */
  .pair .tile, .block.band .tile { background: #fff; }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  :root { --crown: 16vw; }
  .top { min-height: 80px; }
  .top .name { font-size: 1.3125rem; }
  .top .name.long { font-size: 1.125rem; }
  .top-links { gap: 2px; }
  .top-links a { font-weight: 500; color: var(--muted); }
  .top-links a:hover { color: var(--ink); }
  .top-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
  .top-links a[aria-current="page"]::after { left: 50%; right: auto; width: 6px; height: 6px; margin-left: -3px; bottom: 2px; border-radius: 50%; background: var(--link); }

  /* home: the opening is the wall, full width. The name and the facts on the
     left; the window on the right, standing on the wall's lower edge. The hero
     is a subgrid, so its photo and its name take their own cells */
  .opening { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) 72px minmax(0, 1.12fr) var(--side); grid-template-rows: auto 1fr; }
  .opening > .hero { grid-column: 1 / -1; grid-row: 1 / span 2; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; padding: 0; }
  /* without subgrid the hero steps aside, so its photo and name take the same
     cells of the opening's own grid */
  @supports not (grid-template-columns: subgrid) {
    .opening > .hero { display: contents; }
  }
  .hero img { grid-column: 4; grid-row: 1 / span 2; align-self: end; aspect-ratio: 5 / 6; margin-top: 40px; }
  .hero-text { grid-column: 2; grid-row: 1; align-self: end; padding: 64px 0 0; }
  .opening > .first { grid-column: 2; grid-row: 2; display: block; padding: 28px 0 56px; border: 0; }
  /* second#DES-61: the window's crown is half its own width, a round arch like the inner
     pages' title window; 5:6, so half the width is 5/12 of the height */
  .hero img { border-radius: 50% 50% 0 0 / 41.667% 41.667% 0 0; }
  /* second#DES-62: the name and the facts stand in the middle of the wall beside the window,
     so a short first screen leaves no empty wall under the buttons */
  .opening:has(> .hero:not(.bare)) { grid-template-rows: 1fr auto auto 1fr; }
  .opening > .hero:not(.bare) { grid-row: 1 / -1; }
  .opening > .hero:not(.bare) img { grid-row: 1 / -1; }
  .opening > .hero:not(.bare) .hero-text { grid-row: 2; }
  .opening:has(> .hero:not(.bare)) > .first { grid-row: 3; }
  .hero h1 { font-size: 4.5rem; line-height: .95; }
  .hero h1.long { font-size: 3.25rem; }
  .hero .town { font-size: 1.1875rem; margin-top: 10px; }
  .first .acts { margin-top: 20px; }
  .acts, .block > .acts { max-width: 460px; }
  .status { width: fit-content; max-width: 100%; }
  .first .share { justify-content: flex-start; }
  .first .status span { flex-basis: auto; margin-left: 0; }

  /* no photo: the window holds the name, on the left; the facts beside it */
  .opening:has(> .hero.bare) { grid-template-rows: auto; }
  .opening > .hero.bare { grid-row: 1; }
  .hero.bare .hero-text { grid-column: 2; grid-row: 1; align-self: end; margin-top: 40px; min-height: 0;
    padding: calc(var(--crown) * .78) 48px 44px; }
  .hero.bare h1.long { font-size: 3rem; }
  .opening:has(> .hero.bare) > .first { grid-column: 4; grid-row: 1; align-self: end; padding: 40px 0 44px; }
  /* a one-page site: the opening fills the page down to the footer, so the window
     still stands on the wall's lower edge */
  main:has(> .opening:only-child) { display: flex; flex-direction: column; }
  main > .opening:only-child { flex: 1 0 auto; }

  .block { padding: 72px var(--side); }
  .block h2 { font-size: 2.375rem; }
  /* Welcome keeps its facts beside the text, however few, so the right half is never empty */
  .block.intro.intro:has(> .facts) { display: grid; }
  .block.intro.intro:has(> .facts) > * { max-width: none; }
  /* the facts start level with the heading, so both columns end close together */
  .block.intro.intro:has(> .facts) > .facts { grid-row: 1 / span 3; margin-top: 0; }
  /* the newsletter's top meets the dates' first rule */
  .pair > .block:last-child { align-self: start; padding-top: 55px; }
  /* Home's photos stay large: one wide, five around it */
  .photos { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .photos img { aspect-ratio: 3 / 2; }
  .photos .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
  .photos.two img { aspect-ratio: 3 / 2; }
  .photos:has(> img:nth-child(4):last-child) .wide { grid-row: span 3; }
  .photos:has(> img:nth-child(5):last-child) { grid-template-columns: repeat(4, 1fr); }
  .photos:has(> img:nth-child(5):last-child) .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
  .gallery { gap: 32px 12px; }
  .first { padding: 32px var(--side) 40px; }
  .block.band { background: none; }
  .block.band-wide, .pair.band-wide { background: var(--wall-band); }
  .band-wide .tile { background: #fff; }
  .hero.tall img { aspect-ratio: 5 / 6; }
  /* Contact: the rows get the wider column, so an email stays on one line */
  .first.touch { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 48px; }

  /* inner pages: the wall is a column on the left, the title window stands in it
     and stays in view; the content takes the right. The last row takes what a
     short page leaves, so the wall runs down to the footer (second#DES-07) */
  main:has(> .page-head) { --side: max(var(--pad), calc((100% - 1120px) / 2));
    display: grid; grid-template-columns: var(--side) 380px 64px minmax(0, 1fr) var(--side);
    grid-template-rows: repeat(39, auto) 1fr; }
  main:has(> .page-head) > * { grid-column: 4; }
  main > .page-head { grid-column: 1 / 3; grid-row: 1 / -1; display: flex; flex-direction: column; align-items: flex-end;
    padding: 56px 40px 56px 0; background: var(--wall); }
  .page-head h1 { position: sticky; top: 32px; box-sizing: border-box; width: 340px; padding: 176px 36px 36px;
    border-radius: 170px 170px 0 0; font-size: 3rem; }
  main:has(> .page-head) > .first, main:has(> .page-head) > .block { padding: 56px 0; border: 0; background: none; }
  main:has(> .page-head) > .first { display: block; }
  main:has(> .page-head) > .first > .rows { margin-top: 24px; }
  /* second#DES-25: a date's rule runs the column's width, like every other rule here */
  main:has(> .page-head) > .block > :is(.rows, .next) { max-width: none; }
  main:has(> .page-head) > .block:last-child { padding-bottom: 80px; }
  main:has(> .page-head) .block:has(> .gallery, > .list) > :not(.gallery, .list) { margin-inline: 0; }
  /* second#DES-54: across the gallery, so it ends on its edge and not mid-photo */
  main:has(> .page-head) .more-photos > summary { max-width: none; margin-inline: 0; }
  /* the column beside the title holds two campuses a row: an odd number stacks */
  main:has(> .page-head) .campuses:has(> .campus:nth-child(3)):has(> .campus:last-child:nth-child(odd)) { grid-template-columns: minmax(0, 1fr); }
  /* beside the title the column is narrow: two photos a row keep them large */
  main:has(> .page-head) .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head + .block, .page-head + .first { padding-top: 56px; }
  .hero img:is(.fy-0, .fy-1, .fy-2, .fy-3):is(.fx-0, .fx-1, .fx-2, .fx-8, .fx-9, .fx-10) { --crown: 12vw;
    border-radius: 50% 50% 0 0 / var(--crown) var(--crown) 0 0; }
}
@media (min-width: 1400px) { :root { --crown: 13vw; } }

/* design-director#1: on a short phone screen the photo takes what the first screen leaves,
   so Call and WhatsApp stay on it (audit-public-css) */
@media (max-width: 599px) {
  :is(.hero, .hero.tall) img { max-height: max(120px, 100svh - 438px); }
}
