/*
 * Visa English points: the score calculator and its guides. Loaded after the site theme (theme.css) and built only
 * from its tokens: no colour literals here (a test checks), no inline styles anywhere (the CSP forbids them).
 * Classes start with ve- so the site theme cannot collide with them.
 *
 * The one idea: the official table comes alive with your scores. Four skill columns, three level rungs; the cells
 * you reach fill up their column, the rung all four reach is your level, and the next rung shows the exact gap.
 * The fill is the one authored motion (it rises once, column by column) and never runs under reduced motion.
 *
 *  Bar        .ve-bar > .ve-bar-in > .ve-bar-home + .ve-bar-links
 *  Hero       .ve-hero .ve-hero-h1 .ve-answer .ve-meta
 *  Calculator .ve-calc-band > .ve-calc > .ve-form (.ve-segs > .ve-seg, .ve-select, .ve-score-grid > .ve-score) + .ve-result
 *             .ve-res-status .ve-lad (tr.ve-l .is-reached .is-next, td.ve-c .is-met .is-gap, tr.ve-you) .ve-next .ve-conflict .ve-used
 *  Tables     .ve-tables .ve-periods > .ve-period > details.ve-test   .ve-tbl-wrap > table.ve-tbl (stacks on phones)
 *  Guides     .ve-head .ve-art-grid > .ve-aside (.ve-toc) + .ve-art-main (.ve-answer .ve-body .ve-key .ve-steps)
 *  Shared     .ve-cite .ve-sources > .ve-src  .ve-faq .ve-qas > .ve-qa  .ve-more  .ve-indep  .ve-off (a link to an official page)
 */

/* ---------- the tool bar under the site header ---------- */
.ve-bar { border-bottom: 1px solid var(--line); background: var(--page); }
.ve-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.ve-bar-home { display: inline-flex; align-items: center; gap: 8px; margin-left: -10px; padding: 8px 14px 8px 10px; border-radius: 999px; font-weight: 700; font-size: 15.5px; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color 150ms var(--ease); }
.ve-bar-home:hover { background: var(--wash); }
.ve-bar-home svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.ve-bar-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
@media (min-width: 1000px) { .ve-bar-links { display: flex; } }
.ve-bar-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.ve-bar-links a:hover { background: var(--wash); color: var(--ink); }
.ve-bar-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

/* ---------- shared bits ---------- */
.ve-cite { font-size: 0.66em; line-height: 1; vertical-align: 0.42em; margin-left: 3px; white-space: nowrap; }
.ve-cite a { padding: 0.1em 0.5em; border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-mid); color: var(--accent-deep); font-weight: 800; text-decoration: none; transition: background-color 150ms var(--ease); }
.ve-cite a + a { margin-left: 3px; }
.ve-cite a:hover, .ve-cite a:focus-visible { background: var(--accent-mid); }
.ve-off { overflow-wrap: anywhere; font-weight: 600; text-decoration-color: var(--accent); }
.ve-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 18px; }
.ve-meta span { display: inline-flex; align-items: center; gap: 7px; }
.ve-meta svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ve-meta a { color: var(--ink-2); font-weight: 600; }
.ve-answer { color: var(--ink); font-size: clamp(18.5px, 2vw, 21px); line-height: 1.5; font-weight: 500; text-wrap: pretty; max-width: 40em; }
.ve-answer strong { font-weight: 800; }
.ve-indep { margin-top: 28px; max-width: 46em; }

/* ---------- hero ---------- */
.ve-hero { padding-top: clamp(36px, 5.5vw, 72px); padding-bottom: clamp(20px, 3vw, 36px); }
.ve-meta .tag { font-size: 13px; padding: 4px 11px; }
.ve-hero-h1 { max-width: 12.5em; font-size: clamp(36px, 9.6vw, 84px); }
.ve-hero-answer { margin-top: clamp(18px, 2.4vw, 28px); }

