/* PixelProof site. One stylesheet for every page.
   White page, system font, one type scale, one left edge, one accent colour. */

:root {
  --ink: #16181d;
  --muted: #5b6270;
  --rule: #ddd8cc;
  --bg: #f4f1e9;
  --title: #245bc4;
  --line: #c9cdd4;
  --wash: #f6f7f9;
  --accent: #1d4ed8;
  --ok: #12704b;
  --no: #b13d40;
  --text: 44rem;   /* width of running text */
  --wide: 66rem;   /* width of the page */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); letter-spacing: -.012em; }
h2 { font-size: 1.45rem; letter-spacing: -.008em; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
p, ul, ol { margin: 0 0 1em; }
p, li, blockquote, figcaption, dd { max-width: var(--text); }
ul, ol { padding-left: 1.2rem; }
blockquote { margin: 0 0 1em; padding: 0; }
strong, b { font-weight: 600; }
small { font-size: .85em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .4rem .6rem; z-index: 10; }

/* small grey text, used for notes and labels everywhere */
.small-note, .small-label, .eyebrow, .lead, figcaption, .table-scroll-hint,
.sample-category, .inverse-code-label, .bl-kicker, .hard-kicker, .support-measurement, .support-caveat { color: var(--muted); }
.small-note, figcaption, .table-scroll-hint, .support-caveat { font-size: .9rem; }
.small-label, .sample-category, .inverse-code-label, .bl-kicker, .hard-kicker, .support-measurement {
  display: block; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .3rem;
}

/* ---------- page frame: every block starts at the same left edge ---------- */
.wrap, .container, .site-width, main.support-gallery, .inverse-wrap {
  max-width: var(--wide); margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem;
}
.container .container, .wrap .wrap, .container .inverse-wrap { padding-left: 0; padding-right: 0; }

.nav { border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.4rem; padding-top: .9rem; padding-bottom: .9rem; }
.nav .name { font-weight: 600; color: var(--ink); margin-right: auto; }
.nav a { color: var(--muted); font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: none; }
footer { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 1.5rem 0 3rem; color: var(--muted); font-size: .9rem; }

/* page header on the detail pages */
.reading-page-intro, .steering-hero, .inverse-hero, main.support-gallery > header { padding: 2.5rem 0 .5rem; }
.reading-page-intro h1, .steering-hero h1, .inverse-hero h1, main.support-gallery > header h1 { margin: .6rem 0 .9rem; }
.reading-page-intro > .container > a:first-child, .back-link, .inverse-hero > p:first-child a { font-size: .9rem; color: var(--muted); }
.reading-page-intro h2 { margin: 2rem 0 .8rem; }

/* sections */
main section, .section { padding: 2.5rem 0; }
main > section + section, main > header + section, main > .reading-page-intro + .reading-page-intro,
.section + .section, article.result-study + article.result-study { border-top: 1px solid var(--rule); }
.section-intro { margin-bottom: 1.25rem; }
.section-intro h2, main section > .container > h2, main section > .wrap > h2 { margin-bottom: .8rem; }
.section-intro .eyebrow, .result-study > .eyebrow { display: none; }
main h3 { margin: 1.5rem 0 .5rem; }

/* in-page link rows */
.page-contents, .results-nav, .inverse-jump { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .92rem; margin: 1rem 0 0; }
.results-nav { margin: 0 0 2rem; }
.text-link, .chapter-link, .inverse-summary-button { display: inline-block; margin-top: .75rem; }

/* ---------- shared pieces ---------- */
.button, button.bl-toggle, .gallery-sentinel button, main button:not([class]), .quiz-navigation button,
.dialog-heading button, .sample-buttons button, #option-buttons button, .support-filters button {
  font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; display: inline-block;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: .4rem .85rem;
}
.button:hover, button.bl-toggle:hover, main button:not([class]):hover, .quiz-navigation button:hover,
.dialog-heading button:hover, #option-buttons button:hover, .support-filters button:hover { border-color: var(--ink); text-decoration: none; }
.button.is-dark, [aria-pressed="true"]:is(.button, .bl-toggle), main button:not([class])[aria-selected="true"],
main button:not([class])[aria-pressed="true"], .sample-buttons button[aria-pressed="true"],
#option-buttons button[aria-pressed="true"], .support-filters button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.text-button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.text-button:hover { text-decoration: underline; }

details { margin: 1rem 0; }
details > summary { cursor: pointer; color: var(--accent); }
details[open] > summary { margin-bottom: .6rem; }
.paper-details { border-top: 1px solid var(--rule); padding-top: .8rem; }

pre { background: var(--wash); border: 1px solid var(--rule); border-radius: 4px; padding: .9rem 1rem; margin: .6rem 0; overflow: auto; font: .82rem/1.55 var(--mono); color: var(--ink); max-height: 28rem; }
code { font-family: var(--mono); font-size: .9em; }
pre code { font-size: inherit; }

figure { margin: 1.5rem 0; }
figcaption { margin-top: .5rem; }

.paper-table { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
caption { caption-side: top; text-align: left; font-weight: 600; padding: 0 0 .5rem; }
th, td { padding: .42rem .7rem; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: top; white-space: nowrap; }
th { font-weight: 600; white-space: normal; }
thead th { border-bottom-color: var(--ink); }
tr > :first-child { text-align: left; padding-left: 0; }
td.delta-positive { color: var(--ok); font-weight: 600; }
td.delta-negative { color: var(--no); font-weight: 600; }
.delta-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .85rem; margin: .8rem 0; }
.delta-legend .up, .ok, .status-match { color: var(--ok); }
.delta-legend .down, .no, .status-mismatch { color: var(--no); }

/* answer choices shown as a plain row */
.bl-options, .photo-options, .hard-options { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; }
.bl-options span, .photo-options span, .hard-options span { border: 1px solid var(--line); border-radius: 4px; padding: .1rem .6rem; font-size: .9rem; }

/* a plain emphasised statement */
.finding, .steering-callout { border-left: 3px solid var(--ink); padding: .1rem 0 .1rem 1rem; margin: 1.25rem 0; }
.finding p, .steering-callout p { margin: .3rem 0 0; }

