/* The Still: the accessibility page (review/access). Loads after still.css and builds on its
   tokens, grid and motion hooks. Platform features, each with a fallback: same-document view
   transitions, scroll-driven animations, the Popover API with anchor positioning, @starting-style,
   @property, container queries, :has() and SVG colour matrix filters.
   Motion only runs under html.motion, which still.js sets when the visitor allows motion.
   Dark colours come only from :root[data-theme="dark"] in still.css. */

@property --sweep { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --vc { syntax: '<integer>'; inherits: true; initial-value: 63; }
@property --vf { syntax: '<number>'; inherits: true; initial-value: 1; }

/* ---------- reading progress: a hairline scale that fills with the scroll ---------- */
.ax-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; display: none; }
.ax-progress span { display: block; height: 100%; background: var(--t-floor); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .motion .ax-progress { display: block; }
  .motion .ax-progress span { animation: ax-grow linear both; animation-timeline: scroll(root block); }
}
@keyframes ax-grow { to { transform: scaleX(1); } }

/* the shared menu marks the page you're on (page-level until the system adopts it); #93B4F0 measures 8.7:1 on the menu's ink */
#menu a[aria-current] { text-decoration: underline; text-decoration-color: #93B4F0; text-decoration-thickness: .05em; text-underline-offset: .14em; }

/* ---------- open items for the preview (never ship) ---------- */
mark.tbd { overflow-wrap: anywhere; background: #FFE58A; color: #12161A; padding: .02em .22em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.note { border: 2px solid #8A6D00; background: #FFF6D1; color: #12161A; padding: .75rem 1rem; margin: 1rem 0 0; font-size: 1rem; line-height: 1.45; max-width: 44em; }
.note::before { content: "Open item"; display: block; font: 500 .8125rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; color: #6B5400; }
.ax-note { grid-column: 1 / -1; }

/* captions on this page keep the 18 px body minimum */
.ax-hero .cap, .ax-lab .cap, .ax-nectar .cap { font-size: 1.125rem; }

/* ---------- glossary: the Popover API, placed with anchor positioning ---------- */
.ax-term { max-width: 100%; white-space: normal; font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: help; text-align: inherit; text-decoration: underline dotted; text-decoration-color: var(--t-floor); text-decoration-thickness: 2px; text-underline-offset: .22em; border-radius: 2px; transition: background .25s; }
.ax-term:hover { text-decoration-style: solid; }
.ax-term:has(+ .ax-def:popover-open) { background: color-mix(in srgb, var(--t-floor) 16%, transparent); text-decoration-style: solid; }
.ax-def { position: fixed; inset: auto; margin: 0; width: min(25rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 16px 18px 14px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.5 var(--sans); letter-spacing: 0; text-transform: none; text-align: left; box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .45); }
.ax-def-t { display: block; font: 400 1.6rem/1.1 var(--serif); letter-spacing: -.01em; margin-bottom: 8px; }
.ax-def-b { display: block; }
.ax-def-x { display: inline-flex; align-items: center; margin-top: 12px; min-height: 36px; padding: 0 12px; font: 500 var(--t-ui) var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--ink); cursor: pointer; }
.ax-def-x:hover { background: var(--ink); color: var(--paper); }
@supports (position-area: bottom) {
  .ax-def { position-area: bottom span-right; margin-top: 10px; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; }
}
@supports not (position-area: bottom) {
  .ax-def { inset: 0; margin: auto; height: fit-content; }
}
.motion .ax-def { opacity: 0; translate: 0 8px; transition: opacity .3s var(--ease-out), translate .5s var(--ease-expo), overlay .5s allow-discrete, display .5s allow-discrete; }
.motion .ax-def:popover-open { opacity: 1; translate: 0 0; }
@starting-style { .motion .ax-def:popover-open { opacity: 0; translate: 0 8px; } }

/* long words such as "accessibility" break only when they can't fit a line by themselves */
main :is(h1, h2, h3, h4), .ax-drift-cap, .ax-proof-list p { overflow-wrap: break-word; }

/* ---------- 03.1 hero ---------- */
.ax-hero { padding-top: clamp(32px, 5vw, 80px); padding-bottom: 0; }
.ax-hero h1 { grid-column: 1 / -1; margin-bottom: clamp(28px, 4vw, 64px); }
.ax-intro { grid-column: 1 / -1; display: grid; gap: 24px; align-content: start; }
.ax-proof { grid-column: 1 / -1; margin-top: 44px; border: 1px solid var(--ink); background: var(--paper); padding: 16px 20px 14px; }
@media (min-width: 900px) {
  .ax-intro { grid-column: 1 / span 6; }
  .ax-proof { grid-column: 8 / span 5; margin-top: 6px; }
}
.ax-proof-h { margin: 0 0 6px; text-wrap: pretty; }
.ax-proof-list { list-style: none; margin: 0; padding: 0; }
.ax-proof-list li { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 14px; align-items: baseline; border-top: 1px solid var(--hair); padding-block: 12px; }
.ax-proof-list .pf { font: 400 2.5rem/1 var(--disp); letter-spacing: -.035em; color: var(--t-floor); }
.ax-proof-list p { margin: 0; font-size: 1.125rem; line-height: 1.45; }
.ax-proof > .co { margin: 4px 0 0; border-top: 1px solid var(--ink); padding-top: 10px; }

/* contrast chart: the palette measured live, on a logarithmic scale */
.ax-chart { margin: clamp(56px, 8vw, 128px) 0 0; border-top: 1px solid var(--ink); padding-top: 14px; container: chart / inline-size; }
.ax-chart-cap { display: grid; gap: 8px; margin-bottom: 20px; }
.ax-chart-t { margin: 0; font: 400 var(--t-h3)/1.1 var(--serif); letter-spacing: -.01em; max-width: 24em; text-wrap: balance; }
.ax-chart-cap .co { margin: 0; max-width: 58em; }
.ax-plot { position: relative; --lw: 13.5rem; --vw: 6rem; padding-top: 48px; }
.ax-axis { position: absolute; top: 0; bottom: 0; left: var(--lw); right: var(--vw); pointer-events: none; }
.ax-axis .tk { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 100%); border-left: 1px solid var(--grat); }
.ax-axis .tk b { position: absolute; top: 0; left: 0; translate: -50% 0; padding: 0 4px 3px; background: var(--paper); font: 400 .8125rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--soft); white-space: nowrap; }
.ax-axis .tk:first-child b { translate: 0 0; }
.ax-axis .tk:last-child b { translate: -100% 0; }
.ax-axis .thr { border-left-color: var(--hair); }
.ax-axis .thr i { position: absolute; top: 19px; left: 6px; padding: 0 3px 2px; background: var(--paper); font: 500 .75rem/1 var(--sans); font-style: normal; letter-spacing: .07em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.ax-axis .thr-aa { border-left: 2px solid var(--ink); margin-left: -1px; }
.ax-axis .thr-aa b, .ax-axis .thr-aa i { color: var(--ink); font-weight: 500; }
.ax-grp { position: relative; z-index: 1; width: fit-content; margin: 16px 0 4px; padding-right: 8px; background: var(--paper); font: 500 var(--t-ui)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.ax-rows { position: relative; list-style: none; margin: 0; padding: 0; }
.ax-rows li { position: relative; display: grid; grid-template-columns: var(--lw) minmax(0, 1fr) var(--vw); align-items: center; min-height: 36px; transition: background .25s; }
.ax-rows li + li { border-top: 1px solid var(--hair-2); }
.ax-rows li:hover { background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.ax-rows .nm { font-size: 1rem; line-height: 1.25; padding-right: 12px; }
.ax-rows .bar { position: relative; height: 2px; }
.ax-rows .bar::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--x) * 100%); background: var(--ink); transform-origin: 0 50%; transform: scaleX(calc(min(var(--x), var(--sweep)) / max(var(--x), .001))); }
.ax-rows .chip { position: absolute; top: 50%; left: calc(var(--x) * 100%); translate: -50% -50%; min-width: 34px; height: 24px; padding: 0 6px; display: grid; place-items: center; font: 500 .8125rem/1 var(--sans); background: var(--cb); color: var(--cf); border: 1px solid var(--hair); opacity: clamp(0, (var(--sweep) - var(--x) + .015) * 45, 1); }
.ax-rows .val { text-align: right; font: 400 1rem/1 var(--sans); font-variant-numeric: tabular-nums; opacity: clamp(0, (var(--sweep) - var(--x) + .015) * 45, 1); }
.ax-rows li.fail .val { color: var(--t-work); font-weight: 500; }
.ax-plot::after { content: ""; position: absolute; top: 40px; bottom: 0; left: calc(var(--lw) + (100% - var(--lw) - var(--vw)) * var(--sweep)); width: 2px; margin-left: -1px; background: var(--t-floor); opacity: clamp(0, (1 - var(--sweep)) * 14, 1); pointer-events: none; }
.motion .ax-chart:not(.in) .ax-plot { --sweep: 0; }
.motion .ax-chart.in .ax-plot { --sweep: 1; transition: --sweep 2.6s var(--ease-io) .35s; }
@container chart (width < 640px) {
  .ax-plot { --lw: 0px; --vw: 0px; }
  .ax-rows li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm val" "bar bar"; row-gap: 12px; padding-block: 9px 13px; }
  .ax-rows .nm { grid-area: nm; } .ax-rows .val { grid-area: val; } .ax-rows .bar { grid-area: bar; }
  .ax-axis .tk-minor b, .ax-axis .thr:not(.thr-aa) i { display: none; }
  .ax-plot::after { top: 44px; }
}

