/* ── BENCHMARK HISTORY ── */

.bmh-header { text-align: center; margin-bottom: 2.5rem; }

/* Self-contained pulse dot — this page doesn't load styles.css (same pattern as leaderboard.css). */
.bmh-eyebrow .eyebrow-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-green, #93E849);
  flex-shrink: 0;
  animation: bmh-dot-pulse 2.5s ease-in-out infinite;
}
@keyframes bmh-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(147,232,73,0.5); opacity: 1; }
  50%      { box-shadow: 0 0 0 7px rgba(147,232,73,0);  opacity: 0.8; }
}

.bmh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-brand-green);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.bmh-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.bmh-title .green { color: var(--color-brand-green); }

.bmh-sub { color: #7a7872; font-size: 0.9rem; letter-spacing: 0.02em; max-width: 640px; margin: 0 auto; }
.bmh-sub a { color: var(--color-brand-green); text-decoration: none; }
.bmh-sub a:hover { text-decoration: underline; }

.bmh-list { display: flex; flex-direction: column; gap: 1rem; }

.bmh-empty {
  text-align: center;
  color: var(--color-grey-500);
  font-size: 0.9rem;
  padding: 3rem 1rem;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 14px;
}

.bmh-card {
  scroll-margin-top: 90px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  /* Solid fill so the page's dotted-grid backdrop can't bleed through the tables. */
  background: #10140F;
  overflow: hidden;
}

.bmh-card-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bmh-card-head:hover { background: #161B15; }

.bmh-card-title { font-weight: 700; font-size: 1.05rem; color: var(--color-white); }
.bmh-card-desc { font-weight: 500; color: var(--color-grey-400); }

.bmh-card-meta { color: var(--color-grey-500); font-size: 0.78rem; flex: 1; }
.bmh-card-meta code {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--color-grey-400);
  background: rgba(255,255,255,0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}

.bmh-chevron { color: var(--color-grey-500); font-size: 0.7rem; transition: transform 0.2s; }
.bmh-card.open .bmh-chevron { transform: rotate(90deg); }

.bmh-card-body { display: none; padding: 0 1.25rem 1.25rem; }
.bmh-card.open .bmh-card-body { display: block; }

.bmh-pct {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
}
.bmh-pct.down { color: var(--color-brand-green); background: rgba(147,232,73,0.1); }
.bmh-pct.up { color: #D4622A; background: rgba(212,98,42,0.1); }

/* ── headline stat tiles (mirrors the homepage .bm-total-card look) ── */

.bmh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0.4rem 0 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #0B0E0A;
}

.bmh-stat {
  padding: 1.5rem 1rem 1.3rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.bmh-stat:last-child { border-right: none; }

.bmh-stat-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9a9793;
  margin-bottom: 0.65rem;
}

.bmh-stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-brand-green);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(147,232,73,0.15);
}
.bmh-stat-value.bad {
  color: #D4622A;
  text-shadow: 0 0 30px rgba(212,98,42,0.15);
}
.bmh-stat-value.quality { text-shadow: none; }
.bmh-stat-sep { color: #666; font-size: 0.6em; font-weight: 400; }

.bmh-stat-detail {
  font-size: 0.72rem;
  color: #9a9793;
  margin-top: 0.55rem;
  letter-spacing: 0.03em;
}
.bmh-stat-detail .woz, .bmh-stat-value .woz { color: var(--color-brand-green); }
.bmh-stat-detail .cc, .bmh-stat-value .cc { color: #D4622A; }

@media (max-width: 600px) {
  .bmh-stats { grid-template-columns: 1fr 1fr; }
  .bmh-stat { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .bmh-stat-value { font-size: 1.6rem; }
}

/* ── per-prompt table (mirrors the Slack summary layout) ── */

.bmh-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  margin: 0.4rem 0 1.1rem;
  background: #0B0E0A;
}

.bmh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bmh-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.025); }
.bmh-table tbody tr:hover { background: #171C16; }

.bmh-table th,
.bmh-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  text-align: left;
  vertical-align: top;
}
.bmh-table tbody tr:last-child th,
.bmh-table tbody tr:last-child td { border-bottom: none; }

.bmh-table thead th {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-grey-400);
  background: #161B15;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  white-space: nowrap;
}
.bmh-table thead th.woz-h { color: var(--color-brand-green); }
.bmh-table thead th.cc-h { color: #D4622A; }

.bmh-col-model {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-grey-500);
  margin-top: 0.2rem;
}

.bmh-table tfoot th,
.bmh-table tfoot td {
  border-top: 1px solid rgba(255,255,255,0.16);
  border-bottom: none;
  background: #161B15;
}
.bmh-table tfoot th { color: var(--color-white); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.12em; }

.bmh-meta {
  font-size: 0.72rem;
  color: var(--color-grey-500);
  margin: -0.5rem 0 0.3rem;
}

.bmh-table tbody th {
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
}

.bmh-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 1%;
}
.bmh-table .num + .num { padding-left: 2.2rem; }

.bmh-table thead th:first-child { width: 1%; }
.bmh-table .bmh-prompt-col { min-width: 240px; }
.bmh-prompt-text {
  color: var(--color-white);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bmh-cell-cost { display: block; font-weight: 600; color: var(--color-white); }
.bmh-cell-sub { display: block; font-size: 0.76rem; color: var(--color-grey-400); margin-top: 0.1rem; }

@media (max-width: 600px) {
  .bmh-title { font-size: 1.7rem; }
  .bmh-card-head { flex-wrap: wrap; gap: 0.35rem 1rem; }
  .bmh-card-meta { flex-basis: 100%; }
}
