/* RiskHedge research microsite (house style of the GeoAFT pages). Scoped to .rh; shared site chrome is untouched. */
.rh {
    --rh-ink: #11182c;
    --rh-body: #374151;
    --rh-muted: #6b7280;
    --rh-rule: #dfe3e8;
    --rh-soft: #f7f8f7;
    --rh-navy: #183b63;
    --rh-teal: #00929a;
    --rh-teal-ink: #006f76;
    --rh-teal-tint: #e2f3f3;
    --rh-ochre: #c05f0c;
    --rh-ochre-ink: #93480a;
    --rh-ochre-tint: #fbeee2;
    --rh-header: 96px;
    color: var(--rh-body);
    overflow-wrap: break-word;
}
.research-content .rh { overflow-wrap: break-word; }
.rh :where(h1, h2, h3) { color: var(--rh-ink); }
.rh a:focus-visible, .rh button:focus-visible, .rh input:focus-visible, .rh [tabindex]:focus-visible {
    outline: 2px solid var(--rh-teal); outline-offset: 3px; border-radius: 3px;
}
.rh math { font-family: 'STIX Two Math', 'Cambria Math', 'Latin Modern Math', math, serif; font-size: 1.06em; }
.rh math[display="block"] { font-size: 1.12em; margin: 0; overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: .2rem 0; }
.rh strong { font-weight: 600; color: var(--rh-ink); }
.rh-back { margin-bottom: 2.25rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.rh-hero { display: grid; gap: 2.5rem; align-items: center; padding-bottom: 2rem; border-bottom: 1px solid var(--rh-rule); }
@media (min-width: 1024px) { .rh-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem; } }
.rh-eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rh-teal-ink); margin: 0 0 1rem; font-weight: 400; }
.rh-title.hero-title { text-align: left; text-shadow: none; padding: 0; max-width: none; font-size: clamp(3.25rem, 7vw, 5.25rem); line-height: 1; margin: 0 0 1.25rem; color: var(--rh-ink); letter-spacing: -.01em; }
.rh-deck { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35; color: var(--rh-ink); margin: 0 0 1.5rem; max-width: 34rem; font-weight: 300; }
.rh-lead { font-size: 1.15rem; line-height: 1.7; margin: 0 0 1rem; max-width: 36rem; }
.rh-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.rh-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border: 1px solid #c4cad3; border-radius: 6px; color: var(--rh-navy); font-size: .98rem; line-height: 1.3; background: #fff; transition: border-color .2s, background-color .2s; }
.rh-btn:hover { border-color: var(--rh-navy); background: #f4f6f9; }
.rh-btn-primary { background: var(--rh-navy); border-color: var(--rh-navy); color: #fff; }
.rh-btn-primary:hover { background: #10294a; border-color: #10294a; color: #fff; }
.rh-btn-text { border-color: transparent; padding-left: .4rem; padding-right: .4rem; }
.rh-btn-text:hover { background: transparent; border-color: transparent; text-decoration: underline; }
.rh-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; font-size: .9rem; color: var(--rh-muted); }
.rh-hero-meta .badge { margin: 0; }
.rh-hero-meta .project-team { margin: 0; }
.rh-hero-paper { margin: 0; }
.rh-hero-figure { margin: 0; }
.rh-hero-figure svg { width: 100%; height: auto; display: block; }
.rh-hero-figure figcaption { font-size: .9rem; line-height: 1.6; color: var(--rh-muted); margin-top: .75rem; }
.rh-legend-dash, .rh-legend-solid { display: inline-block; width: 1.4rem; height: 0; vertical-align: middle; margin-right: .35rem; border-top: 3px dashed #94a3b8; }
.rh-legend-solid { border-top: 3px solid var(--rh-teal); margin-left: .25rem; }
.rh-illustrative { font-style: italic; color: var(--rh-muted); }

/* ---------- Sections ---------- */
.rh .rh-section { padding: 4.5rem 0 1.5rem; scroll-margin-top: calc(var(--rh-header) + 4rem); }
@media (min-width: 768px) { .rh .rh-section { padding-top: 6rem; } }
.rh-kicker { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rh-teal-ink); margin: 0 0 .75rem; }
.rh-section > h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; margin: 0 0 1.5rem; max-width: 46rem; }
.rh-prose { max-width: 44rem; }
.rh-prose p { margin: 0 0 1.1rem; line-height: 1.75; }
.rh-prose-lg p { font-size: 1.2rem; line-height: 1.75; }
.rh-note { font-size: .98rem; color: var(--rh-muted); max-width: 46rem; margin-top: 1.25rem; }
.rh-aside { color: var(--rh-body); padding-left: 1.1rem; border-left: 2px solid var(--rh-rule); }
.rh-pull { max-width: 46rem; font-size: 1.2rem; line-height: 1.6; color: var(--rh-ink); margin: 2.5rem 0 0; padding-left: 1.25rem; border-left: 3px solid var(--rh-navy); }

/* ---------- Figures ---------- */
.rh-figure { margin: 2.5rem 0; }
.rh-figure svg.rh-svg { width: 100%; height: auto; display: block; }
.rh-figure figcaption { max-width: 48rem; font-size: .95rem; line-height: 1.65; color: #4b5563; margin-top: 1rem; }
.rh-figure figcaption strong { color: var(--rh-ink); }
.rh-figure-title { font-size: 1.05rem; color: var(--rh-ink); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.rh-tag { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border: 1px solid #c4cad3; border-radius: 999px; color: var(--rh-muted); }
.rh-fig-narrow { display: none; }
@media (max-width: 700px) {
    .rh-fig-wide { display: none; }
    .rh-fig-narrow { display: block; max-width: 420px; }
}

.rh-equation { margin: 1.5rem 0; padding: 1.1rem 1.25rem; background: var(--rh-soft); border-radius: 6px; overflow-x: auto; }
.rh-equation-sm { padding: .75rem .9rem; margin: .9rem 0; }
.rh-equation-sm math { font-size: .98em; }

/* ---------- Evidence ---------- */
.rh-scope { max-width: 52rem; margin: 1.5rem 0 1rem; padding: 1rem 1.25rem; background: var(--rh-soft); border-radius: 6px; font-size: .97rem; line-height: 1.65; }
.rh-scope p { margin: 0; }

/* ---------- Regimes ---------- */
.rh-regimes { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 960px) { .rh-regimes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; } }
.rh-regime { border-top: 1px solid #b9c0ca; padding-top: 1.25rem; position: relative; min-width: 0; }
.rh-regime-glyph { max-width: 260px; margin-bottom: 1rem; }
.rh-regime-glyph svg { width: 100%; height: auto; display: block; }
.rh-regime-n { position: absolute; top: -1.05rem; left: 0; background: #fff; padding-right: .6rem; font-size: 1.3rem; color: var(--rh-navy); margin: 0; }
.rh-regime :is(h3, h4) { font-size: 1.35rem; margin: 0 0 .5rem; }
.rh-regime p { line-height: 1.65; font-size: 1rem; margin: 0 0 .75rem; }
.rh-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem !important; letter-spacing: .02em; padding: .2rem .65rem; border-radius: 999px; margin-bottom: 1rem !important; }
.rh-status-established { background: var(--rh-navy); color: #fff; }
.rh-status-supported { background: var(--rh-teal-tint); color: var(--rh-teal-ink); border: 1px solid #9fd3d5; }
.rh-status-open { border: 1px dashed #9aa3af; color: var(--rh-muted); }

.rh-video { margin: 0; }
.rh-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0d1424; border-radius: 8px; display: block; }
.rh-video figcaption { font-size: .92rem; color: var(--rh-muted); margin-top: .75rem; line-height: 1.6; }

/* ---------- Geometry explorer (enhanced by riskhedge.js) ---------- */
.rh-js-only { display: none; }
.is-live .rh-js-only { display: inline; }
.is-live .rh-nojs-only { display: none; }
.rh-explorer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 0 0 1rem; font-size: .95rem; }
.rh-explorer-controls label { display: flex; align-items: center; gap: .6rem; color: var(--rh-body); }
.rh-explorer-controls input[type="range"] { width: 9rem; accent-color: var(--rh-teal); }
.rh-explorer-controls output { min-width: 3.2rem; color: var(--rh-ink); font-variant-numeric: tabular-nums; }
.rh-explorer-controls button { border: 1px solid #c4cad3; border-radius: 6px; padding: .35rem .8rem; background: #fff; color: var(--rh-navy); font-size: .9rem; }
.rh-explorer-controls button:hover { border-color: var(--rh-navy); }
.rh-explorer-live svg { width: 100%; height: auto; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.rh-explorer-live .rh-q-handle { cursor: grab; }
.rh-explorer-live.is-dragging .rh-q-handle { cursor: grabbing; }
.rh-explorer-tabs { display: none; gap: .4rem; flex-wrap: wrap; width: 100%; }
.rh-explorer.is-single .rh-explorer-tabs { display: flex; }
.rh-explorer-controls [data-play][aria-pressed="true"], .rh-explorer-tabs button[aria-pressed="true"] { background: var(--rh-navy); color: #fff; border-color: var(--rh-navy); }
.rh-explorer-readout { font-size: .9rem; color: var(--rh-muted); margin: .5rem 0 0; min-height: 1.5em; }

/* ---------- Technical details page ---------- */
.rh-details-head { display: grid; gap: .5rem 3rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rh-rule); background: #fff; }
@media (min-width: 900px) { .rh-details-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; } }
.rh-details-head .rh-lead { margin-bottom: .5rem; max-width: none; }
.rh-details-title { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.18; margin: 0; }
.rh-details-layout { display: grid; gap: 2rem; padding-top: 2rem; }
@media (min-width: 1024px) { .rh-details-layout { grid-template-columns: 13rem minmax(0, 1fr); gap: 2.75rem; } }
.rh-details-toc { font-size: .92rem; }
@media (min-width: 1024px) { .rh-details-toc { position: sticky; top: calc(var(--rh-header) + 1.5rem); align-self: start; max-height: calc(100vh - var(--rh-header) - 3rem); overflow-y: auto; } }
.rh-toc-label { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--rh-muted); margin: 0 0 .5rem; }
.rh-details-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.rh-details-toc li { counter-increment: toc; margin: 0; }
.rh-details-toc a { display: block; padding: .3rem 0 .3rem .75rem; border-left: 2px solid var(--rh-rule); color: var(--rh-muted); line-height: 1.4; }
.rh-details-toc a::before { content: counter(toc) "  "; color: #9aa3af; }
.rh-details-toc .rh-toc-part { counter-increment: none; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--rh-muted); margin: .9rem 0 .3rem; break-after: avoid; }
.rh-details-toc .rh-toc-part:first-child { margin-top: 0; }
.rh-details-toc a:hover, .rh-details-toc a[aria-current="true"] { color: var(--rh-navy); border-left-color: var(--rh-teal); }
@media (max-width: 1023px) { .rh-details-toc ol { columns: 2; column-gap: 1.5rem; } }
@media (max-width: 520px) { .rh-details-toc ol { columns: 1; } }
.rh-details-body { min-width: 0; }
.rh-details-body > section > :is(p, ul, ol:not(.rh-next-list), .rh-note, .rh-scope, .rh-pull) { max-width: 60rem; }
.rh-details-body > section { padding: 0 0 2rem; scroll-margin-top: calc(var(--rh-header) + 1.5rem); }
.rh-details-body h2 { font-size: 1.65rem; line-height: 1.3; margin: 0 0 1rem; display: flex; gap: .75rem; align-items: baseline; }
.rh-details-body h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.rh-sec-n { color: var(--rh-teal-ink); font-size: 1rem; min-width: 1.5rem; }
.rh-details-body p, .rh-details-body li { line-height: 1.75; }
.rh-details-body p { margin: 0 0 1rem; }
.rh-details-body ul { padding-left: 1.25rem; list-style: disc; margin: 0 0 1rem; }
.rh-details-body li { margin-bottom: .5rem; }
.rh-table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--rh-rule); border-radius: 8px; }
.rh-table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.55; min-width: 36rem; }
.rh-table th, .rh-table td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--rh-rule); }
.rh-table thead th { background: var(--rh-soft); color: var(--rh-ink); font-weight: 400; font-size: .85rem; letter-spacing: .02em; }
.rh-table tbody th { color: var(--rh-ink); font-weight: 400; }
.rh-table tr:last-child td, .rh-table tr:last-child th { border-bottom: 0; }
.rh-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) { .rh-table .num { white-space: normal; } }
.rh-details .project-team { margin: 1rem 0 0; }
.rh-details #sources .person-section { padding: 0 0 1rem; }
.rh-details #sources .person-section h2 { font-size: 1.15rem !important; font-weight: 400 !important; }

