/* schoolweb.page look "Studio" (round 4). Loaded after classic.css.
   Colour fields and the photo meet at hard, square edges: the name on the
   school's own colour, the photo beside it (under it on a phone), the facts on
   white. One family, Plus Jakarta Sans, tight and heavy for display. */
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../../fonts/PlusJakartaSans.a671f66bfbb7.woff2") format("woff2"); }
@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: "Jakarta", "Rare Latin", "Jakarta fallback", system-ui, sans-serif;
  --sans: "Jakarta", "Rare Latin", "Jakarta fallback", system-ui, sans-serif;
  /* the dark sections: the school's deep tone pressed towards black */
  --night: #0B0D11;
  --ink: #15171C;
  --line: #E3E4E8;
  --field-line: rgb(255 255 255 / .26);
  /* the colour field is the school's own colour; --on-accent passes AA on it.
     The main button keeps a 2 px --deep edge: 7:1 on white for any colour */
  --field: var(--accent);
  --on-field: var(--on-accent);
  /* the tinted tile: 11% of the colour keeps --link at 4.5:1 for any school colour */
  --tile: var(--accent-tint);
  --prose: 32em;
}
@supports (color: color-mix(in srgb, red, red)) { :root { --tile: color-mix(in srgb, var(--accent) 11%, #fff); } }
@supports (color: color-mix(in srgb, red, red)) { :root { --field-line: color-mix(in srgb, #fff 26%, transparent); } }
@supports (color: color-mix(in srgb, red, red)) { :root { --night: color-mix(in srgb, var(--deep) 28%, #0B0D11); } }
body { font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
/* tight display tracking closes word spaces, so the spaces open up again */
h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; word-spacing: .1em; line-height: 1; }
/* second#DES-53: no word left alone on a heading's last line */
h1, h2, h3, .date h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

/* ---- header ---- */
.top { min-height: 64px; border-bottom: 1px solid var(--line); }
.top .name { font-weight: 750; letter-spacing: -.025em; font-size: 1.125rem; }
.top .name.long { font-size: .9375rem; font-weight: 700; }
.top .menu { font-weight: 650; }
.nav > summary { border-radius: 0; }
.nav > nav { box-shadow: none; border-bottom: 1px solid var(--ink); }
.nav > nav a { font-weight: 650; font-size: 1.25rem; letter-spacing: -.02em; }
.nav > nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 4px 0 0 var(--deep); padding-left: 14px; }

/* ---- the hero: name on the deep field, the photo meeting it at a hard edge ---- */
.hero { min-height: 0; overflow: visible; background: none; flex-direction: column; justify-content: flex-start; }
.hero img { position: static; order: 2; width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: 340px; object-fit: cover; }
.hero-text { order: 1; padding: 18px var(--pad) 14px; background: var(--field); color: var(--on-field); }
.hero h1 { color: var(--on-field); text-shadow: none; font-size: 2.75rem; font-weight: 800; line-height: .94; letter-spacing: -.045em; }
.hero h1.long { font-size: 1.875rem; line-height: 1; letter-spacing: -.035em; }
.hero .town { margin-top: 12px; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.hero.bare, .hero.tall { min-height: 0; }
.hero.bare .hero-text { padding-top: 34px; padding-bottom: 30px; background: var(--field); }
.hero.bare h1, .hero.bare .hero-text { color: var(--on-field); }
.hero.tall img { height: 70vw; aspect-ratio: auto; max-height: 420px; }
/* a tablet: the photo keeps more of its height than a thin strip across the screen */
@media (min-width: 600px) and (max-width: 959px) { .hero img { max-height: 440px; } .hero.tall img { max-height: 520px; } }
.hero-text :focus-visible { outline-color: var(--on-field); }

/* ---- the first screen's facts, on white ---- */
.first { padding: 16px var(--pad) 10px; }
.status { border-radius: 0; min-height: 52px; padding: 10px 14px; font-weight: 700; display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; }
.status::before { border-radius: 0; width: 8px; height: 8px; margin-top: .45em; align-self: start; }
.status span, .first .status span { grid-column: 2; margin-left: 0; justify-self: start; font-weight: 500; }
.lines { margin-top: 12px; font-size: 1rem; line-height: 1.45; }
.acts { margin-top: 14px; gap: 8px; }
.btn { border-radius: 0; min-height: 54px; font-weight: 700; letter-spacing: -.01em; padding: 0 14px; white-space: nowrap; transition: background-color .15s, color .15s; }
/* two equal buttons, unless a label needs more: then it takes its own width, on one line */
.acts:not(.one) { grid-template-columns: repeat(2, minmax(max-content, 1fr)); }
/* too narrow for both side by side: one above the other */
@media (max-width: 339px) { .acts:not(.one) { grid-template-columns: minmax(0, 1fr); } }
.btn.main { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 2px var(--deep); }
.btn.main:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn.alt { background: #fff; color: var(--deep); box-shadow: inset 0 0 0 2px var(--deep); }
.btn.alt:hover { background: var(--deep); color: #fff; }
.share { font-weight: 650; justify-content: flex-start; color: var(--ink); }
.share .ic { color: var(--link); }
/* in Visit us the link takes the block's own text colour, also on the school colour */
.visit .share, .visit .share .ic { color: inherit; }

/* dates: a square tile */
.tile { border-radius: 0; background: var(--accent); color: var(--on-accent); }
.tile small { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; }
.tile b { font-weight: 800; letter-spacing: -.04em; }
.date h3, .date h2 { font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.next { border-radius: 0; border: 0; border-top: 1px solid var(--ink); padding: 16px 0 6px; margin-top: 16px; }
.next .cal { font-weight: 650; }

/* ---- blocks ---- */
.block { padding: 48px var(--pad); }
.block h2 { font-size: 2.125rem; line-height: .98; letter-spacing: -.035em; }
.block h2 + * { margin-top: 18px; }
.lede { font-size: 1.1875rem; line-height: 1.5; font-weight: 500; letter-spacing: -.012em; }
.more { font-weight: 700; color: var(--ink); text-decoration-color: var(--deep); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.head2 a { font-weight: 700; }

.facts { border-top: 2px solid var(--ink); margin-top: 22px; }
.facts > div { min-width: 0; }
.facts b { font-size: clamp(1.25rem, 7vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.facts span { margin-top: 6px; }

/* dates and the newsletter: the tint band */
.pair, .block#coming-up, .block#newsletter { background: var(--tile); }
.pair .block { background: none; }
.pair > .block + .block { padding-top: 0; }
#coming-up .dates li { border-color: var(--line); border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.letter { border-radius: 0; border: 0; background: #fff; }
.letter svg { border-radius: 0; box-shadow: 0 0 0 1px var(--line); }
.letter span { color: var(--link); font-weight: 700; }
.block .letter h2, #newsletter .letter h2 { color: var(--ink); font-size: 1.375rem; letter-spacing: -.03em; }

.photos { border-radius: 0; gap: 3px; }

.visit address { font-size: 1.1875rem; font-weight: 500; letter-spacing: -.01em; }
.visit .map { font-weight: 650; }
.rows a { font-weight: 650; }
.rows a:first-child { border-top-color: var(--ink); }

/* ---- inner pages: the title on the deep field ---- */
.page-head { padding: 52px var(--pad) 28px; background: var(--field); border: 0; }
.page-head h1 { color: var(--on-field); font-size: 3rem; line-height: .94; letter-spacing: -.04em; }
.table { border-top: 2px solid var(--ink); }
.table dd { font-weight: 800; letter-spacing: -.02em; }
.table dd small { letter-spacing: 0; word-spacing: normal; }
/* the hours read as one value */
#hours .table dd { white-space: nowrap; }
/* phone: a role sits under the name, so neither wraps */
@media (max-width: 519px) {
  #team .table div { flex-direction: column; align-items: flex-start; gap: 2px; }
  #team .table dd { text-align: left; }
}
.table.plain dd { font-weight: 500; letter-spacing: -.005em; }
.list { border-top: 2px solid var(--ink); }
.steps li::before { border-radius: 0; background: var(--accent); color: var(--on-accent); box-shadow: none; font-weight: 800; }
.items .mark { border-radius: 0; background: var(--accent); color: var(--on-accent); }
.items h3 { font-weight: 750; letter-spacing: -.025em; }
.byline b { font-weight: 800; letter-spacing: -.03em; }
.welcome { border-left: 4px solid var(--deep); }
.welcome p { font-family: var(--sans); font-weight: 500; }
.gallery img { border-radius: 0; }
.doc .cover { border-radius: 0; }
.block.band, .pair.band { background: var(--band); }

/* inner pages: full-width bands alternate white and tint; the closing block is white */
main:has(> .page-head) > .block { background: #fff; }
main:has(> .page-head) > .block:nth-child(even of :where(.block:not(#photos, .close))) { background: var(--tile); }
/* the applications status under the title stays on the title's field */
.page-head:has(+ .first:not(.touch)) { padding-bottom: 20px; }
main:has(> .page-head) > .first:not(.touch) { padding: 0 var(--pad) 28px; background: var(--field); }
main:has(> .page-head) > .first:not(.touch) :focus-visible { outline-color: var(--on-field); }
/* a block that holds only the status follows Ask the office, so the heading leads: one white band */
main:has(> .page-head):has(> .block > .status:only-child) { display: flex; flex-direction: column; }
main:has(> .page-head) > .block.block:has(> .status:only-child):has(+ .close) { order: 1; background: #fff; padding-top: 0; border-top: 0; }
main:has(> .page-head) > .block.block:has(> .status:only-child) + .close { padding-bottom: 20px; }


/* one solid band in the middle of each page: Coming up on Home, the first wide band inside */
.pair, .block#coming-up, .block#newsletter,
:is(main:has(> .page-head) > .block.block:nth-child(1 of .block.band-wide:not(.close, .visit, :has(> .gallery, > .status:only-child)))) {
  --on: var(--on-field); --on-deep: var(--on-field);
  background: var(--field); color: var(--on-field);
}
:is(.pair, #coming-up, #newsletter, main:has(> .page-head) > .block:nth-child(1 of .block.band-wide:not(.close, .visit, :has(> .gallery, > .status:only-child))))
  :is(h2, h3, p, li, a:not(.btn, .letter), .cal, .sub, .welcome p, .byline span, .byline b, dt, dd, dd small, .doc small) { color: var(--on-field); }
:is(.pair, #coming-up, #newsletter, main:has(> .page-head) > .block:nth-child(1 of .block.band-wide:not(.close, .visit, :has(> .gallery, > .status:only-child))))
  :is(.tile, .items .mark) { background: var(--on-field); color: var(--field); }
:is(.pair, #coming-up, #newsletter, main:has(> .page-head) > .block:nth-child(1 of .block.band-wide:not(.close, .visit, :has(> .gallery, > .status:only-child)))) .steps li::before { background: var(--on-field); color: var(--field); }
:is(.pair, #coming-up, #newsletter, main:has(> .page-head) > .block:nth-child(1 of .block.band-wide:not(.close, .visit, :has(> .gallery, > .status:only-child))))
  :is(.tile b, .tile small) { color: var(--field); }
:is(.pair, #coming-up, #newsletter, main:has(> .page-head) > .block:nth-child(1 of .block.band-wide:not(.close, .visit, :has(> .gallery, > .status:only-child))))
  :is(.list, .table, .dates li, .steps li, .items li, .list li, .table div) { border-color: var(--field-line); }
:is(.pair, #coming-up, #newsletter, main:has(> .page-head) > .block:nth-child(1 of .block.band-wide:not(.close, .visit, :has(> .gallery, > .status:only-child))))
  :is(.list, .table) { border-top-color: var(--on-field); }
:is(.pair, #coming-up, #newsletter, main:has(> .page-head) > .block:nth-child(1 of .block.band-wide:not(.close, .visit, :has(> .gallery, > .status:only-child)))) .welcome { border-left-color: var(--on-field); }
:is(.pair, #coming-up, #newsletter, main:has(> .page-head) > .block:nth-child(1 of .block.band-wide:not(.close, .visit, :has(> .gallery, > .status:only-child)))) :focus-visible { outline-color: var(--on-field); }
#newsletter.block .letter :is(h2, p) { color: var(--ink); }
#newsletter.block .letter span { color: var(--link); }

/* Photos on Home stay white between the two colour bands */
main:has(> .opening) .block:has(> .photos) { background: #fff; }

/* Visit us on Home: the school's colour at every width */
main:has(> .opening) .block.close { background: var(--field); color: var(--on-field); }
main:has(> .opening) .block.close :is(h2, address, .map, .hours, h3, .grades, .share) { color: var(--on-field); }
main:has(> .opening) .block.close :focus-visible { outline-color: var(--on-field); }
main:has(> .opening) .block.close .btn.main { background: var(--on-field); color: var(--field); box-shadow: none; }
main:has(> .opening) .block.close .btn.alt { background: none; color: var(--on-field); box-shadow: inset 0 0 0 2px var(--on-field); }
main:has(> .opening) .block.close .rows a { color: var(--on-field); border-color: var(--field-line); }
main:has(> .opening) .block.close .rows a :is(.ic, small) { color: var(--on-field); }
main:has(> .opening) .block.close .rows a:first-child { border-top-color: var(--on-field); }

/* phone: with several campuses the buttons come straight under Visit us, not after every address */
@media (max-width: 959px) {
  .visit:has(> .campuses) { display: flex; flex-direction: column; }
  .visit:has(> .campuses) > h2 { order: -2; }
  .visit:has(> .campuses) > .acts { order: -1; }
  .visit:has(> .campuses) > .campuses { margin-top: 36px; }
}

/* ---- footer: night ---- */
.foot { background: var(--night); color: #fff; --on-deep: #fff; padding-top: 44px; }
.foot .who b { font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; word-spacing: .08em; line-height: 1.05; }
/* the footer menu is a quiet list under the name, not a second header */
.foot nav { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 8px; border: 0; }
.foot nav a { border: 0; font-size: .9375rem; font-weight: 400; color: #C9CBD1; }
.foot nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot nav a[aria-current="page"] { text-decoration: none; }
/* phone: two even columns, so no link is left alone on a row of its own */
@media (max-width: 599px) { .foot nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 32px; } }
/* five links: three and two, so Contact never stands alone on a third row (audit-public-css) */
@media (min-width: 300px) and (max-width: 599px) { .foot nav:has(> a:nth-child(5):last-child) { grid-template-columns: repeat(3, minmax(0, max-content)); column-gap: 24px; } }
.foot .small { color: #C9CBD1; }

/* ---- desktop: the split ---- */
@media (min-width: 960px) {
  .top { min-height: 76px; }
  .top .name { font-size: 1.3125rem; }
  .top .name.long { font-size: 1.0625rem; }
  .top-links { gap: 2px; }
  .top-links a { font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); }
  .top-links a:hover { color: var(--deep); }
  /* Visit us: the buttons keep their own height beside the address */
  .visit > .acts { align-self: start; }
  .top-links a[aria-current="page"]::after { left: 12px; right: 12px; bottom: -16px; height: 3px; border-radius: 0; background: var(--edge); }

  /* the first screen is a framed split on the white page: the photo left, the
     name field over the facts right, inside the content grid. .opening holds the
     grid; .hero joins it as a subgrid, so .first sits in the cell under the name */
  :root { --x: max(32px, calc((100vw - 1120px) / 2)); }
  .opening { display: grid; grid-template-columns: var(--x) minmax(0, 7fr) minmax(0, 5fr) var(--x);
    grid-template-rows: auto 1fr; padding-top: 40px; }
  .opening > .hero { grid-column: 2 / 4; grid-row: 1 / 3; display: grid;
    grid-template-columns: subgrid; grid-template-rows: subgrid; }
  .hero img, .hero.tall img { grid-column: 1; grid-row: 1 / 3; width: 100%; height: 0; min-height: 100%; max-height: none; }
  .hero-text { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 56px 44px 28px 48px; container-type: inline-size; }
  /* cross-browser#8: each size in container units follows a vw size for an engine without them */
  .hero h1 { font-size: min(3.4rem, 4.25vw); font-size: min(5.25rem, 14.5cqi); line-height: .9; letter-spacing: -.045em; }
  .hero h1.long { font-size: 3rem; line-height: .96; letter-spacing: -.045em; }
  .hero .town { font-size: 1.125rem; margin-top: 18px; }

  .opening > .first { grid-column: 3; grid-row: 2; display: block; position: relative; padding: 4px 44px 44px 48px; border: 0; }
  /* beside a photo the colour block runs the photo's full height, the facts on it */
  .opening > .hero:not(.bare) ~ .first { background: var(--field); color: var(--on-field); --on: var(--on-field); --on-deep: var(--on-field); }
  .opening > .hero:not(.bare) ~ .first :is(.lines, .lines p, .lines a, .share, .share .ic) { color: var(--on-field); }
  .opening > .hero:not(.bare) ~ .first :focus-visible { outline-color: var(--on-field); }
  /* no fade: these colours switch at this width, and a fade would show the white page's buttons */
  .opening > .hero:not(.bare) ~ .first .btn { transition: none; }
  .opening > .hero:not(.bare) ~ .first .btn.main { background: var(--on-field); color: var(--field); box-shadow: none; }
  .opening > .hero:not(.bare) ~ .first .btn.main:hover { background: color-mix(in srgb, var(--on-field) 86%, var(--field)); color: var(--field); }
  .opening > .hero:not(.bare) ~ .first .btn.alt { background: none; color: var(--on-field); box-shadow: inset 0 0 0 2px var(--on-field); }
  .opening > .hero:not(.bare) ~ .first .btn.alt:hover { background: var(--on-field); color: var(--field); }
  .opening > .hero:not(.bare) ~ .first .next { color: var(--ink); }
  .opening:has(> .hero:not(.bare)) > .first:has(> .next) { padding-bottom: 124px; }
  main:has(> .opening):not(:has(> .block, > .pair)) { padding-bottom: 40px; }
  .opening + * { margin-top: 24px; }
  .opening > .first .acts { margin-top: 18px; }
  .opening > .first .share { justify-content: flex-start; margin-top: 6px; }
  .first .status span { flex-basis: auto; margin-left: 0; }
  /* the next date: a white square on the seam, over the photo's lower corner */
  .opening > .hero:not(.bare) ~ .first .next { position: absolute; right: 100%; bottom: 0; width: 360px; margin: 0;
    padding: 22px 26px 14px; background: #fff; border: 0; }

  /* no photo: the name field left, the facts right */
  .opening:has(> .hero.bare) { grid-template-columns: var(--x) minmax(0, 1fr) minmax(0, 1fr) var(--x); grid-template-rows: auto; }
  .opening > .hero.bare { grid-row: 1; }
  .hero.bare .hero-text { grid-column: 1; padding: 72px 48px 56px; }
  .opening:has(> .hero.bare) > .first { grid-row: 1; align-self: center; padding: 32px 0 32px 56px; }
  /* without subgrid the hero steps aside: the photo and the name sit in the opening's own grid */
  @supports not (grid-template-columns: subgrid) {
    .opening > .hero { display: contents; }
    .opening > .hero > img { grid-column: 2; }
    .opening > .hero > .hero-text { grid-column: 3; }
    .opening > .hero.bare > .hero-text { grid-column: 2; grid-row: 1; }
  }

  .block { padding: 88px var(--side); }
  main:has(> .page-head) > .first { padding: 40px var(--side) 0; border: 0; }
  main:has(> .page-head) > .first.touch { padding-bottom: 48px; }
  .block h2 { font-size: 3.25rem; }
  .block.intro { column-gap: 96px; }
  /* Welcome: the text left, the facts right in one row of equal columns under one rule */
  .block.intro.intro:has(.facts) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .block.intro:has(.facts) > :not(.facts) { grid-column: 1; max-width: none; }
  .block.intro .facts { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0;
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 28px; }
  .block.intro .facts > div { border: 0; padding: 18px 0 0; grid-column: auto; }
  .facts b { font-size: 2rem; }
  .facts:has(> :nth-child(3)) b { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }

  .pair { padding: 88px var(--side); column-gap: 96px; }
  .pair > .block { background: none; }
  /* the newsletter card starts on the first event's rule */
  .pair > .block:last-child { padding-top: 69px; }
  .block.band, .pair.band, .block.band-wide, .pair.band-wide { background: var(--band); }
  .pair, .pair.band-wide { background: var(--field); }
  .pair > .block.block { background: none; }

  /* a Welcome without facts: the heading left, the text right */
  .block.intro.intro:not(:has(.facts)) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 96px; }
  .block.intro:not(:has(.facts)) > h2 { grid-column: 1; grid-row: 1 / span 2; }
  .block.intro:not(:has(.facts)) > :not(h2) { grid-column: 2; margin-top: 0; }
  .block.intro:not(:has(.facts)) > .more { margin-top: 16px; }

  /* Visit us with rows only: the rows beside the heading, level with it */
  main:has(> .opening) .block.close:not(:has(> address)):not(:has(> .acts)) .rows { grid-column: 2; grid-row: 1; align-self: center; margin-top: 0; }

  /* photos: the heading and its link on one row, the mosaic across the band */
  .block:has(> .photos) .photos { margin-top: 32px; }
  .photos { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(200px, 19vw, 240px); }
  .photos img { height: 100%; aspect-ratio: auto; }
  .photos .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .photos.two { grid-auto-rows: clamp(320px, 32vw, 440px); }

  /* Visit us: one deep field, the address left, the buttons and rows right. The shorter
     side leaves field below it, never an empty white half */
  main:has(> .opening) .block.close { padding-top: 88px; padding-bottom: 88px; column-gap: 112px; }
  main:has(> .opening) .block.close .btn.main:hover { background: color-mix(in srgb, var(--on-field) 86%, var(--field)); }
  main:has(> .opening) .block.close .btn.alt:hover { background: var(--on-field); color: var(--field); }
  /* the buttons start level with the heading, also beside campuses */
  main:has(> .opening) .block.close > .acts { align-self: center; }
  /* several campuses: a row across the band, under the buttons and the hours */
  main:has(> .opening) .block.close > .campuses { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 32px 48px; margin: 56px 0 0; }
  main:has(> .opening) .block.close:has(> .campuses) > .hours { grid-column: 1; grid-row: 2; margin-top: 18px; }
  main:has(> .opening) .block.close:has(> .campuses) > .acts { grid-row: 1; }
  main:has(> .opening) .block.close:has(> .campuses) > .rows { grid-row: 2; }
  main:has(> .opening) .block.close:has(> .campuses) > .share { grid-column: 1; grid-row: 4; margin-top: 32px; }

  /* inner pages: each section is a full-width band, white or tint, with its heading
     on the left and its content on the right. A short section leaves white margin
     beside its heading, never an empty tile. Contact puts its buttons beside the title. */
  main:has(> .page-head) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); container-type: normal; }
  main:has(> .page-head) > * { grid-column: 1 / -1; }
  .page-head { padding: 104px var(--x) 48px; container-type: inline-size; }
  .page-head h1 { font-size: min(5.5rem, 4.4vw); font-size: min(5.5rem, 15cqi); line-height: .9; letter-spacing: -.045em; }
  /* Contact: the field ends on the sections' heading column, the buttons start on their content column */
  main:has(> .page-head + .first.touch) { grid-template-columns: var(--x) minmax(0, 5fr) 96px minmax(0, 7fr) var(--x); }
  main:has(> .page-head + .first.touch) > .page-head { grid-column: 1 / 3; padding-right: 48px; }
  main:has(> .page-head) > .first.touch { grid-column: 4 / -1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px;
    padding: 48px var(--x) 48px 0; border: 0; }
  main:has(> .page-head) > .first.touch > * { margin: 0; width: 100%; max-width: none; }
  /* a page with nothing under its title: the field meets the page's photo at a hard edge, as on Home.
     The field ends on the sections' heading column */
  main > .page-head:has(> .head-photo):not(:has(+ .first)) { display: grid; padding: 0;
    grid-template-columns: var(--x) minmax(0, 5fr) 96px minmax(0, 7fr) var(--x); grid-template-rows: minmax(400px, auto); }
  .page-head:has(> .head-photo):not(:has(+ .first)) > .head-photo { display: block; grid-column: 3 / -1; grid-row: 1;
    width: 100%; height: 0; min-height: 100%; object-fit: cover; }
  .page-head:has(> .head-photo):not(:has(+ .first)) h1 { grid-column: 2; grid-row: 1; align-self: end; padding: 104px 48px 48px 0;
    font-size: min(5.5rem, 6.4vw); font-size: min(5.5rem, 6.4cqi); }
  /* the status under the title, on the title's field */
  .page-head:has(+ .first:not(.touch)) { padding-bottom: 28px; }
  main:has(> .page-head) > .first:not(.touch) { display: block; padding: 0 var(--x) 56px; }
  main:has(> .page-head) > .first:not(.touch) > .status { max-width: 460px; margin: 0; }

  main:has(> .page-head) > .block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 96px; align-items: start;
    padding: 88px var(--x); }
  main:has(> .page-head) > .block > * { grid-column: 2; margin-inline: 0; }
  main:has(> .page-head) > .block > h2 { grid-column: 1; grid-row: 1 / span 8; margin: 0; font-size: 2.75rem; }
  main:has(> .page-head) > .block > h2 + * { margin-top: 0; }
  /* a section without a heading (About's opening text, the hours) reads from the left edge */
  main:has(> .page-head) > .block:not(:has(> h2)) > * { grid-column: 2; max-width: 62ch; }
  main:has(> .page-head) > .block:not(:has(> h2)) > .items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); column-gap: 56px; max-width: none; }
  /* lists, tables, dates and buttons all end on the content column's right edge */
  main:has(> .page-head) > .block > :is(.steps, .next, .acts, .rows, .table, .list, .docs, .items, .campuses) { max-width: none; }
  main:has(> .page-head) > .block:not(:has(> h2)) > .items li { border-bottom: 1px solid var(--line); margin-top: -1px; }
  main:has(> .page-head) #care .items h3 { font-size: 1.5rem; }
  /* the gallery: the heading above, the photos across the band */
  main:has(> .page-head) > .block:has(> .gallery) > * { grid-column: 1 / -1; grid-row: auto; }
  main:has(> .page-head) > .block:has(> .gallery) > h2 { margin-bottom: 28px; }
  main:has(> .page-head) .block > *,
  main:has(> .page-head) .block:has(> .gallery, > .list) > :not(.gallery, .list, .more-photos) { 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-left: 0; }
  /* the closing block: the heading and line left, the buttons and rows right */
  main:has(> .page-head) > .block.close { border-top: 1px solid var(--line); }
  main:has(> .page-head) > .block.close > :is(h2, p) { grid-column: 1; grid-row: auto; }
  main:has(> .page-head) > .block.close > p { margin-top: 18px; }
  main:has(> .page-head) > .block.close > .acts { grid-column: 2; grid-row: 1; margin-top: 0; max-width: none; }
  main:has(> .page-head) > .block.close > .rows { grid-column: 2; grid-row: 2 / span 3; margin-top: 16px; max-width: none; color: var(--ink); }
  /* About's status, now inside the closing block, opens the right column above the buttons */
  main:has(> .page-head) > .block.close > .status { grid-column: 2; grid-row: 1; margin: 0 0 16px; max-width: none; }
  main:has(> .page-head) > .block.close:has(> .status) > .acts { grid-row: 2; }
  main:has(> .page-head) > .block.close:has(> .status) > .rows { grid-row: 3 / span 3; }
  /* About's status opens the closing block, above its buttons */
  main:has(> .page-head):has(> .block > .status:only-child) { display: grid; }
  main:has(> .page-head) > .block.block:has(> .status:only-child):has(+ .close) { padding-top: 0; padding-bottom: 88px; }
  main:has(> .page-head) > .block.block:has(> .status:only-child):has(+ .close) > .status { grid-column: 2; max-width: none; }
  main:has(> .page-head) > .block.block:has(> .status:only-child) + .close { padding-bottom: 20px; }
  .foot { display: block; padding: 56px var(--side) 40px; }
  .foot .who b { font-size: 1.75rem; }
  .foot nav { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* 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: min(340px, max(120px, 100svh - 436px)); }
}
