/* ==========================================================================
   China Medical Guides — pages.css
   Page-specific compositions: home hero, persona finder, trust bar,
   visa wizard, insurance checker, fee database, estimate cart,
   hospital detail, multi-step form, about.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Home — hero
   The image is a full-bleed background; a warm scrim keeps the headline on a
   calm surface on the left and lets the international department read on the
   right. Everything degrades to plain warm background if the image is absent.
   -------------------------------------------------------------------------- */
.hero {
  background: var(--warm);
  min-height: 0;
  display: block;
}
.hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.4375rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lead);
  margin-bottom: 1.5rem;
}
.hero-badge .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--brand);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.hero-title .accent {
  color: var(--brand);
}

/* Tablet and below: the scrim turns vertical and the building moves up so it
   stays visible beneath the copy. */
@media (max-width: 960px) {
  .hero {
    min-height: 0;
    display: block;
  }
  .hero-title {
    font-size: 2.375rem;
  }
  .hero-sub {
    font-size: 1.0625rem;
  }
}
@media (max-width: 560px) {
  .hero-title {
    font-size: 2.0625rem;
  }
}

/* --------------------------------------------------------------------------
   2. Home — persona finder + search
   -------------------------------------------------------------------------- */
.finder {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 2rem;
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.persona {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.125rem;
  border: 2px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--white);
  text-align: left;
  transition: all var(--dur) var(--ease);
}
.persona:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.persona.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand);
}
.persona .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand);
}
.persona-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.persona-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}
.persona-panel {
  font-size: 0.9375rem;
  color: var(--lead);
  line-height: 1.6;
  padding: 1rem 1.125rem;
  background: var(--warm);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}
.persona-panel[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .persona-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   3. Trust bar
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   4. Home — numbers band
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   5. Visa wizard
   -------------------------------------------------------------------------- */
.wizard {
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
}
.wizard-head {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--rule);
  background: var(--warm);
}
.wizard-body {
  padding: 2rem;
}
.wizard-step + .wizard-step {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.wizard-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.875rem;
}
.wizard-label .num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft-strong);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.duration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.625rem;
}
.duration-btn {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-surface);
  background: var(--white);
  text-align: left;
  transition: all var(--dur) var(--ease);
}
.duration-btn:hover {
  border-color: var(--brand);
}
.duration-btn.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.duration-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.duration-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .duration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .duration-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wizard-result {
  border: 1px solid rgba(50, 104, 185, 0.35);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
}
.wizard-result-head {
  padding: 1.75rem 2rem;
  background: var(--brand-soft);
  border-bottom: 1px solid rgba(50, 104, 185, 0.2);
}
.wizard-result-head .badge {
  margin-bottom: 0.875rem;
}
.wizard-result-body {
  padding: 2rem;
}
.wizard-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--rule);
  margin-block: 1.5rem;
}
@media (max-width: 640px) {
  .wizard-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.click-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.click-steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: var(--lead);
  line-height: 1.6;
}
.click-steps .n {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--brand);
  font-weight: 600;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   6. Insurance checker
   -------------------------------------------------------------------------- */
