body {
  font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #1f2937;
  font-feature-settings: "ss01", "cv11";
}

.publication-title, .publication-subtitle, .title {
  font-family: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
}

code, pre, .stat-number {
  font-feature-settings: "tnum";
}

pre, code {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.benchcad-logo {
  font-family: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.025em;
}
.benchcad-logo .bc-cad {
  font-family: 'IBM Plex Mono', 'IBM Plex Sans', monospace;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-left: 0.02em;
}

.publication-title {
  margin-bottom: 1rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.publication-title .paper-title-line {
  display: block;
  font-size: 0.62em;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 0.4rem;
}

.publication-authors {
  margin-bottom: 0.5rem;
}

.publication-authors .author-block {
  margin-right: 0.3em;
}

.publication-authors sup {
  font-size: 0.7em;
  color: #6b7280;
}

.publication-links {
  margin-top: 1.5rem;
}

.publication-links .link-block {
  margin: 0.25rem;
  display: inline-block;
}

.publication-links .button.is-dark {
  background: #1f2937;
  border: none;
  font-weight: 500;
}
.publication-links .button.is-dark:hover {
  background: #374151;
}

.hero.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.hero-example {
  max-width: 200px;
  width: 100%;
  border-radius: 12px;
  background: #fafaf7;
  border: 1px solid #e5e7eb;
  box-shadow: 0 3px 18px rgba(0,0,0,0.08);
}

.hero-distribution {
  max-width: 1280px;
  width: 100%;
}

.hero-caption {
  font-size: 0.9rem;
  color: #475569;
  margin-top: 0.75rem;
  line-height: 1.45;
}

.stat-number {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.1;
  font-feature-settings: "tnum";
}

.stat-label {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.task-card {
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.task-card .task-icon {
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  overflow-x: auto;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

code {
  background: #f3f4f6;
  color: #1f2937;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.88em;
}

.table th {
  background: #f3f4f6;
}

/* Codegen detail table */
.codegen-table td,
.codegen-table th {
  text-align: right;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.codegen-table td:first-child,
.codegen-table th:first-child {
  text-align: left;
  white-space: nowrap;
}
.codegen-table tr.row-group td {
  background: #f1f3f7;
  color: #374151;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding-top: 0.55rem;
  padding-bottom: 0.45rem;
}

.vendor-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.vendor-dot.anthropic { background: #cc785c; }
.vendor-dot.google    { background: #4285f4; }
.vendor-dot.openai    { background: #10a37f; }

.think-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05em 0.55em;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

/* Example cases grid */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

.case-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 0.5rem 0.75rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.case-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fafaf7;
  border-radius: 6px;
  display: block;
}

.case-label {
  margin-top: 0.5rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: #334155;
  letter-spacing: 0;
}

.footer {
  background: #fafafa;
  padding: 2.5rem 1.5rem;
  color: #555;
  border-top: 1px solid #e5e7eb;
}

.footer a {
  color: #374151;
  text-decoration: underline;
  text-decoration-color: #d1d5db;
  text-underline-offset: 2px;
}
.footer a:hover {
  color: #111827;
  text-decoration-color: #6b7280;
}

/* Capability pyramid section */
.capability-pyramid {
  max-width: 1100px;
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* Compact leaderboard tables */
.lb-table td,
.lb-table th {
  text-align: right;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
.lb-table td:first-child,
.lb-table th:first-child {
  text-align: left;
  white-space: nowrap;
}
.lb-table tr.row-group td {
  background: #f1f3f7;
  color: #374151;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding-top: 0.5rem;
  padding-bottom: 0.4rem;
}
.lb-table tr.ours-row td {
  background: #f5f3ff;
}
.lb-table thead th {
  font-size: 0.78rem;
  line-height: 1.18;
  vertical-align: bottom;
  font-weight: 600;
}

/* BibTeX copy button */
.bibtex-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.copy-bibtex-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #1f2937;
  color: #f5f5f4;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.copy-bibtex-btn:hover {
  background: #374151;
}
.copy-bibtex-btn:active {
  transform: translateY(1px);
}
.copy-bibtex-btn.copied {
  background: #10b981;
}
.copy-bibtex-btn .icon {
  font-size: 0.95em;
}
