/* ============================================================
   Vive Education Pte. Ltd. — Editorial / Academic Brand System
   Source of truth: viva-education-sg/brand/tokens.json (v1.0.0)
   See: viva-education-sg/brand/BRAND_GUIDELINES.md
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Inter:wght@400;500;600&family=Noto+Serif+SC:wght@400;600;700&display=swap");

:root {
  /* ---------- Brand tokens (mirrored from brand/tokens.json) ---------- */
  --brand-navy-900:   #0E2A47;
  --brand-purple-900: #2E1A5B;
  --brand-gold-500:   #C9A14A;
  --brand-cream-50:   #FFF8EC;
  --brand-ink-950:    #0B0B0F;
  --brand-paper-0:    #FFFFFF;

  /* Neutral gray ramp */
  --brand-gray-50:    #F4F6F9;
  --brand-gray-100:   #E6EAF1;
  --brand-gray-200:   #D2D9E4;
  --brand-gray-300:   #B0BACB;
  --brand-gray-400:   #8390A8;
  --brand-gray-500:   #5E6B85;
  --brand-gray-600:   #465369;
  --brand-gray-700:   #33405A;
  --brand-gray-800:   #1F2D48;
  --brand-gray-900:   #101A30;

  /* Semantic aliases (UI MUST use these, not raw brand tokens) */
  --text-primary:     var(--brand-ink-950);
  --text-muted:       var(--brand-gray-600);
  --text-on-dark:     var(--brand-cream-50);
  --bg-surface:       var(--brand-cream-50);
  --bg-elevated:      var(--brand-paper-0);
  --link:             var(--brand-navy-900);
  --link-hover:       var(--brand-gold-500);
  --border-subtle:    var(--brand-gray-200);
  --accent:           var(--brand-gold-500);

  /* ---------- Back-compat aliases (kept so existing HTML class hooks keep
     working — they now resolve to new brand tokens, not old hex). ------- */
  --paper:        var(--brand-cream-50);       /* warm canvas */
  --paper-alt:    var(--brand-gray-50);        /* hover/zebra */
  --paper-deep:   var(--brand-gray-100);       /* deeper hover */
  --ink:          var(--brand-navy-900);       /* primary dark surface / wordmark */
  --ink-mid:      var(--brand-gray-700);       /* secondary body on cream */
  --ink-soft:     var(--brand-gray-500);       /* tertiary / metadata */
  --ink-deep:     var(--brand-gray-900);       /* footer base */
  --accent-soft:  rgba(201, 161, 74, 0.50);
  --rule:         rgba(14, 42, 71, 0.18);
  --rule-strong:  rgba(14, 42, 71, 0.34);

  /* On dark (footer / closer) palette */
  --on-ink-body:   var(--brand-cream-50);
  --on-ink-eyebrow:#E0CB9A;                    /* warm cream-gold tint, AA on navy/gray-900 */
  --on-ink-soft:   rgba(255, 248, 236, 0.70);
  --on-ink-rule:   rgba(255, 248, 236, 0.22);

  /* ---------- Typography ---------- */
  /* Headings/wordmark (EN) → Playfair Display (per brand §3) */
  --ff-display: "Playfair Display", "Noto Serif SC", "Songti SC",
                ui-serif, Georgia, serif;
  /* Editorial italic / pull quotes (EN) → Cormorant Garamond */
  --ff-editorial: "Cormorant Garamond", "Noto Serif SC", "Songti SC",
                  ui-serif, Georgia, serif;
  /* Body + UI → Inter */
  --ff-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
             "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Chinese headings + body → Noto Serif SC */
  --ff-zh-serif: "Noto Serif SC", "Songti SC", "SimSun",
                 ui-serif, serif;

  /* Back-compat aliases for old class hooks */
  --ff-serif: var(--ff-display);
  /* Where ZH text uses .ff-zh, the body-default ff-zh-serif applies via lang */

  /* Type scale — modular 1.250 (brand §3) */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-lg:   20px;
  --fs-xl:   25px;
  --fs-2xl:  31px;
  --fs-3xl:  39px;
  --fs-4xl:  49px;
  --fs-5xl:  61px;

  /* Hero / page-hero / section type scale (fluid where useful) */
  --fs-h0:      clamp(49px, 7.5vw, 88px);    /* Hero display */
  --fs-h1:      clamp(39px, 5.4vw, 61px);    /* H1 */
  --fs-h2:      clamp(28px, 3.6vw, 39px);    /* H2 */
  --fs-h3:      var(--fs-2xl);                /* 31 */
  --fs-h4:      var(--fs-xl);                 /* 25 */
  --fs-lead:    var(--fs-lg);                 /* 20 */
  --fs-body:    17px;                         /* tuned reading size; brand body=16 */
  --fs-small:   var(--fs-sm);                 /* 14 */
  --fs-meta:    13px;
  --fs-eyebrow: var(--fs-xs);                 /* 12 */

  /* ---------- Spacing (brand §5) ---------- */
  --spacing-0:  0px;
  --spacing-1:  4px;
  --spacing-2:  8px;
  --spacing-3:  12px;
  --spacing-4:  16px;
  --spacing-6:  24px;
  --spacing-8:  32px;
  --spacing-12: 48px;
  --spacing-16: 64px;
  --spacing-24: 96px;
  --spacing-32: 128px;

  --gutter:          32px;
  --section-y:       96px;
  --section-y-tight: 64px;
  --grid-max:        1280px;

  /* ---------- Radius (brand §6) ---------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;

  /* ---------- Shadow (brand §6, navy-tinted) ---------- */
  --shadow-sm: 0 1px 2px rgba(14, 42, 71, 0.06);
  --shadow-md: 0 4px 12px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 12px 32px rgba(14, 42, 71, 0.12);
}

