/* ==========================================================================
   VCC — premium-v3.css
   Layered AFTER app.css and premium-v2.css. Loaded only by the homepage.
   Purpose: one disciplined orange, a restrained hero, a single lead-gen spine.
   Palette contract (see /assets/brand/README.md):
     teal #0E5A5A · navy #0B2545 · action #9E3608 · accent #E36414 (mark only)
   ========================================================================== */

:root{
  --v3-action:#9E3608;
  --v3-action-hover:#8A2F07;
  --v3-teal:#0E5A5A;
  --v3-navy:#0B2545;
  --v3-accent:#E36414;
  --v3-ink-2:#40566E;
  --v3-rule:rgba(11,37,69,.10);
  --v3-paper:#FBFCFD;
}

/* ---------- 1. ONE ORANGE RULE -------------------------------------------
   Every interactive element uses the action orange. No peach, no bright
   orange on a control anywhere on the page. */

.site-header .btn-primary,
.site-header .btn,
.site-header a.cta{
  background:var(--v3-action) !important;
  color:#fff !important;
  border:1px solid var(--v3-action) !important;
  font-weight:700 !important;
  letter-spacing:.01em;
  box-shadow:0 1px 2px rgba(11,37,69,.18);
}
.site-header .btn-primary:hover,
.site-header .btn:hover,
.site-header a.cta:hover{
  background:var(--v3-action-hover) !important;
  border-color:var(--v3-action-hover) !important;
}

/* ---------- 2. HEADER: calmer, taller, real lockup ---------------------- */

.site-header{background:var(--v3-navy)}
.site-header .container{min-height:70px}
.brand{font-size:1.125rem;letter-spacing:-.015em;gap:11px}
.brand img.brand-mark{
  width:42px;height:42px;display:block;flex:0 0 auto;
}
.brand .sub{
  font-size:0.6875rem;letter-spacing:.13em;color:#B8CBDB;font-weight:600;
  margin-top:2px;
}

/* ---------- 3. HERO: premium restraint ---------------------------------
   Kills the peach headline highlight and the peach radial wash that made
   the top of the page read generic. Replaces decoration with a measured
   two-column lead-gen balance. */

.hero{
  background:
    radial-gradient(760px 340px at 88% -8%, rgba(14,90,90,.55), transparent 62%),
    linear-gradient(168deg,#0B2545 0%,#0E2E52 58%,#0A2038 100%);
  padding:76px 0 68px;
}
.hero::after{display:none}            /* remove the orange wash entirely */

.hero-badge{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16);
  color:#CFE0EE;font-size:.75rem;font-weight:600;
  padding:6px 13px;letter-spacing:.03em;margin-bottom:24px;
}

.hero h1{
  font-size:2.875rem;line-height:1.13;letter-spacing:-.028em;
  max-width:18ch;font-weight:800;
}
.hero h1 .hl{color:#8FD3D3;text-decoration:none}   /* teal, not peach */

.hero p.lead{
  font-size:1.0625rem;line-height:1.62;color:#B9CBDB;
  max-width:52ch;margin:20px 0 30px;
}

/* single primary action, visually dominant */
.hero-ctas{align-items:center;gap:14px}
.hero-ctas .btn-orange,
.hero-ctas .btn-primary,
.hero-ctas a.btn-primary{
  background:var(--v3-action)!important;border:1px solid var(--v3-action)!important;
  color:#fff!important;font-weight:700!important;font-size:.9375rem;
  padding:13px 24px!important;border-radius:10px!important;
  box-shadow:0 6px 18px rgba(158,54,8,.28);
  transition:background .16s ease,transform .16s ease;
}
.hero-ctas .btn-orange:hover,
.hero-ctas .btn-primary:hover{background:var(--v3-action-hover)!important;transform:translateY(-1px)}

/* the secondary path is a quiet outline, not a competing solid button */
.hero-ctas .btn-ghost,
.hero-ctas .btn:not(.btn-orange):not(.btn-primary),
.hero-ctas a:not(.btn-orange):not(.btn-primary){
  background:transparent!important;border:1px solid rgba(255,255,255,.22)!important;
  color:#DCE8F2!important;font-weight:600!important;font-size:.9375rem;
  padding:12px 20px!important;border-radius:10px!important;
}
.hero-ctas .btn-ghost:hover,
.hero-ctas .btn:not(.btn-orange):not(.btn-primary):hover{
  background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.36)!important;
}

