/* src-astro/css/layers/01-tokens.css */
/**
 * Design Tokens
 * CSS custom properties for colors, spacing, typography, and layout
 */

:root {
	/* Typography
	 * Equity Text A (not B): lining figures by default. This corpus is
	 * numbers-as-identifiers, not narrative prose — A keeps digits at
	 * capital-height so paragraph numbers, article citations, and
	 * footnote refs sit optically with the letters around them. */
	--font-body: "Equity Text A", Georgia, serif;
	--font-article-heading:
		"Equity Text A", "Georgia Heading Fallback", Georgia, serif;
	--font-ui:
		"Concourse", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	/* Drawn small caps for UI labels; enclosed figures for citation markers.
	 * Keep these fallback stacks here alongside the other typography roles. */
	--font-ui-caps: "Concourse Caps", "Concourse", sans-serif;
	--font-index: "Concourse Index", "Concourse", sans-serif;
	/* Small-caps face for acronyms in prose (handoff §3). Equity Caps
	 * carries proper drawn small-cap glyphs at lowercase positions. Caps A,
	 * the grade of the Equity Text A body prose, so one line never mixes two
	 * grades (owner decision, 7 October 2026; #846). Its faces are declared
	 * in layers/fonts.css from public/fonts/equity_a_caps_*.woff2. */
	--font-body-caps: "Equity Caps A", "Equity Text A", Georgia, serif;

	/* One system monospace stack for URLs, code and identifiers site-wide. */
	--font-mono:
		ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

	/* Font sizes — UI (fixed: chrome, labels, tabs, numbers) */
	--text-xs: 0.9375rem;
	--text-sm: 1rem;
	--text-base-ui: 1.125rem;
	--text-lg: 1.25rem;
	--text-xl: 1.5rem;
	--text-2xl: 1.875rem;

	/* Reader-scale multiplier (1 = default). data-text-scale on <html>
	 * overrides — see the block at the bottom of this file. */
	--reader-scale: 1;

	/* Font sizes — PROSE (fluid: article body, headings, recitals).
	 * Butterick scales body type aggressively with viewport width (up to
	 * ~22px on wide screens) so a 66ch column reads comfortably on both a
	 * phone and a 2560px display. UI chrome stays fixed. The reader-scale
	 * multiplier lets users dial the size up/down per-taste. */
	--text-base-prose: calc(
		clamp(1.125rem, 0.85rem + 0.7vw, 1.4rem) *
		var(--reader-scale)
	);
	--text-xl-prose: calc(
		clamp(1.375rem, 1.05rem + 0.85vw, 1.75rem) *
		var(--reader-scale)
	);
	--text-2xl-prose: calc(
		clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem) *
		var(--reader-scale)
	);

	/* Back-compat alias of the fixed UI base. Legacy consumers read
	 * --text-base; UI chrome must not scale with viewport (handoff §1), so
	 * this tracks --text-base-ui. New prose surfaces opt in via
	 * --text-base-prose. */
	--text-base: var(--text-base-ui);

	/* Line heights */
	--leading-tight: 1.3;
	--leading-normal: 1.4; /* Equity B's taller x-height makes 1.45 slightly loose */
	--leading-body: 1.5; /* Article body — dense legal prose with dotted underlines needs air */
	--leading-relaxed: 1.55; /* Same principle for preamble/annexes */

	/* Measure (max-width for readable text). --measure is the runtime
	 * token (what components consume); the -narrow/-comfortable/-wide
	 * tokens are presets selected by data-measure on <html>. */
	--measure-narrow: 54ch;
	--measure-comfortable: 66ch;
	--measure-wide: 78ch;
	--measure: 66ch;

	/* Spacing scale */
	--space-xs: 0.25rem;
	--space-sm: 0.5rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2rem;
	--space-2xl: 3rem;

	/* The reader's sticky document header plus a gap: where a native article
	 * hash lands without scripting (#769 D3). With scripting the reader
	 * computes its own offset (landing-offset.ts). */
	--reader-chrome-offset: 7rem;

	/* Minimum control hit area on touch/mobile surfaces; glyphs keep their
	 * own visual size and the legal-text reading measure stays independent. */
	--touch-target-min: 44px;

	/* Page grid — the single measure the site chrome and every standalone
	 * page shell sit on. The header is chrome: it renders at --page-max with
	 * --page-gutter on EVERY page, so navigating never resizes it. Content
	 * columns choose between the two widths by what they hold:
	 *   --page-max      wide layouts (landing sections, the change explorer's
	 *                   table) — aligns with the header at every viewport
	 *   --page-reading  prose-led pages (transition status, governance) where
	 *                   a 1120px measure would be unreadable
	 * The gutter is shared by both, so below --page-max every page's left
	 * edge lines up with the header's. */
	--page-max: 1120px;
	--page-reading: 900px;
	--page-gutter: var(--space-xl);

	/* Colors - Text */
	--color-text: #1a1a1a;
	--color-text-muted: #666;
	--color-text-subtle: #707070; /* Meets 4.5:1 contrast ratio on white background */
	--color-white: #fff;

	/* Colors - Backgrounds */
	--color-bg: #fafaf9;
	--color-bg-alt: #f5f5f4;
	--color-bg-sidebar: #fff;
	--color-bg-hover: #efeeec;
	--color-bg-tooltip: #fff;

	/* Colors - Borders */
	--color-border: #e5e5e5;
	--color-border-light: #f0f0f0;

	/* Colors - Accent */
	--color-accent: #2563eb;
	--color-accent-hover: #1d4ed8;
	--color-accent-subtle: rgba(37, 99, 235, 0.3);

	/* Product masthead (reader v3, placement-matrix H1) — a dark band in BOTH
	 * themes, so the base values live here rather than in the theme blocks;
	 * the dark themes only deepen the ground so the band still reads as a
	 * band against the page behind it. */
	--color-masthead-bg: #14171a;
	--color-masthead-ink: #f7f6f4;
	--color-masthead-link: rgba(255, 255, 255, 0.88);
	--color-masthead-rule: rgba(255, 255, 255, 0.24);

	/* Colors - UI */
	--color-star: #eab308;
	--color-highlight: #fef3c7;
	--color-highlight-text: #713f12;
	--color-definition: #dbeafe;

	/* Aliases — names used across older components. Keep as thin var() aliases
	 * so a theme only needs to override the primary token. */
	--color-link: var(--color-accent);
	--color-link-hover: var(--color-accent-hover);
	--color-bg-secondary: var(--color-bg-alt);
	--color-bg-subtle: var(--color-bg-alt);
	--color-border-subtle: var(--color-border-light);

	/* Radii */
	--radius-sm: 4px;
	--radius-md: 6px;
	--radius-lg: 8px;

	/* Reference-link underlines in the reader (D-124): text-decoration, so a
	 * link that wraps is underlined on every line, sitting clear of the
	 * descenders and thickening on hover or focus. */
	--link-underline-thickness: 1px;
	--link-underline-thickness-hover: 2px;
	--link-underline-offset: 0.2em;

	/* Colors - Semantic (consumed by components, overridden by theme) */
	/* Definition underline: accent hue at low saturation so dotted underlines
	 * across dense legal prose read as a gentle signal, not a sea of blue.
	 * Hover thickens and darkens to restore affordance for the specific term. */
	--color-definition-underline: rgba(37, 99, 235, 0.25);
	--color-definition-underline-hover: rgba(37, 99, 235, 0.75);
	--color-scrim: rgba(0, 0, 0, 0.12);
	--color-diff-add-bg: rgba(34, 197, 94, 0.25);
	--color-diff-add-text: var(--color-text);
	--color-diff-remove-bg: rgba(239, 68, 68, 0.2);
	--color-diff-remove-text: var(--color-text-muted);

	/* Brand signature — navy + gold pair used by favicon & og-image. The
	 * reading UI itself does not use gold; this is a marketing-surface accent. */
	--color-brand-navy: #1e3a5f;
	--color-brand-navy-deep: #0f1c2e;
	--color-brand-gold: #f4d03f;
	/* Text-only brand emphasis. Light retains the signature navy; dark uses
	 * a readable blue tint without changing decorative borders or artwork. */
	--color-brand-emphasis: var(--color-brand-navy);

	/* Transaction Intelligence bridge. These values mirror the canonical
	 * tokens in transactionintelligence.net/assets/css/tokens.css. */
	--color-analysis: #4b2e83;
	--color-analysis-ink: #2d1b52;
	--color-analysis-tint: #f1ecf9;
	--color-analysis-line: #e1d8f0;

	/* Colors - Document hues (raw) */
	--color-psd2: #7c3aed;
	--color-psd3: #2563eb;
	--color-psr1: #059669;
	--color-fida: #ec4899;
	--color-eidas2: #6366f1;
	--color-ai-act: #f97316;
	--color-dora: #dc2626;
	--color-gdpr: #0891b2;
	--color-rts: #d97706;
	--color-supplementary: #0891b2;
	--color-supplementary-hover: #0e7490;

	/*
	 * Document pill backgrounds/foregrounds (tinted style).
	 * Pills render as low-alpha tinted bg + full-saturation hue text.
	 * Each pair: -bg (≈12% alpha of hue) + -fg (hue itself, darkened for AA on tint).
	 */
	--color-psd2-bg: rgba(124, 58, 237, 0.12);
	--color-psd2-fg: #6d28d9;
	--color-psd3-bg: rgba(37, 99, 235, 0.12);
	--color-psd3-fg: #1d4ed8;
	--color-psr1-bg: rgba(5, 150, 105, 0.14);
	--color-psr1-fg: #065f46;
	--color-fida-bg: rgba(236, 72, 153, 0.12);
	--color-fida-fg: #be185d;
	--color-eidas2-bg: rgba(99, 102, 241, 0.12);
	--color-eidas2-fg: #4338ca;
	--color-ai-act-bg: rgba(249, 115, 22, 0.14);
	--color-ai-act-fg: #c2410c;
	--color-dora-bg: rgba(220, 38, 38, 0.12);
	--color-dora-fg: #b91c1c;
	--color-gdpr-bg: rgba(8, 145, 178, 0.14);
	--color-gdpr-fg: #0e7490;
	--color-rts-bg: rgba(217, 119, 6, 0.14);
	--color-rts-fg: #b45309;

	/* Layout dimensions */
	--sidebar-width: 320px;
	/* Research drawer width (reader v3 step 7): the placement matrix docks
	 * it at 340–400px so citations and previews read as prose, not a strip.
	 * The docked band starts at 1400px, which leaves a full measure beside
	 * it; the tablet overlay reuses the same width capped at 92vw. */
	--backlinks-width: 360px;
	--content-padding: 2.5rem;
	--search-panel-width: 320px;

	/* Shadows */
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
	--shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
	--shadow-panel: -4px 0 24px rgba(0, 0, 0, 0.15);
	--shadow-overlay: 0 4px 20px rgba(0, 0, 0, 0.15);

	/* Focus states
	 * --focus-ring pairs with border-color: var(--color-accent) on form inputs.
	 * For buttons/links without a visible border, use outline-based :focus-visible
	 * (2px solid accent, 2px offset) — see the _focus-visible mixin usage below. */
	--focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.35);

	/* Supplementary document badges */
	--color-badge-bg: #e8f4f8;
	--color-badge-text: #0369a1;
	--color-badge-dark-bg: #1a5f7a;

	/* Key dates type pills (spec 2026-07-06) */
	--color-date-deadline-bg: rgba(237, 161, 0, 0.14);
	--color-date-deadline-fg: #935e00;
	--color-date-application-bg: rgba(27, 175, 122, 0.14);
	--color-date-application-fg: #04724d;
	--color-date-lifecycle-bg: rgba(42, 120, 214, 0.12);
	--color-date-lifecycle-fg: #1c5cab;

	/* ============================================================
	 *  Compromise-era display components (display spec 2026-07-14, §1f
	 *  pattern sheet). Additive only — consumed by comparison-view,
	 *  status-banner, change-chips, transition-page. No existing token
	 *  changes. Contrast ratios are measured against the composited
	 *  background; the tint ⇒ solid conversions are in the pattern sheet.
	 * ============================================================ */

	/* Ink roles beyond the base scale (§1f.6) */
	--cmp-text-secondary: #444; /* 9.33:1 on --color-bg — summaries, cells */
	--cmp-prose-quiet: #55534e; /* 7.1:1 — unchanged comparison prose */
	--cmp-ui-muted: #57544e; /* 7.22:1 — banner/aside body copy */

	/* Status ladder (§1f.1) — reader-facing legal-status hues */
	--status-superseded-fg: #57544e; /* 6.51:1 on #efeeec */
	--status-superseded-bg: #efeeec;
	--status-superseded-dot: #8a8a86;
	--status-compromise-fg: #0369a1; /* reuses supplementary-badge pair */
	--status-compromise-bg: #e8f4f8; /* 5.29:1 fg / 5.68:1 label */
	--status-compromise-dot: #0369a1;
	--status-oj: #6d28d9; /* 6.8:1 — reserved A3 enum stages */
	--status-in-force: #935e00; /* 5.23:1 — reserved */
	--status-applicable: #04724d; /* 5.71:1 — reserved */

	/* Change chips — fg on composited tint (§1f.2). Glyph + wording carry
	 * the state; colour never alone. */
	--chip-unchanged-fg: #57544e;
	--chip-unchanged-bg: #efeeec; /* 6.51:1 */
	--chip-limited-fg: #1c5cab;
	--chip-limited-bg: rgba(42, 120, 214, 0.12); /* ⇒ #E1EAF5 · 5.46:1 */
	--chip-substantial-fg: #935e00;
	--chip-substantial-bg: rgba(237, 161, 0, 0.14); /* ⇒ #F8EED6 · 4.74:1 */
	--chip-new-fg: #04724d;
	--chip-new-bg: rgba(27, 175, 122, 0.14); /* ⇒ #DBF0E7 · 5.01:1 */
	--chip-deleted-fg: #b91c1c;
	--chip-deleted-bg: rgba(220, 38, 38, 0.12); /* ⇒ #F6E1E0 · 5.17:1 */
	--chip-quiet-fg: #444; /* 9.33:1 — quiet in-situ chip label, no fill */
	--materiality-fg: #fff;
	--materiality-bg: #1e3a5f; /* 11.5:1 — the only solid fill */

	/* Diff ins/del contract (§1f.5). Deletion text binds to FULL ink —
	 * corrects the legacy .diff-removed muted-on-tint (4.26:1, an AA fail);
	 * the strike and tint carry the semantics, not a lighter colour. */
	--diff-ins-bg: rgba(34, 197, 94, 0.18); /* ⇒ #D3F0DD */
	--diff-ins-mark: #047857; /* underline colour */
	--diff-ins-text: var(--color-text); /* 14.32:1 */
	--diff-del-bg: rgba(239, 68, 68, 0.2); /* ⇒ #F8D6D5 */
	--diff-del-mark: #b91c1c; /* strike colour */
	--diff-del-text: var(--color-text); /* 12.9:1 */
	--diff-para-strike: rgba(185, 28, 28, 0.55); /* whole-¶ removal strike */

	/* Placeholder-date treatment (§1f.3) — pairs with --color-highlight and
	 * --color-highlight-text (#713F12 on #FEF3C7 · 7.79:1). */
	--cmp-placeholder-underline: #b45309;

	/* ============================================================
	 *  Page standard (D-099, docs/reference/page-standard.md): the
	 *  release B.1 boards' values for every page outside the reader.
	 *  Additive only; no existing token changes, and the reader reads
	 *  none of these.
	 * ============================================================ */
	--std-page-max: 1152px;
	--std-gutter: 64px;
	--std-gutter-phone: 16px;
	--std-section: 88px; /* a hairline, then 88px above and below */
	--std-section-home: 96px; /* Home's content sections, as drawn */
	--std-h1: 3.5rem; /* 56px */
	--std-h1-narrow: 3rem; /* 48px */
	--std-h1-phone: 2rem; /* 32px */
	--std-h2: 2.25rem; /* 36px */
	--std-h2-phone: 1.75rem; /* 28px */
	--std-h3: 1.25rem; /* 20px */
	--std-band-heading: 2.5rem; /* 40px */
	--std-band-heading-phone: 1.875rem; /* 30px */
	--std-text: clamp(1.125rem, 1.05rem + 0.2vw, 1.25rem); /* 18 to 20px */
	--std-text-small: 1.0625rem; /* 17px */
	--std-ui: 1rem; /* 16px */
	--std-ui-small: 0.875rem; /* 14px */
	--std-ui-large: 1.125rem; /* 18px */
	--std-button-height: 44px;
	--std-button-height-large: 52px;
	--std-radius-button: 6px;
	--std-radius-card: 12px;
	--std-radius-panel: 14px;
	--color-std-bg: #fdfdfc;
	--color-std-surface: #fff;
	--color-std-ink: #1a1a1a;
	--color-std-body: #333;
	--color-std-muted: #57544e;
	--color-std-hairline: #ebe9e4;
	--color-std-line: #e3e1dc;
	--color-std-line-strong: #d6d3cd;
	--color-std-skeleton: #d9d6cf;
	--color-std-link: #1d4ed8;
	--color-std-button: #2563eb;
	--color-std-button-hover: #1d4ed8;
	--color-std-button-ink: #fff;
	--color-std-tint: #eef3ff;
	--color-std-reworded: #e3ebff;
	--color-std-reworded-key: #b9cbff;
	--color-std-added: #dff3e6;
	--color-std-added-key: #9fd6b4;
	--color-std-added-mark: #0f5c36;
	--color-std-law-ink: #0f5c36;
	--color-std-law-bg: #e8f5ee;
	--color-std-law-line: #b9dcc8;
	--color-std-pending-ink: #7a4a00;
	--color-std-pending-bg: #fff4dc;
	--color-std-pending-line: #ecd29a;
	--color-std-ended-ink: #57544e;
	--color-std-ended-bg: #f1efea;
	--color-std-ended-line: #dcd9d2;
	--color-std-band-bg: #14171a;
	--color-std-band-ink: #f7f6f4;
	--color-std-band-accent: #f4d03f;
	--color-std-film-from: #1e3a5f;
	--color-std-film-to: #0f1c2e;
	--shadow-std-panel: 0 18px 40px rgba(20, 23, 26, 0.08);
	--shadow-std-raised: 0 24px 56px rgba(15, 28, 46, 0.16);

	/* Declare both colour-schemes so form controls/scrollbars follow the theme */
	color-scheme: light;
}

