/* ==========================================================================
   Claude Coke — OpenAI ("scaling-git-at-openai") & Anthropic Editorial Style
   Zero dashboard slop · Warm paper (#FCFCFA) · Borderless animated L-axis charts
   ========================================================================== */

:root {
  --bg-page: #FAF9F5;
  --bg-surface: #FFFFFF;
  --bg-pill: #F3F2EE;
  --bg-pill-hover: #E9E8E2;

  --ink-primary: #141413;
  --ink-secondary: #5C5B57;
  --ink-muted: #6E6D67;

  --rule-hairline: #E5E5E0;
  --axis-stroke: #141413;
  --chart-completed-label: #087453;

  /* OpenAI Chart Palette (Screenshot 2: soft lavender #A582F7 & deep violet #7349E5) */
  --bar-lavender: #A582F7;
  --bar-violet: #7349E5;
  --bar-coral: #E06D53;
  --bar-charcoal: #232321;
  --bar-sage: #2E7D5B;
  --bar-slate: #64748B;
  --bar-muted: #D6D5CE;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Provider Brand Palette & Typography */
  --provider-openai-bar: #6B7280;
  --provider-openai-bar-light: #9CA3AF;
  --provider-openai-stroke: #4B5563;
  --font-openai: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --provider-claude-bar: #D97757;
  --provider-claude-bar-light: #E9A28A;
  --provider-claude-stroke: #B85A3B;
  --font-claude: 'Newsreader', Georgia, 'Times New Roman', serif;

  --provider-gemini-bar: #2563EB;
  --provider-gemini-bar-light: #60A5FA;
  --provider-gemini-stroke: #1D4ED8;
  --font-gemini: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ==========================================================================
   openwhisper.io Dark Mode Tokens & 1s cubic-bezier(0.37, 0, 0.63, 1) Shift
   ========================================================================== */
[data-theme="dark"] {
  --bg-page: hsl(0 0% 11%);
  --bg-surface: hsl(0 0% 15%);
  --bg-pill: hsl(0 0% 20%);
  --bg-pill-hover: hsl(0 0% 25%);

  --ink-primary: hsl(0 0% 92%);
  --ink-secondary: hsl(0 0% 64%);
  --ink-muted: hsl(0 0% 60%);

  --rule-hairline: hsl(0 0% 22%);
  --axis-stroke: hsl(0 0% 82%);
  --chart-completed-label: #6AD4AF;

  --bar-charcoal: hsl(0 0% 86%);
  --bar-muted: hsl(0 0% 28%);
  --provider-openai-bar: #9CA3AF;
  --provider-openai-bar-light: #CBD5E1;
  --provider-openai-stroke: #D1D5DB;

  color-scheme: dark;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
}

.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition:
    background-color 1s cubic-bezier(0.37, 0, 0.63, 1),
    color 1s cubic-bezier(0.37, 0, 0.63, 1),
    border-color 1s cubic-bezier(0.37, 0, 0.63, 1),
    fill 1s cubic-bezier(0.37, 0, 0.63, 1),
    stroke 1s cubic-bezier(0.37, 0, 0.63, 1),
    box-shadow 1s cubic-bezier(0.37, 0, 0.63, 1),
    filter 1s cubic-bezier(0.37, 0, 0.63, 1) !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--ink-primary);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. Minimalist Top Navigation Bar (Screenshot 1 Aesthetic)
   ========================================================================== */
