/* Christ School Bundibugyo: public site styles.
   Palette from the school badge: navy sky, green Rwenzori mountains, white cross; gold as a warm accent. */
:root {
  --green: #2F6A35;        /* badge mountains, darkened for text contrast */
  --green-bright: #4E8F4A; /* lighter green for highlights on dark */
  --green-deep: #1F4A25;
  --ink: #0B1630;          /* headings (badge navy) */
  --navy: #0F1F40;         /* dark bands */
  --text: #2A2F3A;
  --muted: #5D6470;
  --gold: #C9973A;         /* decorative accents on dark */
  --gold-deep: #8E6A26;
  --sand: #F1F3EE;         /* tinted sections */
  --paper: #FBFBF8;        /* page */
  --line: #E1E5DC;
  --white: #fff;
  --display: 'Playfair Display', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(14, 19, 48, .06), 0 12px 32px -12px rgba(14, 19, 48, .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(--green); text-underline-offset: .18em; }
a:hover { color: var(--green-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(--gold); 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--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-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(--green); }
.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(--green); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold); }
.badge { display: inline-block; margin-left: .3rem; padding: .1rem .5rem; border-radius: 99px; background: var(--green); color: #fff; font-size: .72rem; }

/* ---------- top bars ---------- */
.notice-bar { background: var(--green); 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(--navy); 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(--green); color: #fff !important; font-weight: 700; padding: 0 1rem; align-self: stretch; }
.utility-apply:hover { background: var(--green-bright); }

/* ---------- header and mega menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 248, .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: 1rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 38px; height: auto; }
.brand-name { font: 700 1.32rem/1 var(--display); letter-spacing: .01em; }
.name-short { display: none; }
.brand-name small { display: block; font: 600 .62rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.brand--light { color: #fff; }
.brand--light .brand-name small { color: var(--gold); }
.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 .6rem; min-height: 70px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; position: relative; }
.nav-top::after { content: ''; position: absolute; left: .6rem; right: .6rem; bottom: 18px; height: 2px; background: var(--green); 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(--green); box-shadow: 0 24px 40px -24px rgba(14, 19, 48, .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(--green); 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(--green); }
.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(--green); 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(--green); margin-top: .6rem; }
.mega-feature:hover strong { color: var(--green); }
.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(--navy); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.hero-img.is-on { opacity: 1; animation: drift 24s ease-out both; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10, 14, 40, .86) 0%, rgba(10, 14, 40, .55) 48%, rgba(10, 14, 40, .15) 100%), linear-gradient(0deg, rgba(10, 14, 40, .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-main { flex: 1; min-width: 0; max-width: 690px; display: grid; gap: 1.5rem; }
.hero-slides { display: grid; align-items: end; }
.hero-text { grid-area: 1 / 1; min-width: 0; display: grid; gap: 1.3rem; visibility: hidden; opacity: 0; }
.hero-text.is-on { visibility: visible; opacity: 1; animation: rise .9s .1s ease-out both; }
.hero-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.hero-nav { display: flex; align-items: center; gap: .55rem; }
.hero-nav[hidden] { display: none; }
.hero-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(10, 14, 40, .35); color: #fff; }
.hero-btn:hover { background: #fff; color: var(--ink); }
.hero-dot { width: 26px; height: 26px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.hero-dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: background .2s, transform .2s; }
.hero-dot:hover::before { background: #fff; }
.hero-dot[aria-current="true"]::before { background: var(--gold); transform: scale(1.3); }
.hero .hero-title { 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(--gold); 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(10, 14, 40, .55); stroke: rgba(201, 151, 58, .7); stroke-width: 1.5; }
.seal-inner { fill: var(--ink); }
.seal-text { font: 700 12.5px var(--body); letter-spacing: 3.2px; fill: var(--gold); }
.seal img { position: absolute; width: 118px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }

/* 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(--green); 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(--green); }
.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(--green); 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(--navy); color: rgba(255, 255, 255, .82); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--gold); }
.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(--green); 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 1.6rem/1.1 var(--display); margin-bottom: .2rem; }
.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(--green); }
.facts span { color: var(--muted); font-size: .98rem; max-width: 22ch; }

/* spotlight (video and text) */
.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(--green); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(47, 106, 53, .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(--green); 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(--green); 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 proximity; padding: 2.4rem 0 1.4rem; position: relative; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 2.4rem; height: 1px; background: rgba(201, 151, 58, .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(--green-bright); box-shadow: 0 0 0 4px var(--navy); }
.tl-year { font: 600 2.6rem/1 var(--display); color: var(--gold); }
.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(201, 151, 58, .12); border: 1px solid rgba(201, 151, 58, .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(10, 14, 40, .85), rgba(10, 14, 40, 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(--gold); 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(--green); }
.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(--green); }
.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(--green); 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(--green); 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(--green); }
.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(--green); }
.quick-links .icon { color: var(--green); }
.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(--green); 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(--green-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(31, 74, 37, .95), rgba(31, 74, 37, .78) 55%, rgba(31, 74, 37, .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(--navy) 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(--navy); 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(10, 14, 40, .88), rgba(10, 14, 40, .45)), linear-gradient(0deg, rgba(10, 14, 40, .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(--gold); 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(--green); 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(--green); color: var(--green); 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(--green); 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(--gold-deep); font: 600 3rem/1 var(--display); }
/* Name lists (Board of Governors, alumni): a small round photo or initials beside the name. */
.people--names { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem 1.6rem; }
.people--names .person { grid-template-columns: 56px 1fr; column-gap: .9rem; row-gap: .1rem; align-items: center; }
.people--names .person img, .people--names .avatar { width: 56px; aspect-ratio: 1; border-radius: 50%; margin: 0; grid-row: span 2; font-size: 1.15rem; }
.people--names .person strong { font-size: 1.15rem; align-self: end; }
.people--names .person span { align-self: start; }
.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(--green); }
.vtimeline .tl-year { color: var(--green); font-size: 2rem; }
.vtimeline p { color: var(--muted); margin-top: .3rem; }
.callout { margin-top: 3rem; background: var(--sand); border-left: 4px solid var(--green); 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(--gold-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(--green); }
.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(--green); }
.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(--green); }
.files .icon { width: 1.6rem; height: 1.6rem; color: var(--green); }
.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(--green); 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(--green); 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(--gold); 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(--green); 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(--green); }
.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(--green); 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(--green); background: #fff; box-shadow: 0 0 0 3px rgba(47, 106, 53, .12); }
.form-card .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.hp[hidden] { display: none !important; }
.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(--green); background: rgba(47, 106, 53, .06); color: var(--green); }
.slots input:focus-visible + span { outline: 3px solid var(--gold); }
.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(--green); margin-top: .2rem; }

