:root {
  /* palette A "navy + warm paper" (2026-11-15); previous teal/orange palette in git-less backup styles.before-palette.css */
  --ink: #1d232b;
  --muted: #5d636b;
  --line: #e4ded2;
  --bg: #fbf9f5;
  --surface: #ffffff;           /* cards, tables */
  --soft: #f3efe7;
  --brand: #1f3550;
  --brand-2: #2d5a87;           /* links, card titles */
  --brand-soft: #edf1f6;        /* online phase, chips */
  --brand-line: #cdd8e5;
  --accent: #b8462e;            /* main buttons */
  --accent-ink: #8a321f;
  --accent-soft: #f8ece6;       /* in-China phase */
  --accent-line: #ecc9bc;
  --hero-bg: #1f3550;
  --hero-ink: #ffffff;
  --hero-sub: #d5deea;
  --cta-bg: #1f3550;
  --cta-sub: #d5deea;
  --ok-bg: #e8efe6;
  --ok-ink: #3b5d34;
  --head-font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --tbd-bg: #fff4d6;
  --tbd-ink: #8a5a00;
  --radius: 10px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--brand-2); }
a:hover { color: var(--brand); }
img { max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* preview banner */
.preview-banner { background: #222; color: #fff; font-size: 13px; text-align: center; padding: 6px 12px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 20px; color: var(--brand); text-decoration: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brand-2); }
.lang-switch { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; text-decoration: none; color: var(--muted); }
.nav .btn { padding: 8px 14px; font-size: 14px; }
.site-header .header-cta, .nav-toggle { display: none; }

/* mobile header: brand + CTA + menu button on one row; links open in a dropdown */
@media (max-width: 760px) {
  .site-header .container { flex-wrap: nowrap; min-height: 56px; gap: 10px; }
  .brand { font-size: 18px; margin-right: auto; white-space: nowrap; }
  .site-header .header-cta { display: inline-block; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 0; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(0,0,0,.08); padding: 6px 20px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .lang-switch { border: 0; border-radius: 0; padding: 11px 0; color: var(--muted); }
  .nav .nav-cta { display: none; }
}
/* narrow phones: the CTA moves into the menu so the menu button always fits */
@media (max-width: 480px) {
  .site-header .header-cta { display: none; }
  .nav .nav-cta { display: block; text-align: center; margin-top: 12px; padding: 12px 14px; border-bottom: 0; }
}

/* buttons */
.btn { display: inline-block; background: var(--accent); color: #fff !important; text-decoration: none; padding: 12px 20px; border-radius: 8px; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(0.95); }
.btn-outline { background: transparent; color: var(--brand) !important; border: 2px solid var(--brand); }

/* typography */
h1, h2, .brand { font-family: var(--head-font); }
h1 { font-size: 38px; line-height: 1.2; margin: 28px 0 12px; color: var(--brand); }
h2 { font-size: 27px; line-height: 1.3; margin: 48px 0 14px; color: var(--brand); }
h3 { font-size: 20px; margin: 26px 0 8px; }
.byline { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.summary { background: var(--soft); border-left: 4px solid var(--brand-2); padding: 16px 20px; border-radius: 6px; font-size: 18px; }
.lead { font-size: 20px; color: var(--muted); max-width: 760px; }
.note { color: var(--muted); font-size: 15px; }
.small { font-size: 14px; }
sup a { text-decoration: none; }

/* hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 64px 0 56px; }
.hero h1 { color: var(--hero-ink); font-size: 42px; max-width: 820px; margin-top: 0; }
.hero p { color: var(--hero-sub); font-size: 20px; max-width: 720px; }
.hero .btn-outline { color: var(--hero-ink) !important; border-color: var(--hero-ink); margin-left: 8px; }

/* tables */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.card h3 { margin-top: 0; }
.card.muted { background: var(--soft); color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: -12px; left: 14px; background: var(--brand); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; }

/* doctor card */
.doctor { display: grid; grid-template-columns: 120px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.doctor .photo { width: 120px; height: 140px; background: var(--soft); border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; overflow: hidden; }
.doctor .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.doctor h3 { margin: 0 0 4px; }
.doctor .role { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.doctor ul { margin: 6px 0 10px; padding-left: 20px; font-size: 15px; }
@media (max-width: 640px) { .doctor { grid-template-columns: 1fr !important; } .doctor .photo { width: 120px !important; height: 140px !important; } }

/* cta */
.cta-box { background: var(--cta-bg); color: #fff; border-radius: var(--radius); padding: 28px; margin: 40px 0; }
.cta-box h2 { color: #fff; margin-top: 0; }
.cta-box p { color: var(--cta-sub); }

/* tbd */
.tbd { background: var(--tbd-bg); color: var(--tbd-ink); border: 1px dashed #e0b44c; border-radius: 4px; padding: 0 6px; font-size: 0.85em; white-space: nowrap; }

/* faq */
details { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; }

/* references */
.refs { font-size: 14px; color: var(--muted); padding-left: 22px; }
.refs li { margin: 6px 0; word-break: break-word; }

/* form */
form.intake { display: grid; gap: 12px; max-width: 640px; }
form.intake label { font-weight: 600; font-size: 15px; display: grid; gap: 4px; }
form.intake input, form.intake select, form.intake textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.form-note { background: var(--tbd-bg); color: var(--tbd-ink); padding: 10px 14px; border-radius: 8px; font-size: 14px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0; background: var(--soft); font-size: 14px; color: var(--muted); }
.site-footer .cols { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-top: 18px; }
.breadcrumb a { color: var(--muted); }
@media (max-width: 640px) { h1 { font-size: 30px; } .hero h1 { font-size: 32px; } h2 { font-size: 23px; } body { font-size: 16px; } }

.form-status { font-size: 15px; margin: 4px 0 0; }
.form-status.ok { color: #1b7a3a; font-weight: 600; }
.form-status.err { color: #b42318; font-weight: 600; }

/* pay form */
form.intake fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: grid; gap: 8px; }
form.intake legend { font-weight: 600; font-size: 15px; padding: 0 4px; }
form.intake fieldset label, form.intake label.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
form.intake fieldset input, form.intake label.check input { margin-top: 4px; padding: 0; }
.pay-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; }
.pay-status { font-size: 16px; font-weight: 600; }

[hidden] { display: none !important; }

/* ===== 2026-11-15 human-readability pass ===== */
/* whole-card links: only the title looks like a link, body text stays readable */
a.card { display: block; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.card h3 { color: var(--brand-2); }
a.card p { color: var(--ink); }
a.card .note { color: var(--muted); }
a.card:hover { border-color: var(--brand-2); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
a.card:hover h3 { text-decoration: underline; }
a.card .more { color: var(--brand-2); font-weight: 600; font-size: 15px; margin: 8px 0 0; }

/* steps: three equal columns on desktop */
.steps { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.steps li { padding: 22px 18px 18px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* badges */
.badge { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.3; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.badge-partner { background: var(--ok-bg); color: var(--ok-ink); }
.badge-dir { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

/* directory notice at the top of public-profile pages */
.dir-notice { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 4px 0 20px; font-size: 15px; color: var(--muted); }
.dir-notice p { margin: 0; flex: 1 1 380px; }
.dir-notice .btn { padding: 8px 14px; font-size: 14px; white-space: nowrap; }

/* hero */
.hero .sub { font-size: 20px; max-width: 700px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--hero-sub); font-size: 15px; }
.hero .trust strong { display: block; color: var(--hero-ink); font-size: 24px; line-height: 1.2; }
.hero .actions { margin: 26px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .actions .btn-outline { margin-left: 0; }

/* section intro */
.section-intro { color: var(--muted); margin-top: -4px; max-width: 760px; }

/* specialist cards with photos */
.doc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
a.doc-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.doc-card:hover { border-color: var(--brand-2); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.doc-card .ph { aspect-ratio: 3 / 4; background: var(--soft); overflow: hidden; display: grid; place-items: center; }
.doc-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
@media (max-width: 560px) {
  .doc-grid { grid-template-columns: 1fr; gap: 12px; }
  a.doc-card { flex-direction: row; }
  .doc-card .ph { width: 96px; flex: none; align-self: flex-start; }
  .doc-card .ph .initials { font-size: 28px; }
  .doc-card .body { padding: 10px 14px; }
}
.doc-card .ph .initials { font-size: 40px; font-weight: 700; color: var(--brand-2); opacity: .55; }
.doc-card .body { padding: 14px 16px 16px; }
.doc-card h3 { margin: 0 0 2px; font-size: 18px; color: var(--brand-2); }
.doc-card .hosp { color: var(--muted); font-size: 14px; margin: 0 0 8px; line-height: 1.4; }
.doc-card .focus { font-size: 15px; margin: 0; line-height: 1.5; }

/* hospital cards */
.hosp-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hosp-grid .card h3 { font-size: 18px; margin-bottom: 4px; }
.hosp-grid .meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }

/* guide pages: key facts + jump links */
.glance { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0 8px; background: var(--surface); }
.glance dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; margin: 0 0 16px; }
.glance dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.glance dd { margin: 2px 0 0; font-size: 16px; line-height: 1.45; }
.glance .row { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.jump span { color: var(--muted); margin-right: 4px; align-self: center; }
.jump a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--ink); background: var(--soft); }
.jump a:hover { border-color: var(--brand-2); color: var(--brand-2); }
h2[id] { scroll-margin-top: 80px; }

/* sticky CTA on phones (guide pages) */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
  .sticky-cta .btn { display: block; text-align: center; }
  body.has-sticky .site-footer { padding-bottom: 90px; }
}

/* name lists (associate chief physicians etc.) */
.name-list { columns: 3 220px; column-gap: 24px; padding: 0; list-style: none; font-size: 15px; }
.name-list li { break-inside: avoid; padding: 3px 0; }
.name-list .zh { color: var(--muted); font-size: 14px; }

/* FAQ on home */
.faq-home details { background: #fff; }
.name-list .zh { margin-left: 6px; }
@media (max-width: 640px) {
  .hero .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .hero .trust strong { font-size: 21px; }
}

/* ===== journey flowchart ===== */
.flow { margin: 22px 0 8px; --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.flow-phase { border-radius: 14px; padding: 18px 20px 22px; }
.flow-phase.online { background: var(--brand-soft); border: 1px solid var(--brand-line); }
.flow-phase.china { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.flow-label { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.flow-label span { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--brand); border-radius: 999px; padding: 3px 12px; margin-right: 8px; }
.flow-phase.china .flow-label span { background: var(--accent); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.flow-steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 14px; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.flow-steps li .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.flow-phase.china .flow-steps li .n { background: var(--accent); }
.flow-steps li strong { font-size: 16px; line-height: 1.35; }
.flow-steps li p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); flex: 1; }
.flow-time { align-self: flex-start; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 2px 10px; }
.flow-phase.china .flow-time { color: var(--accent-ink); background: #fff; }
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -24px; width: 18px; height: 18px; transform: translateY(-50%);
  background: var(--brand-2); -webkit-mask: no-repeat center / 18px 18px var(--arrow); mask: no-repeat center / 18px 18px var(--arrow); }
.flow-phase.china .flow-steps li:not(:last-child)::after { background: var(--accent); }

/* decision */
.flow-decision { position: relative; padding: 34px 0 34px; text-align: center; }
.flow-decision::before, .flow-decision::after { content: ""; position: absolute; left: 50%; width: 2px; background: var(--brand-line); transform: translateX(-50%); }
.flow-decision::before { top: 0; height: 22px; }
.flow-decision::after { bottom: 0; height: 22px; background: var(--accent-line); }
.flow-decision .q { display: inline-block; margin: 0 0 14px; font-weight: 700; color: var(--brand); background: #fff; border: 2px solid var(--brand); border-radius: 999px; padding: 6px 18px; position: relative; z-index: 1; }
.flow-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 640px; margin: 0 auto; text-align: left; }
.branch { border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.branch p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.branch.stay { background: var(--soft); border: 1px dashed var(--brand-line); }
.branch.go { background: #fff; border: 2px solid var(--accent); }
.branch.go strong::after { content: " ↓"; color: var(--accent); }
.branch.stay strong::before { content: "← "; color: var(--muted); }
.flow-foot { margin-top: 12px; }

@media (max-width: 860px) {
  .flow-steps { grid-template-columns: 1fr 1fr; gap: 26px 30px; }
  .flow-steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .flow-phase { padding: 14px 14px 18px; }
  .flow-steps { grid-template-columns: 1fr; gap: 26px; }
  .flow-steps li:nth-child(2)::after { display: block; }
  .flow-steps li:not(:last-child)::after { top: auto; bottom: -23px; right: auto; left: 24px; transform: rotate(90deg); }
  .flow-branches { grid-template-columns: 1fr; }
  .branch.stay strong::before { content: ""; }
}
