@import url("./caldesk-calorie-calculator.css");

/* AI accuracy benchmark page: headline stat row + full results table.
   Extends the shared tool-page shell (tool-header/folio/method-grid/faq/
   next-grid all come from caldesk-calorie-calculator.css). */

.bench-intro {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: center;
}

.bench-intro h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin: 8px 0 18px;
  letter-spacing: -0.01em;
}

.bench-deck {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 32px;
}

.bench-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  margin: 0 auto 20px;
}

.bench-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bench-stat-value {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bench-stat-label {
  font-size: 13px;
  color: var(--muted);
  max-width: 180px;
}

.err-high {
  color: #c0392b;
}

.err-low {
  color: #1e8e4f;
}

.bench-updated {
  font-size: 13px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
}

.bench-table-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.bench-table-section h2 {
  margin: 4px 0 20px;
  font-size: clamp(24px, 3vw, 32px);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line, #e3e3e8);
  border-radius: 14px;
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.bench-table thead th {
  text-align: left;
  font-weight: 600;
  padding: 12px 16px;
  background: var(--surface-muted, #f4f4f8);
  border-bottom: 1px solid var(--line, #e3e3e8);
  white-space: nowrap;
}

.bench-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #eceaf0);
  vertical-align: top;
}

.bench-table tbody tr:last-child td {
  border-bottom: none;
}

.bench-table th.num,
.bench-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}

.dish-category {
  font-size: 12px;
  color: var(--muted);
}

.error-pct {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.bench-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.method-disclosure {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.method-disclosure code,
.method-grid code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--surface-muted, #f4f4f8);
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .bench-stats {
    gap: 24px 32px;
  }
}