/* the four numbers of Level AA, drifting on the scroll */
.ax-drift { padding-block: clamp(64px, 9vw, 150px) clamp(8px, 2vw, 24px); }
.ax-drift .fig { white-space: nowrap; margin: 0; max-width: none; }
.ax-drift-cap { margin: 22px 0 0; max-width: 42em; font-size: var(--t-lead); line-height: 1.38; }
@media (max-width: 899px) { .ax-drift .fig span { display: block; } .ax-drift .fig .sep { display: none; } }

/* ---------- 03.2 the lab ---------- */
.ax-lab h2 { grid-column: 1 / -1; margin-bottom: clamp(20px, 3vw, 40px); }
.ax-lab-intro { grid-column: 1 / -1; font-size: var(--t-lead); line-height: 1.38; max-width: 34em; margin-bottom: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .ax-lab h2 { grid-column: 1 / span 9; } .ax-lab-intro { grid-column: 1 / span 8; } }
.ax-labgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--gap); align-items: start; }
@media (min-width: 900px) {
  .ax-labgrid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 32px; }
  .ax-modes { grid-column: 1 / span 4; position: sticky; top: calc(var(--head) + 20px); }
  .ax-stage, .ax-notes { grid-column: 5 / span 8; }
}

/* the views: real radio buttons, so the lab works without JavaScript through :has() */
.ax-modes { border: 0; margin: 0; padding: 0; min-width: 0; }
.ax-modes > legend { padding: 0; margin-bottom: 14px; }
/* columns sized in ems, so bigger text drops the views to one column before any word runs out of room */
.ax-mg { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5em), 1fr)); gap: 6px; }
.ax-mg > legend { padding: 0; margin-bottom: 8px; font: 400 .9375rem/1.4 var(--sans); color: var(--soft); }
.ax-mg-first { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ax-mg { grid-template-columns: minmax(0, 1fr); } }
.ax-opt { position: relative; display: grid; align-content: center; gap: 1px; min-height: 56px; padding: 8px 12px 8px 42px; border: 1px solid var(--hair); background: var(--paper); cursor: pointer; transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s; }
.ax-opt:hover { border-color: var(--ink); }
.ax-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ax-opt::before { content: ""; position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; translate: 0 -50%; border: 1.5px solid currentColor; border-radius: 50%; }
.ax-opt .t { font: 500 1.0625rem/1.25 var(--sans); overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.ax-opt .d { font-size: .9375rem; line-height: 1.3; color: var(--soft); overflow-wrap: anywhere; }
.ax-opt:has(:checked) { background: var(--floor); border-color: var(--floor); color: var(--on-floor); }
.ax-opt:has(:checked)::before { background: radial-gradient(circle, currentColor 0 4px, transparent 4.5px); }
.ax-opt:has(:checked) .d { color: color-mix(in srgb, var(--on-floor) 86%, transparent); }
.ax-opt:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; z-index: 1; }

