/* Gurukulam Global School — base styles: reset, type, layout, components.
   Tokens come from tokens.css. Page-specific sections live in pages.css. */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--body);
  line-height: var(--body-lh);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
/* Links: no decoration by default. Underlines belong to links inside running text only
   (.prose, paragraphs, table cells, card text); list-based navigation is never underlined. */
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--orange-text); }
.prose a, p a, td a, .card__text a, .lead a, .hint a, .meta a, .note a, .consent-note a, .empty-state a, dd a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.prose li a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
/* Navigation and buttons: never underlined, in any browser or user-agent stylesheet. */
.nav a.nav__link, .nav__sub li a, .mobile-menu a, .mobile-menu__sub li a, .utility-bar a, .site-footer a, .mobile-bar a, .breadcrumb a, .pagination a, a.btn, .btn, a.chip, .link-arrow, .wa-float,
.nav a.nav__link:hover, .nav__sub li a:hover, .mobile-menu a:hover, .utility-bar a:hover, .mobile-bar a:hover, a.btn:hover, a.chip:hover, .link-arrow:hover { text-decoration: none; }
/* Footer link lists and in-text links underline on hover and focus only. */
.site-footer__col a:hover, .site-footer__col a:focus-visible, .site-footer__bottom-links a:hover, .site-footer__bottom-links a:focus-visible, .site-footer address a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
hr { border: 0; border-top: 1px solid var(--line); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 2. Typography ---------- */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
h1, .h1 { font-size: var(--h1); line-height: var(--h1-lh); letter-spacing: -0.015em; }
h2, .h2 { font-size: var(--h2); line-height: var(--h2-lh); }
h3, .h3 { font-size: var(--h3); line-height: var(--h3-lh); }
h4, .h4 { font-family: var(--font-text); font-size: var(--h4); font-weight: 600; line-height: 1.3; color: var(--ink); }
.accent { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--orange); }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--text-2); }
.eyebrow {
  font-family: var(--font-text); font-size: var(--eyebrow); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
/* Inner pages: eyebrows in sentence case, no tracking. The homepage keeps the approved uppercase eyebrow. */
.page:not(.page--home) .eyebrow { text-transform: none; letter-spacing: 0; font-size: 0.9375rem; font-weight: 600; }
.page:not(.page--home) .marker { gap: 12px; }
.meta { font-size: var(--meta); color: var(--muted); }
.small { font-size: var(--small); }
.text-2 { color: var(--text-2); }
.serif { font-family: var(--font-display); }
.quote { font-family: var(--font-display); font-style: italic; font-size: var(--quote); line-height: 1.4; color: var(--ink); }
strong, b { font-weight: 600; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose img { border-radius: var(--r-img); }

/* Section heading (eyebrow with three-petal marker + H2) */
.marker { display: inline-flex; align-items: center; gap: 14px; }
.marker svg { width: 28px; height: 28px; flex: 0 0 auto; }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; }
.section-heading h2 { margin-top: 14px; max-width: 18ch; }
.section-heading--center { align-items: center; text-align: center; }
.section-heading--center h2 { max-width: 24ch; }
.section-heading .lead { margin-top: 18px; max-width: 62ch; font-size: 1.0625rem; }

/* Arrow links */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9375rem; font-weight: 600; color: var(--ink);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-fast) ease; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--orange { color: var(--orange-text); }
.link-arrow--magenta { color: var(--purple); }
.link-arrow--sky { color: var(--sky-deep); }
.link-arrow--teal { color: var(--teal); }

/* ---------- 3. Layout ---------- */
.site { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
main { flex: 1 0 auto; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }
.container--narrow { max-width: calc(880px + 2 * var(--pad-x)); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter) 32px; }
.section { padding-block: var(--section-y) 0; position: relative; }
.section--pad { padding-block: var(--section-y); }
.section--tight { padding-block-start: calc(var(--section-y) * 0.5); }
.section--last { padding-block-end: var(--section-y); }
.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.flow > * + * { margin-top: 1em; }
.text-center { text-align: center; }

/* Skip link */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 12px;
  font-weight: 600; transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: var(--s-4); color: var(--on-ink); }

