/* =========================================================
   Brightwood College — School HTML Template
   Swap colours below to rebrand the whole site.
   ========================================================= */
:root {
  --primary: #1565c0;
  --primary-2: #1ea7e1;
  --accent: #f0563a;
  --accent-2: #f7a531;
  --ink: #16213a;
  --text: #4a5568;
  --muted: #8a94a6;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --line: #e3e9f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 33, 58, .08);
  --grad: linear-gradient(90deg, var(--primary-2), var(--primary));
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: 90px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; font: 600 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 999px; font: 600 .85rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; border: 2px solid transparent; cursor: pointer; transition: .25s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(21, 101, 192, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(21, 101, 192, .4); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-ghost { border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .3s, box-shadow .3s; }
.site-header.solid, .site-header.scrolled { position: fixed; background: #fff; color: var(--ink); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.site-header.solid { position: sticky; top: 0; }
.topbar { font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.site-header.solid .topbar, .site-header.scrolled .topbar { display: none; }
.topbar .container { display: flex; justify-content: flex-end; gap: 28px; padding: 8px 0; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 7px; opacity: .92; }
.topbar svg { width: 14px; height: 14px; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.site-header.scrolled .navbar .container, .site-header.solid .navbar .container { height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; font: 600 1.5rem/1 var(--font-head); letter-spacing: -.02em; }
.logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a { color: inherit; font-weight: 500; font-size: .97rem; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-2); }
.dropdown { position: absolute; top: 100%; left: -16px; min-width: 220px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 10px; list-style: none; margin: 10px 0 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.dropdown a { color: var(--ink) !important; display: block; padding: 9px 12px; border-radius: 6px; font-size: .92rem; }
.dropdown a:hover { background: var(--bg-soft); color: var(--primary) !important; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(10,30,70,.55), rgba(10,30,70,.35) 40%, rgba(10,30,70,.65)),
              url("../img/hero.jpg") center/cover no-repeat, linear-gradient(135deg, #0d47a1, #1ea7e1 60%, #4caf50); }
.hero-content { max-width: 820px; padding: 140px 16px 80px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.hero .award { font-size: .95rem; opacity: .92; letter-spacing: .04em; margin-bottom: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* Page banner (inner pages) */
.page-banner { padding: 90px 0 70px; text-align: center; color: #fff; background: linear-gradient(135deg, rgba(13,71,161,.92), rgba(30,167,225,.88)), url("../img/hero.jpg") center/cover; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.crumbs { font-size: .9rem; opacity: .9; }
.crumbs a { color: #fff; }

/* ---------- Stats strip ---------- */
.stats { margin-top: -60px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { text-align: center; padding: 32px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font: 700 2.2rem/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.2rem; }
.icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(30,167,225,.15), rgba(21,101,192,.15)); color: var(--primary); margin-bottom: 20px; }
.icon svg { width: 28px; height: 28px; }
.icon.warm { background: linear-gradient(135deg, rgba(247,165,49,.18), rgba(240,86,58,.18)); color: var(--accent); }

.media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(135deg, #1ea7e1, #0d47a1); box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .badge { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); }
.media .badge strong { display: block; font: 700 1.6rem/1 var(--font-head); color: var(--accent); }
.media .badge span { font-size: .82rem; color: var(--muted); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.85); font: 500 .9rem var(--font-head); }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* News cards */
.post { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--primary-2), var(--primary)); position: relative; }
.post .thumb.t2 { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.post .thumb.t3 { background: linear-gradient(135deg, #43a047, #1ea7e1); }
.post .date { position: absolute; top: 16px; left: 16px; background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 12px; text-align: center; font: 700 1.2rem/1 var(--font-head); }
.post .date small { display: block; font-size: .7rem; color: var(--muted); font-weight: 500; text-transform: uppercase; margin-top: 3px; }
.post .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.post .tag { font-size: .75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.post h3 { font-size: 1.15rem; }
.post .more { margin-top: auto; font-weight: 600; font-size: .9rem; }

/* Events list */
.event { display: flex; gap: 22px; align-items: center; background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); margin-bottom: 16px; }
.event .when { flex: 0 0 74px; text-align: center; background: var(--grad); color: #fff; border-radius: 12px; padding: 12px 0; font: 700 1.6rem/1 var(--font-head); }
.event .when small { display: block; font-size: .72rem; font-weight: 500; text-transform: uppercase; margin-top: 4px; }
.event h4 { margin: 0 0 4px; font-size: 1.05rem; }
.event p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Testimonials */
.quote { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 4px; right: 24px; font: 700 5rem/1 Georgia, serif; color: var(--line); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 600 1rem var(--font-head); }
.who strong { display: block; color: var(--ink); font-size: .95rem; }
.who span { font-size: .82rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; border-radius: 22px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; opacity: .9; }

/* Steps (admissions) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 30px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 700 2.4rem/1 var(--font-head); color: var(--primary-2); opacity: .25; display: block; margin-bottom: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--ink); color: #fff; font: 600 .85rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

/* Tabs (academics) */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tab-btn { padding: 11px 24px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 .9rem var(--font-head); color: var(--ink); cursor: pointer; }
.tab-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .35s; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font: 600 1rem var(--font-head); color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; margin: 0; }

/* Forms */
.form { background: #fff; border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font: 600 .85rem var(--font-head); color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--bg-soft); transition: .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--primary-2); background: #fff; box-shadow: 0 0 0 4px rgba(30,167,225,.15); }
.form-msg { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 10px; background: #e8f7ee; color: #1b7a43; font-weight: 500; }
.form-msg.show { display: block; }

.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item .icon { margin: 0; flex: 0 0 52px; width: 52px; height: 52px; }
.info-item h4 { margin: 0 0 4px; font-size: 1rem; }
.info-item p { margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/7; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Staff */
.staff { text-align: center; }
.staff .photo { aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-2), var(--primary)); margin-bottom: 16px; display: grid; place-items: center; color: #fff; font: 600 2rem var(--font-head); }
.staff h4 { margin: 0; }
.staff span { font-size: .88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #0e1730; color: #aeb7c9; padding-top: 80px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; }
.site-footer .logo { color: #fff; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #aeb7c9; transition: .2s; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--grad); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.newsletter { display: flex; margin-top: 14px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 5px; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; padding: 0 14px; font: inherit; }
.newsletter input:focus { outline: 0; }
.newsletter button { padding: 10px 18px; font-size: .75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

.back-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .3s; z-index: 40; }
.back-top.show { opacity: 1; visibility: visible; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 90px 24px 24px; transform: translateX(100%); transition: .3s; box-shadow: -10px 0 30px rgba(0,0,0,.15); overflow-y: auto; }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 0; padding: 0 0 0 14px; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-links .mobile-cta { display: block; margin-top: 20px; }
  .nav-links .mobile-cta a { justify-content: center; color: #fff; border: 0; }
  .nav-toggle { position: relative; z-index: 60; }
  body.nav-open .nav-toggle { color: var(--ink); }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .topbar .container { justify-content: center; }
}
@media (min-width: 901px) { .mobile-cta { display: none; } }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-4, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .cta-band, .form { padding: 32px 24px; }
  .topbar .email-link { display: none; }
}

/* =========================================================
   Notice banner
   ========================================================= */
.notice-bar { position: relative; z-index: 60; color: #fff; font-size: .9rem; background: linear-gradient(90deg, #c62828, #f0563a); }
.notice-bar.info { background: var(--grad); }
.notice-bar[hidden] { display: none; }
.notice-bar .container { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.notice-bar p { margin: 0; flex: 1; line-height: 1.45; }
.notice-bar a { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; }
.notice-icon { flex: 0 0 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 700; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } }
.notice-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .85; }
.notice-close:hover { opacity: 1; }

/* =========================================================
   Filters (staff / vacancies / calendar)
   ========================================================= */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.search { position: relative; flex: 0 1 300px; }
.search input { width: 100%; padding: 11px 16px 11px 40px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.search input:focus { outline: 0; border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(30,167,225,.15); }
.search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); }
.empty { text-align: center; padding: 40px; color: var(--muted); display: none; }
.empty.show { display: block; }

/* Staff directory */
.dept { margin-bottom: 56px; }
.dept[hidden] { display: none; }
.dept-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.dept-head h2 { font-size: 1.4rem; margin: 0; }
.dept-head .count { font-size: .8rem; color: var(--muted); background: var(--bg-soft); padding: 4px 10px; border-radius: 999px; }
.dept-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.person { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: .2s; }
.person:hover { box-shadow: var(--shadow); border-color: transparent; }
.person[hidden] { display: none; }
.person .avatar { flex: 0 0 56px; width: 56px; height: 56px; font-size: 1.05rem; }
.person h4 { margin: 0 0 2px; font-size: 1rem; }
.person .role { font-size: .85rem; color: var(--text); margin: 0; }
.person .subjects { font-size: .78rem; color: var(--muted); margin: 2px 0 0; }
.person .mail { font-size: .8rem; font-weight: 600; display: inline-block; margin-top: 4px; }
.person.lead .avatar { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }

/* Vacancies */
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; transition: .2s; }
.job:hover { box-shadow: var(--shadow); }
.job[hidden] { display: none; }
.job summary { list-style: none; cursor: pointer; padding: 24px 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.job summary::-webkit-details-marker { display: none; }
.job .job-title { flex: 1 1 300px; }
.job h3 { margin: 0 0 8px; font-size: 1.2rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); }
.pill.blue { background: rgba(30,167,225,.12); color: var(--primary); }
.pill.warm { background: rgba(240,86,58,.12); color: var(--accent); }
.pill.green { background: #e8f7ee; color: #1b7a43; }
.closing { text-align: right; font-size: .85rem; color: var(--muted); }
.closing strong { display: block; color: var(--ink); font-family: var(--font-head); }
.job .toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--primary); transition: .25s; }
.job[open] .toggle { transform: rotate(45deg); background: var(--grad); color: #fff; border-color: transparent; }
.job-body { padding: 0 28px 28px; border-top: 1px solid var(--line); }
.job-body .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 24px; }
.job-body h4 { font-size: 1rem; margin-bottom: 10px; }
.job-body ul { padding-left: 18px; margin: 0 0 16px; }
.job-body li { margin-bottom: 6px; }
.job-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* =========================================================
   Calendar
   ========================================================= */
.cal-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.cal { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 24px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.cal-head h2 { margin: 0; font-size: 1.4rem; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { height: 38px; min-width: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 600 .85rem var(--font-head); color: var(--ink); }
.cal-nav button:hover { border-color: var(--primary-2); color: var(--primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font: 600 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 0; }
.cal-day { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 3px; transition: .15s; overflow: hidden; }
.cal-day:hover { border-color: var(--primary-2); }
.cal-day.other { opacity: .35; }
.cal-day.weekend { background: var(--bg-soft); }
.cal-day .num { font: 600 .85rem var(--font-head); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .num { background: var(--accent); color: #fff; }
.cal-day.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(21,101,192,.25); }
.cal-ev { font-size: .7rem; line-height: 1.25; padding: 3px 6px; border-radius: 5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: .7rem; color: var(--muted); padding-left: 4px; }
.dots { display: none; gap: 3px; justify-content: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; }

.c-academic { background: #1565c0; } .c-sport { background: #2e7d32; } .c-culture { background: #8e24aa; }
.c-holiday { background: #f0563a; } .c-meeting { background: #f7a531; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend .chip { display: inline-flex; align-items: center; gap: 7px; }
.legend .chip i { width: 10px; height: 10px; border-radius: 50%; }
.legend .chip.off { opacity: .45; text-decoration: line-through; }

.agenda { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 24px; position: sticky; top: 96px; }
.agenda h3 { font-size: 1.15rem; margin-bottom: 4px; }
.agenda .sub { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.ag-item { border-left: 4px solid var(--primary); padding: 4px 0 4px 14px; margin-bottom: 20px; }
.ag-item h4 { margin: 0 0 4px; font-size: .98rem; }
.ag-item .when { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.ag-item .desc { font-size: .88rem; margin: 0 0 10px; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 .75rem var(--font-head); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.ag-btn:hover { border-color: var(--primary-2); color: var(--primary); }
.ag-btn.g { background: var(--grad); color: #fff; border-color: transparent; }
.ag-btn svg { width: 14px; height: 14px; }
.ag-empty { color: var(--muted); font-size: .9rem; }
.cal-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media (max-width: 1000px) {
  .cal-layout { grid-template-columns: 1fr; }
  .agenda { position: static; }
}
@media (max-width: 640px) {
  .notice-bar { font-size: .82rem; }
  .cal { padding: 14px; }
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 52px; align-items: center; padding: 4px 2px; }
  .cal-ev, .cal-more { display: none; }
  .dots { display: flex; }
  .cal-head h2 { font-size: 1.1rem; }
  .job summary { padding: 20px; }
  .job-body { padding: 0 20px 20px; }
  .job-body .cols { grid-template-columns: 1fr; gap: 0; }
  .closing { text-align: left; }
  .search { flex-basis: 100%; }
}

/* =========================================================
   Round 3 additions
   ========================================================= */
.topbar .report-link { margin-right: auto; color: var(--accent-2); font-weight: 600; }
.topbar .report-link svg { width: 14px; height: 14px; }
.site-header.solid .topbar .report-link { color: var(--accent); }
.print-btn { display: inline-flex; align-items: center; gap: 8px; }
.print-btn svg { width: 16px; height: 16px; }
.section-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Cookie / POPIA consent */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 80; width: min(440px, calc(100% - 32px)); background: #fff; color: var(--text); border-radius: 18px; box-shadow: 0 20px 60px rgba(14,23,48,.25); padding: 24px; font-size: .9rem; border: 1px solid var(--line); }
.consent[hidden] { display: none; }
.consent h3 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.consent p { margin-bottom: 14px; }
.consent .row { display: flex; gap: 8px; flex-wrap: wrap; }
.consent .btn { padding: 10px 16px; font-size: .75rem; }
.consent .link-btn { background: none; border: 0; color: var(--primary); font: 600 .8rem var(--font-head); cursor: pointer; padding: 10px 6px; }
.consent-opts { border-top: 1px solid var(--line); margin: 6px 0 14px; padding-top: 10px; }
.consent-opts[hidden] { display: none; }
.opt { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.opt:last-child { border-bottom: 0; }
.opt strong { color: var(--ink); display: block; font-size: .88rem; }
.opt span { font-size: .8rem; color: var(--muted); }
.switch { position: relative; flex: 0 0 44px; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #cfd8e3; transition: .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: .55; cursor: not-allowed; }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(30,167,225,.35); }
.footer-link-btn { background: none; border: 0; padding: 0; color: #aeb7c9; font: inherit; cursor: pointer; }
.footer-link-btn:hover { color: #fff; }

/* Countdown */
.countdown { margin-top: 50px; }
.countdown[hidden] { display: none; }
.cd-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 22px; padding: 34px 40px; position: relative; overflow: hidden; }
.cd-card::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(30,167,225,.35), transparent 70%); }
.cd-info { position: relative; }
.cd-info .eyebrow { color: var(--accent-2); }
.cd-info h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 4px; }
.cd-info p { margin: 0; opacity: .75; font-size: .92rem; }
.cd-timer { display: flex; gap: 12px; position: relative; }
.cd-unit { width: 84px; text-align: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 0 10px; }
.cd-unit strong { display: block; font: 700 2rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.cd-actions { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }

/* Policies */
.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 100px; background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.toc h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; font-size: .92rem; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--primary); }
.policy-group { margin-bottom: 40px; scroll-margin-top: 100px; }
.policy-group[hidden] { display: none; }
.policy-group > h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.policy-group > h2 .icon { width: 42px; height: 42px; margin: 0; border-radius: 10px; }
.policy-group > h2 .icon svg { width: 20px; height: 20px; }
.policy { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.policy[hidden] { display: none; }
.policy summary { list-style: none; cursor: pointer; padding: 16px 20px; font: 600 1rem var(--font-head); color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.policy summary::-webkit-details-marker { display: none; }
.policy summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); line-height: 1; }
.policy[open] summary::after { content: "–"; }
.policy .p-body { padding: 0 20px 18px; }
.policy .p-body ul, .policy .p-body ol { padding-left: 20px; margin: 0 0 12px; }
.policy .p-body li { margin-bottom: 6px; }
mark { background: #fff3b0; color: inherit; padding: 0 2px; border-radius: 3px; }
.callout { border-radius: 14px; padding: 20px 22px; background: rgba(30,167,225,.08); border-left: 4px solid var(--primary-2); margin: 16px 0; }
.callout.danger { background: #fdecea; border-color: #c62828; }
.callout.danger strong { color: #b71c1c; }
.callout p:last-child { margin: 0; }
.level-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Report form */
.emergency { display: flex; gap: 16px; align-items: flex-start; background: #fdecea; border: 1px solid #f5c6c0; color: #8a1c13; border-radius: 14px; padding: 18px 20px; margin-bottom: 26px; }
.emergency strong { color: #b71c1c; }
.emergency a { color: #b71c1c; font-weight: 700; }
.emergency .icon { margin: 0; flex: 0 0 44px; width: 44px; height: 44px; background: #c62828; color: #fff; }
.emergency .icon svg { width: 22px; height: 22px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.toggle-row strong { display: block; color: var(--ink); font-family: var(--font-head); }
.toggle-row span { font-size: .85rem; color: var(--muted); }
.identity[hidden] { display: none; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.field input[type=file] { padding: 10px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin-bottom: 18px; }
.check input { margin-top: 4px; accent-color: var(--primary); width: 16px; height: 16px; flex: 0 0 16px; }
.success-panel { text-align: center; padding: 30px 10px; }
.success-panel[hidden] { display: none; }
.success-panel .icon { margin: 0 auto 18px; width: 70px; height: 70px; border-radius: 50%; background: #e8f7ee; color: #1b7a43; }
.ref-code { display: inline-flex; align-items: center; gap: 10px; font: 700 1.4rem var(--font-head); letter-spacing: .08em; color: var(--ink); background: var(--bg-soft); border: 2px dashed var(--line); border-radius: 12px; padding: 12px 20px; margin: 12px 0 18px; }

/* Copy buttons / banking */
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 .75rem var(--font-head); color: var(--primary); cursor: pointer; transition: .2s; white-space: nowrap; }
.copy-btn:hover { border-color: var(--primary-2); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.copied { background: #e8f7ee; border-color: #b9e5c9; color: #1b7a43; }
.bank-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.bank-card .bc-head { background: var(--grad); color: #fff; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.bank-card .bc-head h3 { color: #fff; margin: 0; }
.bank-card .bc-head p { margin: 0; opacity: .85; font-size: .88rem; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.bank-row:last-child { border-bottom: 0; }
.bank-row span { font-size: .82rem; color: var(--muted); display: block; }
.bank-row strong { color: var(--ink); font: 600 1.05rem var(--font-head); font-variant-numeric: tabular-nums; }
.ref-out { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; border-radius: 12px; padding: 16px 18px; margin-top: 8px; }
.ref-out strong { font: 700 1.3rem var(--font-head); letter-spacing: .06em; word-break: break-all; }
.ref-out .copy-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

/* Sports */
.sport-card { position: relative; }
.sport-card[hidden] { display: none; }
.sport-card .season { position: absolute; top: 20px; right: 20px; }
.sport-card .teams { font-size: .82rem; color: var(--muted); margin: 0; }
.result { font: 700 .9rem var(--font-head); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.wl { display: inline-block; width: 26px; height: 26px; border-radius: 6px; text-align: center; line-height: 26px; font: 700 .75rem var(--font-head); color: #fff; margin-right: 8px; }
.wl.w { background: #2e7d32; } .wl.l { background: #c62828; } .wl.d { background: #8a94a6; }
.honours { counter-reset: h; list-style: none; padding: 0; margin: 0; }
.honours li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.honours li::before { content: "🏆"; font-size: 1.2rem; }

/* Past papers */
.filter-bar { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 26px; }
.filter-bar select, .filter-bar input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg-soft); color: var(--ink); }
.filter-bar label { font: 600 .75rem var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 5px; }
.results-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.dl { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font: 600 .78rem var(--font-head); border: 1px solid var(--line); color: var(--ink); background: #fff; margin: 2px 4px 2px 0; }
.dl:hover { border-color: var(--primary-2); color: var(--primary); }
.dl.memo { color: var(--accent); }
.dl svg { width: 14px; height: 14px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pager button { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 600 .85rem var(--font-head); cursor: pointer; color: var(--ink); }
.pager button.active { background: var(--grad); color: #fff; border-color: transparent; }

/* Subject guide */
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 .88rem var(--font-body); color: var(--ink); cursor: pointer; transition: .15s; }
.check-chip input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.check-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30,167,225,.35); }
.check-chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.panel h3 { font-size: 1.15rem; }
.career-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.career { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.career h4 { margin: 0 0 6px; font-size: 1rem; }
.career p { font-size: .85rem; margin: 0 0 8px; }
.career.partial { opacity: .75; border-style: dashed; }
.career .missing { color: var(--accent); font-size: .8rem; font-weight: 600; }
.req-list { list-style: none; padding: 0; margin: 0 0 14px; }
.req-list li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.req-list li::before { content: "●"; position: absolute; left: 6px; color: var(--primary-2); }
.req-list li.must::before { content: "★"; color: var(--accent); }
.aps-row { display: grid; grid-template-columns: 1fr 110px 50px; gap: 10px; align-items: center; margin-bottom: 8px; }
.aps-row select, .aps-row input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg-soft); width: 100%; }
.aps-row .pts { text-align: center; font: 700 1rem var(--font-head); color: var(--primary); }
.aps-total { display: flex; justify-content: space-between; align-items: center; background: var(--grad); color: #fff; border-radius: 12px; padding: 16px 20px; margin-top: 14px; }
.aps-total strong { font: 700 2rem/1 var(--font-head); }

/* Learner council */
.council-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 50px; }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; text-align: center; transition: .25s; position: relative; }
.c-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.c-card .avatar { width: 92px; height: 92px; margin: 0 auto 16px; font-size: 1.6rem; }
.c-card.big { padding: 36px; display: grid; grid-template-columns: 130px 1fr; gap: 24px; text-align: left; align-items: center; }
.c-card.big .avatar { width: 130px; height: 130px; font-size: 2.2rem; margin: 0; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.c-card h4 { margin: 0 0 2px; font-size: 1.1rem; }
.c-card .role { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.c-card .grade { font-size: .82rem; color: var(--muted); }
.c-card blockquote { margin: 12px 0 0; font-size: .9rem; font-style: italic; color: var(--text); }
.reps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rep { text-align: center; background: var(--bg-soft); border-radius: 14px; padding: 18px 10px; }
.rep .avatar { width: 54px; height: 54px; margin: 0 auto 10px; }
.rep strong { display: block; color: var(--ink); font-size: .92rem; }
.rep span { font-size: .78rem; color: var(--muted); }

/* 404 */
.err { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err .code { font: 700 clamp(6rem, 18vw, 11rem)/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.04em; }
.err h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.err .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

/* PWA install */
.install-btn[hidden] { display: none; }
.install-btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font: 600 .8rem var(--font-head); cursor: pointer; }
.install-btn:hover { background: var(--grad); border-color: transparent; }
.install-btn svg { width: 16px; height: 16px; }
.ios-hint { font-size: .8rem; margin-top: 8px; color: #aeb7c9; }
.ios-hint[hidden] { display: none; }
.offline-pill { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .85rem; box-shadow: var(--shadow); }
.offline-pill[hidden] { display: none; }

@media (max-width: 1000px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .filter-bar .fb-search { grid-column: 1 / -1; }
  .reps { grid-template-columns: repeat(3, 1fr); }
  .council-lead { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cd-card { padding: 26px 20px; }
  .cd-timer { width: 100%; justify-content: space-between; gap: 6px; }
  .cd-unit { flex: 1; width: auto; }
  .cd-unit strong { font-size: 1.5rem; }
  .c-card.big { grid-template-columns: 1fr; text-align: center; }
  .c-card.big .avatar { margin: 0 auto; width: 100px; height: 100px; }
  .reps { grid-template-columns: repeat(2, 1fr); }
  .bank-row { padding: 14px 18px; }
  .aps-row { grid-template-columns: 1fr 80px 40px; }
  .filter-bar { grid-template-columns: 1fr; }
  .topbar .report-link { margin-right: 0; }
  .topbar a:not(.report-link):not(.email-link) { display: none; }
}

/* =========================================================
   Print styles — calendar, fees, timetables, policies, banking
   ========================================================= */
@media print {
  @page { margin: 14mm; }
  * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .site-header, .site-footer, .notice-bar, .consent, .back-top, .offline-pill, .cta-band, .toolbar, .tabs,
  .btn, .print-btn, .copy-btn, .cal-nav, .cal-foot, .ag-actions, .pager, .filter-bar, .scroll-cue,
  .toc, form .btn, .section-actions, .no-print { display: none !important; }
  main::before { content: "Brightwood College  ·  +27 11 000 0000  ·  info@brightwood.school"; display: block; font: 600 10pt var(--font-head); border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 14px; }
  .page-banner { background: none !important; color: #000; padding: 0 0 10px; text-align: left; }
  .page-banner h1 { color: #000; font-size: 20pt; }
  .crumbs { display: none; }
  .section { padding: 12px 0 !important; background: none !important; }
  .section-head { margin-bottom: 12px; text-align: left; max-width: none; }
  .container { width: 100%; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .eyebrow { color: #000; }
  a { color: #000; text-decoration: none; }
  .table-wrap { overflow: visible; border-radius: 0; }
  table { min-width: 0; border: 1px solid #999; }
  th { background: #eee !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  th, td { border: 1px solid #bbb; padding: 6px 8px; }
  tr, .event, .person, .job, .policy, .c-card, .card, .career, .bank-row { break-inside: avoid; }
  .grid-2, .grid-3, .grid-4, .cal-layout, .doc-layout, .council-lead { display: block; }
  .grid-2 > *, .grid-3 > * { margin-bottom: 12px; }
  .media { display: none; }
  /* Calendar */
  .cal, .agenda { padding: 0; border-radius: 0; position: static; }
  .cal-grid { gap: 0; border: 1px solid #999; }
  .cal-dow { border: 1px solid #ccc; }
  .cal-day { min-height: 70px; border-radius: 0; border: 1px solid #ccc; background: #fff !important; }
  .cal-day.other { opacity: .4; }
  .cal-day.today .num { background: none; color: #000; text-decoration: underline; }
  .cal-ev, .cal-more { display: block !important; white-space: normal; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dots { display: none !important; }
  .agenda { break-before: page; }
  /* Expand collapsed content */
  details > *:not(summary) { display: block !important; }
  .policy summary::after, .job .toggle, .faq summary::after { display: none; }
  .tab-panel { display: block !important; margin-bottom: 14px; }
  .bank-card .bc-head { background: none; color: #000; border-bottom: 2px solid #000; padding: 10px 0; }
  .bank-card .bc-head h3 { color: #000; }
  .bank-row { padding: 8px 0; }
  .ref-out { background: none; color: #000; border: 1px solid #000; }
}

/* Let wide tables scroll inside grid columns instead of stretching the page */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .cal-layout > *, .doc-layout > * { min-width: 0; }
[hidden] { display: none !important; }
.topbar .portal-link { font-weight: 600; }
@media (max-width: 640px) { .topbar .portal-link { display: inline-flex; } }

/* =========================================================
   Application tracker, photo consent, Information Officer
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.link-btn { background: none; border: 0; color: var(--primary); font: 600 .85rem var(--font-head); cursor: pointer; padding: 8px 4px; }
.link-btn:hover { text-decoration: underline; }
.form-error { margin-top: 16px; padding: 14px 18px; border-radius: 10px; background: #fdecea; color: #b71c1c; font-weight: 500; }
.form-error[hidden] { display: none; }
.demo-note { margin: 14px 0; padding: 12px 16px; border-radius: 10px; background: #fff6e0; border: 1px solid #f3d38a; color: #7a5200; font-size: .85rem; text-align: left; }
.hint { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.samples { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* Tracker */
.track-result { margin-top: 36px; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.track-head h2 { margin: 0 0 4px; font-size: 1.7rem; }
.track-head p { margin: 0; }
.track-updated { font-size: .85rem; color: var(--muted); margin: -4px 0 24px; }
.status-pill { display: inline-block; padding: 8px 18px; border-radius: 999px; font: 600 .85rem var(--font-head); background: var(--bg-soft); color: var(--ink); }
.status-pill.info { background: rgba(30,167,225,.14); color: var(--primary); }
.status-pill.good { background: #e8f7ee; color: #1b7a43; }
.status-pill.warn { background: #fff3dc; color: #8a5a00; }
.status-pill.bad { background: #fdecea; color: #b71c1c; }
.track-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.track-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.track-box h3 { font-size: 1.05rem; display: flex; justify-content: space-between; gap: 8px; }
.track-box .muted { color: var(--muted); font-weight: 500; font-size: .85rem; }
.track-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; display: flex; gap: 18px; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.done::before { background: var(--primary-2); }
.tl-dot { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; color: #fff; z-index: 1; }
.tl-dot svg { width: 14px; height: 14px; }
.tl-item.done .tl-dot { background: var(--primary-2); border-color: var(--primary-2); }
.tl-item.current .tl-dot { border-color: var(--primary); box-shadow: 0 0 0 5px rgba(30,167,225,.2); background: var(--primary); }
.tl-item.skipped { opacity: .55; }
.tl-item h4 { margin: 2px 0 4px; font-size: 1rem; }
.tl-item.upcoming h4, .tl-item.skipped h4 { color: var(--muted); }
.tl-item p { margin: 0; font-size: .92rem; }
.tl-date { font: 500 .78rem var(--font-body); color: var(--muted); margin-left: 8px; }
.progress-bar { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin: 6px 0 14px; }
.progress-bar span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .9rem; }
.doc-list li > span:first-child { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; }
.doc-list li.got > span:first-child { background: #1b7a43; border-color: #1b7a43; }
.doc-list li > span:first-child svg { width: 11px; height: 11px; }
.doc-list li.need { color: var(--ink); font-weight: 500; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-weight: 500; color: var(--ink); }
.mini-checks { display: grid; gap: 8px; margin: 4px 0 8px; font-size: .88rem; }
.mini-checks label { display: flex; gap: 8px; align-items: flex-start; }
.mini-checks input { accent-color: var(--primary); margin-top: 4px; }
.email-preview { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; font-size: .85rem; }
.email-preview dl { margin: 0; padding: 12px 16px; background: var(--bg-soft); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.email-preview dt { color: var(--muted); }
.email-preview dd { margin: 0; overflow-wrap: anywhere; }
.ep-body { padding: 14px 16px; }
.ep-body p { margin: 0 0 .8em; }
.ep-body ul { margin: 0 0 .8em; padding-left: 20px; }
.ep-foot { font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* Photo consent */
.consent-facts .card { padding: 24px; }
.consent-facts .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
.form h3 { margin: 26px 0 14px; font-size: 1.1rem; }
.form h3:first-child { margin-top: 0; }
.consent-bulk { display: flex; gap: 12px; margin-bottom: 8px; }
.consent-items { border-top: 1px solid var(--line); margin-bottom: 22px; }
.consent-item { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci-text h4 { margin: 0 0 4px; font-size: 1rem; }
.ci-text p { margin: 0 0 4px; font-size: .9rem; }
.ci-text small { color: var(--muted); }
.choice { display: flex; gap: 8px; flex: none; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; min-width: 64px; text-align: center; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font: 600 .85rem var(--font-head); color: var(--text); cursor: pointer; background: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(30,167,225,.3); }
.choice input[value="yes"]:checked + span { background: #e8f7ee; border-color: #1b7a43; color: #1b7a43; }
.choice input[value="no"]:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.done-table { margin: 18px auto; max-width: 560px; text-align: left; }
.plain-steps { padding-left: 20px; }
.plain-steps li { margin-bottom: 12px; }

/* Privacy: Information Officer */
.page-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.page-toc a { padding: 7px 14px; border-radius: 999px; background: var(--bg-soft); font-size: .85rem; font-weight: 500; }
.io-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin: 18px 0 24px; background: #fff; box-shadow: var(--shadow); }
.io-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.io-head h3 { margin: 0; }
.io-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 0; }
.io-grid dt { font: 600 .75rem var(--font-head); color: var(--muted); margin-bottom: 3px; }
.io-grid dd { margin: 0; color: var(--ink); }
.io-grid dd span { color: var(--muted); font-size: .88rem; }
.io-note { margin: 18px 0 0; font-size: .82rem; color: var(--muted); }
#dsr-form { margin: 18px 0 30px; box-shadow: none; border: 1px solid var(--line); }

@media (max-width: 900px) {
  .track-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .consent-item { flex-direction: column; align-items: flex-start; }
  .io-grid { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
}
@media print {
  .track-form, .samples, .faq, .track-actions, .switch-row, .mini-checks, #pf-email, .consent-bulk { display: none !important; }
  .track-grid { grid-template-columns: 1fr; }
  .track-box, .io-card { box-shadow: none; break-inside: avoid; }
}

/* =========================================================
   Mobile safety: nothing may be wider than the screen.
   Vertical scrolling only. Tables turn into stacked cards.
   ========================================================= */
html { overflow-x: hidden; max-width: 100%; }
body { overflow-x: clip; max-width: 100%; overflow-wrap: break-word; }
img, video, canvas, iframe, embed, object, svg { max-width: 100%; }
img, video, canvas { height: auto; }
.container, .grid-2, .grid-3, .grid-4, .form-row, .card, .field, .section-head, .track-grid > *, .consent-item > * { min-width: 0; }
input, select, textarea, button { max-width: 100%; }
input, select, textarea { min-width: 0; }
pre, code, .ref-code, .email-preview dd { overflow-wrap: anywhere; word-break: break-word; }
.table-wrap { max-width: 100%; }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; padding: 6px 14px; background: #fff; }
  table.stack td { display: flex; justify-content: space-between; gap: 14px; border: 0; padding: 6px 0; text-align: right; }
  table.stack td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; flex: none; max-width: 45%; }
  .table-wrap { overflow: visible; }
  .btn { max-width: 100%; white-space: normal; text-align: center; }
  .section-actions, .hero-actions, .track-actions { flex-wrap: wrap; }
}

/* Skeleton loaders (public pages) */
.skeleton { display: block; height: 14px; margin: 10px 0; border-radius: 6px; background: linear-gradient(90deg, #e8edf5 25%, #f6f8fc 40%, #e8edf5 60%); background-size: 400% 100%; animation: sk-shimmer 1.3s ease infinite; }
.skeleton.big { height: 28px; width: 55%; } .skeleton.short { width: 60%; }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.nl-msg { font-size: .85rem; margin: 8px 0 0; min-height: 1.2em; } .nl-msg.ok { color: #8be0ad; } .nl-msg.err { color: #ffb4a8; }
.sample-chip { border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font: 500 .8rem var(--font-body); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.sample-chip:hover { border-color: var(--primary-2); color: var(--primary); }