/* stats: quieter numbers, real rules, no dark slab */
.hero-stats{
  background:transparent;
  border-top:1px solid rgba(255,255,255,.14);
  border-radius:0;
  padding:26px 0 0;
  gap:0;
  grid-template-columns:repeat(4,1fr);
}
.hero-stats .stat{padding:0 20px;border-left:1px solid rgba(255,255,255,.10)}
.hero-stats .stat:first-child{padding-left:0;border-left:0}
.hero-stats .stat .n{
  font-size:1.5rem;letter-spacing:-.025em;color:#fff;font-weight:800;line-height:1.15;
}
.hero-stats .stat .l{
  font-size:.75rem;color:#93AAC0;margin-top:4px;line-height:1.4;
}

/* reassurance microcopy under the primary CTA — the risk-reversal line */
.v3-reassure{
  display:flex;align-items:center;gap:9px;
  font-size:.875rem;color:#B4C8DA;margin:16px 0 0;letter-spacing:.005em;
}
.v3-reassure svg{flex:0 0 auto;color:#7FC4A8}

/* ---------- 4. LEAD-GEN SPINE ------------------------------------------
   A quiet, high-contrast band directly under the hero whose only job is to
   capture the enquiry. One field group, one button, one promise. */

.v3-lead{
  background:var(--v3-paper);
  border-bottom:1px solid var(--v3-rule);
  padding:34px 0;
}
.v3-lead__inner{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);
  gap:38px;align-items:center;
}
.v3-lead__copy h2{
  font-size:1.25rem;line-height:1.3;letter-spacing:-.015em;
  color:var(--v3-navy);margin:0 0 6px;font-weight:800;
}
.v3-lead__copy p{margin:0;font-size:.875rem;color:var(--v3-ink-2);line-height:1.55;max-width:38ch}
.v3-lead__form{display:flex;gap:10px;flex-wrap:wrap}
.v3-lead__form input{
  flex:1 1 210px;min-width:0;
  padding:13px 15px;border:1px solid #CBD8E4;border-radius:10px;
  font:inherit;font-size:.9375rem;background:#fff;color:var(--v3-navy);
}
.v3-lead__form input:focus{
  outline:none;border-color:var(--v3-teal);
  box-shadow:0 0 0 3px rgba(14,90,90,.13);
}
.v3-lead__form button{
  flex:0 0 auto;background:var(--v3-action);color:#fff;border:1px solid var(--v3-action);
  padding:13px 26px;border-radius:10px;font:inherit;font-size:.9375rem;font-weight:700;
  cursor:pointer;transition:background .16s ease;
}
.v3-lead__form button:hover{background:var(--v3-action-hover)}
.v3-lead__note{
  flex:1 1 100%;font-size:.75rem;color:#6B8098;margin:2px 0 0;
}

