/**
 * Article primitives (inc/templates/article-blocks.php): tables, comparison, callouts, stats, checklist,
 * steps, pros and cons, decision flow, timeline, quotes, code, glossary, figures and charts.
 * Loaded only on articles that use a block or a table. Solid colours only; sizes in px, vw and
 * clamp (legacy style.css sets html to 10px, so no rem). Print styles at the end.
 */

.v3-article { --ab-gap: clamp(28px, 2.4vw, 44px); --ab-r: clamp(14px, 1vw, 18px); }
.acma-v3 .v3-article :is(.v3-tbl, .v3-callout, .v3-stats, .v3-check, .v3-steps-ab, .v3-pc, .v3-flow, .v3-tl, .v3-quote, .v3-code, .v3-gloss, .v3-fig, .v3-chart) { margin-block: var(--ab-gap); }
.acma-v3 .v3-article :is(.v3-tbl, .v3-callout, .v3-stats, .v3-check, .v3-steps-ab, .v3-pc, .v3-flow, .v3-tl, .v3-quote, .v3-code, .v3-gloss, .v3-fig, .v3-chart) + * { margin-top: 0; }
.acma-v3 .v3-article :is(.v3-ab-title, .v3-ab-cap) { margin: 0 0 14px; font-size: clamp(17px, .25vw + 14px, 20px) !important; font-weight: 700; line-height: 1.35; color: var(--v3-ink); }
.acma-v3 .v3-article .v3-ab-src { margin-top: 10px; font-size: 14px !important; line-height: 1.5; color: var(--v3-muted); }
.acma-v3 .v3-article .v3-ab-src a { color: var(--v3-blue); text-decoration: underline; text-underline-offset: 3px; }
.v3-ab-ic { flex: none; width: 20px; height: 20px; }
.acma-v3 .v3-article :is(.v3-check__list, .v3-pc ul, .v3-flow__list, .v3-flow__opts, .v3-callout__list, .v3-chart__bars, .v3-chart__legend, .v3-chart__dlegend) { margin: 0; padding: 0; list-style: none; }
.acma-v3 .v3-article :is(.v3-steps-ab, .v3-tl) { padding: 0; list-style: none; }
.acma-v3 .v3-article :is(.v3-check__list, .v3-steps-ab, .v3-pc ul, .v3-flow__list, .v3-flow__opts, .v3-tl, .v3-callout__list, .v3-chart__bars, .v3-chart__legend, .v3-chart__dlegend) > li { display: flex; list-style: none; margin: 0; }