/* ---------- Reset + base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Chinese pages — body uses Noto Serif SC by default (brand §3 pairing rule) */
html[lang^="zh"] body {
  font-family: var(--ff-zh-serif);
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li + li { margin-top: 0.4em; }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
  text-underline-offset: 4px;
}

::selection { background: var(--accent); color: var(--brand-cream-50); }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--ff-sans);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
}
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3 { margin-top: 18px; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin: 0 0 0.55em;
}
/* Chinese pages: headings switch to Noto Serif SC (brand pairing rule) */
html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] h4 {
  font-family: var(--ff-zh-serif);
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); line-height: 1.05; }
.hero h1 { font-size: var(--fs-h0); }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.25; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 64ch;
  font-family: inherit;
}
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-small); line-height: 1.55; }
.meta  { font-size: var(--fs-meta);  color: var(--ink-soft); }

/* Editorial italic gloss (Cormorant) — pull quotes, in-line emphasis */
em.gloss,
.gloss {
  font-family: var(--ff-editorial);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
}

.section {
  padding: var(--section-y) 0 var(--section-y-tight);
}
.section--tight { padding: var(--section-y-tight) 0; }
.section--alt   { background: var(--brand-gray-50); }
.section + .section { border-top: 1px solid var(--rule); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(6, 1fr); gap: 24px; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(1, 1fr); }
}

.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }
.col-12 { grid-column: span 12; }
@media (max-width: 980px) {
  .col-7, .col-6, .col-5, .col-4, .col-3 { grid-column: span 6; }
}
@media (max-width: 620px) {
  .col-7, .col-6, .col-5, .col-4, .col-3, .col-12 { grid-column: span 1; }
}

