/* KTL Excel Higher Secondary School: shared styles
   One family (Archivo, variable weight + width), white page, crest green.
   Palette is sampled from the school crest: green #409049 is 38% of its
   chromatic area, blue #4190D3 the secondary, gold #E8C447 a trace detail.
   Text-weight greens/blues are darkened from the crest to clear WCAG AA. */

/* Self-hosted variable font (latin subset). No Google Fonts round-trip.
   Width axis carries the type hierarchy: 112% display, 100% prose, 86% data. */
@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-stretch:62% 125%;font-display:swap;src:url("fonts/archivo.woff2") format("woff2")}
@font-face{font-family:"Archivo";font-style:italic;font-weight:100 900;font-stretch:62% 125%;font-display:swap;src:url("fonts/archivo-italic.woff2") format("woff2")}

:root{
  /* surfaces */
  --paper:#FFFFFF;             /* true white; cream is the generated-page tell */
  --paper-deep:#F4F6F5;        /* faint band, crest green desaturated, not grey */
  --ink:#182019;               /* 16.7:1 on white */
  --ink-soft:#596159;          /* 6.4:1, body-safe secondary */
  --ink-faint:#687169;         /* 5.0:1 on paper, 4.7:1 on paper-deep: AA for small meta text */
  --line:#E3E7E4;              /* register rule */
  --line-firm:#C9D0CB;         /* table heads, emphasis rules */

  /* brand, from the crest */
  --crest:#409049;             /* crest green as-is: fills and large type only */
  --accent:#2E6B38;            /* 6.4:1, links, actions, active state */
  --accent-deep:#24552C;       /* hover/pressed */
  --accent-light:#6FBF78;      /* 7.5:1 on --ink, for dark sections */
  --blue:#2A6EA8;              /* 5.4:1, secondary, used semantically */
  --gold:#E8C447;              /* 9.9:1 on --ink; never on white */

  /* house colours are information, not decoration. These are the real four */
  --house-red:#A8311E;
  --house-green:#3D5A3C;
  --house-blue:#2C4866;

  --sans:"Archivo",-apple-system,"Segoe UI",sans-serif;
  --serif:var(--sans);         /* alias: one family carries everything */
  --pad-x:clamp(1.2rem,4vw,3rem);
}
/* Width axis as a type role, so hierarchy is set once and reused. */
.t-display{font-stretch:112%;font-weight:600;letter-spacing:-.025em}
.t-data{font-stretch:86%;font-variant-numeric:tabular-nums}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:auto}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
body{
  background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:17px;line-height:1.65;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
/* No grain overlay: a paper-texture scrim is decoration, and on a white
   institutional page it only muddies the type. */
::selection{background:var(--accent);color:#fff}
/* Figures are data on this site. Never let them go proportional. */
.num,table,time,.pct,.val,.big,.mk{font-variant-numeric:tabular-nums}
a{color:inherit;text-decoration:none}
.serif{font-family:var(--serif)}

/* ---------- page entrance ----------
   The head script sets .intro before first paint; ktl.js removes it in the
   same task that sets the animation's start state, so nothing flashes. If
   the scripts never arrive the failsafe shows the page at 1.6s. */
.intro #header,.intro .hero-crest,.intro .hero-title,.intro .hero-desc,
.intro .hero-ctas,.intro .hero-est,.intro .page-hero .crumb,.intro .page-hero .fade-in,
.intro .page-hero .lead{opacity:0;animation:intro-failsafe 0s linear 1.6s forwards}
@keyframes intro-failsafe{to{opacity:1}}

/* ---------- header ---------- */
header{
  position:fixed;top:0;left:0;right:0;z-index:900;
  display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
  padding:1.1rem var(--pad-x);
  will-change:transform;
  transition:transform .5s cubic-bezier(.4,0,.2,1);
}
header.hidden{transform:translateY(-110%)}
header.scrolled{background:rgba(255,255,255,.94);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
header::after{content:"";position:absolute;left:var(--pad-x);right:var(--pad-x);bottom:0;height:1px;background:var(--line)}
.wordmark{display:flex;flex-direction:row;align-items:center;gap:.65rem;line-height:1.15}
.wordmark .wm-mask{display:block;overflow:hidden;flex:none}
.wordmark .wm-logo{height:2.4rem!important;width:auto!important;max-width:2.4rem;display:block;flex:none}
/* homepage: the navbar crest stays behind the header edge while the hero
   crest is on screen, then slides down into its slot (masked, no fade) */
.has-hero header .wm-logo{transform:translateY(-110%);transition:transform .5s cubic-bezier(.22,1,.36,1)}
.has-hero .crest-docked header .wm-logo{transform:none}
.wordmark .wm-text{display:flex;flex-direction:column;gap:.1rem}
.wordmark b{font-weight:600;font-stretch:108%;font-size:1.08rem;letter-spacing:-.015em}
.wordmark .wm-text span{font-size:.74rem;color:var(--ink-faint)}
@media(max-width:480px){.wordmark .wm-logo{height:2rem!important;max-width:2rem}.wordmark b{font-size:.95rem}}
header nav{display:flex;gap:1.8rem;font-size:.86rem;font-weight:500}
header nav a{position:relative;padding:.2rem 0;color:var(--ink-soft);transition:color .3s}
header nav a:hover{color:var(--ink)}
header nav a::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background:var(--accent);transform:scaleX(0);transform-origin:right;transition:transform .4s cubic-bezier(.65,0,.35,1)}
header nav a:hover::after{transform:scaleX(1);transform-origin:left}
header nav a.active{color:var(--ink)}
header nav a.active::after{transform:scaleX(1)}

/* ---------- nav groups (dropdowns) ---------- */
.nav-group{position:relative}
.nav-group>button{
  font-family:inherit;font-size:.86rem;font-weight:500;
  background:none;border:0;cursor:pointer;color:var(--ink-soft);padding:.2rem 0;
  display:flex;align-items:center;gap:.45rem;transition:color .3s;
}
.nav-group>button::after{
  content:"";width:.38em;height:.38em;flex:none;
  border-right:1px solid currentColor;border-bottom:1px solid currentColor;
  transform:rotate(45deg) translateY(-25%);transition:transform .3s;
}
.nav-group>button:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
.nav-group:hover>button,.nav-group:focus-within>button{color:var(--ink)}
.nav-group:hover>button::after,.nav-group:focus-within>button::after{transform:rotate(225deg) translateY(-25%)}
.nav-group>button.active{color:var(--ink)}
.nav-drop{
  position:absolute;top:100%;left:50%;transform:translateX(-50%);
  padding-top:1.05rem;opacity:0;visibility:hidden;
  transition:opacity .25s,visibility 0s .25s;
}
.nav-drop .nd-in{
  min-width:13.5rem;background:#fff;
  border:1px solid var(--line);padding:.4rem 0;
  box-shadow:0 1px 0 var(--line);
  transform:translateY(8px);transition:transform .35s cubic-bezier(.22,1,.36,1);
}
.nav-group:hover .nav-drop,.nav-group:focus-within .nav-drop{opacity:1;visibility:visible;transition:opacity .25s}
.nav-group:hover .nd-in,.nav-group:focus-within .nd-in{transform:translateY(0)}
.nav-drop a{display:block;padding:.6rem 1.3rem;font-size:.95rem;color:var(--ink-soft)}
.nav-drop a::after{content:none}
.nav-drop a:hover{color:var(--accent);background:var(--paper-deep)}
.nav-drop a.active{color:var(--ink)}
.admit-pill{
  font-size:.86rem;font-weight:500;
  background:var(--accent);color:#fff;border:1px solid var(--accent);
  padding:.5rem 1.05rem;white-space:nowrap;transition:background .3s,border-color .3s;
}
.admit-pill:hover{background:var(--accent-deep);border-color:var(--accent-deep)}
.menu-btn{
  display:none;background:none;border:0;cursor:pointer;width:2.2rem;height:2.2rem;
  flex-direction:column;justify-content:center;gap:.45rem;
}
.menu-btn span{display:block;width:100%;height:1px;background:var(--ink);transition:transform .4s,opacity .4s}
@media(max-width:1100px){
  header nav{display:none}
  .menu-btn{display:flex}
  header{justify-content:flex-start}
  .admit-pill{margin-left:auto}
}
@media(max-width:560px){
  .admit-pill{display:none}
  .menu-btn{margin-left:auto}
}

/* ---------- fullscreen menu ---------- */
.menu-overlay{
  position:fixed;inset:0;z-index:950;background:var(--ink);color:var(--paper);
  display:flex;flex-direction:column;justify-content:center;
  padding:4.5rem var(--pad-x);visibility:hidden;overflow-y:auto;
}
.menu-overlay .m-label{font-size:.8rem;color:rgba(255,255,255,.5);margin:1.7rem 0 .5rem}
.menu-overlay .m-label:first-of-type{margin-top:0}
.menu-overlay a.m-link{
  font-weight:500;font-stretch:106%;font-size:clamp(1.35rem,4.2vh,2.2rem);line-height:1.4;
  letter-spacing:-.02em;display:flex;align-items:baseline;gap:1rem;width:max-content;
}
.menu-overlay a.m-link i{font-style:normal;font-size:.8rem;font-stretch:86%;font-variant-numeric:tabular-nums;color:rgba(255,255,255,.45)}
.menu-overlay a.m-link:hover{color:var(--accent-light)}
.menu-overlay .m-foot{position:absolute;bottom:2rem;left:var(--pad-x);font-size:.8rem;color:rgba(255,255,255,.55)}
.menu-close{
  position:absolute;top:1.3rem;right:var(--pad-x);background:none;border:0;color:#fff;
  font-family:inherit;font-size:.9rem;cursor:pointer;padding:.5rem;
}
.menu-close:hover{color:var(--accent-light)}
body.menu-open{overflow:hidden}
/* no-gsap fallback: ktl.js adds .no-gsap when the animation CDN is
   unreachable; the menu then opens/closes on a plain class toggle */
body.no-gsap .menu-overlay{transform:translateY(-100%);transition:transform .45s cubic-bezier(.65,0,.35,1),visibility 0s .45s}
body.no-gsap .menu-overlay.open{visibility:visible;transform:none;transition:transform .55s cubic-bezier(.65,0,.35,1)}

/* ---------- index hero: centered frontispiece over the ridgeline field ---------- */
.hero{position:relative;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden;padding:clamp(6rem,14vh,8rem) var(--pad-x) clamp(3rem,8vh,5rem)}
.hero>*{position:relative}
#ridges{position:absolute;inset:0;width:100%;height:100%;display:block}
.hero-crest{height:clamp(5rem,11vw,7.5rem);width:auto}
h1.hero-title{
  font-weight:600;font-stretch:112%;
  font-size:clamp(2.7rem,min(8vw,12svh),7.2rem);line-height:1.02;letter-spacing:-.035em;
  max-width:14ch;margin-top:clamp(1.6rem,4vh,2.6rem);text-wrap:balance;
}
h1 .line{display:block;overflow:hidden}
h1 .line .word{display:inline-block;will-change:transform}
/* Headline accent words removed: italicising one word in the accent colour
   is the loudest generated-page tell, and it fought the crest green. */
h1 em,.page-hero h1 em,h2.sec-title em,.quote em{font-style:normal;font-weight:inherit;color:inherit}
.hero-desc{max-width:52ch;font-size:1.05rem;color:var(--ink-soft);margin-top:1.6rem}
.hero-ctas{display:flex;gap:2.4rem;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:2.6rem}
/* Link style, not a button-with-an-arrow: the trailing "→" on every CTA
   is template chrome. The rule under the text does the signalling. */
.hero-cta{display:inline-flex;align-items:center;font-size:.95rem;font-weight:500;color:var(--accent);border-bottom:2px solid var(--accent);padding-bottom:.3rem;transition:color .25s,border-color .25s}
/* The same style on a <button>: a browser draws its own border, background
   and font, so the submit on a form looked nothing like the links elsewhere. */
button.hero-cta{border-top:0;border-left:0;border-right:0;border-radius:0;background:none;font-family:inherit;padding-left:0;padding-right:0;cursor:pointer}
button.hero-cta:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.hero-cta:hover{color:var(--accent-deep);border-color:var(--accent-deep)}
.hero-cta span{display:none}  /* legacy arrow spans in markup are suppressed */
.hero-est{position:absolute;bottom:clamp(1.6rem,4vh,2.6rem);left:0;right:0;display:flex;justify-content:space-between;gap:1.5rem;padding:0 var(--pad-x);font-size:.82rem;color:var(--ink-faint)}
@media(max-width:700px){.hero-est{display:none}}

/* ---------- subpage hero ---------- */
.page-hero{padding:clamp(9rem,20vh,13rem) var(--pad-x) clamp(2.5rem,6vh,4rem);border-bottom:1px solid var(--line)}
.page-hero .crumb{font-size:.85rem;font-weight:500;color:var(--ink-soft);margin-bottom:1.5rem;display:flex;align-items:baseline;gap:1rem}
.page-hero .crumb::after{content:"";flex:1;height:1px;background:var(--line)}
.page-hero h1{font-weight:600;font-stretch:112%;font-size:clamp(2.5rem,7.5vw,6rem);line-height:1;letter-spacing:-.035em;max-width:18ch;text-wrap:balance}
.page-hero .lead{max-width:58ch;font-size:clamp(1rem,1.3vw,1.15rem);color:var(--ink-soft);margin-top:1.6rem}

/* The italic scrolling ticker was removed: a marquee repeating facts the
   page already states is decoration, and it is a generated-page signature.
   Those facts now live in the hero meta line and the figures band. */

/* ---------- shared section bits ---------- */
section{position:relative;padding:clamp(5rem,12vh,9rem) var(--pad-x)}
section.tight{padding-top:clamp(3rem,7vh,5rem)}
/* Section label: sentence case, no tracking, no "N°01" counter. The rule
   carries the structure; numbering only survives where content is a real
   sequence (the admissions steps). */
.sec-label{display:flex;align-items:baseline;gap:1rem;font-size:.85rem;font-weight:500;color:var(--ink-soft);margin-bottom:clamp(2rem,5vh,3.5rem)}
.sec-label::after{content:"";flex:1;height:1px;background:var(--line)}
h2.sec-title{font-weight:600;font-stretch:110%;font-size:clamp(1.9rem,4.5vw,3.5rem);line-height:1.08;letter-spacing:-.03em;max-width:24ch;text-wrap:balance}
.reveal-line{display:block;overflow:hidden}
.reveal-line>span{display:inline-block;will-change:transform}
.sec-lead{max-width:58ch;font-size:1.02rem;color:var(--ink-soft);margin-top:1.4rem}
.placeholder-note{margin-top:2.4rem;font-style:italic;font-size:.9rem;color:var(--ink-faint)}

/* ---------- definition rows ---------- */
.def-rows{margin-top:clamp(2rem,5vh,3.5rem)}
.def-row{display:grid;grid-template-columns:minmax(9rem,16rem) 1fr;gap:clamp(1.2rem,3vw,3rem);padding:1.7rem .4rem;border-bottom:1px solid var(--line);align-items:baseline;transition:transform .35s,background .35s}
.def-row:first-child{border-top:1px solid var(--line)}
.def-row:hover{background:var(--paper-deep)}
.def-row dt{font-weight:600;font-stretch:104%;font-size:clamp(1.05rem,1.7vw,1.3rem);letter-spacing:-.015em}
.def-row dt small{display:block;font-size:.82rem;font-weight:400;color:var(--ink-faint);margin-top:.25rem}
.def-row dd{font-size:1rem;color:var(--ink-soft);max-width:66ch}
.def-row dd b{color:var(--ink);font-weight:600}
.house-dot{display:inline-block;width:.7rem;height:.7rem;border-radius:50%;margin-right:.6rem;vertical-align:baseline;border:1px solid var(--line)}
@media(max-width:680px){.def-row{grid-template-columns:1fr;gap:.5rem}}

/* ---------- stat cells ---------- */
.cells-grid{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid var(--line);border-top:1px solid var(--line);margin-top:clamp(2rem,5vh,3.5rem)}
.cell{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:clamp(1.4rem,2.6vw,2.4rem);position:relative;overflow:hidden}
.cell .val{font-weight:500;font-stretch:92%;font-size:clamp(1.5rem,3vw,2.4rem);line-height:1.1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cell .val.num{font-size:clamp(3rem,7vw,6rem)}
.cell p{font-size:.88rem;color:var(--ink-soft);margin-top:.6rem}
/* Quiet tint on hover. The full ink wipe is reserved for the figures band,
   so the effect reads as one deliberate device rather than four. */
.cell>*{position:relative;z-index:1}
.cell{transition:background .3s}
.cell:hover{background:var(--paper-deep)}
.cell.cta-cell{display:flex;align-items:center;justify-content:flex-start}
.cell.cta-cell a{font-size:.95rem;font-weight:500;color:var(--accent);border-bottom:2px solid var(--accent);padding-bottom:.25rem}
.cell.cta-cell:hover a{color:var(--accent-deep);border-color:var(--accent-deep)}
.affil-note{margin-top:1.4rem;font-size:.85rem;font-stretch:92%;color:var(--ink-faint)}
@media(max-width:720px){.cells-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.cells-grid{grid-template-columns:1fr}}

/* numbers grid (index, 3 big) */
.numbers-grid{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid var(--line);margin-top:clamp(2rem,5vh,3.5rem)}
.num-cell{border-right:1px solid var(--line);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:clamp(1.5rem,3vw,3rem);position:relative;overflow:hidden}
/* Condensed, not display-width: these are figures from a register. */
.num-cell .big{font-weight:500;font-stretch:80%;font-size:clamp(3.6rem,9vw,7.5rem);line-height:.95;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.num-cell p{font-size:.92rem;color:var(--ink-soft);margin-top:.7rem;max-width:26ch}
.num-cell::before{content:"";position:absolute;inset:0;background:var(--ink);transform:scaleY(0);transform-origin:bottom;transition:transform .5s cubic-bezier(.65,0,.35,1);z-index:0}
.num-cell:hover::before{transform:scaleY(1)}
.num-cell>*{position:relative;z-index:1;transition:color .4s}
.num-cell:hover .big{color:#fff}
.num-cell:hover p{color:rgba(255,255,255,.7)}
@media(max-width:720px){.numbers-grid{grid-template-columns:1fr}}

/* ---------- grade grid ---------- */
.grade-grid{display:grid;grid-template-columns:repeat(4,1fr);border-left:1px solid var(--line);border-top:1px solid var(--line);margin-top:clamp(2rem,5vh,3.5rem)}
.grade{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:clamp(1.4rem,2.6vw,2.2rem);position:relative;overflow:hidden}
.grade .g{font-weight:500;font-stretch:88%;font-size:clamp(2.2rem,4.2vw,3.4rem);line-height:1;letter-spacing:-.025em}
.grade p{font-size:.88rem;color:var(--ink-soft);margin-top:.6rem}
.grade>*{position:relative}
.grade{transition:background .3s}
.grade:hover{background:var(--paper-deep)}
.grade:hover .g{color:var(--accent)}
@media(max-width:680px){.grade-grid{grid-template-columns:1fr 1fr}}

/* ---------- dark sections (fame, closing) ---------- */
.dark{background:var(--ink);color:var(--paper)}
.dark .sec-label{color:rgba(255,255,255,.6)}
.dark .sec-label::after{background:rgba(255,255,255,.2)}
.dark .sec-lead{color:rgba(255,255,255,.72)}
.fame-cols{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,5rem);margin-top:clamp(3rem,7vh,5rem)}
/* Class XII Science, Class XII Arts, Class X */
.fame-cols.three{grid-template-columns:repeat(3,1fr);gap:clamp(1.5rem,3vw,3rem)}
@media(max-width:1100px){.fame-cols.three{grid-template-columns:1fr 1fr}}
.fame-board-head{display:flex;justify-content:space-between;gap:1rem;font-size:.85rem;font-weight:500;color:rgba(255,255,255,.65);padding-bottom:.9rem;border-bottom:1px solid rgba(255,255,255,.25)}
.fame-row{display:grid;grid-template-columns:4.2rem 1fr auto;align-items:baseline;gap:1.2rem;padding:1.2rem .6rem;border-bottom:1px solid rgba(255,255,255,.14);transition:background .3s}
.fame-row:hover{background:rgba(255,255,255,.06)}
.fame-row .rank{font-size:.85rem;color:rgba(255,255,255,.6)}
.fame-row .name{font-weight:500;font-stretch:104%;font-size:clamp(1.05rem,1.8vw,1.3rem);letter-spacing:-.015em}
/* Gold is reserved for honours, and only ever on the dark ground where
   it clears AA (9.9:1). Never on white. */
.fame-row .pct{font-weight:500;font-stretch:86%;font-size:clamp(1.3rem,2.3vw,1.8rem);color:var(--gold);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.fame-row .pct i{font-style:normal;font-size:.6em;color:rgba(255,255,255,.5)}
.fame-more{display:inline-block;margin-top:2.6rem;font-size:.95rem;font-weight:500;color:#fff;border-bottom:2px solid var(--accent-light);padding-bottom:.25rem;transition:color .25s,border-color .25s}
.fame-more:hover{color:var(--accent-light)}
@media(max-width:860px){.fame-cols,.fame-cols.three{grid-template-columns:1fr}}
/* light variant for hall-of-fame page */
.fame-light .fame-board-head{color:var(--ink-soft);border-color:var(--line)}
.fame-light .fame-row{border-color:var(--line)}
.fame-light .fame-row:hover{background:var(--paper-deep)}
.fame-light .fame-row .rank{color:var(--ink-faint)}
.fame-light .fame-row .pct{color:var(--accent)}
.fame-light .fame-row .pct i{color:var(--ink-faint)}
.year-block{margin-top:clamp(3rem,7vh,5rem)}
.year-head{display:flex;align-items:baseline;gap:1.4rem;margin-bottom:1.5rem}
.year-head .y{font-weight:600;font-stretch:88%;font-size:clamp(1.8rem,3.6vw,2.6rem);letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.year-head::after{content:"";flex:1;height:1px;background:var(--line)}

/* ---------- quote ---------- */
.quote-wrap{min-height:90svh;display:flex;flex-direction:column;justify-content:center}
.quote{font-weight:500;font-stretch:104%;font-size:clamp(1.7rem,4.2vw,3.4rem);line-height:1.18;max-width:28ch;letter-spacing:-.03em;text-wrap:balance}
.quote .w{opacity:.13}
.quote-attr{margin-top:3rem;display:flex;align-items:center;gap:1.2rem}
.quote-attr .rule{width:3.5rem;height:1px;background:currentColor;opacity:.6}
.quote-photo{width:4.75rem;height:4.75rem;object-fit:cover;flex:none;background:var(--paper-deep)}
.quote-attr div b{display:block;font-weight:600;font-size:.95rem}
.quote-attr div span{font-size:.88rem;opacity:.65}

/* ---------- streams ---------- */
.streams-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);margin-top:clamp(2.5rem,6vh,4rem)}
.stream{padding:clamp(2rem,4vw,3.5rem);position:relative;overflow:hidden;cursor:default}
.stream+.stream{border-left:1px solid var(--line)}
.stream::before{content:"";position:absolute;inset:0;background:var(--ink);transform:translateY(101%);transition:transform .55s cubic-bezier(.65,0,.35,1)}
.stream:hover::before{transform:translateY(0)}
.stream>*{position:relative;transition:color .45s}
.stream .idx{font-size:.85rem;color:var(--ink-faint)}
.stream h3{font-weight:600;font-stretch:110%;font-size:clamp(1.9rem,3.8vw,3rem);letter-spacing:-.03em;margin:.5rem 0 1.3rem}
.stream ul{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem}
.stream li{font-size:.86rem;border:1px solid var(--line);padding:.3rem .7rem;color:var(--ink-soft);transition:border-color .45s,color .45s}
.stream .note{margin-top:1.5rem;font-size:.9rem;color:var(--ink-soft)}
.stream:hover .idx{color:var(--accent-light)}
.stream:hover h3,.stream:hover .note{color:#fff}
.stream:hover li{color:rgba(255,255,255,.8);border-color:rgba(255,255,255,.3)}
.streams-note{margin-top:1.6rem;font-size:.95rem;color:var(--ink-soft);max-width:60ch}
@media(max-width:720px){.streams-grid{grid-template-columns:1fr}.stream+.stream{border-left:0;border-top:1px solid var(--line)}}

/* ---------- houses (index panels) ---------- */
.houses-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:clamp(2.5rem,6vh,4rem);border:1px solid var(--line)}
.house{aspect-ratio:3/4.2;padding:1.6rem;display:flex;flex-direction:column;justify-content:space-between;position:relative}
.house+.house{border-left:1px solid var(--line)}
.house .h-idx{font-size:.82rem;opacity:.6}
.house .h-body h3{font-weight:600;font-stretch:106%;font-size:clamp(1.2rem,2.1vw,1.7rem);letter-spacing:-.02em}
.house .h-body .h-motto{font-style:italic;font-size:.9rem;opacity:.75;margin-top:.35rem;display:block}
.house .h-swatch{width:100%;height:6px;margin-top:1.1rem}
/* House colours are the real four: information, not palette. */
.house-honesty{background:var(--paper-deep);color:var(--ink)}
.house-honesty .h-swatch{background:var(--ink);height:1px;margin-bottom:5px}
.house-service{background:var(--house-red);color:#fff}
.house-service .h-swatch{background:rgba(255,255,255,.9)}
.house-purity{background:var(--house-green);color:#fff}
.house-purity .h-swatch{background:rgba(255,255,255,.9)}
.house-wisdom{background:var(--house-blue);color:#fff}
.house-wisdom .h-swatch{background:rgba(255,255,255,.9)}
.houses-note{margin-top:1.6rem;font-size:.95rem;color:var(--ink-soft);max-width:62ch}
@media(max-width:860px){.houses-grid{grid-template-columns:1fr 1fr}.house{aspect-ratio:auto;min-height:14rem}.house:nth-child(3){border-left:0}.house:nth-child(n+3){border-top:1px solid var(--line)}}

/* ---------- homepage photographs ----------
   The band runs edge to edge straight off the hero; the strip keeps the
   section margins. Paper-deep behind each frame while it loads. */
section.home-band{padding:0}
.home-band figure,.strip-grid figure{margin:0;background:var(--paper-deep);overflow:hidden}
.home-band img,.strip-grid img{display:block;width:100%;height:100%;object-fit:cover}
.home-band figure{aspect-ratio:21/9}
.strip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:clamp(.8rem,1.5vw,1.2rem)}
.strip-grid figure{aspect-ratio:4/3}
@media(max-width:700px){.home-band figure{aspect-ratio:4/3}}
/* The campus: one wide photograph over three. */
.campus-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(.8rem,1.5vw,1.2rem);margin-top:clamp(1.8rem,4vh,2.6rem)}
.campus-grid figure{margin:0;background:var(--paper-deep);overflow:hidden;aspect-ratio:4/3}
.campus-grid .c-wide{grid-column:1/-1;aspect-ratio:21/9}
.campus-grid img,.fig-photo img,.getting-fig img{display:block;width:100%;height:100%;object-fit:cover}
.fig-photo{background:var(--paper-deep)}
.getting-fig{margin:clamp(2rem,5vh,3rem) 0 0;max-width:56rem}
.getting-fig img{height:auto;aspect-ratio:4/3}
.getting-fig figcaption{font-size:.82rem;color:var(--ink-soft);margin-top:.6rem}
@media(max-width:700px){.campus-grid{grid-template-columns:1fr}.campus-grid .c-wide{aspect-ratio:4/3}}
.adm-brochure{margin-top:2.6rem}

/* ---------- homepage highlights ----------
   The words beside the photographs on a wide screen, above them on a phone.
   One photograph fills its space; two sit side by side; three put the first
   large and the other two stacked beside it. */
.highlights{display:grid;gap:clamp(3rem,7vh,5rem);margin-top:clamp(2rem,5vh,3.5rem)}
.highlight{display:grid;grid-template-columns:minmax(14rem,1fr) 2fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:start}
.hl-text h3{font-weight:600;font-stretch:104%;font-size:clamp(1.3rem,2.2vw,1.7rem);letter-spacing:-.02em;margin-bottom:.4rem}
.hl-text time{display:block;font-size:.85rem;color:var(--ink-faint);margin-bottom:1rem}
.hl-text p{color:var(--ink-soft);margin-bottom:1.6rem;max-width:44ch}
.hl-photos{display:grid;gap:clamp(.6rem,1.2vw,1rem)}
/* Grid children default to their content's width; a 1200px photograph
   would push its column past the edge of a phone. */
.highlight>*,.hl-photos>*{min-width:0}
.hl-photos.n1 figure{aspect-ratio:16/9}
.hl-photos figure{margin:0;background:var(--paper-deep);overflow:hidden;aspect-ratio:4/3}
.hl-photos img{display:block;width:100%;height:100%;object-fit:cover}
.hl-photos.n2{grid-template-columns:1fr 1fr}
.hl-photos.n3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}
.hl-photos.n3 figure:first-child{grid-row:span 2;aspect-ratio:auto}
@media(max-width:860px){.highlight{grid-template-columns:1fr}}

/* ---------- lineage / figure ---------- */
.lineage{background:var(--paper-deep)}
.lineage-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.5rem,6vw,6rem);align-items:start}
.lineage-text p{font-size:clamp(1rem,1.3vw,1.1rem);color:var(--ink-soft);margin-bottom:1.3rem;max-width:62ch}
.lineage-text p b{color:var(--ink);font-weight:600}
.lineage-text .small-on-purpose{font-weight:600;font-stretch:106%;font-size:clamp(1.2rem,2.1vw,1.6rem);letter-spacing:-.02em;color:var(--ink);margin-top:2.2rem}
.lineage-fig{border:1px solid var(--line);padding:1rem;background:var(--paper)}
.lineage-fig .fig-art{aspect-ratio:4/3;background:var(--ink);position:relative;overflow:hidden}
.fig-art canvas{position:absolute;inset:0;width:100%;height:100%}
.lineage-fig figcaption{font-size:.82rem;color:var(--ink-faint);padding-top:.7rem}
@media(max-width:860px){.lineage-grid{grid-template-columns:1fr}}

/* ---------- notices ---------- */
.notice-row{display:grid;grid-template-columns:8rem 8rem 1fr auto;align-items:baseline;gap:1.4rem;padding:1.5rem .4rem;border-bottom:1px solid var(--line);transition:transform .35s,background .35s}
.notice-rows .notice-row:first-child,.notice-row.first{border-top:1px solid var(--line)}
.notice-row:hover{background:var(--paper-deep)}
.notice-row .n-date{font-size:.85rem;font-stretch:88%;line-height:1.5;color:var(--ink-faint);font-variant-numeric:tabular-nums}
.notice-row .n-tag{font-size:.85rem;font-weight:500;line-height:1.5;color:var(--accent)}
.notice-row .n-title{font-weight:500;font-stretch:103%;font-size:clamp(1rem,1.5vw,1.15rem);letter-spacing:-.01em}
.notice-row .n-arrow{color:var(--ink-faint);transition:transform .3s,color .3s}
.notice-row:hover .n-arrow{transform:translateX(.35rem);color:var(--accent)}
.notice-row.pinned{background:var(--paper-deep)}
.notice-row.pinned .n-tag::before{content:"Pinned: ";color:var(--ink)}
@media(max-width:720px){.notice-row{grid-template-columns:1fr auto}.notice-row .n-date,.notice-row .n-tag{grid-column:1/-1}}

/* ---------- steps ---------- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);margin-top:clamp(2.5rem,6vh,4rem)}
.step{padding:clamp(1.8rem,3.5vw,3rem);position:relative}
.step+.step{border-left:1px solid var(--line)}
/* Numbering kept: the admissions process is an actual sequence. */
.step .s-idx{font-weight:500;font-stretch:84%;font-size:clamp(2.2rem,4.2vw,3.4rem);color:var(--accent);line-height:1;font-variant-numeric:tabular-nums}
.step p{font-size:1rem;color:var(--ink-soft);margin-top:1.1rem;max-width:38ch}
@media(max-width:760px){.steps{grid-template-columns:1fr}.step+.step{border-left:0;border-top:1px solid var(--line)}}

/* ---------- rank tables ---------- */
.exam-block{margin-top:clamp(3rem,7vh,5rem)}
.exam-head{display:flex;align-items:baseline;gap:1.4rem;margin-bottom:.6rem}
.exam-head h3{font-weight:600;font-stretch:106%;font-size:clamp(1.5rem,3vw,2.3rem);letter-spacing:-.025em}
.exam-head::after{content:"";flex:1;height:1px;background:var(--line)}
.tables-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:clamp(1.5rem,3vw,3rem);margin-top:2rem}
.rank-table{width:100%;border-collapse:collapse}
.rank-table caption{text-align:left;font-size:.88rem;font-weight:500;color:var(--ink-soft);padding-bottom:.8rem}
.rank-table th{font-size:.82rem;color:var(--ink-faint);font-weight:500;text-align:left;padding:.5rem .3rem;border-bottom:1px solid var(--line-firm)}
.rank-table td{padding:.85rem .3rem;border-bottom:1px solid var(--line);vertical-align:baseline}
.rank-table .r{font-size:.85rem;font-stretch:86%;color:var(--ink-faint);width:2.6rem;font-variant-numeric:tabular-nums}
.rank-table .nm{font-weight:500;font-size:1rem}
.rank-table .mk{font-stretch:86%;font-weight:500;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.rank-table tbody tr:hover td{background:var(--paper-deep)}

/* ---------- faculty ---------- */
.dept{margin-top:clamp(3rem,7vh,5rem)}
.dept-head{display:flex;align-items:baseline;gap:1.4rem;margin-bottom:1.8rem}
.dept-head h3{font-weight:600;font-stretch:106%;font-size:clamp(1.4rem,2.6vw,2rem);letter-spacing:-.025em}
.dept-head::after{content:"";flex:1;height:1px;background:var(--line)}
.faculty-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:clamp(1.2rem,2.5vw,2rem)}
.faculty-grid.lead-row{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.faculty-card .portrait{
  /* paper plate until photos arrive. A wall of solid ink boxes read too heavy */
  aspect-ratio:3/3.6;background:var(--paper-deep);display:flex;align-items:center;justify-content:center;
  position:relative;overflow:hidden;
}
.faculty-card .portrait::after{content:"";position:absolute;inset:10px;border:1px solid var(--line);pointer-events:none}
.faculty-card .portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.faculty-card .portrait.has-img{background:var(--ink)}
.faculty-card .portrait.has-img::after{content:none}
.faculty-card .portrait b{font-weight:500;font-stretch:92%;font-size:2.2rem;color:var(--ink-faint);letter-spacing:-.01em}
.faculty-card .portrait .p-tag{position:absolute;bottom:.9rem;left:0;right:0;text-align:center;font-size:.78rem;color:var(--ink-faint)}
.faculty-card h4{font-weight:600;font-stretch:103%;font-size:1.05rem;letter-spacing:-.015em;margin-top:.9rem}
.faculty-card .role{font-size:.85rem;font-weight:500;color:var(--accent);margin-top:.2rem}
.faculty-card .qual{font-size:.88rem;color:var(--ink-soft);margin-top:.25rem}

/* ---------- gallery ---------- */
.gallery-event{margin-top:clamp(3.5rem,8vh,6rem);scroll-margin-top:6rem}
.event-head{display:flex;align-items:baseline;justify-content:space-between;gap:1.4rem;flex-wrap:wrap;border-bottom:1px solid var(--line-firm);padding-bottom:.9rem}
.event-head h3{font-weight:600;font-stretch:106%;font-size:clamp(1.5rem,3vw,2.3rem);letter-spacing:-.025em}
.event-head time{font-size:.88rem;font-stretch:90%;color:var(--ink-soft)}
.event-note{font-size:1rem;color:var(--ink-soft);max-width:62ch;margin-top:.9rem}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:clamp(1.2rem,2.5vw,2rem);margin-top:2rem}
.photo{display:block}
.photo .ph-frame{aspect-ratio:4/3;background:var(--ink);position:relative;overflow:hidden}
.photo .ph-frame canvas{position:absolute;inset:0;width:100%;height:100%}
.photo .ph-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.photo .ph-frame::after{content:"Photograph forthcoming";position:absolute;inset:auto 0 .9rem 0;text-align:center;font-size:.78rem;color:rgba(255,255,255,.6)}
.photo .ph-frame.has-img::after{content:none}
.photo figcaption{font-size:.88rem;color:var(--ink-soft);padding-top:.6rem}

/* ---------- notice detail ---------- */
.page-hero h1.notice-h{font-size:clamp(1.7rem,4.2vw,3.2rem);line-height:1.14;max-width:30ch}
.notice-meta{display:flex;gap:1.8rem;flex-wrap:wrap;margin-bottom:1.6rem;font-size:.88rem}
.notice-meta .nm-tag{color:var(--accent);font-weight:500}
.notice-meta .nm-date{color:var(--ink-soft)}
.notice-body p{font-size:clamp(1.02rem,1.3vw,1.15rem);color:var(--ink-soft);max-width:66ch;margin-bottom:1.3rem}
.notice-issued{margin-top:3rem;padding-top:1.5rem;border-top:1px solid var(--line);font-style:italic;font-size:.92rem;color:var(--ink-faint)}
.back-link{display:inline-flex;align-items:center;gap:.5rem;font-size:.95rem;font-weight:500;color:var(--accent);border-bottom:2px solid var(--accent);padding-bottom:.25rem;transition:color .25s,border-color .25s}
.back-link:hover{color:var(--accent-deep);border-color:var(--accent-deep)}

/* ---------- contact ---------- */
.address-block{font-weight:500;font-stretch:104%;font-size:clamp(1.25rem,2.5vw,1.9rem);line-height:1.45;letter-spacing:-.02em;margin-top:clamp(2rem,5vh,3rem)}
.contact-meta{margin-top:2.4rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:2rem}
.contact-meta h4{font-size:.85rem;font-weight:500;color:var(--ink-faint);margin-bottom:.7rem}
.contact-meta p,.contact-meta a{font-size:1rem;color:var(--ink-soft);line-height:1.9;display:block}
.contact-meta a:hover{color:var(--accent)}
.getting-there p{font-size:clamp(1rem,1.3vw,1.1rem);color:var(--ink-soft);max-width:66ch;margin-bottom:1.3rem}

/* ---------- footer ---------- */
footer{background:var(--ink);color:var(--paper);padding:clamp(4rem,10vh,7rem) var(--pad-x) 2rem}
.foot-top{display:flex;align-items:center;gap:1.2rem;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:clamp(2rem,5vh,3.5rem);flex-wrap:wrap}
.foot-logo{height:clamp(3.5rem,7vw,5.5rem);width:auto;flex:none}
.foot-mark{font-weight:600;font-stretch:112%;font-size:clamp(2rem,5.5vw,4.4rem);line-height:1.02;letter-spacing:-.035em}
.foot-mark em{font-style:normal;color:inherit}
@media(max-width:540px){.foot-top{gap:.9rem}.foot-logo{height:3rem}}
.foot-cols{display:grid;grid-template-columns:1.2fr 2fr 1.2fr;gap:clamp(2rem,5vw,5rem);padding:clamp(2.5rem,6vh,4rem) 0}
.foot-index{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem clamp(1.2rem,3vw,2.4rem)}
.foot-index .fi-label{font-size:.74rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,255,255,.62);line-height:1.4;margin:0 0 .6rem}
.foot-index li{line-height:1.5;padding:.22rem 0}
.foot-cols h4{font-size:1.15rem;font-weight:600;letter-spacing:-.01em;color:#fff;margin-bottom:1.1rem}
.foot-cols p,.foot-cols li{font-size:.92rem;color:rgba(255,255,255,.78);line-height:1.8}
.foot-cols ul{list-style:none}
.foot-cols a:hover{color:var(--accent-light)}
.foot-base{display:flex;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.2);padding-top:1.5rem;font-size:.85rem;color:rgba(255,255,255,.6)}
@media(max-width:860px){.foot-cols{grid-template-columns:1fr}}
@media(max-width:480px){.foot-index{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- events and calendar ---------- */
.ev-list{margin-top:clamp(1.5rem,4vh,2.5rem)}
.ev-row{
  display:grid;grid-template-columns:5.5rem 1fr auto;
  gap:clamp(1rem,2.5vw,2.2rem);align-items:start;
  padding:1.5rem .3rem;border-bottom:1px solid var(--line);
  transition:background .3s,opacity .3s;
}
.ev-list .ev-row:first-of-type{border-top:1px solid var(--line)}
.ev-row:hover{background:var(--paper-deep)}

/* The date is the thing people scan for, so it is set as a figure. */
.ev-when{display:flex;flex-direction:column;line-height:1;padding-top:.2rem}
.ev-day{font-weight:600;font-stretch:84%;font-size:2.1rem;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.ev-mon{font-size:.85rem;color:var(--ink-soft);margin-top:.25rem}
.ev-to{font-size:.8rem;color:var(--ink-faint);margin-top:.35rem}

.ev-body{min-width:0}
.ev-cat{display:inline-block;font-size:.82rem;font-weight:500;color:var(--accent);margin-bottom:.3rem}
.ev-title{font-weight:600;font-stretch:104%;font-size:clamp(1.05rem,1.7vw,1.25rem);letter-spacing:-.015em;line-height:1.28}
.ev-meta{font-size:.88rem;color:var(--ink-faint);margin-top:.3rem}
.ev-note{font-size:.95rem;color:var(--ink-soft);margin-top:.5rem;max-width:62ch}
/* The home list shows the heading and date only; detail lives on the page. */
.ev-list.compact .ev-note{display:none}

.ev-act{display:flex;align-items:center;white-space:nowrap;padding-top:.35rem}
.ev-ics{
  font-family:inherit;font-size:.88rem;font-weight:500;background:none;
  border:1px solid var(--line-firm);color:var(--accent);
  padding:.42rem .85rem;cursor:pointer;transition:border-color .25s,background .25s;
}
.ev-ics:hover{border-color:var(--accent);background:#fff}
.ev-done{font-size:.85rem;color:var(--ink-faint)}

/* Past events stay in sequence rather than being hidden, so the year reads
   as one continuous run. They lift on hover to stay readable. */
.ev-row.is-past{opacity:.46}
.ev-row.is-past:hover{opacity:.8;background:transparent}

.ev-month{display:flex;align-items:baseline;gap:1.2rem;margin:clamp(2.5rem,6vh,4rem) 0 .2rem}
.ev-month:first-child{margin-top:0}
.ev-month h2{font-weight:600;font-stretch:88%;font-size:clamp(1.3rem,2.4vw,1.8rem);letter-spacing:-.025em}
.ev-month::after{content:"";flex:1;height:1px;background:var(--line-firm)}

/* The single place the accent becomes a full rule: where today falls in the year. */
.ev-today{display:flex;align-items:center;gap:.9rem;font-size:.85rem;font-weight:500;color:var(--accent);padding:1.1rem .3rem .5rem}
.ev-today::after{content:"";flex:1;height:2px;background:var(--accent)}

.cal-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;margin-top:clamp(1.5rem,4vh,2.5rem)}
/* Year switcher: one year at a time, each year one tap away. */
.cal-years{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;margin-top:clamp(1.5rem,4vh,2.5rem)}
.cal-years:empty{display:none}
.cal-year,.cal-step{
  font-family:inherit;background:none;border:0;cursor:pointer;color:var(--ink-soft);
  font-size:clamp(1.15rem,2vw,1.45rem);font-weight:600;font-stretch:88%;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;padding:.35rem .7rem;border-bottom:2px solid transparent;
  transition:color .25s,border-color .25s;
}
.cal-year:hover{color:var(--ink)}
.cal-year.on{color:var(--ink);border-bottom-color:var(--accent)}
.cal-step{font-size:1.6rem;line-height:1;padding:.2rem .6rem;color:var(--accent)}
.cal-step:hover{color:var(--accent-deep)}
.cal-step:disabled{color:var(--line-firm);cursor:default}
.cal-filters{display:flex;flex-wrap:wrap;gap:.5rem}
.cal-chip{
  font-family:inherit;font-size:.88rem;background:none;
  border:1px solid var(--line-firm);color:var(--ink-soft);
  padding:.42rem .9rem;cursor:pointer;
  transition:background .25s,border-color .25s,color .25s;
}
.cal-chip:hover{border-color:var(--accent);color:var(--accent)}
.cal-chip.on{background:var(--ink);border-color:var(--ink);color:#fff}
.cal-sub{
  font-family:inherit;font-size:.9rem;font-weight:500;background:none;
  border:0;border-bottom:2px solid var(--accent);color:var(--accent);
  padding:0 0 .25rem;cursor:pointer;transition:color .25s,border-color .25s;
}
.cal-sub:hover{color:var(--accent-deep);border-color:var(--accent-deep)}

@media(max-width:720px){
  .ev-row{grid-template-columns:3.8rem 1fr;gap:1rem}
  .ev-act{grid-column:2;padding-top:.7rem}
  .ev-day{font-size:1.7rem}
}

/* ---------- focus ---------- */
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--accent);outline-offset:3px;border-radius:1px;
}
.dark a:focus-visible,.menu-overlay a:focus-visible,footer a:focus-visible,
.menu-close:focus-visible{outline-color:var(--accent-light)}

/* ---- results lookup --------------------------------------------------
   One child's result, fetched on demand. Set apart from the published
   rank lists above it, because the two answer different questions: one is
   a noticeboard, the other is private and arrives only when asked for. */
.lookup-section{padding-bottom:clamp(2rem,5vh,3.5rem)}
.lookup-form{margin-top:1.6rem;max-width:40rem}
.lookup-fields{display:flex;flex-wrap:wrap;gap:1.2rem}
.lookup-fields-2{margin-top:1.2rem}
.lookup-field{display:flex;flex-direction:column;gap:.4rem;flex:1 1 13rem}
.lookup-field span{font-size:.82rem;color:var(--ink-soft)}
.lookup-field input,.lookup-field select{
  font:inherit;font-size:1rem;color:var(--ink);background:var(--paper);
  border:1px solid var(--line-firm);border-radius:2px;padding:.6rem .7rem;
  /* iOS zooms the page when a focused field is under 16px. */
  min-height:2.75rem;
}
.lookup-field select{
  appearance:none;-webkit-appearance:none;padding-right:2.2rem;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,var(--ink-soft) 50%),
    linear-gradient(135deg,var(--ink-soft) 50%,transparent 50%);
  background-position:calc(100% - 1.15rem) 55%,calc(100% - .8rem) 55%;
  background-size:.35rem .35rem;background-repeat:no-repeat;
}
.lookup-field[hidden]{display:none}
.lookup-field input:focus-visible,.lookup-field select:focus-visible{
  outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent);
}
.lookup-turnstile{margin-top:1.2rem;min-height:65px}
.lookup-form .hero-cta{margin-top:1.2rem}
.lookup-form button[disabled]{opacity:.6;cursor:progress}

.lookup-result{margin-top:1.6rem;max-width:40rem}
.lookup-error{color:var(--house-red)}
.lookup-card{
  border:1px solid var(--line);background:var(--paper-deep);
  padding:1.2rem 1.3rem;margin-bottom:1rem;
}
.lookup-name{font-size:1.15rem;font-weight:600;margin:0}
.lookup-meta{font-size:.85rem;color:var(--ink-soft);margin:.25rem 0 1rem}
.lookup-marks{width:100%;border-collapse:collapse}
.lookup-marks th,.lookup-marks td{
  text-align:left;padding:.45rem 0;border-bottom:1px solid var(--line);
  font-size:.92rem;font-weight:400;
}
.lookup-marks th{color:var(--ink-soft)}
.lookup-marks td{text-align:right;font-variant-numeric:tabular-nums}
.lookup-marks tr:last-child th,.lookup-marks tr:last-child td{border-bottom:0}

/* ---- asking for a photograph to be taken down ------------------------
   A link on the photograph itself, not an address in the footer: the
   person who wants this is looking at the picture of their child. */
.photo-report{
  display:block;margin-top:.45rem;padding:0;border:0;background:none;
  font:inherit;font-size:.74rem;color:var(--ink-faint);text-align:left;
  text-decoration:underline;text-underline-offset:2px;cursor:pointer;
}
.photo-report:hover{color:var(--house-red)}
.photo-report:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.photo-report[disabled]{cursor:default;text-decoration:none}

.removal-overlay{
  position:fixed;inset:0;z-index:9998;display:flex;align-items:center;
  justify-content:center;padding:1.25rem;background:rgba(24,32,25,.55);
}
.removal-card{
  background:var(--paper);border:1px solid var(--line-firm);
  padding:clamp(1.3rem,4vw,2rem);width:min(34rem,100%);
  max-height:90vh;overflow-y:auto;
}
.removal-title{font-size:1.2rem;font-weight:600;margin:0 0 .4rem}
.removal-about{font-size:.82rem;color:var(--ink-faint);margin:0 0 .9rem}
.removal-lead{font-size:.95rem;color:var(--ink-soft);margin:0 0 1.2rem}
.removal-field{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}
.removal-field span{font-size:.82rem;color:var(--ink-soft)}
.removal-field textarea,.removal-field input{
  font:inherit;font-size:1rem;color:var(--ink);background:var(--paper);
  border:1px solid var(--line-firm);border-radius:2px;padding:.6rem .7rem;
  min-height:2.75rem;resize:vertical;
}
.removal-field textarea:focus-visible,.removal-field input:focus-visible{
  outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent);
}
.removal-hint{font-size:.78rem;color:var(--ink-faint);margin:-.5rem 0 1rem}
.removal-turnstile{margin-top:1rem}
.removal-status{min-height:1.25rem}
.removal-error{color:var(--house-red);font-size:.88rem;margin:0}
.removal-actions{display:flex;gap:.8rem;align-items:center;margin-top:.6rem}
.removal-cancel{
  font:inherit;font-size:.9rem;background:none;border:0;padding:.5rem 0;
  color:var(--ink-soft);text-decoration:underline;cursor:pointer;
}
.removal-cancel:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.removal-actions button[disabled]{opacity:.6;cursor:progress}