/* ── Tables: zebra rows, header held at the top of its own scroll box, edge shadows ── */
.v3-tbl { position: relative; }
.v3-tbl__scroll { position: relative; max-width: 100%; overflow: auto; border: 1px solid var(--v3-line); border-radius: var(--ab-r, 14px); background: #fff; overscroll-behavior-x: contain; }
.v3-tbl.is-long .v3-tbl__scroll { max-height: min(72vh, 640px); }
.v3-tbl__scroll:focus-visible { outline: 3px solid var(--v3-royal); outline-offset: 3px; }
/* Scroll cue: a soft solid shadow on the side that has more (classes set by v3-article-blocks.js). */
.v3-tbl::before, .v3-tbl::after { content: ""; position: absolute; z-index: 3; top: 1px; bottom: 1px; width: 18px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.v3-tbl::before { left: 1px; border-radius: var(--ab-r, 14px) 0 0 var(--ab-r, 14px); box-shadow: inset 14px 0 12px -12px rgba(14, 22, 34, .28); }
.v3-tbl::after { right: 1px; border-radius: 0 var(--ab-r, 14px) var(--ab-r, 14px) 0; box-shadow: inset -14px 0 12px -12px rgba(14, 22, 34, .28); }
.v3-tbl.is-more-l::before, .v3-tbl.is-more-r::after { opacity: 1; }
.v3-tbl:has(> figcaption)::before, .v3-tbl:has(> figcaption)::after { top: var(--cap-h, 40px); }
.v3-tbl:has(> .v3-ab-src)::before, .v3-tbl:has(> .v3-ab-src)::after { bottom: var(--src-h, 32px); }
.acma-v3 .v3-tbl table { width: 100%; min-width: 520px; margin: 0; border-collapse: separate; border-spacing: 0; font-size: clamp(15px, .15vw + 13px, 17px); line-height: 1.5; font-variant-numeric: tabular-nums; }
.acma-v3 .v3-tbl :is(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--v3-line); text-align: left; vertical-align: top; color: var(--v3-text); }
.acma-v3 .v3-tbl tbody th { font-weight: 600; color: var(--v3-ink); }
.acma-v3 .v3-tbl thead th, .acma-v3 .v3-tbl.is-legacy tr:first-child > th { position: sticky; top: 0; z-index: 2; background: var(--v3-navy); color: #fff; font-weight: 700; border-bottom: 0; }
.acma-v3 .v3-tbl tbody tr:nth-child(even) > * { background: var(--v3-surface); }
.acma-v3 .v3-tbl tbody tr:last-child > * { border-bottom: 0; }
.acma-v3 .v3-tbl .is-num { text-align: right; white-space: nowrap; }
.v3-tbl__lab { display: none; } /* Column name inside each cell, shown in the phone card view. */
.acma-v3 .v3-tbl a { color: var(--v3-blue); text-decoration: underline; text-underline-offset: 3px; }
.acma-v3 .v3-tbl thead a { color: #fff; }
/* The first column stays in view while a wide comparison scrolls. */
.acma-v3 .v3-tbl.is-compare :is(thead th, tbody th):first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--v3-line); }
.acma-v3 .v3-tbl.is-compare thead th:first-child { z-index: 3; background: var(--v3-navy); }
.acma-v3 .v3-tbl.is-compare tbody tr:nth-child(even) th:first-child { background: var(--v3-surface); }
.acma-v3 .v3-tbl.is-compare :is(thead th, td):not(:first-child) { text-align: center; }
.v3-cmp__mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; }
.v3-cmp__mark .v3-ab-ic { width: 16px; height: 16px; stroke-width: 2.6; }
.acma-v3 .v3-cmp__text { margin-left: 8px; font-size: 14px; font-weight: 600; vertical-align: middle; }
.v3-cmp.is-yes .v3-cmp__mark { background: var(--v3-green-text); color: #fff; }
.v3-cmp.is-no .v3-cmp__mark { background: #f3f5f8; color: var(--v3-magenta); box-shadow: inset 0 0 0 1.5px var(--v3-magenta); }
.v3-cmp.is-partial .v3-cmp__mark { background: var(--v3-warning-bg); color: var(--v3-warning); box-shadow: inset 0 0 0 1.5px var(--v3-warning); }
.acma-v3 .v3-cmp.is-yes .v3-cmp__text { color: var(--v3-green-text); }
.acma-v3 .v3-cmp.is-no .v3-cmp__text { color: var(--v3-magenta); }
.acma-v3 .v3-cmp.is-partial .v3-cmp__text { color: var(--v3-warning); }

/* ── Callouts: one colour per type ──────────────────────────────────── */
.v3-callout { --c: var(--v3-royal); --bg: color-mix(in srgb, var(--c) 6%, #fff); padding: clamp(20px, 1.8vw, 30px) clamp(20px, 2vw, 34px); border-radius: var(--ab-r); background: var(--bg); box-shadow: inset 4px 0 0 var(--c); }
.v3-callout.is-tip { --c: var(--v3-teal); }
.v3-callout.is-warning { --c: var(--v3-warning); --bg: var(--v3-warning-bg); }
.v3-callout.is-takeaway { --c: var(--v3-violet); }
.acma-v3 .v3-callout__title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: clamp(17px, .25vw + 14px, 20px) !important; font-weight: 700; line-height: 1.3; color: var(--v3-ink); }
.v3-callout__title .v3-ab-ic { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--c); color: #fff; stroke-width: 2.4; }
.acma-v3 .v3-callout__body > * + * { margin-top: .7em; }
.acma-v3 .v3-callout__body { color: var(--v3-ink); }
.acma-v3 .v3-callout__body :is(ul, ol) { padding-left: 1.2em; }
.acma-v3 .v3-callout__list { display: grid; gap: 10px; }
.acma-v3 .v3-callout__list > li { position: relative; display: block; padding-left: 26px; }
.v3-callout__list > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ── Stat cards ──────────────────────────────────────────────────────── */
.acma-v3 .v3-stats__list { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); margin: 0; }
.v3-stats.is-cols-1 { --cols: 1; } .v3-stats.is-cols-2 { --cols: 2; } .v3-stats.is-cols-3 { --cols: 3; }
.v3-stats__item { --c: var(--v3-royal); display: flex; flex-direction: column; gap: 6px; padding: clamp(18px, 1.6vw, 26px); border-radius: var(--ab-r); background: var(--v3-surface); box-shadow: inset 0 3px 0 var(--c); }
.v3-stats__item.is-violet { --c: var(--v3-violet); } .v3-stats__item.is-teal { --c: var(--v3-teal); } .v3-stats__item.is-magenta { --c: var(--v3-magenta); }
.acma-v3 .v3-stats__item dd { order: -1; margin: 0; font-size: clamp(30px, 1.3vw + 18px, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--v3-ink); }
.acma-v3 .v3-stats__item dt { font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--v3-text); }
.acma-v3 .v3-stats__item .v3-stats__src { order: 2; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--v3-muted); }
.acma-v3 .v3-stats__src a { color: var(--v3-blue); }

