/* ============================================================
   MOLECULAR DESIGN LAB — UNIFIED TYPOGRAPHY & CONTENT COLORS
   2026-11-01
   Scope: scientific PAGE CONTENT only.
   Does not change header/sidebar geometry, buttons, grids, cards or forms.
   ============================================================ */

:root{
  --mdl-type-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mdl-type-title:#10253B;
  --mdl-type-body:#263B4C;
  --mdl-type-muted:#5A6B78;
  --mdl-type-accent:#0B7480;
  --mdl-type-line:#D9E2E8;
}

/* ---------- Base content typography ---------- */

html body main,
html body .main,
html body [role="main"]{
  font-family:var(--mdl-type-font) !important;
  color:var(--mdl-type-body);
}

/* ---------- Page title hierarchy ---------- */

html body main h1,
html body .main h1,
html body [role="main"] h1{
  margin-top:0;
  font-family:var(--mdl-type-font) !important;
  font-size:clamp(34px,3.6vw,46px) !important;
  font-weight:800 !important;
  line-height:1.08 !important;
  letter-spacing:-.025em !important;
  color:var(--mdl-type-title) !important;
}

html body main h2,
html body .main h2,
html body [role="main"] h2{
  font-family:var(--mdl-type-font) !important;
  font-size:clamp(22px,2.1vw,27px) !important;
  font-weight:750 !important;
  line-height:1.18 !important;
  letter-spacing:-.012em !important;
  color:var(--mdl-type-title) !important;
}

html body main h3,
html body .main h3,
html body [role="main"] h3{
  font-family:var(--mdl-type-font) !important;
  font-size:18px !important;
  font-weight:700 !important;
  line-height:1.28 !important;
  letter-spacing:-.005em !important;
  color:var(--mdl-type-title) !important;
}

html body main h4,
html body .main h4,
html body [role="main"] h4{
  font-family:var(--mdl-type-font) !important;
  font-size:15px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
  color:var(--mdl-type-title) !important;
}

/* ---------- Page category / eyebrow / first line ---------- */

html body main .eyebrow,
html body main .kicker,
html body main .section-kicker,
html body main .page-kicker,
html body main .hero-kicker,
html body main .hero-eyebrow,
html body main .overline,
html body main .mdl-eyebrow,
html body main .mdl-section-kicker,
html body .main .eyebrow,
html body .main .kicker,
html body .main .section-kicker,
html body .main .page-kicker,
html body .main .hero-kicker,
html body .main .hero-eyebrow,
html body .main .overline,
html body .main .mdl-eyebrow,
html body .main .mdl-section-kicker{
  font-family:var(--mdl-type-font) !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  color:var(--mdl-type-accent) !important;
}

/* Some legacy pages use a plain first paragraph as their category label. */
html body main .hero > p:first-child:not(.lead):not(.note),
html body main .page-hero > p:first-child:not(.lead):not(.note),
html body .main .hero > p:first-child:not(.lead):not(.note),
html body .main .page-hero > p:first-child:not(.lead):not(.note){
  font-family:var(--mdl-type-font) !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  color:var(--mdl-type-accent) !important;
}

/* ---------- Intro / second descriptive line ---------- */

html body main .lead,
html body main .subtitle,
html body main .hero-subtitle,
html body main .page-subtitle,
html body main .hero-description,
html body main .page-description,
html body .main .lead,
html body .main .subtitle,
html body .main .hero-subtitle,
html body .main .page-subtitle,
html body .main .hero-description,
html body .main .page-description{
  font-family:var(--mdl-type-font) !important;
  font-size:18px !important;
  font-weight:400 !important;
  line-height:1.55 !important;
  letter-spacing:0 !important;
  color:var(--mdl-type-muted) !important;
}

/* Legacy hero paragraphs immediately following h1. */
html body main .hero h1 + p,
html body main .page-hero h1 + p,
html body .main .hero h1 + p,
html body .main .page-hero h1 + p{
  font-family:var(--mdl-type-font) !important;
  font-size:18px !important;
  font-weight:400 !important;
  line-height:1.55 !important;
  color:var(--mdl-type-muted) !important;
}

/* ---------- Body text ---------- */

html body main p,
html body main li,
html body main dd,
html body .main p,
html body .main li,
html body .main dd,
html body [role="main"] p,
html body [role="main"] li,
html body [role="main"] dd{
  font-family:var(--mdl-type-font) !important;
  font-size:15px;
  font-weight:400;
  line-height:1.55;
  color:var(--mdl-type-body);
}

html body main small,
html body .main small,
html body [role="main"] small{
  font-family:var(--mdl-type-font) !important;
  color:var(--mdl-type-muted);
}

/* ---------- Form labels ---------- */

html body main label,
html body main legend,
html body .main label,
html body .main legend,
html body [role="main"] label,
html body [role="main"] legend{
  font-family:var(--mdl-type-font) !important;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  color:var(--mdl-type-title);
}

/* ---------- Links inside scientific content ---------- */

html body main a:not(.btn):not(.button):not([class*="btn"]),
html body .main a:not(.btn):not(.button):not([class*="btn"]){
  color:var(--mdl-type-accent);
}

/* ---------- Preserve scientific monospace ---------- */

html body main code,
html body main pre,
html body main .mono,
html body main .sequence,
html body .main code,
html body .main pre,
html body .main .mono,
html body .main .sequence{
  font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace !important;
}

/* ---------- Explicitly DO NOT restyle shared header/sidebar ---------- */

html body .mdl-canonical-full-header,
html body .mdl-canonical-full-header *,
html body .mdl-unified-side,
html body .mdl-unified-side *{
  font-family:inherit;
}

/* ---------- Dark mode ---------- */

html[data-theme="dark"]{
  --mdl-type-title:#F2F6F8;
  --mdl-type-body:#D7E1E8;
  --mdl-type-muted:#AFC0CD;
  --mdl-type-accent:#65D5DD;
  --mdl-type-line:#294055;
}

/* ---------- Mobile ---------- */

@media(max-width:900px){
  html body main h1,
  html body .main h1,
  html body [role="main"] h1{
    font-size:clamp(30px,8.4vw,36px) !important;
    line-height:1.08 !important;
  }

  html body main h2,
  html body .main h2,
  html body [role="main"] h2{
    font-size:22px !important;
  }

  html body main .lead,
  html body main .subtitle,
  html body main .hero-subtitle,
  html body main .page-subtitle,
  html body main .hero-description,
  html body main .page-description,
  html body main .hero h1 + p,
  html body main .page-hero h1 + p,
  html body .main .lead,
  html body .main .subtitle,
  html body .main .hero h1 + p,
  html body .main .page-hero h1 + p{
    font-size:16px !important;
  }
}
