/* ==========================================================================
   /blog/polish.css: shared by every post. Post-specific fixes are scoped by id.
   polish.css: layout, figure and mobile-readability pass.
   Loaded last on the page, so it wins over the inline figure styles without
   editing them. Same grammar as post 1: teal hairlines, tabular numbers,
   sticky label columns, text tables that stack into cards on phones.
   ========================================================================== */

/* ==========================================================================
   Type system. Geist 300 body, 400 display, 500 for labels and headings.
   Each level differs from its neighbours in at least two of size, weight
   and colour, so an H3 can never be mistaken for a paragraph.

              desktop            phone
   H1         unchanged
   H2         30 / 400 / 1.2     24 / 400 / 1.25
   H3         20 / 500 / 1.4     18 / 500 / 1.4
   Body       18 / 300 / 30      16 / 300 / 26   (unchanged)
   Lead-in    body size / 500, ink colour
   Fig title  16 / 500 / 1.4     15 / 500
   ========================================================================== */
:root {
  --ink: #16201f;
  --ink-2: #39434f;
  --ink-3: #5a6a63;
  --ink-4: #6b756f;
}

/* Section rhythm: air instead of rules */
html body main.post .post-section[aria-labelledby] { padding-top: 0; border-top: 0; margin-top: 76px !important; }
html body main.post .post-body > .post-section[aria-labelledby]:first-child { margin-top: 0 !important; }
main .blog-appendix { margin-top: 88px; padding-top: 0; border-top: 0; }

main .post-section > h2, main .blog-appendix h2 {
  margin: 0 0 18px;
  font-size: 30px; line-height: 1.2; font-weight: 400; letter-spacing: -0.022em;
  color: var(--ink); text-wrap: pretty;
}
main .post-section > h3 {
  margin: 48px 0 10px;
  font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -0.012em;
  color: var(--ink); text-wrap: pretty;
}
main .post-section > h2 + h3 { margin-top: 28px; }
main .post-section > h3 + p { margin-top: 0 !important; }

