@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2"); font-style: normal; font-weight: 200 900; font-display: swap; }
:root { --body-size: 17px; --heading-size: 28px; --hero-size: clamp(30px, 3.8vw, 42px); --subheading-size: 23px; --header-height: 54px; --ink: #292725; --muted: #6a625b; --line: #e7e1da; --accent: #ad5736; --observation: #497eaa; --action: #ce713f; }
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: #fffefc; color: var(--ink); font: 400 var(--body-size)/1.55 "Source Sans 3", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, output, figcaption, a, p { font: inherit; }
h1, h2, h3 { margin: 0 0 14px; font-size: var(--heading-size); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
strong { font-weight: 650; }
.container { width: min(1000px, calc(100% - 48px)); margin-inline: auto; }
.page-layout { width: min(1220px, calc(100% - 64px)); margin-inline: auto; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; align-items: start; }
.page-content { min-width: 0; }
.page-content .container { width: 100%; }
.contents-sidebar { position: sticky; top: calc(var(--header-height) + 28px); padding-top: 38px; }
.page-contents { max-height: calc(100dvh - var(--header-height) - 72px); overflow: auto; }
.page-contents > summary { display: none; }
.page-contents nav { font-size: 15px; line-height: 1.4; }
.contents-title { margin: 0 0 12px 11px; font-weight: 650; color: var(--muted); }
.page-contents a { display: block; border-left: 2px solid transparent; padding: 7px 10px; text-decoration: none; border-radius: 0 3px 3px 0; }
.page-contents a:hover { background: #f7f1eb; }
.page-contents a[aria-current="location"] { color: var(--accent); border-left-color: var(--accent); background: #f7f1eb; font-weight: 600; }
.contents-subsections { padding-left: 12px; }
.contents-subsections a { color: var(--muted); }
.site-header { position: sticky; top: 0; z-index: 10; background: #fffefc; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 54px; font-size: 15px; }
@media (min-width: 1200px) {
  .site-header .container { width: min(1220px, calc(100% - 64px)); }
}
@media (max-width: 1199px) {
  html { scroll-padding-top: calc(var(--header-height) + 64px); }
  .page-layout { display: block; width: min(1000px, calc(100% - 48px)); }
  .contents-sidebar { top: var(--header-height); z-index: 9; padding-top: 0; background: #fffefc; border-bottom: 1px solid var(--line); }
  .page-contents { position: relative; max-height: none; overflow: visible; }
  .page-contents > summary { display: list-item; min-height: 44px; padding: 10px 2px; font-size: 16px; }
  .page-contents nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--header-height) - 60px); overflow: auto; padding: 0 0 12px; font-size: 16px; background: #fffefc; border-bottom: 1px solid var(--line); box-shadow: 0 10px 14px -14px #827a73; }
  .page-contents a { min-height: 44px; padding-block: 10px; }
  .contents-title { display: none; }
}
.wordmark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; text-decoration: none; }
.wordmark-icon { display: block; width: 28px; height: 28px; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; padding-block: 10px; }
.skip-link { position: fixed; left: 16px; top: -100px; background: #fff; padding: 12px 18px; z-index: 30; }
.skip-link:focus { top: 10px; }
a:focus-visible, video:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.hero { padding-top: 40px; padding-bottom: 26px; text-align: center; }
.hero h1 { max-width: 850px; margin: 0 auto 14px; font-size: var(--hero-size); line-height: 1.16; text-wrap: balance; }
.hero h1 > span { color: var(--accent); white-space: nowrap; }
.hero-lede { max-width: 820px; margin: 16px auto 0; color: #615a54; line-height: 1.55; text-wrap: balance; }
.hero-etymology { position: absolute; right: 12px; bottom: calc(var(--film-pad-bottom, 0px) * (1 - var(--film-title-fill, 0)) + 12px); z-index: 1; max-width: calc(100% - 24px); margin: 0; padding: 5px 9px; border-radius: 4px; background: rgb(41 39 37 / 88%); color: #fffefc; font-size: 14px; line-height: 1.4; text-align: right; pointer-events: none; }
.hero-reason { max-width: 920px; margin: 24px auto 0; line-height: 1.6; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin: 16px 0 24px; }
.hero-actions a { text-decoration-color: #c9b6aa; }
.video-note { color: var(--muted); font-size: 16px; }
.teaser-player { --film-body-size: calc(var(--body-size) + 2px); --film-heading-size: calc(var(--heading-size) + 2px); --film-subheading-size: calc(var(--subheading-size) + 2px); width: 100%; background: #fffefc; container-type: inline-size; }
#story-teaser { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fffefc; margin: 0; cursor: pointer; }
.teaser-controls.player-controls { background: transparent; border: 0; padding: 6px 0; margin-bottom: 8px; }
.teaser-dialog .teaser-player { max-width: 1600px; margin: auto; }
.teaser-dialog #story-teaser { max-height: calc(100dvh - 145px); }
.teaser-visual { position: relative; }
.teaser-visual.text-enhanced { --film-pad-top: 0px; --film-pad-bottom: 0px; overflow: hidden; padding-block: var(--film-pad-top) var(--film-pad-bottom); }
.text-enhanced::before { content: ""; display: block; aspect-ratio: 16 / 9; }
.text-enhanced #story-teaser { position: absolute; top: calc(var(--film-pad-top) * (1 - var(--film-title-fill, 0))); left: 0; width: 100%; height: calc(100% - (var(--film-pad-top) + var(--film-pad-bottom)) * (1 - var(--film-title-fill, 0))); object-fit: cover; max-height: none; scroll-margin-top: var(--film-pad-top); }
.text-enhanced[data-scene="title"] #story-teaser { scroll-margin-top: 0; }
.teaser-text { position: absolute; inset: 0; pointer-events: none; color: var(--ink); }
.teaser-text[hidden] { display: none; }
.film-canvas-text { position: absolute; inset: var(--film-pad-top) 0 var(--film-pad-bottom); }
.film-label { position: absolute; left: var(--x); top: var(--y); width: max-content; max-width: calc(100% - 16px); font-size: var(--film-body-size); font-weight: 400; line-height: 1.2; text-align: center; }
.film-anchor-center { transform: translate(-50%, -50%); }
.film-anchor-left { transform: translateY(-50%); text-align: left; }
.film-anchor-top-left { text-align: left; }
.film-anchor-top-right { transform: translateX(-100%); text-align: right; }
.film-heading { font-size: var(--film-heading-size); font-weight: 600; line-height: 1.25; }
.film-subheading { font-size: var(--film-subheading-size); font-weight: 600; line-height: 1.25; }
.film-observation { color: var(--observation); }
.film-action { color: var(--accent); }
.film-force { color: #2c7655; }
.film-muted { color: var(--muted); }
.film-policy, .film-speed { font-size: 18px; color: #fafcfe; }
.film-policy { font-weight: 650; }
.film-policy-chronos { color: #ffd579; }
.film-comparison-task, .film-compact { display: none; }
.film-equation { font-size: 36px; font-weight: 600; white-space: nowrap; }
.film-equation sub { font-size: 22px; font-weight: 400; }
.film-equation-morph { --eq-room: 0; --eq-reveal: 0; display: inline-flex; align-items: baseline; white-space: pre; }
.film-eq-addition { display: inline-block; flex: 0 0 auto; width: calc(var(--eq-room) * var(--eq-width, 0px)); opacity: var(--eq-reveal); text-align: left; }
.film-eq-width { display: inline-block; white-space: pre; }
.film-eq-action { color: color-mix(in srgb, var(--ink), var(--accent) calc(var(--eq-reveal) * 100%)); }
.film-eq-observation { color: color-mix(in srgb, var(--ink), var(--observation) calc(var(--eq-reveal) * 100%)); }
.film-statement { width: calc(100% - 24px); transform: translateX(-50%); line-height: 1.55; }
.film-statement > span { display: block; }
.film-context { max-width: calc(50% - 32px); padding: 9px 13px; border-radius: 6px; background: rgb(27 30 32 / 88%); color: #fff; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.film-title-card { left: 50%; top: 50%; width: calc(100% - 32px); display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fafcfe; }
.film-title { font-size: calc(var(--hero-size) + 2px); font-weight: 600; line-height: 1.16; letter-spacing: -.02em; }
.film-subtitle { font-size: var(--film-heading-size); line-height: 1.25; text-wrap: balance; }
.film-ending-card { --ink: #fafcfe; --accent: #ffd579; --observation: #a7d8f4; left: 50%; top: calc(50% + (var(--film-pad-bottom) - var(--film-pad-top)) / 2); width: calc(100% - 32px); display: flex; flex-direction: column; align-items: center; gap: 18px; color: #fafcfe; }
.film-ending-card .film-equation { position: static; transform: none; margin-block: 8px; }
.film-ending-legend { display: flex; flex-direction: column; gap: 4px; font-size: var(--film-body-size); line-height: 1.4; }
@container (max-width: 680px) {
  .teaser-visual.text-enhanced { --film-pad-top: 76px; --film-pad-bottom: 104px; }
  .film-title-card { top: calc(50% + 14px); }
  .film-ending-card { gap: 14px; }
  .film-ending-card .film-subtitle { font-size: 20px; max-width: 100%; }
  .film-main-heading { top: calc(8px - var(--film-pad-top)); transform: translateX(-50%); max-width: calc(100% - 12px); text-wrap: balance; }
  .film-issue { top: calc(46px - var(--film-pad-top)); transform: translateX(-50%); max-width: calc(100% - 16px); text-wrap: balance; }
  .film-task-label { top: calc(30.5556% - 12px); }
  .film-time { left: auto; right: 0; top: calc(66.6667% + 44px); }
  .film-modality { left: 0; }
  .film-force-label { top: 91%; }
  .film-equation { top: 0; transform: translateX(-50%); font-size: 32px; }
  .film-equation sub { font-size: 20px; }
  .film-context { top: calc(100% + 10px); left: 50%; width: calc(100% - 16px); max-width: calc(100% - 16px); transform: translateX(-50%); padding: 8px 12px; border-left: 3px solid var(--accent); background: #f7ede5; color: var(--ink); text-align: left; }
  .film-wide { display: none; }
  .film-compact { display: inline; }
  .film-comparison-task { display: block; top: calc(8px - var(--film-pad-top)); transform: translateX(-50%); }
  .film-policy { top: calc(58px - var(--film-pad-top)); transform: translate(-50%, -50%); color: var(--ink); }
  .film-policy-dp { left: 25%; }
  .film-policy-chronos { left: 75%; color: var(--accent); }
  .film-speed { top: calc(10px - var(--film-pad-top)); right: 4px; left: auto; transform: none; color: var(--muted); }
}
.section { padding-block: 42px; border-top: 1px solid var(--line); }
.section > h2 { color: var(--accent); font-size: 28px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid #ead6ca; }
.section > p { max-width: 820px; }
.section-lede { color: #554f49; }
.timing-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 22px 0; }
.timing-context p { margin: 0; padding-left: 18px; border-left: 2px solid #dfb59e; }
.timing-context strong { display: block; margin-bottom: 8px; color: var(--accent); }
.media-note { font-size: 16px; color: var(--muted); margin-bottom: 12px; }
.equation { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: .2em; margin: 28px 0; font-size: var(--heading-size); font-weight: 600; }
.equation sub { font-size: var(--body-size); font-weight: 400; }
.formulation { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 28px 0; }
.formulation .equation { margin: 0; }
.equation-before, .equation-arrow { font-size: var(--heading-size); white-space: nowrap; color: var(--muted); }
.equation-before { font-weight: 600; }
.observation { color: var(--observation); }
.action { color: var(--action); }
.method-part { margin-top: 30px; }
.formulation-part { margin-top: 0; }
.method-part > h3, .task > h3 { padding-left: 14px; border-left: 4px solid var(--accent); }
.method-part > p { max-width: 820px; }
.architecture-options { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.architecture-options[hidden] { display: none; }
.architecture-options legend { font-weight: 650; margin-bottom: 12px; }
.architecture-options label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid #c6b8ad; border-radius: 5px; cursor: pointer; }
.architecture-options label:has(:checked) { background: #f7e9df; border-color: var(--accent); }
.architecture-options input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.architecture-options label:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.architecture-result { margin-top: 20px; }
.randomization-figure { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #faf8f5; }
.randomization-figure[hidden] { display: none; }
.randomization-toolbar, .randomization-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.randomization-toolbar { justify-content: space-between; gap: 10px 24px; }
.randomization-controls { font-size: 16px; }
.randomization-controls button { min-width: 56px; }
#randomization-example { min-width: 90px; font-variant-numeric: tabular-nums; }
#randomization-plot { display: block; width: 100%; height: 246px; overflow: visible; margin: 16px 0 10px; }
.randomization-sample { transition: fill .45s ease, opacity .45s ease, r .45s ease; }
.randomization-action-window { transition: transform .5s ease; }
.randomization-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; }
.randomization-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.randomization-key { display: inline-block; width: 10px; height: 10px; flex-shrink: 0; }
.randomization-key.observation-key { border-radius: 50%; background: var(--observation); }
.randomization-key.action-key { border-radius: 2px; background: var(--accent); }
.randomization-key.delay-key { width: 15px; background: repeating-linear-gradient(135deg, #d6cec4 0 1px, #ede8e0 1px 4px); border: 1px solid #c4baae; }
.randomization-figure figcaption { display: block; margin: 12px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 680px) {
  .randomization-figure { padding: 14px 12px; }
  .randomization-controls { width: 100%; justify-content: space-between; gap: 6px; }
  .randomization-legend { gap: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .randomization-sample, .randomization-action-window { transition: none; }
}
.diagram-split { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.1fr); gap: 28px; align-items: start; }
.diagram-copy, .diagram-scroll { min-width: 0; }
.diagram-copy p:last-child { margin-bottom: 0; }
.diagram-overview[hidden], .diagram-explanation[hidden] { display: none; }
.diagram-explanation h4 { font: 650 var(--body-size)/1.55 "Source Sans 3", sans-serif; margin: 0 0 12px; }
.diagram-explanation p { margin: 0; }
.diagram-explanation { margin-top: 24px; }
.diagram-split .diagram-explanation { grid-column: 1 / -1; margin-top: 0; }
.diagram-scroll { overflow: auto; overscroll-behavior-x: contain; }
.diagram-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.diagram-stage { position: relative; }
.diagram-stage > img { display: block; width: 100%; height: auto; }
.diagram-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.diagram-hotspot { cursor: pointer; outline: none; }
.diagram-hotspot rect { fill: transparent; stroke: none; }
.diagram-hotspot:focus-visible rect { stroke: var(--accent); stroke-width: 1; }
.diagram-color-focus { display: none; }
.diagram-explorer.has-selection .diagram-stage > img { filter: grayscale(1); opacity: .28; }
.diagram-explorer.has-selection .diagram-color-focus { display: block; }
#rope-explorer .diagram-copy { margin-bottom: 26px; }
.diagram-split > img { width: 100%; height: auto; }
@media (max-width: 1000px) {
  .diagram-split { grid-template-columns: 1fr; gap: 28px; }
  .diagram-split .diagram-scroll { width: 100%; max-width: 800px; margin-inline: auto; }
}
.task { padding-top: 28px; margin-top: 30px; border-top: 1px solid #ead6ca; }
.task:first-child { padding-top: 16px; margin-top: 16px; border-top: 0; }
.task > h3 { font-size: 23px; font-weight: 650; }
.task > p { max-width: 820px; }
.comparison { margin-top: 22px; }
.comparison[hidden] { display: none; }
.timing-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.timing-tabs button { font-size: 16px; padding: 7px 12px; background: transparent; }
.timing-tabs button:hover { border-color: var(--accent); }
.timing-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.comparison:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.timing-label { margin: 0 0 14px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; }
.pair.multi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pair.multi:has(> figure:nth-child(5)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pair.multi:has(> figure:nth-child(5)) > figure { grid-column: span 2; }
.pair.multi:has(> figure:nth-child(5)) > figure:nth-child(-n+2) { grid-column: span 3; }
figure { margin: 0; min-width: 0; }
figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
figcaption { font-size: 16px; line-height: 1.4; }
.evaluation-rate { flex-basis: 100%; color: var(--muted); font-weight: 400; }
.trial-outcome { font-size: 16px; color: var(--muted); }
.trial-outcome[data-outcome="Success"], .trial-outcome[data-outcome="Full success"] { color: #2c7655; }
.trial-outcome[data-outcome="Partial success"] { color: var(--accent); }
.pair figcaption strong { flex-basis: 100%; }
.chronos figcaption strong { color: var(--accent); }
.pair video { display: block; width: 100%; height: auto; background: #f3f4f4; object-fit: contain; }
.simulation-section .comparison-player:not(:has(.pair.multi)) { max-width: 640px; }
.simulation-section .pair { gap: 20px; }
.simulation-section .pair.multi:has(> figure:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.simulation-section .pair.multi:has(> figure:nth-child(5)) > figure { grid-column: auto; }
.simulation-section .pair.multi figcaption { min-height: 112px; align-content: start; }
.pair video[role="button"] { cursor: pointer; }
.comparison-player { min-width: 0; }
.player-title { display: none; }
.player-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #faf6f1; }
.player-controls > button { flex: 0 0 44px; padding: 9px; border-color: transparent; background: transparent; }
.player-controls > .player-cycle { flex-basis: auto; padding-inline: 12px; font-size: 16px; white-space: nowrap; }
.player-controls > .player-cycle[aria-pressed="true"] { background: #ead6ca; border-color: #d6b8a2; }
.player-controls button:hover { background: #f1e5db; }
.player-controls svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.player-controls [data-icon="play"] svg { fill: currentColor; stroke: none; }
.player-controls [hidden] { display: none; }
.player-timeline { display: flex; align-items: center; gap: 14px; flex: 1 1 180px; min-width: 0; margin-inline: 6px; }
.player-timeline input { flex: 1; min-width: 40px; width: 100%; height: 44px; margin: 0; cursor: pointer; appearance: none; background: transparent; --progress: 0%; }
.player-timeline input::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--progress), #ded4ca var(--progress)); }
.player-timeline input::-moz-range-track { height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--progress), #ded4ca var(--progress)); }
.player-timeline input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border: 2px solid #fffefc; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.player-timeline input::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #fffefc; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.player-timeline input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.player-timeline output { white-space: nowrap; font-size: 16px; font-variant-numeric: tabular-nums; }
.comparison-open { overflow: hidden; }
.comparison-dialog { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 28px; border: 0; background: #fffefc; color: var(--ink); }
.comparison-dialog::backdrop { background: #fffefc; }
.comparison-dialog .comparison-player { display: flex; flex-direction: column; max-width: 1560px; margin: auto; }
.comparison-dialog .player-title { display: block; margin: 0 0 18px; font-size: 22px; font-weight: 600; color: var(--accent); }
.comparison-dialog .player-controls { order: -1; position: sticky; top: 0; z-index: 1; flex-shrink: 0; }
.comparison-dialog .teaser-player { display: flex; flex-direction: column; }
.comparison-dialog .teaser-controls { background: #fffefc; }
.comparison-dialog .pair video { max-height: calc(100dvh - 270px); min-height: 120px; }
button, select { color: inherit; background: #fffefc; border: 1px solid #d5ccc3; border-radius: 3px; min-height: 44px; padding: 6px 10px; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
.trial-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; margin-top: 12px; font-size: 16px; }
.trial-controls select { min-width: 0; width: 100%; max-width: 100%; appearance: none; -webkit-appearance: none; overflow: hidden; text-overflow: ellipsis; padding-right: 28px; background: #fffefc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%236a625b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center / 12px 12px; }
.scene-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; font-size: 16px; }
.scene-controls button { min-width: 44px; }
.paper-results { margin: 24px 0 30px; }
.paper-results a { display: block; cursor: zoom-in; }
.paper-results img { display: block; width: 100%; height: auto; }
#timing-issues { padding-block: 40px; }
#timing-issues > h2 { padding-bottom: 12px; margin-bottom: 18px; }
#timing-issues > .section-lede { margin-bottom: 12px; }
.issue-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.issue-tabs button { padding: 8px 12px; text-align: left; font-size: 17px; line-height: 1.4; }
.issue-tabs button:hover { border-color: var(--issue-color, var(--observation)); }
.issue-tabs button[aria-selected="true"] { color: #fff; background: var(--issue-color, var(--observation)); border-color: var(--issue-color, var(--observation)); font-weight: 600; }
#timing-issue-copy { max-width: 920px; min-height: 60px; margin-bottom: 0; }
.timing-issue-figure { width: 100%; max-width: 1000px; margin-inline: auto; overflow: hidden; }
#timing-issue-diagram { display: block; width: 100%; height: auto; overflow: visible; font-family: "Source Sans 3", sans-serif; }
#timing-issue-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
@media (max-width: 680px) {
  #timing-issues { padding-block: 28px; }
  .issue-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .issue-tabs button { padding: 8px 10px; font-size: 16px; }
  #timing-issue-copy { min-height: 112px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.dex-gallery.task { margin: 0; padding: 0; }
.dex-gallery .timing-tabs { margin-top: 24px; }
.dex-overview { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; align-items: start; margin-top: 28px; }
.dex-overview .paper-results { margin: 0; }
.dex-overview .paper-results figcaption { margin: 0 0 20px; font-size: 20px; }
.dex-rollouts { min-width: 0; }
.dex-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.dex-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.dex-methods button { font-size: 17px; }
.dex-methods button[aria-pressed="true"] { background: #edf3f7; border-color: #216486; color: #216486; font-weight: 650; }
.dex-methods button[data-policy="dp"][aria-pressed="true"] { background: #fff4e4; border-color: #b77b27; color: #925e16; }
.dex-gallery .comparison { margin-top: 0; }
.dex-gallery .player-controls { margin: 16px 0 0; padding: 4px 6px; background: transparent; }
.dex-toolbar .scene-controls { gap: 4px; margin: 0; }
.pair.dex-grid.multi:has(> figure:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
.pair.dex-grid.multi:has(> figure:nth-child(5)) > figure { grid-column: auto; }
.dex-grid figcaption { min-height: 92px; margin-bottom: 6px; align-content: start; }
.dex-grid video { aspect-ratio: 1; object-fit: contain; }
.comparison-dialog .dex-grid video { max-height: calc((100dvh - 340px) / 2); }
@media (max-width: 1000px) {
  .dex-overview { grid-template-columns: 1fr; gap: 28px; }
  .dex-overview .paper-results { max-width: 560px; }
}
summary { cursor: pointer; padding-block: 12px; font-weight: 600; }
button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; margin-top: 56px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 0; }
@media (max-width: 680px) {
  :root { --body-size: 16px; --heading-size: 26px; --subheading-size: 22px; }
  .container { width: calc(100% - 36px); }
  .page-layout { width: calc(100% - 36px); }
  .site-header nav { flex-wrap: wrap; gap: 0; padding-top: 4px; padding-bottom: 2px; }
  .wordmark { display: flex; align-items: center; min-height: 44px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 10px; font-size: 16px; }
  .nav-links a { min-height: 44px; }
  .hero { padding-top: 28px; }
  h1, h2, h3 { margin-bottom: 14px; }
  .section { padding-block: 32px; }
  .section > h2 { font-size: 26px; }
  .timing-context { grid-template-columns: 1fr; gap: 18px; }
  .task > h3 { font-size: 22px; }
  .task { padding-top: 28px; margin-top: 28px; }
  .pair, .pair.multi { grid-template-columns: 1fr; gap: 28px; }
  .pair.multi:has(> figure:nth-child(5)) { grid-template-columns: 1fr; }
  .pair.multi:has(> figure:nth-child(5)) > figure,
  .pair.multi:has(> figure:nth-child(5)) > figure:nth-child(-n+2) { grid-column: auto; }
  .simulation-section .pair, .simulation-section .pair.multi:has(> figure:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .simulation-section .pair.multi figcaption { min-height: 72px; }
  .comparison { margin-top: 22px; }
  .player-controls { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) 44px; gap: 0; padding: 8px; }
  .player-timeline { display: contents; }
  .player-timeline input { grid-row: 2; grid-column: 1 / -1; }
  .player-timeline output { grid-row: 1; grid-column: 3; text-align: right; padding-right: 10px; }
  .player-expand { grid-row: 1; grid-column: 4; }
  .player-controls > .player-cycle { grid-row: 3; grid-column: 1 / -1; margin-top: 6px; }
  .comparison-dialog { padding: 18px; }
  .equation { justify-content: flex-start; margin-block: 30px; }
  .formulation { display: flex; flex-wrap: nowrap; align-items: baseline; gap: clamp(6px, 1.8vw, 12px); font-size: clamp(20px, 5.6vw, 26px); }
  .formulation > * { flex: 0 0 auto; }
  .formulation .equation { flex-wrap: nowrap; gap: .12em; font-size: inherit; white-space: nowrap; }
  .formulation .equation sub { font-size: .65em; }
  .equation-before, .equation-arrow { display: inline-block; font-size: inherit; }
  .equation-arrow { transform: none; margin: 0; }
  .method-part { margin-top: 28px; }
  .formulation-part { margin-top: 0; }
  .diagram-stage { min-width: var(--diagram-min-width); }
  footer { margin-top: 40px; }
  .pair.dex-grid.multi:has(> figure:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .dex-gallery .timing-tabs button { flex: 1 1 130px; padding-inline: 8px; line-height: 1.35; }
  .dex-grid figcaption { min-height: 112px; }
  .comparison-dialog .dex-grid video { max-height: none; }
}
@supports (grid-template-rows: subgrid) {
  .pair > figure { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; align-items: start; }
  .pair > figure:has(.trial-controls) { grid-row: span 3; }
  .pair figcaption, .simulation-section .pair.multi figcaption, .dex-grid figcaption { min-height: 0; align-content: start; }
}