@media(prefers-reduced-motion:reduce){
  *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}

/* ---- news ----------------------------------------------------------------
   One card shape for the homepage row and the news page. The row scrolls
   sideways and snaps, so a phone shows one and a bit and invites a swipe. */
.news-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(17rem,22rem);gap:clamp(.9rem,1.6vw,1.3rem);
  overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.6rem;margin-top:clamp(1.8rem,4vh,2.6rem);
  scrollbar-width:thin;overscroll-behavior-x:contain}
.news-row .news-card{scroll-snap-align:start}
.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(18rem,1fr));gap:clamp(1rem,2vw,1.6rem)}
.news-card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);color:inherit;text-decoration:none;
  transition:border-color .2s}
.news-card:hover,.news-card:focus-visible{border-color:var(--ink)}
.nc-photo{aspect-ratio:4/3;background:var(--paper-deep);overflow:hidden}
.nc-photo img{display:block;width:100%;height:100%;object-fit:cover}
.nc-empty{display:flex;align-items:flex-end;padding:1rem;font-weight:600;color:var(--ink-soft)}
.nc-body{padding:1rem 1.1rem 1.2rem}
.nc-meta{font-size:.78rem;color:var(--accent);margin-bottom:.45rem}
.nc-title{font-size:1.08rem;font-weight:600;line-height:1.3;margin:0}
.nc-text{font-size:.9rem;color:var(--ink-soft);line-height:1.5;margin:.5rem 0 0}
.np-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:.8rem;margin:1.6rem 0 2rem;max-width:60rem}
.np-photo{display:block;background:var(--paper-deep);aspect-ratio:4/3;overflow:hidden}
.np-photo img{display:block;width:100%;height:100%;object-fit:cover}
.np-photos .np-first{grid-column:1/-1;aspect-ratio:auto}
.np-photos .np-first img{height:auto;max-height:70vh;object-fit:contain;background:var(--paper-deep)}
.np-body p{white-space:pre-line}
@media(max-width:700px){.news-row{grid-auto-columns:82%}}