/* ---------- the calculator ---------- */
.ve-calc-band { padding-bottom: clamp(48px, 7vw, 96px); scroll-margin-top: 16px; }
.ve-calc { display: grid; gap: 0; }
@media (min-width: 980px) { .ve-calc { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: stretch; } }
.ve-form, .ve-result { padding: clamp(20px, 3vw, 36px); }
.ve-form { border-radius: 28px 28px 0 0; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 22px; align-content: start; }
.ve-result { border-radius: 0 0 28px 28px; background: var(--page); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); display: grid; gap: 18px; align-content: start; position: relative; }
@media (min-width: 980px) {
  .ve-form { border-radius: 28px 0 0 28px; }
  .ve-result { border-radius: 0 28px 28px 0; }
}
.ve-form-h { font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.1; }
.ve-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ve-form legend:not(.sr-only), .ve-field > label, .ve-scores-head { display: block; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15.5px; }
.ve-scores-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ve-reset { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; transition: color 150ms var(--ease), background-color 150ms var(--ease); }
.ve-reset:hover { color: var(--ink); background: var(--page); }
.ve-segs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ve-seg { position: relative; display: block; cursor: pointer; }
.ve-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ve-seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; height: 100%; padding: 8px 10px; border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--ink-2); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.ve-seg input:checked + span { background: var(--ink); color: var(--page); }
.ve-seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ve-seg:hover input:not(:checked) + span { color: var(--ink); background: var(--wash); }
.ve-select { position: relative; }
.ve-select::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.ve-select select, .ve-score select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 58px; padding: 0 52px 0 20px; border: 0; border-radius: 16px; background: var(--page); color: var(--ink); font-weight: 700; font-size: 18px; box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; transition: box-shadow 150ms var(--ease); }
.ve-select select:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.ve-select select:focus-visible, .ve-score input:focus-visible, .ve-score select:focus-visible { outline: none; box-shadow: inset 0 0 0 2.5px var(--accent), 0 0 0 5px var(--accent-mid); }
.ve-score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) and (max-width: 979px), (min-width: 1180px) { .ve-score-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ve-score { display: grid; gap: 6px; }
.ve-score label { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.ve-score input { -webkit-appearance: none; appearance: none; width: 100%; min-height: 64px; padding: 0 12px; border: 0; border-radius: 16px; background: var(--page); color: var(--ink); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; text-align: center; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow 150ms var(--ease); }
.ve-score input:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.ve-score select { min-height: 64px; padding: 0 14px; text-align: center; font-size: 20px; }
.ve-score.is-bad input, .ve-score.is-bad select { box-shadow: inset 0 0 0 2.5px var(--accent-deep); }
.ve-err { font-size: 13.5px; font-weight: 700; color: var(--accent-deep); }
.ve-private { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.ve-private svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--ok, var(--accent)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ve-nojs-note { display: none; padding: 22px 24px; border-radius: 22px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.ve-nojs-note a { color: var(--accent-deep); }

/* the result */
.ve-res-head { display: grid; gap: 6px; min-height: 5.2em; }
.ve-res-status { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink-2); }
.ve-res-status.is-done { color: var(--ink); }
.ve-res-status.is-warn { color: var(--accent-deep); }
.ve-res-level { color: var(--accent-deep); font-weight: 800; }
.ve-res-pts { font-weight: 800; color: var(--ink); background: linear-gradient(var(--accent-mid), var(--accent-mid)) 0 88% / 100% 0.36em no-repeat; }
.is-below .ve-res-level { color: var(--ink); }
.ve-res-sub { display: block; margin-top: 6px; font-size: 16.5px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.ve-res-test { font-weight: 600; }

.ve-lad-wrap { overflow-x: auto; margin-inline: -4px; }
.ve-lad { width: 100%; border-collapse: separate; border-spacing: 5px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.ve-lad thead th { padding: 0 2px 2px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-align: center; }
.ve-lad thead th:first-child { width: 31%; }
.ve-sk-short { display: none; }
@media (max-width: 520px) { .ve-lad .ve-sk-long { display: none; } .ve-lad .ve-sk-short { display: inline; } }
.ve-lad tbody th { padding: 6px 6px 6px 12px; text-align: left; vertical-align: middle; line-height: 1.2; position: relative; }
.ve-l-name { display: block; font-weight: 700; font-size: 15px; }
.ve-l-pts { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ve-c { position: relative; height: 54px; padding: 0; border-radius: 12px; background: var(--wash); text-align: center; vertical-align: middle; overflow: hidden; isolation: isolate; }
.ve-c-n { position: relative; z-index: 1; font-weight: 700; font-size: 17px; color: var(--ink-2); }
.ve-c::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--accent); clip-path: inset(100% 0 0 0); }
.ve-c.is-met::before { clip-path: inset(0 0 0 0); }
.ve-c.is-met .ve-c-n { color: var(--accent-ink); }
.ve-c.is-gap { background: var(--page); box-shadow: inset 0 0 0 2px var(--accent); }
.ve-c.is-gap .ve-c-n { color: var(--accent-deep); font-weight: 800; }
.ve-l.is-none .ve-c { height: auto; padding: 12px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); text-align: left; }
.ve-l.is-reached th::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--accent); }
.ve-l.is-reached .ve-l-name { color: var(--accent-deep); }
.ve-you th { padding-top: 10px; padding-left: 12px; font-size: 14px; font-weight: 700; }
@media (max-width: 400px) {
  .ve-form, .ve-result { padding: 20px 14px; }
  .ve-lad { border-spacing: 4px; }
  .ve-lad thead th:first-child { width: 29%; }
  .ve-l-eng { display: none; }
  .ve-l-name { font-size: 13px; letter-spacing: -0.01em; }
  .ve-l-pts { font-size: 12px; }
  .ve-c { height: 48px; border-radius: 10px; }
  .ve-c-n { font-size: 15.5px; }
  .ve-you td { font-size: 16px; }
  .ve-lad tbody th, .ve-you th { padding-left: 8px; padding-right: 2px; }
  .ve-lad thead th { font-size: 12px; }
}
.ve-you td { padding: 10px 2px 2px; text-align: center; font-weight: 800; font-size: 18px; color: var(--ink); border-top: 2px solid var(--ink); }
.ve-you td.is-err { color: var(--accent-deep); }
/* The authored moment: met cells fill up from the bottom, rung by rung, left to right. Runs once per new level. */
.ve-l[data-level="proficient"] { --ve-ld: 140ms; }
.ve-l[data-level="superior"] { --ve-ld: 280ms; }
.ve-c[data-skill="reading"] { --ve-sd: 45ms; }
.ve-c[data-skill="writing"] { --ve-sd: 90ms; }
.ve-c[data-skill="speaking"] { --ve-sd: 135ms; }
.ve-lad.is-anim .ve-c.is-met::before { animation: ve-fill 480ms var(--ease) both; animation-delay: calc(var(--ve-ld, 0ms) + var(--ve-sd, 0ms)); }
.ve-lad.is-anim .ve-c.is-met .ve-c-n { animation: ve-ink 480ms var(--ease) both; animation-delay: calc(var(--ve-ld, 0ms) + var(--ve-sd, 0ms)); }
@keyframes ve-fill { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ve-ink { from { opacity: 0.4; } to { opacity: 1; } }
.ve-res-status.is-done .ve-res-pts { animation: ve-hl 420ms var(--ease) 200ms both; }
@keyframes ve-hl { from { background-size: 0% 0.36em; } to { background-size: 100% 0.36em; } }

.ve-next { padding: 16px 18px; border-radius: 18px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-mid); }
.ve-next-h { font-weight: 800; }
.ve-next-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ve-next-list li { font-variant-numeric: tabular-nums; }
.ve-next-list strong { display: inline-block; min-width: 6.2em; }
.ve-conflict { padding: 16px 18px; border-radius: 18px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15.5px; }
.ve-conflict p + p { margin-top: 6px; }
.ve-conflict-h { font-weight: 800; }
.ve-conflict-gap { font-weight: 700; color: var(--accent-deep); }
.ve-oet { font-size: 15.5px; color: var(--ink-2); }
.ve-oet a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent); }
.ve-used { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.5; }