/* campus map */
.campus-map { display: block; width: 100%; height: auto; background: #F3F2EC; }
.campus-map path { fill: none; }
.campus-map .cm-bld, .campus-map .cm-campus, .campus-map .cm-green, .campus-map .cm-wood, .campus-map .cm-grounds { stroke: none; }
.campus-map .cm-grounds { fill: #E2EBD6; }
.campus-map .cm-bg { fill: #F3F2EC; }
.campus-map .cm-bld { fill: #D8CBAE; }
.campus-map .cm-campus { fill: var(--green); }
.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(--navy); 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(--gold); 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(--green); border-color: var(--green); }
.contact-list li { display: flex; gap: .7rem; }
.contact-list .icon { color: var(--gold); 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(--green-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: 1320px) {
  .site-header > .wrap { gap: .7rem; }
  .nav-top { padding: 0 .45rem; font-size: .86rem; }
  .nav-top::after { left: .45rem; right: .45rem; }
  .mega-inner { grid-template-columns: repeat(2, 1fr) 1.4fr; }
  .mega-intro { display: none; }
}
@media (max-width: 1200px) {
  /* 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: 66px; }
  .nav { position: fixed; left: 0; right: 0; top: var(--nav-top, 66px); 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(--green); }
  .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: 88px; }
}
@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; }
  .site-header .name-long { display: none; }
  .site-header .name-short { display: inline; }
  .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(--gold-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(--green); background: var(--green); 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(--green); }
.apply-form .btn--lg { justify-self: start; margin: .4rem 0 .6rem; }
.form-errors { background: #fbe3e6; border-left: 4px solid var(--green); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; color: var(--green-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(--green); }
.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: #1F4A25; color: #fff; text-align: center; font-size: .9rem; font-weight: 600; padding: .55rem 1rem; }
.maint-bar a { color: #fff; margin-left: .4rem; }

/* ---------- Christ School additions: vision, why Bundibugyo, giving, get involved ---------- */
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #E0B256; color: var(--ink); }
.vision { border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.1rem; font: 600 italic 1.2rem/1.45 var(--display); color: var(--ink); }
.vision small { display: block; font: 700 .72rem/1 var(--body); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .5rem; }
.head-text h2 { font-size: var(--step-3); }

.why-band { position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ug-map { width: 100%; height: auto; max-height: 560px; overflow: visible; }
.ug-land { fill: rgba(255, 255, 255, .06); stroke: rgba(201, 151, 58, .8); stroke-width: 2.5; stroke-linejoin: round; }
.ug-route { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.ug-city { fill: rgba(255, 255, 255, .6); }
.ug-pin { fill: var(--green-bright); stroke: #fff; stroke-width: 3; }
.ug-pulse { fill: var(--green-bright); opacity: .35; transform-origin: 45.8px 363.6px; animation: pulse 2.4s ease-out infinite; }
.ug-label { font: 700 22px var(--body); fill: #fff; }
.ug-label--muted { font-weight: 600; font-size: 17px; fill: rgba(255, 255, 255, .6); letter-spacing: .06em; }
.ug-drc { font-size: 14px; letter-spacing: .2em; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin: 0 0 2.2rem; }
.why-list li { display: grid; gap: .3rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.why-list strong { font: 600 1.45rem/1.1 var(--display); color: #fff; }
.why-list span { color: rgba(255, 255, 255, .72); font-size: .98rem; }

.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; }
.prog-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.prog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.prog-img { display: block; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.prog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prog-card:hover .prog-img img { transform: scale(1.04); }
.prog-body { display: grid; gap: .6rem; align-content: start; padding: 1.4rem 1.4rem 1.6rem; }
.prog-body h3 { font: 600 1.5rem/1.15 var(--display); }
.prog-body h3 a { color: var(--ink); text-decoration: none; }
.prog-body h3 a::after { content: ''; position: absolute; inset: 0; }
.prog-body p { color: var(--muted); font-size: .98rem; }
.prog-body .text-link { margin-top: .3rem; }

.gifts-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.gifts-grid .section-head { margin-bottom: 1.8rem; }
.gifts { display: grid; gap: .8rem; }
.gifts a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.gifts a:hover { border-color: var(--green); box-shadow: var(--shadow); color: var(--text); }
.gift-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sand); color: var(--green); font-size: 1.3rem; }
.gift-text { display: grid; gap: .1rem; }
.gift-text strong { color: var(--ink); }
.gift-text small { color: var(--muted); font-size: .92rem; }
.gift-amount { font: 700 1.5rem/1 var(--display); color: var(--green); white-space: nowrap; }
.give-note { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.2rem; color: var(--muted); font-size: .9rem; max-width: 60ch; }
.give-note .icon { margin-top: .2rem; color: var(--gold-deep); }

.with-aside { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.give-box { position: sticky; top: 120px; display: grid; gap: 1rem; justify-items: start; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.8rem; }
.give-box h2 { font-size: var(--step-2); }
.give-box .give-note { margin-top: 0; }
.callout--wide { margin-top: 0; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem 3rem; }
.callout--wide p { color: var(--muted); }

.opps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; }
.opp { display: grid; gap: .9rem; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.opp-head { display: grid; gap: .5rem; }
.opp h2 { font-size: var(--step-2); }
.opp-len { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-deep); font-weight: 600; font-size: .9rem; }
.opp p { color: var(--muted); }
.check-list { display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: .25rem; }
.byline { color: var(--muted); font-size: .95rem; }
.byline::before { content: '·'; margin: 0 .5rem; }
.article-video { margin-bottom: 2.5rem; }

@media (max-width: 960px) {
  .why-grid, .gifts-grid, .with-aside { grid-template-columns: 1fr; }
  .why-map { max-width: 420px; }
  .give-box { position: static; }
  .callout--wide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .why-list { grid-template-columns: 1fr; }
  .gifts a { grid-template-columns: auto 1fr; }
  .gift-amount { grid-column: 2; }
}
.news-item img.ni-ph { object-fit: contain; background: var(--ink); padding: .5rem; }

.map-frame { display: block; width: 100%; height: clamp(320px, 45vw, 460px); border: 0; background: var(--sand); }

/* ---------- status tracker, facilities, results, tour, questions, error page ---------- */
.error-page { display: grid; gap: 1rem; justify-items: start; }
.error-page h1 { font-size: var(--step-4); }
.errors { background: #FBE9EA; color: #8E1016; border-radius: var(--radius); padding: .8rem 1rem; }
.status-card { margin-top: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2rem); }
.status-for { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.status-steps { display: grid; gap: 1.2rem; border-left: 2px solid var(--line); margin-left: .4rem; padding-left: 1.3rem; }
.status-steps li { position: relative; color: var(--muted); }
.status-steps li::before { content: ''; position: absolute; left: calc(-1.3rem - 7px); top: .35em; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.status-steps li.is-done::before { background: var(--green); }
.status-steps li.is-now::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 151, 58, .3); }
.status-steps li.is-now, .status-steps strong { color: var(--ink); }
.status-steps small { color: var(--muted); }
.st-note { margin-top: .4rem; padding: .6rem .8rem; background: var(--sand); border-radius: var(--radius); color: var(--ink); }
.readiness { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; }
.readiness i { width: 9px; height: 9px; border-radius: 50%; }
.result { display: grid; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.result:first-child { border-top: 0; padding-top: 0; }
.result h2 { font-size: var(--step-3); }
.bars { display: grid; gap: .5rem; }
.bars li { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: .8rem; align-items: center; font-size: .95rem; }
.bars i { display: block; height: 10px; border-radius: 5px; background: var(--green); }
.tour-plan { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.tour-plan img { width: 100%; display: block; }
.tour-dot { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .85rem; text-decoration: none; box-shadow: 0 0 0 3px #fff; }
.tour-body { color: var(--muted); font-size: .95rem; }
.faqs { display: grid; gap: .6rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; }
.faq p { margin-top: .6rem; color: var(--muted); }

/* ---------- Student life, curriculum, calendar and search: from the Fort Portal SS site, in Christ School's colours ---------- */
:root {
  --brand: var(--green); --on-brand: #fff; --brand-soft: color-mix(in srgb, var(--green) 9%, transparent); --brand-ink: var(--green-deep);
  --blue: #2F6FB0; --blue-ink: #1F4F80; --blue-soft: color-mix(in srgb, #2F6FB0 10%, transparent);
  --surface: #fff; --surface-2: var(--sand); --tint: var(--sand); --dark: var(--navy); --dark-2: #182C57; --line-strong: #CCD3C6; --ink-2: var(--text); --faint: #98A09A;
  --shadow-lg: 0 18px 40px -18px rgba(14, 19, 48, .35); --r: var(--radius); --sans: var(--body); --mono: var(--body);
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--brand { background: var(--green); color: #fff; } .btn--brand:hover { background: var(--green-deep); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; } .btn--blue:hover { background: var(--blue-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); } .btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: .45rem .8rem; font-size: .88rem; }
.prose ol { padding-left: 1.3rem; }
.i-sm { width: 14px; height: 14px; }
.label { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 0 4px; }
.sec-head h2 { font-size: 15px; }
.sec-head p { color: var(--muted); }
.sec-head .link-more { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.sec-head .link-more:hover { color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip--brand { background: var(--brand-soft); color: var(--brand-ink); box-shadow: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; }
.side-nav .label { padding: 0 10px 6px; }
@media (max-width: 900px) {
  .side-nav .label { width: 100%; }
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filter { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
.filter:hover { box-shadow: 0 0 0 1px var(--line-strong); }
.filter[aria-current], .filter.is-on { background: var(--ink); color: var(--bg); box-shadow: none; }
.filter .n { font: 500 11px var(--mono); opacity: .6; }
.doc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; transition: background .2s; }
.doc-row:hover { background: var(--surface-2); }
.doc-row + .doc-row { box-shadow: 0 -1px 0 var(--line); }
.doc-ic { position: relative; display: grid; place-items: end center; width: 34px; height: 42px; padding-bottom: 5px; border-radius: 4px 12px 4px 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font: 600 8.5px var(--mono); color: var(--muted); }
.doc-ic::before { content: ""; position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 0 0 0 4px; background: var(--line); }
.doc-row h3 { font-size: 14.5px; font-weight: 500; }
.doc-row p { font-size: 12.5px; color: var(--muted); }
.post-aside .doc-row { grid-template-columns: auto minmax(0, 1fr); }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-title { display: flex; align-items: center; gap: 6px; }
.cal-title h2 { min-width: 170px; font-size: 18px; letter-spacing: -.02em; text-align: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 13px; color: var(--muted); }
.seg a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.cal { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cal th { padding: 8px 6px; font: 500 11.5px var(--mono); text-transform: uppercase; color: var(--muted); text-align: left; }
.cal td { height: 108px; padding: 4px; vertical-align: top; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal td:first-child { border-left: 0; }
.cal .out { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface-2) 6px 7px); }
.cal .out .dnum { color: var(--faint); }
.cal .today .dnum { background: var(--brand); color: var(--on-brand); }
.cal-ev { display: flex; align-items: center; gap: 5px; margin-top: 3px; padding: 2px 6px; border-radius: 6px; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--ink); transition: background .2s; }
.cal-ev:hover { background: color-mix(in srgb, var(--c) 24%, var(--surface)); }
.cal-ev .dot { width: 6px; height: 6px; }
.cal-ev.is-span { border-radius: 0; margin-inline: -4px; padding-inline: 10px; }
.cal-ev.is-start { border-radius: 6px 0 0 6px; margin-left: 0; }
.cal-ev.is-end { border-radius: 0 6px 6px 0; margin-right: 0; }
.cal-more { font-size: 11.5px; color: var(--muted); padding-left: 6px; }
@media (max-width: 760px) {
  .cal thead { display: none; }
  .cal, .cal tbody, .cal tr, .cal td { display: block; }
  .cal td { height: auto; border-left: 0; padding: 8px 4px; }
  .cal td.out, .cal td.empty-day { display: none; }
  .cal td .dnum::after { content: attr(data-wd); margin-left: 6px; color: var(--muted); font-family: var(--sans); }
  .cal-ev.is-span, .cal-ev.is-start, .cal-ev.is-end { border-radius: 6px; margin-inline: 0; }
}
.subscribe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.subscribe code { display: block; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font: 12.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette { width: min(640px, 100% - 24px); max-height: min(560px, 80dvh); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -10px rgba(0, 0, 0, .45); overflow: hidden; }
.palette[open] { display: flex; flex-direction: column; animation: palIn .25s var(--ease); }
@keyframes palIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.palette::backdrop { background: rgba(0, 0, 0, .35); backdrop-filter: blur(3px); }
.palette-form { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-form .i { color: var(--muted); }
.palette-form input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; outline: none; }
.palette-form input::-webkit-search-cancel-button { display: none; }
.palette-body { overflow-y: auto; padding: 8px; flex: 1; }
.palette-results { margin: 0; padding: 0; list-style: none; }
.palette-results a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.palette-results [aria-selected="true"] a { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.palette-results .t { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-results .x { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-results .k { font: 500 11px var(--mono); color: var(--muted); }
.palette-results mark { background: var(--brand-soft); color: inherit; border-radius: 3px; }
.palette-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.palette-quick a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.palette-quick a:hover { background: var(--surface-2); }
.palette-quick .i { color: var(--muted); }
.palette-empty .label { padding: 6px 12px 0; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.palette-foot kbd { margin-right: 3px; }
.pal-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.cal-ev.is-span.is-start { position: relative; z-index: 1; overflow: visible; }
  transition: flex-grow .6s var(--ease), background .4s, box-shadow .3s; }
.label { color: var(--blue-ink); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.band { padding: clamp(44px, 5vw, 72px) 0; }
.band + .band { border-top: 1px solid transparent; }
.band--tint { background: var(--tint); }
.band--dark { background: var(--dark); color: rgba(255, 255, 255, .78); }
.band--dark .sec-head h2, .band--dark h2, .band--dark h3, .band--dark strong { color: #fff; }
.band--dark .sec-head p, .band--dark .muted { color: rgba(255, 255, 255, .65); }
.band--dark .link-more { color: rgba(255, 255, 255, .7); }
.band--dark .link-more:hover { color: #fff; }
.band--dark .card { background: var(--dark-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); }
.sec-head { margin-bottom: 24px; padding: 0; }
.sec-head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.sec-head p { margin-top: 4px; }
.page-hero .label { color: #9fd3ee; }
.band--dark .tl-band li { background: var(--dark-2); }
.band--dark .tl-band p { color: rgba(255, 255, 255, .62); }
.ready .dot { background: var(--c); width: 8px; height: 8px; }
.res-tile .label { color: #9fd3ee; }
.res-links .link-more, .link-more { white-space: nowrap; }
.side-card .link-more { justify-self: start; }
.life-intro-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.life-lead p { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; color: var(--ink); }
.life-jump { display: grid; gap: 10px; }
.life-chip { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.01em; transition: transform .25s var(--ease), box-shadow .25s; }
.life-chip span { font: 500 13px var(--mono); opacity: .75; }
.life-chip:hover { transform: translateX(6px); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .5); }
.life-chip--sport { background: linear-gradient(120deg, #2F6A35, #1F4A25); }
.life-chip--music { background: linear-gradient(120deg, #182C57, #0F1F40); }
.life-chip--faith { background: linear-gradient(120deg, #2F6FB0, #0F1F40); }
.life-chip--clubs { background: linear-gradient(120deg, #8E6A26, #0F1F40); }
.life-band { position: relative; overflow: hidden; }
.life-band--sport { background: #fff; }
.life-band--music { background: radial-gradient(80% 120% at 100% 0%, rgba(201, 151, 58, .25), transparent 60%), linear-gradient(135deg, #0F1F40, #0F1F40 70%); color: rgba(255, 255, 255, .85); }
.life-band--faith { background: linear-gradient(180deg, #F1F3EE, #FBFBF8); }
.life-band--clubs { background: var(--surface-2); }
.life-band--music h2, .life-band--music .prose, .life-band--music .prose p { color: #fff; }
.life-band--music .prose p { color: rgba(255, 255, 255, .82); }
.life-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.life-grid--flip .life-text { order: 2; }
.life-num { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.life-num span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font: 600 15px var(--mono); }
.life-band--sport .life-num span { background: #2F6A35; }
.life-band--music .life-num span { background: #C9973A; }
.life-band--faith .life-num span { background: #2F6FB0; }
.life-band--clubs .life-num span { background: #8E6A26; }
.life-band--music .life-num { color: rgba(255, 255, 255, .65); }
.life-text h2 { margin: 14px 0 16px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.life-text .prose { font-size: 16.5px; }
.life-figure { position: relative; margin: 0; }
.life-figure img { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .55); }
.life-figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--r); }
.life-band--sport .life-figure::before { background: #2F6A35; }
.life-band--music .life-figure::before { background: #C9973A; }
.life-band--faith .life-figure::before { background: #2F6FB0; }
.life-band--clubs .life-figure::before { background: #8E6A26; }
.life-grid--flip .life-figure::before { inset: 18px 18px -18px -18px; }
.life-cards { margin-top: 48px; }
.life-hint { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.life-band--music .life-hint { color: rgba(255, 255, 255, .6); }
@media (max-width: 900px) {
  .life-intro-grid, .life-grid { grid-template-columns: 1fr; }
  .life-grid--flip .life-text { order: 0; }
  .life-figure { margin: 0 18px 18px 0; }
}
.ac-lead { max-width: 72ch; margin-bottom: 28px; font-size: 17px; }
.ac-level-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ac-level { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px; background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), var(--shadow); border-top: 5px solid var(--brand); overflow: hidden; }
.ac-level--a { border-top-color: var(--blue); }
.ac-level-kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.ac-level--a .ac-level-kicker { color: var(--blue-ink); }
.ac-level h2 { font: 600 clamp(30px, 3.4vw, 42px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--dark); }
.ac-level-sub { color: var(--muted); }
.ac-facts { display: grid; gap: 0; margin: 14px 0 18px; }
.ac-facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ac-facts dt { color: var(--muted); font-size: 13.5px; }
.ac-facts dd { margin: 0; font-weight: 500; }
.ac-level-links { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ac-facts .ac-chip { font-family: var(--mono); font-size: 12px; }
.ac-chips--blue .ac-chip { background: var(--blue-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 30%, transparent); color: var(--blue-ink); }
.ac-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.ac-result { display: grid; gap: 8px; padding: 24px; border-radius: var(--r); background: var(--dark-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); transition: background .2s; }
.ac-result:hover { background: #1b3d57; color: rgba(255, 255, 255, .9); }
.ac-result-exam { font: 500 13px var(--mono); color: #8fc9e6; }
.ac-result strong { font: 600 clamp(22px, 2.4vw, 28px)/1.15 var(--display); text-transform: uppercase; color: #fff; }
.ac-result-n b { color: #fff; font-family: var(--mono); }
.ac-how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ac-how-card { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.ac-how-card h3 { font-size: 16px; }
.ac-how-card p { color: var(--muted); font-size: 14px; }
.ac-how-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.ac-how-card:nth-child(2) .ac-how-ic { background: var(--blue-soft); color: var(--blue-ink); }
.ac-how-ic .i { width: 22px; height: 22px; }
.ac-how-card--num b { font: 600 40px/1 var(--display); color: var(--brand); }
.ac-how-card--num:last-child b { color: var(--blue); }
.ac-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ac-detail-head { position: sticky; top: 140px; display: grid; gap: 10px; }
.ac-detail-num { font: 500 13px var(--mono); color: var(--brand); }
.ac-detail--a .ac-detail-num { color: var(--blue); }
.ac-detail-head h2 { font: 600 clamp(26px, 3vw, 36px)/1.05 var(--display); text-transform: uppercase; color: var(--dark); }
.ac-subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 14px; padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ac-subjects .label { margin-bottom: 8px; }
@media (max-width: 900px) {
  .ac-level-grid, .ac-detail-grid, .ac-subjects { grid-template-columns: 1fr; }
  .ac-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-detail-head { position: static; }
}
@media (max-width: 520px) {
  .ac-how-grid { grid-template-columns: 1fr; }
  .ac-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .ac-level { padding: 22px; }
}
.cu-intro-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cu-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.cu-jump a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.cu-jump a span { font: 500 11px var(--mono); color: var(--brand); }
.cu-jump a:hover { background: var(--blue-soft); color: var(--blue-ink); }
.cu-glance { padding: 24px; border-radius: var(--r); background: var(--dark); color: rgba(255, 255, 255, .75); border-top: 5px solid var(--brand); }
.cu-glance .label { color: #8fc9e6; }
.cu-glance ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.cu-glance li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.cu-glance b { font: 600 24px/1 var(--display); color: #fff; }
.cu-subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cu-subject { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.cu-subject h3 { font: 600 22px/1 var(--display); text-transform: uppercase; color: var(--dark); }
.cu-subject .label { margin-top: 6px; }
.cu-ask { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.cu-entry { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr)); gap: 10px; }
.cu-entry-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--dark-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.cu-entry-row b { font: 600 18px var(--mono); color: #fff; }
.cu-entry-row em { font-style: normal; font-size: 12.5px; color: #8fc9e6; white-space: nowrap; }
.cu-entry-note { margin-top: 14px; color: rgba(255, 255, 255, .65); font-size: 14px; max-width: 80ch; }
.cu-entry-note strong { color: #fff; font-weight: 500; }
.cu-qa { display: grid; gap: 28px; }
.cu-qa--docs { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .cu-intro-grid, .cu-subjects, .cu-qa--docs { grid-template-columns: 1fr; }
}
.gk-grades { display: grid; gap: 8px; }
.gk-grade { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.gk-grade b { display: grid; place-items: center; width: 52px; height: 44px; border-radius: 8px; font: 600 24px var(--display); color: #fff; background: var(--blue); }
.gk-grade--a b { background: #0f6e4a; }
.gk-grade--b b { background: #2F6FB0; }
.gk-grade--c b { background: #14567a; }
.gk-grade--d b { background: #b7791f; }
.gk-grade--e b { background: var(--brand); }
.gk-grade span { display: grid; color: var(--muted); font-size: 14px; }
.gk-grade strong { color: var(--ink); font-size: 15px; }
.gk-side { display: grid; gap: 16px; }
.gk-split, .gk-results { padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.gk-bar { display: flex; gap: 4px; margin-top: 10px; }
.gk-bar span { display: grid; gap: 2px; padding: 12px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; min-width: 0; }
.gk-bar span:last-child { background: var(--dark); color: rgba(255, 255, 255, .8); }
.gk-bar b { font: 600 22px/1 var(--display); }
.gk-results { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px 14px; margin: 0; font-size: 14px; }
.gk-results dt { font-weight: 600; color: var(--dark); }
.gk-results dd { margin: 0; color: var(--muted); }
.ac-level-links .link-more, .ac-detail .link-more { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-ink); font-weight: 500; }
.ac-level-links .link-more:hover, .ac-detail .link-more:hover { color: var(--brand-ink); }

/* Student life cards: the Give card design in a side-scrolling row, moved with the timeline's arrows */
.life-cards { position: relative; }
.life-slide-nav { display: flex; justify-content: flex-end; gap: .6rem; margin-bottom: 1rem; }
.life-slide-nav[hidden] { display: none; }
.tl-btn:disabled { opacity: .35; cursor: default; }
.life-slide-nav .tl-btn { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.life-slide-nav .tl-btn:hover { background: var(--ink); color: #fff; }
.life-band--music .life-slide-nav .tl-btn { border-color: rgba(255, 255, 255, .3); background: none; color: #fff; }
.life-band--music .life-slide-nav .tl-btn:hover { background: #fff; color: var(--ink); }
.slide-row { display: grid; grid-auto-flow: column; grid-auto-columns: max(270px, 38%); gap: 1.6rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 1.2rem; padding: 1.4rem 1.2rem 1.6rem; margin-inline: -1.2rem; scrollbar-width: thin; }
.slide-row > li { scroll-snap-align: start; color: var(--text); }
.slide-row .prog-card { transition: transform .28s var(--ease), box-shadow .28s; transform-origin: center; }
/* Zoom as soon as the pointer is on a card (or the keyboard reaches it): no click needed. */
.slide-row .prog-card:hover, .slide-row .prog-card:focus-within { transform: scale(1.07); box-shadow: var(--shadow-lg); z-index: 2; }
.slide-row .prog-card:hover .prog-img img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .slide-row .prog-card, .slide-row .prog-card:hover { transition: none; transform: none; } }
.slide-ph { display: grid; place-items: center; height: 100%; color: var(--green); font-size: 2.4rem; }
.header-search { flex: none; }
.cal-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; overflow: hidden; }
.cal-subscribe { margin-top: 24px; padding: 1.4rem; }
.cal-sub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.cal-sub-actions { display: grid; gap: 8px; }
.cal-sub-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.dnum { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; font-size: 12.5px; }
.empty-day { }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; padding: .7rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; }
@media (max-width: 760px) { .cal-sub-grid { grid-template-columns: 1fr; } }

/* Fitting the pieces above to this site's fonts and links */
.ac-level h2, .ac-detail-head h2, .cu-text h2, .life-text h2 { text-transform: none; letter-spacing: 0; font-family: var(--display); }
.life-chip, .cu-jump a, .filter, .seg a, .link-more, .ac-result, .doc-row, .palette-quick a, .palette-results a { text-decoration: none; }
.filter[aria-current="page"] { color: #fff; }
.palette-results { overflow-x: hidden; }
.palette-results a > span:nth-child(2) { min-width: 0; flex: 1; }
.palette-results .t, .palette-results .x { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Senior 5 entry check on the application form */
.elig { padding: 14px 16px; border-radius: var(--radius); background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; margin-bottom: 1rem; }
.elig ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.elig li { display: inline-flex; gap: 8px; padding: 4px 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.elig li.ok { color: #1F6B3A; }
.elig li.no { color: #A32A2A; }
.elig p { margin: 0; }
.elig p + p { margin-top: 8px; font-size: 13px; }
.elig--meets { box-shadow: inset 0 0 0 1px #6FA877; }
.elig--below { box-shadow: inset 0 0 0 1px #D39A9A; }
.elig-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 14px; }

/* PREVIEW=1 showcase copies */
.preview-corner { position: fixed; top: 0; right: 0; z-index: 1000; width: 88px; height: 88px; overflow: hidden; pointer-events: none; }
.preview-corner span { position: absolute; top: 17px; right: -30px; width: 124px; padding: 4px 0; transform: rotate(45deg); background: var(--navy); color: #fff; text-align: center; font: 700 9.5px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); border-block: 2px solid var(--green); }
@media print { .preview-corner { display: none; } }

/* Footer: the school seal, small, opposite the logo badge */
.seal.seal--foot { width: 96px; height: 96px; animation: none; display: block; margin-left: auto; }
.seal--foot .seal-text { font-size: 13px; }
.seal--foot img { width: 56px; }
.footer-top .footer-motto { margin-left: auto; }
.footer-top .footer-motto + .seal--foot { margin-left: 0; }

/* Message from the Head Teacher (home page) */
.head-msg .head-photo .avatar { aspect-ratio: 4 / 5; font-size: 4rem; }
.head-quote { margin: 0; border-left: 3px solid var(--green); padding-left: 1.4rem; display: grid; gap: .9rem; }
.head-quote p { font: italic 500 1.3rem/1.5 var(--display); color: var(--ink); }
.signature { display: grid; gap: .1rem; }
.staff-only { border: 2px dashed var(--line-strong, #ccd3c6); border-radius: var(--radius); padding: 1.2rem 1.4rem; color: var(--muted); background: #fff; }

/* Staff directory */
.staff-intro { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.staff-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.8rem; margin-bottom: 3rem; }
.staff-tabs a { padding: .4rem 0; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.staff-tabs a:hover { color: var(--ink); }
.staff-tabs a[aria-current] { color: var(--green); border-bottom-color: var(--green); }
.staff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.6rem 2rem; }
.staff-card { display: grid; justify-items: center; text-align: center; gap: .3rem; text-decoration: none; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.staff-photo { display: block; width: 150px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--sand); margin-bottom: .6rem; box-shadow: 0 12px 24px -18px rgba(0, 0, 0, .5); }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.staff-photo .avatar { height: 100%; margin: 0; aspect-ratio: auto; font-size: 2.6rem; border-radius: 0; }
.staff-card strong { color: var(--ink); font-size: 1rem; }
.staff-card:hover strong { color: var(--green); }
.staff-card:hover .staff-photo img { transform: scale(1.05); }
.staff-has-msg { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); font-weight: 600; font-size: .8rem; margin-top: .2rem; }
.staff-has-msg .icon { width: 1rem; height: 1rem; }
.staff-grid--small { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.5rem 0 2rem; }
.staff-grid--small .staff-photo { width: 110px; }

/* A person's page */
.staff-hero { padding: 1.4rem 0; }
.staff-profile-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-bottom: 4rem; }
.staff-portrait { margin: 0; }
.staff-portrait img, .staff-portrait .avatar { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius); box-shadow: var(--shadow); }
.staff-group { display: inline-block; font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); text-decoration: none; margin-bottom: .8rem; }
.staff-profile h1 { font-size: var(--step-4); }
.staff-role { color: var(--muted); font-size: 1.1rem; margin: .4rem 0 1.2rem; }
.staff-message { margin: 2rem 0 1.4rem; padding: 1.8rem 2rem; background: var(--sand); border-left: 4px solid var(--green); border-radius: var(--radius); display: grid; gap: .9rem; }
.staff-message h2 { font-size: var(--step-2); }
.staff-message p { font-size: 1.05rem; }
.staff-sign { display: grid; color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.staff-sign strong { color: var(--ink); }

/* Messages from teachers */
.staff-msg-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.8rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.staff-msg-card .staff-photo { width: 120px; margin: 0; }
.staff-msg-card h2 { font-size: var(--step-2); }
.staff-msg-card h2 a { color: var(--ink); text-decoration: none; }
.staff-msg-card > div { display: grid; gap: .7rem; }

@media (max-width: 960px) {
  .staff-grid, .staff-grid--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .staff-profile-grid { grid-template-columns: 1fr; }
  .staff-portrait { max-width: 300px; }
}
@media (max-width: 600px) {
  .staff-grid, .staff-grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .staff-photo { width: 120px; }
  .staff-msg-card { grid-template-columns: 1fr; gap: 1rem; }
  .seal.seal--foot { width: 80px; height: 80px; }
  .seal--foot img { width: 46px; }
}

/* A shorter footer */
.site-footer { padding-top: 2.2rem; font-size: .92rem; }
.footer-top { padding-bottom: 1.2rem; gap: 1rem; }
.footer-top .brand-mark { width: 40px; }
.footer-grid { padding: 1.8rem 0; gap: 1.8rem; }
.site-footer h3 { margin-bottom: .7rem; }
.site-footer ul { gap: .35rem; }
.site-footer .socials { margin-top: .8rem; }
.site-footer .socials a { width: 34px; height: 34px; }
.footer-bottom { padding: .9rem 0 1.1rem; }
.seal.seal--foot { width: 72px; height: 72px; }
.seal--foot img { width: 42px; }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .seal.seal--foot { width: 64px; height: 64px; }
  .seal--foot img { width: 38px; }
}


/* The Apply online button fills the utility bar, from the announcement bar above to the menu below */
.utility .group { align-self: stretch; }
.utility-apply { align-self: stretch; display: inline-flex; align-items: center; padding: 0 1.2rem; }
/* The Instagram icon is drawn with lines, unlike the other (filled) social icons */
.socials a[aria-label="Instagram"] .icon { fill: none; stroke: currentColor; }
@media (max-width: 600px) {
  .footer-top { flex-wrap: nowrap; }
  .footer-top .brand { min-width: 0; }
  .footer-top .brand-name { font-size: 1.15rem; }
}
/* A thinner announcement bar */
.notice-bar { font-size: .82rem; line-height: 1.3; }
.notice-bar .wrap { padding: .22rem 0; }
@media (max-width: 760px) { .notice-bar .wrap { padding: .2rem 0; } }

/* Home hero: the next three slides as small cards, before the seal (smaller than Fort Portal SS's 172 x 250) */
.hero-cards { display: flex; gap: .7rem; align-self: flex-end; flex: none; }
.hero-card { position: relative; width: 112px; height: 158px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--navy); color: #fff; text-align: left; cursor: pointer;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .3s, box-shadow .3s; }
.hero-card[hidden] { display: none; }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 40, .88), transparent 62%); }
.hero-card span { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; z-index: 1; display: grid; gap: .2rem; }
.hero-card small { font: 700 .58rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hero-card strong { font: 600 .8rem/1.2 var(--display); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .4); }
.hero-card:hover img { transform: scale(1.06); }
.hero-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 1200px) { .hero-card { width: 96px; height: 136px; } }
@media (max-width: 960px) { .hero-cards { display: none; } }

/* The home slider fits the screen: from under the menu to just above the bottom, leaving room for the three
   pathway cards that overlap its foot. --above-hero is measured by site.js (the bars above can wrap). Type,
   gaps, the seal and the cards scale with the screen height, so nothing is cut off on short screens. */
.hero { height: auto; min-height: clamp(400px, calc(100svh - var(--above-hero, 135px) - var(--below-hero, 4.6rem)), 820px); }
/* The pathway cards are taller where their text wraps, so more of them sits below the slider. */
@media (max-width: 1200px) { .hero { --below-hero: 6.2rem; } }
@media (max-width: 960px) { .hero { --below-hero: 8.2rem; } }
.hero-inner { padding: clamp(1.2rem, 4vh, 4rem) 0 calc(4.2rem + clamp(.6rem, 2.4vh, 2rem)); }
.hero-main { gap: clamp(.7rem, 2vh, 1.5rem); }
.hero-text { gap: clamp(.55rem, 1.7vh, 1.3rem); }
.hero .hero-title { font-size: clamp(2rem, min(1.6rem + 4.2vw, 7.4vh), 4.75rem); }
.hero p { font-size: clamp(.95rem, 2.05vh, 1.18rem); }
.hero .hero-motto { margin-top: 0; padding-top: clamp(.5rem, 1.4vh, 1.1rem); font-size: clamp(1rem, 2vh, 1.2rem); }
.seal { width: clamp(120px, 23vh, 200px); height: clamp(120px, 23vh, 200px); }
.seal img { width: 59%; }
.hero-card { height: clamp(112px, 18vh, 158px); width: calc(clamp(112px, 18vh, 158px) * .71); }
@media (max-height: 780px) {
  .hero .btn--lg { padding-block: .7rem; font-size: .95rem; }
  .hero-btn { width: 34px; height: 34px; }
}
@media (max-width: 760px) {
  .hero { --below-hero: 0px; }
  .hero-inner { padding: 1.4rem 0 calc(2.5rem + 1rem); gap: 1rem; }
  .hero .hero-title { font-size: clamp(1.9rem, min(8.6vw, 5.6vh), 2.6rem); }
  .hero p { font-size: clamp(.92rem, 2vh, 1.05rem); }
  .hero-actions { gap: .6rem; }
  .hero-actions .btn { width: auto; flex: 1 1 auto; padding: .7rem 1rem; font-size: .92rem; }
}
/* Between tablet and laptop widths the seal would squeeze the headline onto five lines: the cards stay, the seal waits for wider screens. */
@media (min-width: 961px) and (max-width: 1200px) { .hero .seal { display: none; } }

/* Facilities: one page, a row per facility, photos and text on alternating sides */
.fac-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 3.5rem; }
.fac-jump a { padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.fac-jump a:hover { border-color: var(--green); color: var(--green); }
.fac { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: 3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.fac:first-of-type { border-top: 0; padding-top: 0; }
.fac--rev .fac-media { order: 2; }
.fac-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.fac-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: .8rem; }
.fac-more img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.fac-noimg { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: .6rem; border-radius: var(--radius); background: var(--sand); border: 2px dashed var(--line); color: var(--muted); }
.fac-noimg .icon { width: 2.6rem; height: 2.6rem; color: var(--gold); }
.fac-body { display: grid; gap: 1rem; justify-items: start; }
.fac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font: 700 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.fac-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; letter-spacing: 0; font: 600 .95rem var(--body); }
.fac-meta .readiness { color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 600; font-size: .85rem; }
.fac h2 { font-size: var(--step-4); }
.fac .lead { font-size: 1.15rem; color: var(--ink); }
@media (max-width: 860px) {
  .fac { grid-template-columns: 1fr; gap: 1.4rem; padding: 2.2rem 0; }
  .fac--rev .fac-media { order: 0; }
}

/* The counters: a light pattern in the school colours (green, gold and navy), faint enough to read over */
.facts { position: relative; border-top: 0; border-radius: var(--radius); padding: 1.6rem 1.8rem 1.8rem; overflow: hidden;
  background-color: #F2F6F0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M0 56L56 0M-14 14L14 -14M42 70L70 42' stroke='%230F1F40' stroke-opacity='.05' stroke-width='1'/%3E%3Cpath d='M28 22v12M22 28h12' stroke='%23C9973A' stroke-opacity='.28' stroke-width='1.6'/%3E%3Ccircle cx='0' cy='0' r='2' fill='%232F6A35' fill-opacity='.16'/%3E%3Ccircle cx='56' cy='56' r='2' fill='%232F6A35' fill-opacity='.16'/%3E%3Ccircle cx='56' cy='0' r='2' fill='%232F6A35' fill-opacity='.16'/%3E%3Ccircle cx='0' cy='56' r='2' fill='%232F6A35' fill-opacity='.16'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgba(47, 106, 53, .12); }
.facts li { padding-top: .4rem; }
.facts li + li { border-left-color: rgba(47, 106, 53, .16); }

/* News and stories: the school badge repeated, very faint, over the sand background */
.news-band { background: var(--sand) url(/images/pattern-badge.png) 0 0 / 220px 220px repeat; }

/* Message from the Head Teacher: one compact card, portrait and message side by side */
.head-msg { padding-block: clamp(2.5rem, 2rem + 2vw, 3.8rem); }
.hm-card { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start;
  max-width: 1020px; margin: 0 auto; padding: clamp(1.4rem, 2.5vw, 2rem); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green);
  border-radius: var(--radius); box-shadow: 0 18px 40px -30px rgba(15, 31, 64, .45); }
.hm-card::after { content: '“'; position: absolute; right: 1.4rem; top: .2rem; font: 700 7rem/1 var(--display); color: var(--gold); opacity: .18; pointer-events: none; }
.hm-photo { margin: 0; display: grid; gap: .7rem; }
.hm-photo img, .hm-photo .avatar { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: calc(var(--radius) - 2px); margin: 0; }
.hm-photo .avatar { font-size: 3.4rem; }
.hm-photo figcaption { display: grid; gap: .1rem; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.hm-photo figcaption strong { color: var(--ink); font-size: .95rem; }
.hm-body { display: grid; gap: .75rem; align-content: start; }
.hm-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.hm-text { display: grid; gap: .7rem; padding-left: 1rem; border-left: 2px solid rgba(47, 106, 53, .35); }
.hm-text p { font-size: 1rem; line-height: 1.65; color: var(--text); }
.hm-text p:first-child::first-line { font-weight: 600; color: var(--ink); }
.hm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-top: .3rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.hm-sign { display: grid; gap: .05rem; font-size: .85rem; color: var(--muted); }
.hm-sign strong { font: 600 1.05rem var(--display); color: var(--ink); }
.hm-foot .link-row { margin: 0; gap: 1rem; }
@media (max-width: 700px) {
  .hm-card { grid-template-columns: 1fr; }
  .hm-photo { grid-template-columns: 92px minmax(0, 1fr); align-items: center; }
  .hm-photo img, .hm-photo .avatar { aspect-ratio: 1; border-radius: 50%; }
  .hm-photo .avatar { font-size: 1.8rem; }
  .hm-sign { display: none; }
}

/* Alumni page: notable alumni as cards, a photo or their initials on a square, as on the Nyakasura site */
.people--alumni { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 1.4rem; }
.people--alumni .person img, .people--alumni .avatar { width: 100%; aspect-ratio: 1; margin: 0 0 .7rem; border-radius: var(--radius); }
.people--alumni .avatar { font-size: 2.6rem; color: var(--green); background: #EEF3EC; }
.people--alumni .person strong { font: 600 1.2rem/1.2 var(--display); color: var(--ink); }
.people--alumni .person span { font-size: .9rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 560px) { .people--alumni { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; } .people--alumni .avatar { font-size: 1.9rem; } }
.people.people--alumni .person .avatar { display: grid; place-items: center; font: 600 2.6rem/1 var(--display); }
@media (max-width: 560px) { .people.people--alumni .person .avatar { font-size: 1.9rem; } }