/* ── Checklist ───────────────────────────────────────────────────────── */
.v3-check { padding: clamp(20px, 1.8vw, 30px); border: 1px solid var(--v3-line); border-radius: var(--ab-r); }
.acma-v3 .v3-check__list { display: grid; gap: 12px; }
.acma-v3 .v3-check__list > li { gap: 12px; align-items: flex-start; }
.v3-check__list .v3-ab-ic { width: 24px; height: 24px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--v3-green-text); color: #fff; stroke-width: 3; }

/* ── Numbered steps on a spine ───────────────────────────────────────── */
.acma-v3 .v3-steps-ab { display: grid; gap: 0; counter-reset: none; }
.acma-v3 .v3-steps-ab > li { position: relative; gap: clamp(14px, 1.2vw, 20px); padding-bottom: clamp(18px, 1.6vw, 26px); }
.v3-steps-ab > li::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--v3-line); }
.v3-steps-ab > li:last-child::before { display: none; }
.acma-v3 .v3-steps-ab__n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent, var(--v3-royal)); color: #fff; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.acma-v3 .v3-steps-ab__t { margin: 7px 0 0; font-size: clamp(17px, .3vw + 14px, 21px) !important; font-weight: 700; line-height: 1.35; color: var(--v3-ink); }
.acma-v3 .v3-steps-ab__d { margin: 6px 0 0; }

/* ── Pros and cons ───────────────────────────────────────────────────── */
.v3-pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(12px, 1.2vw, 20px); }
.v3-pc__col { --c: var(--v3-green-text); padding: clamp(20px, 1.8vw, 28px); border-radius: var(--ab-r); background: var(--v3-surface); box-shadow: inset 0 3px 0 var(--c); }
.v3-pc__col.is-con { --c: var(--v3-magenta); }
.acma-v3 .v3-pc__title { margin: 0 0 12px; font-size: clamp(17px, .25vw + 14px, 20px) !important; font-weight: 700; color: var(--v3-ink); }
.acma-v3 .v3-pc ul { display: grid; gap: 10px; }
.acma-v3 .v3-pc li { gap: 10px; align-items: flex-start; }
.v3-pc .v3-ab-ic { width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--c); color: #fff; stroke-width: 3; }

