/* BladeBench theme: forged steel, hot edge. Loads after screening.css. */
:root {
  --paper: #eeefec;
  --ink: #16181d;
  --muted: #565b66;
  --line: #c9ccd1;
  --forest: #23272f;
  --orange: #ff5b1f;
  --blue: #2b8fc4;
  --lime: #ffb37a;
  --edge: #ff5b1f;
  --steel: #9fb3c8;
  --score: 0;
}
body {
  background: linear-gradient(#111317 0 64px, var(--paper) 64px);
}
.mast {
  background: #111317;
  border-bottom: 1px solid #2c3038;
}
.mast nav a[aria-current="page"] {
  background: #2a2420;
  color: #ffb37a;
}
.brand span {
  color: var(--edge);
}
.marquee {
  color: #f1f3f6;
  background:
    linear-gradient(118deg, transparent 0 61%, #ff5b1f22 61% 61.6%, transparent 61.6%),
    linear-gradient(118deg, transparent 0 63%, #ff5b1f 63% 63.25%, transparent 63.25%),
    radial-gradient(ellipse at 90% 120%, #5a2a17 0, transparent 55%),
    linear-gradient(110deg, #15171c, #232831 62%, #181b21);
}
.marquee-type p,
.archive-count {
  color: #b9c3cf;
}
.marquee h1 em,
.archive-count i {
  color: var(--edge);
}
.archive-count i {
  background: var(--edge);
}
.reel {
  background: #0f1114;
  border-color: #4a515c;
}
.reel:before,
.reel:after {
  background: repeating-linear-gradient(90deg, #8d99a8 0 7px, transparent 7px 17px);
}

/* Score chip: the number carries the value; the bar repeats it for scanning. */
.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  position: relative;
  padding: 0.12rem 0.45rem 0.22rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}
.score-chip b {
  font-weight: 760;
}
.score-chip small {
  color: var(--muted);
  font-size: 0.72em;
}
.score-chip::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  width: calc((100% - 8px) * var(--score) / 10);
  background: #257de0;
}
.score-chip[data-by="chat"] b::after,
.score-chip[data-by="blind"] b::after {
  content: " chat";
  font-size: 0.65em;
  font-weight: 600;
  color: var(--muted);
}
.score-chip[data-by="blind"] b::after {
  content: " blind";
}
a.score-chip:hover {
  border-color: var(--ink);
}
.title-row .score-chip {
  font-size: 1.05rem;
}
.run-score,
.run-print,
.run-cost {
  margin: 0.35rem 0;
}
.run-print[data-result="spins"] strong {
  color: #0a7a21;
}
.run-print[data-result="fused"] strong,
.run-print[data-result="failed"] strong {
  color: #b42318;
}

/* Scoreboard matrix */
.mx-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  margin: 0.6rem 0;
}
.seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #e2e4e7;
  border-radius: 8px;
  padding: 2px;
}
.seg span {
  padding: 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.seg a {
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.seg a[aria-current="true"] {
  background: #fff;
  box-shadow: 0 1px 2px #0002;
  font-weight: 650;
}
.mx-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.4rem 0 0.8rem;
}
.mx-legend .ramp {
  width: 140px;
  height: 12px;
  border-radius: 3px;
}
.mx-legend .ramp + span {
  margin-left: -0.6rem;
}
.mx-legend .key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mx-legend .blank {
  display: inline-block;
  width: 18px;
  height: 12px;
  border: 1px dashed var(--line);
  border-radius: 3px;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mx-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
table.matrix {
  border-collapse: separate;
  border-spacing: 2px;
  width: 100%;
  min-width: max-content;
  font-variant-numeric: tabular-nums;
}
table.matrix th,
table.matrix td {
  border: 0;
  padding: 0;
}
table.matrix thead th {
  vertical-align: bottom;
  text-align: center;
  font-weight: 650;
  font-size: 0.8rem;
  padding: 0.5rem 0.25rem 0.35rem;
  max-width: 7.5rem;
  min-width: 4.6rem;
  line-height: 1.2;
}
table.matrix thead th a {
  text-decoration: none;
}
table.matrix thead th small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.mx-model {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  text-align: left !important;
  padding: 0.3rem 0.8rem 0.3rem 0.5rem !important;
  min-width: 11rem;
  font-size: 0.9rem;
}
.mx-model,
.mx-model small {
  text-transform: none;
  letter-spacing: 0;
}
.mx-model a {
  font-weight: 650;
  text-decoration: none;
}
.mx-model small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75rem;
}
.mx-cell a {
  display: grid;
  place-items: center;
  height: 2.3rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  position: relative;
}
.mx-score sup {
  font-size: 0.6em;
  margin-left: 1px;
}
.mx-none {
  background: #f3f4f6;
}
.mx-tone span {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink);
}
.mx-tone.tone-unknown {
  background: #f3f4f6;
}
.mx-tone.tone-positive,
.mx-tone.tone-mixed,
.mx-tone.tone-neutral,
.mx-tone.tone-negative {
  color: #fff;
}
.mx-tone.tone-positive span,
.mx-tone.tone-negative span {
  color: #fff;
}
.more {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.mx-legend .more {
  position: static;
  background: var(--ink);
}
.mx-empty {
  background: repeating-linear-gradient(135deg, transparent 0 5px, #eef0f2 5px 6px);
  border-radius: 4px;
}
.mx-avg {
  text-align: center;
  font-weight: 700;
  padding: 0 0.6rem !important;
  border-left: 2px solid var(--line) !important;
}
.mx-avg small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--muted);
}
.mx-cell a:hover,
.mx-cell a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* Score trend small multiples */
.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1rem;
}
.trend-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.7rem 0.8rem 0.5rem;
}
.trend-card figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
}
.trend-card figcaption a {
  text-decoration: none;
}
.trend-card figcaption small {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
}
.trend-card svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.trend-card .grid {
  stroke: #e6e8eb;
  stroke-width: 1;
}
.trend-card .tick {
  fill: var(--muted);
  font-size: 11px;
}
.trend-card .trace {
  fill: none;
  stroke: #9dc8f7;
  stroke-width: 2;
  stroke-linejoin: round;
}
.trend-card .record {
  fill: none;
  stroke: var(--edge);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.trend-card .pt {
  fill: #257de0;
  stroke: #fff;
  stroke-width: 2;
}
.trend-card .pt.top {
  fill: var(--edge);
}
.trend-card .hit {
  fill: transparent;
}
.trend-card a:hover .pt,
.trend-card a:focus-visible .pt {
  r: 7;
}
.trend-card .lbl {
  font-size: 11.5px;
  fill: var(--ink);
  font-weight: 600;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
}
.trend-card details {
  font-size: 0.85rem;
}
.viz-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
  display: grid;
  gap: 2px;
  max-width: 260px;
  background: #16181d;
  color: #f1f3f6;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  box-shadow: 0 6px 18px #0004;
}
.viz-tip span {
  color: #c3cad4;
}
.print-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.print-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.5rem;
  align-items: center;
}
.print-list .pi {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-size: 0.85rem;
  color: #fff;
  background: #6b7280;
}
.print-list li[data-result="spins"] .pi {
  background: #0a7a21;
}
.print-list li[data-result="fused"] .pi,
.print-list li[data-result="failed"] .pi {
  background: #b42318;
}
.print-list li > span:not(.pi) {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.85rem;
}
.print-list li > a.small {
  grid-column: 3;
  grid-row: 1 / span 2;
}
@media (max-width: 640px) {
  .mx-model {
    min-width: 0;
    width: 7.2rem;
    max-width: 7.2rem;
    font-size: 0.8rem;
    padding-right: 0.4rem !important;
  }
  .mx-model small {
    font-size: 0.68rem;
    white-space: normal;
  }
  table.matrix thead th {
    min-width: 3.6rem;
  }
}

