/* ==========================================================================
   Monarch Application Hub — public site
   Navy + gold from the two crests, ivory paper, serif display type.
   Loaded only on public pages (home, programmes, scholarships, how to
   apply, help, sign-in). No JavaScript required for any layout.
   ========================================================================== */

:root {
  --navy-950: #061733;
  --navy-900: #0A2350;
  --navy-800: #0E2F66;
  --navy-700: #16407F;
  --royal: #2A5BA8;
  --gold: #F4C20D;
  --gold-600: #D9A60A;
  --gold-100: #FDF5D6;
  --ivory: #FAF8F3;
  --paper: #FFFFFF;
  --ink: #0E1A2C;
  --ink-2: #3A4960;
  --muted: #677588;
  --line: #E7E2D7;
  --line-cool: #E3E8F0;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --r: 14px;
  --r-sm: 8px;
  --shadow-1: 0 1px 2px rgba(10, 35, 80, .06), 0 2px 8px rgba(10, 35, 80, .05);
  --shadow-2: 0 10px 30px rgba(6, 23, 51, .12);
}

body.site { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site img { max-width: 100%; }
.site img:not([class]) { height: auto; }
.site a { color: var(--royal); }
.site a:hover { color: var(--navy-800); }
.site :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy-950); padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 12px; }

