/* Authoritative web typography, loaded after legacy template styles. */
.c-typography { min-width:0; font-size:var(--type-body); line-height:1.75; }
.c-typography :is(h1,h2,h3,h4,h5,h6) { min-width:0; max-inline-size:100%; overflow-wrap:break-word; text-wrap:pretty; }
.c-typography :is(h1,h2,h3) { font-family:var(--font-serif); font-weight:400; color:var(--color-ink-primary); letter-spacing:-.022em; }
.c-typography h1 { font-size:var(--type-h1); line-height:1.12; }
.c-typography h2 { font-size:var(--type-h2); line-height:1.18; }
.c-typography h3 { font-size:var(--type-h3); line-height:1.25; }
.c-typography :is(h4,h5,h6) { font-family:var(--font-sans); font-weight:600; letter-spacing:0; line-height:1.4; }
.c-typography h4 { font-size:var(--type-h4); }
.c-typography h5 { font-size:var(--type-h5); }
.c-typography h6 { font-size:var(--type-h6); }
.c-typography :is(.page-title,.article-title,.dossier-title), .c-typography .page-intro .page-title { font-size:var(--type-h1); line-height:1.12; max-width:26ch; font-weight:400; }
.c-typography :is(.hero-copy,.public-hero,.reading-path-hero) h1 { font-size:var(--type-hero); line-height:1.06; }
.c-typography :is(.public-hero,.reading-path-hero) h1 { max-width:20ch; }
.c-typography :is(.archive-title,.card-title,.discovery-title,.dispatch-title,.timeline-title,.node-title,.anomaly-title,.dept-title,.subsystem-title) { font-size:var(--type-card-title); font-weight:400; line-height:1.22; }
.c-typography :is(.landing-discovery,.ecosystem-card,.exploration-card,.public-card,.method-steps) h3 { font-size:var(--type-h3); font-weight:400; line-height:1.25; }
.c-typography :is(.landing-discovery,.ecosystem-card,.exploration-card,.public-card) p { font-size:1rem; line-height:1.7; }
.c-typography :is(.dossier-subtitle,.article-summary-lead,.page-subtitle,.public-lede,.hero-description) { font:400 var(--type-lede)/1.7 var(--font-sans); color:var(--color-ink-secondary); max-width:65ch; }
.c-typography .prose { max-width:var(--measure-prose); margin-inline:auto; font:400 var(--type-body)/1.8 var(--font-sans); }
.c-typography .prose p { font-size:inherit; line-height:inherit; margin-block:0 1.25em; }
.c-typography .prose :is(h2,h3,h4,h5,h6) { margin-block:1.5em .6em; }
.c-typography .prose h2 { font-size:clamp(1.75rem,1.45rem + 1vw,2.125rem); font-weight:400; line-height:1.22; }
.c-typography .heading-with-icon { display:flex; align-items:flex-start; gap:.45em; }
.c-typography .heading-with-icon > .section-icon { width:20px; height:20px; margin:.15em 0 0; flex:0 0 20px; }
.c-typography .heading-text { min-width:0; overflow-wrap:break-word; }
.c-typography :is(.dossier-byline,.article-meta-row,.byline-bar,.archive-meta,.card-meta,.discovery-card-header) { font:400 var(--type-meta)/1.65 var(--font-sans); letter-spacing:0; text-transform:none; overflow-wrap:break-word; }
.c-typography :is(.archive-meta,.discovery-dept,.discovery-date) { color:var(--color-ink-muted); }
.c-typography .archive-action { font:500 .875rem/1.5 var(--font-sans); letter-spacing:0; text-transform:none; }
.c-typography :is(.metric-context,.metric-caption) { font:500 var(--type-meta)/1.6 var(--font-sans); letter-spacing:0; text-transform:none; color:var(--color-ink-muted); }
.c-typography .metric-hero { padding:24px; gap:10px; border-left-width:2px; border-color:var(--color-border-medium); border-left-color:var(--color-accent-primary); }
.c-typography .metric-value { display:flex; flex-wrap:wrap; align-items:baseline; gap:.18em; min-width:0; font:400 var(--type-metric)/1.15 var(--font-serif); letter-spacing:-.025em; overflow-wrap:break-word; }
.c-typography .metric-unit { font:500 1rem/1.5 var(--font-sans); letter-spacing:0; color:var(--color-ink-muted); }
.c-typography :is(.metric-value-big,.metric-num,.c-metric-surge__value,.stat-value) { font-size:var(--type-metric); line-height:1.15; overflow-wrap:break-word; max-width:100%; }
.c-typography .reader-eyebrow { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin:0 0 14px; font:500 var(--type-meta)/1.6 var(--font-sans); color:var(--color-ink-muted); }
.c-typography .reader-eyebrow .ui-icon { width:18px; height:18px; color:var(--color-accent-primary); }
.c-typography .reader-id { font:400 .75rem/1.6 var(--font-mono); margin-left:0; overflow-wrap:anywhere; }
.c-typography .reader-status { display:inline-flex; margin:0 0 20px; }
.c-typography .dossier-byline { display:grid; grid-template-columns:1fr; gap:10px; padding-block:16px; margin-block:24px 28px; }
.c-typography .reader-author { display:grid; gap:3px; }
.c-typography .reader-author strong { font-weight:500; color:var(--color-ink-primary); }
.c-typography .reader-author span { color:var(--color-ink-muted); }
.c-typography .reader-time { display:flex; gap:8px 18px; flex-wrap:wrap; color:var(--color-ink-muted); }
.c-typography .directive-box { padding:24px; border:1px solid var(--color-border-medium); border-radius:var(--radius-lg); }
.c-typography .directive-box::before { font-size:.75rem; letter-spacing:0; }
.c-typography .directive-quote { font:400 italic var(--type-lede)/1.6 var(--font-serif); }
.c-typography .directive-sig { font:400 var(--type-meta)/1.65 var(--font-sans); }
.c-typography .reader-return { display:inline-flex; align-items:center; gap:8px; max-width:100%; min-height:44px; font:500 .875rem/1.5 var(--font-sans); color:var(--color-accent-primary); }
.c-typography .reader-return span { min-width:0; overflow-wrap:break-word; }
.c-typography .pdf-download-card { border-radius:var(--radius-lg); }
.c-typography .pdf-info span { font:400 var(--type-meta)/1.7 var(--font-sans); }
.c-typography .pdf-btn { display:inline-flex; align-items:center; gap:8px; max-width:100%; min-height:44px; font:500 .875rem/1.5 var(--font-sans); border-radius:var(--radius-md); }
.c-typography .pdf-btn > span { min-width:0; }
.c-typography .type-specimen { margin:0; overflow-wrap:break-word; }
.c-typography .type-specimen--h1 { font:400 var(--type-h1)/1.12 var(--font-serif); }
.c-typography .type-specimen--h2 { font:400 var(--type-h2)/1.18 var(--font-serif); }
.c-typography .type-specimen--h3 { font:400 var(--type-h3)/1.25 var(--font-serif); }
.c-typography .type-specimen--h4 { font:600 var(--type-h4)/1.4 var(--font-sans); }
.c-typography .type-specimen--h5 { font:600 var(--type-h5)/1.4 var(--font-sans); }
.c-typography .type-specimen--h6 { font:600 var(--type-h6)/1.4 var(--font-sans); }
.c-typography .type-ramp { display:grid; gap:0; margin-bottom:32px; }
.c-typography .type-ramp > div { padding:20px 0; border-bottom:1px solid var(--color-border-medium); }
.c-typography .type-ramp-label { font:500 .75rem/1.6 var(--font-sans); color:var(--color-ink-muted); margin-bottom:10px; }
@media(max-width:520px) { .c-typography .metric-hero,.c-typography .directive-box { padding:20px; } .c-typography .page-title,.c-typography .article-title,.c-typography .dossier-title { max-width:100%; } }