.site-header {
  width: 100%;
  padding: 1.35rem 1.5rem;
  background: var(--bg-page);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header-nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.header-wordmark {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-primary);
  text-decoration: none;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.82rem;
  border-radius: 999px;
  background: var(--bg-pill);
  color: var(--ink-primary);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-pill:hover {
  background: var(--bg-pill-hover);
}

.nav-pill-icon {
  gap: 0.38rem;
}

.nav-svg-icon {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
}

.nav-neurips-logo {
  height: 20px;
  width: auto;
  display: block;
}

.theme-toggle-btn {
  appearance: none;
  border: none;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 0.38rem 0.62rem;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root:not([data-theme="dark"]) .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .site-header {
  background: hsl(0 0% 11% / 0.88);
}

[data-theme="dark"] .meta-neurips-logo {
  filter: invert(1) hue-rotate(180deg) brightness(1.15);
}



[data-theme="dark"] .oai-bar-provider-icon img[src*="openai"],
[data-theme="dark"] .oai-x-provider-badge img[src*="openai"],
[data-theme="dark"] .oai-legend img[src*="openai"],
[data-theme="dark"] .provider-logo-icon[src*="openai"] {
  filter: invert(1) brightness(1.2);
}

[data-theme="dark"] .citation-box {
  background: hsl(0 0% 15%);
}

[data-theme="dark"] .citation-copy-btn {
  background: hsl(0 0% 20%);
  color: var(--ink-primary);
}

[data-theme="dark"] .citation-copy-btn:hover {
  background: hsl(0 0% 25%);
  border-color: hsl(0 0% 36%);
}

/* ==========================================================================
   2. Hero Section: Centered Title + Lead Prose + Right Metadata Table
   ========================================================================== */
.hero-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 1.5rem;
}

.hero-title-wrap {
  max-width: calc(100% - 470px - 5.5rem);
  width: 100%;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.15rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  margin: 0 0 1.1rem 0;
}

.coke-word-wrap {
  position: relative;
  display: inline-block;
  line-height: 1;
  padding-right: 0.56em;
  white-space: nowrap;
}

.coke-wordmark-svg {
  display: inline-block;
  height: 1.18em;
  width: auto;
  vertical-align: -0.18em;
  overflow: visible;
  pointer-events: none;
}

.coke-char {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.coke-snow-cap {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
  filter: drop-shadow(0 1px 1.5px rgba(20, 20, 19, 0.14));
}

.coke-snow-c {
  width: 0.58em;
  height: 0.26em;
  top: 0.02em;
  left: 0.06em;
}

.coke-snow-e {
  width: 0.46em;
  height: 0.21em;
  top: 0.225em;
  left: 0.05em;
}

.coke-snow-pile-base {
  position: absolute;
  width: 0.62em;
  height: 0.31em;
  right: 0.005em;
  bottom: 0.11em;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(20, 20, 19, 0.16));
}

[data-theme="dark"] .coke-snow-cap,
[data-theme="dark"] .coke-snow-pile-base {
  filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.55));
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto;
}

/* Title row shares the body grid's columns; the paper's front page sits in the right column. */
.hero-top-grid {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 235px;
  justify-content: space-between;
  gap: 2.75rem;
  margin-bottom: 3.25rem;
}

.hero-top-grid .hero-title-wrap {
  max-width: 100%;
  margin: 0;
}

.hero-paper-cell {
  position: relative;
}

.hero-paper-thumb {
  position: absolute;
  top: 0.05rem;
  bottom: 2.05rem;
  left: 0;
  aspect-ratio: 720 / 931;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 0 0.6px rgba(15, 23, 42, 0.45)) drop-shadow(0 6px 14px rgba(15, 23, 42, 0.13));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.hero-paper-thumb:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 0.6px rgba(15, 23, 42, 0.5)) drop-shadow(0 10px 20px rgba(15, 23, 42, 0.18));
}

.paper-page {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 7px;
  background: #fff;
  /* cut the top-left corner away for the dog-ear */
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
}

.paper-fold {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, transparent 50%, #D9D5CC 50%, #F3F1EC 78%, #FFFFFF 100%);
  filter: drop-shadow(1px 1.5px 1.5px rgba(15, 23, 42, 0.22));
}

.hero-body-grid {
  position: relative;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 235px;
  justify-content: space-between;
  gap: 2.75rem;
  align-items: start;
}

.hero-lead-prose {
  max-width: 100%;
  width: 100%;
}

