/* China Arrival Guide — design system v2.0 */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
}
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efece5;
  --ink: #14181d;
  --muted: #5b6570;
  --line: #e4e0d7;
  --brand: #c8102e;
  --brand-dark: #9a0c24;
  --brand-solid: #c8102e;
  --brand-solid-hover: #9a0c24;
  --accent-solid: #0f7b57;
  --brand-soft: #fdf0f2;
  --accent: #0f7b57;
  --accent-soft: #eaf7f1;
  --warn: #b45309;
  --warn-soft: #fff6ea;
  --info: #2563eb;
  --info-soft: #eef4ff;
  --radius: 14px;
  --maxw: 1120px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ink-soft: #454d57;
  --shadow-sm: 0 1px 2px rgba(20, 24, 29, .05);
  --shadow-md: 0 10px 30px -12px rgba(20, 24, 29, .18);
  --ring: rgba(200, 16, 46, .28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --surface: #171c21;
    --surface-2: #1f252b;
    --ink: #edf0f3;
    --muted: #a4adb7;
    --ink-soft: #c3cad2;
    --line: #2a3138;
    --brand: #f2455f;
    --brand-dark: #ff7a8f;
    --brand-solid: #c8102e;
    --brand-solid-hover: #9a0c24;
    --accent-solid: #0f7b57;
    --brand-soft: #2a151a;
    --accent: #35c794;
    --accent-soft: #12281f;
    --warn: #f0a04b;
    --warn-soft: #2a1f12;
    --info: #7aa7ff;
    --info-soft: #141d31;
    --ring: rgba(242, 69, 95, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, .65);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16.5px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; font-optical-sizing: auto; }
::selection { background: color-mix(in srgb, var(--brand) 16%, transparent); }

/* ---------- Scroll reveal (JS-gated; no-JS and reduced-motion stay fully visible) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
}
.js [data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 99;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; font-size: 17px; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-solid), #d2243f);
  color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0; line-height: 1.25; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; gap: 0; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; padding: 9px 11px; border-radius: 8px;
  font-weight: 600; font-size: 14px; transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--surface-2); color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 12px; padding-bottom: 2px; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: 7px; margin: 0; padding: 0;
  font-size: 13.5px; color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: 7px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); font-weight: 600; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Header: narrow screens ---------- */
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; gap: 4px 14px; padding-top: 8px; padding-bottom: 8px; }
  .brand small { display: none; }
  .site-nav {
    margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 7px 10px; font-size: 14px; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 8.5vw, 120px) 0 clamp(48px, 5.5vw, 72px);
  background:
    radial-gradient(1000px 420px at 92% -12%, color-mix(in srgb, var(--brand) 6%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 4.5vw, 64px); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: var(--shadow-md); }
@media (max-width: 940px) { .hero-art img { max-width: 520px; margin: 0 auto; } }
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 20px;
}
.hero-eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--brand); flex: 0 0 auto;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(42px, 5.9vw, 72px);
  line-height: 1.0; letter-spacing: -.04em;
  margin: 0 0 22px; max-width: 18ch;
}
.hero p.lede { font-size: clamp(16.5px, 1.9vw, 19px); line-height: 1.7; color: var(--ink-soft); margin: 0 0 28px; max-width: 56ch; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; color: var(--muted); font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer;
  border-radius: 10px; padding: 14px 22px; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-solid); color: #fff; box-shadow: 0 10px 22px -12px var(--brand-solid); }
.btn-primary:hover { background: var(--brand-solid-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---------- Sections ---------- */
main { padding: 6px 0 64px; }
.section { padding: clamp(52px, 7.5vw, 88px) 0 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 8px;
}
.section-title { font-family: var(--font-display); font-size: clamp(25px, 3.3vw, 34px); margin: 0 0 6px; letter-spacing: -.02em; line-height: 1.18; }
main h1 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 18px 0 14px; }
.section-sub { color: var(--muted); margin: 0 0 20px; max-width: 64ch; }
.section-sub a { white-space: nowrap; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; display: block; color: inherit;
  text-decoration: none; box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
picture { display: block; }
picture.card-media { margin: 0 0 16px; }
.card-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 12px;
}
.page-hero { margin: 6px 0 18px; }
.page-hero img {
  width: 100%; max-height: 440px; object-fit: cover; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) { .page-hero img { max-height: 300px; } }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.card h3 { margin: 0 0 7px; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .tag {
  display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
  background: var(--surface-2); border-radius: 999px; padding: 3px 9px;
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.checklist li:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: var(--shadow-md); }
.checklist .n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-solid), #d2243f); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 13.5px;
  box-shadow: 0 6px 14px -8px var(--brand);
}
.checklist b { display: block; font-size: 16.5px; }
.checklist span { color: var(--muted); font-size: 14.5px; }

/* ---------- Packing checklist tool ---------- */
.pack-progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.pack-progress > span { display: block; height: 100%; width: 0; background: var(--accent-solid); border-radius: inherit; transition: width .25s ease; }
.pack-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.pack-groups { display: grid; gap: 20px; margin-top: 18px; }
.pack-group > h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: -.01em; }
.pack-items { display: grid; gap: 10px; }
.pack-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s ease, opacity .15s ease; }
.pack-item:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.pack-item input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--brand); flex: 0 0 auto; }
.pack-item .pt { font-weight: 700; font-size: 15.5px; display: block; }
.pack-item .pn { color: var(--muted); font-size: 13.5px; display: block; margin-top: 2px; }
.pack-item > span:last-child { flex: 1; min-width: 0; }
.pack-item.done { opacity: .62; }
.pack-item.done .pt { text-decoration: line-through; }
.pack-actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.pack-actions button.secondary { padding: 9px 16px; font-size: 14px; }

