/* Layout concept: an anatomy atlas crossed with a public-health leaflet.
   Wide left-aligned headlines, figure "plates" with mono captions, teal = healthy joint, red = inflamed/arthritic. */
:root {
  --bone: #F6FAF7;
  --paper: #FFFFFF;
  --ink: #12261D;
  --ink-2: #4A6054;
  --line: #D6E4DB;
  --healthy: #15804F;
  --healthy-soft: #E2F2E8;
  --inflame: #D2473A;
  --inflame-soft: #FCE6E2;
  --cart: #7CC6A0;
  --bone-fill: #F3F7F4;
  --bone-edge: #6E9C86;
  --lig: #5F9C7C;
  --muscle: #E59A90;
  --bone-hi: #FFFFFF; --bone-shade: #D3E3D9; --cart-hi: #D5F0E1;
  --muscle-hi: #F2BDB5; --muscle-lo: #B9584C;
  --skin-a: #EEF7F1; --skin-b: #D3E8DB; --skin-edge: #8DBBA3;
  --sun: var(--inflame); --sun-soft: var(--inflame-soft); --violet: var(--healthy); --violet-soft: var(--healthy-soft); --sky: var(--healthy); --sky-soft: var(--healthy-soft); --rose: var(--inflame); --rose-soft: var(--inflame-soft);
  --shadow: 0 1px 2px rgba(16,35,58,.06), 0 8px 24px rgba(16,35,58,.07);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;

  --s-1: .8125rem; --s0: 1rem; --s1: 1.125rem; --s2: 1.375rem; --s3: 1.75rem; --s4: 2.375rem; --s5: clamp(2.4rem, 5.2vw, 4.25rem);
  --radius: 14px;
  --header-h: 68px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media not all {
  :root:not([data-theme="light"]) {
    --bone: #0F1211; --paper: #171B19; --ink: #EDF1EF; --ink-2: #A3ADA8; --line: #29302D;
    --healthy: #4CC98A; --healthy-soft: #12352A; --inflame: #F2796B; --inflame-soft: #3A1F1B;
    --cart: #3F9A72; --bone-fill: #D5E2DA; --bone-edge: #7FA58F; --lig: #6FB391; --muscle: #D2827A;
    --bone-hi: #EEF5F0; --bone-shade: #9BB5A5; --cart-hi: #8AD5AE; --muscle-hi: #E39A91; --muscle-lo: #9A4F45;
    --skin-a: #1B3A2B; --skin-b: #14301F; --skin-edge: #3E7A59;
    --sun: var(--inflame); --sun-soft: var(--inflame-soft); --violet: var(--healthy); --violet-soft: var(--healthy-soft); --sky: var(--healthy); --sky-soft: var(--healthy-soft); --rose: var(--inflame); --rose-soft: var(--inflame-soft);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark-off"] {
  --bone: #0F1211; --paper: #171B19; --ink: #EDF1EF; --ink-2: #A3ADA8; --line: #29302D;
    --healthy: #4CC98A; --healthy-soft: #12352A; --inflame: #F2796B; --inflame-soft: #3A1F1B;
    --cart: #3F9A72; --bone-fill: #D5E2DA; --bone-edge: #7FA58F; --lig: #6FB391; --muscle: #D2827A;
    --bone-hi: #EEF5F0; --bone-shade: #9BB5A5; --cart-hi: #8AD5AE; --muscle-hi: #E39A91; --muscle-lo: #9A4F45;
    --skin-a: #1B3A2B; --skin-b: #14301F; --skin-edge: #3E7A59;
    --sun: var(--inflame); --sun-soft: var(--inflame-soft); --violet: var(--healthy); --violet-soft: var(--healthy-soft); --sky: var(--healthy); --sky-soft: var(--healthy-soft); --rose: var(--inflame); --rose-soft: var(--inflame-soft);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 var(--s0)/1.65 var(--f-body); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--healthy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--healthy); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--bone); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- bilingual ---------- */
html[data-lang="en"] .ur { display: none !important; }
html[data-lang="ur"] .en { display: none !important; }
.ur { font-family: var(--f-ur); line-height: 2.15; letter-spacing: 0; }
html[data-lang="ur"] body { font-family: var(--f-ur); }
html[data-lang="ur"] h1, html[data-lang="ur"] h2, html[data-lang="ur"] h3, html[data-lang="ur"] h4 { font-family: var(--f-ur); line-height: 1.9; letter-spacing: 0; font-weight: 700; }
html[data-lang="ur"] .mono, html[data-lang="ur"] .eyebrow { font-family: var(--f-ur); letter-spacing: 0; text-transform: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.alt { background: var(--paper); border-block: 1px solid var(--line); }
.mono { font-family: var(--f-mono); font-size: var(--s-1); letter-spacing: .02em; }
.eyebrow { font-family: var(--f-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 800; line-height: 1.3; text-transform: none; letter-spacing: -.005em; color: var(--healthy); display: inline-flex; gap: 12px; align-items: center; }
.eyebrow .ur { text-transform: none; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.9; letter-spacing: 0; }
.eyebrow::before { content: ""; flex: none; width: 34px; height: 4px; border-radius: 2px; background: currentColor; }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-block-end: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: var(--s4); }
.lead { font-size: var(--s1); color: var(--ink-2); max-width: 65ch; }
.prose { display: grid; gap: 14px; max-width: 68ch; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.chapter { font-family: var(--f-mono); font-size: var(--s-1); color: var(--ink-2); }
.chapter b { color: var(--ink); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.grid-2 > * { min-width: 0; }

/* ---------- progress + header ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--healthy), var(--inflame)); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .progress span { transform-origin: right; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bone) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(16,35,58,.06); }
.nav { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1; }
.brand-name small { display: block; font-family: var(--f-ur); font-weight: 400; font-size: .78rem; color: var(--ink-2); letter-spacing: 0; margin-top: 4px; line-height: 1.6; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin-inline-start: auto; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; background: none; border: 0; white-space: nowrap; }
.menu > li > a:hover, .menu > li > button:hover, .menu > li.active > a, .menu > li.active > button { background: var(--healthy-soft); color: var(--healthy); }
.menu .caret { width: 10px; height: 10px; transition: transform .2s; }
.drop { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; list-style: none; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; }
.menu > li:hover .drop, .menu > li:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.menu > li:hover .caret, .menu > li:focus-within .caret { transform: rotate(180deg); }
.drop a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.drop a:hover { background: var(--bone); color: var(--healthy); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); flex-shrink: 0; }
.lang button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.lang button[data-set="ur"] { font-family: var(--f-ur); font-weight: 400; line-height: 1.5; padding-block: 2px 6px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.burger { display: none; border: 1px solid var(--line); background: var(--paper); width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; }
.burger svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .menu { display: none; }
  .burger { display: inline-flex; }
  .lang { margin-inline-start: auto; }
  .mobile-nav { display: block; position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--bone); z-index: 49; overflow-y: auto; padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  html[dir="rtl"] .mobile-nav { transform: translateX(-100%); }
  .mobile-nav.open { transform: none !important; visibility: visible; }
  .mobile-nav details { border-bottom: 1px solid var(--line); }
  .mobile-nav summary, .mobile-nav > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; list-style: none; cursor: pointer; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav details summary { border: 0; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav details[open] summary svg { transform: rotate(180deg); }
  .mobile-nav details a { display: block; padding: 10px 16px; color: var(--ink-2); text-decoration: none; }
  .mobile-nav details div { padding-bottom: 12px; }
  html[data-lang="ur"] .mobile-nav summary, html[data-lang="ur"] .mobile-nav > a { font-family: var(--f-ur); }
}
@media (max-width: 420px) { .brand-name { font-size: 1rem; } .brand svg { width: 28px; height: 28px; } .lang button { padding: 4px 9px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
html[dir="rtl"] .btn svg.arr { transform: scaleX(-1); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: var(--s5); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--inflame); }
html[data-lang="ur"] .hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.85; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-tabs { display: inline-flex; gap: 6px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; }
.hero-tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.hero-tabs button[data-set="ur"] { font-family: var(--f-ur); font-weight: 400; padding-block: 4px 10px; }
.hero-tabs button[aria-pressed="true"] { background: var(--healthy); color: #fff; }
.hero-tabs .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.hero p.body { font-size: var(--s1); color: var(--ink-2); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tagline { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; font-size: var(--s1); }
.tagline svg { width: 44px; height: 22px; flex-shrink: 0; color: var(--healthy); }
.hero-fig { position: relative; min-width: 0; }
.plate { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); position: relative; }
.plate-cap { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); padding: 2px 4px 10px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.plate-cap .ur { font-size: .85rem; line-height: 1.8; }
#legSvg { display: block; width: 100%; height: auto; max-height: 520px; }
.flex-read { position: absolute; inset-inline-end: 26px; bottom: 26px; background: var(--ink); color: var(--bone); padding: 10px 14px; border-radius: 12px; font-family: var(--f-mono); display: grid; gap: 2px; min-width: 132px; }
.flex-read b { font-size: 1.6rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.flex-read span { font-size: .72rem; opacity: .75; text-transform: uppercase; letter-spacing: .1em; }
.flex-read span.ur { text-transform: none; letter-spacing: 0; font-size: .8rem; line-height: 1.8; }
.scroll-hint { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.scroll-hint i { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-fig { max-width: 440px; width: 100%; justify-self: center; } }

/* ---------- quick path cards under hero ---------- */
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 5vw, 56px); }
.path { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.path:hover { border-color: var(--healthy); transform: translateY(-3px); }
.path .mono { color: var(--healthy); }
.path b { font-family: var(--f-display); font-size: 1.08rem; }
html[data-lang="ur"] .path b { font-family: var(--f-ur); font-weight: 700; }
.path span.d { color: var(--ink-2); font-size: .9rem; }

/* ---------- stats ---------- */
.stats { background: var(--ink); color: var(--bone); border: 0; }
.stats .eyebrow { color: var(--cart-hi); }
.stats .lead { color: color-mix(in srgb, var(--bone) 72%, var(--ink)); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid color-mix(in srgb, var(--bone) 20%, transparent); }
.stat { padding: 28px 22px 26px 0; display: grid; gap: 12px; align-content: start; border-inline-end: 1px solid color-mix(in srgb, var(--bone) 20%, transparent); padding-inline-start: 22px; }
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border: 0; }
.stat .num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .45em; letter-spacing: 0; margin-inline-start: 4px; color: var(--cart); }
.stat p { color: color-mix(in srgb, var(--bone) 80%, var(--ink)); }
.stat .cite { font-family: var(--f-mono); font-size: .72rem; color: color-mix(in srgb, var(--bone) 55%, var(--ink)); line-height: 1.5; }
.stat .cite a { color: inherit; }
.meter { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--bone) 16%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--cart); border-radius: 4px; width: var(--w); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.people { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 220px; }
.people svg { width: 100%; height: auto; }
.people .f { fill: var(--cart); } .people .m { fill: color-mix(in srgb, var(--bone) 25%, transparent); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat { border-bottom: 1px solid color-mix(in srgb, var(--bone) 20%, transparent); padding-inline-start: 0 !important; padding-inline-end: 16px; } .stat:nth-child(2n) { border-inline-end: 0; padding-inline-start: 16px !important; } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } .stat { border-inline-end: 0; padding-inline: 0 !important; } }