/* Focus */
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
a:focus-visible, button:focus-visible { border-radius: 8px; }
.btn:focus-visible, .chip:focus-visible { border-radius: var(--r-btn); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-text); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  padding: 16px 30px; border-radius: var(--r-btn); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--orange); color: var(--on-ink); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--orange-hover); color: var(--on-ink); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(229,118,38,0.25); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--ink); color: var(--on-ink); }
.btn-ink { background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 14px 26px; font-size: 1rem; }
.btn-ink:hover, .btn-ink:focus-visible { background: var(--band); color: var(--on-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 13px 24px; font-size: 1rem; }
.btn--xs { padding: 9px 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---------- 5. Chips (nine categories, tint background, ink text) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-chip); background: var(--ground-2); color: var(--ink); line-height: 1.3; white-space: nowrap;
}
.chip--notices { background: var(--chip-notices); }
.chip--academics { background: var(--chip-academics); }
.chip--sports { background: var(--chip-sports); }
.chip--arts { background: var(--chip-arts); }
.chip--events { background: var(--chip-events); }
.chip--admissions { background: var(--chip-admissions); }
.chip--pre-primary { background: var(--chip-pre-primary); }
.chip--achievements { background: var(--chip-achievements); }
.chip--community { background: var(--chip-community); }
.chip--media { background: var(--chip-media); }
a.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip--filter[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* Status pill (affiliation line) */
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 8px 16px 8px 10px; font-size: var(--meta); font-weight: 500; color: var(--text-2);
}
.status-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }

/* "New" marker */
.new-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: var(--orange-text); }
.new-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- 6. Cards ---------- */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); position: relative; }
.card--lg { border-radius: var(--r-card-lg); }
.card--tile { border-radius: var(--r-tile); }
.card--petal { overflow: hidden; }
.card__petal { position: absolute; right: -30px; top: -34px; width: 140px; height: 140px; pointer-events: none; }
.card--link { display: block; transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(27,19,91,0.04), 0 24px 56px rgba(27,19,91,0.10); }

/* Notice row */
.notice-row {
  display: flex; align-items: center; gap: 22px; padding: 22px 28px; border-radius: var(--r-tile);
}
.notice-row__date { display: flex; flex-direction: column; align-items: center; min-width: 58px; flex: 0 0 auto; }
.notice-row__day { font-size: 1.625rem; font-weight: 600; color: var(--ink); line-height: 1; }
.notice-row__mon { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }
.notice-row__body { flex: 1 1 auto; min-width: 0; }
.notice-row__tags { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.notice-row__title { font-size: 1.125rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.notice-row__title a:hover { color: var(--orange-hover); }
.notice-row__file { display: inline-flex; align-items: center; gap: 6px; font-size: var(--meta); font-weight: 600; color: var(--teal); flex: 0 0 auto; }
.notice-row__file svg { width: 16px; height: 16px; }

/* Event card with date tile */
.event-card { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--r-tile); }
.date-tile {
  width: 72px; height: 72px; flex: 0 0 auto; border-radius: var(--r-tile); background: var(--ink); color: var(--on-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.date-tile--teal { background: var(--teal); }
.date-tile--sky { background: var(--sky-deep); }
.date-tile__day { font-size: 1.625rem; font-weight: 600; line-height: 1; }
.date-tile__mon { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; margin-top: 4px; opacity: 0.9; text-transform: uppercase; }
.event-card__title { font-size: 1.125rem; font-weight: 500; color: var(--ink); margin-top: 6px; line-height: 1.35; }
.event-card__meta { font-size: var(--meta); color: var(--muted); margin-top: 2px; }

/* Stat strip */
.stat-strip { padding: 40px 48px; border-radius: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); padding-right: 24px; }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-display); font-size: 2.875rem; font-weight: 500; line-height: 1; color: var(--orange-text); }
.stat__value--magenta { color: var(--purple); }
.stat__value--sky { color: var(--sky-deep); }
.stat__value--teal { color: var(--teal); }
.stat__label { font-size: 1rem; font-weight: 500; color: var(--ink); }
.stat__note { font-size: var(--meta); color: var(--muted); }