/* ---- Type ---------------------------------------------------------------- */
.site h1, .site h2, .site h3 { font-family: var(--serif); color: var(--navy-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
.site h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.site h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.site h3 { font-size: 1.25rem; }
.site p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow.on-dark { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---- Buttons ------------------------------------------------------------- */
.site .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 700 .98rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.site .btn-gold { background: var(--gold); color: var(--navy-950); }
.site .btn-gold:hover { background: #FFD43A; color: var(--navy-950); box-shadow: 0 6px 18px rgba(244, 194, 13, .35); }
.site .btn-navy { background: var(--navy-800); color: #fff; }
.site .btn-navy:hover { background: var(--navy-900); color: #fff; }
.site .btn-line { border-color: currentColor; color: var(--navy-800); background: transparent; }
.site .btn-line:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.site .btn-line.on-dark { color: #fff; }
.site .btn-line.on-dark:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.site .btn-block { width: 100%; }
.site .btn[disabled] { opacity: .6; cursor: default; }

/* ---- Utility bar + header ------------------------------------------------ */
.utility { background: var(--navy-950); color: #C9D4E6; font-size: .8rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--gold); }
.utility-links { display: flex; gap: 22px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; flex-shrink: 0; }
.site .brand-school { height: 56px; width: auto; }
.brand-rule { width: 1px; align-self: stretch; margin: 18px 0; background: var(--line); }
.site .brand-portal { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a:not(.btn) { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 10px 12px; border-radius: 8px; }
.site-nav > a:not(.btn):hover, .site-nav > a[aria-current="page"] { color: var(--navy-800); background: var(--ivory); }
.site-nav > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
.site-nav .btn { margin-left: 8px; min-height: 44px; }
.nav-toggle { display: none; }
.nav-toggle .site-nav { display: none; }
.nav-toggle > summary { list-style: none; cursor: pointer; padding: 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--navy-800); display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.nav-toggle > summary::-webkit-details-marker { display: none; }

@media (max-width: 1180px) {
  .site-header > .wrap > .site-nav { display: none; }
  .nav-toggle { display: block; position: static; }
  .nav-toggle[open] .site-nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow-2); }
  .nav-toggle[open] .site-nav .btn { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  .utility-links a:not(:first-child) { display: none; }
  .utility .tagline { display: none; }
  .site-header .wrap { min-height: 74px; }
  .brand { gap: 12px; }
  .site .brand-school { height: 40px; }
  .site .brand-portal { height: 28px; }
}
@media (max-width: 400px) { .brand-rule, .brand-portal { display: none; } }

/* ---- Hero ---------------------------------------------------------------- */
.hero-site { background: var(--navy-900); color: #DCE4F1; position: relative; overflow: hidden; isolation: isolate; }
.hero-site::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gold); }
.hero-site .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.hero-site h1 { color: #fff; }
.hero-site h1 em { font-style: normal; color: var(--gold); }
.hero-site .lead { color: #C6D2E6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; list-style: none; font-size: .92rem; color: #C6D2E6; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--gold); flex-shrink: 0; }
.site .hero-crest { height: auto; position: absolute; right: -80px; bottom: -120px; width: 520px; opacity: .05; z-index: -1; pointer-events: none; }
@media (max-width: 960px) { .hero-site .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; } }


/* ---- Trust strip --------------------------------------------------------- */
.trust { background: var(--ivory); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.trust-item { padding: 26px 22px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--navy-900); line-height: 1.1; }
.trust-label { font-size: .88rem; color: var(--ink-2); }
@media (max-width: 820px) { .trust .wrap { grid-template-columns: 1fr; } .trust-item { border-left: 0; border-top: 1px solid var(--line); } }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.navy { background: var(--navy-900); color: #DCE4F1; }
.section.navy h2, .section.navy h3 { color: #fff; }
.site .section-head { max-width: 720px; margin: 0 0 48px; text-align: left; }
.site .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section.navy .section-head p { color: #C6D2E6; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---- Cards --------------------------------------------------------------- */
.card-s { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-1); }
.card-s h3 { margin-bottom: .35em; }
.card-s p:last-child { margin-bottom: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); color: var(--gold); margin-bottom: 18px; }
a.card-s { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card-s:hover { border-color: var(--navy-700); box-shadow: var(--shadow-2); transform: translateY(-2px); color: var(--ink); }
.card-link { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--royal); display: inline-flex; align-items: center; gap: 6px; }
.from { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.from strong { color: var(--navy-900); font-size: 1.05rem; }

/* ---- Steps --------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: var(--line); }
.steps li { position: relative; padding: 0 16px; text-align: center; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy-800); color: #fff; font: 700 1.2rem/1 var(--serif); box-shadow: 0 0 0 6px var(--paper); position: relative; }
.section.alt .steps li::before { box-shadow: 0 0 0 6px var(--ivory); }
.steps li:last-child::before { background: var(--gold); color: var(--navy-950); }
.steps h3 { font-size: 1.08rem; }
.steps p { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; }
  .steps li { text-align: left; padding: 0 0 18px 80px; min-height: 64px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Detailed numbered process (How to apply) */
.process { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.process > li { counter-increment: p; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.process > li::before { content: counter(p, decimal-leading-zero); font: 700 2.2rem/1 var(--serif); color: var(--gold-600); }
.process h3 { font-size: 1.35rem; }
.process ul { margin: .5em 0 0; padding-left: 1.2em; color: var(--ink-2); }
.process li li { margin-bottom: .3em; }
.who { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.who.you { background: var(--gold-100); color: #7A5C00; }
.who.us { background: #E8EEF8; color: var(--navy-700); }
@media (max-width: 640px) { .process > li { grid-template-columns: 1fr; gap: 8px; } }

/* ---- Checklist ----------------------------------------------------------- */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.check li svg { color: var(--gold-600); margin-top: 3px; }
.section.navy .check li svg { color: var(--gold); }
.check strong { display: block; color: var(--navy-900); }
.section.navy .check strong { color: #fff; }

/* ---- Scholarship banner --------------------------------------------------- */
.award { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; background: var(--navy-900); color: #DCE4F1; border-radius: 20px; padding: 40px 44px; position: relative; overflow: hidden; }
.award::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--gold); }
.award h2, .award h3 { color: #fff; margin-bottom: .3em; }
.award-pct { font: 700 4.4rem/1 var(--serif); color: var(--gold); }
.award-pct small { font-size: 1.1rem; display: block; color: #C6D2E6; font-family: var(--sans); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
@media (max-width: 860px) { .award { grid-template-columns: 1fr; gap: 16px; padding: 32px 28px; } }

/* ---- Programmes ---------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip-s { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; }
.chip-s:hover { border-color: var(--navy-700); color: var(--navy-800); }
.family { margin-bottom: 64px; scroll-margin-top: 120px; }
.family-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; border-bottom: 2px solid var(--navy-900); padding-bottom: 14px; margin-bottom: 8px; }
.family-head h2 { margin: 0; }
.family-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.fee-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fee-table th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.fee-table td { padding: 18px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-table .prog { font-family: var(--serif); font-weight: 700; color: var(--navy-900); font-size: 1.05rem; }
.fee-table .sub { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; font-family: var(--sans); font-weight: 400; }
.fee-table tr:hover td { background: var(--ivory); }
.badge-s { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: var(--gold-100); color: #7A5C00; margin-top: 6px; }
.badge-s.no { background: #EEF1F5; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .fee-table thead { display: none; }
  .fee-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .fee-table td { border: 0; padding: 4px 0; }
  .fee-table td:first-child, .fee-table td:last-child { grid-column: 1 / -1; }
  .fee-table .num { text-align: left; }
  .fee-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
}
.note { background: var(--ivory); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r-sm); padding: 20px 24px; color: var(--ink-2); }
.note strong { color: var(--navy-900); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-s { border-top: 1px solid var(--line); }
.faq-s details { border-bottom: 1px solid var(--line); }
.faq-s summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--navy-900); }
.faq-s summary::-webkit-details-marker { display: none; }
.faq-s summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--gold-600); transition: transform .15s; }
.faq-s details[open] summary::after { transform: rotate(45deg); }
.faq-s .answer { padding: 0 4px 24px; color: var(--ink-2); max-width: 72ch; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-s { background: var(--gold); color: var(--navy-950); }
.cta-s .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-s h2 { color: var(--navy-950); margin: 0 0 6px; }
.cta-s p { margin: 0; color: #3B2F00; font-size: 1.05rem; }
.cta-s .btn-navy { min-height: 54px; padding: 0 30px; }

/* ---- Page hero (inner pages) -------------------------------------------- */
.page-hero { background: var(--navy-900); color: #C6D2E6; position: relative; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gold); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.page-hero .lead { color: #C6D2E6; }
.crumbs { font-size: .82rem; margin-bottom: 18px; color: #93A4C0; }
.crumbs a { color: #C6D2E6; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ---- Forms (sign-in, help) ---------------------------------------------- */
.site .field-s { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.site .field-s label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.site .field-s input, .site .field-s select, .site .field-s textarea { font: inherit; font-size: 1rem; min-height: 50px; padding: 12px 14px; border: 1.5px solid #CFD6E2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.site .field-s textarea { min-height: 130px; }
.site .field-s input:focus, .site .field-s select:focus, .site .field-s textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(22, 64, 127, .14); }
.site .field-s .hint { font-size: .82rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.alert-s { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .95rem; }
.alert-s.err { background: #FDECEC; color: #8A1C1C; border: 1px solid #F6C9C9; }
.alert-s.ok { background: #EAF7EE; color: #1D5E33; border: 1px solid #C7E9D2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Auth split */
.auth-s { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 130px); }
.auth-aside { background: var(--navy-900); color: #C6D2E6; padding: 72px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; position: relative; overflow: hidden; isolation: isolate; }
.auth-aside h1 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.auth-aside .hero-crest { width: 420px; right: -100px; bottom: -100px; }
.site .auth-aside .portal-mark { height: 44px; width: auto; margin-bottom: 36px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 64px 32px; background: var(--ivory); }
.auth-card { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 40px; box-shadow: var(--shadow-2); }
.auth-card h2 { font-size: 1.8rem; margin-bottom: .3em; }
.site .auth-card .school-mark { height: 48px; width: auto; margin-bottom: 26px; }
.otp-s { font: 700 2rem/1 ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: .5em; text-align: center; padding-left: .5em !important; }
.auth-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .auth-s { grid-template-columns: 1fr; } .auth-aside { padding: 44px 24px; } .auth-main { padding: 40px 16px 56px; } .auth-card { padding: 28px 22px; } }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #A9B7CD; font-size: .92rem; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 72px 20px 56px; }
.site-footer .logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.site .site-footer .logos .logo-plate img { height: 36px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 16px; }
.site-footer a { color: #DCE4F1; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer .bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: .82rem; }
.motto { font-family: var(--serif); font-style: italic; color: var(--gold); }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer .top { grid-template-columns: 1fr; padding-top: 48px; } }

/* Thank-you dialog inherits from main.css; make its button match */
.site .thanks-dialog .btn { background: var(--navy-800); color: #fff; }

@media (prefers-reduced-motion: reduce) { .site * { transition: none !important; } }
.auth-aside .check strong, .hero-site .check strong { color: #fff; }
.auth-aside .check li svg { color: var(--gold); }

/* ---- Help & support ------------------------------------------------------ */
.help-contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .help-layout { grid-template-columns: 1fr; } .help-form-col { order: -1; } }
.faq-group { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 48px 0 8px; scroll-margin-top: 120px; }
.faq-group svg { color: var(--gold-600); }
.help-form-col { position: sticky; top: 112px; }
@media (max-width: 960px) { .help-form-col { position: static; } }
.help-form { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 18px; padding: 36px; box-shadow: var(--shadow-2); scroll-margin-top: 110px; }
.help-form-head h2 { font-size: 1.7rem; margin-bottom: 4px; }
.help-form-head { margin-bottom: 24px; }
@media (max-width: 520px) { .help-form { padding: 24px 18px; } }
.topic-grid { border: 0; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.topic-grid legend, .label-s { font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 10px; padding: 0; display: block; }
@media (max-width: 560px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.topic-tile { position: relative; cursor: pointer; }
.topic-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; min-height: 86px; padding: 14px; border: 1.5px solid #CFD6E2; border-radius: 12px; font-size: .88rem; font-weight: 700; color: var(--ink); line-height: 1.3; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.topic-body svg { color: var(--navy-700); }
.topic-tile:hover .topic-body { border-color: var(--navy-700); }
.topic-tile input:checked + .topic-body { border-color: var(--navy-800); background: #EEF3FB; box-shadow: 0 0 0 3px rgba(22, 64, 127, .15); }
.topic-tile input:checked + .topic-body svg { color: var(--gold-600); }
.topic-tile input:focus-visible + .topic-body { outline: 3px solid var(--gold); outline-offset: 2px; }
.drop { display: flex; align-items: center; gap: 16px; padding: 20px; border: 2px dashed #CFD6E2; border-radius: 12px; background: var(--ivory); cursor: pointer; color: var(--navy-700); position: relative; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.over { border-color: var(--navy-700); background: #EEF3FB; }
.drop.has-file { border-style: solid; border-color: #2E8B57; background: #EAF7EE; color: #1D5E33; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-text { color: var(--ink); font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.next-steps { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.next-steps li { display: flex; gap: 10px; align-items: flex-start; }
.next-steps svg { color: var(--gold-600); margin-top: 3px; flex-shrink: 0; }
.help-topic h3 { margin-bottom: 2px; }
.site .btn-ms { background: #fff; color: #2F2F2F; border: 1.5px solid #8C8C8C; border-radius: 10px; font-weight: 700; min-height: 52px; }
.site .btn-ms:hover { background: #F3F3F3; color: #2F2F2F; }
.alt-signin { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.alt-signin > summary { cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--royal); margin-bottom: 14px; }
/* Logos keep their true colours: on navy they sit on a white plate. */
.logo-plate { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 10px 16px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.site .logo-plate img { height: 40px; width: auto; display: block; }

/* ---- Content pages rendered inside the applicant portal ----------------- */
.in-portal { padding-bottom: 48px; }
.in-portal .wrap { max-width: none; padding: 0; }
.in-portal .crumbs, .in-portal .help-contacts .btn-line { display: none; }
.in-portal .page-hero { margin-bottom: 8px; }
.in-portal .section { padding: 40px 0; }
.in-portal .section.alt, .in-portal .section.navy { border-radius: 18px; padding: 40px; border: 0; margin: 8px 0; }
.in-portal .section.alt .wrap, .in-portal .section.navy .wrap { padding: 0; }
.in-portal .cta-s { border-radius: 18px; margin-top: 8px; }
.in-portal .cta-s .wrap { padding: 36px 40px; }
.in-portal .help-form-col { top: calc(var(--topbar-height, 64px) + 16px); }
@media (max-width: 640px) { .in-portal .page-hero .wrap, .in-portal .section.alt, .in-portal .section.navy, .in-portal .cta-s .wrap { padding: 24px 18px; } }
.auth-aside .eyebrow { display: flex; } .auth-aside .logo-plate { margin-bottom: 8px; }
.site .shell-brand-full img.brand-school-mini { height: 26px; width: auto; } .site .shell-brand-full img.brand-portal-full { height: 40px; width: auto; }
/* Help: each FAQ group is its own card */
.faq-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px 26px 6px; margin-bottom: 24px; box-shadow: var(--shadow-1); scroll-margin-top: 120px; }
.faq-card-head { display: flex; align-items: center; gap: 14px; padding: 20px 0 16px; border-bottom: 1px solid var(--line); }
.faq-card-head h3 { margin: 0 0 2px; font-size: 1.2rem; }
.faq-card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); color: var(--gold); flex-shrink: 0; }
.faq-card .faq-s { border-top: 0; }
.faq-card .faq-s details:last-child { border-bottom: 0; }
.faq-card .faq-s summary { font-size: 1.02rem; padding: 18px 2px; }

/* Sign-in: one balanced, centred block on each side (no big empty middle) */
.auth-s { min-height: 0; }
.auth-aside { justify-content: center; gap: 28px; padding: 64px clamp(24px, 5vw, 72px); }
.auth-aside > * { width: 100%; max-width: 500px; margin-left: auto; }
.auth-aside h1 { margin-bottom: .35em; }
.auth-points { gap: 10px; }
.auth-points li { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.auth-note { margin: 0; font-size: .8rem; color: rgba(198, 210, 230, .7); }
.auth-main { padding: 56px clamp(16px, 4vw, 48px); }
.auth-main .auth-card { margin-right: auto; }
@media (max-width: 900px) { .auth-aside > *, .auth-main .auth-card { margin-left: auto; margin-right: auto; } }

/* Hero: "Three steps to your first day" card */
.path-card { background: var(--paper); color: var(--ink); border-radius: 20px; box-shadow: 0 30px 70px rgba(3, 15, 40, .45); overflow: hidden; }
.path-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.site .path-head img { height: 40px; width: auto; }
.path-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #ECF7F0; color: #166534; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.path-pulse { width: 8px; height: 8px; border-radius: 50%; background: #22A559; box-shadow: 0 0 0 0 rgba(34, 165, 89, .5); animation: path-pulse 2s infinite; }
@keyframes path-pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 165, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 165, 89, 0); } }
@media (prefers-reduced-motion: reduce) { .path-pulse { animation: none; } }
.site .path-title { font-family: var(--serif); font-size: 1.35rem; color: var(--navy-900); margin: 18px 24px 6px; line-height: 1.25; }
.path-steps { list-style: none; margin: 0; padding: 8px 24px 4px; display: grid; gap: 0; }
.path-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 12px 0; }
.path-steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 52px; bottom: -8px; width: 2px; background: linear-gradient(var(--line), var(--line)); }
.path-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold); position: relative; z-index: 1; }
.path-steps strong { display: block; color: var(--navy-900); font-size: .98rem; margin-bottom: 2px; }
.path-steps li span:not(.path-icon) { display: block; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.path-award { display: grid; grid-template-columns: 36px 1fr 16px; gap: 12px; align-items: center; margin: 10px 24px 4px; padding: 12px 14px; border-radius: 12px; background: var(--gold-100); border: 1px solid #F1DE94; color: var(--navy-900); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.path-award:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(10, 35, 80, .12); text-decoration: none; }
.path-award-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gold); color: var(--navy-950); }
.path-award strong { display: block; font-size: .9rem; }
.path-award span span { display: block; font-size: .8rem; color: #6B5300; }
.path-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 14px 24px; background: var(--ivory); border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); }
.path-foot strong { color: var(--navy-900); }

/* Verify a document */
.verify-wrap { max-width: 760px; }
.verify-form { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(10, 35, 80, .06); }
.verify-form label { display: block; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.verify-input { display: flex; gap: 10px; flex-wrap: wrap; }
.verify-input input { flex: 1 1 260px; min-height: 52px; padding: 0 16px; border: 1px solid #C9D2E0; border-radius: 12px; font: 700 1.15rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); }
.verify-input input::placeholder { font-weight: 500; letter-spacing: .04em; text-transform: none; color: #9AA7BA; }
.verify-input input:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(10, 35, 80, .15); }
.verify-hint { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.verify-result { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 20px 22px; border-radius: 16px; border: 1px solid; }
.verify-result h2 { font-size: 1.2rem; margin: 0 0 4px; }
.verify-result p { margin: 0; }
.verify-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.verify-result.is-ok { background: #F0FAF4; border-color: #BBE5C8; } .is-ok .verify-icon { background: #15803D; } .is-ok h2 { color: #14532D; }
.verify-result.is-warn { background: #FFFBEB; border-color: #F5DD8A; } .is-warn .verify-icon { background: #B45309; } .is-warn h2 { color: #78350F; }
.verify-result.is-bad { background: #FEF2F2; border-color: #FECACA; } .is-bad .verify-icon { background: #B91C1C; } .is-bad h2 { color: #7F1D1D; }
.verify-details { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.verify-details > div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.verify-details > div:last-child { border-bottom: 0; }
.verify-details dt { color: var(--muted); font-size: .9rem; }
.verify-details dd { margin: 0; font-weight: 700; color: var(--navy-900); }
.verify-note { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .verify-details > div { grid-template-columns: 1fr; gap: 2px; } }
