/* Figures for "Test-Time Cognition for Agentic Tasks", drawn by scripts/build_dca_figures.py.
   Colours follow the homepage results charts: Voaige DCA in the results blue and baselines in the
   muted ink. Figure 1 gives the three models quiet ochre, teal and heather: equal in lightness
   (OKLCH L 0.59 light, 0.69 dark; low chroma), each at least 3:1 against the panel, and hues kept
   clear of the sage panel and of the DCA blue, so the blue stays the only saturated colour. The
   composed-turn band is a pale tint of the DCA blue's own hue (263deg), set in OKLCH rather than
   mixed into the sage panel, which would turn it grey-teal. Figure 3 instead takes the evals page's
   per-problem colours (warm grey baseline, site green), set further down. Every colour is a theme token or a mix of them,
   so the light and dark themes both work. Each figure has a wide layout and a narrow one for phones. */
.dca-art {
  --dca-fill: #477be8;
  --dca-ink: #2459c4;
  --dca-halo: #c8d8fb;
  --dca-base: color-mix(in srgb, var(--muted) 72%, var(--paper));
  --dca-m1: #9c724f;   /* MiniMax M2.5: ochre,   oklch(.59 .073 60)  3.3:1 on the panel */
  --dca-m2: #428a85;   /* DeepSeek v3.2: teal,   oklch(.59 .073 189) 3.2:1 */
  --dca-m3: #8c6f99;   /* GPT-5.2: heather,      oklch(.58 .071 315) 3.4:1 */
  --dca-band: #c8d5ef; /* oklch(.872 .038 263): the DCA blue, pale */
  --dca-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
}
@media screen {
  html[data-theme="dark"] .dca-art {
    --dca-fill: #6593f5;
    --dca-ink: #9abaff;
    --dca-halo: #263e6b;
    --dca-base: color-mix(in srgb, var(--muted) 70%, var(--paper));
    --dca-m1: #b99375;   /* oklch(.69 .062 60)  5.5:1 on the panel */
    --dca-m2: #6da8a4;   /* oklch(.69 .062 190) 5.7:1 */
    --dca-m3: #aa90b6;   /* oklch(.69 .062 315) 5.4:1 */
    --dca-band: #2d3c57; /* oklch(.355 .052 263) */
  }
}

.dca-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dca-svg--narrow { display: none; }
@media (max-width: 640px) {
  .dca-svg--wide { display: none; }
  .dca-svg--narrow { display: block; max-width: 420px; margin-inline: auto; }
}

/* Type: the site's sans for words, at fixed sizes in the drawing's own units. */
.dca-svg text { font-family: var(--dca-sans); fill: var(--muted-text); stroke: none; }
.dca-tick { font-size: 12px; font-variant-numeric: tabular-nums; }
.dca-tick--small { font-size: 10px; }
.dca-axis-label { font-size: 13px; }
.dca-chart-title { font-size: 22px; letter-spacing: -0.02em; fill: var(--ink) !important; }
.dca-chart-title--narrow { font-size: 13.5px; }
.dca-big { font-size: 28px; letter-spacing: -0.03em; fill: var(--dca-ink) !important; }
.dca-panel-title { font-size: 20px; letter-spacing: -0.02em; fill: var(--ink) !important; }
.dca-panel-sub { font-size: 13px; }
.dca-caps { font-size: 11px; letter-spacing: 0.1em; font-weight: 500; }
.dca-num { letter-spacing: 0; font-size: 12px; }
.dca-model-name { font-size: 13px; fill: var(--ink) !important; }
.dca-note { font-size: 12.5px; font-style: italic; }
.dca-note--dca { fill: var(--dca-ink) !important; }
.dca-point-name { font-size: 15px; font-weight: 500; fill: var(--ink) !important; }
.dca-point-name--dca { font-size: 22px; letter-spacing: -0.02em; fill: var(--dca-ink) !important; }
.dca-point-value { font-size: 13px; }
.dca-badge-text { font-size: 15px; font-weight: 500; fill: var(--dca-ink) !important; }

