/* Public interior pages use the homepage's campus editorial palette. */
.editorial-site {
  --edit-burgundy: #a30e2d;
  --edit-burgundy-deep: #820b24;
  --edit-cream: #f5ece2;
  --edit-teal: #163f49;
  --edit-black: #111;
  --edit-paper: #fffaf3;
  --edit-line: #b9ada2;
  background: var(--edit-paper);
  color: var(--edit-black);
  font-family: Jakarta, Arial, sans-serif;
  --red: var(--edit-burgundy);
  --ink: var(--edit-black);
  --muted: #514842;
  --soft: var(--edit-cream);
  --line: var(--edit-line);
  --radius: 14px;
  caret-color: var(--edit-burgundy);
  scrollbar-color: var(--edit-burgundy) var(--edit-cream);
}
.editorial-site ::selection { background: var(--edit-teal); color: #fff; }
.editorial-site h1,
.editorial-site h2 { font-family: Arial, Helvetica, sans-serif; font-weight: 400; line-height: 1.06; letter-spacing: -.045em; text-transform: uppercase; text-wrap: initial; }
.editorial-site h3 { font-family: Arial, Helvetica, sans-serif; font-weight: 400; line-height: 1.15; letter-spacing: -.025em; }
.editorial-site h1 { font-size: clamp(2.8rem, 5.5vw, 5.2rem); }
.editorial-site h2 { font-size: clamp(1.9rem, 3.2vw, 3.5rem); }
.editorial-site p { max-width: 70ch; }
.editorial-site .wrap { width: min(1320px, calc(100% - 96px)); }
.editorial-site :focus-visible { outline: 3px solid #086271; outline-offset: 4px; }
.editorial-site .skip { color: var(--edit-black); }
.editorial-site .contact-strip { padding: 8px max(32px, calc((100vw - 1320px)/2)); background: var(--edit-burgundy-deep); color: #fff; font-size: 11px; letter-spacing: .02em; }
.editorial-site .site-header { position: relative; z-index: 20; border: 0; background: var(--edit-burgundy); color: #fff; }
.editorial-site .site-header-inner { width: min(1440px, calc(100% - 64px)); min-height: 88px; }
.editorial-site .site-header .brand { gap: 10px; padding: 7px 12px; border-radius: 12px; background: var(--edit-cream); color: var(--edit-burgundy-deep); font-family: Playfair, Georgia, serif; font-size: 24px; }
.editorial-site .site-header .school-logo { width: 60px; height: 60px; }
.editorial-site .site-header .brand>span>span { font-size: 11px; letter-spacing: .02em; }
.editorial-site .site-header nav { gap: clamp(12px, 1.8vw, 25px); font-size: 11px; text-transform: uppercase; letter-spacing: .025em; }
.editorial-site .site-header nav>a:not(.button),
.editorial-site .site-header .nav-more summary { color: #fff; }
.editorial-site .site-header nav>a[aria-current] { color: #fff; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.editorial-site .site-header nav .button { min-height: 44px; border: 1px solid #ffffffa6; border-radius: 30px; background: transparent; color: #fff; white-space: nowrap; }
.editorial-site .site-header nav .button:hover { background: var(--edit-cream); color: var(--edit-burgundy-deep); }
.editorial-site .site-header .menu-toggle { border-color: #ffffff80; border-radius: 50%; background: transparent; color: #fff; }
.editorial-site .nav-more>div { z-index: 5; background: var(--edit-cream); color: var(--edit-black); border-color: #d6c8b9; border-radius: 10px; box-shadow: 0 12px 28px #21140e26; }
.editorial-site .nav-more a:hover { background: #e8d7c6; }
.editorial-site main { background: var(--edit-paper); }
.editorial-site .editorial-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); width: min(1540px, calc(100% - 48px)); min-height: 440px; margin: 20px auto 0; overflow: hidden; border-radius: 14px; background: var(--edit-burgundy); color: #fff; }
.editorial-site .editorial-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(38px, 6vw, 88px); }
.editorial-site .editorial-kicker { margin: 0 0 25px; color: #f1d8c8; font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.editorial-site .editorial-hero h1 { max-width: 12ch; margin: 0 0 24px; color: #fff; }
.editorial-site .editorial-lead { max-width: 42ch; margin: 0; color: #fff2eb; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.7; }
.editorial-site .editorial-back { margin: 0 0 36px; color: #fff; font-size: 12px; }
.editorial-site .editorial-back svg { width: 16px; }
.editorial-site .editorial-hero-detail .editorial-kicker { margin-bottom: 18px; }
.editorial-site .editorial-hero-detail h1 { font-size: clamp(2.5rem, 4.8vw, 4.5rem); }
.editorial-site .editorial-photo { position: relative; min-width: 0; min-height: 100%; margin: 0; overflow: hidden; background: var(--edit-teal); }
.editorial-site .editorial-photo img { display: block; width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.editorial-site .editorial-photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 26px 24px 18px; background: linear-gradient(transparent, #111c); color: #fff; font-size: 11px; line-height: 1.5; }
.editorial-site .page-content { padding-block: 76px 100px; }
.editorial-site .intro-body { max-width: 70ch; margin: 0 0 52px; color: #514842; font-size: 17px; line-height: 1.85; }
.editorial-site .editorial-content { padding-top: 62px; }
.editorial-site .about-editorial { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(35px, 7vw, 100px); align-items: center; }
.editorial-site .about-editorial h2 { max-width: 11ch; margin-bottom: 25px; color: var(--edit-burgundy); }
.editorial-site .about-editorial p { color: #514842; font-size: 16px; line-height: 1.8; }
.editorial-site .about-photo { aspect-ratio: 1.5; border-radius: 14px; }
.editorial-site .about-photo img { min-height: 0; }
.editorial-site .button { min-height: 50px; border-radius: 30px; background: var(--edit-burgundy); color: #fff; font-family: Jakarta, Arial, sans-serif; }
.editorial-site .button:hover { background: var(--edit-burgundy-deep); box-shadow: 0 8px 20px #5d102022; }
.editorial-site .button.outline { border-color: var(--edit-teal); background: transparent; color: var(--edit-teal); }
.editorial-site .button.outline:hover { background: var(--edit-teal); color: #fff; }
.editorial-site .programme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.editorial-site .programme-card { overflow: hidden; min-height: 0; padding: 0 27px 27px; border: 1px solid #c8b8aa; border-radius: 14px; background: var(--edit-paper); }
.editorial-site .programme-card:nth-child(2),
.editorial-site .programme-card:nth-child(3) { background: var(--edit-paper); }
.editorial-site .programme-card>.programme-card-photo { width: calc(100% + 54px); height: 235px; margin: 0 -27px 24px; object-fit: cover; }
.editorial-site .programme-card>.programme-card-photo img { min-height: 0; height: 235px; object-fit: cover; }
.editorial-site .programme-top { margin-bottom: 25px; color: #514842; font-size: 11px; }
.editorial-site .programme-top svg { color: var(--edit-teal); }
.editorial-site .programme-card h2 { margin-bottom: 14px; color: var(--edit-black); font-size: clamp(25px, 2.3vw, 34px); }
.editorial-site .programme-card p { color: #514842; font-size: 14px; line-height: 1.75; }
.editorial-site .programme-card a { color: var(--edit-burgundy); }
.editorial-site .programme-card a:hover { color: var(--edit-teal); }
.editorial-site .badge { border-radius: 30px; background: #e8d8c9; color: #392d27; }
.editorial-site .admissions-grid { align-items: start; gap: clamp(35px, 6vw, 88px); }
.editorial-site .steps article { gap: 19px; margin-bottom: 0; padding: 24px 0; border-bottom: 1px solid #c9b9aa; }
.editorial-site .steps article:first-child { padding-top: 0; }
.editorial-site .steps article>span { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: var(--edit-teal); color: #fff; }
.editorial-site .steps h2 { margin: 2px 0 8px; color: var(--edit-black); font-size: 18px; letter-spacing: 0; text-transform: none; }
.editorial-site .steps p { margin: 0; color: #514842; font-size: 14px; }
.editorial-site .enquiry-form { padding: clamp(25px, 4vw, 44px); border: 1px solid #c7b6a7; border-radius: 14px; background: var(--edit-cream); }
.editorial-site .enquiry-form h2 { font-size: clamp(25px, 2.6vw, 34px); }
.editorial-site .enquiry-form>p { color: #514842; }
.editorial-site input, .editorial-site select, .editorial-site textarea { border-color: #8e7f73; border-radius: 8px; }
.editorial-site .editorial-list>article { align-items: center; gap: clamp(25px, 5vw, 72px); padding: 34px 0; border-top-color: #c8b8aa; }
.editorial-site .editorial-icon { width: min(31%, 330px); flex: 0 0 min(31%, 330px); padding: 0; color: var(--edit-teal); }
.editorial-site .editorial-icon:empty { display: none; }
.editorial-site .editorial-icon>svg { display: none; }
.editorial-site .editorial-image { display: block; width: 100%; aspect-ratio: 1.42; object-fit: cover; border-radius: 14px; }
.editorial-site .editorial-list-photo { aspect-ratio: 1.42; border-radius: 14px; }
.editorial-site .editorial-list-photo img { min-height: 0; aspect-ratio: 1.42; object-fit: cover; }
.editorial-site .editorial-list h2 { margin: 14px 0; color: var(--edit-black); font-size: clamp(25px, 2.5vw, 36px); }
.editorial-site .editorial-list article>div:last-child p { color: #514842; font-size: 15px; line-height: 1.8; }
.editorial-site .editorial-list .muted { color: #514842; }
.editorial-site .tabs { gap: 9px; margin-bottom: 36px; }
.editorial-site .tabs button { min-height: 44px; padding: 10px 21px; border: 1px solid var(--edit-teal); border-radius: 30px; background: transparent; color: var(--edit-teal); }
.editorial-site .tabs button.active { background: var(--edit-teal); color: #fff; }
.editorial-site .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 26px; }
.editorial-site .gallery-grid figure { overflow: hidden; border: 1px solid #c8b8aa; border-radius: 14px; background: var(--edit-cream); }
.editorial-site .gallery-grid img { height: clamp(240px, 34vw, 440px); object-fit: cover; border-radius: 0; }
.editorial-site .gallery-grid figcaption { padding: 22px 25px 25px; }
.editorial-site .gallery-grid h2 { margin-bottom: 12px; font-size: clamp(24px, 2.2vw, 32px); }
.editorial-site .gallery-grid p { color: #514842; font-size: 14px; line-height: 1.7; }
.editorial-site .contact-grid { gap: 22px; }
.editorial-site .contact-grid article { padding: clamp(28px, 4vw, 48px); border: 1px solid #c7b6a7; border-radius: 14px; background: var(--edit-cream); }
.editorial-site .contact-grid article:first-child { background: var(--edit-teal); color: #fff; }
.editorial-site .contact-grid article:first-child .muted { color: #e5efed; }
.editorial-site .contact-grid h2, .editorial-site .portal-grid h2 { margin-bottom: 20px; font-size: clamp(26px, 2.6vw, 36px); }
.editorial-site .contact-grid p, .editorial-site .portal-grid p { line-height: 1.8; }
.editorial-site .contact-grid article:first-child .button.outline { border-color: #fff; color: #fff; }
.editorial-site .contact-grid article:first-child .button.outline:hover { background: #fff; color: var(--edit-teal); }
.editorial-site .portal-grid { align-items: center; gap: 32px; }
.editorial-site .demo-portal { padding: clamp(28px, 4vw, 50px); border-radius: 14px; background: var(--edit-teal); }
.editorial-site .demo-portal>div:first-child { align-items: center; margin-bottom: 38px; }
.editorial-site .demo-portal .badge { background: #fff; color: var(--edit-teal); }
.editorial-site .demo-portal p { color: #eff5f3; }
.editorial-site .role-links { gap: 10px; }
.editorial-site .role-links a { min-height: 46px; padding: 12px; border: 1px solid #ffffff80; border-radius: 30px; }
.editorial-site .role-links a:hover { background: var(--edit-cream); color: var(--edit-teal); }
.editorial-site .legacy-portal { padding: 12px; }
.editorial-site .legacy-portal .text-link { display: flex; margin-top: 22px; color: var(--edit-burgundy); }
.editorial-site .detail-content { padding-top: 58px; }
.editorial-site .detail-copy { max-width: 790px; margin-inline: auto; }
.editorial-site .detail-copy>p { margin-bottom: 30px; color: #332a25; font-size: 18px; line-height: 1.95; }
.editorial-site .detail-copy .source-link { display: flex; margin: 24px 0; }
.editorial-site .math-learning { margin-top: 76px; }
.editorial-site .math-learning>h2 { max-width: 15ch; margin-bottom: 18px; color: var(--edit-burgundy); }
.editorial-site .math-learning-intro { max-width: 62ch; margin-bottom: 34px; color: #514842; line-height: 1.8; }
.editorial-site .math-sequence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px); }
.editorial-site .math-sequence article { display: flex; align-items: flex-start; gap: 20px; padding: 24px 0; border-top: 1px solid #c8b8aa; }
.editorial-site .math-sequence h3 { margin: 0 0 8px; color: var(--edit-teal); font-size: 22px; text-transform: uppercase; }
.editorial-site .math-sequence p { margin: 0; color: #514842; font-size: 14px; line-height: 1.75; }
.editorial-site .math-next-step { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 42px; padding: clamp(26px, 4vw, 44px); border-radius: 14px; background: var(--edit-teal); color: #fff; }
.editorial-site .math-next-step h3 { max-width: 20ch; margin: 0 0 10px; font-size: 22px; text-transform: uppercase; }
.editorial-site .math-next-step p { margin: 0; color: #eff5f3; font-size: 14px; line-height: 1.7; }
.editorial-site .math-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.editorial-site .math-actions .button { white-space: nowrap; }
.editorial-site .math-actions .button.outline { border-color: #fff; color: #fff; }
.editorial-site .math-actions .button.outline:hover { background: #fff; color: var(--edit-teal); }
.editorial-site .site-footer { padding-top: 64px; background: var(--edit-black); color: #fff; }
.editorial-site .site-footer .brand { color: #fff; }
.editorial-site .site-footer h2 { color: #fff; font-size: 14px; letter-spacing: 0; text-transform: uppercase; }
.editorial-site .site-footer .footer-top>div>p { color: #f2e6dc; }
.editorial-site .site-footer .footer-top>div>a:not(.brand) { color: #f2e6dc; }
.editorial-site .site-footer .footer-top small { color: #e4d8cf; }
.editorial-site .site-footer .footer-note { color: #f2e6dc; }
.editorial-site .site-footer .footer-bottom { border-color: #ffffff55; color: #f2e6dc; }
.editorial-site .preview-bar { z-index: 100; background: var(--edit-cream); color: var(--edit-black); }
.editorial-site .preview-bar a { color: var(--edit-burgundy); }
.editorial-site .contact-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; min-height: 38px; padding-block: 7px; background: #820b24; color: #fff; }
.editorial-site .contact-strip>span:last-child { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.editorial-site .contact-strip a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.editorial-site .contact-hero h1 { width: 100%; max-width: 100%; overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.editorial-site .contact-grid address { margin: 0 0 24px; font-size: 16px; font-style: normal; line-height: 1.9; overflow-wrap: anywhere; }
.editorial-site .contact-grid address a { text-decoration: underline; text-underline-offset: 3px; }
.editorial-site a { text-decoration-thickness: 1px; }
.editorial-site .text-link:hover { text-decoration-thickness: 2px; }
.editorial-site .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Preserve the full school photograph, including faces and portrait framing. */
.editorial-site .editorial-photo { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 18px; background: #e5ddd3; }
.editorial-site .editorial-photo img { display: block; width: 100%; height: auto; min-height: 0; max-height: 620px; object-fit: contain; }
.editorial-site .editorial-photo.photo-portrait { padding: 10px; background: #e8ded3; }
.editorial-site .editorial-photo.photo-portrait img { width: auto; max-width: 100%; max-height: 660px; }
.editorial-site .editorial-photo.photo-christmas img { max-height: 620px; }
.editorial-site .programme-card>.programme-card-photo { width: calc(100% + 54px); height: auto; max-height: 320px; margin: 0 -27px 24px; object-fit: contain; background: #e8ded3; }
.editorial-site .editorial-icon { align-self: stretch; }
.editorial-site .editorial-image { width: 100%; height: auto; max-height: 360px; aspect-ratio: auto; object-fit: contain; background: #e8ded3; }
.editorial-site .editorial-list-photo { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px; background: #e8ded3; }
.editorial-site .editorial-list-photo img { width: auto; max-width: 100%; height: auto; min-height: 0; max-height: 390px; aspect-ratio: auto; object-fit: contain; }
.editorial-site .gallery-grid img { display: block; width: 100%; height: auto; max-height: 620px; aspect-ratio: auto; object-fit: contain; background: #e8ded3; }
.editorial-site .detail-photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 48px; }
.editorial-site .detail-photo-gallery .editorial-photo { min-height: 230px; padding: 10px; }
.editorial-site .detail-photo-gallery .editorial-photo img { max-height: 480px; }
@media (max-width: 700px) {
  .editorial-site .contact-strip { justify-content: flex-start; gap: 5px 14px; font-size: 10px; }
  .editorial-site .contact-strip>span:last-child { justify-content: flex-start; gap: 4px 13px; }
  .editorial-site .contact-hero h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .editorial-site .editorial-photo { padding: 12px; }
  .editorial-site .editorial-photo img { max-height: 560px; }
  .editorial-site .editorial-photo.photo-portrait img { width: auto; max-height: 600px; }
  .editorial-site .programme-card>.programme-card-photo { width: calc(100% + 44px); height: auto; max-height: 300px; margin: 0 -22px 21px; }
  .editorial-site .editorial-image { max-height: 420px; }
  .editorial-site .editorial-list-photo img { max-height: 480px; }
  .editorial-site .gallery-grid img { height: auto; max-height: 600px; aspect-ratio: auto; }
  .editorial-site .detail-photo-gallery { grid-template-columns: 1fr; }
}
.editorial-site .editorial-hero.contact-hero h1 { width: 100%; max-width: 100%; overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
/* A light print-like finish for public school photographs only. */
.editorial-site .editorial-photo img,
.editorial-site .editorial-image,
.editorial-site .programme-card-photo,
.editorial-site .gallery-image { filter: saturate(.94) contrast(1.025); }
.editorial-site .editorial-photo::after,
.editorial-site .editorial-icon::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(#fff8 .45px, transparent .6px), radial-gradient(#0008 .45px, transparent .6px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 4px;
}
.editorial-site .editorial-icon { position: relative; overflow: hidden; }
@media (max-width: 1023px) {
  .editorial-site .site-header-inner { width: calc(100% - 40px); }
  .editorial-site .menu-toggle { display: block; }
  .editorial-site .site-header nav { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 22px 22px; border-top: 1px solid #ffffff50; background: var(--edit-burgundy); font-size: 13px; }
  .editorial-site .site-header nav.is-open { display: flex; }
  .editorial-site .site-header nav>a:not(.button), .editorial-site .site-header .nav-more summary { min-height: 44px; padding: 12px 0; }
  .editorial-site .nav-more>div { position: static; width: 100%; box-shadow: none; }
  .editorial-site .editorial-hero { min-height: 390px; }
  .editorial-site .editorial-photo img { min-height: 390px; }
}
@media (max-width: 700px) {
  .editorial-site .wrap { width: calc(100% - 40px); }
  .editorial-site .contact-strip { gap: 15px; padding: 8px 20px; font-size: 9px; }
  .editorial-site .contact-strip>span:last-child { max-width: 46%; text-align: right; }
  .editorial-site .site-header-inner { width: calc(100% - 32px); min-height: 74px; }
  .editorial-site .site-header .brand { gap: 8px; padding: 6px 9px; font-size: 21px; }
  .editorial-site .site-header .school-logo { width: 42px; height: 42px; }
  .editorial-site .site-header .brand>span>span { font-size: 9px; }
  .editorial-site .editorial-hero { grid-template-columns: 1fr; width: calc(100% - 24px); margin-top: 12px; }
  .editorial-site .editorial-hero-copy { min-height: 300px; padding: 34px 28px; }
  .editorial-site .editorial-hero h1 { max-width: 15ch; margin-bottom: 18px; font-size: clamp(2.45rem, 11vw, 4rem); }
  .editorial-site .editorial-kicker { margin-bottom: 17px; }
  .editorial-site .editorial-lead { font-size: 15px; }
  .editorial-site .editorial-back { margin-bottom: 24px; }
  .editorial-site .editorial-photo img { min-height: 0; height: auto; aspect-ratio: 1.38; }
  .editorial-site .editorial-photo figcaption { padding: 32px 17px 14px; font-size: 10px; }
  .editorial-site .page-content { padding-block: 48px 62px; }
  .editorial-site .editorial-content { padding-top: 42px; }
  .editorial-site .intro-body { margin-bottom: 36px; font-size: 15px; }
  .editorial-site .about-editorial, .editorial-site .admissions-grid, .editorial-site .contact-grid, .editorial-site .portal-grid { grid-template-columns: 1fr; gap: 28px; }
  .editorial-site .about-editorial h2 { font-size: 36px; }
  .editorial-site .about-photo { aspect-ratio: 1.35; }
  .editorial-site .programme-grid { grid-template-columns: 1fr; gap: 18px; }
  .editorial-site .programme-card { padding: 0 22px 24px; }
  .editorial-site .programme-card>.programme-card-photo { width: calc(100% + 44px); height: 220px; margin: 0 -22px 21px; }
  .editorial-site .programme-card>.programme-card-photo img { height: 220px; }
  .editorial-site .programme-card h2 { font-size: 29px; }
  .editorial-site .editorial-list>article { align-items: flex-start; flex-direction: column; gap: 17px; padding-block: 26px; }
  .editorial-site .editorial-icon { width: 100%; flex-basis: auto; }
  .editorial-site .editorial-image, .editorial-site .editorial-list-photo img { max-height: 270px; }
  .editorial-site .editorial-list h2 { margin: 10px 0; font-size: 28px; }
  .editorial-site .gallery-grid { grid-template-columns: 1fr; gap: 24px; }
  .editorial-site .gallery-grid img { height: auto; aspect-ratio: 1.25; }
  .editorial-site .gallery-grid figcaption { padding: 19px 20px 22px; }
  .editorial-site .gallery-grid h2 { font-size: 26px; }
  .editorial-site .enquiry-form { padding: 25px 21px; }
  .editorial-site .contact-grid article, .editorial-site .demo-portal { padding: 27px 23px; }
  .editorial-site .role-links { grid-template-columns: 1fr 1fr; }
  .editorial-site .legacy-portal { padding: 8px; }
  .editorial-site .detail-copy>p { font-size: 16px; }
  .editorial-site .math-learning { margin-top: 50px; }
  .editorial-site .math-sequence { grid-template-columns: 1fr; }
  .editorial-site .math-sequence article { padding-block: 20px; }
  .editorial-site .math-next-step { display: block; margin-top: 28px; padding: 25px 22px; }
  .editorial-site .math-next-step h3 { font-size: 19px; }
  .editorial-site .math-actions { justify-content: flex-start; margin-top: 22px; }
  .editorial-site .math-actions .button { white-space: normal; }
  .editorial-site .site-footer { padding-top: 48px; }
  .editorial-site .footer-top { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .editorial-site .footer-top>div:first-child, .editorial-site .footer-top>div:last-child { grid-column: 1 / -1; }
  .editorial-site .footer-bottom { display: block; }
  .editorial-site .footer-bottom span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-site *, .editorial-site *::before, .editorial-site *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .editorial-site .editorial-hero { min-height: 0; }
  .editorial-site .editorial-hero-copy { padding: 25px; }
  .editorial-site .editorial-photo img { min-height: 0; max-height: 380px; }
  .editorial-site .page-content { padding-block: 30px; }
  .editorial-site .site-header nav, .editorial-site .site-header .menu-toggle { display: none !important; }
}
/* Final overrides after the base responsive rules: natural, uncropped photos. */
.editorial-site .about-photo { aspect-ratio: auto; }
.editorial-site .editorial-photo img { height: auto; min-height: 0; aspect-ratio: auto; object-fit: contain; }
.editorial-site .about-photo img { width: 100%; height: auto; object-fit: contain; }
.editorial-site .programme-card>.programme-card-photo { height: auto; object-fit: contain; }
.editorial-site .editorial-image { height: auto; aspect-ratio: auto; object-fit: contain; }
.editorial-site .editorial-list-photo img { height: auto; aspect-ratio: auto; object-fit: contain; }
.editorial-site .gallery-grid img { height: auto; aspect-ratio: auto; object-fit: contain; }
html.page-arriving .website .page-curtain,
.website.page-arriving .page-curtain { transform: translate3d(0, 0, 0); }
html.page-leaving .website .page-curtain,
.website.page-leaving .page-curtain { transform: translate3d(0, 0, 0); }
@media (max-width: 700px) {
  .editorial-site .programme-card>.programme-card-photo { height: auto; }
  .editorial-site .editorial-image, .editorial-site .editorial-list-photo img { max-height: 480px; }
  .editorial-site .gallery-grid img { height: auto; max-height: 600px; }
  .editorial-site .contact-strip { justify-content: flex-start; gap: 5px 14px; padding: 7px 20px; font-size: 10px; }
  .editorial-site .contact-strip>span:last-child { justify-content: flex-start; max-width: none; text-align: left; gap: 4px 13px; }
}
/* Use natural photo proportions throughout editorial pages and cards. */
.editorial-site .editorial-photo { min-height: 0; height: auto; align-items: flex-start; justify-content: flex-start; padding: 0; background: transparent; }
.editorial-site .editorial-photo img,
.editorial-site .about-photo img,
.editorial-site .programme-card>.programme-card-photo,
.editorial-site .editorial-image,
.editorial-site .editorial-list-photo img,
.editorial-site .gallery-grid img { display: block; width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: contain; }
.editorial-site .editorial-photo.photo-portrait img { width: 100%; max-width: none; }
.editorial-site .editorial-list-photo { display: block; width: min(40%, 420px); height: auto; min-height: 0; padding: 0; aspect-ratio: auto; background: transparent; }
.editorial-site .editorial-icon { width: min(40%, 420px); flex: 0 0 min(40%, 420px); }
.editorial-site .editorial-photo.detail-gallery-photo { width: 100%; }
.editorial-site .detail-photo-gallery .editorial-photo { min-height: 0; }
.editorial-site .footer-tagline { max-width: 19ch; margin: 22px 0 0; color: #f4ece3; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(20px, 2vw, 27px); font-style: italic; line-height: 1.28; letter-spacing: -.025em; }
@media (max-width: 700px) {
  .editorial-site .editorial-list-photo, .editorial-site .editorial-icon { width: 100%; flex-basis: auto; }
}

.editorial-site .editorial-icon>.editorial-list-photo{width:100%}

/* Keep long story titles within their own column at every width. */
.editorial-site .editorial-hero-copy{min-width:0}
.editorial-site .editorial-hero h1{max-width:100%;font-size:clamp(38px,4.2vw,68px);line-height:1.04;overflow-wrap:anywhere}
