/* =========================================================================
   Fix My Hair page template (2026-11-24): the older bespoke pages (FUE, SMP,
   hair systems, female hair loss, assessment, pricing, contact and the rest)
   in the new-site look. The homepage language: flat black sections, no gold
   glows or gold rules, cards with thin neutral edges, letter-spaced eyebrows,
   and the closing call as a gold card.
   Loaded LAST in <head> on every page that is not a homepage-design page, by
   tools/apply-theme.mjs (fmh-tpl block). Values from assets/ds/tokens.css.
   :not(#_) matches the weight the effects layer uses. ASCII only (gate D1).
   ========================================================================= */

/* ---- section rhythm: flat black, neutral rules ------------------------- */
html:root body .section-divider:not(#_){height:1px!important;background:var(--c-line)!important;background-image:none!important;opacity:1}
html:root body :is(.sec-emph,.cn-final,.jrnl-sec):not(#_){border-top-color:var(--c-line)!important}
html:root body .sec-emph:not(#_){background-color:var(--c-bg)!important}

/* ---- no gold glows: the homepage lights cards, not sections -------------- */
html:root body :is(.sec-emph,.cn-final):not(#_)::before,
html:root body :is(.sec-emph,.cn-final):not(#_)::after{background-image:none!important;box-shadow:none!important}
html:root body :is(.pr-hero,.dx-hero,.fem-hero,.legal-hero,.fue-doc,.cn-final):not(#_){background-image:none!important}

/* ---- strips and tables: neutral edges ---------------------------------- */
html:root body :is(.inc-own,.fin-strip,.smp-comp,.smp-comp-row,.hs-comp,.hs-comp-row,.fue-jstep-img,.drnote-rule):not(#_){border-color:var(--c-line)!important}

/* ---- eyebrows: the homepage label, not the mono tag ---------------------- */
html:root body :is(.eyebrow,.kicker,.sec-eye,.jrnl-eyebrow,.fem-eye):not(#_){font-family:var(--font-body)!important;font-weight:600!important;font-size:.75rem!important;letter-spacing:.2em!important;text-transform:uppercase;color:var(--c-accent)!important}

/* ---- cards: the homepage hover (warm surface + thin gold edge) ----------- */
html:root body :is(.jcard,.fact,.svc-card,.pcard,.wf-card,.fem-cause,.fem-treat,.life-card,.col-card,.pig-col,.smp-pc,.hs-pc,.fue-pc,.fue-phase,.use-c,.look):not(#_){transition:background-color var(--dur-fast) var(--ease),box-shadow var(--dur-fast) var(--ease),border-color var(--dur-fast) var(--ease)}
@media (hover:hover){
  html:root body :is(.jcard,.fact,.svc-card,.pcard,.wf-card,.fem-cause,.fem-treat,.life-card,.col-card,.pig-col,.smp-pc,.hs-pc,.fue-pc,.fue-phase,.use-c,.look):not(#_):hover{background-color:var(--c-surface-hover)!important;border-color:var(--c-edge-accent)!important;box-shadow:inset 0 0 0 1px var(--c-edge-accent)!important}
}

/* ---- closing call: the homepage's gold card ------------------------------ */
html:root body .cn-final:not(#_){box-sizing:border-box;width:auto;max-width:1440px;margin:var(--sp-8) var(--gutter)!important;padding:clamp(2.5rem,6vw,4.5rem) var(--sp-5)!important;border:0!important;border-radius:var(--r-lg)!important;background-color:var(--c-accent)!important;color:var(--c-on-accent)!important;overflow:hidden}
@media (min-width:1600px){html:root body .cn-final:not(#_){margin-left:auto!important;margin-right:auto!important}}
html:root body .cn-final:not(#_) :is(h2,h3,.cn-final-h,p,.cn-final-p,.cn-final-sub,.eyebrow,.sec-eye){color:var(--c-on-accent)!important}
html:root body .cn-final:not(#_) :is(h2,h3,.cn-final-h) :is(em,i,.it,span){color:var(--c-on-accent)!important;background:none!important}
html:root body .cn-final:not(#_) .btn-gold{background:var(--c-bg)!important;color:var(--c-accent)!important;perspective:none;clip-path:none!important}
html:root body .cn-final:not(#_) .btn-gold:hover{color:var(--c-accent)!important;box-shadow:0 12px 30px -14px rgba(0,0,0,.6)!important}
html:root body .cn-final:not(#_) :is(.btn-line,.btn-ghost){border-color:rgba(10,10,10,.45)!important;color:var(--c-on-accent)!important;background:transparent!important}
html:root body .cn-final:not(#_) :is(.btn-line,.btn-ghost):hover{background:var(--c-bg)!important;color:var(--c-accent)!important;border-color:var(--c-bg)!important}
html:root body .cn-final:not(#_) :is(.btn-line,.btn-ghost,.btn-gold) .fmh-icon{background:var(--c-accent);color:var(--c-on-accent)}
html:root body .cn-final:not(#_) :is(.fmx-layer,.fmx-rays,.fmx-dot){display:none!important}
html:root body :is(.btn-wa,a[href*="wa.me"].btn):not(#_){font-family:var(--font-body)!important;font-weight:700!important}

/* ---- patient hub path button: the homepage outline pill ----------------- */
html:root body .path-seq-go:not(#_){display:flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center;min-height:44px;padding:0 1.25rem;border:1.5px solid rgba(240,237,232,.4)!important;border-radius:var(--r-pill)!important;background:transparent!important;color:var(--c-text)!important;font:700 var(--fs-sm) var(--font-body)!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none;transition:background-color var(--dur-fast) var(--ease),color var(--dur-fast) var(--ease),border-color var(--dur-fast) var(--ease)}
html:root body .path-seq-go:not(#_):is(:hover,:focus-visible){background:var(--c-accent)!important;border-color:var(--c-accent)!important;color:var(--c-on-accent)!important}

/* ---- tables: neutral header row ----------------------------------------- */
html:root body :is(.legal,.legal-body,.art) table th:not(#_){background:var(--c-surface-2)!important;color:var(--c-text)!important}
html:root body :is(.legal,.legal-body,.art) table :is(td,th):not(#_){border-color:var(--c-line)!important}

/* ---- phones: sections size to their content (the old full-screen "panel" min-height
   left screen-tall gaps once scroll-snap was removed in 2026-07) --------------------- */
@media (max-width:720px){html:root body .sec:not(#_){min-height:0!important;justify-content:flex-start!important;scroll-snap-align:none!important}}

@media (prefers-reduced-motion:reduce){html:root body :is(.jcard,.fact,.svc-card,.pcard,.wf-card,.fem-cause,.fem-treat,.life-card,.col-card,.pig-col,.smp-pc,.hs-pc,.fue-pc,.fue-phase,.use-c,.look):not(#_){transition:none}}

/* ---- header: the homepage bar on every page (owner, 2026-11-25) ----------
   Same as the homepage once its hero is passed: no glass bar; the logo sits in a
   page-black tab with a rounded corner, the menu floats in a frosted pill (desktop),
   the gold button and a round menu button float top-right. Open menu = normal bar. */
html:root body .fnav:not(.is-open):not(#_){background:none!important;border-bottom:0!important;box-shadow:none}
html:root body .fnav:not(.is-open):not(#_)::before{display:none}
html:root body .fnav:not(.is-open):not(#_) .fnav-row{height:auto;align-items:flex-start;padding:0;gap:0}
html:root body .fnav:not(.is-open):not(#_) .fnav-logo{position:relative;background:var(--c-bg);padding:16px 16px 12px 18px;border-bottom-right-radius:var(--r-lg)}
html:root body .fnav:not(.is-open):not(#_) .fnav-logo svg{width:84px;height:auto;filter:drop-shadow(.06em .1em 0 var(--c-accent-shade)) drop-shadow(0 4px 8px rgba(0,0,0,.55))}
html:root body .fnav:not(.is-open):not(#_) .fnav-act{gap:8px;margin:18px 12px 0 auto}
html:root body .fnav:not(.is-open):not(#_) .fnav-cta{min-height:40px;padding:0 16px;font-size:13px}
html:root body .fnav:not(.is-open):not(#_) .fnav-burger{width:40px;height:40px;margin:0;border-radius:50%;gap:4px;filter:none;
  background:rgba(10,10,10,.45);box-shadow:inset 0 0 0 1.5px rgba(240,237,232,.4)}
html:root body .fnav:not(.is-open):not(#_) .fnav-burger span{width:16px;height:1.5px}
html:root body .fnav:not(.is-open):not(#_) .fnav-crumbs{padding-left:18px}
@media (min-width:900px){
  html:root body .fnav:not(.is-open):not(#_){right:16px}
  html:root body .fnav:not(.is-open):not(#_) .fnav-logo{padding:12px 22px 12px 32px}
  html:root body .fnav:not(.is-open):not(#_) .fnav-logo svg{width:96px}
  html:root body .fnav:not(.is-open):not(#_) .fnav-menu{position:relative;flex:0 1 auto;align-self:flex-start;margin:12px 0 0 18px;padding:0 16px;height:42px;align-items:center}
  html:root body .fnav:not(.is-open):not(#_) .fnav-menu::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--r-pill);background:rgba(20,20,20,.82);
    -webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
  html:root body .fnav:not(.is-open):not(#_) :is(.fnav-top,.fnav-m a){font-size:13px;color:var(--c-tan-ink);text-shadow:none}
  html:root body .fnav:not(.is-open):not(#_) :is(.fnav-top,.fnav-m a):hover,
  html:root body .fnav:not(.is-open):not(#_) .fnav-top[aria-current="page"]{color:var(--c-accent)}
  html:root body .fnav:not(.is-open):not(#_) .fnav-m{display:list-item;list-style:none}
  html:root body .fnav:not(.is-open):not(#_) .fnav-m a{display:inline-flex;align-items:center;min-height:40px;padding:0 8px;font-size:0!important;white-space:nowrap}
  html:root body .fnav:not(.is-open):not(#_) .fnav-m a::before{font-size:13px}
  html:root body .fnav:not(.is-open):not(#_) .fnav-m a[href^="tel:"]::before{content:"Call"}
  html:root body .fnav:not(.is-open):not(#_) .fnav-m a[href*="wa.me"]::before{content:"WhatsApp"}
  html:root body .fnav:not(.is-open):not(#_) .fnav-act{margin:12px 16px 0 auto}
  html:root body .fnav:not(.is-open):not(#_) .fnav-tel{display:none}
  html:root body .fnav:not(.is-open):not(#_) .fnav-cta{min-height:34px;padding:0 15px;font-size:13px}
  html:root body .fnav:not(.is-open):not(#_) .fnav-l{display:none}
  html:root body .fnav:not(.is-open):not(#_) .fnav-s{display:inline}
  html:root body .fnav:not(.is-open):not(#_) .fnav-crumbs{padding-left:32px}
}