/* ---------- Stats ---------- */
.stats {
  display: grid; gap: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.stat { background: none; border: 0; box-shadow: none; padding: 0 28px 0 0; }
@media (min-width: 760px) {
  .stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }
}
.stat .num {
  font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 42px); font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.05;
}
.stat .label { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ---------- Tool ---------- */
.tool {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-top: 18px; box-shadow: none;
}
.field { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
input[type="text"], input[type="number"], select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--surface); color: var(--ink);
}
input[type="text"]:focus, input[type="number"]:focus, select:focus, button:focus-visible, a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--ring); outline-offset: 1px; border-color: var(--brand);
}
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; cursor: pointer; margin: 0;
}
.radio-row input { accent-color: var(--brand); }
button {
  font: inherit; font-weight: 800; cursor: pointer;
  background: var(--brand-solid); color: #fff; border: 0; border-radius: 10px; padding: 13px 20px;
}
button:hover { background: var(--brand-solid-hover); }
button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

.result { margin-top: 22px; display: grid; gap: 12px; }
.result:empty { display: none; }
/* Currency converter output: inline flow, not the generic result grid */
#fx-result { display: block; }
#fx-result strong { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.01em; }
#fx-result strong:last-of-type { color: var(--accent-solid); }
#fx-result .eq { font-family: var(--font-display); font-size: 0.72em; color: var(--ink-soft); padding: 0 2px; }
#fx-result .rate-line { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.notice {
  border-left: 4px solid var(--brand); background: var(--brand-soft);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
}
.notice.ok { border-color: var(--accent); background: var(--accent-soft); }
.notice.warn { border-color: var(--warn); background: var(--warn-soft); }
.notice.info { border-color: var(--info); background: var(--info-soft); }
.notice h3, .notice h2 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.notice p { margin: 4px 0; }
.meta { font-size: 13px; color: var(--muted); }
ul.tight { margin: 6px 0 0; padding-left: 20px; }
ul.tight li { margin: 3px 0; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.log td:first-child, table.log th:first-child { white-space: nowrap; width: 1%; }
td .muted { color: var(--muted); font-size: 13.5px; }
thead th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  background: var(--surface-2); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 13.5px; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--font-display); font-size: clamp(21px, 2.8vw, 27px); margin: 34px 0 8px; letter-spacing: -.015em; }
.prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; margin: 18px 0;
  color: var(--muted); font-size: 15px;
}
.callout strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-section { padding-top: clamp(26px, 4vw, 40px); }
.faq-list { display: grid; gap: 10px; margin-top: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; box-shadow: none;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 20px; line-height: 1; color: var(--brand); font-weight: 600;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--brand); }
.faq-item p {
  margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 15px; max-width: 68ch;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 48px; padding: 34px 0 44px;
  color: var(--muted); font-size: 14px; background: var(--surface);
}
.site-footer .cols { display: grid; gap: 22px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { font-size: 13px; color: var(--ink); margin: 0 0 10px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }

.updated {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; color: var(--muted); font-weight: 600;
}
.updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Self-drawn process diagrams (inline SVG, theme-aware) ---------- */
.diagram { margin: 4px 0 26px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram svg { display: block; width: 100%; min-width: 760px; max-width: 960px; height: auto; margin: 0 auto; }
.diagram .d-box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.diagram .d-goal { fill: var(--brand-solid); stroke: var(--brand-solid); }
.diagram .d-warnbox { fill: var(--warn-soft); stroke: var(--warn); stroke-width: 1.5; }
.diagram .d-title { font-family: var(--font-body); font-size: 16px; font-weight: 700; fill: var(--ink); }
.diagram .d-sub { font-family: var(--font-body); font-size: 12.5px; fill: var(--ink-soft); }
.diagram .d-head { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .08em; fill: var(--ink-soft); }
.diagram .d-goal-text { fill: #fff; }
.diagram .d-warn { font-family: var(--font-body); font-size: 15px; font-weight: 700; fill: var(--ink); }
.diagram .d-arrow { stroke: var(--ink-soft); stroke-width: 2; fill: none; }
.diagram .d-cap { font-family: var(--font-body); font-size: 13px; fill: var(--ink-soft); }
.d-hint { display: none; }
@media (max-width: 700px) {
  .d-hint { display: block; text-align: center; color: var(--ink-soft); font-size: 12.5px; margin-top: 8px; }
}

/* ---------- Print: guides should read cleanly on paper ---------- */
@media print {
  .skip-link, .site-nav, .hero-actions, .pill-row, .hero-art,
  .faq-section, .site-footer, .breadcrumbs { display: none !important; }
  body { background: #fff; color: #000; }
  .site-header .wrap { padding: 8px 0; border-bottom: 2px solid #000; }
  .wrap { max-width: none; padding: 0; }
  .prose, main h1, .section-title, .callout, .tool, .checklist { box-shadow: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #333; }
  .notice, .callout { border: 1px solid #999; }
  .diagram { overflow-x: visible; }
  .diagram svg { min-width: 0; max-width: 100%; width: 100%; height: auto; }
}

/* ---------- China First Visit Hub — brand override ---------- */
:root {
  --brand: #b34700;
  --brand-dark: #8a3600;
  --brand-solid: #b34700;
  --brand-solid-hover: #8a3600;
  --brand-soft: #fdf1e8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #f08a4b;
    --brand-dark: #ffb08a;
    --brand-solid: #b34700;
    --brand-solid-hover: #8a3600;
    --brand-soft: #2a1c12;
    --ring: rgba(240, 138, 75, .35);
  }
}