.bordered-top    { border-top: 1px solid var(--rule); padding-top: 56px; }
.bordered-bottom { border-bottom: 1px solid var(--rule); padding-bottom: 56px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
}
.site-header__inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Wordmark: emblem + lockup. Logo PNG sits left of text; text uses Playfair
   for EN and Noto Serif SC for ZH. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  border-bottom: 0;
  text-decoration: none;
}
.wordmark__emblem {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
}
.wordmark__text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
html[lang^="zh"] .wordmark__text {
  font-family: var(--ff-zh-serif);
  letter-spacing: 0.04em;
}
/* The accent dot kept from legacy markup — now mapped to brand gold */
.wordmark .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin: 0 2px;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-family: var(--ff-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav a:hover         { color: var(--link-hover); border-bottom-color: var(--accent); }
.nav a.active        { border-bottom-color: var(--accent); color: var(--accent); }
.nav .nav-divider    { width: 1px; height: 14px; background: var(--rule-strong); display: inline-block; }
.nav .lang {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav .lang:hover { color: var(--accent); }

/* Mobile nav: hamburger collapses the 6 menu items + EN/中文 below 760px.
   The toggle button is hidden on desktop; nav.js wires the click. */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.nav-toggle__bars {
  display: inline-block;
  width: 16px;
  height: 12px;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ink);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span    { top: 50%; transform: translateY(-50%); }
.nav-toggle__bars::after  { bottom: 0; }

@media (max-width: 880px) {
  /* Collapse nav to hamburger below 880px — EN nav (6 items + lang
     toggle + divider) overflows at 768px tablet without this bump.
     ZH nav is narrower so this is conservative for ZH too. */
  .site-header__inner { flex-wrap: nowrap; padding: 12px 18px; gap: 12px; }
  .wordmark__emblem { width: 30px; height: 30px; }
  .wordmark__text   { font-size: 16px; letter-spacing: 0.04em; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule-strong);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
    box-shadow: var(--shadow-md);
    transform-origin: top center;
    transform: scaleY(0);
    visibility: hidden;
    transition: transform 0.16s ease, visibility 0.16s ease;
  }
  .nav.is-open {
    transform: scaleY(1);
    visibility: visible;
  }
  .nav a {
    padding: 14px 22px;
    font-size: 14px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--rule);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover, .nav a.active {
    background: var(--paper-alt);
    border-bottom-color: var(--rule);
  }
  .nav .nav-divider { display: none; }
  .nav .lang {
    font-size: 12px;
    letter-spacing: 0.20em;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.hero__eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: var(--fs-h0);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.hero h1 .break { display: block; }

/* Brand tagline (Navigate Your Degree · 护航你的学位之路) directly under H1 */
.hero__tagline,
.page-hero__tagline {
  font-family: var(--ff-editorial);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: var(--brand-purple-900);
  margin: -12px 0 24px;
  letter-spacing: 0.005em;
  max-width: 52ch;
}
html[lang^="zh"] .hero__tagline,
html[lang^="zh"] .page-hero__tagline {
  font-family: var(--ff-zh-serif);
  font-style: normal;
  font-weight: 600;
}
.hero__tagline .sep,
.page-hero__tagline .sep {
  color: var(--accent);
  font-style: normal;
  margin: 0 0.4em;
}

.hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0 0 36px;
  max-width: 52ch;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin-bottom: 32px;
}
.hero__credibility {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  max-width: 48ch;
  line-height: 1.6;
}

/* Hero right column — quote slip + portrait strip */
.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.quote-slip {
  background: var(--brand-paper-0);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  padding: 28px 28px 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.quote-slip__label {
  font-family: var(--ff-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.quote-slip__main {
  font-family: var(--ff-display);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}
html[lang^="zh"] .quote-slip__main { font-family: var(--ff-zh-serif); font-weight: 600; }
.quote-slip__main .ipa {
  font-family: var(--ff-editorial);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  padding: 0 6px;
}
.quote-slip__body {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 0;
}

.portrait-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.portrait-strip--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.portrait-strip figure { margin: 0; }
.portrait-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.portrait-strip figcaption {
  margin-top: 10px;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.4;
}
.portrait-strip figcaption strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: none;
  margin-bottom: 3px;
}
html[lang^="zh"] .portrait-strip figcaption strong { font-family: var(--ff-zh-serif); }

@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 9.5vw, 49px);
    letter-spacing: -0.005em;
  }
  .hero__eyebrow { margin-bottom: 18px; }
  .hero__sub { margin-bottom: 28px; font-size: 17px; }
  .hero__tagline,
  .page-hero__tagline { font-size: 17px; margin: -8px 0 18px; }
  .hero__credibility { font-size: 13px; padding-top: 16px; }
  .hero__aside { gap: 22px; }
  .hero__ctas { gap: 12px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .portrait-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .portrait-strip--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .portrait-strip figcaption { font-size: 10px; letter-spacing: 0.04em; }
  .portrait-strip figcaption strong { font-size: 13px; }
  .quote-slip { padding: 22px 20px 24px; }
  .quote-slip__main { font-size: 20px; }
}
@media (max-width: 420px) {
  .portrait-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .portrait-strip--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .portrait-strip figcaption { font-size: 9.5px; }
  .portrait-strip figcaption strong { font-size: 12px; }
}

/* ---------- Buttons (brand §6) ---------- */

.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-navy-900);
  background: var(--brand-navy-900);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              box-shadow 0.18s ease;
}
.btn:hover {
  background: var(--brand-gray-900);
  border-color: var(--brand-gray-900);
  color: var(--text-on-dark);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn .arrow { font-family: var(--ff-sans); font-size: 16px; }

.btn--ghost {
  background: transparent;
  color: var(--brand-navy-900);
  border-color: var(--brand-navy-900);
}
.btn--ghost:hover {
  background: var(--brand-navy-900);
  color: var(--text-on-dark);
  border-color: var(--brand-navy-900);
}

/* ---------- Section header (eyebrow + H2) ---------- */
.section-header {
  margin-bottom: 56px;
  max-width: 64ch;
}
.section-header h2 { margin-bottom: 14px; }
.section-header .lead { margin: 0; }

/* ---------- Three pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 620px) {
  .pillars { grid-template-columns: 1fr; gap: 36px; }
}
.pillar {
  border-top: 2px solid var(--brand-navy-900);
  padding-top: 28px;
}
.pillar__roman {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.pillar h3 {
  font-size: 24px;
  line-height: 1.22;
  margin-bottom: 16px;
}
.pillar p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin: 0;
}

/* ---------- Logo wall ---------- */

.logo-wall { display: grid; gap: 56px; }
.logo-group {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) {
  .logo-group { grid-template-columns: 1fr; gap: 24px; }
}
.logo-group__label {
  border-top: 2px solid var(--brand-navy-900);
  padding-top: 22px;
}
.logo-group__eyebrow {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.logo-group__host {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
}
html[lang^="zh"] .logo-group__host { font-family: var(--ff-zh-serif); }
.logo-group__pretty {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.logo-grid--short {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
@media (max-width: 980px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid--short { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
@media (max-width: 620px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid--short { grid-template-columns: repeat(2, 1fr); }
}
.logo-cell {
  background: var(--brand-paper-0);
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
}
.logo-cell img {
  max-height: 48px;
  max-width: 80%;
  object-fit: contain;
  opacity: 0.95;
}
.logo-cell__tag {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.logo-cell__name { display: none; }

.logo-wall__footnote {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- Service blocks ---------- */

.service-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 980px) {
  .service-block { grid-template-columns: 1fr; gap: 22px; padding: 44px 0; }
}
.service-block__num {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-soft);
}
.service-block__num .eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
}
.service-block h2 {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 22px;
}
.service-block .lead { margin-bottom: 18px; }
.service-block p { font-size: 17px; line-height: 1.75; color: var(--ink-mid); }
.service-block .small-print {
  font-family: var(--ff-editorial);
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Numbered checklist (4 obligations / 6 contact items) */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.checklist li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.checklist li:last-child { border-bottom: 1px solid var(--rule); }
.checklist__num {
  font-family: var(--ff-display);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
}
html[lang^="zh"] .checklist__num { font-family: var(--ff-zh-serif); }
.checklist__num--small {
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}
.checklist__title {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
html[lang^="zh"] .checklist__title { font-family: var(--ff-zh-serif); }
.checklist__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-mid);
}

/* ---------- About : team list (4-person bullet stack) ---------- */
.about-team-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.about-team-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  border-bottom: 1px solid var(--border-subtle);
}
.about-team-list li:last-child { border-bottom: 0; }
.about-team-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--brand-gold);
  border-radius: 50%;
}
.about-team-list strong {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink);
}
html[lang^="zh"] .about-team-list strong { font-family: var(--ff-zh-serif); }
.about-team-list code {
  font-family: var(--ff-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: 0.92em;
  padding: 1px 5px;
  background: var(--brand-cream-50);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
}

/* ---------- About : service boundary card (navy fill) ---------- */
.deep-card {
  background: var(--brand-navy-900);
  color: var(--on-ink-body);
  padding: 56px 56px 52px;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.deep-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201, 161, 74, 0.30);
}
.deep-card .eyebrow { color: var(--on-ink-eyebrow); }
.deep-card h3 {
  color: var(--on-ink-body);
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 18px;
}
.deep-card p {
  color: var(--on-ink-body);
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
  max-width: 60ch;
}
.deep-card .gloss-line {
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
  display: block;
}
@media (max-width: 720px) {
  .deep-card { padding: 36px 28px; }
}

/* ---------- Spec table (UEN / Email / Phone) ---------- */
.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--brand-navy-900);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 620px) {
  .spec-table { grid-template-columns: 1fr; }
}
.spec-table > div {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  padding-right: 24px;
}
.spec-table > div:first-child,
.spec-table > div:nth-child(2) { border-top: 0; }
.spec-table > div .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}
.spec-table strong {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  display: block;
}
html[lang^="zh"] .spec-table strong { font-family: var(--ff-zh-serif); }
.spec-table a        { font-size: 18px; }
.spec-table a strong { font-family: var(--ff-sans); font-weight: 500; }

