/* Problem Solver · Signal components (B2, "Instrument").
   Shared by the homepage, /work and case studies. Load AFTER tokens/signal.css; every value comes from --ps-* tokens.
   Mobile first: base rules are the phone layout, @media (min-width) adds columns.
   All classes are prefixed .ps- so they never collide with the page CSS (a.css, blog.css, c.css). */

/* ---------- base (opt-in: add class="ps" on <body> or a wrapper) ---------- */
.ps { background: var(--ps-bg); color: var(--ps-fg); font: 400 var(--ps-step-0)/1.55 var(--ps-body); -webkit-font-smoothing: antialiased; }
.ps *, .ps *::before, .ps *::after { box-sizing: border-box; }
.ps :where(h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd) { margin: 0; }
.ps :where(h1, h2, h3) { text-wrap: balance; }
/* 1.4.4 resize text: a word wider than its line (a path, an email, a big heading at 200% text) breaks instead of
   running off the screen or under an overflow:hidden panel. Only kicks in when a word can't fit, so 100% is unchanged. */
.ps { overflow-wrap: break-word; }
.ps :where(a) { color: inherit; }
.ps :where(img) { max-width: 100%; height: auto; display: block; }
.ps { --ps-anchor-offset: var(--ps-s-4); } /* phones: nav is not sticky, anchors land 16px from the top */
@media (min-width: 900px) { .ps { --ps-anchor-offset: 88px; } } /* sticky one-row nav height + air */
.ps [id] { scroll-margin-top: var(--ps-anchor-offset); }
/* focus: Ink ring on light, Signal ring on night (token swaps); always 3px, 2px clear of the element */
.ps :focus-visible { outline: 3px solid var(--ps-focus); outline-offset: 2px; }
.ps-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ps-skip { position: absolute; left: var(--ps-gutter-l); top: -100px; z-index: 50; padding: 10px 14px; background: var(--ps-cta-bg); color: var(--ps-cta-fg); border-radius: var(--ps-r-btn); font-weight: 700; }
.ps-skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* ---------- layout ---------- */
.ps-wrap { width: 100%; max-width: calc(var(--ps-max) + var(--ps-gutter-l) + var(--ps-gutter-r)); margin-inline: auto; padding-left: var(--ps-gutter-l); padding-right: var(--ps-gutter-r); }
.ps-section { padding-block: var(--ps-section); display: flex; flex-direction: column; gap: var(--ps-s-6); }
.ps-section--night { background: var(--ps-night); color: var(--ps-night-ink); }
.ps-stack { display: flex; flex-direction: column; gap: var(--ps-s-4); min-width: 0; }
.ps-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ps-s-3); }
.ps-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ps-s-4); }
@media (min-width: 720px) { .ps-grid--2, .ps-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .ps-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ps-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ps-s-6); }
@media (min-width: 960px) { .ps-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }

