/* Reading content stays visible; marked interface elements enter once.
   Motion language: one soft rise-and-fade for entrances, short eased colour and shadow
   changes for feedback. Text blocks and click targets never move under the pointer. */
:root {
  --site-motion-enabled:1;
  --motion-ease-out:cubic-bezier(.22,1,.36,1);
  --motion-ease-standard:cubic-bezier(.2,0,0,1);
  --motion-quick:200ms;
  --motion-base:300ms;
  --motion-enter:720ms;
  --motion-step:65ms;
}
[data-site-faq-answer] {display:flow-root}
body:is(.brand-editorial,.media-library-body) {
  --motion-fast:140ms;
  --design-border:#D5E3EF;
  --design-surface:#F4F9FD;
  --reading-copy:1.0625rem;
  --reading-support:.9375rem;
  --reading-meta:.875rem;
}
body:is(.brand-editorial,.media-library-body) .site-header {
  transition:box-shadow var(--motion-base) var(--motion-ease-standard),
    border-color var(--motion-base) var(--motion-ease-standard);
}
body:is(.brand-editorial,.media-library-body) .site-header.is-scrolled {
  box-shadow:0 5px 18px rgb(10 47 85 / 9%);
  border-bottom-color:#D5E3EF;
}
body:is(.brand-editorial,.media-library-body) .site-header .nav-cta {
  background:#E0C684;border-color:#C9A24A;color:#0A2F55!important;
  border-radius:999px;box-shadow:0 3px 10px rgb(127 95 20 / 10%);
  transition:background-color var(--motion-fast),box-shadow var(--motion-quick) var(--motion-ease-standard),
    transform var(--motion-fast) var(--motion-ease-standard);
}
body:is(.brand-editorial,.media-library-body) .site-header .nav-cta:hover {
  background:#EBD79F;color:#0A2F55!important;transform:none;
}
body:is(.brand-editorial,.media-library-body) .site-header :is(.nav-featured-links a,.site-nav-toggle) {
  transition:background-color var(--motion-fast),color var(--motion-fast),border-color var(--motion-fast);
}
body:is(.brand-editorial,.media-library-body) .btn {
  border-radius:12px;
  transition:background-color var(--motion-fast),color var(--motion-fast),
    border-color var(--motion-fast),box-shadow var(--motion-quick) var(--motion-ease-standard),
    transform var(--motion-fast) var(--motion-ease-standard);
}
body:is(.brand-editorial,.media-library-body) .btn:hover {transform:none;box-shadow:none}
/* A press is acknowledged in place: the control settles by 2% and springs back. */
body:is(.brand-editorial,.media-library-body) :is(.btn,.nav-cta,.site-nav-toggle,.chip):active {transform:scale(.98)}
body:is(.brand-editorial,.media-library-body) main :where(p,li,dd,td,th) :where(a:not(.btn):not(.chip)) {
  transition:color var(--motion-fast);
}
body.brand-editorial :is(.reader-path-card,.related-reading-grid > a) {
  border:1px solid var(--design-border);border-top-color:#E0C684;
  border-radius:12px;background:var(--design-surface);
  box-shadow:0 2px 5px rgb(10 47 85 / 3%);
  transition:background-color var(--motion-quick) var(--motion-ease-standard),
    border-color var(--motion-quick) var(--motion-ease-standard),
    box-shadow var(--motion-base) var(--motion-ease-standard);
}
body.brand-editorial .reader-path-card {
  padding:18px 14px;gap:12px;min-height:96px;
}
body.brand-editorial .reader-path-card strong {line-height:1.65;text-wrap:balance}
body.brand-editorial .reader-path-card small {line-height:1.7}
body.brand-editorial .reader-path-number {
  display:grid;place-items:center;width:2rem;height:2rem;
  background:#FFFFFF;border:1px solid #E0C684;border-radius:50%;
  color:#7F5F14;font-size:1rem;
}
body.brand-editorial .reader-path-arrow {
  transition:transform var(--motion-quick) var(--motion-ease-out);
}
body.brand-editorial :is(.card,.campus-card,.treatment-choice-card,.utility-topic-card) {
  border-radius:12px;border-color:var(--design-border);border-top-color:#E0C684;
  box-shadow:0 3px 12px rgb(10 47 85 / 4%);
  transition:border-color var(--motion-quick) var(--motion-ease-standard),
    box-shadow var(--motion-base) var(--motion-ease-standard);
}
body.brand-editorial .article-list-item {
  transition:background-color var(--motion-fast),border-color var(--motion-fast);
}
body.brand-editorial .faq-item {
  border-radius:12px;border-color:var(--design-border);
}
body.brand-editorial .faq-item {
  transition:border-color var(--motion-quick) var(--motion-ease-standard),
    background-color var(--motion-quick) var(--motion-ease-standard);
}
body.brand-editorial .faq-item[open] {
  background:#F4F9FD;border-color:#BFD3E6;
}
/* The native triangle gives way to a chevron that turns with the answer. */
body.brand-editorial .faq-item > summary {
  position:relative;list-style:none;padding-right:44px;
}
body.brand-editorial .faq-item > summary::-webkit-details-marker {display:none}
body.brand-editorial .faq-item > summary::after {
  content:"";position:absolute;top:50%;right:8px;width:9px;height:9px;margin-top:-8px;
  border-right:2px solid #A9832F;border-bottom:2px solid #A9832F;border-radius:1px;
  transform:rotate(45deg);transform-origin:70% 70%;
  transition:transform var(--motion-base) var(--motion-ease-out),border-color var(--motion-fast);
}
body.brand-editorial .faq-item[open] > summary::after {transform:rotate(225deg);border-color:#005A9C}
body.brand-editorial .faq-item[data-faq-motion="closing"] > summary::after {transform:rotate(45deg);border-color:#A9832F}
body.brand-editorial .article-sidebar-nav {
  border-radius:10px;border-color:#D5E3EF;border-top-color:#E0C684;
}
body.brand-editorial .article-sidebar-nav a[aria-current="location"] {
  background:#E7F1FA;color:#0A2F55;
  box-shadow:inset 3px 0 #0A2F55;
}
body.brand-editorial :is(.answer-box,.health-article .answer-box,.reader-questions) {
  border-radius:0 10px 10px 0;
}
/* Focus feedback is as clear as pointer feedback, without relying on motion. */
body.brand-editorial :is(.reader-path-card,.related-reading-grid > a):focus-visible {
  background:#E7F1FA;border-color:#005A9C;
  outline:3px solid #005A9C;outline-offset:3px;transform:none;
}
body.brand-editorial :is(.card,.campus-card,.treatment-choice-card,.utility-topic-card):focus-within {
  border-color:#8FB3D6;box-shadow:0 5px 16px rgb(10 47 85 / 8%);
}
body.brand-editorial .article-list-item:focus-within {background:#F4F9FD}
/* Comfortable Traditional Chinese reading: explicit type tiers avoid inherited
   small rem values in older components. Keep browser zoom and font preferences. */
@media screen {
  body.brand-editorial.mobile-first .health-article {font-size:var(--reading-copy);line-height:1.9}
  body:is(.brand-editorial,.media-library-body).mobile-first main p:not(:is(
    .meta,.local-kicker,.choice-label,.media-section-kicker,.policy-section-label,
    .patient-review-label,.signature,.sr-only,.policy-reviewed,.chip-label,
    .home-social-snapshot,.media-brand-slogan,.media-brand-name,.media-brand-credentials,
    .media-year-note,.media-results-status,.review-date,.diary-print-controls
  )) {font-size:var(--reading-copy);line-height:1.9;text-wrap:pretty}
  body:is(.brand-editorial,.media-library-body).mobile-first main li:not(:where(
    nav *,.toc *,.refs *,.credentials *,.local-reading-meta *,.policy-trust-list *
  )) {font-size:var(--reading-copy);line-height:1.9}
  body.brand-editorial.mobile-first :is(.hero,.local-hero-panel,.landing-hero) p:is(.lead,.local-lead),
  body.media-library-body.mobile-first .media-brand-copy p.media-brand-intro {
    font-size:var(--reading-copy);line-height:1.9;
  }
  body.media-library-body.mobile-first .media-featured-list .article-list-item p:last-child,
  body.media-library-body.mobile-first .media-official-list .article-list-item p:last-child,
  body.media-library-body.mobile-first .media-archive-section > p:not(.media-section-kicker) {
    font-size:var(--reading-copy);line-height:1.9;
  }
  body.media-library-body.mobile-first .media-official-list .meta,
  body.media-library-body.mobile-first .media-year-note {font-size:var(--reading-meta);line-height:1.8}
  body.brand-editorial.mobile-first .reader-path-card strong,
  body.brand-editorial.mobile-first .related-reading-grid strong {font-size:1rem;line-height:1.7;text-wrap:balance}
  body.brand-editorial.mobile-first .reader-path-card small,
  body.brand-editorial.mobile-first .related-reading-grid span {
    font-size:var(--reading-support);line-height:1.75;text-wrap:pretty;
  }
  body.brand-editorial.mobile-first :is(.faq-item summary,.tool-q label) {font-size:1.0625rem;line-height:1.75}
  body:is(.brand-editorial,.media-library-body).mobile-first main :is(.meta,.review-date,.policy-reviewed) {
    font-size:var(--reading-meta);line-height:1.8;
  }
  body.brand-editorial.mobile-first :is(.author-box,.local-reading-meta,.local-reading-meta span,.local-reading-meta time) {
    font-size:var(--reading-meta);line-height:1.8;
  }
  body.brand-editorial.mobile-first :is(.author-box strong,.author-box a,.local-reading-meta span) {font-size:inherit}
  body.brand-editorial.mobile-first .breadcrumb {font-size:var(--reading-meta);line-height:1.8}
  body.brand-editorial.mobile-first.brand-landing .landing-hero :is(.local-reading-meta span,.breadcrumb),
  body.media-library-body.mobile-first .media-brand-hero .breadcrumb {font-size:var(--reading-meta);line-height:1.8}
  body.brand-editorial.mobile-first .treatment-choice-card .choice-summary {font-size:var(--reading-copy)!important;line-height:1.75;text-wrap:pretty}
  body.brand-editorial.mobile-first main :is(th,td) {font-size:1rem;line-height:1.8}
  body.brand-editorial.mobile-first .local-safety-alert {font-size:var(--reading-copy);line-height:1.85}
  body.brand-editorial.mobile-first .local-safety-alert strong {font-size:1rem;line-height:1.65;white-space:normal}
  body.brand-editorial.mobile-first :is(.article-sidebar-nav a,.article-mobile-toc .toc a) {font-size:1rem;line-height:1.75}
  body.brand-editorial.mobile-first .refs {font-size:var(--reading-support);line-height:1.85}
  body.brand-editorial.mobile-first :is(.answer-box,.reader-questions,.advice-box,.evaluation-outcome) {font-size:var(--reading-copy);line-height:1.9}
  body.brand-editorial.mobile-first main :is(caption,.tool-q legend) {font-size:1rem;line-height:1.8}
  body.brand-editorial.mobile-first [data-voiding-diary-sheet] .diary-print-help {overflow-wrap:anywhere}
  body.brand-editorial.mobile-first .car-foot .btn[style*="font-size"] {font-size:1rem!important}
  /* These existing inline small-print paragraphs are supporting service notes. */
  body.brand-editorial.mobile-first main p[style*="font-size"] {font-size:var(--reading-support)!important;line-height:1.85}
  body.brand-editorial.mobile-first .reader-path-card {grid-template-columns:2rem minmax(0,1fr) 1.125rem;gap:9px}
  body.brand-editorial.mobile-first .reader-path-card small {display:block;-webkit-line-clamp:unset;overflow:visible}
}
@media (min-width:761px) and (max-width:1250px) {
  body.brand-editorial.mobile-first .health-article .reader-path-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (hover:hover) and (pointer:fine) {
  /* Pointer feedback is a soft shadow; touch screens keep the flat resting state. */
  body:is(.brand-editorial,.media-library-body) .btn:hover {box-shadow:0 6px 18px rgb(10 47 85 / 14%)}
  body:is(.brand-editorial,.media-library-body) .site-header .nav-cta:hover {box-shadow:0 6px 16px rgb(127 95 20 / 20%)}
  body.brand-editorial :is(.reader-path-card,.related-reading-grid > a):hover {
    background:#E7F1FA;border-color:#8FB3D6;
    box-shadow:0 10px 24px rgb(10 47 85 / 10%);
    transform:none;
  }
  /* Only the arrow travels; the card and its text stay where the pointer found them. */
  body.brand-editorial .reader-path-card:hover .reader-path-arrow {transform:translateX(4px)}
  /* A whole panel does not move or light up when only its child link is actionable. */
  body.brand-editorial :is(.card,.campus-card,.treatment-choice-card,.utility-topic-card):hover {transform:none}
  body.brand-editorial .article-list-item:hover {background:#F4F9FD}
}
/* The five entrance pages bring the next useful action closer to the fold. */
@media (min-width:1100px) {
  body:is(.brand-editorial,.media-library-body) {--reading-copy:1.125rem}
  body.brand-editorial.brand-landing .landing-hero-inner {min-height:520px}
  body.brand-editorial.brand-landing .landing-hero-copy {padding-top:78px;padding-bottom:34px}
  body.brand-editorial.brand-landing .landing-hero h1 {margin-bottom:22px}
  body.brand-editorial.brand-landing .landing-hero .local-kicker {margin-bottom:18px}
  body.brand-editorial.brand-home .hero {padding-inline:max(24px,5.65vw)}
  body.brand-editorial.brand-home .hero-grid {gap:36px;min-height:560px}
  body.brand-editorial.mobile-first .health-article > p {max-width:44em}
}
@media (max-width:640px) {
  /* Narrow screens give the question text as much of the line as the chevron allows. */
  body.brand-editorial .faq-item > summary {padding-right:30px}
  body.brand-editorial .faq-item > summary::after {right:3px}
  body.brand-editorial .reader-path-card {padding:16px 12px;min-height:86px}
  body.brand-editorial .related-reading-grid > a {padding:18px 16px}
}
/* First-screen entrance. Pure CSS, so it starts with the first paint and needs no script;
   keyframes hold the only hidden state and each one ends on the element's normal style.
   Elements further down the page are handled once by site-motion.js. */
@media (prefers-reduced-motion:no-preference) {
  /* Entrances start at 1% opacity, not 0, so the first paint still counts as the page's
     largest contentful paint; opacity completes early while the movement eases out. */
  @keyframes site-rise {
    from {opacity:.01;transform:translate3d(0,18px,0)}
    45% {opacity:1}
    to {opacity:1;transform:none}
  }
  /* The photo settles inside its frame. Every marked photo sits in a figure that clips it, so only
     transform and opacity move: nothing depends on two properties staying in step. */
  @keyframes site-photo {
    from {opacity:.01;transform:scale(1.035)}
    50% {opacity:1}
    to {opacity:1;transform:none}
  }
  @keyframes site-drop {
    from {opacity:0;transform:translate3d(0,-8px,0)}
    to {opacity:1;transform:none}
  }
  @keyframes site-pop {
    from {opacity:0;transform:translate3d(0,8px,0) scale(.98)}
    to {opacity:1;transform:none}
  }
  :is([data-site-reveal="intro"],[data-home-motion="hero-copy"]) > *,
  h1[data-site-reveal="intro"] {
    animation:site-rise var(--motion-enter) var(--motion-ease-out) backwards;
    animation-delay:calc(var(--site-order,0) * var(--motion-step));
  }
  :is([data-site-reveal="intro"],[data-home-motion="hero-copy"]) > :nth-child(2) {--site-order:1}
  :is([data-site-reveal="intro"],[data-home-motion="hero-copy"]) > :nth-child(3) {--site-order:2}
  :is([data-site-reveal="intro"],[data-home-motion="hero-copy"]) > :nth-child(4) {--site-order:3}
  :is([data-site-reveal="intro"],[data-home-motion="hero-copy"]) > :nth-child(5) {--site-order:4}
  :is([data-site-reveal="intro"],[data-home-motion="hero-copy"]) > :nth-child(6) {--site-order:5}
  :is([data-site-reveal="intro"],[data-home-motion="hero-copy"]) > :nth-child(n+7) {--site-order:6}
  :is([data-site-reveal="image"],.hero [data-selective-reveal="portrait"],.landing-hero [data-selective-reveal="portrait"]) {
    animation:site-photo 900ms var(--motion-ease-out) 80ms backwards;
  }
  /* The mobile menu and the contact panel open with a short settle instead of a hard cut. */
  @media (max-width:1099px) {
    .site-header .nav-wrap[data-site-nav-open="true"] > nav {
      animation:site-drop var(--motion-base) var(--motion-ease-out) backwards;
    }
  }
  .floating-contact-panel:not([hidden]) {
    animation:site-pop var(--motion-quick) var(--motion-ease-out) backwards;
  }
}
@media (prefers-reduced-motion:reduce) {
  [data-site-reveal], [data-site-reveal] > * {opacity:1!important;transform:none!important;animation:none!important;transition:none!important}
  [data-site-faq-answer] {height:auto!important;overflow:visible!important;animation:none!important;transition:none!important}
  body:is(.brand-editorial,.media-library-body) *,
  body:is(.brand-editorial,.media-library-body) *::before,
  body:is(.brand-editorial,.media-library-body) *::after {animation:none!important;transition:none!important}
  body.brand-editorial :is(.btn,.reader-path-card,.related-reading-grid > a,.reader-path-arrow) {transform:none!important}
}
@media print {
  [data-site-reveal], [data-site-reveal] > * {opacity:1!important;transform:none!important;animation:none!important;transition:none!important}
  [data-site-faq-answer] {height:auto!important;overflow:visible!important;animation:none!important;transition:none!important}
  body.brand-editorial :is(.reader-path-card,.related-reading-grid > a,.card,.campus-card,.treatment-choice-card,.utility-topic-card) {
    background:#fff;box-shadow:none;transform:none!important;
  }
  body:is(.brand-editorial,.media-library-body) * {animation:none!important;transition:none!important}
}