/* the stage: a 24 px graticule, the sample and the transcript */
.ax-stage { position: relative; container: stage / inline-size; border: 1px solid var(--ink); padding: 46px clamp(12px, 3vw, 40px) 22px; background-color: var(--paper); background-image: linear-gradient(var(--grat) 1px, transparent 1px), linear-gradient(90deg, var(--grat) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.ax-stage-lab { position: absolute; top: 12px; left: 14px; right: 14px; margin: 0; display: flex; gap: 8px; }
.ax-stage-lab b { font-weight: 500; color: var(--ink); }
.ax-labgrid:not(.js) .ax-stage-lab { visibility: hidden; }
.ax-stage-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@container stage (width >= 760px) { .ax-labgrid:is([data-mode="reader"], :not(.js):has([value="reader"]:checked)) .ax-stage-in { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); } }
.ax-specfig { margin: 0 auto; width: 100%; max-width: 400px; }
.ax-specfig .cap { max-width: none; }
.ax-specfig .cap .co { margin-top: 8px; }

/* the sample: sized in ems, so the text zoom view reflows it through em-based container queries */
.ax-spec { position: relative; container: spec / inline-size; font-size: 1rem; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.ax-spec-in { background: var(--paper); }
.sp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5em .75em; padding: .7em 1em; border-bottom: 1px solid var(--ink); }
.sp-tools { display: flex; align-items: center; gap: .4em; margin-left: auto; }
/* the logo keeps its pixel size in every view, as it does on the real header */
.ax-spec .brand { --bm: 24px; padding-block: 6px; margin-block: -6px; }
.ax-spec .theme-btn { min-height: 40px; min-width: 40px; font-size: .8125em; border-color: var(--hair); }
.ax-spec .theme-btn .t-lab { display: none; }
.ax-spec .menu-btn { display: inline-block; min-height: 40px; font-size: .8125em; }
.sp-body { padding: 1.1em 1em 1.25em; }
.ax-spec .sh { margin-bottom: .9em; padding-top: .5em; }
.ax-spec .sh .r { display: inline; text-align: right; }
.ax-spec .num { font-size: 1.6em; }
.ax-spec .lab { font-size: .8125em; }
.ax-spec .co { font-size: .875em; }
.sp-h { margin: 0 0 .6em; font: 400 1.75em/1.03 var(--serif); letter-spacing: -.015em; overflow-wrap: break-word; hyphens: auto; }
.sp-h a { text-decoration-thickness: .055em; text-underline-offset: .14em; }
.sp-img { margin: 0 0 .85em; }
.sp-img .ph { aspect-ratio: 3 / 2; }
.sp-p { margin: 0 0 .35em; font-size: 1.125em; line-height: 1.45; }
.sp-co { margin: 0 0 1em; }
.sp-cta { margin: 0 0 1.3em; }
.ax-spec .btn { font-size: 1em; min-height: 48px; max-width: 100%; text-align: left; }
.sp-key { border-top: 1px solid var(--hair); padding-top: .8em; }
.sp-key .lab { margin: 0 0 .55em; }
.sp-key ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4em 1em; }
.sp-key li { display: inline-flex; align-items: center; gap: .45em; font-size: 1em; line-height: 1.4; }
.sp-key .sw { width: 1em; height: 1em; flex: none; background: var(--c); }
@container spec (width < 17em) {
  .ax-spec .sh { flex-wrap: wrap; row-gap: .2em; }
  .ax-spec .sh .r { flex-basis: 100%; text-align: left; }
  .sp-key ul { flex-direction: column; }
}