/* Stage card */
.stage-card { padding: 32px 30px 34px; }
.stage-card h3 { font-size: 1.625rem; margin: 18px 0 8px; }
.stage-card p { font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.stage-card .link-arrow { margin-top: 20px; }
.stage-card--upcoming { border: 1.5px dashed #B9DDE3; }

/* Icon tile */
.icon-tile { width: 52px; height: 52px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--ground-2); }
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--orange { background: var(--chip-events); color: var(--orange-text); }
.icon-tile--magenta { background: var(--chip-arts); color: var(--magenta); }
.icon-tile--sky { background: var(--chip-sports); color: var(--sky-deep); }
.icon-tile--teal { background: var(--chip-community); color: var(--teal); }
.icon-tile--green { background: var(--chip-achievements); color: var(--green); }
.icon-tile--sm { width: 48px; height: 48px; border-radius: 16px; }

/* Feature (why-us) item */
.feature h3 { font-family: var(--font-text); font-size: 1.3125rem; font-weight: 600; margin: 18px 0 8px; }
.feature p { font-size: 1rem; color: var(--text-2); }

/* Principal card */
.principal-card { background: var(--ink); color: var(--on-ink); border-radius: var(--r-card-lg); overflow: hidden; position: relative; }
.principal-card .eyebrow { color: var(--on-ink-3); }
.principal-card__quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); line-height: 1.35; margin-top: 24px; max-width: 640px; color: var(--on-ink); }
.principal-card__text { font-size: 1.0625rem; color: var(--on-ink-2); margin-top: 24px; max-width: 600px; }
.principal-card__name { font-size: 1.0625rem; font-weight: 600; }
.principal-card__role { font-size: var(--meta); color: var(--on-ink-3); }
.principal-card a { color: var(--on-ink-link); }
.principal-card a:hover { color: var(--on-ink); }
.portrait { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.18); }
.portrait--lg { width: 120px; height: 120px; }

/* Quote card */
.quote-card { padding: 40px 44px; border-radius: 32px; overflow: hidden; }
.quote-card__mark { width: 36px; height: 28px; color: var(--orange); opacity: 0.6; }
.quote-card__mark--sky { color: var(--sky); }
.quote-card__text { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.5; color: var(--ink); margin-top: 20px; }
.quote-card__who { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.0625rem; background: var(--chip-events); color: var(--orange-text); flex: 0 0 auto; }
.avatar--sky { background: var(--chip-sports); color: var(--sky-deep); }
.avatar--magenta { background: var(--chip-arts); color: var(--purple); }
.quote-card__name { font-size: 1rem; font-weight: 600; color: var(--ink); }
.quote-card__meta { font-size: var(--meta); color: var(--muted); }

