/* Sole role-based type scale for integrated corporate pages. Typography-only
   priority intentionally supersedes legacy page-specific size declarations. */
:root {
  --type-display:var(--hero-title-size);
  --type-heading:clamp(34px,4.3vw,64px);
  --type-title:clamp(23px,2.2vw,30px);
  --type-title-compact:18px;
  --type-lead:clamp(17px,1.4vw,22px);
  --type-body:16px;
  --type-small:14px;
  --control-main-text:15px;
  --control-compact-text:var(--type-small);
  --type-copy-gap:32px;
  --weight-display:700;
  --weight-heading:700;
  --weight-title:700;
  --weight-body:400;
  --weight-small:700;
  --leading-display:1.08;
  --leading-heading:1.2;
  --leading-title:1.35;
  --leading-lead:1.7;
  --leading-body:1.75;
  --leading-small:1.5;
  /* Compatibility aliases. New UI must use the six canonical roles above. */
  --type-section:var(--type-heading);
  --type-subtitle:var(--type-title);
  --type-card:var(--type-title);
  --type-document-title:var(--type-title-compact);
  --type-meta:var(--type-small);
  --type-label:var(--type-small);
  --type-button:var(--control-main-text);
  --type-compact:var(--control-compact-text);
  --weight-section:var(--weight-heading);
  --weight-card:var(--weight-title);
  --weight-label:var(--weight-small);
  --leading-section:var(--leading-heading);
  --leading-card:var(--leading-title);
  --leading-meta:1.7;
  --leading-label:var(--leading-small);
}
body[data-site-page] {
  --text-strong:var(--asap-ink);
  --text-muted:var(--asap-muted);
  --text-label:var(--asap-label);
}
body[data-site-page] :is(
  .hero-vision,#vision,#vision-roadmap,#mission,#explore,#join,
  .culture-entry,#talent,#benefits,.culture-closing,
  .career-hero,.career-closing,.hero
) {
  --text-strong:var(--asap-white);
  --text-muted:var(--asap-secondary);
  --text-label:var(--asap-white);
}
body[data-site-page] :is(.hero-careers-copy h1,.career-hero h1,.culture-entry h1,.hero-intro h1,.history-heading h1,.notice-page-intro h1) {
  font-size:var(--type-display)!important;line-height:var(--leading-display)!important;letter-spacing:-.055em!important;
  font-weight:var(--weight-display)!important;color:var(--text-strong)!important;
}
body[data-site-page] :is(.section-head h2,.mission-threshold h2,.how-work-head h3,.about-explore h2) {
  font-size:var(--type-heading)!important;line-height:var(--leading-heading)!important;letter-spacing:-.045em!important;
  font-weight:var(--weight-heading)!important;color:var(--text-strong)!important;
}
body[data-site-page=history] .history-heading h1,
body[data-site-page=notices] .notice-page-intro h1 {
  font-size:var(--type-heading)!important;line-height:var(--leading-heading)!important;letter-spacing:-.045em!important;
  font-weight:var(--weight-heading)!important;
}
body[data-site-page] :is(.hero-careers-copy>p,.career-hero__lead,.culture-entry__copy,.hero-copy,.section-head p,.mission-threshold__copy>p,.how-work-head p,.vision-description,.notice-page-intro>p:last-child) {
  font-size:var(--type-lead)!important;line-height:var(--leading-lead)!important;font-weight:var(--weight-body)!important;
  color:var(--text-muted)!important;
  margin-top:var(--type-copy-gap)!important;word-break:keep-all;
}
body[data-site-page] :is(.vision-ai,.core-value strong,.value-summary b) {
  font-size:var(--type-title)!important;line-height:var(--leading-title)!important;font-weight:var(--weight-title)!important;
}
body[data-site-page] :is(.brand h3,.talent-card h3,.role h3,.benefit h3,.position-select h3,.value-summary h3,.story-stage h3,#articles h3,#insight-articles h3) {
  font-size:var(--type-title)!important;line-height:var(--leading-title)!important;letter-spacing:-.035em!important;
  font-weight:var(--weight-title)!important;color:var(--text-strong)!important;
}
body[data-site-page] :is(.brand p,.vision-stage p,.talent-card p,.role p,.benefit p,.position-select p,.value-summary p,.core-value p,.story-stage p,#articles article p,#insight-articles article p,.benefit-items li) {
  font-size:var(--type-body)!important;line-height:var(--leading-body)!important;font-weight:var(--weight-body)!important;
  color:var(--text-muted)!important;
}
body[data-site-page] :is(.kicker,.eyebrow,.position-select-top,.talent-card .num,.role small,.brand-category,.how-work-label,.about-explore__links>a>span:first-child,.brand-top small,.vision-stage-no) {
  font-size:var(--type-small)!important;line-height:var(--leading-small)!important;font-weight:var(--weight-small)!important;
  color:var(--text-label)!important;
}
body[data-site-page] :is(.meta,.notice-category,.attachment-count,.notice-row time,.notice-page-bar,.notice-footnote) {
  font-size:var(--type-small)!important;line-height:1.7!important;
}
body[data-site-page=notices] .notice-title {
  font-size:var(--type-title-compact)!important;line-height:1.6!important;font-weight:600!important;color:var(--text-strong)!important;
}
body[data-site-page] :is(.talent-card,.position-select,.vision-stage,.brand) h3 {min-height:2.7em;}
body[data-site-page] :is(.talent-card,.position-select,.vision-stage,.brand) h3+p {margin-top:18px!important;}
body[data-site-page] :is(.brand-story__chapter h3,.about-explore__links h3) {font-size:var(--type-title)!important;line-height:var(--leading-title)!important;font-weight:var(--weight-title)!important;color:var(--text-strong)!important;}
body[data-site-page] .brand-story__bridge h3 {font-size:var(--type-title)!important;line-height:var(--leading-title)!important;font-weight:var(--weight-title)!important;color:var(--text-strong)!important;}
body[data-site-page] :is(.brand-story__chapter p,.brand-story__bridge p,.about-explore__links p) {font-size:var(--type-body)!important;line-height:var(--leading-body)!important;color:var(--text-muted)!important;}
body[data-site-page] #values .core-value h3 {font-size:var(--type-heading)!important;line-height:var(--leading-heading)!important;}
body[data-site-page] #join h2 {font-size:var(--type-display)!important;line-height:var(--leading-display)!important;font-weight:var(--weight-display)!important;color:var(--text-strong)!important;}
body[data-site-page] :is(#join p,.opening-lead) {font-size:var(--type-lead)!important;line-height:var(--leading-lead)!important;margin-top:var(--type-copy-gap)!important;color:var(--text-muted)!important;}
/* Long single-line headlines remain deliberate fit exceptions, not a new scale. */
@media(min-width:901px) {
  body[data-site-page] :is(.vision-description,.culture-entry__copy,.hero-copy,.how-work-intro) {
    max-width:100%!important;width:auto;text-wrap:wrap!important;
  }
}
body[data-site-page=vision] #vision .vision-manifesto-copy h1 {font-size:min(var(--type-display),5.8vw)!important;line-height:1.08!important;}
@media(max-width:650px) {
  :root {--type-heading:32px;--type-title:24px;--type-title-compact:16px;--type-lead:16px;--type-body:15px;--type-small:13px;--type-copy-gap:24px;}
  body[data-site-page=news] .hero-intro h1 {font-size:min(var(--type-display),8.4vw)!important;}
  body[data-site-page=vision] #vision .vision-manifesto-copy h1 {font-size:min(var(--type-display),8.4vw)!important;}
  body[data-site-page] :is(.talent-card,.position-select,.vision-stage,.brand) h3 {min-height:0;}
}

/* Shared ABOUT introduction pattern: WHO WE ARE and OUR STORY.
   Semantic H3 remains independent of the section-title visual role. */
body[data-site-page=about] .section-head.about-section-intro {
  --section-title:var(--type-title);
  --section-title-leading:var(--leading-title);
  --section-title-weight:var(--weight-title);
  --lead-body:clamp(17px,1.4vw,22px);
  --lead-body-leading:var(--leading-lead);
  --intro-copy-gap:var(--type-copy-gap);
  --intro-copy-width:760px;
}
body[data-site-page=about] .section-head.about-section-intro .kicker {
  font-size:var(--type-small)!important;line-height:var(--leading-small)!important;
  font-weight:var(--weight-small)!important;letter-spacing:.12em;
  color:var(--text-label)!important;
}
body[data-site-page=about] .section-head.about-section-intro h3 {
  margin:0;font-size:var(--section-title)!important;line-height:var(--section-title-leading)!important;
  font-weight:var(--section-title-weight)!important;letter-spacing:-.035em!important;
  color:var(--text-strong)!important;word-break:keep-all;
}
body[data-site-page=about] .section-head.about-section-intro p {
  font-size:var(--lead-body)!important;line-height:var(--lead-body-leading)!important;
  font-weight:var(--weight-body)!important;color:var(--text-muted)!important;
  margin:var(--intro-copy-gap) 0 0!important;max-width:var(--intro-copy-width);
  word-break:keep-all;overflow-wrap:break-word;
}

/* CORE VALUES: shared Title for the section label; Heading for its active statement. */
body[data-site-page=culture] #values .section-head h2 {
  font-size:var(--type-title)!important;line-height:var(--leading-title)!important;
  font-weight:var(--weight-title)!important;letter-spacing:-.035em!important;
}