.checker {
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--white);
  padding: 2rem;
}
.combo {
  position: relative;
}
.combo-list {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  max-height: 20rem;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-pop);
  z-index: 30;
  padding: 0.375rem;
}
.combo-list[hidden] {
  display: none;
}
.combo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-xs);
  text-align: left;
  font-size: 0.9375rem;
  color: var(--ink);
}
.combo-option:hover,
.combo-option.is-active {
  background: var(--warm);
}
.combo-option small {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}
.combo-empty {
  padding: 1rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.verdict {
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.verdict-head {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--warm);
}
.verdict-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--radius-pill);
  margin-top: 0.4375rem;
  flex-shrink: 0;
}
.verdict-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.verdict-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: var(--warm);
  border-radius: var(--radius-sm);
}
.verdict-facts .fact-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.verdict-facts .fact-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.verdict-block-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.hospital-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hospital-bar {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
}
.hospital-bar-name {
  color: var(--lead);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hospital-bar-track {
  height: 8px;
  background: var(--warm-deep);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.hospital-bar-track span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: var(--radius-pill);
}
.hospital-bar-value {
  text-align: right;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Archetype landscape list */
.arch-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.arch-row {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
}
.arch-row:last-child {
  border-bottom: 0;
}
.arch-name {
  color: var(--lead);
  line-height: 1.4;
}
.arch-track {
  height: 10px;
  background: var(--warm);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.arch-track span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--rule-strong);
}
.arch-row.is-top .arch-track span {
  background: var(--brand);
}
.arch-value {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .arch-row {
    grid-template-columns: minmax(0, 1fr) 3rem;
  }
  .arch-track {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. Fee database + estimate cart
   -------------------------------------------------------------------------- */
.fee-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem 7.5rem 3rem;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  transition: background var(--dur) var(--ease);
}
.fee-row:hover {
  background: var(--warm);
}
.fee-row:last-child {
  border-bottom: 0;
}
.fee-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.fee-cat {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1875rem;
}
.fee-price {
  text-align: right;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fee-price small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}
.fee-add {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all var(--dur) var(--ease);
}
.fee-add:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.fee-add .icon {
  width: 1rem;
  height: 1rem;
}
@media (max-width: 760px) {
  .fee-row {
    grid-template-columns: minmax(0, 1fr) 4.5rem 2.5rem;
  }
  .fee-price small {
    display: none;
  }
  .fee-row .fee-cny {
    display: none;
  }
}

.treatment-row {
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
}
.treatment-row + .treatment-row {
  margin-top: 0.75rem;
}
.treatment-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem 9rem 5.5rem 1.5rem;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  list-style: none;
}
.treatment-row summary::-webkit-details-marker {
  display: none;
}
.treatment-row summary:hover {
  background: var(--warm);
}
.treatment-row .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted);
  transition: transform var(--dur) var(--ease);
}
.treatment-row[open] .icon {
  transform: rotate(180deg);
  color: var(--brand);
}
.treatment-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.treatment-specialty {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1875rem;
}
.treatment-price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.treatment-price small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.125rem;
}
.treatment-body {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.treatment-body h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.625rem;
}
.treatment-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  font-size: 0.875rem;
  color: var(--lead);
  line-height: 1.5;
}
.treatment-body li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.treatment-body li span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 900px) {
  .treatment-row summary {
    grid-template-columns: minmax(0, 1fr) 1.5rem;
    gap: 0.75rem;
  }
  .treatment-row summary .treatment-price {
    grid-column: 1;
    text-align: left;
    display: inline;
  }
  .treatment-row summary .treatment-price + .treatment-price {
    margin-left: 1.5rem;
  }
  .treatment-row summary .icon {
    grid-row: 1;
    grid-column: 2;
  }
  .treatment-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

.estimate-cart {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 85;
}
.estimate-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.8125rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
}
.estimate-pill:hover {
  background: #000;
}
.estimate-pill .count {
  background: var(--brand);
  border-radius: var(--radius-pill);
  padding: 0.0625rem 0.5rem;
  font-size: 0.75rem;
}
.estimate-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(24rem, calc(100vw - 3rem));
  max-height: 28rem;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  padding: 1.25rem;
}
.estimate-panel[hidden] {
  display: none;
}
.estimate-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
}
.estimate-item-name {
  color: var(--lead);
  line-height: 1.4;
}
.estimate-item-price {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.estimate-remove {
  color: var(--faint);
  margin-left: 0.375rem;
}
.estimate-remove:hover {
  color: var(--danger);
}
.estimate-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.875rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--ink);
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   8. Hospital detail
   -------------------------------------------------------------------------- */
.hospital-hero {
  background: var(--warm);
  border-bottom: 1px solid var(--rule);
  padding-block: 2.5rem;
}
.hospital-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 3rem;
  align-items: start;
}
.hospital-media {
  border-radius: var(--radius-surface);
  overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 21 / 9;
  background: var(--white);
}
.hospital-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hospital-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.sticky-card {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
@media (max-width: 1000px) {
  .hospital-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .sticky-card {
    position: static;
  }
  .hospital-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dept-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  list-style: none;
}
.dept-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--lead);
  line-height: 1.5;
}
.dept-list .icon {
  width: 1rem;
  height: 1rem;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .dept-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.doctor-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.doctor-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft-strong);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Multi-step form
   -------------------------------------------------------------------------- */