/* ---------- type ---------- */
.ps-eyebrow { font: 500 var(--ps-step--1)/1.2 var(--ps-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ps-fg-soft); display: flex; align-items: center; gap: var(--ps-s-2); }
.ps-eyebrow--live::before, .ps-eyebrow--you::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ps-eyebrow--live::before { background: var(--ps-glow); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ps-glow) 35%, transparent); }
.ps-eyebrow--you::before { background: var(--ps-signal); box-shadow: 0 0 0 1.5px var(--ps-ink); }
.ps-display, .ps-h1, .ps-h2, .ps-h3 { font-family: var(--ps-display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
/* headings sit in flex/grid cells: "anywhere" also lowers their min-content width so the cell can't grow past the screen.
   No hyphen at the break: Chrome never hyphenates capitalised words, so hyphens:auto does nothing on these uppercase heads */
.ps-display, .ps-h1, .ps-h2, .ps-h3, .ps-prose h2 { overflow-wrap: anywhere; }
.ps-display { font-size: var(--ps-step-4); line-height: .88; }
.ps-h1 { font-size: var(--ps-step-3); line-height: .92; }
.ps-h2 { font-size: var(--ps-step-2); line-height: .95; }
.ps-h3 { font-size: var(--ps-step-1); line-height: 1; }
.ps-lead { font-size: var(--ps-step-1); line-height: 1.4; max-width: var(--ps-measure); color: var(--ps-fg-soft); }
.ps-mono { font-family: var(--ps-mono); }
.ps-num { font-variant-numeric: tabular-nums; }
/* long-form body (case studies, about): Markdown output goes inside .ps-prose */
.ps-prose { max-width: var(--ps-measure); display: flex; flex-direction: column; gap: var(--ps-s-4); }
.ps-prose h2 { font: 800 var(--ps-step-2)/.95 var(--ps-display); text-transform: uppercase; letter-spacing: .01em; margin-top: var(--ps-s-5); }
.ps-prose h3 { font: 700 var(--ps-step-1)/1.25 var(--ps-body); margin-top: var(--ps-s-3); }
.ps-prose a { text-decoration-color: var(--ps-line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ps-prose a:hover { text-decoration-color: currentColor; }
.ps-prose :where(ul, ol) { padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--ps-s-2); }
.ps-prose code { font: 0.92em var(--ps-mono); background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-r-tag); padding: 1px 5px; }
.ps-prose img, .ps-prose figure { border: 1px solid var(--ps-line); border-radius: var(--ps-r-card); overflow: hidden; }
.ps-prose figcaption { font: var(--ps-step--1)/1.4 var(--ps-mono); color: var(--ps-fg-soft); padding: var(--ps-s-2) var(--ps-s-3); border-top: 1px solid var(--ps-line); }

/* ---------- buttons + links ---------- */
.ps-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--ps-s-5);
  min-height: 48px; padding: 12px 14px 12px 18px; border-radius: var(--ps-r-btn);
  background: var(--ps-cta-bg); color: var(--ps-cta-fg); border: 1px solid var(--ps-cta-bg);
  font: 700 var(--ps-text-input)/1.15 var(--ps-body); text-decoration: none; text-align: left; cursor: pointer;
  transition: background var(--ps-t), border-color var(--ps-t), color var(--ps-t);
}
.ps-btn::after { content: "→"; font-family: var(--ps-mono); font-weight: 500; transition: transform var(--ps-t) var(--ps-ease); }
.ps-btn:hover::after { transform: translateX(4px); }
.ps-btn:active { transform: translateY(1px); }
.ps-btn--ghost { background: transparent; color: var(--ps-fg); border-color: var(--ps-line-strong); }
.ps-btn--ghost:hover { border-color: var(--ps-fg); }
.ps-btn--signal { background: var(--ps-signal); border-color: var(--ps-signal); color: var(--ps-ink); } /* on night only: one per view */
.ps-btn--sm { min-height: var(--ps-hit); padding: 8px 12px; font-size: var(--ps-text-ui); gap: var(--ps-s-3); }
.ps-btn--block { width: 100%; }
.ps-btn--plain::after { content: none; } /* submit buttons, menu */
.ps-link { font: 500 var(--ps-step--1)/1 var(--ps-mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-block: 6px 3px; display: inline-flex; min-height: var(--ps-hit); align-items: center; }
.ps-link:hover { color: var(--ps-accent-text); }

/* ---------- tags (status + category) ---------- */
.ps-tag { display: inline-flex; align-items: center; gap: 6px; font: 500 var(--ps-text-min)/1 var(--ps-mono); letter-spacing: .04em; padding: 5px 8px; border-radius: var(--ps-r-tag); border: 1px solid var(--ps-line); color: var(--ps-fg-soft); white-space: nowrap; }
.ps-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.ps-tag--plain::before { content: none; }
.ps-tag--live { color: var(--ps-live-text); }
.ps-tag--live::before { background: var(--ps-glow); opacity: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ps-glow) 35%, transparent); }
.ps-tag--you { color: var(--ps-accent-text); border-color: color-mix(in srgb, var(--ps-signal) 70%, var(--ps-line)); }
.ps-tag--you::before { background: var(--ps-signal); opacity: 1; box-shadow: 0 0 0 1.5px var(--ps-ink); }
.ps-tag--example { border-style: dashed; text-transform: uppercase; font-size: var(--ps-text-min); letter-spacing: .06em; padding: 3px 6px; }
.ps-tag--example::before { content: none; }
.ps-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ps-s-2); }
/* interactive tags (filters, contents): full 44px tap target; passive tags stay compact */
a.ps-tag, button.ps-tag { text-decoration: none; min-height: var(--ps-hit); min-width: var(--ps-hit); justify-content: center; padding: 0 12px; font-size: var(--ps-text-meta); cursor: pointer; background: transparent; }
a.ps-tag:hover { border-color: var(--ps-fg); color: var(--ps-fg); }
a.ps-tag[aria-current="page"] { background: var(--ps-fg); color: var(--ps-bg); border-color: var(--ps-fg); }
.ps-tags--tap { gap: var(--ps-s-2); } /* 8px between 44px targets */

