/* Shared reading roles; keep direction-specific headings and data displays. */
:root {
  --research-prose-size: 1.25rem;
  --research-support-size: 1.125rem;
  --research-caption-size: .9375rem;
}

body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.research-cover h1 {
  font-size: 44px;
  line-height: 1.3;
}

/* Lead introductions use the homepage's reading voice. */
#research-content.hero .hero-p,
#flow-research #section-01 .flow-content > p:first-child,
#dffoct-page .pg-hero-inner > p,
#main > .hero > .wrap > p {
  font: 300 clamp(1.125rem, 2.2vw, 1.6875rem)/1.625 var(--lab-home-font);
  letter-spacing: normal;
  text-transform: none;
}

/* Main prose, including the full introduction sentences in OCT split panels. */
main :is(.plate-p, .fab-p, .collab-p, .onchip-p, .branch-p, .onchip-lead, .selected-papers > p),
#main :is(.section-head > .lead, .copy > p, .direct-detail > p),
#flow-research .source-section > p,
#flow-research .source-section .flow-content > p:not(.source-en, .timeline-outcome, .bottleneck-outcome),
#flow-research .source-section :is(.cell-question > p, .technology-label > p:not(.lase-kicker), .intelligence-panel-heading p, .bio-header > p),
#flow-research #section-01 .flow-content > p:first-child,
#flow-research .source-section .bottleneck-overview figcaption,
#dffoct-page :is(.pg-richtext, .pg-split-body, .pg-split-txt > .research-prose) {
  font: 400 var(--research-prose-size)/1.9 var(--lab-home-font);
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: break-word;
}

/* Keep the lead role above the general flow-section paragraph rule. */
#flow-research #section-01 .flow-content > p:first-child {
  font-weight: 300;
  font-size: clamp(1.125rem, 2.2vw, 1.6875rem);
  line-height: 1.625;
}

/* Short card descriptions, subtitles and explanatory lists. */
main :is(.plate-line, .t-sub, .app-body > .app-sub),
#main :is(.point > p, .category > p, .app-copy > p, .partnership > p),
#flow-research .source-section :is(.flow-era .era-copy > p, .bottleneck-copy > p, .bio-copy > p, .infrastructure-card > p),
#flow-research #section-04 .flow-era .era-copy > p,
#dffoct-page :is(.pg-split-list > li, .pg-card > p, .pg-heading > p[data-path="sub"]) {
  font: 400 var(--research-support-size)/1.75 var(--lab-home-font);
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: break-word;
}

/* Compact captions are a separate role from explanatory paragraphs. */
#main figcaption.caption,
#flow-research .source-section figcaption:not(.bottleneck-overview figcaption),
#dffoct-page :is(.pg-image, .pg-hs-item) > figcaption {
  font: 400 var(--research-caption-size)/1.65 var(--lab-home-font);
  letter-spacing: normal;
  overflow-wrap: break-word;
}

:is(main, #dffoct-page, #flow-research) :is(.source-section > h2, .section-title, .pg-heading h2, .sec-head .sec-num) {
  font-family: inherit;
  font-size: 32px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  :root {
    --research-prose-size: 1.125rem;
    --research-support-size: 1rem;
    --research-caption-size: .875rem;
  }
  .research-cover h1 { font-size: 30px; }
  :is(main, #dffoct-page, #flow-research) :is(.source-section > h2, .section-title, .pg-heading h2, .sec-head .sec-num) {
    font-size: 28px;
  }
}