/* ---------- Tutor cards ---------- */
.tutor-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
}
.tutor-card--flipped { grid-template-columns: 7fr 5fr; }
.tutor-card--flipped .tutor-card__portrait { order: 2; }
.tutor-card--flipped .tutor-card__text     { order: 1; }
@media (max-width: 980px) {
  .tutor-card, .tutor-card--flipped {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0;
  }
  .tutor-card--flipped .tutor-card__portrait { order: 0; }
  .tutor-card--flipped .tutor-card__text     { order: 0; }
}
.tutor-card__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.tutor-card__text .eyebrow { display: block; margin-bottom: 10px; }
.tutor-card__text h2 {
  font-size: 36px;
  line-height: 1.05;
  margin-bottom: 22px;
}
.tutor-card__text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 60ch;
}
.tutor-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 22px;
}
.chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background: var(--brand-paper-0);
}
.chip--ink {
  background: var(--brand-navy-900);
  color: var(--on-ink-body);
  border-color: var(--brand-navy-900);
}
.tutor-card__pullquote {
  margin: 28px 0 0;
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 22px;
  font-family: var(--ff-editorial);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
}
html[lang^="zh"] .tutor-card__pullquote {
  font-family: var(--ff-zh-serif);
  font-style: normal;
  font-weight: 400;
}
.tutor-card__pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}
.tutor-card__awards {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.tutor-card__awards li {
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-mid);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
}
.tutor-card__awards .eyebrow { margin: 0; }

/* ---------- Tutor mini grid (Academic Tutors 4×2) ---------- */
.tutor-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 40px 0 0;
}
.tutor-mini {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
}
.tutor-mini__portrait {
  background: linear-gradient(180deg, var(--brand-paper-0) 0%, var(--brand-paper-1, #f4f1ea) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0;
}
.tutor-mini__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.tutor-mini__role {
  display: block;
  font-family: var(--ff-sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 16px 0 6px;
}
.tutor-mini__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0.005em;
  margin: 0 0 12px;
  color: var(--ink);
}
html[lang^="zh"] .tutor-mini__name { font-family: var(--ff-zh-serif); }
.tutor-mini__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.tutor-mini__chips .chip {
  font-size: 10px;
  letter-spacing: 0.10em;
  padding: 5px 10px;
}
.tutor-mini__subjects {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0 0 14px;
}
.tutor-mini__subjects strong {
  display: block;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.tutor-mini__highlight {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}
@media (max-width: 1040px) {
  .tutor-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 540px) {
  .tutor-mini-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Closer CTA (purple ribbon) ---------- */

.closer {
  background: var(--brand-navy-900);
  color: var(--on-ink-body);
  padding: 96px 0;
  text-align: center;
  position: relative;
  margin-top: 0;
  overflow: hidden;
}
.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(46, 26, 91, 0.0) 0%, rgba(46, 26, 91, 0.35) 100%);
  pointer-events: none;
}
.closer > * { position: relative; }
.closer .eyebrow { color: var(--on-ink-eyebrow); margin-bottom: 18px; }
.closer h2 {
  color: var(--on-ink-body);
  font-size: clamp(31px, 4vw, 49px);
  max-width: 26ch;
  margin: 0 auto 24px;
}
.closer p {
  color: var(--on-ink-soft);
  font-size: 18px;
  max-width: 56ch;
  margin: 0 auto 36px;
}
.closer .btn {
  background: var(--brand-cream-50);
  color: var(--brand-navy-900);
  border-color: var(--brand-cream-50);
}
.closer .btn:hover {
  background: var(--brand-gold-500);
  border-color: var(--brand-gold-500);
  color: var(--brand-navy-900);
}
.closer .btn--ghost {
  background: transparent;
  color: var(--on-ink-body);
  border-color: var(--on-ink-rule);
}
.closer .btn--ghost:hover {
  background: var(--brand-cream-50);
  color: var(--brand-navy-900);
  border-color: var(--brand-cream-50);
}
.closer__sig {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.40em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-gray-900);
  color: var(--on-ink-body);
  padding: 80px 0 32px;
  border-top: 4px solid var(--brand-purple-900);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer .container { grid-template-columns: 1fr; }
}
.site-footer h4 {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-ink-eyebrow);
  margin: 0 0 22px;
  font-weight: 600;
}
.site-footer__brand h4 {
  font-family: var(--ff-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 700;
  color: var(--on-ink-body);
  margin-bottom: 14px;
}
html[lang^="zh"] .site-footer__brand h4 { font-family: var(--ff-zh-serif); }
.site-footer__brand p {
  font-size: 14px;
  color: var(--on-ink-soft);
  margin: 0;
  line-height: 1.6;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li + li { margin-top: 10px; }
.site-footer a {
  color: var(--on-ink-body);
  font-size: 14px;
  line-height: 1.55;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.site-footer .legal-line {
  font-size: 13px;
  color: var(--on-ink-soft);
  line-height: 1.7;
  margin-top: 6px;
}
.site-footer__bottom {
  border-top: 1px solid var(--on-ink-rule);
  margin-top: 56px;
  padding-top: 22px;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: center;
  text-align: center;
}
.site-footer__bottom .dot {
  width: 3px; height: 3px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin: auto 0;
}

/* Inline contact-list helpers — used by footer email alias block */
.site-footer__emails {
  font-size: 13px;
  color: var(--on-ink-soft);
}
.site-footer__emails li { line-height: 1.55; }
.site-footer__emails .alias {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 6px;
}

/* ---------- Misc ---------- */
.arrow { font-family: var(--ff-sans); font-weight: 500; }

.divider-mark {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.40em;
  text-align: center;
  color: var(--accent);
  margin: 0 auto;
  padding: 40px 0;
}

/* ---------- Brand decorative system ----------
   gold-rule    — gold hairline section divider (use between major sections)
   gold-rule--ornament — ditto with compass · book emblem in centre
   alt-band     — paper-0 (pure white) band, alternates with default cream
   drop-cap     — large editorial opening initial (about/services lead p)
   pull-quote   — standalone editorial pull quote (cream sections)
   emblem-inline — inline brand mark (use in footer brand / closer / dividers)
   eyebrow-block — bigger version of eyebrow for section openers
   ------------------------------------------------------------------ */

.gold-rule {
  border: 0;
  border-top: 1px solid var(--accent);
  width: 100%;
  margin: 0;
  opacity: 0.55;
}
.gold-rule--soft {
  border-top-color: var(--accent-soft);
}
/* Decorative divider: gold rule with an inline brand ornament in centre.
   Render the emblem PNG so the navigator's compass + open book actually shows. */
.brand-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 0;
  color: var(--accent);
}
.brand-divider::before,
.brand-divider::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px solid var(--accent);
  opacity: 0.55;
}
.brand-divider__emblem {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  opacity: 0.9;
}
.brand-divider__mark {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 540px) {
  .brand-divider { gap: 12px; padding: 22px 0; }
  .brand-divider__emblem { width: 22px; height: 22px; }
  .brand-divider__mark { font-size: 9px; letter-spacing: 0.30em; }
}

/* Inline emblem for footer brand / closer / hero overlay */
.emblem-inline {
  width: 22px; height: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.95;
}
.emblem-md {
  width: 44px; height: 44px;
  display: block;
  margin: 0 0 14px;
  opacity: 0.95;
}

/* Editorial drop cap (use on first <p class="lead-drop"> of about page) */
.lead-drop::first-letter {
  font-family: var(--ff-display);
  font-weight: 700;
  float: left;
  font-size: 4.6em;
  line-height: 0.9;
  padding: 6px 14px 0 0;
  color: var(--brand-navy-900);
  margin-top: 4px;
}
html[lang^="zh"] .lead-drop::first-letter {
  font-family: var(--ff-zh-serif);
  font-weight: 700;
  font-size: 3.6em;
  padding: 2px 12px 0 0;
}

/* Pull quote — used standalone inside cream sections (index, services) */
.pull-quote {
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0 32px;
  margin: 56px 0;
  text-align: center;
  position: relative;
}
.pull-quote::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 18px;
  background-image: url("logos-vivasgedu/logo_emblem_square.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
}
.pull-quote q,
.pull-quote p {
  display: block;
  font-family: var(--ff-editorial);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: var(--brand-navy-900);
  font-weight: 400;
  max-width: 32ch;
  margin: 0 auto;
  quotes: "“" "”";
}
.pull-quote q::before { content: open-quote; color: var(--accent); margin-right: 2px; }
.pull-quote q::after  { content: close-quote; color: var(--accent); margin-left: 2px; }
html[lang^="zh"] .pull-quote q,
html[lang^="zh"] .pull-quote p {
  font-family: var(--ff-zh-serif);
  font-style: normal;
  font-weight: 600;
}
html[lang^="zh"] .pull-quote q {
  quotes: "「" "」";
}
.pull-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--ff-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 540px) {
  .pull-quote { padding: 28px 0 24px; margin: 36px 0; }
}