/* ============================================================
 *  Reader-scale presets — <html data-text-scale="...">
 *  Multiplied into --reader-scale which the prose clamps consume.
 * ============================================================ */
:root[data-text-scale="compact"] {
	--reader-scale: 0.92;
}
:root[data-text-scale="normal"] {
	--reader-scale: 1;
}
:root[data-text-scale="large"] {
	--reader-scale: 1.1;
}
:root[data-text-scale="xl"] {
	--reader-scale: 1.22;
}

/* ============================================================
 *  Measure presets — <html data-measure="...">
 *  Overrides --measure so every consumer (article, preamble,
 *  annex, reference panel) tracks the user's choice automatically.
 * ============================================================ */
:root[data-measure="narrow"] {
	--measure: var(--measure-narrow);
}
:root[data-measure="comfortable"] {
	--measure: var(--measure-comfortable);
}
:root[data-measure="wide"] {
	--measure: var(--measure-wide);
}

/*
 * Dark theme
 *
 * Three selector paths match these tokens:
 *   :root[data-theme="dark"]                                           explicit override
 *   :root[data-theme="auto"]         inside prefers-color-scheme: dark
 *   :root:not([data-theme])          inside prefers-color-scheme: dark pre-hydration fallback
 *
 * An inline <head> script sets data-theme before first paint to prevent FOUC.
 *
 * Design principles (non-obvious choices worth preserving):
 *   - Warm slate background, never pure black — pure black vibrates with serif text.
 *   - Body text ~89% lightness (not pure white) to reduce glare with Equity B.
 *   - Accent shifts to periwinkle — #2563eb disappears on dark; #7aa2f7 reads as a
 *     link without being incandescent.
 *   - Definition underline shifts to warm amber to distinguish from accent links.
 *   - Scrim alpha rises 0.12 → 0.55: panel and page bg are closer in luminance on
 *     dark, so dimming needs more force to register.
 *   - Body text clears WCAG AA on the new bg; article headings clear AAA.
 *
 * Both blocks are wrapped in `@media not print` so that dark tokens do not apply
 * when printing. Without the wrapper, a dark-mode user printing the page would
 * get light-on-white text because 03-utilities.css strips backgrounds to
 * transparent but can't individually reset ~30 custom properties.
 *
 * KEEP IN SYNC: the :root[data-theme="dark"] block below duplicates these values
 * verbatim. Plain CSS cannot share a token body across @media and non-@media
 * selectors. Any change must be made in both places.
 */

