/* Academic case studies: original visual explanations, scoped to these pages/cards. */
.research-page, .rs-cover { --rs-accent: #9b4d31; --rs-tint: #f3e9df; --rs-dark: #142d33; --rs-art: #f1b88c; --rs-line: #d8c8bb; }
.rs-msc { --rs-accent: #49618a; --rs-tint: #e8ecf3; --rs-art: #adbee5; --rs-line: #c5cede; }
.research-page { overflow: clip; }
.research-page h1, .research-page h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.045em; }
.research-page h2 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.16; }
.research-page h3 { font-size: 1.08rem; line-height: 1.4; font-weight: 620; letter-spacing: -.015em; }
.research-page p { text-wrap: pretty; }
.research-page :where(section, details)[id] { scroll-margin-top: calc(var(--rs-header-height, 80px) + 5rem); }
.rs-kicker { font-family: var(--font-mono); font-size: .65rem; line-height: 1.6; letter-spacing: .11em; text-transform: uppercase; color: var(--rs-accent); }
.rs-breadcrumb { display: flex; flex-wrap: wrap; gap: .65rem; font-size: .75rem; color: var(--muted); margin-bottom: 3.2rem; }
.rs-breadcrumb a { text-decoration: none; }
.rs-hero { padding: 2.2rem 0 4rem; }
.rs-hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 4.6rem; }
.rs-hero-copy h1 { font-size: clamp(2.8rem, 4.75vw, 4.7rem); line-height: 1.06; margin: 1.25rem 0 1.6rem; }
.rs-hero-copy .rs-kicker { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.rs-live-dot { width: 6px; height: 6px; background: var(--rs-accent); border-radius: 50%; flex: 0 0 auto; }
.rs-lead { font-size: 1rem; max-width: 44ch; color: var(--muted); line-height: 1.8; }
.rs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.rs-actions .button.primary { gap: 1.1rem; font-size: .82rem; }
.rs-text-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ink); text-decoration: none; background: none; border: 0; padding: .5rem 0; }
.rs-text-link:hover { color: var(--rs-accent); }
.rs-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; padding-top: 2.1rem; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.rs-meta div { display: grid; gap: .3rem; }
.rs-meta strong { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 500; }
.rs-meta span { font-size: .68rem; color: var(--muted); line-height: 1.5; }
.rs-hero-visual { border-radius: 18px; overflow: hidden; background: var(--rs-dark); color: var(--rs-art); border: 1px solid rgb(255 255 255 / 8%); transform: rotate(1.2deg); box-shadow: 0 20px 50px rgb(23 44 53 / 9%); }
.rs-msc .rs-hero-visual { transform: rotate(-1deg); }
.rs-visual-top { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.55rem; border-bottom: 1px solid rgb(255 255 255 / 10%); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .13em; }
.rs-hero-visual > svg { width: 100%; height: auto; }
.rs-hero-visual figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.55rem; font-family: var(--font-mono); font-size: .58rem; border-top: 1px solid rgb(255 255 255 / 10%); color: #b8c7c6; }
.rs-frame { stroke: currentColor; stroke-width: 1; fill: currentColor; fill-opacity: .025; opacity: .6; }
.rs-face-outline { stroke: currentColor; stroke-width: 1.4; opacity: .72; fill: none; }
.rs-face-mesh { stroke: currentColor; stroke-width: .65; opacity: .6; fill: none; }
.rs-face-mesh circle { fill: currentColor; stroke: none; opacity: 1; }
.rs-patch-grid { stroke: currentColor; stroke-width: .55; opacity: .2; }
.rs-patch-grid .rs-attention-window { fill: currentColor; fill-opacity: .2; stroke-width: 1.5; opacity: .9; }
.rs-patch-grid .second { fill-opacity: .05; }
.rs-arrow { stroke: currentColor; stroke-width: 1.4; }
.rs-logit { fill: currentColor; opacity: .25; }
.rs-logit-3 { opacity: .9; }
.rs-brackets { stroke: currentColor; stroke-width: 1.2; opacity: .55; }
.rs-cell > :first-child { fill: currentColor; fill-opacity: .065; stroke: currentColor; stroke-width: 1.3; }
.rs-cell.cell-1 { opacity: .65; }
.rs-cell.cell-2 { opacity: .85; }
.rs-cell.cell-3 { opacity: .45; }
.rs-nucleus { fill: currentColor; fill-opacity: .3; stroke: currentColor; stroke-width: .8; }
.rs-measure-line, .rs-cross { fill: none; stroke: currentColor; stroke-width: 1; }
.rs-target { fill: none; stroke: currentColor; stroke-width: .7; stroke-dasharray: 3 8; opacity: .3; }
.rs-jump { background: var(--bg); border-block: 1px solid var(--line); position: sticky; top: var(--rs-header-height, 79px); z-index: 15; }
.rs-jump > div { display: flex; align-items: center; gap: 2rem; min-height: 58px; overflow-x: auto; scrollbar-width: thin; }
.rs-jump-label { margin-right: auto; color: var(--rs-accent); font-family: var(--font-mono); font-size: .7rem; white-space: nowrap; }
.rs-jump a { text-decoration: none; color: var(--muted); font-size: .75rem; white-space: nowrap; padding: 1rem 0; border-bottom: 2px solid transparent; }
.rs-jump a:hover, .rs-jump a[aria-current="location"] { color: var(--ink); border-bottom-color: var(--rs-accent); }
.rs-section { padding: 5rem 0; }
.rs-section-head { display: flex; gap: 2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2.1rem; }
.rs-section-head h2 { margin-top: .65rem; }
.rs-section-head > p { max-width: 29ch; font-size: .85rem; color: var(--muted); }
.rs-reading-time { font-family: var(--font-mono); color: var(--muted); font-size: .65rem; white-space: nowrap; }
.rs-overview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.rs-overview-grid .rs-mini { padding: 1.5rem 1.65rem 1.7rem; border-right: 1px solid var(--line); }
.rs-overview-grid .rs-mini:nth-child(3n) { border-right: 0; }
.rs-overview-grid .rs-mini:nth-child(n+4) { border-top: 1px solid var(--line); }
.rs-mini .rs-kicker { display: block; margin-bottom: .9rem; opacity: .8; }
.rs-mini h3 { margin-bottom: .6rem; }
.rs-mini p { color: var(--muted); font-size: .84rem; line-height: 1.75; }
.rs-two, .rs-three, .rs-four { display: grid; gap: 1.2rem; }
.rs-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.rs-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.rs-four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.rs-tinted { background: var(--surface-alt); border-block: 1px solid var(--line); }
.rs-explorer { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.rs-explorer-graphic, .rs-method-graphic { color: var(--rs-art); background: var(--rs-dark); position: relative; padding-bottom: 2rem; }
.rs-explorer-graphic svg, .rs-method-graphic > svg { width: 100%; }
.rs-explorer-graphic .rs-face-mesh, .rs-explorer-graphic .rs-patch-grid, .rs-explorer-graphic .rs-output-bars, .rs-explorer-graphic .rs-arrow { opacity: .05; }
[data-stage="1"] .rs-patch-grid { opacity: .8; }
[data-stage="1"] .rs-face-outline { opacity: .4; }
[data-stage="2"] .rs-face-mesh { opacity: 1; }
[data-stage="2"] .rs-face-outline { opacity: .18; }
[data-stage="3"] .rs-output-bars, [data-stage="3"] .rs-arrow { opacity: 1; }
[data-stage="3"] .rs-face-mesh { opacity: .5; }
.rs-illustration-label { position: absolute; bottom: 1.1rem; left: 1.5rem; font-size: .55rem; letter-spacing: .07em; font-family: var(--font-mono); color: #b8c7c6; }
.rs-explorer-controls { padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.rs-segments { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rs-segment { display: flex; align-items: center; text-align: left; gap: .5rem; border: 1px solid var(--line); border-radius: 5px; background: transparent; padding: .85rem .8rem; font-size: .8rem; min-height: 46px; }
.rs-segment span { font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }
.rs-segment[aria-pressed="true"] { background: var(--rs-tint); border-color: var(--rs-line); color: var(--rs-accent); }
.rs-stage-copy { min-height: 5.5rem; font-size: .94rem; }
.rs-small { font-size: .73rem; color: var(--muted); line-height: 1.75; }
.rs-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 1.8rem 0 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.rs-flow li { position: relative; padding: 1.3rem 1.35rem 1.3rem 0; display: grid; align-content: start; gap: .35rem; }
.rs-flow li + li { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.rs-flow li + li::before { content: '→'; position: absolute; top: 1.1rem; left: -.45rem; color: var(--rs-accent); background: var(--surface-alt); font-size: .7rem; }
.rs-step-num { font-family: var(--font-mono); font-size: .6rem; color: var(--rs-accent); }
.rs-flow strong { font-size: .85rem; font-weight: 600; }
.rs-flow small { font-size: .7rem; line-height: 1.6; color: var(--muted); }
.rs-detail { border-bottom: 1px solid var(--line); }
.rs-detail:first-child { border-top: 1px solid var(--line); }
.rs-detail > summary { display: flex; align-items: center; gap: 1.35rem; padding: 1.5rem 0; cursor: pointer; list-style: none; }
.rs-detail > summary::-webkit-details-marker { display: none; }
.rs-detail > summary::marker { content: ''; }
.rs-detail-num { font-family: var(--font-mono); font-size: .7rem; color: var(--rs-accent); align-self: flex-start; margin-top: .2rem; min-width: 1.3rem; }
.rs-detail summary strong { display: block; font-size: 1rem; font-weight: 560; line-height: 1.5; }
.rs-detail summary small { display: block; font-size: .76rem; color: var(--muted); margin-top: .2rem; }
.rs-plus { font-size: 1.4rem; margin-left: auto; color: var(--rs-accent); font-weight: 300; flex-shrink: 0; }
.rs-detail[open] > summary .rs-plus { transform: rotate(45deg); }
.rs-detail[open] > summary { padding-bottom: 1.1rem; }
.rs-detail-body { padding: .5rem 2.7rem 2.1rem; font-size: .88rem; line-height: 1.85; }
.rs-detail-body > * + * { margin-top: 1.5rem; }
.rs-detail-body > .rs-two, .rs-detail-body > .rs-three, .rs-detail-body > .rs-four { background: var(--surface); padding: 1.5rem; border: 1px solid var(--line); border-radius: 6px; }
.rs-detail-body .rs-four .rs-mini p { font-family: var(--font-mono); font-size: .68rem; }
.rs-detail-body .rs-flow { background: transparent; }
.rs-note { padding: 1rem 1.2rem; background: var(--surface-alt); border-left: 2px solid var(--rs-accent); color: var(--muted); font-size: .78rem; }
.rs-formula { padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.rs-formula figcaption { font-family: var(--font-mono); font-size: .65rem; color: var(--rs-accent); }
.rs-equation { font-family: var(--font-display); font-size: 1.5rem; margin: .6rem 0 .7rem; line-height: 1.8; overflow-wrap: anywhere; }
.rs-formula p { color: var(--muted); font-size: .77rem; }
.rs-formula sub, .rs-formula sup { font-size: .6em; }
.rs-detail-body .rs-two .rs-formula { background: transparent; border: 0; padding: 0; }
.rs-table-wrap { overflow-x: auto; }
.rs-table { border-collapse: collapse; width: 100%; font-size: .77rem; }
.rs-table caption { text-align: left; font-size: .7rem; margin-bottom: .7rem; color: var(--muted); }
.rs-table th, .rs-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.rs-table th { font-weight: 550; }
.rs-table thead { background: var(--surface-alt); }
.rs-table thead th { font-size: .65rem; }
.rs-table tbody td { color: var(--muted); }
.rs-training-track { display: flex; align-items: center; gap: 2rem; background: var(--rs-tint); padding: 1.4rem 1.7rem; border: 1px solid var(--rs-line); border-radius: 6px; }
.rs-training-track > div { flex: 1; }
.rs-training-track span { display: block; color: var(--rs-accent); font-family: var(--font-mono); font-size: .65rem; }
.rs-training-track strong { display: block; font-size: 1.3rem; font-family: var(--font-display); margin: .3rem 0; }
.rs-training-track p { font-size: .77rem; color: var(--muted); }
.rs-training-track b { color: var(--rs-accent); }
.rs-results-grid { display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; gap: 3rem; }
.rs-chart { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: .8rem; }
.rs-chart img { width: 100%; height: auto; }
.rs-chart figcaption { font-size: .65rem; color: #52656b; padding: .5rem 1rem .6rem; line-height: 1.7; }
.rs-results-note h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; line-height: 1.35; margin: .7rem 0 1rem; }
.rs-results-note > p { font-size: .85rem; color: var(--muted); }
.rs-results-note > p + p { margin-top: 1rem; }
.rs-source-table { margin-top: 1.5rem; border-block: 1px solid var(--line); font-size: .8rem; }
.rs-source-table summary { padding: .85rem .3rem; cursor: pointer; }
.rs-source-table > p { padding: .8rem 1rem 1.2rem; color: var(--muted); }
.rs-methods { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.rs-method-buttons { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.rs-method-button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 1rem; font-size: .85rem; min-height: 54px; }
.rs-method-button + .rs-method-button { border-left: 1px solid var(--line); }
.rs-method-button > span { display: inline-block; margin-right: .6rem; font-size: .62rem; color: var(--muted); font-family: var(--font-mono); }
.rs-method-button[aria-pressed="true"] { border-bottom-color: var(--rs-accent); background: var(--rs-tint); color: var(--rs-accent); }
.rs-method-main { display: grid; grid-template-columns: 1.1fr 1fr; }
.rs-method-description { display: flex; align-items: center; padding: 2.7rem; }
.rs-method-description h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin: .4rem 0 1rem; }
.rs-method-description p:not(.rs-kicker) { color: var(--muted); font-size: .88rem; }
.rs-method-description .rs-assumption { padding-top: 1.3rem; margin-top: 1.3rem; border-top: 1px solid var(--line); font-size: .77rem !important; }
.rs-assumption strong { font-weight: 600; color: var(--ink); }
.rs-flow-overlay { position: absolute; inset: 0; opacity: 0; pointer-events: none; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
[data-method-scene="cellpose"] .rs-flow-overlay { opacity: .7; }
[data-method-scene="qupath"] .rs-nucleus { fill-opacity: .7; }
[data-method-scene="qupath"] .rs-cell > :first-child { stroke-dasharray: 4 3; }
[data-method-scene="csgo"] .rs-cell > :first-child { fill-opacity: .12; stroke-width: .8; }
[data-method-scene="cytorcnn"] .rs-cell > :first-child { stroke-width: 2; }
.rs-method-graphic .rs-target, .rs-method-graphic .rs-measure-line, .rs-method-graphic .rs-cross { opacity: 0; }
.rs-method-note { padding-left: 1.2rem; border-left: 2px solid var(--rs-line); }
.rs-method-note + .rs-method-note { margin-top: 1.8rem; }
.rs-method-note h3 { margin: .4rem 0; }
.rs-method-note .rs-small { margin-top: .5rem; }
.rs-process-list { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem 2rem; padding: 0; }
.rs-process-list li { display: flex; gap: .9rem; }
.rs-process-list li > span { font-family: var(--font-mono); font-size: .65rem; color: var(--rs-accent); padding-top: .2rem; }
.rs-process-list h3 { font-size: .85rem; margin-bottom: .3rem; }
.rs-process-list p { font-size: .77rem; color: var(--muted); }
.rs-shape-lab { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; padding: 1.5rem; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 10px; }
.rs-shape-figure svg { width: 100%; max-height: 300px; color: var(--rs-accent); }
[data-shape-polygon] { fill: var(--rs-accent); fill-opacity: .12; stroke: var(--rs-accent); stroke-width: 1.8; }
.rs-reference-shape { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 6; opacity: .55; }
.rs-shape-nucleus { fill: var(--rs-accent); fill-opacity: .25; stroke: var(--rs-accent); stroke-width: .6; }
.rs-shape-controls { align-self: center; }
.rs-shape-controls h3 { margin-bottom: 1.2rem; }
.rs-shape-controls label { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; }
.rs-shape-controls output { font-family: var(--font-mono); }
.rs-shape-controls input[type="range"] { display: block; accent-color: var(--rs-accent); width: 100%; margin: .5rem 0 1rem; min-height: 28px; }
.rs-live-measures { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.rs-live-measures dt { font-size: .65rem; color: var(--muted); }
.rs-live-measures dd { font-family: var(--font-mono); font-size: 1.15rem; margin: .3rem 0 0; }
.rs-live-measures small { display: block; font-family: var(--font-body); font-size: .62rem; color: var(--muted); }
.rs-reset { background: none; border: 0; border-bottom: 1px solid var(--rs-line); padding: .4rem 0; margin: .7rem 0; color: var(--rs-accent); font-size: .73rem; }
.rs-evidence-chain { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr; gap: .8rem; align-items: center; }
.rs-evidence-chain article { padding: 1.7rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; min-height: 210px; display: flex; flex-direction: column; }
.rs-evidence-chain article > span { font-family: var(--font-mono); font-size: .63rem; color: var(--rs-accent); }
.rs-evidence-chain h3 { margin: .9rem 0 .6rem; }
.rs-evidence-chain p { font-size: .78rem; color: var(--muted); }
.rs-evidence-chain code { margin-top: auto; padding-top: 1rem; font-size: .61rem; color: var(--rs-accent); white-space: normal; }
.rs-not-equal { font-family: var(--font-display); font-size: 2rem; color: var(--muted); text-align: center; }
.rs-publication-note { display: flex; gap: .8rem; margin-top: 1.7rem; font-size: .75rem; color: var(--muted); padding: 1rem 0; }
.rs-note-icon { width: 18px; height: 18px; border: 1px solid var(--muted); border-radius: 50%; flex-shrink: 0; font-family: var(--font-display); font-size: .75rem; text-align: center; line-height: 1.4; margin-top: .2rem; }
.rs-reflection { background: var(--rs-dark); color: #edf1ec; }
.rs-reflection .rs-kicker { color: var(--rs-art); }
.rs-reflection h2 { max-width: 28ch; margin-top: .6rem; }
.rs-reflection blockquote { font-family: var(--font-display); font-size: clamp(1.15rem,2vw,1.45rem); line-height: 1.7; color: #c6d4d3; max-width: 68ch; margin: 1.6rem 0 2.4rem; padding: 0; border: 0; }
.rs-reflection-row { display: grid; grid-template-columns: .9fr 1fr 1fr; gap: 2rem; padding: 1.4rem 0; border-top: 1px solid #355057; }
.rs-reflection-row span { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; color: var(--rs-art); margin-bottom: .5rem; }
.rs-reflection-row h3 { font-size: .85rem; }
.rs-reflection-row p { font-size: .8rem; color: #c6d4d3; }
.rs-reflection .rs-small { margin-top: 1.2rem; color: #b8c7c6; }
.rs-source-section { padding-block: 2.5rem; }
.rs-reference-list { padding-left: 1rem; margin-top: .6rem; font-size: .73rem; }
.rs-reference-list li + li { margin-top: .5rem; }
.rs-next { border-top: 1px solid var(--line); padding: 3rem 0 4rem; }
.rs-next-link { display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--ink); text-decoration: none; }
.rs-next-link h2 { font-size: clamp(1.6rem,3vw,2.3rem); margin-top: .6rem; }
.rs-next-link > span { font-size: 2.5rem; color: var(--rs-accent); }
.rs-next-link:hover h2 { color: var(--rs-accent); }
/* Cards on the existing homepage/project directory. */
.rs-cover { background: var(--rs-dark); color: var(--rs-art); height: 230px; overflow: hidden; position: relative; }
.rs-cover > svg { position: absolute; width: 300px; right: 1rem; top: -10px; opacity: .9; transform: rotate(-7deg); }
.rs-cover.rs-msc > svg { width: 330px; top: -30px; right: .5rem; transform: rotate(9deg); }
.rs-cover-label { position: absolute; z-index: 1; left: 1.5rem; top: 1.35rem; font-size: .6rem; font-family: var(--font-mono); letter-spacing: .06em; max-width: 13ch; }
.rs-cover-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; display: flex; justify-content: space-between; gap: .5rem; background: var(--rs-dark); padding: .9rem 1.5rem; border-top: 1px solid #355057; font-size: .7rem; }
.rs-cover-bottom b { font-size: 1rem; font-weight: 400; }
/* Theme compatibility: no new storage or theme subsystem. */
:root[data-theme="dark"] .research-page, :root[data-theme="dark"] .rs-cover { --rs-accent: #edb18e; --rs-tint: #352e2a; --rs-line: #735b49; }
:root[data-theme="dark"] .rs-msc { --rs-accent: #b8c7eb; --rs-tint: #293442; --rs-line: #53647e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .research-page, :root:not([data-theme="light"]) .rs-cover { --rs-accent: #edb18e; --rs-tint: #352e2a; --rs-line: #735b49; }
  :root:not([data-theme="light"]) .rs-msc { --rs-accent: #b8c7eb; --rs-tint: #293442; --rs-line: #53647e; }
}
@media (prefers-reduced-motion: no-preference) {
  .research-page .rs-face-mesh, .research-page .rs-patch-grid, .research-page .rs-output-bars, .research-page .rs-arrow, .rs-flow-overlay, .rs-face-outline { transition: opacity .35s ease; }
  .rs-plus { transition: transform .2s ease; }
  .rs-hero-visual { animation: rs-arrive .6s ease-out both; }
  @keyframes rs-arrive { from { opacity: .35; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 1050px) {
  .rs-hero-grid { gap: 2.5rem; }
  .rs-jump { top: var(--rs-header-height, 76px); }
  .rs-method-description { padding: 1.7rem; }
  .rs-detail-body { padding-inline: 1.5rem; }
  .rs-cover > svg { width: 260px; right: -.5rem; }
  .rs-cover.rs-msc > svg { width: 290px; right: -1rem; }
}
@media (max-width: 760px) {
  .rs-hero { padding: 1.6rem 0 3rem; }
  .rs-breadcrumb { margin-bottom: 2rem; }
  .rs-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rs-hero-copy h1 { font-size: clamp(2.8rem,8vw,4rem); }
  .rs-hero-visual { max-width: 540px; width: 100%; margin-inline: auto; transform: none; }
  .rs-msc .rs-hero-visual { transform: none; }
  .rs-hero-visual > svg { max-height: 340px; }
  .rs-meta { max-width: 480px; margin-top: 1.7rem; padding-top: 1.5rem; }
  .rs-section { padding: 3rem 0; }
  .rs-section-head { align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
  .rs-section-head > p { max-width: 48ch; }
  .rs-reading-time { display: none; }
  .rs-overview-grid { grid-template-columns: 1fr 1fr; }
  .rs-overview-grid .rs-mini { padding: 1.2rem; }
  .rs-overview-grid .rs-mini:nth-child(3n) { border-right: 1px solid var(--line); }
  .rs-overview-grid .rs-mini:nth-child(2n) { border-right: 0; }
  .rs-overview-grid .rs-mini:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rs-explorer, .rs-method-main { grid-template-columns: 1fr; }
  .rs-explorer-graphic svg, .rs-method-graphic > svg { max-height: 330px; }
  .rs-explorer-controls { padding: 1.5rem; gap: 1rem; }
  .rs-stage-copy { min-height: 4rem; }
  .rs-jump { top: var(--rs-header-height, 76px); }
  .rs-jump > div { gap: 1.2rem; min-height: 48px; }
  .rs-jump-label { display: none; }
  .rs-jump a { font-size: .69rem; padding-block: .75rem; }
  .rs-results-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .rs-detail-body { padding: .5rem 0 1.7rem; }
  .rs-detail-body > .rs-two, .rs-detail-body > .rs-three, .rs-detail-body > .rs-four { padding: 1.1rem; }
  .rs-three, .rs-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rs-method-button { padding: .9rem .4rem; font-size: .67rem; }
  .rs-method-button > span { display: block; margin: 0 0 .3rem; }
  .rs-method-description { padding: 1.5rem; min-height: 260px; }
  .rs-method-description h3 { font-size: 1.8rem; }
  .rs-evidence-chain { grid-template-columns: 1fr; gap: .4rem; }
  .rs-evidence-chain article { min-height: auto; padding: 1.3rem; }
  .rs-evidence-chain code { padding-top: .6rem; }
  .rs-not-equal { font-size: 1.5rem; }
  .rs-shape-lab { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .rs-shape-figure svg { max-height: 230px; }
  .rs-reflection-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .rs-reflection-row > div:first-child { grid-column: 1 / -1; }
  .rs-reflection-row > div:first-child span { display: inline-block; margin-right: .6rem; }
  .rs-reflection-row > div:first-child h3 { display: inline; }
}
@media (max-width: 460px) {
  .rs-hero-copy h1 { font-size: 2.75rem; }
  .rs-hero-copy .rs-kicker { font-size: .57rem; }
  .rs-lead { font-size: .93rem; }
  .rs-actions { gap: .7rem 1rem; }
  .rs-hero-visual figcaption { font-size: .52rem; padding: .85rem 1rem; }
  .rs-overview-grid { grid-template-columns: 1fr; }
  .rs-overview-grid .rs-mini { border-right: 0 !important; }
  .rs-overview-grid .rs-mini:nth-child(n+2) { border-top: 1px solid var(--line); }
  .rs-overview-grid .rs-mini { display: grid; grid-template-columns: 23px 1fr; gap: 0 .5rem; padding: 1rem; }
  .rs-overview-grid .rs-mini .rs-kicker { grid-row: 1/3; margin-top: .2rem; }
  .rs-overview-grid .rs-mini h3 { font-size: .9rem; }
  .rs-overview-grid .rs-mini p { font-size: .79rem; }
  .rs-flow { grid-template-columns: 1fr 1fr; }
  .rs-flow li:nth-child(3) { border-left: 0; padding-left: 0; }
  .rs-flow li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rs-flow li:nth-child(3)::before { display: none; }
  .rs-two, .rs-three { grid-template-columns: 1fr; }
  .rs-detail > summary { gap: .8rem; }
  .rs-detail summary strong { font-size: .9rem; }
  .rs-detail summary small { font-size: .69rem; }
  .rs-training-track { gap: .8rem; padding: 1rem; }
  .rs-training-track p { font-size: .66rem; }
  .rs-process-list { grid-template-columns: 1fr; }
  .rs-table th, .rs-table td { padding: .65rem .55rem; font-size: .7rem; }
  .rs-reflection-row { grid-template-columns: 1fr; }
  .rs-reflection-row > div:first-child { grid-column: auto; }
  .rs-next-link { gap: 1rem; }
  .rs-cover > svg { right: -1rem; }
}
@media print {
  .rs-jump, .rs-actions, .rs-segments, .rs-method-buttons, .rs-reset, [data-expand-details] { display: none !important; }
  .research-page, .rs-reflection { background: white; color: black; }
  .rs-reflection p, .rs-reflection blockquote, .rs-reflection span { color: #333 !important; }
  .rs-section { padding: 1.5rem 0; }
  .rs-detail { break-inside: avoid; }
  .rs-hero-visual { transform: none; box-shadow: none; }
}
