/* Benchmark pages only. Loaded after shared.css. */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: var(--text-14);
  font-weight: 500;
  color: var(--midnight-blue);
}
.back-link span {
  transition: transform 0.15s;
}
.back-link:hover {
  color: var(--bio-blue-200);
  text-decoration: none;
}
.back-link:hover span {
  transform: translateX(-3px);
}
.hero-inner {
  padding: 28px 0 24px;
  text-align: left;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  color: var(--midnight-blue);
  margin: 0;
  max-width: 20ch;
  font-weight: 400;
}
.hero p.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--grey-500);
  max-width: 68ch;
  margin: 14px 0 0;
}
h2.sec {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--midnight-blue);
  margin: 10px 0 8px;
  font-weight: 400;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.card {
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
  transition: 0.15s;
  cursor: pointer;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0, 6, 80, 0.08);
  transform: translateY(-2px);
}
.card h3 {
  margin: 6px 0 6px;
  color: var(--midnight-blue);
  font-size: var(--text-18);
  font-weight: 500;
}
.card p {
  margin: 0;
  color: var(--grey-500);
  font-size: var(--text-14);
}
/* Reference cards, not links: no hover lift. */
.failure-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
/* Subgrid keeps titles and text aligned across a row. */
.failure-cards .card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  cursor: default;
  background: var(--ice-blue);
  border-color: transparent;
}
.failure-cards .card:hover {
  box-shadow: none;
  transform: none;
}
.failure-num {
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-12);
  color: var(--bio-blue-200);
}
.failure-cards .card p {
  line-height: 1.65;
}

.search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}
.search input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--grey-300);
  border-radius: 999px;
  font-size: var(--text-14);
  font-family: inherit;
  color: var(--midnight-blue);
  outline: none;
  transition: 0.15s;
}
.search input:focus {
  border-color: var(--bio-blue-200);
  box-shadow: 0 0 0 3px rgba(0, 13, 181, 0.12);
}
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.45;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

