@charset "UTF-8";
:root {
  --paper: #ffffff;
  --surface: #f5f7fc;
  --ink: #202c42;
  --muted: #58657a;
  --blue: #355cbb;
  --blue-dark: #274894;
  --purple: #7b68b0;
  --line: #dce3ef;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --body: 16px;
  --small: 14px;
  --label: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-gutter: stable; }
html.modal-open { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--body)/1.7 var(--sans); }
[hidden] { display: none !important; }
p, h1, h2, h3, figure { margin: 0; }
p + p { margin-top: 16px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; line-height: 1.3; }
h2 { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.8px; text-wrap: balance; }
h3 { font-size: 20px; letter-spacing: -.3px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
code { font: .9em var(--mono); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 99; background: white; padding: 12px; }
.skip:focus { top: 12px; }

/* Navigation and hero */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px max(32px, calc((100vw - 1240px)/2)); border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 97%); position: sticky; top: 0; z-index: 10; }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; width: 210px; height: auto; aspect-ratio: 1830 / 420; }
.site-header nav { display: flex; gap: 28px; font-size: var(--small); font-weight: 500; }
.nav-paper { font-size: var(--small); color: var(--muted); }
.hero { padding-block: 52px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: var(--label); font-weight: 600; letter-spacing: 1.5px; color: var(--blue); }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--blue); margin-right: 6px; }
.hero h1 { font-size: clamp(44px, 5vw, 66px); font-weight: 700; letter-spacing: -2.5px; margin: 16px 0 20px; }
.hero h1 span { color: var(--blue); }
.paper-title { font-size: 21px; line-height: 1.5; font-weight: 500; max-width: 640px; }
.hero-summary { color: var(--muted); margin-top: 20px; }
.hero-summary em { font-style: normal; font-weight: 600; color: var(--ink); }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.button { border: 1px solid var(--line); border-radius: 7px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 16px; font-size: var(--small); font-weight: 500; background: white; transition: background .15s; }
.code-button { gap: 8px; white-space: nowrap; }
.code-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.button:hover { background: #edf2ff; }
.button.primary { background: var(--blue); border-color: var(--blue); color: white; }
.button.primary:hover { background: var(--blue-dark); }
.button.muted { border-style: dashed; color: var(--muted); background: transparent; }
.trace-art { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.art-top { display: flex; justify-content: space-between; gap: 16px; font-size: var(--label); letter-spacing: 1px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 14px; color: var(--muted); }
.art-index { color: var(--blue); }
.trace-event { display: flex; align-items: center; gap: 14px; padding: 13px 0 20px; position: relative; }
.trace-event::before { content: ''; position: absolute; top: 34px; left: 5px; bottom: -15px; border-left: 1px solid #bdcce7; }
.event-dot { width: 11px; height: 11px; border: 2px solid var(--blue); background: var(--surface); border-radius: 50%; z-index: 1; flex-shrink: 0; }
.trace-event small, .next-turn small { font-size: var(--label); letter-spacing: .5px; color: var(--muted); display: block; margin-bottom: 3px; }
.trace-event strong { font-size: var(--small); font-weight: 500; }
.event-time { font: var(--label) var(--mono); color: var(--muted); margin-left: auto; }
.cut { display: flex; align-items: center; gap: 10px; margin: 10px 0 18px; padding-top: 6px; border-top: 1px dashed #829acb; font-size: var(--label); color: var(--blue); letter-spacing: 1px; }
.cut span:last-child { margin-left: auto; font-size: 18px; }
.next-turn { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid #c7d5f0; border-radius: 8px; background: white; }
.next-marker { color: var(--blue); font-size: 24px; line-height: 1.4; }
.next-turn strong { font-size: 20px; font-weight: 600; }
.next-turn p { font-size: var(--small); color: var(--muted); margin-top: 8px; }
.art-bottom { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; font-size: var(--label); font-weight: 500; color: var(--muted); }
.art-bottom::before { content: ""; position: absolute; top: 18px; left: 16.667%; right: 16.667%; height: 1px; background: linear-gradient(90deg, #c3d1ee, #d3c9e7); }
.art-bottom li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.flow-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d3def3; border-radius: 50%; background: #fff; color: var(--blue); }
.flow-icon svg { display: block; width: 20px; height: 20px; }
.art-bottom li:nth-child(2) .flow-icon { color: #6269b2; border-color: #d9dbef; }
.art-bottom li:nth-child(3) .flow-icon { color: var(--purple); border-color: #e0d7ef; }
.contact-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; border-block: 1px solid var(--line); }
.contact-strip p { font-size: var(--small); }
.contact-strip a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.institution-logos { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.institution-logos img:first-child { width: 145px; }
.institution-logos img:last-child { width: 38px; }

/* Consistent section and text hierarchy */
.overview { padding-top: 56px; padding-bottom: 8px; }
.overview h2 { margin: 12px 0 18px; }
.lead, .section-heading > p:last-child:not(.eyebrow) { font-size: var(--body); color: var(--muted); max-width: 800px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; margin-top: 16px; border-bottom: 1px solid var(--line); }
.stats > div { border-right: 1px solid var(--line); padding-right: 12px; }
.stats > div:last-child { border: 0; }
.stats strong { display: block; font-size: 34px; line-height: 1.25; font-weight: 600; letter-spacing: -1px; color: var(--blue); font-variant-numeric: tabular-nums; }
.stats strong span { font-size: 24px; }
.stats > div > span { display: block; font-size: var(--small); font-weight: 600; margin-top: 9px; }
.stats small { display: block; font-size: var(--small); color: var(--muted); margin-top: 4px; }
details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--body); font-weight: 600; padding: 18px 0; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 22px; font-weight: 400; }
details[open] > summary > span { transform: rotate(45deg); }
.abstract > div { max-width: 950px; padding: 0 0 20px; color: var(--muted); }
.section { padding-block: 64px; }
.section-heading { max-width: 880px; }
.section-heading h2 { margin: 12px 0 18px; }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; padding: 0; margin: 32px 0; }
.method-steps li { border-top: 1px solid var(--line); padding-top: 14px; }
.step-number { font: var(--small) var(--mono); color: var(--blue); }
.method-steps h3 { margin: 12px 0; }
.method-steps p { color: var(--muted); }
.protocol { display: grid; grid-template-columns: 1fr 1.7fr; gap: 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.protocol h3 { margin-top: 8px; }
.protocol > p { color: var(--muted); }
.figure-note, .paper-figure figcaption { font-size: var(--small); color: var(--muted); line-height: 1.65; }

/* Inline figures are compact previews; the dialog shows full detail. */
.paper-figure { background: white; border: 1px solid var(--line); padding: 18px; border-radius: 10px; }
.figure-zoom { position: relative; display: block; width: 100%; padding: 0 0 30px; border: 0; border-radius: 5px; background: white; color: var(--blue); cursor: zoom-in; }
.figure-zoom img { width: 100%; object-fit: contain; }
.zoom-hint { position: absolute; bottom: 0; right: 0; font-size: var(--small); line-height: 1.5; }
.figure-zoom:disabled { cursor: default; }
.figure-zoom:disabled .zoom-hint { display: none; }
.paper-figure figcaption { margin-top: 14px; }
.figure-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.result-figure { min-width: 0; }
.result-figure .figure-zoom img { height: 175px; }
.result-figure figcaption strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }

/* Two independent chart dimensions, with shared scale and typography. */
.results-band { background: var(--surface); border-block: 1px solid var(--line); }
.result-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 30px 24px; }
.result-chart { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.chart-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: var(--small); }
.chart-controls label { font-weight: 500; }
.chart-controls select { font-size: var(--small); background: white; border: 1px solid #bdc9dc; border-radius: 6px; padding: 8px 26px 8px 10px; color: var(--ink); max-width: 100%; }
.chart-controls > span { margin-left: auto; color: var(--muted); font-size: var(--label); }
.ranking { padding-top: 24px; }
.rank-row { display: grid; grid-template-columns: 176px minmax(0, 1fr) 36px; gap: 10px; align-items: center; min-height: 43px; }
.rank-name { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.35; }
.rank-logo { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.rank-track { height: 10px; background: #eff2f8; position: relative; border-radius: 5px; }
.rank-track::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--value); background: #5c7bce; border-radius: inherit; }
#harness-ranking .rank-track::after { background: #9480be; }
.rank-value { font-size: var(--small); font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.rank-axis { display: flex; justify-content: space-between; padding-left: 186px; padding-right: 46px; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.table-details { border-block: 1px solid var(--line); }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--small); white-space: nowrap; margin-bottom: 18px; }
caption { text-align: left; padding: 4px 0 12px; color: var(--muted); }
th, td { padding: 10px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; padding-left: 0; }
thead th { font-weight: 600; }
tbody th { font-weight: 400; }
#model-results th[scope="colgroup"] { text-align: center; border-left: 1px solid var(--line); }
#model-results thead tr:nth-child(2) th:first-child { text-align: right; padding-left: 10px; }
.results-band .figure-note { margin-top: 16px; }
.findings { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.findings h3 { font-size: 24px; margin: 12px 0 16px; }
.findings p:not(.eyebrow):not(.figure-note) { color: var(--muted); }
.requirement-bars > div { display: grid; grid-template-columns: 1fr auto; font-size: var(--small); margin-bottom: 16px; gap: 8px; }
.requirement-bars strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.requirement-bars i { --bar: #5c7bce; grid-column: 1/-1; height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--bar) var(--value), #e5eaf4 var(--value)); }
.requirement-bars > div:nth-child(2) i { --bar: #7889bb; }
.requirement-bars > div:nth-child(3) i { --bar: #9480be; }
.requirement-bars > div:nth-child(4) i { --bar: #b78394; }
.validation { border-top: 1px solid var(--line); margin-top: 28px; }
.validation > div { color: var(--muted); max-width: 950px; padding-bottom: 8px; }

/* Case and resources */
.case-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 30px; align-items: start; }
.case-context { min-width: 0; padding: 24px; background: #24334e; border-radius: 10px; color: #f2f5fc; }
.case-context .eyebrow { color: #b9cdf9; }
.case-context h3 { margin-top: 14px; }
.case-context pre { font-size: var(--small); line-height: 1.8; color: #e0e7f5; margin: 22px 0; }
.case-cut { display: flex; align-items: center; gap: 10px; color: #c4d7ff; border-top: 1px dashed #7689ac; padding-top: 9px; font-size: var(--small); }
.case-context > p:last-child { font-size: var(--small); color: #c4d0e6; margin-top: 16px; }
.case-responses { min-width: 0; }
.case-switch { display: flex; gap: 5px; padding: 4px; background: #edf1f9; border-radius: 7px; margin-bottom: 24px; }
.case-switch button { flex: 1; padding: 10px 8px; border: 0; color: var(--muted); background: transparent; border-radius: 5px; font-size: var(--small); }
.case-switch button[aria-pressed="true"] { background: white; color: var(--blue); box-shadow: 0 1px 4px #24334e12; }
.response-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.response-tool { margin-top: 20px; padding: 24px; border-radius: 10px; background: #24334e; color: #e0e7f5; }
.response-tool .eyebrow { color: #b9cdf9; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.response-tool .eyebrow span { color: #f2f5fc; font-family: var(--mono); letter-spacing: 0; text-transform: none; }
.response-tool pre { margin: 18px 0 0; font-size: var(--small); line-height: 1.8; }
.score { white-space: nowrap; font-size: var(--small); padding: 4px 9px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.pass { background: #e5f1ed; color: #286b54; }
.fail { background: #f7e9ec; color: #98455d; }
.response-action { font-size: 20px; font-weight: 500; line-height: 1.5; margin-top: 22px; }
.case-response > p:not(.response-action) { color: var(--muted); margin-top: 18px; }
.judge-scores { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; }
.judge-scores strong { color: var(--blue); font-weight: 600; letter-spacing: 2px; }
.case-responses > .figure-note { margin-top: 22px; }
.case-response + .case-response { margin-top: 26px; }
.resources-band { background: var(--surface); border-top: 1px solid var(--line); }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 26px; }
.resource-item { border-top: 1px solid var(--line); padding-top: 16px; }
.resource-item > span { display: block; font-size: var(--label); letter-spacing: 1px; color: var(--muted); }
.resource-item h3 { margin: 12px 0; }
.resource-item p { color: var(--muted); }
.github-repository { margin-top: 12px; }
.citation-section { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.citation-download { margin-top: 10px; color: var(--blue); }
.citation-download a { text-decoration: underline; text-underline-offset: 3px; }
.citation { margin: 16px 0 0; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: var(--small); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
footer p, footer > a:last-child { font-size: var(--small); color: var(--muted); }

/* In-page figure viewer, including touch and keyboard controls. */
#figure-viewer { width: min(1600px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); box-shadow: 0 20px 80px #0c193b33; overflow: hidden; }
#figure-viewer[open] { display: flex; flex-direction: column; }
#figure-viewer::backdrop { background: rgb(19 30 52 / 70%); }
.viewer-toolbar { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.viewer-toolbar h2 { font-size: 18px; letter-spacing: 0; margin-right: auto; text-wrap: initial; }
.viewer-toolbar button { flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); min-height: 42px; padding: 6px 12px; font-size: var(--small); }
#figure-close { width: 44px; height: 44px; padding: 0; font-size: 30px; line-height: 1; }
.viewer-body { overflow: auto; padding: 20px; min-height: 120px; max-height: calc(100dvh - 230px); background: white; }
.viewer-body img { width: 100%; max-width: 100%; max-height: calc(100dvh - 270px); object-fit: contain; margin: auto; }
#figure-viewer.is-zoomed .viewer-body img { width: 200%; max-width: none; max-height: none; }
.viewer-caption { padding: 14px 18px; margin: 0; border-top: 1px solid var(--line); font-size: var(--small); color: var(--muted); overflow: auto; max-height: 120px; flex-shrink: 0; }

@media (max-width: 1050px) {
  .hero { gap: 28px; grid-template-columns: 1.2fr 1fr; }
  .trace-art { padding: 20px; }
  .result-charts { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 190px minmax(0, 1fr) 40px; }
  .rank-axis { padding-left: 200px; padding-right: 50px; }
  .findings, .case-layout { gap: 28px; }
  .stats small { font-size: 13px; }
  .figure-gallery { gap: 18px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 120px; }
  .wrap { width: calc(100% - 36px); }
  .site-header { padding: 12px 18px; flex-wrap: wrap; gap: 12px; }
  .site-header nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 8px; border-top: 1px solid var(--line); }
  .nav-paper { font-size: 12px; margin-left: auto; }
  .site-header .brand-logo { width: 175px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding-block: 32px; }
  .hero h1 { font-size: clamp(42px, 10vw, 56px); letter-spacing: -1.8px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .8px; }
  .paper-title { font-size: 20px; }
  .actions { gap: 8px; margin-top: 22px; }
  .button { padding: 10px 12px; gap: 10px; }
  .trace-art { width: 100%; padding: 20px; }
  .contact-strip { flex-direction: column; gap: 18px; text-align: center; }
  .contact-strip p { font-size: 14px; }
  .contact-strip a { white-space: nowrap; }
  .institution-logos img:first-child { width: 135px; }
  .institution-logos img:last-child { width: 36px; }
  .overview { padding-top: 40px; }
  h2 { font-size: 28px; letter-spacing: -.5px; }
  h2 br, .findings h3 br { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; padding: 24px 0; }
  .stats > div:nth-child(2) { border: 0; }
  .stats strong { font-size: 29px; }
  .stats > div > span { font-size: 14px; }
  .section { padding-block: 44px; }
  .method-steps, .protocol, .findings, .case-layout, .resource-grid, .figure-gallery { grid-template-columns: 1fr; }
  .method-steps { gap: 24px; margin-block: 26px; }
  .protocol { gap: 14px; }
  .paper-figure { padding: 14px; }
  .result-figure .figure-zoom img { height: auto; min-height: 90px; }
  .figure-gallery { gap: 20px; }
  .result-chart { padding: 18px 14px; }
  .chart-controls > span { flex-basis: 100%; margin-left: 0; }
  .rank-row { grid-template-columns: 156px minmax(0, 1fr) 33px; gap: 8px; min-height: 48px; }
  .rank-name { font-size: 13px; gap: 6px; }
  .rank-logo { width: 14px; height: 14px; }
  .rank-axis { padding-left: 164px; padding-right: 41px; }
  .rank-axis span:nth-child(even) { display: none; }
  .findings { gap: 24px; margin-top: 30px; }
  .findings h3 { font-size: 22px; }
  .case-context, .response-tool { padding: 20px; }
  .case-switch button { padding-inline: 4px; }
  footer { flex-wrap: wrap; gap: 14px; }
  footer p { order: 3; flex-basis: 100%; }
  #figure-viewer { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 8px; }
  .viewer-toolbar { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .viewer-toolbar h2 { font-size: 16px; flex-basis: calc(100% - 52px); order: 0; }
  #figure-close { order: 1; }
  #figure-zoom-toggle { order: 2; }
  .viewer-body { padding: 12px; max-height: calc(100dvh - 280px); }
  .viewer-body img { max-height: calc(100dvh - 310px); }
  #figure-viewer.is-zoomed .viewer-body img { width: 1100px; }
  .viewer-caption { padding: 12px; max-height: 110px; }
}
@media (max-width: 360px) {
  .rank-row { grid-template-columns: 136px minmax(0, 1fr) 32px; gap: 6px; }
  .rank-name { font-size: 12px; }
  .rank-axis { padding-left: 142px; padding-right: 38px; }
  .site-header nav { gap: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
