@import url("design.css?v=polish-1");
.research-page { --project-ink:#4c665d; --project-wash:#e9f0ed; }
[data-theme="dark"] .research-page { --project-ink:#a7c6b6; --project-wash:#25362e; }
.project-content { max-width:calc(var(--page-width) + var(--page-gutter)*2); padding:0 var(--page-gutter); margin:0 auto; }
.project-breadcrumb { display:flex; justify-content:space-between; gap:24px; padding:27px 0 12px; font-size:11px; color:var(--muted); }
.project-breadcrumb a { color:var(--text-2); }
.project-hero { display:grid; grid-template-columns:1.15fr 1fr; gap:64px; align-items:center; padding:32px 0 40px; }
.project-hero h1 { font-size:clamp(42px,4.3vw,58px); letter-spacing:-.03em; line-height:1.05; margin-bottom:20px; }
.project-hero .subtitle { font:400 28px/1.25 var(--font-serif); color:var(--text); max-width:29ch; margin-bottom:22px; }
.project-hero .intro { font-size:14px; line-height:1.8; max-width:63ch; }
.byline { font-size:11px; color:var(--muted); margin:24px 0 19px; }
.paper-links { display:flex; flex-wrap:wrap; align-items:center; gap:20px; font-size:12px; }
.paper-links > a:not(.outline-link) { display:inline-flex; align-items:center; min-height:44px; }
.paper-links .outline-link { background:var(--text); color:var(--bg); border-color:var(--text); }
.paper-links .outline-link:hover { background:var(--accent-hover); }
.section-nav { display:flex; flex-wrap:wrap; gap:26px; padding:18px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); font-size:12px; }
.section-nav a { color:var(--text-2); }
.research-section { padding:36px 0; border-bottom:1px solid var(--border); }
.research-section h2 { font-size:33px; letter-spacing:-.02em; margin-bottom:22px; }
.research-section h3 { font-size:26px; margin:30px 0 20px; }
.prose { max-width:90ch; font-size:14px; line-height:1.85; }
.prose p:last-child { margin-bottom:0; }
.math-block { margin:22px 0; padding:5px 0; color:var(--text); overflow-x:auto; overflow-y:hidden; }
.math-block mjx-container[display="true"] { margin:0 !important; max-width:none; padding:8px 2px; }
mjx-container { font-size:105% !important; }
.paper-figure { margin:0; min-width:0; }
.paper-figure > a { display:block; }
.figure-source { display:inline-block; margin-top:6px; text-decoration:underline; text-underline-offset:3px; }
.paper-figure img { display:block; width:100%; height:auto; mix-blend-mode:multiply; }
[data-theme="dark"] .paper-figure img { filter:invert(1); mix-blend-mode:screen; }
.paper-figure figcaption, .calculation-figure figcaption { font-size:11px; color:var(--muted); line-height:1.7; margin-top:18px; }
.hero-figure { max-width:380px; width:100%; margin:0 auto; }
.hero-figure img { max-width:330px; margin:0 auto; }
.action-figure { max-width:520px; margin:32px 0 0; }
.figure-pair { display:grid; grid-template-columns:1fr 1fr; gap:40px; margin:24px 0; max-width:1000px; }
.figure-and-copy { display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:start; }
.source-note, .archive-note { font-size:11px; color:var(--muted); line-height:1.75; margin:22px 0 0; max-width:100ch; }
.source-note a { text-decoration:underline; text-underline-offset:3px; }
.table-scroll { overflow-x:auto; margin:24px 0; }
.table-scroll:focus-visible { outline:2px solid var(--ring); outline-offset:4px; }
table { width:100%; border-collapse:collapse; font-size:12px; line-height:1.6; font-variant-numeric:tabular-nums; }
caption { text-align:left; color:var(--muted); font-size:11px; margin-bottom:14px; max-width:100ch; }
th, td { padding:12px 20px 12px 0; border-bottom:1px solid var(--border); text-align:left; white-space:nowrap; }
th { color:var(--text); font-weight:500; }
thead th { border-top:1px solid var(--border); padding-top:14px; }
.result-emphasis { background:var(--surface-2); }
.result-emphasis th { padding-left:12px; }
.calculation-figure { margin:0; min-width:0; padding:22px 0 0; }
.plot { display:block; width:100%; height:auto; color:var(--text-2); }
.plot text { font:11px var(--font-sans); fill:currentColor; }
.plot-grid { stroke:var(--border); stroke-width:1; }
.plot-axis, .neutral-stroke { stroke:var(--border-strong); }
.ink { stroke:var(--project-ink); }
.ink-fill { fill:var(--project-ink); }
.deadline-chart { margin-bottom:22px; }
.range-label { display:flex; justify-content:space-between; gap:20px; font-size:11px; }
output { color:var(--text); font-variant-numeric:tabular-nums; }
input[type="range"] { width:100%; min-height:32px; accent-color:var(--project-ink); cursor:pointer; margin:13px 0 17px; }
input:focus-visible { outline:2px solid var(--ring); outline-offset:5px; }
.calculation-values { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; font-size:12px; }
.calculation-values strong { font-weight:500; font-variant-numeric:tabular-nums; }
.distribution-label { font-size:10px; color:var(--muted); margin:25px 0 12px; }
.switch-distribution { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; text-align:center; font-size:10px; }
.switch-distribution > div { display:flex; flex-direction:column; gap:5px; }
.distribution-track { display:flex; align-items:flex-end; height:40px; border-bottom:1px solid var(--border-strong); }
.distribution-track i { display:block; width:100%; background:var(--project-ink); transition:height .15s ease; }
.paper-end { display:flex; justify-content:space-between; gap:30px; align-items:center; padding:32px 0; }
.paper-end h2 { font-size:25px; margin:12px 0; max-width:38ch; }
.paper-end p { font-size:11px; margin:0; }
.paper-end .outline-link { white-space:nowrap; }
.related-work { display:grid; grid-template-columns:1fr 1fr; gap:40px; border-top:1px solid var(--border); padding-top:24px; }
.related-work a { display:flex; flex-direction:column; gap:10px; color:var(--text); font:400 23px/1.2 var(--font-serif); }
.related-work .eyebrow { font-size:9px; }
.related-work-title { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.related-work-arrow { flex:0 0 18px; }
@media (max-width:1080px) { .project-hero {gap:40px;} .figure-and-copy {gap:32px;} }
@media (max-width:760px) {
  .project-hero {grid-template-columns:1fr; gap:30px; padding:28px 0 32px;}
  .project-hero h1 {font-size:clamp(40px,7vw,53px);}
  .project-hero .subtitle {font-size:26px;}
  .hero-figure {max-width:320px; margin:0;}
  .hero-figure img {max-width:280px; margin:0;}
  .calculation-figure {max-width:520px;}
  .research-section {padding:30px 0;}
  .research-section h2 {font-size:30px;}
  .figure-and-copy, .figure-pair {grid-template-columns:1fr; gap:26px;}
  .figure-and-copy .paper-figure, .figure-pair .paper-figure {max-width:480px;}
  .paper-end {flex-direction:column; align-items:flex-start; gap:24px;}
  th, td {padding-right:18px; font-size:11px;}
}
@media (max-width:480px) {
  .section-nav {gap:12px 20px; font-size:11px;}
  .project-hero .eyebrow {font-size:10px;}
  .related-work {grid-template-columns:1fr; gap:25px;}
  .plot text {font-size:13px;}
}
