/* CreateGame.ai Benchmarks & Inference Hub
   Extends public/blog/blog.css tokens: Inter, #ffffff paper, #f6f6f5 soft cards, 20px radii, lab colors (.cr-*).
   Strict CSP safe: all layout, heatmap buckets, CI whiskers and trajectory strokes are defined via CSS classes. */

.bm-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 28px 110px;
  font-family: var(--ui);
}

/* Sub-navigation rail across benchmark domain pages */
.bm-subnav-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 26px;
}
.bm-subnav {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.bm-subnav::-webkit-scrollbar { display: none; }
.bm-subnav a {
  flex: none;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font: 450 13.5px/1 var(--ui);
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.bm-subnav a:hover { color: var(--ink); }
.bm-subnav a[aria-current="page"] {
  background: var(--bg);
  color: var(--ink);
  font-weight: 550;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* Hero */
.bm-hero {
  max-width: 980px;
  margin: 0 auto 30px;
  text-align: center;
}
.bm-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font: 600 12px/1.2 var(--ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bm-hero h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font: 450 clamp(30px, 4.2vw, 48px)/1.06 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.bm-hero > p:last-child {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font: 400 17.5px/1.5 var(--ui);
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.bm-loading {
  max-width: 520px;
  margin: 40px auto;
  padding: 20px 24px;
  border-radius: var(--r);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

/* Executive champion cards (4-col & 3-col variants) */
.bm-champ-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.bm-champ-grid.is-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bm-champ-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s, transform .15s;
}
a.bm-champ-card:hover {
  border-color: var(--ink);
  background: #f1f1ef;
  transform: translateY(-1px);
}
.bm-champ-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bm-champ-kicker {
  color: var(--muted);
  font: 600 11px/1.2 var(--ui);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bm-champ-arrow {
  color: var(--muted);
  font: 500 13px/1 var(--ui);
}
.bm-champ-model {
  display: flex;
  align-items: center;
  gap: 9px;
}
.bm-champ-model b {
  color: var(--ink);
  font: 600 15px/1.25 var(--ui);
  letter-spacing: -.015em;
}
.bm-champ-val {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.bm-champ-val strong {
  color: var(--ink);
  font: 600 22px/1.1 var(--display);
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.bm-champ-val span {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* 2x2 Key Index Quad Grid (AA Home style) */
.bm-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.bm-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}
.bm-card-link {
  color: var(--accent);
  font-weight: 550;
  text-decoration: none;
  font-size: 12.5px;
  white-space: nowrap;
}
.bm-card-link:hover { text-decoration: underline; }

/* Filter & control bars */
.bm-nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}
.bm-lenses {
  flex-wrap: wrap;
  justify-self: auto;
}
.bm-pill-btn {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 450 13.5px/1 var(--ui);
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.bm-pill-btn:hover { color: var(--ink); }
.bm-pill-btn.is-active {
  background: var(--bg);
  color: var(--ink);
  font-weight: 550;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.bm-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.bm-chip, .bm-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--body);
  font: 450 13px/1 var(--ui);
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.bm-chip:hover, .bm-reset-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.bm-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.bm-search {
  height: 34px;
  width: 190px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: 400 13.5px/1 var(--ui);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.bm-search::placeholder { color: var(--muted); }
.bm-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #dfe6ff;
}

/* Workbench: Presets + Sliders + KPIs */
.bm-workbench {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft);
  margin-bottom: 18px;
}
.bm-wb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 18px;
}
.bm-wb-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}
.bm-field, .bm-mini-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bm-field > span, .bm-mini-field > span {
  color: var(--muted);
  font: 600 11.5px/1 var(--ui);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bm-field select, .bm-mini-field select {
  height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: 500 13.5px/1 var(--ui);
  cursor: pointer;
}
.bm-mini-field select { height: 32px; font-size: 13px; padding: 0 22px 0 10px; }
.bm-quick-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bm-preset-pill {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--body);
  font: 450 13px/1 var(--ui);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.bm-preset-pill:hover { border-color: var(--ink); color: var(--ink); }
.bm-preset-pill.is-active {
  border-color: var(--accent);
  background: #edf1ff;
  color: #1f45e0;
  font-weight: 550;
}
.bm-wb-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bm-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  border-radius: 999px;
  background: var(--soft-2);
  padding: 3px;
}
.bm-seg .bm-pill-btn {
  padding: 7px 12px;
  font-size: 13px;
}

.bm-sliders {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.bm-slider-box {
  padding: 12px 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.bm-slider-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.bm-slider-top label {
  color: var(--muted);
  font: 500 12.5px/1.2 var(--ui);
}
.bm-slider-top output {
  color: var(--ink);
  font: 600 14.5px/1 var(--ui);
  font-variant-numeric: tabular-nums;
}
.bm-slider-box input[type="range"],
.bm-mini-slider input[type="range"] {
  display: block;
  width: 100%;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.bm-slider-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.bm-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.bm-kpi {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bm-kpi span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.bm-kpi b {
  color: var(--ink);
  font: 600 16px/1.25 var(--ui);
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
}
.bm-kpi em {
  font-style: normal;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

/* Charts grid */
.bm-charts-grid {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.bm-charts-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.bm-card {
  margin: 0;
  padding: 20px 22px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}
.bm-card.is-full { margin-bottom: 24px; }
.bm-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bm-card-head b {
  display: block;
  color: var(--ink);
  font: 600 17px/1.25 var(--display);
  letter-spacing: -.02em;
}
.bm-card-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}
.bm-axis-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

/* Editorial callout strip inside domain pages */
.bm-callout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--soft);
}
.bm-callout h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font: 600 16px/1.25 var(--display);
  letter-spacing: -.015em;
}
.bm-callout p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}
.bm-callout-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bm-stat-pill {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.bm-stat-pill span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.bm-stat-pill b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font: 600 17px/1.1 var(--ui);
  font-variant-numeric: tabular-nums;
}

/* SVG shared chart rules */
.bm-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--ui);
}
.bm-svg text {
  font-size: 11.5px;
  fill: var(--muted);
}
.bm-svg .sc-grid { stroke: var(--line-soft); stroke-width: 1; }
.bm-svg .sc-base { stroke: #cfcfcc; stroke-width: 1; }
.bm-svg .sc-axis { font-size: 11px; font-variant-numeric: tabular-nums; }
.bm-svg .sc-pareto {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
  opacity: .75;
}
.bm-svg .sc-pt { cursor: pointer; }
.bm-svg .sc-ring { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0; transition: opacity .12s; }
.bm-svg .sc-pt.is-pinned .sc-ring { opacity: 1; stroke: var(--accent); stroke-width: 2.2; }
.bm-svg .sc-pt:hover .sc-ring { opacity: 1; }
.bm-svg .sc-lbl {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -.01em;
  pointer-events: none;
}
.bm-svg .sc-tip { pointer-events: none; }
.bm-svg .sc-tip rect {
  fill: rgba(255, 255, 255, .97);
  stroke: var(--line);
  stroke-width: 1;
}
.bm-svg .sc-tip-name { fill: var(--ink); font-size: 12px; font-weight: 600; }
.bm-svg .sc-tip-sub { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.bm-svg .sc-tip-val { fill: var(--ink); font-size: 11.5px; font-weight: 550; font-variant-numeric: tabular-nums; }

/* Quadrant shading & CI whiskers */
.bm-svg .quad-safe { fill: #e8f8f1; opacity: .65; }
.bm-svg .quad-safe-border { fill: none; stroke: #12b886; stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.bm-svg .quad-label { fill: #0c7a57; font-size: 11px; font-weight: 600; }
.bm-svg .quad-warn { fill: #fff4e6; opacity: .5; }
.bm-svg .quad-warn-label { fill: #b45309; font-size: 11px; font-weight: 600; }
.bm-svg .ci-line { stroke: #131313; stroke-width: 1.5; opacity: .55; }
.bm-svg .hb-rank { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.bm-svg .hb-name { fill: var(--ink); font-size: 12px; font-weight: 500; }
.bm-svg .hb-open { fill: #0c7a57; font-size: 10px; font-weight: 600; }
.bm-svg .hb-val { fill: var(--ink); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bm-svg .hb-sub { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }

/* Time-series frontier trajectory classes */
.bm-svg .ts-line-prop { fill: none; stroke: #3a63ff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.bm-svg .ts-line-open { fill: none; stroke: #12b886; stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; }
.bm-svg .ts-pt-prop { fill: #3a63ff; stroke: #ffffff; stroke-width: 1.5; }
.bm-svg .ts-pt-open { fill: #12b886; stroke: #ffffff; stroke-width: 1.5; }
.bm-svg .ts-lbl { fill: var(--ink); font-size: 10.5px; font-weight: 550; }
.bm-svg .ts-lag-bar { fill: #ff8a3d; opacity: .88; }

/* Dumbbell paired retention / wait-time classes */
.bm-svg .db-conn { stroke: #cbd5e1; stroke-width: 2.4; stroke-linecap: round; }
.bm-svg .db-conn-warn { stroke: #fdba74; stroke-width: 2.4; stroke-linecap: round; }
.bm-svg .db-pt-a { fill: #3a63ff; stroke: #ffffff; stroke-width: 1.4; }
.bm-svg .db-pt-b { fill: #12b886; stroke: #ffffff; stroke-width: 1.4; }
.bm-svg .db-pt-slow { fill: #ff8a3d; stroke: #ffffff; stroke-width: 1.4; }
.bm-svg .db-pt-fast { fill: #12b886; stroke: #ffffff; stroke-width: 1.4; }
.bm-svg .db-thresh { stroke: #12b886; stroke-width: 1.2; stroke-dasharray: 4 3; opacity: .8; }
.bm-svg .db-thresh-lbl { fill: #0c7a57; font-size: 10.5px; font-weight: 600; }

/* 7-Domain AA-3D Heatmap intensity classes (CSP-safe) */
.bm-svg .hm-col-hdr { fill: var(--muted); font-size: 10.5px; font-weight: 600; }
.bm-svg .hm-t0 { fill: #f4f4f2; }
.bm-svg .hm-t1 { fill: #e6ecff; }
.bm-svg .hm-t2 { fill: #c2d4ff; }
.bm-svg .hm-t3 { fill: #84abff; }
.bm-svg .hm-t4 { fill: #3a63ff; }
.bm-svg .hm-val { fill: var(--ink); font-size: 10.5px; font-weight: 550; font-variant-numeric: tabular-nums; }
.bm-svg .hm-val.is-inv { fill: #ffffff; font-weight: 600; }

/* Breakdown SVG bars */
.bm-svg .seg-in { fill: #94a3b8; }
.bm-svg .seg-cache { fill: #12b886; }
.bm-svg .seg-write { fill: #f59e0b; }
.bm-svg .seg-out { fill: #3a63ff; }
.bm-svg .seg-wait { fill: #ff8a3d; }
.bm-svg .seg-stream { fill: #3a63ff; }
.bm-svg .seg-eff { fill: #12b886; }
.bm-svg .seg-disc { fill: #7950f2; }
.bm-svg .seg-ghost { stroke: #b8b8b3; stroke-width: 1.6; stroke-dasharray: 2 2; }
.bm-svg .br-name { fill: var(--ink); font-size: 12px; font-weight: 500; }
.bm-svg .br-val { fill: var(--ink); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bm-svg .br-sub { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.bm-svg .br-legend { fill: var(--body); font-size: 11.5px; }

/* Extra lab colors complementing public/blog/blog.css */
.cr-microsoft { fill: #0078d4; }
.cr-meshy { fill: #10b981; }
.cr-kling { fill: #6366f1; }

/* Section headers */
.bm-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 30px 0 14px;
}
.bm-sec-head h2 {
  margin: 0;
  color: var(--ink);
  font: 550 22px/1.2 var(--display);
  letter-spacing: -.025em;
}
.bm-sec-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Compare pinned cards */
.bm-compare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.bm-pin-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}
.bm-pin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.bm-model-id {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.bm-logo {
  flex: none;
  width: 18px;
  height: 18px;
}
.bm-pin-title b {
  display: block;
  color: var(--ink);
  font: 600 15px/1.25 var(--ui);
  letter-spacing: -.015em;
}
.bm-pin-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.bm-unpin {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font: 500 14px/1 var(--ui);
  cursor: pointer;
}
.bm-unpin:hover { color: var(--ink); border-color: var(--ink); }

.bm-pin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
}
.bm-pin-metrics div span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.bm-pin-metrics div b {
  color: var(--ink);
  font: 600 14.5px/1.25 var(--ui);
  font-variant-numeric: tabular-nums;
}

.bm-mini-slider { padding-top: 2px; }
.bm-mini-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--muted);
}
.bm-mini-slider-head b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bm-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.bm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--body);
  font: 500 11.5px/1.2 var(--ui);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bm-badge.is-good { background: #e8f8f1; color: #0c7a57; }
.bm-badge.is-accent { background: #edf1ff; color: #1f45e0; }
.bm-badge.is-warn { background: #fff4e6; color: #b45309; }

/* Coding Agents strip */
.bm-agents-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.bm-agent-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.bm-agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.bm-agent-card b { display: block; color: var(--ink); font: 600 14.5px/1.25 var(--ui); }
.bm-agent-card > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.bm-agent-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font: 600 13px/1.2 var(--ui);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bm-agent-nums small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

/* Full Sortable Table + Drawer */
.bm-table-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 24px;
}
.bm-table-scroll {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.bm-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 13.5px/1.4 var(--ui);
  font-variant-numeric: tabular-nums;
}
.bm-table thead th {
  padding: 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.bm-sort-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 12px/1.2 var(--ui);
  letter-spacing: -.005em;
  text-align: left;
  cursor: pointer;
}
.bm-sort-btn:hover, .bm-sort-btn.is-sorted { color: var(--ink); }
.bm-org-tag {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--soft-2);
  color: var(--muted);
  font: 600 10.5px/1 var(--ui);
}
.bm-row { transition: background .12s; }
.bm-row.is-clickable { cursor: pointer; }
.bm-row:hover { background: #fafaf9; }
.bm-row.is-open { background: #f6f6f5; }
.bm-row td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.bm-row td:first-child { font-variant-numeric: normal; min-width: 210px; }
.bm-cell-model {
  display: flex;
  align-items: center;
  gap: 9px;
}
.bm-cell-model b {
  display: block;
  color: var(--ink);
  font: 550 14px/1.25 var(--ui);
}
.bm-cell-model small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.bm-pin-dot {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font: 500 11.5px/1 var(--ui);
  cursor: pointer;
  white-space: nowrap;
}
.bm-pin-dot:hover { border-color: var(--ink); color: var(--ink); }
.bm-pin-dot.is-pinned { border-color: var(--accent); background: #edf1ff; color: #1f45e0; }

.bm-cell-score { min-width: 92px; }
.bm-score-val {
  display: block;
  color: var(--ink);
  font-weight: 550;
  margin-bottom: 3px;
}
.bm-score-null { color: var(--muted); }
.bm-mini-bar { display: block; width: 72px; height: 5px; }
.bm-bar-bg { fill: var(--soft-2); }
.bm-bar-fill { fill: var(--accent); }
.bm-bar-fill.is-top { fill: #12b886; }

/* Expanded Model Drawer */
.bm-drawer-row td {
  padding: 18px 20px 22px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.bm-drawer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr;
  gap: 16px;
}
.bm-drawer-panel {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.bm-drawer-panel h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 600 13.5px/1.2 var(--ui);
}
.bm-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.bm-action-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font: 500 12.5px/1 var(--ui);
}
.bm-action-link:hover { background: #000000; color: #ffffff; }
.bm-ep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.bm-ep-table th, .bm-ep-table td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.bm-ep-table th { color: var(--muted); font-weight: 600; }
.bm-ep-table td:first-child { font-variant-numeric: normal; font-weight: 500; color: var(--ink); }

/* Related CreateGame.ai reports strip */
.bm-reports-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.bm-report-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.bm-report-card:hover { border-color: var(--ink); background: #f1f1ef; }
.bm-report-card b { color: var(--ink); font: 600 14.5px/1.3 var(--ui); }
.bm-report-card span { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* Primary sources footer */
.bm-src-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.bm-src-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  text-decoration: none;
}
.bm-src-card:hover { border-color: var(--ink); }
.bm-src-card b { color: var(--ink); font: 600 13px/1.2 var(--ui); }
.bm-src-card span { color: var(--muted); font-size: 12px; line-height: 1.35; }

.bm-methodology { margin-top: 40px; }
.bm-methodology h2 {
  margin: 0;
  color: var(--ink);
  font: 550 20px/1.2 var(--display);
  letter-spacing: -.02em;
}

@media (max-width: 1060px) {
  .bm-champ-grid, .bm-champ-grid.is-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-quad-grid, .bm-charts-grid, .bm-charts-equal { grid-template-columns: 1fr; }
  .bm-callout { grid-template-columns: 1fr; }
  .bm-sliders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bm-compare-grid, .bm-agents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-drawer-grid { grid-template-columns: 1fr; }
  .bm-reports-strip { grid-template-columns: 1fr; }
  .bm-src-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .bm-wrap { padding: 14px 16px 80px; }
  .bm-subnav-wrap { justify-content: flex-start; }
  .bm-champ-grid, .bm-champ-grid.is-six { grid-template-columns: 1fr; }
  .bm-callout-stats { grid-template-columns: 1fr; }
  .bm-sliders { grid-template-columns: 1fr; }
  .bm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-compare-grid, .bm-agents-grid, .bm-src-grid { grid-template-columns: 1fr; }
  .bm-search { width: 100%; }
}
