/* Main Research Lab design. Shared content and interactions remain unchanged. */
:root {
  --ink: #182841;
  --muted: #56677e;
  --accent: #315dd4;
  --soft: #edf2fb;
  --line: #dce4f0;
  --paper: #fafcff;
  --serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
html { scroll-behavior: auto; scroll-padding-top: 96px; }
.wrap, .header-inner { width: min(1160px, calc(100% - 96px)); }
.site-header { background: #fff; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); }
.header-inner { height: 70px; }
.wordmark { font-size: 20px; font-weight: 750; letter-spacing: -.8px; }
.interval-mark { border-color: var(--accent); }
nav { font-size: 12px; gap: 28px; }
nav a { padding-block: 12px; }
nav a[aria-current="location"] { text-decoration-thickness: 2px; text-underline-offset: 10px; }

/* Introduction and resources share one aligned grid. */
.hero { text-align: left; padding: 64px 0 0; }
.lab-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.lab-headline { min-width: 0; }
.hero .eyebrow { justify-content: flex-start; font-size: 10px; letter-spacing: 1.2px; color: #526b91; }
.review-dot { width: 6px; height: 6px; background: var(--accent); }
h1 { margin: 25px 0 22px; font-family: var(--sans); }
.title-name { color: var(--ink); font-size: clamp(56px, 5.6vw, 74px); letter-spacing: -3.5px; font-weight: 750; line-height: 1; margin-bottom: 22px; }
.title-description { font-size: clamp(28px, 2.55vw, 34px); line-height: 1.24; font-weight: 600; letter-spacing: -1px; text-wrap: balance; max-width: 680px; }
.desktop-break { display: none; }
.hero-intro { font-size: 16px; color: #30496c; line-height: 1.65; max-width: 580px; margin-bottom: 11px; }
.hero-description { margin: 0; font-size: 14px; line-height: 1.8; max-width: 600px; }
.resource-button { border-radius: 6px; min-height: 44px; padding: 11px 14px; background: #f2f5fb; }
.resource-name { font-size: 13px; }
.resource-status { font-size: 11px; }
.resource-button-primary:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.resource-button-primary[href]:hover { background: #244bb8; border-color: #244bb8; }
.resource-button[href]:not(.resource-button-primary):hover { background: #e7eefb; }
.resource-button:disabled { color: #687890; }
.hero .resource-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 580px; gap: 10px; margin-top: 28px; }
.hero .resource-buttons .resource-button { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 9px; text-align: left; align-content: center; min-width: 0; min-height: 65px; padding: 11px 13px; }
.hero .resource-buttons .resource-button svg { grid-column: 1; grid-row: 1 / 3; width: 19px; height: 19px; align-self: center; }
.hero .resource-buttons .resource-name { grid-column: 2; grid-row: 1; line-height: 1.5; }
.hero .resource-buttons .resource-status { grid-column: 2 / -1; grid-row: 2; padding: 0; border: 0; font-size: 10px; white-space: nowrap; line-height: 1.5; }
.hero .resource-buttons .resource-arrow { grid-column: 3; grid-row: 1; font-size: 13px; }
.hero-examples-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 19px; color: var(--accent); font-size: 12px; }
.hero-examples-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-examples-link span { font-size: 16px; }

.dataset-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #bdcce3; border-bottom: none; margin: 43px 0 0; padding: 28px 0 30px; }
.dataset-stats > div { padding-left: 32px; }
.dataset-stats dd { font-family: var(--sans); font-size: 40px; font-weight: 650; letter-spacing: -1.7px; line-height: 1.15; color: #203658; margin-bottom: 7px; }
.dataset-stats dt { color: #627591; font-size: 12px; }
.dataset-stats dt span { color: var(--accent); background: #e9effb; }

/* Clear chapter boundaries, without additional cards. */
.section { position: relative; isolation: isolate; padding: 60px 0 64px; border-top: 0; }
.section::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc((min(1160px, 100vw - 96px) - 100vw) / 2); width: 100vw; background: #fff; border-top: 1px solid #d2ddeb; pointer-events: none; }
#leaderboard::before, #dataset::before { background: #f1f5fc; }
.section-heading { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #d8e1ef; }
h2 { font-family: var(--sans); font-weight: 650; font-size: 32px; letter-spacing: -.95px; gap: 17px; }
.section-number { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; font-family: var(--sans); font-size: 12px; font-weight: 550; letter-spacing: .4px; color: #fff; background: var(--accent); border-radius: 6px; }
.section-aside { font-size: 12px; color: #6b7e9c; }
.section-lead { font-size: 15px; line-height: 1.8; max-width: 850px; margin-bottom: 28px; }
.overview-figure > .figure-button, .dataset-figure > .figure-button { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
figcaption { font-size: 12px; line-height: 1.8; margin-top: 14px; }
.caption-label { color: #2c4260; }
.protocol-strip { background: transparent; padding: 22px 0; border-block: 1px solid var(--line); border-radius: 0; margin-top: 28px; }
.protocol-label { color: #5270a4; font-size: 10px; letter-spacing: .8px; }
.protocol-strip p { font-size: 14px; line-height: 1.7; }
.protocol-strip .quiet { font-size: 11px; }
.protocol-output { border-color: #d1dcef; }
.interval-output { font-family: Georgia, serif; color: var(--accent); }
.settings-comparison { gap: 36px; padding-top: 26px; margin-top: 0; }
.settings-comparison > article + article { padding-left: 36px; border-left: 1px solid var(--line); }
.settings-comparison h3 { font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.settings-comparison p { font-size: 14px; line-height: 1.8; margin-top: 10px; }
.setting-key { background: #e9effd; color: var(--accent); font-size: 10px; }
.note { font-size: 12px; line-height: 1.8; }
.protocol-note { margin-top: 19px; }
.split-description { margin: 26px 0 28px; font-size: 14px; line-height: 1.8; gap: 40px; }
.split-description strong { display: block; font-size: 14px; margin-bottom: 4px; }
.split-description > p + p { padding-left: 32px; border-left: 1px solid #d3dfef; }
.scope-note { border-color: #92abdb; font-size: 12px; max-width: 1000px; margin-top: 24px; }

/* Readable result rows and controls with matching heights. */
.leaderboard-controls { border-top: 0; padding: 1px 0 23px; justify-content: flex-start; gap: 32px; }
.control-label { font-size: 11px; margin-bottom: 9px; }
.coverage-options { background: #edf2fc; border-color: #d9e3f6; border-radius: 6px; }
.coverage-options button { border-radius: 4px; font-size: 13px; min-width: 70px; min-height: 36px; }
.coverage-options button:hover:not([aria-pressed="true"]) { background: #dfe8fb; }
.setting-control select { border-radius: 6px; border-color: #d3def1; min-height: 46px; font-size: 13px; width: 285px; }
.leaderboard-scroll { border: 1px solid #d8e2f2; border-radius: 7px; background: #fff; scrollbar-color: #afc0e1 #f2f6ff; max-height: 500px; }
.leaderboard-table { font-size: 13px; }
.leaderboard-table th, .leaderboard-table td { padding: 14px 15px; }
.leaderboard-table thead th { background: #edf2fb; font-size: 10px; letter-spacing: .65px; text-transform: uppercase; }
.leaderboard-table .rank-column { font-size: 11px; min-width: 56px; }
.leaderboard-table .model-column { font-weight: 550; }
.leaderboard-table .score-column { background: #f5f8ff; color: #3158c6; font-weight: 650; }
.leaderboard-table thead .score-column { background: #e4ecfd; }
.leaderboard-table .leading-row > * { background: #edf3ff; }
.leaderboard-table .leading-row .rank-column { box-shadow: inset 3px 0 var(--accent); }
.leaderboard-table tbody tr:hover > * { background: #edf3ff; }
.method-badge { font-size: 10px; padding: 4px 8px; }
.method-b4 { color: #4067a4; background: #edf3fd; }
.method-b5 { color: #557b77; background: #edf5f3; }
.leaderboard-meta { font-size: 12px; padding-bottom: 13px; }
.leaderboard-footer { font-size: 11px; padding-block: 13px; }
.leaderboard-note { margin-top: 18px; }

/* Metric and resource details. */
.evaluation-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); gap: 44px; margin-top: 28px; }
.primary-metric { background: #fff; border: 1px solid #d7e2f6; border-top: 3px solid var(--accent); border-radius: 0 0 7px 7px; padding: 27px 28px; }
.primary-metric .eyebrow { font-size: 10px; letter-spacing: 1px; }
.primary-metric h3 { font-weight: 650; font-size: 56px; color: var(--accent); letter-spacing: -3px; }
.primary-metric h3 span { color: #829ee1; }
.primary-metric .metric-name { font-size: 14px; }
.primary-metric p { font-size: 14px; line-height: 1.8; }
.primary-metric .metric-rule { border-color: #d4dff5; font-size: 11px; }
.diagnostics > div { padding-block: 22px; }
.diagnostics dt { font-size: 16px; font-weight: 650; }
.diagnostics dt span { color: #6c83a7; font-size: 10px; }
.diagnostics dd { font-size: 14px; line-height: 1.8; }
.resource-row { padding-block: 24px; }
.resource-row h3 { font-size: 17px; }
.resource-row h3 span { font-size: 13px; }
.resource-row p { font-size: 13px; margin-top: 5px; }
.availability-label { font-size: 11px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 0; font-size: 11px; padding-block: 26px; }
.footer-brand { font-size: 14px; }

/* The closed explorer is a compact invitation; full evidence stays inside. */
[data-design="lab"] .release-examples { position: relative; margin-top: 34px; padding: 27px 28px; border-top: 1px solid #c8d6ec; border-radius: 8px; }
[data-design="lab"] .release-examples::before { content: ""; position: absolute; top: -1px; left: 28px; width: 42px; height: 3px; background: var(--accent); }
[data-design="lab"] .examples-heading { display: block; padding-right: 245px; margin-bottom: 0; }
[data-design="lab"] .examples-heading h3 { font-size: 25px; line-height: 1.3; }
[data-design="lab"] .examples-heading > p { max-width: 650px; font-size: 13px; margin-top: 8px; line-height: 1.7; }
[data-design="lab"] .examples-toggle { position: absolute; top: 33px; right: 28px; flex-direction: column; align-items: flex-end; gap: 8px; }
[data-design="lab"] .examples-toggle-action { min-width: 158px; min-height: 46px; font-size: 13px; }
[data-design="lab"] .examples-toggle-meta { font-size: 11px; }
[data-design="lab"] .examples-body { padding-top: 25px; }
[data-design="lab"] .example-target { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 32px; }
[data-design="lab"] .example-description, [data-design="lab"] .reference-copy > p { font-size: 13px; }
[data-design="lab"] .target-source > p { font-size: 14px; }
[data-design="lab"] .example-category { font-size: 10px; }
[data-design="lab"] .reference-source-note, [data-design="lab"] .examples-footnote { font-size: 11px; }

@media (max-width: 1100px) {
  .wrap, .header-inner { width: calc(100% - 64px); }
  .section::before { left: -32px; }
  .lab-hero-grid { gap: 34px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .title-name { font-size: 62px; }
  .task-schematic { padding: 22px; }
  .schematic-input { gap: 11px; }
  .schematic-input strong { font-size: 12px; }
  .schematic-input div > span { font-size: 10px; }
  .hero .resource-buttons { gap: 7px; }
  .hero .resource-buttons .resource-button { grid-template-columns: minmax(0, 1fr) auto; padding: 11px; }
  .hero .resource-buttons .resource-button svg { display: none; }
  .hero .resource-buttons .resource-name, .hero .resource-buttons .resource-status { grid-column: 1; }
  .hero .resource-buttons .resource-arrow { grid-column: 2; }
  nav { gap: 20px; font-size: 11px; }
  .diagnostics dt { flex-wrap: wrap; gap: 5px 12px; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .hero { padding-top: 45px; }
  .lab-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .title-description { font-size: 34px; max-width: 720px; }
  .hero-description, .hero-intro { max-width: 680px; }
  .task-schematic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; padding: 22px; }
  .schematic-header, .schematic-output, .schematic-footnote { grid-column: 1 / -1; }
  .schematic-input { align-items: flex-start; padding-block: 18px; }
  .input-index { display: none; }
  .schematic-input strong { font-size: 12px; }
  .schematic-input div > span { font-size: 10px; }
  .schematic-output { padding-top: 15px; }
  .interval-diagram { max-width: 340px; max-height: 85px; margin-inline: auto; }
  .dataset-stats { margin-top: 30px; }
  .dataset-stats dd { font-size: 35px; }
  .dataset-stats > div { padding-left: 20px; }
  .dataset-stats dt { font-size: 11px; }
  .dataset-stats dt span { margin-left: 4px; }
}
@media (max-width: 850px) {
  [data-design="lab"] .examples-heading { padding-right: 195px; }
  [data-design="lab"] .examples-heading h3 { font-size: 23px; }
  [data-design="lab"] .examples-toggle-action { min-width: 145px; }
  .settings-comparison { gap: 25px; }
  .settings-comparison > article + article { padding-left: 25px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 114px; }
  .wrap, .header-inner { width: calc(100% - 40px); }
  .header-inner { height: auto; padding-top: 12px; }
  .wordmark { font-size: 18px; }
  nav a { padding-block: 3px; }
  .hero { padding: 35px 0 0; }
  .lab-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .8px; }
  h1 { margin: 25px 0 20px; }
  .title-name { font-size: clamp(44px, 12vw, 62px); letter-spacing: -2.7px; margin-bottom: 20px; }
  .title-description { font-size: clamp(27px, 6.5vw, 34px); letter-spacing: -.85px; line-height: 1.24; text-wrap: balance; }
  .hero-intro { font-size: 15px; margin-bottom: 12px; }
  .hero-description { font-size: 13px; line-height: 1.85; }
  .hero .resource-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; gap: 7px; }
  .hero .resource-buttons .resource-button, .hero .resource-buttons .resource-button-primary, .hero .resource-buttons .resource-button:not(.resource-button-primary) { display: grid; grid-column: auto; justify-self: stretch; min-width: 0; min-height: 61px; grid-template-columns: minmax(0, 1fr); padding: 10px 8px; gap: 3px; justify-content: start; }
  .hero .resource-buttons .resource-name { font-size: 12px; }
  .hero .resource-buttons .resource-status, .hero .resource-buttons .resource-button:not(.resource-button-primary) .resource-status { display: block; grid-column: 1; font-size: 8px; white-space: normal; }
  .hero .resource-buttons .resource-arrow, .hero .resource-buttons .resource-button:not(.resource-button-primary) .resource-arrow { display: none; }
  .hero-examples-link { margin-top: 17px; font-size: 12px; }
  .task-schematic { display: none; }
  .dataset-stats { grid-template-columns: 1fr 1fr; padding: 24px 0 28px; margin-top: 30px; gap: 23px 0; }
  .dataset-stats > div { padding-left: 22px; }
  .dataset-stats dd { font-size: 36px; letter-spacing: -1.4px; margin-bottom: 5px; }
  .dataset-stats dt { font-size: 11px; }
  h2 { font-size: 25px; letter-spacing: -.8px; gap: 12px; }
  .section-number { width: 32px; height: 32px; font-size: 10px; border-radius: 5px; }
  .section { padding: 39px 0 43px; }
  .section::before { left: -20px; }
  .section-heading { margin-bottom: 20px; padding-bottom: 18px; }
  .section-lead { font-size: 14px; line-height: 1.8; margin-bottom: 22px; }
  .overview-figure > .figure-button { padding: 8px; border-radius: 5px; }
  .distribution-mobile { gap: 20px; }
  .distribution-mobile .figure-button { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  figcaption { font-size: 11px; }
  .protocol-strip { gap: 22px 20px; padding-block: 20px; }
  .protocol-strip p { font-size: 13px; }
  .settings-comparison { gap: 23px; padding-top: 24px; }
  .settings-comparison > article + article { padding-left: 0; padding-top: 23px; border-left: 0; border-top: 1px solid var(--line); }
  .settings-comparison h3 { font-size: 16px; }
  .settings-comparison p { font-size: 13px; }
  .note { font-size: 11px; }
  .split-description { gap: 20px; font-size: 13px; margin-top: 22px; }
  .split-description > p + p { padding-left: 0; border-left: 0; }
  .scope-note { font-size: 11px; }
  .leaderboard-controls { padding-top: 1px; gap: 17px; }
  .coverage-options button { min-height: 36px; }
  .setting-control, .setting-control select { width: 100%; }
  .leaderboard-meta { font-size: 10px; gap: 8px; }
  .leaderboard-footer { font-size: 10px; }
  .leaderboard-scroll { max-height: 460px; }
  .leaderboard-table { min-width: 640px; font-size: 12px; }
  .leaderboard-table th, .leaderboard-table td { padding: 13px 10px; }
  .leaderboard-table .rank-column { min-width: 34px; width: 34px; font-size: 10px; }
  .leaderboard-table .model-column { min-width: 180px; max-width: 190px; }
  .leaderboard-table thead th { font-size: 9px; }
  .mobile-setting { font-size: 10px; }
  .evaluation-grid { grid-template-columns: 1fr; gap: 26px; }
  .primary-metric { padding: 23px; }
  .primary-metric h3 { font-size: 50px; }
  .primary-metric p, .diagnostics dd { font-size: 13px; }
  .diagnostics dt { font-size: 15px; }
  .diagnostics dt span { font-size: 9px; }
  .diagnostics > div { padding-block: 19px; }
  .resource-row { padding-block: 21px; }
  .resource-row h3 { font-size: 15px; }
  .resource-row h3 span { font-size: 11px; }
  .resource-row p { font-size: 12px; }
  .resource-row .resource-status { font-size: 9px; }
  .availability-label { font-size: 9px; }
  .resources-section h2 { font-size: 23px; }
  .site-footer { display: grid; font-size: 10px; }
  [data-design="lab"] .release-examples { padding: 23px 19px; margin-top: 28px; margin-inline: -5px; }
  [data-design="lab"] .release-examples::before { left: 19px; }
  [data-design="lab"] .examples-heading { padding-right: 0; margin-bottom: 19px; }
  [data-design="lab"] .examples-heading h3 { font-size: 23px; }
  [data-design="lab"] .examples-heading > p { font-size: 12px; }
  [data-design="lab"] .examples-toggle { position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
  [data-design="lab"] .examples-toggle-action { min-width: 0; min-height: 44px; padding-inline: 12px; font-size: 12px; }
  [data-design="lab"] .examples-toggle-meta { font-size: 10px; }
  [data-design="lab"] .example-target { grid-template-columns: 1fr; gap: 23px; }
  [data-design="lab"] .examples-body { padding-top: 22px; }
  [data-design="lab"] .target-source > p { font-size: 13px; }
}
@media (max-width: 420px) {
  html { scroll-padding-top: 150px; }
}

/* Reading flow: introduction → task → results → interpretation. */
.hero { padding-top: 44px; }
.lab-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 60px; align-items: center; margin-top: 22px; }
.lab-headline h1 { margin: 0; }
.title-name { font-size: clamp(48px, 5.3vw, 68px); margin-bottom: 18px; }
.title-description { font-size: clamp(26px, 2.45vw, 32px); }
.lab-introduction { min-width: 0; }
.lab-introduction .hero-intro { font-size: 17px; line-height: 1.55; margin: 0 0 12px; }
.lab-introduction .hero-description { font-size: 13px; line-height: 1.8; }
.hero .resource-buttons { margin-top: 20px; }
.hero .dataset-stats { margin-top: 32px; padding-block: 22px 25px; }
.hero .dataset-stats dd { font-size: 34px; }
#overview .overview-figure { max-width: 920px; margin-inline: auto; }
#overview .settings-comparison { padding-top: 22px; border-top: 1px solid var(--line); margin-top: 22px; }
#overview .section-lead { max-width: 1000px; }
.finding { padding-block: 22px; }
.finding-evidence { margin-block: 14px 12px; }
.finding > p { font-size: 13px; line-height: 1.75; margin-bottom: 12px; }
@media (max-width: 960px) {
  .lab-hero-grid { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lab-introduction .hero-intro { font-size: 15px; }
  .hero .resource-buttons .resource-button { padding-inline: 8px; grid-template-columns: minmax(0,1fr); }
  .hero .resource-buttons .resource-button svg, .hero .resource-buttons .resource-arrow { display: none; }
  .hero .resource-buttons .resource-name, .hero .resource-buttons .resource-status { grid-column: 1; }
}
@media (max-width: 680px) {
  .hero { padding-top: 30px; }
  .lab-hero-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
  .title-name { font-size: 48px; margin-bottom: 15px; }
  .title-description { font-size: 27px; }
  .hero .dataset-stats { margin-top: 26px; padding-block: 22px; }
  .hero .dataset-stats dd { font-size: 32px; }
  .finding { padding-block: 23px; }
}
