/* Shared scale measured from Neko, 4 Nov 2026. Yoda typefaces and colours retained.
   Desktop: display 100/100, heading 68/80, card 32/40, lead 18/24.
   Phone: display 54/54, heading 40/44, feature 32/40, card 28/32. */
:root {
  --site-display-size:100px; --site-display-line:100px;
  --site-heading-size:68px; --site-heading-line:80px;
  --site-feature-size:68px; --site-feature-line:80px;
  --site-card-size:32px; --site-card-line:40px;
  --site-lead-size:18px; --site-lead-line:24px;
}
html body #top #hero-h, html body #final-cta .fc-h,
html body.yl-detail-page .dd-hero h1 {
  font-size:var(--site-display-size); line-height:var(--site-display-line);
}
html body #quiet-story .quiet-title,
html body #quiet-story.da #beyond .bh-h,
html body :is(#care .cf-h,#programs .pg-h,#myhealth .mh-h,#about h2,#faq .faq-h),
html body.yl-detail-page :is(.dd-section-head h2,#diagnostic-addons .dd-section-head h2,.dd-next h2) {
  font-size:var(--site-heading-size) !important; line-height:var(--site-heading-line) !important;
  font-weight:400; letter-spacing:-.035em;
}
html body #care.cf .cf-t { font-size:var(--site-feature-size); line-height:var(--site-feature-line); }
html[data-s2] #quiet-story.da.da-direct .qx-path .qx-copy h3,
html body #quiet-story.da #beyond .bh-t,
html body :is(#programs .pg-t,#myhealth.mh-pastel .mh-ct,#about article h3),
html body.yl-detail-page :is(.dd-pathway h3,#diagnostic-addons .dd-addon-title h3) {
  font-size:var(--site-card-size); line-height:var(--site-card-line); font-weight:400;
}
html body :is(#care .cf-intro,#programs .pg-intro,#myhealth .mh-lead,#quiet-story .quiet-body),
html body #quiet-story.da #beyond .bh-intro,
html body.yl-detail-page .dd-section-head > p:last-child {
  font-size:var(--site-lead-size); line-height:var(--site-lead-line);
}
html body :is(#care .cf-d,#about article p) { font-size:var(--site-lead-size); line-height:1.5; }
html body :is(#programs .pg-d,#myhealth .mh-cd),
html body #quiet-story.da #beyond .bh-d,
html body.yl-detail-page .dd-addon-copy > p:first-child { font-size:16px; line-height:24px; }

/* A single content frame: no narrow container inside the wide MyHealth header. */
html body #myhealth .mh-head { width:100%; max-width:none; margin-inline:0; }
html body #myhealth .mh-head > div:first-child { width:100%; max-width:none; grid-template-columns:minmax(0,1fr) minmax(0,.7fr); }
html body #myhealth .mh-h { max-width:16ch; margin:0; text-align:left; }
html body #myhealth .mh-lead { max-width:40ch; margin:0 0 6px auto; text-align:left; }
html body.yl-detail-page .dd-section-head, html body.yl-detail-page #stations .dd-section-head {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.7fr); align-items:end;
  gap:64px; width:100%; max-width:none; margin:0 0 var(--site-group-gap); text-align:left;
}
html body.yl-detail-page .dd-section-head h2 { max-width:16ch; }
html body.yl-detail-page .dd-section-head > p:last-child { max-width:40ch; margin:0 0 6px auto; }
html body.yl-detail-page .dd-next { padding-inline:var(--site-gutter); }
html body #care.cf .cf-list { gap:var(--site-section-pad) !important; }
html body #care.cf .cf-fig { height:clamp(440px,70svh,720px); }
html body #quiet-story.da #beyond .bh-head { padding-top:0; }
html body #quiet-story.da #beyond .bh-list-8 { margin-top:var(--site-group-gap); }

/* Keep swipe, trackpad and keyboard scrolling; omit native rails on collections. */
html body :is(.bh-list-8,.mh-rail,.mh-track,.dd-addon-list,.dd-station-nav,.ht-tabs) {
  scrollbar-width:none !important; -ms-overflow-style:none;
}
html body :is(.bh-list-8,.mh-rail,.mh-track,.dd-addon-list,.dd-station-nav,.ht-tabs)::-webkit-scrollbar { display:none; width:0; height:0; }
html body #quiet-story.da #beyond .bh-list-8 { padding-bottom:0; }
html body.yl-detail-page .dd-addon-list { padding-bottom:0; }

/* Image previews fit common laptop heights while detailed copy can grow naturally. */
@media (min-width:768px) and (max-height:800px) {
  html body.yl-detail-page .dd-addon { padding-top:160px; min-height:580px; }
  html body.yl-detail-page .dd-addon-placeholder span { top:100px; }
  html body.yl-detail-page #stations .dd-station-image { min-height:340px; height:60svh; }
}
@media (min-width:768px) and (max-width:1099px) {
  :root { --site-display-size:76px; --site-display-line:80px; --site-heading-size:44px; --site-heading-line:52px; --site-feature-size:44px; --site-feature-line:52px; }
  html body.yl-detail-page .dd-section-head, html body.yl-detail-page #stations .dd-section-head, html body #myhealth .mh-head > div:first-child { gap:32px; }
  html body #care.cf .cf-fig { height:560px; }
}
@media (max-width:767px) {
  :root {
    --site-display-size:54px; --site-display-line:54px;
    --site-heading-size:40px; --site-heading-line:44px;
    --site-feature-size:32px; --site-feature-line:40px;
    --site-card-size:28px; --site-card-line:32px;
    --site-lead-size:16px; --site-lead-line:24px;
    --site-card-radius:29px; --site-small-radius:20px;
  }
  html body.yl-detail-page .dd-section-head, html body.yl-detail-page #stations .dd-section-head, html body #myhealth .mh-head > div:first-child { display:block; }
  html body.yl-detail-page .dd-section-head > p:last-child, html body #myhealth .mh-lead { margin:24px 0 0; }
  html body #care.cf .cf-fig { height:auto; aspect-ratio:1/1.06; }
  html body #care.cf .cf-list { gap:80px !important; }
  html body.yl-detail-page #stations .dd-station-heading h3 { font-size:32px; line-height:40px; }
  html body.yl-detail-page .dd-addon { min-height:0; padding-top:168px; }
  html body.yl-detail-page .dd-addon-copy > p:first-child { min-height:0; }
  html body.yl-detail-page .dd-addon-placeholder span { top:108px; }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  html body #programs .pg-card:hover { translate:0 -4px; box-shadow:0 16px 36px rgba(45,35,20,.06); }
}
@media (prefers-reduced-motion:reduce) {
  html body :is(.pg-card,.dd-addon-cta,.cf-chip,.cf-register) { transition:none; }
}
