/* Site-wide finish layer. Loaded last on every page: one header, one button shape,
   one card radius, one closing call to action. */

/* Rendering and type */
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body{font-variant-numeric:lining-nums}
body :is(h1,h2,h3){text-wrap:balance}
body :is(p,li,figcaption,dd){text-wrap:pretty}
::selection{background:#F5A85C;color:#16273e}

/* Header: compact, ink, continuous with the dark page tops */
html body .mh-header.mh-header.mh-header{background:#0f1f33ed;border-bottom:1px solid #ffffff14;-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3)}
html body .mh-header.mh-header .mh-header__inner{min-height:3.9rem}
html body .mh-header.mh-header .mh-brand.mh-brand img{width:7.6rem;filter:brightness(0) invert(1)}
html body .mh-header.mh-header .mh-brand.mh-brand span{color:#b4c3d3;border-left-color:#ffffff2e;font-size:.62rem}
html body .mh-header.mh-header .mh-nav__link.mh-nav__link{color:#c0ccd9;font-size:.72rem;letter-spacing:.07em}
html body .mh-header.mh-header .mh-nav__link.mh-nav__link:is(:hover,:focus-visible,.is-active){color:#fff;background:transparent}
html body .mh-header.mh-header .mh-nav__link.mh-nav__link::after{bottom:0}
html body .mh-header.mh-header .mh-origin.mh-origin{color:#b4c3d3}
html body .mh-header.mh-header .language-picker>summary{min-height:2.2rem;background:transparent;border-color:#ffffff33;color:#e8eef5!important}
html body .mh-header.mh-header .language-picker>summary:hover{border-color:#ffffff66}
html body .mh-header.mh-header .language-picker .language-chevron{color:#F5A85C}
@media(max-width:800px){
html body .mh-header.mh-header .mh-header__inner{padding-top:.55rem}
html body .mh-header.mh-header .mh-brand.mh-brand img{width:6.9rem}
html body .mh-header.mh-header .mh-nav__link.mh-nav__link{min-height:2.6rem}
html body .mh-header.mh-header .language-picker>summary{min-height:2rem}
}

/* Buttons: one pill shape, one hover */
html body :is(a.button,a.pm-button,.enquiry-submit):is(.button,.pm-button,.enquiry-submit):is(.button,.pm-button,.enquiry-submit){border-radius:999px;padding:.95rem 1.9rem;font-weight:600;letter-spacing:.005em;transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s,background .2s}
html body :is(a.button,a.pm-button,.enquiry-submit):is(.button,.pm-button,.enquiry-submit):is(.button,.pm-button,.enquiry-submit):hover{transform:translateY(-1px);box-shadow:0 12px 26px -12px #16273e73}
html body :is(a.button,a.pm-button,.enquiry-submit):is(.button,.pm-button,.enquiry-submit):is(.button,.pm-button,.enquiry-submit):active{transform:none}
html body :is(.hero__video-toggle,.practice-hero__video-toggle,.pm-hero__video-toggle){border-radius:999px;padding-inline:1.1rem}
@media(prefers-reduced-motion:reduce){html body :is(a.button,a.pm-button,.enquiry-submit):is(.button,.pm-button,.enquiry-submit):is(.button,.pm-button,.enquiry-submit):hover{transform:none}}

/* Cards and photographs: one radius, one shadow */
html body main :is(.workflow__steps>li,.patient-journey__delivery,.pm-context-grid>article,.pm-research__grid>article,.pm-session-cards>article,.enquiry-form,.methods__evidence,.protocol-delivery){border-radius:16px}
html body main :is(.workflow__steps>li,.patient-journey__delivery,.pm-session-cards>article,.methods__evidence){box-shadow:0 1px 2px #16273e0a,0 22px 44px -26px #16273e3d}
html body main :is(.workflow__steps>li,.pm-context-grid>article,.pm-session-cards>article){overflow:hidden}
html body main :is(.study__visual img,.person-card figure,.person-card figure img,.pm-hygiene__visual,.pm-hygiene__visual img){border-radius:14px}
html body main .person-card figure{overflow:hidden}

/* Closing call to action: the same ink band on every page */
html body main section:is(.closing,.pm-closing):is(.closing,.pm-closing){display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:clamp(1.6rem,3vw,2.4rem);padding-block:clamp(4rem,7vw,6.5rem);background:#16273e;border:0;border-bottom:1px solid #ffffff1a}
html body main section:is(.closing,.pm-closing) :is(.closing__logo,img){display:none}
html body main section:is(.closing,.pm-closing):is(.closing,.pm-closing) h2{max-width:20ch;margin:0 auto;font-size:clamp(2.4rem,4.4vw,4.4rem);line-height:1.1;color:#f4f1ea}
html body main section:is(.closing,.pm-closing):is(.closing,.pm-closing) h2 em{color:#9fd6ee}
html body main section:is(.closing,.pm-closing):is(.closing,.pm-closing) p:not(.closing__status){color:#F5A85C;margin-inline:auto}
html body main section:is(.closing,.pm-closing):is(.closing,.pm-closing) :is(a.button,a.pm-button):is(a.button,a.pm-button){background:#F5A85C;color:#16273e;padding:1.15rem 2.8rem;box-shadow:0 10px 26px #0000003d}
html body main section:is(.closing,.pm-closing):is(.closing,.pm-closing) :is(a.button,a.pm-button):is(a.button,a.pm-button):hover{background:#FFBF80}

/* Fine print stays readable */
html body main :is(.methods__scope,.method-reference__citation,.biofeedback__product-note,.biofeedback__scope,.study__note,.enquiry-hint,.pm-practice__contexts,.pm-session-note){font-size:.84rem;line-height:1.6}

/* Entrance on scroll (scripts/reveal.js adds and then removes these classes). */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .7s cubic-bezier(.16,1,.3,1) var(--reveal-delay,0ms),transform .7s cubic-bezier(.16,1,.3,1) var(--reveal-delay,0ms);will-change:opacity,transform}
.reveal.is-visible{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* Cookie notice (scripts/consent.js) */
.consent{position:fixed;left:clamp(.8rem,2vw,1.5rem);right:clamp(.8rem,2vw,1.5rem);bottom:clamp(.8rem,2vw,1.5rem);z-index:1000;max-width:640px;margin-inline:auto;display:flex;flex-wrap:wrap;align-items:center;gap:.9rem 1.2rem;padding:1rem 1.2rem;border-radius:14px;background:#0f1f33f7;border:1px solid #ffffff1f;box-shadow:0 24px 60px -20px #00000099;color:#e8eef5;font-family:'DM Sans',Arial,sans-serif}
.consent[hidden]{display:none}
.consent-text{margin:0;flex:1 1 260px;font-size:.84rem;line-height:1.5;color:#d3dde8}
.consent-text a{color:#FFBF80;text-decoration:underline;text-underline-offset:2px}
.consent-actions{display:flex;gap:.6rem;flex-shrink:0}
.consent-btn{cursor:pointer;padding:.6rem 1.2rem;border-radius:999px;font:600 .8rem/1.2 'DM Sans',Arial,sans-serif;transition:background .16s,border-color .16s,color .16s}
.consent-decline{color:#d3dde8;background:transparent;border:1px solid #ffffff38}
.consent-decline:hover{color:#fff;border-color:#ffffff73}
.consent-accept{color:#16273e;background:#F5A85C;border:1px solid #F5A85C}
.consent-accept:hover{background:#FFBF80;border-color:#FFBF80}
.consent-btn:focus-visible{outline:2px solid #FFBF80;outline-offset:3px}
@media(max-width:480px){.consent-actions{width:100%}.consent-btn{flex:1}}

/* Research page: keep the reference mark tight against its heading. */
html body main #states-heading sup{font-size:.5em;line-height:0;vertical-align:super}
html body main #states-heading sup a{padding:0 .08em}

/* "Not a medical device" statements: closing bands and the About vision */
html body main section:is(.closing,.pm-closing):is(.closing,.pm-closing) .closing__status{max-width:60rem;margin:clamp(.8rem,2vw,1.6rem) auto 0;font-size:.92rem;line-height:1.7;color:#b7c4d4}
html body main section:is(.closing,.pm-closing):is(.closing,.pm-closing) .closing__status strong{display:block;margin-bottom:.4rem;font:500 .72rem/1.4 'DM Sans',Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#dbe4ee}
html body main .vision-note{max-width:44ch;margin:1.6rem 0 0;padding-left:1rem;border-left:2px solid #F5A85C;font:400 .9rem/1.65 'DM Sans',Arial,sans-serif;color:#e3ebf3}

/* Arrows and symbols stay plain text on phones, never colour emoji. */
html{font-variant-emoji:text}

/* Background-video toggle removed at the owner's request. The video still does not autoplay when reduced motion is requested. */
html body :is(.hero__video-toggle,.practice-hero__video-toggle,.pm-hero__video-toggle){display:none!important}