/* ---------- homepage ---------- */
.hero { position: relative; padding: 1rem; overflow: hidden; }
.question-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: .6rem; }
.mosaic-tile { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--rule); background: #fff; overflow: hidden; }
.mosaic-tile:hover { border-color: var(--ink); }
.mosaic-tile img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.mosaic-tile span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.head { text-align: center; }
.hero .head {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(50rem, calc(100% - 2rem)); padding: 2rem 2rem 2.1rem; background: var(--bg); box-shadow: 0 0 2rem 2rem var(--bg);
}
.head h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
.head h1 { color: var(--title); }
.head h1 span { display: block; font-size: .62em; font-weight: 500; color: var(--title); letter-spacing: 0; margin-top: .45rem; }
.authors { list-style: none; padding: 0; margin: 1.6rem 0 .4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.3rem; }
.authors li { max-width: none; }
.authors sup, .affil sup { color: var(--muted); font-size: .7em; }
.affil { color: var(--muted); font-size: .95rem; margin: 0 auto; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.links a, .links span { display: inline-flex; align-items: center; gap: .55rem; height: 42px; padding: 0 22px; background: #fff; border: 1px solid #dbdbdb; border-radius: 4px; font-size: 14px; font-weight: 500; color: #363636; }
.links a:hover { border-color: #b5b5b5; color: #363636; text-decoration: none; }
.links img { width: 20px; height: 20px; }
.how { padding-left: 1.3rem; margin: .8rem 0 0; }
.how li { margin-bottom: .2rem; }
.takeaways { padding-left: 1.3rem; margin: 0; }
.takeaways li { margin-bottom: .7rem; }
.homepage .catch-figure { margin-top: 1.5rem; }
.homepage .catch-panel { background: #fff; }
.more-link { display: inline-block; padding: .45rem 1rem; background: #fff; border: 1px solid #d5cfc1; border-radius: 4px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.more-link:hover { border-color: #a9a292; text-decoration: none; }
.tldr { font-size: 1.2rem; margin: 0 0 .8rem; }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: .35rem; }
.card-reveal { all: unset; box-sizing: border-box; cursor: pointer; align-self: flex-start; padding: .4rem .9rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 500; }
.card-reveal:hover { background: var(--accent); }
.card-reveal[data-shown] { background: #e9f6ef; color: #12704b; font-weight: 600; cursor: default; }
.card-reveal:focus-visible, .card-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-more { all: unset; cursor: pointer; align-self: flex-start; font-size: .85rem; color: var(--accent); }
.card-more:hover { text-decoration: underline; }
.homepage figure figcaption { max-width: none; }
.example-grid .world-item { background: #fff; border: 1px solid #cfc9bb; border-radius: 8px; padding: .9rem; gap: .7rem; box-shadow: 0 2px 8px rgba(40, 35, 20, .06); }
.example-grid .world-card { flex: 1; gap: .6rem; }
.example-grid .world-card img { border: 0; margin: 0; }
.links span { border-color: var(--rule); color: var(--muted); }
.hero-note { text-align: center; color: var(--muted); font-size: .85rem; margin: .8rem auto 0; }
.homepage main > section { border-top: 1px solid var(--rule); }
.homepage main > section.video { border-top: 0; padding-top: 1.75rem; }
.homepage main > section h2 { margin-bottom: 1rem; }
.video video { display: block; width: 100%; max-width: 44rem; height: auto; margin: 0 auto; border: 1px solid var(--rule); background: #000; }
.points li { margin-bottom: .6rem; }
.row { display: grid; gap: .75rem; grid-template-columns: repeat(4, 1fr); margin-top: 1.5rem; }
.row figure { margin: 0; }
.row img { border: 1px solid var(--rule); aspect-ratio: 1; object-fit: cover; width: 100%; }
pre.bib { max-width: var(--text); }

/* ---------- question gallery and quiz dialog ---------- */
.loading-state, .notification, .empty-state { color: var(--muted); padding: 1rem 0; }
.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: .75rem; margin: 1.25rem 0 .75rem; }
.filter-bar label span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.filter-bar input, .filter-bar select { width: 100%; font: inherit; font-size: .95rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.explorer-status { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.explorer-status p { margin: 0; }
.world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem 1.25rem; }
.example-grid.world-grid { grid-template-columns: repeat(3, 1fr); }
.world-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; }
.world-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid var(--rule); margin-bottom: .35rem; }
.world-card:hover img { border-color: var(--ink); }
.world-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-title { font-weight: 600; font-size: .98rem; }
.world-item { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.card-details summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
.card-details p { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }
details.fold > summary { cursor: pointer; }
details.fold > summary h2 { display: inline; margin: 0; }
details.fold[open] > summary { margin-bottom: 1rem; }
.card-type { font-size: .8rem; color: var(--muted); }
.card-question { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-open, .homepage .card-type, .gallery-invitation { display: none; }
.gallery-sentinel { text-align: center; color: var(--muted); font-size: .9rem; padding: 1.5rem 0; }
.gallery-sentinel p { margin: 0 auto .6rem; }

dialog { border: 1px solid var(--rule); border-radius: 6px; padding: 0; color: var(--ink); background: #fff; }
dialog::backdrop { background: rgba(15, 18, 25, .55); }
.quiz-dialog { width: min(68rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); }
.quiz-toolbar, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; border-bottom: 1px solid var(--rule); font-size: .9rem; color: var(--muted); }
.quiz-navigation { display: flex; gap: .4rem; }
.quiz-dialog > .loading-state, .quiz-error { padding: 2rem 1.25rem; }
.question-viewer { padding: 1rem 1.25rem 1.5rem; }
.viewer-topline { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.replay-label { color: var(--ok); }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.image-stage { all: unset; cursor: zoom-in; display: block; position: relative; border: 1px solid var(--rule); width: 100%; box-sizing: border-box; }
.image-stage img { width: 100%; max-height: 68vh; object-fit: contain; }
.enlarge-hint { position: absolute; right: .5rem; bottom: .5rem; font-size: .75rem; background: rgba(255,255,255,.9); border: 1px solid var(--rule); padding: .1rem .4rem; border-radius: 3px; color: var(--muted); }
.sample-controls { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.sample-buttons { display: flex; gap: .3rem; }
.sample-buttons button { padding: .2rem .6rem; }
.image-note { display: none; }
.world-tags { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
#world-title { font-size: 1.3rem; margin: 0 0 1rem; }
#question-text { margin: 0 0 1.25rem; font-size: 1.02rem; }
.quiz-options { border: 0; padding: 0; margin: 0 0 1rem; }
.quiz-options legend { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: .4rem; }
#option-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.choice-status { font-size: .9rem; color: var(--muted); min-height: 1.4em; margin: 0 0 .6rem; }
.choice-status[data-match="true"] { color: var(--ok); }
.choice-status[data-match="false"] { color: var(--no); }
.answer-controls { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.answer-box { border-left: 3px solid var(--ok); padding: .1rem 0 .1rem .9rem; margin-bottom: 1rem; }
.answer-box strong { font-size: 1.25rem; }
.answer-box p { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
.copy-status { font-size: .85rem; color: var(--muted); margin: 0; }
.source-details { border-top: 1px solid var(--rule); padding-top: .8rem; font-size: .9rem; color: var(--muted); }
.source-links { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.record-id { font-family: var(--mono); font-size: .75rem; word-break: break-all; }
#image-dialog { width: min(72rem, calc(100vw - 2rem)); }
.dialog-heading h2 { font-size: 1rem; }
#dialog-image { width: 100%; max-height: 78vh; object-fit: contain; }
#dialog-question { padding: .8rem 1rem; margin: 0; max-width: none; border-top: 1px solid var(--rule); font-size: .95rem; }

/* ---------- spatial patterns ---------- */
.category-matrix { display: grid; grid-template-columns: 8rem repeat(3, minmax(0, 1fr)); gap: .5rem; max-width: 46rem; margin: 1.25rem 0; align-items: end; }
.matrix-corner { font-size: .7rem; letter-spacing: .05em; color: var(--muted); }
.column-label, .row-labels span { font-weight: 600; font-size: .95rem; }
.column-label { text-align: center; }
.column-label small, .row-labels small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }
.row-labels { grid-column: 1; display: grid; grid-template-rows: repeat(3, 1fr); gap: .5rem; align-self: stretch; align-items: center; }
.category-cells { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.category-cell { font: inherit; font-size: .8rem; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: .6rem .4rem .5rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.category-cell svg { width: 3.4rem; height: 3.4rem; color: var(--muted); }
.category-cell .glyph-field { fill: none; stroke: none; }
.category-cell:hover { border-color: var(--ink); }
.category-cell[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.category-cell[aria-pressed="true"] svg { color: var(--ink); }
.category-panel { padding: 1rem 0 0; border: 0; }
.steering-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.steering-sample img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--rule); }
.steering-sample h3 { margin: .7rem 0 .3rem; font-size: 1rem; }
.steering-sample .sample-category { margin-top: .7rem; }
.steering-sample .sample-category + h3 { margin-top: 0; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; max-width: var(--text); }

/* spatial-pattern gallery */
.support-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.5rem 0 2.25rem; max-width: 46rem; }
.support-filters button { text-align: left; }
.support-filters small { display: block; font-size: .72rem; opacity: .75; }
.support-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
.support-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--rule); }
.support-card h3 { font-size: 1rem; margin: .6rem 0 .4rem; }
.support-card details, .support-card a { font-size: .88rem; }

/* ---------- programs ---------- */
.example-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.instance-strip, .stress-grid, .bl-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.instance-strip figure, .bl-shot { margin: 0; }
.instance-strip img, .stress-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--rule); }
.stress-grid h3 { font-size: 1rem; margin: .6rem 0 .2rem; }
.stress-grid p { margin: 0; }
.status-match, .status-mismatch { font-size: .9rem; font-weight: 600; }
.program-columns, .inverse-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 1rem 0; align-items: start; }
.program-columns h4 { margin: 0 0 .3rem; }
.program-example > blockquote { margin: 1rem 0; }

.catch-figure { margin: 1.25rem 0; }
.catch-layout { display: grid; grid-template-columns: minmax(0, 3.2fr) auto minmax(0, 1.15fr); gap: .9rem; align-items: stretch; }
.catch-panel { border: 1px solid var(--rule); border-radius: 4px; padding: 1rem; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.catch-question { margin: 0; color: var(--muted); font-size: .95rem; }
.catch-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.catch-stop .catch-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.catch-steps li, .catch-fixed { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.catch-steps img, .catch-fixed img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--rule); }
.catch-steps span, .catch-fixed span { font-size: .8rem; line-height: 1.35; color: var(--muted); text-align: center; }
.catch-steps b { margin-right: .3rem; color: var(--ink); }
.catch-verdict { margin: auto 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; font-size: .92rem; }
.catch-sign { font-size: 1.2rem; font-weight: 700; }
.catch-verdict em { flex-basis: 100%; font-style: normal; font-weight: 600; font-size: .82rem; }
.catch-verdict.is-fail :is(.catch-sign, em) { color: var(--no); }
.catch-verdict.is-pass :is(.catch-sign, em) { color: var(--ok); }
.catch-arrow { margin: 0; display: flex; align-items: center; justify-content: center; }
.catch-arrow span { font-size: .75rem; font-weight: 600; color: var(--muted); text-align: center; max-width: 5.5rem; line-height: 1.3; }
.catch-arrow span::after { content: "→"; display: block; font-size: 1.4rem; line-height: 1.1; }
.catch-stop .catch-verdict { margin-top: .9rem; }

.inverse-example { padding: 1.75rem 0 0; margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.inverse-example > header { display: flex; gap: .8rem; align-items: baseline; }
.inverse-example > header h3 { margin: 0 0 .2rem; }
.inverse-number { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.inverse-columns figure { margin: 0; }
.inverse-columns img { width: 100%; border: 1px solid var(--rule); }
.inverse-flow { font-weight: 600; }

/* ---------- results ---------- */
.result-study { padding: 2.25rem 0; }
.result-study > h2 { margin-bottom: .8rem; }
.stat-row { margin: 1rem 0; padding: 0; }
.stat-row > div { margin: 0 0 .2rem; }
.stat-row strong { margin-right: .4rem; }
.training-flow { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin: 1.25rem 0; }
.training-flow > div { flex: 1 1 14rem; border: 1px solid var(--rule); border-radius: 4px; padding: .8rem 1rem; }
.training-flow p { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); }
.training-flow > span { color: var(--muted); }
.inverse-summary { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* ---------- 3D scenes, photographs, hard questions ---------- */
.bl-card, .photo-world, .hard-card { padding: 1.75rem 0 0; margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.bl-card h2, .hard-card h2 { font-size: 1.15rem; margin: 0 0 .7rem; max-width: var(--text); }
.photo-world h3 { margin: 0 0 .3rem; }
.bl-frame { position: relative; border: 1px solid var(--rule); }
.bl-frame img { width: 100%; }
.bl-overlay { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; pointer-events: none; }
.bl-reveal { display: none; font-size: .9rem; }
.bl-card.is-measured .bl-overlay { opacity: 1; }
.bl-card.is-measured .bl-reveal { display: block; }
.bl-answer { margin: 0 0 .3rem; }
.bl-code { max-height: 26rem; }
.bl-note, .photo-note, .hard-note { color: var(--muted); font-size: .92rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.photo-pair { margin: 0; }
.photo-images { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border: 1px solid var(--rule); background: var(--rule); }
.photo-images a { position: relative; display: block; }
.photo-images img { width: 100%; }
.photo-images span { position: absolute; left: .3rem; bottom: .3rem; font-size: .7rem; background: rgba(255,255,255,.9); padding: 0 .35rem; border-radius: 3px; color: var(--ink); }
.hard-card { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1rem 2rem; }
.hard-image img { width: 100%; border: 1px solid var(--rule); }
.hard-anim { grid-column: 1 / -1; }

/* animation player keeps its own design; only its outer frame is flattened */
.ppa.ppa.ppa { box-shadow: none; border-radius: 4px; border: 1px solid var(--rule); }
.ppa p, .ppa li, .ppa figcaption { max-width: none; }

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
  .question-mosaic { grid-template-columns: repeat(8, 1fr); }
  .mosaic-tile:nth-child(n+49) { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  main section, .section { padding: 2rem 0; }
  .question-mosaic { grid-template-columns: repeat(4, 1fr); }
  .mosaic-tile:nth-child(n+9) { display: none; }
  .hero .head { position: static; transform: none; width: auto; box-shadow: none; padding: 1.75rem 0 .5rem; }
  .row, .support-cards, .example-grid.world-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .viewer-body, .program-columns, .inverse-columns, .steering-samples, .rule-grid, .catch-layout, .hard-card,
  .instance-strip, .stress-grid, .bl-shots { grid-template-columns: 1fr; }
  .catch-steps, .catch-stop .catch-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catch-arrow span { max-width: none; }
  .catch-arrow span::after { content: "↓"; }
  .category-matrix { grid-template-columns: 5rem repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .example-grid.world-grid { grid-template-columns: 1fr; }
}

/* small corrections */
main h4 { margin: 1.25rem 0 .4rem; }
.table-scroll-hint { display: none; }
@media (max-width: 760px) { .table-scroll-hint { display: block; } }
.program-columns > *, .inverse-columns > *, .hard-card > *, .viewer-body > * { min-width: 0; }
:is(.bl-card, .hard-card, .photo-world, .inverse-example):first-child { border-top: 0; margin-top: 0; padding-top: 0; }

#tldr p, #tldr ol { max-width: none; }
.homepage .catch-figure figcaption { text-align: center; }
.head h1 span { color: var(--ink); }
.takeaways a { color: var(--muted); font-size: .9rem; }
.gain { color: #12704b; font-weight: 600; }
.takeaways strong { display: block; }
.takeaways a { white-space: nowrap; }
.tldr { background: #fff; border: 1px solid #d5cfc1; border-left: 5px solid var(--title); border-radius: 6px; padding: 1.1rem 1.4rem; margin: 0 0 1.3rem; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.4; box-shadow: 0 2px 10px rgba(40, 35, 20, .07); }
.tldr strong { color: var(--title); }
.card-more { color: var(--muted); }
.takeaways, .takeaways li { max-width: none; }
.tldr { border-left: 1px solid #d5cfc1; font-style: italic; }
.takeaways a, .card-more { text-decoration: underline; text-underline-offset: 2px; }

/* one question, many variations */
.var-key { max-width: none; background: #fff; border: 1px solid #d5cfc1; border-radius: 6px; padding: .8rem 1.1rem; font-weight: 500; }

/* 3D scenes and photographs: looping pipelines */
.pipes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pipe { margin: 0; background: #fff; border: 1px solid #d5cfc1; border-radius: 8px; padding: 1.1rem; box-shadow: 0 2px 8px rgba(40, 35, 20, .06); }
.homepage .pipe figcaption { color: var(--ink); font-size: .95rem; margin: 0 0 1rem; }
.pipe figcaption strong { display: block; font-size: 1.05rem; }
.pipe-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .8rem; align-items: center; }
.pipe-box { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.pipe-box img, .pipe-box pre { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); border-radius: 4px; margin: 0; }
.pipe-box > span { font-size: .8rem; color: var(--muted); text-align: center; }
.pipe-code pre { background: #1f2430; color: #e6e9ef; padding: .8rem; font-size: clamp(.55rem, 1vw, .72rem); line-height: 1.7; overflow: hidden; white-space: pre; }
.pipe-code code { background: none; color: inherit; padding: 0; font-size: inherit; }
.pipe-code code span { display: inline-block; overflow: hidden; white-space: pre; vertical-align: bottom; max-width: 100%; animation: pipe-type 9s steps(30, end) infinite both; }
.pipe-code code span:nth-child(2) { animation-name: pipe-type2; }
.pipe-code code span:nth-child(3) { animation-name: pipe-type3; }
.pipe-code code span:nth-child(4) { animation-name: pipe-type4; }
.pipe-code code span:nth-child(5) { animation-name: pipe-type5; }
.pipe-arrow { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; color: var(--ink); animation: pipe-arrow 9s ease infinite both; }
.pipe-arrow img { width: 26px; height: 26px; }
.pipe-arrow i { display: block; width: 3.2rem; height: 2px; background: var(--ink); position: relative; margin-top: .2rem; }
.pipe-arrow i::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 8px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.pipe-out img { animation: pipe-out 9s ease infinite both; }
.pipe-q { color: var(--muted); font-size: .92rem; margin: .9rem 0 0; text-align: center; max-width: none; }
@keyframes pipe-arrow { 0%, 30% { opacity: 0; transform: translateX(-10px); } 40%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes pipe-out { 0%, 46% { opacity: 0; filter: blur(8px); transform: scale(.96); } 62%, 94% { opacity: 1; filter: none; transform: none; } 100% { opacity: 0; } }
@keyframes pipe-type  { 0% { max-width: 0; } 5%, 100% { max-width: 100%; } }
@keyframes pipe-type2 { 0%, 5% { max-width: 0; } 11%, 100% { max-width: 100%; } }
@keyframes pipe-type3 { 0%, 11% { max-width: 0; } 18%, 100% { max-width: 100%; } }
@keyframes pipe-type4 { 0%, 18% { max-width: 0; } 24%, 100% { max-width: 100%; } }
@keyframes pipe-type5 { 0%, 24% { max-width: 0; } 30%, 100% { max-width: 100%; } }
@media (max-width: 760px) { .pipes { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pipe-arrow, .pipe-out img, .pipe-code code span { animation: none; } }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.card-reveal { background: #fff; color: var(--ink); border: 1px solid #cfc9bb; padding: .35rem .85rem; }
.card-reveal:hover { background: #fff; border-color: #8f8877; }
.card-reveal[data-shown] { border-color: #b9dcc9; }
.card-more { font-style: italic; color: #8b8f98; align-self: center; }

/* one question, many variations: forward / image / inverse flow */
.gv { background: #fff; border: 1px solid #d5cfc1; border-radius: 8px; padding: 1.3rem; margin-top: 1rem; box-shadow: 0 2px 8px rgba(40, 35, 20, .06); --fwd: #b65b25; --inv: #285bd4; }
.gv-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.gv-q { margin: 0; color: var(--muted); font-size: 1.05rem; }
.gv-pick { display: flex; gap: .4rem; }
.gv .gv-pick button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: row; align-items: center; gap: .4rem; padding: .2rem .65rem .2rem .2rem; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); background: #fff; }
.gv .gv-pick button img { width: 32px; height: 32px; object-fit: contain; border-radius: 3px; }
.gv .gv-pick button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--wash); }
.gv .gv-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gv-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1.15fr); column-gap: .9rem; row-gap: .5rem; align-items: start; }
.gv-fwd { grid-area: 1 / 1; } .gv-r1 { grid-area: 1 / 2; } .gv-img { grid-area: 1 / 3; } .gv-r2 { grid-area: 1 / 4; } .gv-inv { grid-area: 1 / 5; }
.gv-d1 { grid-area: 2 / 1; } .gv-d2 { grid-area: 2 / 5; }
.gv-a1 { grid-area: 3 / 1; } .gv-r3 { grid-area: 3 / 2; } .gv-match { grid-area: 3 / 3; } .gv-r4 { grid-area: 3 / 4; } .gv-a2 { grid-area: 3 / 5; }
.gv-col { min-width: 0; }
.gv-col h3 { font-size: 1.05rem; font-weight: 600; margin: 0; padding-bottom: .45rem; border-bottom: 2px solid #cfc9bb; }
.gv-fwd h3 { color: var(--fwd); border-color: var(--fwd); }
.gv-inv h3 { color: var(--inv); border-color: var(--inv); }
.gv-sub, .gv-step { font-size: .85rem; color: var(--muted); margin: .5rem 0 .6rem; }
.gv-step { color: var(--ink); font-weight: 600; margin-top: .8rem; }
.gv-scene { margin: 0; background: #fff4e9; border-radius: 4px; padding: .5rem .75rem; font-family: var(--mono); font-size: .82rem; }
.gv-scene div { display: flex; justify-content: space-between; padding: .15rem 0; color: #7a5a44; }
.gv-scene dt, .gv-scene dd { margin: 0; }
.gv-scene .hot { color: var(--fwd); font-weight: 700; }
.gv-fwd code { display: block; margin-top: .7rem; font-size: .8rem; color: var(--fwd); background: none; padding: 0; }
.gv-view { position: relative; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.gv-view img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.gv-view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gv-crop, .gv-trace { display: block; width: 100%; border: 1px solid var(--rule); border-radius: 4px; }
.gv-trace { background: #f3f6fc; }
.gv-arrow, .gv-down { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: center; text-align: center; color: var(--muted); font-size: .75rem; font-weight: 600; line-height: 1.2; }
.gv-arrow span { max-width: 4.5rem; }
.gv-arrow b, .gv-down { font-size: 1.7rem; font-weight: 400; line-height: 1; color: #8b8f98; }
.gv-r1 b, .gv-d1, .gv-r3 b { color: var(--fwd); }
.gv-r2 b, .gv-d2, .gv-r4 b { color: var(--inv); }
.gv-ans, .gv-match { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border-radius: 6px; padding: .7rem; text-align: center; }
.gv-ans span, .gv-match span { font-size: .8rem; color: var(--muted); }
.gv-ans strong, .gv-match strong { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.gv-a1 { background: #fff4e9; } .gv-a1 strong { color: var(--fwd); }
.gv-a2 { background: #eef4ff; } .gv-a2 strong { color: var(--inv); }
.gv-match { background: #e9f6ef; } .gv-match strong { color: #12704b; } .gv-match strong span { font-size: inherit; color: inherit; } .gv-match i { font-style: normal; }
@media (max-width: 820px) {
  .gv-grid { grid-template-columns: 1fr; }
  .gv-grid > * { grid-area: auto; }
  .gv-fwd { order: 1; } .gv-d1 { order: 2; } .gv-a1 { order: 3; } .gv-r1 { order: 4; } .gv-img { order: 5; } .gv-r2 { order: 6; } .gv-inv { order: 7; } .gv-d2 { order: 8; } .gv-a2 { order: 9; } .gv-r3 { display: none; } .gv-r4 { order: 10; } .gv-match { order: 11; }
  .gv-arrow b { transform: rotate(90deg); } .gv-r4 b { transform: rotate(-90deg); }
}
.homepage .gallery-sentinel { margin-top: 1.5rem; }
.homepage #load-more { cursor: pointer; font: inherit; font-size: .9rem; font-weight: 500; }
/* title: slow, wide fade into the question mosaic */
.hero .head { background: none; box-shadow: none; isolation: isolate; }
.hero .head::before { content: ""; position: absolute; inset: -11rem -17rem; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse closest-side, var(--bg) 0%, var(--bg) 60%, rgba(244, 241, 233, .93) 68%, rgba(244, 241, 233, .75) 77%, rgba(244, 241, 233, .45) 87%, rgba(244, 241, 233, .15) 95%, rgba(244, 241, 233, 0) 100%); }
@media (max-width: 760px) { .hero .head::before { display: none; } }
.takeaways a, .card-more { text-decoration-color: rgba(91, 98, 112, .35); text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
.takeaways a:hover, .card-more:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* gv: connected arrows, distinct scene colour */
.gv { --scene: #5b6472; }
.gv-grid { column-gap: 0; row-gap: 0; }
.gv-a1 { grid-area: 2 / 1; } .gv-r3 { grid-area: 2 / 2; } .gv-match { grid-area: 2 / 3; } .gv-r4 { grid-area: 2 / 4; } .gv-a2 { grid-area: 2 / 5; }
.gv-fwd, .gv-inv { align-self: stretch; display: flex; flex-direction: column; }
.gv-col h3.gv-scene-title { color: var(--scene); border-color: var(--scene); }
.gv-scene { background: #eef0f3; margin-top: .7rem; border: 1px solid #d5d9e0; }
.gv-scene div { color: var(--scene); }
.gv-scene .hot { color: var(--ink); }
.gv-fwd code { background: #fff4e9; border: 1px solid #f0d9c2; border-radius: 4px; padding: .5rem .75rem; margin-top: .7rem; }
.gv-step:first-of-type { margin-top: .7rem; }
.gv-img .gv-view { margin-top: .7rem; }
.gv-vline { display: block; flex: 1 1 auto; min-height: 1.5rem; width: 2px; margin: 0 auto; background: var(--fwd); position: relative; }
.gv-vline::after { content: ""; position: absolute; left: -5px; bottom: 0; border-top: 9px solid var(--fwd); border-left: 6px solid transparent; border-right: 6px solid transparent; }
.gv-vshort { flex: 0 0 1.6rem; background: var(--scene); }
.gv-vshort::after { border-top-color: var(--scene); }
.gv-inv .gv-vline { background: var(--inv); } .gv-inv .gv-vline::after { border-top-color: var(--inv); }
.gv-arrow { position: relative; display: block; width: 4.6rem; height: 2px; background: var(--scene); align-self: start; }
.gv-arrow::after { content: ""; position: absolute; right: 0; top: -5px; border-left: 9px solid var(--scene); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.gv-arrow span { position: absolute; left: 0; right: 8px; bottom: 7px; max-width: none; text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.gv-r1 { margin-top: 4.9rem; }
.gv-r2 { margin-top: 6.4rem; background: var(--inv); } .gv-r2::after { border-left-color: var(--inv); }
.gv-r3, .gv-r4 { align-self: center; }
.gv-r3 { background: var(--fwd); } .gv-r3::after { border-left-color: var(--fwd); }
.gv-r4 { background: var(--inv); } .gv-r4::after { right: auto; left: 0; border-left: 0; border-right: 9px solid var(--inv); }
@media (max-width: 820px) {
  .gv-grid > * { grid-area: auto; }
  .gv-arrow { width: 2px; height: 1.8rem; margin: .5rem auto; align-self: auto; }
  .gv-arrow span { display: none; }
  .gv-arrow::after, .gv-r4::after { left: -5px; right: auto; top: auto; bottom: 0; border: 0; border-top: 9px solid var(--scene); border-left: 6px solid transparent; border-right: 6px solid transparent; }
  .gv-r2::after, .gv-r4::after { border-top-color: var(--inv); }
  .gv-fwd { order: 1; } .gv-a1 { order: 2; } .gv-r1 { order: 3; } .gv-img { order: 4; } .gv-r2 { order: 5; } .gv-inv { order: 6; } .gv-a2 { order: 7; } .gv-r4 { order: 8; } .gv-match { order: 9; } .gv-r3 { display: none; }
}
.gv-img { padding-bottom: .7rem; }

/* gv arrows: line stops at the arrowhead, small breathing room, wire from the guitar bridge */
.gv-grid { position: relative; }
.gv-wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.gv-wire text { font-size: .72rem; font-weight: 600; fill: var(--muted); }
.gv-arrow { background: none; color: var(--scene); width: 4.2rem; margin-left: 4px; margin-right: 4px; }
.gv-arrow::before { content: ""; position: absolute; left: 0; right: 8px; top: 0; height: 2px; background: currentColor; }
.gv-arrow::after { border-left-color: currentColor; }
.gv-r2 { background: none; color: var(--inv); } .gv-r3 { background: none; color: var(--fwd); } .gv-r4 { background: none; color: var(--inv); }
.gv-r4::before { left: 8px; right: 0; }
.gv-r4::after { border-right-color: currentColor; }
.gv-vline, .gv-vshort, .gv-inv .gv-vline { background: none; margin: 4px auto; }
.gv-vline { color: var(--fwd); } .gv-vshort { color: var(--scene); } .gv-inv .gv-vline { color: var(--inv); }
.gv-vline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 8px; width: 2px; background: currentColor; }
.gv-vline::after, .gv-vshort::after, .gv-inv .gv-vline::after { border-top-color: currentColor; }
.gv-fwd code { font-size: .7rem; }
@media (min-width: 821px) { #gv .gv-r2::before, #gv .gv-r2::after, #gv .gv-r2 span { display: none; } }
@media (max-width: 820px) {
  .gv-wire { display: none; }
  .gv-arrow { width: 2px; margin: .5rem auto; }
  .gv-arrow::before, .gv-r4::before { left: 0; right: auto; top: 0; bottom: 8px; width: 2px; height: auto; }
  .gv-arrow::after, .gv-r4::after { border-top-color: currentColor; border-left-color: transparent; border-right-color: transparent; }
}
.gv-wire { z-index: 2; }
/* gallery cards: each one is a single clickable box */
.world-grid:not(.example-grid) .world-item { background: #fff; border: 1px solid #d5cfc1; border-radius: 8px; padding: .8rem; transition: border-color .15s, box-shadow .15s; }
.world-grid:not(.example-grid) .world-item:hover { border-color: #8f8877; box-shadow: 0 3px 10px rgba(40, 35, 20, .1); }
.world-grid:not(.example-grid) .world-card { flex: 1; }
.world-grid:not(.example-grid) .world-card img { border: 0; margin-bottom: .5rem; }
/* pop-up: the answer button turns into the answer, like the homepage cards */
#recorded-answer { display: none !important; }
#reveal-answer { background: #fff; color: var(--ink); border: 1px solid #cfc9bb; border-radius: 999px; padding: .4rem .95rem; font-size: .9rem; font-weight: 500; }
#reveal-answer:hover { border-color: #8f8877; background: #fff; color: var(--ink); }
#reveal-answer[data-shown] { background: #e9f6ef; color: #12704b; border-color: #b9dcc9; font-weight: 600; cursor: default; }

/* question-world tabs and the other worlds' panels */
.gv[hidden] { display: none; }
.gv-tabs-label { font-size: .85rem; color: var(--muted); margin: 0 0 .5rem; }
.gv-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.gv-tabs button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem .45rem .45rem; background: #fff; border: 1px solid #d5cfc1; border-radius: 8px; min-width: 0; }
.gv-tabs button img { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; flex: none; background: #f7f5ef; }
.gv-tabs button span { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.25; min-width: 0; }
.gv-tabs button small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.gv-tabs button:hover { border-color: #8f8877; }
.gv-tabs button[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gv-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gv-alt .gv-view img { aspect-ratio: auto; }
.gv-alt .gv-view[hidden], .gv-meas[hidden] { display: none; }
.gv-alt .gv-r2 { margin-top: 4.9rem; }
.gv-desc { font-size: .8rem; color: var(--fwd); background: #fff4e9; border: 1px solid #f0d9c2; border-radius: 4px; padding: .5rem .75rem; margin: .7rem 0 0; }
.gv-meas svg { display: block; width: 100%; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.gv-meas svg text { font-size: 11px; fill: #5b6472; }
.gv-meas .ring-mask-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.gv-meas figure { margin: 0; }
.homepage .gv-meas figcaption { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .25rem; }
.gv-meas table { width: 100%; border-collapse: collapse; font-size: .8rem; margin: 0; }
.gv-meas th, .gv-meas td { text-align: left; padding: .25rem .4rem; border-bottom: 1px solid var(--rule); font-weight: 400; }
.gv-meas thead th { color: var(--muted); font-size: .72rem; }
.gv-meas tr.measurement-winner > * { background: #eef4ff; font-weight: 600; color: var(--inv); }
.gv-meas .color-count { display: inline-flex; align-items: center; gap: .25rem; }
.gv-meas .color-count i { width: .7rem; height: .7rem; border-radius: 2px; display: inline-block; }
.gv-meas code { display: block; font-size: .75rem; color: var(--inv); background: #eef4ff; border-radius: 4px; padding: .45rem .7rem; }
@media (max-width: 820px) { .gv-tabs { grid-template-columns: 1fr 1fr; } .gv-alt .gv-r2 { margin-top: .5rem; } }
/* citation */
.bib-wrap { position: relative; }
.homepage pre.bib { max-width: none; background: #fff; border: 1px solid #d5cfc1; border-radius: 6px; padding: 1rem 5.5rem 1rem 1.1rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
#copy-bib { position: absolute; top: .6rem; right: .6rem; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 500; padding: .3rem .8rem; }
.homepage .gv-tabs button, .homepage .gv-tabs button[aria-selected="true"] { background: #fff !important; color: var(--ink) !important; flex-direction: row !important; align-items: center !important; }
.homepage .gv-tabs button[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.homepage .gv-tabs button span { color: var(--ink) !important; }
.homepage .gv-tabs button small { color: var(--muted) !important; }
.gv-alt .gv-ans strong, .gv-alt .gv-match strong { font-size: 1.35rem; }
/* detailed visual walkthroughs for the other worlds */
.gv-alt .gv-grid { grid-template-columns: minmax(0, .95fr) auto minmax(0, 1fr) auto minmax(0, 1.75fr); }
.gv-alt .gv-view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gv-code { margin: .7rem 0 0; padding: .55rem .7rem; background: #fff4e9; border: 1px solid #f0d9c2; border-radius: 4px; color: #8a4318; font-family: var(--mono); font-size: .64rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-width: none; }
.gv-five, .gv-six { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; margin-bottom: .35rem; }
.gv-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gv-two { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; align-items: start; }
.gv-two .gv-step { margin-top: .7rem; min-height: 2.3em; }
.gv-cell { min-width: 0; text-align: center; }
.gv-cell canvas, .gv-meas .gv-cell svg, .gv-shot svg { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.gv-cell > span { display: block; font-size: .7rem; color: var(--muted); margin-top: .15rem; }
.gv-cell > span.is-good { color: #12704b; font-weight: 700; } .gv-cell > span.is-bad { color: #b4420c; font-weight: 600; }
.gv-chip { font-size: .68rem; line-height: 1.3; text-align: center; border-radius: 4px; padding: .3rem .1rem; font-weight: 600; }
.gv-chip.is-good { background: #e9f6ef; color: #12704b; box-shadow: inset 0 0 0 1.5px #12704b; }
.gv-chip.is-bad { background: #fff1e7; color: #b4420c; }
.gv-chip.is-off { background: #f1f2f4; color: #6b7380; }
.gv-bars { display: flex; flex-direction: column; gap: .45rem; align-self: center; }
.gv-bars > div { display: grid; grid-template-columns: 4.2rem 1fr 3.6rem; align-items: center; gap: .4rem; font-size: .78rem; padding: .25rem .4rem; border-radius: 4px; }
.gv-bars span { display: flex; align-items: center; gap: .3rem; text-transform: capitalize; }
.gv-bars i { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.gv-bars b { display: block; height: .5rem; border-radius: 3px; }
.gv-bars em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.gv-bars .is-win { background: #e9f6ef; font-weight: 700; box-shadow: inset 0 0 0 1.5px #12704b; }
@media (max-width: 820px) { .gv-alt .gv-grid { grid-template-columns: 1fr; } }
/* gallery filters: search sits on the right */
.filter-bar:not(.anim-filters) { grid-template-columns: 1fr 1fr 1fr 2fr; }
.filter-bar:not(.anim-filters) .search-field { order: 9; }
@media (max-width: 760px) { .filter-bar:not(.anim-filters) { grid-template-columns: 1fr 1fr; } }
.gv-alt .gv-view svg { position: static; display: block; width: 100%; height: auto; }
.gv-scene .hot { font-weight: 400; color: var(--scene); }
.gv-match { padding: 1rem 1.1rem; gap: .4rem; }
.gv-match > span { text-wrap: balance; line-height: 1.35; max-width: 16rem; }
.gv-ans { padding: 1rem .8rem; gap: .35rem; }
.gv-alt .gv-match strong { font-size: 1.12rem; white-space: nowrap; }
.gv-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* a little more room for the rendered image */
@media (min-width: 821px) {
  .gv-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr) auto minmax(0, 1.15fr); }
  .gv-alt .gv-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr) auto minmax(0, 1.5fr); }
}
.gv-scene { font-size: .76rem; }
.gv-scene div { gap: .6rem; }
.gv-scene dd { white-space: nowrap; }
/* title fade: start fading sooner above the title */
.hero .head::before { inset: -4.5rem -17rem -7rem;
  background: radial-gradient(ellipse closest-side, var(--bg) 0%, var(--bg) 46%, rgba(244, 241, 233, .93) 56%, rgba(244, 241, 233, .75) 67%, rgba(244, 241, 233, .45) 80%, rgba(244, 241, 233, .15) 92%, rgba(244, 241, 233, 0) 100%); }
.hero .head::before { inset: -4rem -15rem -7.5rem; background: var(--bg);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24%, #000 76%, transparent), linear-gradient(to bottom, transparent, #000 17%, #000 76%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 24%, #000 76%, transparent), linear-gradient(to bottom, transparent, #000 17%, #000 76%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero .head::before { background: #fff; }

/* verification examples play in sequence */
@keyframes gv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gv .gv-anim { animation: gv-in .5s ease both; animation-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { .gv .gv-anim { animation: none; } }

/* the generation loop */
.lp { background: #fff; border: 1px solid #d5cfc1; border-radius: 8px; padding: 1.4rem 1.3rem 1rem; box-shadow: 0 2px 8px rgba(40, 35, 20, .06); --fwd: #b65b25; --inv: #285bd4; --scene: #5b6472; }
.lp-flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem minmax(0, 1.25fr) 4.6rem minmax(0, 1.25fr) 4.6rem minmax(0, 1.05fr); align-items: stretch; padding-bottom: 6.2rem; }
.lp-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lp-wires text { font-size: .78rem; font-weight: 600; }
.lp-box { border: 1px solid #d5cfc1; border-radius: 8px; padding: .9rem .8rem; background: #fcfbf8; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-width: 0; }
.lp-box h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.lp-box p { font-size: .8rem; color: var(--muted); margin: 0; max-width: none; }
.lp-icon { font-family: var(--mono); font-weight: 700; font-size: .95rem; background: #16181d; color: #fff; border-radius: 6px; padding: .3rem .55rem; }
.lp-world ul { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; width: 100%; }
.lp-world li { font-size: .76rem; font-weight: 600; border-radius: 4px; padding: .3rem .2rem; margin: 0; max-width: none; }
.lp-world .s { background: #eef0f3; color: var(--scene); } .lp-world .r { background: #f1eee6; color: #16181d; }
.lp-world .f { background: #fff4e9; color: var(--fwd); } .lp-world .i { background: #eef4ff; color: var(--inv); }
.lp-verify { background: #f6faf7; border-color: #b9dcc9; }
.lp-box .lp-eq { font-size: 1.02rem; color: #16181d; font-weight: 600; }
.lp-eq .f { color: var(--fwd); } .lp-eq .i { color: var(--inv); }
.lp-verify em { font-style: normal; font-size: .74rem; font-weight: 600; color: #12704b; background: #e9f6ef; border-radius: 999px; padding: .2rem .6rem; margin-top: .15rem; }
.lp-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; width: 100%; max-width: 8.5rem; }
.lp-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.lp-arrow { position: relative; align-self: center; height: 2px; margin: 0 5px; color: var(--scene); }
.lp-arrow::before { content: ""; position: absolute; left: 0; right: 8px; top: 0; height: 2px; background: currentColor; }
.lp-arrow::after { content: ""; position: absolute; right: 0; top: -5px; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.lp-arrow span { position: absolute; left: 0; right: 8px; bottom: 7px; text-align: center; font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lp-ok { color: #12704b; } .lp-ok span { color: #12704b; }
.lp .gv-anim { animation: gv-in .5s ease both; animation-delay: var(--d, 0s); }
@media (max-width: 820px) {
  .lp-flow { grid-template-columns: 1fr; padding-bottom: 0; gap: 0; }
  .lp-wires { display: none; }
  .lp-arrow { width: 2px; height: 2rem; margin: .4rem auto; }
  .lp-arrow::before { left: 0; right: auto; top: 0; bottom: 8px; width: 2px; height: auto; }
  .lp-arrow::after { left: -5px; right: auto; top: auto; bottom: 0; border: 0; border-top: 9px solid currentColor; border-left: 6px solid transparent; border-right: 6px solid transparent; }
  .lp-arrow span { left: 12px; right: auto; bottom: auto; top: .4rem; }
}
@media (prefers-reduced-motion: reduce) { .lp .gv-anim { animation: none; } }
.lp-verify em { white-space: nowrap; font-size: .7rem; padding: .2rem .5rem; }
.lp-notes { display: none; }
@media (max-width: 820px) { .lp-notes { display: flex; flex-direction: column; gap: .3rem; margin: 1rem 0 0; font-size: .8rem; font-weight: 600; color: #5b6472; text-align: center; max-width: none; } .lp-notes .bad { color: #c2261d; } }
.lp-verify em { white-space: normal; border-radius: 10px; line-height: 1.35; padding: .3rem .7rem; }
.lp-verify em { font-size: .66rem; padding: .3rem .45rem; white-space: nowrap; }
