/* ==========================================================================
   premium-layer.css — additive refinement layer for the existing VCC site.
   Loaded AFTER app.css on every page. Overrides ONLY typography rhythm,
   table polish and card depth. No layout/selector surgery: a page that
   loads this must render identically in structure, only better in finish.
   ========================================================================== */

:root{
  --pl-font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pl-navy:#0B2545; --pl-teal:#0E5A5A; --pl-orange:#C2410C;
  --pl-ink:#12232E; --pl-muted:#5A6B7B; --pl-line:#E2E8EE;
  --pl-shadow-sm:0 1px 2px rgba(11,37,69,.06), 0 1px 3px rgba(11,37,69,.04);
  --pl-shadow-md:0 4px 12px rgba(11,37,69,.07), 0 2px 4px rgba(11,37,69,.04);
}

/* ---------- typography rhythm ---------- */
body{ font-family:var(--pl-font); color:var(--pl-ink); -webkit-font-smoothing:antialiased; }

.guide-article h2, .guide-body h2{
  font-size:clamp(24px,3.1vw,33px); line-height:1.2; letter-spacing:-.018em;
  font-weight:800; margin:52px 0 14px; color:var(--pl-navy);
  padding-bottom:12px; border-bottom:1px solid var(--pl-line);
}
.guide-article h2:first-child, .guide-body h2:first-child{ margin-top:8px; }
.guide-article h3, .guide-body h3{
  font-size:clamp(18px,2.1vw,21px); line-height:1.32; letter-spacing:-.01em;
  font-weight:700; margin:32px 0 10px; color:var(--pl-navy);
}
.guide-article p, .guide-body p, .guide-article li, .guide-body li{
  font-size:16.5px; line-height:1.72; color:#243642;
}
.guide-article > p:first-of-type, .guide-body > p:first-of-type{
  font-size:18.5px; line-height:1.68; color:#33475b;
}
.guide-article strong, .guide-body strong{ color:var(--pl-navy); font-weight:700; }
.guide-article a, .guide-body a{ color:var(--pl-teal); text-underline-offset:2px; }

/* ---------- hero polish ---------- */
.guide-hero h1{
  font-size:clamp(29px,4.3vw,48px); line-height:1.1; letter-spacing:-.026em;
  font-weight:800; max-width:20ch;
}
.guide-hero .lead{
  font-size:clamp(16px,1.65vw,18.5px); line-height:1.66; max-width:66ch;
  opacity:.94;
}
.guide-hero img{ box-shadow:var(--pl-shadow-md); }
.crumbs{ font-size:13px; letter-spacing:.01em; opacity:.72; }
.crumbs a{ text-decoration:none; }