/* Alternating cream / paper bands for vertical rhythm */
.band-paper { background: var(--brand-paper-0); }
.band-cream { background: var(--brand-cream-50); }
/* Tint band — subtle gray fill for grouping (use sparingly) */
.band-tint  { background: var(--brand-gray-50); }

/* Service-block + chip + spec-table mobile polish */
@media (max-width: 720px) {
  .service-block__num {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 28px;
  }
  .service-block__num .eyebrow {
    display: inline-block;
    margin-bottom: 0;
  }
  .service-block h2 { font-size: 28px; line-height: 1.15; }
  .tutor-card__chips { gap: 8px; }
  .chip { font-size: 10px; padding: 5px 11px; letter-spacing: 0.12em; }
  .tutor-card__text h2 { font-size: 28px; }
  .tutor-card__text p { font-size: 16px; }
  .tutor-card__pullquote { font-size: 17px; padding-left: 16px; }
  .spec-table > div { padding: 18px 0; word-break: break-word; }
  .spec-table a, .spec-table strong { font-size: 16px; }
}

/* Programme tally — center the count + label so they align */
@media (max-width: 720px) {
  .prog-tally a { padding: 18px 14px; }
  .prog-tally__name { font-size: 10px; letter-spacing: 0.14em; margin-bottom: 8px; }
  .prog-tally__count { font-size: 32px; }
}
/* Programme table — allow horizontal scroll as final mobile fallback if
   the column compression is still too tight on Murdoch / long rows. */
@media (max-width: 720px) {
  .prog-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
  }
  .prog-table-scroll .prog-table { min-width: 0; }
}

/* Trim trailing 。 on hero/page-hero H1 visually (CSS-only approach skipped —
   handled by removing the 。 in HTML for short titles). */

