.rf { background: #fff; }
.rf-wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.rf-head { padding: calc(var(--im-header-h, 56px) + 56px) 0 36px; border-bottom: 1px solid var(--border); }
.rf-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink3); margin-bottom: 30px; }
.pm .rf-crumbs a { color: var(--ink3) !important; }
.pm .rf-crumbs a:hover { color: var(--btn) !important; }
.rf-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--btn); margin-bottom: 14px; }
.pm.rf h1, .pm.rf h2, .pm.rf h3 { color: var(--ink) !important; }
.pm.rf h1 { font-size: clamp(34px, 4.6vw, 50px) !important; line-height: 1.1 !important; font-weight: 800 !important; max-width: 20ch; margin: 0 0 18px !important; }
.rf-byline { font-size: 15px; color: var(--ink3); margin: 0; }
.pm .rf-byline a { color: var(--ink) !important; font-weight: 600; }
.rf-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; padding-top: 48px; padding-bottom: 72px; }
.rf-toc { position: sticky; top: calc(var(--im-header-h, 56px) + 28px); align-self: start; max-height: calc(100vh - var(--im-header-h, 56px) - 56px); overflow-y: auto; padding-right: 8px; }
.rf-toc-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 12px; list-style: none; pointer-events: none; }
.rf-toc-label::-webkit-details-marker { display: none; }
.rf-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.rf-toc li { font-size: 14px; line-height: 1.4; }
.pm .rf-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink2) !important; }
.pm .rf-toc a:hover { color: var(--btn) !important; border-left-color: var(--btn); text-decoration: none !important; }
.rf-main { min-width: 0; }
.rf-main p, .rf-main li, .rf-main dd { font-size: 17.5px; line-height: 1.75; color: var(--ink2); }
.rf-main p { margin: 0 0 20px; }
.pm .rf-main a { color: var(--btn) !important; text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pm .rf-main a:hover { color: var(--btn-dark) !important; }
.rf-defbox { position: relative; padding: 34px 36px 30px; margin-bottom: 8px; border: 1px solid var(--border); border-top: 3px solid var(--ink); background: #fcfbfd; scroll-margin-top: 90px; }
.rf-placeholder { margin: 6px 0 22px; padding: 20px 22px; border: 2px dashed #c9c3d6; background: #faf9fc; color: var(--ink3); font-size: 16px; line-height: 1.6; }
.rf-placeholder strong { display: block; color: var(--ink); margin-bottom: 4px; }
.rf-levels { margin: 0 0 22px; padding-left: 24px; }
.rf-levels li { margin-bottom: 8px; }
.rf-defbox-label { position: absolute; top: -12px; left: 32px; padding: 2px 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.rf-main .rf-def { font-family: var(--im-serif); font-size: clamp(19px, 1.8vw, 21px); line-height: 1.75; color: var(--ink); }
.rf-def strong { font-weight: 700; }
.rf-main .rf-def-close { font-weight: 600; font-size: 18.5px; line-height: 1.65; color: var(--ink); }
.rf-main .rf-source { font-size: 14.5px; color: var(--ink3); margin: 0; padding-top: 16px; border-top: 1px solid var(--border); }
.rf-s { padding-top: 52px; scroll-margin-top: 80px; }
.pm.rf .rf-s h2 { font-size: clamp(25px, 2.6vw, 31px) !important; line-height: 1.25 !important; font-weight: 700 !important; max-width: none; margin: 0 0 20px !important; }
.rf-quote { margin: 30px 0; padding: 2px 0 2px 24px; border-left: 2px solid var(--ink); font-family: var(--im-serif); font-style: italic; font-size: 18px; line-height: 1.7; color: var(--ink); }
.rf-quote--sm { font-size: 16.5px; margin: 0 0 16px; }
.rf-ref { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; font-style: normal; font-size: 11px; line-height: 0; margin-left: 2px; }
.pm .rf-ref a { text-decoration: none !important; font-weight: 700; }
.rf-table-wrap { overflow-x: auto; margin: 30px 0 8px; }
.rf-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.rf-table caption { caption-side: top; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); padding-bottom: 10px; }
.rf-table th, .rf-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.rf-table thead th { font-size: 13px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
.rf-table tbody th { font-weight: 700; color: var(--ink); width: 22%; }
.rf-table tbody td { color: var(--ink2); }
.rf-table:not(.rf-table--plain) tbody td:last-child, .rf-table:not(.rf-table--plain) thead th:last-child { color: var(--ink); font-weight: 600; background: #f7f5fa; }
.rf-agents, .rf-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 26px 0; }
.rf-agents > div, .rf-terms > div { padding: 18px 0; border-top: 1px solid var(--border); }
.rf-agents dt, .rf-terms dt { font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.rf-main .rf-agents dd, .rf-main .rf-terms dd { margin: 0; font-size: 16px; line-height: 1.65; }
.rf-note { margin: 4px 0 30px; padding: 18px 22px; border: 1px solid var(--border); border-left: 3px solid var(--btn); }
.rf-note-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--btn); margin-bottom: 6px; }
.rf-main .rf-note p { margin: 0; font-size: 16px; line-height: 1.65; }
.rf-note strong { color: var(--ink); }
.rf-fig { margin: 34px 0; }
.rf-fig--narrow { max-width: 600px; }
.rf-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--border); padding: 16px; background: #fff; }
.rf-fig figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink3); }
.rf-fig figcaption strong { color: var(--ink); }
.rf-arch, .rf-steps { margin: 0 0 20px; padding-left: 24px; }
.rf-arch li, .rf-steps li { margin-bottom: 14px; padding-left: 4px; }
.rf-list { margin: 0 0 22px; padding-left: 22px; }
.rf-list li { margin-bottom: 10px; }
.rf-main strong { color: var(--ink); }
.rf-chron { list-style: none; margin: 26px 0 0; padding: 0; }
.rf-chron > li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--border); }
.rf-year { font-weight: 700; font-size: 16px; color: var(--ink); padding-top: 3px; }
.rf-chron p:last-child, .rf-chron .rf-quote:last-child { margin-bottom: 0; }
.rf-further ul { list-style: none; margin: 0; padding: 0; }
.rf-further li { padding: 12px 0; border-top: 1px solid var(--border); margin: 0; font-size: 16.5px; }
.rf-cite-item { position: relative; padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--border); background: #fcfbfd; }
.rf-cite-format { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.rf-main .rf-cite-item p { margin: 0; font-size: 15.5px; line-height: 1.6; padding-right: 72px; overflow-wrap: anywhere; }
.rf-cite-item pre { margin: 0; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 13px; line-height: 1.6; color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 72px; }
.rf-copy { position: absolute; top: 12px; right: 12px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.rf-copy:hover { border-color: var(--btn); color: var(--btn); }
.rf-notes ol { margin: 0; padding-left: 22px; }
.rf-main .rf-notes li { font-size: 14.5px; line-height: 1.6; color: var(--ink3); margin-bottom: 8px; scroll-margin-top: 90px; }
.pm .rf-notes li a { text-decoration: none !important; }
.rf-author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; margin-top: 52px; padding-top: 26px; border-top: 2px solid var(--ink); }
.rf-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.rf-main .rf-author p { font-size: 15px; line-height: 1.6; margin: 0 0 8px; }
.rf-main .rf-author-name { font-weight: 700; font-size: 17px; }
.pm .rf-main .rf-author-name a { color: var(--ink) !important; text-decoration: none !important; }
.rf-main .rf-author-links { font-size: 14px; }
@media (max-width: 1060px) {
    .rf-layout { grid-template-columns: minmax(0, 720px); gap: 0; }
    .rf-toc { position: static; max-height: none; padding: 0 0 18px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
    .rf-toc-label { pointer-events: auto; cursor: pointer; margin-bottom: 0; }
    .rf-toc-label::after { content: ' +'; }
    .rf-toc-box[open] .rf-toc-label::after { content: ' −'; }
    .rf-toc ol { columns: 2; column-gap: 28px; border-left: 0; margin-top: 10px; }
    .pm .rf-toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
    .rf-table--plain { min-width: 0; }
    .rf-table--plain thead { display: none; }
    .rf-table--plain tbody, .rf-table--plain tr, .rf-table--plain tbody th, .rf-table--plain tbody td { display: block; width: auto; }
    .rf-table--plain tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
    .rf-table--plain tbody th, .rf-table--plain tbody td { padding: 0 0 4px; border-bottom: 0; }
    .rf-wrap { padding: 0 20px; }
    .rf-head { padding-top: calc(var(--im-header-h, 56px) + 36px); }
    .rf-toc ol { columns: 1; }
    .rf-defbox { padding: 28px 20px 22px; }
    .rf-defbox-label { left: 18px; }
    .rf-agents, .rf-terms { grid-template-columns: minmax(0, 1fr); }
    .rf-chron > li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .rf-fig img { padding: 6px; }
    .rf-quote { padding-left: 16px; font-size: 16.5px; }
    .rf-main p, .rf-main li { font-size: 17px; }
}