.form-stepper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.form-stepper-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--white);
}
.form-stepper-item .num {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--warm-deep);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
}
.form-stepper-item.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.form-stepper-item.is-active .num {
  background: var(--brand);
  color: #fff;
}
.form-stepper-item.is-done {
  color: var(--success);
  border-color: rgba(46, 125, 91, 0.35);
}
.form-stepper-item.is-done .num {
  background: var(--success);
  color: #fff;
}
.form-step[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   10. About / team
   -------------------------------------------------------------------------- */
.team-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.team-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  background: var(--warm-deep);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.value-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .value-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Honest position grid */
.position-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.position-item {
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--white);
}
.position-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.position-item h3 .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--brand);
  flex-shrink: 0;
}
.position-item p {
  font-size: 0.875rem;
  color: var(--lead);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .position-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Source citations */
.source-line {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 0.375rem;
}
.source-line .icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* --------------------------------------------------------------------------
   11. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .to-top,
  .estimate-cart,
  .cta-band,
  .filter-bar {
    display: none !important;
  }
  body {
    font-size: 11pt;
    color: #000;
  }
  .card,
  .table-wrap,
  .wizard,
  .checker {
    border-color: #999;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
  .section {
    padding-block: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   12. Article hero image — cap the height so a wide cover does not dominate
   -------------------------------------------------------------------------- */
#articleHero {
  max-height: 22rem;
}

/* A scrolling wrapper inside long-form prose should not add a card border —
   it only needs to keep wide tables from overflowing on narrow screens. */
.prose-medical .table-wrap {
  border: 0;
  border-radius: 0;
  background: none;
  margin-block: 1.75rem;
}
.prose-medical .table-wrap table {
  margin-block: 0;
  min-width: 30rem;
}


/* Closing action of the hero copy block. Left-aligned with the text column so
   it reads as the last line of the pitch rather than a floating button. */
.hero-cta-row {
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   Eight-step process grid. Replaced the old four-step strip: the detail is the
   point, so each step carries three concrete items rather than a slogan.
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.process-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 1.375rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.process-num {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.01em;
}
.process-title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}
.process-list {
  list-style: none;
  margin: 0.125rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--lead);
}
.process-list .icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.1875rem;
  color: var(--brand);
}
@media (max-width: 1100px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .process-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Short laptop viewports (1280×720, 1366×768) were the worst case: the copy
   block alone pushed the hero past the fold. Tighten the type on height, not
   width, so the next section stays visible. */
@media (min-width: 961px) and (max-height: 720px) {
  .hero-title {
    font-size: 2.375rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-badge {
    margin-bottom: 1.25rem;
  }
  .hero-cta-row {
    margin-top: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Price comparison — China vs US vs UK.
   One card: a header strip carrying the scheduling facts, the table itself,
   and the sourcing note. The China column and the saving column are the two
   things a reader scans for, so only those get emphasis.
   -------------------------------------------------------------------------- */
.price-compare {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  padding: 1.375rem 1.75rem;
  background: linear-gradient(180deg, rgba(50, 104, 185, 0.055), rgba(50, 104, 185, 0.015));
  border-bottom: 1px solid var(--rule);
}
.pc-hub {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
}
.pc-hub-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand);
}
.pc-hub-sub {
  font-size: 0.75rem;
  color: var(--muted);
}
.pc-facts {
  display: flex;
  gap: 2.5rem;
}
.pc-fact {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.pc-fact-label {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.pc-fact-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

/* the card already draws the frame, so the scroll wrapper stays invisible */
.pc-scroll {
  border: 0;
  border-radius: 0;
  background: none;
  margin: 0;
}
.pc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 38rem;
}
.pc-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--warm);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.pc-table tbody th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  border-top: 1px solid var(--rule);
}
.pc-table tbody td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--lead);
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--rule);
  white-space: nowrap;
}
.pc-table tbody tr:hover th,
.pc-table tbody tr:hover td {
  background: rgba(50, 104, 185, 0.028);
}
/* the two columns a reader actually scans for */
.pc-table .pc-cn {
  background: rgba(50, 104, 185, 0.06);
  color: var(--brand);
  font-weight: 600;
}
.pc-table thead th.pc-cn {
  color: var(--brand);
  background: rgba(50, 104, 185, 0.1);
}
.save-pill {
  display: inline-block;
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--radius-pill);
  background: rgba(46, 125, 91, 0.11);
  color: var(--success);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pc-note {
  margin: 0;
  padding: 1rem 1.75rem 1.25rem;
  border-top: 1px solid var(--rule);
  background: var(--warm);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}
