/* JudgeFit-specific styles on top of Nerfies' index.css.
   Use the same vocabulary as Nerfies (Google Sans, Castoro, large
   centered titles, soft hero-light backgrounds). */

.judgefit {
  font-family: 'Google Sans', Castoro, serif;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
}

.publication-subtitle {
  margin-top: -0.3em;
  color: #555;
  font-weight: 400 !important;
}

/* Tighten gap between hero and the Abstract section below it. */
.hero + section.section {
  padding-top: 1.25rem;
}

.venue-pill {
  display: inline-block;
  background: #ffefc7;
  color: #92400e;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.2em 1em;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.publication-links { margin-top: 1.2em; }


/* ── Interactive hero radar ───────────────────────────────────── */
#radar-picker {
  margin-bottom: 1.4em;
}

.radar-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4em;
}

/* Unselected: clean, soft, neutral */
.radar-pill {
  background: #ffffff;
  border: 1px solid #e2e6ec;
  color: #6b7280;
  padding: 0.36em 0.85em;
  font-size: 0.82rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.12s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.radar-pill:hover {
  border-color: #cbd5e0;
  color: #374151;
}

/* Selected: subtle pressed-in feel — light inset shadow only */
.radar-pill.selected {
  background: #f4f6fa;
  color: #1f2937;
  border-color: #cbd5e0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* The colour dot — dim when unselected, vivid when selected */
.vlm-color-dot {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  margin-right: 0.5em;
  opacity: 0.35;
  transition: opacity 0.15s;
}

.radar-pill.selected .vlm-color-dot { opacity: 1; }

/* Two radars laid out side-by-side via flex (more reliable than grid) */
.radar-pair {
  display: flex;
  gap: 1em;
  margin: 1em 0;
  align-items: stretch;
  justify-content: center;
}

.radar-chart {
  flex: 1 1 0;
  min-width: 0;             /* allow proper shrinking inside flex */
  min-height: 480px;
}

/* Below tablet, stack */
@media (max-width: 720px) {
  .radar-pair { flex-direction: column; }
  .radar-chart { min-height: 380px; }
}


/* ── Pipeline figure ──────────────────────────────────────────── */
.pipeline-figure {
  margin: 0.5em auto 2em auto;
  max-width: 100%;
  text-align: center;
}

.pipeline-figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  background: white;
}


/* ── Leaderboard ──────────────────────────────────────────────── */
.family-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45em;
  margin-bottom: 1.5em;
}

.family-pill {
  background: white;
  border: 1px solid #d8dde6;
  color: #444;
  padding: 0.42em 0.95em;
  font-size: 0.86rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.family-pill:hover {
  background: #f1f5f9;
  border-color: #bbb;
}

.family-pill.active {
  background: #1d4e89;
  color: white;
  border-color: #1d4e89;
}

.family-dot {
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  margin-right: 0.45em;
  vertical-align: middle;
}

.table-wrap {
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 0.5em 1em;
}

#leaderboard-table.dataTable {
  font-size: 0.92rem;
  font-family: inherit;
}

#leaderboard-table th {
  font-weight: 600;
  font-family: 'Google Sans', sans-serif;
  white-space: nowrap;
}

#leaderboard-table th small.nowrap {
  white-space: nowrap;
  font-weight: 400;
  color: #888;
}

#leaderboard-table td.tc, #leaderboard-table th.tc {
  text-align: right;
}

