/* ============================================================================
   OrganoGEN — Procedure-page desktop styles
   Linked from every /procedures/{slug}/index.html via a <link> tag in <head>.
   These rules are extracted verbatim from the Cloud Design template
   procedure-cmc-arthroplasty.html and apply only at desktop widths because
   the mobile shell hides everything outside .mobile-shell at <=768px.

   Do NOT add mobile-shell selectors here; mobile.css owns those.
   Do NOT duplicate site-wide chrome (header / footer / .container / .skip).
   ============================================================================ */

/* In-page breadcrumb (distinct from the mobile shell's .crumbs) */
.crumb{padding:14px 0;border-bottom:1px solid var(--og-border-soft);font-size:0.82rem;color:var(--og-text-light)}
.crumb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.crumb li::after{content:'›';margin-left:6px;color:var(--og-text-secondary)}
.crumb li:last-child::after{display:none}
.crumb a{color:var(--og-teal-blue)}
.crumb [aria-current]{color:var(--og-text-dark);font-weight:600}

/* Article hero */
.aHero{padding:var(--og-space-lg) 0 var(--og-space-md);background:#fff}
.aHero .tag{display:inline-block;font-weight:700;font-size:0.72rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--og-teal-blue);background:var(--og-tint-teal);padding:0.35rem 0.8rem;border-radius:9999px;margin-bottom:1.2rem}
h1.aHero__title{font-family:var(--og-font-heading);font-weight:800;font-size:clamp(2.2rem,4.8vw,3.6rem);line-height:1.1;margin:0 0 1rem;color:var(--og-text-dark);max-width:880px}
.aHero__sub{font-weight:300;font-size:1.25rem;color:var(--og-text-light);max-width:780px;margin:0 0 1.6rem;line-height:1.55}
.aHero__byline{display:flex;flex-wrap:wrap;gap:1.4rem;font-size:0.86rem;color:var(--og-text-light);padding:1rem 0;border-top:1px solid var(--og-border-soft);border-bottom:1px solid var(--og-border-soft)}
.aHero__byline span{display:inline-flex;align-items:center;gap:0.4rem}
.aHero__byline .material-icons{font-size:1rem;color:var(--og-teal-blue)}
.aHero__byline b{color:var(--og-deep-teal);font-weight:600}