/* Map fallback link block — sits below the iframe on contact pages */
.map-fallback {
  display: block;
  margin-top: 14px;
  font-family: var(--ff-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.map-fallback a {
  color: var(--brand-navy-900);
  border-bottom: 1px solid var(--accent);
}
.map-fallback a:hover {
  color: var(--accent);
}

/* Mission band on about page — wraps origin-quote with a subtle eyebrow */
.mission-band {
  margin: 56px 0;
  text-align: center;
}
.mission-band .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
}
.mission-band .origin-quote {
  margin: 0;
  text-align: center;
  max-width: 60ch;
  margin-left: auto; margin-right: auto;
}
@media (max-width: 540px) {
  .mission-band { margin: 32px 0; }
  .mission-band .origin-quote { font-size: 20px; padding: 24px 0; }
}

/* Footer emblem + closer emblem */
.site-footer__brand .emblem-md {
  width: 40px; height: 40px;
  margin-bottom: 14px;
}
.closer__emblem {
  width: 40px; height: 40px;
  display: block;
  margin: 0 auto 18px;
  opacity: 0.95;
}

/* Numbered service block — when num column is gone on mobile, the eyebrow
   stays inline with the H2 for tighter rhythm */
@media (max-width: 720px) {
  .service-block { padding: 32px 0; gap: 14px; }
  .service-block__num { font-size: 24px; margin-bottom: 4px; }
}

/* Eyebrow + page-hero rhythm — Chinese pages tend to have shorter H1 strings;
   trim the leading margin so the tagline sits closer to the headline */
html[lang^="zh"] .hero h1,
html[lang^="zh"] .page-hero h1 {
  letter-spacing: 0.005em;
}

/* About page — statement quote */
.origin-quote {
  font-family: var(--ff-editorial);
  font-style: italic;
  font-size: 26px;
  line-height: 1.45;
  color: var(--ink);
  padding: 38px 0;
  border-top: 2px solid var(--brand-navy-900);
  border-bottom: 1px solid var(--rule);
  margin: 56px 0;
}
html[lang^="zh"] .origin-quote {
  font-family: var(--ff-zh-serif);
  font-style: normal;
  font-weight: 600;
}

/* Page sub-hero */
.page-hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-size: clamp(39px, 6vw, 61px);
  margin-bottom: 24px;
  line-height: 1.05;
}
.page-hero .lead { margin-bottom: 0; }
@media (max-width: 720px) {
  .page-hero { padding: 56px 0 48px; }
  .page-hero h1 {
    font-size: clamp(32px, 8.5vw, 44px);
    line-height: 1.08;
    margin-bottom: 18px;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .page-hero .lead { font-size: 16px; }
  /* All long body headings break safely; H2 in service blocks / sections */
  .section h2,
  .section--tight h2,
  .section-header h2,
  .service-block h2,
  .tutor-card__text h2 {
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .section-header h2,
  .service-block h2,
  .closer h2 {
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.2;
    letter-spacing: 0.005em;
    overflow-wrap: break-word;
  }
  .lead {
    font-size: 16px;
    line-height: 1.6;
  }
  .container { padding: 0 18px; }
}
@media (max-width: 420px) {
  .section-header h2,
  .service-block h2 {
    font-size: clamp(20px, 5.8vw, 24px);
  }
  .container { padding: 0 16px; }
}

/* ---------- Contact map ---------- */
.map-wrap {
  border: 1px solid var(--border-subtle);
  background: var(--brand-gray-50);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.map-wrap iframe { min-height: 420px; }
@media (max-width: 720px) {
  .map-wrap iframe { min-height: 320px; height: 320px; }
}

/* ---------- /programmes 课程目录 ---------- */
.prog-tally {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.prog-tally a {
  display: block;
  padding: 28px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.prog-tally a:hover {
  background: var(--brand-navy-900);
  color: var(--on-ink-body);
  border-color: var(--brand-navy-900);
}
.prog-tally__name {
  display: block;
  font-family: var(--ff-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.prog-tally a:hover .prog-tally__name { color: var(--on-ink-eyebrow); }
.prog-tally__count {
  display: block;
  font-family: var(--ff-display);
  font-size: 49px;
  font-weight: 700;
  line-height: 1;
}
html[lang^="zh"] .prog-tally__count { font-family: var(--ff-zh-serif); }

.prog-block {
  border-top: 1px solid var(--rule);
  padding: 56px 0;
}
.prog-block:first-of-type { border-top: 2px solid var(--brand-navy-900); }
.prog-block__header { margin-bottom: 28px; }
.prog-block__header h3 {
  font-family: var(--ff-display);
  font-size: 31px;
  font-weight: 700;
  margin: 6px 0 0;
}
html[lang^="zh"] .prog-block__header h3 { font-family: var(--ff-zh-serif); }
.prog-block__intro {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 70ch;
}

.prog-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.prog-table caption,
.prog-table__caption {
  caption-side: top;
  text-align: left;
  font-family: var(--ff-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 28px 0 10px;
}
.prog-table thead tr   { background: var(--brand-gray-50); }
.prog-table th {
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--ink-mid);
  padding: 12px 18px 12px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: bottom;
}
.prog-table td {
  padding: 14px 18px 14px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  font-family: var(--ff-sans);
  color: var(--ink);
  vertical-align: top;
  line-height: 1.5;
}
.prog-table tbody tr:nth-child(odd)  { background: var(--brand-cream-50); }
.prog-table tbody tr:nth-child(even) { background: var(--brand-paper-0); }
.prog-table tbody tr:hover           { background: var(--brand-gray-50); }
.prog-table td:first-child { font-weight: 500; max-width: 460px; }
.prog-table--tight th,
.prog-table--tight td { padding-top: 10px; padding-bottom: 10px; }

@media (max-width: 720px) {
  .prog-tally { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prog-tally a { padding: 22px 18px; }
  .prog-tally__count { font-size: 36px; }
  .prog-block { padding: 36px 0; }
  .prog-block__header h3 { font-size: 24px; }
  .prog-table {
    table-layout: fixed;
    max-width: 100%;
  }
  .prog-table th,
  .prog-table td {
    padding: 10px 8px 10px 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .prog-table td:first-child { font-size: 13px; }
  .prog-table th:nth-child(4),
  .prog-table td:nth-child(4),
  .prog-table th:nth-child(5),
  .prog-table td:nth-child(5) { display: none; }
}

/* ============================================================
   Legal / Compliance pages (privacy / terms / pdpa-notice /
   cookie-policy / disclaimer). Long-form article layout with a
   narrow reading column, persistent meta header, and a table of
   contents rail. Mirrors the editorial-navy brand surface.
   ============================================================ */

.legal-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--rule);
  background: var(--brand-cream-50);
}
.legal-hero__inner { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 {
  font-size: clamp(34px, 4.8vw, 49px);
  margin: 0 0 18px;
  line-height: 1.08;
}
.legal-hero__tagline {
  font-family: var(--ff-editorial);
  font-style: italic;
  font-size: 18px;
  color: var(--brand-purple-900);
  margin: 0 0 26px;
  letter-spacing: 0.005em;
}
html[lang^="zh"] .legal-hero__tagline {
  font-family: var(--ff-zh-serif);
  font-style: normal;
  font-weight: 600;
}
.legal-hero__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 0 0 32px;
  max-width: 60ch;
}

/* Meta row: effective date · last updated · governing law */
.legal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  margin: 0;
}
@media (max-width: 620px) {
  .legal-meta { grid-template-columns: 1fr; gap: 12px; padding: 14px 0; }
}
.legal-meta__cell .eyebrow { display: block; margin-bottom: 6px; }
.legal-meta__cell strong {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

/* Article: narrow 768px reading column on cream surface */
.legal-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.legal-article > section {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.legal-article > section:first-of-type { border-top: 0; padding-top: 0; }

.legal-article h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 18px;
  scroll-margin-top: 100px;
}
.legal-article h2 .num {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
html[lang^="zh"] .legal-article h2 .num { font-family: var(--ff-sans); }
.legal-article h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 28px 0 12px;
  color: var(--ink);
}
.legal-article p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
}
.legal-article ul,
.legal-article ol {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  padding-left: 1.4em;
  margin: 0 0 18px;
}
.legal-article li { margin-top: 6px; }
.legal-article li::marker { color: var(--accent); }
.legal-article a {
  color: var(--brand-navy-900);
  border-bottom: 1px solid var(--accent-soft);
}
.legal-article a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* TOC card sitting above article on tablet+ */
.legal-toc {
  background: var(--brand-paper-0);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  margin: 0 0 40px;
  border-radius: var(--radius-md);
}
.legal-toc__label {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  display: block;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.legal-toc li { margin: 4px 0; }
.legal-toc a {
  color: var(--ink-mid);
  border-bottom: 0;
  font-family: var(--ff-sans);
}
.legal-toc a:hover { color: var(--accent); }

/* Definition list — used for "data we collect" / "third parties" */
.legal-dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px 28px;
  margin: 18px 0 22px;
  padding: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 620px) {
  .legal-dl { grid-template-columns: 1fr; gap: 4px 0; }
}
.legal-dl dt {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-navy-900);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.legal-dl dt:first-of-type { border-top: 0; padding-top: 14px; }
.legal-dl dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-mid);
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 620px) {
  .legal-dl dt { border-top: 1px solid var(--rule); padding-top: 12px; padding-bottom: 4px; }
  .legal-dl dd { padding: 0 0 12px; border-top: 0; }
}
.legal-dl dd:first-of-type { border-top: 0; }
@media (max-width: 620px) {
  .legal-dl dt:first-of-type { border-top: 0; padding-top: 0; }
}

/* Highlighted callout — used for TBC and important notices */
.legal-callout {
  background: var(--brand-cream-50);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-purple-900);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-mid);
  border-radius: var(--radius-sm);
}
.legal-callout strong {
  font-family: var(--ff-sans);
  font-weight: 600;
  color: var(--brand-purple-900);
}
.legal-callout--tbc {
  border-left-color: var(--accent);
  background: rgba(201, 161, 74, 0.06);
}
.legal-callout--tbc strong { color: var(--accent); }

/* DPO contact card — surfaces DPO email/phone consistently */
.legal-dpo {
  background: var(--brand-navy-900);
  color: var(--on-ink-body);
  padding: 28px 32px;
  border-radius: var(--radius-md);
  margin: 28px 0;
}
.legal-dpo .eyebrow { color: var(--on-ink-eyebrow); display: block; margin-bottom: 10px; }
.legal-dpo h3 {
  color: var(--on-ink-body);
  font-size: 20px;
  margin: 0 0 14px;
}
.legal-dpo p { color: var(--on-ink-body); margin: 0 0 8px; font-size: 15px; }
.legal-dpo a {
  color: var(--on-ink-eyebrow);
  border-bottom: 1px solid var(--accent-soft);
}
.legal-dpo a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Cross-link strip — bottom of every legal page, links the other 4 */
.legal-cross {
  border-top: 2px solid var(--brand-navy-900);
  margin-top: 56px;
  padding-top: 28px;
}
.legal-cross__label {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.legal-cross__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 620px) {
  .legal-cross__grid { grid-template-columns: 1fr; }
}
.legal-cross__grid a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--ff-sans);
  font-size: 14px;
  color: var(--ink);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  background: var(--brand-paper-0);
}
.legal-cross__grid a:hover {
  background: var(--brand-navy-900);
  color: var(--on-ink-body);
  border-color: var(--brand-navy-900);
}
.legal-cross__grid a .arrow {
  float: right;
  color: var(--accent);
}
.legal-cross__grid a:hover .arrow { color: var(--on-ink-eyebrow); }