/* ---------- nav ---------- */
/* phones: the nav scrolls away (its link row can wrap to 2 lines, too tall to pin); 900px+: one sticky row */
.ps-nav { position: relative; z-index: 20; padding-top: var(--ps-s-2); }
@media (min-width: 900px) { .ps-nav { position: sticky; top: env(safe-area-inset-top, 0px); } }
.ps-nav-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--ps-s-3); padding: 6px 6px 0 12px; border: 1px solid var(--ps-line); border-radius: var(--ps-r-card); background: color-mix(in srgb, var(--ps-card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* brand = B1 assets: mark-small (below 48px) + outlined wordmark; ink/paper wordmark swaps with the theme */
.ps-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: var(--ps-hit); flex: none; }
.ps-brand-mark { width: 28px; height: 28px; flex: none; }
.ps-brand-word { height: 15px; width: auto; } /* 242.6:32 → 114px wide */
.ps-brand-word--paper { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ps-brand-word--ink { display: none; } :root:not([data-theme="light"]) .ps-brand-word--paper { display: block; } }
:root[data-theme="dark"] .ps-brand-word--ink { display: none; } :root[data-theme="dark"] .ps-brand-word--paper { display: block; }
.ps-nav-cta { margin-block: 0 6px; }
@media (max-width: 359px) { /* 320px phones: keep brand + "Book a call" on one line */
  .ps-nav-bar { padding-left: 8px; }
  .ps-brand { gap: 8px; } .ps-brand-word { height: 13px; } /* 99px, still above the 120px lockup min as mark + word = 135px */
  .ps-nav-cta { padding: 8px 10px; gap: 8px; font-size: var(--ps-text-small); }
}
/* links: phone = a full-width wrapping row under the bar (same links, never hidden); 900px+ = inline in the bar */
/* markup: <nav class="ps-nav-links" aria-label="…"><ul><li><a>… */
.ps-nav-links { order: 3; flex: 1 0 100%; border-top: 1px solid var(--ps-line); margin-top: 6px; font: 500 var(--ps-text-meta)/1 var(--ps-mono); letter-spacing: .04em; text-transform: uppercase; }
.ps-nav-links ul { list-style: none; margin: 0 0 0 -8px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--ps-s-1); } /* -8px: text, not the tap box, lines up with the brand on every wrapped line */
.ps-nav-links a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: var(--ps-hit); min-width: var(--ps-hit); padding: 0 8px; border-radius: var(--ps-r-tag); }
.ps-nav-links a:hover, .ps-nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (min-width: 900px) {
  .ps-nav-bar { flex-wrap: nowrap; padding-bottom: 6px; }
  .ps-nav-cta { margin-block: 0; order: 2; } /* desktop: brand · links · CTA (= DOM and tab order) */
  .ps-nav-links { order: 1; flex: 0 1 auto; margin-left: auto; border-top: 0; margin-top: 0; font: 600 var(--ps-text-ui)/1 var(--ps-body); letter-spacing: 0; text-transform: none; }
  .ps-nav-links ul { gap: var(--ps-s-3); margin-left: 0; }
}