main .post-section > p, main .post-section li, main .appendix-content > p { text-wrap: pretty; }
main .post-section p strong, main .post-section li strong, main .appendix-content strong { font-weight: 500; color: #1c2536; }
main .post-section ul:not([class]) li + li, main .post-section ol:not([class]) li + li { margin-top: 10px; }

/* Figure titles sit inside cards: smaller than H3, same weight, so they read as labels */
main .df-title, main .fig-title {
  font-size: 16px !important; line-height: 1.4 !important; font-weight: 500 !important;
  letter-spacing: -0.008em !important; color: var(--ink) !important; text-wrap: pretty;
}
main .df-mini-title, main .ct-task { font-size: 14px !important; font-weight: 500 !important; color: var(--ink) !important; }
main .score-only h3 { font-size: 13px !important; font-weight: 500 !important; color: var(--ink) !important; }

/* Appendix: a quiet list of expandable rows */
main .appendix-subsection { margin: 0 !important; padding: 0 !important; border-bottom: 1px solid #e4e6e3; }
main .appendix-subsection:first-of-type { border-top: 1px solid #e4e6e3; }
main .appendix-subsection > summary {
  display: block; padding: 16px 0; cursor: pointer; text-align: left !important;
  font-size: 17px !important; line-height: 1.4 !important; font-weight: 400 !important; color: var(--ink) !important;
}
main .appendix-subsection > summary:hover { color: #0b7a6f !important; }
main .appendix-content { padding: 4px 0 28px !important; }
main .appendix-content h4 { font-size: 15px !important; font-weight: 500 !important; color: var(--ink) !important; margin: 28px 0 10px !important; }

@media (max-width: 640px) {
  html body main.post .post-section[aria-labelledby] { margin-top: 56px !important; }
  main .blog-appendix { margin-top: 64px; }
  main .post-section > h2, main .blog-appendix h2 { font-size: 24px; line-height: 1.25; margin-bottom: 14px; }
  main .post-section > h3 { font-size: 18px; margin-top: 40px; margin-bottom: 8px; }
  main .post-section > h2 + h3 { margin-top: 22px; }
  main .df-title, main .fig-title { font-size: 15px !important; }
  main .appendix-subsection > summary { font-size: 16px !important; padding: 14px 0; }
}

/* ---------- Charts use the card's full width ---------- */
/* Frontier-placement panels: fill the card; polish.js sets --k so text stays at real pixel sizes */
#hf-efficient-eval-frontier-addition svg[viewBox] { display: block; width: 100% !important; max-width: none !important; height: auto !important; margin: 0 !important; }
#hf-efficient-eval-frontier-addition svg[viewBox] text[font-size="14"]   { font-size: min(calc(var(--k, 1) * 15px), 16px) !important; }
#hf-efficient-eval-frontier-addition svg[viewBox] text[font-size="11.5"] { font-size: min(calc(var(--k, 1) * 12.5px), 13.5px) !important; }
#hf-efficient-eval-frontier-addition svg[viewBox] text[font-size="11"]   { font-size: min(calc(var(--k, 1) * 12px), 13px) !important; }
#hf-efficient-eval-frontier-addition svg[viewBox] text[font-size="10.8"],
#hf-efficient-eval-frontier-addition svg[viewBox] text[font-size="10.5"] { font-size: min(calc(var(--k, 1) * 11.5px), 12.5px) !important; }

/* ---------- Tabular numbers everywhere numbers line up ---------- */
main table td, main .df-val, main .df-cell, main .hx-sc, main .ovc-val { font-variant-numeric: tabular-nums; }

/* ---------- Smallest text: nothing under 11px outside charts ---------- */
main .df-pos { font-size: 11px !important; color: #7b867e; }
main .ovc-meta, main .mini-label { font-size: 11px !important; }
main .df-index-score-label, main .ax-model { font-size: 11px !important; }

/* ---------- Scroll affordance for anything wider than the screen ----------
   polish.js adds .is-overflowing / .at-end; the fade tells you there is more. */
.is-overflowing:not(.at-end) {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}
/* ---------- Fit-to-column on tablet and desktop ---------- */
@media (min-width: 641px) {
  main table.ot-matrix th { white-space: normal !important; text-wrap: pretty; vertical-align: bottom; font-size: 12px !important; word-break: normal !important; overflow-wrap: normal !important; hyphens: none; }
  main table.ot-matrix th, main table.ot-matrix td { padding-left: 8px !important; padding-right: 8px !important; }
  main table.ot-matrix td:not(:first-child), main table.ot-matrix th:not(:first-child) { text-align: right !important; }
  main table.ot-matrix td:first-child { white-space: nowrap; }
  main table.ot-matrix { width: 100% !important; min-width: 0 !important; }
  main table.ot-cards { width: 100% !important; }
  main table.ot-cards th { white-space: normal !important; text-wrap: pretty; vertical-align: bottom; }
  main table.ot-cards td { overflow-wrap: anywhere; }
}
@media (min-width: 600px) {
  main .df-scroll > svg { min-width: 0 !important; width: 100% !important; height: auto; }
}

/* ---------- Scores and token coverage (opened from the token chart) ----------
   Pre-existing bug: on narrow screens the model and harness columns collapsed to
   one letter per line. Give the table a floor and keep labels on one line. */
#hf-score-by-tokens details.exact table { min-width: 560px; width: 100%; border-collapse: collapse; font-size: 13px; }
#hf-score-by-tokens details.exact th,
#hf-score-by-tokens details.exact td { white-space: nowrap; padding: 9px 10px; text-align: left; border-bottom: 1px solid #e4e6e3; vertical-align: middle; }
#hf-score-by-tokens details.exact thead th { font-size: 12px; font-weight: 400; color: #61736b; background: #fafbf8; }
#hf-score-by-tokens details.exact td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
#hf-score-by-tokens details.exact thead th:nth-child(n+3) { text-align: right; }

/* ==========================================================================
   Phones and small tablets
   ========================================================================== */
@media (max-width: 700px) {

  /* Figure cards: less padding so the content gets the width */
  main .df-frame { padding: 16px 14px; border-radius: 12px; }
  main .df-frame .df-frame { padding: 0; border: 0; }
  main .hf-frame { padding: 16px 14px; }

  /* Tabs that overflow: fade the edge instead of cutting a word in half */
  main .hx-tabs button, #hf-score-by-tokens .ct-switch button { padding: 10px 12px !important; font-size: 13.5px !important; }

  /* ---- Numeric grids: sticky first column ---- */
  main .hx-scroll table.hx-g th:first-child,
  main .hx-scroll table.hx-g td:first-child,
  main .scroll > table th:first-child,
  main .scroll > table td:first-child,
  main .hf-table-scroll table.ot-matrix th:first-child,
  main .hf-table-scroll table.ot-matrix td:first-child {
    position: sticky; left: 0; z-index: 1; background: #fff;
    box-shadow: 6px 0 6px -6px rgba(27,42,41,.18);
  }
  main .hx-scroll table.hx-g thead th:first-child,
  main .hf-table-scroll table.ot-matrix thead th:first-child { background: inherit; background-color: #fafbf8; }
  main .hx-scroll table.hx-g th:first-child { width: 112px !important; min-width: 112px; max-width: 112px; white-space: normal !important; font-size: 12.5px !important; line-height: 1.3 !important; padding-right: 8px !important; }
  main .hx-sc > .nm { position: sticky; left: 0; z-index: 1; background: #fff; }
  main .df-heat-card table.df-heat tbody th { box-shadow: 6px 0 6px -6px rgba(27,42,41,.18); }
  main .df-heat-card table.df-heat thead th.rowhead { position: sticky; left: 0; z-index: 2; background: #fff; }

  /* ---- Excluded trials: label on top, bar + count below, no sideways scroll ---- */
  #hf-reward-hacking-exclusions .hf-body { min-width: 0 !important; }
  #hf-reward-hacking-exclusions .hf-scroll { overflow: visible; }
  #hf-reward-hacking-exclusions .head-row { display: block !important; }
  #hf-reward-hacking-exclusions .legend { margin-top: 10px; }
  #hf-reward-hacking-exclusions .df-board { border: 0 !important; overflow: visible !important; }
  #hf-reward-hacking-exclusions .df-row {
    grid-template-columns: minmax(0,1fr) auto !important;
    grid-template-areas: "name val" "track track";
    row-gap: 6px !important; column-gap: 12px !important;
    height: auto !important; padding: 10px 0 !important;
  }
  #hf-reward-hacking-exclusions .df-name { grid-area: name; white-space: normal !important; font-size: 13px; }
  #hf-reward-hacking-exclusions .df-val { grid-area: val; font-size: 13px; }
  #hf-reward-hacking-exclusions .df-track { grid-area: track; }
}

/* ---------- Text tables in the appendix: stack into cards on phones ---------- */
@media (max-width: 640px) {
  main .hf-table-scroll:has(> table.ot-cards) { overflow: visible; }
  main table.ot-cards, main table.ot-cards tbody, main table.ot-cards tr, main table.ot-cards td { display: block; width: auto !important; min-width: 0 !important; }
  main table.ot-cards thead { display: none; }
  main table.ot-cards tr { padding: 14px 0; border-top: 1px solid #d6ecea; }
  main table.ot-cards tr:last-child { border-bottom: 1px solid #d6ecea; }
  main table.ot-cards td { padding: 0 !important; border: 0 !important; text-align: left !important; white-space: normal !important; overflow-wrap: anywhere; }
  main table.ot-cards td + td { margin-top: 8px; }
  main table.ot-cards td:first-child { font-size: 15px; font-weight: 600; color: #243e3b; }
  main table.ot-cards td:first-child:has(> strong) { font-size: 13px; font-weight: 400; color: #52645b; line-height: 1.55; }
  main table.ot-cards td:first-child > strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: #243e3b; }
  main table.ot-cards td:first-child > span { display: block; }
  main table.ot-cards td:not(:first-child)[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px; line-height: 1.4; color: #738077; font-weight: 400;
  }
}

/* Headings wrap greedily: fill each line before breaking. balance/pretty pulled
   words down early and left half-empty first lines. */
main h2, main h3, main h4, main .df-title, main .fig-title, main .df-mini-title { text-wrap: wrap !important; }

/* ---------- Vertical rhythm: one gap between blocks of body copy ----------
   Paragraph gap is about one line (was 24px, which read as nearly two blank lines).
   Space under H2 and H3 is tuned so the *visible* gap to the first paragraph
   equals the gap between paragraphs; the large space above each heading does
   the grouping. Measured baseline-to-cap: 37px desktop, 32px phone. */
main .post-section > p + p,
main .post-section > p + ul, main .post-section > p + ol,
main .post-section > ul + p, main .post-section > ol + p,
main .appendix-content > p + p { margin-top: 16px !important; }
main .post-section > h2, main .blog-appendix h2 { margin-bottom: 17px !important; }
main .post-section > h3 { margin-bottom: 18px !important; }
@media (max-width: 640px) {
  main .post-section > p + p,
  main .post-section > p + ul, main .post-section > p + ol,
  main .post-section > ul + p, main .post-section > ol + p,
  main .appendix-content > p + p { margin-top: 14px !important; }
  main .post-section > h2, main .blog-appendix h2 { margin-bottom: 15px !important; }
  main .post-section > h3 { margin-bottom: 15px !important; }
}

/* Lead illustration: the paper-coloured lines that sit on the teal panel stay 1px
   like the drawn lines (blog.css sets --lead-sw from the rendered width). */
body .lead-o .lead-paper { stroke-width: var(--lead-sw, 2.24); }

/* Lead animation order for this post: circles draw first (their paper fills are already
   in place, so nothing drawn later shows through an O), then the boxes, then the rules;
   the teal panel, the solid O and the paper hairlines fade in once every line is down. */
@media (prefers-reduced-motion: no-preference) {
  body #post-lead .lead-fill { animation-delay: 1300ms; }
}

/* "Token usage unavailable" rows: every row shares one set of columns (subgrid), so the
   value column is as wide as the widest value and all bars start and end together.
   Before, each row sized its own value column, which shifted each bar. */
#hf-score-by-tokens .score-only-rows {
  display: grid;
  grid-template-columns: minmax(195px, 1.65fr) minmax(25px, 1fr) auto;
  column-gap: 12px;
}
#hf-score-by-tokens .score-only-rows > .score-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
}
#hf-score-by-tokens .score-row .score-value { text-align: left !important; white-space: nowrap; }
@media (max-width: 560px) {
  #hf-score-by-tokens .score-only-rows { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
}

/* ==========================================================================
   Post 1 (open-models-in-health): same type system and label floor as post 2
   ========================================================================== */
/* Chart titles (post 1 uses H3s inside its figures) read as figure labels */
main .health-rankings > h3, main .size-scatter-scroll > h3, main .ab-comparison > h3,
main .ct-title, main .irt-title, main .sep-intro h3, main .cap-overview h3, main .comparison-lab h3,
main .tiny-ranking-header h4 {
  font-size: 16px !important; line-height: 1.4 !important; font-weight: 500 !important;
  letter-spacing: -0.008em !important; color: var(--ink) !important; text-wrap: wrap !important;
}
main .irt-subtitle, main .health-rankings .ranking-description, main .size-plot-heading p { font-size: 13.5px !important; line-height: 1.55 !important; font-weight: 400 !important; color: var(--ink-3) !important; }
main .capability-bar-panel h3 { font-size: 15px !important; font-weight: 500 !important; color: var(--ink) !important; }
/* In-section subheads (H4 in post 1) use the H3 style */
main .pareto-section > h4, main .health-rankings > h4 {
  font-size: 20px !important; line-height: 1.4 !important; font-weight: 500 !important; letter-spacing: -0.012em !important;
  color: var(--ink) !important; margin: 48px 0 18px !important; text-wrap: wrap !important;
}
main .appendix-content h4 { font-weight: 500 !important; }
main .post-section .ranking-note, main .post-section .notes-wrap { color: var(--ink-3); }

/* Label floor: nothing under 11px outside drawn charts. The two densest post-1 tables
   (rankings, reasoning) keep their tuned phone sizes; the floor applies to them from 641px. */
main .capability-model-name, main .capability-bar-refused, main .ab-comparison-endpoint, main .ab-endpoint-mode,
main .reasoning-same-effort-note, main .outcome-blocked, main .ct-controls .ct-switch button { font-size: 11px !important; }
@media (min-width: 641px) {
  main .ranking-overall-rank, main .ranking-size, main .reasoning-model-label,
  main .reasoning-token-heading, main .reasoning-token-unit, main .reasoning-desktop-label,
  main .index-score-label, main .index-score-sub, main .merged-model-header, main .ranking-control-title,
  main .ranking-name-short, main .ranking-bar-label .ranking-model > span, main .ranking-sort > span,
  main .ranking-capability button { font-size: 11px !important; }
}
main .reasoning-same-effort-note { color: var(--ink-4) !important; }
@media (max-width: 640px) {
  main .health-rankings > h3, main .size-scatter-scroll > h3, main .ab-comparison > h3,
  main .ct-title, main .irt-title { font-size: 15px !important; }
  main .pareto-section > h4, main .health-rankings > h4 { font-size: 18px !important; margin-top: 40px !important; margin-bottom: 15px !important; }
}

/* Match the first post's leaderboard provider marks. */
#open-weight-leaderboard .provider-mark {
  flex: none; display: inline-block; vertical-align: -2px;
  fill: currentColor; opacity: .8;
  width: 13px; height: 13px; min-width: 0; margin-right: 6px;
}
@media (max-width: 640px) {
  #open-weight-leaderboard .provider-mark { width: 11px; height: 11px; margin-right: 4px; }
}

main .post-section .rh-figure h3 {
  font-size: 16px !important; line-height: 1.4 !important; font-weight: 500 !important;
  letter-spacing: -0.008em !important; color: var(--ink) !important;
}
@media (max-width: 640px) {
  main .post-section .rh-figure h3 { font-size: 15px !important; }
}

/* Alexander’s shared chart palette, including the newer disclosure chart. */
:root {
  --c-open: #2fa196;
  --c-open-2: #9ed3cc;
  --c-closed: #c26d1f;
  --c-closed-hatch: repeating-linear-gradient(-45deg, #e8a961 0 3px, #fff3e3 3px 6px);
  --c-ens: #b5847d;
  --c-track: #edf2ef;
}
main .df-board .df-fill:not(.soft),
#hf-reward-hacking-exclusions .df-fill:not(.soft),
main .hx-fl,
main .ovc-item.open .ovc-bar,
main .bar-fill-teal,
main .swatch-teal,
main .swatch-open,
main .df-fill.is-open { background: var(--c-open) !important; }
main .swatch-open { border: 0 !important; }
main .ovc-item.closed .ovc-bar,
main .swatch-closed {
  background: var(--c-closed-hatch) !important;
  border: 1px solid #d9822b !important;
}
main .df-fill.soft,
main .swatch-soft { background: #bcc3c0 !important; }
main .trace-box { border-left-color: var(--c-open) !important; }
main .pt-team { fill: var(--c-open) !important; }
main .ln-team { stroke: var(--c-open) !important; }
main .bar-end { fill: var(--c-open) !important; }
main .bar-gain { fill: var(--c-open-2) !important; }
main .front-line { stroke: var(--c-open) !important; }
main [fill="#40a99e"],
main use[style*="40a99e"] { fill: var(--c-open) !important; color: var(--c-open) !important; }
main text[fill="#40a99e"] { fill: #294b48 !important; }
#hf-efficient-eval-frontier-addition [fill="#0d736c"] { fill: var(--c-open) !important; }
#hf-efficient-eval-frontier-addition [stroke="#0d736c"] { stroke: var(--c-open) !important; }
#hf-efficient-eval-frontier-addition .swatch[style*="0d736c"] { background: var(--c-open) !important; }
main svg text.val { fill: #294b48 !important; }
main .rh-figure .bar { background: var(--c-open) !important; }

/* Volume 2 uses Volume 1’s compact mobile leaderboard: name and thin bar
   share a column, with rating, trials and cost aligned beside them. */
@media (max-width: 640px) {
  #open-weight-leaderboard .df-board.lb {
    --cols: 12px minmax(0, 1fr) 32px 38px 52px !important;
    --minw: 0px !important;
    width: 100%; overflow: visible;
    border: 1px solid #e4e6e3; border-radius: 8px;
  }
  #open-weight-leaderboard .df-axis,
  #open-weight-leaderboard .df-row {
    width: 100%; min-width: 0; grid-template-columns: var(--cols);
    column-gap: 2px; padding-left: 0; padding-right: 0;
  }
  #open-weight-leaderboard .df-axis {
    min-height: 40px; grid-template-rows: 34px;
    padding-top: 3px; padding-bottom: 3px; background: #fafbf8;
    border-radius: 7px 7px 0 0;
  }
  #open-weight-leaderboard .df-axis > span { grid-row: 1; }
  #open-weight-leaderboard .df-axis .ax-model { display: none; }
  #open-weight-leaderboard .df-axis .ax-score { grid-column: 2 / 4; }
  #open-weight-leaderboard .df-axis > .ax-cell:nth-child(4) { grid-column: 4; }
  #open-weight-leaderboard .df-axis > .ax-cell:nth-child(5) { grid-column: 5; }
  #open-weight-leaderboard .df-axis .df-sort {
    min-height: 28px; padding: 0 2px; font-size: 9px; line-height: 11px;
    flex-direction: row; align-items: center;
  }
  #open-weight-leaderboard .df-axis .df-sort > span:first-child {
    font-size: 9px; line-height: 11px; white-space: normal;
  }
  #open-weight-leaderboard .df-axis .df-sort-arrow {
    position: static; margin-left: 1px; font-size: 8px; line-height: 11px;
  }
  #open-weight-leaderboard .df-row {
    height: 24px; grid-template-rows: 23px;
    padding-top: 0; padding-bottom: 0; align-items: center; line-height: 16px;
  }
  #open-weight-leaderboard .df-row > * { grid-row: 1; }
  #open-weight-leaderboard .df-row .df-pos {
    grid-column: 1; font-size: 9px !important; line-height: 16px;
  }
  #open-weight-leaderboard .df-row .df-name {
    grid-column: 2; align-self: center; padding: 0;
  }
  #open-weight-leaderboard .df-row .df-model {
    font-size: clamp(10px, 2.65vw, 11.5px); line-height: 16px;
  }
  #open-weight-leaderboard .df-row .df-track {
    grid-column: 2; align-self: end; height: 2px; margin: 0 0 1px;
  }
  #open-weight-leaderboard .df-row .df-fill { height: 2px; }
  #open-weight-leaderboard .df-row .df-ci { top: -1px; height: 4px; }
  #open-weight-leaderboard .df-row .df-ci::after { top: 1.5px; }
  #open-weight-leaderboard .df-row .df-val {
    grid-column: 3; font-size: 11px; line-height: 16px;
  }
  #open-weight-leaderboard .df-row .df-cell[data-k="n"] { grid-column: 4; }
  #open-weight-leaderboard .df-row .df-cell[data-k="cost"] { grid-column: 5; }
  #open-weight-leaderboard .df-row .df-cell,
  #open-weight-leaderboard .df-row .df-cell strong { font-size: 11px; line-height: 16px; }
}