/* Marks */
.dca-grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 5; }
.dca-axis { stroke: var(--rule); stroke-width: 1.2; }
.dca-rule { stroke: var(--rule); stroke-width: 1; }
.dca-panel { fill: var(--cream); stroke: var(--rule); stroke-width: 1; }
.dca-cell { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; }
.dca-m1 { fill: var(--dca-m1); }
.dca-m2 { fill: var(--dca-m2); }
.dca-m3 { fill: var(--dca-m3); }
/* Figure 1: the DCA panel, its composed-turn bands, the drops into the output and the model-count pips */
.dca-panel--dca { stroke: color-mix(in srgb, var(--dca-fill) 55%, var(--rule)); }
.dca-title-dca { fill: var(--dca-ink); }
.dca-band { fill: var(--dca-band); }
.dca-num--hot { fill: var(--dca-ink) !important; font-weight: 600; }
.dca-drop { stroke: var(--rule); stroke-width: 1.4; }
.dca-drop--hot { stroke: var(--dca-fill); stroke-width: 2; }
.dca-out-ring { fill: none; stroke: var(--dca-fill); stroke-width: 2; }
.dca-pip { fill: none; stroke: var(--rule); stroke-width: 1.2; }
.dca-pip--on { fill: var(--muted); stroke: var(--muted); }
.dca-pip--hot { fill: var(--dca-fill); stroke: var(--dca-fill); }
.dca-bar-base { fill: var(--dca-base); }
.dca-bar-dca { fill: var(--dca-fill); }
.dca-mean { stroke-width: 1.3; stroke-dasharray: 5 4; }
.dca-mean--base { stroke: var(--muted); }
.dca-mean--dca { stroke: var(--dca-ink); }
.dca-effort-line { stroke: var(--muted); stroke-width: 1.7; fill: none; }
.dca-marker { fill: var(--paper); stroke: var(--muted); stroke-width: 2; }
.dca-marker--dca { fill: var(--dca-fill); stroke: var(--dca-ink); stroke-width: 2.2; }
.dca-halo { fill: var(--dca-halo); opacity: 0.7; }
.dca-arrow { stroke: var(--dca-fill); stroke-width: 2.4; stroke-dasharray: 5 5; fill: none; }
.dca-arrow + .dca-arrow { stroke-dasharray: none; }
.dca-badge { fill: var(--dca-halo); opacity: 0.85; }

/* Legend, under each figure */
.dca-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-top: 18px;
  font: 400 12px/1.4 var(--dca-sans);
  color: var(--muted-text);
}
.dca-key { display: inline-flex; align-items: center; gap: 8px; }
.dca-key::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 2px; background: var(--dca-base); }
.dca-key--m1::before { background: var(--dca-m1); }
.dca-key--m2::before { background: var(--dca-m2); }
.dca-key--m3::before { background: var(--dca-m3); }
.dca-key--m1::before, .dca-key--m2::before, .dca-key--m3::before { border-radius: 50%; width: 11px; height: 11px; }
.dca-key--band::before { width: 12px; height: 16px; border-radius: 4px; background: var(--dca-band); box-shadow: inset 0 0 0 1.5px var(--dca-fill); }
.dca-key--dca::before { background: var(--dca-fill); border-radius: 50%; }
.dca-art--problems .dca-key--dca::before { border-radius: 2px; }
.dca-key--gpt::before { background: var(--paper); border: 2px solid var(--muted); width: 10px; height: 10px; }
.dca-key--mean::before { width: 22px; height: 0; border-radius: 0; background: none; border-top: 1.5px dashed var(--muted); }

/* Figure 3 (the 89 problems) in the evals page's per-problem colours (evals-insights.20261013.css):
   the deck's warm grey baseline against the site green, solid hairline grid, 13px ticks, so this
   chart and the evals page's "Insight 03" read alike. */
.dca-art.dca-art--problems {
  --dca-fill: #3e7052;          /* Test Time Cognition: the site green (--ins-ttc) */
  --dca-ink: #3e644c;           /* --ins-ttc-ink */
  --dca-base: #c2bcaf;          /* the warm grey baseline (--ins-base) */
  --dca-base-dot: #8f8778;      /* the same grey, darker, for its mean line (--ins-base-dot) */
  --dca-grid: #d3dbcf;          /* --ins-grid */
}
@media screen {
  html[data-theme="dark"] .dca-art.dca-art--problems {
    --dca-fill: #75b68c;
    --dca-ink: #94cda7;
    --dca-base: #6e6a62;
    --dca-base-dot: #a39f95;
    --dca-grid: #2d2d2a;
  }
}
.dca-art--problems .dca-grid { stroke: var(--dca-grid); stroke-dasharray: none; }
.dca-art--problems .dca-axis { stroke: var(--muted-text); stroke-width: 1; opacity: .7; }
.dca-art--problems .dca-tick { font-size: 13px; }
.dca-art--problems .dca-tick--small { font-size: 10px; }
.dca-art--problems .dca-big { fill: var(--dca-fill) !important; letter-spacing: -0.045em; }
.dca-art--problems .dca-mean { stroke-width: 1.3; stroke-dasharray: 5 5; }
.dca-art--problems .dca-mean--base { stroke: var(--dca-base-dot); }
.dca-art--problems .dca-mean--dca { stroke: var(--dca-ink); }
.dca-art--problems .dca-legend { gap: 8px 22px; font-size: 13px; }
.dca-art--problems .dca-key::before { width: 14px; height: 14px; border-radius: 2px; }
.dca-art--problems .dca-key--mean::before { width: 22px; height: 0; border-radius: 0; border-top: 1.5px dashed var(--dca-base-dot); }