/* ---------- panel (the core card: header strip + body) ---------- */
.ps-panel { display: flex; flex-direction: column; min-width: 0; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-r-card); color: inherit; text-decoration: none; overflow: hidden; }
.ps-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--ps-s-1) var(--ps-s-2); padding: 9px var(--ps-s-4); border-bottom: 1px solid var(--ps-line); font: 500 var(--ps-text-min)/1.2 var(--ps-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ps-fg-soft); }
/* label shrinks (and wraps inside) down to 12ch before the right-hand item drops to its own line (enlarged text) */
.ps-panel-head > :first-child:not(:last-child) { flex: 1 1 12ch; }
.ps-panel-body { padding: var(--ps-s-4) var(--ps-s-4) var(--ps-s-5); display: flex; flex-direction: column; gap: var(--ps-s-3); flex: 1 1 auto; }
.ps-panel-body > p { color: var(--ps-fg-soft); }
.ps-panel-foot { padding: var(--ps-s-3) var(--ps-s-4); border-top: 1px solid var(--ps-line); display: flex; justify-content: space-between; align-items: center; gap: var(--ps-s-3); font: 500 var(--ps-text-meta)/1.3 var(--ps-mono); color: var(--ps-fg-soft); }
.ps-panel--lead { border-color: var(--ps-fg); box-shadow: inset 3px 0 0 var(--ps-signal); }
a.ps-panel { transition: border-color var(--ps-t); }
a.ps-panel:hover { border-color: var(--ps-fg); }
a.ps-panel:hover .ps-link { color: var(--ps-accent-text); }

/* /work tile = panel + media */
.ps-media { aspect-ratio: 16 / 10; max-width: 100%; border-bottom: 1px solid var(--ps-line); background:
    repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--ps-fg) 7%, transparent) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--ps-fg) 7%, transparent) 23px 24px), var(--ps-card);
  overflow: hidden; }
.ps-media img, .ps-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ps-ease); }
a.ps-panel:hover .ps-media img { transform: scale(1.02); }
.ps-media--wide { aspect-ratio: 21 / 9; }

/* ---------- stats (readout + gauge) ---------- */
.ps-readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-readout > div { padding: var(--ps-s-4); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ps-readout > div:nth-child(even) { border-left: 1px solid var(--ps-line); }
.ps-readout > div:nth-child(n+3) { border-top: 1px solid var(--ps-line); }
@media (min-width: 720px) {
  .ps-readout--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ps-readout--4 > div + div { border-left: 1px solid var(--ps-line); }
  .ps-readout--4 > div:nth-child(n+3) { border-top: 0; }
}
.ps-readout strong { font: 800 clamp(2.75rem, 2rem + 3vw, 4.5rem)/.9 var(--ps-display); font-variant-numeric: tabular-nums; }
.ps-readout strong small { font-size: .45em; margin-left: 2px; }
.ps-readout span { font: var(--ps-text-meta)/1.3 var(--ps-mono); color: var(--ps-fg-soft); }
.ps-readout s { font: var(--ps-text-meta)/1.3 var(--ps-mono); color: var(--ps-fg-soft); } /* "before" value */
/* gauge: --v = 0..100 */
.ps-gauge { --v: 50; height: 8px; margin: 0 var(--ps-s-4) var(--ps-s-3); position: relative; background: repeating-linear-gradient(90deg, var(--ps-line) 0 1px, transparent 1px 10px); }
.ps-gauge::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: repeating-linear-gradient(90deg, var(--ps-fg) 0 1px, transparent 1px 10px); }