/* ---------- arthritis types ---------- */
.types { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.type-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.type-tabs button { flex: 1 1 auto; background: none; border: 0; padding: 14px 16px; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.type-tabs button[aria-selected="true"] { color: var(--healthy); border-bottom-color: var(--healthy); }
.type-panel { padding: 22px 24px 26px; display: grid; gap: 10px; }
.type-panel h3 { font-size: var(--s2); }
.type-panel .tag { font-family: var(--f-mono); font-size: var(--s-1); color: var(--inflame); }
.day-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .92rem; }
.chip svg { width: 18px; height: 18px; color: var(--healthy); flex-shrink: 0; }
.note { border-inline-start: 3px solid var(--healthy); padding: 14px 18px; background: var(--healthy-soft); border-radius: 0 10px 10px 0; color: var(--ink); }
html[dir="rtl"] .note { border-radius: 10px 0 0 10px; }
.note.warn { border-color: var(--inflame); background: var(--inflame-soft); }
.stack { display: grid; gap: 22px; }
.stack h3 { font-size: var(--s2); }

/* ---------- knee anatomy ---------- */
.anat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.anat-fig { position: sticky; top: calc(var(--header-h) + 20px); }
#kneeSvg { display: block; width: 100%; height: auto; max-height: 560px; }
#kneeSvg .part { cursor: pointer; transition: opacity .25s, filter .25s; }
#kneeSvg.has-sel .part { opacity: .22; }
#kneeSvg.has-sel .part.sel { opacity: 1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--healthy) 60%, transparent)); }
#kneeSvg .part:hover { filter: brightness(1.06); }
#kneeSvg .pin { cursor: pointer; }
#kneeSvg .pin circle { fill: var(--ink); stroke: var(--paper); stroke-width: 2; transition: fill .2s; }
#kneeSvg .pin text { fill: var(--bone); font: 600 11px var(--f-mono); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#kneeSvg .pin.sel circle { fill: var(--healthy); }
#kneeSvg .pin line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.parts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.parts-list button { display: flex; align-items: center; gap: 10px; text-align: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: .92rem; font-weight: 500; transition: border-color .2s, background .2s; }
.parts-list button i { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bone); font: 600 11px/24px var(--f-mono); font-style: normal; text-align: center; flex-shrink: 0; }
.parts-list button[aria-pressed="true"] { border-color: var(--healthy); background: var(--healthy-soft); }
.parts-list button[aria-pressed="true"] i { background: var(--healthy); }
.part-info { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 22px 24px; display: grid; gap: 10px; min-height: 190px; box-shadow: var(--shadow); }
.part-info .mono { color: var(--healthy); }
.part-info h3 { font-size: var(--s2); }
.part-info p { color: var(--ink-2); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-inline-end: 6px; }
@media (max-width: 860px) { .anat { grid-template-columns: 1fr; } .anat-fig { position: relative; top: 0; max-width: 460px; margin-inline: auto; width: 100%; } }
@media (max-width: 420px) { .parts-list { grid-template-columns: 1fr; } }

/* compare slider */
.compare { margin-top: clamp(48px, 7vw, 88px); display: grid; gap: 22px; }
.cmp-box { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); aspect-ratio: 16 / 9; max-width: 100%; user-select: none; touch-action: pan-y; }
.cmp-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp-box .oa { clip-path: inset(0 0 0 var(--pos, 50%)); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.cmp-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.cmp-handle svg { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; z-index: 1; color: var(--bone); }
.cmp-label { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; font: 500 .78rem var(--f-mono); background: var(--paper); border: 1px solid var(--line); z-index: 2; }
.cmp-label.l { left: 14px; color: var(--healthy); } .cmp-label.r { right: 14px; color: var(--inflame); }
.cmp-label .ur { font-size: .85rem; line-height: 1.7; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.cmp-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.cmp-legend div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); display: grid; gap: 4px; }
.cmp-legend b { font-family: var(--f-display); }
html[data-lang="ur"] .cmp-legend b { font-family: var(--f-ur); }
.cmp-legend .h { color: var(--healthy); } .cmp-legend .o { color: var(--inflame); }
.cmp-legend span { color: var(--ink-2); font-size: .92rem; }

/* ---------- causes ---------- */
.cause-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cause { background: var(--paper); padding: 26px 24px; display: grid; gap: 10px; align-content: start; transition: background .25s; }
.cause:hover { background: var(--bone); }
.cause .mono { color: var(--ink-2); }
.cause h3 { font-size: var(--s1); font-weight: 700; }
.cause p { color: var(--ink-2); font-size: .96rem; }