/* Document card (plain: no petals, no orange) */
.doc-card {
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 16px; padding: 36px 40px;
  display: flex; align-items: center; gap: 28px;
}
.doc-card__icon {
  width: 68px; height: 84px; flex: 0 0 auto; border: 1.5px solid var(--ink); border-radius: 6px 18px 6px 6px;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.doc-card__icon svg { width: 34px; height: 34px; }
.doc-card__body { flex: 1 1 auto; min-width: 0; }
.doc-card__title { font-size: 1.375rem; font-weight: 600; color: var(--ink); }
.doc-card__text { font-size: 1rem; line-height: 1.55; color: var(--text-2); margin-top: 6px; }
.doc-card__meta { font-size: var(--meta); color: var(--muted); margin-top: 8px; font-weight: 500; }
.doc-card--sm { padding: 20px 22px; gap: 18px; }
.doc-card--sm .doc-card__icon { width: 48px; height: 60px; }
.doc-card--sm .doc-card__icon svg { width: 24px; height: 24px; }
.doc-card--sm .doc-card__title { font-size: 1.0625rem; }

/* Notice / alert boxes */
.notice-box { border-radius: var(--r-input); padding: 14px 18px; border: 1px solid var(--line-2); background: var(--surface); font-size: 1rem; display: flex; gap: 12px; }
.notice-box--success { border-color: var(--success); }
.notice-box--warning { border-color: var(--warning); }
.notice-box--error { border-color: var(--error); }
.notice-box--info { border-color: var(--info); }
.notice-box strong { color: var(--ink); }

/* ---------- 7. Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field, .form-row + .field, .field + .form-row { margin-top: var(--s-4); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.form-row + [hidden] + .field, .age-calc__result + .field, .age-calc__result:not([hidden]) { margin-top: var(--s-4); }
details.field > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 44px; }
details.field > summary::-webkit-details-marker { display: none; }
details.field > summary::before { content: ""; width: 10px; height: 10px; flex: 0 0 auto; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); transition: transform var(--dur-fast) ease; margin-left: 4px; }
details.field[open] > summary::before { transform: rotate(45deg); }
details.field > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }
.label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.label .req { color: var(--error); }
.hint { font-size: var(--meta); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-input);
  padding: 13px 16px; font-size: 1rem; color: var(--text); line-height: 1.4; min-height: 48px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(49,143,156,0.18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.error-text { font-size: var(--meta); color: var(--error); font-weight: 500; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A1450' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.textarea { min-height: 120px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: 0 0 auto; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); align-items: center; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 8. Tables (disclosure style) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--ground); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table--disclosure td.row-code { width: 72px; color: var(--muted); font-weight: 600; font-size: 0.875rem; }
.status-word { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; }
.status-word::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-word--uploaded { color: var(--success); }
.status-word--pending { color: var(--warning); }
.status-word--na { color: var(--muted); }

/* Definition lists */
.dl { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 10px 24px; font-size: 1rem; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { color: var(--ink); }

/* ---------- 9. Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s-6); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 0.9375rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pagination .pagination__gap { border: 0; background: transparent; color: var(--muted); min-width: 24px; }
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--meta); color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- 10. Utility bar ---------- */
.utility-bar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: var(--meta); font-weight: 500; color: var(--text-2); }
.utility-bar__inner { height: var(--utility-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility-bar__group { display: flex; align-items: center; gap: 28px; min-width: 0; }
.utility-bar a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); white-space: nowrap; min-height: 44px; }
.utility-bar a:hover { color: var(--ink); }
.utility-bar a svg { width: 16px; height: 16px; flex: 0 0 auto; }
.utility-bar__mpd { color: var(--ink) !important; font-weight: 600; }
.utility-bar__phone svg { color: var(--teal); }
.utility-bar__wa { color: var(--green) !important; font-weight: 600; }
.utility-bar__hours { display: none; color: var(--muted); }
@media (max-width: 767px) {
  .utility-bar__inner { height: 44px; gap: 8px; }
  .utility-bar__group { gap: 12px; }
  .utility-bar .utility-bar__careers, .utility-bar .utility-bar__wa { display: none; }
  .utility-bar__mpd { font-size: 0.8125rem; }
  .utility-bar__phone { font-size: 0.8125rem; }
}
@media (max-width: 379px) {
  .utility-bar__phone span { display: none; }
}
@media (min-width: 1280px) { .utility-bar__hours { display: inline; } }

/* ---------- 11. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--surface);
  box-shadow: 0 1px 0 var(--line); transition: box-shadow var(--dur-base) ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height var(--dur-base) ease; }
.site-header.is-scrolled .header__inner { height: var(--header-h-scrolled); }

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; position: relative; }
.brand__full { height: 52px; width: auto; transition: opacity var(--dur-fast) ease; }
.brand__compact { display: none; align-items: center; gap: 10px; }
.brand__compact .brand__mark { height: 36px; width: auto; }
.brand__compact .brand__word { height: 22px; width: auto; }
.site-header.is-scrolled .brand__full { display: none; }
.site-header.is-scrolled .brand__compact { display: inline-flex; }
@media (max-width: 1023px) {
  .brand__full { height: 44px; }
}
@media (max-width: 479px) {
  .brand__full { display: none; }
  .brand__compact { display: inline-flex; }
  .brand__compact .brand__word { height: 20px; }
}
@media (max-width: 359px) { .brand__compact .brand__word { display: none; } }

/* Primary nav — quiet: ink labels, soft pill on hover, one short orange bar for the current section,
   a chevron only where it toggles a dropdown, 160 ms opacity fade and nothing else. */
.nav { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; justify-content: flex-end; }
.nav__list { display: flex; align-items: center; gap: 0; list-style: none; padding: 0; margin: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; font-size: var(--nav); font-weight: 500; color: var(--ink);
  height: 40px; padding: 0 12px; border-radius: 10px; line-height: 1; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav__item.has-sub > .nav__link { padding-right: 4px; border-radius: 10px 0 0 10px; }
.nav__link:hover { color: var(--ink); background: var(--ground); }
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left center; transition: transform 160ms ease;
}
.nav__item.has-sub > .nav__link::after { right: 4px; }
.nav__link[aria-current="page"]::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--ink); }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 40px; padding-right: 4px;
  color: var(--muted); border-radius: 0 10px 10px 0; transition: background-color 160ms ease, color 160ms ease;
}
.nav__item.has-sub:hover > .nav__link, .nav__item.has-sub:hover > .nav__toggle, .nav__item.is-open > .nav__link, .nav__item.is-open > .nav__toggle { background: var(--ground); }
.nav__toggle:hover, .nav__item.is-open > .nav__toggle { color: var(--ink); }
.nav__toggle svg { width: 12px; height: 12px; transition: transform 160ms ease; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute; left: 0; top: calc(100% + 4px); min-width: 264px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-card); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s linear 160ms;
}
.nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transition-delay: 0s; }
.nav__sub li a { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.nav__sub li a:hover, .nav__sub li a:focus-visible { background: var(--ground); color: var(--ink); }
.nav__sub li a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); background: var(--ground); }
.header__cta { margin-left: 8px; }
.site-header.is-scrolled .header__cta { padding: 10px 20px; font-size: 0.9375rem; }

