/* Inner-page motion layer (every brand-editorial page except the homepage, which has
   home-motion.css, plus the media page). The title area arrives the way the homepage does: the
   heading comes into focus, a stitch is sewn under it, the portrait develops inside its frame.
   Headings, lists, chips and reading aids settle as they are reached, cards tip toward the
   pointer, and the wave edges of the sections keep a slow swell.

   Safety rules, enforced by scripts/validate-site.mjs:
   - Everything visual lives inside one screen + no-preference block, so reduced motion and
     print render the page exactly as the static design.
   - Content is only hidden through [data-page-state="armed"], which page-motion.js sets on
     elements that are still below the fold and removes on entry, print, focus or page exit.
   - The switch in the footer (html[data-page-motion="off"]) stops every animation here. */
:root {--page-motion-enabled:1}

/* The reading-progress bar and the motion switch are created by page-motion.js. */
[data-page-progress] {
  position:fixed;z-index:70;top:0;left:0;width:100%;height:3px;pointer-events:none;
  background:linear-gradient(90deg,#C9A24A,#F3E3B0);transform-origin:0 50%;
  transform:scaleX(var(--page-progress,0));
}
html[data-page-motion="off"] [data-page-progress] {display:none}
.page-motion-toggle {
  appearance:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:16px;
  padding:8px 16px;border:1px solid rgb(217 232 245 / 50%);border-radius:999px;
  background:transparent;color:inherit;font:inherit;font-size:.875rem;line-height:1.4;cursor:pointer;
}
.page-motion-toggle:hover {background:rgb(255 255 255 / 10%);border-color:rgb(243 227 176 / 80%)}
.page-motion-toggle:focus-visible {outline:3px solid #F3E3B0;outline-offset:3px}
.page-motion-toggle::before {
  content:"";width:10px;height:10px;border-radius:50%;background:#F3E3B0;
}
.page-motion-toggle[aria-checked="false"]::before {background:transparent;box-shadow:inset 0 0 0 2px rgb(217 232 245 / 70%)}
.page-motion-toggle[hidden] {display:none}
@media print {
  .page-motion-toggle, [data-page-progress] {display:none}
}

@media screen and (prefers-reduced-motion:no-preference) {
  body:is(.brand-editorial:not(.brand-home),.media-library-body) {
    --page-ease-out:cubic-bezier(.22,1,.36,1);
    --page-ease-spring:cubic-bezier(.34,1.4,.64,1);
    --page-ease-inout:cubic-bezier(.65,0,.35,1);
  }

  /* ---------- Keyframes. Hidden starts live only here; every ending is the normal style. ---------- */
  @keyframes page-fade {from {opacity:0} to {opacity:1}}
  @keyframes page-rise {from {opacity:0;transform:translate3d(0,26px,0)} to {opacity:1;transform:none}}
  @keyframes page-drop {from {opacity:0;transform:translate3d(0,-12px,0)} to {opacity:1;transform:none}}
  @keyframes page-left {from {opacity:0;transform:translate3d(-28px,0,0)} to {opacity:1;transform:none}}
  @keyframes page-card {from {opacity:0;transform:translate3d(0,32px,0) scale(.96)} to {opacity:1;transform:none}}
  @keyframes page-zoom {from {opacity:0;transform:scale(.94)} to {opacity:1;transform:none}}
  @keyframes page-pop {from {opacity:0;transform:scale(.6)} to {opacity:1;transform:none}}
  @keyframes page-number {from {opacity:0;transform:scale(.3) rotate(-18deg)} to {opacity:1;transform:none}}
  @keyframes page-wipe {from {opacity:1;clip-path:inset(0 100% 0 0)} to {opacity:1;clip-path:inset(0 0 0 0)}}
  @keyframes page-accent {from {background-size:0 2px} to {background-size:56px 2px}}
  @keyframes page-mark {from {background-size:0% 30%} to {background-size:100% 30%}}
  @keyframes page-strip {from {transform:translate3d(0,-100%,0)} to {transform:none}}
  @keyframes page-aurora-a {from {transform:none} to {transform:translate3d(-14%,22%,0) scale(1.18)}}
  @keyframes page-aurora-b {from {transform:none} to {transform:translate3d(18%,-16%,0) scale(.88)}}
  /* The sparkle arrives on the `scale` property and twinkles on opacity/transform: two loops on the same
     property would keep the browser from running either on the compositor. */
  @keyframes page-sparkle {from {scale:.001} to {scale:1}}
  @keyframes page-twinkle {from {opacity:1;transform:none} to {opacity:.4;transform:scale(.8) rotate(-10deg)}}
  @keyframes page-wave {from {transform:translate3d(0,0,0)} to {transform:translate3d(-680px,0,0)}}
  @keyframes page-wave-small {from {transform:translate3d(0,0,0)} to {transform:translate3d(-480px,0,0)}}
  @keyframes page-sheen {
    0% {transform:translate3d(-160%,0,0) skewX(-18deg)}
    22%,100% {transform:translate3d(440%,0,0) skewX(-18deg)}
  }
  @keyframes page-ring {
    0% {opacity:.9;transform:scale(1)}
    60%,100% {opacity:0;transform:scale(1.26,1.5)}
  }
  /* Second edition: the title area arrives in parts, lists and chips cascade, cards tip up into place. */
  /* The same two movements as the homepage: the heading comes into focus, the portrait develops. */
  @keyframes page-focus {
    from {opacity:.01;filter:blur(16px);transform:translate3d(0,16px,0) scale(1.03)}
    50% {opacity:1}
    to {opacity:1;filter:blur(0);transform:none}
  }
  @keyframes page-develop {
    from {opacity:.01;filter:blur(14px);transform:scale(1.08)}
    45% {opacity:1}
    to {opacity:1;filter:blur(0);transform:none}
  }
  @keyframes page-stitch {from {clip-path:inset(0 100% 0 0)} to {clip-path:inset(0 0 0 0)}}
  @keyframes page-underline {from {background-size:0% 2px} to {background-size:100% 2px}}
  @keyframes page-button {from {opacity:.01;transform:translate3d(0,18px,0) scale(.86)} to {opacity:1;transform:none}}
  @keyframes page-chip {from {opacity:.01;transform:scale(.7)} to {opacity:1;transform:none}}
  @keyframes page-item {from {opacity:0;transform:translate3d(-22px,0,0)} to {opacity:1;transform:none}}
  @keyframes page-flip {from {opacity:0;transform:perspective(900px) translate3d(0,44px,0) rotateX(12deg) scale(.95)} to {opacity:1;transform:none}}
  @keyframes page-glow {from {box-shadow:0 0 0 0 rgb(201 162 74 / 55%)} to {box-shadow:0 0 0 24px rgb(201 162 74 / 0%)}}
  @keyframes sky-vt-out {to {opacity:0}}
  @keyframes sky-vt-in {from {opacity:0;transform:translate3d(0,6px,0)}}

  /* Moving between pages (pointer devices only): an even cross-fade, the new page settling by a few
     pixels. Old and new fade over the same span so the screen never dips toward white. The opt-in itself
     (@view-transition) is a one-line inline style in each page head, limited to hover/fine-pointer
     devices: on phones a whole-screen transition reads as the page shaking, and Safari on iOS adds its
     own swipe animation. The script declines the transition whenever motion is off. */
  ::view-transition-old(root) {animation:240ms ease both sky-vt-out}
  ::view-transition-new(root) {animation:240ms ease both sky-vt-in}

  /* ---------- 1. Arrival: strip, header, title panel ---------- */
  body:is(.brand-editorial:not(.brand-home),.media-library-body)::before {animation:page-strip 480ms var(--page-ease-out) backwards}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header .brand {animation:page-left 640ms var(--page-ease-out) 80ms backwards}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header nav li {
    animation:page-drop 460ms var(--page-ease-out) backwards;
    animation-delay:calc(var(--page-n,0) * 34ms + var(--page-base,150ms));
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header .nav-links {--page-base:260ms}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header nav li:nth-child(2) {--page-n:1}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header nav li:nth-child(3) {--page-n:2}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header nav li:nth-child(4) {--page-n:3}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header nav li:nth-child(5) {--page-n:4}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header nav li:nth-child(6) {--page-n:5}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header nav li:nth-child(n+7) {--page-n:6}

  /* A slow light inside the title area and a sparkle on its kicker. Nothing passes over the portrait. */
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero,.media-brand-hero) {position:relative;overflow:hidden;isolation:isolate}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero,.media-brand-hero)::before {
    content:"";position:absolute;z-index:-1;top:-60%;right:-12%;width:70%;aspect-ratio:1;border-radius:50%;pointer-events:none;
    background:radial-gradient(closest-side,rgb(90 155 208 / 55%),rgb(90 155 208 / 0%));
    animation:page-fade 1400ms ease-out backwards,page-aurora-a 22s ease-in-out infinite alternate;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero)::after {
    content:var(--page-warm-light,"");position:absolute;z-index:-1;bottom:-70%;left:-10%;width:55%;aspect-ratio:1;border-radius:50%;pointer-events:none;
    background:radial-gradient(closest-side,rgb(243 227 176 / 24%),rgb(243 227 176 / 0%));
    animation:page-fade 1800ms ease-out backwards,page-aurora-b 28s ease-in-out infinite alternate;
  }
  /* The light title areas (entry pages, media page) carry the homepage's sky light instead. Their lower
     edge is a wave drawn in the background, so the warm light of the blue panels is not generated
     there (its content comes from a custom property): the ::after itself keeps a single owner. */
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.landing-hero,.media-brand-hero)::before {
    background:radial-gradient(closest-side,rgb(207 227 244 / 85%),rgb(207 227 244 / 0%));
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .landing-hero {--page-warm-light:none}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero) .local-kicker::before,
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-copy > h1::before {
    animation:page-sparkle 520ms var(--page-ease-spring) 520ms backwards,page-twinkle 2600ms ease-in-out 1100ms infinite alternate;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .btn-primary,
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-hero .media-action-light,
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header .nav-cta {position:relative;overflow:hidden}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .btn-primary::after,
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-hero .media-action-light::after,
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header .nav-cta::after {
    content:"";position:absolute;top:-20%;bottom:-20%;left:0;width:38%;pointer-events:none;
    background:linear-gradient(100deg,rgb(255 255 255 / 0%),rgb(255 255 255 / 60%),rgb(255 255 255 / 0%));
    transform:translate3d(-160%,0,0) skewX(-18deg);
    animation:page-sheen 7000ms var(--page-ease-inout) 2400ms infinite;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .btn-primary::after {
    background:linear-gradient(100deg,rgb(243 227 176 / 0%),rgb(243 227 176 / 75%),rgb(243 227 176 / 0%));
  }
  /* Blue buttons on the light title areas take the homepage's soft white sheen. */
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .landing-hero .btn-primary::after,
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-hero .media-action-light::after {
    background:linear-gradient(100deg,rgb(255 255 255 / 0%),rgb(255 255 255 / 42%),rgb(255 255 255 / 0%));
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .floating-contact {animation:page-fade 700ms ease-out 1200ms backwards}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .floating-contact-toggle {position:relative}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .floating-contact-toggle::before {
    content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;opacity:0;
    border:2px solid rgb(201 162 74 / 75%);
    animation:page-ring 3600ms ease-out 3000ms infinite;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .floating-contact-toggle[aria-expanded="true"]::before {animation:none}

  /* ---------- 1b. Title area on wider screens: the homepage's arrival ----------
     The heading comes into focus, a stitch is sewn under it, the key phrase of the lead is marked, buttons
     and facts arrive one by one, and the portrait develops inside its frame, exactly as on the homepage.
     The media page uses the same rules through its own class names. Nothing here depends on two
     properties staying in step. Phones keep the plain arrival: there each part is as wide as the screen. */
  @media (min-width:641px) {
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) [data-site-reveal="intro"] > h1,
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-copy > .media-brand-slogan {
      transform-origin:0 60%;
      animation:page-focus 1150ms var(--page-ease-out) 60ms backwards;
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) h1::after,
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-copy > .media-brand-slogan::after {
      animation:page-stitch 720ms var(--page-ease-inout) 940ms backwards;
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero):not(.landing-hero) .local-lead strong[data-patient-focus] {
      background:linear-gradient(#E0C684,#E0C684) no-repeat 0 100%/100% 2px;
      animation:page-underline 900ms var(--page-ease-inout) 1050ms backwards;
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .landing-hero .local-lead strong[data-patient-focus] {
      animation:page-mark 760ms var(--page-ease-inout) 1050ms backwards;
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .local-hero-actions > .btn,
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-actions > a {
      animation:page-button 640ms var(--page-ease-spring) backwards;
      animation-delay:calc(var(--page-n,0) * 120ms + 640ms);
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .local-hero-actions > .btn:nth-child(2),
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-actions > a:nth-child(2) {--page-n:1}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .local-hero-actions > .btn:nth-child(n+3) {--page-n:2}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .local-reading-meta > * {
      animation:page-chip 480ms var(--page-ease-spring) backwards;
      animation-delay:calc(var(--page-n,0) * 100ms + 820ms);
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .local-reading-meta > :nth-child(2) {--page-n:1}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .local-reading-meta > :nth-child(n+3) {--page-n:2}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero,.media-brand-hero) :is(.local-doctor-visual,.policy-doctor,.media-brand-portrait) > img:is([data-site-reveal="image"],[data-selective-reveal="portrait"]) {
      animation:page-develop 1400ms var(--page-ease-out) 120ms backwards;
    }
    /* The outlets under the media title area line up like the facts under the other title areas. */
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-publications li {
      animation:page-chip 480ms var(--page-ease-spring) backwards;
      animation-delay:calc(var(--page-n,0) * 80ms + 820ms);
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-publications li:nth-child(2) {--page-n:1}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-publications li:nth-child(3) {--page-n:2}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-publications li:nth-child(4) {--page-n:3}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-publications li:nth-child(5) {--page-n:4}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-publications li:nth-child(n+6) {--page-n:5}
  }

  /* Key phrases get a marker stroke as they are reached (not on the blue panels). */
  body:is(.brand-editorial:not(.brand-home),.media-library-body) main strong[data-patient-focus] {
    -webkit-box-decoration-break:clone;box-decoration-break:clone;
    background:linear-gradient(rgb(224 198 132 / 42%),rgb(224 198 132 / 42%)) no-repeat 0 92%/100% 30%;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel:not(.landing-hero),.policy-hero:not(.landing-hero),.local-cta-panel,.policy-contact) strong[data-patient-focus] {background-image:none}

  /* Wave edges of the sections and the footer keep a slow swell. Each strip is one tile wider than its
     section and slides by exactly one tile, so the loop runs on the compositor (no per-frame painting).
     Browsers that cannot clip one axis keep the still wave. The blue title area of the entry pages has
     no wave edge: its ::after is the panel's warm light. */
  @supports (overflow-x:clip) {
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .section-alt,
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-footer {overflow-x:clip}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .section-alt::before {right:-680px;animation:page-wave 22s linear infinite}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .section-alt::after {right:-680px;animation:page-wave 30s linear infinite reverse}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-footer::before {right:-680px;animation:page-wave 26s linear infinite}
  }

  /* ---------- 2. Scroll choreography (states are set by page-motion.js) ---------- */
  html[data-page-ready] body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-state="armed"] {opacity:0}
  html[data-page-ready] body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="mark"][data-page-state="armed"] {opacity:1;background-size:0% 30%}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-state="in"] {
    animation:page-rise 700ms var(--page-ease-out) var(--page-d,0ms) both;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="card"][data-page-state="in"] {animation-name:page-card;animation-duration:760ms}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="left"][data-page-state="in"] {animation-name:page-left}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="zoom"][data-page-state="in"] {animation-name:page-zoom;animation-duration:800ms}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="mark"][data-page-state="in"] {
    animation-name:page-mark;animation-duration:900ms;animation-timing-function:var(--page-ease-inout);
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="heading"][data-page-state="in"] {
    animation:page-left 620ms var(--page-ease-out) var(--page-d,0ms) both,
      page-accent 900ms var(--page-ease-inout) calc(var(--page-d,0ms) + 260ms) both;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="heading"][data-page-state="in"]::after {
    animation:page-stitch 700ms var(--page-ease-inout) calc(var(--page-d,0ms) + 320ms) both;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="heading"][data-page-state="in"]::before {
    animation:page-number 600ms var(--page-ease-spring) calc(var(--page-d,0ms) + 220ms) both;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="item"][data-page-state="in"] {animation-name:page-item;animation-duration:560ms}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="pop"][data-page-state="in"] {
    animation-name:page-pop;animation-duration:460ms;animation-timing-function:var(--page-ease-spring);
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="cta"][data-page-state="in"] {
    animation:page-zoom 800ms var(--page-ease-out) var(--page-d,0ms) both,
      page-glow 1500ms ease-out calc(var(--page-d,0ms) + 520ms) backwards;
  }
  @media (min-width:641px) {
    body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="card"][data-page-state="in"] {animation-name:page-flip;animation-duration:840ms}
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .footer-inner:has(> [data-page-state="armed"])::after {opacity:0}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .footer-inner:has(> [data-page-state="in"])::after {
    animation:page-wipe 1100ms var(--page-ease-inout) 520ms both;
  }

  /* ---------- 3. Pointer feedback ---------- */
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .faq-item {
    transition:transform 320ms var(--page-ease-out),border-color 200ms,background-color 200ms;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.chip,.patient-decision-links a,.compare-next-actions a,.media-topic-links a) {
    transition:transform 260ms var(--page-ease-out),background-color 200ms,color 200ms,border-color 200ms;
  }
  body:is(.brand-editorial:not(.brand-home),.media-library-body) .treatment-choice-card .compare-next-actions a::after {transition:transform 260ms var(--page-ease-out)}
  body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.article-sidebar-nav a,.toc a) {transition:transform 240ms var(--page-ease-out),background-color 200ms,color 200ms}

  @media (hover:hover) and (pointer:fine) {
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.reader-path-card,.related-reading-grid > a,.treatment-choice-card,.card,.patient-decision-card,.evaluation-step,.local-access-card,.campus-card,.icon-item,.media-showcase-item) {
      transition:transform 400ms var(--page-ease-out),box-shadow 400ms var(--page-ease-out),border-color 240ms,background-color 240ms;
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.reader-path-card,.related-reading-grid > a,.treatment-choice-card,.card,.patient-decision-card,.evaluation-step,.local-access-card,.campus-card,.icon-item,.media-showcase-item):hover {
      transform:translate3d(0,-5px,0);box-shadow:0 16px 34px rgb(10 47 85 / 12%);
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.treatment-choice-card,.card,.patient-decision-card,.evaluation-step,.local-access-card,.campus-card,.media-showcase-item):hover {border-color:#C9A24A}
    /* The larger cards also tip toward the pointer (values come from page-motion.js; 0 when it has none). */
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.reader-path-card,.related-reading-grid > a,.treatment-choice-card,.card,.patient-decision-card,.local-access-card,.campus-card,.media-showcase-item):hover {
      transform:perspective(900px) translate3d(0,-6px,0) rotateX(calc(var(--page-ty,0) * -4deg)) rotateY(calc(var(--page-tx,0) * 5deg));
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .faq-item:hover {transform:translate3d(4px,0,0)}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.chip,.patient-decision-links a,.compare-next-actions a,.media-topic-links a):hover {transform:translate3d(0,-2px,0)}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .treatment-choice-card .compare-next-actions a:hover {transform:none}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .treatment-choice-card .compare-next-actions a:hover::after {transform:translate3d(4px,0,0)}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.article-sidebar-nav a,.toc a):hover {transform:translate3d(3px,0,0)}

    body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header .nav-links a:not(.nav-cta) {position:relative}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header .nav-links a:not(.nav-cta)::after {
      content:"";position:absolute;left:14px;right:14px;bottom:6px;height:2px;border-radius:2px;pointer-events:none;
      background:#C9A24A;transform:scaleX(0);transform-origin:0 50%;transition:transform 320ms var(--page-ease-out);
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header .nav-links a:not(.nav-cta):hover::after {transform:scaleX(1)}

    body:is(.brand-editorial:not(.brand-home),.media-library-body) main .btn:not(.btn-primary),
    body:is(.brand-editorial:not(.brand-home),.media-library-body) main :not(.local-hero-panel):not(.policy-hero):not(.landing-hero) > .btn-primary {position:relative;overflow:hidden}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) main .btn:not(.btn-primary)::after {
      content:"";position:absolute;top:-20%;bottom:-20%;left:0;width:40%;pointer-events:none;
      background:linear-gradient(100deg,rgb(255 255 255 / 0%),rgb(255 255 255 / 55%),rgb(255 255 255 / 0%));
      transform:translate3d(-170%,0,0) skewX(-18deg);transition:transform 0s;
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) main .btn:not(.btn-primary):hover::after {
      transform:translate3d(440%,0,0) skewX(-18deg);transition:transform 800ms var(--page-ease-inout);
    }
  }

  @media (max-width:1099px) {
    /* Below 1100px the menu sits behind its button and replays this cascade each time it opens, so it must be quick. */
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header nav li {
      animation-duration:340ms;
      animation-delay:calc(var(--page-n,0) * 26ms + var(--page-base,0ms));
    }
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header .nav-links {--page-base:78ms}
  }
  @media (max-width:640px) {
    /* On a phone the strip and the name span the whole screen; they are simply there. */
    body:is(.brand-editorial:not(.brand-home),.media-library-body)::before,
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header .brand {animation:none}
    /* List rows are as wide as the screen: they rise in place and do not slide sideways. */
    body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-fx="item"][data-page-state="in"] {animation-name:page-rise}
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .section-alt::before,
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .section-alt::after,
    body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-footer::before {animation-name:page-wave-small}
  }

  /* ---------- The page arrives once ----------
     page-motion.js marks the root when the arrival is over (a few seconds after loading, or the moment the
     window crosses a layout breakpoint or goes to print). From then on the arrival of the strip, the name, the
     title area and the full-width menu no longer applies, so rotating a phone, resizing the window or coming
     back from the print dialog does not replay it. The slow loops (light, sparkle, sheen, waves) are separate
     animations and keep running; the menu behind its button still cascades each time it opens. */
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body)::before,
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header .brand,
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-site-reveal="intro"] > *,
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-site-reveal="image"],
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) .landing-hero [data-selective-reveal="portrait"],
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) [data-site-reveal="intro"] > h1,
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-copy > .media-brand-slogan,
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) h1::after,
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-copy > .media-brand-slogan::after,
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .local-lead strong[data-patient-focus],
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .local-hero-actions > .btn,
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-brand-actions > a,
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero) .local-reading-meta > *,
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) :is(.local-hero-panel,.policy-hero,.landing-hero,.media-brand-hero) :is(.local-doctor-visual,.policy-doctor,.media-brand-portrait) > img:is([data-site-reveal="image"],[data-selective-reveal="portrait"]),
  html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) .media-publications li {animation:none}
  @media (min-width:1100px) {
    html[data-page-arrived] body:is(.brand-editorial:not(.brand-home),.media-library-body) .site-header nav li {animation:none}
  }

  /* ---------- The footer switch stops everything in this layer ---------- */
  html[data-page-motion="off"] body:is(.brand-editorial:not(.brand-home),.media-library-body) *,
  html[data-page-motion="off"] body:is(.brand-editorial:not(.brand-home),.media-library-body) *::before,
  html[data-page-motion="off"] body:is(.brand-editorial:not(.brand-home),.media-library-body) *::after {animation:none!important;transition:none!important}
  html[data-page-motion="off"] body:is(.brand-editorial:not(.brand-home),.media-library-body)::before {animation:none!important}
  html[data-page-motion="off"] body:is(.brand-editorial:not(.brand-home),.media-library-body) [data-page-state] {opacity:1!important;transform:none!important;clip-path:none!important}
  html[data-page-motion="off"] body:is(.brand-editorial:not(.brand-home),.media-library-body) .footer-inner::after {opacity:1!important}
  html[data-page-motion="off"]::view-transition-group(*),
  html[data-page-motion="off"]::view-transition-old(*),
  html[data-page-motion="off"]::view-transition-new(*) {animation:none!important}
}
