/* Neutral token/cost tables share the result-table typography without a heatmap. */
.astra-article .token-cost-note { margin: 12px; max-width: min(1000px, calc(100vw - 90px)); color: var(--muted); font: 400 11px/1.6 var(--font); white-space: normal; }
.astra-article .token-cost-summary { max-width: 100%; margin: 24px 0 18px; }
.astra-article .token-cost-summary .task-table-frame { border-radius: 10px; }
.astra-article .token-cost-table thead th { white-space: normal; max-width: 150px; padding: 9px 10px; }
.astra-article .token-cost-table .task-name { width: 220px; min-width: 220px; max-width: 220px; }
.astra-article .token-cost-summary { --token-label-width: 176px; }
.astra-article #model-token-costs { --token-label-width: 120px; }
.astra-article .token-cost-summary .token-cost-table .task-name {
  width: var(--token-label-width);
  min-width: var(--token-label-width);
  max-width: var(--token-label-width);
}
.astra-article .token-cost-table .token-value {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  font: 400 11px/1.5 var(--task-mono);
  font-variant-numeric: tabular-nums;
}
.astra-article .token-cost-table .task-name { border-bottom: 1px solid var(--line); }
.astra-article .token-cost-table .task-total > * { border-bottom: 2px solid var(--line); }
.astra-article .token-cost-table .task-total .task-name,
.astra-article .token-cost-table tbody tr:hover .task-name { background: #fff; }
.astra-article .token-cost-summary figcaption {
  margin: 0;
  padding: 10px 18px;
  background: var(--paper);
}
.astra-article .token-cost-group + .token-cost-group { margin-top: 20px; }
.astra-article .token-cost-group h3 {
  margin: 0;
  padding: 12px;
  font: 400 12px/1.5 var(--task-mono);
  letter-spacing: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.astra-article .token-cost-dialog .token-cost-group { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.astra-article .timing-summary { width: 100%; max-width: 100%; }
.astra-article .timing-share { display: flex; align-items: center; justify-content: center; gap: 8px; }
.astra-article .timing-share-track { display: flex; flex: 0 0 100px; height: 8px; background: var(--bar-secondary); }
.astra-article .timing-share-fill { display: block; flex-shrink: 0; height: 100%; width: var(--inference-share); background: var(--green); }
.astra-article .timing-policy-fill { display: block; flex-shrink: 0; height: 100%; width: var(--policy-share); background: #3978b7; }
.astra-article .timing-share-fill.timing-policy-only { background: #3978b7; }
.astra-article .timing-share-fill.timing-cosmos-only { background: #3978b7; }
.astra-article .timing-share-value { min-width: 43px; text-align: right; }
.astra-article .timing-dialog .timing-reference-note { margin: 0; padding: 12px; color: var(--muted); font: 400 12px/1.5 var(--font); }
.astra-article .timing-share-heading { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px; white-space: normal; }
.astra-article .timing-detail-table .timing-share-heading { flex-direction: column; gap: 5px; }
.astra-article .timing-legend { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 400 10px/1.5 var(--font); }
.astra-article .timing-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.astra-article .timing-legend i { display: inline-block; width: 14px; height: 7px; background: var(--green); }
.astra-article .timing-legend .timing-policy-key { background: #3978b7; }
.astra-article .timing-legend .timing-pi05-key { background: #3978b7; }
.astra-article .timing-legend .timing-completion-key { background: var(--bar-secondary); }
.astra-article .timing-detail-table tr > :nth-child(2),
.astra-article .timing-detail-table tr > :nth-child(3) { border-right: 1px solid var(--line); }
@media (max-width: 600px) {
  .astra-article .token-cost-table .task-name { width: 160px; min-width: 160px; max-width: 160px; }
}

/* Main-page tables follow Table 1; detailed result dialogs keep their own style. */
.astra-article .token-cost-summary {
  margin: 24px 0;
  font: 12px/1.75 var(--font);
}
.astra-article .token-cost-summary .task-table-frame {
  border: 0;
  border-radius: 0;
}
.astra-article .token-cost-summary .task-table-scroller {
  border-top: 2px solid var(--ink);
}
.astra-article .token-cost-summary table {
  font: 12px/1.75 var(--font);
}
.astra-article .token-cost-summary table :is(th, td, .task-name, .token-value) {
  height: auto;
  padding: 6px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
}
.astra-article .token-cost-summary table :is(th, .task-name) {
  font-weight: 500;
  text-align: left;
}
.astra-article .token-cost-summary table :is(td, .token-value) {
  font-family: var(--mono);
  text-align: right;
}
.astra-article .token-cost-summary table thead :is(th, .task-name) {
  background: #f0f2ec;
  color: var(--muted);
  font: 500 9px/1.75 var(--font);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: right;
}
.astra-article .token-cost-summary table thead th:first-child,
.astra-article .token-cost-summary table .ablation-task-names,
.astra-article .token-cost-summary .ablation-tasks-table thead th:nth-child(2) {
  text-align: left;
}
.astra-article .token-cost-summary table .task-name { box-shadow: none; }
.astra-article .token-cost-summary table .task-name code { font: inherit; }
.astra-article .token-cost-summary .timing-share { justify-content: flex-end; }
.astra-article .token-cost-summary .timing-share-heading { justify-content: flex-end; }
.astra-article .token-cost-summary .timing-legend { letter-spacing: 0; text-transform: none; }
.astra-article .timing-summary { --token-label-width: 200px; }
.astra-article .timing-summary .timing-table .task-name { box-sizing: border-box; }
.astra-article .timing-summary .timing-table tr > :nth-child(2) {
  box-sizing: border-box;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  white-space: nowrap;
}
.astra-article .timing-summary .timing-table tr > :nth-child(3) { min-width: 280px; max-width: none; }
.astra-article .timing-summary .timing-share-track { flex: 0 0 300px; }
.astra-article .timing-summary .timing-share-value { flex: 0 0 auto; }
.astra-article .timing-summary .timing-table tr > :last-child { text-align: center; }
.astra-article .timing-summary .timing-share,
.astra-article .timing-summary .timing-share-heading { justify-content: center; }
.astra-article .token-cost-summary figcaption {
  margin: 0;
  padding: 13px;
  border-top: 0;
  background: var(--paper);
  color: var(--faint);
  font: 400 11px/1.6 var(--font);
}
.astra-article .token-cost-summary.ablation-tasks figcaption { border-top: 1px solid var(--line); }

/* Policy cards share article typography and keep the numbered summary caption. */
.astra-article #final-configurations-table { margin: 24px 0; font: 400 13px/1.6 var(--font); }
.astra-article #final-configurations-table .configuration-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
}
.astra-article #final-configurations-table .configuration-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 7;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.astra-article #final-configurations-table .configuration-card header { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.astra-article #final-configurations-table .configuration-card h4 { margin: 0 0 4px; padding: 0; font: 600 15px/1.35 var(--font); letter-spacing: -.2px; }
.astra-article #final-configurations-table .configuration-card header p { margin: 0; color: var(--muted); font: 400 12px/1.5 var(--font); }
.astra-article #final-configurations-table dl { display: grid; grid-template-rows: subgrid; grid-row: span 6; margin: 0; }
.astra-article #final-configurations-table dl > div { padding: 8px 14px 0; font: 400 12.5px/1.5 var(--font); }
.astra-article #final-configurations-table dl > div:last-child { padding-bottom: 12px; }
.astra-article #final-configurations-table dt { display: inline; margin: 0; font: 600 12px/1.5 var(--font); }
.astra-article #final-configurations-table dt::after { content: ": "; }
.astra-article #final-configurations-table dd { display: inline; margin: 0; font: 400 12.5px/1.5 var(--font); overflow-wrap: anywhere; }
.astra-article #final-configurations-table dd small { display: block; margin-top: 5px; color: var(--muted); font: 400 12px/1.5 var(--font); }
.astra-article #final-configurations-table .configuration-unverified { display: inline-block; font: 400 10px/1.5 var(--font); color: var(--muted); border-bottom: 1px dotted currentColor; white-space: nowrap; }
.astra-article #final-configurations-table .configuration-shared { margin-top: 10px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.astra-article #final-configurations-table .configuration-shared p { margin: 0; font: 400 12px/1.5 var(--font); }
.astra-article #final-configurations-table .configuration-shared strong { font-weight: 600; }
.astra-article #final-configurations-table .configuration-shared .configuration-unverified { margin-left: 5px; }
.astra-article #final-configurations-table .configuration-notes { margin-top: 6px; }
.astra-article #final-configurations-table .configuration-notes summary { width: fit-content; padding: 4px 0; font: 500 12px/1.6 var(--font); color: var(--muted); cursor: pointer; }
.astra-article #final-configurations-table .configuration-notes > div { padding: 8px 0 0; }
.astra-article #final-configurations-table .configuration-notes p { margin: 0 0 8px; font: 400 12px/1.6 var(--font); color: var(--muted); }
.astra-article #final-configurations-table > figcaption { margin: 8px 0 0; padding: 8px 0 0; border-top: none; font: 400 11px/1.6 var(--font); color: var(--muted); }
@media (max-width: 800px) {
  .astra-article #final-configurations-table .configuration-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .astra-article #final-configurations-table .configuration-card { display: block; grid-row: auto; }
  .astra-article #final-configurations-table dl { display: block; }
}
@media print {
  .astra-article #final-configurations-table .configuration-card { break-inside: avoid; }
  .astra-article #final-configurations-table .configuration-notes > div { display: block; }
}