select {
  font-family: inherit;
  font-size: var(--text-14);
  padding: 8px 12px;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  color: var(--midnight-blue);
  background: var(--white);
  cursor: pointer;
  outline: none;
}
select:focus {
  border-color: var(--bio-blue-200);
}
.reset {
  font-size: var(--text-14);
  color: var(--grey-500);
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: underline;
}
.board {
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 6, 80, 0.05);
  margin-top: 24px;
}
.board-foot {
  margin: 10px 0 0;
  font-size: var(--text-12);
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  color: var(--grey-500);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-14);
}
thead th {
  position: sticky;
  top: 0;
  background: transparent;
  border-bottom: 1px solid var(--grey-300);
  font-weight: 600;
  color: var(--midnight-blue);
  text-align: center;
  padding: 10px 8px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: 0.12s;
}
thead th:hover {
  background: var(--grey-100);
}
thead th.l {
  text-align: left;
}
thead th .arrow {
  font-size: var(--text-12);
  opacity: 0.35;
  margin-left: 3px;
}
thead th.sorted .arrow {
  opacity: 1;
  color: var(--bio-blue-200);
}
th.benchmark span {
  display: inline-block;
  font-size: var(--text-12);
  line-height: 1.2;
  max-width: 100px;
  white-space: normal;
  color: var(--grey-500);
}
th.benchmark.sorted span {
  color: var(--bio-blue-200);
}
tbody tr {
  border-bottom: 1px solid var(--grey-200);
}
td {
  padding: 9px 10px;
}
td.model {
  font-weight: 600;
  color: var(--midnight-blue);
  white-space: nowrap;
}
td.v {
  text-align: center;
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-12);
  font-weight: 500;
  color: var(--midnight-blue);
  min-width: 52px;
}
td.v.empty {
  color: var(--grey-400);
}
.legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: var(--text-12);
  color: var(--grey-500);
  border-top: 1px solid var(--grey-300);
  flex-wrap: wrap;
}
.legend .bar {
  width: 160px;
  height: 10px;
  border-radius: 6px;
  /* Mirrors SEQ_RAMP in shared.js. */
  background: linear-gradient(90deg, var(--ice-blue), var(--sky-blue-100), var(--powder-blue), var(--sky-blue-200), var(--bio-blue-100), var(--bio-blue-200), var(--midnight-blue));
  border: 1px solid var(--grey-300);
}
.count {
  font-size: var(--text-14);
  color: var(--grey-500);
  margin-left: auto;
}
/* Breakpoints below query this board's width, not the window's. */
.results-board {
  container-type: inline-size;
  overflow: hidden;
  padding: 24px 24px 18px;
  box-shadow: none;
}
.results-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}
.results-head,
.result-row,
.results-axis {
  display: grid;
  grid-template-columns: 48px minmax(168px, 0.78fr) minmax(118px, 0.55fr) minmax(340px, 1.75fr) 124px;
  gap: 14px;
  align-items: center;
}
.results-head {
  min-height: 34px;
  padding: 0 0 10px;
  color: var(--grey-500);
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Caps headers keep their tracking on the text inside them. */
.results-head *,
.cost-head * {
  letter-spacing: inherit;
}
.results-head .numeric {
  text-align: right;
}
.result-row {
  min-height: 40px;
  border-top: 1px solid var(--grey-200);
  cursor: default;
}
.result-rank {
  color: var(--grey-500);
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-12);
}
.result-model {
  color: var(--midnight-blue);
  font-size: var(--text-14);
  font-weight: 600;
  white-space: nowrap;
}
.result-provider {
  color: var(--grey-500);
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-12);
  white-space: nowrap;
}
.result-track {
  position: relative;
  height: 20px;
}
.result-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--grey-300);
  transform: translateX(-50%);
}
.result-bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--mean);
  height: 12px;
  background: var(--fill);
  border-radius: var(--radius-bar);
  transform: translateY(-50%);
}
.result-whisker {
  position: absolute;
  top: 50%;
  left: var(--low);
  width: calc(var(--high) - var(--low));
  height: 2px;
  background: var(--midnight-blue);
  border-radius: 2px;
  transform: translateY(-50%);
}
.result-whisker::before,
.result-whisker::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 2px;
  height: 16px;
  background: var(--midnight-blue);
  border-radius: 2px;
  transform: translateY(-50%);
}
.result-whisker::before {
  left: 0;
}
.result-whisker::after {
  right: 0;
}
.result-score {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-align: center;
  color: var(--midnight-blue);
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-16);
  font-weight: 600;
}
.results-axis {
  min-height: 44px;
  color: var(--grey-500);
}
.results-axis-track {
  grid-column: 4;
  position: relative;
  height: 44px;
  border-top: 1px solid var(--grey-300);
}
.results-axis-tick {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-12);
}
.results-axis-tick:first-child {
  transform: none;
}
/* The label follows the ticks, so this is the last tick: flush inside the edge. */
.results-axis-tick:nth-last-child(2) {
  transform: translateX(-100%);
}
.results-axis-label {
  position: absolute;
  top: 26px;
  left: 50%;
  color: var(--midnight-blue);
  font-size: var(--text-12);
  font-weight: 600;
  transform: translateX(-50%);
}
.results-empty {
  padding: 36px 0;
  color: var(--grey-500);
  text-align: center;
}
/* Drops the provider column just above the grid's 854px minimum. Must precede the 760px block. */
@container (max-width: 860px) {
  .results-head,
  .result-row,
  .results-axis {
    grid-template-columns: 48px minmax(110px, 0.9fr) minmax(0, 1.9fr) 124px;
  }

  .results-head span:nth-child(3),
  .result-provider {
    display: none;
  }

  .results-axis-track {
    grid-column: 3;
  }
}
@media (max-width: 760px) {
  .results-board {
    padding: 18px 24px 14px;
  }

  .results-head {
    grid-template-columns: 48px minmax(0, 1fr) 124px;
    grid-template-areas: 'rank model score';
  }

  .results-head span:nth-child(1) { grid-area: rank; }
  .results-head span:nth-child(2) { grid-area: model; }
  .results-head span:nth-child(3),
  .results-head span:nth-child(4) { display: none; }
  .results-head span:nth-child(5) { grid-area: score; }

  /* Same row height as wide rows, so the board doesn't jump at the breakpoint. */
  .result-row {
    grid-template-columns: 48px minmax(0, 1fr) 124px;
    grid-template-areas: 'rank model score';
  }

  .result-rank { grid-area: rank; }
  .result-model { grid-area: model; }
  .result-score { grid-area: score; }

  /* Too narrow to read a bar against an axis: rank, name and figure only. */
  .result-provider,
  .result-track,
  .results-axis {
    display: none;
  }
}
code {
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: max(var(--text-12), 0.9em);
  background: var(--ice-blue);
  color: var(--bio-blue-200);
  padding: 1px 6px;
  border-radius: 5px;
}
/* Chart.js canvas text inherits letter-spacing, which collapses its word spaces. */
canvas {
  letter-spacing: normal;
}
.domain-chip {
  font-family: inherit;
  padding: 8px 14px;
  border: 1px solid var(--grey-300);
  background: var(--white);
  border-radius: 20px;
  font-size: var(--text-14);
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  color: var(--midnight-blue);
}
.domain-chip:hover {
  border-color: var(--bio-blue-200);
  color: var(--bio-blue-200);
}
.domain-chip.active {
  background: var(--bio-blue-200);
  color: var(--white);
  border-color: var(--bio-blue-200);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pill-group.cats {
  gap: 7px;
}
.pill-group.cats .domain-chip {
  padding: 6px 11px;
  font-size: var(--text-12);
}
.legend-key {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-14);
  color: var(--grey-500);
  padding: 7px 4px;
}
@media (max-width: 480px) {
  .sort-btn {
    padding: 6px 11px;
  }
}
.sort-btn {
  font-family: inherit;
  font-size: var(--text-14);
  font-weight: 400;
  color: var(--midnight-blue);
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: 0.15s;
}
.sort-btn:hover {
  border-color: var(--midnight-blue);
}
.sort-btn.active {
  background: var(--ice-blue);
  border-color: var(--bio-blue-200);
  color: var(--midnight-blue);
  font-weight: 500;
}
/* Three columns side by side; only the middle one scrolls. */
.mx {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-12);
}
.mx-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
}
.mx-names {
  max-width: 44vw;
}
.mx-total {
  width: 78px;
}
/* Padding pulled back with margin, so edge cells' hover rings aren't clipped. */
.mx-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px;
  margin: -4px;
}
.mx-models {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mx-mrow {
  display: grid;
  grid-template-columns: repeat(var(--mx-cols), minmax(62px, 1fr));
  gap: 2px;
}
/* Fixed row height keeps the three columns in register. */
.mx-hd {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  font-size: var(--text-12);
  font-weight: 600;
  line-height: 1.2;
  color: var(--grey-500);
  text-align: center;
}
.mx-hd.total {
  color: var(--midnight-blue);
}
.mx.is-scrollable .mx-names {
  box-shadow: 7px 0 7px -7px rgba(0, 6, 80, 0.28);
}
.mx.is-scrollable .mx-total {
  box-shadow: -7px 0 7px -7px rgba(0, 6, 80, 0.28);
}

#gain-summary {
  margin-top: 20px;
}
.mx-name:hover {
  color: var(--bio-blue-200);
}
.mx-cell {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-12);
  font-variant-numeric: tabular-nums;
  transition: box-shadow 0.15s;
}
.mx-cell:hover {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--bio-blue-200);
}
.mx-rowgap {
  height: 8px;
  flex: none;
}
.mx-name.total {
  font-weight: 600;
}
@media (max-width: 620px) {
  .mx {
    gap: 6px;
  }

  .mx-names {
    max-width: 104px;
  }

  .mx-total {
    width: 52px;
  }

  .mx-mrow {
    grid-template-columns: repeat(var(--mx-cols), minmax(50px, 1fr));
  }
}
/* The 2px lead-in matches the matrix's border-spacing. */
.dbar-plot {
  margin-top: 2px;
}
.bars-view {
  display: flex;
  flex-direction: column;
}
.bars-view .dbar-plot {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bars-view .dbar-axis {
  flex: none;
}
/* Head, rows and axis share one template so they stay aligned. */
.dbar-row, .dbar-head, .dbar-axis {
  display: grid;
  grid-template-columns: minmax(84px, 148px) minmax(40px, 1fr) 58px 72px;
  gap: 12px;
}
@media (max-width: 640px) {
  .dbar-row, .dbar-head, .dbar-axis {
    grid-template-columns: minmax(64px, 120px) minmax(40px, 1fr) 46px 62px;
    gap: 8px;
  }
}
.dbar-row {
  align-items: center;
  height: 32px;
}
.dbar-head {
  font-size: var(--text-12);
  font-weight: 600;
  color: var(--grey-500);
  margin-bottom: 2px;
}
.dbar-head span {
  grid-column: 3;
  text-align: right;
}
.dbar-head span + span {
  grid-column: 4;
}
.dbar-label {
  font-size: var(--text-14);
  font-weight: 500;
  color: var(--midnight-blue);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* --dbar-step is set by renderDimBars, from the constant that places the ticks. */
.dbar-track {
  position: relative;
  height: 14px;
  /* First layer adds the last gridline, which the repeat clips at the edge. */
  background-image: linear-gradient(to left, var(--grey-300) 0 1px, transparent 1px),
                    repeating-linear-gradient(to right, var(--grey-300) 0 1px,
                                              transparent 1px var(--dbar-step, 25%));
  cursor: default;
}
/* The hairline gives the palest ramp step an edge against white. */
.dbar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--bio-blue-200);
  border-radius: var(--radius-bar);
  box-shadow: inset 0 0 0 1px rgba(0, 6, 80, 0.16);
}
.dbar-ci {
  position: absolute;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--purple-500);
}
.dbar-cap {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 8px;
  margin-top: -4px;
  background: var(--purple-500);
}
.dbar-value {
  font-size: var(--text-14);
  font-weight: 600;
  color: var(--midnight-blue);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.dbar-range {
  font-size: var(--text-12);
  color: var(--grey-500);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.dbar-axis {
  margin-top: 4px;
}
.dbar-axis-scale {
  grid-column: 2;
  position: relative;
  height: 18px;
  font-size: var(--text-12);
  color: var(--grey-500);
  font-variant-numeric: tabular-nums;
}
.dbar-axis-scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.empty-state {
  padding: 22px 4px;
  color: var(--grey-500);
  font-size: var(--text-14);
}
.chart-card {
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  margin-top: 24px;
}
.chart-card h3 {
  margin: 0;
  color: var(--midnight-blue);
  font-size: var(--text-18);
  font-weight: 500;
}
@container (max-width: 400px) {
  .pie-item {
    grid-template-columns: 10px minmax(0, 1fr) 30px 42px;
    gap: 8px;
  }
}
.pie-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 40px 52px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-200);
}
.pie-item:last-child {
  border-bottom: none;
}
.pie-sw {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 6, 80, 0.14);
}
.pie-name {
  font-size: var(--text-14);
  color: var(--midnight-blue);
}
.pie-n {
  font-size: var(--text-14);
  font-weight: 600;
  color: var(--midnight-blue);
  font-variant-numeric: tabular-nums;
}
.pie-share {
  font-size: var(--text-12);
  color: var(--grey-500);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.task-shell {
  margin-top: 24px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 6, 80, 0.05);
}
.task-summary {
  padding: 28px;
  background: linear-gradient(132deg, var(--purple-100) 9.8%, var(--ice-blue) 47.06%);
}
.task-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.task-questions .domain-chip {
  padding: 6px 14px;
}
.flow-figure {
  margin: 26px 0 0;
  padding: 22px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: var(--white);
  overflow-x: auto;
}
/* Below about 900px the figure pans sideways rather than shrinking its type. */
.flow-figure img {
  display: block;
  width: 100%;
  min-width: 900px;
  height: auto;
}
.figure-zoom {
  display: block;
  cursor: zoom-in;
}
.figure-zoom:hover {
  opacity: 0.92;
}
.flow-figure figcaption {
  margin-top: 16px;
  font-size: var(--text-14);
  color: var(--grey-500);
  max-width: 76ch;
}
.task-title {
  margin: 0;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--midnight-blue);
  max-width: 48ch;
}
.task-lede {
  margin: 14px 0 0;
  font-size: var(--text-14);
  line-height: 1.7;
  color: var(--marine);
  max-width: 84ch;
}
.task-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-top: 1px solid var(--grey-300);
  background: var(--white);
  color: var(--bio-blue-200);
  font-family: inherit;
  font-size: var(--text-14);
  font-weight: 500;
  padding: 14px;
  cursor: pointer;
  transition: 0.15s;
}
.task-toggle:hover {
  background: var(--ice-blue);
}
.task-toggle .chev {
  font-size: var(--text-12);
  transition: transform 0.18s;
}
.task-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}
.task-detail {
  border-top: 1px solid var(--grey-300);
  padding: 28px;
  display: grid;
  gap: 26px;
}
.task-detail h4 {
  margin: 0 0 12px;
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bio-blue-200);
}
.rubric-list {
  display: grid;
  gap: 12px;
}
.rubric-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  background: var(--ice-blue);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.rubric-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bio-blue-200);
  color: var(--white);
  font-size: var(--text-14);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rubric-weight {
  font-size: var(--text-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--marine-100);
  margin-bottom: 7px;
}
.rubric-text {
  margin: 0;
  font-size: var(--text-14);
  line-height: 1.75;
  color: var(--midnight-blue);
  max-width: 92ch;
}
/* pre-line: tips put the label and its figures on separate lines. */
#viz-tip {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  background: var(--midnight-blue);
  color: var(--white);
  font-size: var(--text-14);
  line-height: 1.55;
  white-space: pre-line;
  font-variant-numeric: tabular-nums;
  padding: 10px 13px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 6, 80, 0.25);
  max-width: 340px;
}
#viz-tip .tip-v {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
}
#viz-tip .tip-row {
  display: block;
  white-space: nowrap;
}
/* Hairline keeps the Midnight swatch visible on the Midnight tip. */
#viz-tip .tip-sw {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: baseline;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.cost-head {
  padding-bottom: 10px;
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.cost-head .sort {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  transition: 0.12s;
}
.cost-head .sort:hover,
.cost-head .sort.sorted {
  color: var(--midnight-blue);
}
.cost-head .arrow {
  font-size: var(--text-12);
  opacity: 0.35;
}
.cost-head .sort.sorted .arrow {
  opacity: 1;
  color: var(--bio-blue-200);
}
.cost-score {
  text-align: right;
  padding-right: 10px;
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-14);
  font-weight: 600;
  color: var(--midnight-blue);
  font-variant-numeric: tabular-nums;
}
.cost-row:first-child {
  border-top: 0;
}
.cost-name {
  font-size: var(--text-14);
  font-weight: 600;
  color: var(--midnight-blue);
  white-space: nowrap;
}
.cost-provider {
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-12);
  color: var(--grey-500);
  white-space: nowrap;
}
.cost-track {
  position: relative;
  height: 14px;
}
.cost-value {
  text-align: right;
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-14);
  font-weight: 600;
  color: var(--midnight-blue);
  font-variant-numeric: tabular-nums;
}
.cost-axis-track span {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-12);
  color: var(--grey-500);
}