.c-typography.error-recovery { inline-size:100%; border-radius:var(--radius-lg); }
.c-typography .guide-source-caption { font-size:var(--type-meta); line-height:1.65; }
@media(max-width:520px) { .c-typography.error-recovery { padding:28px 20px !important; } }

/* Keep intrinsic grid/flex sizing from overriding reader text enlargement. */
.c-typography { overflow-wrap:anywhere; }
.c-typography :where(section,article,aside,div,figure,blockquote,p,ul,ol,li,a,span) { min-inline-size:0; }
.c-typography :is(.panel-header,.console-header,.chart-header,.dispatch-meta,.live-badge-row,.preview-header) { flex-wrap:wrap; gap:8px 16px; }
.c-typography :is(.endpoint-btn,.preview-code) { max-inline-size:100%; min-inline-size:0; overflow-wrap:anywhere; }
.c-typography .sources-box :is(ul,li) { overflow-wrap:anywhere; }
.c-typography .metric-number { min-inline-size:0; max-inline-size:100%; overflow-wrap:anywhere; }
.c-typography .hero-telemetry-panel__surge-num { font-size:var(--type-metric); line-height:1.15; overflow-wrap:anywhere; }

.c-typography .live-pill { max-inline-size:100%; flex-shrink:1; white-space:normal; font:500 .75rem/1.5 var(--font-sans); letter-spacing:0; }
.c-typography .view-all-discoveries-btn { max-inline-size:100%; white-space:normal; font:500 .875rem/1.5 var(--font-sans); letter-spacing:0; }
.c-typography .read-more { max-inline-size:100%; white-space:normal; font:500 var(--type-meta)/1.6 var(--font-sans); letter-spacing:0; }
.c-typography .read-more > span { min-inline-size:0; overflow-wrap:anywhere; }

/* Reader context stays in document flow, including at fractional zoom widths. */
.c-typography .reader-record { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 14px; margin:0 0 12px; max-inline-size:100%; color:var(--color-ink-muted); }
.c-typography .reader-topic { font:400 var(--type-meta)/1.6 var(--font-sans); overflow-wrap:anywhere; }
.c-typography .dossier-header { max-inline-size:100%; min-inline-size:0; }
.c-typography .dossier-header :is(.dossier-title,.dossier-subtitle) { inline-size:100%; }
@media(max-width:520px) { .c-typography .reader-record { flex-direction:column; align-items:flex-start; gap:3px; } }