@media not print {
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme]),
		:root[data-theme="auto"] {
			color-scheme: dark;

			--color-text: #e4e2dd;
			--color-text-muted: #a8a59e;
			--color-text-subtle: #8a877f;

			--color-bg: #0f1419;
			--color-bg-alt: #161c23;
			--color-bg-sidebar: #12181f;
			--color-bg-hover: #222a33;
			--color-bg-tooltip: #1a222c;

			--color-border: #2a313a;
			--color-border-light: #1e242c;

			--color-accent: #7aa2f7;
			--color-accent-hover: #9ab4f8;
			--color-accent-subtle: rgba(122, 162, 247, 0.35);

			--color-masthead-bg: #0d0f11;
			--color-masthead-link: rgba(233, 231, 227, 0.88);
			--color-brand-emphasis: #93b4e0;
			--color-analysis: #a188e8;
			--color-analysis-ink: #c7b5f2;
			--color-analysis-tint: #1f1a2e;
			--color-analysis-line: #2e2645;

			--color-star: #f5c450;
			--color-highlight: #4a3d12;
			--color-highlight-text: #fde68a;
			--color-definition: rgba(122, 162, 247, 0.15);

			--color-definition-underline: rgba(212, 167, 106, 0.32);
			--color-definition-underline-hover: rgba(212, 167, 106, 0.85);
			--color-scrim: rgba(0, 0, 0, 0.55);
			--color-diff-add-bg: rgba(34, 197, 94, 0.22);
			--color-diff-remove-bg: rgba(239, 68, 68, 0.22);

			--color-psd2-bg: rgba(167, 139, 250, 0.18);
			--color-psd2-fg: #c4b5fd;
			--color-psd3-bg: rgba(122, 162, 247, 0.18);
			--color-psd3-fg: #93c5fd;
			--color-psr1-bg: rgba(52, 211, 153, 0.18);
			--color-psr1-fg: #6ee7b7;
			--color-fida-bg: rgba(244, 114, 182, 0.18);
			--color-fida-fg: #f9a8d4;
			--color-eidas2-bg: rgba(129, 140, 248, 0.18);
			--color-eidas2-fg: #a5b4fc;
			--color-ai-act-bg: rgba(251, 146, 60, 0.2);
			--color-ai-act-fg: #fdba74;
			--color-dora-bg: rgba(248, 113, 113, 0.18);
			--color-dora-fg: #fca5a5;
			--color-gdpr-bg: rgba(34, 211, 238, 0.18);
			--color-gdpr-fg: #67e8f9;
			--color-rts-bg: rgba(251, 191, 36, 0.2);
			--color-rts-fg: #fcd34d;

			--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
			--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.55);
			--shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
			--shadow-panel: -4px 0 24px rgba(0, 0, 0, 0.55);
			--shadow-overlay: 0 4px 20px rgba(0, 0, 0, 0.55);

			--focus-ring: 0 0 0 3px rgba(122, 162, 247, 0.45);

			--color-badge-bg: rgba(122, 162, 247, 0.18);
			--color-badge-text: #93c5fd;
			/* --color-badge-dark-bg inherits from :root — works on both themes */

			--color-date-deadline-fg: #e5b45a;
			--color-date-application-fg: #34c08d;
			--color-date-lifecycle-fg: #6da7ec;

			/* Compromise-era display components — dark ladder (§1f). */
			--cmp-text-secondary: #a8a59e;
			--cmp-prose-quiet: #a8a59e;
			--cmp-ui-muted: #a8a59e;
			--status-superseded-fg: #a8a59e;
			--status-superseded-bg: #222a33;
			--status-superseded-dot: #8a877f;
			--status-compromise-fg: #93c5fd;
			--status-compromise-bg: rgba(122, 162, 247, 0.18);
			--status-compromise-dot: #6da7ec;
			--status-oj: #c4b5fd;
			--status-in-force: #e5b45a;
			--status-applicable: #6ee7b7;
			--chip-unchanged-fg: #a8a59e;
			--chip-unchanged-bg: #222a33;
			--chip-limited-fg: #6da7ec;
			--chip-limited-bg: rgba(122, 162, 247, 0.18);
			--chip-substantial-fg: #e5b45a;
			--chip-substantial-bg: rgba(237, 161, 0, 0.16);
			--chip-new-fg: #6ee7b7;
			--chip-new-bg: rgba(52, 211, 153, 0.18);
			--chip-deleted-fg: #fca5a5;
			--chip-deleted-bg: rgba(248, 113, 113, 0.18);
			--chip-quiet-fg: #c9c6bf;
			--materiality-fg: #0f1c2e;
			--materiality-bg: #c7d7ee; /* 11.73:1 */
			--diff-ins-bg: rgba(34, 197, 94, 0.22);
			--diff-ins-mark: #34c08d; /* text #E4E2DD ⇒ 9.63:1 */
			--diff-del-bg: rgba(239, 68, 68, 0.22);
			--diff-del-mark: #fca5a5; /* text #E4E2DD ⇒ 11.29:1 */
			--diff-para-strike: rgba(252, 165, 165, 0.5);
			--color-std-bg: #0f1419;
			--color-std-surface: #161c23;
			--color-std-ink: #e4e2dd;
			--color-std-body: #d2cfc8;
			--color-std-muted: #a8a59e;
			--color-std-hairline: #2a313a;
			--color-std-line: #333b45;
			--color-std-line-strong: #3d4651;
			--color-std-skeleton: #3a424c;
			--color-std-link: #9ab4f8;
			--color-std-button: #2563eb;
			--color-std-button-hover: #1d4ed8;
			--color-std-tint: #1c2740;
			--color-std-reworded: #22304d;
			--color-std-reworded-key: #4a63a8;
			--color-std-added: #17352a;
			--color-std-added-key: #2f7a55;
			--color-std-added-mark: #6ee7b7;
			--color-std-law-ink: #8fe0b5;
			--color-std-law-bg: #12301f;
			--color-std-law-line: #285c40;
			--color-std-pending-ink: #f3c978;
			--color-std-pending-bg: #33270f;
			--color-std-pending-line: #6b5420;
			--color-std-ended-ink: #c9c6bf;
			--color-std-ended-bg: #222a33;
			--color-std-ended-line: #3d4651;
			--color-std-band-bg: #0d0f11;
			--shadow-std-panel: 0 18px 40px rgba(0, 0, 0, 0.35);
			--shadow-std-raised: 0 24px 56px rgba(0, 0, 0, 0.45);
		}
	}

	:root[data-theme="dark"] {
		color-scheme: dark;

		--color-text: #e4e2dd;
		--color-text-muted: #a8a59e;
		--color-text-subtle: #8a877f;

		--color-bg: #0f1419;
		--color-bg-alt: #161c23;
		--color-bg-sidebar: #12181f;
		--color-bg-hover: #222a33;
		--color-bg-tooltip: #1a222c;

		--color-border: #2a313a;
		--color-border-light: #1e242c;

		--color-accent: #7aa2f7;
		--color-accent-hover: #9ab4f8;
		--color-accent-subtle: rgba(122, 162, 247, 0.35);

		--color-masthead-bg: #0d0f11;
		--color-masthead-link: rgba(233, 231, 227, 0.88);
		--color-brand-emphasis: #93b4e0;
		--color-analysis: #a188e8;
		--color-analysis-ink: #c7b5f2;
		--color-analysis-tint: #1f1a2e;
		--color-analysis-line: #2e2645;

		--color-star: #f5c450;
		--color-highlight: #4a3d12;
		--color-highlight-text: #fde68a;
		--color-definition: rgba(122, 162, 247, 0.15);

		--color-definition-underline: rgba(212, 167, 106, 0.32);
		--color-definition-underline-hover: rgba(212, 167, 106, 0.85);
		--color-scrim: rgba(0, 0, 0, 0.55);
		--color-diff-add-bg: rgba(34, 197, 94, 0.22);
		--color-diff-remove-bg: rgba(239, 68, 68, 0.22);

		--color-psd2-bg: rgba(167, 139, 250, 0.18);
		--color-psd2-fg: #c4b5fd;
		--color-psd3-bg: rgba(122, 162, 247, 0.18);
		--color-psd3-fg: #93c5fd;
		--color-psr1-bg: rgba(52, 211, 153, 0.18);
		--color-psr1-fg: #6ee7b7;
		--color-fida-bg: rgba(244, 114, 182, 0.18);
		--color-fida-fg: #f9a8d4;
		--color-eidas2-bg: rgba(129, 140, 248, 0.18);
		--color-eidas2-fg: #a5b4fc;
		--color-ai-act-bg: rgba(251, 146, 60, 0.2);
		--color-ai-act-fg: #fdba74;
		--color-dora-bg: rgba(248, 113, 113, 0.18);
		--color-dora-fg: #fca5a5;
		--color-gdpr-bg: rgba(34, 211, 238, 0.18);
		--color-gdpr-fg: #67e8f9;
		--color-rts-bg: rgba(251, 191, 36, 0.2);
		--color-rts-fg: #fcd34d;

		--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
		--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.55);
		--shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
		--shadow-panel: -4px 0 24px rgba(0, 0, 0, 0.55);
		--shadow-overlay: 0 4px 20px rgba(0, 0, 0, 0.55);

		--focus-ring: 0 0 0 3px rgba(122, 162, 247, 0.45);

		--color-badge-bg: rgba(122, 162, 247, 0.18);
		--color-badge-text: #93c5fd;
		/* --color-badge-dark-bg inherits from :root — works on both themes */

		--color-date-deadline-fg: #e5b45a;
		--color-date-application-fg: #34c08d;
		--color-date-lifecycle-fg: #6da7ec;

		/* Compromise-era display components — dark ladder (§1f). */
		--cmp-text-secondary: #a8a59e;
		--cmp-prose-quiet: #a8a59e;
		--cmp-ui-muted: #a8a59e;
		--status-superseded-fg: #a8a59e;
		--status-superseded-bg: #222a33;
		--status-superseded-dot: #8a877f;
		--status-compromise-fg: #93c5fd;
		--status-compromise-bg: rgba(122, 162, 247, 0.18);
		--status-compromise-dot: #6da7ec;
		--status-oj: #c4b5fd;
		--status-in-force: #e5b45a;
		--status-applicable: #6ee7b7;
		--chip-unchanged-fg: #a8a59e;
		--chip-unchanged-bg: #222a33;
		--chip-limited-fg: #6da7ec;
		--chip-limited-bg: rgba(122, 162, 247, 0.18);
		--chip-substantial-fg: #e5b45a;
		--chip-substantial-bg: rgba(237, 161, 0, 0.16);
		--chip-new-fg: #6ee7b7;
		--chip-new-bg: rgba(52, 211, 153, 0.18);
		--chip-deleted-fg: #fca5a5;
		--chip-deleted-bg: rgba(248, 113, 113, 0.18);
		--chip-quiet-fg: #c9c6bf;
		--materiality-fg: #0f1c2e;
		--materiality-bg: #c7d7ee; /* 11.73:1 */
		--diff-ins-bg: rgba(34, 197, 94, 0.22);
		--diff-ins-mark: #34c08d; /* text #E4E2DD ⇒ 9.63:1 */
		--diff-del-bg: rgba(239, 68, 68, 0.22);
		--diff-del-mark: #fca5a5; /* text #E4E2DD ⇒ 11.29:1 */
		--diff-para-strike: rgba(252, 165, 165, 0.5);
		--color-std-bg: #0f1419;
		--color-std-surface: #161c23;
		--color-std-ink: #e4e2dd;
		--color-std-body: #d2cfc8;
		--color-std-muted: #a8a59e;
		--color-std-hairline: #2a313a;
		--color-std-line: #333b45;
		--color-std-line-strong: #3d4651;
		--color-std-skeleton: #3a424c;
		--color-std-link: #9ab4f8;
		--color-std-button: #2563eb;
		--color-std-button-hover: #1d4ed8;
		--color-std-tint: #1c2740;
		--color-std-reworded: #22304d;
		--color-std-reworded-key: #4a63a8;
		--color-std-added: #17352a;
		--color-std-added-key: #2f7a55;
		--color-std-added-mark: #6ee7b7;
		--color-std-law-ink: #8fe0b5;
		--color-std-law-bg: #12301f;
		--color-std-law-line: #285c40;
		--color-std-pending-ink: #f3c978;
		--color-std-pending-bg: #33270f;
		--color-std-pending-line: #6b5420;
		--color-std-ended-ink: #c9c6bf;
		--color-std-ended-bg: #222a33;
		--color-std-ended-line: #3d4651;
		--color-std-band-bg: #0d0f11;
		--shadow-std-panel: 0 18px 40px rgba(0, 0, 0, 0.35);
		--shadow-std-raised: 0 24px 56px rgba(0, 0, 0, 0.45);
	}
}