@media (prefers-reduced-motion: reduce) {
    .rh * { transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
    html:has(.rh) { scroll-behavior: smooth; }
}
@media print {
    .rh-details-toc, .rh-explorer-controls, .rh-video { display: none !important; }
}

/* Figure text classes (also embedded in each SVG for standalone use). */
.rh .gf-t { font-family: 'QRS Frutiger', 'Frutiger', 'Segoe UI', Inter, system-ui, sans-serif; fill: #374151; font-weight: 300; }
.rh .gf-h { fill: #11182c; font-weight: 400; }
.rh .gf-m { fill: #6b7280; }
.rh .gf-strong { font-weight: 600; }
.rh .gf-x { font-family: 'STIX Two Math', 'Cambria Math', 'Latin Modern Math', 'Times New Roman', serif; font-style: italic; fill: #11182c; }
.rh .gf-xr { font-family: 'STIX Two Math', 'Cambria Math', 'Latin Modern Math', 'Times New Roman', serif; fill: #11182c; }
@media (max-width: 520px) { .rh math[display="block"] { font-size: 1em; } .rh-equation { padding: .9rem .8rem; } }
@media (max-width: 1023px) { .rh-hero-figure { max-width: 34rem; } }

/* ---------- Overview: one-page summary ---------- */
.rh-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rh-card { padding: 1.25rem 1.4rem 1.1rem; border-top: 3px solid; background: var(--rh-soft); border-radius: 0 0 8px 8px; min-width: 0; }
.rh-card-rep { border-color: var(--rh-ochre); }
.rh-card-rel { border-color: var(--rh-teal); }
.rh-card h3 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .6rem; }
.rh-card p { margin: 0 0 .5rem; line-height: 1.65; }
.rh-card .rh-equation { background: #fff; }
.rh-kicker .rh-tag { margin-left: .5rem; letter-spacing: .08em; }

.rh-stat-note { font-size: .93rem; color: var(--rh-muted); margin: .6rem 0 0; line-height: 1.55; }
.rh-meter { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) 4.6rem; gap: .75rem; align-items: center; margin: .45rem 0; font-size: .95rem; }
.rh-meter-track { display: block; height: 14px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.rh-bar { display: block; height: 100%; width: var(--w); min-width: 3px; border-radius: 4px; }
.rh-bar-teal { background: var(--rh-teal); }
.rh-bar-neutral { background: #8b95a3; }
.rh-meter-value { color: var(--rh-ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Bars that grow in when scrolled into view ---------- */
@media (prefers-reduced-motion: no-preference) {
    .rh-anim [data-reveal] :is(.gf-bar, .rh-bar) { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1) .1s; }
    .rh-anim [data-reveal] .gf-dot { opacity: 0; transition: opacity .5s ease .5s; }
    .rh-anim [data-reveal].is-in :is(.gf-bar, .rh-bar) { transform: none; }
    .rh-anim [data-reveal].is-in .gf-dot { opacity: 1; }
    .rh-anim [data-reveal="rise"] > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 130ms); }
    .rh-anim [data-reveal="rise"].is-in > * { opacity: 1; transform: none; }
    .rh-anim [data-flow] svg > * { opacity: 0; transition: opacity .45s ease; transition-delay: calc(var(--i, 0) * 70ms); }
    .rh-anim [data-flow].is-in svg > * { opacity: 1; }
    .rh .gf-flow { stroke-dasharray: 6 5; animation: rh-flow .7s linear infinite; }
    @keyframes rh-flow { to { stroke-dashoffset: -22; } }
}
@media print {
    .rh-anim [data-reveal] :is(.gf-bar, .rh-bar) { transform: none !important; }
    .rh-anim [data-reveal] .gf-dot, .rh-anim [data-reveal="rise"] > * { opacity: 1 !important; }
    .rh-anim [data-reveal="rise"] > * { transform: none !important; }
    .rh-anim [data-flow] svg > * { opacity: 1 !important; }
    .rh-progress { display: none; }
}

.rh-details-body .rh-figure { margin: 2rem 0; }
.rh-details-body .rh-pull { margin-top: 2rem; }

/* ---------- Overview: three cards under the hero ---------- */
.rh-glance { padding: 1.75rem 0 1rem; }
.rh-glance-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .rh-glance-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.rh-card .rh-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.rh-card .rh-kicker .rh-tag { margin-left: 0; }
.rh-kicker .rh-status, h2 .rh-status { margin: 0 !important; text-transform: none; letter-spacing: .02em; font-family: 'QRS Frutiger', 'Frutiger', 'Segoe UI', Inter, system-ui, sans-serif; font-weight: 300; }
.rh-card .rh-meter { grid-template-columns: 5.6rem minmax(0, 1fr) 4.4rem; gap: .6rem; }
.rh-foot .person-section { padding: 0; }
.rh-foot .person-section h2 { font-size: .8rem !important; font-family: inherit; font-weight: 400 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--rh-teal-ink); margin-bottom: .4rem !important; }
.rh-foot .publication-title { font-size: 1rem; line-height: 1.4; }
.rh-foot .publication-authors, .rh-foot .person-list-meta { font-size: .88rem; }
.rh-fullname { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: .01em; color: var(--rh-teal-ink); margin: -.6rem 0 1.1rem; }
.rh-fullname b { font-weight: 600; color: var(--rh-ink); }
.rh-card > h3 { font-size: 1.3rem; margin: 0 0 .75rem; }
.rh-exp-split { display: grid; gap: 1.1rem 1.5rem; }
@media (min-width: 620px) { .rh-exp-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .rh-exp-split > div + div { border-left: 1px solid var(--rh-rule); padding-left: 1.5rem; } }
.rh-exp-split h4 { font-size: 1rem; margin: 0 0 .6rem; color: var(--rh-ink); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.rh-exp-split h4 .rh-status { margin: 0 !important; font-weight: 300; }
.rh-foot { display: grid; gap: 1.5rem 3rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--rh-rule); }
@media (min-width: 900px) { .rh-foot { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* ---------- Details: reading progress ---------- */
.rh-progress { position: fixed; left: 0; right: 0; top: var(--rh-header); height: 3px; z-index: 30; pointer-events: none; }
.rh-progress span { display: block; height: 100%; background: var(--rh-teal); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Details: idea first, evidence second, technical material last ---------- */
.rh-part { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rh-teal-ink); border-top: 1px solid var(--rh-rule); padding-top: 1.25rem; margin: .5rem 0 1.25rem !important; }
.rh-details-body > .rh-part:first-child { border-top: 0; padding-top: 0; margin-top: 0 !important; }
.rh-details-body h2 { flex-wrap: wrap; }
.rh-details-body h2 :is(.rh-tag, .rh-status) { align-self: center; font-size: .78rem !important; }
.rh-split { display: grid; gap: 1.25rem 1.75rem; margin-bottom: 1rem; }
@media (min-width: 860px) { .rh-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; } }
.rh-details-body .rh-figure-sm { max-width: 40rem; }
.rh-details-body .rh-figure figcaption { font-size: .9rem; margin-top: .6rem; }
.rh-details-body ul.rh-points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .rh-details-body ul.rh-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.rh-points li { padding-top: .75rem; border-top: 2px solid var(--rh-teal); line-height: 1.6; font-size: .95rem; margin: 0; }
.rh-points strong { display: block; margin-bottom: .25rem; }
.rh-exp-grid { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 760px) { .rh-exp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rh-exp { border: 1px solid var(--rh-rule); border-top: 3px solid var(--rh-teal); border-radius: 0 0 8px 8px; padding: 1rem 1.1rem .6rem; min-width: 0; }
.rh-details-body .rh-exp h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.rh-details-body .rh-exp p { font-size: .93rem; line-height: 1.55; margin: 0 0 .5rem; }
.rh-details-body .rh-exp .rh-exp-target { color: var(--rh-muted); font-size: .88rem; }
.rh-meter-wide { grid-template-columns: minmax(0, 1fr) auto; margin: .6rem 0 .75rem; }
.rh-details-body .rh-regimes { margin-top: 1.25rem; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .rh-details-body .rh-regimes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rh-details-body .rh-regime { margin: 0; }
.rh-details-body .rh-regime-glyph { max-width: 200px; }
.rh-details-body .rh-regime h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.rh-details-body .rh-regime p { font-size: .93rem; }

/* ---------- Stretching-geometry figure (overview hero, built by riskhedge.js) ---------- */
.rh-live { max-width: 27rem; width: 100%; justify-self: center; }
.rh-live-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; min-height: 2.4rem; }
.rh-live-rule { color: var(--rh-ink); font-size: .98rem; line-height: 1.3; }
.rh-live-head button { border: 1px solid #c4cad3; border-radius: 6px; padding: .35rem .8rem; background: #fff; color: var(--rh-navy); font-size: .9rem; white-space: nowrap; }
.rh-live-head button:hover { border-color: var(--rh-navy); }
.rh-live-field { position: relative; aspect-ratio: 540 / 420; border: 1px solid var(--rh-rule); border-radius: 8px; overflow: hidden; }
.rh-live-field canvas, .rh-live-field svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rh-live-rank { list-style: none; margin: .8rem 0 0; padding: 0; position: relative; }
.rh-live-rank li { position: absolute; left: 0; right: 0; top: 0; height: 19px; display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) 2.8rem; gap: .6rem; align-items: center; font-size: .9rem; transition: transform .45s ease; }
.rh-live-rank .rh-meter-track { height: 11px; }
.rh-live-rank .rh-bar { min-width: 2px; opacity: .45; }
.rh-live-rank .is-top .rh-bar { opacity: 1; }
.rh-live-rank .is-top > span:first-child { color: var(--rh-ink); font-weight: 600; }
.rh-live .rh-illustrative { display: block; margin-top: .25rem; }
@media (prefers-reduced-motion: reduce) { .rh-live-rank li { transition: none; } }

/* ---------- Page heads fade under the content as the page scrolls ---------- */
.rh-overview .rh-hero, .rh-details-head { transform-origin: 50% 30%; will-change: opacity, transform; }
.rh-overview .rh-glance, .rh-details-layout { position: relative; z-index: 1; background: #fff; }
@media (min-width: 1024px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
    .rh-overview .rh-hero, .rh-details-head { position: sticky; top: calc(var(--rh-header) + 1rem); z-index: 0; }
    /* Set by heroFade() when the head is taller than the window, so none of it is covered. */
    .rh-overview .rh-hero.rh-unpinned, .rh-details-head.rh-unpinned { position: relative; top: auto; }
}

/* ---------- Things pinned under the site navigation bar follow it when it slides away ---------- */
.rh-details-toc, .rh-progress { transition: top .3s ease; }
@media (prefers-reduced-motion: reduce) { .rh-details-toc, .rh-progress { transition: none; } }

/* ---------- Status lists and future directions ---------- */
.rh ul.rh-checks { list-style: none; padding: 0; margin: .75rem 0 0; }
.rh ul.rh-checks li { position: relative; padding-left: 1.5rem; margin: .4rem 0; line-height: 1.5; font-size: .95rem; }
.rh-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--rh-teal-ink); font-weight: 600; }
.rh-checks-open li::before { content: "○"; color: var(--rh-muted); }
.rh-board { display: grid; gap: 1.25rem; margin: 0 0 2rem; }
@media (min-width: 760px) { .rh-board { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.rh-board > div { border: 1px solid var(--rh-rule); border-radius: 8px; padding: 1rem 1.2rem; background: var(--rh-soft); }
.rh-details-body .rh-board h3 { margin: 0; font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.rh-board h3 .rh-status { margin: 0 !important; font-weight: 300; }
.rh-next { margin-top: 2.25rem; }
.rh-next > h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }
.rh ol.rh-next-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; counter-reset: next; }
@media (min-width: 760px) { .rh ol.rh-next-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } .rh ol.rh-next-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rh-next-list li { counter-increment: next; border-left: 3px solid var(--rh-navy); padding: .1rem 0 .1rem 1rem; margin: 0; }
.rh .rh-next-list h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.rh-next-list h3::before { content: counter(next) "  "; color: var(--rh-teal-ink); }
.rh .rh-next-list p { margin: 0; line-height: 1.55; font-size: .95rem; }
.rh-next > h2 .rh-tag { vertical-align: middle; margin-left: .5rem; font-family: 'QRS Frutiger', 'Frutiger', 'Segoe UI', Inter, system-ui, sans-serif; }
.rh ol.rh-next-list-1 { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.rh .rh-next-list p + p { margin-top: .5rem; }
.rh p.rh-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .4rem; font-size: .85rem; }
.rh-chips b { min-width: 2.6rem; color: var(--rh-ink); font-weight: 600; }
.rh-chip { border: 1px solid #9fd3d5; background: var(--rh-teal-tint); color: var(--rh-teal-ink); border-radius: 999px; padding: .05rem .6rem; }
.rh-chip-next { border: 1px dashed #9aa3af; background: none; color: var(--rh-muted); }
.rh ol.rh-ladder { list-style: none; padding: 0; margin: .75rem 0 1.25rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .rh ol.rh-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rh-ladder li { border-top: 3px dashed #b9c0ca; padding-top: .6rem; margin: 0; font-size: .92rem; line-height: 1.5; }
.rh-ladder li.is-done { border-top: 3px solid var(--rh-teal); }
.rh-ladder b { display: block; color: var(--rh-ink); font-weight: 600; font-size: 1rem; }
.rh-ladder-state { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rh-muted); margin-bottom: .2rem; }
.rh-ladder .is-done .rh-ladder-state { color: var(--rh-teal-ink); }

/* ---------- Details: per-method scatter (built by build_figures.py, enhanced by riskhedge.js) ---------- */
.rh-scatter .gf-pt { transition: opacity .2s ease; }
.rh-scatter .gf-pt.is-dim { opacity: .12; }
.rh-scatter.is-live .gf-key { cursor: pointer; }
.rh-scatter .gf-key.is-on text { font-weight: 600; text-decoration: underline; }
.rh-scatter .gf-pt:hover :is(circle, path):last-child { stroke: #11182c; stroke-width: 1.6; }
@media (prefers-reduced-motion: no-preference) {
    .rh-anim .rh-scatter[data-reveal] .gf-pt { opacity: 0; }
    .rh-anim .rh-scatter[data-reveal].is-in .gf-pt { opacity: 1; transition: opacity .6s ease .2s; }
    .rh-anim .rh-scatter[data-reveal].is-in .gf-pt.is-dim { opacity: .12; }
    .rh-anim .rh-scatter[data-reveal] .gf-frontier { stroke-dashoffset: 0; opacity: 0; transition: opacity .8s ease .7s; }
    .rh-anim .rh-scatter[data-reveal].is-in .gf-frontier { opacity: 1; }
}
@media print { .rh-anim .rh-scatter[data-reveal] :is(.gf-pt, .gf-frontier) { opacity: 1 !important; } }

/* ---------- RiskHedge: risk-interval figure (overview hero and details explorer, built by riskhedge.js) ---------- */
.rh-live { max-width: 30rem; }
.rh-live-field { position: relative; aspect-ratio: 540 / 360; border: 1px solid var(--rh-rule); border-radius: 8px; overflow: hidden; background: #fbfbfa; }
.rh-live-field svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rh-live-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: .6rem; font-size: .92rem; color: var(--rh-muted); }
.rh-live-status b { color: var(--rh-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rh-pill { display: inline-block; padding: .05rem .6rem; border-radius: 999px; font-size: .82rem; letter-spacing: .02em; }
.rh-pill-cert { background: var(--rh-teal-tint); color: var(--rh-teal-ink); border: 1px solid #9fd3d5; }
.rh-pill-open { border: 1px dashed #9aa3af; color: var(--rh-muted); }
.rh-pill-wrong { background: var(--rh-ochre-tint); color: var(--rh-ochre-ink); border: 1px solid #f0c9a4; }
.rh-pill-fall { background: #eef1f6; color: var(--rh-navy); border: 1px solid #c4cad3; }
.rh-explorer-controls input[type="range"] { width: 12rem; }
.rh-big { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; color: var(--rh-ink); font-weight: 400; font-variant-numeric: tabular-nums; }
.rh-big-row { display: grid; gap: 1rem; margin: .5rem 0 1rem; }
@media (min-width: 620px) { .rh-big-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rh-big-row > div { border-top: 3px solid var(--rh-teal); padding-top: .5rem; }
.rh-big-row > div.is-base { border-top-color: var(--rh-ochre); }
.rh-big-row p { margin: .35rem 0 0 !important; font-size: .9rem; line-height: 1.45; color: var(--rh-muted); }
.rh-bar-ochre { background: var(--rh-ochre); }
.rh-card .rh-meter { grid-template-columns: 8.4rem minmax(0, 1fr) 4.2rem; }
@media (max-width: 420px) { .rh-card .rh-meter { grid-template-columns: 6.6rem minmax(0, 1fr) 3.8rem; } }
.rh-explorer .rh-live-field, .rh-explorer .rh-explorer-static { max-width: 40rem; }

/* ---------- Hero buttons, plain links, copy prompt, authors ---------- */
.rh-actions.rh-ai { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 .9rem; gap: .6rem .75rem; }
.rh-details-head .rh-actions.rh-ai { margin: .25rem 0 .6rem; }
.rh-btn-ai { cursor: pointer; }
.rh-btn-ai.is-copied { border-color: var(--rh-teal); background: var(--rh-teal-tint); color: var(--rh-teal-ink); }
.rh-ai-status { font-size: .88rem; color: var(--rh-teal-ink); min-height: 1.2em; }
.rh-ai-status:empty { display: none; }
.rh-ai-manual { flex-basis: 100%; width: 100%; min-height: 9rem; font-size: .82rem; padding: .5rem; border: 1px solid #c4cad3; border-radius: 6px; }
.rh-links { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 0 0 1.4rem; font-size: .95rem; }
.rh-details-head .rh-links { margin-bottom: .9rem; }
.rh-links a { color: var(--rh-navy); text-decoration: underline; text-decoration-color: #b9c3d3; text-underline-offset: 3px; }
.rh-links a:hover { text-decoration-color: var(--rh-navy); }
.rh-authors { font-size: .9rem; line-height: 1.55; color: var(--rh-muted); margin: 0; }
.rh-fullname { line-height: 1.35; max-width: 36rem; }
.rh-scope-link { margin: 1.25rem 0 0; font-size: .98rem; }

/* ---------- Details: limitations groups and the closing summary ---------- */
.rh-details-body > section > h3 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; color: var(--rh-ink); }
.rh-brief { display: grid; gap: 1.25rem 2.5rem; margin: .5rem 0 1rem; }
@media (min-width: 900px) { .rh-brief { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rh-details-body .rh-brief h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.rh-details-body .rh-brief p { margin: 0; font-size: .97rem; line-height: 1.65; }

/* ---------- Overview footer: papers, project team, QR code ---------- */
.rh-foot-side .project-team { margin: 0 0 .75rem; }
.rh-foot-side .person-section { padding: 0; }
.rh-qr { display: none; margin: 0; text-align: center; font-size: .78rem; color: var(--rh-muted); }
.rh-qr img { display: block; width: 104px; height: 104px; margin: 0 auto .35rem; }
@media (min-width: 900px) { .rh-foot { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; } .rh-qr { display: block; } }
.rh-explorer-controls output { white-space: nowrap; }
@media (max-width: 520px) { .rh-explorer-controls label { flex-wrap: wrap; } .rh-explorer-controls input[type="range"] { width: 7.5rem; } }
.rh-foot-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rh-teal-ink); margin: 0 0 .4rem; }
