/* Layout concept: one left-aligned reading column; the journey from Jakarta to
   China drawn as a route line is the single bold element. Facts sit in plain
   label/value rows, each section closed by a small "checked" seal. */
:root {
  --paper: #f5f7fa;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #556072;
  --line: #d6dce5;
  --indigo: #27477a;
  --on-indigo: #ffffff;
  --indigo-soft: #e6ecf5;
  --seal: #b3392a;
  --amber: #7d5200;
  --amber-soft: #fbf1dc;
  --green: #2c6449;
  --green-soft: #e3f1ea;
  --band-bg: #172033;
  --band-fg: #f2f5fa;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.5rem + 4.2vw, 4.4rem);
  --measure: 68ch;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10151f; --surface: #171e2b; --ink: #e7ebf2; --muted: #a4aebe; --line: #2b3446;
    --indigo: #9db8e8; --on-indigo: #10151f; --indigo-soft: #1c2840; --seal: #e77a68;
    --amber: #e6b65c; --amber-soft: #2e2614; --green: #7fc4a2; --green-soft: #15291f;
    --band-bg: #1c2840; --band-fg: #e7ebf2; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10151f; --surface: #171e2b; --ink: #e7ebf2; --muted: #a4aebe; --line: #2b3446;
  --indigo: #9db8e8; --on-indigo: #10151f; --indigo-soft: #1c2840; --seal: #e77a68;
  --amber: #e6b65c; --amber-soft: #2e2614; --green: #7fc4a2; --green-soft: #15291f;
  --band-bg: #1c2840; --band-fg: #e7ebf2; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; }
a { color: var(--indigo); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 800; font-stretch: 115%; }
h2 { font-size: var(--step-2); font-weight: 750; font-stretch: 110%; }
h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 105%; margin-top: 1.75rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.selectable { user-select: all; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 46rem; display: grid; gap: 2.5rem; padding-block: 1rem 4rem; }
.narrow p + p { margin-top: 0.9rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-row { display: flex; align-items: center; gap: 1.25rem; padding-block: 0.85rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 120%; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand .mark { width: 2.1rem; height: auto; color: var(--indigo); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin-left: auto; font-size: var(--step--1); }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--indigo); font-weight: 650; }
@media (max-width: 760px) {
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .header-row > .btn { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.6rem 1.15rem; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.btn-small { min-height: 40px; padding: 0.45rem 0.95rem; font-size: var(--step--1); }
.btn-primary { background: var(--indigo); color: var(--on-indigo); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-light { background: var(--band-fg); color: var(--band-bg); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero and route */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) 3rem; }
.hero-title { font-size: var(--step-4); font-weight: 850; font-stretch: 125%; line-height: 1.02; letter-spacing: -0.012em; max-width: 15ch; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 58ch; margin-top: 1.25rem; }
.route-wrap { margin-top: clamp(2.5rem, 6vw, 4rem); }
.route-ends { display: flex; justify-content: space-between; font-weight: 750; font-stretch: 125%; font-size: var(--step--1); color: var(--muted); margin-bottom: 0.6rem; }
.route { --gap: 1rem; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.stop { position: relative; min-width: 0; }
/* Connector from this stop's dot to the next one: solid where the next step has a page, dashed where it is still being written. */
.stop:not(:last-child)::after { content: ""; position: absolute; top: calc(1.1rem - 2px); left: 1.1rem; width: calc(100% + var(--gap)); height: 4px; background: var(--indigo); border-radius: 2px; }
.stop.next-later::after { height: 0; top: calc(1.1rem - 1px); background: none; border-top: 2px dashed var(--muted); border-radius: 0; }
.stop-dot {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--indigo); color: var(--on-indigo); font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 5px var(--paper);
}
.stop-later .stop-dot { background: var(--paper); color: var(--muted); border: 2px dashed var(--muted); }
.stop-body { margin-top: 0.9rem; display: grid; gap: 0.3rem; }
.stop-name { font-weight: 800; font-stretch: 112%; font-size: var(--step-1); }
.stop-text { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
.stop-link { font-size: var(--step--1); font-weight: 600; }
@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; --gap: 1.4rem; }
  .stop:not(:last-child)::after { top: 1.1rem; left: calc(1.1rem - 2px); width: 4px; height: calc(100% + var(--gap)); }
  .stop.next-later::after { left: calc(1.1rem - 1px); width: 0; border-top: 0; border-left: 2px dashed var(--muted); }
  .stop { display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; align-items: start; }
  .stop-body { margin-top: 0.1rem; }
  .route-ends { display: none; }
}

/* Sections */
main > section, .content > section { padding-block: 3rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-ink { background: var(--band-bg); color: var(--band-fg); border: 0; }
.band-ink p { color: var(--band-fg); opacity: 0.9; max-width: 56ch; margin-top: 0.75rem; }
.section-lede { color: var(--muted); margin-top: 0.6rem; max-width: var(--measure); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.two-col p { margin-top: 1rem; max-width: var(--measure); }
.two-col > div > a { display: inline-block; margin-top: 1rem; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.season { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.season-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.6rem; align-content: start; }
.season-item h3 { margin: 0; font-size: 1.15rem; }
.season-item p { color: var(--ink); }
.season-item > a { font-weight: 600; font-size: var(--step--1); }
@media (max-width: 900px) { .season { grid-template-columns: 1fr; } }

.status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--step--1); font-weight: 650; width: fit-content; padding: 0.15rem 0.6rem 0.15rem 0.5rem; border-radius: 999px; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; flex: none; }
.status-watch { background: var(--indigo-soft); color: var(--indigo); }
.status-watch::before { border: 2px solid currentColor; border-radius: 50%; }
.status-recurring { background: var(--green-soft); color: var(--green); }
.status-recurring::before { background: currentColor; border-radius: 50%; }
.status-last { background: var(--amber-soft); color: var(--amber); }
.status-last::before { background: currentColor; border-radius: 2px; }

.example { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.75rem; }
.example figcaption { font-size: var(--step--1); color: var(--muted); }
.example-q { font-weight: 750; font-stretch: 110%; font-size: var(--step-1); }
.example-a { font-size: var(--step-1); }

/* Page heads and contents */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.crumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.75rem; }
.crumb a { color: var(--muted); }
.notice { margin-top: 1.25rem; max-width: 60ch; background: var(--indigo-soft); color: var(--ink); padding: 0.75rem 1rem; border-radius: 8px; font-size: var(--step--1); }
.with-toc { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: 4rem; }
.toc { position: sticky; top: 1.25rem; padding-top: 3rem; font-size: var(--step--1); }
.toc-head { font-weight: 700; margin-bottom: 0.5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.85rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--indigo); }
.content { min-width: 0; max-width: 46rem; }
.content > section + section { border-top: 1px solid var(--line); }
.content > section > p { margin-top: 0.9rem; max-width: var(--measure); }
.content h2 + .facts, .content h3 + .facts { margin-top: 0.9rem; }
@media (max-width: 900px) {
  .with-toc { grid-template-columns: 1fr; }
  .toc { position: static; padding-top: 0.5rem; }
}

/* Facts */
.facts { margin: 1.25rem 0 0; display: grid; }
.fact-row { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: 0.4rem 1.5rem; padding-block: 0.8rem; border-top: 1px solid var(--line); }
.fact-row:last-child { border-bottom: 1px solid var(--line); }
.fact-row dt { font-weight: 650; }
.fact-row dd { margin: 0; min-width: 0; }
.applies { display: block; margin-top: 0.3rem; font-size: var(--step--1); color: var(--muted); }
.fact { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .fact-row { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--step--1); }
caption { text-align: left; padding: 0.75rem 1rem 0; font-weight: 650; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
thead th { font-weight: 650; color: var(--muted); background: var(--paper); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
.unconfirmed { color: var(--muted); font-style: italic; }
.note { font-size: var(--step--1); color: var(--muted); }

/* Source note with seal */
.source { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.5rem; padding: 0.9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--step--1); }
.band .source { background: var(--surface); }
.example .source { margin-top: 0.25rem; }
.seal {
  flex: none; display: inline-grid; place-items: center; gap: 0; line-height: 1.05;
  width: 4.4rem; padding: 0.4rem 0.2rem; border: 2px solid var(--seal); border-radius: 7px; color: var(--seal);
  font-weight: 800; font-stretch: 75%; font-size: 0.78rem; text-align: center; transform: rotate(-5deg);
}
.seal span:last-child { font-variant-numeric: tabular-nums; }
.source-head { font-weight: 650; }
.source ul { margin: 0.35rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.source li { color: var(--ink); }
.issuer { display: block; color: var(--muted); }

.checking { }
.checking ul { margin: 0.9rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; max-width: var(--measure); }
.checking > p:last-child { margin-top: 1rem; }

.steps { margin: 1rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.7rem; max-width: var(--measure); }
.steps li::marker { font-weight: 800; color: var(--indigo); }

.band-inline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.9rem; justify-items: start; }

/* Get help */
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: 1rem 4rem; }
.help-form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 650; }
.hint { font-size: var(--step--1); color: var(--muted); }
.field input, .field select, .result textarea {
  font: inherit; color: var(--ink); background: var(--paper); width: 100%;
  min-height: 46px; padding: 0.6rem 0.75rem; border: 1.5px solid var(--line); border-radius: 8px;
}
.field input:focus, .field select:focus, .result textarea:focus { border-color: var(--indigo); outline: 2px solid var(--indigo); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--seal); }
.form-error { color: var(--seal); font-weight: 600; }
.help-form > .btn { justify-self: start; }
.help-side { display: grid; gap: 2rem; min-width: 0; }
.result { background: var(--indigo-soft); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.75rem; }
.result h2 { font-size: var(--step-1); }
.result textarea { min-height: 12rem; resize: vertical; font-size: var(--step--1); }
.result .actions { margin-top: 0; }
.services p { margin-top: 1rem; }
@media (max-width: 900px) { .help-grid { grid-template-columns: 1fr; } }

