/* Table 2 typography and compact heatmap layout from the RoboDojo report. */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,400..700&family=JetBrains+Mono:wght@400;500;650;700&display=swap');

.astra-article .task-performance {
  --task-ui: 'Google Sans Flex', ui-sans-serif, system-ui, sans-serif;
  --task-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  margin: 24px 0 0;
  width: 100%;
  max-width: 100%;
  font: 11.5px/1.6 var(--task-ui);
}
.astra-article .task-table-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.astra-article .task-table-scroller {
  overflow: auto;
  max-height: min(640px, 70vh);
  scrollbar-color: #a5b78a #f3f5ef;
}
.astra-article .task-table-scroller:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: -3px;
}
.astra-article .task-performance-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
}
.astra-article .task-performance-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 0;
  height: 30px;
  padding: 5px 6px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 400 11px/1.5 var(--task-mono);
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  white-space: nowrap;
}
.astra-article .task-performance-table thead th[colspan] {
  border-bottom: 0;
}
.astra-article .task-performance-table thead th[rowspan] {
  height: 56px;
}
.astra-article .task-performance-table .task-policy-variants th {
  top: 30px;
  height: 26px;
  padding-top: 0;
}
.astra-article .task-performance-table .task-name {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: 0 12px;
  background: #fff;
  text-align: left;
  box-shadow: inset -1px 0 0 var(--line);
}
.astra-article .task-performance-table thead .task-name { z-index: 4; }
.astra-article .task-performance-table tbody .task-name {
  height: 34px;
  padding-block: 5px;
  font-weight: 500;
}
.astra-article .task-performance-table .task-name code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 400 11px/1.5 var(--task-mono);
  overflow-wrap: anywhere;
}
.astra-article .task-performance-table .task-score {
  height: 34px;
  padding: 0 6px;
  border-bottom: 1px solid #e6e9e1;
  background: color-mix(in srgb, var(--green) calc(var(--success-rate) * var(--performance-green-scale) * 1%), #fff);
  color: var(--ink);
  text-align: center;
  font: 650 11px/1.5 var(--task-mono);
  font-variant-numeric: tabular-nums;
}
.astra-article .task-performance-table .task-total > * {
  border-bottom: 2px solid var(--green-ink);
  font-weight: 700;
}
.astra-article .task-performance-table .task-total .task-name { background: var(--green-wash); }
.astra-article .task-performance-table tbody tr:hover .task-name { background: var(--green-wash); }
.astra-article .task-performance figcaption {
  contain: inline-size;
  margin-top: 8px;
  color: var(--muted);
  font: 400 11px/1.5 var(--task-ui);
}
.astra-article .task-performance figcaption code { font-family: var(--task-mono); font-size: 10px; }
@media (max-width: 600px) {
  .astra-article .task-performance-table .task-name { width: 160px; min-width: 160px; max-width: 160px; }
}
@media print {
  .astra-article .task-table-scroller { max-height: none; overflow: visible; }
  .astra-article .task-table-frame { overflow: visible; border-radius: 0; }
  .astra-article .task-performance-table { width: 100%; min-width: 0; break-inside: auto; }
  .astra-article .task-performance-table thead { display: table-header-group; }
  .astra-article .task-performance-table tr { break-inside: avoid; }
  .astra-article .task-performance-table thead th,
  .astra-article .task-performance-table .task-name { position: static; min-width: 0; max-width: none; }
  .astra-article .task-performance-table .task-score { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