/* TL;DR / "Quick Answers" — the chunk LLMs lift */
.qa{background:var(--og-bg-alt);padding:var(--og-space-md) 0;border-bottom:1px solid var(--og-border)}
.qa h2{font:700 0.78rem var(--og-font-heading);text-transform:uppercase;letter-spacing:0.15em;color:var(--og-text-secondary);margin:0 0 1rem}
.qa__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.qa__item{background:#fff;padding:1.1rem 1.3rem;border-radius:8px;border:1px solid var(--og-border-soft)}
.qa__item h3{font-family:var(--og-font-heading);font-weight:700;font-size:0.95rem;color:var(--og-deep-teal);margin:0 0 0.5rem}
.qa__item p{margin:0;font-size:0.94rem;color:var(--og-text-dark);line-height:1.55}
.qa__item p strong{color:var(--og-teal-blue)}

/* Article body — 200px sticky TOC + 760px article column */
.body{display:grid;grid-template-columns:200px 1fr;gap:var(--og-space-lg);padding:var(--og-space-lg) 0}
.toc{position:sticky;top:88px;align-self:start;font-size:0.86rem}
.toc h4{font:700 0.75rem var(--og-font-heading);letter-spacing:0.1em;text-transform:uppercase;color:var(--og-text-secondary);margin:0 0 0.6rem}
.toc ul{list-style:none;padding:0;margin:0;display:grid;gap:0.4rem;border-left:2px solid var(--og-border)}
.toc a{display:block;padding:4px 12px;color:var(--og-text-light)}
.toc a:hover{color:var(--og-teal-blue);border-left:2px solid var(--og-teal-blue);margin-left:-2px}

article{max-width:760px}
article h2{font-family:var(--og-font-heading);font-weight:700;font-size:1.85rem;color:var(--og-text-dark);margin:2.5rem 0 1rem;line-height:1.15}
article h2:first-child{margin-top:0}
article h3{font-family:var(--og-font-heading);font-weight:700;font-size:1.2rem;color:var(--og-deep-teal);margin:1.6rem 0 0.6rem}
article p{font-size:1.02rem;color:var(--og-text-dark);line-height:1.7;margin:0 0 1rem}
article ul,article ol{padding-left:1.3rem;color:var(--og-text-dark);line-height:1.7;font-size:1rem}
article li{margin-bottom:0.4rem}
article p strong{color:var(--og-deep-teal)}
article a{color:var(--og-teal-blue);font-weight:600;border-bottom:1px solid rgba(32,114,140,0.3)}
article a:hover{border-color:var(--og-teal-blue)}
article .alt-name{font-style:italic;color:var(--og-text-light);margin:-0.5rem 0 1rem}

/* Procedure summary card (the schema-mirrored block at top of article) */
.proc{background:#fff;border:1px solid var(--og-teal-blue);border-radius:8px;padding:1.4rem;margin:1.4rem 0 2rem;box-shadow:var(--og-shadow-tint-teal)}
.proc h3{margin:0 0 1rem;color:var(--og-deep-teal);font-family:var(--og-font-heading);font-size:1.1rem}
.proc dl{display:grid;grid-template-columns:160px 1fr;gap:0.5rem 1rem;margin:0;font-size:0.92rem}
.proc dt{font-weight:700;color:var(--og-text-secondary);font-family:var(--og-font-heading);font-size:0.78rem;text-transform:uppercase;letter-spacing:0.05em;align-self:center}
.proc dd{margin:0;color:var(--og-text-dark)}

/* Recovery timeline */
.timeline{margin:1.5rem 0;padding:0;list-style:none;border-left:3px solid var(--og-teal-blue)}
.timeline li{padding:0 0 1.4rem 1.4rem;position:relative}
.timeline li::before{content:'';width:14px;height:14px;background:var(--og-teal-blue);border-radius:50%;position:absolute;left:-8.5px;top:4px;border:3px solid #fff;box-shadow:0 0 0 1px var(--og-teal-blue)}
.timeline b{display:block;font-family:var(--og-font-heading);color:var(--og-deep-teal);font-size:0.85rem;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:0.2rem}
.timeline p{margin:0;font-size:0.96rem;color:var(--og-text-light);line-height:1.55}

/* Stats inline (3-up big-number cards used in the Outcomes section) */
.istats{display:grid;grid-template-columns:repeat(3,1fr);gap:0.8rem;margin:1.4rem 0}
.istat{background:var(--og-bg-alt);padding:1rem;border-radius:6px;text-align:center}
.istat b{display:block;font-family:var(--og-font-heading);color:var(--og-teal-blue);font-size:1.6rem;font-weight:800;margin-bottom:0.3rem}
.istat span{font-size:0.78rem;color:var(--og-text-light);line-height:1.4}

/* CTA block (dark teal banner with white square button) */
.ctaBlock{background:var(--og-deep-teal);color:#fff;padding:1.8rem;border-radius:8px;margin:2.5rem 0;display:grid;grid-template-columns:1fr auto;gap:1.5rem;align-items:center}
.ctaBlock h3{margin:0 0 0.4rem;color:#fff;font-family:var(--og-font-heading);font-size:1.3rem}
.ctaBlock p{margin:0;color:rgba(255,255,255,0.8);font-size:0.94rem}
.ctaBlock a{background:#fff;color:var(--og-deep-teal);border:none;padding:0.95rem 1.5rem;border-radius:2px;font:600 0.85rem var(--og-font-body);text-transform:uppercase;letter-spacing:0.05em}

/* Related grid — 3-col simple cells */
.related{display:grid;grid-template-columns:repeat(3,1fr);gap:0.8rem;margin-top:1rem}
.related a{padding:1rem;background:var(--og-bg-alt);border-radius:6px;border:1px solid var(--og-border-soft);font-size:0.92rem;color:var(--og-text-dark);font-weight:500}
.related a:hover{border-color:var(--og-teal-blue);color:var(--og-teal-blue)}

/* FAQ accordion (desktop) */
.faq{display:grid;gap:0.6rem;margin-top:1rem}
details.faq__item{background:#fff;border:1px solid var(--og-border);border-radius:6px;padding:0.95rem 1.2rem}
details.faq__item[open]{border-color:var(--og-teal-blue)}
details.faq__item summary{font-family:var(--og-font-heading);font-weight:700;font-size:1rem;color:var(--og-deep-teal);cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem}
details.faq__item summary::-webkit-details-marker{display:none}
details.faq__item summary::after{content:'+';font-size:1.3rem;color:var(--og-teal-blue);font-weight:300;transition:transform .25s}
details.faq__item[open] summary::after{transform:rotate(45deg)}
.faq__a{margin-top:0.7rem;color:var(--og-text-light);font-size:0.94rem;line-height:1.6}

/* Reviewer bio (article footer) */
.bio{display:flex;gap:1.2rem;align-items:start;background:var(--og-bg-alt);padding:1.4rem;border-radius:8px;margin-top:2rem}
.bio__avatar{width:64px;height:64px;border-radius:50%;background:var(--og-tint-teal);display:flex;align-items:center;justify-content:center;font:700 1.2rem var(--og-font-heading);color:var(--og-deep-teal);flex-shrink:0}
.bio strong{font-family:var(--og-font-heading);color:var(--og-deep-teal);display:block}
.bio span{font-size:0.85rem;color:var(--og-text-light);display:block;margin:2px 0 0.5rem}
.bio p{font-size:0.9rem;color:var(--og-text-light);margin:0;line-height:1.55}

/* ---- Related products compact rows ---- */
.relRow{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--og-border-soft);border-radius:8px;padding:10px 14px;margin-bottom:8px;max-width:560px;color:inherit;transition:all .25s ease}
.relRow:hover{border-color:var(--og-teal-blue);box-shadow:var(--og-shadow-md)}
.relRow__img{width:56px;height:56px;flex:0 0 56px;background:var(--og-bg-alt);border:1px solid var(--og-border-soft);border-radius:6px;display:flex;align-items:center;justify-content:center;padding:4px}
.relRow__img img{max-width:100%;max-height:100%;object-fit:contain}
.relRow__txt b{display:block;font-family:var(--og-font-heading);color:var(--og-deep-teal);font-size:0.98rem}
.relRow__txt span{font-size:0.84rem;color:var(--og-text-light)}
.relRow__go{margin-left:auto;color:var(--og-text-secondary)}

/* Collapse to single column on tablet/phone (mobile shell takes over <=768px) */
@media (max-width:960px){
  .body,.qa__grid,.proc dl,.related,.istats,.ctaBlock{grid-template-columns:1fr}
  .toc{position:static}
}