#leaderboard-table td.metric {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.gain-pos { color: #10b981; font-weight: 600; }
.gain-neg { color: #ef4444; font-weight: 600; }
.gain-zero { color: #888; }

.rank-1 { font-weight: 700; color: #b45309; }
.rank-2 { font-weight: 600; color: #6b7280; }
.rank-3 { font-weight: 600; color: #92400e; }

.leaderboard-footer {
  margin-top: 1.5em;
  color: #555;
}


/* ── Dim chips column in the leaderboard ──────────────────────── */
#leaderboard-table .col-dims {
  min-width: 380px;
  max-width: 520px;
  padding: 0.6em 0.5em;
}

.dim-chips-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  line-height: 1.4;
}

.dim-chip {
  position: relative;                       /* anchor for tooltip */
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.15em 0.6em;
  border-radius: 12px;
  background: #eef2f7;
  color: #334155;
  border: 1px solid #dbe2eb;
  cursor: help;
  font-family: 'Google Sans', sans-serif;
  white-space: nowrap;
}

.dim-chip:hover, .dim-chip:focus {
  border-color: #94a3b8;
  background: #e2e8f0;
  outline: none;
}

/* Verdict-colored chip backgrounds (subtle) */
.dim-chip.verdict-bg-PREDICTIVE { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.dim-chip.verdict-bg-WEAK       { background: #fef9c3; border-color: #fde68a; color: #854d0e; }
.dim-chip.verdict-bg-NOISE      { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.dim-chip.verdict-bg-UNSTABLE   { background: #ffedd5; border-color: #fed7aa; color: #9a3412; }

/* Tooltip (definition + verdict + stats) */
.dim-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 320px;
  max-width: 80vw;
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 6px;
  padding: 0.7em 0.85em;
  font-size: 0.78rem;
  line-height: 1.5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 100;
  white-space: normal;
  text-align: left;
  font-family: 'Inter', 'Google Sans', sans-serif;
}

.dim-tip::after {                            /* tail / arrow */
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
}

.dim-chip:hover .dim-tip,
.dim-chip:focus .dim-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dim-tip-defn {
  font-style: italic;
  color: #f3f4f6;
  margin-bottom: 0.5em;
}

.dim-tip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.dim-tip-verdict {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.12em 0.5em;
  border-radius: 4px;
}

.dim-tip-verdict.verdict-PREDICTIVE { background: #10b981; color: white; }
.dim-tip-verdict.verdict-WEAK       { background: #f59e0b; color: white; }
.dim-tip-verdict.verdict-NOISE      { background: #ef4444; color: white; }
.dim-tip-verdict.verdict-UNSTABLE   { background: #f97316; color: white; }

.dim-tip-stat {
  font-size: 0.74rem;
  color: #9ca3af;
}


/* ── VLM cards ────────────────────────────────────────────────── */
.vlm-profiles-section { background: #fafbfc; }

.vlm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.2em;
  margin-top: 1.5em;
}

.vlm-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.2em 1.3em;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  border-left: 4px solid var(--card-color, #1d4e89);
}

.vlm-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.vlm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.vlm-name {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
}

.vlm-family {
  font-size: 0.8rem;
  color: #777;
}

.vlm-metrics {
  display: flex;
  gap: 1em;
  margin: 1em 0 0.6em 0;
  font-size: 0.85rem;
}

.vlm-metrics .metric-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.95em;
}

.vlm-metrics .metric-label {
  color: #888;
  display: block;
  font-size: 0.74rem;
  margin-bottom: 0.15em;
}

.vlm-dims-preview {
  font-size: 0.85rem;
  border-top: 1px solid #eef0f3;
  padding-top: 0.65em;
  margin-top: 0.5em;
}

.vlm-dims-preview .dim-name {
  display: inline-block;
  background: #eef4fb;
  color: #1d4e89;
  padding: 0.18em 0.55em;
  margin: 0.15em 0.22em 0.15em 0;
  border-radius: 4px;
  font-size: 0.79em;
}

.vlm-card.expanded .vlm-dims-preview { display: none; }
.vlm-card-detail { display: none; }
.vlm-card.expanded .vlm-card-detail { display: block; }

.vlm-card-detail {
  margin-top: 0.8em;
  padding-top: 0.8em;
  border-top: 1px solid #eef0f3;
}

.vlm-card-detail table {
  width: 100%;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.vlm-card-detail th, .vlm-card-detail td {
  padding: 0.4em 0.5em;
  border-bottom: 1px solid #f5f5f8;
  text-align: left;
}

.vlm-card-detail th {
  color: #888;
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vlm-card-detail .tc { text-align: center; }
.vlm-card-detail .tr { text-align: right; }

.dim-row-name {
  font-weight: 600;
  color: #222;
}

.dim-row-defn {
  font-size: 0.76rem;
  color: #777;
  display: block;
  margin-top: 0.2em;
  line-height: 1.45;
}

.verdict-PREDICTIVE { color: #10b981; font-weight: 600; font-size: 0.7rem; }
.verdict-WEAK { color: #f59e0b; font-weight: 500; font-size: 0.7rem; }
.verdict-NOISE { color: #ef4444; font-weight: 500; font-size: 0.7rem; }
.verdict-UNSTABLE { color: #ef4444; font-weight: 500; font-size: 0.7rem; }


/* ── Samples ──────────────────────────────────────────────────── */
.sample-section { background: white; }

.sample-picker {
  margin: 1.5em 0 0.5em 0;
  display: flex;
  justify-content: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.sample-pill {
  background: white;
  border: 1px solid #d8dde6;
  padding: 0.5em 1.1em;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.15s;
}

.sample-pill:hover { background: #f1f5f9; }
.sample-pill.active {
  background: #1d4e89;
  color: white;
  border-color: #1d4e89;
}

.sample-display {
  margin-top: 0.5em;
}

/* Two-column grid: video left (bigger), errors right.
   Stack on mobile. */
.sample-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(0, 1fr);
  gap: 1.8em;
  align-items: start;
}

@media (max-width: 800px) {
  .sample-grid { grid-template-columns: 1fr; }
}

/* Left pane — video + prompt. Sticky on desktop so it follows scroll. */
.sample-video-pane {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1em 1em 1.2em 1em;
}

@media (min-width: 801px) {
  .sample-video-pane {
    position: sticky;
    top: 1em;
  }
}

.sample-video {
  width: 100%;
  border-radius: 6px;
  background: #000;
  display: block;
  margin-bottom: 0.8em;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.sample-video-fallback {
  background: #fafbfc;
  border: 1px dashed #cbd5e0;
  border-radius: 6px;
  padding: 2.5em 1em;
  text-align: center;
  margin-bottom: 0.8em;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4em;
}

.sample-video-fallback .fallback-icon {
  font-size: 2.4rem;
  opacity: 0.5;
}

.sample-video-fallback .fallback-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #475569;
}

.sample-video-fallback .fallback-note {
  font-size: 0.78rem;
  color: #94a3b8;
}

.sample-prompt-block {
  padding-top: 0.7em;
  border-top: 1px solid #e2e8f0;
}

.sample-prompt-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.35em;
}

.sample-prompt {
  font-style: italic;
  color: #333;
  font-size: 0.96rem;
  line-height: 1.55;
}

.sample-prompt::before, .sample-prompt::after { content: '"'; color: #999; }

/* Right pane — VLM error blocks list */
.sample-errors-pane {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

/* Show-more button at the bottom of the errors pane */
.show-more-btn {
  background: white;
  border: 1px solid #cbd5e0;
  color: #475569;
  padding: 0.6em 1em;
  font-size: 0.88rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.5em;
  transition: all 0.12s ease;
  text-align: center;
}

.show-more-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}

.vlm-error-block {
  border-left: 3px solid var(--vlm-color, #1d4e89);
  padding: 0.7em 0 0.5em 1em;
  margin: 1em 0;
  background: white;
  border-radius: 0 6px 6px 0;
}

.vlm-error-block-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 0.55em;
  color: #1a1a1a;
  font-family: 'Google Sans', sans-serif;
}

.vlm-error-block-header .vlm-error-block-name {
  font-weight: 600;
  font-size: 0.94rem;
}

.vlm-error-block-header .vlm-family-small {
  color: #888;
  font-weight: 400;
  font-size: 0.76rem;
}

/* Score badges — sit to the right; wrap below name on narrow widths */
.vlm-error-block-header .vlm-score-row {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-variant-numeric: tabular-nums;
}

.vlm-score-refine {
  font-size: 0.78rem;
  background: #eef4fb;
  color: #1d4e89;
  padding: 0.12em 0.55em;
  border-radius: 4px;
  font-weight: 600;
}

.vlm-score-gain {
  font-size: 0.74rem;
  color: #6b7280;
}

.vlm-score-gain.gain-pos { color: #10b981; font-weight: 600; }
.vlm-score-gain.gain-neg { color: #ef4444; font-weight: 600; }

.error-item {
  margin: 0.65em 0;
  padding-top: 0.4em;
  border-top: 1px solid #f1f5f9;
}

.error-item:first-child { border-top: none; padding-top: 0; }

.error-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5em;
  margin-bottom: 0.4em;
}

.error-rule {
  display: inline-block;
  background: #eef4fb;
  color: #1d4e89;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22em 0.65em;
  border-radius: 4px;
  border: 1px solid #c7d8ee;
  line-height: 1.4;
  /* Allow long rules to wrap INSIDE the chip cleanly */
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.error-rule-expl {
  font-size: 0.78rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.4;
  flex: 1 1 100%;            /* always wraps to its own line if width tight */
}

@media (min-width: 640px) {
  .error-rule-expl { flex: 1 1 auto; }   /* stay on same line when there is room */
}

.error-what {
  color: #2a2a2a;
  font-size: 0.92rem;
  line-height: 1.55;
}

.error-severity {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2em 0.55em;
  border-radius: 4px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.error-severity .sev-label  { line-height: 1; }
.error-severity .sev-score  {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  opacity: 0.8;
  border-left: 1px solid currentColor;
  padding-left: 0.4em;
  letter-spacing: 0;
  text-transform: none;
}

/* Severity-tinted backgrounds (severe=red, moderate=amber, minor=green) */
.error-severity.sev-severe   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.error-severity.sev-moderate { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.error-severity.sev-minor    { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.error-severity.sev-unknown  { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }


/* ── Findings ─────────────────────────────────────────────────── */
.findings-section .caption {
  font-size: 0.87rem;
  color: #666;
  line-height: 1.6;
  margin-top: 0.4em;
}

.findings-subtitle {
  margin-top: 0.5em !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

/* ── VLM × canonical-type coverage matrix ─────────────────────── */
.atomic-matrix-wrap {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin-top: 1em;
}

.coverage-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-family: 'Google Sans', sans-serif;
}

.coverage-matrix-table th,
.coverage-matrix-table td { padding: 0; vertical-align: middle; }

.coverage-matrix-table th.corner { background: transparent; }

/* Type column header (top) — wide enough for the canonical name */
.coverage-matrix-table .type-col-head {
  padding: 0.6em 0.5em 0.7em 0.5em;
  text-align: center;
  background: #f7fafc;
  border-bottom: 2px solid #c7d8ee;
  vertical-align: bottom;
}

.coverage-matrix-table .type-col-head .type-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1d4e89;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  line-height: 1.15;
}

.coverage-matrix-table .type-col-head .type-denom {
  font-size: 0.7rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 0.15em;
}

/* VLM row header (left) — name + rank */
.coverage-matrix-table .vlm-row-head {
  padding: 0.5em 0.6em 0.5em 0.4em;
  font-size: 0.86rem;
  color: #1f2937;
  white-space: nowrap;
  border-bottom: 1px solid #f1f5f9;
  background: white;
}

.coverage-matrix-table tr:last-child .vlm-row-head { border-bottom: none; }

.coverage-matrix-table .vlm-rank {
  display: inline-block;
  min-width: 1.8em;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-right: 0.5em;
}

.coverage-matrix-table .vlm-color-dot {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.4em;
}

.coverage-matrix-table .vlm-display-name { font-weight: 500; }

/* Family chip (second left column) */
.coverage-matrix-table .vlm-family-chip-cell {
  padding: 0 0.8em 0 0;
  white-space: nowrap;
  border-bottom: 1px solid #f1f5f9;
}

.coverage-matrix-table tr:last-child .vlm-family-chip-cell { border-bottom: none; }

.coverage-matrix-table .vlm-family-chip {
  display: inline-block;
  padding: 0.18em 0.55em;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid;
  background: white;
}

/* Coverage cell — colored by ratio */
.coverage-matrix-table .coverage-cell {
  position: relative;
  text-align: center;
  padding: 0.55em 0.4em;
  border-bottom: 1px solid #f1f5f9;
  border-left: 2px solid white;
  cursor: help;
  min-width: 3.4em;
}

.coverage-matrix-table tr:last-child .coverage-cell { border-bottom: none; }

.coverage-matrix-table .coverage-cell.cov-zero  { background: #fafbfc; color: #9ca3af; }
.coverage-matrix-table .coverage-cell.cov-low   { background: #fef3c7; color: #92400e; }
.coverage-matrix-table .coverage-cell.cov-mid   { background: #d1fae5; color: #065f46; }
.coverage-matrix-table .coverage-cell.cov-full  { background: #10b981; color: white; }

.coverage-matrix-table .cov-frac {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.coverage-matrix-table .cov-frac strong { font-weight: 700; }

/* Tooltip on hover (shared between leaderboard chip + coverage cells) */
.coverage-matrix-table .cell-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 340px;
  max-width: 90vw;
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 6px;
  padding: 0.7em 0.85em;
  font-size: 0.78rem;
  line-height: 1.5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 100;
  white-space: normal;
  text-align: left;
  font-family: 'Inter', 'Google Sans', sans-serif;
}

.coverage-matrix-table .coverage-cell:hover .cell-tip,
.coverage-matrix-table .coverage-cell:focus .cell-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.coverage-matrix-table .cell-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
}

/* Tooltip: ✓ / ✗ marks for covered/missing atomics */
.cell-tip-dim .cov-mark {
  color: #10b981;
  font-weight: 700;
  margin-right: 0.25em;
}
.cell-tip-dim .cov-mark.cov-miss { color: #ef4444; }
.cell-tip-miss { opacity: 0.85; }

.cell-tip-head { margin-bottom: 0.5em; }
.cell-tip-head strong { color: #f9fafb; }
.cell-tip-head .muted { color: #94a3b8; margin-left: 0.5em; font-size: 0.74rem; }

.cell-tip-atomic {
  font-size: 0.78rem;
  color: #e5e7eb;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}
.cell-tip-atomic em { color: #f9fafb; font-style: normal; font-weight: 600; }
.cell-tip-atomic .muted { color: #94a3b8; font-size: 0.74rem; }

.cell-tip-dim { margin-top: 0.45em; }
.cell-tip-dim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.2em;
}
.cell-tip-dim-head .dim-row-name {
  font-weight: 600;
  color: #f9fafb;
  font-size: 0.82rem;
}
.cell-tip-dim-head span[class^="verdict-"] {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.12em 0.5em;
  border-radius: 4px;
  text-transform: uppercase;
}
.cell-tip-dim-head .verdict-PREDICTIVE { background: #10b981; color: white; }
.cell-tip-dim-head .verdict-WEAK       { background: #f59e0b; color: white; }
.cell-tip-dim-head .verdict-NOISE      { background: #ef4444; color: white; }
.cell-tip-dim-head .verdict-UNSTABLE   { background: #f97316; color: white; }
.cell-tip-dim-head .verdict-UNKNOWN    { background: #6b7280; color: white; }

.cell-tip-dim-defn {
  color: #cbd5e1;
  font-style: italic;
  font-size: 0.76rem;
  line-height: 1.5;
}


/* ── Examples by category ─────────────────────────────────────── */
.cat-picker {
  margin: 1em 0 1.5em 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45em;
}

.cat-pill {
  background: white;
  border: 1px solid #cbd5e0;
  color: #4b5563;
  padding: 0.4em 1em;
  font-size: 0.84rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
  text-transform: capitalize;
}

.cat-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}

.cat-pill.active {
  background: #1d4e89;
  color: white;
  border-color: #1d4e89;
}

.cat-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
}

@media (max-width: 800px) {
  .cat-examples { grid-template-columns: 1fr; }
}

.cat-card {
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1em;
}

.cat-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: 6px;
  display: block;
  margin-bottom: 0.7em;
}

.cat-video-fallback {
  background: #fafbfc;
  border: 1px dashed #cbd5e0;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  margin-bottom: 0.7em;
}

.cat-prompt-block {
  padding-top: 0.6em;
  border-top: 1px solid #e2e8f0;
}

.cat-prompt-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.3em;
}

.cat-prompt {
  font-style: italic;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cat-prompt::before, .cat-prompt::after { content: '"'; color: #999; }

.cat-no-examples {
  text-align: center;
  color: #6b7280;
  padding: 2em;
}


/* ── Quickstart code ──────────────────────────────────────────── */
.quickstart-code {
  background: #1f2937;
  color: #e5e7eb;
  padding: 1.5em 1.8em;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-x: auto;
  margin: 1em 0;
}