/* Footer "legal" column — used by every page */
.site-footer__legal-links { display: grid; gap: 10px; }
.site-footer__legal-links a { font-size: 13px; }

/* ============================================================
   /programmes 2026 redesign — filter + card grid
   BEM-ish: prog-filter, prog-group, prog-sub, prog-card
   ============================================================ */

/* ---------- Sticky filter bar ---------- */
.prog-filter-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--brand-cream-50);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  margin: 0 0 32px;
}
.prog-filter {
  display: grid;
  gap: 14px;
}
.prog-filter__group {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: baseline;
}
.prog-filter__label {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 6px;
}
.prog-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--brand-paper-0);
  color: var(--ink-mid);
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.filter-chip:hover {
  border-color: var(--brand-navy-900);
  color: var(--ink);
}
.filter-chip.is-active {
  background: var(--brand-navy-900);
  color: var(--on-ink-body);
  border-color: var(--brand-navy-900);
}
.filter-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.prog-filter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px dashed var(--rule);
  margin-top: 4px;
}
.prog-filter__search {
  flex: 1 1 260px;
  font-family: var(--ff-sans);
  font-size: 14px;
  padding: 9px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--brand-paper-0);
  color: var(--ink);
}
.prog-filter__search:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--brand-navy-900);
}
.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- Result count strip ---------- */
.prog-result-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 36px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.prog-result-bar__count {
  font-family: var(--ff-display);
  font-size: 28px;
  color: var(--ink);
}
html[lang^="zh"] .prog-result-bar__count { font-family: var(--ff-zh-serif); }
.prog-result-bar__hint {
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Group: per school ---------- */
.prog-group {
  padding: 40px 0 8px;
  border-top: 2px solid var(--brand-navy-900);
  margin-top: 28px;
}
.prog-group:first-of-type { margin-top: 0; }
.prog-group__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.prog-group__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.prog-group__title {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
html[lang^="zh"] .prog-group__title { font-family: var(--ff-zh-serif); }
.prog-group__count {
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------- Sub-group: per level within a school ---------- */
.prog-sub {
  margin-top: 28px;
}
.prog-sub__title {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.prog-sub__count {
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  font-weight: 400;
}

/* ---------- Card grid ---------- */
.prog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.prog-card {
  display: flex;
  flex-direction: column;
  background: var(--brand-paper-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 22px 18px;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.prog-card:hover {
  border-color: var(--brand-navy-900);
  box-shadow: 0 8px 22px rgba(14, 42, 71, 0.06);
}
.prog-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.prog-card__logo {
  flex: 0 0 auto;
  width: 64px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.prog-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.prog-card__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.prog-card__uni {
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.prog-card__country {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}
.prog-card__title {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 10px;
}
html[lang^="zh"] .prog-card__title { font-family: var(--ff-zh-serif); }
.prog-card__note {
  font-family: var(--ff-sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-style: italic;
}
html[lang^="zh"] .prog-card__note { font-style: normal; }
.prog-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.prog-card__chips .chip {
  font-size: 10px;
  padding: 4px 10px;
  letter-spacing: 0.12em;
}
.prog-card__dl {
  display: grid;
  gap: 4px 14px;
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.prog-card__dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  font-family: var(--ff-sans);
  font-size: 12px;
}
.prog-card__dl dt {
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  padding-top: 1px;
}
.prog-card__dl dd {
  margin: 0;
  color: var(--ink);
}
.prog-card__toggle {
  align-self: flex-start;
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-navy-900);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  padding: 12px 0 4px;
  cursor: pointer;
  margin-top: auto;
  width: 100%;
  text-align: left;
}
.prog-card__toggle:hover { color: var(--accent); }
.prog-card__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.prog-card__modules {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--brand-cream-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
}
.prog-card__modules[hidden] { display: none; }
.prog-card__modules-note {
  font-family: var(--ff-sans);
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 8px;
  font-style: italic;
}
html[lang^="zh"] .prog-card__modules-note { font-style: normal; }
.prog-card__module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.prog-card__module-list li {
  position: relative;
  padding-left: 14px;
  font-family: var(--ff-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}
.prog-card__module-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Empty state ---------- */
.prog-empty {
  padding: 56px 24px;
  text-align: center;
  font-family: var(--ff-sans);
  font-size: 14px;
  color: var(--ink-soft);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-md);
  background: var(--brand-cream-50);
}

/* ---------- FAQ block ---------- */
.faq-list { display: grid; gap: 18px; max-width: 78ch; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.faq-item summary {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
html[lang^="zh"] .faq-item summary { font-family: var(--ff-zh-serif); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--ff-sans);
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.18s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  font-family: var(--ff-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 10px 0 0;
}

/* ---------- Mobile responsive ---------- */
@media (max-width: 760px) {
  .prog-filter__group {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .prog-filter__label { padding-top: 0; }
  .prog-card-grid { grid-template-columns: 1fr; }
  .prog-group__title { font-size: 22px; }
  .prog-card { padding: 18px 16px 14px; }
  .prog-card__title { font-size: 16px; }
  .prog-result-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 420px) {
  .prog-filter-wrap { padding: 12px 0; }
  .filter-chip { font-size: 12px; padding: 6px 11px; }
}

/* ---------- Mobile: enlarge tap targets to >= ~44px ----------
   The footer site map link is 14px font + 22px line-box without
   padding — too small for finger touch. Add vertical padding only
   on mobile so desktop layout doesn't get stretched. */
@media (max-width: 760px) {
  .site-footer a {
    display: inline-block;
    padding: 8px 0;          /* 22px line + 16px padding = 38px box */
    min-height: 38px;
  }
  .site-footer li + li { margin-top: 4px; } /* tighten since each li now taller */
  .site-footer__bottom a { padding: 4px 0; min-height: 28px; } /* legal microcopy */
}
