/* Final, shared type scale. Loaded after component and locale styles.
   rem bounds preserve user font preferences; vw only interpolates between them. */
:root {
  --type-title: clamp(2.25rem, 1.45rem + 3.1vw, 4.5rem);
  --type-display: clamp(2.125rem, 1.5rem + 2.5vw, 4rem);
  --type-section: clamp(1.875rem, 1.4rem + 1.8vw, 3rem);
  --type-subheading: clamp(1.375rem, 1.2rem + .65vw, 1.75rem);
  --type-body: 1rem;
  --type-label: .875rem;
  --type-caption: .8125rem;
}
html[lang] body { font-size: var(--type-body); line-height: 1.75; }
/* Headings wrap as sentences, with no manually imposed English line lengths. */
html[lang] body :is(main,.rr-footer) :is(h1,h2,h3,legend) {
  font-weight: 500; letter-spacing: -.035em; line-height: 1.2;
  text-wrap: balance; word-break: normal; overflow-wrap: break-word; hyphens: none;
}
html[lang] body main h1 { font-size: var(--type-title); max-width: 24ch; }
html[lang] body main h2 { font-size: var(--type-section); max-width: 28ch; }
html[lang] body main h3 { font-size: var(--type-subheading); line-height: 1.35; }
html[lang] body main .page-hero h1 { font-size: var(--type-title); max-width: 24ch; }
html[lang] body main .article h1 { font-size: clamp(2rem,1.4rem + 2.7vw,3.75rem); max-width: 28ch; }
html[lang] body main .article-body h2,
html[lang] body main .prose h2 { font-size: clamp(1.625rem,1.35rem + 1vw,2rem); line-height: 1.35; max-width: none; }
html[lang] body main .article-body h3 { font-size: 1.375rem; }
html[lang] body main .rr-article-grid h2,
html[lang] body main .guide-card h3 { font-size: var(--type-subheading); line-height: 1.35; max-width: none; }
html[lang] body main .timeline h2,
html[lang] body main .brief-aside h2 { font-size: clamp(1.75rem,1.3rem + 1.4vw,2.5rem); }
html[lang] body main legend { font-size: clamp(1.625rem,1.25rem + 1.3vw,2.25rem); max-width: 100%; }
html[lang] body main .brief-result h2 { font-size: var(--type-section); }
html[lang] body main .brief-contact-heading,
html[lang] body main .brief-contact-card h3 { font-size: 1.5rem; }
/* Home retains an editorial hierarchy without poster-sized paragraphs. */
html[lang] body .v-home h2 { font-size: var(--type-display); line-height: 1.18; letter-spacing: -.04em; }
html[lang] body .v-home .v-manifesto-heading,
html[lang] body .v-home .v-begin h2 { max-width: 25ch; margin-top: 40px; }
html[lang] body .v-home .v-layout h2,
html[lang] body .v-home .v-materials h2 { font-size: var(--type-section); max-width: 22ch; margin-left: 0; }
html[lang] body .v-home .v-process h2,
html[lang] body .v-home .v-journal h2 { max-width: 24ch; }
html[lang] body .v-home .v-guide-wrap .guide-card h3 { font-size: var(--type-subheading); line-height: 1.35; max-width: none; }
html[lang] body .v-home .v-intro-copy,
html[lang] body .v-home .v-materials-lead { font-size: clamp(1.25rem,1.1rem + .6vw,1.625rem); line-height: 1.5; letter-spacing: -.02em; }
html[lang] body .v-home .v-begin-link { font-size: clamp(1.25rem,1.1rem + .6vw,1.625rem); line-height: 1.5; }
html[lang] body .v-home .v-begin-star { font-size: .65em; }
/* Reading text: no mobile reduction below the base size. */
html[lang] body main :is(p,li),
html[lang] body main .timeline article>div:last-child,
html[lang] body main .v-manifesto-aside>p,
html[lang] body main .v-manifesto-copy>p:not(.v-intro-copy),
html[lang] body main .v-layout-copy>p:not(.v-layout-description),
html[lang] body main .v-materials-detail p,
html[lang] body main .v-guide-wrap .guide-card>p,
html[lang] body main .v-questions details p { font-size: var(--type-body); line-height: 1.8; }
html[lang] body main :is(.lead,.page-hero>.lead,.article .lead) { font-size: clamp(1.125rem,1rem + .35vw,1.375rem); line-height: 1.7; }
html[lang] body main .page-hero>.lead { max-width: 52ch; margin-left: 35%; }
html[lang] body main :is(.eyebrow,.v-label,.brief-field-heading,.privacy-note b),
html[lang] body .v-home .v-guide-wrap .guide-card>.eyebrow,
html[lang] body main .v-questions>.v-label { font-size: var(--type-label); line-height: 1.6; letter-spacing: .055em; }
html[lang] body main :is(.small-note,figcaption,.byline,.rr-card-date,.v-micro,.v-plan-footnote,.v-plan-corner,.v-manifesto-foot,.v-manifesto-foot>span,.brief-intro-meta,.brief-progress-steps li,.brief-progress-steps li>span,.form-progress,.form-progress>span,.field-optional,.field-error,.brief-message-help,.brief-contact-state,.brief-external-note,.brief-action-status,.brief-contact-preview,.brief-contact-missing) {
  font-size: var(--type-caption); line-height: 1.7; letter-spacing: 0;
}
html[lang] body .v-home .v-manifesto-aside p.v-micro { font-size: var(--type-caption); line-height: 1.8; }
html[lang] body .v-home .v-manifesto-foot>span { font-size: var(--type-caption); }
html[lang] body .v-home .v-plan-note { font-size: var(--type-label); line-height: 1.65; min-height: 0; }
html[lang] body .v-home :is(.v-plan-top .v-label,.v-palette>.v-label,.v-materials-caption .v-label,.v-plan-stage-label) { font-size: .75rem; line-height: 1.6; letter-spacing: .02em; }
html[lang] body .v-home .v-atmosphere figcaption { font-size: var(--type-caption); }
html[lang] body .v-home .v-coordinate { font-size: 2rem; letter-spacing: -.03em; }
html[lang] body .v-home :is(.v-step,.v-tab-number,.guide-number) { font-size: var(--type-caption); }
/* Controls, forms, and expandable content are part of the type system too. */
html[lang] body main :is(.button,.text-link,.v-link,.v-hero-action,.brief-channel-button,.brief-direct-entry),
html[lang] body .v-home .v-materials-detail .v-link,
html[lang] body main .article-grid>aside .text-link { font-size: var(--type-label); line-height: 1.6; }
html[lang] body main :is(.faq summary,.v-questions summary,.v-layout-tabs button,.brief-review-details>summary) { font-size: var(--type-body); line-height: 1.65; }
html[lang] body main :is(form label,.priority-options label) { font-size: var(--type-label); line-height: 1.65; }
html[lang] body main :is(input:not([type=checkbox]),select,textarea,#brief-message) { font-size: var(--type-body); line-height: 1.65; }
html[lang] body main :is(input,textarea)::placeholder { font-size: var(--type-label); }
html[lang] body main .brief-field-help { font-size: var(--type-caption)!important; line-height: 1.7!important; }
html[lang] body main :is(.brief-errors,.brief-errors p,.brief-errors li,.brief-contact-card p) { font-size: var(--type-label); }
html[lang] body main #brief-summary { font-size: var(--type-body); }
html[lang] body main #brief-summary dt { font-size: var(--type-label); letter-spacing: .02em; }
html[lang] body .contact-dialog h2 { font-size: var(--type-section); line-height: 1.25; }
html[lang] body .contact-dialog :is(p,.contact-channel) { font-size: var(--type-body); line-height: 1.7; }
html[lang] body .contact-dialog :is(.eyebrow,.contact-dialog-status) { font-size: var(--type-label); }
html[lang] body .site-header .menu-button { font-size: .75rem; letter-spacing: .06em; }
html[lang] body .site-header nav>a { font-size: var(--type-label); line-height: 1.6; }
html[lang] body .rr-footer h2 { font-size: clamp(1.875rem,1.4rem + 1.5vw,2.75rem); max-width: 25ch; line-height: 1.25; }
html[lang] body .rr-footer h3 { font-size: var(--type-label); line-height: 1.6; letter-spacing: 0; }
/* Flexible containers must have enough room for translated text, not clip it. */
html[lang] body main :is(.v-manifesto-grid,.v-layout-grid,.v-materials,.v-process-list article,.three-col,.timeline article,.deliverable-row,.scope-section,.brief-section)>* { min-width: 0; }
html[lang] body .v-home :is(.v-process-heading,.v-journal-heading,.v-section-meta,.v-begin-top,.v-manifesto-foot,.v-begin-bottom) { flex-wrap: wrap; }
html[lang] body .v-home .v-layout-description { min-height: 0; }
html[lang] body .v-home .v-materials-detail { max-width: 48ch; margin-left: 0; padding-left: 0; }
html[lang] body .v-home .v-materials-lead { margin-left: 0; padding-left: 0; }
html[lang] body .v-home .v-manifesto-grid { margin-top: 40px; }
html[lang] body .v-home .v-manifesto-copy { padding-top: 0; }
html[lang] body main .button,html[lang] body main .text-link { max-width: 100%; white-space: normal; }
html[lang] body main .button { gap: 20px; }
html[lang] body main .form-progress { flex-wrap: wrap; }
html[lang] body main .brief-intro-meta { flex-wrap: wrap; }
html[lang] body main .article .article-body .article-note h2 { font-size: clamp(1.5rem,1.25rem + 1vw,2rem); line-height: 1.35; }
html[lang] body main .article .article-body .article-note { padding: clamp(24px,3vw,40px); }
html[lang=ja] body :is(main,.rr-footer) :is(h1,h2,h3,legend),
html[lang=zh-Hans] body :is(main,.rr-footer) :is(h1,h2,h3,legend) { letter-spacing: 0; line-height: 1.35; line-break: strict; }
html[lang=ko] body :is(main,.rr-footer) :is(h1,h2,h3,legend) { letter-spacing: -.02em; word-break: keep-all; line-height: 1.3; }
@media(max-width:1100px) {
  html[lang] body .v-home .v-manifesto-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px; }
  html[lang] body .v-home .v-atmosphere { grid-column: 1; grid-row: 1; }
  html[lang] body .v-home .v-manifesto-copy { grid-column: 2; grid-row: 1; padding: 0; }
  html[lang] body .v-home .v-manifesto-aside { grid-column: 1/-1; grid-row: 2; padding: 0; display: grid; grid-template-columns: 75px 1fr; gap: 0 24px; }
  html[lang] body .v-home .v-coordinate { grid-row: 1/5; }
  html[lang] body main .page-hero>.lead { margin-left: 0; }
}
@media(max-width:760px) {
  html[lang] body .v-home .v-manifesto-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  html[lang] body .v-home .v-manifesto-copy { grid-column: 1; grid-row: 2; }
  html[lang] body .v-home .v-manifesto-aside { grid-column: 1; grid-row: 3; }
  html[lang] body .v-home .v-layout-grid,
  html[lang] body .v-home .v-materials { grid-template-columns: minmax(0,1fr); }
  html[lang] body .v-home .v-guide-wrap .guide-card { padding-top: 0; margin-inline: 0; }
  html[lang] body .v-home :is(.v-begin-top .v-label,.v-section-meta .v-label) { max-width: none; }
  html[lang] body .v-home .v-section-meta { align-items: start; gap: 10px 24px; }
  html[lang] body main .brief-progress-steps { grid-template-columns: 1fr; gap: 10px; }
  html[lang] body main .brief-progress-steps li { flex-direction: row; align-items: baseline; gap: 12px; }
  html[lang] body main .form-actions { flex-wrap: wrap; }
  html[lang] body main .form-actions .button { width: auto; max-width: 100%; }
  html[lang] body main .closing .button { min-width: 0; }
  html[lang] body .rr-footer-columns { grid-template-columns: minmax(0,1fr); }
}
/* Explicit component selectors replace older, more specific small-type rules. */
html[lang] body .v-home .v-section-meta>span,
html[lang] body .v-home .v-begin-top .v-label { font-size: var(--type-label); line-height: 1.65; }
html[lang] body .v-home .v-layout-description,
html[lang] body main .scope-section p:not(.lead) { font-size: var(--type-body); line-height: 1.8; }
html[lang] body main .brief-flow .privacy-note p,
html[lang] body .brief-flow .brief-aside .privacy-note p { font-size: var(--type-label); line-height: 1.8; }
html[lang] body .v-home .v-process-list h3 { font-size: var(--type-subheading); line-height: 1.35; }
html[lang] body .v-home .v-section-meta>.v-label:last-child { font-size: var(--type-label); max-width: none; line-height: 1.65; }
/* Decorative words must not split into single-letter fragments in translation. */
html[lang] body .v-home .v-process-word { font-size: clamp(1.25rem,2vw,2rem); line-height: 1.3; letter-spacing: -.025em; white-space: nowrap; word-break: normal; overflow-wrap: normal; }
html[lang] body .v-home .v-guide-wrap .cover-measure b { font-family: var(--international-font); font-size: clamp(1.5rem,1rem + 1vw,2.25rem); line-height: 1.2; letter-spacing: -.025em; }
html[lang=zh-Hans] body .v-home .v-guide-wrap .cover-measure b,
html[lang=ja] body .v-home .v-guide-wrap .cover-measure b { letter-spacing: 0; }
html[lang] body main :is(.faq,.v-questions) summary>span {
  flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; margin-inline-end: .5rem;
  display: inline-grid; place-items: center; line-height: 1; font-size: 1.25rem;
}
@media(max-width:760px) {
  /* Parent links suffice on mobile; the full current title follows in the H1. */
  .breadcrumbs>[aria-current=page] { display: none; }
}
html[lang] body main .status-banner { font-size: var(--type-label); line-height: 1.7; }
html[lang] body main .timeline small { font-size: var(--type-caption); line-height: 1.7; }
html[lang] body main .deliverable-row>span { font-size: var(--type-caption); }
/* Phrase-aware wrapping keeps Japanese compounds together where supported. */
@supports(word-break:auto-phrase) {
  html[lang=ja] body :is(main,.rr-footer) :is(h1,h2,h3,legend) { word-break: auto-phrase; }
}