/* ---------- case-study facts (client / sector / timeline / stack) ---------- */
.ps-facts { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--ps-line); border-radius: var(--ps-r-card); background: var(--ps-card); }
.ps-facts > div { display: flex; flex-wrap: wrap; gap: 0 var(--ps-s-3); padding: 10px var(--ps-s-4); } /* label column; value drops under it when enlarged text leaves no room */
.ps-facts dt { flex: 0 0 calc(var(--ps-step-0) * 5.75); } /* = the old 9ch of body text */
.ps-facts dd { flex: 1 1 6.5rem; min-width: 0; }
.ps-facts > div + div { border-top: 1px solid var(--ps-line); }
.ps-facts dt { font: 500 var(--ps-text-min)/1.6 var(--ps-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ps-fg-soft); }
.ps-facts dd { font-weight: 600; }

/* ---------- timeline (case-study steps: problem → build → result) ---------- */
.ps-timeline { list-style: none; padding: 0; display: flex; flex-direction: column; }
.ps-timeline > li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--ps-s-3); padding-bottom: var(--ps-s-5); position: relative; }
.ps-timeline > li::before { content: ""; width: 9px; height: 9px; margin: 7px 0 0 5px; border-radius: 50%; border: 1.5px solid var(--ps-fg); background: var(--ps-bg); z-index: 1; }
.ps-timeline > li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1px; background: var(--ps-line-strong); }
.ps-timeline > li:last-child::after { content: none; }
.ps-timeline > li.is-you::before { background: var(--ps-signal); border-color: var(--ps-ink); }
.ps-timeline > li.is-live::before { background: var(--ps-glow); border-color: var(--ps-glow-text); }
.ps-timeline .ps-eyebrow { margin-bottom: 4px; }

/* ---------- log (agent activity, mono lines) ---------- */
.ps-log { list-style: none; padding: 0; font: var(--ps-text-meta)/1.5 var(--ps-mono); display: flex; flex-direction: column; }
.ps-log li { display: grid; grid-template-columns: 6ch minmax(0, 1fr); gap: var(--ps-s-3); padding: 8px var(--ps-s-4); border-top: 1px solid var(--ps-line); }
.ps-log li:first-child { border-top: 0; }
.ps-log time { color: var(--ps-fg-soft); font-variant-numeric: tabular-nums; }
.ps-log .is-you { color: var(--ps-accent-text); }
.ps-log .is-live { color: var(--ps-live-text); }

/* ---------- quote ---------- */
.ps-quote { margin: 0; }
.ps-quote blockquote { font-size: var(--ps-step-1); line-height: 1.4; }
.ps-quote figcaption { font: 500 var(--ps-text-min)/1.4 var(--ps-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ps-fg-soft); }

/* ---------- CTA band (always night, one signal button) ---------- */
.ps-band, .ps-section--night { /* local night roles, in both themes */
  --ps-fg: var(--ps-night-ink); --ps-fg-soft: var(--ps-night-soft); --ps-line: var(--ps-night-rule); --ps-line-strong: #5E7F87; --ps-card: var(--ps-night-deep);
  --ps-accent-text: var(--ps-signal); --ps-live-text: var(--ps-glow); --ps-cta-bg: var(--ps-signal); --ps-cta-fg: var(--ps-ink); --ps-focus: var(--ps-signal); }
.ps-band { background: var(--ps-night); color: var(--ps-night-ink); border: 1px solid var(--ps-night-rule); border-radius: var(--ps-r-card); overflow: hidden; }
.ps-band .ps-panel-head { color: var(--ps-night-soft); }
.ps-band .ps-panel-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ps-signal); flex: none; }
.ps-band .ps-panel-head { justify-content: flex-start; flex-wrap: nowrap; } /* dot + one label: the label wraps, the dot stays beside it */
.ps-band-body { padding: var(--ps-s-6) var(--ps-s-4); display: flex; flex-direction: column; gap: var(--ps-s-4); }
.ps-band-body p { color: var(--ps-night-soft); max-width: 52ch; }
@media (min-width: 720px) { .ps-band-body { padding: var(--ps-s-7) var(--ps-s-6); } }

