* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 "Hanken Grotesk", system-ui, sans-serif; }   /* no overflow rule: on iPhones it can make the page scroll heavier */
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[data-tip] { cursor: help; text-decoration: underline dotted var(--rule); text-underline-offset: 3px; }

.col { width: min(100% - 40px, 760px); margin-inline: auto; }
main.col { transition: transform 0.36s var(--ease); }
:root { --shadow: 0 1px 2px rgba(40, 34, 20, 0.04), 0 10px 30px -18px rgba(40, 34, 20, 0.18); }
[data-theme="dark"] { --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -18px rgba(0, 0, 0, 0.6); }

/* ---------- title band ---------- */

.band { position: relative; overflow: hidden; isolation: isolate; color: var(--band-ink); background: var(--band-bg); touch-action: pan-y; }
.band > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 72px); mask-image: linear-gradient(to bottom, transparent 0, #000 72px); }   /* the nav stays clear */
.band-in { position: relative; z-index: 1; padding: var(--navh) 0 34px; }
.titles { position: relative; margin-top: 52px; width: fit-content; max-width: 100%; }
.titles::before { content: ""; position: absolute; inset: -50px -90px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--paper) 82%, transparent), color-mix(in srgb, var(--paper) 55%, transparent) 60%, transparent); }
[data-theme="dark"] .titles::before { background: radial-gradient(closest-side, rgba(14, 25, 35, 0.82), rgba(14, 25, 35, 0.55) 60%, rgba(14, 25, 35, 0)); }
h1 { font: 500 clamp(40px, 7vw, 58px)/1.02 var(--display); letter-spacing: -0.02em; }
.titles h1 { font-weight: 600; letter-spacing: -0.035em; }
/* the name: "AI4S" in the logo's blues, on the leaderboard and on the blog's cover */
:is(.titles h1, .cover-title) span { background: linear-gradient(100deg, #0d2345, #1155bc 45%, #1677ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.titles .kicker { margin-bottom: 10px; font-size: 12.5px; color: var(--band-sub); }
.tagline { margin-top: 12px; font-size: clamp(18px, 2vw, 21px); line-height: 1.35; color: var(--band-ink); }
/* the benchmark's resources, as a row of buttons under the name */
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.release-links { margin: 0 0 26px; }   /* the same buttons under the article's title */
.hero-link { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 12px; border: 1px solid color-mix(in srgb, var(--band-ink) 16%, transparent);
  border-radius: 999px; background: color-mix(in srgb, var(--card) 82%, transparent); color: var(--band-ink); font-size: 13.5px; font-weight: 600; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color 0.15s, color 0.15s, background 0.15s; }
.hero-link svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-link svg.mark { fill: currentColor; stroke: none; }
a.hero-link:hover { border-color: var(--accent); background: var(--card); color: var(--accent); }
.sub { margin-top: 14px; font-size: 14.5px; line-height: 1.6; max-width: 44em; color: var(--band-sub); }


/* ---------- sections ---------- */

section { padding-top: 40px; }
/* the overall curve and the leaderboard sit on one card */
#overall { margin-top: 34px; padding: 22px 24px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
h2 { font: 500 25px/1.2 var(--display); letter-spacing: -0.01em; }
.seg button[data-help] { cursor: pointer; }
h2 em { color: var(--muted); }
/* ---------- the overall chart ---------- */

.chart { margin-top: 18px; touch-action: pan-y; user-select: none; cursor: ew-resize; }
.chart svg { display: block; overflow: visible; }
.chart text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--line); }
.chart .axis { stroke: var(--rule); }
.chart .line { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.cursor-line { stroke: var(--accent); stroke-width: 1.2; }
.at .halo { opacity: 0.16; }
.flag rect { fill: var(--accent); }
.flag text { fill: var(--on-accent); font-size: 11.5px; font-weight: 500; }
[data-agent] { transition: opacity 0.2s; }
.dim { opacity: 0.16; }

/* ---------- the leaderboard ---------- */

.board { margin-top: 18px; }
.board-head { font-size: 13px; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.board-head b { color: var(--ink); font-weight: 600; }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 18px minmax(150px, 210px) 1fr 92px; align-items: center; gap: 12px; height: 50px;
  border-bottom: 1px solid var(--line); cursor: pointer; }
.row:hover .who b { text-decoration: underline; text-underline-offset: 3px; }
.row[aria-pressed="true"] .who b { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.logo { display: block; }
.who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who b { font-weight: 600; font-size: 14.5px; }
.who span { font-size: 12px; color: var(--muted); }
.val { text-align: right; line-height: 1.2; }
.val b { font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.val small { display: block; font-size: 11px; color: var(--muted); }
.marks { display: grid; grid-template-columns: 18px minmax(150px, 210px) 1fr 92px; gap: 12px; height: 26px; font-size: 11.5px; color: var(--muted); }
.mk-track { position: relative; }
.mk { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }

/* ---------- the tasks ---------- */

/* the tasks keep to the column, as wide as the chart above */
#tasks { scroll-margin-top: var(--navh); padding-top: 52px; }
.head.sticky { position: sticky; top: var(--navh); z-index: 5; padding: 10px 0; background: color-mix(in srgb, var(--paper) 97%, transparent); }
.tasks-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.domain-icon { width: var(--domain-icon-size, 16px); height: var(--domain-icon-size, 16px); flex: none; color: var(--domain-color); }

/* The domain key highlights matching tasks on hover and holds the selection on click. */
.domain-key { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.domain-key button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.domain-key button span { color: var(--faint); font-variant-numeric: tabular-nums; }
.domain-key button:hover, .domain-key button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.card { display: flex; flex-direction: column; height: 100%; padding: 12px 11px 9px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s; }
.card:hover { border-color: var(--rule); box-shadow: var(--shadow); }
.card[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.faded { opacity: 0.25; }
.card-top { --domain-icon-size: 20px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 34px; }
.card-top .domain-icon { justify-self: center; }
.card-name { font-weight: 600; font-size: 13px; line-height: 1.25; }
.card-vals { display: flex; gap: 12px; margin-top: 6px; font-size: 11.5px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.card-plot { flex: none; height: 52px; margin-top: auto; padding-top: 8px; box-sizing: content-box; }   /* curves line up along a row */
.score-head { align-items: center; }
.score-head h4 em { margin-left: 6px; font-weight: 400; }   /* the task panel: its own normalized / raw switch */

/* every task on one chart, drawn like the blog's: a row per task sorted by the better agent, the region past the
   frontier tinted, a soft bar between the two agents, the starting recipe as a tick, other models as small dots */
.field-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-top: 40px; }
.field-head h3 { font: 500 21px/1.2 var(--display); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.legend i.other { width: 6px; height: 6px; background: var(--other); }
.legend i.baseline { width: 1.5px; height: 12px; border-radius: 1px; background: var(--muted); }
.legend i.zone { width: 14px; height: 10px; border-radius: 2px; background: var(--accent-wash); }
.field { margin-top: 12px; }
.fhead, .frow { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; }
.fhead { height: 22px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.fticks { position: relative; }
.fticks span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.fticks span[style^="left:0%"] { transform: none; }
.fticks span[style^="left:100%"] { transform: translateX(-100%); }
.fticks .lv { color: var(--ink); font-weight: 650; }
.frow { align-items: center; height: 24px; border-radius: 6px; text-decoration: none; transition: background 0.15s, opacity 0.2s; }
.frow:hover { background: var(--soft); }
.frow[aria-current="true"] { background: var(--accent-wash); }
.fname { --domain-icon-size: 13px; justify-self: end; display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; font-size: 12.5px; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.ftrack { position: relative; align-self: stretch; background: linear-gradient(to right, transparent 50%, color-mix(in srgb, var(--accent-wash) 80%, transparent) 50%); }
.fbar { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #ddd6ca; transition: left 0.12s linear, width 0.12s linear; }
.fd { position: absolute; top: 50%; z-index: 1; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; cursor: help; }
.fd.other { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--other); }
.fd.baseline { width: 1.5px; height: 12px; margin: -6px 0 0 -0.75px; border-radius: 1px; background: var(--muted); }
.fd.frontier { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 1px; background: var(--front); transform: rotate(45deg); opacity: 0.6; z-index: 2; }
.fd.agent { z-index: 3; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--c); box-shadow: 0 0 0 2px var(--card); transition: left 0.12s linear; }
.panel-domain { --domain-icon-size: 14px; display: flex; align-items: center; gap: 7px; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* The leaderboard and the blog are one continuous page, the blog after the leaderboard. Where they meet, a spring
   (views.js) or, on touch screens, the browser's snapping holds the page at the end of one or the top of the other. */
#lb-view { display: flow-root; }   /* margins stay inside, so the leaderboard ends where the blog starts */
#blog-view {
  --blog-width: min(var(--tasks-width), 840px);
  min-height: 100vh;
  padding-top: var(--navh);
}
/* The compact photo mosaic shrinks into a sticky band while the article comes into view. */
/* The mosaic is a rounded rectangle as wide as the article, a little below the bar. */
.cover {
  --blog-cover-height: clamp(245px, 47svh, 395px);
  --cover-gap: 16px;
  position: relative;
  height: var(--blog-cover-height);
  margin-top: var(--cover-gap);
  padding-top: 0;
}
.cover-stage { position: sticky; top: calc(var(--navh) + var(--cover-gap)); width: var(--blog-width); height: var(--band, 180px); margin-inline: auto; }
.mosaic { position: absolute; left: 0; right: 0; top: 0; height: var(--blog-cover-height); border-radius: 18px; overflow: clip; pointer-events: none; }
.mosaic li { position: absolute; }   /* placed by report-cover.js */
.mosaic .tile { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--soft); color: #fff; text-decoration: none;
}
.cover.moving .mosaic .tile { will-change: transform, clip-path; }   /* layers only while the pictures move (report-cover.js) */
.cover-stage { -webkit-user-select: none; user-select: none; }
/* the web behind the circles (report-cover.js draws it), and the name of the circle under the pointer */
.cover-sky { position: absolute; left: 0; top: 0; width: 100%; height: var(--band, 180px); pointer-events: none; }
.cover-tip { position: absolute; left: 0; top: 0; z-index: 3; padding: 6px 11px 7px; border: 1px solid var(--line); border-radius: 10px;
  background: color-mix(in srgb, var(--card) 94%, transparent); box-shadow: 0 6px 18px rgba(40, 34, 20, 0.09); pointer-events: none;
  white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity 0.18s, transform 0.18s; }
.cover-tip.on { opacity: 1; transform: none; }
.cover-tip b { display: block; font-size: 13px; font-weight: 650; line-height: 1.3; color: var(--ink); }
.cover-tip span { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.cover-tip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dom); }
/* a task's picture and its films lie on top of each other; the one showing fades in over the others */
.mosaic img, .mosaic video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.mosaic .on { opacity: 1; }
.mosaic video.pre { opacity: 0.02; transition: none; }   /* set playing before it is shown */
/* gathered into circles, each picture melts into a soft ball of its colours (blurred in the tile's own size, which the
   circle then shrinks; enlarged so the blur does not pale the circle's rim) */
.mosaic :is(img, video) { transition: opacity 0.9s ease, filter 0.8s ease, scale 0.8s ease; }
.cover.balls .mosaic :is(img, video) { filter: blur(14px) saturate(1.9) brightness(1.1); scale: 1.35; }
/* the picture drifts slowly, as if alive */
.mosaic img { animation: drift 18s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(var(--dx, -2%), var(--dy, -1.5%)); } }
.cover.still .mosaic img { animation-play-state: paused; }
.cover-title { position: absolute; left: 0; top: 0; transform: translateY(var(--rise, 14px)); opacity: var(--show, 0); pointer-events: none; z-index: 1;
  font: 600 clamp(34px, 5.5vw, 60px)/1 var(--display); letter-spacing: -0.035em; }
.cover + .col .report > section:first-child { margin-top: 14px; }
#blog-view > .col { width: var(--blog-width); padding-bottom: 56px; }
/* Where they meet, the page is drawn to the end of the leaderboard or the top of the blog by views.js: a spring for
   a wheel or a trackpad, a glide once a touch scroll has come to rest. No CSS snapping: on phones any snapping on
   the page changes how every fling slows down, and the page should scroll exactly as any page does. */
}
@supports (animation-timeline: view()) {
  /* each title picture drifts a little slower than the page as it scrolls away */
  .band > canvas { animation: band-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  @keyframes band-drift { to { transform: translateY(22%); } }
}

main.col { padding-bottom: 96px; }   /* room at the end of the leaderboard, before the blog */

/* ---------- the report: a blog read from top to bottom ---------- */

.report-chapters { margin-top: 16px; }
.report-chapters ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.report-chapters a {
  display: block;
  padding: 6px 10px;
  border-inline-start: 2px solid transparent;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.3;
  text-decoration: none;
}
.report-chapters a:is(:hover, [aria-current="location"]) { color: var(--accent); background: var(--accent-wash); }
.report-chapters a[aria-current="location"] { border-inline-start-color: currentColor; font-weight: 600; }
.report-chapters a:focus-visible { outline-offset: -2px; }
#blog-view > .col > :is(.report, .report-chapters) { max-inline-size: var(--blog-width); margin-inline: auto; }
@media (760px <= width < 1360px) {
  .report-chapters ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1360px) {
  #blog-view > .col:has(> .report-chapters) {
    display: grid;
    width: var(--tasks-width);   /* the chapters' left edge meets the bar's and the cover's */
    grid-template-columns: minmax(0, 1fr) var(--blog-width) minmax(0, 1fr);
    align-items: start;
    gap: 0;
    padding-block-start: 36px;
  }
  #blog-view > .col > .report-chapters { grid-column: 1; max-inline-size: none; margin-inline: 0 16px; }
  #blog-view > .col > .report { grid-column: 2; }
  .report-chapters {
    position: sticky;
    inset-block-start: calc(var(--navh) + 20px);
    max-block-size: calc(100dvh - var(--navh) - 40px);
    overflow-y: auto;
    margin-block-start: 0;
    padding: var(--reading-nav-padding);
    padding-block-start: 0;
  }
  .report-chapters ol { grid-template-columns: minmax(0, 1fr); border-inline-start: 1px solid var(--line); }
  .report-chapters a { margin-inline-start: -1px; }
  #blog-view > .col > .report { margin-block-start: 0; }
  #blog-view > .col > .report > .report-head {
    margin-block-start: 0;
    padding-block-start: 0;
  }
}

.report { margin-top: 4px; min-inline-size: 0; }
.report section { scroll-margin-top: calc(var(--navh) + 16px); }
.report > section:not(:first-child, #reference-compute) {
  padding-block: 30px;
  border-block-start: 1px solid var(--line);
}
.report > section:first-child { padding-block-end: 20px; }
.report #reference-compute { margin-block: 18px 0; scroll-margin-top: calc(var(--navh) + 16px); }
.report-head :is(h1, h2) { margin-block-end: 18px; font: 500 29px/1.2 var(--display); letter-spacing: -0.01em; }
.report-head h2 a { text-decoration: none; }
.report-head h2 a:is(:hover, :focus-visible) { color: var(--accent); text-decoration: underline; }
.report > section > h3 {
  margin-block-end: 14px;
  font-size: var(--reading-chapter-size);
  font-weight: 600;
  line-height: 1.4;
}
.report section > h4 {
  margin-block: 20px 8px;
  font-size: var(--reading-subheading-size);
  font-weight: 600;
  line-height: 1.4;
}
.report #autoresearch > section { padding-block-start: 0; }
.report #autoresearch > section > h4:first-child { margin-block-start: 0; }
.report #autoresearch > section + section { margin-block-start: 20px; }
.report :is(section, #reference-compute) > :is(p, .bullets) {
  margin-block: 0 12px;
  font-size: var(--reading-body-size);
  line-height: var(--reading-body-leading);
}
.report .bullets { padding-inline-start: 20px; list-style: disc; }
.report .bullets li + li { margin-block-start: 6px; }
.report :is(section, #reference-compute) > :is(p, ul, ol) { max-inline-size: var(--reading-text-width); }
.report :is(section, #reference-compute) > :is(p, .bullets):last-child { margin-block-end: 0; }
@media (max-width: 800px) {
  .report > section:not(:first-child, #reference-compute) { padding-block: 22px; }
  .report > section:first-child { padding-block-end: 22px; }
}
.report .fig { max-inline-size: 700px; margin: 14px auto 6px; }
.fig svg { display: block; overflow: visible; }
.fig figcaption { margin-top: 6px; font-size: 0.75rem; line-height: 1.4; color: var(--muted); }
.report-figure-frame { max-inline-size: var(--reading-text-width); }
.report-figure-frame figcaption { text-align: center; text-wrap: balance; }
.fig text { font-family: "Hanken Grotesk", system-ui, sans-serif; fill: var(--ink); }
.fig .f-name { font-size: 13.5px; font-weight: 550; }
.fig .f-big { font: 500 26px var(--display); }
.fig .f-med { font-size: 12px; font-weight: 650; }
.fig .f-small { font-size: 11.5px; fill: var(--muted); }
.fig .f-label { font-size: 12px; }
.fig .f-grid { stroke: var(--line); }
.fig .f-front { stroke: var(--refline); stroke-dasharray: 4 3; }
.fig .f-base { stroke: var(--muted); stroke-width: 1.4; }
.fig .f-link { stroke: var(--rule); stroke-width: 2; }
.fig .f-bar { fill: var(--accent); fill-opacity: 0.75; }
.fig .f-beyond { fill: var(--soft); fill-opacity: 0.6; }

.report .run-comparison { margin-block-end: 12px; }
.run-comparison-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.run-comparison-panels > div {
  padding-block: 9px 12px;
  border-block: 1px solid var(--line);
}
.run-comparison caption, .run-comparison h5 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 750;
  text-align: start;
}
.run-comparison table { width: 100%; border-collapse: collapse; }
.run-comparison th, .run-comparison td { padding: 4px 6px 4px 0; text-align: start; }
.run-comparison thead th { color: var(--muted); font-size: 0.75rem; font-weight: 650; }
.run-comparison tbody th { font-weight: 600; }
.run-comparison tbody td, .run-cost-row dd { font-variant-numeric: tabular-nums; }
.run-bar {
  display: flex;
  overflow: hidden;
  height: 4px;
  margin-block-start: 3px;
  border-radius: 2px;
  background: var(--soft);
}
.run-bar > span { flex-shrink: 0; }
.run-comparison dl { margin: 12px 0; }
.run-cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  margin-block-start: 12px;
  font-weight: 650;
}
.run-cost-row dd { margin: 0; }
.run-cost-row dd:last-child { grid-column: 1 / -1; }
.run-cost-row .run-bar { height: 9px; }
.run-gpu { background: #a6b4c5; }
.run-api { background: var(--accent); }
.run-cost-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 0.75rem; }
.run-cost-legend > span { display: flex; align-items: center; gap: 5px; }
.run-cost-legend i { width: 9px; height: 9px; border-radius: 2px; }
@media (max-width: 620px) {
  .run-comparison-panels { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

.report #discoveries > p a { color: var(--accent); }

.discovery-card {
  --discovery-body-size: 0.8125rem;
  --discovery-label-size: 0.75rem;
  --discovery-meta-size: 0.6875rem;
  color: var(--ink);
}
.discovery-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.discovery-tabs button {
  padding: 9px 6px;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: var(--discovery-label-size);
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.discovery-tabs button:focus-visible { outline-offset: -3px; }
.discovery-tabs button:hover { background: var(--soft); }
.discovery-tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
/* Stack the panels so the tallest one sets the card height at every width. */
.discovery-panels { display: grid; }
.discovery-layout {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: stretch;
  gap: 22px;
  min-block-size: 25rem;
  padding-top: 12px;
}
.discovery-layout[hidden] { display: grid; visibility: hidden; }
.discovery-file[hidden] { display: none; }
.discovery-overview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px 0 7px;
}
.report .discovery-overview h4 {
  font: 750 1.1875rem/1.15 "Hanken Grotesk", system-ui, sans-serif;
  margin-bottom: 0;
}
.report .discovery-agent {
  color: var(--muted);
  font-size: var(--discovery-meta-size);
  line-height: 1.35;
  margin-top: 6px;
}
.discovery-overview dl { margin: 0; }
.discovery-overview > dl dt {
  margin-top: 14px;
  font-size: var(--discovery-label-size);
  font-weight: 650;
  line-height: 1.3;
}
.discovery-overview > dl dd {
  margin-top: 4px;
  font-size: var(--discovery-body-size);
  line-height: 1.4;
}
.discovery-code-jump {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.discovery-code-jump:hover { text-decoration-thickness: 2px; }
.discovery-results { width: 100%; margin-top: auto; padding-top: 16px; }
.discovery-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  padding-block-start: 10px;
  border-block-start: 1px solid var(--line);
}
.discovery-scores dt {
  color: var(--muted);
  font-size: var(--discovery-meta-size);
  line-height: 1.2;
}
.discovery-scores dd {
  font-size: clamp(1.1875rem, 3vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.discovery-scores > div:last-child dd { font-weight: 750; }
.discovery-github {
  display: grid;
  align-items: center;
  padding-inline: 10px;
  border-inline-start: 1px solid var(--line);
  color: var(--accent);
  font-size: var(--discovery-label-size);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.discovery-github:focus-visible { outline-offset: -2px; }
.discovery-methods {
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
  align-self: start;
  block-size: 23rem;
  min-inline-size: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
}
.discovery-code-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-block-end: 1px solid var(--line);
  background: var(--soft);
}
.discovery-methods .discovery-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 0;
}
.discovery-methods .discovery-tabs button {
  flex: 0 0 auto;
  max-inline-size: 100%;
  min-height: 0;
  padding: 0 13px;
  border: solid var(--line);
  border-width: 0 1px 0 0;
  color: var(--muted);
  font: 0.75rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.discovery-methods .discovery-tabs button:hover { background: var(--paper); }
.discovery-methods .discovery-tabs button[aria-selected="true"] {
  color: var(--accent);
  background: var(--card);
  box-shadow: inset 0 2px var(--accent);
}
.discovery-file { display: grid; min-block-size: 0; min-inline-size: 0; }
.discovery-code {
  position: relative;
  contain: size;
  overflow: auto;
  margin: 0;
  padding-block: 8px;
  color: var(--ink);
  font: 0.625rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  overscroll-behavior-inline: contain;
  scroll-margin-block-start: calc(var(--navh) + 12px);
  tab-size: 4;
}
.discovery-code:focus-visible { outline-offset: -2px; }
.discovery-code code {
  display: block;
  inline-size: max-content;
  min-inline-size: 100%;
  font: inherit;
  white-space: normal;
}
.discovery-code-line, .discovery-editorial {
  display: block;
  min-block-size: 1.45em;
  padding-inline-end: 13px;
  white-space: pre;
}
.discovery-code-line::before, .discovery-editorial::before {
  content: attr(data-line);
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  display: inline-block;
  inline-size: 6ch;
  padding-inline-end: 1.5ch;
  background: var(--card);
  color: var(--muted);
  text-align: end;
  user-select: none;
}
.discovery-code-line[data-highlighted] { background: var(--accent-wash); }
.discovery-code-line[data-highlighted]::before {
  background: var(--accent-wash);
  box-shadow: inset 2px 0 var(--accent);
  color: var(--accent);
}
.discovery-editorial {
  background: var(--paper);
  color: var(--accent);
  font-style: italic;
  user-select: none;
}
.discovery-editorial::before { background: var(--paper); }
.discovery-code .syntax-comment { color: var(--muted); font-style: italic; }
.discovery-code .syntax-string { color: #8b4934; }
.discovery-code .syntax-keyword { color: var(--accent); }
.discovery-code .syntax-value { color: var(--labelink); }

@media (max-width: 700px) {
  .discovery-card > .discovery-tabs {
    grid-auto-columns: minmax(96px, 1fr);
    overflow-x: auto;
  }
  .discovery-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 14px;
    min-block-size: 0;
  }
  .discovery-overview { padding-bottom: 0; }
  .discovery-scores { max-width: 22rem; }
}

@media (max-width: 700px) {
  .report-chapters { margin-top: 14px; }
  .report-chapters a { padding-block: 6px; font-size: 0.875rem; line-height: 1.25; }
}

.report-citation { font-size: .75em; font-weight: 650; }
.report-citation a, .fig .report-citation { color: var(--accent); }
.fig .report-citation { fill: var(--accent); }
.report-references ol { padding-inline-start: 1.5em; list-style: decimal; }
.report-references li { padding-inline-start: .2em; color: var(--muted); font-size: .9375rem; line-height: var(--reading-body-leading); scroll-margin-top: calc(var(--navh) + 16px); }
.report-references a { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
.report-references li + li { margin-block-start: 7px; }
.report-references li:target { background: var(--accent-wash); }
/* the team at the end of the post: the institutions' logos in grey (in colour under the pointer), then everyone's name and
   the address for correspondence */
.report-team .team-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 30px; margin: 26px 0 36px; padding: 0; list-style: none; }
.report-team .team-logos img { display: block; width: auto; filter: grayscale(1); opacity: 0.6; transition: filter 0.2s, opacity 0.2s; }
.report-team .team-logos img:hover { filter: none; opacity: 1; }
@media (max-width: 640px) { .report-team .team-logos { zoom: 0.75; gap: 18px 26px; } }
.report-team .team-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 20px; padding: 0; list-style: none; }
.report-team .team-people li { color: var(--ink); font-size: var(--reading-body-size); font-weight: 600; }
.report #team > p.team-contact { margin-block: 26px 0; padding: 12px 16px; border-inline-start: 2px solid var(--accent);
  border-radius: 0 8px 8px 0; background: var(--accent-wash); color: var(--ink); font-size: var(--reading-body-size); }
.team-contact strong { display: block; margin-block-end: 4px; font-weight: 700; }
.team-contact-addresses { display: flex; flex-wrap: wrap; gap: 4px 24px; overflow-wrap: anywhere; }
.team-contact-addresses a { color: var(--accent); text-underline-offset: 0.15em; }

.foldbench-timeline {
  --protein: var(--accent);
  --antibody: #995b48;
  --starter: var(--muted);
}
.foldbench-timeline .foldbench-stacked { display: none; }
.foldbench-protein { --series: var(--protein); }
.foldbench-antibody { --series: var(--antibody); }
.foldbench-timeline .foldbench-heading { font-size: 13px; font-weight: 750; }
.foldbench-timeline .foldbench-axis { fill: var(--muted); font-size: 11.5px; }
.foldbench-timeline .foldbench-note { fill: var(--muted); font-size: 11px; font-style: italic; }
.foldbench-timeline .foldbench-model.foldbench-agent { fill: var(--starter); }
.foldbench-timeline .foldbench-legend { fill: var(--series); font-size: 12px; font-weight: 700; }
.foldbench-model { font-size: 10.5px; }
.foldbench-step, .foldbench-legend-line { fill: none; stroke: var(--series); stroke-width: 2.4; }
.foldbench-step { stroke-linejoin: round; }
.foldbench-reference { stroke: var(--series); stroke-dasharray: 2 3; stroke-opacity: .65; }
.foldbench-observation { fill: var(--series); opacity: .35; }
.foldbench-milestone, .foldbench-starter { stroke: var(--paper); stroke-width: .9; }
.foldbench-milestone { fill: var(--series); }
.foldbench-starter { fill: var(--starter); }

@media (max-width: 560px) {
  .foldbench-timeline .foldbench-wide { display: none; }
  .foldbench-timeline .foldbench-stacked { display: block; }
}

.harbor-figure {
  --harbor-blue: #2b4788;
  --harbor-green: #24624f;
  --harbor-flow-gap: 19px;
  --harbor-arrow-down: polygon(46% 0, 54% 0, 54% calc(100% - 7px), 83% calc(100% - 7px), 50% 100%, 17% calc(100% - 7px), 46% calc(100% - 7px));
  --harbor-arrow-right: polygon(0 45%, calc(100% - 7px) 45%, calc(100% - 7px) 14%, 100% 50%, calc(100% - 7px) 86%, calc(100% - 7px) 55%, 0 55%);
  container-type: inline-size;
  max-inline-size: 760px;
  margin: 12px auto 6px;
  color: #182536;
  font-size: 0.75rem;
  line-height: 1.35;
}
.harbor-flow { display: grid; gap: 8px; }
.harbor-task, .harbor-agent, .harbor-verifier {
  min-width: 0;
  padding: 10px;
  border-block-start: 1px solid var(--harbor-lane-line, #a5aeb6);
}
.harbor-agent, .harbor-verifier {
  display: grid;
  row-gap: var(--harbor-flow-gap);
  background: var(--harbor-lane-fill);
}
.harbor-agent {
  --harbor-lane-line: #8291b8;
  --harbor-lane-fill: #f2f4f9;
  --harbor-box-line: #a7b3cf;
  --harbor-ink: var(--harbor-blue);
}
.harbor-verifier {
  --harbor-lane-line: #8ca89c;
  --harbor-lane-fill: #f2f6f4;
  --harbor-box-line: #a5bcb1;
  --harbor-ink: var(--harbor-green);
}
.report .harbor-figure h4 { margin: 0; font: 750 0.9375rem/1.2 "Hanken Grotesk", system-ui, sans-serif; }
.harbor-files { margin-block-start: 8px; }
.harbor-files code, .harbor-private code { font: 0.6875rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }
.harbor-files ul { margin-inline-start: 0.4em; padding-inline-start: 0.65em; border-inline-start: 1px solid #a7b0ba; }
.harbor-files li { position: relative; }
.harbor-files li::before {
  position: absolute;
  inset-block-start: 0.75em;
  inset-inline-start: calc(-0.65em - 1px);
  inline-size: 0.5em;
  border-block-start: 1px solid #a7b0ba;
  content: "";
}
.harbor-files .harbor-environment { color: var(--harbor-blue); font-weight: 700; }
.harbor-files .harbor-tests, .harbor-private code { color: var(--harbor-green); }
.harbor-files .harbor-tests { font-weight: 700; }
.harbor-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 8px; }
.harbor-box { position: relative; padding: 6px 7px; border: 1px solid var(--harbor-box-line); background: #fdfefe; }
.harbor-box strong, .harbor-box > span, .harbor-box code, .harbor-package strong { display: block; }
.harbor-box > span, .harbor-package > span:last-child { color: #475568; }
.harbor-resources strong, .harbor-agent-step strong, .harbor-verified strong { color: var(--harbor-ink); }
.harbor-verified { background: #eaf2ee; }
.harbor-lock {
  position: relative;
  display: inline-block;
  inline-size: 9px;
  block-size: 8px;
  margin-inline-end: 5px;
  border: 1px solid var(--harbor-green);
}
.harbor-lock::before { position: absolute; inset: -5px 1px auto; height: 4px; border: 1px solid var(--harbor-green); border-bottom: 0; border-radius: 4px 4px 0 0; content: ""; }
.harbor-resources::after, .harbor-development::after, .harbor-development::before, .harbor-private::after, .harbor-evaluation::after {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: calc(50% - 6px);
  inline-size: 12px;
  block-size: calc(var(--harbor-flow-gap) + 1px);
  background: var(--harbor-ink);
  clip-path: var(--harbor-arrow-down);
  content: "";
}
.harbor-development::after { inset-inline-start: calc(58% - 6px); }
.harbor-development::before { inset-inline-start: calc(42% - 6px); transform: rotate(180deg); }
.harbor-task-arrow { display: none; }
.harbor-package { display: grid; justify-items: center; gap: 1px; text-align: center; }
.harbor-package-arrow { order: 1; inline-size: 12px; block-size: 18px; background: currentColor; clip-path: var(--harbor-arrow-down); }
@container (min-width: 640px) {
  .harbor-flow {
    grid-template-columns: minmax(0, 22fr) minmax(20px, 3fr) minmax(0, 35fr) minmax(86px, 11fr) minmax(0, 26fr);
    grid-template-rows: auto auto auto auto;
    gap: 0;
  }
  .harbor-task { grid-area: 1 / 1 / -1; padding-inline: 0; }
  .harbor-agent, .harbor-verifier { grid-row: 1 / -1; grid-template-rows: subgrid; }
  .harbor-agent { grid-column: 3; }
  .harbor-verifier { grid-column: 5; }
  .harbor-task-arrow, .harbor-package { color: #233248; grid-row: 3; align-self: center; }
  .harbor-task-arrow { display: block; grid-column: 2; block-size: 13px; background: currentColor; clip-path: var(--harbor-arrow-right); }
  .harbor-package { grid-column: 4; grid-template-rows: 1fr 13px 1fr; gap: 1px; font-size: 0.75rem; }
  .harbor-package > strong { align-self: end; }
  .harbor-package > span:last-child { font-size: 0.6875rem; }
  .harbor-package-arrow { order: 0; inline-size: 100%; block-size: 13px; clip-path: var(--harbor-arrow-right); }
}

/* ---------- the task panel: it pushes the page instead of covering it ---------- */

.panel { position: fixed; top: var(--navh); right: 0; bottom: 0; width: var(--pw); z-index: 20; display: flex; flex-direction: column;
  background: var(--card); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0s 0.32s; }
body.has-panel .panel { transform: none; visibility: visible; transition: transform 0.32s var(--ease); box-shadow: -10px 0 30px rgba(40, 34, 20, 0.06); }
.panel-head { padding: 12px 18px 8px; border-bottom: 1px solid var(--line); }
.panel-bar { display: flex; align-items: center; gap: 6px; }
.panel-bar h3 { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: 6px; font: 500 21px/1.2 var(--display); }
.panel-bar h3 span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }   /* a long name takes two lines */
.panel-page { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px 0 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 999px; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.panel-page[hidden] { display: none; }
.panel-page svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.panel-page:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.panel-page:hover svg { transform: translateX(2px); }
.ib { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; flex: none; }
.ib:hover { border-color: var(--rule); }
.ib svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.panel-head .mini-scrub { margin-top: 6px; }
.panel-head .mini-scrub .scrub { flex: 1; width: auto; }
.panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 40px; }
.hero { position: relative; margin: -16px -18px 16px; }
.hero img { display: block; width: 100%; height: 210px; object-fit: cover; }
.credit { position: absolute; right: 10px; bottom: 10px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(20, 18, 14, 0.5); color: #fff; font: italic 600 12px/1 var(--display); text-decoration: none; backdrop-filter: blur(4px); }
.credit:hover { background: rgba(20, 18, 14, 0.75); }
.goal { font-size: 14px; line-height: 1.55; }
/* ---------- the blog's reading layout ---------- */
/* Serif chapter titles separate the prose from full-width figure cards. */
.report {
  --reading-text-width: 100%;
  --reading-body-size: 17px;
  --reading-body-leading: 1.6;
}
.report-head :is(h1, h2) { margin-block-end: 14px; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.16; }
.report > section:not(:first-child, #reference-compute) { padding-block: 32px; }
.report > section > h3 { margin-block-end: 10px; font: 500 1.75rem/1.2 var(--display); letter-spacing: -0.01em; }
/* the highlight under each title: what the section finds, in a few self-contained sentences; a reader who reads only
   the titles, the highlights and the figures should get the whole story */
.report .highlight { max-inline-size: var(--reading-text-width); margin-block: 0 16px; padding: 12px 16px; border-radius: 14px;
  background: var(--accent-wash); color: var(--ink); font-size: var(--reading-body-size); line-height: var(--reading-body-leading); }
.report .highlight > * + * { margin-top: 10px; }
.report .highlight ul { padding-inline-start: 20px; list-style: disc; }
.report .highlight li + li { margin-top: 5px; }
.report-head .highlight { margin-block: 4px 0; }
.report-repositories h3 { font-size: 1rem; font-weight: 650; }
.report-repositories a { color: var(--accent); overflow-wrap: anywhere; }
.report section > h4 + .highlight { margin-top: 2px; }
.report section > h4 { max-inline-size: var(--reading-text-width); margin-block: 26px 10px; font-size: 1.125rem; font-weight: 650; line-height: 1.35; }
.report #autoresearch > section + section { margin-block-start: 0; }
.report :is(section, #reference-compute) > :is(p, .bullets) { margin-block: 0 12px; }
.report .bullets li + li { margin-block-start: 6px; }
.report-figure-frame { max-inline-size: none; }
.report :is(.fig, .harbor-figure, .discovery-card) { max-inline-size: none; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); box-shadow: 0 1px 3px rgba(40, 34, 20, 0.05); }
.report :is(.fig, .harbor-figure) { padding: 18px 20px 14px; }
.report .discovery-card { padding: 6px 22px 22px; }
.report .fig figcaption { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px;
  line-height: 1.45; color: var(--muted); text-align: start; text-wrap: pretty; }
/* Figure explanations belong in the caption below the chart. */
.report .fig-head { margin-block-end: 12px; }
.report .fig-title { font-size: 15.5px; font-weight: 650; line-height: 1.35; color: var(--ink); }
.report .fig .f-small { font-size: 12px; }
.report .fig .f-label { font-size: 12.5px; }
.report .fig .f-value { font: 500 21px var(--display); }
.report .fig .f-ring { stroke: var(--card); stroke-width: 2; }   /* a ring in the card's colour keeps overlapping dots apart */
.report .fig .f-bar { fill: var(--accent); fill-opacity: 0.85; }
/* the charts' shared look: hairline grids, axis names in small capitals, the region past the frontier tinted,
   a soft bar between the two agents, rows that light up under the pointer, and short notes */
.report .fig .f-grid { stroke: #ece7de; }
.report .fig .f-axis { font-size: 12px; font-weight: 600; fill: var(--muted); }
.report .fig .f-zone { fill: var(--accent-wash); fill-opacity: 0.75; }
.report .fig .f-zone-label { font-size: 11.5px; font-weight: 650; fill: var(--accent); fill-opacity: 0.8; }
.report .fig .f-quiet { fill: var(--muted); fill-opacity: 0.9; }
.report .fig .f-strong { font-weight: 650; fill: var(--ink); }
.report .fig .f-link { stroke: #ddd6ca; stroke-width: 4; stroke-linecap: round; }
.report .fig .f-base { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.report .fig .f-row .f-rowbg { fill: var(--soft); fill-opacity: 0; transition: fill-opacity 0.15s; }
.report .fig .f-row:hover .f-rowbg { fill-opacity: 0.7; }
.report .fig .f-area { fill-opacity: 0.07; }
.report .fig .f-note { font-size: 11.5px; fill: var(--muted); }
.report .fig .f-leader { stroke: var(--rule); stroke-width: 1; }
.report .fig .f-pin { fill: var(--card); stroke: var(--muted); stroke-width: 1.2; }
.report .fig .f-median { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.report .fig .f-hatch { stroke: var(--rule); stroke-width: 1; stroke-opacity: 0.5; }
.report .fig .f-band { fill: var(--accent-wash); fill-opacity: 0.6; }
@media (max-width: 640px) {
  .report > section:not(:first-child, #reference-compute) { padding-block: 24px; }
  .report > section > h3 { font-size: 1.5rem; }
  .report .highlight { padding: 10px 14px; }
  .report section > h4 { margin-block-start: 22px; font-size: 1.0625rem; }
  .report :is(.fig, .harbor-figure) { padding: 14px 12px 12px; border-radius: 12px; }
  .report .discovery-card { padding: 4px 12px 14px; border-radius: 12px; }
}

/* ---------- narrow screens ---------- */

@media (max-width: 899px) {
  .panel { top: auto; height: 76vh; width: 100%; border-left: 0; border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; transform: translateY(100%); }
  body.has-panel .panel { box-shadow: 0 -10px 30px rgba(40, 34, 20, 0.1); }
  body.has-panel .page { padding-bottom: 76vh; }
}
@media (max-width: 640px) {
  .col { width: calc(100% - 32px); }
  .titles { margin-top: 36px; }
  .band-in { padding-bottom: 26px; }
  .sub { font-size: 14px; }
  .tagline { font-size: 17px; }
  .hero-link { height: 32px; padding: 0 12px 0 10px; font-size: 13px; }
  .controls { width: 100%; }
  .seg button { padding: 3px 9px; }
  .row { grid-template-columns: 18px minmax(0, 1fr) 70px; grid-template-rows: auto 8px; height: 66px; row-gap: 6px; padding-top: 8px; }
  .row .track { grid-column: 2 / 4; grid-row: 2; }
  .row .val { grid-column: 3; grid-row: 1; }
  .marks { grid-template-columns: 18px minmax(0, 1fr) 70px; }
  .mk-track { grid-column: 2 / 4; }
  .method { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .panel-bar h3 { margin-left: 2px; font-size: 19px; }
  .panel-page { padding: 0 8px 0 10px; font-size: 12.5px; }
  .cover { --blog-cover-height: clamp(230px, 38svh, 320px); --cover-gap: 12px; }
  .mosaic { border-radius: 12px; }
  .cover-title { font-size: 34px; }
  .fhead, .frow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .frow { height: auto; padding: 3px 0; }
  .fname { justify-self: start; }
  .ftrack { min-height: 18px; }
  .fhead > span:first-child { display: none; }
  #overall { padding: 16px 14px 16px; margin-top: 24px; }
  .head.sticky h2 { font-size: 22px; }
  .mini-scrub .scrub { width: 120px; }
  .hero img { height: 170px; }
  .minis { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

[data-theme="dark"] .logo { filter: invert(1) brightness(0.92); }
[data-theme="dark"] .panel { box-shadow: none; }