/* each view: the same rule answers the JavaScript state and, without it, the checked radio */
.ax-labgrid:is([data-mode="protan"], :not(.js):has([value="protan"]:checked)) .ax-spec-in { filter: url(#cvd-protan); }
.ax-labgrid:is([data-mode="deutan"], :not(.js):has([value="deutan"]:checked)) .ax-spec-in { filter: url(#cvd-deutan); }
.ax-labgrid:is([data-mode="tritan"], :not(.js):has([value="tritan"]:checked)) .ax-spec-in { filter: url(#cvd-tritan); }
.ax-labgrid:is([data-mode="achroma"], :not(.js):has([value="achroma"]:checked)) .ax-spec-in { filter: url(#cvd-achroma); }
.ax-labgrid:is([data-mode="blur"], :not(.js):has([value="blur"]:checked)) .ax-spec-in { filter: blur(2.6px); }
.ax-labgrid:is([data-mode="zoom"], :not(.js):has([value="zoom"]:checked)) .ax-spec { font-size: 2rem; overflow-wrap: anywhere; }
.ax-labgrid:is([data-mode="contrast"], :not(.js):has([value="contrast"]:checked)) .ax-spec { --paper: #000; --paper-2: #000; --paper-3: #000; --ink: #FFF; --soft: #FFF; --hair: #FFF; --hair-2: #FFF; --t-floor: #FF0; --focus: #0FF; background: #000; color: #FFF; border-color: #FFF; }
.ax-labgrid:is([data-mode="contrast"], :not(.js):has([value="contrast"]:checked)) .ax-spec a { color: #FF0; }
.ax-labgrid:is([data-mode="contrast"], :not(.js):has([value="contrast"]:checked)) .ax-spec :is(.theme-btn, .menu-btn) { color: #FFF; background: #000; border: 1px solid #FFF; }
.ax-labgrid:is([data-mode="contrast"], :not(.js):has([value="contrast"]:checked)) .ax-spec .btn { color: #FF0; background: #000; border-color: #FF0; }
.ax-labgrid:is([data-mode="contrast"], :not(.js):has([value="contrast"]:checked)) .ax-spec .sw { background: #000; border: 1px solid #FFF; }
.ax-labgrid:is([data-mode="contrast"], :not(.js):has([value="contrast"]:checked)) .ax-spec .brand img { filter: invert(1); }

/* keyboard view: numbered stops in tab order (CSS counters), a path between them drawn by access.js */
/* the reset sits inside the sample, because its container query adds style containment, which hides counters set on the container itself */
.ax-labgrid:is([data-mode="keys"], :not(.js):has([value="keys"]:checked)) .ax-spec-in { counter-reset: stop; }
.ax-labgrid:is([data-mode="keys"], :not(.js):has([value="keys"]:checked)) .ax-spec :is(a[href], button) { position: relative; outline: 2px dashed var(--t-floor); outline-offset: 3px; }
.ax-labgrid:is([data-mode="keys"], :not(.js):has([value="keys"]:checked)) .ax-spec :is(a[href], button):focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.ax-labgrid:is([data-mode="keys"], :not(.js):has([value="keys"]:checked)) .ax-spec :is(a[href], button)::after { counter-increment: stop; content: counter(stop); content: counter(stop) / ""; position: absolute; left: -14px; top: -14px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--t-floor); color: var(--paper); font: 500 13px/1 var(--disp); letter-spacing: 0; text-transform: none; text-decoration: none; }
.ax-keys { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; display: none; }
.ax-labgrid[data-mode="keys"] .ax-keys { display: block; }
.ax-keys path { fill: none; stroke: var(--t-floor); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 1 0; }
.motion .ax-keys.draw path { stroke-dasharray: 1; animation: ax-draw 1.3s var(--ease-io) .15s both; }
@keyframes ax-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* screen reader view: the transcript, and a cursor like VoiceOver's */
.ax-sr { display: none; min-width: 0; }
.ax-labgrid:is([data-mode="reader"], :not(.js):has([value="reader"]:checked)) .ax-sr { display: block; }
.ax-sr-h { margin: 0 0 10px; }
.ax-srlist { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair); counter-reset: sr; }
.ax-srlist li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 8px; padding: 7px 10px 8px 8px; border-top: 1px solid var(--hair); counter-increment: sr; background: var(--paper); transition: background .25s, color .25s; }
.ax-srlist li::before { content: counter(sr, decimal-leading-zero); content: counter(sr, decimal-leading-zero) / ""; grid-row: 1 / span 2; font: 400 .8125rem/1.7 var(--sans); font-variant-numeric: tabular-nums; color: var(--soft); }
.ax-srlist .r { font: 500 .75rem/1.5 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--soft); }
.ax-srlist .nm { font-size: 1.0625rem; line-height: 1.35; overflow-wrap: anywhere; }
.ax-srlist li.on { background: var(--ink); color: var(--paper); }
.ax-srlist li.on .r, .ax-srlist li.on::before { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.motion .ax-srlist li { transition: background .25s, color .25s, opacity .5s var(--ease-out), translate .6s var(--ease-expo); transition-delay: 0s, 0s, calc(var(--i, 0) * 28ms), calc(var(--i, 0) * 28ms); }
@starting-style { .motion .ax-srlist li { opacity: 0; translate: 0 8px; } }
.ax-srctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ax-srctl[hidden] { display: none; }
.ax-mini { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 500 .9375rem/1 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); cursor: pointer; }
.ax-mini:hover { background: var(--ink); color: var(--paper); }
.ax-mini[hidden] { display: none; }
.ax-srnow { flex-basis: 100%; margin: 4px 0 0; }
.ax-cursor { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 4; pointer-events: none; opacity: 0; border: 3px solid #12161A; border-radius: 5px; box-shadow: 0 0 0 2px #FFF, inset 0 0 0 1px #FFF; }
.ax-labgrid[data-mode="reader"] .ax-cursor.on { opacity: 1; }
.motion .ax-cursor { transition: left .5s var(--ease-expo), top .5s var(--ease-expo), width .5s var(--ease-expo), height .5s var(--ease-expo), opacity .3s; }

/* notes: one per view, announced through the live region */
/* every note shares one grid cell, so the area keeps the height of the longest and the page never jumps */
.ax-notes { display: grid; }
.ax-notes p { grid-area: 1 / 1; visibility: hidden; margin: 0; font-size: var(--t-lead); line-height: 1.38; max-width: 34em; }
.ax-labgrid:is([data-mode="standard"], :not(.js):has([value="standard"]:checked)) [data-note="standard"],
.ax-labgrid:is([data-mode="protan"], :not(.js):has([value="protan"]:checked)) [data-note="protan"],
.ax-labgrid:is([data-mode="deutan"], :not(.js):has([value="deutan"]:checked)) [data-note="deutan"],
.ax-labgrid:is([data-mode="tritan"], :not(.js):has([value="tritan"]:checked)) [data-note="tritan"],
.ax-labgrid:is([data-mode="achroma"], :not(.js):has([value="achroma"]:checked)) [data-note="achroma"],
.ax-labgrid:is([data-mode="blur"], :not(.js):has([value="blur"]:checked)) [data-note="blur"],
.ax-labgrid:is([data-mode="zoom"], :not(.js):has([value="zoom"]:checked)) [data-note="zoom"],
.ax-labgrid:is([data-mode="contrast"], :not(.js):has([value="contrast"]:checked)) [data-note="contrast"],
.ax-labgrid:is([data-mode="keys"], :not(.js):has([value="keys"]:checked)) [data-note="keys"],
.ax-labgrid:is([data-mode="reader"], :not(.js):has([value="reader"]:checked)) [data-note="reader"] { visibility: visible; }

/* same-document view transitions: only the named parts move, and the page itself stays put */
:root.vt-part { view-transition-name: none; }
:root.vt-part .site-head { view-transition-name: none; }
:root.vt-lab .ax-spec { view-transition-name: ax-spec; }
:root.vt-lab .ax-notes { view-transition-name: ax-notes; }
:root.vt-lab .ax-sr { view-transition-name: ax-sr; }
:root.vt-lab .ax-stage-lab { view-transition-name: ax-stage-lab; }
::view-transition-group(ax-spec) { animation-duration: .75s; animation-timing-function: var(--ease-expo); }
::view-transition-old(ax-spec) { animation: ax-vt-out .45s var(--ease-io) both; }
::view-transition-new(ax-spec) { animation: ax-vt-wipe .8s var(--ease-io) both; }
::view-transition-group(ax-notes), ::view-transition-group(ax-sr), ::view-transition-group(ax-stage-lab) { animation-duration: .5s; }
@keyframes ax-vt-out { to { opacity: 0; scale: .985; } }
@keyframes ax-vt-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- 03.3 Nectar ---------- */
.ax-cs-top { padding-block: clamp(64px, 9vw, 160px) clamp(24px, 4vw, 64px); }
.ax-nectar h2 { grid-column: 1 / -1; margin-bottom: clamp(24px, 3.5vw, 48px); }
.ax-cs-lead { grid-column: 1 / -1; }
.ax-facts { grid-column: 1 / -1; margin: 28px 0 0; border-top: 1px solid var(--ink); }
/* each value sits beside its label, and drops below it when large text leaves too little room */
.ax-facts div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 4px; padding-block: 11px; border-bottom: 1px solid var(--hair); }
.ax-facts dt { flex: 0 0 7rem; margin: 0; }
.ax-facts dd { flex: 1 1 12em; min-width: 0; margin: 0; font-size: 1.125rem; line-height: 1.45; overflow-wrap: break-word; }
.ax-cs-top .ax-note { margin-top: 20px; }
@media (min-width: 900px) {
  .ax-nectar h2 { grid-column: 1 / span 10; }
  .ax-cs-lead { grid-column: 1 / span 6; }
  .ax-facts { grid-column: 8 / span 5; grid-row: span 2; margin-top: 6px; }
  .ax-cs-top .ax-note { grid-column: 1 / span 6; }
}
.ax-cs-hero { margin-top: clamp(48px, 7vw, 112px); }
.ax-cs-hero .ph { aspect-ratio: 16 / 9; }
@supports (animation-timeline: view()) {
  .motion .ax-cs-hero .ph { animation: ax-window linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  .motion .ax-cs-hero img { animation: ax-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
}
@keyframes ax-window { from { clip-path: inset(9% 16% 9% 16%); } to { clip-path: inset(0 0 0 0); } }
@keyframes ax-settle { from { scale: 1.14; } to { scale: 1; } }

.ax-part { padding-block: clamp(48px, 6vw, 104px) 0; }
.ax-part .grid { border-top: 1px solid var(--ink); padding-top: 12px; }
.ax-part-n { grid-column: 1 / -1; margin: 0 0 18px; font: 400 1.9rem/1 var(--disp); letter-spacing: -.01em; }
.ax-part-h { grid-column: 1 / -1; margin: 0 0 clamp(20px, 3vw, 36px); font: 400 var(--t-h2)/1 var(--serif); letter-spacing: -.018em; }
.ax-part-body { grid-column: 1 / -1; }
.ax-part-body p { font-size: var(--t-lead); line-height: 1.38; max-width: 30em; }
@media (min-width: 900px) {
  .ax-part-h { grid-column: 1 / span 6; }
  .ax-part-body { grid-column: 7 / span 6; padding-top: .6em; }
}

.ax-step { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-columns: subgrid; margin-top: clamp(56px, 8vw, 128px); }
.ax-step-n { grid-column: 1 / -1; margin: 0 0 12px; }
.ax-step-h { grid-column: 1 / -1; margin: 0 0 20px; font: 400 clamp(1.9rem, 1.1rem + 2vw, 3.4rem)/1.04 var(--serif); letter-spacing: -.015em; }
.ax-step-body { grid-column: 1 / -1; }
.ax-step-body p { max-width: 34em; }
.ax-step-fig { grid-column: 1 / -1; margin-top: clamp(24px, 3vw, 40px); }
.ax-step-fig .ph { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .ax-step-n { grid-column: 1 / span 3; grid-row: 1 / span 2; padding-top: 1.1em; }
  .ax-step-h { grid-column: 4 / span 8; }
  .ax-step-body { grid-column: 4 / span 7; }
  .ax-step-fig { grid-column: 4 / span 9; }
}

/* the consolidation: 63 tiles gather into 12 */
.ax-cons { grid-column: 1 / -1; container: cons / inline-size; margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); padding-top: 16px; --vc: 63; --vf: 1; counter-reset: vc var(--vc); }
.ax-cons:is([data-state="12"], :not(.js):has(input[value="12"]:checked)) { --vc: 12; --vf: .190476; }
.motion .ax-cons { transition: --vc 1.25s var(--ease-io) .1s, --vf 1.25s var(--ease-io) .1s; }
.ax-cons-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 20px; }
.ax-cons-ctl { border: 0; margin: 0; padding: 0; min-width: 0; }
.ax-cons-ctl legend { padding: 0; margin-bottom: 12px; }
.ax-seg { position: relative; display: inline-flex; align-items: center; min-height: 52px; margin: 0 6px 6px 0; padding: 0 20px; border: 1px solid var(--ink); font: 500 1.0625rem/1.2 var(--sans); cursor: pointer; transition: background .3s var(--ease-out), color .3s var(--ease-out); }
.ax-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ax-seg:has(:checked) { background: var(--ink); color: var(--paper); }
.ax-seg:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; z-index: 1; }
.ax-cons-read { text-align: right; }
.ax-cons-fig { margin: 0; max-width: none; font: 400 var(--t-fig)/.82 var(--disp); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--t-floor); }
.ax-cons-fig .n::after { content: counter(vc); }
.ax-cons-unit { margin: 10px 0 0; }
.ax-cons-field { position: relative; aspect-ratio: 9 / 4.4; --cols: 9; border-block: 1px solid var(--hair); background-color: var(--paper); background-image: linear-gradient(90deg, var(--grat) 1px, transparent 1px); background-size: calc(100% / var(--cols)) 100%; }
.ax-cons:is([data-state="12"], :not(.js):has(input[value="12"]:checked)) .ax-cons-field { background-size: calc(100% / 6) 100%; }
.v { --tw: calc(var(--w) * 100cqi / var(--cols)); position: absolute; left: var(--x9); top: var(--y9); width: var(--tw); height: calc(var(--h) * 100cqi / var(--cols)); translate: -50% -50%; display: flex; align-items: center; justify-content: center; gap: calc(var(--tw) * .08); padding-inline: calc(var(--tw) * .12); border: var(--sw) solid transparent; border-radius: var(--r); color: var(--t-access); }
.v i { display: block; flex: none; width: calc(var(--bl) * var(--tw)); height: 14%; min-height: 2px; border-radius: 1px; background: currentColor; }
.v.i::before { content: ""; flex: none; height: 34%; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.v.f { flex-direction: row-reverse; }
.v.k0 { background: var(--t-access); background: oklch(from var(--t-access) calc(l + var(--dl)) c h); color: var(--paper); }
.v.k1 { background: var(--ink); background: oklch(from var(--ink) calc(l + var(--dl)) c h); color: var(--paper); }
.v.k2 { background: color-mix(in oklab, var(--t-access) 16%, var(--paper)); color: var(--t-access); color: oklch(from var(--t-access) calc(l + var(--dl)) c h); }
.v.k3 { border-color: var(--t-access); border-color: oklch(from var(--t-access) calc(l + var(--dl)) c h); color: var(--t-access); }
.v.k4 { border-color: var(--ink); color: var(--ink); }
.v.k5 { color: var(--t-access); color: oklch(from var(--t-access) calc(l + var(--dl)) c h); }
.v.k5 i { box-shadow: 0 .35em 0 -.1em currentColor; }
.v.lead::after { content: counter(vn, decimal-leading-zero); counter-reset: vn var(--n); position: absolute; top: calc(100% + 9px); left: 50%; translate: -50% 0; font: 400 .8125rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--soft); opacity: 0; transition: opacity .4s; }
.ax-cons:is([data-state="12"], :not(.js):has(input[value="12"]:checked)) .v { --dl: 0 !important; --bl: .46 !important; --tw: 12.5cqi; left: var(--gxw); top: var(--gyw); height: 4.6cqi; border-radius: 4px; border-width: 1.5px; flex-direction: row; }
.ax-cons:is([data-state="12"], :not(.js):has(input[value="12"]:checked)) .v:not(.lead) { opacity: 0; scale: .6; }
.ax-cons:is([data-state="12"], :not(.js):has(input[value="12"]:checked)) .v.lead { z-index: 1; }
.ax-cons:is([data-state="12"], :not(.js):has(input[value="12"]:checked)) .v.lead::after { opacity: 1; transition-delay: .7s; }
.g0 { --gxw: 8.333%; --gyw: 34%; --gxn: 16.667%; --gyn: 13%; }
.g1 { --gxw: 25%; --gyw: 34%; --gxn: 50%; --gyn: 13%; }
.g2 { --gxw: 41.667%; --gyw: 34%; --gxn: 83.333%; --gyn: 13%; }
.g3 { --gxw: 58.333%; --gyw: 34%; --gxn: 16.667%; --gyn: 37%; }
.g4 { --gxw: 75%; --gyw: 34%; --gxn: 50%; --gyn: 37%; }
.g5 { --gxw: 91.667%; --gyw: 34%; --gxn: 83.333%; --gyn: 37%; }
.g6 { --gxw: 8.333%; --gyw: 64%; --gxn: 16.667%; --gyn: 61%; }
.g7 { --gxw: 25%; --gyw: 64%; --gxn: 50%; --gyn: 61%; }
.g8 { --gxw: 41.667%; --gyw: 64%; --gxn: 83.333%; --gyn: 61%; }
.g9 { --gxw: 58.333%; --gyw: 64%; --gxn: 16.667%; --gyn: 85%; }
.g10 { --gxw: 75%; --gyw: 64%; --gxn: 50%; --gyn: 85%; }
.g11 { --gxw: 91.667%; --gyw: 64%; --gxn: 83.333%; --gyn: 85%; }
@container cons (width < 600px) {
  .ax-cons-field { aspect-ratio: 1 / 1.08; --cols: 7; }
  .ax-cons:is([data-state="12"], :not(.js):has(input[value="12"]:checked)) .ax-cons-field { background-size: calc(100% / 3) 100%; }
  .v { left: var(--x7); top: var(--y7); }
  .ax-cons:is([data-state="12"], :not(.js):has(input[value="12"]:checked)) .v { --tw: 25cqi; left: var(--gxn); top: var(--gyn); height: 9cqi; }
  .ax-cons-top { align-items: flex-start; }
  .ax-cons-read { text-align: left; }
}
/* CSS transitions carry the change where view transitions are missing; access.js turns them off when it uses one */
.motion .ax-cons:not(.vt-ok) .v { transition: left 1.1s var(--ease-io), top 1.1s var(--ease-io), width 1.1s var(--ease-io), height 1.1s var(--ease-io), opacity .9s var(--ease-out), scale 1.1s var(--ease-io), border-radius .8s; }
:root.vt-cons .ax-cons .v { view-transition-name: var(--vtn); }
:root.vt-cons::view-transition-group(*) { animation-duration: 1.15s; animation-timing-function: cubic-bezier(.72, 0, .18, 1); }
:root.vt-cons::view-transition-old(*) { animation-duration: 1.15s; animation-timing-function: cubic-bezier(.9, 0, 1, 1); }
:root.vt-cons::view-transition-new(*) { animation-duration: .9s; }
.ax-cons-scale { position: relative; height: 40px; margin-top: 14px; border-bottom: 1px solid var(--ink); background-image: linear-gradient(90deg, var(--ink) 1px, transparent 1px); background-size: calc(100% * 10 / 63) 7px; background-repeat: repeat-x; background-position: 0 100%; }
.ax-cons-scale .fill { position: absolute; left: 0; bottom: 0; width: 100%; height: 9px; background: var(--t-floor); transform-origin: 0 50%; transform: scaleX(var(--vf)); }
.ax-cons-scale span:not(.fill) { position: absolute; bottom: 16px; font: 400 .8125rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--soft); }
.ax-cons-scale .t0 { left: 0; }
.ax-cons-scale .t12 { left: 19.0476%; translate: -50% 0; }
.ax-cons-scale .t63 { right: 0; }
.ax-cons > .cap { margin-top: 12px; }

/* what changed: sticky floor panels stacked over one another */
.ax-stack > .ax-sp .wrap { display: flex; flex-direction: column; min-height: 100%; padding-block: clamp(40px, 6vw, 96px); }
.ax-sp .sh { margin-bottom: 0; }
.ax-sp-h { margin: 0; font: 500 var(--t-ui)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--on-floor) 80%, transparent); }
.ax-sp-grid { flex: 1; align-content: end; row-gap: 24px; padding-top: clamp(40px, 8vh, 96px); }
.ax-sp-fig { grid-column: 1 / -1; margin: 0; max-width: none; font-size: min(clamp(5rem, 1rem + 17vw, 17.5rem), 29vw); line-height: .8; font-variant-numeric: proportional-nums; }
.ax-sp-t { grid-column: 1 / -1; margin: 0; max-width: 22em; font-size: var(--t-lead); line-height: 1.36; }
.ax-sp-t p { margin: 0 0 20px; }
@media (min-width: 900px) {
  .ax-sp-fig { grid-column: 1 / span 8; }
  .ax-sp-t { grid-column: 9 / span 4; }
}
.ax-arrowfig { display: inline-flex; align-items: baseline; gap: .08em; }
.ax-arrowfig .from { opacity: .62; text-decoration: line-through; text-decoration-thickness: .035em; }
.ax-arrowfig .ar { font-size: .55em; }
.ax-half { letter-spacing: -.02em; }
.ax-about { display: inline-block; margin-right: .25em; font: 500 max(.9rem, .1em)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; vertical-align: top; }
.ax-sp-img { margin: 0; max-width: 26rem; }
.ax-sp-img .ph { aspect-ratio: 16 / 9; }
.ax-sp-big { grid-column: 1 / -1; margin: 0; max-width: 16em; font: 400 var(--t-h2)/1.02 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.ax-sp-dash { grid-column: 1 / -1; margin: 0; }
.ax-sp-dash .ph { aspect-ratio: 16 / 9; }
.ax-sp-last .ax-note { margin-top: 0; }
@media (min-width: 900px) {
  .ax-sp-big { grid-column: 1 / span 6; align-self: center; }
  .ax-sp-dash { grid-column: 7 / span 6; }
  .ax-sp-last .ax-note { grid-column: 7 / span 6; }
}
.ax-stack > .ax-sp + .ax-sp { box-shadow: 0 -30px 60px -34px rgba(0, 0, 0, .45); }
@supports (animation-timeline: view()) and (timeline-scope: --a) {
  .motion .ax-stack { timeline-scope: --axs2, --axs3, --axs4; }
  .motion .ax-sp:nth-child(2) { view-timeline-name: --axs2; }
  .motion .ax-sp:nth-child(3) { view-timeline-name: --axs3; }
  .motion .ax-sp:nth-child(4) { view-timeline-name: --axs4; }
  .motion .ax-sp:nth-child(1) > .wrap { animation: ax-recede linear both; animation-timeline: --axs2; animation-range: entry 0% entry 100%; }
  .motion .ax-sp:nth-child(2) > .wrap { animation: ax-recede linear both; animation-timeline: --axs3; animation-range: entry 0% entry 100%; }
  .motion .ax-sp:nth-child(3) > .wrap { animation: ax-recede linear both; animation-timeline: --axs4; animation-range: entry 0% entry 100%; }
}
@keyframes ax-recede { to { scale: .92; translate: 0 -6vh; } }

/* ---------- 03.4 checks ---------- */
.ax-checks h2 { grid-column: 1 / -1; margin-bottom: clamp(20px, 3vw, 40px); }
.ax-checks-intro { grid-column: 1 / -1; }
.ax-run { grid-column: 1 / -1; display: grid; gap: 20px; align-content: start; margin: 8px 0 32px; }
@media (min-width: 900px) {
  .ax-checks h2 { grid-column: 1 / span 9; }
  .ax-checks-intro { grid-column: 1 / span 6; }
  .ax-run { grid-column: 8 / span 5; grid-row: 3; margin-top: 4px; }
}
.ax-runbtn { justify-self: start; min-height: 60px; padding-inline: 26px; font-size: 1.125rem; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ax-runbtn:hover { background: var(--t-floor); border-color: var(--t-floor); color: var(--paper); }
.ax-runbtn[hidden] { display: none; }
.ax-nojs { margin: 0; }
.ax-sum:empty { display: none; }
.ax-sum { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 18px; }
.ax-sum p:last-child { flex: 1 1 12em; min-width: 0; overflow-wrap: break-word; }
.ax-sum .fig { font-size: clamp(3.6rem, 2rem + 5vw, 7rem); color: var(--t-floor); line-height: .85; max-width: none; margin: 0; }
.ax-sum p { margin: 0; }
.ax-ledger { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); container: ledger / inline-size; }
.ax-ledger li { display: grid; grid-template-columns: 3rem 9rem minmax(0, 1fr) 10rem; column-gap: 20px; row-gap: 6px; padding-block: 16px; border-bottom: 1px solid var(--hair); align-items: baseline; }
.ax-ledger .n { grid-row: 1 / span 2; font: 400 1.5rem/1 var(--disp); font-variant-numeric: tabular-nums; }
.ax-ledger .k { grid-row: 1 / span 2; }
.ax-ledger .w { grid-column: 3; margin: 0; font-size: 1.125rem; color: var(--soft); max-width: 40em; }
.ax-ledger .f { grid-column: 3; margin: 0; font-size: 1.125rem; max-width: 40em; }
.ax-ledger .f:empty { display: none; }
.ax-ledger .s { grid-column: 4; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; gap: 8px; font: 500 var(--t-ui)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.ax-ledger .s svg { width: 22px; height: 22px; flex: none; }
.ax-ledger .s .dr { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ax-ledger li.pass .s { color: var(--ink); }
.ax-ledger li.warn .s { color: var(--t-work); }
.ax-ledger li.warn .f { color: var(--t-work); }
.motion .ax-ledger .f { transition: opacity .6s var(--ease-out), translate .8s var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
@starting-style { .motion .ax-ledger .f { opacity: 0; translate: 0 10px; } }
.motion .ax-ledger .s .dr { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ax-draw .7s var(--ease-io) both; animation-delay: calc(var(--i, 0) * 80ms + 150ms); }
@container ledger (width < 720px) {
  .ax-ledger li { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .ax-ledger .n { grid-row: 1; }
  .ax-ledger .k { grid-column: 2; grid-row: 1; }
  .ax-ledger .s { grid-column: 3; }
  .ax-ledger .w, .ax-ledger .f { grid-column: 1 / -1; }
}
.ax-det { margin-top: 10px; interpolate-size: allow-keywords; }
.ax-det summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; font: 500 1rem/1.3 var(--sans); text-decoration: underline; text-decoration-color: var(--t-floor); text-decoration-thickness: 2px; text-underline-offset: .22em; list-style: none; }
.ax-det summary::-webkit-details-marker { display: none; }
.ax-det summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: -45deg; transition: rotate .3s var(--ease-out); }
.ax-det[open] summary::before { rotate: 45deg; }
.ax-det::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-io), content-visibility .45s allow-discrete; }
.ax-det[open]::details-content { block-size: auto; }
.ax-det ol, .ax-det ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: 1rem; line-height: 1.45; }
.ax-det li { display: block; padding: 5px 0; border-top: 1px solid var(--hair-2); }
.ax-det .lv { display: inline-block; min-width: 2.2em; margin-right: 8px; font: 500 .75rem/1.6 var(--sans); letter-spacing: .06em; color: var(--soft); }
.ax-xray { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ax-xray[hidden] { display: none; }
.ax-xray .btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* the x-ray: headings and landmarks named where they sit on the page */
html.x-heads [data-x-h] { position: relative; outline: 1px dashed var(--t-floor); outline-offset: 5px; }
html.x-heads [data-x-h]::before { content: attr(data-x-h); content: attr(data-x-h) / ""; position: absolute; left: 0; bottom: 100%; z-index: 6; margin-bottom: 7px; padding: 3px 6px; font: 500 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: none; text-decoration: none; background: var(--t-floor); color: var(--paper); white-space: nowrap; }
html.x-marks [data-x-lm] { outline: 3px solid var(--t-floor); outline-offset: -3px; }
html.x-marks main[data-x-lm], html.x-marks section[data-x-lm], html.x-marks nav[data-x-lm] { position: relative; }
html.x-marks [data-x-lm]::after { content: attr(data-x-lm); content: attr(data-x-lm) / ""; position: absolute; left: 3px; top: 3px; z-index: 6; padding: 3px 7px; font: 500 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: none; background: var(--t-floor); color: var(--paper); white-space: nowrap; pointer-events: none; }

/* ---------- 03.5 practice: the line fills as each stage reaches the middle of the screen ---------- */
.ax-practice h2 { grid-column: 1 / -1; margin-bottom: clamp(20px, 3vw, 40px); }
.ax-practice-lead { grid-column: 1 / -1; margin-bottom: clamp(48px, 7vw, 112px); }
@media (min-width: 900px) { .ax-practice h2 { grid-column: 1 / span 10; } .ax-practice-lead { grid-column: 1 / span 7; } }
.ax-tlwrap { grid-column: 1 / -1; position: relative; }
.ax-tl { list-style: none; margin: 0; padding: 0; }
.ax-tl-line { position: absolute; top: 12px; bottom: 0; left: 11px; width: 2px; background: var(--hair); }
.ax-tl-fill { position: absolute; inset: 0; background: var(--t-floor); transform-origin: 50% 0; }
.ax-tl-i { position: relative; padding: 0 0 clamp(44px, 6vw, 96px) 52px; }
.ax-tl-i:last-child { padding-bottom: 0; }
.ax-dot { position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--t-floor); background: var(--t-floor); box-shadow: 0 0 0 6px var(--paper); }
.ax-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--paper); }
.ax-tl-k { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.ax-tl-k .num { color: var(--t-floor); }
.ax-tl-i h3 { margin: 0 0 14px; max-width: 20em; }
.ax-tl-i > p:last-child { max-width: 36em; margin: 0; }
@media (min-width: 900px) {
  .ax-tl-line { left: 50%; margin-left: -1px; }
  .ax-tl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ax-tl-i { padding: 0 clamp(40px, 5vw, 88px) clamp(28px, 3vw, 52px) 0; }
  .ax-tl-i:nth-child(odd) { grid-column: 1; }
  .ax-tl-i:nth-child(even) { grid-column: 2; padding-left: clamp(40px, 5vw, 88px); padding-right: 0; }
  .ax-tl-i:nth-child(1) { grid-row: 1 / span 2; } .ax-tl-i:nth-child(2) { grid-row: 2 / span 2; }
  .ax-tl-i:nth-child(3) { grid-row: 3 / span 2; } .ax-tl-i:nth-child(4) { grid-row: 4 / span 2; }
  .ax-tl-i:nth-child(5) { grid-row: 5 / span 2; } .ax-tl-i:nth-child(6) { grid-row: 6 / span 2; }
  .ax-tl-i .ax-dot { left: auto; right: -12px; }
  .ax-tl-i:nth-child(even) .ax-dot { left: -12px; right: auto; }
  .ax-tl-i:last-child { padding-bottom: 0; }
}
@supports (animation-timeline: view()) {
  .motion .ax-tl-fill { animation: ax-fill linear both; animation-timeline: --ax-tl; }
  .motion .ax-tl-line { view-timeline: --ax-tl block; view-timeline-inset: 50% 50%; }
  .motion .ax-dot { animation: ax-dot linear both; animation-timeline: view(block 50% 50%); }
}
@keyframes ax-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ax-dot { from { background: var(--paper); border-color: var(--hair); } to { background: var(--t-floor); border-color: var(--t-floor); } }

/* ---------- 03.6 feedback ---------- */
.nw { white-space: nowrap; }
.ax-mail { overflow-wrap: anywhere; }
.ax-fb .wrap { padding-block: clamp(64px, 9vw, 150px); }
.ax-fb-h { grid-column: 1 / -1; margin: 0 0 clamp(28px, 4vw, 56px); font-size: var(--t-h1); line-height: .96; letter-spacing: -.022em; }
.ax-fb-body { grid-column: 1 / -1; }
.ax-fb-body p { font-size: var(--t-lead); line-height: 1.38; }
.ax-fb .btn { overflow-wrap: anywhere; }
.ax-fb mark.tbd { font-size: .8em; }
@media (min-width: 900px) { .ax-fb-h { grid-column: 1 / span 11; } .ax-fb-body { grid-column: 7 / span 6; } }

/* shared footer, page-level fixes: the email address breaks instead of running under the panel's edge (QA A11Y-02),
   and at very large text sizes on a phone the site index grid stays inside the screen */
.site-foot .f2 p { overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .site-foot .foot-row { grid-template-columns: minmax(0, 1fr); }
  .site-foot .sheetidx { max-width: 100%; }
  .site-foot .sheetidx a { overflow-wrap: anywhere; }
}

/* ---------- forced colours: data keeps its colour, and every control keeps an edge ---------- */
@media (forced-colors: active) {
  .ax-rows .chip, .sp-key .sw, mark.tbd, .note { forced-color-adjust: none; }
  .ax-rows .bar::before, .ax-cons-scale .fill, .ax-tl-fill, .ax-progress span, .v i { background: CanvasText; }
  .ax-opt { border-color: CanvasText; }
  .ax-opt:has(:checked) { outline: 3px solid Highlight; outline-offset: -3px; }
  .ax-seg:has(:checked) { outline: 3px solid Highlight; outline-offset: -3px; }
  .v { border-color: CanvasText; }
  .ax-cursor { border-color: Highlight; }
  .ax-srlist li.on { outline: 2px solid Highlight; }
  .ax-spec :is(a[href], button)::after { forced-color-adjust: none; }
}

/* each term's definition opens beside it ( CSS anchor positioning ) */
[popovertarget="d-axe"]:not(.ax-def-x) { anchor-name: --d-axe; }
#d-axe { position-anchor: --d-axe; }
[popovertarget="d-lh"]:not(.ax-def-x) { anchor-name: --d-lh; }
#d-lh { position-anchor: --d-lh; }
[popovertarget="d-wcag"]:not(.ax-def-x) { anchor-name: --d-wcag; }
#d-wcag { position-anchor: --d-wcag; }
[popovertarget="d-reflow"]:not(.ax-def-x) { anchor-name: --d-reflow; }
#d-reflow { position-anchor: --d-reflow; }
[popovertarget="d-tokens"]:not(.ax-def-x) { anchor-name: --d-tokens; }
#d-tokens { position-anchor: --d-tokens; }
[popovertarget="d-lm"]:not(.ax-def-x) { anchor-name: --d-lm; }
#d-lm { position-anchor: --d-lm; }
[popovertarget="d-vo"]:not(.ax-def-x) { anchor-name: --d-vo; }
#d-vo { position-anchor: --d-vo; }