/* ---------- risk (pinned horizontal) ---------- */
.risk { padding-block: 0; }
.risk-pin { padding-block: clamp(64px, 8vw, 100px); }
.risk-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.risk-head > * { min-width: 0; }
.risk-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 14px; }
.risk-track { display: flex; gap: 18px; width: max-content; padding-inline: var(--gutter); }
.rcard { width: min(340px, 78vw); flex-shrink: 0; scroll-snap-align: center; border-radius: 20px; padding: 26px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; min-height: 330px; }
.rcard .n { font-family: var(--f-display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--healthy-soft); -webkit-text-stroke: 1.5px var(--healthy); }
.rcard h3 { font-size: var(--s2); }
.rcard p { color: var(--ink-2); font-size: .96rem; }
.rcard.intro { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.rcard.intro p { color: color-mix(in srgb, var(--bone) 78%, var(--ink)); }
.rcard .mod { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; width: max-content; }
.rcard .mod.y { background: var(--healthy-soft); color: var(--healthy); }
.rcard .mod.n2 { background: var(--bone); color: var(--ink-2); border: 1px solid var(--line); }
.rcard .mod .ur { text-transform: none; letter-spacing: 0; font-size: .8rem; line-height: 1.6; }
.risk-bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 28px; overflow: hidden; }
.risk-bar i { display: block; height: 100%; width: 0; background: var(--healthy); }
.risk.pinned .risk-viewport { overflow: visible; }
.risk.pinned .risk-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.risk.pinned .risk-pin { padding-block: 24px; }
.risk.pinned .risk-track { will-change: transform; }
.prevent { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.prevent div { padding: 18px; border-radius: 14px; background: var(--healthy-soft); display: grid; gap: 6px; align-content: start; }
.prevent b { color: var(--healthy); font-family: var(--f-display); }
html[data-lang="ur"] .prevent b { font-family: var(--f-ur); }
.prevent span { font-size: .93rem; color: var(--ink); }
@media (max-width: 760px) { .risk-head { grid-template-columns: 1fr; } }

/* ---------- pakistan infographic ---------- */
.pk { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.acts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.act { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); font-size: .88rem; font-weight: 500; }
.act svg { width: 42px; height: 42px; color: var(--ink); }
.keys { display: grid; gap: 14px; }
.key { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.key .x { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--inflame-soft); color: var(--inflame); }
.key .x svg { width: 22px; height: 22px; }
.key b { font-family: var(--f-display); font-size: var(--s1); display: block; }
html[data-lang="ur"] .key b { font-family: var(--f-ur); }
.key span { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 860px) { .pk { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .acts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- diagnosis timeline ---------- */
.steps { list-style: none; display: grid; gap: 0; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; inset-inline-start: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps .fill { position: absolute; inset-inline-start: 23px; top: 10px; width: 2px; height: 0; background: var(--healthy); transition: height .15s linear; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding-block: 0 26px; position: relative; }
.steps li > i { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); display: grid; place-items: center; font: 600 .95rem var(--f-mono); font-style: normal; z-index: 1; transition: .3s; }
.steps li.on > i { border-color: var(--healthy); background: var(--healthy); color: #fff; }
.steps h3 { font-size: var(--s1); padding-top: 10px; }
.steps p { color: var(--ink-2); font-size: .96rem; margin-top: 6px; }
.steps .tagx { display: inline-block; margin-top: 8px; font: 500 .72rem var(--f-mono); padding: 3px 9px; border-radius: 999px; background: var(--bone); border: 1px solid var(--line); color: var(--ink-2); }
.when { display: grid; gap: 16px; }
.when-card { border-radius: 18px; padding: 24px; display: grid; gap: 12px; border: 1px solid var(--line); background: var(--paper); }
.when-card h3 { font-size: var(--s2); display: flex; gap: 12px; align-items: center; }
.when-card h3 svg { width: 28px; height: 28px; flex-shrink: 0; }
.when-card ul { list-style: none; display: grid; gap: 8px; }
.when-card li { display: flex; gap: 10px; align-items: start; }
.when-card li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--healthy); margin-top: .62em; flex-shrink: 0; }
.when-card.urgent { background: var(--inflame-soft); border-color: color-mix(in srgb, var(--inflame) 45%, transparent); }
.when-card.urgent h3 { color: var(--inflame); }
.when-card.urgent li::before { background: var(--inflame); }
.pulse { animation: pulse 2s infinite; transform-origin: center; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- myths ---------- */
.myths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.myth { perspective: 1200px; border: 0; background: none; padding: 0; text-align: start; min-height: 250px; display: grid; }
.myth-inner { display: grid; transition: transform .7s cubic-bezier(.3,.7,.2,1); transform-style: preserve-3d; }
.myth.flip .myth-inner { transform: rotateY(180deg); }
.myth-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; padding: 24px; display: grid; gap: 12px; align-content: start; border: 1px solid var(--line); }
.myth-face.front { background: var(--paper); }
.myth-face.back { background: var(--healthy); color: #fff; transform: rotateY(180deg); border-color: var(--healthy); }
.myth-face .mono { text-transform: uppercase; letter-spacing: .12em; }
.myth-face .mono .ur { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.myth-face.front .mono { color: var(--inflame); }
.myth-face q { font-family: var(--f-display); font-size: var(--s2); font-weight: 600; line-height: 1.25; quotes: "\201C" "\201D"; }
html[data-lang="ur"] .myth-face q { font-family: var(--f-ur); line-height: 2; font-size: 1.15rem; }
.myth-face .hint { margin-top: auto; color: var(--ink-2); font-size: .85rem; display: flex; gap: 8px; align-items: center; }
.myth-face .hint svg { width: 16px; height: 16px; }
.myth-face.back p { font-size: 1.02rem; }

/* ---------- treatment ladder ---------- */
.ladder { display: grid; gap: 14px; }
.rung { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.rung .ic { width: 64px; height: 64px; border-radius: 16px; background: var(--healthy-soft); display: grid; place-items: center; color: var(--healthy); }
.rung .ic svg { width: 32px; height: 32px; }
.rung h3 { font-size: var(--s1); }
.rung p { color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
.rung .lvl { font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: var(--bone); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.rung .lvl .ur { text-transform: none; letter-spacing: 0; font-size: .8rem; line-height: 1.7; }
.rung.surg { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.rung.surg p { color: color-mix(in srgb, var(--bone) 75%, var(--ink)); }
.rung.surg .ic { background: color-mix(in srgb, var(--bone) 12%, transparent); color: var(--cart); }
.rung.surg .lvl { background: transparent; color: var(--cart); border-color: color-mix(in srgb, var(--bone) 25%, transparent); }
.ladder-wrap { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; }
.ladder-axis { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; font: 500 .7rem var(--f-mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.ladder-axis::before { content: ""; position: absolute; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(var(--healthy), var(--inflame)); }
.ladder-axis span { writing-mode: vertical-rl; transform: rotate(180deg); background: var(--bone); padding: 6px 0; position: relative; }
html[data-lang="ur"] .ladder-axis span { writing-mode: horizontal-tb; transform: none; font-family: var(--f-ur); font-size: .75rem; text-align: center; }
@media (max-width: 640px) { .rung { grid-template-columns: 48px minmax(0, 1fr); } .rung .ic { width: 48px; height: 48px; } .rung .lvl { grid-column: 2; justify-self: start; } .ladder-wrap { grid-template-columns: 1fr; } .ladder-axis { display: none; } }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.ex { border-radius: 16px; border: 1px solid var(--line); background: var(--paper); padding: 18px; display: grid; gap: 10px; align-content: start; }
.ex svg { width: 100%; height: 90px; background: var(--bone); border-radius: 10px; }
.ex h4 { font-size: var(--s1); }
html[data-lang="ur"] .ex h4 { font-size: 1.05rem; }
.ex p { color: var(--ink-2); font-size: .93rem; }
.ex .mono { color: var(--healthy); }
.ex .anim-leg { animation: legLift 3s ease-in-out infinite; transform-box: fill-box; }
@keyframes legLift { 0%, 20%, 100% { transform: rotate(0); } 45%, 70% { transform: rotate(-18deg); } }
.ex .anim-squeeze { animation: squeeze 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes squeeze { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.82); } }
.ex .anim-stand { animation: stand 3.2s ease-in-out infinite; }
@keyframes stand { 0%, 15%, 100% { transform: translateY(0); } 45%, 70% { transform: translateY(-14px); } }
.ex .anim-slide { animation: slide 3s ease-in-out infinite; }
@keyframes slide { 0%, 15%, 100% { transform: translateX(0); } 45%, 70% { transform: translateX(-26px); } }

/* ---------- TKR ---------- */
.tkr-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.implant-fig { background: var(--bone); border-radius: 22px; border: 1px solid var(--line); padding: 16px; }
.implant-fig svg { display: block; width: 100%; height: auto; }
.consider { list-style: none; display: grid; gap: 10px; }
.consider li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.consider li svg { width: 22px; height: 22px; color: var(--healthy); margin-top: 2px; }
.surg-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: ss; }
.surg-step { padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; position: relative; }
.surg-step .mono { color: var(--healthy); }
.surg-step h4 { font-size: var(--s1); }
.surg-step p { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 960px) { .surg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .surg-steps { grid-template-columns: 1fr; } }
.brl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.brl > div { border-radius: 18px; padding: 24px; display: grid; gap: 14px; align-content: start; border: 1px solid var(--line); background: var(--paper); }
.brl h4 { font-size: var(--s2); display: flex; align-items: center; gap: 10px; }
.brl h4 i { width: 12px; height: 12px; border-radius: 50%; }
.brl ul { list-style: none; display: grid; gap: 10px; }
.brl li { padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.brl li:last-child { border: 0; padding: 0; }
@media (max-width: 860px) { .brl { grid-template-columns: 1fr; } }
.pivot { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 4vw, 44px); border-radius: 26px; background: var(--ink); color: var(--bone); }
.pivot .eyebrow { color: var(--cart-hi); }
.pivot h3 { font-size: var(--s4); }
.pivot p { color: color-mix(in srgb, var(--bone) 80%, var(--ink)); }
.pivot .script { font-size: 1.1rem; }
.pivot-fig { background: color-mix(in srgb, var(--bone) 6%, transparent); border-radius: 18px; padding: 14px; border: 1px solid color-mix(in srgb, var(--bone) 14%, transparent); }
.pivot-fig svg { display: block; width: 100%; height: auto; }
.pivot-ctrl { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 4px 0; flex-wrap: wrap; }
.pivot-ctrl button { background: var(--bone); color: var(--ink); border: 0; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; }
.pivot-ctrl .mono { color: color-mix(in srgb, var(--bone) 70%, var(--ink)); }
#pivotArm { transform-origin: 140px 150px; animation: pivotSwing 4s ease-in-out infinite; }
#pivotDot { animation: pivotWobble 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pivotSwing { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes pivotWobble { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
.pivot-fig.paused #pivotArm, .pivot-fig.paused #pivotDot, .pivot-fig.paused .trail { animation-play-state: paused; }
@media (max-width: 860px) { .pivot, .tkr-hero { grid-template-columns: 1fr; } }

/* ---------- prepare & recover ---------- */
.rtabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 28px; }
.rtabs button { flex: 1 1 160px; border: 0; background: none; padding: 12px 14px; border-radius: 11px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 8px; }
.rtabs button .mono { font-size: .72rem; opacity: .7; }
.rtabs button[aria-selected="true"] { background: var(--ink); color: var(--bone); }
.rpanel { display: grid; gap: 28px; }
.checklist { display: grid; gap: 22px; }
.check-group { border-radius: 18px; border: 1px solid var(--line); background: var(--paper); padding: 22px; display: grid; gap: 12px; }
.check-group h4 { font-size: var(--s1); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.check-group .count { font: 500 .78rem var(--f-mono); color: var(--healthy); background: var(--healthy-soft); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.check-group label { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 10px 6px; border-radius: 10px; cursor: pointer; transition: background .2s; }
.check-group label:hover { background: var(--bone); }
.check-group input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; margin: 2px 0 0; display: grid; place-items: center; cursor: pointer; background: var(--paper); transition: .2s; }
.check-group input:checked { background: var(--healthy); border-color: var(--healthy); }
.check-group input:checked::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check-group input:checked + span { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--healthy); }
.ctrack { height: 6px; background: var(--bone); border-radius: 3px; overflow: hidden; }
.ctrack i { display: block; height: 100%; width: 0; background: var(--healthy); transition: width .4s; }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 15px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, var(--inflame), var(--healthy)); }
html[dir="rtl"] .timeline::before { background: linear-gradient(-90deg, var(--inflame), var(--healthy)); }
.tl { display: grid; gap: 10px; padding-inline-end: 16px; align-content: start; }
.tl i { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); border: 2px solid var(--healthy); z-index: 1; display: grid; place-items: center; }
.tl i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--healthy); }
.tl .mono { color: var(--healthy); font-weight: 500; }
.tl p { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline::before { top: 0; bottom: 0; inset-inline-start: 15px; inset-inline-end: auto; width: 2px; height: auto; background: linear-gradient(var(--inflame), var(--healthy)); }
  .tl { grid-template-columns: 32px 1fr; column-gap: 16px; padding: 0; }
  .tl > :not(i) { grid-column: 2; }
  .tl i { grid-row: 1 / span 2; }
}
.rom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.rom svg { width: 100%; height: auto; max-width: 440px; display: block; margin-inline: auto; }
.rom .axis { fill: none; stroke: var(--line); stroke-width: 18; stroke-linecap: round; }
.rom .goal1 { fill: none; stroke: var(--cart); stroke-width: 18; stroke-linecap: round; }
.rom .goal2 { fill: none; stroke: var(--healthy); stroke-width: 18; }
.rom text { fill: var(--ink-2); font: 500 12px var(--f-mono); }
.rom .tick { stroke: var(--ink-2); stroke-width: 1.5; }
@media (max-width: 760px) { .rom { grid-template-columns: 1fr; } }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.tip { padding: 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.tip b { font-family: var(--f-display); }
html[data-lang="ur"] .tip b { font-family: var(--f-ur); }
.tip span { color: var(--ink-2); font-size: .93rem; }
.tip.no { background: var(--inflame-soft); border-color: transparent; }
.tip.no b { color: var(--inflame); }

/* ---------- experts / stories ---------- */
.vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.vid { border-radius: 18px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); display: grid; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
a.vid:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.vid .thumb { aspect-ratio: 16 / 9; max-width: 100%; position: relative; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.vid .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid .play { width: 58px; height: 58px; border-radius: 50%; background: var(--inflame); display: grid; place-items: center; z-index: 1; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.vid .play svg { width: 22px; height: 22px; color: #fff; margin-inline-start: 3px; }
.vid.soon .thumb { background: repeating-linear-gradient(135deg, var(--bone) 0 12px, var(--paper) 12px 24px); }
.vid.soon .play { background: var(--line); box-shadow: none; }
.vid.soon .play svg { color: var(--ink-2); }
.vid .meta { padding: 16px 18px 18px; display: grid; gap: 6px; }
.vid .meta .mono { color: var(--healthy); }
.vid.soon .meta .mono { color: var(--ink-2); }
.vid .meta b { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.3; }
html[data-lang="ur"] .vid .meta b { font-family: var(--f-ur); line-height: 2; }
.ask { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px; counter-reset: q; }
.ask li { list-style: none; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: flex; gap: 12px; align-items: start; }
.ask li::before { counter-increment: q; content: "Q" counter(q); font: 600 .78rem var(--f-mono); color: var(--healthy); background: var(--healthy-soft); padding: 3px 7px; border-radius: 6px; flex-shrink: 0; margin-top: 2px; }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.story { border-radius: 20px; border: 1.5px dashed var(--line); padding: 26px; display: grid; gap: 14px; align-content: start; background: var(--paper); }
.story .ph { display: flex; gap: 14px; align-items: center; }
.story .av { width: 52px; height: 52px; border-radius: 50%; background: var(--bone); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; }
.story .av svg { width: 26px; height: 26px; }
.story .bar { height: 10px; border-radius: 5px; background: var(--bone); }
.story .mono { color: var(--ink-2); }
.story h4 { font-size: var(--s1); }
.story p { color: var(--ink-2); font-size: .94rem; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--bone); padding-block: 64px calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h5 { font: 500 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--cart); margin: 0 0 12px; }
.foot h5 .ur { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: color-mix(in srgb, var(--bone) 80%, var(--ink)); text-decoration: none; font-size: .93rem; }
.foot a:hover { color: var(--bone); text-decoration: underline; }
.foot .brand { color: var(--bone); }
.foot .brand-name small { color: color-mix(in srgb, var(--bone) 65%, var(--ink)); }
.disclaimer { margin-top: 18px; padding: 16px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bone) 20%, transparent); color: color-mix(in srgb, var(--bone) 78%, var(--ink)); font-size: .9rem; }
.refs { margin-top: 44px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--bone) 18%, transparent); display: grid; gap: 8px; font: .74rem/1.6 var(--f-mono); color: color-mix(in srgb, var(--bone) 60%, var(--ink)); }
.refs a { color: inherit; }
.copy { margin-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: color-mix(in srgb, var(--bone) 55%, var(--ink)); }
@media (max-width: 860px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > :first-child { grid-column: 1 / -1; } }
.to-top { position: fixed; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bone); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 40; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- reveal ---------- */
.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.pending { opacity: 0; transform: translateY(28px); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal.pending { opacity: 1; transform: none; }
}

/* ---------- figure paint (inline SVG) ---------- */
.fb { fill: url(#boneG); stroke: var(--bone-edge); stroke-width: 2; }
.fc { fill: url(#cartG); stroke: color-mix(in srgb, var(--cart) 70%, var(--ink)); stroke-width: .8; }
.sc { fill: none; stroke: var(--cart); stroke-linecap: round; }
.fm { fill: url(#muscG); }
.sl { fill: none; stroke: var(--lig); stroke-linecap: round; }
.fsk { fill: var(--healthy-soft); stroke: var(--healthy); stroke-width: 1.5; }
.fsyn { fill: color-mix(in srgb, var(--cart) 20%, transparent); stroke: var(--healthy); stroke-width: 1.5; stroke-dasharray: 5 5; }
.fmen { fill: color-mix(in srgb, var(--cart) 70%, var(--paper)); stroke: var(--healthy); stroke-width: 1.5; }
.finf { fill: var(--inflame); } .sinf { fill: none; stroke: var(--inflame); stroke-linecap: round; }
.fink { fill: var(--ink); } .sink { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.fpaper { fill: var(--paper); } .fground { fill: var(--bone); }
.sgrid { stroke: var(--line); stroke-width: 1; fill: none; }
.tlab { fill: var(--ink-2); font: 500 12px var(--f-mono); }
.fmetal { fill: color-mix(in srgb, var(--ink-2) 40%, var(--paper)); stroke: var(--ink-2); stroke-width: 1.5; }
.fpoly { fill: color-mix(in srgb, var(--cart) 30%, var(--paper)); stroke: var(--healthy); stroke-width: 1.5; }
#flexArc { fill: none; stroke: var(--inflame); stroke-width: 2.5; stroke-dasharray: 5 5; }
#legSvg .ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.ex .fig { fill: var(--ink); } .ex .fig-s { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ex .acc { fill: var(--healthy); } .ex .acc-s { fill: none; stroke: var(--healthy); stroke-width: 2; stroke-dasharray: 3 4; }
.ex .floor { stroke: var(--line); stroke-width: 2; }
.pivot-fig .plat { fill: color-mix(in srgb, var(--bone) 10%, transparent); stroke: color-mix(in srgb, var(--bone) 35%, transparent); stroke-width: 1.5; }
.pivot-fig .med { fill: var(--healthy); } .pivot-fig .lat { fill: var(--cart); }
.pivot-fig .arm { stroke: color-mix(in srgb, var(--bone) 55%, transparent); stroke-width: 2; stroke-dasharray: 3 4; }
.pivot-fig text { fill: color-mix(in srgb, var(--bone) 80%, transparent); font: 500 11px var(--f-mono); }
.trail { fill: none; stroke: var(--cart); stroke-width: 2; stroke-dasharray: 4 5; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.cmp-box .tlab { font-size: 14px; }
.vid .thumb img + .play { position: relative; }

/* ---------- utilities ---------- */
[hidden] { display: none !important; }
svg text { direction: ltr; }
.tlab.ur, .pivot-fig text.ur, .rom text.ur { font-family: var(--f-ur); font-size: 13px; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub-head { display: grid; gap: 10px; margin-block: clamp(48px, 7vw, 80px) 24px; max-width: 720px; }
.sub-head h3 { font-size: var(--s3); }
.sub-head p { color: var(--ink-2); }
@media (max-width: 980px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Illustrations ---------- */
/* Arthritis type figures */
.jplate { margin: 0 0 4px; border-radius: 14px; background: var(--bone); border: 1px solid var(--line); padding: 10px 8px 2px; }
.jfig { display: block; width: 100%; max-width: 300px; max-height: 180px; height: auto; margin-inline: auto; overflow: visible; }
.jf-bone { fill: url(#boneG); stroke: var(--bone-edge); stroke-width: 1.4; stroke-linejoin: round; }
.jf-cart { fill: none; stroke: var(--cart); stroke-width: 5; stroke-linecap: round; }
.jf-cart.thin { stroke-width: 1.6; stroke-dasharray: 3 4; opacity: .8; }
.jf-cap { fill: none; stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .55; }
.jf-spur { fill: var(--bone-edge); }
.jf-hot { fill: var(--inflame); opacity: .22; }
.jf-swell { fill: var(--inflame-soft); stroke: var(--inflame); stroke-width: 1.2; stroke-dasharray: 5 4; }
.jf-syn { fill: none; stroke: var(--inflame); stroke-width: 7; stroke-linecap: round; opacity: .7; }
.jf-wave, .jf-crack { fill: none; stroke: var(--inflame); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jf-glow { fill: var(--inflame); opacity: .14; }
.jf-xtal path { stroke: var(--inflame); stroke-width: 1.8; stroke-linecap: round; }
.jf-men { fill: var(--lig); }
.jf-men.torn { fill: var(--inflame); }
.jf-lead { fill: none; stroke: var(--ink-2); stroke-width: .8; }
.jl { font: 600 9.5px var(--f-mono); fill: var(--ink-2); letter-spacing: .02em; }
.jl.ur { font: 11px var(--f-ur, 'Noto Nastaliq Urdu', serif); }

/* Diagnosis X-ray plate (deliberately dark in both themes) */
.xray { margin: 22px 0 0; display: grid; gap: 10px; }
.xray svg { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(5,9,14,.25); }
.xr-bone { fill: #c9d6e2; fill-opacity: .82; stroke: #eef4fa; stroke-opacity: .5; stroke-width: 1; }
.xr-pat { fill: #c9d6e2; fill-opacity: .35; }
.xr-scl { stroke: #ffffff; stroke-width: 3; opacity: .7; }
.xr-ok, .xr-bad { fill: none; stroke-width: 2; }
.xr-ok { stroke: #3ED2BF; }
.xr-bad { stroke: #FF6A55; }
.xr-t { font: 600 10px var(--f-mono); fill: #dbe6f0; letter-spacing: .06em; }
.xr-t.ur { font: 12px 'Noto Nastaliq Urdu', serif; letter-spacing: 0; }
.xr-m { font: 700 11px var(--f-mono); fill: #8ba3b9; }
.plate-cap { font-size: .9rem; color: var(--ink-2); max-width: 62ch; }
.plate-cap em { font-style: normal; color: var(--inflame); font-weight: 600; }

/* Surgery step illustrations */
.sfig { display: block; width: 100%; max-width: 180px; height: 70px; margin-bottom: 4px; }
.s-paper { fill: var(--bone); stroke: var(--ink-2); stroke-width: 1.4; }
.s-ink { fill: var(--ink); }
.s-line { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.s-ecg { fill: none; stroke: var(--inflame); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.s-vert rect { fill: var(--bone-fill); stroke: var(--bone-edge); stroke-width: 1.2; }
.s-target { stroke: var(--inflame); stroke-width: 2; stroke-dasharray: 2 2; }
.s-fill { fill: var(--cart); opacity: .7; }
.s-ink-s { fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; }
.s-bone { fill: var(--bone-fill); stroke: var(--bone-edge); stroke-width: 1.2; }
.s-metal { fill: #B8C2CC; stroke: var(--ink-2); stroke-width: 1; }
.s-poly { fill: var(--cart); stroke: var(--ink-2); stroke-width: 1; }
.s-arrow { fill: none; stroke: var(--healthy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-floor { stroke: var(--line); stroke-width: 2; }
.s-head { fill: var(--healthy); }
.s-body, .s-walker { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.s-body { stroke: var(--healthy); }
.s-walker { stroke: var(--ink-2); stroke-width: 2.2; }

/* Video thumbnail line-art (visible when the YouTube image is blocked) */
.vid .thumb .thumb-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.thumb-art .ta-grid path { stroke: var(--cart); stroke-opacity: .18; stroke-width: 1; }
.thumb-art .jf-bone { fill: none; stroke: var(--cart); stroke-width: 1.4; }
.thumb-art .ta-cart { fill: none; stroke: var(--inflame); stroke-width: 3; stroke-linecap: round; opacity: .8; }
.vid.soon .thumb { background: var(--bone); }
.vid.soon .thumb-art { opacity: .7; }
.vid.soon .thumb-art .jf-bone { stroke: var(--bone-edge); }

/* Illustrated story avatars */
.story .av.ill { overflow: hidden; background: none; }
.story .av.ill svg { width: 100%; height: 100%; display: block; }

/* ---------- v3 graphics: hero leg, cause tiles, risk badges ---------- */
#legSvg .tis { fill: color-mix(in srgb, var(--muscle) 26%, var(--paper)); stroke: color-mix(in srgb, var(--muscle) 55%, var(--paper)); stroke-width: 1; }
#legSvg .fiber { fill: none; stroke: var(--muscle-lo); stroke-width: 1; opacity: .35; stroke-linecap: round; }
#legSvg .bn { fill: var(--bone-fill); stroke: var(--bone-edge); stroke-width: 2; stroke-linejoin: round; }
#legSvg .bhi { fill: none; stroke: var(--bone-hi); stroke-width: 3; stroke-linecap: round; opacity: .95; }
#legSvg .cg { fill: none; stroke: var(--cart); stroke-width: 6; stroke-linecap: round; }
#legSvg .mn { fill: color-mix(in srgb, var(--healthy) 55%, var(--paper)); stroke: var(--healthy); stroke-width: 1.2; }
#legSvg .tend { fill: none; stroke: var(--lig); stroke-width: 6; stroke-linecap: round; }
#legSvg .kdot { fill: var(--healthy); stroke: var(--paper); stroke-width: 2; }
#legSvg .lead { stroke: var(--ink-2); stroke-width: 1; fill: var(--ink-2); }
#legSvg .lead path { fill: none; }
#legSvg .tcart { fill: var(--healthy); font-weight: 600; }
#legSvg .ring { stroke: var(--healthy); opacity: .45; }
.kpulse { fill: none; stroke: var(--healthy); stroke-width: 2; transform-box: view-box; transform-origin: 184px 240px; animation: kpulse 2.6s ease-out infinite; }
@keyframes kpulse { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.hero-fig .plate { background: radial-gradient(120% 80% at 50% 45%, color-mix(in srgb, var(--healthy-soft) 70%, var(--paper)), var(--paper) 70%); }

.cause { --c1: #1BB09C; --c2: #0B6E63; position: relative; border-top: 4px solid var(--c1); }
.cause:nth-child(2) { --c1: #F0735E; --c2: #B5321F; }
.cause:nth-child(3) { --c1: #E9B66B; --c2: #B07A2E; }
.cause:nth-child(4) { --c1: #6FC0E8; --c2: #2A7DAE; }
.cause:nth-child(5) { --c1: #F59A62; --c2: #C2412A; }
.cause:nth-child(6) { --c1: #8E86E6; --c2: #4E45B3; }
.cause svg { width: 64px; height: 64px; padding: 15px; border-radius: 18px; color: #FFFFFF; background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 10px 22px -8px var(--c2); transition: transform .25s; }
.cause:hover svg { transform: translateY(-3px) rotate(-4deg); }
.cause .mono { color: var(--c2); font-weight: 600; }

.rcard { position: relative; --c1: #1BB09C; --c2: #0B6E63; }
.rcard:nth-child(3) { --c1: #F0735E; --c2: #B5321F; }
.rcard:nth-child(4) { --c1: #E9B66B; --c2: #B07A2E; }
.rcard:nth-child(5) { --c1: #8E86E6; --c2: #4E45B3; }
.rcard:nth-child(6) { --c1: #EE7FB0; --c2: #B23A72; }
.rcard:nth-child(7) { --c1: #6FC0E8; --c2: #2A7DAE; }
.rbadge { position: absolute; top: 22px; inset-inline-end: 22px; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 12px 26px -10px var(--c2), inset 0 0 0 6px rgba(255,255,255,.18); }
.rbadge svg { width: 36px; height: 36px; }
.rcard.intro .rbadge { display: none; }
.rcard:not(.intro) { border-top: 5px solid var(--c1); }
.rcard:not(.intro) .n { -webkit-text-stroke-color: var(--c2); }
@media not all { :root:not([data-theme="light"]) .rcard:not(.intro) .n { -webkit-text-stroke-color: var(--c1); } :root:not([data-theme="light"]) .cause .mono { color: var(--c1); } }
:root[data-theme="dark-off"] .rcard:not(.intro) .n { -webkit-text-stroke-color: var(--c1); }
:root[data-theme="dark-off"] .cause .mono { color: var(--c1); }
@media (prefers-reduced-motion: reduce) { .kpulse { animation: none; opacity: 0; } }

/* v4 exercise illustrations */
.ex-grid .ex:nth-child(1) { --c1: #0E9F8E; --c2: #2B5FA8; }
.ex-grid .ex:nth-child(2) { --c1: #E8664A; --c2: #5B4BB7; }
.ex-grid .ex:nth-child(3) { --c1: #7C5CE0; --c2: #2D6E8E; }
.ex-grid .ex:nth-child(4) { --c1: #E0931B; --c2: #1F7A66; }
.ex-grid .ex:nth-child(5) { --c1: #2F80ED; --c2: #A63E6E; }
.ex-grid .ex:nth-child(6) { --c1: #2FA35A; --c2: #C0662A; }
.ex { border-top: 4px solid var(--c1); }
.ex svg { height: auto; aspect-ratio: 240 / 130; max-width: 100%; border-radius: 12px; background: linear-gradient(165deg, color-mix(in srgb, var(--c1) 14%, var(--paper)), color-mix(in srgb, var(--c2) 20%, var(--paper))); }
.ex .mono { color: var(--c1); font-weight: 600; }
.ex .x-skin { fill: var(--skin-a); stroke: var(--skin-edge); stroke-width: 1.2; }
.ex .x-hair { fill: #2B211D; }
.ex .x-limb { fill: none; stroke: var(--skin-a); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ex .x-shirt { fill: none; stroke: var(--c1); stroke-width: 17; stroke-linecap: round; }
.ex .x-pants { fill: none; stroke: var(--c2); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.ex .x-shoe { fill: none; stroke: #3B2F2A; stroke-width: 7; stroke-linecap: round; }
.ex .x-back { opacity: .6; }
.ex .x-mat { fill: var(--c1); opacity: .32; }
.ex .x-floor { stroke: var(--c2); stroke-width: 3; opacity: .4; stroke-linecap: round; }
.ex .x-dash { stroke: var(--c2); stroke-width: 2.5; stroke-dasharray: 10 12; opacity: .45; }
.ex .x-chair { fill: none; stroke: var(--ink-2); stroke-width: 5; stroke-linecap: round; }
.ex .x-cush { fill: var(--c2); opacity: .55; }
.ex .x-towel { fill: var(--c1); }
.ex .x-towel-s { stroke: var(--paper); stroke-width: 2; opacity: .7; }
.ex .x-arrow { fill: none; stroke: var(--c1); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 6; animation: xdash 1s linear infinite; }
.ex .x-tip { fill: var(--c1); }
.ex .x-lab { font: 700 15px var(--f-mono, ui-monospace, monospace); fill: var(--c1); }
.ex .x-glow { fill: var(--c1); opacity: .25; animation: xglow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ex .x-sun { fill: var(--c2); opacity: .45; }
.ex .x-hill { fill: var(--c1); opacity: .16; }
.ex .xl-raise { transform-box: view-box; transform-origin: 102px 103px; animation: xraise 3.2s ease-in-out infinite; }
.ex .xl-squeeze { transform-box: fill-box; transform-origin: 50% 100%; animation: squeeze 2.4s ease-in-out infinite; }
.ex .xl-road { animation: xroad 1.2s linear infinite; }
@keyframes xraise { 0%, 18%, 100% { transform: rotate(0); } 42%, 72% { transform: rotate(-20deg); } }
@keyframes xdash { to { stroke-dashoffset: -12; } }
@keyframes xglow { 0%, 100% { opacity: .12; transform: scale(.85); } 50% { opacity: .35; transform: scale(1.1); } }
@keyframes xroad { to { transform: translateX(-22px); } }
@media (prefers-reduced-motion: reduce) { .ex .xl-raise, .ex .xl-squeeze, .ex .xl-road, .ex .x-arrow, .ex .x-glow { animation: none; } }

/* ================= v5: colour & play pass ================= */
.stats .chapter, .stats .chapter b { color: color-mix(in srgb, var(--bone) 80%, transparent); }
.progress span, .progress i, .progress > * { background: linear-gradient(90deg, var(--healthy), var(--sky), var(--violet), var(--sun), var(--inflame)); }
.btn-primary { background: linear-gradient(135deg, var(--healthy), var(--sky)); color: #fff; border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--healthy) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.08); }
/* hero colour blobs */
.hero { background:
  radial-gradient(520px 380px at 88% 18%, color-mix(in srgb, var(--sky) 22%, transparent), transparent 70%),
  radial-gradient(420px 320px at 70% 88%, color-mix(in srgb, var(--sun) 24%, transparent), transparent 70%),
  radial-gradient(460px 360px at 6% 10%, color-mix(in srgb, var(--healthy) 18%, transparent), transparent 70%),
  radial-gradient(380px 300px at 38% 100%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%); }
/* path cards */
.paths .path { --pc: var(--healthy); --ps: var(--healthy-soft); position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--pc) 35%, transparent); background: linear-gradient(160deg, var(--ps), var(--paper) 78%); transition: transform .25s, box-shadow .25s, border-color .25s; }
.paths .path::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 5px; background: var(--pc); }
.paths .path:nth-child(2) { --pc: var(--sky); --ps: var(--sky-soft); }
.paths .path:nth-child(3) { --pc: var(--violet); --ps: var(--violet-soft); }
.paths .path:nth-child(4) { --pc: var(--sun); --ps: var(--sun-soft); }
.paths .path .mono { color: var(--pc); font-weight: 600; }
.paths .path:hover { border-color: var(--pc); transform: translateY(-5px); box-shadow: 0 14px 30px color-mix(in srgb, var(--pc) 25%, transparent); }
/* tinted alt bands */
#arthritis, #exercises, #recover { background: linear-gradient(180deg, color-mix(in srgb, var(--healthy-soft) 70%, var(--paper)), var(--paper) 65%); }
#causes, #tkr { background: linear-gradient(180deg, color-mix(in srgb, var(--sky-soft) 70%, var(--paper)), var(--paper) 65%); }
#pakistan, #outcomes { background: linear-gradient(180deg, color-mix(in srgb, var(--sun-soft) 70%, var(--paper)), var(--paper) 65%); }
#myths, #stories { background: linear-gradient(180deg, color-mix(in srgb, var(--violet-soft) 70%, var(--paper)), var(--paper) 65%); }
/* myths */
.myths .myth { --mc: var(--inflame); --ms: var(--inflame-soft); --fc: var(--healthy); }
.myths .myth:nth-child(3n+2) { --mc: var(--violet); --ms: var(--violet-soft); --fc: var(--sky); }
.myths .myth:nth-child(3n) { --mc: var(--sun); --ms: var(--sun-soft); --fc: var(--healthy); }
.myth-face.front { background: linear-gradient(155deg, var(--ms), var(--paper) 85%); border: 2px solid color-mix(in srgb, var(--mc) 45%, transparent); }
.myth-face.front .mono { justify-self: start; align-self: start; background: var(--mc); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 600; width: max-content; }
.myth-face.front .mono::before { content: "\2715  "; }
.myth-face.back { background: linear-gradient(150deg, var(--fc), color-mix(in srgb, var(--fc) 55%, #10233A)); border: 0; }
.myth-face.back .mono { justify-self: start; align-self: start; background: rgba(255,255,255,.22); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 600; width: max-content; }
.myth-face.back .mono::before { content: "\2713  "; }
.myth:hover .myth-face.front { box-shadow: 0 12px 28px color-mix(in srgb, var(--mc) 25%, transparent); }
.myth-face.front .hint { color: var(--mc); font-weight: 600; }
/* treatment ladder */
.ladder .rung { --rc: var(--healthy); --rs: var(--healthy-soft); border-inline-start: 6px solid var(--rc); }
.ladder .rung:nth-child(2) { --rc: var(--sky); --rs: var(--sky-soft); }
.ladder .rung:nth-child(3) { --rc: var(--violet); --rs: var(--violet-soft); }
.ladder .rung:nth-child(4) { --rc: var(--sun); --rs: var(--sun-soft); }
.ladder .rung:nth-child(5) { --rc: var(--rose); --rs: var(--rose-soft); }
.ladder .rung:not(.surg) { background: linear-gradient(100deg, color-mix(in srgb, var(--rs) 70%, var(--paper)), var(--paper) 55%); }
.ladder .rung:not(.surg) .ic { background: var(--rc); color: #fff; }
.ladder .rung:not(.surg) .lvl { background: var(--rs); color: var(--rc); border-color: transparent; font-weight: 600; }
.ladder .rung.surg { border-inline-start-color: var(--inflame); background: linear-gradient(120deg, var(--ink), color-mix(in srgb, var(--inflame) 35%, var(--ink))); }
.ladder-axis::before { width: 4px; border-radius: 2px; background: linear-gradient(var(--healthy), var(--sky), var(--violet), var(--sun), var(--inflame)); }
/* surgery steps */
.surg-steps .surg-step { --sc: var(--healthy); counter-increment: ss; overflow: hidden; border-top: 6px solid var(--sc); background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 10%, var(--paper)), var(--paper) 60%); }
.surg-steps .surg-step:nth-child(2) { --sc: var(--sky); }
.surg-steps .surg-step:nth-child(3) { --sc: var(--violet); }
.surg-steps .surg-step:nth-child(4) { --sc: var(--sun); }
.surg-steps .surg-step::after { content: counter(ss); position: absolute; inset-inline-end: 14px; top: 6px; font: 800 3.4rem/1 var(--f-display); color: color-mix(in srgb, var(--sc) 25%, transparent); pointer-events: none; }
.surg-steps .surg-step .mono { color: var(--sc); font-weight: 600; }
/* outcomes */
.brl > div { --oc: var(--healthy); border-top: 6px solid var(--oc); background: linear-gradient(180deg, color-mix(in srgb, var(--oc) 12%, var(--paper)), var(--paper) 70%); }
.brl > div:nth-child(2) { --oc: var(--inflame); }
.brl > div:nth-child(3) { --oc: var(--sky); }
.brl h4 { color: var(--oc); }
.brl h4 i { width: 14px; height: 14px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--oc) 22%, transparent); }
/* recover */
.rtabs button[aria-selected="true"] { background: linear-gradient(135deg, var(--healthy), var(--sky)); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--sky) 30%, transparent); }
.check-group { --cc: var(--healthy); border-top: 5px solid var(--cc); }
.check-group:nth-child(2) { --cc: var(--sky); }
.check-group:nth-child(3) { --cc: var(--violet); }
.check-group:nth-child(4) { --cc: var(--sun); }
.check-group .count { color: var(--cc); background: color-mix(in srgb, var(--cc) 15%, var(--paper)); }
.check-group input[type="checkbox"] { accent-color: var(--cc); }
.check-group .ctrack i { background: linear-gradient(90deg, var(--cc), color-mix(in srgb, var(--cc) 50%, var(--sun))); }
.tips .tip { border-top: 4px solid var(--sky); }
.tips .tip:nth-child(4n+2) { border-top-color: var(--sun); }
.tips .tip:nth-child(4n+3) { border-top-color: var(--violet); }
.tips .tip:nth-child(4n) { border-top-color: var(--healthy); }
.tips .tip.no { border-top-color: var(--inflame); }
/* experts */
.vid.soon .thumb { background: linear-gradient(135deg, var(--violet-soft), var(--sky-soft)); }
.vid.soon.d2 .thumb { background: linear-gradient(135deg, var(--sun-soft), var(--rose-soft)); }
.vid.soon .play { background: var(--paper); color: var(--violet); box-shadow: 0 6px 18px rgba(16,35,58,.15); }
.ask li { --qc: var(--healthy); border-inline-start: 4px solid var(--qc); }
.ask li:nth-child(4n+2) { --qc: var(--sky); }
.ask li:nth-child(4n+3) { --qc: var(--violet); }
.ask li:nth-child(4n) { --qc: var(--sun); }
.ask li::before { color: #fff; background: var(--qc); }
/* stories */
.stories .story { --tc: var(--healthy); border: 0; border-top: 6px solid var(--tc); box-shadow: var(--shadow); background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 9%, var(--paper)), var(--paper) 60%); }
.stories .story:nth-child(2) { --tc: var(--violet); }
.stories .story:nth-child(3) { --tc: var(--sun); }
.story .av { box-shadow: 0 0 0 3px var(--tc); }
.story .bar { background: color-mix(in srgb, var(--tc) 25%, var(--paper)); }
/* exercise cards */
.ex-grid > * { border-top: 5px solid var(--healthy); }
.ex-grid > :nth-child(4n+2) { border-top-color: var(--sky); }
.ex-grid > :nth-child(4n+3) { border-top-color: var(--violet); }
.ex-grid > :nth-child(4n) { border-top-color: var(--sun); }
@media (prefers-reduced-motion: reduce) { .paths .path:hover { transform: none; } }
/* prevent tiles */
.prevent > div { --pv: var(--healthy); border-top: 5px solid var(--pv); background: linear-gradient(180deg, color-mix(in srgb, var(--pv) 14%, var(--paper)), var(--paper) 75%); }
.prevent > div:nth-child(2) { --pv: var(--sky); }
.prevent > div:nth-child(3) { --pv: var(--violet); }
.prevent > div:nth-child(4) { --pv: var(--sun); }
.prevent > div:nth-child(5) { --pv: var(--rose); }
.prevent > div b { color: var(--pv); }
/* fix: content below scrolled behind the pinned risk cards */
.risk.pinned .risk-sticky { background: var(--bone); z-index: 2; }
.risk.pinned .risk-sticky ~ * { position: relative; z-index: 1; }


/* ===== v8: three-colour lock (white / green / coral) ===== */
.cause, .rcard, .ex-grid .ex { --c1: var(--healthy); --c2: var(--healthy); }
.cause:nth-child(2n), .rcard:nth-child(2n+1):not(.intro), .ex-grid .ex:nth-child(2n) { --c1: var(--inflame); --c2: var(--inflame); }
.btn-primary { background: var(--healthy); }
.ex .x-hair { fill: var(--ink); }
.ex .x-shoe { stroke: var(--ink); }
#causes, #tkr, #myths, #stories, #arthritis, #prevent { background: linear-gradient(180deg, var(--bone), var(--paper) 65%); }
.s-metal { fill: color-mix(in srgb, var(--ink-2) 25%, var(--paper)); }

/* v9: shaded medical-illustration look for hero knee */
#legSvg .bn { fill: var(--bone-fill); stroke: var(--bone-edge); stroke-width: 2.2; filter: url(#dsh); }
#legSvg .cg { stroke: var(--cart-hi); stroke-width: 7; }
#legSvg .tlab { font-weight: 700; font-size: 13px; fill: var(--ink); }
#legSvg .lead path { stroke: var(--ink); stroke-width: 1.2; opacity: .8; }
#legSvg .bn { fill: color-mix(in srgb, var(--bone-shade) 45%, var(--paper)); }
#legSvg .tis { fill: color-mix(in srgb, var(--muscle) 55%, var(--paper)); stroke: var(--muscle-lo); stroke-opacity: .4; }

/* v10: image figures + calmer palette (mostly white, green as accent) */
.kimg { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; }
.anat-ref .kimg { max-width: 860px; margin-inline: auto; border: 1px solid var(--line); }
:root { --bone: #F8F9F8; --ink: #1D2321; --ink-2: #5B6561; --line: #E3E8E5; --healthy-soft: #EDF4F0; --cart-hi: #CFE9DB; --skin-a: #F2F5F3; --skin-b: #E1E8E4; }
.hero { background: var(--bone); }
.hero-fig .plate { background: #fff; }
.paths .path { background: var(--paper); border-color: var(--line); }
#causes, #tkr, #myths, #stories, #arthritis, #prevent { background: var(--paper); }
.cause:nth-child(n), .rcard:nth-child(n):not(.intro), .ex-grid .ex:nth-child(n) { --c1: var(--healthy); --c2: var(--healthy); }
.cause:nth-child(2n), .rcard:nth-child(2n+1):not(.intro), .ex-grid .ex:nth-child(2n) { --c1: var(--inflame); --c2: var(--inflame); }
.cause { border-top-color: var(--healthy); }
.cause:nth-child(3n) { border-top-color: var(--inflame); }
.btn-primary { background: var(--ink); }
.eyebrow { color: var(--ink); }
.eyebrow::before { background: var(--healthy); }
.jplate .kimg{border:1px solid var(--line)}

/* v14: real-image anatomy + X-ray compare */
.anat-fig .kimg { border: 1px solid var(--line); }
.cmp-box { aspect-ratio: 434 / 432; max-width: 560px; margin-inline: auto; width: 100%; }
.cmp-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cmp-box > img.oa { clip-path: inset(0 0 0 var(--pos, 50%)); }
.cmp-label { top: auto; bottom: 14px; }

/* v15: front-view anatomy with highlight-and-dim */
.anat-stage { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.anat-stage .kimg { border: 0; border-radius: 0; }
.anat-ov { position: absolute; inset: 0; width: 100%; height: 100%; }
.anat-ov .dim { fill: #0d1f16; opacity: 0; transition: opacity .35s; pointer-events: none; }
.anat-ov .hole, .anat-ov .glow { display: none; }
.anat-ov .glow polygon { fill: none; stroke: var(--healthy); stroke-width: 7; stroke-linejoin: round; }
.anat-ov .hit polygon { fill: transparent; cursor: pointer; }
#anatFig[data-sel] .anat-ov .dim { opacity: .62; }
.anat-stage { box-shadow: 0 18px 40px -22px rgba(18,38,29,.45); }
#anatFig[data-sel="femur"] .anat-ov .hole[data-part="femur"], #anatFig[data-sel="femur"] .anat-ov .glow[data-part="femur"] { display: inline; }
#anatFig[data-sel="tibia"] .anat-ov .hole[data-part="tibia"], #anatFig[data-sel="tibia"] .anat-ov .glow[data-part="tibia"] { display: inline; }
#anatFig[data-sel="patella"] .anat-ov .hole[data-part="patella"], #anatFig[data-sel="patella"] .anat-ov .glow[data-part="patella"] { display: inline; }
#anatFig[data-sel="cartilage"] .anat-ov .hole[data-part="cartilage"], #anatFig[data-sel="cartilage"] .anat-ov .glow[data-part="cartilage"] { display: inline; }
#anatFig[data-sel="meniscus"] .anat-ov .hole[data-part="meniscus"], #anatFig[data-sel="meniscus"] .anat-ov .glow[data-part="meniscus"] { display: inline; }
#anatFig[data-sel="ligament"] .anat-ov .hole[data-part="ligament"], #anatFig[data-sel="ligament"] .anat-ov .glow[data-part="ligament"] { display: inline; }
#anatFig[data-sel="muscle"] .anat-ov .hole[data-part="muscle"], #anatFig[data-sel="muscle"] .anat-ov .glow[data-part="muscle"] { display: inline; }
#anatFig[data-sel="synovial"] .anat-ov .hole[data-part="synovial"], #anatFig[data-sel="synovial"] .anat-ov .glow[data-part="synovial"] { display: inline; }

/* v20: implant figure polish */
.implant-fig { display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin-inline: auto; }
.implant-fig .tlab { font-size: 15px; font-weight: 600; fill: var(--ink); }
.implant-fig .tlab.ur { font-size: 18px; }
.implant-fig figcaption { padding-inline: 4px; }


/* ===== v23: 3D hero knee ===== */
#legSvg .bn { fill: url(#gBone); }
#legSvg .tis { fill: url(#gMus); stroke: none; opacity: .9; }
#legSvg .cg { stroke: url(#gCart); stroke-width: 7; }
#legSvg .bn { filter: drop-shadow(2px 4px 4px rgba(0,0,0,.22)); }
#legSvg .tend { stroke-width: 7; }
#legSvg .bhi { stroke-width: 4; opacity: .8; }
#legSvg .bn { stroke: var(--bone-edge); stroke-width: 2.2; }
#legSvg .sgrid { opacity: .35; }


/* ===== v25: warm, patient-friendly hero cards ===== */
.tagline { font-family: var(--f-body); font-weight: 600; color: var(--ink); }
.tagline svg { width: 30px; height: 30px; }
.scroll-hint { font-family: var(--f-body); font-size: .95rem; letter-spacing: 0; }
.paths .path { grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 10px; align-items: center; padding: 20px; border-radius: 20px; border-color: var(--line); background: var(--paper); box-shadow: 0 6px 20px rgba(18,38,29,.05); }
.paths .path::before { display: none; }
.paths .path b, .paths .path .d { grid-column: 1 / -1; }
.paths .path b { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; }
.pico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #fff; }
.pico svg { width: 22px; height: 22px; }
.pstep { font-family: var(--f-body); font-size: .85rem; font-weight: 700; color: var(--pc); }
.paths .path:hover { transform: translateY(-3px); box-shadow: 0 12px 26px color-mix(in srgb, var(--pc) 18%, transparent); }

/* v26: green header */
.lang button[aria-pressed="true"] { background: var(--healthy); color: #fff; }
.brand-name { color: var(--healthy); }
.foot .brand-name { color: var(--bone); }
.menu > li > a, .menu > li > button { color: var(--healthy); font-weight: 600; }
.menu > li > a:hover, .menu > li > button:hover, .menu > li.active > a, .menu > li.active > button { background: var(--healthy); color: #fff; }

/* v29: numbered markers on the anatomy figure */
.anat-ov .num { cursor: pointer; transition: transform .2s; }
.anat-ov .num circle { fill: #fff; stroke: var(--healthy); stroke-width: 5; filter: drop-shadow(0 2px 3px rgba(18,38,29,.35)); }
.anat-ov .num text { fill: var(--healthy); font: 800 29px var(--f-body, system-ui), sans-serif; pointer-events: none; }
#anatFig[data-sel] .anat-ov .num { opacity: .85; }
#anatFig[data-sel="femur"] .num[data-part="femur"], #anatFig[data-sel="tibia"] .num[data-part="tibia"], #anatFig[data-sel="patella"] .num[data-part="patella"], #anatFig[data-sel="cartilage"] .num[data-part="cartilage"], #anatFig[data-sel="meniscus"] .num[data-part="meniscus"], #anatFig[data-sel="ligament"] .num[data-part="ligament"], #anatFig[data-sel="muscle"] .num[data-part="muscle"], #anatFig[data-sel="synovial"] .num[data-part="synovial"] { opacity: 1; }
#anatFig[data-sel="femur"] .num[data-part="femur"] circle, #anatFig[data-sel="tibia"] .num[data-part="tibia"] circle, #anatFig[data-sel="patella"] .num[data-part="patella"] circle, #anatFig[data-sel="cartilage"] .num[data-part="cartilage"] circle, #anatFig[data-sel="meniscus"] .num[data-part="meniscus"] circle, #anatFig[data-sel="ligament"] .num[data-part="ligament"] circle, #anatFig[data-sel="muscle"] .num[data-part="muscle"] circle, #anatFig[data-sel="synovial"] .num[data-part="synovial"] circle { fill: var(--healthy); }
#anatFig[data-sel="femur"] .num[data-part="femur"] text, #anatFig[data-sel="tibia"] .num[data-part="tibia"] text, #anatFig[data-sel="patella"] .num[data-part="patella"] text, #anatFig[data-sel="cartilage"] .num[data-part="cartilage"] text, #anatFig[data-sel="meniscus"] .num[data-part="meniscus"] text, #anatFig[data-sel="ligament"] .num[data-part="ligament"] text, #anatFig[data-sel="muscle"] .num[data-part="muscle"] text, #anatFig[data-sel="synovial"] .num[data-part="synovial"] text { fill: #fff; }

/* v30: realistic knee-joint emblem */
.brand { gap: 12px; }
.brand svg { width: 46px; height: 46px; filter: drop-shadow(0 3px 6px rgba(11,85,52,.28)); }
@media (max-width: 420px) { .brand svg { width: 38px; height: 38px; } }

/* v33: real implant photo */
.implant-fig { background: #fff; }
.implant-fig .implant-img { display: block; width: 100%; max-width: 380px; height: auto; margin-inline: auto; border-radius: 14px; }
.jplate .kneecrop { display:block; width:100%; max-width:260px; height:auto; margin:0 auto; border:0; border-radius:10px; }
.jplate:has(.kneecrop) { width: fit-content; max-width: 100%; margin-inline: auto; padding: 0; overflow: hidden; background: #E3EAEE; border-color: transparent; }
.jplate .kneecrop { max-width: min(280px, 100%); border-radius: 0; }

.jplate .kneecrop { width: 280px; max-width: 100%; height: auto; aspect-ratio: 280 / 380; }


/* ===== v43: hero photo ===== */
.hero-fig .plate.hero-photo-wrap { position: relative; padding: 0; overflow: hidden; border-radius: 24px; background: var(--healthy-soft); box-shadow: 0 24px 50px -24px rgba(18,38,29,.45); }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-photo-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.92); color: #12261D; font-weight: 700; font-size: .98rem; line-height: 1.5; border-left: 4px solid var(--healthy); }
.hero-photo-cap .ur { font-size: 1.1rem; line-height: 1.9; }


/* ===== v44: hero patient story (4 photos) ===== */
.story-stage { aspect-ratio: 4 / 5; }
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 5s ease; }
.story-img.on { opacity: 1; transform: scale(1); }
.story-caps { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.story-cap { display: none; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.93); color: #12261D; font-weight: 700; font-size: .98rem; line-height: 1.5; border-left: 4px solid var(--healthy); }
.story-cap.on { display: flex; animation: storyIn .5s ease both; }
.story-cap .ur { font-size: 1.1rem; line-height: 1.9; }
.story-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--healthy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.story-cap > .en, .story-cap > .ur { flex: 1; min-width: 0; }
.story-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.story-step { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink-2); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.story-step b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--healthy-soft); color: var(--healthy); font-size: .9rem; }
.story-step.on { background: var(--healthy); border-color: var(--healthy); color: #fff; }
.story-step.on b { background: #fff; color: var(--healthy); }
.story-step:focus-visible { outline: 3px solid var(--healthy); outline-offset: 2px; }
@keyframes storyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .story-img, .story-cap.on { transition: none; animation: none; } }
.hero-fig.story { padding: 0; border: 0; background: none; box-shadow: none; }
@media (max-width: 860px) { .hero-fig.story { order: -1; width: 100%; max-width: 440px; margin: 0 auto 8px !important; } }

/* ===== v46: mobile polish ===== */
@media (max-width: 640px) {
  .lang button { min-height: 36px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .foot a { display: inline-block; padding: 10px 0; font-size: 1rem; }
  .refs a { display: inline-block; padding: 6px 0; }
  .refs, .refs li, .refs p { font-size: .82rem; line-height: 1.6; }
  .plate { overflow: hidden; }
  .tag, .mono, .badge, .pill, td .tag, th { font-size: .78rem; }
  .wrap { padding-inline: 16px; }
  img, svg, video { max-width: 100%; }
  .btn, .btn-primary, .btn-ghost { min-height: 46px; }
}

.sfig-img { display:block; width:100%; max-width:180px; height:auto; aspect-ratio:560/742; object-fit:cover; border-radius:10px; margin-bottom:8px; border:1px solid var(--line); }

/* v38: uniform figure row in surgery cards */
.surg-step .sfig, .surg-step .sfig-img { height: 96px; max-width: 180px; margin-bottom: 14px; }
.surg-step .sfig { width: 100%; }
.surg-step .sfig-img { width: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; object-position: left center; border: 0; border-radius: 0; mix-blend-mode: multiply; }

/* ===== v50: activity photo cards ===== */
.acts { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.acts .act { grid-column: span 2; display: block; padding: 0; overflow: hidden; text-align: left; box-shadow: 0 1px 0 var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.acts .act:nth-child(n+4) { grid-column: span 3; }
.acts .act img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s; }
.acts .act:nth-child(n+4) img { aspect-ratio: 4 / 3; }
.acts .act p { margin: 0; padding: 12px 14px; font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; border-top: 3px solid var(--healthy); background: var(--paper); }
.acts .act:nth-child(even) p { border-top-color: var(--inflame); }
html[data-lang="ur"] .acts .act p { font-family: var(--f-ur); text-align: right; font-size: 1.1rem; }
.acts .act:hover { transform: translateY(-4px); border-color: var(--healthy); box-shadow: 0 14px 30px -14px rgba(18,38,29,.35); }
.acts .act { overflow: hidden; }
.acts .act:hover img { transform: scale(1.06); }
@media (max-width: 560px) { .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .acts .act, .acts .act:nth-child(n+4) { grid-column: span 1; } .acts .act:nth-child(5) { grid-column: span 2; } .acts .act:nth-child(n+4) img { aspect-ratio: 1 / 1; } .acts .act:nth-child(5) img { aspect-ratio: 16 / 9; } .acts .act p { padding: 10px 12px; font-size: .95rem; } }

/* v53: 3D implant video */
.implant-fig .implant-vid { display:block; width:100%; max-width:520px; aspect-ratio:16/9; object-fit:cover; border-radius:16px; background:#b4bcc3; box-shadow:0 14px 34px rgba(18,38,29,.18); }
.surg-step .sfig-img { height: 110px; max-width: 100%; mix-blend-mode: multiply; }

.pivot-fig .pivot-vid { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:12px; background:#0f3a6b; }

.xray .kimg { display:block; width:100%; max-width:760px; height:auto; margin-inline:auto; border-radius:12px; }

.cause .cimg { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: var(--bone); }
.cause:hover .cimg { transform: none; }
.cause .cimg { background: transparent; object-fit: contain; aspect-ratio: 3 / 2; }

/* ===== v70 additions: readability, implant choice, FAQ, contact, CTAs ===== */
.chapter, .mono { font-size: .875rem; }
@media (max-width: 860px) { .hero-fig.story { order: 0; margin: 8px auto 0 !important; } .hero-copy > .hero-tabs { display: none; } }

.nav-cta { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--healthy); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; margin-inline-start: 8px; }
.nav-cta:hover { text-decoration: none; filter: brightness(1.08); }
@media (max-width: 1100px) { .nav-cta { display: none; } }
.mobile-nav .mnav-cta { background: var(--healthy); color: #fff !important; border-radius: 12px; text-align: center; font-weight: 700; margin-top: 8px; }

.float-cta { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--healthy); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(18,38,29,.5); }
.float-cta svg { width: 20px; height: 20px; }
.float-cta:hover { text-decoration: none; filter: brightness(1.08); }
@media (min-width: 1101px) { .float-cta { display: none; } }

.ic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.ic-card { background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.ic-card h3 { font-size: var(--s1); }
.ic-card p { color: var(--ink-2); }
.ic-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--healthy-soft); color: var(--healthy); }
.ic-ico svg { width: 24px; height: 24px; }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 600; font-size: var(--s1); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; color: var(--healthy); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; }

.contact-grid { align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.contact-points svg { width: 22px; height: 22px; color: var(--healthy); flex-shrink: 0; }
.cb-form { background: var(--bone); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; box-shadow: var(--shadow); }
.cb-form label { display: grid; gap: 6px; font-weight: 600; }
.cb-form label > span[aria-hidden] { display: none; }
.cb-form input:not([type=radio]):not([type=checkbox]), .cb-form select, .cb-form textarea { width: 100%; font: inherit; font-size: 1.0625rem; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); min-height: 48px; }
.cb-form input:focus, .cb-form select:focus, .cb-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--healthy) 35%, transparent); border-color: var(--healthy); }
.cb-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cb-form legend { font-weight: 600; margin-bottom: 6px; width: 100%; }
.cb-form .radio, .cb-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.cb-form .radio input, .cb-form .consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--healthy); flex-shrink: 0; }
.cb-form button { justify-content: center; font-size: 1.0625rem; min-height: 52px; }
.cb-form button:disabled { opacity: .6; }
.cb-form { position: relative; }
.cb-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.cb-status { min-height: 1.5em; font-weight: 600; }
.cb-status.ok { color: var(--healthy); }
.cb-status.err { color: var(--inflame); }
footer .about { margin-top: 14px; font-size: .9375rem; line-height: 1.6; opacity: .85; }
footer .refs { display: grid; gap: 6px; }