.hero-lead-prose p {
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--ink-primary);
  margin: 0 0 1.35rem 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.hero-lead-prose p:last-child {
  margin-bottom: 0;
}

.clean-equation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.4rem 0.45rem;
  margin: 1.75rem 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule-hairline);
  border-bottom: 1px solid var(--rule-hairline);
  text-align: center;
  font-size: 1.08rem;
}

/* Right-hand metadata sidebar (Screenshot 1) */
.hero-meta-table {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  max-width: 235px;
  width: 100%;
  font-size: 0.76rem;
  line-height: 1.45;
}

.meta-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.4rem;
  padding: 0.68rem 0;
  border-bottom: 1px solid var(--rule-hairline);
}

.meta-neurips-badge + .meta-row,
.hero-meta-table .meta-row:first-of-type {
  border-top: 1px solid var(--rule-hairline);
}

.meta-neurips-badge {
  display: inline-block;
  margin-bottom: 0.9rem;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.meta-neurips-badge:hover {
  opacity: 1;
}

.meta-neurips-logo {
  height: 44px;
  width: auto;
  display: block;
}

.meta-key {
  font-weight: 600;
  color: var(--ink-primary);
}

.meta-val {
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

/* ==========================================================================
   3. Main Article Grid: Centered article with balanced columns
   ========================================================================== */
.article-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 1rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 235px;
  justify-content: space-between;
  gap: 2.75rem;
  align-items: start;
}

.article-content {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

/* Unified 100% Column Shared Across Prose, Figures, Charts, and Simulations */
.prose-block {
  max-width: 100%;
  width: 100%;
  margin: 3.5rem auto 2.5rem;
}

.section-heading {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.022em;
  color: var(--ink-primary);
  margin: 0 0 1.25rem 0;
}

.prose-block p {
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--ink-primary);
  margin: 0 0 1.35rem 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.prose-block code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-pill);
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
}

/* ==========================================================================
   4. Model Figure, Simulation & Chart Blocks (Unified 100% Width)
   ========================================================================== */
.model-figure-block {
  max-width: 100%;
  width: 100%;
  margin: 1.75rem auto;
  padding: 0;
}

.prose-block-intro {
  margin-top: 0.25rem;
}

.prose-block .model-figure-inline {
  width: 100%;
  margin: 1.75rem 0;
}

.model-figure-block img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--rule-hairline);
  background: var(--bg-surface);
}

.model-figure-caption {
  margin-top: 0.9rem;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.model-figure-caption strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.sim-breakout {
  max-width: 100%;
  width: 100%;
  margin: 2.75rem auto;
}

/* Borderless OpenAI-Style Animated Chart Block (Screenshot 2) */
.oai-chart-block {
  container-type: inline-size;
  max-width: 100%;
  width: 100%;
  margin: 3rem auto 3.5rem;
  padding: 0;
}

.oai-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.oai-chart-title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin: 0 0 0.45rem;
}

.oai-chart-subtitle {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.45;
}

.oai-replay-btn {
  appearance: none;
  border: 1px solid var(--rule-hairline);
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.oai-replay-btn:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.oai-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.oai-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.oai-pill {
  appearance: none;
  border: 1px solid var(--rule-hairline);
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.oai-pill:hover {
  color: var(--ink-primary);
  border-color: #C7C6BE;
}

.oai-pill.active {
  background: var(--ink-primary);
  color: var(--bg-page);
  border-color: var(--ink-primary);
}

/* Circular Legend Dots (Screenshot 2) */
.oai-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
  font-size: 13px;
  color: var(--ink-primary);
}

.oai-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.oai-legend-item--provider {
  gap: 0.45rem;
}

.oai-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 19, 0.35);
  flex-shrink: 0;
}

.oai-legend-dot.hatched {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.58),
    rgba(255, 255, 255, 0.58) 2px,
    transparent 2px,
    transparent 4px
  );
}