/* Retained notes and interactive details share Alexander’s type system.
   This styles existing content; removed figure commentary is not recreated. */
main .hx-meta, main .ct-detail, main .method-footnotes li, main .ranking-note {
  font-size: 13px !important; line-height: 1.6 !important;
  font-weight: 400 !important; color: var(--ink-3) !important; text-wrap: pretty;
}
@media (max-width: 640px) {
  main .hx-meta, main .ct-detail, main .method-footnotes li, main .ranking-note {
    font-size: 12.5px !important;
  }
}
/* Keep the original figure-to-heading gap after removing its caption node. */
main .post-section > #static-and-agentic,
main .post-section > #open-and-closed-models { margin-top: 24px; }

/* Adapt Alexander’s compact frame and text roles to the newer semantic table
   and separate disclosure chart, preserving their content and structure. */
main .post-section figure.rh-figure {
  padding: 20px; border: 1px solid #e4e6e3; border-radius: 12px;
}
main .post-section .rh-figure h3 { margin-bottom: 14px; }
main .post-section .rh-figure table,
main .post-section .rh-figure .rh-chart { font-size: 13.5px; line-height: 1.55; }
main .post-section .rh-figure th,
main .post-section .rh-figure td { padding: 14px 14px 14px 0; }
main .post-section .rh-figure thead th {
  padding-top: 0; padding-bottom: 10px; font-size: 11px; line-height: 1.4;
  color: var(--ink-3);
}
main .post-section .rh-figure tbody th { font-weight: 500; }
@media (max-width: 760px) {
  main .post-section .rh-figure tbody tr { padding: 18px 0; }
  main .post-section .rh-figure th,
  main .post-section .rh-figure td,
  main .post-section .rh-figure tbody tr:last-child th,
  main .post-section .rh-figure tbody tr:last-child td { padding: 0 0 12px; }
  main .post-section .rh-figure td:last-child { padding-bottom: 0; }
}
@media (max-width: 700px) {
  main .post-section figure.rh-figure { padding: 16px 14px; }
  main .post-section .rh-figure table,
  main .post-section .rh-figure .rh-chart { font-size: 13px; }
}

/* The page script redraws these charts at the card's pixel width (class .compact) instead of scrolling. */
html body #rank-trajectory svg.rank-plot.compact { min-width: 0 !important; width: 100% !important; height: auto; }
.rank-plot .tick-hidden { visibility: hidden; }
/* Static-vs-agentic scatter: fit the card on phones instead of scrolling a 480px canvas;
   text is set in viewBox units (~0.7 scale at phone width) so it stays ~10px on screen. */
@media (max-width: 640px) {
  html body #static-vs-agentic svg.rank-comparison { min-width: 0 !important; width: 100% !important; height: auto !important; }
  #static-vs-agentic svg.rank-comparison text { font-size: 13.5px !important; }
  #static-vs-agentic svg.rank-comparison text[style*="font-size: 9.5px"] { font-size: 14.5px !important; }
}
