/* Nyakasura School: public site styles.
   Palette from the crest (red lion on white) and the uniform (khaki kilts, red and white belt). */
:root {
  --red: #B5121B;          /* crest red, darkened for text contrast */
  --red-bright: #E02127;   /* the crest itself */
  --red-deep: #7E0D14;
  --ink: #1C1917;          /* headings, dark bands */
  --charcoal: #241F1C;
  --text: #36302B;
  --muted: #6A6159;
  --khaki: #C2A878;        /* decorative accents on dark */
  --khaki-deep: #8C7448;
  --sand: #F4EEE3;         /* tinted sections */
  --paper: #FCFAF6;        /* page */
  --line: #E7DFD1;
  --white: #fff;
  --display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 12px 32px -12px rgba(28, 25, 23, .22);
  --step-5: clamp(2.6rem, 1.6rem + 4.2vw, 4.75rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-2: clamp(1.35rem, 1.2rem + .6vw, 1.7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red-deep); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.1; font-weight: 600; margin: 0; letter-spacing: -.01em; }
h3 { font-family: var(--body); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--khaki); outline-offset: 2px; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
.icon .fill, .socials .icon { fill: currentColor; stroke: none; }
.socials .icon use[href="#i-instagram"] { fill: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap--mid { width: min(960px, 100% - 2.5rem); }
.wrap--narrow { width: min(760px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.35rem; border-radius: var(--radius);
  border: 1.5px solid transparent; font: 600 .98rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn--small { padding: .5rem .9rem; font-size: .9rem; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--glass { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.btn--glass:hover { background: #fff; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--red); }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon, a:hover > .text-link .icon { transform: translateX(4px); }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--khaki); }
.badge { display: inline-block; margin-left: .3rem; padding: .1rem .5rem; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; }

/* ---------- top bars ---------- */
.notice-bar { background: var(--red); color: #fff; font-size: .92rem; }
.notice-bar .wrap { padding: .5rem 0; text-align: center; }
.notice-bar a { color: #fff; text-decoration: none; display: inline-flex; gap: .45rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.notice-bar .u { text-decoration: underline; font-weight: 600; }
.utility { background: var(--charcoal); color: rgba(255, 255, 255, .78); font-size: .86rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.utility .group { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.utility a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.utility a:hover { color: #fff; }
.utility .socials { display: flex; gap: .8rem; }
.utility-apply { background: var(--red); color: #fff !important; font-weight: 700; padding: 0 1rem; align-self: stretch; }
.utility-apply:hover { background: var(--red-bright); }

/* ---------- header and mega menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 250, 246, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .35); }
.site-header > .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 44px; height: auto; }
.brand-name { font: 700 1.55rem/1 var(--display); letter-spacing: .01em; }
.brand-name small { display: block; font: 600 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.brand--light { color: #fff; }
.brand--light .brand-name small { color: var(--khaki); }
.nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { display: flex; align-items: stretch; }
.nav-list > li { display: flex; align-items: center; }
.nav-top { display: flex; align-items: center; padding: 0 .75rem; min-height: 84px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; }
.nav-top::after { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: 22px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-top:hover::after, .nav-top[aria-current]::after, .has-mega:hover > .nav-top::after, .has-mega.open > .nav-top::after { transform: scaleX(1); }
.nav-top:hover { color: var(--ink); }
.sub-toggle { border: 0; background: none; color: var(--muted); padding: .3rem .2rem; margin-left: -.55rem; display: flex; }
.sub-toggle .icon { transition: transform .2s; width: .9em; }
.has-mega.open .sub-toggle .icon { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 3px solid var(--red); box-shadow: 0 24px 40px -24px rgba(28, 25, 23, .35);
  visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.open > .mega { visibility: visible; opacity: 1; transform: none; transition-delay: .08s, .08s, 0s; }
.has-mega.closed > .mega { visibility: hidden; opacity: 0; }
.mega-inner { display: grid; grid-template-columns: 1.1fr repeat(2, 1fr) 1.45fr; gap: 2.5rem; padding: 2.2rem 0 2.4rem; }
.mega-intro { border-right: 1px solid var(--line); padding-right: 2rem; display: grid; align-content: start; gap: .9rem; }
.mega-intro p { color: var(--muted); font-size: .95rem; }
.mega-title { font: 600 2rem/1.05 var(--display); color: var(--ink); text-decoration: none; display: flex; gap: .5rem; align-items: center; }
.mega-title .icon { width: .7em; color: var(--red); transition: transform .2s; }
.mega-title:hover .icon { transform: translateX(4px); }
.mega-col h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.mega-col li + li { margin-top: .15rem; }
.mega-col a { display: block; padding: .35rem 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.mega-col a:hover { color: var(--red); }
.mega-feature { grid-column: -2 / -1; display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; align-items: start; text-decoration: none; color: var(--text); background: var(--sand); border-radius: var(--radius); padding: .9rem; font-size: .93rem; line-height: 1.5; }
.mega-feature img { width: 150px; height: 150px; object-fit: cover; border-radius: 4px; }
.mega-feature small { display: block; font: 700 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .45rem; }
.mega-feature strong { display: block; font: 600 1.35rem/1.15 var(--display); color: var(--ink); margin-bottom: .35rem; }
.mega-feature em { display: block; font-style: normal; font-weight: 700; color: var(--red); margin-top: .6rem; }
.mega-feature:hover strong { color: var(--red); }
.nav-mobile-extra { display: none; }
.header-apply { flex: none; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: .55rem; margin-left: auto; color: var(--ink); }
.menu-btn .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- home: hero ---------- */
.hero { position: relative; color: #fff; min-height: min(86vh, 780px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--charcoal); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-out both; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20, 16, 14, .86) 0%, rgba(20, 16, 14, .55) 48%, rgba(20, 16, 14, .15) 100%), linear-gradient(0deg, rgba(20, 16, 14, .75), transparent 45%); }
.hero-inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding: 6rem 0 7.5rem; }
.hero-text { max-width: 690px; display: grid; gap: 1.3rem; animation: rise .9s .1s ease-out both; }
.hero h1 { color: #fff; font-size: var(--step-5); font-weight: 600; line-height: 1.02; }
.hero p { font-size: 1.18rem; color: rgba(255, 255, 255, .88); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .4rem; }
.hero .hero-motto { font: italic 500 1.2rem/1.3 var(--display); color: rgba(255, 255, 255, .8); margin-top: .6rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero-motto span { font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--khaki); margin-left: .5rem; font-style: normal; }
.seal { position: relative; width: 200px; height: 200px; flex: none; animation: rise .9s .35s ease-out both; }
.seal svg { width: 100%; height: 100%; animation: spin 60s linear infinite; }
.seal-outer { fill: rgba(20, 16, 14, .55); stroke: rgba(194, 168, 120, .7); stroke-width: 1.5; }
.seal-inner { fill: rgba(255, 255, 255, .95); }
.seal-text { font: 700 12.5px var(--body); letter-spacing: 3.2px; fill: var(--khaki); }
.seal img { position: absolute; width: 70px; left: 50%; top: 50%; transform: translate(-50%, -52%); }

/* pathway cards overlapping the hero */
.pathways { position: relative; z-index: 3; margin-top: -4.2rem; }
.pathway-card { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.pathway-card li + li { border-left: 1px solid var(--line); }
.pathway-card a { position: relative; display: grid; gap: .25rem; padding: 1.7rem 4rem 1.7rem 2rem; text-decoration: none; color: var(--muted); height: 100%; transition: background .2s; }
.pathway-card a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transition: transform .25s; }
.pathway-card a:hover { background: var(--sand); }
.pathway-card a:hover::before { transform: scaleY(1); }
.pathway-card small { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.pathway-card strong { font: 600 1.75rem/1.1 var(--display); color: var(--ink); }
.pathway-card .icon { position: absolute; right: 1.6rem; top: 50%; transform: translateY(-50%); width: 1.5rem; height: 1.5rem; color: var(--red); transition: transform .2s; }
.pathway-card a:hover .icon { transform: translate(5px, -50%); }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--charcoal); color: rgba(255, 255, 255, .82); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--khaki); }
.section-head { display: grid; gap: .9rem; max-width: 720px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: var(--step-4); }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section--dark .section-head p { color: rgba(255, 255, 255, .7); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

/* welcome */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.photo-pair { position: relative; padding: 0 0 4.5rem 0; }
.pp-main { width: 86%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius); }
.pp-small { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--paper); border-radius: var(--radius); }
.pp-badge { position: absolute; left: 1.5rem; bottom: 1.5rem; background: var(--red); color: #fff; padding: 1rem 1.3rem; border-radius: var(--radius); font-size: .82rem; font-weight: 600; letter-spacing: .04em; display: grid; line-height: 1.2; }
.pp-badge b { font: 600 2.4rem/1 var(--display); }
.welcome-text { display: grid; gap: 1.2rem; }
.welcome-text h2 { font-size: var(--step-4); }
.welcome-text .link-row { margin-top: .6rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.facts li { padding: 1.8rem 1.5rem 0 0; display: grid; gap: .35rem; align-content: start; }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts strong { font: 600 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--display); color: var(--red); }
.facts span { color: var(--muted); font-size: .98rem; max-width: 22ch; }

/* head master */
.head-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { display: block; height: 100%; }
.video-play img { opacity: .82; transition: opacity .2s, transform .4s; }
.video-play:hover img { opacity: 1; transform: scale(1.02); }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(181, 18, 27, .25); transition: transform .2s; }
.play svg { width: 34px; fill: #fff; margin-left: 4px; }
.video-play:hover .play { transform: translate(-50%, -50%) scale(1.07); }
.head-photo { margin: 0; position: relative; max-width: 420px; }
.head-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.head-photo figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; background: #fff; padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .9rem; color: var(--muted); display: grid; }
.head-photo figcaption strong, .signature strong { color: var(--ink); font-size: 1rem; }
.head-text { display: grid; gap: 1.3rem; justify-items: start; }
.head-text blockquote { margin: 0; font: italic 500 var(--step-3)/1.2 var(--display); color: var(--ink); border-left: 3px solid var(--red); padding-left: 1.4rem; }
.signature { display: flex; align-items: center; gap: .9rem; color: var(--muted); font-size: .92rem; }
.signature img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.signature span { display: grid; line-height: 1.35; }

/* pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.pillar { position: relative; display: grid; align-content: start; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 1.8rem; text-decoration: none; color: var(--text); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.pillar-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pillar:hover .pillar-img img { transform: scale(1.05); }
.pillar-num { position: absolute; top: 1rem; left: 1rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 600 1.3rem/1 var(--display); }
.pillar h3, .pillar p, .pillar .text-link { margin-inline: 1.6rem; }
.pillar h3 { font: 600 1.9rem/1.1 var(--display); margin-top: .7rem; }
.pillar p { color: var(--muted); }

/* timeline */
.timeline-band { position: relative; overflow: hidden; }
.timeline-band::before { content: ''; position: absolute; inset: 0; background: url(/images/campus-map.svg) right -120px center / 900px auto no-repeat; opacity: .5; pointer-events: none; }
.timeline-band .wrap { position: relative; }
.tl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.tl-controls { display: flex; gap: .6rem; margin-bottom: 2.6rem; }
.tl-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: none; color: #fff; display: grid; place-items: center; }
.tl-btn:hover { background: #fff; color: var(--ink); }
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2.4rem 0 1.4rem; position: relative; scrollbar-width: thin; scrollbar-color: var(--khaki) transparent; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 2.4rem; height: 1px; background: rgba(194, 168, 120, .45); min-width: 100%; }
.timeline li { scroll-snap-align: start; position: relative; padding-top: 1.6rem; display: grid; gap: .7rem; align-content: start; }
.timeline li::before { content: ''; position: absolute; top: -6px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 4px var(--charcoal); }
.tl-year { font: 600 2.6rem/1 var(--display); color: var(--khaki); }
.timeline img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; opacity: .92; }
.tl-ph { aspect-ratio: 16 / 10; border-radius: 4px; display: grid; place-items: center; background: rgba(194, 168, 120, .12); border: 1px solid rgba(194, 168, 120, .3); }
.tl-ph img { width: 54px; height: auto; aspect-ratio: auto; opacity: .85; }
.timeline h3 { font-size: 1.1rem; }
.timeline p { font-size: .95rem; color: rgba(255, 255, 255, .7); }

/* explore tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 1rem; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; }
.tile--wide { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 16, 14, .85), rgba(20, 16, 14, 0) 60%); }
.tile span { position: absolute; z-index: 1; left: 1.4rem; right: 1.4rem; bottom: 1.3rem; font: 600 1.45rem/1.15 var(--display); }
.tile small { display: block; font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--khaki); margin-bottom: .45rem; }
.tile:hover img { transform: scale(1.06); }
.tile:hover { color: #fff; }

/* news + noticeboard */
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 2rem; align-items: start; }
.lead-story { display: grid; gap: 1.1rem; }
.lead-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lead-story:hover .lead-img img { transform: scale(1.03); }
.lead-story h3 { font: 600 var(--step-2)/1.15 var(--display); margin: .35rem 0 .5rem; }
time { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.lead-story h3 a, .news-item h3 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.lead-story h3 a:hover, .news-item h3 a:hover, .post-card h3 a:hover { color: var(--red); }
.lead-story p { color: var(--muted); }
.news-list { display: grid; gap: 1.3rem; }
.news-item { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item img { width: 96px; height: 80px; object-fit: cover; border-radius: 4px; }
.news-item h3 { font-size: 1rem; margin-top: .25rem; }
.side-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; }
.side-card h3 { display: flex; align-items: center; gap: .5rem; font: 600 1.6rem/1.1 var(--display); }
.side-card h3 .icon { color: var(--red); width: 1.2rem; }
.side-card h3.mt { margin-top: .8rem; }
.notices li { padding: .8rem 0; border-bottom: 1px dashed var(--line); display: grid; gap: .2rem; }
.notices li:first-child { padding-top: 0; }
.notices a, .notices strong { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.35; }
.notices a:hover { color: var(--red); }
.quick-links a { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.quick-links a:hover { color: var(--red); }
.quick-links .icon { color: var(--red); }
.events { display: grid; gap: .9rem; }
.event-row { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; }
.event-row strong { color: var(--ink); display: block; line-height: 1.3; }
.event-row small { color: var(--muted); }
.event-row p { margin-top: .4rem; color: var(--muted); }
.date-tile { display: grid; place-items: center; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: .35rem 0; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); background: #fff; }
.date-tile b { font: 600 1.6rem/1 var(--display); color: var(--ink); }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1rem; }
.quote blockquote { margin: 0; font: italic 500 1.35rem/1.35 var(--display); color: var(--ink); }
.quote figcaption { color: var(--muted); font-size: .92rem; display: grid; }
.quote figcaption strong { color: var(--ink); }

/* alumni */
.alumni-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.alumni-grid > div { display: grid; gap: 1.1rem; justify-items: start; }
.alumni-grid h2 { font-size: var(--step-4); }
.alumni-grid p { color: var(--muted); font-size: 1.08rem; }
.alumni-names { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.alumni-names li { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.alumni-names li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.alumni-names strong { font: 600 1.25rem/1.2 var(--display); color: var(--ink); }
.alumni-names span { font-size: .9rem; color: var(--muted); }

/* call to action */
.cta-band { position: relative; color: #fff; overflow: hidden; background: var(--red-deep); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(126, 13, 20, .95), rgba(126, 13, 20, .78) 55%, rgba(126, 13, 20, .35)); }
.cta-inner { position: relative; z-index: 2; padding: clamp(4rem, 8vw, 7rem) 0; display: grid; gap: 1.2rem; justify-items: start; }
.cta-inner h2 { color: #fff; font-size: var(--step-4); }
.cta-inner p { max-width: 54ch; font-size: 1.12rem; color: rgba(255, 255, 255, .9); }

/* ---------- inner pages ---------- */
.page-hero { position: relative; background: var(--charcoal) url(/images/campus-map.svg) right -80px center / 820px auto no-repeat; color: rgba(255, 255, 255, .82); padding: clamp(3rem, 6vw, 5rem) 0; overflow: hidden; }
.page-hero--photo { background: var(--charcoal); padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero--photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 16, 14, .88), rgba(20, 16, 14, .45)), linear-gradient(0deg, rgba(20, 16, 14, .6), transparent 60%); }
.page-hero .wrap { position: relative; z-index: 2; display: grid; gap: 1rem; }
.page-hero h1 { color: #fff; font-size: var(--step-5); max-width: 18ch; }
.page-hero p { font-size: 1.18rem; max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.crumbs a { color: var(--khaki); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.with-side { display: grid; grid-template-columns: 250px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.side-nav { position: sticky; top: 110px; border-top: 3px solid var(--red); background: #fff; border-radius: 0 0 var(--radius) var(--radius); padding: 1.3rem 0 .6rem; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.side-nav h2 { font: 700 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 1.3rem .8rem; }
.side-nav a { display: block; padding: .6rem 1.3rem; color: var(--ink); text-decoration: none; font-weight: 600; border-left: 3px solid transparent; margin-left: -1px; }
.side-nav a:hover { background: var(--sand); }
.side-nav a[aria-current] { border-left-color: var(--red); color: var(--red); background: var(--sand); }
.page-body { min-width: 0; }
.prose { font-size: 1.1rem; line-height: 1.75; max-width: 72ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--step-3); margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 0; display: grid; gap: .55rem; }
.prose li { position: relative; padding-left: 1.6rem; }
.prose li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.prose strong { color: var(--ink); }
.float-portrait { float: right; width: min(300px, 40%); margin: 0 0 1.5rem 2.5rem; }
.float-portrait img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.float-portrait figcaption { font-size: .9rem; color: var(--muted); margin-top: .7rem; display: grid; }
.float-portrait figcaption strong { color: var(--ink); }
.group-title { font-size: var(--step-3); margin: 3rem 0 1.5rem; clear: both; }
.wrap--mid > .group-title:first-child { margin-top: 0; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.6rem; }
.person { display: grid; gap: .3rem; align-content: start; }
.person img, .avatar { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); margin-bottom: .6rem; }
.avatar { display: grid; place-items: center; background: var(--sand); color: var(--khaki-deep); font: 600 3rem/1 var(--display); }
.people--names .avatar { aspect-ratio: 1; font-size: 2.4rem; }
.person strong { font: 600 1.3rem/1.2 var(--display); color: var(--ink); }
.person span { color: var(--muted); font-size: .92rem; }
.person p { font-size: .95rem; margin-top: .3rem; }
.vtimeline { border-left: 2px solid var(--line); margin-left: .6rem; display: grid; gap: 1.8rem; }
.vtimeline li { position: relative; padding-left: 2rem; display: grid; grid-template-columns: 90px 1fr; gap: 1rem; }
.vtimeline li::before { content: ''; position: absolute; left: -7px; top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.vtimeline .tl-year { color: var(--red); font-size: 2rem; }
.vtimeline p { color: var(--muted); margin-top: .3rem; }
.callout { margin-top: 3rem; background: var(--sand); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 2rem; display: grid; gap: .9rem; justify-items: start; clear: both; }
.callout h2 { font-size: var(--step-2); }
.notice-inline { background: var(--sand); border-left: 4px solid var(--khaki-deep); padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 2rem; }
.empty { color: var(--muted); padding: 1.5rem 0; }

/* news cards and articles */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2rem 1.6rem; }
.post-card { display: grid; gap: 1rem; align-content: start; }
.post-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-img .ph { display: grid; place-items: center; height: 100%; }
.post-card-img .ph img { width: 70px; height: auto; opacity: .5; }
.post-card-body { display: grid; gap: .45rem; }
.post-card h3 { font: 600 1.45rem/1.2 var(--display); }
.post-card p { color: var(--muted); font-size: .98rem; }
.article-head { padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.article-head .wrap { display: grid; gap: 1rem; }
.article-head .crumbs { color: var(--muted); }
.article-head .crumbs a { color: var(--red); }
.article-head h1 { font-size: var(--step-5); }
.standfirst { font-size: 1.3rem; color: var(--muted); line-height: 1.5; }
.article-img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2.5rem; }
article > .wrap--narrow:last-child { padding-bottom: 5rem; }

/* noticeboard, downloads, jobs */
.notice-list { display: grid; gap: 1.2rem; }
.notice-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; display: grid; gap: .5rem; }
.notice-list li.pinned { border-left: 4px solid var(--red); }
.notice-list h2 { font: 600 1.6rem/1.2 var(--display); }
.notice-list p { color: var(--muted); }
.files { display: grid; gap: .7rem; }
.files a { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.files a:hover { border-color: var(--red); }
.files .icon { width: 1.6rem; height: 1.6rem; color: var(--red); }
.files span { flex: 1; display: grid; }
.files small { color: var(--muted); }
.files .dl { color: var(--muted); }
.jobs { display: grid; gap: 1rem; }
.jobs a { display: grid; gap: .3rem; padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); text-decoration: none; color: var(--muted); }
.jobs a:hover { box-shadow: var(--shadow); }
.jobs strong { font: 600 1.5rem/1.2 var(--display); color: var(--ink); }
.jobs small { color: var(--red); font-weight: 700; }
.jobs--closed a { border-left-color: var(--line); }
.jobs--closed small { color: var(--muted); }

/* gallery */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chips a { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; background: #fff; }
.chips a span { color: var(--muted); font-weight: 400; margin-left: .2rem; }
.chips a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips a[aria-current] span { color: rgba(255, 255, 255, .7); }
.masonry { columns: 3 300px; column-gap: 1rem; }
.masonry li { break-inside: avoid; margin-bottom: 1rem; }
.shot { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; transition: transform .5s; }
.shot:hover img { transform: scale(1.03); }
.shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); color: #fff; font-weight: 600; font-size: .95rem; }
.shot-cap small { display: block; color: var(--khaki); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 8, 7, .92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: .8rem; padding: 3rem 4.5rem; }
.lightbox img { max-height: calc(100vh - 8rem); max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: #fff; display: flex; gap: 1rem; }
.lb-count { color: rgba(255, 255, 255, .6); }
.lb-close, .lb-nav { position: fixed; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }

/* contact and forms */
.contact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.contact-tiles li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .3rem; align-content: start; }
.contact-tiles .icon { width: 1.6rem; height: 1.6rem; color: var(--red); margin-bottom: .4rem; }
.contact-tiles h2 { font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-tiles a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-tiles a:hover { color: var(--red); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2rem; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); display: grid; gap: 1.1rem; }
.form-card h2 { font-size: var(--step-3); }
.field { display: grid; gap: .4rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(181, 18, 27, .12); }
.form-card .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.slots { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.slots label { position: relative; }
.slots input { position: absolute; opacity: 0; }
.slots span { display: block; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: .92rem; cursor: pointer; background: var(--paper); }
.slots input:checked + span { border-color: var(--red); background: rgba(181, 18, 27, .06); color: var(--red); }
.slots input:focus-visible + span { outline: 3px solid var(--khaki); }
.map-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-foot { padding: 1.4rem 1.6rem; display: grid; gap: .9rem; }
.map-foot h2 { font-size: var(--step-2); }
.attrib { color: var(--muted); font-size: .78rem; }
.attrib a { color: inherit; }
.checks { display: grid; gap: .5rem; }
.checks li { display: flex; gap: .6rem; }
.checks .icon { color: var(--red); margin-top: .2rem; }

/* campus map */
.campus-map { display: block; width: 100%; height: auto; background: #F6F1E7; }
.campus-map path { fill: none; }
.campus-map .cm-bld, .campus-map .cm-campus, .campus-map .cm-green, .campus-map .cm-wood { stroke: none; }
.campus-map .cm-bg { fill: #F6F1E7; }
.campus-map .cm-bld { fill: #D8CBAE; }
.campus-map .cm-campus { fill: var(--red); }
.campus-map .cm-green { fill: #E2E7D3; }
.campus-map .cm-wood { fill: #D3DDBF; }
.campus-map .cm-water { stroke: #7FA9C4; stroke-width: 3; }
.campus-map .cm-road-major { stroke: var(--ink); stroke-width: 9; }
.campus-map .cm-road { stroke: #fff; stroke-width: 7; }
.campus-map .cm-track { stroke: #B8AD98; stroke-width: 2; stroke-dasharray: 6 4; }
.campus-map .cm-path { stroke: #C6BCA8; stroke-width: 2; stroke-dasharray: 3 3; }
.cm-pin circle { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.cm-pin .pin-pulse { fill: var(--ink); stroke: none; opacity: .25; transform-origin: 499.5px 344px; animation: pulse 2.4s ease-out infinite; }
.cm-label rect { fill: var(--ink); }
.cm-label text { fill: #fff; font: 700 17px var(--body); }
.cm-north path { fill: var(--ink); }
.cm-north text { font: 700 15px var(--body); fill: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, .72); padding: 4.5rem 0 0; font-size: .97rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-motto { font: italic 500 1.5rem/1.3 var(--display); color: #fff; text-align: right; }
.footer-motto small { display: block; font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--khaki); margin-top: .4rem; font-style: normal; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3rem 0; }
.site-footer h3 { color: #fff; font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer ul { display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.site-footer .socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.site-footer .socials a:hover { background: var(--red); border-color: var(--red); }
.contact-list li { display: flex; gap: .7rem; }
.contact-list .icon { color: var(--khaki); margin-top: .25rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 1.8rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.legal-links { display: flex; gap: 1.4rem; }

/* cookie notice and flash */
.cookie { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; font-size: .9rem; }
.cookie[hidden] { display: none; }
.flash { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; gap: .8rem; align-items: center; background: var(--ink); color: #fff; padding: .9rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow); max-width: min(560px, 100% - 2rem); }
.flash .icon { color: #8fd19e; }
.flash.error { background: var(--red-deep); }
.flash.error .icon { color: #fff; }
.flash button { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes drift { from { transform: scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { transform: scale(.6); opacity: .45; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav-top { padding: 0 .55rem; font-size: .95rem; }
  .nav-top::after { left: .55rem; right: .55rem; }
  .mega-inner { grid-template-columns: repeat(2, 1fr) 1.4fr; }
  .mega-intro { display: none; }
}
@media (max-width: 1120px) {
  /* backdrop-filter would make the fixed menu panel position itself inside the header */
  .site-header { backdrop-filter: none; background: var(--paper); }
  .header-apply { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header > .wrap { min-height: 72px; }
  .nav { position: fixed; left: 0; right: 0; top: var(--nav-top, 72px); bottom: 0; background: #fff; display: none; flex-direction: column; align-items: stretch; overflow-y: auto; padding: .5rem 1.25rem 2rem; border-top: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-top { min-height: 56px; flex: 1; padding: 0; font-size: 1.08rem; }
  .nav-top::after { display: none; }
  .nav-top[aria-current] { color: var(--red); }
  .sub-toggle { margin: 0; padding: .8rem; border-left: 1px solid var(--line); }
  .mega, .has-mega:hover > .mega, .has-mega:focus-within > .mega { position: static; display: none; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; flex-basis: 100%; transition: none; }
  .has-mega.open > .mega { display: block; }
  .mega .wrap { width: 100%; }
  .mega-inner { grid-template-columns: 1fr; gap: 1.2rem; padding: 0 0 1.2rem 1rem; }
  .mega-feature { display: none; }
  .mega-col h3 { margin-bottom: .4rem; }
  .nav-mobile-extra { display: grid; gap: .8rem; padding-top: 1.5rem; }
  .nav-call { display: flex; gap: .5rem; align-items: center; justify-content: center; font-weight: 600; text-decoration: none; padding: .5rem; }
  body.menu-open { overflow: hidden; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .side-card { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .welcome-grid, .head-grid, .alumni-grid, .contact-grid, .with-side { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar:last-child { grid-column: 1 / -1; }
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .seal { width: 150px; height: 150px; }
  .seal img { width: 52px; }
}
@media (max-width: 760px) {
  .utility .hide-sm { display: none; }
  .notice-bar { font-size: .85rem; }
  .notice-bar .wrap { padding: .45rem 0; }
  .notice-bar .u, .notice-bar .icon { display: none; }
  .pathways { margin-top: -2.5rem; }
  .pathway-card { grid-template-columns: 1fr; }
  .pathway-card li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pathway-card a { padding: 1.2rem 3.5rem 1.2rem 1.4rem; }
  .pathway-card strong { font-size: 1.45rem; }
  .hero-inner { flex-direction: column; align-items: flex-start; padding: 4rem 0 5.5rem; }
  .seal { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .tl-controls { display: none; }
  .float-portrait { float: none; width: 100%; max-width: 320px; margin: 0 0 1.5rem; }
  .vtimeline li { grid-template-columns: 1fr; gap: .2rem; }
  .footer-motto { text-align: left; }
  .page-hero { background-size: 600px auto; background-position: right -220px center; }
}
@media (max-width: 560px) {
  .wrap, .wrap--mid, .wrap--narrow { width: calc(100% - 2rem); }
  .brand-name { font-size: 1.3rem; }
  .brand-name small { font-size: .62rem; letter-spacing: .1em; }
  .brand-mark { width: 36px; }
  .hero-actions .btn { width: 100%; }
  .pillar-grid, .tiles, .field-row, .footer-grid, .alumni-names { grid-template-columns: 1fr; }
  .pillar:last-child, .tile--wide { grid-column: auto; }
  .tiles { grid-auto-rows: 200px; }
  .alumni-names li:nth-child(even) { padding-left: 0; border-left: 0; }
  .facts span { font-size: .9rem; }
  .facts li + li { padding-left: 1rem; }
  .facts li { padding-right: .5rem; }
  .cookie { left: .5rem; right: .5rem; max-width: none; }
  .utility .group:first-child a:not(:first-child) { display: none; }
}

/* ---------- online application and alumni forms ---------- */
.apply-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }
.apply-side { display: grid; gap: 1.2rem; position: sticky; top: 110px; }
.apply-side .side-card { gap: .8rem; }
.apply-side .side-card h3 { font-size: 1.4rem; }
.side-card--warn { border-top-color: var(--khaki-deep); font-size: .95rem; }
.side-card--warn p + p { margin-top: -.2rem; font-weight: 600; color: var(--ink); }
.level-tabs { display: grid; gap: .5rem; }
.level-tabs a { display: grid; padding: .9rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; font: 600 1.35rem/1.15 var(--display); }
.level-tabs small { font: 700 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.level-tabs a:hover { border-color: var(--ink); }
.level-tabs a[aria-current] { border-color: var(--red); background: var(--red); color: #fff; }
.level-tabs a[aria-current] small { color: rgba(255, 255, 255, .75); }
.apply-form { gap: 0; }
.apply-form > h2 { margin-bottom: 1rem; }
.step { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 1.6rem 0 .4rem; display: grid; gap: 1.1rem; min-width: 0; }
.step > legend { display: flex; align-items: center; gap: .7rem; font: 600 1.6rem/1 var(--display); color: var(--ink); padding: 0; float: left; width: 100%; margin-bottom: .2rem; }
.step > legend + * { clear: both; }
.step > legend span { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 .95rem/1 var(--body); }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.grades { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 1rem; padding: 1.1rem; background: var(--sand); border-radius: var(--radius); }
.grades select { background: #fff; }
.aggregate { display: block; padding: .75rem .9rem; border: 1.5px dashed var(--line); border-radius: var(--radius); font-weight: 700; color: var(--ink); }
.pair { display: grid; grid-template-columns: 1fr 110px; gap: .5rem; }
.declare { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--sand); border-radius: var(--radius); font-weight: 600; color: var(--ink); cursor: pointer; }
.declare input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--red); }
.apply-form .btn--lg { justify-self: start; margin: .4rem 0 .6rem; }
.form-errors { background: #fbe3e6; border-left: 4px solid var(--red); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; color: var(--red-deep); }
.form-errors ul { list-style: disc; padding-left: 1.2rem; margin-top: .4rem; }
.applied { display: flex; gap: 1.4rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-top: 4px solid #2E7D4F; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.6rem); max-width: 760px; margin-inline: auto; }
.applied > .icon { width: 3rem; height: 3rem; padding: .6rem; border-radius: 50%; background: #e5f2ea; color: #2E7D4F; }
.applied > div { display: grid; gap: .9rem; }
.applied h2 { font-size: var(--step-3); }
.applied .ref { font-size: 1.15rem; padding: .9rem 1.1rem; background: var(--sand); border-radius: var(--radius); }
.applied .ref strong { font-size: 1.35rem; letter-spacing: .04em; color: var(--red); }
.alumni-form { margin-top: 3rem; clear: both; }
@media (max-width: 960px) {
  .apply-grid { grid-template-columns: 1fr; }
  .apply-side { position: static; }
  .level-tabs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .field-row.three { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .level-tabs a { font-size: 1.1rem; padding: .7rem .8rem; }
  .applied { flex-direction: column; }
}

/* reminder for signed-in admins while maintenance mode is on */
.maint-bar { background: #7E0D14; color: #fff; text-align: center; font-size: .9rem; font-weight: 600; padding: .55rem 1rem; }
.maint-bar a { color: #fff; margin-left: .4rem; }
