/* Research pages share the portfolio theme and keep evidence readable without JavaScript. */
.research-skip { position:fixed; top:-100px; left:1rem; z-index:2000; padding:.75rem 1rem; background:var(--panel-solid); color:var(--heading); border:2px solid var(--accent); }
.research-skip:focus { top:1rem; }
.research-shell { width:min(1120px,100%); margin:0 auto; padding:2rem clamp(1.1rem,4vw,3.5rem) 3rem; }
.research-breadcrumb ol { display:flex; flex-wrap:wrap; gap:.5rem; list-style:none; padding:0; margin:0 0 2rem; color:var(--subtle); font-size:.82rem; }
.research-breadcrumb li + li::before { content:"/"; margin-right:.5rem; opacity:.55; }
.research-breadcrumb li { min-width:0; overflow-wrap:anywhere; }
.research-hero { padding:1.2rem 0 2.2rem; }
.research-kicker { color:var(--accent-strong); font:500 .72rem/1.6 "DM Mono",monospace; letter-spacing:.07em; text-transform:uppercase; }
.research-hero h1 { max-width:940px; font-size:clamp(1.9rem,3.3vw,3rem); font-weight:650; line-height:1.2; letter-spacing:-.025em; overflow-wrap:anywhere; }
.research-lead { max-width:860px; margin:1.2rem 0; font-size:1.08rem; line-height:1.8; color:var(--subtle); }
.research-byline { margin:1.3rem 0 .4rem; }
.research-update,.research-note { color:var(--subtle); font-size:.88rem; line-height:1.75; }
.research-update { margin-bottom:1.4rem; }
.research-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.3rem; align-items:start; }
.research-panel { padding:clamp(1.2rem,3vw,2rem); margin:0 0 1.3rem; background:var(--panel); border:1px solid var(--border); border-radius:20px; }
.research-grid .research-panel { height:calc(100% - 1.3rem); }
.research-panel h2 { margin:0 0 .85rem; font-size:1.25rem; line-height:1.4; }
.research-panel p { line-height:1.8; }
.research-panel h2:not(:first-child) { margin-top:1.7rem; }
.research-panel p:last-child { margin-bottom:0; }
.research-scope { border-left:3px solid var(--accent); background:var(--panel-soft); }
.research-metrics { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; margin:0 0 1.2rem; }
.research-metrics > div { display:flex; flex-direction:column-reverse; justify-content:flex-end; padding:.85rem; border:1px solid var(--border); border-radius:12px; background:var(--page-alt); }
.research-metrics dt { color:var(--subtle); font-size:.75rem; font-weight:400; line-height:1.5; }
.research-metrics dd { color:var(--accent-strong); font-size:clamp(1.05rem,1.5vw,1.4rem); font-weight:600; margin:0 0 .4rem; }
.research-citation a { overflow-wrap:anywhere; }
.research-link-list { margin:0; padding-left:1.2rem; line-height:1.8; }
.research-return { display:flex; flex-wrap:wrap; gap:.6rem; margin:2rem 0 0; font-size:.9rem; }
.research-paper-card h2 { font-size:clamp(1.15rem,2vw,1.5rem); }
.research-paper-card h2 a { color:var(--heading); }
.research-card-links { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.8rem; padding-top:1rem; border-top:1px solid var(--border); font-size:.9rem; }
.research-toc { margin:0 0 2rem; padding:1.4rem; border:1px solid var(--border); border-radius:20px; background:var(--panel-soft); }
.research-toc ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem 1.2rem; margin:0; padding:0; list-style:none; counter-reset:research-step; }
.research-toc li { counter-increment:research-step; min-width:0; }
.research-toc a { display:flex; align-items:baseline; gap:.6rem; padding:.45rem .1rem; color:var(--heading); font-size:.86rem; line-height:1.5; text-decoration:none; }
.research-toc a::before { content:counter(research-step,decimal-leading-zero); color:var(--accent-strong); font:500 .7rem/1.5 "DM Mono",monospace; }
.research-toc a:hover { color:var(--accent-strong); text-decoration:underline; }
.research-toc a:focus-visible,.research-methodology a:focus-visible { outline:2px solid var(--accent); outline-offset:4px; border-radius:3px; }
.research-panel [id] { scroll-margin-top:1.5rem; }
.research-step-index { display:inline-block; margin-right:.55rem; color:var(--accent-strong); font:500 .78rem/1.5 "DM Mono",monospace; vertical-align:middle; }
.research-methodology { margin:1.8rem 0 .2rem; }
.research-methodology picture { display:block; }
.research-methodology img { display:block; width:100%; height:auto; border:1px solid var(--border); border-radius:16px; }
.research-methodology figcaption { margin:.85rem 0 0; color:var(--subtle); font-size:.82rem; line-height:1.7; }
.research-figure-links { display:flex; flex-wrap:wrap; gap:.5rem 1.1rem; margin:.6rem 0 0; font-size:.82rem; }
.research-table-scroll { max-width:100%; overflow-x:auto; margin:1.1rem 0; }
.research-table { width:100%; min-width:420px; border-collapse:collapse; font-size:.88rem; }
.research-table caption { caption-side:top; padding:0 0 .8rem; color:var(--subtle); font-size:.82rem; }
.research-table th,.research-table td { padding:.8rem .7rem; border-bottom:1px solid var(--border); text-align:left; }
.research-table thead th { background:var(--panel-soft); color:var(--heading); font-weight:600; }
.research-panel ul,.research-panel ol { padding-left:1.4rem; line-height:1.8; }
.research-panel li + li { margin-top:.4rem; }
.research-metric-explanations dt { margin-top:.8rem; color:var(--heading); font-weight:600; }
.research-metric-explanations dd { margin:.25rem 0 .8rem; line-height:1.8; }
.research-formula,.research-equation { padding:1rem; border-left:2px solid var(--accent); border-radius:0 10px 10px 0; background:var(--panel-soft); overflow-wrap:anywhere; }
.research-equation code { color:var(--heading); font-size:.94em; white-space:normal; }
@media (max-width:1000px) { .research-toc ol { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:767px) { .research-grid { grid-template-columns:1fr; gap:0; }.research-shell { padding-top:1.5rem; }.research-grid .research-panel { height:auto; }.research-hero { padding-top:.3rem; }.research-hero h1 { font-size:1.85rem; }.research-byline { font-size:.9rem; } }
@media (max-width:575px) { .research-toc { padding:1rem; }.research-toc ol { column-gap:.8rem; }.research-toc a { font-size:.78rem; }.research-toc a::before { font-size:.65rem; }.research-panel { border-radius:16px; }.research-methodology { margin:1.3rem -.3rem .2rem; } }
@media (max-width:380px) { .research-metrics { grid-template-columns:1fr; } }
@media print { .research-toc { display:none; }.research-methodology img { max-height:230mm; width:auto; max-width:100%; }.research-methodology { break-inside:avoid; }.research-figure-links { display:none; } }