/* Menu toggle (mobile) */
.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px; width: 48px; height: 48px;
  border-radius: 14px; color: var(--ink); border: 1.5px solid var(--line-2);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__inner { height: 72px; }
  .site-header.is-scrolled .header__inner { height: 64px; }
  .header__cta { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__link { padding: 0 8px; font-size: 0.9375rem; }
  .nav__link::after { left: 8px; right: 8px; }
  .brand__full { height: 46px; }
}

/* Mobile full-screen menu: one list of sections, sub-pages open under each, then the two buttons,
   then the compliance links as 48 px rows. Everything sits on an 8 px grid. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--ground);
  display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
}
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 var(--pad-x); background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.mobile-menu__head .brand__compact { display: inline-flex; }
.mobile-menu__list { list-style: none; margin: 0; padding: 8px var(--pad-x) 0; }
.mobile-menu__item { border-bottom: 1px solid var(--line); }
.mobile-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mobile-menu__link { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-height: 56px; padding: 12px 0; font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; color: var(--ink); }
.mobile-menu__link::after { content: ""; position: absolute; left: 0; bottom: 8px; width: 24px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left center; }
.mobile-menu__link[aria-current="page"]::after { transform: scaleX(1); }
.mobile-menu__toggle { width: 48px; height: 48px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 12px; }
.mobile-menu__toggle[aria-expanded="true"] { color: var(--ink); }
.mobile-menu__toggle svg { width: 16px; height: 16px; transition: transform 160ms ease; }
.mobile-menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-menu__sub { list-style: none; margin: 0; padding: 0 0 8px 16px; }
.mobile-menu__sub li a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 1.0625rem; font-weight: 500; color: var(--text-2); }
.mobile-menu__sub li a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); padding-left: 12px; margin-left: -16px; }
.mobile-menu__cta { padding: 24px var(--pad-x) 8px; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__foot { padding: 16px var(--pad-x) 32px; display: flex; flex-direction: column; font-size: 0.9375rem; color: var(--text-2); }
.mobile-menu__foot-label { font-size: var(--small); font-weight: 600; color: var(--muted); padding-bottom: 8px; }
.mobile-menu__foot a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0; color: var(--ink); font-weight: 500; border-top: 1px solid var(--line); }
.mobile-menu__foot a svg { width: 16px; height: 16px; color: var(--teal); flex: 0 0 auto; }
.mobile-menu__foot .mobile-menu__status { display: flex; align-items: center; gap: 8px; padding-top: 16px; font-size: var(--meta); color: var(--text-2); border-top: 1px solid var(--line); }
.mobile-menu__foot .mobile-menu__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-bar { transform: translateY(110%); }

/* ---------- 12. Sticky mobile bottom bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(27,19,91,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px); transition: transform var(--dur-base) ease;
}
.mobile-bar a, .mobile-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 56px; height: var(--mobile-bar-h); font-size: 0.78125rem; font-weight: 600; color: var(--ink); line-height: 1;
}
.mobile-bar svg { width: 24px; height: 24px; }
.mobile-bar__wa { color: var(--green); }
.mobile-bar__enquire { background: var(--orange); color: var(--on-ink); }
.mobile-bar__enquire:hover { background: var(--orange-hover); color: var(--on-ink); }
body.has-mobile-bar { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
  .mobile-bar { display: none; }
  body.has-mobile-bar { padding-bottom: 0; }
}

/* Floating WhatsApp (desktop only) */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 55; display: none; align-items: center; gap: 10px;
  background: var(--surface); color: var(--green); font-weight: 600; font-size: 0.9375rem; padding: 12px 18px 12px 14px;
  border-radius: var(--r-btn); box-shadow: var(--shadow-float); border: 1px solid var(--line);
}
.wa-float svg { width: 22px; height: 22px; }
.wa-float:hover { color: var(--green); border-color: var(--green); }
@media (min-width: 1024px) { .wa-float { display: inline-flex; } }