/* ---------- 5. TRUST STRIP --------------------------------------------- */
.v3-trust{
  border-bottom:1px solid var(--v3-rule);background:#fff;
}
.v3-trust__row{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 34px;
  padding:18px 0;font-size:.8125rem;color:#516579;
}
.v3-trust__row .t{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.v3-trust__row .t svg{flex:0 0 auto;color:var(--v3-teal)}

/* ---------- 6. SECTION RHYTHM ------------------------------------------ */
.v3-sec{padding:64px 0}
.v3-sec--tight{padding:48px 0}
.v3-sec--paper{background:var(--v3-paper)}
.v3-eyebrow{
  font-size:.6875rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;
  color:var(--v3-teal);margin:0 0 10px;
}
.v3-h2{
  font-size:1.875rem;line-height:1.22;letter-spacing:-.022em;
  color:var(--v3-navy);font-weight:800;margin:0 0 12px;max-width:24ch;
}
.v3-sub{font-size:1rem;line-height:1.62;color:var(--v3-ink-2);max-width:62ch;margin:0 0 30px}

/* ---------- 7. RESPONSIVE ---------------------------------------------- */
@media (max-width:860px){
  .v3-lead__inner{grid-template-columns:1fr;gap:20px}
  .hero h1{font-size:2.125rem;max-width:none}
  .v3-h2{font-size:1.5rem}
  .hero-stats{grid-template-columns:repeat(2,1fr);gap:20px 0}
  .hero-stats .stat:nth-child(3){padding-left:0;border-left:0}
}
@media (max-width:560px){
  .hero{padding:52px 0 46px}
  .hero h1{font-size:1.75rem}
  .v3-sec{padding:44px 0}
  .v3-lead__form button{flex:1 1 100%}
  .hero-ctas .btn-primary,.hero-ctas a:not(.btn-primary){width:100%;justify-content:center;text-align:center}
}

/* quiet third path — keeps one primary CTA while preserving discoverability */
.v3-herolinks{
  font-size:.8125rem;color:#8FA6BC;margin:20px 0 0;letter-spacing:.005em;
}
.v3-herolinks a{color:#C3D4E4;text-decoration:none;border-bottom:1px solid rgba(195,212,228,.35)}
.v3-herolinks a:hover{color:#fff;border-bottom-color:#fff}

/* ---------- 9. PROOF STRIP (compressed replacement for 3 tables) -------- */
.v3-proof{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:#E3E8EE;border:1px solid #E3E8EE;border-radius:14px;overflow:hidden;
  margin:26px 0 0;border-bottom:0;
}
.v3-proof-item{background:#fff;padding:22px 20px;display:block}
.v3-proof-item b{display:block;font-size:.9375rem;color:#0B2545;letter-spacing:-.005em;margin-bottom:7px;font-weight:700}
.v3-proof-item span{display:block;font-size:.8125rem;line-height:1.5;color:#54687D}
.v3-proof-more{font-size:.875rem;color:#54687D;margin:22px 0 0}
.v3-proof-more a{color:#0E5A5A;text-decoration:none;border-bottom:1px solid rgba(14,90,90,.3)}
.v3-proof-more a:hover{color:#0B2545;border-bottom-color:#0B2545}
@media (max-width:860px){.v3-proof{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.v3-proof{grid-template-columns:1fr}}

/* ---------- 10. HEADER NAV GEOMETRY -------------------------------------
   Problem (measured 2026-11-03 @1280px): 8 links + CTA needed 830px of text
   inside an 878px track with zero slack, so "How it works", "Cancer Guide",
   "All 24 procedure costs" and "US vs China" each WRAPPED to two lines.
   That left links on three baselines (top 3 / 5 / 16px) and heights 38/61/65.
   Rule: labels never wrap, never overflow, and the nav never disappears
   without the mobile menu taking over (verified 768->1440px).               */
.site-header .nav{flex-wrap:nowrap;gap:0;min-width:0;justify-content:flex-end}
.site-header .nav a{white-space:nowrap;flex:0 0 auto;line-height:1.15;
  padding:8px 8px;font-size:.8125rem;display:inline-flex;align-items:center;
  justify-content:center;align-self:center;height:auto}
.site-header .nav a.cta{flex:0 0 auto;white-space:nowrap;padding:9px 12px;
  font-size:.8125rem;line-height:1.15;margin-left:6px}
.site-header .brand{flex:0 0 auto;min-width:0}
.site-header .brand .sub{white-space:nowrap}
@media (max-width:1200px){ .site-header .brand .sub{display:none} }

/* Progressive label shedding as the track narrows. Every hidden item stays
   reachable via the footer and the mobile menu below 950px. */
@media (max-width:1120px){
  .site-header .nav a[href="/procedure-costs-china"]{display:none}
}
@media (max-width:1040px){
  .site-header .nav a[href="/dental-implants-china-costs"]{display:none}
  .site-header .nav a[href="/faq"]{display:none}
}
/* Hand off to the mobile menu ABOVE the point where the desktop nav is
   hidden, so there is no width at which neither is available. */
@media (max-width:949px){
  .site-header .nav{display:none}
  /* opening state must override the collapse, or the burger is a dead button */
  .site-header .nav.open{
    display:flex;flex-direction:column;align-items:stretch;
    position:absolute;left:0;right:0;top:100%;
    background:#0B2545;padding:10px 16px 16px;gap:2px;
    border-top:1px solid rgba(255,255,255,.14);
    box-shadow:0 18px 40px rgba(0,0,0,.45);z-index:80}
  .site-header .nav.open a{
    display:flex;justify-content:flex-start;white-space:normal;
    padding:11px 4px;font-size:.9375rem;
    border-bottom:1px solid rgba(255,255,255,.08)}
  .site-header .nav.open a:last-child{border-bottom:0}
  .site-header .nav.open a.cta{
    justify-content:center;margin:10px 0 0;border-radius:10px;
    background:var(--v3-action)!important;border:1px solid var(--v3-action)!important;
    color:#fff!important}
  .site-header{position:relative}
}

/* ---------- 11. MOBILE OVERFLOW / GRID SHRINK FIX ------------------------
   Measured 2026-11-03 @390px: .guide-article rendered 432-499px wide inside a
   390px viewport on cardiac-bypass, chinese-medical-documents, hip-replacement,
   feasibility-report. Cause: a 1-col grid item still has min-width:auto, so it
   refuses to shrink below its longest unbreakable content. Also .table-wrap in
   premium-layer.css uses overflow:hidden, which CLIPS wide price tables instead
   of letting them scroll (raffles-beijing table = 569px in a 390px page).      */
.guide-grid{min-width:0}
.guide-grid > *{min-width:0}
.guide-article,.guide-body{min-width:0;max-width:100%}
.guide-article p,.guide-article li,.guide-article h2,.guide-article h3,
.guide-article td,.guide-article th{overflow-wrap:anywhere}
@media (max-width:820px){
  .guide-grid{grid-template-columns:1fr}
  .guide-article,.guide-body{max-width:100%}
  /* long tokens (prices, URLs, INN drug names) must be able to break */
  .guide-article *,.guide-body *{min-width:0}
  .table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch;max-width:100%}
  .v2-table{min-width:0}
}
/* any wide data table scrolls inside its own box rather than blowing out the page */
.table-wrap{overflow-x:auto!important}

/* ---------- 12. HERO / TABLE POLISH -------------------------------------
   Measured 2026-11-03 @1440: h1 width 546px at 46px => "answer." orphaned on
   its own line. Price columns all text-align:left => figures can't be scanned
   by magnitude in a comparison table (the whole point of the table).          */
/* keep the headline from leaving a single orphaned word on the last line */
.hero h1{max-width:22ch;text-wrap:balance}
@media (min-width:900px){ .hero h1{max-width:20ch} }

/* numeric columns: right-align + tabular figures so magnitudes line up */
.price-table td:nth-child(2),.price-table td:nth-child(3),.price-table td:nth-child(4),
.price-table th:nth-child(2),.price-table th:nth-child(3),.price-table th:nth-child(4){
  text-align:right;font-variant-numeric:tabular-nums}
.price-table td.n{text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:720px){
  .price-table td:nth-child(2),.price-table td:nth-child(3),.price-table td:nth-child(4),
  .price-table th:nth-child(2),.price-table th:nth-child(3),.price-table th:nth-child(4){text-align:left}
}
/* hero micro-links: make them read as links, not body text */
.v3-herolinks{opacity:1}
.v3-herolinks a{color:#FFD9B0;text-decoration:underline;text-underline-offset:3px;
  text-decoration-thickness:1px;font-weight:600}
.v3-herolinks a:hover{color:#fff}
/* the footnote under the comparison table is dense legal grey - give it air */
.v3-pricenote,.price-note{line-height:1.7}

/* ============================================================
   13. HERO PROOF PANEL — document specimen beside hero copy
   Fills the empty right column; gives the page a real focal
   point that is evidence, not decoration.
   ============================================================ */
.v2-hero-grid { display:grid; grid-template-columns:1.32fr .68fr; gap:44px; align-items:center; }
.v2-hero-copy { min-width:0; }
.v2-hero-doc { margin:0; min-width:0; }
.v2-hero-doc img {
  display:block; width:100%; height:auto; border-radius:12px;
  box-shadow:0 26px 60px -18px rgba(2,10,24,.55), 0 0 0 1px rgba(255,255,255,.10);
  transform:rotate(-.6deg);
}
.v2-hero-doc-link { display:block; position:relative; text-decoration:none; }
.v2-hero-doc-link:focus-visible { outline:2px solid #FDBA74; outline-offset:4px; border-radius:12px; }
.v2-hero-doc-zoom {
  position:absolute; right:10px; bottom:10px; font-size:11px; font-weight:700;
  letter-spacing:.3px; color:#0B2545; background:#FDBA74; padding:5px 10px;
  border-radius:7px; opacity:0; transition:opacity .18s ease; pointer-events:none;
}
.v2-hero-doc-link:hover .v2-hero-doc-zoom,
.v2-hero-doc-link:focus-visible .v2-hero-doc-zoom { opacity:1; }
@media (hover:none){ .v2-hero-doc-zoom { opacity:1; } }
.v2-hero-doc figcaption {
  margin-top:14px; font-size:11.5px; line-height:1.55; letter-spacing:.2px;
  color:rgba(255,255,255,.74); padding-left:2px; font-size:12px;
}
@media (max-width:980px){
  .v2-hero-grid { grid-template-columns:1fr; gap:30px; }
  .v2-hero-doc { order:2; max-width:560px; }
  .v2-hero-doc img { transform:none; }
}

/* ============================================================
   14. PROOF DOCUMENT FIGURE — hospital source documents
   Shown mid-article as evidence. Click to view full size.
   ============================================================ */
.v3-proof-doc { margin:34px 0 38px; max-width:840px; }
.v3-proof-doc-link { display:block; position:relative; text-decoration:none; border-radius:10px; }
.v3-proof-doc-link:focus-visible { outline:2px solid #0E5A5A; outline-offset:4px; }
.v3-proof-doc img {
  display:block; width:100%; height:auto; border-radius:10px;
  box-shadow:0 14px 34px -12px rgba(2,10,24,.30), 0 0 0 1px rgba(11,37,69,.10);
}
.v3-proof-doc-zoom {
  position:absolute; right:10px; bottom:10px; font-size:11px; font-weight:700;
  letter-spacing:.3px; color:#fff; background:#0B2545; padding:5px 10px;
  border-radius:7px; opacity:0; transition:opacity .18s ease; pointer-events:none;
}
.v3-proof-doc-link:hover .v3-proof-doc-zoom,
.v3-proof-doc-link:focus-visible .v3-proof-doc-zoom { opacity:.95; }
@media (hover:none){ .v3-proof-doc-zoom { opacity:.95; } }
.v3-proof-doc figcaption {
  margin-top:11px; font-size:12.5px; line-height:1.55; color:#5a646f;
  padding-left:2px; border-left:3px solid #0E5A5A; padding:2px 0 2px 12px;
}