.pc-note strong {
  color: var(--lead);
}
@media (max-width: 720px) {
  .pc-head {
    padding: 1.125rem 1.25rem;
  }
  .pc-facts {
    gap: 1.75rem;
  }
  .pc-note {
    padding: 0.875rem 1.25rem 1.125rem;
  }
}

/* The comparison table scrolls sideways on phones; say so rather than letting
   a clipped column imply the data ends there. */
.pc-scroll-hint {
  display: none;
}
@media (max-width: 760px) {
  .pc-scroll-hint {
    display: block;
    margin: 0;
    padding: 0.5rem 1.25rem;
    background: var(--warm);
    border-bottom: 1px solid var(--rule);
    font-size: 0.75rem;
    color: var(--muted);
  }
}

/* The header strip and the note set the card's text inset; give the outer table
   cells the same inset so every line in the card starts on one left edge. */
.pc-table thead th:first-child,
.pc-table tbody th {
  padding-left: 1.75rem;
}
.pc-table thead th:last-child,
.pc-table tbody td:last-child {
  padding-right: 1.75rem;
}
@media (max-width: 720px) {
  .pc-table thead th:first-child,
  .pc-table tbody th {
    padding-left: 1.25rem;
  }
  .pc-table thead th:last-child,
  .pc-table tbody td:last-child {
    padding-right: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Hospital profile — one hospital, shown properly.
   The directory below lists 25; this block exists so a reader can see what a
   single one actually looks like before they start comparing.
   -------------------------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.profile-media {
  position: relative;
  margin: 0;
  background: var(--warm-deep);
  min-height: 22rem;
}
.profile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-body {
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4375rem;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.profile-name-alt {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.profile-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--lead);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1.125rem;
  border-block: 1px solid var(--rule);
}
.pf-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
}
.pf-stat-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.pf-stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.profile-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.profile-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--lead);
}
.profile-points .icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.1875rem;
  color: var(--brand);
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.25rem;
}
@media (max-width: 1000px) {
  .profile {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .profile-body {
    padding: 1.5rem 1.375rem 1.375rem;
  }
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
[data-locale="zh-cn"] .pf-stat-label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.75rem;
}

/* Published direct-billing board — a name list, not a logo wall: we have no
   right to the marks, and a plain list reads as a fact rather than a claim. */
.profile-insurers {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--rule);
}
.profile-insurers-label {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.profile-insurers-label .icon {
  width: 1rem;
  height: 1rem;
  color: var(--success);
}
.profile-insurers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.ins-chip {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-chip);
  background: var(--warm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--lead);
  white-space: nowrap;
}
.ins-chip-more {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
  font-weight: 400;
}
.profile-insurers-note {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}

/* A single trust statement in a full-width strip reads as a footnote to the
   page rather than a centred plea. */
.notice-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}
.notice-strip-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--lead);
}
.notice-strip-text .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Deposit stages as one strip instead of four cards. The stages are a
   sequence, so a row reads better than a grid — and it costs a quarter of
   the vertical space, which the pricing section badly needed.
   -------------------------------------------------------------------------- */
.stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
}
.stepper-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
}
.stepper-item + .stepper-item {
  border-left: 1px solid var(--rule);
}
.stepper-num {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.stepper-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.stepper-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.stepper-tag {
  font-size: 0.75rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stepper-item:nth-child(3) {
    border-left: 0;
  }
  .stepper-item:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}
@media (max-width: 560px) {
  .stepper {
    grid-template-columns: minmax(0, 1fr);
  }
  .stepper-item + .stepper-item {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

/* --------------------------------------------------------------------------
   FAQ in two columns. Ten questions stacked was the longest block on the page;
   side by side it costs roughly half the height and still reads top-to-bottom
   within each column.
   -------------------------------------------------------------------------- */
.faq-grid .accordion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  align-items: start;
}
.faq-grid .acc-item {
  break-inside: avoid;
}
@media (max-width: 900px) {
  .faq-grid .accordion {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Source line for a cited figure — small, but present and clickable, so the
   claim can be checked rather than taken on trust. */
.profile-source {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: -0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.profile-source .icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}
.profile-source a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.profile-source a:hover {
  color: var(--brand);
}



/* --------------------------------------------------------------------------
   Full-bleed hero. The photograph runs edge to edge but sits at reduced
   opacity over the warm page colour, so the copy stays fully legible without
   a heavy scrim hiding the ward signage behind it.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--warm);
  border-bottom: 1px solid var(--rule);
  min-height: clamp(30rem, 68vh, 40rem);
  display: flex;
  align-items: center;
}
.hero picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  opacity: 0.55;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    96deg,
    rgba(247, 247, 244, 0.9) 0%,
    rgba(247, 247, 244, 0.84) 26%,
    rgba(247, 247, 244, 0.64) 44%,
    rgba(247, 247, 244, 0.3) 60%,
    rgba(247, 247, 244, 0.06) 78%,
    rgba(247, 247, 244, 0) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  padding-block: 4.5rem;
}
.hero .hero-badge {
  margin-bottom: 1.5rem;
}
.hero .hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.hero .hero-sub {
  margin: 1.5rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--lead);
  max-width: 34rem;
}
.hero .hero-cta-row {
  margin-top: 2.25rem;
}
@media (max-width: 1200px) {
  .hero .hero-title { font-size: 2.25rem; }
}
@media (max-width: 960px) {
  .hero {
    min-height: 0;
    display: block;
  }
  .hero-bg { opacity: 0.42; object-position: 58% 45%; }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(247, 247, 244, 0.95) 0%,
      rgba(247, 247, 244, 0.9) 34%,
      rgba(247, 247, 244, 0.74) 58%,
      rgba(247, 247, 244, 0.4) 82%,
      rgba(247, 247, 244, 0.24) 100%
    );
  }
  .hero-content { max-width: none; padding-block: 3.5rem 5rem; }
  .hero .hero-title { font-size: 2rem; }
}

/* --------------------------------------------------------------------------
   Specialty guides. Replaces the image-tile grid: each tile now leads to a
   written guide for that condition rather than to a filtered hospital list.
   -------------------------------------------------------------------------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem 1.375rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
}
.guide-card-icon {
  display: grid;
  place-items: center;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 0.875rem;
  background: rgba(50, 104, 185, 0.09);
  color: var(--brand);
  margin-bottom: 0.25rem;
}
.guide-card-icon .icon {
  width: 1.625rem;
  height: 1.625rem;
  stroke-width: 1.75;
}
.guide-card-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.guide-card-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--lead);
}
.guide-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  margin-top: auto;
  padding-top: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}
.guide-card-more .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.22s ease;
}
.guide-card:hover .guide-card-more .icon {
  transform: translateX(3px);
}
[data-locale="zh-cn"] .guide-card-title {
  font-size: 1.125rem;
  line-height: 1.4;
}
@media (max-width: 1000px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Guides hub — grouped link lists rather than cards: there are nineteen
   entries, and a scannable list beats a wall of tiles at that count.
   -------------------------------------------------------------------------- */
.guide-group {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--rule);
}
.guide-group:first-of-type { margin-top: 0; }
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
}
.guide-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.125rem 2.25rem 1.125rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.guide-row:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.guide-row-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.guide-row-desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--lead);
}
.guide-row-more {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  color: var(--brand);
}
.guide-row-more .icon { width: 1rem; height: 1rem; }
@media (max-width: 860px) {
  .guide-list { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Preparation page. The checklist is the centrepiece, so it gets check marks
   rather than browser bullets; the callout carries the one rule that matters.
   -------------------------------------------------------------------------- */
.check-list {
  list-style: none;
  margin: 0.875rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--lead);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.4375rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.check-list strong {
  color: var(--ink);
}
/* Scam signals get a cross, not a tick — the mark has to agree with the meaning */
.check-list.is-danger li::before {
  top: 0.6875rem;
  width: 0.75rem;
  height: 2px;
  border: 0;
  background: var(--danger);
  transform: rotate(45deg);
  box-shadow: none;
}
.check-list.is-danger li::after {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.6875rem;
  width: 0.75rem;
  height: 2px;
  background: var(--danger);
  transform: rotate(-45deg);
}
.callout {
  padding: 1.125rem 1.375rem;
  background: rgba(50, 104, 185, 0.06);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-surface) var(--radius-surface) 0;
}
.callout p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--lead);
}
.callout strong { color: var(--ink); }
/* the tables on this page sit inside prose, so match its rhythm */
#checklist .table, #records .table { font-size: 0.875rem; }
#checklist .table td:last-child, #records .table td:last-child { text-align: left; }