/* ── Decision flow: numbered questions on a spine, answers lead to a question or an outcome ── */
.acma-v3 .v3-flow__list { display: grid; gap: 14px; }
.acma-v3 .v3-flow__node { position: relative; gap: 14px; scroll-margin-top: calc(var(--v3-head, 0px) + 32px); }
.v3-flow__node::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: -14px; width: 2px; background: var(--v3-line); }
.v3-flow__node:last-child::before { display: none; }
.acma-v3 .v3-flow__n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--v3-navy); color: #fff; font-size: 15px; font-weight: 700; }
.v3-flow__body { flex: 1; min-width: 0; padding: 14px 18px; border: 1px solid var(--v3-line); border-radius: var(--ab-r); background: #fff; transition: box-shadow .3s; }
.v3-flow__node:target .v3-flow__body { box-shadow: 0 0 0 2px var(--v3-royal); }
.acma-v3 .v3-flow__q { margin: 0 0 10px; font-weight: 700; line-height: 1.4; color: var(--v3-ink); }
.acma-v3 .v3-flow__opts { display: grid; gap: 8px; }
.acma-v3 .v3-flow__opts > li { flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92em; }
.v3-flow__opts .v3-ab-ic { width: 18px; height: 18px; color: var(--v3-muted); }
.acma-v3 .v3-flow__ans { min-width: 44px; font-weight: 700; color: var(--v3-ink); }
.acma-v3 .v3-flow__go { font-weight: 600; color: var(--v3-blue); text-decoration: underline; text-underline-offset: 3px; }
.acma-v3 .v3-flow__end { padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--v3-teal) 10%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v3-teal) 40%, #fff); font-weight: 600; color: color-mix(in srgb, var(--v3-teal) 80%, #000); }

/* ── Timeline ────────────────────────────────────────────────────────── */
/* One fixed date column for every entry (each li is its own grid), so dots and spine line up.
   ol.v3-tl outranks the shared list rule above (its :is() counts as .v3-pc ul). */
.acma-v3 .v3-tl { --tl-w: 136px; --tl-gap: clamp(14px, 1.6vw, 28px); --tl-x: calc(var(--tl-w) + var(--tl-gap)); display: grid; gap: 0; }
.acma-v3 .v3-article ol.v3-tl > li { --c: var(--v3-royal); position: relative; display: grid; grid-template-columns: var(--tl-w) minmax(0, 1fr); gap: 4px var(--tl-gap); padding: 0 0 clamp(18px, 1.6vw, 26px); }
.v3-tl > li.is-violet { --c: var(--v3-violet); } .v3-tl > li.is-teal { --c: var(--v3-teal); } .v3-tl > li.is-magenta { --c: var(--v3-magenta); }
.v3-tl__body { padding-left: 26px; }
.v3-tl > li::before { content: ""; position: absolute; left: var(--tl-x); top: 6px; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff; }
.v3-tl > li::after { content: ""; position: absolute; left: calc(var(--tl-x) + 5px); top: 12px; bottom: -6px; width: 2px; background: var(--v3-line); }
.v3-tl > li:last-child::after { display: none; }
.acma-v3 .v3-tl__when { margin: 0; padding-top: 1px; font-size: 15px !important; font-weight: 700; line-height: 1.5; color: var(--v3-muted); font-variant-numeric: tabular-nums; text-wrap: balance; }
.acma-v3 .v3-tl__t { margin: 0; font-weight: 700; line-height: 1.4; color: var(--v3-ink); }
.acma-v3 .v3-tl__d { margin: 4px 0 0; }

/* ── Quotes ──────────────────────────────────────────────────────────── */
.acma-v3 .v3-quote { margin-inline: 0; }
.acma-v3 .v3-article .v3-quote__text { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; font-style: normal; }
.acma-v3 .v3-article .v3-quote__text :is(p, em) { font-style: normal; }
.v3-quote.is-block { padding: clamp(20px, 2vw, 32px) clamp(20px, 2.4vw, 40px); border-radius: var(--ab-r); background: var(--v3-surface); box-shadow: inset 4px 0 0 var(--accent, var(--v3-royal)); }
.acma-v3 .v3-quote.is-block .v3-quote__text p { font-size: 1.06em !important; color: var(--v3-ink); }
.v3-quote.is-pull { padding-block: clamp(20px, 2vw, 32px); border-block: 3px solid var(--v3-navy); }
.acma-v3 .v3-quote.is-pull .v3-quote__text p { font-size: clamp(22px, .9vw + 16px, 34px) !important; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--v3-ink); text-wrap: balance; }
.acma-v3 .v3-quote__by { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; font-size: 15px; }
.acma-v3 .v3-quote__name { font-weight: 700; color: var(--v3-ink); }
.acma-v3 .v3-quote__role { color: var(--v3-muted); }