/* ---------- 13. Enquiry bottom sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(27,19,91,0.45); }
.sheet__panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface);
  border-radius: 28px 28px 0 0; padding: 20px var(--pad-x) calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 60px rgba(27,19,91,0.2); animation: sheet-up var(--dur-base) var(--ease-bloom);
}
.sheet__grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 16px; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet__title { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.sheet__close { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border: 1.5px solid var(--line-2); flex: 0 0 auto; }
.sheet__close svg { width: 18px; height: 18px; }
.sheet form { margin-top: 18px; }
body.sheet-open { overflow: hidden; }
@media (min-width: 768px) {
  .sheet { align-items: center; }
  .sheet__panel { border-radius: 28px; padding: 28px 32px 32px; }
  .sheet__grip { display: none; }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--band); color: var(--on-ink-2); margin-top: clamp(64px, 6vw, 96px); position: relative; overflow: hidden; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: var(--on-ink-link); }
.site-footer__bloom { position: absolute; right: -180px; bottom: -300px; width: 520px; height: 520px; pointer-events: none; }
.site-footer__inner { padding-block: 64px 0; position: relative; }
.site-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.site-footer__brand { grid-column: 1 / span 4; }
.site-footer__brand img { height: 48px; width: auto; }
.site-footer__tagline { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--on-ink); margin-top: 20px; }
.site-footer__brand p { font-size: var(--meta); line-height: 1.6; margin-top: 12px; max-width: 340px; }
.site-footer__brand address { font-style: normal; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.site-footer__col--school { grid-column: 6 / span 2; }
.site-footer__col--quick { grid-column: 8 / span 2; }
.site-footer__col--compliance { grid-column: 10 / span 3; }
.site-footer .eyebrow { color: var(--on-ink-3); margin-bottom: 6px; }
.site-footer__helpline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--on-ink-link) !important; }
.site-footer__helpline svg { width: 16px; height: 16px; }
.site-footer__social { display: flex; gap: 12px; margin-top: 4px; }
.site-footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.35); display: inline-flex; align-items: center; justify-content: center; color: var(--on-ink); }
.site-footer__social a:hover { border-color: var(--on-ink-link); }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__status { font-size: var(--meta); color: var(--on-ink-2); display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.site-footer__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-rule); flex: 0 0 auto; }
.site-footer__bottom {
  margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: var(--meta); color: var(--on-ink-2);
}
.site-footer__bottom a { color: var(--on-ink-2); }
.site-footer__bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }
/* Nine-segment spectrum rule: the last element of the page */
.spectrum-rule { display: grid; grid-template-columns: repeat(9, 1fr); height: 6px; }
.spectrum-rule span:nth-child(1) { background: #7C0408; }
.spectrum-rule span:nth-child(2) { background: #0A1450; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); }
.spectrum-rule span:nth-child(3) { background: #0288E6; }
.spectrum-rule span:nth-child(4) { background: #DE0080; }
.spectrum-rule span:nth-child(5) { background: #FC6C00; }
.spectrum-rule span:nth-child(6) { background: #004CCC; }
.spectrum-rule span:nth-child(7) { background: #3C0080; }
.spectrum-rule span:nth-child(8) { background: #007304; }
.spectrum-rule span:nth-child(9) { background: #007C86; }

@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__col--school, .site-footer__col--quick, .site-footer__col--compliance { grid-column: auto; }
}
@media (max-width: 479px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__inner { padding-top: 48px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 40px; }
}

/* ---------- 15. Reveal (once-only) ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-bloom), transform 700ms var(--ease-bloom); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; transition: opacity 300ms ease; }
}

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .bloom use { transform-origin: 0 0; }
  .link-arrow:hover svg, .btn-primary:hover { transform: none; }
}

@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; }
}

/* Error pages */
.section--error { padding-block: clamp(48px, 8vw, 96px); }
.section--error h1 { max-width: 20ch; }
.section--error h1 + p { margin-top: 20px; max-width: 62ch; }
.section--error p + p { margin-top: 10px; }

/* ---------- 17. Print ---------- */
@media print {
  .utility-bar, .site-header, .mobile-bar, .wa-float, .sheet, .mobile-menu, .skip-link, .bloom, .card__petal, .site-footer__bloom, .site-footer__social { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
  .card, .doc-card { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
  .site-footer { background: none; color: #000; border-top: 1px solid #000; }
  .site-footer a { color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
