/* GradeHarbour | 學航 — editorial education site.
   Layout concept: a harbour chart — calm warm-white paper, deep navy "water" bands used sparingly,
   asymmetric 5/7 splits that alternate side, teal for verified facts, soft yellow for gentle highlights. */
:root {
  --paper: #FFFFFF;
  --paper-2: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #0F1B33;
  --ink-2: #3B4862;
  --muted: #69758A;
  --line: #E8ECF2;
  --line-2: #D5DBE4;
  --navy: #EEF5FF;
  --navy-2: #F5F7FA;
  --on-navy: #0F1B33;
  --on-navy-muted: #3B4862;
  --teal: #0B8577;
  --teal-ink: #0A7468;
  --teal-soft: #E5F5F2;
  --sun: #FFC845;
  --sun-soft: #FFF5D9;
  --danger: #C4372C;
  --danger-soft: #FDECEA;
  --cta-bg: #0B8577;
  --cta-fg: #FFFFFF;
  --ill-ground: #EEF3FA;
  --shadow: 0 1px 2px rgba(15, 27, 51, .04), 0 6px 20px -8px rgba(15, 27, 51, .10);
  --shadow-lg: 0 2px 6px rgba(15, 27, 51, .04), 0 22px 44px -18px rgba(15, 27, 51, .16);

  --f-display: "Plus Jakarta Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --f-body: "Public Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: .78rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.175rem; --fs-lg: 1.45rem;
  --fs-xl: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
  --fs-xxl: clamp(2.1rem, 1.4rem + 3vw, 3.3rem);
  --r-sm: 8px; --r: 14px; --r-lg: 24px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(zh-Hant) body, body:lang(zh-Hant) { line-height: 1.75; letter-spacing: .01em; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 750; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.028em; color: var(--ink); }
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3 { font-weight: 700; letter-spacing: .01em; line-height: 1.32; }
h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-family: var(--f-body); font-weight: 650; letter-spacing: 0; }
:lang(zh-Hant) h4 { font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cta-bg); color: var(--cta-fg); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.eyebrow { font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); display: inline-flex; align-items: center; gap: 8px; }
:lang(zh-Hant) .eyebrow { letter-spacing: .12em; font-size: .82rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: var(--fs-md); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--f-mono); font-size: .82em; letter-spacing: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-lg { display: grid; gap: 28px; align-content: start; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.prose { max-width: 68ch; display: grid; gap: 1.05em; }
.prose h2 { font-size: var(--fs-lg); margin-top: .9em; }
.prose h3 { font-size: var(--fs-md); margin-top: .6em; }
.prose ul { padding-left: 1.2em; display: grid; gap: .4em; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 620; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn-primary:hover { transform: translateY(-1px); background: #097064; box-shadow: 0 10px 22px -10px rgba(11,133,119,.55); }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-teal:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sun { background: var(--sun); color: #0F1B33; }
.btn-sun:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 620; color: var(--teal-ink); text-decoration: none; }
.btn-link .arr { transition: transform .2s ease; }
.btn-link:hover .arr, .btn-link:focus-visible .arr { transform: translateX(4px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); line-height: 1.5; }
.chip-teal { background: var(--teal-soft); border-color: transparent; color: var(--teal-ink); }
.chip-promo { background: #FFF1E0; border-color: transparent; color: #8A4B08; }
.form-alert.ok { background: var(--teal-soft); border-left: 4px solid var(--teal); }
.chip-sun { background: var(--sun-soft); border-color: transparent; color: var(--ink); }
.chip svg { width: 13px; height: 13px; }
.tag-sample { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 4px; padding: 1px 6px; }
.pending { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink); background: var(--sun-soft); border-radius: 4px; padding: 2px 8px; letter-spacing: .02em; }
.pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }

/* ---------- prototype notice & header ---------- */
.notice-bar { background: var(--sun-soft); color: var(--ink); font-size: var(--fs-xs); }
.notice-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-block: 7px; align-items: center; }
.notice-bar a { font-weight: 650; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 32px; height: 32px; color: #14284A; }
.brand-name { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.brand-name small { font-family: var(--f-body); font-size: .78rem; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: .08em; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; }
.main-nav a { display: block; white-space: nowrap; padding: 8px 8px; border-radius: 8px; text-decoration: none; font-size: .86rem; font-weight: 560; color: var(--ink-2); position: relative; transition: color .15s, background-color .15s; }
.main-nav a:hover { color: var(--ink); background: var(--paper-2); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-link { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; font-weight: 620; text-decoration: none; transition: border-color .15s, background-color .15s; }
.lang-link:hover { border-color: var(--ink); background: var(--surface); }
.lang-link svg { width: 15px; height: 15px; }
.header-cta { min-height: 40px; padding: 8px 16px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.menu-btn .bars { width: 18px; height: 12px; position: relative; }
.menu-btn .bars span { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.menu-btn .bars span:nth-child(1) { top: 0; } .menu-btn .bars span:nth-child(2) { top: 5px; } .menu-btn .bars span:nth-child(3) { top: 10px; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.mobile-panel { display: none; }
@media (min-width: 1150px) and (max-width: 1559px) {
  html:lang(en) .site-header .wrap { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 10px; }
  html:lang(en) .main-nav { order: 3; width: 100%; margin-left: 0; border-top: 1px solid var(--line); padding-block: 4px; }
  html:lang(en) .main-nav ul { gap: 6px; margin-left: -8px; }
  html:lang(en) .header-actions { margin-left: auto; }
}
@media (max-width: 1149px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .mobile-panel { display: block; position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49; background: var(--paper); overflow-y: auto; padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
  .mobile-panel.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease; }
  .mobile-panel ul { list-style: none; display: grid; }
  .mobile-panel li a { display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.12rem; font-weight: 600; }
  .mobile-panel li a[aria-current="page"] { color: var(--teal-ink); }
  .mobile-panel .mp-actions { display: grid; gap: 10px; margin-top: 22px; }
  .mobile-panel .mp-actions .btn { width: 100%; }
}
@media (max-width: 420px) { .brand-name small { display: none; } .lang-link { padding: 6px 10px; } }
body.menu-open { overflow: hidden; }

/* ---------- breadcrumbs / page head ---------- */
.crumbs { font-size: var(--fs-sm); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { padding-block: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head .grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); margin-top: 14px; }
.page-head .lede { margin-top: 14px; }
.page-head .ill { width: 100%; max-width: 250px; justify-self: end; }
@media (max-width: 760px) {
  .page-head .grid { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: start; }
  .page-head .grid > .ill { grid-row: 1; grid-column: 2; max-width: 96px; margin-top: 28px; }
  .page-head .grid > div:first-child { grid-column: 1 / -1; grid-row: 1; padding-right: 100px; }
}

/* ---------- illustration motion ---------- */
.ill { display: block; height: auto; overflow: visible; }
.ill g[class] { transform-box: fill-box; transform-origin: center bottom; }
.ill .enter-l { animation: enterL .8s cubic-bezier(.2,.8,.2,1) .15s both; }
.ill .enter-r { animation: enterR .8s cubic-bezier(.2,.8,.2,1) .3s both; }
.ill .pop { animation: pop .5s cubic-bezier(.3,1.5,.5,1) .75s both; transform-origin: center; }
.ill .pop2 { animation: pop .5s cubic-bezier(.3,1.5,.5,1) .95s both; transform-origin: center; }
.ill .pop3 { animation: pop .5s cubic-bezier(.3,1.5,.5,1) 1.1s both; transform-origin: center; }
.ill .draw { stroke-dashoffset: 0; animation: dash 1.4s ease .4s both; }
@keyframes enterL { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes enterR { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes dash { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* reveal on scroll (applied only by JS to below-the-fold blocks) */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- HOME: hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 5vw, 64px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 24px 40px; align-items: end; }
.hero h1 { font-size: clamp(2.15rem, 1.3rem + 3.3vw, 3.6rem); max-width: 19ch; margin-top: 16px; }
:lang(zh-Hant) .hero h1 { max-width: 14em; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); }
.hero .lede { margin-top: 18px; }
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; } .hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-ill { max-width: 330px; justify-self: end; width: 100%; }
.hero::before { content: ""; position: absolute; right: max(0px, calc(50% - 640px)); top: 20px; width: min(46vw, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #E5F5F2 0%, rgba(229,245,242,0) 62%), radial-gradient(circle at 70% 65%, #FFF5D9 0%, rgba(255,245,217,0) 55%); z-index: -1; pointer-events: none; }
.hero { isolation: isolate; overflow: hidden; }
.finder { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 18px; display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; gap: 16px; align-items: end; animation: rise .7s cubic-bezier(.2,.8,.2,1) .2s both; }
.finder label.flabel, .finder .flabel { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
:lang(zh-Hant) .finder .flabel { letter-spacing: .1em; }
.finder select { width: 100%; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-size: .92rem; font-weight: 580; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; background: var(--paper); }
.seg label:hover { border-color: var(--line-2); }
.seg input:checked + label { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
.seg input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }
.finder .btn { min-height: 52px; padding-inline: 26px; font-size: 1rem; }
.finder-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: var(--fs-sm); color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
.finder-foot a.chip { text-decoration: none; transition: border-color .15s, background-color .15s; }
.finder-foot a.chip:hover { border-color: var(--teal); color: var(--teal-ink); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 118px; align-items: start; gap: 18px 12px; }
  .hero-ill { max-width: 128px; margin-top: 30px; }
  .finder { grid-template-columns: 1fr; padding: 16px; }
  .finder .btn { width: 100%; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px 4px; }
  .seg::-webkit-scrollbar { display: none; }
  .seg label { white-space: nowrap; }
}
@media (max-width: 520px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ill { position: absolute; right: var(--gutter); top: 18px; max-width: 92px; margin: 0; }
  .hero-copy .eyebrow { max-width: calc(100% - 100px); }
  .hero h1 { margin-top: 28px; }
}

/* ---------- forms ---------- */
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 120px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .flabel, fieldset.field > legend { font-weight: 620; font-size: .95rem; padding: 0; }
.field .hint { font-size: var(--fs-sm); color: var(--muted); }
.field .err { font-size: var(--fs-sm); color: var(--danger); font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; font-size: .92rem; cursor: pointer; transition: all .15s; background: var(--surface); }
.check span::before { content: ""; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); flex: none; transition: all .15s; background: var(--paper) center/11px no-repeat; }
.check input[type="radio"] + span::before { border-radius: 50%; }
.check input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
.check input:checked + span::before { background-color: var(--teal); border-color: var(--teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--teal); }
.form-alert { border-radius: var(--r); padding: 14px 16px; font-size: var(--fs-sm); display: grid; gap: 6px; }
.form-alert.warn { background: var(--sun-soft); }
.form-alert.error { background: var(--danger-soft); color: var(--ink); border-left: 4px solid var(--danger); }
.form-alert strong { font-weight: 700; }

/* ---------- home: vetting split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; gap: 28px; } .split.rev > :first-child { order: 0; } }
.split-intro h2 { margin-top: 14px; }
.split-intro .lede { margin-top: 14px; font-size: 1.06rem; }
.split-intro .ill { max-width: 230px; margin-top: 28px; }
@media (max-width: 860px) { .split-intro .ill { display: none; } }
.ledger { border-top: 1px solid var(--line); }
.ledger li { list-style: none; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ledger .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); display: grid; place-items: center; }
.ledger .tick svg { width: 16px; height: 16px; }
.ledger .tick.sun { background: var(--sun-soft); color: var(--ink); }
.ledger h4 { font-size: 1.02rem; }
.ledger p { color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.ledger .when { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; white-space: nowrap; padding-top: 3px; }
@media (max-width: 520px) { .ledger li { grid-template-columns: 32px minmax(0, 1fr); } .ledger .when { grid-column: 2; padding: 0; } }
.note-line { font-size: var(--fs-sm); color: var(--muted); margin-top: 16px; display: flex; gap: 8px; }

/* ---------- subject index ---------- */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head h2 { margin-top: 12px; max-width: 22ch; }
:lang(zh-Hant) .sec-head h2 { max-width: 20em; }
.sec-head .lede { max-width: 46ch; font-size: 1rem; }
.subject-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.subject-index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 16px 10px 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .18s ease, padding .18s ease; border-radius: 0; }
.subject-index a:hover, .subject-index a:focus-visible { background: var(--teal-soft); padding-left: 14px; }
.subject-index .nm { font-weight: 640; font-size: 1.05rem; }
.subject-index .cd { grid-column: 1; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.subject-index .arr { grid-row: 1 / 3; grid-column: 2; color: var(--teal-ink); transition: transform .2s ease; }
.subject-index a:hover .arr { transform: translateX(4px); }
.subject-index a.feature { border-radius: 10px; background: var(--sun-soft); padding-left: 14px; }
.subject-index a.feature:hover { background: var(--sun-soft); }
@media (max-width: 900px) { .subject-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; } }
@media (max-width: 560px) {
  .subject-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .subject-index a { border: 1px solid var(--line); border-radius: 10px; padding: 12px; grid-template-columns: 1fr; background: var(--surface); }
  .subject-index a:hover { padding-left: 12px; }
  .subject-index .arr { display: none; }
  .subject-index .nm { font-size: .95rem; }
  .subject-index .cd { display: none; }
}

/* ---------- navy band (GCSE Chinese etc.) ---------- */
.band-navy { background: linear-gradient(180deg, #F2F8FF 0%, #EEF7F5 100%); color: var(--on-navy); position: relative; overflow: hidden; }
.band-navy h2, .band-navy h3, .band-navy h4 { color: var(--on-navy); }
.band-navy .eyebrow { color: var(--teal-ink); }
.band-navy .lede, .band-navy .muted, .band-navy p { color: var(--on-navy-muted); }
.band-navy .btn-ghost { color: var(--ink); border-color: var(--line-2); background: #fff; }
.band-navy .btn-ghost:hover { border-color: var(--ink); }
.band-navy a:not(.btn) { color: var(--on-navy); }

.zh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.zh-grid h2 { margin-top: 14px; }
.zh-grid .lede { margin-top: 16px; }
.zh-ill { width: 170px; margin-top: 28px; }
.skill-table { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: table; border-collapse: separate; border-spacing: 0; width: 100%; border-collapse: collapse; font-size: .95rem; }
.skill-table caption { text-align: left; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); padding-bottom: 12px; }
.skill-table th, .skill-table td { text-align: left; padding: 13px 12px 13px 0; border-bottom: 1px solid rgba(15,27,51,.08); vertical-align: top; }
.skill-table thead th { white-space: nowrap; font-size: var(--fs-xs); color: var(--on-navy-muted); font-weight: 600; letter-spacing: .04em; }
.skill-table tbody th { color: var(--on-navy); font-weight: 650; width: 28%; }
.skill-table td { color: var(--on-navy-muted); }
.skill-table tr > :first-child { padding-left: 20px; }
.skill-table tr > :last-child { padding-right: 20px; }
.skill-table tbody tr:last-child > * { border-bottom: 0; }
.skill-table .pct { font-family: var(--f-mono); color: var(--teal-ink); font-weight: 600; font-size: .85rem; }
.band-navy .chip { background: #fff; border-color: var(--line-2); color: var(--on-navy); text-decoration: none; min-height: 38px; padding-inline: 14px; font-size: .85rem; transition: background-color .15s, border-color .15s; }
.band-navy .chip:hover { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-ink); }
@media (max-width: 860px) { .zh-grid { grid-template-columns: 1fr; } .zh-ill { position: absolute; right: var(--gutter); top: 40px; width: 96px; margin: 0; } .zh-grid h2 { padding-right: 100px; } }

/* ---------- needs tabs ---------- */
.needs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.needs [role="tablist"] { display: grid; gap: 6px; align-content: start; }
.needs [role="tab"] { text-align: left; background: transparent; border: 0; border-left: 3px solid var(--line); padding: 14px 16px; cursor: pointer; font-size: 1.08rem; font-weight: 620; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; border-radius: 0 10px 10px 0; }
.needs [role="tab"]:hover { color: var(--ink); background: var(--paper-2); }
.needs [role="tab"][aria-selected="true"] { color: var(--ink); border-left-color: var(--teal); background: var(--surface); }
.needs [role="tabpanel"] { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 24px; align-items: center; }
.needs [role="tabpanel"]:not([hidden]) { animation: rise .35s ease both; }
.needs [role="tabpanel"] h3 { font-size: var(--fs-lg); }
.needs [role="tabpanel"] p { color: var(--ink-2); margin-top: 10px; max-width: 52ch; }
.needs [role="tabpanel"] .row { margin-top: 20px; }
@media (max-width: 760px) {
  .needs { grid-template-columns: 1fr; }
  .needs [role="tablist"] { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .needs [role="tablist"]::-webkit-scrollbar { display: none; }
  .needs [role="tab"] { border: 1.5px solid var(--line); border-radius: 999px; white-space: nowrap; padding: 9px 16px; font-size: .95rem; }
  .needs [role="tab"][aria-selected="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
  .needs [role="tabpanel"] { grid-template-columns: 1fr; }
  .needs [role="tabpanel"] .ill { display: none; }
}

/* ---------- tutor cards ---------- */
.avatar { width: 56px; height: 56px; flex: none; display: block; }
.tutor-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 1px 2px rgba(15,27,51,.03); display: grid; gap: 14px; align-content: start; text-decoration: none; position: relative; transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease; }
.tcard:hover, .tcard:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.tcard .who { display: flex; gap: 12px; align-items: center; }
.tcard .nm { font-weight: 680; font-size: 1.05rem; line-height: 1.25; }
.tcard .id { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.tcard .hl { font-size: .93rem; color: var(--ink-2); line-height: 1.45; }
.tcard .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tcard .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.tcard .fee { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tcard .fee small { font-family: var(--f-body); font-size: .75rem; color: var(--muted); font-weight: 500; }
.tcard .stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tcard .stretch { text-decoration: none; font-weight: 640; font-size: var(--fs-sm); color: var(--teal-ink); }
.tcard .tag-sample { position: absolute; top: 14px; right: 14px; }
.tcard > .tag-sample + .who { margin-top: 16px; }
@media (max-width: 1000px) { .tutor-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tutor-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: thin; }
  .tutor-rail .tcard { flex: 0 0 82%; scroll-snap-align: start; }
}
.rail-note { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 20px; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; list-style: none; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 22px; top: 22px; height: 2px; width: calc(100% - 44px); background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.3,.7,.2,1) .2s; }
.steps.in::after, .steps.static::after { transform: scaleX(1); }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.steps .num { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal); color: var(--teal-ink); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; position: relative; z-index: 1; }
.steps h3 { font-size: 1.2rem; margin-top: 8px; }
.steps p { color: var(--muted); font-size: .96rem; }
.steps .ill { width: 150px; margin-top: 6px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 26px; padding-left: 0; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .steps::after { left: 22px; top: 22px; width: 2px; height: calc(100% - 44px); transform: scaleY(0); transform-origin: top; }
  .steps.in::after, .steps.static::after { transform: scaleY(1); }
  .steps li { grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; }
  .steps li > :not(.num) { grid-column: 2; }
  .steps .num { grid-row: 1 / span 3; }
  .steps h3 { margin-top: 8px; }
  .steps .ill { display: none; }
}

/* ---------- locations ---------- */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.loc-online { background: var(--teal-soft); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; text-decoration: none; position: relative; transition: transform .22s ease, box-shadow .22s ease; }
.loc-online:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.loc-online h3 { font-size: var(--fs-xl); color: var(--teal-ink); }
.loc-online .ill { width: 190px; justify-self: end; margin-top: 4px; }
.loc-list { display: grid; align-content: start; border-top: 1px solid var(--line); }
.loc-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .18s ease, background-color .18s; }
.loc-list a:hover, .loc-list a:focus-visible { padding-left: 14px; background: var(--paper-2); }
.loc-list .city { font-family: var(--f-display); font-size: 1.7rem; font-weight: 560; line-height: 1.1; }
:lang(zh-Hant) .loc-list .city { font-weight: 700; font-size: 1.5rem; }
.loc-list .areas { grid-column: 1; font-size: var(--fs-sm); color: var(--muted); }
.loc-list .arr { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--teal-ink); font-size: 1.3rem; transition: transform .2s; }
.loc-list a:hover .arr { transform: translateX(4px); }
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } .loc-online .ill { width: 120px; position: absolute; right: 16px; top: 16px; } .loc-online h3 { padding-right: 120px; } }

/* ---------- resources ---------- */
.res-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.res-feature { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.res-feature .thumb { background: var(--sun-soft); border-radius: var(--r-lg); padding: 24px; display: grid; place-items: center; aspect-ratio: 16 / 9; max-width: 100%; transition: transform .3s ease; overflow: hidden; }
.res-feature:hover .thumb { transform: scale(1.01); }
.res-feature .thumb .ill { width: 46%; }
.res-feature h3 { font-size: var(--fs-xl); }
.res-feature:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.meta .cat { color: var(--teal-ink); text-transform: uppercase; letter-spacing: .08em; }
.res-list { display: grid; align-content: start; }
.res-list a { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.res-list a:first-child { padding-top: 0; }
.res-list h4 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 560; line-height: 1.25; }
:lang(zh-Hant) .res-list h4 { font-weight: 700; font-size: 1.12rem; }
.res-list a:hover h4 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.res-list p { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 860px) { .res-grid { grid-template-columns: 1fr; } .res-feature .thumb { aspect-ratio: 21 / 9; } .res-feature .thumb .ill { width: 30%; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sun-soft); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; }
.cta-band h2 { max-width: 20ch; }
:lang(zh-Hant) .cta-band h2 { max-width: 16em; }
.cta-band p { margin-top: 12px; color: var(--ink-2); max-width: 52ch; }
.cta-band .row { margin-top: 24px; }
.cta-band .ill { max-width: 280px; justify-self: end; width: 100%; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .ill { max-width: 200px; justify-self: start; order: -1; } }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); color: var(--muted); margin-top: clamp(56px, 7vw, 96px); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-sm); }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font-family: var(--f-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--teal-ink); font-weight: 700; margin-bottom: 12px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-brand .brand { color: var(--ink); }
.foot-brand p { margin-top: 14px; max-width: 36ch; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- WhatsApp button & panel ---------- */
.wa-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 20px 10px 14px; border-radius: 999px; border: 0; background: #1B7F5A; color: #fff; font-weight: 650; font-size: .95rem; box-shadow: 0 10px 28px -10px rgba(15, 50, 40, .55); cursor: pointer; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; animation: rise .6s ease 1s both; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(15, 50, 40, .6); }
.wa-fab svg { width: 24px; height: 24px; flex: none; }
@media (min-width: 641px) and (max-width: 1499px) {
  .wa-fab { padding: 14px; min-height: 52px; gap: 0; }
  .wa-fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s ease, margin .25s ease; }
  .wa-fab:hover span, .wa-fab:focus-visible span { max-width: 160px; margin-left: 10px; }
}
.wa-fab:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
@media (max-width: 640px) { .wa-fab { padding: 10px 16px 10px 12px; min-height: 48px; font-size: .88rem; } body { padding-bottom: 76px; } }
.wa-panel { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 20px; display: grid; gap: 12px; opacity: 0; transform: translateY(10px) scale(.98); transform-origin: bottom right; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.wa-panel.open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
.wa-panel h2 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; }
.wa-panel .msg { background: var(--paper-2); border-radius: 10px; padding: 12px; font-size: var(--fs-sm); white-space: pre-wrap; }
.wa-panel .x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 1.3rem; color: var(--muted); }
.wa-panel .x:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- search page ---------- */
.search-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 36px; align-items: start; padding-block: 32px 0; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 6px; padding-bottom: 8px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.filters legend, .filters .flabel { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.filters .check span { min-height: 36px; padding: 6px 12px; font-size: .86rem; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 12px; background: var(--teal-soft); cursor: pointer; }
.toggle span { font-weight: 640; font-size: .92rem; color: var(--teal-ink); }
.toggle input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background-color .2s; flex: none; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked { background: var(--teal); }
.toggle input:checked::after { transform: translateX(18px); }
.range-row { display: flex; justify-content: space-between; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--teal); min-height: 32px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.results-bar .count { font-weight: 650; }
.results-bar .count b { font-family: var(--f-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.results-bar select { width: auto; min-height: 40px; font-size: var(--fs-sm); }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; min-height: 0; }
.active-chips button { border: 1px solid var(--teal); background: var(--teal-soft); color: var(--teal-ink); border-radius: 999px; padding: 4px 10px 4px 12px; font-size: var(--fs-xs); font-weight: 650; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.active-chips button:hover { background: var(--surface); }
.active-chips .clear { border-color: transparent; background: transparent; text-decoration: underline; }
.results { display: grid; gap: 14px; margin-top: 18px; transition: opacity .18s ease, transform .18s ease; }
.results.updating { opacity: 0; transform: translateY(6px); }
.results .tcard { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 18px; align-items: start; animation: rise .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.results .tcard .who { grid-row: 1 / span 3; }
.results .tcard .avatar { width: 64px; height: 64px; }
.results .tcard .main { display: grid; gap: 8px; min-width: 0; }
.results .tcard .side { display: grid; gap: 10px; justify-items: end; text-align: right; }
.results .tcard .tag-sample { position: static; }
.results .tcard .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--muted); }
.results .tcard .facts span { display: inline-flex; gap: 6px; align-items: center; }
.results .tcard .facts svg { width: 15px; height: 15px; color: var(--teal-ink); }
@media (max-width: 640px) {
  .results .tcard { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .results .tcard .avatar { width: 52px; height: 52px; }
  .results .tcard .who { grid-row: 1; }
  .results .tcard .side { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: start; text-align: left; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
  .results .tcard .side .tag-sample { display: none; }
}
.empty { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; animation: rise .4s ease both; }
.empty h3 { font-size: var(--fs-lg); }
.empty p { color: var(--muted); margin-top: 8px; }
.empty .row { margin-top: 18px; }
@media (max-width: 560px) { .empty { grid-template-columns: 1fr; } .empty .ill { width: 110px; } }
.filter-toggle { display: none; }
.scrim { display: none; }
.drawer-head, .drawer-foot { display: none; }
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .filter-toggle { display: inline-flex; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 70; max-height: 86vh; background: var(--paper); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); padding: 0 var(--gutter) 0; transform: translateY(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s linear .3s; gap: 20px; }
  .filters.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--paper); padding: 16px 0 10px; z-index: 1; border-bottom: 1px solid var(--line); }
  .drawer-head h2 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; }
  .drawer-foot { display: block; position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
  .drawer-foot .btn { width: 100%; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 20, 38, .45); z-index: 65; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
  .scrim.open { opacity: 1; visibility: visible; transition: opacity .25s; }
}

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: 32px; }
.profile-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.profile-card .avatar { width: 88px; height: 88px; }
.profile-card h1 { font-size: 1.9rem; }
.profile-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: var(--fs-sm); margin: 0; }
.profile-card dt { color: var(--muted); }
.profile-card dd { margin: 0; font-weight: 600; }
.profile-card .fee { font-family: var(--f-display); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.profile-card .btn { width: 100%; }
.profile-main { display: grid; gap: 40px; min-width: 0; }
.profile-main section h2 { font-size: var(--fs-lg); margin-bottom: 14px; }
.verify-list { border-top: 1px solid var(--line); }
.verify-list li { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; font-size: .96rem; }
.verify-list .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); display: grid; place-items: center; }
.verify-list .tick svg { width: 14px; height: 14px; }
.verify-list .d { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.verify-list small { display: block; color: var(--muted); }
.exam-box { background: var(--teal-soft); border-radius: var(--r-lg); padding: 22px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; align-items: center; }
.exam-box h3 { font-size: 1.15rem; font-family: var(--f-body); font-weight: 700; color: var(--teal-ink); }
.exam-box p { font-size: .95rem; margin-top: 6px; }
.exam-box .fine { font-size: var(--fs-xs); color: var(--muted); margin-top: 10px; }
.avail { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: var(--fs-sm); }
.avail th { font-weight: 600; color: var(--muted); font-size: var(--fs-xs); text-align: center; padding: 4px; }
.avail th[scope="row"] { text-align: left; }
.avail td { height: 34px; border-radius: 6px; background: var(--paper-2); text-align: center; }
.avail td.on { background: var(--teal); }
.avail td.on::after { content: "✓"; color: #fff; font-size: .8rem; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.dtable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dtable th, .dtable td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line-2); }
@media (max-width: 900px) {
  .profile { grid-template-columns: 1fr; }
  .profile-card { position: static; grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; }
  .profile-card > :not(.pc-head) { grid-column: 1 / -1; }
  .exam-box { grid-template-columns: 1fr; } .exam-box .ill { width: 90px; }
}
.pc-head { display: contents; }
.mobile-book { display: none; }
@media (max-width: 900px) { .mobile-book { display: flex; gap: 8px; position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 30; margin-top: 24px; } .mobile-book .btn { flex: 1; box-shadow: var(--shadow-lg); } }

/* ---------- subject pages ---------- */
.facts-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.facts-band div { padding: 18px 20px 18px 0; display: grid; gap: 4px; }
.facts-band div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts-band dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts-band dd { margin: 0; font-weight: 600; font-size: .98rem; }
@media (max-width: 860px) { .facts-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts-band div + div { border-left: 0; padding-left: 0; } .facts-band div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } .facts-band div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-sm); display: grid; gap: 4px; }
.toc .flabel { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 0 6px 12px; border-left: 2px solid var(--line); transition: color .15s, border-color .15s; }
.toc a:hover, .toc a.active { color: var(--ink); border-left-color: var(--teal); }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; } .toc .flabel { width: 100%; margin: 0; } .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; } }
.content-sections { display: grid; gap: clamp(40px, 5vw, 64px); }
.content-sections > section { display: grid; gap: 16px; scroll-margin-top: calc(var(--header-h) + 20px); }
.content-sections > section > p { max-width: 68ch; color: var(--ink-2); }
.aside-note { border-left: 3px solid var(--sun); padding: 4px 0 4px 18px; color: var(--ink-2); max-width: 66ch; }
.mini-tutors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.group-block + .group-block { margin-top: 48px; }
.group-block h2 { font-size: var(--fs-lg); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sub-rows { display: grid; }
.sub-rows > div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 8px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sub-rows .nm { font-weight: 650; font-size: 1.05rem; }
.sub-rows .nm a { text-decoration: none; }
.sub-rows .nm a:hover { text-decoration: underline; }
@media (max-width: 700px) { .sub-rows > div { grid-template-columns: minmax(0, 1fr) auto; } .sub-rows .cd { grid-column: 1; grid-row: 2; } .sub-rows .act { grid-row: 1 / span 2; grid-column: 2; } }

/* ---------- compare (Chinese page) ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare > div { border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; }
.compare .a { background: var(--teal-soft); }
.compare .b { background: var(--sun-soft); }
.compare h3 { font-size: 1.2rem; font-family: var(--f-body); font-weight: 700; }
.compare ul { padding-left: 1.1em; display: grid; gap: 6px; font-size: .96rem; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.shortcut-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.shortcut { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line-2); text-decoration: none; font-weight: 620; background: var(--surface); transition: border-color .15s, transform .15s, background-color .15s; }
.shortcut:hover { border-color: var(--teal); transform: translateY(-2px); }
.shortcut .n { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); font-weight: 500; }

/* ---------- matching stepper & request form ---------- */
.stepper { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.stepper-nav { display: grid; gap: 4px; list-style: none; }
.stepper-nav button { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; background: transparent; border: 0; border-radius: 12px; padding: 12px; cursor: pointer; transition: background-color .2s; }
.stepper-nav button:hover { background: var(--paper-2); }
.stepper-nav .n { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: .9rem; transition: all .25s; }
.stepper-nav .t { font-weight: 620; }
.stepper-nav button[aria-current="step"] { background: var(--surface); box-shadow: var(--shadow); }
.stepper-nav button[aria-current="step"] .n, .stepper-nav button.done .n { background: var(--teal); border-color: var(--teal); color: #fff; }
.stepper-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 24px; min-height: 280px; }
.stepper-panel .body { display: grid; gap: 12px; align-content: start; }
.stepper-panel .body ul { padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); }
.stepper-panel .body:not([hidden]) { animation: rise .35s ease both; }
.progress { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--teal); border-radius: inherit; width: 0; transition: width .5s cubic-bezier(.3,.7,.2,1); }
.stepper-ctrl { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 760px) { .stepper { grid-template-columns: 1fr; } .stepper-nav { display: flex; overflow-x: auto; gap: 6px; } .stepper-nav button { grid-template-columns: 34px; padding: 6px; } .stepper-nav .t { display: none; } .stepper-panel { grid-template-columns: 1fr; } .stepper-panel .ill { display: none; } }
.req-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.req-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; }
.req-form .form-head { display: grid; gap: 12px; }
.req-form .form-head .row { justify-content: space-between; }
.req-step { display: grid; gap: 22px; border: 0; padding: 0; margin: 0; min-width: 0; }
.req-step legend { font-family: var(--f-display); font-size: var(--fs-lg); font-weight: 560; padding: 0; margin-bottom: 4px; }
:lang(zh-Hant) .req-step legend { font-weight: 700; }
.req-step:not([hidden]) { animation: rise .35s ease both; }
.req-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.req-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.req-side .box { border-radius: var(--r-lg); padding: 20px; background: var(--paper-2); display: grid; gap: 10px; font-size: var(--fs-sm); }
.req-side .box h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; }
.summary dl { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
@media (max-width: 900px) { .req-shell { grid-template-columns: 1fr; } .req-side { position: static; } }

/* ---------- vetting timeline (become a tutor) ---------- */
.vet-line { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 14px; }
.vet-line li { position: relative; padding: 0 0 28px 30px; display: grid; gap: 4px; }
.vet-line li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal); }
.vet-line li.key::before { background: var(--sun); border-color: var(--sun); }
.vet-line h3 { font-size: 1.1rem; font-family: var(--f-body); font-weight: 700; }
.vet-line p { color: var(--muted); font-size: .96rem; max-width: 60ch; }

