/* Accessibility fixes shared by every page (WCAG 2.1 AA pass, 14 Nov 2026; findings in reports/accessibility-2026-11-14.md).
   Loaded right after styles.css on every page, so these win over styles.css on equal specificity. Only existing tokens from styles.css.
   Kept apart from styles.css on purpose: several design PRs edit that file. Fold these in once they have landed. */

/* Screen-reader-only text (the quote announcer in a11y.js). */
.a11y-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* How it works, pinned on desktop: the steps that are not in focus were faded to opacity .34, which put the
   step text at 2.2:1 and the headings at 2.9:1 (measured). Dim with the text tokens instead, so the spotlight
   stays but every step reads at AA: --muted heading 10.3:1, --dim body 6.9:1 on --bg. */
.how-scene.is-pinned .how-step.is-dim { opacity: 1; }
.how-scene.is-pinned .how-step.is-dim h3 { color: var(--muted); }
.how-scene.is-pinned .how-step.is-dim p { color: var(--dim); }

/* Pause motion (a11y.js): one button pauses the hero loop and the market ticker (WCAG 2.2.2). */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused .ticker { overflow-x: auto; }
.a11y-motion { min-height: 32px; padding: 0 10px; background: rgba(10, 12, 15, .82); color: var(--muted); border: 1px solid var(--line2); border-radius: var(--r-sm); font: 500 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
/* hero-loop.css sets position: relative on every hero child but the loop and its caption; this outranks it.
   Desktop: top right of the hero, above the cut card. Phones: its own row at the right, just above the ticker. */
.hero > .a11y-motion:not(.hero-loop):not(.hero-loop-cap) { position: absolute; z-index: 2; right: var(--gut); top: 24px; }
@media (max-width: 899px) { .hero > .a11y-motion:not(.hero-loop):not(.hero-loop-cap) { position: relative; display: block; right: auto; top: auto; margin: 20px var(--gut) 12px auto; } }
.a11y-motion:hover { color: var(--text); border-color: var(--steel); }
@media (max-width: 760px) { .a11y-motion { min-height: 44px; } }
@media print { .a11y-motion { display: none !important; } }

/* Order page: the ring around the current step pulsed forever. Two pulses (4.4 s) say "you are here", then it rests
   (WCAG 2.2.2 allows motion that stops within 5 seconds). */
.ord .rail .now .rail-n::after { animation-iteration-count: 2; }

/* Market cards at 320 px (WCAG 1.4.10 reflow): the fixed 104 px card and the one-line label cut "Steel mill
   products" to "STEEL MILL PRODU…" and pushed the change ("2.2%") past the card edge. Let them wrap and grow. */
@media (max-width: 400px) {
  .mkt-card { height: auto; min-height: 104px; grid-template-columns: 1fr; }
  .mkt-l { white-space: normal; overflow: visible; text-overflow: clip; }
  .mkt-c { justify-self: start; }
}

/* Footer links on phones: 32 px tall, under the site's 44 px tap target. */
@media (max-width: 760px) { .foot-links a { min-height: 44px; } }

/* Browser text size (audit #10). Type is in rem now, so it follows the font size set in the browser. These rules
   keep big text from pushing the page sideways or being cut off. At the default 16px they change nothing (checked
   element by element against main). */
a[href^="mailto:"], .rq-steps, .rq-mail { overflow-wrap: anywhere; }   /* the long email address */
.legal-grid > * { min-width: 0; }
/* Quote ticket head: styles.css wraps it under 360 px. In em the same breakpoint is 22.5em, which is 360 px at the
   default 16 px (no change) and moves up as the browser text grows (540 px at 24 px, 720 px at 32 px). */
@media (max-width: 22.5em) { .tk-head { flex-wrap: wrap; row-gap: 6px; } }
.btn { white-space: normal; text-align: center; }
.stats, .mkt { grid-template-columns: repeat(var(--a11y-cols, 3), minmax(0, 1fr)); }
.mkt { --a11y-cols: 5; }
@media (max-width: 1020px) { .mkt { --a11y-cols: 3; } .stats { --a11y-cols: 2; } }
@media (max-width: 600px) { .mkt { --a11y-cols: 2; } }
.mkt-card { height: auto; min-height: 6.5rem; }
.mkt-l { white-space: normal; text-overflow: clip; }
.board-big { white-space: normal; }
/* Materials grid: the two links sit side by side while they fit; with big browser text they stack instead of
   being cut off. (Higher specificity than materials-grid.css, which loads after this file.) */
.mg-card .mg-links { display: flex; flex-wrap: wrap; }
.mg-card .mg-links .btn { flex: 1 1 0; min-width: min(100%, max-content); white-space: normal; overflow-wrap: anywhere; }
/* Very big text on narrow cards: break inside long words rather than cut them off. */
.mkt-card, .stock-card b { overflow-wrap: anywhere; }

/* Hero cut card (audit #13). The hint was pinned to the bottom of a fixed 168 px stage, so under the WCAG 1.4.12
   text-spacing override (paragraph spacing, wider letters) it rose into the "Ø 2.000″" label, and big browser text
   was cut off. Now the two labels and the hint sit in the flow under the bar: the hint always starts below the
   taller label, the labels stack instead of colliding, and the stage grows to fit. At default settings everything
   lands where it was: labels 122 px down, hint 7.6 px under the label line, stage 168 px tall. */
.art-stage { height: auto; min-height: 168px; padding: 122px 0 2px; }
.art-dia, .art-stock { position: static; float: left; margin-bottom: 7.6px; }
.art-stock { float: right; }
.art-hint { position: static; clear: both; }