/* Company Brand Typography & Logo Badges */
.provider-font-openai {
  font-family: var(--font-openai);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.provider-font-claude {
  font-family: var(--font-claude);
  font-weight: 500;
  font-size: 1.07em;
  letter-spacing: -0.005em;
}

.provider-font-gemini {
  font-family: var(--font-gemini);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.provider-logo-icon,
.oai-legend .provider-logo-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
}

.oai-x-provider-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  line-height: 1.2;
  color: var(--ink-primary);
  white-space: nowrap;
}

.oai-x-provider-badge .provider-logo-icon {
  width: 21px;
  height: 21px;
}

.oai-x-provider-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-top: 2px;
  line-height: 1.1;
}

/* L-Axis Plot Stage (Thin Black Y & X Axes with Tick Marks) */
.oai-plot-stage {
  position: relative;
  padding: 1.25rem 0 3.35rem;
  overflow-x: auto;
}

.oai-plot-scroll-note {
  margin: 0;
  color: var(--ink-secondary);
  font: 0.8125rem var(--font-sans);
}

.oai-plot-stage.has-sublabels {
  padding-bottom: 4.9rem;
}

.oai-plot-stage:focus-visible {
  outline: 2px solid var(--ink-primary);
  outline-offset: 2px;
}

.oai-l-frame {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: stretch;
  min-width: var(--plot-min-width, 0);
}

.oai-y-axis {
  position: relative;
  height: 270px;
  border-right: 1px solid var(--axis-stroke);
}

.oai-y-tick {
  position: absolute;
  right: 0;
  bottom: var(--tick-position, auto);
  transform: translateY(50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding-right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-primary);
}

.oai-y-tick::after {
  content: "";
  position: absolute;
  right: -4px;
  width: 4px;
  height: 1px;
  background: var(--axis-stroke);
}

.oai-canvas {
  position: relative;
  height: 270px;
  border-bottom: 1px solid var(--axis-stroke);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 0.75rem;
  gap: 0.45rem;
}

.oai-group {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  min-width: 0;
}

.oai-bars-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.oai-bar-col {
  flex: 1 1 0;
  max-width: 52px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.oai-bar-provider-icon {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 21.5px;
  height: 21.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.92;
}

.oai-bar-provider-icon img {
  width: 21.5px;
  height: 21.5px;
  display: block;
  object-fit: contain;
}

.oai-bar-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  line-height: 1;
}

@property --bar-size {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.oai-bar {
  width: 100%;
  height: var(--bar-size, 0%);
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(20, 20, 19, 0.28);
  border-bottom: none;
  transition: --bar-size 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

/* Optional subtle diagonal hatch like Screenshot 2 Q4 2026 bar */
.oai-bar.hatched {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.26),
    rgba(255, 255, 255, 0.26) 4px,
    transparent 4px,
    transparent 8px
  );
}

.oai-x-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-primary);
  text-align: center;
  line-height: 1.25;
  width: 100%;
  max-width: 156px;
}

.oai-x-label::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 1px;
  height: 4px;
  background: var(--axis-stroke);
}

.oai-x-label--with-subicons {
  top: calc(100% + 35px);
}

#chart4Plot .oai-x-label--with-subicons {
  top: calc(100% + 22px);
}

.oai-x-label--with-subicons::before {
  display: none;
}

.oai-chart-note {
  margin-top: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.oai-replay-btn[hidden],
.oai-controls-row[hidden],
.oai-plot-stage[hidden],
#theme-toggle[hidden],
.citation-copy-btn[hidden] {
  display: none;
}

.oai-chart-data {
  margin: 0.75rem 0 1rem;
  color: var(--ink-primary);
  font-size: 0.875rem;
}

.oai-chart-data summary {
  width: fit-content;
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 600;
}

.oai-chart-data-scroll {
  overflow-x: auto;
}

.oai-chart-data-scroll:focus-visible,
.oai-chart-data summary:focus-visible {
  outline: 2px solid var(--ink-primary);
  outline-offset: 2px;
}

.oai-chart-data table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.oai-chart-data caption {
  text-align: start;
  font-weight: 600;
  padding: 0.4rem 0;
}

.oai-chart-data th,
.oai-chart-data td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--rule-hairline);
  text-align: start;
}