/* ---------- every official table ---------- */
.ve-tables { padding-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.ve-periods { display: grid; gap: 40px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 1000px) { .ve-periods { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.ve-period-h { font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; letter-spacing: -0.015em; }
.ve-period-src { margin: 8px 0 14px; }
.ve-test { border-bottom: 1px solid var(--line); }
.ve-test:first-of-type { border-top: 1.5px solid var(--ink); }
.ve-test summary { cursor: pointer; list-style: none; position: relative; display: flex; align-items: center; min-height: 60px; padding: 10px 52px 10px 0; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.ve-test summary::-webkit-details-marker { display: none; }
.ve-test summary::after { content: "+"; position: absolute; right: 2px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); font-weight: 500; font-size: 22px; line-height: 1; transition: transform 250ms var(--ease), background-color 250ms var(--ease); }
.ve-test[open] summary::after { transform: rotate(45deg); background: var(--accent-mid); }
.ve-test summary:hover .ve-test-name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ve-test .ve-tbl-wrap { margin: 0 0 18px; }

.ve-fig { margin: 22px 0 0; }
.ve-fig figcaption { padding: 0 2px 10px; }
.ve-fig .ve-tbl-wrap { margin-top: 0; }
.ve-tables-pts { margin-top: 12px; }
.ve-tbl .ve-sk-short { display: none; }
@media (max-width: 719px) { .ve-tbl .ve-sk-long { display: none; } .ve-tbl .ve-sk-short { display: inline; } }
.ve-tbl-wrap { margin-top: 18px; overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); -webkit-overflow-scrolling: touch; }
.ve-tbl { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ve-cap-l { display: block; font-weight: 800; font-size: 17px; }
.ve-cap-t { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.ve-tbl th, .ve-tbl td { padding: 11px 14px; text-align: left; vertical-align: top; }
.ve-tbl td { text-align: center; }
.ve-tbl thead th { background: var(--wash); color: var(--ink-2); font-size: 14px; font-weight: 700; }
.ve-tbl thead th:not(:first-child) { text-align: center; }
.ve-tbl tbody tr + tr > * { border-top: 1px solid var(--line); }
.ve-tbl tbody th { font-weight: 700; }
.ve-tbl tr.is-none td, .ve-tbl td.is-none { color: var(--ink-2); font-size: 14.5px; }
.ve-th-pts { display: block; font-weight: 600; font-size: 12.5px; }
.ve-sep { margin: 0 5px; color: var(--line-2); }
.ve-n { font-weight: 600; }
/* On a phone the side-by-side table (three levels) stacks into one labelled block per test. */
@media (max-width: 719px) {
  .ve-tbl { font-size: 15px; }
  .ve-tbl th, .ve-tbl td { padding: 10px 10px; }
  .ve-ladder-tbl .ve-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ve-ladder-tbl .ve-tbl tr, .ve-ladder-tbl .ve-tbl tbody th, .ve-ladder-tbl .ve-tbl td { display: block; }
  .ve-ladder-tbl .ve-tbl tbody th { padding: 14px 16px 4px; font-size: 16.5px; }
  .ve-ladder-tbl .ve-tbl td { padding: 3px 16px; text-align: left; }
  .ve-ladder-tbl .ve-tbl td:last-child { padding-bottom: 14px; }
  .ve-ladder-tbl .ve-tbl td::before { content: attr(data-label) ": "; display: inline-block; min-width: 10.5em; font-weight: 700; color: var(--ink-2); font-size: 14px; }
  .ve-ladder-tbl .ve-tbl tbody tr + tr > * { border-top: 0; }
  .ve-ladder-tbl .ve-tbl tbody tr + tr { border-top: 1px solid var(--line); }
}
@media (max-width: 400px) { .ve-tbl { font-size: 14px; } .ve-tbl th, .ve-tbl td { padding: 9px 6px; } .ve-tbl thead th { font-size: 12.5px; } .ve-tbl tbody th { font-size: 13.5px; } }

/* ---------- FAQ, method, sources, more answers ---------- */
.ve-qas { display: grid; gap: 30px 64px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .ve-qas { grid-template-columns: 1fr 1fr; } }
.ve-qa h3 { font-weight: 800; font-size: clamp(19px, 2vw, 22px); line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.ve-qa p { margin-top: 8px; color: var(--ink-2); max-width: 36em; }
.ve-qa p a { color: var(--ink); }
.ve-end-in { display: grid; gap: 40px; }
@media (min-width: 1000px) { .ve-end-in { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.ve-method { gap: 12px; }
.ve-sources h2 { font-size: 20px; font-weight: 800; }
.ve-sources > .fine { margin-top: 6px; max-width: 44em; }
.ve-src { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ve-src li { position: relative; scroll-margin-top: 100px; padding: 6px 8px 6px 44px; margin-left: -8px; border-radius: 12px; transition: background-color 300ms var(--ease); }
.ve-src-n { position: absolute; left: 8px; top: 6px; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-mid); color: var(--accent-deep); font-weight: 800; font-size: 13px; text-align: center; }
.ve-src-t { color: var(--ink); font-weight: 600; }
.ve-src li:target { background: var(--accent-soft); }
.ve-src a { color: var(--ink); overflow-wrap: anywhere; }
.ve-more { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.ve-more-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
@media (min-width: 900px) { .ve-more-list { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.ve-more-list li { border-top: 1px solid var(--line); }
.ve-more-list a { display: grid; gap: 4px; padding: 16px 0; color: var(--ink); text-decoration: none; }
.ve-more-t { justify-self: start; font-weight: 700; font-size: clamp(17.5px, 2vw, 20px); line-height: 1.3; letter-spacing: -0.012em; text-wrap: balance;
  background: linear-gradient(var(--accent-mid), var(--accent-mid)) 0 88% / 0% 0.42em no-repeat; transition: background-size 250ms var(--ease); }
.ve-more-list a:hover .ve-more-t, .ve-more-list a:focus-visible .ve-more-t { background-size: 100% 0.42em; }
.ve-more-s { color: var(--ink-2); font-size: 15.5px; }

/* ---------- guide pages ---------- */
.ve-head { padding-bottom: clamp(20px, 3vw, 32px); }
.ve-crumbs { margin-bottom: 16px; }
.ve-crumbs a { color: var(--ink-2); }
.ve-h1 { max-width: 15em; font-size: clamp(32px, 7vw, 60px); }
.ve-art-grid { display: grid; gap: 32px; padding-bottom: clamp(56px, 8vw, 104px); }
@media (min-width: 1000px) { .ve-art-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; } }
.ve-aside { display: none; }
@media (min-width: 1000px) { .ve-aside { display: block; position: sticky; top: 24px; align-self: start; } }
.ve-toc-h { font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.ve-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.ve-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: color 150ms var(--ease), border-color 150ms var(--ease); }
.ve-toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.ve-aside-cta { margin-top: 24px; }
.ve-art-main { min-width: 0; max-width: 46rem; }
.ve-art-main > .ve-answer { padding: 22px 24px; border-radius: 22px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-mid); }
.ve-art-main > .ve-answer .ve-cite a { background: var(--page); }
.ve-body h2 { font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.02em; margin: 44px 0 12px; text-wrap: balance; scroll-margin-top: 24px; }
.ve-body p + p, .ve-body p + ul, .ve-body p + ol, .ve-body ul + p, .ve-body ol + p, .ve-body .ve-tbl-wrap + p { margin-top: 14px; }
.ve-body ul { padding-left: 1.2em; }
.ve-body li + li { margin-top: 8px; }
.ve-body a { text-decoration-color: var(--accent); }
.ve-key { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.ve-steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.ve-steps li { counter-increment: st; position: relative; padding-left: 44px; min-height: 30px; }
.ve-steps li + li { margin-top: 0; }
.ve-steps li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; }
.ve-cta-line { margin-top: 36px; }
.ve-cta-line .btn { white-space: normal; text-align: center; }
.ve-art-main .ve-sources { margin-top: 44px; padding-top: 28px; border-top: 1.5px solid var(--ink); }

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .ve-lad.is-anim .ve-c.is-met::before, .ve-lad.is-anim .ve-c.is-met .ve-c-n, .ve-res-status.is-done .ve-res-pts { animation: none; }
  .ve-seg span, .ve-test summary::after, .ve-more-t, .ve-bar-home, .ve-bar-links a, .ve-toc a, .ve-cite a, .ve-src li { transition: none; }
}
@media (max-width: 360px) { .ve-tbl thead th { font-size: 11.5px; padding-inline: 3px; } .ve-tbl td { padding-inline: 3px; } .ve-tbl tbody th { padding-left: 8px; } }
@media (max-width: 360px) { .ve-lad thead th:first-child { width: 31%; } .ve-l-name { font-size: 12.5px; } .ve-lad tbody th, .ve-you th { padding-left: 7px; } }
/* Hand-written tables hold words, not scores: read them left-aligned. */
.ve-tbl-wrap.cols-2 .ve-tbl td, .ve-tbl-wrap.cols-3 .ve-tbl td, .ve-tbl-wrap.cols-2 .ve-tbl thead th, .ve-tbl-wrap.cols-3 .ve-tbl thead th { text-align: left; }