/* ---------- form fields ---------- */
.ps-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.ps-field :where(input, textarea, select) { font: 400 var(--ps-text-input)/1.4 var(--ps-body); color: var(--ps-fg); background: var(--ps-card); border: 1px solid var(--ps-line-strong); border-radius: var(--ps-r-btn); padding: 12px 14px; min-height: 48px; width: 100%; }
.ps-field textarea { min-height: 120px; resize: vertical; }
/* placeholder = text (1.4.3): the browser default #757575 is 4.42:1 on light fields, 3.94:1 on night. Use the soft-text role
   (≥4.5:1 in both themes, follows prefers-contrast). opacity 1: Firefox dims placeholders by default. No forced-color-adjust,
   so Windows contrast themes still repaint it with their own system colour. */
.ps-field :where(input, textarea)::placeholder { color: var(--ps-fg-soft); opacity: 1; }
.ps-field :where(input, textarea, select):focus-visible { outline: 3px solid var(--ps-focus); outline-offset: 2px; border-color: var(--ps-fg); }
.ps-field .ps-hint { font: 400 var(--ps-text-meta)/1.4 var(--ps-body); color: var(--ps-fg-soft); }
.ps-field [aria-invalid="true"] { border-color: var(--ps-accent-text); border-width: 2px; padding: 11px 13px; } /* thicker, not just a colour change (1.4.1) */
.ps-error { font: 500 var(--ps-text-small)/1.4 var(--ps-body); color: var(--ps-accent-text); display: flex; gap: 6px; }
.ps-error::before { content: "!"; font: 700 var(--ps-text-min)/1.125rem var(--ps-mono); width: 1.125rem; height: 1.125rem; flex: none; text-align: center; border-radius: 50%; background: var(--ps-signal); color: var(--ps-ink); }

/* ---------- footer ---------- */
.ps-footer { border-top: 1px solid var(--ps-line); padding-block: var(--ps-s-6) var(--ps-s-7); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ps-s-4); font-size: var(--ps-text-small); color: var(--ps-fg-soft); }
.ps-footer a { text-underline-offset: 3px; }

/* ---------- motion safety (WCAG 2.3.3) ---------- */
/* tokens already set --ps-t / --ps-t-fast to 0s; this also stops hover transforms and any page animation */
@media (prefers-reduced-motion: reduce) {
  .ps *, .ps *::before, .ps *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ps-btn:hover::after, a.ps-panel:hover .ps-media img, .ps-btn:active { transform: none; }
}

/* ---------- Windows contrast themes (forced colors) ---------- */
/* the OS repaints colours and drops box-shadows; keep every state visible with system colours + borders */
@media (forced-colors: active) {
  .ps :focus-visible, .ps-field :where(input, textarea, select):focus-visible { outline-color: Highlight; }
  /* status dots are backgrounds (would vanish): paint them in the text colour */
  .ps-tag::before, .ps-eyebrow--live::before, .ps-eyebrow--you::before, .ps-band .ps-panel-head::before,
  .ps-timeline > li.is-you::before, .ps-timeline > li.is-live::before { forced-color-adjust: none; background: CanvasText; box-shadow: none; }
  .ps-panel--lead { border-left-width: 4px; } /* replaces the inset signal stripe */
  a.ps-tag[aria-current="page"] { forced-color-adjust: none; background: SelectedItem; color: SelectedItemText; border-color: SelectedItem; }
  .ps-gauge::after { forced-color-adjust: none; background: repeating-linear-gradient(90deg, CanvasText 0 1px, transparent 1px 10px); }
  .ps-error::before { forced-color-adjust: none; background: CanvasText; color: Canvas; }
  .ps-skip:focus { outline: 3px solid Highlight; }
}