/* Cost: the second primary metric. Orange family, distinct from the blue score ramp. */
.cost-chip {
  display: inline-flex;
  align-items: baseline;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: #fff4ec;
  border: 1px solid #f6c5a5;
  color: #7c270b;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.2;
}
.cost-chip[data-scope="partial"],
.cost-chip[data-scope="rebuild"] {
  background: #f3f4f6;
  border-style: dashed;
  border-color: #c9ccd1;
  color: var(--muted);
}
a.cost-chip:hover {
  border-color: #7c270b;
}
.title-row .cost-chip {
  font-size: 1.05rem;
  margin-left: 0.3rem;
}
.title-row {
  gap: 0.3rem;
}
.bill {
  margin: 0.2rem 0 0.8rem;
  font-size: 0.92rem;
}
.mx-cell a {
  height: 2.6rem;
  line-height: 1.05;
  align-content: center;
  gap: 1px;
}
.mx-cost {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  color: inherit;
  opacity: 0.85;
}
.mx-cost.static {
  display: inline;
  color: #7c270b;
  opacity: 1;
}
.mx-none .mx-cost {
  color: #7c270b;
}
.mx-partial {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.mx-dash {
  color: #a3a8b1;
  font-weight: 400;
}
.trend-card .record.cost {
  stroke: #0f4a96;
}
.trend-card .pt.cost {
  fill: #e05c22;
}
.trend-card .pt.cost.top {
  fill: #0f4a96;
}
.trend-card .frontier {
  fill: none;
  stroke: var(--edge);
  stroke-width: 2;
  stroke-linejoin: round;
}
.trend-card .pt.off {
  fill: #9aa3ae;
}
.trend-card .grid.v {
  stroke-dasharray: 2 3;
}