.oai-chart-data td {
  white-space: nowrap;
}

@container (max-width: 600px) {
  .oai-chart-block .oai-grouped-plot,
  .oai-chart-block .oai-grouped-plot.has-sublabels {
    padding: 0.9rem 0 1rem;
    --bar-label-space: 3.4rem;
  }

  .oai-grouped-plot .oai-l-frame {
    display: block;
    min-width: 0;
  }

  .oai-grouped-plot .oai-y-axis {
    height: 1.5rem;
    margin: 0 var(--bar-label-space) 0.65rem 1.15rem;
    border: 0;
    border-bottom: 1px solid var(--axis-stroke);
  }

  .oai-grouped-plot .oai-y-tick {
    inset: 0 auto auto var(--tick-position);
    transform: translateX(-50%);
    width: auto;
    padding: 0;
    font-size: 0.6875rem;
  }

  .oai-grouped-plot .oai-y-tick::after {
    inset: auto auto -0.36rem 50%;
    width: 1px;
    height: 0.26rem;
  }

  .oai-grouped-plot .oai-canvas,
  .oai-grouped-plot .oai-group,
  .oai-grouped-plot .oai-bars-wrap {
    display: grid;
    height: auto;
    border: 0;
    padding: 0;
  }

  .oai-grouped-plot .oai-canvas {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    align-items: stretch;
    gap: 0.95rem;
  }

  .oai-grouped-plot .oai-group {
    justify-content: stretch;
    align-items: stretch;
    gap: 0.35rem;
  }

  .oai-grouped-plot .oai-x-label,
  #chart4Plot.oai-grouped-plot .oai-x-label {
    position: static;
    transform: none;
    max-width: none;
    text-align: start;
    font-size: 0.75rem;
  }

  .oai-grouped-plot .oai-x-label::before {
    display: none;
  }

  .oai-grouped-plot .oai-bars-wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 1.15rem var(--bar-label-space);
    gap: 0.28rem;
  }

  .oai-grouped-plot .oai-bar-col {
    display: flex;
    flex-direction: row;
    justify-content: start;
    width: 100%;
    max-width: none;
    height: 1rem;
  }

  .oai-grouped-plot .oai-bar {
    order: -1;
    flex: 0 0 var(--bar-size, 0%);
    height: 100%;
    border-bottom: 1px solid;
    border-radius: 0 3px 3px 0;
  }

  .oai-grouped-plot .oai-bar-val {
    margin: 0 0 0 0.35rem;
    font-size: 0.6875rem;
  }

  .oai-grouped-plot .oai-bar-provider-icon {
    inset: 50% auto auto -1.15rem;
    transform: translateY(-50%);
    width: 0.875rem;
    height: 0.875rem;
  }

  .oai-grouped-plot .oai-bar-provider-icon img {
    width: 100%;
    height: 100%;
  }
}

.oai-condition-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 10px 14px;
  background: var(--bg-pill);
  border: 1px solid var(--rule-hairline);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-secondary);
}

.oai-condition-key-row,
.oai-condition-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 11.5px;
}

.oai-condition-outcome-row,
.oai-outcome-row,
.oai-condition-outcomes {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  padding-top: 7px;
  border-top: 1px solid var(--rule-hairline);
}

.oai-condition-key:empty {
  display: none;
}

.oai-plot-stage + .oai-condition-key {
  margin-top: 0;
}

.oai-condition-key + .oai-chart-note {
  margin-top: 0.95rem;
}

.oai-plot-stage + .oai-condition-key:empty + .oai-chart-note {
  margin-top: 0;
}

.oai-condition-key-item,
.oai-condition-item,
.oai-condition-key > span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--ink-primary);
  white-space: nowrap;
}