/* ---------- tables ---------- */
.table-wrap{ border:1px solid var(--pl-line); border-radius:14px; overflow:hidden; box-shadow:var(--pl-shadow-sm); background:#fff; margin:26px 0; }
.itbl{ width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.itbl thead th{
  background:#F4F7FA; color:#31485e; font-size:11.5px; font-weight:800;
  letter-spacing:.075em; text-transform:uppercase; padding:13px 16px;
  border-bottom:1px solid var(--pl-line); text-align:left;
}
.itbl td{ padding:13px 16px; border-bottom:1px solid #EDF1F5; font-size:15px; vertical-align:top; }
.itbl tbody tr:last-child td{ border-bottom:0; }
.itbl tbody tr:nth-child(even){ background:#FAFCFD; }
.itbl tr.tot td{ background:#F1F6F6 !important; font-weight:800; color:var(--pl-navy); border-top:2px solid var(--pl-teal); font-size:15.5px; }
.itbl td.n{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; font-weight:600; }

.price-table{ width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.price-table th{
  background:#F4F7FA; font-size:11.5px; font-weight:800; letter-spacing:.075em;
  text-transform:uppercase; color:#31485e; padding:12px 14px; text-align:left;
  border-bottom:1px solid var(--pl-line);
}

/* ---------- cards ---------- */
.guide-card, .card{
  border:1px solid var(--pl-line); border-radius:14px; background:#fff;
  box-shadow:var(--pl-shadow-sm); transition:box-shadow .18s ease, transform .18s ease;
}
.guide-card:hover, .card:hover{ box-shadow:var(--pl-shadow-md); transform:translateY(-2px); }
.guide-card h3, .card h3{ letter-spacing:-.01em; }

/* ---------- notes / disclosures ---------- */
.note, .disc{
  border-left:3px solid var(--pl-orange); background:#FFF9F3;
  border-radius:0 10px 10px 0; padding:15px 18px; font-size:14.5px;
  line-height:1.62; color:#5a4632;
}
.disc a{ color:var(--pl-orange); }

/* ---------- TOC ---------- */
.toc{
  background:#F7FAFB; border:1px solid var(--pl-line); border-radius:14px;
  padding:18px 22px; font-size:14.5px;
}
.toc a{ color:#31485e; text-decoration:none; }
.toc a:hover{ color:var(--pl-teal); text-decoration:underline; }

/* ---------- buttons ---------- */
.btn, .btn-orange{
  border-radius:10px; font-weight:700; letter-spacing:-.005em;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-orange:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(194,65,12,.24); }

/* ---------- trust strip ---------- */
.trust-strip{ border-radius:12px; letter-spacing:.005em; }

/* ---------- focus accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--pl-teal); outline-offset:2px; border-radius:4px;
}

@media(max-width:768px){
  .guide-article h2, .guide-body h2{ margin-top:38px; font-size:23px; }
  .guide-article p, .guide-body p{ font-size:16px; line-height:1.68; }
  .guide-hero h1{ font-size:27px; }
  .itbl td, .itbl thead th{ padding:11px 12px; }
}
@media(prefers-reduced-motion:reduce){
  *{ transition:none !important; }
  .guide-card:hover, .card:hover, .btn-orange:hover{ transform:none; }
}

/* ---------- dual-currency price display ---------- */
.pc-rmb{ font-variant-numeric:tabular-nums; font-weight:700; white-space:nowrap; }
.pc-usd, .pc-local{
  display:block; font-size:12.5px; line-height:1.45; white-space:nowrap;
  font-variant-numeric:tabular-nums; margin-top:2px;
}
.pc-est{ color:#6B7D8C; font-weight:500; }
.pc-quoted{ color:#0E5A5A; font-weight:600; }
.pc-quoted::after{ content:" hospital quote"; font-size:10.5px; font-weight:500; opacity:.72; letter-spacing:.01em; }
td.num .pc-rmb{ display:block; }
@media(max-width:768px){
  .pc-usd, .pc-local{ font-size:11.5px; }
}

/* ============================================================
   TYPOGRAPHY SYSTEM — SEO/readability tuned
   Onest retained (already loaded, 400-800, good x-height and
   tabular figures). No new font request = no extra latency.
   Changes are metric only: measure, leading, tracking, rhythm.
   ============================================================ */

:root{
  --pl-measure: 68ch;          /* optimal reading measure ~65-75ch */
}

/* Body copy: cap measure, tighten leading for screen reading */
.guide-article p, .guide-body p, .guide-article li, .guide-body li{
  max-width:var(--pl-measure);
  line-height:1.72;
  letter-spacing:-0.003em;
}
.guide-article > p:first-of-type, .guide-body > p:first-of-type{
  line-height:1.62;
  letter-spacing:-0.006em;
}

/* Headings: tighter tracking at display sizes, balanced wrapping */
.guide-article h2, .guide-body h2{
  letter-spacing:-0.021em;
  line-height:1.22;
  margin-top:1.9em;
  margin-bottom:.6em;
  text-wrap:balance;
}
.guide-article h3, .guide-body h3{
  letter-spacing:-0.012em;
  line-height:1.32;
  margin-top:1.5em;
  margin-bottom:.5em;
  text-wrap:balance;
}
.guide-hero h1{
  letter-spacing:-0.027em;
  line-height:1.1;
  text-wrap:balance;
}
.guide-hero .lead{
  line-height:1.55;
  letter-spacing:-0.005em;
  max-width:60ch;
}

/* Tables: tabular figures, right-aligned numerics, readable header */
.itbl th, .price-table th, .itbl td, .price-table td{
  font-variant-numeric:tabular-nums;
}
.itbl thead th, .price-table th{
  letter-spacing:.055em;
  text-transform:uppercase;
  font-weight:700;
}
.itbl td, .price-table td{ line-height:1.5; }

/* Lists: slightly looser to match the new paragraph leading */
.guide-article li, .guide-body li{ margin-bottom:.5em; }
.guide-article li:last-child, .guide-body li:last-child{ margin-bottom:0; }

/* Small print stays legible, never below 12px effective */
.note, .disc, .toc{ line-height:1.62; }

@media(max-width:768px){
  .guide-article p, .guide-body p{ line-height:1.68; }
  .guide-hero .lead{ line-height:1.5; }
}