/* Figure 3 breaks out wider than the 960px figures on large screens: 89 problems in two panels
   need the room for the per-problem differences to read. Below 1040px it falls back to the
   shared breakout widths. */
@media (min-width: 1040px) {
  .dca-figure.dca-figure--wide { width: min(1240px, calc(100vw - 80px)); }
  .dca-figure--wide .dca-art--problems .dca-legend { font-size: 14px; }
}
/* The fixed margin drawings stop 20px short of the wider figure, as they do beside the 960px ones. */
body:has(.dca-figure--wide) .continuity-margin { width: clamp(0px, calc((100vw - 1280px) / 2), 320px); }

@media print {
  .dca-art { break-inside: avoid; }
}

/* The article around the figures: the takeaways, the two tables and the layer stack. */
.dca-article .dca-figure figcaption { font-size: 0.62rem; color: var(--muted-text); max-width: 760px; margin-inline: auto; }
/* Takeaways: one vertical bar on the column edge instead of a rule above and below. */
.dca-article .pullquote.dca-takeaway { margin: 2.25rem 0; padding: 0.1rem 0 0.1rem 1.25rem; border: 0; border-left: 2px solid var(--ink); background: transparent; }
.dca-article .pullquote.dca-takeaway p { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.35rem); font-style: normal; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); }
/* Heading scale: section titles stay at the site's display weight (400); the smaller headings
   step up to 500 so they still read as headings next to 17px body text. Spacing is one ladder:
   section break 4.25rem, subsection break 3rem, heading to text under 1rem. */
.dca-article > section > h2 { margin-bottom: 1.25rem; }
.dca-article > section > h3 { margin-top: 2.5rem; margin-bottom: 0.6rem; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.article-body.dca-article > section > .section-label { margin-top: 3rem; margin-bottom: 0.6rem; color: var(--accent-text); }
.dca-article .dca-subhead { margin-top: 0; margin-bottom: 0.9rem; font-size: clamp(1.3rem, 2.4vw, 1.45rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
/* The benchmark note under the evaluation title: plain text on the column, no box or rules. */
.dca-article .dca-setup { color: var(--muted-text); }
/* Figures keep the rule that opens them; the caption closes them, so no rule underneath. */
.dca-article .dca-figure { border-bottom: 0; padding-bottom: 0; }
.dca-article .dca-table { margin: 1.25rem 0 2rem; }
.dca-article .dca-table thead th { color: var(--muted-text); }
.dca-article .dca-table thead th.dca-col-voaige { color: var(--accent-text); }
.dca-article .dca-table tbody th { text-align: left; font-weight: 500; color: var(--ink); padding: 12px 8px; vertical-align: middle; }
.dca-article .dca-table tbody td { color: var(--muted-text); }
.dca-article .dca-table--numbers td { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink); }
/* The three layers: plain rows, with the middle one inverted so test-time cognition reads as the subject. */
.dca-article .dca-stack { margin: 1rem 0 1.25rem; }
.dca-article .dca-stack .stack-layer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 15px 22px; border-left: none; }
.dca-article .dca-stack strong { font-weight: 500; color: var(--ink); }
.dca-article .dca-stack-detail { color: var(--muted-text); text-transform: none; letter-spacing: 0.03em; }
body[data-design] .dca-article .dca-stack .stack-layer.active {
  padding-block: 20px; border-left: none; border-bottom-color: transparent;
  background: var(--reading-panel); color: var(--reading-panel-ink);
}
.dca-article .dca-stack .stack-layer.active strong { color: var(--reading-panel-ink); }
.dca-article .dca-stack .stack-layer.active .dca-stack-detail { color: var(--reading-panel-muted); }
@media screen {
  html[data-theme="dark"] body[data-design] .dca-article .dca-stack .stack-layer.active { background: var(--ink); }
  html[data-theme="dark"] .dca-article .dca-stack .stack-layer.active strong { color: var(--paper); }
  html[data-theme="dark"] .dca-article .dca-stack .stack-layer.active .dca-stack-detail { color: var(--rule); }
}
.dca-article .dca-after-stack { font-size: 0.92rem; color: var(--muted-text); }
.dca-article .dca-closing { font-size: 1.15rem; }
.dca-article > section + section > h2 { margin-top: 4.25rem; }
