/* A/B reading typography promoted from the approved study; no web fonts. */
.rd { --rd-paper: #f7f6f2; --rd-ink: #242b29; --rd-muted: #626a65; --rd-line: #d8dcd5; --rd-accent: #286450; margin: 0; background: var(--rd-paper); color: var(--rd-ink); font: 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
.rd a { color: var(--rd-accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.rd a:hover { text-decoration-thickness: 2px; }
.rd :focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 5px; border-radius: 2px; }
.rd [id] { scroll-margin-top: 24px; }
.rd p, .rd h1, .rd h2, .rd li, .rd a, .rd figcaption { overflow-wrap: anywhere; }
.rd-shell { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }
.rd-bar { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: center; border-bottom: 1px solid var(--rd-line); padding-block: 16px; }
.rd-brand { font: 600 23px/1.4 ui-monospace, monospace; letter-spacing: -1.3px; text-decoration: none; margin-right: auto; }
.rd-brand span { color: var(--rd-muted); font-weight: 400; }
.rd-languages { display: flex; gap: 8px; }
.rd-languages a { min-width: 44px; min-height: 44px; display: inline-flex; justify-content: center; align-items: center; font-size: .875rem; }
.rd [aria-current] { font-weight: 600; color: var(--rd-ink); text-decoration-thickness: 2px; }
.rd-notice { font-size: .8125rem; color: var(--rd-muted); margin-block: 20px 0; max-width: 660px; }
.rd-controls { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 16px 24px; border-bottom: 1px solid var(--rd-line); }
.rd-controls a { display: inline-flex; min-height: 44px; align-items: center; font-size: .875rem; }
.rd-article { max-width: 660px; margin: 32px auto 0; }
.rd-article h1 { font: 400 2.625rem/1.14 Georgia, "Times New Roman", serif; letter-spacing: -.035em; margin: 16px 0 24px; }
.rd-kicker, .rd-meta { font: .75rem/1.7 ui-monospace, monospace; color: var(--rd-muted); margin: 0; }
.rd-kicker { color: var(--rd-accent); }
.rd-lead { font-size: 1.3125rem; line-height: 1.65; margin: 26px 0; }
.rd-toc { display: flex; flex-wrap: wrap; gap: 6px 24px; border-block: 1px solid var(--rd-line); padding-block: 18px; margin: 30px 0 42px; font-size: .875rem; }
.rd-toc p { width: 100%; color: var(--rd-muted); margin: 0 0 5px; font-size: .75rem; }
.rd-toc a { padding-block: 8px; }
.rd-prose { font: 1.1875rem/1.8 Georgia, "Times New Roman", serif; }
.rd-section { margin-block: 0 44px; }
.rd-section h2 { font: 400 1.75rem/1.35 Georgia, "Times New Roman", serif; margin: 0 0 24px; letter-spacing: -.02em; }
.rd-section h2 a { color: var(--rd-ink); text-decoration: none; }
.rd-section h2 a:hover { text-decoration: underline; }
.rd-prose p { margin: 0 0 24px; }
.rd-prose ul { padding-left: 1.25em; margin: 0 0 28px; }
.rd-prose li { padding-left: .3em; margin-bottom: 10px; }
.rd-pair { position: relative; }
.rd-note { overflow-wrap: anywhere; border-left: 1px solid var(--rd-line); padding-left: 18px; color: var(--rd-muted); font: .8125rem/1.7 system-ui, sans-serif; margin: 4px 0 28px; }
.rd-figure { margin: 30px 0 34px; }
.rd-diagram { border: 1px solid var(--rd-line); background: #eef0e9; padding: 32px 20px 22px; }
.rd-stages { display: flex; justify-content: space-between; gap: 12px; font: .875rem/1.5 ui-monospace, monospace; color: var(--rd-accent); }
.rd-stages span { overflow-wrap: anywhere; flex: 1; min-width: 0; text-align: center; }
.rd-diagram svg { display: block; width: 100%; height: auto; color: var(--rd-accent); }
.rd-figure figcaption { font: .8125rem/1.65 system-ui, sans-serif; color: var(--rd-muted); margin-top: 12px; }
.rd-ref { font: .8125rem/1 system-ui, sans-serif; vertical-align: super; display: inline-block; padding: 10px 8px; margin-inline: 2px; }
.rd-footnotes { border-top: 1px solid var(--rd-line); margin-top: 46px; padding-top: 24px; font: .9375rem/1.7 system-ui, sans-serif; }
.rd-footnotes h2, .rd-sources h2 { font: 400 1.375rem/1.4 Georgia, serif; margin: 0 0 16px; }
.rd-footnotes p { margin: 0 0 12px; }
.rd-return { display: inline-flex; align-items: center; min-height: 44px; }
.rd-sources { border-top: 1px solid var(--rd-line); margin-top: 26px; padding-top: 26px; font-size: .8125rem; color: var(--rd-muted); }
.rd-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-block: 32px; border-top: 1px solid var(--rd-line); margin-top: 52px; font-size: .8125rem; color: var(--rd-muted); }
.rd-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.rd-skip { position: absolute; top: -200px; left: 20px; background: var(--rd-paper); padding: 12px; z-index: 1; }
.rd-skip:focus { top: 12px; }
.rd-b .rd-prose { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.75; }
.rd-b .rd-article { max-width: 640px; }
.rd-index { max-width: 660px; margin: 60px auto; }
.rd-index h1 { font: 400 2.5rem/1.2 Georgia, serif; }
.rd-index article { border-top: 1px solid var(--rd-line); margin-top: 32px; padding-top: 20px; }
.rd-index h2 { font: 400 1.75rem/1.3 Georgia, serif; }
@media (min-width: 1100px) {
 .rd-b .rd-article { margin-left: 100px; margin-right: 0; }
 .rd-b .rd-note { position: absolute; left: calc(100% + 40px); top: 0; width: 200px; margin-top: 5px; }
}
@media (max-width: 700px) {
 .rd-shell { width: calc(100% - 40px); }
 .rd-bar { padding-block: 16px; gap: 12px; }
 .rd-bar > a:not(.rd-brand) { font-size: .8125rem; }
 .rd-article { margin-top: 32px; }
 .rd-article h1 { font-size: 2.25rem; }
 .rd-lead { font-size: 1.1875rem; }
 .rd-prose { font-size: 1.125rem; }
 .rd-section h2 { font-size: 1.5rem; }
 .rd-stages { font-size: .75rem; gap: 8px; }
 .rd-diagram { padding: 24px 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
 .rd, .rd * { scroll-behavior: auto; animation: none; transition: none; }
}

.rd-code { margin: 28px 0; }
.rd-code pre { background: #eef0e9; border: 1px solid var(--rd-line); padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: .875rem/1.7 ui-monospace, monospace; }
.rd-code figcaption { font: .8125rem/1.65 system-ui, sans-serif; color: var(--rd-muted); }

.rd-a .rd-lead { font-family: Georgia, "Times New Roman", serif; }

/* Generic data blocks use inline asides, so any order and length remains readable. */
.rd-b .rd-note { position:static;width:auto;margin:24px 0; }
.rd-prose > h2, .rd-prose > h3 { scroll-margin-top:24px; }
.rd-prose > h2 { font:400 1.75rem/1.35 Georgia,serif;margin:40px 0 24px; }
.rd-prose > h3 { font:400 1.4rem/1.4 Georgia,serif;margin:30px 0 20px; }
.rd-prose > h2 a, .rd-prose > h3 a { color:inherit;text-decoration:none; }
.rd-figure img { max-width:100%;height:auto; }
.rd-code pre { max-width:100%; }