.oai-condition-key svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--ink-secondary);
}

.oai-condition-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid rgba(20, 20, 19, 0.28);
  flex-shrink: 0;
  display: inline-block;
}

/* ==========================================================================
   5. Minimalist Article Footer
   ========================================================================== */
.article-footer {
  max-width: 100%;
  width: 100%;
  margin: 4rem auto 0;
}

.footer-rule {
  height: 1px;
  background: var(--rule-hairline);
  margin-bottom: 2rem;
}

.footer-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}

.citation-box {
  position: relative;
  max-width: 100%;
}

.citation-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FFFFFF;
  color: var(--ink-secondary);
  border: 1px solid var(--rule-hairline);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 2;
}

.citation-copy-btn:hover {
  color: var(--ink-primary);
  border-color: #C7C6BE;
  background: var(--bg-page);
}

.citation-copy-btn.copied,
.citation-copy-btn[data-copied="true"] {
  color: var(--bar-sage);
  border-color: rgba(46, 125, 91, 0.35);
}

.citation-copy-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.citation-box pre,
.bibtex-clean {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  background: var(--bg-pill);
  padding: 0.9rem 5.5rem 0.9rem 1rem;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
  color: var(--ink-primary);
}

.footer-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0;
}

.footer-note a {
  color: var(--ink-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* In-text links: same colour as the text, underlined only. */
.article-content a:not([class]),
.hero-lead-prose a:not([class]) {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-content a:not([class]):hover,
.hero-lead-prose a:not([class]):hover {
  text-decoration-thickness: 2px;
}

/* ==========================================================================
   6. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
  .hero-section,
  .article-grid {
    max-width: 880px;
  }

  .hero-section {
    padding-bottom: 1rem;
  }

  .hero-top-grid {
    display: block;
  }
  .hero-top-spacer,
  .hero-paper-cell {
    display: none;
  }
  .hero-body-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.75rem;
  }
  .hero-spacer {
    display: none;
  }
  .hero-meta-table {
    position: static;
    max-width: 100%;
  }
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
  }
  .article-content {
    grid-column: 1;
  }
}

@media (max-width: 960px) {
  .oai-bars-wrap {
    gap: 5px;
  }
  .oai-bar-provider-icon {
    bottom: -24px;
    width: 18px;
    height: 18px;
  }
  .oai-bar-provider-icon img {
    width: 18px;
    height: 18px;
  }
  .provider-logo-icon,
  .oai-legend .provider-logo-icon {
    width: 20px;
    height: 20px;
  }
  .oai-x-provider-badge .provider-logo-icon {
    width: 18px;
    height: 18px;
  }
  .oai-x-label--with-subicons {
    top: calc(100% + 30px);
  }
  #chart4Plot .oai-x-label--with-subicons {
    top: calc(100% + 22px);
  }
  .oai-plot-stage.has-sublabels {
    padding-bottom: 4.8rem;
  }
}

@media (max-width: 640px) {
  .hero-lead-prose p,
  .prose-block p,
  .oai-chart-note {
    text-align: start;
    hyphens: manual;
    -webkit-hyphens: manual;
  }

  .section-heading {
    font-size: 1.5rem;
    text-wrap: balance;
  }

  .oai-chart-note {
    font-size: 0.90625rem;
  }

  .clean-equation {
    font-size: 1rem;
  }

  .site-header {
    padding: 1rem 1.25rem;
  }
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
  }
  .header-nav-left,
  .header-nav-right {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.15rem);
  }
  .goal-def .goal-prompt {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .oai-chart-header {
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .oai-replay-btn,
  .oai-pill,
  .site-header .nav-pill {
    min-height: 44px;
  }
  .oai-legend {
    gap: 0.4rem 0.9rem;
  }
  .oai-condition-key-row,
  .oai-condition-outcome-row {
    justify-content: flex-start;
    gap: 0.4rem 0.9rem;
  }
  .oai-bars-wrap {
    gap: 3px;
  }
  .oai-bar-provider-icon {
    bottom: -20px;
    width: 14px;
    height: 14px;
  }
  .oai-bar-provider-icon img {
    width: 14px;
    height: 14px;
  }
  .oai-x-label--with-subicons {
    top: calc(100% + 26px);
  }
  .oai-bar-val {
    font-size: 9.5px;
  }
  .oai-x-label {
    font-size: 9.5px;
  }
  .oai-x-provider-badge {
    font-size: 9.5px;
    white-space: normal;
  }
}

/* Inline quotes inside the main phase sections */
.tx-q-inline{
  --q-red:#A50F14; --q-bg:#FBF1F1; --q-line:rgba(165,15,20,.22);
  margin:1rem 0;padding:.8rem 1rem .65rem;
  background:var(--q-bg);border:1px solid var(--q-line);border-radius:8px;
}
[data-theme="dark"] .tx-q-inline{--q-red:#F07A7A; --q-bg:rgba(200,30,30,.10); --q-line:rgba(240,122,122,.28)}
.tx-q-inline.tx-q-safe{--q-red:#1E7A3C; --q-bg:#EFF8F1; --q-line:rgba(30,122,60,.24)}
[data-theme="dark"] .tx-q-inline.tx-q-safe{--q-red:#6FD08C; --q-bg:rgba(40,160,80,.10); --q-line:rgba(111,208,140,.28)}
.tx-q-inline p{margin:0;font-family:'Roboto Mono',var(--font-mono);font-size:.86rem;line-height:1.6;font-style:normal;
  color:var(--q-red);text-align:left;hyphens:none;overflow-wrap:anywhere}
.tx-q-inline footer{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem;font-family:var(--font-sans);font-size:.78rem;
  color:var(--ink-muted);margin-top:.5rem;padding-top:.45rem;border-top:1px dashed var(--q-line);font-style:normal}
.tx-q-inline footer b{font-weight:600;color:var(--ink-secondary)}
.tx-q-bot{display:inline-block;width:15px;height:15px;background:var(--q-red);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2h2v3h4a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h4zM9 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm6 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM9 16v1.5h6V16zM1 11h2v5H1zm20 0h2v5h-2z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2h2v3h4a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h4zM9 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm6 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM9 16v1.5h6V16zM1 11h2v5H1zm20 0h2v5h-2z'/%3E%3C/svg%3E") center/contain no-repeat}
.tx-q-logo{width:14px;height:14px;object-fit:contain}
[data-theme="dark"] .tx-q-logo-openai{filter:invert(1)}

/* Limitations list */
.limits-h3{font-family:var(--font-sans);font-size:1.05rem;font-weight:600;margin:1.8rem 0 .5rem;color:var(--ink-primary)}
.limits-list{margin:0 0 1rem;padding-left:1.2rem}
.limits-list li{margin:.45rem 0;line-height:1.55}

/* Goal-prompt definition at the top of the post */
.goal-def{margin:0 0 1.4rem;padding:.8rem 1.1rem;border:1px solid var(--rule-hairline);border-radius:8px;
  font-family:'Newsreader',Georgia,'Times New Roman',serif;font-size:1.12rem;line-height:1.55;color:var(--ink-secondary);background:var(--surface-raised, transparent)}
.goal-def-term{font-weight:600;font-size:1.08em;letter-spacing:.01em;color:var(--ink-primary, inherit)}
.goal-def-pos{font-style:italic;color:var(--ink-muted);margin-left:.15em}
.goal-prompt{font-family:'Roboto Mono',var(--font-mono);font-size:.88em;color:#A50F14;background:#FBF1F1;
  border:1px solid rgba(165,15,20,.22);border-radius:5px;padding:.08em .4em;white-space:nowrap}
[data-theme="dark"] .goal-prompt{color:#F07A7A;background:rgba(200,30,30,.10);border-color:rgba(240,122,122,.28)}
.closing-note{margin-top:1.6rem;padding-top:1rem;border-top:1px solid var(--rule-hairline)}

/* Scope note, key takeaways and recommendations (METR-style) */
.prose-block p.scope-note,.scope-note{margin:.4rem 0 1.4rem;font-size:.85rem;line-height:1.55;color:var(--ink-muted)}
.key-takeaways{margin:0 0 1.6rem;padding:1rem 1.2rem .4rem;border:1px solid color-mix(in srgb, var(--ink-secondary) 30%, var(--bg-page));border-radius:10px}
.key-takeaways-title{margin:0 0 .5rem;font-family:var(--font-sans);font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted)}
.key-takeaways ul,.recs-list{margin:0 0 .8rem;padding-left:1.15rem}
.key-takeaways li,.recs-list li{margin:0 0 .6rem;line-height:1.6}
.key-takeaways li strong,.recs-list li strong{color:var(--ink-primary)}

/* Plain-text press release link in the hero sidebar */
.meta-val a.meta-link{color:inherit;text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px;border:0;background:none;padding:0}
.meta-val a.meta-link:hover{color:var(--ink-primary)}

.paper-details > summary {
  display: none;
}

@media (max-width: 1180px) {
  .paper-details > summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    min-height: 44px;
    list-style: none;
    padding: 0.55rem 0.25rem 0.55rem 0;
    cursor: pointer;
    color: var(--ink-secondary);
    font-size: 0.875rem;
    font-weight: 600;
  }

  .paper-details > summary::-webkit-details-marker { display: none; }

  .paper-details > summary::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border: solid currentColor;
    border-width: 1.5px 1.5px 0 0;
    transform: rotate(45deg);
  }

  .paper-details[open] > summary::before { transform: rotate(135deg); }

  .paper-details-content {
    margin-top: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.tool-spectrum {
  margin: 1.8rem 0 2rem;
}

.prose-block .tool-spectrum-subtitle {
  margin: 0 0 1rem;
  color: var(--ink-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: start;
}

.tool-spectrum-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-spectrum-steps li {
  display: grid;
  grid-template-rows: 1rem auto 1fr;
  row-gap: 0.35rem;
}

.tool-spectrum-steps li:nth-child(1) { --step-color: #a6cbb8; }
.tool-spectrum-steps li:nth-child(2) { --step-color: #e3cc8e; }
.tool-spectrum-steps li:nth-child(3) { --step-color: #eab088; }
.tool-spectrum-steps li:nth-child(4) { --step-color: #e08b81; }
.tool-spectrum-steps li:nth-child(5) {
  --step-color: #974857;
  --step-ink: #fff;
}

.tool-spectrum-endpoint {
  grid-row: 1;
  color: var(--ink-secondary);
  font-size: 0.75rem;
  line-height: 1.2;
}

.tool-spectrum-band {
  grid-row: 2;
  min-height: 2.15rem;
  padding: 0.45rem 0.6rem;
  border-radius: 3px;
  background: var(--step-color);
  color: var(--step-ink, #221b18);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.tool-spectrum-action {
  grid-row: 3;
  padding-inline: 0.15rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
}

.tool-spectrum > figcaption {
  margin-top: 0.75rem;
  text-align: start;
}

@media (max-width: 720px) {
  .tool-spectrum-steps {
    grid-template-columns: 1fr;
  }

  .tool-spectrum-steps li {
    grid-template-columns: 4.1rem minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 0 0.7rem;
  }

  .tool-spectrum-band {
    grid-area: 1 / 1 / span 2;
    display: grid;
    place-items: center;
    align-self: stretch;
    min-height: 2.4rem;
  }

  .tool-spectrum-action {
    grid-area: 1 / 2;
    padding: 0.22rem 0;
  }

  .tool-spectrum-endpoint {
    grid-area: 2 / 2;
    padding-bottom: 0.22rem;
  }
}
