/* Shared visual system and the research reading experience. */
:root { --bg: #f6f6f2; --bg-0: #f6f6f2; --bg-1: #ecece7; --bg-2: #e2e3dc; --card: #fff; --fg: #182323; --fg-dim: #485555; --fg-mute: #617070; --border: #dfe3db; --border-2: #bfc9c1; --accent: #a22f20; --link: #a22f20; --on-accent: #fff; --radius: 12px; --radius-sm: 7px; --r-green: #225847; --r-green-soft: #e5eee8; --r-warm: #eeeee5; --r-ink: #192e2a; }
:root[data-theme="dark"] { --bg: #111b1b; --bg-0: #111b1b; --bg-1: #192626; --bg-2: #233333; --card: #182323; --fg: #eff3ec; --fg-dim: #bac8c4; --fg-mute: #9aadab; --border: #2d4140; --border-2: #47605a; --accent: #ffad92; --link: #ffad92; --on-accent: #182323; --r-green: #8fd5b6; --r-green-soft: #213b30; --r-warm: #20302b; --r-ink: #192e2a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #111b1b; --bg-0: #111b1b; --bg-1: #192626; --bg-2: #233333; --card: #182323; --fg: #eff3ec; --fg-dim: #bac8c4; --fg-mute: #9aadab; --border: #2d4140; --border-2: #47605a; --accent: #ffad92; --link: #ffad92; --on-accent: #182323; --r-green: #8fd5b6; --r-green-soft: #213b30; --r-warm: #20302b; --r-ink: #192e2a; }
}
[hidden] { display: none !important; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
button, a, input, select { touch-action: manipulation; }
.top { background: var(--bg-0); }
.top-row { gap: 10px 16px; padding-block: 12px; }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.brand { gap: 7px; }
.brand-lockup { font-size: 23px; letter-spacing: -.06em; }
.groups { gap: 2px; }
.group-btn { font-size: 14px; padding-inline: 10px; color: var(--fg-dim); }
.group-btn.on { color: var(--accent); }
.search-wrap { flex: 1 1 180px; max-width: 300px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding-inline: 10px; min-height: 40px; }
.search-wrap input { font-size: 14px; padding-block: 9px; }
.search-wrap .sicon { font-size: 25px; color: var(--fg-mute); line-height: 1; min-width: 24px; }
.theme-btn, .help-btn, .menu-btn { border-radius: 10px; background: var(--card); min-height: 40px; }
.creator { display: none; }
.top-row > .mcp-jump { font-size: 12px; padding-inline: 8px; }
footer { border-top: 1px solid var(--border); padding-block: 32px; }
.foot { display: grid; grid-template-columns: 100px 1fr; gap: 8px 22px; align-items: baseline; }
.foot-name { font-size: 20px; font-weight: 700; }
.foot > p { margin: 0; }
.foot-links { grid-column: 2; gap: 12px 20px; }
.foot .creator { display: inline; }
body[data-reader-shell="true"] main { margin: 0 auto; max-width: 1264px; width: auto; padding: 36px 32px 72px; }
body[data-reader-shell="true"] footer { max-width: 1200px; margin: 0 auto; width: auto; }
body[data-reader-shell="true"] .nav { display: none; }
body[data-reader-shell="true"] main h1 { line-height: 1.04; }
.r-eyebrow { margin: 0 0 16px; font: 11px/1.5 var(--mono); color: var(--r-green); text-transform: uppercase; letter-spacing: .1em; }

.r-link { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; text-underline-offset: 4px; }
.r-link:hover { text-decoration: underline; }
.r-button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 46px; padding: 11px 20px; background: var(--accent); color: var(--on-accent) !important; border: 1px solid var(--accent); border-radius: 10px; font: 600 14px/1.3 var(--sans); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.r-button:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 3px 9px rgb(24 35 35 / .12); }
.r-button-outline { background: transparent; color: var(--fg) !important; border-color: var(--border-2); }
.r-button-dark { background: var(--r-ink); border-color: var(--r-ink); color: #fff !important; }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.r-home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; align-items: end; padding: 26px 0 40px; }
.r-home-hero h1 { font-size: clamp(48px, 5.7vw, 76px); max-width: 18ch; margin: 0 0 24px; font-weight: 600; letter-spacing: -.065em; }
.r-home-hero h1 em { font-weight: 400; font-style: normal; color: var(--accent); }
.r-home-lede { max-width: 38ch; margin: 0 0 24px; font-size: 19px; line-height: 1.5; }
.r-home-note { border-left: 1px solid var(--border-2); padding: 26px 0 8px 30px; }
.r-note-number { color: var(--accent); font: 11px var(--mono); letter-spacing: .05em; }
.r-home-note p { margin: 22px 0; font-size: 29px; line-height: 1.28; letter-spacing: -.035em; color: var(--fg); }
.r-home-note > span:last-of-type { display: block; color: var(--fg-mute); font-size: 12px; margin-bottom: 16px; }
.r-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border-2); padding: 22px 0; }
.r-stats a { display: flex; gap: 14px; align-items: baseline; color: var(--fg); text-decoration: none; padding-inline: 26px; border-right: 1px solid var(--border); }
.r-stats a:first-child { padding-left: 0; }
.r-stats a:last-child { border: 0; }
.r-stats strong { font: 500 32px/1.2 var(--sans); letter-spacing: -.05em; }
.r-stats span { color: var(--fg-mute); font-size: 13px; }
.r-stats a:hover span { color: var(--accent); }
.r-section { margin-top: 52px; }
.r-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.r-section-head .r-eyebrow { margin-bottom: 8px; }
.r-section-head h2 { font-weight: 500; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; margin: 0; }
.r-section-head > .r-link { flex-shrink: 0; margin-bottom: 3px; }
.r-feature { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 10px; background: var(--card); overflow: hidden; }
.r-feature-copy { padding: 34px; display: flex; flex-direction: column; }
.r-feature h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.18; letter-spacing: -.04em; font-weight: 500; margin: 0 0 18px; }
.r-feature h2 a { color: var(--fg); text-decoration: none; }
.r-feature-copy > p:not(.r-eyebrow) { font-size: 16px; line-height: 1.6; margin: 0 0 24px; max-width: 49ch; }
.r-feature-bottom { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-top: auto; }
.r-award { display: block; color: var(--fg); font: 500 19px/1.3 var(--mono); letter-spacing: -.04em; }
.r-award small { display: block; font: 12px/1.5 var(--sans); margin-top: 5px; letter-spacing: 0; color: var(--fg-mute); }
.r-feature-visual { padding: 24px; background: var(--r-warm); text-decoration: none; display: flex; flex-direction: column; gap: 16px; color: var(--fg); }
.r-feature-visual .r-eyebrow { margin: 0; }
.r-feature-visual img { width: 100%; height: 240px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.r-feature-visual > span:last-child { font-size: 13px; color: var(--fg-mute); }
.r-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.r-topic { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; padding: 23px; background: var(--card); text-decoration: none; transition: border-color .15s ease, transform .15s ease; min-width: 0; }
.r-topic:hover { border-color: var(--r-green); text-decoration: none; transform: translateY(-2px); }
.r-topic-symbol { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 0 14px; background: var(--r-green-soft); color: var(--r-green); border-radius: 10px; font-size: 25px; line-height: 1; }
.r-topic strong { max-width: 24ch; color: var(--fg); font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; }
.r-topic > span:not(.r-topic-symbol) { font-size: 12px; color: var(--fg-mute); margin-top: auto; }
.r-topic small { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); font: 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--r-green); }
.r-topic small span { float: right; font-size: 14px; }
.r-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.r-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--card); overflow: hidden; }
.r-card:hover { border-color: var(--border-2); box-shadow: 0 5px 16px rgb(24 35 35 / .04); }
.r-card-content { padding: 23px; flex: 1; display: flex; flex-direction: column; }
.r-card-meta { display: flex; align-items: start; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; margin: 0 0 18px; font: 11px/1.5 var(--mono); color: var(--fg-mute); }
.r-card-meta > span { color: var(--fg-mute); font: 10px/1.5 var(--mono); text-align: right; }
.r-card h3 { font-size: 21px; font-weight: 500; line-height: 1.27; letter-spacing: -.025em; margin: 0 0 14px; }
.r-card h3 a { color: var(--fg); text-decoration: none; }
.r-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.r-card-content > p:not(.r-card-meta) { font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.r-card-foot { display: flex; justify-content: space-between; gap: 10px; align-items: end; border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; color: var(--fg-mute); font-size: 11px; }
.r-card-foot a { color: var(--accent); font-size: 13px; white-space: nowrap; text-decoration: none; min-height: 30px; display: flex; align-items: center; }
.r-card-foot .r-award { font-size: 15px; }
.r-card-foot .r-award small { font-size: 10px; }
.r-diagram-preview { display: block; padding: 18px; background: var(--r-warm); border-bottom: 1px solid var(--border); }
.r-diagram-preview img { width: 100%; height: 210px; object-fit: contain; background: #fff; border-radius: 10px; }
.r-atlas-banner { margin-top: 54px; padding: 38px; background: var(--r-green-soft); border: 1px solid var(--border); border-radius: 10px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 70px; }
.r-atlas-banner h2 { font-size: 38px; line-height: 1.1; font-weight: 500; letter-spacing: -.05em; margin: 0 0 18px; max-width: 22ch; }
.r-atlas-banner p:not(.r-eyebrow) { max-width: 52ch; font-size: 16px; }
.r-atlas-stats { border-left: 1px solid var(--border-2); padding-left: 40px; display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: center; }
.r-atlas-stats strong { font-size: 40px; font-weight: 500; letter-spacing: -.05em; }
.r-atlas-stats span { color: var(--fg-dim); font-size: 14px; }
.r-atlas-stats small { grid-column: 1/-1; color: var(--fg-mute); font-size: 12px; }
.r-utility-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.r-utility-links a { text-decoration: none; padding: 20px 0; border-top: 2px solid var(--border-2); }
.r-utility-links a:hover { border-color: var(--accent); }
.r-utility-links span { display: block; color: var(--accent); font: 11px var(--mono); margin-bottom: 20px; }
.r-utility-links strong { font-size: 22px; font-weight: 500; color: var(--fg); }
.r-utility-links p { color: var(--fg-mute); font-size: 14px; margin: 8px 0; }
.r-crumb { display: flex; flex-wrap: wrap; gap: 12px; color: var(--fg-mute); font-size: 12px; margin-bottom: 36px; }
.r-crumb a { color: var(--fg-mute); text-decoration: none; }
.r-crumb a:hover { color: var(--accent); }
.r-page-head { margin: 0 0 32px; max-width: 850px; }
.r-page-head h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 500; letter-spacing: -.055em; margin: 0 0 20px; }
.r-page-head > p:last-child { font-size: 18px; line-height: 1.6; max-width: 68ch; margin: 0; }
.r-collection-tabs { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px 0; }
.r-collection-tabs a { color: var(--fg); text-decoration: none; font-size: 14px; padding: 8px 0; }
.r-collection-tabs a:hover { color: var(--accent); }
.r-browser-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.r-browser-controls label { display: block; flex: 1 1 145px; min-width: 0; color: var(--fg-mute); font-size: 11px; font-weight: 500; }
.r-browser-controls .r-search-label { flex: 2 1 260px; }
.r-browser-controls input, .r-browser-controls select { display: block; width: 100%; height: 44px; margin-top: 6px; background: var(--bg); color: var(--fg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; font: 14px var(--sans); }
.r-browser-controls select { text-overflow: ellipsis; padding-right: 24px; }
.r-reset { min-height: 44px; color: var(--accent); background: transparent; border: 0; padding: 8px; font: 500 13px var(--sans); cursor: pointer; }
.r-browser-status { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 20px 0; scroll-margin-top: 90px; }
.r-browser-status p { margin: 0; font-size: 12px; }
.r-view-toggle { display: flex; gap: 3px; border: 1px solid var(--border); background: var(--card); padding: 3px; border-radius: 10px; }
.r-view-toggle button { border: 0; color: var(--fg-mute); background: transparent; border-radius: 4px; min-height: 34px; padding: 6px 12px; cursor: pointer; font: 12px var(--sans); }
.r-view-toggle button[aria-pressed="true"] { background: var(--r-green-soft); color: var(--r-green); }
.r-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 28px 0; font-size: 12px; }
.r-pagination button { min-height: 42px; padding: 10px 16px; border: 1px solid var(--border-2); border-radius: 10px; color: var(--fg); background: var(--card); font: 13px var(--sans); cursor: pointer; }
.r-pagination button:disabled { opacity: .4; cursor: default; }
.r-empty { padding: 60px 24px; text-align: center; border: 1px dashed var(--border-2); border-radius: 10px; }
.r-list-view { grid-template-columns: 1fr; gap: 8px; }
.r-list-view .r-card-content { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.5fr) 180px; gap: 10px 24px; align-items: baseline; padding: 18px 23px; }
.r-list-view .r-card-meta { grid-column: 1/-1; margin: 0; justify-content: flex-start; }
.r-list-view .r-card h3 { font-size: 19px; margin: 0; }
.r-list-view .r-card-content > p:not(.r-card-meta) { margin: 0; }
.r-list-view .r-card-foot { border: 0; padding: 0; margin: 0; }
.r-list-view .r-diagram-preview { display: none; }
.r-list-view .r-program-scope { margin: 0; }
.r-snapshot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.r-snapshot p { margin: 0; font-size: 11px; }
.r-snapshot .r-link { font-size: 11px; }
.r-badge { display: inline-block; font: 10px/1.4 var(--mono); padding: 4px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--fg-mute); background: var(--bg); }
.r-badge-green { color: var(--r-green); background: var(--r-green-soft); border-color: transparent; }
.r-program-scope { display: flex; gap: 16px; margin-bottom: 20px; font-size: 12px; color: var(--fg-mute); }
.r-program-scope strong { font-size: 17px; font-weight: 500; margin-right: 3px; }
.r-program-card h3 { font-size: 23px; }
.r-scope-gap { color: var(--accent); }
.r-atlas-overview { display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px; gap: 24px; background: var(--r-green-soft); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 20px; }
.r-atlas-overview strong { display: block; font-weight: 500; font-size: 34px; line-height: 1.2; letter-spacing: -.045em; }
.r-atlas-overview span { font-size: 12px; color: var(--fg-mute); }
.r-notice { border-left: 3px solid var(--border-2); padding: 5px 0 5px 16px; font-size: 13px; line-height: 1.6; margin: 24px 0; }
.reader-detail { max-width: 1050px; margin-inline: auto; }
.r-article-head { margin: 0 0 42px 230px; }
.r-article-head h1 { margin: 0 0 24px; font-size: clamp(35px, 4.5vw, 56px); line-height: 1.1 !important; font-weight: 500; letter-spacing: -.04em; max-width: 25ch; }
.r-article-deck { font-size: 19px; line-height: 1.55; margin: 0 0 24px; }
.r-article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.r-article-actions > span:not(.r-badge) { font-size: 11px; color: var(--fg-mute); }
.r-reading-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 40px; align-items: start; }
.r-toc { position: sticky; top: 108px; }
.r-toc .r-eyebrow { margin-bottom: 12px; }
.r-toc nav { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 1px solid var(--border); }
.r-toc nav a { display: block; color: var(--fg-mute); padding: 6px 0; font-size: 13px; line-height: 1.4; text-decoration: none; }
.r-toc a[aria-current="location"], .r-toc a:hover { color: var(--accent); }
.r-reading-tools { display: flex; flex-direction: column; gap: 7px; margin-top: 26px; }
.r-reading-tools button { display: flex; align-items: center; gap: 12px; width: fit-content; min-height: 36px; padding: 7px 10px; color: var(--fg-dim); background: var(--card); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 15px; }
.r-reading-tools span { font: 11px var(--sans); }
.r-article-body { min-width: 0; font-size: 18px; line-height: 1.8; }
.r-article-section { margin-bottom: 38px; padding-top: 24px; border-top: 1px solid var(--border); scroll-margin-top: 105px; }
.r-article-section h2 { margin: 0 0 18px; font-size: 27px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.r-article-section p { margin: 0 0 20px; max-width: 70ch; }
.r-article-section li { margin-block: 10px; padding-left: 4px; }
.r-article-section ul { padding-left: 22px; }
.r-large-text .r-article-body { font-size: 21px; }
.r-evidence-box { background: var(--r-green-soft); border: 1px solid var(--border); border-radius: 10px; padding: 22px; margin-bottom: 22px; }
.r-evidence-box > strong { display: block; font: 500 28px var(--mono); color: var(--r-green); margin-bottom: 12px; }
.r-evidence-box > span:not(.r-badge) { display: block; font-size: 12px; color: var(--fg-mute); margin-bottom: 14px; }
.r-evidence-box p { font-size: 14px; margin: 0; }
.r-timeline { margin: 0; }
.r-timeline > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.r-timeline dt, .r-timeline dd { margin: 0; font-size: 14px; }
.r-timeline small { display: block; margin-top: 4px; color: var(--fg-mute); font-size: 12px; line-height: 1.55; }
.r-sources { margin: 0; padding-left: 20px; }
.r-sources li { padding-left: 8px; margin-bottom: 20px; }
.r-sources a { font-size: 16px; overflow-wrap: anywhere; }
.r-sources span:not([aria-hidden]) { display: block; font-size: 12px; color: var(--fg-mute); margin-top: 4px; }
.r-diagram-full { margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.r-diagram-full img { display: block; width: 100%; max-height: 700px; object-fit: contain; background: #fff; }
.r-diagram-full figcaption { font-size: 13px; color: var(--fg-mute); line-height: 1.55; margin-top: 15px; }
.r-diagram-full + .r-actions { padding-top: 15px; gap: 20px; }
.r-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r-related-list { display: grid; gap: 8px; }
.r-related-list a { color: var(--fg); text-decoration: none; font-size: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.r-related-list small { display: block; color: var(--r-green); font: 10px var(--mono); text-transform: uppercase; margin-bottom: 8px; }
.r-scope-table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--border); border-radius: 10px; }
.r-scope-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; background: var(--card); }
.r-scope-table caption { text-align: left; padding: 15px; color: var(--fg); font-size: 14px; font-weight: 500; background: var(--r-green-soft); }
.r-scope-table th, .r-scope-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.r-scope-table th:first-child { width: 53%; }
.r-scope-table th:nth-child(2) { width: 20%; }
.r-scope-table th { font-weight: 500; background: var(--bg); }
.r-scope-table code { font-size: 11px; word-break: break-word; background: none; color: var(--fg); }
.r-scope-table small { display: block; font-size: 10px; margin-top: 5px; }
.r-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.r-data-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 28px; min-width: 0; }
.r-data-card h2 { font-size: 25px; font-weight: 500; margin: 0 0 14px; letter-spacing: -.03em; }
.r-data-card p:not(.r-eyebrow) { font-size: 15px; }
.r-data-card > code { font-size: 12px; color: var(--r-green); }
.r-data-card > div { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 26px 0 16px; }
.r-data-card small { font-size: 12px; color: var(--fg-mute); }
.r-data-card details { font-size: 11px; color: var(--fg-mute); }
.r-data-card summary { cursor: pointer; }
.r-data-card details code { overflow-wrap: anywhere; }
.r-download-list { border: 1px solid var(--border); border-radius: 10px; background: var(--card); overflow: hidden; }
.r-download-list a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 24px; color: var(--fg); border-bottom: 1px solid var(--border); text-decoration: none; font-size: 14px; }
.r-download-list a:hover { background: var(--r-green-soft); }
.r-download-list a:last-child { border: 0; }
.r-download-list code { background: none; font-size: 12px; overflow-wrap: anywhere; }
.r-download-list span { color: var(--fg-mute); font-size: 12px; text-align: right; }
/* Bring the field tools into the same visual system. */
body:not([data-reader-shell]) .view-head h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -.04em; }
body:not([data-reader-shell]) .hint { font-size: 15px; max-width: 70ch; margin-bottom: 28px; }
.rail-item { border-radius: 10px; }
.rail-item.on { color: var(--r-green); background: var(--r-green-soft); border-color: transparent; }
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 12px; }
.tool-card:hover { border-color: var(--border-2); }
.util-layout { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 24px; }
.util-layout .util-nav { position: sticky; top: 100px; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 5px; }
.util-layout .util-nav .rail-item { padding: 10px 12px; min-height: 40px; justify-content: flex-start; font-size: 13px; width: 100%; }
.util-pane > .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.util-pane .util { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 18px; }
.util h3 { font-size: 22px !important; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 15px !important; }
.util > p { font-size: 14px !important; line-height: 1.6; margin-bottom: 18px !important; }
.util textarea, .util input, .util select { border-radius: 10px; }
.util .out { background: var(--bg); border-radius: 10px; padding: 16px; }
.btn { border-radius: 10px; }
/* A research trail uses the library's explicit case/model/reference links. */
.r-home-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 54px; align-items: center; padding: 24px 0 44px; }
.r-home-hero h1 { font-size: clamp(54px, 5.6vw, 76px); font-weight: 500; letter-spacing: -.06em; line-height: 1.08 !important; }
.r-home-hero h1 em { font-family: Georgia, 'Times New Roman', serif; font-size: 1.09em; font-style: italic; font-weight: 400; letter-spacing: -.045em; color: var(--accent); }
.r-home-lede { max-width: 42ch; font-size: 18px; line-height: 1.65; }
.r-trace-frame { position: relative; min-width: 0; padding: 22px; border: 1px solid var(--border-2); border-radius: 24px; background: var(--r-warm); box-shadow: 0 14px 32px rgb(25 46 42 / .05); }
.r-trace-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.r-trace-heading strong { font-size: 18px; font-weight: 500; letter-spacing: -.03em; }
.r-trace-heading span { color: var(--fg-mute); font: 10px var(--mono); }
.r-trace-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.r-trace-tabs button { border: 1px solid var(--border-2); border-radius: 20px; background: transparent; color: var(--fg-dim); padding: 8px 12px; font: 11px/1.4 var(--sans); cursor: pointer; }
.r-trace-tabs button[aria-selected="true"] { background: var(--r-ink); border-color: var(--r-ink); color: #fff; }
.r-trace-panel > a { display: block; text-decoration: none; color: var(--fg); }
.r-trace-paper { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 12px; }
.r-trace-paper img { width: 100%; height: 224px; object-fit: contain; display: block; }
.r-trace-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0 12px; font-size: 12px; font-weight: 500; }
.r-trace-caption span:last-child { color: var(--accent); }
.r-trace-links { border-top: 1px solid var(--border-2); }
.r-trace-links a { display: grid; grid-template-columns: 38px 1fr 14px; gap: 10px; padding: 10px 0; color: var(--fg); font-size: 11px; text-decoration: none; line-height: 1.4; }
.r-trace-links a:hover { color: var(--accent); }
.r-trace-links small { color: var(--r-green); font: 9px/1.8 var(--mono); text-transform: uppercase; }
.r-trace-links span:not([aria-hidden]) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.r-trace-links span[aria-hidden] { color: var(--accent); }
.r-feature { border-radius: 18px; }
.r-feature-source { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 32px; background: var(--r-green-soft); border-left: 1px solid var(--border); }
.r-feature-source .r-eyebrow { margin: 0; }
.r-feature-source > strong { font: 400 29px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -.03em; }
.r-feature-source > p { font-size: 14px; line-height: 1.6; margin: 0; }
.r-feature-source > a { align-self: start; }
.r-topic { border-radius: 14px; }
.r-topic-symbol { font: 11px/1.4 var(--mono); width: auto; height: auto; place-items: start; background: none; color: var(--r-green); margin-bottom: 18px; }
.r-section-head h2 { font-weight: 500; }
.r-atlas-banner { border-radius: 20px; }
@media (max-width: 1100px) and (min-width: 701px) { .r-home-hero { grid-template-columns: 1fr 1fr; gap: 26px; } .r-home-hero h1 { font-size: 55px; } }
@media (max-width: 700px) { .r-trace-frame { margin-top: 30px; padding: 18px; border-radius: 20px; } .r-trace-paper img { height: 180px; } .r-feature-source { border: 0; border-top: 1px solid var(--border); padding: 23px; } }
@media (min-width: 960px) {
  .top-row { height: 74px; max-width: 1370px; margin-inline: auto; padding: 0 24px; }
  header.top:has(.groups) .nav { top: 75px; width: 216px; background: var(--bg); padding: 20px 14px; }
  header.top .tab { min-height: 38px; padding: 9px 12px; border-left: 0; border-radius: 10px; font-size: 13px; }
  header.top .tab.active { background: var(--r-green-soft); color: var(--r-green); border-left: 0; }
  main, footer, body[data-section="hunt"] main, body[data-section="news"] main { margin-left: 216px; }
  body[data-reader-shell="true"] main { margin-inline: auto; }
  body[data-reader-shell="true"] footer { margin-inline: auto; padding-inline: 0; }
  body[data-reader-shell="true"] header.top:has(.groups) .nav { display: none; }
}
@media (max-width: 1100px) {
  .help-btn { display: none; }
  .top-row { gap: 8px 10px; }
  .group-btn { padding-inline: 7px; }
  .r-home-hero { gap: 30px; grid-template-columns: minmax(0, 1fr) 240px; }
  .r-stats a { gap: 8px; padding-inline: 15px; }
  .r-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .r-feature-copy { padding: 26px; }
  .r-feature-bottom { flex-wrap: wrap; }
  .r-list-view { grid-template-columns: 1fr; }
  .r-list-view .r-card-content { grid-template-columns: minmax(200px, 1fr) minmax(250px, 1fr); }
  .r-list-view .r-card-foot { grid-column: 1/-1; justify-content: flex-end; gap: 24px; }
  .util-pane > .grid { grid-template-columns: 1fr; }
}
@media (max-width: 959px) {
  .top-row { padding: 12px 22px; }
  .groups { display: none; }
  .search-wrap { max-width: none; }
  .menu-btn { display: inline-flex; }
  body[data-reader-shell="true"] .nav-toggle:checked ~ .nav { display: flex; position: fixed; top: 75px; left: 0; right: 0; bottom: 0; padding: 26px; overflow: auto; flex-direction: column; background: var(--bg); z-index: 50; }
  body[data-reader-shell="true"] .nav-group { display: flex; flex-direction: column; align-items: stretch; border: 0; }
  body[data-reader-shell="true"] .nav .tab { display: block; padding: 12px; min-height: 46px; font-size: 18px; }
  body[data-reader-shell="true"] footer { margin-inline: 24px; }
  .r-reading-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
  .r-article-head { margin-left: 198px; }
  .r-atlas-banner { gap: 30px; padding: 28px; }
  .r-atlas-stats { padding-left: 24px; }
}
@media (max-width: 700px) {
  .top-row { min-height: 65px; padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
  .brand-lockup { font-size: 23px; }
  .brand { margin-right: auto; }
  .top-row > .mcp-jump { display: none; }
  .theme-btn { min-width: 45px; }
  .search-wrap { order: 8; flex-basis: 100%; margin: 2px 0 0; }
  .search-wrap input { font-size: 16px; }
  body[data-reader-shell="true"] .nav-toggle:checked ~ .nav { top: 114px; }
  body[data-reader-shell="true"] main { padding: 28px 18px 50px; }
  body[data-reader-shell="true"] footer { margin-inline: 18px; }
  .foot { display: block; }
  .foot > p { margin-bottom: 10px; font-size: 13px; }
  .foot-links { gap: 8px 16px; margin-top: 18px; }
  .r-home-hero { display: block; padding: 15px 0 32px; }
  .r-home-hero .r-eyebrow { font-size: 10px; }
  .r-home-hero h1 { font-size: clamp(42px, 10.5vw, 64px); margin-bottom: 20px; }
  .r-home-lede { font-size: 17px; margin-bottom: 22px; }
  .r-home-note { display: none; }
  .r-actions { gap: 8px; }
  .r-button { padding: 11px 14px; gap: 14px; font-size: 12px; }
  .r-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 0; padding: 22px 0; }
  .r-stats a { display: block; border: 0; padding: 0; }
  .r-stats strong { display: block; font-size: 30px; }
  .r-stats span { font-size: 12px; }
  .r-section { margin-top: 36px; }
  .r-section-head { gap: 14px; margin-bottom: 18px; align-items: start; }
  .r-section-head h2 { font-size: 25px; }
  .r-section-head .r-link { font-size: 12px; padding-top: 24px; white-space: nowrap; }
  .r-feature { display: block; }
  .r-feature-copy { padding: 23px; }
  .r-feature h2 { font-size: 29px; }
  .r-feature-visual img { height: 230px; }
  .r-feature-visual { padding: 20px; }
  .r-feature-bottom { gap: 20px; }
  .r-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .r-topic { padding: 16px; }
  .r-topic strong { font-size: 17px; }
  .r-topic > span:not(.r-topic-symbol) { font-size: 10px; }
  .r-topic small { font-size: 9px; letter-spacing: 0; }
  .r-card-grid { grid-template-columns: 1fr; gap: 12px; }
  .r-card-content { padding: 22px; }
  .r-atlas-banner { display: block; padding: 24px; }
  .r-atlas-banner h2 { font-size: 32px; }
  .r-atlas-stats { border: 0; border-top: 1px solid var(--border-2); padding: 20px 0 0; margin-top: 26px; }
  .r-utility-links { grid-template-columns: 1fr; gap: 0; }
  .r-utility-links span { margin-bottom: 10px; }
  .r-crumb { font-size: 11px; margin-bottom: 25px; gap: 8px; }
  .r-page-head h1 { font-size: 42px; }
  .r-page-head > p:last-child { font-size: 16px; }
  .r-browser-controls { padding: 15px; gap: 12px; }
  .r-browser-controls label { flex: 1 1 calc(50% - 12px); }
  .r-browser-controls .r-search-label { flex-basis: 100%; }
  .r-browser-controls input, .r-browser-controls select { font-size: 16px; }
  .r-browser-status { align-items: start; }
  .r-browser-status p { max-width: 180px; font-size: 11px; }
  .r-browser-status p span { display: block; }
  .r-pagination { gap: 14px; }
  .r-pagination button { font-size: 12px; padding-inline: 12px; }
  .r-list-view .r-card-content { display: flex; padding: 20px; gap: 12px; }
  .r-list-view .r-card-meta { width: 100%; }
  .r-list-view .r-card-foot { justify-content: space-between; width: 100%; padding-top: 12px; border-top: 1px solid var(--border); }
  .r-atlas-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 20px; }
  .r-atlas-overview strong { font-size: 32px; }
  .r-atlas-overview span { font-size: 11px; }
  .r-article-head { margin-left: 0; margin-bottom: 30px; }
  .r-article-head h1 { font-size: 37px; }
  .r-article-deck { font-size: 17px; }
  .r-reading-layout { display: block; }
  .r-toc { position: static; margin-bottom: 30px; padding: 18px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
  .r-toc nav { flex-direction: row; flex-wrap: wrap; gap: 5px 18px; padding: 0; border: 0; }
  .r-toc nav a { min-height: 32px; font-size: 12px; }
  .r-reading-tools { flex-direction: row; margin-top: 16px; }
  .r-article-body { font-size: 17px; line-height: 1.75; }
  .r-article-section h2 { font-size: 25px; }
  .r-article-section { scroll-margin-top: 145px; }
  .r-timeline > div { grid-template-columns: 92px 1fr; gap: 12px; }
  .r-related-grid { grid-template-columns: 1fr; }
  .r-data-grid { grid-template-columns: 1fr; gap: 14px; }
  .r-data-card { padding: 22px; }
  .r-download-list a { flex-direction: column; gap: 8px; padding: 16px; }
  .r-download-list span { text-align: left; }
  .r-scope-table { min-width: 480px; }
  .r-snapshot { margin-top: 35px; }
  .util-layout { display: block; }
  .util-layout .util-nav { display: flex; position: static; flex-direction: row; overflow-x: auto; margin-bottom: 18px; gap: 6px; }
  .util-layout .util-nav .rail-item { width: auto; white-space: nowrap; }
  .util-pane .util { padding: 20px; }
  .util-pane > .grid { display: block; }
  .r-diagram-full { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .r-button, .r-topic { transition: none; }
  .r-button:hover, .r-topic:hover { transform: none; }
}