/* src-astro/css/layers/fonts.css */
/**
 * Font Face Declarations
 * Self-hosted Equity Text A (body) and Concourse (UI).
 * Monospace text uses the shared system font stack in 01-tokens.css.
 *
 * Equity A is used instead of B because this corpus is dominated by
 * numbers-as-identifiers ("Article 4(3)(a)", "Regulation (EU) 2015/2366",
 * "(1) Whereas..."), not narrative prose. A's default lining figures
 * match capital height and keep numbers optically aligned with the
 * letters around them. See Butterick's Practical Typography on figure
 * styles — B's old-style figures are for "I bought 3 apples" prose;
 * A is for reference text.
 *
 * Must be outside the @layer system — @font-face is globally scoped.
 */

/* Equity Text A — body/legislation text */
@font-face {
	font-family: "Equity Text A";
	src: url("/assets/fonts/equity_a_regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Equity Text A";
	src: url("/assets/fonts/equity_a_italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Equity Text A";
	src: url("/assets/fonts/equity_a_bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Equity Text A";
	src: url("/assets/fonts/equity_a_bold_italic.woff2") format("woff2");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

/* Article headings only: measured Georgia Bold fallback at the existing 600 role.
 * The loaded Equity face and the ordinary fallback chain remain unchanged. */
@font-face {
	font-family: "Georgia Heading Fallback";
	src: local("Georgia Bold"), local("Georgia-Bold");
	font-weight: 600;
	font-style: normal;
	size-adjust: 82.027027%;
}

/* Concourse — UI/scaffolding
 * T4 = 400 (body/inputs), T6 = 600 (tabs/headings), T7 = 700 (badges)
 * font-weight: 500 elements round to T4 (nearest registered weight) — correct. */
@font-face {
	font-family: "Concourse";
	src: url("/assets/fonts/concourse_4_regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Concourse";
	src: url("/assets/fonts/concourse_4_italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Concourse";
	src: url("/assets/fonts/concourse_6_regular.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Concourse";
	src: url("/assets/fonts/concourse_7_regular.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Concourse Caps — uppercase/label elements
 * Butterick's Caps fonts provide specially-drawn uppercase letterforms.
 * Apply alongside text-transform: uppercase for proper small-cap rendering. */
@font-face {
	font-family: "Concourse Caps";
	src: url("/assets/fonts/concourse_4_caps_regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Equity Caps A + B — proper small caps for acronyms in prose (handoff §3).
 * Applied via the .acronym utility with text-transform: lowercase so the
 * small-cap glyphs sit at lowercase positions. Below-the-fold enhancement:
 * not preloaded. */
@font-face {
	font-family: "Equity Caps A";
	src: url("/assets/fonts/equity_a_caps_regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Equity Caps A";
	src: url("/assets/fonts/equity_a_caps_bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Equity Caps B";
	src: url("/assets/fonts/equity_b_caps_regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Equity Caps B";
	src: url("/assets/fonts/equity_b_caps_bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Concourse Index — enclosed figures for recital/footnote markers (handoff
 * §3). Ligatures render double digits 11–99 as single enclosed glyphs;
 * variants ss01 (white squares), ss02 (black circles), ss03 (black squares)
 * are available but unused by default. Below-the-fold: not preloaded. */
@font-face {
	font-family: "Concourse Index";
	src: url("/assets/fonts/concourse_index_regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* src-astro/css/components/page-standard.css */
/*
 * The page standard (D-099, docs/reference/page-standard.md): the type,
 * section rhythm, primary button, links and status chips every page
 * outside the reader shares, as the release B.1 boards draw them. Pages
 * opt in with these classes; nothing here restyles an existing selector.
 * Imported by styles.css only; the reader reads none of it.
 */

.std-page {
	background: var(--color-std-bg);
	color: var(--color-std-ink);
}

.std-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--std-page-max);
	margin-inline: auto;
	padding-inline: var(--std-gutter);
}

.std-section {
	padding-block: var(--std-section);
	border-top: 1px solid var(--color-std-hairline);
}

.std-h1,
.std-h2,
.std-h3 {
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 600;
	color: var(--color-std-ink);
	hyphens: none;
	text-wrap: balance;
}

.std-h1 {
	font-size: var(--std-h1);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.std-h2 {
	font-size: var(--std-h2);
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.std-h3 {
	font-size: var(--std-h3);
	line-height: 1.3;
}

.std-lede {
	margin: 0;
	max-width: 680px;
	font-family: var(--font-body);
	font-size: var(--std-text);
	line-height: 1.5;
	color: var(--color-std-body);
}

/* Links in running text: the standard blue, always underlined. */
.std-link,
.std-prose a {
	color: var(--color-std-link);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.std-link:hover,
.std-prose a:hover {
	text-decoration-thickness: 2px;
}

/* The one filled primary button of a view. */
.std-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--std-button-height);
	padding: 0 22px;
	border-radius: var(--std-radius-button);
	background: var(--color-std-button);
	color: var(--color-std-button-ink);
	font-family: var(--font-ui);
	font-size: var(--std-ui);
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
}

.std-button:hover {
	background: var(--color-std-button-hover);
	color: var(--color-std-button-ink);
}

.std-button:focus-visible {
	outline: 3px solid var(--color-std-link);
	outline-offset: 2px;
}

/* A secondary action: outlined, never filled. */
.std-button-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--std-button-height);
	padding: 0 18px;
	border: 1.5px solid var(--color-std-ink);
	border-radius: var(--std-radius-button);
	color: var(--color-std-ink);
	font-family: var(--font-ui);
	font-size: var(--std-ui);
	font-weight: 600;
	text-decoration: none;
}

.std-button-outline:hover {
	background: var(--color-std-tint);
	color: var(--color-std-ink);
}

/* The small blue pill above a heading. */
.std-eyebrow {
	display: inline-block;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--color-std-tint);
	color: var(--color-std-link);
	font-family: var(--font-ui);
	font-size: var(--std-ui-small);
	font-weight: 600;
}

/* Status chips: green In force, amber Not yet law, neutral for an ended
 * text. The label carries the meaning, never the colour alone. */
.std-chip {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 26px;
	padding: 0 10px;
	border: 1px solid var(--color-std-ended-line);
	border-radius: 999px;
	background: var(--color-std-ended-bg);
	color: var(--color-std-ended-ink);
	font-family: var(--font-ui);
	font-size: var(--std-ui-small);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	hyphens: none;
}

.std-chip--law {
	border-color: var(--color-std-law-line);
	background: var(--color-std-law-bg);
	color: var(--color-std-law-ink);
}

.std-chip--pending {
	border-color: var(--color-std-pending-line);
	background: var(--color-std-pending-bg);
	color: var(--color-std-pending-ink);
}

@media (max-width: 1100px) {
	.std-h1 {
		font-size: var(--std-h1-narrow);
	}
}

@media (max-width: 760px) {
	.std-wrap {
		padding-inline: var(--std-gutter-phone);
	}

	.std-section {
		padding-block: calc(var(--std-section) * 0.6);
	}

	.std-h1 {
		font-size: var(--std-h1-phone);
		line-height: 1.1;
	}

	.std-h2 {
		font-size: var(--std-h2-phone);
	}

	/* Chips wrap rather than push a phone row sideways. */
	.std-chip {
		white-space: normal;
	}
}

/* src-astro/css/components/site-header.css */
/*
 * The shared header of every page outside the reader (ProductHeader.astro),
 * as the release B.1 boards draw it: light, a hairline rule beneath, the
 * mark and name on the left, three links centred and the one filled button
 * on the right. Below 960px the links fold behind Menu into a row beneath;
 * the name, the button and Menu stay on one line. The reader keeps the dark
 * masthead (product-header.css).
 */

.site-header {
	border-bottom: 1px solid var(--color-std-hairline);
	background: var(--color-std-bg);
	color: var(--color-std-ink);
	font-family: var(--font-ui);
	hyphens: none;
}

.site-header__row {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: var(--space-2xl);
	max-width: var(--std-page-max);
	margin-inline: auto;
	padding: var(--space-md) var(--std-gutter);
}

.site-header__brand {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	min-height: var(--touch-target-min);
	color: var(--color-std-ink);
	font-size: var(--std-ui-large);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__brand:hover {
	color: var(--color-std-ink);
}

.site-header__brand img {
	display: block;
	width: 24px;
	height: 24px;
	border-radius: var(--radius-sm);
}

.site-header__nav {
	display: flex;
	flex: 1;
	justify-content: center;
	gap: 36px;
	font-size: var(--std-ui);
	white-space: nowrap;
}

.site-header__nav[hidden] {
	display: none;
}

.site-header__nav a {
	display: inline-flex;
	align-items: center;
	min-height: var(--touch-target-min);
	color: var(--color-std-ink);
	text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

.site-header__cta {
	flex: none;
}

.site-header__cta-short {
	display: none;
}

.site-header__menu {
	display: none;
}

/* Visibility follows the breakpoint handler (lib/features/product-menu.ts),
 * which moves focus before hiding this button. */
.site-header__menu:not([hidden]) {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: var(--touch-target-min);
	min-height: var(--touch-target-min);
	padding: 0 var(--space-sm);
	border: 1px solid var(--color-std-line-strong);
	border-radius: var(--std-radius-button);
	background: transparent;
	color: var(--color-std-ink);
	font: inherit;
	font-size: var(--std-ui);
	font-weight: 600;
	cursor: pointer;
}

.site-header__menu[aria-expanded="true"] {
	background: var(--color-std-tint);
}

.site-header a:focus-visible,
.site-header__menu:focus-visible {
	outline: 3px solid var(--color-std-link);
	outline-offset: 2px;
}

@media (max-width: 959px) {
	.site-header__row {
		flex-wrap: wrap;
		gap: var(--space-sm);
		padding: var(--space-sm) var(--std-gutter-phone);
	}

	.site-header__brand {
		margin-inline-end: auto;
	}

	/* Source order is brand, Menu, links, button; on phones the button
	 * sits before Menu on the first line. */
	.site-header__cta {
		order: 1;
	}

	.site-header__menu:not([hidden]) {
		order: 2;
	}

	/* The links open as a row beneath; without JavaScript it stays open. */
	.site-header__nav {
		order: 3;
		flex-basis: 100%;
		flex-direction: column;
		gap: 0;
		padding-block: var(--space-xs) var(--space-sm);
		border-top: 1px solid var(--color-std-hairline);
	}

	.site-header__nav a {
		padding-inline: var(--space-xs);
	}
}

/* At phone widths the button keeps its place under its short label. */
@media (max-width: 520px) {
	.site-header__brand {
		gap: var(--space-sm);
		font-size: var(--std-ui);
	}

	.site-header__cta {
		padding-inline: 14px;
	}

	.site-header__cta-long {
		display: none;
	}

	.site-header__cta-short {
		display: inline;
	}
}

/* workers/accounts/styles/accounts.css */
/*
 * What the account pages and the operator console add to the page
 * standard (src-astro/css/components/page-standard.css). The build
 * (scripts/accounts/build-assets.js) places this after the site's tokens,
 * faces, page standard and header, so every colour, size and family here
 * is a token.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--color-std-bg);
	color: var(--color-std-ink);
	font-family: var(--font-ui);
	font-size: var(--std-ui);
	line-height: 1.45;
}

.acc-header .acc-nav {
	justify-content: flex-start;
}

.acc-who {
	display: flex;
	gap: var(--space-sm);
	align-items: center;
	margin-left: auto;
	color: var(--color-std-muted);
	font-size: var(--std-ui-small);
	white-space: nowrap;
}

.acc-inline {
	display: inline;
}

.acc-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-std-link);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.acc {
	padding-block: 56px 88px;
}

.acc--narrow {
	max-width: 560px;
}

.acc .std-h1 {
	font-size: var(--std-h2);
	line-height: 1.12;
}

.acc .std-lede {
	margin: 14px 0 36px;
}

.acc-kick {
	margin: 0 0 14px;
}

.acc-card {
	margin: 0 0 20px;
	padding: 26px 28px;
	border: 1px solid var(--color-std-line);
	border-radius: var(--std-radius-card);
	background: var(--color-std-surface);
}

.acc-card .std-h3 {
	margin: 0 0 16px;
}

.acc-card p,
.acc-card li {
	max-width: 62ch;
	margin: 0 0 12px;
	color: var(--color-std-body);
	font-family: var(--font-body);
	font-size: var(--std-text-small);
}

.acc-card ol {
	margin: 0;
	padding-left: 1.3em;
}

.acc .acc-note {
	max-width: 70ch;
	margin: 14px 0 0;
	color: var(--color-std-muted);
	font-family: var(--font-ui);
	font-size: var(--std-ui-small);
}

.acc a:not(.std-button, .std-button-outline) {
	color: var(--color-std-link);
	text-underline-offset: 0.15em;
}

.acc-notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--color-std-law-line);
	border-radius: var(--std-radius-button);
	background: var(--color-std-law-bg);
	color: var(--color-std-law-ink);
	font-weight: 600;
}

.acc-notice--problem {
	border-color: var(--color-std-pending-line);
	background: var(--color-std-pending-bg);
	color: var(--color-std-pending-ink);
}

.acc dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 10px 28px;
	margin: 0;
}

.acc dt {
	color: var(--color-std-muted);
}

.acc dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.acc-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.acc-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.acc label {
	display: block;
	margin: 0 0 8px;
	font-weight: 600;
}

.acc input:not([type="hidden"]),
.acc select {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1.5px solid var(--color-std-muted);
	border-radius: var(--std-radius-button);
	background: var(--color-std-surface);
	color: var(--color-std-ink);
	font-family: inherit;
	font-size: var(--std-text-small);
}

.acc input:focus-visible,
.acc select:focus-visible,
.acc button:focus-visible {
	outline: 3px solid var(--color-std-link);
	outline-offset: 2px;
}

.acc button {
	cursor: pointer;
}

.acc button.std-button {
	border: 0;
}

.acc button.std-button-outline {
	background: var(--color-std-surface);
}

.acc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: end;
}

.acc-row > div {
	flex: 1 1 180px;
}

.acc-row > .acc-fit {
	flex: 0 0 auto;
}

.acc-row--next {
	margin-top: 18px;
}

.acc table {
	width: 100%;
	border-collapse: collapse;
}

.acc th {
	color: var(--color-std-muted);
	font-size: var(--std-ui-small);
	font-weight: 600;
	text-align: left;
}

.acc th,
.acc td {
	padding: 14px 12px 14px 0;
	border-bottom: 1px solid var(--color-std-hairline);
	vertical-align: top;
}

.acc tr:last-child td {
	border-bottom: 0;
}

.acc td small {
	display: block;
	color: var(--color-std-muted);
	font-size: var(--std-ui-small);
	overflow-wrap: anywhere;
}

.acc-acts-cell {
	white-space: nowrap;
}

.acc .acc-mini {
	min-height: 36px;
	padding: 0 14px;
	border-width: 1px;
	font-size: var(--std-ui-small);
}

.acc .acc-quiet {
	border-color: var(--color-std-line-strong);
	font-weight: 400;
}

.acc-mono {
	display: block;
	padding: 12px 14px;
	border-radius: var(--std-radius-button);
	background: var(--color-std-tint);
	font-family: var(--font-mono);
	font-size: 0.9375rem;
	overflow-wrap: anywhere;
}

.acc-opbar {
	border-bottom: 1px solid var(--color-std-pending-line);
	background: var(--color-std-pending-bg);
	color: var(--color-std-pending-ink);
	font-size: var(--std-ui-small);
	font-weight: 600;
}

.acc-opbar .std-wrap {
	padding-block: 9px;
}

.acc-foot {
	border-top: 1px solid var(--color-std-hairline);
	color: var(--color-std-muted);
	font-size: var(--std-ui-small);
}

.acc-foot .std-wrap {
	padding-block: 22px;
}

.acc-foot a {
	color: inherit;
}

@media (max-width: 760px) {
	.acc {
		padding-block: 36px 56px;
	}

	.acc-two {
		grid-template-columns: 1fr;
	}

	.acc-card {
		padding: 20px 18px;
	}

	.acc dl {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.acc dd {
		margin-bottom: 12px;
	}

	/* One scrolling row of links under the brand, never a stacked menu. */
	.acc-header {
		flex-wrap: wrap;
		gap: 8px 20px;
	}

	.acc-header .acc-nav {
		display: flex;
		flex: 1 0 100%;
		flex-direction: row;
		order: 3;
		gap: 22px;
		overflow-x: auto;
		white-space: nowrap;
	}

	.acc thead {
		display: none;
	}

	.acc tr {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid var(--color-std-hairline);
	}

	.acc td {
		display: block;
		padding: 3px 0;
		border: 0;
	}

	.acc-acts-cell {
		white-space: normal;
	}
}