/* ── Code ────────────────────────────────────────────────────────────── */
.v3-code { overflow: hidden; border-radius: var(--ab-r); background: var(--v3-navy); box-shadow: 0 0 0 1px rgba(14, 22, 34, .08); }
.acma-v3 .v3-article .v3-code__bar { margin: 0; }
/* v3-base styles the homepage hero's .v3-code card (monospace, nowrap): undo it for the primitive. */
.acma-v3 .v3-article .v3-code { font: 400 15px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; white-space: normal; color: inherit; }
.acma-v3 .v3-article .v3-code__bar span { margin-left: 0; font-family: inherit; }
.v3-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 8px 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.acma-v3 .v3-code__label { flex: 1 1 auto; min-width: 0; padding-block: 10px; font-size: 14px; font-weight: 600; line-height: 1.4; color: #c9d0d9; } /* A long title wraps; the Copy button keeps its place. */
.v3-code__copy { flex: none; }
.acma-v3 .v3-code__copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font: 600 14px/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #c9d0d9; cursor: pointer; }
.v3-code__copy .v3-ab-ic { width: 16px; height: 16px; }
.acma-v3 .v3-code__copy:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .1); color: #fff; }
.acma-v3 .v3-code__copy:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.acma-v3 .v3-article .v3-code__pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; border-radius: 0; background: none; color: var(--v3-line); font: 400 14.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 4; white-space: pre; }
.acma-v3 .v3-article .v3-code__pre code { font: inherit; color: inherit; background: none; padding: 0; white-space: inherit; overflow-wrap: normal; word-break: normal; } /* Never wrapped (v3-base wraps pre code): long lines scroll. */
.acma-v3 .v3-article .v3-code__pre { overflow-wrap: normal; scrollbar-width: thin; scrollbar-color: var(--v3-muted) transparent; }
/* Scroll cue: a light edge on the side with more code (classes set by v3-article-blocks.js). */
.v3-code { position: relative; }
.v3-code::before, .v3-code::after { content: ""; position: absolute; z-index: 2; top: var(--bar-h, 47px); bottom: 0; width: 22px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.v3-code::before { left: 0; box-shadow: inset 16px 0 14px -12px rgba(201, 208, 217, .35); }
.v3-code::after { right: 0; box-shadow: inset -16px 0 14px -12px rgba(201, 208, 217, .35); }
.v3-code.is-more-l::before, .v3-code.is-more-r::after { opacity: 1; }
.v3-code__pre:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.v3-code .tk-c { color: color-mix(in srgb, var(--v3-muted) 43%, var(--v3-field-line)); font-style: italic; }
.v3-code .tk-s { color: #b5e48c; }
.v3-code .tk-n { color: #fcd34d; }
.v3-code .tk-k { color: #a9c1ff; }
.v3-code .tk-v { color: #f9a8d4; }
.v3-code .tk-a { color: #7dd3c0; }

/* ── Glossary ────────────────────────────────────────────────────────── */
.acma-v3 .v3-gloss { display: grid; margin: 0; border-top: 1px solid var(--v3-line); }
.acma-v3 .v3-gloss > div { display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr); gap: 8px clamp(16px, 2vw, 32px); padding: 14px 0; border-bottom: 1px solid var(--v3-line); }
.acma-v3 .v3-gloss dt { font-weight: 700; color: var(--v3-ink); scroll-margin-top: calc(var(--v3-head, 0px) + 32px); }
.acma-v3 .v3-gloss dd { margin: 0; }

/* ── Figure at its true size ─────────────────────────────────────────── */
.acma-v3 .v3-article .v3-fig { width: min(100%, var(--nw)); max-width: 100%; margin-inline: auto; }
.acma-v3 .v3-article .v3-fig img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); border-radius: 12px; }

/* ── Charts ──────────────────────────────────────────────────────────── */
.v3-chart { position: relative; padding: clamp(18px, 1.8vw, 30px); border: 1px solid var(--v3-line); border-radius: var(--ab-r); background: #fff; }
.acma-v3 .v3-chart__head { display: grid; gap: 4px; margin-bottom: 18px; }
.acma-v3 .v3-chart__title { font-size: clamp(17px, .25vw + 14px, 20px); font-weight: 700; line-height: 1.35; color: var(--v3-ink); }
.acma-v3 .v3-chart__note { font-size: 14px; line-height: 1.5; color: var(--v3-muted); }
.acma-v3 .v3-article .v3-chart__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -6px 0 22px; }
.acma-v3 .v3-chart__legend > li { align-items: center; gap: 8px; font-size: 14px; color: var(--v3-text); }
.v3-chart__key { flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.v3-chart__key.is-line { height: 3px; width: 16px; border-radius: 2px; }
.v3-chart :is(text) { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.v3-chart__tick { font-size: 13px; fill: var(--v3-muted); font-variant-numeric: tabular-nums; }
.v3-chart__val { font-size: 14px; font-weight: 600; fill: var(--v3-ink); font-variant-numeric: tabular-nums; }
/* Bars. */
.acma-v3 .v3-chart__bars { display: grid; gap: 10px; }
.acma-v3 .v3-article .v3-chart__bars > .v3-chart__row { display: grid; grid-template-columns: minmax(96px, 32%) minmax(0, 1fr); align-items: center; gap: 14px; }
.acma-v3 .v3-chart__label { font-size: 15px; line-height: 1.35; color: var(--v3-ink); }
.v3-chart__bar { display: block; overflow: visible; }
.v3-chart__row:hover .v3-chart__bar rect:not([fill="#fff"]) { opacity: .85; }
/* Line. */
.v3-chart.is-line .v3-chart__plot { height: clamp(220px, 22vw + 120px, 400px); padding: 8px 4px 34px 52px; }
.v3-chart__svg { display: block; overflow: visible; }
.v3-chart__grid { stroke: var(--v3-line); stroke-width: 1; shape-rendering: crispEdges; }
.v3-chart__grid.is-base { stroke: color-mix(in srgb, var(--v3-muted) 24%, var(--v3-field-line)); }
.v3-chart__line { stroke-width: 2; stroke-linecap: round; }
.v3-chart__dot { stroke: #fff; stroke-width: 2; }
.v3-chart__cross { stroke: color-mix(in srgb, var(--v3-muted) 24%, var(--v3-field-line)); stroke-width: 1; }
.v3-chart__hit { fill: transparent; }
/* Donut. */
.v3-chart__donut { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 48px); }
.v3-chart__ringbox { position: relative; }
.v3-chart__ring { display: block; width: 100%; height: auto; transform: rotate(0deg); }
.v3-chart__track { fill: none; stroke: #f3f5f8; stroke-width: 5.5; }
.v3-chart__slice { fill: none; stroke-width: 5.5; }
.v3-chart__slice:hover { stroke-width: 6.4; }
.acma-v3 .v3-chart__mid { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; text-align: center; font-size: clamp(22px, 1vw + 14px, 32px) !important; font-weight: 700; line-height: 1.1; color: var(--v3-ink); }
.acma-v3 .v3-chart__mid span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--v3-muted); }
.acma-v3 .v3-chart__dlegend { display: grid; gap: 10px; }
.acma-v3 .v3-chart__dlegend > li { align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--v3-line); font-size: 15px; }
.acma-v3 .v3-chart__dlegend > li:last-child { border-bottom: 0; padding-bottom: 0; }
.acma-v3 .v3-chart__dl { flex: 1; color: var(--v3-ink); }
.acma-v3 .v3-chart__dv { font-weight: 700; color: var(--v3-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.acma-v3 .v3-chart__dv span { margin-left: 6px; font-weight: 500; color: var(--v3-muted); }
/* Tooltip (JS) and the data table. */
.acma-v3 .v3-chart__tip { position: absolute; z-index: 5; max-width: 240px; padding: 10px 12px; border-radius: 10px; background: var(--v3-navy); color: #fff; font-size: 14px; line-height: 1.45; white-space: pre-line; pointer-events: none; box-shadow: 0 16px 30px -16px rgba(14, 22, 34, .5); }
.acma-v3 .v3-chart__tip b { font-weight: 700; }
.acma-v3 .v3-chart__data { margin-top: 14px; }
.acma-v3 .v3-chart__data summary { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 700; color: var(--v3-blue); cursor: pointer; }
.acma-v3 .v3-chart__data summary:focus-visible { outline: 3px solid var(--v3-royal); outline-offset: 3px; border-radius: 4px; }
.acma-v3 .v3-chart__data .v3-tbl { margin: 10px 0 0; }
.acma-v3 .v3-chart__data table { min-width: 0; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 639.98px) {
	.v3-stats.is-cols-3 { --cols: 1; }
	.acma-v3 .v3-stats__list { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
	.v3-stats.is-cols-3 .v3-stats__list { grid-template-columns: minmax(0, 1fr); }
	/* Card tables: each row becomes a card with the column name beside every value. */
	.acma-v3 .v3-tbl.is-cards .v3-tbl__scroll { overflow: visible; border: 0; background: none; }
	.acma-v3 .v3-tbl.is-cards table { min-width: 0; }
	.acma-v3 .v3-tbl.is-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.acma-v3 .v3-tbl.is-cards :is(tbody, tr, th, td) { display: block; }
	.acma-v3 .v3-tbl.is-cards tr { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--v3-line); border-radius: 12px; }
	.acma-v3 .v3-tbl.is-cards tbody tr:nth-child(even) > * { background: #fff; }
	.acma-v3 .v3-tbl.is-cards tbody th { padding: 12px 14px; background: var(--v3-surface) !important; }
	.acma-v3 .v3-tbl.is-cards td { padding: 10px 14px; text-align: left; white-space: normal; }
	.acma-v3 .v3-tbl.is-cards .v3-tbl__lab { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--v3-muted); }
	.acma-v3 .v3-tbl.is-cards tr > :last-child { border-bottom: 0; }
	.v3-tbl.is-cards::before, .v3-tbl.is-cards::after { display: none; }
	.acma-v3 .v3-article .v3-chart__bars > .v3-chart__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.v3-chart__donut { grid-template-columns: minmax(0, 1fr); justify-items: center; }
	.v3-chart__ringbox { width: min(220px, 70%); }
	.acma-v3 .v3-chart__dlegend { width: 100%; }
	.acma-v3 .v3-gloss > div { grid-template-columns: minmax(0, 1fr); }
	/* Timeline: date above the title, dot and spine at the left edge. */
	.acma-v3 .v3-tl { --tl-x: 0px; }
	.acma-v3 .v3-article ol.v3-tl > li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-left: 26px; }
	.v3-tl__body { padding-left: 0; }
	.acma-v3 .v3-cmp__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

html:is(.translated-ltr, .translated-rtl) .acma-v3 :is(.v3-quote.is-pull .v3-quote__text p, .v3-stats__item dd) { line-height: 1.4; letter-spacing: normal; }

@media (forced-colors: active) {
	.v3-chart__key, .v3-cmp__mark, .v3-steps-ab__n, .v3-flow__n { forced-color-adjust: none; }
}

/* ── Print: blocks as plain, complete content ────────────────────────── */
@media print {
	.v3-tbl__scroll { max-height: none !important; overflow: visible !important; }
	.v3-tbl::before, .v3-tbl::after, .v3-code::before, .v3-code::after, .v3-code__copy, .v3-chart__tip { display: none !important; }
	.acma-v3 .v3-tbl thead th { position: static; background: #fff !important; color: #000 !important; border-bottom: 2px solid #000; }
	.v3-chart__data > :not(summary) { display: block !important; }
	.v3-chart__data summary { display: none !important; }
	.v3-code { background: #fff; box-shadow: 0 0 0 1px #999; }
	.acma-v3 .v3-article .v3-code__pre { color: #000; white-space: pre-wrap; }
	.v3-code [class^="tk-"] { color: #000 !important; }
	:is(.v3-callout, .v3-stats__item, .v3-chart, .v3-code, .v3-quote, .v3-tbl tr, .v3-flow__node) { break-inside: avoid; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
