/* Global Immigrate 環傲移民 — site styles */
:root {
  --ink: #1E2226;
  --brand: #01334A;      /* Global Immigrate logo blue — change here to update the whole site */
  --brand-dark: #00233A;
  --text: #4C5259;
  --muted: #60666E;
  --line: #DCDFE3;
  --line-soft: #ECEEF0;
  --soft: #F4F5F6;
  --dark: #3A3F45;
  --white: #FFFFFF;
  --serif: 'Noto Serif TC', 'Songti TC', serif;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 120px);
  --section: clamp(72px, 9vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
button { font: inherit; color: inherit; }
/* Focus outlines only for keyboard users (html.kbd is set by main.js); taps and clicks never show a box */
:focus-visible { outline: none; }
html.kbd :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); }
.h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); font-weight: 600; line-height: 1.35; }
.lead { font-size: 16px; line-height: 1.95; color: var(--text); }
.muted { color: var(--muted); }
.text-link { display: inline-block; font-size: 15px; font-weight: 500; color: var(--brand); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-link:hover { color: var(--brand-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; font-size: 15px; font-weight: 500; background: var(--brand); color: var(--white); border: 1px solid var(--brand); cursor: pointer; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--soft); color: var(--ink); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: #E8EEF1; color: var(--brand-dark); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }

/* Image slots: set --img on the element; data-label shows until a real photo is added */
.media { position: relative; background-color: var(--line); background-image: var(--img, none); background-position: center; background-size: cover; background-repeat: no-repeat; }
.media[data-label]::after { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: 12px; color: #6B7178; }
.media--dark { background-color: var(--dark); }
.media--dark[data-label]::after { color: #A3A8AE; align-items: flex-start; justify-content: flex-end; padding: 20px 24px; }

/* ---------- Header ---------- */
.topbar { border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.topbar .wrap { height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar nav { display: flex; align-items: center; }
.topbar nav > * { padding: 0 14px; line-height: 1; font-size: 13px; }
.topbar nav > * + * { border-left: 1px solid var(--line); }
.topbar nav > :last-child { padding-right: 0; }
.topbar .linklike { font-size: 13px; line-height: 1; }
.topbar__lang b { font-weight: 500; color: var(--ink); }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--ink); }

.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line-soft); }
.header > .wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; line-height: 1.2; color: var(--brand); }
.logo img { width: 56px; height: auto; }
.logo__text { display: flex; flex-direction: column; gap: 4px; }
.logo__en { font-family: 'Cormorant Garamond', var(--serif); font-size: 16px; font-weight: 600; letter-spacing: 3px; }
.logo__zh { font-size: 17px; font-weight: 500; letter-spacing: 5px; }
.logo:hover { color: var(--brand); }

.nav { display: flex; gap: 36px; height: 100%; }
.nav__item { position: static; display: flex; }
.nav__trigger { display: flex; align-items: center; gap: 6px; height: 88px; padding: 0; background: none; border: 0; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; }
.nav__trigger svg { transition: transform .2s; }
.nav__link:hover { color: var(--ink); border-bottom-color: var(--brand); }
.drawer__link { display: block; padding: 18px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.nav__trigger[aria-expanded="true"], .nav__trigger.is-current { color: var(--ink); border-bottom-color: var(--brand); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.header__cta { min-height: 46px; padding: 0 22px; }
.menu-toggle { display: none; }

/* Mega panel & dropdowns */
.panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line-soft); box-shadow: 0 20px 40px rgba(30, 34, 38, .16); }
.panel[hidden] { display: none; }
.mega { display: flex; gap: 56px; padding-top: 44px; padding-bottom: 52px; }
.mega__tabs { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.mega__label { font-size: 13px; color: var(--muted); padding: 0 0 12px 20px; }
.mega__tab { text-align: left; padding: 14px 18px; background: none; border: 0; border-left: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.mega__tab[aria-selected="true"] { background: #E8EEF1; color: var(--brand); border-left-color: var(--brand); }
.mega__all { margin: 16px 0 0 20px; font-size: 14px; font-weight: 500; text-decoration: underline; }
.mega__body { flex: 1; min-width: 0; }
.mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.mega__cols[hidden] { display: none; }
.mega__col h3 { font-size: 13px; font-weight: 500; color: var(--muted); padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.mega__col ul { list-style: none; margin: 0 -12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mega__col a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.mega__col a:hover { background: var(--soft); color: var(--ink); }
.mega__col a:hover b { color: var(--brand); text-decoration: underline; }
.mega__col a b { font-size: 15px; font-weight: 500; }
.mega__col a small { font-size: 13px; color: var(--muted); }
.mega__aside { width: 300px; flex-shrink: 0; background: var(--soft); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.mega__aside strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.mega__aside p { font-size: 14px; line-height: 1.8; color: var(--text); }
.dropdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 36px; padding-bottom: 40px; }
.dropdown a { display: flex; flex-direction: column; gap: 4px; padding: 12px; margin: -12px; }
.dropdown a:hover { background: var(--soft); color: var(--ink); }
.dropdown a b { font-size: 15px; font-weight: 500; }
.dropdown a small { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--white); overflow-y: auto; padding: 0 20px 120px; }
.drawer[hidden] { display: none; }
.drawer__head { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.drawer details { border-bottom: 1px solid var(--line-soft); }
.drawer summary { list-style: none; padding: 18px 0; font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: '+'; color: var(--muted); }
.drawer details[open] summary::after { content: '−'; }
.drawer h4 { margin: 8px 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.drawer ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.drawer .btn { width: 100%; margin-top: 24px; }

/* ---------- Home ---------- */
.hero { color: var(--white); min-height: 640px; display: flex; align-items: center; }
.hero .wrap { width: 100%; display: flex; flex-direction: column; gap: 22px; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 56px); font-weight: 600; line-height: 1.3; max-width: 780px; }
.hero p { font-size: clamp(17px, 1.6vw, 20px); color: #E4E6E9; }
.hero .btn { align-self: flex-start; margin-top: 12px; }

.split { display: flex; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split > .media { width: 560px; max-width: 46%; aspect-ratio: 560 / 460; flex-shrink: 0; }
.split__text { flex: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.awards { display: flex; gap: clamp(40px, 7vw, 96px); align-items: flex-start; }
.awards__intro { width: 560px; max-width: 46%; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.awards__intro .media { aspect-ratio: 560 / 300; }
.awards__list { flex: 1; list-style: none; margin: 76px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.awards__list li { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; }
.awards__list b { font-size: 17px; font-weight: 500; }
.awards__list span { font-size: 14px; color: var(--muted); text-align: right; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 64px; margin: 0; }
.stats div { padding: 32px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stats dt { order: 2; font-size: 14px; color: var(--muted); }
.stats dd { order: 1; margin: 0; font-family: var(--serif); font-size: clamp(34px, 3.4vw, 44px); font-weight: 600; line-height: 1.2; }

.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 56px; }
.program { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.program__type { font-size: 13px; color: var(--muted); }
.program h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.4; }
.program p { font-size: 15px; line-height: 1.85; color: var(--text); flex: 1; }
.program > a:last-child { font-size: 14px; font-weight: 500; color: var(--brand); }

.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15px; }
.compare th { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 16px 14px 0; }
.compare td { padding: 18px 16px 18px 0; border-top: 1px solid var(--line-soft); }
.compare tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.compare td:first-child { font-weight: 500; }
.compare td:nth-child(2), .compare td:last-child { color: var(--text); }
.note { font-size: 13px; color: var(--muted); }

.group { background: var(--soft); margin-top: var(--section); padding: clamp(72px, 8vw, 112px) 0; }
.group__head { display: flex; gap: clamp(40px, 7vw, 96px); align-items: flex-end; margin-bottom: 56px; }
.group__head > div { width: 560px; max-width: 46%; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.group__kicker { font-size: 13px; color: var(--brand); letter-spacing: 1px; }
.group__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
.group__grid article { border-top: 1px solid #C8CCD1; padding-top: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.group__grid h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.group__grid p { font-size: 15px; line-height: 1.85; color: var(--text); flex: 1; }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; margin-top: 44px; }
.quotes figure { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.quotes blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.9; }
.quotes figcaption { font-size: 14px; color: var(--muted); }

.faq-plain { border-bottom: 1px solid var(--line); }
.faq-plain > div { border-top: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.faq-plain h3 { font-size: 18px; font-weight: 500; line-height: 1.6; }
.faq-plain p { font-size: 15px; line-height: 1.9; color: var(--text); }

.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.news a { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.news time, .news small { font-size: 13px; color: var(--muted); }
.news b { font-size: 19px; font-weight: 500; line-height: 1.6; }
.news span { font-size: 14px; color: var(--brand); }

.cta { margin-top: var(--section); background: var(--soft); display: flex; align-items: stretch; }
.cta__text { flex: 1; padding: clamp(64px, 7vw, 100px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.cta__actions a:not(.btn) { font-size: 15px; font-weight: 500; }
.cta > .media { width: 42%; min-height: 480px; }

.directory { padding-top: 96px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; border-bottom: 1px solid var(--line); }
.directory h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.directory ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text); }
.offices { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-bottom: 1px solid var(--line); }
.offices address { font-style: normal; font-size: 13px; line-height: 1.7; color: var(--text); }
.offices b { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.footer { padding-top: 32px; padding-bottom: 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer p { max-width: 640px; line-height: 1.7; }

/* Floating contact */
.float-contact { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; gap: 8px; }
.float-contact a { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; background: var(--white); border: 1px solid #C8CCD1; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(30, 34, 38, .12); }
.float-contact a.is-primary { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* ---------- Programme page ---------- */
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; height: 48px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumbs li + li::before { content: '/'; margin-right: 10px; }
.crumbs a { color: var(--muted); }
.prog-hero { min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px 0; color: var(--white); }
.prog-hero > .wrap { position: relative; z-index: 1; width: 100%; }
.prog-hero__text { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prog-hero .kicker { font-size: 14px; color: #C8CCD1; }
.prog-hero h1 { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 56px); font-weight: 600; line-height: 1.2; }
.prog-hero p { font-size: 19px; line-height: 1.7; color: #E4E6E9; }
.tabs { border-bottom: 1px solid var(--line-soft); display: flex; gap: 40px; overflow-x: auto; }
.tabs a { height: 64px; display: flex; align-items: center; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--text); border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

.overview { display: flex; gap: 80px; }
.overview__text { flex: 1; display: flex; flex-direction: column; gap: 22px; }
.overview__actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.tiles { width: 560px; flex-shrink: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tiles div { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tiles b { font-size: 16px; }
.tiles span { font-size: 14px; line-height: 1.7; color: var(--text); }

.summary { border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 36px 40px; display: flex; flex-direction: column; gap: 16px; }
.summary h2 { font-size: 14px; font-weight: 700; color: var(--brand); }
.summary p { font-size: 17px; line-height: 1.9; }
.summary footer { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.summary footer a { text-decoration: underline; }

.band { background: var(--soft); padding: 88px 0; margin-top: var(--section); }
.rowsec { display: flex; gap: 80px; }
.rowsec > h2 { width: 360px; flex-shrink: 0; }
.rowsec > div { flex: 1; min-width: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; font-size: 16px; line-height: 1.7; }
.ticks li { display: flex; gap: 12px; }
.ticks svg { flex-shrink: 0; margin-top: 4px; }
.bullets { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.8; color: var(--text); }
.bullets li { padding-left: 20px; position: relative; }
.bullets li::before { content: ''; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; background: var(--ink); }

.brochure { border: 1px solid var(--line); padding: 40px; display: flex; gap: 40px; }
.brochure__cover { width: 170px; flex-shrink: 0; background: var(--brand); color: var(--white); padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 8px 8px 0 var(--line); min-height: 230px; }
.brochure__cover small { font-size: 10px; color: #C8CCD1; letter-spacing: 1px; }
.brochure__cover strong { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.brochure__body { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.brochure__body h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.brochure__done { background: var(--soft); padding: 22px 24px; display: flex; gap: 14px; }
.brochure__done[hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field select { height: 48px; border: 1px solid #C8CCD1; background: var(--white); padding: 0 12px; font-size: 15px; font-family: inherit; color: var(--ink); border-radius: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.span-2 { grid-column: span 2; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.7; color: var(--text); }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { border-top: 2px solid var(--brand); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--brand); }
.steps b { font-size: 18px; }
.steps span { font-size: 14px; line-height: 1.8; color: var(--text); }

.review { background: var(--ink); color: var(--white); margin-top: var(--section); padding: 88px 0; }
.review__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #454A50; align-self: flex-start; }
.review__grid p { background: var(--ink); padding: 28px; font-size: 16px; }
.review .intro { width: 440px; flex: none; display: flex; flex-direction: column; gap: 18px; }
.review .intro p { color: #C8CCD1; font-size: 15px; line-height: 1.9; }

.faq { border-top: 1px solid #C8CCD1; }
.faq details { border-bottom: 1px solid #C8CCD1; }
.faq summary { list-style: none; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; font-size: 17px; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 48px 26px 0; font-size: 15px; line-height: 1.9; color: var(--text); }
.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.sources a { text-decoration: underline; }
.group-note { background: var(--soft); padding: 48px 56px; display: flex; gap: 64px; align-items: center; }
.group-note > div { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.group-note strong { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.group-note p { font-size: 15px; line-height: 1.85; color: var(--text); }
.contact { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 96px 0; margin-top: var(--section); }
.contact .wrap { display: flex; gap: 80px; }
.contact__intro { width: 480px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; }
.contact__intro .media { aspect-ratio: 480 / 320; }
.contact form { flex: 1; align-content: start; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .header__cta, .topbar__group { display: none; }
  .menu-toggle { display: inline-flex; }
  .header > .wrap { height: 64px; }
  .logo img { width: 44px; }
  .logo__en { font-size: 13px; letter-spacing: 2px; }
  .logo__zh { font-size: 15px; letter-spacing: 4px; }
  .mega__cols, .dropdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { width: 440px; }
}
@media (max-width: 900px) {
  .split, .awards, .group__head, .overview, .rowsec, .contact .wrap, .review .rowsec { flex-direction: column; align-items: stretch; gap: 32px; }
  .split--reverse { flex-direction: column-reverse; }
  .split > .media, .awards__intro, .group__head > div, .tiles, .rowsec > h2, .review .intro, .contact__intro { width: 100%; max-width: none; }
  .awards__list { margin-top: 0; }
  .stats, .programs, .quotes, .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { flex-direction: column; }
  .cta > .media { width: 100%; min-height: 280px; }
  .faq-plain > div { grid-template-columns: 1fr; gap: 12px; }
  .prog-hero { padding: 40px 0; min-height: 420px; }
  .brochure { flex-direction: column; }
  .group-note { flex-direction: column; align-items: flex-start; padding: 36px 28px; gap: 24px; }
}
@media (max-width: 600px) {
  .topbar { display: none; }
  .stats, .programs, .quotes, .news, .group__grid, .ticks, .steps, .grid-3, .grid-2, .tiles, .review__grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offices { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .awards__list li { flex-direction: column; gap: 4px; }
  .awards__list span { text-align: left; }
  .brochure { padding: 28px 20px; }
  .float-contact { left: 0; right: 0; bottom: 0; padding: 10px 16px 18px; background: var(--white); border-top: 1px solid var(--line); gap: 8px; }
  .float-contact a { flex: 1; justify-content: center; box-shadow: none; padding: 0 8px; }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Hero photo darkening (keeps white text readable on any photo) */
.hero, .prog-hero { position: relative; isolation: isolate; }
.hero::before, .prog-hero::before { content: ''; position: absolute; inset: 0; background: rgba(30, 34, 38, .45); z-index: 0; }
.hero[data-label]::after, .prog-hero[data-label]::after { z-index: 0; }
.cta form { margin-top: 8px; }
.cta__text > .brochure__done { max-width: 640px; }


/* Buttons that look like links (top bar) */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.linklike:hover { color: var(--ink); }
.float-contact button { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid var(--brand); background: var(--brand); color: var(--white); font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(30, 34, 38, .12); cursor: pointer; }
@media (max-width: 600px) { .float-contact button { flex: 1; justify-content: center; box-shadow: none; padding: 0 8px; } }

/* Pop-up forms */
.modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; border: 0; padding: 36px 40px 40px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(30, 34, 38, .28); }
.modal::backdrop { background: rgba(30, 34, 38, .5); }
.modal[open] { display: flex; flex-direction: column; gap: 18px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.modal__head h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.modal__head .icon-btn { margin-right: -10px; }
@media (max-width: 600px) { .modal { padding: 24px 20px 28px; } }

/* Separate pages */
.page-head { padding-top: 48px; display: flex; flex-direction: column; gap: 18px; }
.page-head > * { max-width: 860px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); font-weight: 600; line-height: 1.25; }
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 80px; align-items: start; }
.contact-page .h2 { margin-bottom: 28px; }
.channels { margin: 0; border-bottom: 1px solid var(--line); }
.channels div { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
.channels dt { font-size: 14px; color: var(--muted); }
.channels dd { margin: 0; font-size: 16px; font-weight: 500; text-align: right; }
.channels a { color: var(--brand); }
.office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.office-card { display: flex; flex-direction: column; gap: 18px; }
.office-card .media { aspect-ratio: 4 / 3; }
.office-card h3 { font-size: 18px; margin-bottom: 6px; }
.office-card address { font-style: normal; font-size: 15px; line-height: 1.8; color: var(--text); }
@media (max-width: 900px) { .contact-page, .office-grid { grid-template-columns: 1fr; gap: 40px; } }

/* EB-5 page additions */
.field textarea { border: 1px solid #C8CCD1; padding: 12px; font-size: 15px; font-family: inherit; color: var(--ink); border-radius: 0; resize: vertical; }
.trust { font-size: 13px; color: var(--muted); }
.rows { margin: 0; border-bottom: 1px solid var(--line); }
.rows > div { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
.rows dt { font-size: 16px; font-weight: 700; }
.rows dd { margin: 0; font-size: 15px; line-height: 1.85; color: var(--text); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.two-col > div { border-top: 2px solid var(--brand); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.two-col h3 { font-size: 18px; }
.two-col p { font-size: 15px; line-height: 1.85; color: var(--text); }
.steps__time { font-size: 13px; color: var(--brand); font-weight: 500; }
.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.ages > div { background: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ages b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brand); }
.ages span { font-size: 14px; line-height: 1.75; color: var(--text); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.case { border-top: 2px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.case__meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.case__meta dt { font-size: 12px; color: var(--muted); }
.case__meta dd { margin: 0; font-size: 14px; font-weight: 500; }
.case blockquote { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.85; }
.case__outcome { font-size: 14px; line-height: 1.75; color: var(--text); background: var(--soft); padding: 14px 16px; }
.case__who { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .rows > div { grid-template-columns: 1fr; gap: 6px; }
  .two-col, .cases { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .ages { grid-template-columns: 1fr; } }
.overview__actions { align-items: center; }

/* Programme pages: status notice, benefits image, gallery */
.notice { margin-top: 32px; padding: 18px 22px; border-left: 3px solid var(--brand); background: #E8EEF1; font-size: 15px; line-height: 1.8; }
.band .split > .media { aspect-ratio: 560 / 420; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery__item { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery__item .media { aspect-ratio: 4 / 3; }
.gallery__item figcaption { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.btn--line { background: var(--white); color: var(--ink); border-color: #C8CCD1; gap: 8px; }
.btn--line:hover { background: var(--soft); border-color: #C8CCD1; color: var(--ink); }

/* WeChat */
.modal--small { width: min(440px, calc(100vw - 32px)); }
.wechat-qr { width: 220px; height: 220px; align-self: center; background-color: var(--soft); }
.wechat-id { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.wechat-id span { font-size: 13px; color: var(--muted); }
.wechat-id b { font-size: 17px; }
.wechat-id .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.float-contact button.float-wechat { background: var(--white); color: var(--ink); border-color: #C8CCD1; }
.cta-link { font-size: 15px; font-weight: 500; color: var(--ink); }
.channel-btn { font-size: 16px; font-weight: 500; color: var(--brand); text-align: right; }
@media (max-width: 600px) { .float-contact a, .float-contact button { font-size: 13px; } }
.case { position: relative; }
.case__tag { align-self: flex-start; font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; }
.facts th { width: 38%; font-size: 14px; font-weight: 500; color: var(--muted); text-align: left; padding: 16px 16px 16px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.facts td { font-weight: 500; }
.guarantees h3 { color: var(--brand); }
.guarantees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .guarantees { grid-template-columns: 1fr; } }

/* Forms */
.form-error { color: #A12C2C; font-size: 14px; margin: 4px 0 0; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* News index */
.tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.news__summary { font-size: 14px; line-height: 1.8; color: var(--text); }

/* Article pages */
.article { max-width: calc(820px + var(--gutter) * 2); }
.article__head { padding-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.article__head h1 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; line-height: 1.35; }
.article__meta { font-size: 14px; color: var(--muted); }
.article .summary { margin-top: 36px; }
.article__cover { margin: 36px 0 0; }
.article__cover img { width: 100%; height: auto; }
.article__toc { margin-top: 36px; padding: 22px 26px; background: var(--soft); font-size: 15px; }
.article__toc ol { margin: 10px 0 0; padding-left: 22px; line-height: 2; }
.article__toc a { color: var(--brand); }
.article__body { margin-top: 40px; font-size: 17px; line-height: 2; }
.article__body h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.4; margin: 48px 0 16px; scroll-margin-top: 110px; }
.article__body h3 { font-size: 20px; margin: 32px 0 12px; }
.article__body p, .article__body ul, .article__body ol { margin: 0 0 20px; }
.article__body ul, .article__body ol { padding-left: 24px; }
.article__body a { color: var(--brand); text-decoration: underline; }
.article__body blockquote { margin: 24px 0; padding: 8px 0 8px 22px; border-left: 3px solid var(--brand); color: var(--text); }
.article__body img { margin: 24px 0; }
.article__faq, .article__sources { margin-top: 56px; }
.article__faq .h2 { margin-bottom: 20px; }

/* Media coverage */
.media-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.media-strip a { background: var(--white); min-height: 96px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.media-strip b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.media-strip img { max-height: 40px; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .85; }
.media-strip a:hover img { filter: none; opacity: 1; }
.media-strip span { font-size: 12px; color: var(--muted); }
.press-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.press { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.press__logo { max-width: 140px; max-height: 48px; object-fit: contain; }
.press__outlet { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.press small { font-size: 13px; color: var(--muted); }
.press h3 { font-size: 19px; line-height: 1.6; margin: 8px 0; }
.press h3 a:hover { color: var(--brand); text-decoration: underline; }
.press p { font-size: 15px; line-height: 1.85; color: var(--text); }
.press blockquote { margin: 12px 0 0; padding-left: 16px; border-left: 3px solid var(--brand); font-family: var(--serif); }
@media (max-width: 600px) { .press { grid-template-columns: 1fr; gap: 12px; } }

/* 獎項及媒體報道 timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; flex: 1; border-left: 2px solid var(--line); }
.tl__item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
.tl__item::before { content: ''; position: absolute; left: -31px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--brand); }
.tl__item--award::before { background: var(--brand); }
.tl__year { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--brand); line-height: 1.4; }
.tl__item small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.tl__item--award small { color: var(--brand); font-weight: 500; }
.tl__item b { font-size: 16px; font-weight: 500; line-height: 1.6; }
.tl__item a:hover { color: var(--brand); text-decoration: underline; }
.awards__intro .lead { margin-top: -8px; }
.awards__intro .text-link { align-self: flex-start; }
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.media--loaded { background-color: transparent; }

/* Floating contact with app icons */
.float-contact { align-items: center; }
.float-contact .fc { width: 52px; height: 52px; min-height: 0; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 22px rgba(30, 34, 38, .18); cursor: pointer; transition: transform .15s; }
.float-contact .fc:hover { transform: translateY(-2px); color: #fff; }
.float-contact .fc svg { width: 28px; height: 28px; }
.float-contact .fc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fc--wa { background: #25D366 !important; }
.fc--line { background: #06C755 !important; }
.fc--wechat { background: #07C160 !important; }
.float-contact button.is-primary { height: 52px; min-height: 52px; border-radius: 26px; padding: 0 22px; }
@media (max-width: 600px) {
  .float-contact { align-items: stretch; }
  .float-contact .fc { width: auto; height: auto; min-height: 56px; border-radius: 8px; flex: 1; flex-direction: column; gap: 3px; box-shadow: none; }
  .float-contact .fc svg { width: 22px; height: 22px; }
  .float-contact .fc span { position: static; width: auto; height: auto; clip: auto; font-size: 11px; }
  .float-contact button.is-primary { flex: 1.4; height: auto; min-height: 56px; border-radius: 8px; }
}
.float-contact .fc--wechat { color: #fff !important; border: 0 !important; }

/* WeChat QR page */
.wechat-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: var(--soft); }
.wechat-card { background: var(--white); max-width: 440px; width: 100%; padding: 40px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; border: 1px solid var(--line); }
.wechat-card h1 { font-family: var(--serif); font-size: 26px; }
.wechat-card p { font-size: 15px; color: var(--text); line-height: 1.8; }
.wechat-card__qr { width: 100%; max-width: 340px; height: auto; }
.wechat-card__tip { font-size: 13px !important; color: var(--muted) !important; }
a.linklike { text-decoration: none; }
/* While a photo is loading, show a plain background instead of placeholder text */
.media[data-fallback]::after { content: none; }

/* Contact method + number in one box */
.combo { display: flex; border: 1px solid #C8CCD1; background: var(--white); min-height: 48px; }
.combo:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.combo select { flex: 0 0 auto; width: auto; border: 0; border-right: 1px solid #C8CCD1; background-color: var(--soft); padding: 0 34px 0 14px; min-height: 46px; font-size: 15px; }
.combo input { flex: 1; min-width: 0; border: 0; padding: 0 14px; min-height: 46px; font-size: 15px; outline: none; }

/* ===== Mobile fixes (audit 2026-09) ===== */
/* Grid children and form controls must be allowed to shrink below their content width */
.grid-2 > *, .grid-3 > *, .field, .combo, .split > *, .contact-page > *, .contact .wrap > * { min-width: 0; }
select, input, textarea { max-width: 100%; }
.field select { width: 100%; text-overflow: ellipsis; }
.combo select { max-width: 42%; }
/* Long emails / IDs wrap instead of pushing the page wider */
.channels dd, .channels a, .channel-btn, .footer address, .office-card, .press h3, .news b { overflow-wrap: anywhere; word-break: break-word; }
/* Floating bar: fit exactly on narrow phones, and never cover the page footer */
@media (max-width: 600px) {
  .float-contact { padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px; box-sizing: border-box; width: 100%; }
  .float-contact .fc, .float-contact button.is-primary { min-width: 0; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 900px) {
  /* 16px inputs stop iPhone auto-zooming when a field is tapped */
  input, select, textarea, .combo select, .combo input { font-size: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  /* Bigger tap targets for list links */
  .directory a, .sources a, .program-list a, .programs a, .tl__item a, .article__toc a, .channels a, .channel-btn { display: inline-block; padding: 6px 0; }
  .text-link { padding: 8px 0; }
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 .span-2 { grid-column: auto; }
  .hero h1, .prog-hero h1 { overflow-wrap: anywhere; }
  table.compare { font-size: 14px; }
}
@media (max-width: 900px) {
  .field input, .field select, .field textarea, .combo select, .combo input, .wechat-card input { font-size: 16px; }
  .drawer ul { gap: 4px; }
  .drawer ul a { display: block; padding: 10px 0; }
}
@media (max-width: 900px) { table.compare a { display: inline-block; padding: 8px 0; } }
@media (max-width: 900px) { .cta__actions a, .cta__actions button, .cta-link { display: inline-flex; align-items: center; min-height: 44px; } }
@media (max-width: 600px) { .combo select { max-width: 52%; padding: 0 26px 0 12px; } }

/* About page: facts row, team */
.stats--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats--6 dd { font-size: 14px; }
@media (max-width: 1100px) { .stats--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stats--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.member { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); }
.member__photo { aspect-ratio: 4 / 5; }
.member__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.member h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.member h3 span { font-family: var(--sans, inherit); font-size: 16px; font-weight: 500; color: var(--muted); }
.member__title { font-size: 14px; font-weight: 500; color: var(--brand); }
.member p { font-size: 15px; line-height: 1.85; color: var(--text); }
.member__tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.member__tags li { font-size: 13px; padding: 3px 10px; background: var(--soft); border: 1px solid var(--line); }
.member__lang { font-size: 13px !important; color: var(--muted) !important; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } .member { display: grid; grid-template-columns: 160px 1fr; } .member__photo { aspect-ratio: auto; min-height: 200px; } }
@media (max-width: 600px) { .member { display: flex; } .member__photo { aspect-ratio: 4 / 3; } }
.section-head--stack { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; margin-bottom: 36px; }
/* Team photos: circular portrait only, no square behind */
.member__photo, .member .member__photo { width: 220px; height: 220px; aspect-ratio: 1 / 1; min-height: 0; border-radius: 50%; margin: 36px auto 4px; background-color: transparent; border: 3px solid #D6B27A; box-sizing: border-box; flex: none; }
.member { align-items: stretch; }
.member__body { text-align: left; }
@media (max-width: 900px) { .member, .member .member__body { display: flex; flex-direction: column; } .member__photo, .member .member__photo { width: 180px; height: 180px; margin: 28px auto 0; } }

/* Sections whose placeholder image was removed collapse to a single readable column */
.split:not(:has(> .media)) { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.office-card:not(:has(.media)) { padding: 28px; border: 1px solid var(--line); background: var(--white); }
.awards__intro:not(:has(.media)) { justify-content: flex-start; }

/* Contact box: the app picker always fits "WhatsApp" / "WeChat" in full; the number field takes the rest */
.combo select, .field .combo select { flex: 0 0 auto; width: 128px; min-width: 128px; max-width: none; text-overflow: clip; padding: 0 30px 0 12px; }
.combo input, .field .combo input { flex: 1 1 auto; min-width: 0; width: auto; }
@media (max-width: 600px) { .combo select, .field .combo select { width: 124px; min-width: 124px; max-width: none; } }

/* Contact box picker: own styling (no browser-specific padding) so "WhatsApp" always fits on every device */
.combo select, .field .combo select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 148px; min-width: 148px; max-width: none; flex: 0 0 148px;
  padding: 0 30px 0 14px; text-overflow: clip; white-space: nowrap; overflow: hidden;
  background-color: var(--soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231E2226' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
  cursor: pointer;
}
@media (max-width: 600px) { .combo select, .field .combo select { width: 140px; min-width: 140px; flex-basis: 140px; } }

/* Tables inside articles and event pages (e.g. 「重點一覽」): framed, compact, fit the reading column */
.article__body .table-scroll { margin: 8px 0 28px; }
.article__body table.compare { min-width: 0; width: 100%; font-size: 15px; border: 1px solid var(--line); border-collapse: collapse; background: var(--white); }
.article__body table.compare th { background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; padding: 12px 18px; text-align: left; }
.article__body table.compare td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.75; }
.article__body table.compare tbody tr:last-child td { border-bottom: 0; }
.article__body table.compare td:first-child { width: 28%; font-weight: 600; color: var(--ink); background: var(--soft); white-space: nowrap; }
.article__body table.compare td:not(:first-child) { color: var(--text); }
/* Wider tables with 3+ columns may scroll inside their own box instead of stretching the page */
.article__body table.compare:has(th:nth-child(3)) { min-width: 560px; }
.article__body table.compare:has(th:nth-child(3)) td:first-child { white-space: normal; }
@media (max-width: 600px) {
  .article__body table.compare { font-size: 14px; }
  .article__body table.compare th { padding: 10px 12px; }
  .article__body table.compare td { padding: 12px; }
  .article__body table.compare td:first-child { width: 34%; white-space: normal; }
}

/* No outline on containers that receive focus programmatically (menu drawer, form "sent" messages) */
.drawer:focus, [tabindex="-1"]:focus { outline: none; }
/* No grey flash when tapping links/buttons on iPhone */
a, button, summary, select, label { -webkit-tap-highlight-color: transparent; }

/* Form fields: a clear highlighted border when tapped, instead of an outline box around the border */
input:focus, select:focus, textarea:focus { outline: none; }
.field input:focus, .field select:focus, .field textarea:focus, .modal input:focus, .modal select:focus, .modal textarea:focus { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.combo:focus-within { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.combo select:focus, .combo input:focus { box-shadow: none; }
.consent input:focus { outline: none; }
html.kbd .consent input:focus-visible, html.kbd .combo select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
dialog:focus, details:focus, summary:focus { outline: none; }
html.kbd summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Breadcrumbs: no fixed height; on phones keep one line and shorten the last item with "…" */
.crumbs ol { height: auto; min-height: 48px; padding: 12px 0; }
@media (max-width: 700px) {
  .crumbs ol { flex-wrap: nowrap; overflow: hidden; gap: 8px; }
  .crumbs li { flex: none; white-space: nowrap; }
  .crumbs li + li::before { margin-right: 8px; }
  .crumbs li:last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* Breadcrumb: grows with its content (never spills under the banner); one tidy line on phones */
.crumbs ol { height: auto; min-height: 48px; padding: 12px 0; row-gap: 4px; }
@media (max-width: 900px) {
  .crumbs ol { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .crumbs li { flex: none; }
  .crumbs li:last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* Real photos never show the grey placeholder label while loading */
.media[style*="https://"]::after { content: none; }

/* ===== Country / regional overview pages ===== */
.hub-intro { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; align-items: start; }
.hub-count { border: 1px solid var(--line); padding: 28px 24px; text-align: center; background: var(--white); }
.hub-count b { display: block; font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--brand); }
.hub-count span { font-size: 14px; color: var(--muted); }
.hub-choose { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.hub-choose li { background: var(--white); border-top: 3px solid var(--brand); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.hub-choose b { font-size: 17px; }
.hub-choose span { font-size: 15px; line-height: 1.8; color: var(--text); }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.hub-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border: 1px solid var(--line); background: var(--white); transition: border-color .15s; }
.hub-card:hover { border-color: var(--brand); }
.hub-card small { font-size: 13px; color: var(--muted); }
.hub-card b { font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); }
.hub-card span { font-size: 15px; line-height: 1.8; color: var(--text); }
.hub-card em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--brand); margin-top: auto; }
.hub-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hub-extra article { border: 1px solid var(--line); padding: 26px; }
.hub-extra h3 { font-size: 19px; margin-bottom: 10px; }
.hub-extra p { font-size: 15px; line-height: 1.85; color: var(--text); }
.hub-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hub-links a { padding: 10px 18px; border: 1px solid var(--line); background: var(--white); font-size: 15px; }
.hub-links a:hover { border-color: var(--brand); color: var(--brand); }
.mega__col h3 a { color: inherit; }
.mega__col h3 a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 900px) { .hub-intro { grid-template-columns: 1fr; gap: 24px; } .hub-count { display: none; } .hub-extra { grid-template-columns: 1fr; } }
.hub-compare { padding-top: 24px; }
.hub-intro .overview__actions { margin-top: 28px; }

/* Anything marked hidden stays hidden, even if it has its own layout style (e.g. forms after submitting) */
[hidden] { display: none !important; }

/* Mobile menu: region headings clearly separate from the programmes under them */
.drawer details h4 {
  margin: 20px 0 4px; padding: 9px 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--brand); background: var(--soft); border-left: 3px solid var(--brand);
}
.drawer details h4:first-of-type { margin-top: 4px; }
.drawer details ul { gap: 0; margin: 0 0 8px; }
.drawer details ul a { display: block; padding: 12px 0 12px 15px; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.drawer details ul li:last-child a { border-bottom: 0; }
.drawer details ul a:active { background: var(--soft); }
/* Mobile menu programme names: back to the previous size and style (headings keep the new look) */
.drawer details ul { gap: 4px; margin: 0 0 12px; }
.drawer details ul a { font-size: 15px; padding: 10px 0; color: inherit; border-bottom: 0; }

/* Language switch (繁中 / EN) */
.topbar .lang-switch { font-weight: 600; color: var(--brand); padding-left: 14px; border-left: 1px solid var(--line); }
.lang-switch--drawer { display: block; margin-top: 16px; padding: 14px 0; text-align: center; font-weight: 600; color: var(--brand); border: 1px solid var(--line); }
html[lang="en"] body { word-break: normal; overflow-wrap: break-word; }

/* English pages whose content is in Chinese: a subtle note */
.lang-note { font-size: 14px; line-height: 1.7; color: var(--muted); background: var(--soft); border-left: 3px solid var(--brand); padding: 10px 14px; margin: 0 0 24px; max-width: 760px; }
.lang-note .linklike { font-size: inherit; color: var(--brand); text-decoration: underline; }

/* English pages: 'Noto Sans' / 'Noto Serif' are loaded with Google Fonts' text= option, so they contain ONLY ‘ ’ “ ” (normal English width);
   every other character falls through to the site's usual fonts. */
html[lang="en"] {
  --serif: 'Noto Serif', 'Noto Serif TC', 'Songti TC', serif;
  --sans: 'Noto Sans', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

/* Footer: copyright and group membership on separate lines */
.footer__copy { display: flex; flex-direction: column; gap: 4px; }
.footer__copy .nowrap { white-space: nowrap; }

/* Expert profile pages */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding-top: 40px; padding-bottom: 96px; align-items: start; }
.profile__photo { width: 300px; aspect-ratio: 1; border-radius: 50%; background-size: cover; background-position: center top; }
.profile__body h1 { margin: 10px 0 6px; }
.profile__body h1 span { display: block; font-size: .5em; font-weight: 400; color: var(--muted); margin-top: 6px; }
.profile__title { font-weight: 600; color: var(--brand); margin: 0 0 18px; }
.profile__facts { display: grid; gap: 16px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.profile__facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.profile__facts dt { color: var(--muted); font-size: 14px; }
.profile__facts dd { margin: 0; }
.profile__focus { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.profile__focus li span { display: block; font-size: 14px; margin-top: 2px; }
.member__more { display: inline-block; margin-top: 12px; }
.article__reviewer { font-size: 14px; color: var(--muted); margin-top: 6px; }
.article__reviewer a { color: var(--brand); }
@media (max-width: 800px) {
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .profile__photo { width: 180px; }
  .profile__facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Programme pages: expert review stamp in the hero */
.prog-hero p.prog-hero__review { font-size: 12px; line-height: 1.5; opacity: .75; margin-top: 14px; letter-spacing: .02em; }
@media (max-width: 760px) { .prog-hero p.prog-hero__review { font-size: 11px; margin-top: 10px; } }
.prog-hero__review a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Immigration glossary */
.gloss { margin: 0; display: grid; gap: 0; }
.gloss__item { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 20px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.gloss__item dt { font-weight: 600; color: var(--ink); }
.gloss__item dd { margin: 0; line-height: 1.8; }
.gloss__item dd .text-link { margin-left: 6px; white-space: nowrap; }
.gloss__item:target { background: var(--soft); }
@media (max-width: 760px) { .gloss__item { grid-template-columns: 1fr; gap: 6px; } }

/* Programme pages: client-story cards from the admin */
.case--story { color: inherit; text-decoration: none; }
.case--story .case__title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.case--story .case__outcome { font-size: 15px; line-height: 1.8; color: var(--text); margin: 0; }
.case--story .case__more { font-size: 14px; color: var(--brand); margin-top: auto; }
.case--story:hover .case__title { text-decoration: underline; text-underline-offset: 4px; }
.cases__more { margin-top: 36px; }

/* Dropdowns never run past the bottom of the screen: they scroll inside when taller than the space below the header */
.panel { max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow-y: auto; overscroll-behavior: contain; }

/* Link to the Hong Kong website (flag + label) */
.site-switch { display: inline-flex; align-items: center; gap: 6px; }
.site-switch__flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.topbar .site-switch { color: var(--muted); }
.topbar .site-switch:hover { color: var(--ink); }
.site-switch--drawer { display: flex; justify-content: center; margin-top: 16px; padding: 14px 0; font-weight: 600; color: var(--brand); border: 1px solid var(--line); }
.footer__region { width: 100%; margin-bottom: 16px; }
.site-switch--footer { font-size: 13px; color: inherit; }
.site-switch--footer:hover { text-decoration: underline; }

/* Region switcher: shows the current site; the other site is in the menu */
.topbar { position: relative; z-index: 60; }
.region { position: relative; display: inline-flex; }
.region__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; line-height: 1; color: var(--muted); cursor: pointer; }
.region__btn:hover, .region__btn[aria-expanded="true"] { color: var(--ink); }
.region__chev { transition: transform .2s; }
.region__btn[aria-expanded="true"] .region__chev { transform: rotate(180deg); }
.region__menu { position: absolute; right: -8px; top: calc(100% + 13px); min-width: 168px; margin: 0; padding: 6px; list-style: none; background: var(--white, #fff); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0,0,0,.10); z-index: 70; }
.region__menu[hidden] { display: none; }
.region__opt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.2; color: var(--ink); }
.topbar .region__menu a.region__opt { color: var(--ink); }
.region__menu a.region__opt:hover { background: var(--line-soft); }
.region__opt[aria-current] { font-weight: 600; cursor: default; }
.region__opt[aria-current]::after { content: "✓"; margin-left: auto; color: var(--brand); font-weight: 600; }
.region-drawer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.region-drawer__label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.region-drawer__opt { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.region-drawer__opt.is-current { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.footer__region { width: 100%; margin-bottom: 16px; font-size: 13px; }
.footer__region-cur, .footer__region a { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.footer__region a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Programme Finder */
.finder { display: flex; flex-direction: column; gap: 14px; }
.finder--page { max-width: 760px; border: 1px solid var(--line); padding: 36px 40px 40px; background: var(--white); }
.finder__bar { height: 4px; background: var(--line); }
.finder__bar span { display: block; height: 100%; background: var(--brand); transition: width .25s; }
.finder__step { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.finder__q { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.4; margin: 0; outline: none; }
.finder__hint { color: var(--muted); font-size: 14px; margin: 0; }
.finder__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 6px; }
.finder__opt { text-align: left; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5; cursor: pointer; }
.finder__opt:hover { border-color: var(--brand); }
.finder__opt[aria-pressed="true"] { border-color: var(--brand); background: var(--soft); box-shadow: inset 3px 0 0 var(--brand); }
.finder__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.finder__nav .btn[disabled] { opacity: .45; cursor: not-allowed; }
.finder__form { display: grid; gap: 14px; }
.finder__form label { display: grid; gap: 6px; font-size: 14px; }
.finder__form input:not([type=checkbox]) { font: inherit; padding: 12px 14px; border: 1px solid var(--line); }
.finder__form .finder__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.finder__form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.finder__results { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.finder__card { display: grid; grid-template-columns: 36px 1fr; gap: 14px; border: 1px solid var(--line); padding: 18px 20px; }
.finder__rank { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-weight: 600; }
.finder__name { font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; }
.finder__name:hover { text-decoration: underline; }
.finder__fact { font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
.finder__why { margin: 0 0 8px; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.finder__note { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 4px 0 0; }
.finder-hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.finder-hint .linklike { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.modal--finder { width: min(820px, calc(100vw - 32px)); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: inherit; }
.btn--line-light { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.8); }
.btn--line-light:hover { background: rgba(255,255,255,.12); }
@media (max-width: 700px) { .finder--page { padding: 24px 18px 28px; } .finder__q { font-size: 20px; } .finder__opts { grid-template-columns: 1fr; } }

/* Header: Programme Finder button next to the consultation button */
.header__actions .header__cta { white-space: nowrap; }
@media (max-width: 1360px) { html[lang="en"] .header__finder { display: none; } }

/* Mobile menu: consultation and Programme Finder side by side */
.drawer__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.drawer .drawer__ctas .btn { margin-top: 0; min-height: 52px; padding: 8px 10px; font-size: 15px; line-height: 1.3; white-space: normal; text-align: center; }
.finder__form .combo input:not([type=checkbox]) { border: 0; padding: 0 14px; }
.finder__form .combo select { font: inherit; }
.finder__field { display: grid; gap: 6px; font-size: 14px; }
.finder__form .combo input { border: 0; }
.finder__crs { background: var(--soft); padding: 16px 18px; font-size: 14px; line-height: 1.8; }
.finder__crs p { margin: 6px 0 0; }

/* Taiwan compliance revisions */
.footer__company { display: flex; flex-direction: column; gap: 4px; }
.footer__company b { color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.footer__company a, .footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { flex: 1 1 100%; font-size: 12px; line-height: 1.7; }
.footer__legal p { margin: 0 0 4px; }
.guarantees__terms ol, .finder-notice ol, .declaration { margin: 8px 0 0; padding-left: 20px; line-height: 1.8; }
.finder-notice { margin-top: 20px; padding: 14px 16px; background: var(--soft, #F4F5F6); font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.finder-notice b { color: var(--ink); }
.declaration { font-size: 14px; color: var(--text); }
.about__sub { font-size: 17px; margin: 28px 0 8px; color: var(--ink); }
.contact-page .channels dd { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.media.qr { width: 112px; height: 112px; aspect-ratio: 1; border: 1px solid var(--line); }
.disclosure { border-left: 3px solid var(--brand); background: var(--soft, #F4F5F6); padding: 18px 22px; font-size: 14px; line-height: 1.8; }
.disclosure p { margin: 8px 0 0; }
.record-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.record { border: 1px solid var(--line); padding: 20px 22px; font-size: 14px; line-height: 1.8; }
.record ul { list-style: none; margin: 0; padding: 0; }
.record__tag { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* Data report */
.report-findings { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 12px; font-size: 16px; line-height: 1.8; max-width: 860px; }

/* Reports & guides page */
.rg-report { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; border: 1px solid var(--line); padding: 36px 40px; }
.rg-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.rg-stats { display: grid; gap: 18px; margin: 0; }
.rg-stats div { border-left: 3px solid var(--brand); padding-left: 16px; }
.rg-stats dt { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.1; }
.rg-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.rg-card { border: 1px solid var(--line); padding: 36px 40px; display: flex; flex-direction: column; gap: 10px; }
.rg-card--row { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
.rg-card select { font: inherit; padding: 12px 14px; border: 1px solid #C8CCD1; min-height: 48px; background: var(--white); }
@media (max-width: 800px) { .rg-report { grid-template-columns: 1fr; padding: 24px 20px; } .rg-card { padding: 24px 20px; } .rg-card--row { flex-direction: column; align-items: flex-start; } }

/* Links to the data report */
.report-callout { font-size: 14px; color: var(--muted); margin: -6px 0 16px; }
.report-callout a, .finder__report a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.finder__report { font-size: 14px; margin: 4px 0 0; }
.report-strip { margin-top: 28px; border: 1px solid var(--line); background: var(--soft); padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.report-strip dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.report-strip dt { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; }
.report-strip dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.report-strip__cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.report-strip__cta p { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .report-strip { grid-template-columns: 1fr; padding: 20px; } .report-strip dl { grid-template-columns: 1fr 1fr 1fr; gap: 12px; } .report-strip dt { font-size: 22px; } }

/* Programme pages: comparison with the other programmes in the same overview */
.compare--programme tr.is-current td { background: var(--soft); }
.compare--programme tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.compare--programme td b { display: block; }
.compare--programme td small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.compare--programme th { white-space: nowrap; }
.compare--programme tr.is-current td:first-child { padding-left: 14px; }
#compare .table-head .note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Programme pages: keeping your status and citizenship */
.stay__h { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.stay__h + .bullets { margin-bottom: 22px; }
.stay__note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* About: feature figures */
.stats--feature { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats--feature > div { border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 22px 24px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stats--feature dd { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; margin: 0; color: var(--ink); }
.stats--feature dt { font-size: 14px; color: var(--muted); }
@media (max-width: 800px) { .stats--feature { grid-template-columns: 1fr 1fr; } }

.record__type { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

/* 10/2: consent tags and full-width footer statements */
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { margin-top: 4px; }
.consent__tag { flex: none; font-weight: 600; color: var(--brand); white-space: nowrap; }
.consent__tag--opt { color: var(--muted); font-weight: 500; }
.consent__text { flex: 1 1 auto; min-width: 0; }
.finder__consent.consent { display: flex; }
.footer__legal, .footer__legal p { max-width: none; width: 100%; }

/* ===== Synced from main site 2026-10-06 ===== */
/* Programme comparison tool (/compare) */
.cmp { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.cmp__panel { border: 1px solid var(--line); background: var(--white); padding: 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.cmp__picker label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.cmp__picker-row { display: flex; gap: 12px; }
.cmp__picker-row select { flex: 1; min-width: 0; width: 100%; max-width: 100%; height: 52px; padding: 0 44px 0 16px; font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #C8CCD1; border-radius: 0; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2301334A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cmp__picker-row select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.cmp__picker-row select:disabled { background-color: var(--soft); cursor: not-allowed; }
.cmp__picker-row .btn { height: 52px; padding: 0 28px; white-space: nowrap; }
.cmp__picker-row .btn:disabled { opacity: .45; cursor: not-allowed; }
.cmp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp__chips:empty, .cmp__msg:empty { display: none; }
.cmp__chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 6px 7px 14px; background: var(--brand); color: #fff; font-size: 14px; border-radius: 999px; }
.cmp__chip button { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 22px; height: 22px; border-radius: 50%; font-size: 15px; line-height: 1; cursor: pointer; }
.cmp__chip button:hover { background: rgba(255,255,255,.3); }
.cmp__msg { margin: 0; font-size: 14px; color: var(--muted); }
.cmp__empty h2 { margin: 0 0 14px; }
.cmp__empty ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.cmp__empty a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.cmp__empty a::after { content: "→"; color: var(--brand); font-weight: 400; }
.cmp__empty a:hover { border-color: var(--brand); background: var(--soft); }
.cmp__result { display: grid; gap: 18px; }
.cmp__actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cmp__actions h2 { margin: 0; }
.cmp__actions-btns { display: flex; align-items: center; gap: 20px; }
#cmp-copy.is-done { background: var(--brand); color: #fff; }
#cmp-clear { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#cmp-clear:hover { color: var(--ink); }
.cmp, .cmp__result { min-width: 0; }
.cmp__scroll { margin: 0 -12px; }
.cmp__table { width: 100%; border-collapse: separate; border-spacing: 12px 0; table-layout: fixed; }
.cmp__table--1 { max-width: 640px; }
.cmp__table thead th { padding: 0 0 4px; vertical-align: stretch; background: none; border: 0; }
.cmp__table .cmp__corner { width: 150px; }
.cmp-head { position: relative; height: 100%; min-height: 104px; box-sizing: border-box; background: var(--brand); color: #fff; padding: 16px 44px 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-align: left; }
.cmp-head__region { font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.72); font-weight: 400; }
.cmp-head__name { color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.cmp-head__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cmp-head__rm { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.cmp-head__rm:hover { background: rgba(255,255,255,.3); }
.cmp__table tbody th { width: 150px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; vertical-align: top; background: none; }
.cmp__table tbody td { padding: 16px 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--ink); vertical-align: top; background: var(--white); }
.cmp__table tbody tr:nth-child(even) td { background: #F8FAFB; }
.cmp__table td ul, .cmp-card dd ul { margin: 0; padding-left: 18px; }
.cmp__table td li, .cmp-card dd li { margin: 0 0 6px; }
.cmp-row--status td, .cmp-row--status dd { font-weight: 600; }
.cmp-row--routes td li, .cmp-row--routes dd li { font-weight: 600; color: var(--ink); }
.cmp-row--routes td ul, .cmp-row--routes dd ul { padding-left: 16px; }
.cmp-row--features td ul, .cmp-row--features dd ul { list-style: none; padding-left: 0; }
.cmp-row--features td li, .cmp-row--features dd li { position: relative; padding-left: 22px; }
.cmp-row--features td li::before, .cmp-row--features dd li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.cmp-row--parents td, .cmp-row--parents dd { font-weight: 500; }
.cmp-visa__num { display: flex; align-items: baseline; gap: 4px; }
.cmp-visa__num b { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--brand); font-weight: 600; }
.cmp-visa__about { font-size: 13px; color: var(--muted); }
.cmp-visa__unit { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cmp-visa__pp { font-size: 13px; margin-top: 6px; }
.cmp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cmp-tags span { font-size: 12px; line-height: 1.4; padding: 4px 9px; background: #EAF1F5; color: var(--brand); border-radius: 999px; }
.cmp-muted { color: var(--muted); }
.cmp__cards { display: none; }
.cmp-card .cmp-head { height: auto; }
.cmp__note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.cmp__bro-list { border: 0; padding: 0; margin: 0; }
.cmp__bro-list legend { font-weight: 600; margin-bottom: 10px; }
.cmp__bro-list > div { display: flex; flex-wrap: wrap; gap: 10px; }
.cmp__bro-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); background: var(--white); font-size: 15px; cursor: pointer; }
.cmp__bro-item:has(input:checked) { border-color: var(--brand); background: #F3F7F9; }
.cmp__bro-item input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
@media (max-width: 760px) {
  .cmp { gap: 22px; }
  .cmp__panel { padding: 18px; }
  .cmp__picker-row { flex-direction: column; }
  .cmp__picker-row .btn { width: 100%; }
  .cmp__actions { align-items: flex-start; }
  .cmp__actions-btns { width: 100%; justify-content: space-between; }
  .cmp__scroll { display: none; }
  .cmp__cards { display: grid; gap: 16px; }
  .cmp-card { border: 1px solid var(--line); background: var(--white); }
  .cmp-card .cmp-head { height: auto; min-height: 0; padding: 16px 48px 16px 16px; }
  .cmp-card dl { margin: 0; }
  .cmp-card__row { padding: 14px 16px; border-top: 1px solid var(--line); }
  .cmp-card__row:first-child { border-top: 0; }
  .cmp-card dt { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
  .cmp-card dd { margin: 0; font-size: 14px; line-height: 1.7; }
  .cmp-visa__num b { font-size: 30px; }
  .cmp__empty ul { grid-template-columns: 1fr; }
  .cmp__bro-item { width: 100%; }
}

/* Mega menu: programme tools */
.mega__aside { gap: 12px; }
.mega__aside p { margin: 0 0 4px; }
.mega-tool { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.mega-tool:hover, .mega-tool:focus-visible { border-color: var(--brand); }
.mega-tool__icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: #EAF1F5; color: var(--brand); }
.mega-tool b { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.4; }
.mega-tool::after { content: "→"; color: var(--brand); }
.mega__aside > .btn { margin-top: 4px; }
/* Mobile menu: programme tools */
.drawer__tools { margin: 0 0 8px; }
.drawer__tools .mega-tool { gap: 10px; padding: 14px 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--brand); }
.drawer__tools .mega-tool__icon { width: auto; height: auto; background: none; }
.drawer__tools .mega-tool b { font-size: 16px; font-weight: 600; color: var(--brand); }

/* Finder: buttons always visible */
@supports (height: 100dvh) { .modal { max-height: calc(100dvh - 32px); } }
.modal--finder .finder__nav { position: sticky; bottom: -28px; z-index: 2; margin: 18px -40px -28px; padding: 14px 40px 20px; background: var(--white); border-top: 1px solid var(--line); }
body:has(dialog[open]) .float-contact { display: none; }
@media (max-width: 760px) {
  .modal--finder { width: calc(100vw - 20px); padding-top: 18px; }
  .modal--finder > .lead { display: none; }
  .modal--finder .finder__nav { margin: 14px -20px -28px; padding: 12px 20px 16px; }
  .modal--finder .finder__q { font-size: 20px; line-height: 1.4; margin: 6px 0 8px; }
  .modal--finder .finder__hint { margin: 0 0 12px; }
  .modal--finder .finder__step { margin: 10px 0 0; }
  .finder__form { gap: 12px; }
  .finder__form input:not([type=checkbox]), .finder__form select { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
}

/* Mega menu: roomier columns */
.mega { gap: 40px; }
.mega__aside { width: 268px; padding: 24px; }
.mega__cols { gap: 24px; }
.mega__col ul { margin: 0 -10px; }
.mega__col a { padding: 9px 10px; }
.mega__col a small { line-height: 1.5; }
@media (max-width: 1280px) { .mega { gap: 28px; } .mega__aside { width: 240px; padding: 20px; } .mega__cols { gap: 18px; } }

/* Mega menu: headings line up with the items; tool boxes fit one line */
.mega__col h3 { padding-left: 0; }
.mega__col h3 a { display: inline; padding: 0; }
.mega__col h3 a:hover { background: none; }
.mega-tool { gap: 10px; padding: 11px 12px; }
.mega-tool__icon { width: 32px; height: 32px; }
.mega-tool b { font-size: 14px; white-space: nowrap; }

/* Contact box: country code picker for WhatsApp / phone */
.combo .combo__cc, .field .combo .combo__cc { flex: 0 0 auto; width: 112px; min-width: 112px; max-width: 112px; flex-basis: 112px; padding: 0 22px 0 10px; background-color: var(--white); border-right: 1px solid #C8CCD1; font-size: 15px; }
.combo .combo__cc[hidden] { display: none; }
.combo.combo--cc-on.combo--narrow { flex-wrap: wrap; }
.combo.combo--cc-on.combo--narrow > select:not(.combo__cc), .field .combo.combo--cc-on.combo--narrow > select:not(.combo__cc) { flex: 1 1 50%; width: 50%; min-width: 0; max-width: none; }
.combo.combo--cc-on.combo--narrow .combo__cc, .field .combo.combo--cc-on.combo--narrow .combo__cc { flex: 1 1 50%; width: 50%; min-width: 0; max-width: none; border-right: 0; }
.combo.combo--cc-on.combo--narrow > input { flex: 1 1 100%; border-top: 1px solid #C8CCD1; }

/* Contact box: one line — compact method + code, number takes the rest */
.combo.combo--cc-on > select:not(.combo__cc), .field .combo.combo--cc-on > select:not(.combo__cc) { width: 112px; min-width: 112px; max-width: 112px; flex: 0 0 112px; padding: 0 24px 0 12px; }
.combo .combo__cc, .field .combo .combo__cc { width: 84px; min-width: 84px; max-width: 84px; flex: 0 0 84px; padding: 0 22px 0 10px; }
.combo.combo--cc-on > input { flex: 1 1 auto; min-width: 0; }

/* Contact box: one line, phones (16px text) */
@media (max-width: 480px) {
  .combo.combo--cc-on > select:not(.combo__cc), .field .combo.combo--cc-on > select:not(.combo__cc) { width: 124px; min-width: 124px; max-width: 124px; flex-basis: 124px; padding: 0 26px 0 12px; }
  .combo .combo__cc, .field .combo .combo__cc { width: 88px; min-width: 88px; max-width: 88px; flex-basis: 88px; }
}

/* Contact box: room for the full number (≥150px) */
@media (min-width: 901px) { .grid-3:has(> .field .combo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); } }
.combo.combo--cc-on > select:not(.combo__cc), .field .combo.combo--cc-on > select:not(.combo__cc) { width: 108px; min-width: 108px; max-width: 108px; flex: 0 0 108px; padding: 0 22px 0 11px; background-position: right 8px center; }
.combo .combo__cc, .field .combo .combo__cc { width: 76px; min-width: 76px; max-width: 76px; flex: 0 0 76px; padding: 0 20px 0 10px; background-position: right 7px center; }
.combo.combo--cc-on > input { padding: 0 12px; }
@media (max-width: 480px) {
  .combo.combo--cc-on > select:not(.combo__cc), .field .combo.combo--cc-on > select:not(.combo__cc) { width: 112px; min-width: 112px; max-width: 112px; flex-basis: 112px; padding: 0 22px 0 11px; }
  .combo .combo__cc, .field .combo .combo__cc { width: 76px; min-width: 76px; max-width: 76px; flex-basis: 76px; }
}

/* Contact box: phones, tighter — WhatsApp still clear of its arrow, full number on one line */
@media (max-width: 900px) {
  .combo.combo--cc-on > select:not(.combo__cc), .field .combo.combo--cc-on > select:not(.combo__cc) { width: 104px; min-width: 104px; max-width: 104px; flex-basis: 104px; padding: 0 18px 0 9px; background-position: right 6px center; }
  .combo .combo__cc, .field .combo .combo__cc { width: 68px; min-width: 68px; max-width: 68px; flex-basis: 68px; padding: 0 17px 0 8px; background-position: right 5px center; }
  .combo.combo--cc-on > input { padding: 0 10px; }
}

/* Contact box: same font size on every desktop form */
@media (min-width: 901px) { .combo.combo--cc-on select, .combo.combo--cc-on input { font-size: 15px; } }

/* Contact field takes the full width of a narrow two-column form */
.grid-2 > .field--wide, .grid-2 > .field--wide + .field { grid-column: 1 / -1; }
.grid-2:has(> .field--wide) { grid-auto-flow: row dense; }

/* Contact box: phones, WhatsApp breathing room */
@media (max-width: 900px) {
  .combo.combo--cc-on > select:not(.combo__cc), .field .combo.combo--cc-on > select:not(.combo__cc) { width: 110px; min-width: 110px; max-width: 110px; flex-basis: 110px; padding: 0 20px 0 9px; background-position: right 6px center; }
  .combo .combo__cc, .field .combo .combo__cc { width: 64px; min-width: 64px; max-width: 64px; flex-basis: 64px; padding: 0 16px 0 7px; background-position: right 4px center; }
}

/* Compare: keep the picker full height when stacked on phones */
@media (max-width: 760px) { .cmp__picker-row select { flex: none; height: 52px; } }

/* Footer directory: all six regions on one row on wide screens */
@media (min-width: 1181px) { .directory { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px; } }

/* ===== Programme pages: larger text for 計劃概覽 key facts, 主要優勢 and 申請條件 ===== */
.tiles b { font-size: 20px; }
.tiles span { font-size: 17px; line-height: 1.6; color: var(--ink); }
.ticks--adv { font-size: 19px; gap: 24px 48px; }
.ticks--adv svg { width: 22px; height: 22px; margin-top: 5px; }
.reqsec .lead { font-size: 19px; color: var(--ink); font-weight: 600; }
.reqsec .bullets { font-size: 19px; line-height: 1.75; color: var(--ink); gap: 18px; }
.reqsec .bullets li { padding-left: 28px; }
.reqsec .bullets li::before { top: .72em; width: 9px; height: 9px; background: var(--brand); }
@media (max-width: 600px) {
  .tiles b { font-size: 18px; }
  .tiles span { font-size: 16px; }
  .ticks--adv, .reqsec .bullets, .reqsec .lead { font-size: 17px; }
}
.reqsec .nw { white-space: nowrap; }
/* Investment routes: each way to qualify as its own card */
.reqsec .inv { margin: 0 0 40px; }
.inv__h { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.inv__lead { margin: 0 0 18px; font-size: 16px; color: var(--muted); }
.inv__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.inv__list > li { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-top: 3px solid var(--brand); background: #fff; padding: 18px 20px 20px; }
.inv__list > li > small { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--gold, #A8834A); }
.inv__amt { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.3; color: var(--brand); }
.inv__desc { font-size: 17px; line-height: 1.6; color: var(--ink); }
.inv__desc--only { font-size: 19px; font-weight: 600; }
@media (max-width: 600px) { .inv__list { grid-template-columns: 1fr; } .inv__amt { font-size: 23px; } }
.inv__tier { font-size: 18px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.inv__tier strong { color: var(--brand); white-space: nowrap; }
.inv__title { font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.inv__amt + .inv__title { font-size: 17px; }
.inv__det { list-style: none; margin: 6px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.inv__det li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.6; color: var(--text); }
.inv__det li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--gold, #C9A266); }
.inv__note { margin: 14px 0 0; font-size: 15px; color: var(--text); border-left: 3px solid var(--gold, #C9A266); padding: 4px 0 4px 12px; }
/* 主要優勢 in depth: heading + photo strip, then each benefit with a title and its details */
.advsec__head { display: grid; gap: 22px; margin-bottom: 30px; }
.advsec__img { height: 220px; min-height: 0; aspect-ratio: auto; }
.adv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 52px; }
.adv--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 40px; }
@media (max-width: 1100px) { .adv--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adv li { display: flex; gap: 14px; align-items: flex-start; }
.adv svg { flex-shrink: 0; margin-top: 4px; }
.adv__t { display: block; font-size: 19px; line-height: 1.45; color: var(--ink); font-weight: 700; }
.adv__d { display: block; margin-top: 6px; font-size: 16px; line-height: 1.75; color: var(--text); }
@media (max-width: 800px) {
  .adv, .adv--3 { grid-template-columns: 1fr; gap: 24px; }
  .advsec__img { height: 160px; }
  .adv__t { font-size: 17px; }
}