/* ---------- blog / article ---------- */
.cat-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; transition: all .15s; white-space: nowrap; }
.cat-nav a:hover { border-color: var(--ink); }
.cat-nav a[aria-current="page"] { background: var(--cta-bg); color: var(--cta-fg); border-color: transparent; }
.post-list { display: grid; }
.post-list a { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-list .meta { grid-row: 1 / span 2; flex-direction: column; gap: 4px; padding-top: 6px; }
.post-list h3 { font-size: 1.5rem; }
.post-list a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.post-list p { color: var(--muted); max-width: 64ch; }
@media (max-width: 640px) { .post-list a { grid-template-columns: 1fr; } .post-list .meta { grid-row: auto; flex-direction: row; padding: 0; } .post-list h3 { font-size: 1.25rem; } }
.article-head { padding-block: clamp(28px, 4vw, 56px) 32px; }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); max-width: 22ch; margin-top: 16px; }
:lang(zh-Hant) .article-head h1 { max-width: 18em; }
.article-head .dek { font-size: 1.2rem; color: var(--ink-2); max-width: 58ch; margin-top: 16px; font-family: var(--f-display); }
:lang(zh-Hant) .article-head .dek { font-family: var(--f-body); font-size: 1.1rem; }
.article-head .meta { margin-top: 20px; }
.article-body { display: grid; grid-template-columns: 200px minmax(0, 68ch) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.article-body .toc { grid-column: 1; }
.article-body .prose { grid-column: 2; font-size: 1.08rem; line-height: 1.75; }
:lang(zh-Hant) .article-body .prose { line-height: 1.9; }
.article-body .prose h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.pull { font-family: var(--f-display); font-size: 1.35rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.4; color: var(--ink); border-left: 4px solid var(--teal); background: var(--teal-soft); border-radius: 0 var(--r) var(--r) 0; padding: 18px 22px; margin: 12px 0; }
:lang(zh-Hant) .pull { font-style: normal; font-weight: 600; font-size: 1.25rem; }
.inline-cta { background: var(--teal-soft); border-radius: var(--r-lg); padding: 22px; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 16px; }
.inline-cta p { font-size: .98rem; }
.inline-cta .row { margin-top: 12px; }
@media (max-width: 1000px) { .article-body { grid-template-columns: minmax(0, 1fr); } .article-body .toc, .article-body .prose { grid-column: 1; } }
@media (max-width: 520px) { .inline-cta { grid-template-columns: 1fr; } .inline-cta .ill { width: 80px; } }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: var(--fs-lg); margin-bottom: 8px; }
details.qa { border-bottom: 1px solid var(--line); }
details.qa summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 640; font-size: 1.05rem; position: relative; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
details.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.qa .ans { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }
details.qa[open] .ans { animation: rise .3s ease both; }

/* ---------- misc ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.kv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 650; }
.kv dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .kv > div { grid-template-columns: 1fr; gap: 4px; } }
.callout { border-radius: var(--r-lg); padding: 22px 24px; background: var(--paper-2); display: grid; gap: 8px; }
.callout.teal { background: var(--teal-soft); }
.callout.sun { background: var(--sun-soft); }
.callout h3 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; }
.admin-table td .st { font-size: var(--fs-xs); font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--sun-soft); }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code { font-family: var(--f-mono); font-size: .85rem; background: var(--paper-2); padding: 6px 10px; border-radius: 6px; word-break: break-all; }
.gateway { min-height: 70vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