/* The lead category gets cards; the two supporting categories are compact rows,
   so the page reads as one primary path with two annexes rather than a list. */
.guide-group-lead { margin-top: 0; }
.guide-tier { margin-top: 3.25rem; }
@media (max-width: 620px) {
  .guide-tier { margin-top: 2.5rem; }
}

/* --------------------------------------------------------------------------
   Routing cards. Sits directly under the hero so a patient can take one of
   the three paths without scrolling or reading anything else first.
   -------------------------------------------------------------------------- */
.section-tight { padding-block: 2.5rem; }
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.route-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.75rem 1.625rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.route-q {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.route-a {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--lead);
}
.route-go {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand);
}
.route-go .icon { width: 1rem; height: 1rem; transition: transform 0.22s ease; }
.route-card:hover .route-go .icon { transform: translateX(3px); }
[data-locale="zh-cn"] .route-q { font-size: 1.3125rem; line-height: 1.4; }
@media (max-width: 860px) {
  .route-grid { grid-template-columns: minmax(0, 1fr); }
  .section-tight { padding-block: 1.75rem; }
}

/* Department index on the hospitals page. Replaces the retired specialties
   page; only departments with at least one hospital are listed. */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.dept-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-surface);
  font-size: 0.875rem;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.dept-chip:hover { border-color: var(--brand); }
.dept-chip-name { color: var(--ink); }
.dept-chip:hover .dept-chip-name { color: var(--brand); }
.dept-chip-count {
  flex: none;
  min-width: 1.75rem;
  text-align: center;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  background: rgba(50, 104, 185, 0.08);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Jump nav for long reference pages. The anchors already existed; nothing
   linked to them, so a 10,000-character page had no way in.
   -------------------------------------------------------------------------- */
.jump-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.jump-nav a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0.125rem 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-surface);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.jump-nav a:hover { border-color: var(--brand); transform: translateY(-2px); }
.jump-num {
  grid-row: 1 / 3;
  align-self: start;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: rgba(50, 104, 185, 0.09);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 700;
}
.jump-nav a > :nth-child(2) {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.jump-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--lead);
}
@media (max-width: 860px) {
  .jump-nav { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Wide comparison tables become stacked cards below 700px. A four-column
   price grid on a phone forces horizontal swiping on the one number the
   reader came for; as cards each row keeps its label and reads top to bottom.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .pc-table, .table-compare { display: block; min-width: 0; border: 0; }
  .pc-table thead, .table-compare thead { display: none; }
  .pc-table caption, .table-compare caption { display: block; margin-bottom: 0.75rem; text-align: left; }
  .pc-table tbody, .table-compare tbody { display: block; }
  .pc-table tr, .table-compare tr {
    display: block;
    padding: 0.875rem 1rem;
    margin-bottom: 0.625rem;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-card);
  }
  .pc-table tr:last-child, .table-compare tr:last-child { margin-bottom: 0; }
  .pc-table th, .pc-table td,
  .table-compare th, .table-compare td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    width: auto;
    padding: 0.25rem 0;
    border: 0;
    text-align: right;
  }
  .pc-table tr > th[scope="row"], .table-compare td.cell-strong {
    display: block;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 0.5rem;
    margin-bottom: 0.375rem;
    border-bottom: 1px solid var(--rule);
  }
  .pc-table td::before, .table-compare td::before,
  .pc-table td.pc-save::before {
    content: attr(data-label);
    flex: none;
    font-size: 0.8125rem;
    color: var(--muted);
    text-align: left;
  }
  /* the China column is the one being compared against — keep it legible */
  .pc-table td.pc-cn, .table-compare td:nth-child(2) { font-weight: 600; color: var(--ink); }
  .table-compare td.cell-strong::before { content: none; }
}
@media (max-width: 700px) {
  .table-wrap:has(.pc-table), .table-wrap:has(.table-compare) { overflow-x: visible; }
}
