/* BroadBox, option F "Bench": shared styles. The deck's palette and type (Archivo) on a white page; the figures are
 * clay-and-glass benches drawn by lab.js. */

/* ================================================================ tokens */
:root {
  --bg: #ffffff;
  --ink: #111315;
  --slate: #52606b;          /* secondary text, 6.4:1 on white */
  --rule: #d5dde3;
  --hair: #e7ecf0;
  --tint: #f2f6fa;           /* quiet panels */
  --tint-2: #e8f1f8;
  --blue: #1f5bb4;           /* the agent's choices in every figure; actions; step rings */
  --blue-deep: #164a96;
  --m: 48px;
  --g: 24px;
  --maxw: 1320px;
  --sec: 120px;
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas, iframe { display: block; }
h1, h2, h3, h4, h5, h6, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: 10px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 15px var(--f); transform: translateY(-180%); }
.skip:focus { transform: none; }

/* ================================================================ layout and type */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--m); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.sec { padding-top: var(--sec); }
.sec-tight { padding-top: 80px; }
h1 { font: 600 clamp(44px, 5.2vw, 76px)/1.02 var(--f); letter-spacing: -0.035em; font-stretch: 96%; }
h2 { font: 600 clamp(32px, 3.2vw, 46px)/1.08 var(--f); letter-spacing: -0.028em; }
h3 { font: 600 20px/1.3 var(--f); letter-spacing: -0.01em; }
.lead { font: 400 21px/1.45 var(--f); color: var(--slate); max-width: 34em; letter-spacing: -0.005em; }
.small, figcaption { font-size: 14px; line-height: 1.5; color: var(--slate); }
.prose { max-width: 40em; }
.prose p + p { margin-top: 14px; }
.cite { font-size: 14px; color: var(--slate); margin-top: 14px; }
.sec-head { row-gap: 16px; margin-bottom: 48px; align-items: end; }
.sec-head h2 { grid-column: 1 / 7; }
.sec-head .lead { grid-column: 7 / 12; }

/* ================================================================ actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--f);
  text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.more { font-weight: 600; text-decoration: underline; text-decoration-color: #b4c2cf; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; }
.more:hover { text-decoration-color: var(--blue); }

/* ================================================================ header and nav */
.site-head { position: relative; z-index: 5; border-bottom: 1px solid var(--hair); }
.head-row { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--f); letter-spacing: -0.015em; text-decoration: none; margin-right: auto; }
.mark b { font-weight: 600; color: var(--blue); }
.mark:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.nav a { position: relative; display: inline-block; padding: 8px 0; font: 500 15px/1.2 var(--f); color: var(--slate); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: var(--blue); }

