/* blog.css — the blog's own styles, published at /blog/blog.css next to the posts. BLOG-1 phase 2.
   The page around a post (header, footer, fonts, the three looks) is index.css, which ships in the
   app image; this file is only what a post adds, so a new post never waits for a ship.
   Reads index.css's tokens (--text, --text-rgb, --orange, --border, --white-10), so it follows
   Classic, New light and New dark without rules of its own, except the chart colours below. */

/* ── reading ─────────────────────────────────────────────────────────────── */
.post { margin-top: 0; }
.doc-page .post h1 { margin: 0 0 10px; }
.post-meta { margin: 0 0 28px; color: rgba(var(--text-rgb), 0.66); font-size: 15px; }
.post-tag { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.post-tag:hover, .post-tag:focus-visible { color: var(--orange); border-bottom-color: currentColor; }
.post-tags { margin: 8px 0 0; font-size: 15px; color: rgba(var(--text-rgb), 0.66); }
.post-note {
  margin: 0 0 24px; padding: 10px 14px; border-left: 3px solid var(--border);
  color: rgba(var(--text-rgb), 0.78); font-size: 15px;
}
.post-body { max-width: 66ch; line-height: 1.7; }
.post-body > * { margin: 0 0 1.1em; }
.post-body h2 { margin: 1.9em 0 0.6em; font-size: 1.4rem; line-height: 1.3; font-weight: 600; text-wrap: balance; }
.post-body h3 { margin: 1.6em 0 0.5em; font-size: 1.15rem; line-height: 1.35; font-weight: 600; }
.post-body h4 { margin: 1.4em 0 0.4em; font-size: 1rem; font-weight: 600; }
.post-body a { color: var(--orange); text-underline-offset: 2px; }
.post-body ul, .post-body ol { padding-inline-start: 1.4em; }
.post-body li { margin: 0.35em 0; }
.post-body blockquote {
  margin-inline: 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--orange);
  color: rgba(var(--text-rgb), 0.86);
}
[dir="rtl"] .post-body blockquote { border-left: 0; border-right: 3px solid var(--orange); padding: 2px 16px 2px 0; }
.post-body blockquote p { margin: 0; }
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em;
  padding: 1px 5px; border-radius: 4px; background: var(--white-10);
}
.post-body pre { overflow-x: auto; padding: 12px 14px; border-radius: 8px; background: var(--white-10); line-height: 1.5; }
.post-body pre code { padding: 0; background: none; }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.post-figure img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.post-figure figcaption, .post-chart figcaption { margin-top: 8px; font-size: 15px; color: rgba(var(--text-rgb), 0.72); }
.post-table { overflow-x: auto; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.post-body th, .post-body td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: start; }
.post-body thead th { font-weight: 600; }
.post-changelog { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 15px; }
.post-changelog a { color: var(--orange); }
.post-list .post-entry h2 { font-size: 1.25rem; }

/* ── charts (lib/blog-chart.mjs) ─────────────────────────────────────────────
   The dataviz skill's reference palette, slots 1-3 (blue, orange, aqua): the only three that
   stay apart in EVERY pair, for colour-blind readers too. Validated 2026-10-25 with the skill's
   validate_palette.js against our three surfaces, --pairs all:
     Classic  #0b1220, dark steps   PASS (worst CVD dE 9.4, normal-vision 20.9)
     New dark #0e141a, dark steps   PASS (same)
     New light #f7f8fa, light steps PASS, contrast WARN: aqua #1baf7a is 2.65:1, so the relief
       rule applies, and is met: a legend + end labels on every multi-series chart and the
       data table under every chart.
   Re-run the validator before changing a colour or adding a look. */
.post-chart { --bc-1: #3987e5; --bc-2: #d95926; --bc-3: #199e70; margin: 1.6em 0; }
html[data-look="new"][data-scheme="light"] .post-chart { --bc-1: #2a78d6; --bc-2: #eb6834; --bc-3: #1baf7a; }
.chart-title { margin: 0 0 6px; font-weight: 600; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Each chart is drawn twice (blog-chart.mjs LAYOUTS): 640 wide for a column, 360 for a phone. */
.chart-narrow { display: none; }
@media (max-width: 560px) { .chart-wide { display: none; } .chart-narrow { display: block; } }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-axis { stroke: rgba(var(--text-rgb), 0.45); stroke-width: 1; }
.chart-tick { fill: rgba(var(--text-rgb), 0.66); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-label { fill: var(--text); font-size: 13px; }
.chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line.bc-s1 { stroke: var(--bc-1); } .chart-line.bc-s2 { stroke: var(--bc-2); } .chart-line.bc-s3 { stroke: var(--bc-3); }
.chart-dot, .chart-bar { stroke: none; }
.bc-s1:is(.chart-dot, .chart-bar) { fill: var(--bc-1); }
.bc-s2:is(.chart-dot, .chart-bar) { fill: var(--bc-2); }
.bc-s3:is(.chart-dot, .chart-bar) { fill: var(--bc-3); }
.chart-hit { fill: transparent; }
.chart-hit:hover { fill: rgba(var(--text-rgb), 0.06); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 14px; }
.chart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.chart-key { width: 12px; height: 12px; border-radius: 3px; }
.chart-key.bc-s1 { background: var(--bc-1); } .chart-key.bc-s2 { background: var(--bc-2); } .chart-key.bc-s3 { background: var(--bc-3); }
.chart-summary { margin: 0; }
.chart-table { margin-top: 8px; font-size: 15px; }
.chart-table summary { cursor: pointer; color: rgba(var(--text-rgb), 0.72); }
.chart-number { padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.chart-number-value { margin: 0; font-size: 2.6rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chart-number-label { margin: 4px 0 0; font-size: 1.05rem; }
@media (forced-colors: active) {
  .chart-line { stroke: CanvasText; } .chart-bar, .chart-dot, .chart-key { fill: CanvasText; background: CanvasText; }
}
