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

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

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

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

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

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

.sr-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; }
.sr-status-established { background: var(--sr-navy); color: #fff; }
.sr-status-supported { background: var(--sr-teal-tint); color: var(--sr-teal-ink); border: 1px solid #9fd3d5; }
.sr-status-open { border: 1px dashed #9aa3af; color: var(--sr-muted); }

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

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

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

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

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

.sr-stat-note { font-size: .93rem; color: var(--sr-muted); margin: .6rem 0 0; line-height: 1.55; }
.sr-meter { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) 4.6rem; gap: .75rem; align-items: center; margin: .45rem 0; font-size: .95rem; }
.sr-meter-track { display: block; height: 14px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.sr-bar { display: block; height: 100%; width: var(--w); min-width: 3px; border-radius: 4px; }
.sr-bar-teal { background: var(--sr-teal); }
.sr-bar-neutral { background: #8b95a3; }
.sr-meter-value { color: var(--sr-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) {
    .sr-anim [data-reveal] :is(.af-bar, .sr-bar) { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1) .1s; }
    .sr-anim [data-reveal] .af-dot { opacity: 0; transition: opacity .5s ease .5s; }
    .sr-anim [data-reveal].is-in :is(.af-bar, .sr-bar) { transform: none; }
    .sr-anim [data-reveal].is-in .af-dot { opacity: 1; }
    .sr-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); }
    .sr-anim [data-reveal="rise"].is-in > * { opacity: 1; transform: none; }
    .sr-anim [data-flow] svg > * { opacity: 0; transition: opacity .45s ease; transition-delay: calc(var(--i, 0) * 70ms); }
    .sr-anim [data-flow].is-in svg > * { opacity: 1; }
    .sr .af-flow { stroke-dasharray: 6 5; animation: sr-flow .7s linear infinite; }
    @keyframes sr-flow { to { stroke-dashoffset: -22; } }
}
@media print {
    .sr-anim [data-reveal] :is(.af-bar, .sr-bar) { transform: none !important; }
    .sr-anim [data-reveal] .af-dot, .sr-anim [data-reveal="rise"] > * { opacity: 1 !important; }
    .sr-anim [data-reveal="rise"] > * { transform: none !important; }
    .sr-anim [data-flow] svg > * { opacity: 1 !important; }
    .sr-progress { display: none; }
}

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

/* ---------- Overview: three cards under the hero ---------- */
.sr-glance { padding: 1.75rem 0 1rem; }
.sr-glance-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .sr-glance-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.sr-card .sr-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.sr-card .sr-kicker .sr-tag { margin-left: 0; }
.sr-kicker .sr-status, h2 .sr-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; }
.sr-card .sr-meter { grid-template-columns: 5.6rem minmax(0, 1fr) 4.4rem; gap: .6rem; }
.sr-foot .person-section { padding: 0; }
.sr-foot .person-section h2 { font-size: .8rem !important; font-family: inherit; font-weight: 400 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--sr-teal-ink); margin-bottom: .4rem !important; }
.sr-foot .publication-title { font-size: 1rem; line-height: 1.4; }
.sr-foot .publication-authors, .sr-foot .person-list-meta { font-size: .88rem; }
.sr-fullname { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: .01em; color: var(--sr-teal-ink); margin: -.6rem 0 1.1rem; }
.sr-fullname b { font-weight: 600; color: var(--sr-ink); }
.sr-card > h3 { font-size: 1.3rem; margin: 0 0 .75rem; }
.sr-exp-split { display: grid; gap: 1.1rem 1.5rem; }
@media (min-width: 620px) { .sr-exp-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .sr-exp-split > div + div { border-left: 1px solid var(--sr-rule); padding-left: 1.5rem; } }
.sr-exp-split h4 { font-size: 1rem; margin: 0 0 .6rem; color: var(--sr-ink); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.sr-exp-split h4 .sr-status { margin: 0 !important; font-weight: 300; }
.sr-foot { display: grid; gap: 1.5rem 3rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--sr-rule); }
@media (min-width: 900px) { .sr-foot { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
/* Small QR code for the page itself, shown on wide screens only (useful when the page is on a projector). */
.sr-qr { display: none; margin: 0; text-align: center; font-size: .78rem; color: var(--sr-muted); }
.sr-qr img { display: block; width: 104px; height: 104px; margin: 0 auto .35rem; }
@media (min-width: 1024px) { .sr-foot { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; } .sr-qr { display: block; } }
/* "Copy prompt for your AI": the button appears only once the script can copy; the summary link is always there. */
.sr-ai { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: -.9rem 0 1.25rem; }
.sr-details-head .sr-ai { margin: .25rem 0 1rem; }
.sr-btn-ai { cursor: pointer; font-size: .92rem; padding: .45rem .95rem; }
.sr-btn-ai.is-copied { border-color: var(--sr-teal); background: var(--sr-teal-tint); color: var(--sr-teal-ink); }
.sr-ai-status { font-size: .88rem; color: var(--sr-teal-ink); min-height: 1.2em; }
.sr-ai-status:empty { display: none; }
.sr-ai-note { flex: 1 1 15rem; margin: 0; font-size: .85rem; line-height: 1.45; color: var(--sr-muted); }
.sr-ai-manual { flex-basis: 100%; width: 100%; min-height: 9rem; font-size: .82rem; padding: .5rem; border: 1px solid #c4cad3; border-radius: 6px; }

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

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

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

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

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


/* ---------- Overview hero: one operator in two coordinate frames (animated by softrank.js) ---------- */
.sr-live { max-width: 30rem; width: 100%; justify-self: center; }
.sr-live svg { width: 100%; height: auto; display: block; }
.sr-live-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; min-height: 2.4rem; }
.sr-live-rule { color: var(--sr-ink); font-size: .98rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.sr-live-head button, .sr-explorer-controls button { border: 1px solid #c4cad3; border-radius: 6px; padding: .35rem .8rem; background: #fff; color: var(--sr-navy); font-size: .9rem; white-space: nowrap; }
.sr-live-head button:hover { border-color: var(--sr-navy); }
.sr-live-stage { border: 1px solid var(--sr-rule); border-radius: 8px; padding: .6rem .5rem .3rem; }

/* ---------- Overview: official results in the Experiments card ---------- */
.sr-stats { width: 100%; border-collapse: collapse; font-size: .93rem; margin: .2rem 0 .3rem; }
.sr-stats th, .sr-stats td { padding: .32rem .4rem; border-bottom: 1px solid var(--sr-rule); text-align: right; font-variant-numeric: tabular-nums; }
.sr-stats th:first-child, .sr-stats td:first-child { text-align: left; padding-left: 0; }
.sr-stats thead th { font-weight: 400; color: var(--sr-muted); font-size: .8rem; }
.sr-stats tbody th { font-weight: 400; color: var(--sr-ink); }
.sr-stats tr:last-child td, .sr-stats tr:last-child th { border-bottom: 0; }
.sr-rank { display: inline-block; min-width: 2.2rem; text-align: center; padding: .05rem .45rem; border-radius: 999px; background: var(--sr-teal-tint); color: var(--sr-teal-ink); font-weight: 600; }
.sr-rank-1 { background: var(--sr-teal); color: #fff; }
.sr-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; font-size: .93rem; margin: .2rem 0; }
.sr-pair span:nth-child(even) { font-variant-numeric: tabular-nums; color: var(--sr-ink); font-weight: 600; text-align: right; }

/* ---------- Details: bounded-overlay explorer ---------- */
.sr-explorer-controls .sr-seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.sr-explorer-controls button[aria-pressed="true"] { background: var(--sr-navy); color: #fff; border-color: var(--sr-navy); }
.sr-explorer-live svg { width: 100%; height: auto; display: block; }
.sr-explorer-readout { font-variant-numeric: tabular-nums; }
.sr-explorer-readout b { color: var(--sr-ink); font-weight: 600; }
.sr-explorer-readout .is-binding { color: var(--sr-ochre-ink); }

/* ---------- Details: results numbers ---------- */
.sr-big { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--sr-ink); font-weight: 400; font-variant-numeric: tabular-nums; margin: .4rem 0 .2rem; }
.sr-exp-grid-2 { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 760px) { .sr-exp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sr-exp-ochre { border-top-color: var(--sr-ochre); }
.sr-exp-navy { border-top-color: var(--sr-navy); }
.sr-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .88rem; color: var(--sr-muted); margin: .4rem 0 0; padding: 0; list-style: none; }
.sr-legend li { display: inline-flex; align-items: center; gap: .4rem; margin: 0 !important; }
.sr-sw { display: inline-block; width: 12px; height: 12px; }
.sr-sw-main { background: var(--sr-teal); transform: rotate(45deg) scale(.8); }
.sr-sw-control { background: var(--sr-navy); border-radius: 50%; }
.sr-sw-stress { border: 1.6px solid #8b95a3; border-radius: 50%; }
.sr-sw-ref { border: 1.6px solid var(--sr-ochre); }
.sr-hash { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .82rem; word-break: break-all; }
.sr-details-body dl.sr-dl, dl.sr-dl { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .45rem 1.25rem; margin: 1rem 0 1.5rem; max-width: 60rem; font-size: .95rem; }
dl.sr-dl dt { color: var(--sr-ink); }
dl.sr-dl dd { margin: 0; }
@media (max-width: 600px) { dl.sr-dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; } dl.sr-dl dd { margin-bottom: .6rem; } }
.sr-scope-line { font-size: .9rem; color: var(--sr-muted); margin: 1rem 0 0; }
.sr-fig-narrow-note { display: none; }
@media (max-width: 700px) { .sr-fig-narrow-note { display: inline; } }
.sr-details-body > section > ol { padding-left: 1.4rem; list-style: decimal; margin: 0 0 1rem; max-width: 60rem; }
.sr-details-body > section > ol li { margin-bottom: .4rem; line-height: 1.65; }
.sr-details-body .sr-exp-grid-2 .sr-exp h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.sr-details-body .sr-exp-grid-2 .sr-exp p { font-size: .93rem; line-height: 1.55; margin: 0 0 .5rem; }
.sr-details-body .sr-exp-grid-2 .sr-exp .sr-exp-target { color: var(--sr-muted); font-size: .88rem; }
.sr-table caption { caption-side: top; }
.sr-details-body .sr-explorer { max-width: 46rem; }
/* Overview figure: the architecture SVG, animated in place by softrank.js. */
.sr-live .sr-live-static { border: 1px solid var(--sr-rule); border-radius: 8px; padding: .6rem .6rem .4rem; }

/* Hero buttons: two buttons in one row, then plain text links (no boxes). */
.sr-actions.sr-ai { margin: 0 0 .9rem; gap: .6rem .75rem; }
.sr-details-head .sr-actions.sr-ai { margin: .25rem 0 .6rem; }
.sr-links { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 0 0 1.6rem; font-size: .95rem; }
.sr-details-head .sr-links { margin-bottom: .9rem; }
.sr-links a { color: var(--sr-navy); text-decoration: underline; text-decoration-color: #b9c3d3; text-underline-offset: 3px; }
.sr-links a:hover { text-decoration-color: var(--sr-navy); }
/* Closing summary on the details page: three plain columns. */
.sr-brief { display: grid; gap: 1.25rem 2.5rem; margin: .5rem 0 1rem; }
@media (min-width: 900px) { .sr-brief { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sr-details-body .sr-brief h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.sr-details-body .sr-brief p { margin: 0; font-size: .97rem; line-height: 1.65; }

/* ---------- SoftRank additions ---------- */
.sr-live .hx-same { transition: opacity .4s ease; }
.sr-explorer-live { display: grid; gap: .5rem; }
.sr-explorer-readout .is-kappa { color: var(--sr-teal-ink); }
.sr-explorer-readout .is-gamma { color: var(--sr-ochre-ink); }
.sr-two { display: grid; gap: 1.25rem 2rem; margin: 1rem 0; }
@media (min-width: 860px) { .sr-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.sr-stack > * + * { margin-top: .4rem; }
.sr-mini { font-size: .9rem; color: var(--sr-muted); margin: .3rem 0 0; line-height: 1.5; }
.sr-card ul.sr-checks li { font-size: .93rem; }
.sr-exp-grid-4, .sr-exp-grid-5 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sr-exp-grid-4, .sr-exp-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sr-exp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sr-exp-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sr-exp-grid-5 .sr-big { font-size: 1.45rem; }
.sr-affil { margin: 0; flex-basis: 100%; font-size: .88rem; color: var(--sr-muted); }
.sr-details-head .sr-affil { margin-top: .4rem; }
.sr-details-body .sr-figure-md { max-width: 52rem; }
@media (max-width: 420px) { .sr-equation { padding: .8rem .45rem; } .sr math[display="block"] { font-size: .9em; } }