/* ================================================================ page heroes */
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { max-width: 14em; }
.page-hero .lead { margin-top: 22px; }
.crumbs { font-size: 14px; color: var(--slate); margin-bottom: 20px; }
.crumbs a { color: var(--slate); }
.kind { display: inline-flex; align-items: center; gap: 8px; font: 500 15px var(--f); color: var(--slate); margin-bottom: 14px; }
.kind i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--blue); }
.kind.wet i { background: var(--blue); }
.kind.damp i { background: linear-gradient(90deg, var(--blue) 50%, #fff 50%); }
.question { font: 500 clamp(24px, 2.2vw, 31px)/1.25 var(--f); letter-spacing: -0.018em; max-width: 26em; margin-top: 18px; }
.box-hero .g12 { row-gap: 28px; align-items: start; }
.box-hero .intro { grid-column: 1 / 8; }
.box-hero .intro .prose { margin-top: 18px; color: var(--slate); }

/* two readings: the same sandbox in a biologist's terms and in a machine-learning researcher's terms */
.readings { grid-column: 8 / 13; display: grid; gap: 0; align-self: end; border-top: 1px solid var(--rule); }
.readings > div { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.readings dt { font: 600 14px/1.3 var(--f); color: var(--blue); margin-bottom: 4px; }
.readings dd { font-size: 16px; line-height: 1.5; }

/* ================================================================ the bench and its overlays (lab.js) */
.bench { position: relative; overflow: hidden; background: #fff; }
.bench canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bench-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bench-lines polyline { fill: none; stroke: var(--slate); stroke-width: 1; transition: opacity 0.2s; }
.bench-lines circle { fill: var(--slate); }
.ring { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.6px solid var(--ink); background: #fff;
  color: var(--ink); font: 600 14px/26.8px var(--f); text-align: center; transition: background-color 0.25s, color 0.25s; will-change: transform; }
.ring.is-active { background: var(--ink); color: #fff; }
.tag { position: absolute; left: 0; top: 0; font: 500 13px/1.25 var(--f); color: var(--ink); white-space: nowrap; background: rgba(255, 255, 255, 0.88);
  padding: 2px 5px; border-radius: 4px; will-change: transform; pointer-events: none; }
.tag.mark { color: var(--slate); background: none; padding: 0; }
.bench-fallback { display: none; }

/* the numbered list beside a bench, after the deck's slide: a ring, a sentence, a hairline */
.stepnum { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.6px solid var(--ink); color: var(--ink); font: 600 14px/26.8px var(--f);
  text-align: center; transition: background-color 0.3s, color 0.3s; }
.bstep { display: flex; flex-direction: column; justify-content: center; }
.bstep-in { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 18px; padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.bstep h3 { font: 500 23px/1.3 var(--f); letter-spacing: -0.015em; }
.bstep p { grid-column: 2; margin-top: 8px; color: var(--slate); max-width: 32em; }
.js .bstep { opacity: 0.32; transition: opacity 0.35s; }
.js .bstep.is-active { opacity: 1; }
.js .bstep.is-active .stepnum { background: var(--ink); color: #fff; }
.after-note { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--slate); font-size: 17px; max-width: 30em; }

/* a walkthrough: bench sticky on one side, steps scrolling past on the other */
.walk { align-items: start; }
.box-hero + .walk-sec { padding-top: 8px; }
.box-hero .wrap { padding-bottom: 32px; }
.walk-fig { grid-column: 1 / 8; grid-row: 1 / span 2; position: sticky; top: calc(50vh - min(290px, 36vh)); }
.walk-fig .bench { height: min(580px, 72vh); }
.walk-steps { grid-column: 8 / 13; }
.walk-steps .bstep { min-height: 56vh; }
.walk-steps .bstep:first-child { min-height: 70vh; }
.walk-steps .bstep:last-child { min-height: 64vh; }
.walk-head { grid-column: 8 / 13; padding-top: 24px; }
.walk-head h2 { font-size: clamp(28px, 2.4vw, 36px); }
.walk-head p { margin-top: 10px; color: var(--slate); }

/* home: hero copy and steps on the left, bench on the right */
.home-walk .hero-copy { grid-column: 1 / 6; grid-row: 1; min-height: calc(100vh - 74px); display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-bottom: 6vh; }
.home-walk .hero-copy .sub { color: var(--slate); max-width: 32em; }
.home-walk .walk-fig { grid-column: 6 / 13; grid-row: 1 / span 3; }
.home-walk .walk-head { grid-column: 1 / 6; grid-row: 2; padding-top: 0; }
.home-walk .walk-head h2 { font-size: clamp(38px, 3.6vw, 54px); letter-spacing: -0.03em; }
.home-walk .walk-head p { font-size: 19px; line-height: 1.5; max-width: 30em; }
.home-walk .walk-steps { grid-column: 1 / 6; grid-row: 3; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; color: var(--slate); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 18px; border-radius: 3px; }
.legend .l-agent { width: 12px; height: 12px; border-radius: 3px; background: var(--blue); }
.legend .l-return { width: 12px; height: 12px; border-radius: 3px; background: #2bb3ab; }
.legend .l-wall { width: 18px; height: 4px; border-radius: 2px; background: #1b2b42; }
.legend .l-measured { background: #3f7fd0; }
.legend .l-pred { background: #b9d3f3; }
.legend .l-hidden { background: #dbe5ee; }
.legend .l-pin { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }

/* ================================================================ sandboxes: cards with a still bench */
.boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.box-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; text-decoration: none; transition: border-color 0.2s; }
.box-card:hover { border-color: var(--blue); color: inherit; }
.box-card .bench { height: 300px; border-bottom: 1px solid var(--hair); background: #e9eff5; }
.box-card .txt { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.box-card h3 { font: 600 26px/1.15 var(--f); letter-spacing: -0.02em; }
.box-card .kind { margin: 0; font-size: 14px; }
.box-card p { color: var(--slate); }
.box-card .go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--blue); }

/* ================================================================ steps rows, facts, tables */
.steps-row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 0 32px; }
.step-card { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 18px; padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.step-card h3 { margin-bottom: 6px; }
.step-card .n { width: 30px; height: 30px; border-radius: 50%; border: 1.6px solid var(--blue); color: var(--blue); font: 600 14px/26.8px var(--f); text-align: center; }
.step-card p { color: var(--slate); }
.soft-card.step-card { padding: 24px 26px 26px; border-top: 1px solid var(--rule); }
.after-steps { margin-top: 24px; color: var(--slate); font: 400 20px/1.5 var(--f); letter-spacing: -0.005em; max-width: 46em; }
.hk-line { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding: 22px 28px; background: var(--tint); border-radius: 18px; }
.hk-line p { flex: 1 1 26em; font-size: 18px; }
.hk-line b { font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.facts > div { border-top: 1px solid var(--rule); padding: 14px 0 20px; }
.facts dt { font-size: 13px; color: var(--slate); margin-bottom: 4px; }
.facts dd { font-size: 16px; line-height: 1.45; }
.leads a { white-space: nowrap; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
thead th { font-size: 13px; font-weight: 500; color: var(--slate); }
tbody th { font-weight: 600; }
td.num { font: 500 15px var(--f-mono); white-space: nowrap; }
.mono { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.01em; color: var(--slate); }
.compare th[scope="row"] { white-space: nowrap; }
.compare th[scope="row"] a { font: 600 19px/1.2 var(--f); text-decoration: none; letter-spacing: -0.01em; }
.compare th[scope="row"] a:hover { color: var(--blue); }

/* results with notebooks (copied from the live pages) */
.panel { border: 1px solid var(--rule); border-radius: 18px; background: #fff; }
.soft-card { border: 1px solid var(--rule); border-radius: 14px; }
.result { margin-top: 12px; }
.result-head { display: grid; grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 22px; }
.result-head .rank { font: 600 26px/1 var(--f); color: var(--blue); }
.result-head .agent b { font-weight: 600; }
.result-head .agent span { color: var(--slate); }
.result-head .val { font: 500 18px var(--f-mono); }
.result-head .val small { display: block; font: 400 12px var(--f); color: var(--slate); }
details.notebook { border-top: 1px solid var(--hair); }
details.notebook > summary { cursor: pointer; list-style: none; padding: 14px 22px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 10px; }
details.notebook > summary::-webkit-details-marker { display: none; }
details.notebook > summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s; margin-right: 2px; }
details.notebook[open] > summary::before { transform: rotate(45deg); }
.nb-body { padding: 4px 22px 28px; max-width: 52em; }
.nb-body h4 { font: 600 22px/1.25 var(--f); margin: 26px 0 8px; letter-spacing: -0.015em; }
.nb-body h5 { font: 500 12px var(--f-mono); color: var(--slate); margin: 22px 0 6px; letter-spacing: 0.02em; }
.nb-body h6 { font: 600 15px var(--f); margin: 16px 0 4px; }
.nb-body p, .nb-body li { font-size: 15.5px; line-height: 1.6; }
.nb-body p + p { margin-top: 8px; }
.nb-body ul, .nb-body ol { list-style: disc; padding-left: 20px; margin: 8px 0; }
.nb-body code { font: 13px var(--f-mono); background: var(--tint); padding: 1px 5px; border-radius: 4px; }
.nb-body table { margin: 12px 0; }
.nb-body th, .nb-body td { padding: 8px 10px; font-size: 13.5px; }
.nb-wrap { overflow-x: auto; }
.note { padding: 18px 22px; font-size: 15px; color: var(--slate); }
.note b { color: var(--ink); font-weight: 600; }
.rbar { height: 8px; border-radius: 4px; background: var(--tint-2); overflow: hidden; min-width: 120px; margin-top: 7px; }
.rbar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 4px; background: #9cc3ef; }
.mean .rbar i { background: var(--blue); }

/* ================================================================ approach and build */
.nb-split { align-items: start; row-gap: 16px; }
.nb-split > :first-child { grid-column: 1 / 6; padding: 24px 26px 22px; }
.nb-split > :last-child { grid-column: 6 / 13; }
.log { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.log > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 20px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.log dt { padding-top: 5px; }
.log dd { font: 500 20px/1.4 var(--f); letter-spacing: -0.012em; }
.split { align-items: start; row-gap: 28px; }
.split > :first-child { grid-column: 1 / 6; }
.split > :last-child { grid-column: 7 / 13; }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.kinds > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.kinds h3 { font-size: 24px; margin-bottom: 10px; }
.kinds dl > div { border-top: 1px solid var(--rule); padding: 10px 0 12px; }
.kinds dt { font-size: 13px; color: var(--slate); }
.kinds dd { font-size: 16px; line-height: 1.45; }
.quote-log { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.quote-log > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.quote-log dt { color: var(--slate); font-size: 14px; padding-top: 4px; }
.quote-log dd { font: 500 21px/1.4 var(--f); letter-spacing: -0.012em; }
.statement { font: 500 clamp(24px, 2.4vw, 32px)/1.3 var(--f); letter-spacing: -0.02em; max-width: 26em; }
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.example { border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.example .bench { height: 260px; border-bottom: 1px solid var(--hair); }
.example .txt { padding: 20px 22px 24px; }
.example h3 { font-size: 22px; letter-spacing: -0.015em; }
.example .q { font: 500 18px/1.35 var(--f); margin: 8px 0 10px; }
.example dl > div { border-top: 1px solid var(--hair); padding: 8px 0; }
.example dt { font-size: 13px; color: var(--slate); }
.example dd { font-size: 15px; }

/* hackathon */
.hk-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 40px; max-width: 980px; }
.hk-facts > div { border-top: 1px solid var(--ink); padding: 14px 0 18px; }
.hk-facts dt { font-size: 13px; color: var(--slate); }
.hk-facts dd { font: 600 22px/1.25 var(--f); letter-spacing: -0.015em; margin-top: 4px; }
.hk-facts dd span { display: block; font: 400 15px/1.4 var(--f); color: var(--slate); margin-top: 2px; letter-spacing: 0; }
.form-panel { padding: 14px; }
.form-panel iframe { width: 100%; height: 4330px; border: 0; border-radius: 12px; background: #fff; }   /* sized to the form so it never scrolls inside */
@media (max-width: 720px) { .form-panel iframe { height: 4600px; } }
@media (max-width: 560px) { .form-panel iframe { height: 5000px; } }
@media (max-width: 420px) { .form-panel iframe { height: 5300px; } }
@media (max-width: 360px) { .form-panel iframe { height: 5750px; } }

/* team */
.team-panel { padding: 0; border: 0; }
.team-panel + .team-panel { margin-top: 56px; }
.team-panel > h2 { font-size: 28px; margin-bottom: 24px; padding-top: 16px; border-top: 1px solid var(--ink); }
.people { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 26px 20px; }
.people li { min-width: 0; }
.people img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 12px; filter: grayscale(1) contrast(1.03); background: var(--tint); }
.people .nm { font: 500 17px/1.25 var(--f); margin-top: 10px; }

/* prev / next */
.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 22px; }
.pager a { text-decoration: none; }
.pager span { display: block; font-size: 13px; color: var(--slate); }
.pager b { font: 600 24px/1.2 var(--f); letter-spacing: -0.015em; }
.pager a:hover b { color: var(--blue); }

/* ================================================================ footer */
.site-foot { margin-top: var(--sec); border-top: 1px solid var(--hair); background: var(--tint); }
.site-foot .wrap { padding-top: 56px; padding-bottom: 36px; }
.foot-grid { row-gap: 32px; align-items: start; }
.foot-q { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.foot-q p { font: 500 26px/1.3 var(--f); letter-spacing: -0.018em; max-width: 22em; }
.foot-nav { grid-column: 8 / 13; }
.foot-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.foot-nav a { font-weight: 500; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-base { grid-column: 1 / 13; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 16px; font-size: 14px; color: var(--slate); }

/* ================================================================ medium screens */
@media (max-width: 1180px) {
  :root { --m: 32px; --g: 20px; --sec: 100px; }
  .head-row { flex-wrap: wrap; row-gap: 10px; }
  .sec-head h2, .sec-head .lead { grid-column: 1 / 13; }
  .box-hero .intro, .readings { grid-column: 1 / 13; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .walk-fig { grid-column: 1 / 8; }
  .walk-steps, .walk-head { grid-column: 8 / 13; }
  .home-walk .hero-copy, .home-walk .walk-head, .home-walk .walk-steps { grid-column: 1 / 7; }
  .home-walk .walk-fig { grid-column: 7 / 13; }
  .foot-q { grid-column: 1 / 9; }
  .foot-nav { grid-column: 9 / 13; }
  .foot-nav ul { grid-template-columns: 1fr; }
  .examples { grid-template-columns: 1fr; }
  .example { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .example .bench { height: 100%; min-height: 240px; border-bottom: 0; border-right: 1px solid var(--hair); }
}
@media (max-width: 900px) {
  .walk-fig, .home-walk .walk-fig { grid-column: 1 / 13; grid-row: auto; position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--hair); margin: 0 calc(-1 * var(--m)); }
  .walk-fig .bench { height: 44vh; min-height: 280px; }
  .walk-steps, .walk-head, .home-walk .hero-copy, .home-walk .walk-head, .home-walk .walk-steps { grid-column: 1 / 13; grid-row: auto; }
  .home-walk .hero-copy { min-height: 0; padding: 36px 0 32px; order: -1; }
  .walk-head { padding-top: 32px; }
  .walk-steps .bstep, .walk-steps .bstep:first-child, .walk-steps .bstep:last-child { min-height: 52vh; }
  .boxes, .kinds, .steps-row, .hk-facts { grid-template-columns: 1fr; }
  .split > :first-child, .split > :last-child, .nb-split > :first-child, .nb-split > :last-child { grid-column: 1 / 13; }
  .log > div { grid-template-columns: 1fr; row-gap: 4px; }
  .result-head { grid-template-columns: 40px 1fr; }
  .result-head .spec-col, .result-head .val { grid-column: 2; }
}
@media (max-width: 720px) {
  :root { --m: 16px; --g: 12px; --sec: 80px; }
  body { font-size: 16px; }
  .head-row { padding-top: 12px; padding-bottom: 10px; gap: 10px 16px; }
  .mark { font-size: 18px; }
  .nav-wrap { order: 3; width: 100%; }
  .nav { flex-wrap: nowrap; gap: 0 18px; overflow-x: auto; scrollbar-width: none; padding-right: 28px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 14px; padding: 8px 0; white-space: nowrap; }
  .page-hero .wrap { padding-top: 32px; padding-bottom: 44px; }
  h1 { font-size: 42px; }
  .lead { font-size: 18px; }
  .bstep h3 { font-size: 20px; }
  .facts { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example { grid-template-columns: 1fr; }
  .example .bench { height: 230px; border-right: 0; border-bottom: 1px solid var(--hair); }
  .box-card .bench { height: 240px; }
  .quote-log > div { grid-template-columns: 1fr; row-gap: 4px; }
  .ring { width: 24px; height: 24px; font-size: 12px; line-height: 21px; }
  .tag { font-size: 11.5px; }
  .foot-q, .foot-nav { grid-column: 1 / 13; }
}
@media (prefers-reduced-motion: reduce) {
  .walk-fig { position: static; }
  .walk-steps .bstep, .walk-steps .bstep:first-child, .walk-steps .bstep:last-child { min-height: 0; }
  .js .bstep { opacity: 1; }
  .home-walk .hero-copy { min-height: 0; padding: 48px 0; }
  .ring, .num, .bstep { transition: none; }
}

/* ================================================================ home: one round of MelanomaBox (home.js)
 * After Kevin's prototypes 12, 15 and 27: a wash behind the hero, the scene on a slab, labels as a title and a
 * quieter second line with a thin leader, a clock while 72 hours pass, and a card ranking the proposals. */
body:has(.home-hero) { background:
  radial-gradient(55% 620px at 88% 0, rgba(160, 205, 255, 0.38), rgba(160, 205, 255, 0) 70%),
  radial-gradient(45% 640px at 0 160px, rgba(150, 232, 220, 0.3), rgba(150, 232, 220, 0) 70%),
  linear-gradient(180deg, #e9f6f3 0, #edf3fb 560px, #ffffff 1150px) no-repeat, #fff; }
body:has(.home-hero) .site-head { border-bottom-color: transparent; }
.home-hero { overflow-x: clip; }
.home-walk .walk-fig { grid-column: 6 / 13; margin-right: calc(-1 * var(--m) - max(0px, (100vw - var(--maxw)) / 2)); top: calc(50vh - min(390px, 44vh)); }
.lab { position: relative; height: min(780px, 88vh); }
.lab > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lab-lines line { stroke: #6b7782; stroke-width: 1; }
.lab-lines circle { fill: var(--ink); }
.lab-tag, .lab-clock, .lab-badge, .lab-rank { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.lab-tag { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; will-change: transform, opacity;
  text-shadow: 0 0 1px #fff, 0 0 4px #fff, 0 0 8px #fff, 0 0 12px rgba(255, 255, 255, 0.9); }
.lab-tag .tt { font: 600 15px/1.2 var(--f); letter-spacing: -0.01em; color: var(--ink); }
.lab-tag .ts { font: 400 13px/1.3 var(--f); color: var(--slate); }
.lab-tag.agent .tt { color: var(--blue); }
.lab-tag.result { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; max-width: 220px; white-space: normal; }
.lab-tag.result .big { font: 600 44px/1 var(--f); letter-spacing: -0.03em; color: #0b6f69; }
.lab-tag.result .tt { font-size: 16px; color: #0b6f69; }
.lab-tag.result .ts { flex-basis: 100%; }
.lab-tag.read .tt { display: inline-block; align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; text-shadow: none; }
.lab-tag.read .ts { margin-top: 3px; }
.lab-clock { left: 16px; top: 16px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 2px rgba(17, 19, 21, 0.08), 0 6px 24px rgba(27, 43, 66, 0.1); }
.lab-clock svg { width: 40px; height: 40px; }
.lab-clock .tr { fill: none; stroke: #e1e7ed; stroke-width: 4; }
.lab-clock .arc { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 120; }
.lab-clock b { display: block; font: 600 22px/1.05 var(--f); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lab-clock small { display: block; font-size: 13px; color: var(--slate); }
.lab-badge { left: 50%; top: auto; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 16px); text-align: center; padding: 9px 16px; border-radius: 999px; background: #1b2b42; color: #c9d4e0;
  font: 400 14px/1.2 var(--f); white-space: nowrap; }
.lab-badge b { color: #fff; font-weight: 600; }
.lab-rank { left: 66px; top: 14px; width: 300px; padding: 16px 18px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.08), 0 10px 30px rgba(27, 43, 66, 0.12); transform: translateY(8px); transition: transform 0.4s ease; }
.lab-rank.on { transform: none; }
.lab-rank .rk-h { font: 600 16px/1.25 var(--f); letter-spacing: -0.01em; }
.lab-rank .rk-s { font-size: 13px; line-height: 1.35; color: var(--slate); margin-top: 2px; }
.lab-rank ol { list-style: none; margin: 10px 0 0; padding: 0; }
.lab-rank li { position: relative; display: grid; grid-template-columns: 16px 30px 1fr 38px; align-items: center; column-gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 9px;
  font-size: 13px; }
.lab-rank .n { font-weight: 600; color: var(--slate); }
.lab-rank .dots { display: flex; gap: 3px; }
.lab-rank .dots i { width: 7px; height: 7px; border-radius: 50%; background: #c5cfd8; }
.lab-rank .bar { height: 6px; border-radius: 3px; background: #e6ebf0; overflow: hidden; }
.lab-rank .bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: #2bb3ab; border-radius: 3px; }
.lab-rank b { text-align: right; font-weight: 600; color: #0b6f69; font-variant-numeric: tabular-nums; }
.lab-rank li.me { box-shadow: inset 0 0 0 1.5px var(--blue); }
.lab-rank li.me .dots i { background: var(--blue); }
.lab-rank li.me .n { color: var(--blue); }
.lab-rank em { position: absolute; right: 8px; top: -9px; padding: 0 6px; font: 600 11px/16px var(--f); font-style: normal; color: var(--blue); background: #fff; border-radius: 4px; }
.lab-fallback { display: none; }
.lab.is-narrow .lab-tag .tt { font-size: 12.5px; }
.lab.is-narrow .lab-tag .ts { display: none; }
.lab.is-narrow .lab-tag.result .big { font-size: 30px; }
.lab.is-narrow .lab-tag.result .ts { display: none; }
.lab.is-narrow .lab-clock { left: 8px; top: 8px; padding: 6px 10px 6px 8px; gap: 8px; }
.lab.is-narrow .lab-clock svg { width: 28px; height: 28px; }
.lab.is-narrow .lab-clock b { font-size: 16px; }
.lab.is-narrow .lab-clock small { font-size: 11px; }
.lab.is-narrow .lab-badge { bottom: 8px; font-size: 12px; padding: 6px 11px; }
.lab.is-narrow .lab-rank { left: 8px; top: 8px; width: 210px; padding: 10px 12px 8px; }
.lab.is-narrow .lab-rank .rk-h { font-size: 13px; }
.lab.is-narrow .lab-rank .rk-s { display: none; }
.lab.is-narrow .lab-rank li { grid-template-columns: 12px 24px 1fr 32px; padding: 3px 6px; margin: 0 -6px; font-size: 11.5px; }
.lab.is-narrow .lab-rank em { display: none; }
@media (max-width: 900px) {
  .home-walk .walk-fig { grid-column: 1 / 13; margin: 0 calc(-1 * var(--m)); top: 0; background: #fff; }
  .lab { height: 46vh; min-height: 300px; }
}
@media (min-width: 901px) {
  /* close-ups fill the canvas: let its left, top and bottom edges dissolve into the page instead of cutting off */
  .lab > canvas {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px), linear-gradient(180deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 64px), linear-gradient(180deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
    mask-composite: intersect;
  }
}
@media (max-width: 1180px) and (min-width: 901px) { .home-walk .walk-fig { grid-column: 7 / 13; } }
@media (prefers-reduced-motion: reduce) {
  /* the home figure does not move by itself: it changes once per step, so it stays beside the steps */
  .home-walk .walk-fig { position: sticky; }
  .home-walk .walk-steps .bstep { min-height: 56vh; }
}

/* sandboxes: the live site's "Get started" block at the top */
.sbx-start .start-grid { align-items: end; row-gap: 28px; }
.sbx-start .start-copy { grid-column: 1 / 8; }
.sbx-start h1 { font-size: clamp(40px, 4.4vw, 64px); max-width: 13em; }
.sbx-start .start-copy .lead { margin-top: 22px; }
.start-panel { grid-column: 9 / 13; padding: 26px 28px 28px; border-radius: 18px; background: var(--tint); }
.start-panel-h { font: 600 20px/1.3 var(--f); letter-spacing: -0.01em; }
.start-panel p + p { margin-top: 6px; color: var(--slate); }
.start-panel .btn { margin-top: 20px; }
.start-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--g); margin-top: 48px; border-top: 1px solid var(--rule); }
.start-notes p { padding-top: 22px; font-size: 19px; line-height: 1.5; color: var(--slate); }
.start-notes b { color: var(--ink); font-weight: 600; }
@media (max-width: 1180px) { .sbx-start .start-copy { grid-column: 1 / 13; } .start-panel { grid-column: 1 / 9; } }
@media (max-width: 720px) { .start-panel { grid-column: 1 / 13; } .start-notes { grid-template-columns: 1fr; } }

/* ================================================================ cleanup (Nov 15): every boxed thing has room inside it;
 * one style for facts, one for tables; numbers in Archivo, not mono */
.leads { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 22px; font-size: 15px; color: var(--ink); }
.leads-label { color: var(--slate); margin-right: 2px; }
.leads > span:not(.leads-label) { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.leads .gh { display: inline-flex; color: #8794a0; }
.leads .gh:hover { color: var(--ink); }
.leads .gh svg { width: 13px; height: 13px; fill: currentColor; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; padding: 10px 34px; border-radius: 20px; background: var(--tint); }
.facts > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); column-gap: 20px; padding: 18px 0; border-top: 1px solid #dde5ec; }
.facts > div:nth-child(-n + 2) { border-top: 0; }
.facts dt { font-size: 15px; color: var(--slate); margin: 0; padding-top: 1px; }
.facts dd { font-size: 17px; line-height: 1.45; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; padding: 6px 22px; } .facts > div:nth-child(2) { border-top: 1px solid #dde5ec; } .facts > div { grid-template-columns: 8em minmax(0, 1fr); } }
.soft-card { border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.result .table-wrap { border-top: 0; }
.result table th:first-child, .result table td:first-child { padding-left: 24px; }
.result table th:last-child, .result table td:last-child { padding-right: 24px; }
.result thead th { padding-top: 16px; padding-bottom: 12px; }
td.num { font: 500 16px var(--f); font-variant-numeric: tabular-nums; }
td.num.mean b { font-weight: 700; }
.result-head .val { font: 600 20px/1.1 var(--f); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.note.soft-card { padding: 18px 24px; background: var(--tint); border-color: transparent; }
.hk-facts { gap: 0; padding: 24px 0; border-radius: 20px; background: var(--tint); max-width: 1040px; }
.hk-facts > div, .hk-facts > .soft-card { border: 0; border-radius: 0; background: none; padding: 2px 32px; }
.hk-facts > div + div { border-left: 1px solid #d6dfe7; }
@media (max-width: 900px) { .hk-facts > div + div { border-left: 0; border-top: 1px solid #d6dfe7; padding-top: 18px; margin-top: 16px; } }
.page-hero + .sec, .page-hero + .sec-tight { padding-top: 16px; }

/* home figure: the result card (step 5) and the ranking as a plain table (step 6) */
.lab-result { left: 66px; top: 14px; width: 270px; padding: 16px 20px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.08), 0 10px 30px rgba(27, 43, 66, 0.12); display: grid; }
.lab-result .rs-k { font-size: 13px; color: var(--slate); }
.lab-result .rs-v { font: 600 44px/1.05 var(--f); letter-spacing: -0.03em; color: #0b6f69; margin-top: 2px; }
.lab-result .rs-s { font-size: 13px; line-height: 1.4; color: var(--slate); margin-top: 6px; }
.lab-rank { width: 340px; }
.lab-rank .rk-s { margin-top: 2px; }
.lab-rank table { margin-top: 10px; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lab-rank th, .lab-rank td { padding: 7px 8px; border-bottom: 1px solid var(--hair); font-size: 13px; line-height: 1.3; text-align: left; vertical-align: middle; }
.lab-rank th { font-weight: 500; color: var(--slate); font-size: 12px; padding-top: 4px; }
.lab-rank th:first-child, .lab-rank td:first-child { padding-left: 0; width: 2.6em; }
.lab-rank th:last-child, .lab-rank td:last-child { text-align: right; padding-right: 0; }
.lab-rank td:last-child { font-weight: 600; color: #0b6f69; }
.lab-rank tr.me td { color: var(--blue); font-weight: 600; background: #eef4fc; }
.lab-rank tr.me td:first-child { box-shadow: inset 3px 0 0 var(--blue); padding-left: 8px; }
.lab-rank tr:last-child td { border-bottom: 0; }
.lab-rank .rk-f { margin-top: 8px; font-size: 13px; color: var(--slate); }
.lab.is-narrow .lab-result { left: 8px; top: 8px; width: 190px; padding: 10px 12px; }
.lab.is-narrow .lab-result .rs-v { font-size: 30px; }
.lab.is-narrow .lab-result .rs-s { display: none; }
.lab.is-narrow .lab-rank { width: 250px; }
.lab.is-narrow .lab-rank th, .lab.is-narrow .lab-rank td { padding: 4px 5px; font-size: 11.5px; }
.lab.is-narrow .lab-rank .rk-f, .lab.is-narrow .lab-rank .rk-s { display: none; }
/* hackathon: the two days and the details in one quiet style (no cards, no circles, no grey panel) */
section[aria-labelledby="days-h"] .steps-row { gap: 0 56px; }
section[aria-labelledby="days-h"] .soft-card.step-card { display: block; padding: 22px 0 0; border: 0; border-top: 1.5px solid var(--ink); border-radius: 0; background: none; }
section[aria-labelledby="days-h"] .step-card .n { display: none; }
section[aria-labelledby="days-h"] .step-card .small { font-size: 15px; color: var(--blue); font-weight: 600; }
section[aria-labelledby="days-h"] .step-card h3 { font-size: 26px; letter-spacing: -0.02em; margin: 4px 0 10px; }
section[aria-labelledby="days-h"] .step-card p:not(.small) { font-size: 18px; line-height: 1.55; max-width: 30em; }
section[aria-labelledby="days-h"] .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; padding: 0; background: none; border-radius: 0; }
section[aria-labelledby="days-h"] .facts > div { display: block; padding: 16px 0 0; border-top: 1px solid var(--rule); }
section[aria-labelledby="days-h"] .facts dt { font-size: 14px; margin-bottom: 4px; }
@media (max-width: 900px) { section[aria-labelledby="days-h"] .facts { grid-template-columns: 1fr; } section[aria-labelledby="days-h"] .facts > div { padding-bottom: 14px; } }

/* the four sandbox cards: one row on desktop, compact, fits one screen */
.boxes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.box-card { border-radius: 16px; }
.box-card .bench { height: 210px; border-bottom: 0; }
.box-card .txt { padding: 16px 18px 20px; gap: 6px; }
.box-card h3 { font-size: 22px; }
.box-card p { font-size: 15.5px; line-height: 1.45; }
.box-card .kind { font-size: 13px; }
@media (max-width: 1180px) { .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .boxes { grid-template-columns: 1fr; } .box-card .bench { height: 200px; } }

/* Build: the three examples without boxed text */
.examples { gap: 28px; }
.example { border: 0; border-radius: 0; overflow: visible; }
.example .bench { height: 230px; border: 0; border-radius: 16px; overflow: hidden; background: #e9eff5; }
.example .txt { padding: 18px 0 0; }
.example h3 { font-size: 22px; }
.example .q { font: 400 17px/1.45 var(--f); color: var(--slate); margin: 6px 0 14px; }
.example dl { display: grid; gap: 10px; }
.example dl > div { border: 0; padding: 0; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); column-gap: 12px; }
.example dt { font-size: 14px; padding-top: 1px; }
.example dd { font-size: 15.5px; line-height: 1.45; }
@media (max-width: 1180px) { .example { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; } .example .bench { height: 100%; min-height: 220px; border-right: 0; } .example .txt { padding-top: 0; } }
@media (max-width: 720px) { .example { grid-template-columns: 1fr; } .example .bench { height: 220px; } .example .txt { padding-top: 16px; } }

/* Team: smaller round photos in one even row, names under them; less empty space under the title */
.team-panel > h2 { font-size: 24px; margin-bottom: 22px; padding-top: 0; border-top: 0; }
.team-panel + .team-panel { margin-top: 48px; }
.people { display: flex; flex-wrap: wrap; gap: 28px 32px; }
.people li { width: 132px; text-align: center; }
.people img { width: 132px; height: 132px; border-radius: 50%; }
.people .nm { font: 500 15.5px/1.3 var(--f); margin-top: 10px; }
@media (max-width: 720px) { .people { gap: 22px 18px; } .people li { width: calc(50% - 9px); } .people img { width: 116px; height: 116px; } }

/* Hackathon: the form beside its heading instead of a full-width empty panel */
#register .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
#register .sec-head { grid-column: 1 / 5; grid-row: 1; display: block; position: sticky; top: 32px; }
#register .sec-head h2, #register .sec-head .lead { grid-column: auto; }
#register .sec-head .lead { margin-top: 16px; font-size: 18px; }
#register > .wrap > .actions { grid-column: 1 / 5; grid-row: 2; align-self: start; margin: 20px 0 0 !important; }
#register .form-panel { grid-column: 6 / 13; grid-row: 1 / span 3; padding: 10px; border: 0; border-radius: 20px; background: var(--tint); }
@media (max-width: 900px) {
  #register .wrap { display: block; }
  #register .sec-head { position: static; }
  #register > .wrap > .actions { margin: 16px 0 18px !important; }
}

/* section heads: the lead sits under the heading, left-aligned, not off to the right */
.sec-head { row-gap: 0; margin-bottom: 40px; align-items: start; }
.sec-head h2, .sec-head .lead, .sec-head .cite { grid-column: 1 / 10; }
.sec-head .lead { margin-top: 14px; max-width: 40em; }
.sec-head .cite { margin-top: 10px; }
#register .sec-head h2, #register .sec-head .lead { grid-column: auto; }

/* Team: the live site's layout, a grid of large photos with a rule above each and the name below;
 * photos are black and white and turn to colour on hover */
.team-panel > h2 { font-size: 28px; margin-bottom: 24px; }
.team-panel + .team-panel { margin-top: 64px; }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.people li { width: auto; text-align: left; border-top: 2px solid var(--ink); padding-top: 14px; }
.people img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; object-fit: cover; object-position: 50% 25%;
  filter: grayscale(1); transition: filter 0.22s ease; }
.people li:hover img { filter: grayscale(0); }
.people .nm { font: 600 18px/1.3 var(--f); letter-spacing: -0.01em; margin-top: 12px; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } .people img { aspect-ratio: 1; } .people li { width: auto; } }
@media (prefers-reduced-motion: reduce) { .people img { transition: none; } }
.people li { padding-top: 0; border-top-width: 3px; }
.people[aria-labelledby="adv-h"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .people[aria-labelledby="adv-h"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.people img[src*="kevin-chafloque"] { object-position: 50% 0%; }

/* Team, final: one even row per group, smaller square photos, same size in both groups, name below */
.team-panel > h2 { font-size: 24px; margin-bottom: 20px; }
.team-panel + .team-panel { margin-top: 56px; }
.people, .people[aria-labelledby="adv-h"] { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 28px 20px; }
.people li { border-top: 0; padding-top: 0; }
.people img { aspect-ratio: 1; border-radius: 10px; object-position: 50% 30%; }
.people .nm { font: 500 15px/1.3 var(--f); letter-spacing: 0; margin-top: 10px; }
@media (max-width: 1180px) { .people, .people[aria-labelledby="adv-h"] { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 720px) { .people, .people[aria-labelledby="adv-h"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; } .people .nm { font-size: 13.5px; } }
.broad-logo { display: inline-block; margin-top: 28px; } .broad-logo img { height: 46px; width: auto; display: block; } @media (max-width: 720px) { .broad-logo img { height: 38px; } }

/* ================================================================ leaderboards: the live site's markup in this look */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sandbox-results { padding-top: var(--sec); }
.leaderboard-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 24px; }
.leaderboard-heading h2 { font: 600 clamp(32px, 3.2vw, 46px)/1.08 var(--f); letter-spacing: -0.028em; }
.leaderboard-heading p { margin-top: 14px; max-width: 40em; font: 400 21px/1.45 var(--f); color: var(--slate); }
.leaderboard-heading > span { font-size: 14px; color: var(--slate); }
.leaderboard-example-note { padding: 18px 24px; border-radius: 16px; background: var(--tint); font-size: 15px; color: var(--slate); }
.leaderboard-example-note strong { color: var(--ink); font-weight: 600; }
.results-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; }
.results-table-wrap table { width: 100%; border-collapse: collapse; }
.results-table-wrap th, .results-table-wrap td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--hair); font-size: 15px; }
.results-table-wrap thead th { font-size: 13px; font-weight: 500; color: var(--slate); padding-top: 16px; }
.results-table-wrap th:first-child, .results-table-wrap td:first-child { padding-left: 24px; }
.results-table-wrap th:last-child, .results-table-wrap td:last-child { padding-right: 24px; }
.submission-summary-row td { font-variant-numeric: tabular-nums; }
.submission-summary-row td:first-child { font: 600 20px/1 var(--f); color: var(--blue); }
.submission-summary-row .model-name, .reasoning-panel .model-name { color: var(--slate); }
.submission-summary-row:last-of-type td, .submission-reasoning-row:last-child td { border-bottom: 0; }
.submission-summary-row.is-expanded td { border-bottom-color: transparent; background: var(--tint); }
.reasoning-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: #fff;
  font: 600 14px/1 var(--f); color: var(--blue); cursor: pointer; white-space: nowrap; }
.reasoning-toggle:hover { border-color: var(--blue); }
.reasoning-toggle svg { width: 12px; height: 12px; transition: transform 0.2s; }
.reasoning-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submission-reasoning-row > td { background: var(--tint); padding: 0 24px 24px; }
.reasoning-panel { max-width: 54em; padding-top: 8px; }
.reasoning-panel-heading span { font-size: 13px; color: var(--slate); }
.reasoning-panel-heading h3 { font: 600 22px/1.25 var(--f); margin-top: 2px; }
.reasoning-copy { margin-top: 12px; }
.reasoning-copy h4 { font: 600 20px/1.25 var(--f); margin: 22px 0 8px; }
.reasoning-copy h5 { font: 600 16px/1.3 var(--f); margin: 18px 0 6px; }
.reasoning-copy h6 { font: 600 14px var(--f); margin: 14px 0 4px; color: var(--slate); }
.reasoning-copy p, .reasoning-copy li { font-size: 15.5px; line-height: 1.6; }
.reasoning-copy p + p { margin-top: 8px; }
.reasoning-copy ul, .reasoning-copy ol { list-style: disc; padding-left: 20px; margin: 8px 0; }
.reasoning-copy code { font: 13px var(--f-mono); background: #fff; padding: 1px 5px; border-radius: 4px; }
.reasoning-copy table { margin: 12px 0; border-collapse: collapse; }
.reasoning-copy th, .reasoning-copy td { padding: 8px 10px; font-size: 13.5px; border-bottom: 1px solid var(--rule); }
.reasoning-close, [data-reasoning-close] { margin-top: 16px; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; font: 600 14px var(--f); color: var(--ink); cursor: pointer; }
@media (max-width: 720px) {
  .results-table-wrap th, .results-table-wrap td { padding: 10px 10px; font-size: 14px; }
  .results-table-wrap th:first-child, .results-table-wrap td:first-child { padding-left: 14px; }
  .submission-reasoning-row > td { padding: 0 14px 18px; }
}

/* ================================================================ phones (Nov 16 review)
 * Walkthroughs: the heading comes first, then the figure pinned at the top at one height for every figure. Steps
 * are short enough that the one being drawn sits under the figure with the next one peeking in at the bottom (no
 * screen of blank between them), and text slides under a short fade instead of being cut by the figure's edge.
 * svh does not change when the browser's address bar slides away, so nothing jumps. */
@media (max-width: 900px) {
  .walk-head { order: -1; padding: 28px 0 12px; }
  .home-walk .hero-copy { order: -2; }
  .home-walk .walk-head { padding-top: 8px; }
  .walk-fig .bench, .lab { height: 38vh; height: 38svh; min-height: 250px; max-height: 360px; }
  .walk-fig::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); pointer-events: none; }
  .lab.is-narrow .lab-rank { left: 8px; right: 8px; width: auto; padding: 12px 14px 8px; }
  .lab.is-narrow .lab-rank th, .lab.is-narrow .lab-rank td { padding: 5px 6px; font-size: 13px; }
  .lab.is-narrow .lab-rank th:first-child, .lab.is-narrow .lab-rank td:first-child { padding-left: 0; }
  .lab.is-narrow .lab-rank tr.me td:first-child { padding-left: 8px; }
  .lab.is-narrow .lab-rank th:last-child, .lab.is-narrow .lab-rank td:last-child { padding-right: 0; }
  .lab.is-narrow .lab-tag .tt { font-size: 13px; }
  .lab.is-narrow .lab-clock small, .lab.is-narrow .lab-badge { font-size: 13px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .walk-steps .bstep, .walk-steps .bstep:first-child, .walk-steps .bstep:last-child, .home-walk .walk-steps .bstep { min-height: 36vh; min-height: 36svh; }
}
@media (max-width: 720px) {
  /* nav: one row that fits ("Build" instead of "Build a sandbox"), spread across the width, nothing faded */
  .nav .nav-x { display: none; }
  .nav { flex-wrap: wrap; justify-content: space-between; gap: 0 14px; overflow: visible; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
  /* the compare table becomes one block per sandbox, each value under its question */
  .table-wrap:has(.compare) { overflow: visible; border-top: 0; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { padding-top: 16px; border-top: 1.5px solid var(--ink); }
  .compare tr + tr { margin-top: 28px; }
  .compare th[scope="row"] { padding: 0 0 6px; border: 0; }
  .compare td { padding: 10px 0; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 13px; font-weight: 500; color: var(--slate); }
  .compare td:last-child { border-bottom: 0; }
  /* leaderboards: one card-like row per submission, the rank on the left, nothing cut off */
  .results-table-wrap { overflow: visible; }
  .results-table-wrap > table, .results-table-wrap > table > tbody { display: block; }
  .results-table-wrap > table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .results-table-wrap .reasoning-table-wrap { overflow-x: auto; }
  .results-table-wrap tr.submission-summary-row { display: block; position: relative; padding: 16px 16px 16px 52px; border-bottom: 1px solid var(--hair); }
  .results-table-wrap tr.submission-summary-row > td { display: block; padding: 0; border: 0; font-size: 15px; line-height: 1.4; }
  .results-table-wrap tr.submission-summary-row > td + td { margin-top: 6px; }
  .results-table-wrap tr.submission-summary-row > td:first-child { position: absolute; left: 18px; top: 16px; padding: 0; }
  .results-table-wrap tr.submission-summary-row > td[data-label]:not([data-label="Notebook"])::before { content: attr(data-label); display: inline-block; min-width: 9em; font-size: 13px; color: var(--slate); }
  .results-table-wrap tr.submission-summary-row > td:last-child { margin-top: 10px; }
  .results-table-wrap tr.submission-summary-row:nth-last-child(2) { border-bottom: 0; }
  .results-table-wrap tr.submission-summary-row.is-expanded { border-bottom-color: transparent; background: var(--tint); }
  .results-table-wrap tr.submission-reasoning-row:not([hidden]) { display: block; }
  .results-table-wrap tr.submission-reasoning-row > td { display: block; border: 0; }
  .results-table-wrap tr.submission-summary-row > td:first-child { font-size: 20px; line-height: 1.1; top: 15px; }
  /* key facts: each label above its value, so values get the full width instead of a narrow column */
  .facts { padding: 4px 20px; }
  .facts > div { display: block; padding: 14px 0; }
  .facts > div:nth-child(2) { border-top: 1px solid #dde5ec; }
  .facts dt { font-size: 13px; margin-bottom: 3px; }
  /* home: the wash ends above the figure, so the figure's white does not meet it in a hard line */
  body:has(.home-hero) { background:
    radial-gradient(80% 420px at 88% 0, rgba(160, 205, 255, 0.38), rgba(160, 205, 255, 0) 70%),
    radial-gradient(70% 420px at 0 140px, rgba(150, 232, 220, 0.3), rgba(150, 232, 220, 0) 70%),
    linear-gradient(180deg, #e9f6f3 0, #edf3fb 380px, #ffffff 720px) no-repeat, #fff; }
  /* the registration form gets the whole width: Google's phone layout needs about 360px */
  #register .form-panel { padding: 0; margin: 0 calc(-1 * var(--m)); border-radius: 0; background: none; }
  #register .form-panel iframe { border-radius: 0; }
  /* GitHub icons: a bigger tap area without moving them */
  .leads .gh { padding: 8px; margin: -8px; }
}
@media (max-width: 900px) {
  /* home figure, last step: on phones the ranking sits in the middle of the figure with the lab faded behind it */
  .lab.is-narrow .lab-rank { top: 50%; transform: translateY(calc(-50% + 8px)); }
  .lab.is-narrow .lab-rank.on { transform: translateY(-50%); }
}