/* Questions: answer cards with search and filters */
.q-filters { display: grid; gap: 0.75rem; }
.q-search-label { font-weight: 650; }
.q-search { font: inherit; color: var(--ink); background: var(--surface); width: 100%; min-height: 46px; padding: 0.6rem 0.75rem; border: 1.5px solid var(--line); border-radius: 8px; }
.q-search:focus { border-color: var(--indigo); outline: 2px solid var(--indigo); outline-offset: 1px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; min-height: 40px; padding: 0.35rem 0.9rem; cursor: pointer; }
.chip:hover { border-color: var(--indigo); }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--on-indigo); }
.q-count { font-size: var(--step--1); color: var(--muted); }
.q-list { display: grid; gap: 1.25rem; }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.6rem); display: grid; gap: 0.9rem; min-width: 0; }
.q-question { font-size: var(--step-1); font-weight: 700; font-stretch: 105%; text-wrap: balance; }
.q-answer { max-width: var(--measure); }
.q-label { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.q-details summary { cursor: pointer; font-weight: 650; color: var(--indigo); min-height: 40px; display: flex; align-items: center; }
.q-details .facts { margin-top: 0.5rem; }
.q-unsure { background: var(--amber-soft); border-radius: 8px; padding: 0.8rem 1rem; }
.q-unsure ul { margin: 0.4rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.q-next { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.q-next .q-label { display: block; margin-bottom: 0.25rem; }
.q-draft { justify-self: start; font-size: var(--step--1); font-weight: 650; color: var(--amber); background: var(--amber-soft); border-radius: 6px; padding: 0.2rem 0.6rem; }
.q-empty, .q-none { color: var(--muted); }

/* Official sources */
.src-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; }
.src-item { padding-block: 0.9rem; border-top: 1px solid var(--line); display: grid; gap: 0.3rem; min-width: 0; }
.src-item:last-child { border-bottom: 1px solid var(--line); }
.src-doc { font-weight: 650; overflow-wrap: anywhere; }
.src-doc .issuer { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); margin-top: 0.15rem; }
.src-meta { font-size: var(--step--1); color: var(--muted); }
.src-sites { margin: 0.9rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.source li a { overflow-wrap: anywhere; }

/* 中文核对版 (preview only) */
.zh-wrap { display: grid; gap: 2.5rem; padding-block: 1rem 4rem; }
.zh-toc { margin-top: 1rem; font-size: var(--step--1); }
.zh-count { margin-left: 0.6rem; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.zh-table { min-width: 48rem; }
.zh-table td { line-height: 1.55; }
.zh-id { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
.zh-en { color: var(--muted); }
.zh-src { white-space: nowrap; font-size: 0.8125rem; }
.zh-muted { color: var(--muted); font-size: var(--step--1); }
.zh-card { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.zh-card h3 { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding-block: 2.5rem 3rem; }
.footer-grid p { color: var(--muted); max-width: 52ch; margin-top: 0.5rem; }
.footer-brand { margin: 0; }
.footer-head { font-weight: 700; color: var(--ink) !important; margin-top: 0 !important; }
.footer-grid ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.35rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Universities list: one card per school, official English links underneath. */
.schools { display: grid; gap: 1rem; }
.school { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.4rem; display: grid; gap: 0.7rem; align-content: start; }
.school h2 { margin: 0; font-size: var(--step-2); line-height: 1.2; }
.school-zh { font-size: var(--step-0); font-weight: 500; color: var(--muted); white-space: nowrap; }
.school > p { max-width: var(--measure); }
.school-profile { font-weight: 650; width: fit-content; }
.school-links-head { margin-top: 0.4rem; font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.school-links { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: var(--step--1); overflow-wrap: anywhere; }
.school h3 { margin: 0; font-size: var(--step-2); line-height: 1.2; }
#by-city > p { margin-top: 0.9rem; max-width: var(--measure); }
.city-jump { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; font-size: var(--step--1); }
.city-jump a { padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; }
.city-jump a:hover { border-color: var(--indigo); }
.city { margin-top: 2rem; scroll-margin-top: 1rem; }
.city h3 { margin: 0; font-size: var(--step-1); display: flex; align-items: baseline; gap: 0.5rem; }
.city-count { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.uni-list { list-style: none; margin: 0.6rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.uni-row { padding-block: 0.75rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.3rem; }
.uni-row h4 { margin: 0; font-size: var(--step-0); font-weight: 700; line-height: 1.35; }
.uni-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; font-size: var(--step--1); }
