/*
Theme Name: Find A Tough Lawyer
Theme URI: https://findatoughlawyer.com
Description: Brand and presentation layer for FindAToughLawyer.com. Business rules, legal facts, leads and audit live in the fatl-core plugin and the FATL backend, never in templates.
Version: 5.36.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: fatl
*/

/* =========================================================================
   FATL design system v5 — "Clarity after impact" (D-021)

   IDEA        Editorial calm for a stressful moment: a serif that states, a sans that explains,
               warm paper, ink, one crimson for action, gold as light on dark.
   CONTAINER   One width (1200px), one gutter (20 → 40px).
   RHYTHM      One section padding (--section), one gap (--gap), one head margin (--head).
   SURFACES    Light throughout: sections alternate white / warm paper; the footer is paper.
   HERO        The product is the picture: the case-value form (NS§16 A), which becomes the summary in place.
   SHAPE       8px controls, 16px cards, 24px tool panel, pills only for choice chips.
   TYPE        Source Serif 4 for headings (italic crimson line only in the hero). Inter for everything else.
   COLOUR      Crimson = primary action, selection and the italic hero line. Green = "checked".
   MOTION      Hero entrance, scroll reveal, card and panel transitions. All off under reduced motion.
   ========================================================================= */

:root {
	/* Client design direction (D-033): deep navy ground, gold accent, cream text.
	   Semantic tokens first; the legacy names below are aliases so existing rules keep working. */
	--bg: var(--wp--preset--color--bg, #07162C);
	--bg-raised: var(--wp--preset--color--bg-raised, #091A32);
	--surface: var(--wp--preset--color--surface, #10233E);
	--text: var(--wp--preset--color--text, #EDF4FF);
	--text-strong: var(--wp--preset--color--text-strong, #FFFFFF);
	--text-muted: var(--wp--preset--color--text-muted, #B6C5D9);
	--accent: var(--wp--preset--color--accent, #DFBD69);
	--accent-strong: var(--wp--preset--color--accent-strong, #D4AF52);
	--accent-ink: var(--wp--preset--color--accent-ink, #07162C);

	/* Legacy aliases — same names the components already use, new meanings. */
	--ink: var(--text);
	--ink-800: var(--text-strong);
	--ink-700: #C9D4E3;
	--ink-500: var(--text-muted);
	--line: var(--wp--preset--color--line, #2B405D);
	--line-strong: var(--wp--preset--color--line-strong, #45688A);
	--paper: var(--bg);
	--white: var(--surface);
	--red: var(--accent);
	--red-dark: var(--accent-strong);
	--red-tint: rgba(223, 189, 105, .12);
	/* His bands, taken from his stylesheet rather than sampled from a screenshot. */
	--band: var(--wp--preset--color--band, #0E315A);
	--trust: var(--wp--preset--color--trust, #102943);
	--promise: var(--wp--preset--color--promise, #E4C273);
	--hotspot: #FF4D59;
	/* Emergency guidance is not brand decoration: it keeps its own colour so it cannot be mistaken
	   for the gold promise bar. */
	--alert: #B3202E;
	--alert-ink: #FFFFFF;
	--gold: var(--accent);
	--green: var(--wp--preset--color--verified, #4ADE80);

	--serif: var(--wp--preset--font-family--display, Georgia, "Times New Roman", serif);
	--sans: var(--wp--preset--font-family--body, Arial, Helvetica, system-ui, sans-serif);

	--t-xs: .8125rem;
	--t-sm: .9375rem;
	--t-base: 1rem;
	--t-lg: 1.125rem;
	--t-h3: 1.375rem;
	--t-h2: clamp(2rem, 1.4rem + 2vw, 3.25rem);
	--t-h1: clamp(2.75rem, 1.5rem + 4.6vw, 5.5rem);

	--max: 1200px;
	--gutter: 20px;
	--gap: 16px;
	--head: 36px;
	--section: 72px;
	/* Below 1024px the sticky header is two rows (lockup, then the scrolling nav); anchors must clear both. */
	--header-h: 108px;

	--r-sm: 8px;
	--r: 16px;
	--r-lg: 24px;
	/* On a dark ground, depth comes from borders; shadows only deepen the ground. */
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
	--shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 40px 80px -32px rgba(0, 0, 0, .75);
	--ring: 0 0 0 4px rgba(228, 194, 115, .28);
	--ease: cubic-bezier(.16, 1, .3, 1);
}


@media (min-width: 640px) {
	:root { --gutter: 32px; --gap: 20px; --head: 44px; --section: 96px; --header-h: 140px; }
}
@media (min-width: 1024px) {
	:root { --gutter: 40px; --gap: 24px; --head: 56px; --section: 128px; --header-h: 76px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); interpolate-size: allow-keywords; }
body { margin: 0; background: var(--white); color: var(--ink-700); font: 400 var(--t-base)/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.center { margin-top: 48px; text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 100; top: 8px; left: 8px; width: auto; height: auto; padding: 10px 16px; clip-path: none; border-radius: var(--r-sm); background: var(--white); color: var(--ink); }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-sm);
	font: 600 var(--t-base)/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.button .icon { transition: transform .3s var(--ease); }
.button:hover .icon:last-child { transform: translateX(3px); }
.button--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -14px rgba(228, 194, 115, .8); }
.button--primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.button--secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button--secondary:hover { border-color: var(--accent); color: var(--accent); }
.button--quiet { padding-inline: 12px; background: transparent; color: var(--ink-700); }
.button--quiet:hover { color: var(--accent); background: var(--surface); }
.button--quiet:hover .icon:last-child { transform: none; }
.button--sm { min-height: 42px; padding: 0 18px; font-size: var(--t-sm); }
.button--block { width: 100%; }
/* A button never runs past its container: on a narrow phone a long label wraps to a second line instead. */
.button { max-width: 100%; }
@media (max-width: 559px) { .button { white-space: normal; padding-block: 12px; line-height: 1.25; text-align: center; } }
.button[disabled] { opacity: .4; box-shadow: none; cursor: not-allowed; }
.button[disabled]:hover { background: var(--red); }
.button[disabled]:hover .icon { transform: none; }

/* ---------- text components ---------- */
/* His eyebrow is plain gold text with wide tracking — no rule, no flex. */
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
@media (max-width: 639px) { .eyebrow { gap: 10px; font-size: .6875rem; letter-spacing: .1em; } .eyebrow::before { width: 20px; } }
.section__title { max-width: 18ch; font-size: var(--t-h2); }
.section__lead { max-width: 56ch; margin-top: 20px; font-size: var(--t-lg); line-height: 1.6; }
.section__head { margin-bottom: var(--head); }
.section__head--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section__head--center .section__title { max-width: 20ch; }
.section__head--row { display: grid; gap: 16px; }
.section__head--row .section__lead { margin-top: 0; color: var(--ink-500); }
@media (min-width: 1024px) {
	.section__head--row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 64px; }
}
.fineprint { color: var(--ink-500); font-size: var(--t-xs); }

.ticks { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.ticks .icon { width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: rgba(18, 183, 106, .12); color: var(--green); stroke-width: 2.4; }

.notice { margin-top: 28px; padding: 16px 20px; border-left: 2px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--white); font-size: var(--t-sm); }

/* ---------- forms ---------- */
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.field label { color: var(--ink); font-size: var(--t-sm); font-weight: 600; }
.field__opt { margin-left: 6px; color: var(--ink-500); font-weight: 400; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
	width: 100%; max-width: 100%; min-width: 0; min-height: 50px; padding: 0 14px;
	border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white);
	color: var(--ink); font: 400 var(--t-base)/1.4 var(--sans);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 116px; padding: 12px 14px; resize: vertical; }
/* A select is as wide as its longest option unless told otherwise — on a phone that pushed a whole intake step off-screen. */
select {
	appearance: none; padding-right: 40px; cursor: pointer; text-overflow: ellipsis;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236B7080' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
::placeholder { color: var(--ink-500); opacity: 1; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--red); }

/* ---------- select enhancement (non-touch devices; touch keeps the native picker) ---------- */
.fsel { position: relative; }
.fsel__native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.fsel__button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); color: var(--ink); font: 400 var(--t-base)/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.fsel__button:hover { border-color: var(--ink-500); }
.fsel__button:focus-visible, .fsel.is-open .fsel__button { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
.fsel__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel.is-placeholder .fsel__value { color: var(--ink-500); }
.fsel__chev { flex: none; width: 18px; height: 18px; color: var(--ink-500); transition: transform .3s var(--ease); }
.fsel.is-open .fsel__chev { transform: rotate(180deg); }
.fsel__pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: max(100%, 240px); padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 28px 56px -16px rgba(12, 13, 16, .3), 0 2px 6px rgba(12, 13, 16, .06); transform-origin: top left; animation: pop .2s var(--ease) both; }
.fsel--up .fsel__pop { top: auto; bottom: calc(100% + 8px); transform-origin: bottom left; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.fsel .fsel__search { min-height: 42px; margin-bottom: 6px; padding-left: 38px; border-color: transparent; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B7080' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.6-4.6'/%3E%3C/svg%3E") no-repeat 12px center; font-size: var(--t-sm); }
.fsel .fsel__search:focus { border-color: transparent; box-shadow: none; background-color: #EFECE5; }
.fsel__list { position: relative; max-height: 296px; margin: 0; padding: 0; overflow-y: auto; list-style: none; outline: none; overscroll-behavior: contain; scrollbar-width: thin; }
.fsel__option { position: relative; padding: 10px 38px 10px 12px; border-radius: 8px; color: var(--ink); font-size: var(--t-sm); line-height: 1.35; cursor: pointer; }
.fsel__option.is-active { background: var(--paper); }
.fsel__option--placeholder { color: var(--ink-500); }
.fsel__option[aria-selected="true"] { color: var(--red); font-weight: 600; }
.fsel__option[aria-selected="true"]::after { content: ""; position: absolute; top: 50%; right: 12px; width: 16px; height: 16px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A51C30' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(7, 22, 44, .86); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
/* Below the desktop breakpoint the lockup keeps its own row and the nav scrolls beneath it (D-033). */
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; height: auto; padding-block: 14px; }
.site-header__inner .logo { margin-right: auto; }
body.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { body.admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }


/* His mobile header (D-033): the four items scroll horizontally under the lockup rather than hiding
   behind a hamburger, so the whole site is one tap away on a phone. */
.site-nav { display: block; order: 4; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
/* The nav scrolls sideways on phones; fade its right edge so a cut-off item reads as "more", not as broken. */
@media (max-width: 1023px) {
	.site-nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
	.site-nav__list { padding-right: 36px; }
}
.site-nav__list { white-space: nowrap; }
.site-nav__list { display: flex; gap: clamp(20px, 2.2vw, 34px); margin: 0; padding: 0; list-style: none; }
.site-nav__list a { position: relative; display: block; padding: 8px 0; color: var(--ink-700); font-size: var(--t-sm); font-weight: 500; text-decoration: none; transition: color .2s var(--ease); }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav__list a:hover { color: var(--ink); }
.site-nav__list a:hover::after { transform: scaleX(1); }
.site-nav .sub-menu { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-header__actions .button { display: none; }
.site-header__phone { display: none; color: var(--ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; }

.menu-toggle { display: none; order: 3; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 16px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .25s var(--ease), background-color .25s var(--ease); }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }
.is-open .menu-toggle__bars { background: transparent; }
.is-open .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.is-open .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-header.is-open { background: var(--white); }
.site-header.is-open .site-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-lg); }
.site-header.is-open .site-nav__list { flex-direction: column; gap: 0; }
.site-header.is-open .site-nav__list a { padding: 16px 0; border-bottom: 1px solid var(--line); font: 400 1.375rem/1.2 var(--serif); color: var(--ink); }
.site-header.is-open .site-nav__list a::after { display: none; }
html:not(.js) .menu-toggle { display: none; }
/* No padding of its own: a different value here made the header change height when app.js added .js, shifting every page. */
html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; }
html:not(.js) .site-nav { display: block; order: 4; width: 100%; overflow-x: auto; }

@media (min-width: 560px) { .site-header__actions .button { display: inline-flex; } }
@media (min-width: 768px) { .site-header__phone { display: inline; } }
@media (min-width: 1024px) {
	.site-header__inner, html:not(.js) .site-header__inner { display: grid; grid-template-columns: auto 1fr auto; column-gap: 32px; height: var(--header-h); padding-block: 0; }
	.site-nav { order: 0; width: auto; overflow: visible; }
	.site-header__inner .menu-toggle { display: none; }
	.site-nav, html:not(.js) .site-nav { display: block; order: 0; justify-self: center; width: auto; }
	.site-header__actions { justify-self: end; margin-left: 0; }
}

/* ---------- hero: the product is the picture ----------
   Left: the promise. Right: the case factor tool itself, working in place. Light, like the rest of the page. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 72px; background: var(--white); }
.hero::before { content: ""; position: absolute; z-index: -1; top: -20%; right: -10%; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(165, 28, 48, .07), transparent 70%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(12, 13, 16, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 0%, transparent 45%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 45%, #000 80%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero .eyebrow { letter-spacing: .1em; }
.hero__title { font-size: clamp(2.5rem, 1rem + 3.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.02em; text-wrap: initial; }
/* His emphasis is roman gold, not italic (D-033). */
.hero__title em { display: block; color: var(--accent); font-style: normal; }
.hero__lead { max-width: 46ch; margin-top: 18px; font-size: 1rem; line-height: 1.6; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--ink-700); font-size: var(--t-sm); font-weight: 500; }
.hero__trust li, .hero__trust a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.hero__trust .icon { color: var(--red); }

.hero__disclaimer { max-width: 50ch; margin-top: 18px; color: var(--ink-500); font-size: var(--t-xs); line-height: 1.55; }

@media (min-width: 640px) {
	.hero { padding: 64px 0 96px; }
	.hero__lead { margin-top: 24px; font-size: var(--t-lg); line-height: 1.65; }
	.hero__trust { gap: 10px 24px; margin-top: 28px; }
}
@media (min-width: 1024px) {
	.hero { display: flex; align-items: center; min-height: min(calc(100svh - var(--header-h)), 820px); padding: 56px 0 88px; }
	.hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(40px, 5vw, 80px); }
	.hero__title { white-space: nowrap; }
}

/* Entrance — staged, once. */
/* The hero copy slides in; it does not fade in. Animating it from opacity 0 made the <h1> —
   the largest contentful paint on the page — invisible for up to 1.3s, and left the whole hero
   blank to anything that captures a page without waiting: a screenshot, a social preview, a
   crawler. Found by rendering in Gecko, which honours the animation; headless Blink reports
   prefers-reduced-motion and had been skipping it entirely. Movement is the effect worth
   having, and it costs nothing to keep the text readable throughout. */
@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }
/* Same reasoning as rise above, and it matters more here: this is the card the page exists to
   get someone into. A quarter-second delay plus a one-second fade left the only thing anyone
   is meant to do invisible for over a second on every load. It rises into place instead. */
@keyframes card-in { from { transform: translateY(32px) scale(.98); } to { transform: none; } }
.motion .hero__copy > * { animation: rise .9s var(--ease) both; }
.motion .hero__copy > :nth-child(1) { animation-delay: .05s; }
.motion .hero__copy > :nth-child(2) { animation-delay: .15s; }
.motion .hero__copy > :nth-child(3) { animation-delay: .28s; }
.motion .hero__copy > :nth-child(n+4) { animation-delay: .4s; }
.motion .hero .casecard { animation: card-in 1s var(--ease) .25s both; }

/* ---------- value strip ---------- */
.valuestrip { border-block: 1px solid var(--line); background: var(--paper); }
.valuestrip__grid { display: grid; gap: 24px; padding-block: 36px; }
.valuestrip__item { display: flex; gap: 14px; align-items: flex-start; }
.valuestrip__item > .icon { padding: 9px; width: 42px; height: 42px; border-radius: 12px; background: var(--white); color: var(--red); }
.valuestrip__item h2 { font: 600 var(--t-base)/1.35 var(--sans); letter-spacing: 0; }
.valuestrip__item p { margin-top: 2px; color: var(--ink-500); font-size: var(--t-sm); line-height: 1.5; }
@media (min-width: 640px) { .valuestrip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; } }
@media (min-width: 1100px) { .valuestrip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 44px; } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }

.split { display: grid; gap: 48px; }
@media (min-width: 1024px) {
	.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
	.split__copy { position: sticky; top: calc(var(--header-h) + 40px); }
	.split--tool { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
	.split--standards { align-items: center; }
	.split--faq { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
}

/* ---------- hero case card: form ⇄ summary in one card ---------- */
.casecard { position: relative; z-index: 2; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 2px 6px rgba(12, 13, 16, .04), 0 50px 100px -40px rgba(12, 13, 16, .35); }
.casecard.is-pinged { animation: ping-card .9s var(--ease); }
@keyframes ping-card { 0% { box-shadow: 0 0 0 0 rgba(165, 28, 48, .35), 0 50px 100px -40px rgba(12, 13, 16, .35); } 100% { box-shadow: 0 0 0 14px rgba(165, 28, 48, 0), 0 50px 100px -40px rgba(12, 13, 16, .35); } }
.casecard__form, .casecard__summary { display: grid; gap: 16px; outline: none; }
.casecard__form[hidden], .casecard__summary[hidden] { display: none; }
.casecard__summary:not([hidden]) { animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.casecard__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.casecard__title { color: var(--ink); font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.01em; }
.casecard__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: .75rem; font-weight: 500; white-space: nowrap; }
.casecard__meta .icon { color: var(--green); }
.casecard__grid { display: grid; gap: 12px; }
.casecard .field label { font-size: .8125rem; }
.casecard .button { min-height: 54px; }
.casecard__note { color: var(--ink-500); font-size: var(--t-xs); text-align: center; }
.casecard__edit { padding: 0; border: 0; background: none; color: var(--red); font: 600 var(--t-sm)/1 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.field.is-missing select, .field.is-missing .fsel__button { border-color: var(--red); box-shadow: var(--ring); }
.field.is-missing label::after { content: " — please choose"; color: var(--red); font-weight: 500; }

.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--line); }
.summary div { padding: 10px 14px; background: var(--white); }
.summary .summary__wide { grid-column: 1 / -1; }
.summary dt { color: var(--ink-500); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.summary dd { margin: 2px 0 0; color: var(--ink); font-size: var(--t-sm); font-weight: 600; }
.summary__label { color: var(--ink-500); font-size: var(--t-xs); }
.summary__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 0; padding: 0; list-style: none; }
.summary__tags li { padding: 5px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--ink-700); font-size: .75rem; font-weight: 500; }
.summary__data { padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); font-size: var(--t-xs); line-height: 1.55; }

@media (min-width: 480px) {
	.casecard { padding: 28px; }
	.casecard__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.casecard__grid .field:last-child { grid-column: 1 / -1; }
}

/* ---------- chips (explorer regions) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 .875rem/1 var(--sans); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: var(--white); }

/* ---------- body map ---------- */
.hot__dot { fill: var(--white); stroke: var(--red); stroke-width: 2.5; transition: fill .25s var(--ease); }
.hot__ring { fill: var(--red); opacity: 0; transform-box: fill-box; transform-origin: center; }
.motion .hot__ring { animation: ping 2.8s var(--ease) infinite; }
@keyframes ping { 0% { opacity: .3; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.9); } }

/* ---------- injury explorer ---------- */
@media (min-width: 640px) { .explorer__figure .bodymap { width: 160px; } }

.explorer__label { margin: 24px 0 12px; color: var(--ink-500); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.outcomes { margin-top: 18px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--paper); }
.outcomes__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.outcomes__label { color: var(--ink); font-size: var(--t-sm); font-weight: 600; }
.outcomes__status { padding: 4px 10px; border-radius: 999px; background: var(--white); color: var(--ink-500); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.outcomes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 12px; }
.outcomes__grid span { display: grid; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--white); }
.outcomes__grid b { color: var(--ink-500); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.outcomes__grid i { width: 70%; height: 10px; border-radius: 5px; background: var(--line); }
.outcomes__note { color: var(--ink-700); font-size: var(--t-xs); line-height: 1.55; }

.factorlist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.factorlist li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); line-height: 1.5; }
.factorlist strong { display: block; color: var(--ink); }
.factorlist__icon { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--red-tint); color: var(--red); }

@media (min-width: 640px) {
	.factorlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
	.explorer__detail { padding: 32px; }
}
@media (min-width: 1024px) {
	.explorer { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
	.explorer__figure { position: sticky; top: calc(var(--header-h) + 32px); padding: 40px 24px 28px; }
	.explorer__figure .bodymap { width: 210px; }
}

/* ---------- accident directory ---------- */
.accidents { display: grid; gap: 12px; }
.accident { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid transparent; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); color: var(--ink-700); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.accident:hover { box-shadow: var(--shadow-lg); color: var(--ink-700); transform: translateY(-3px); }
.accident__icon { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--red-tint); color: var(--red); transition: background-color .3s var(--ease), color .3s var(--ease); }
.accident:hover .accident__icon { background: var(--red); color: var(--white); }
.accident__body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.accident__title { color: var(--ink); font: 600 1.125rem/1.25 var(--serif); }
.accident__text { font-size: var(--t-xs); line-height: 1.45; }
.accident__go { flex: none; color: var(--ink-500); transition: color .3s var(--ease), transform .3s var(--ease); }
.accident:hover .accident__go { color: var(--red); transform: translateX(3px); }
.topiclinks { margin-top: 24px; color: var(--ink-500); font-size: var(--t-sm); }
.topiclinks a { margin-left: 10px; color: var(--ink); font-weight: 600; }
@media (min-width: 640px) { .accidents { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) {
	.accidents { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.accident { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px 20px; }
	.accident__go { margin-top: auto; }
}

/* ---------- how it works ---------- */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.step__num { position: absolute; top: 22px; right: 26px; color: #948B7E; /* large text: 3.36:1 on white (WCAG 1.4.3) */ font: 400 2.75rem/1 var(--serif); }
.step__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 28px; border-radius: 14px; background: var(--red-tint); color: var(--red); }
.step__title { font-size: 1.3125rem; }
.step__text { margin-top: 10px; font-size: var(--t-sm); }
@media (min-width: 900px) {
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.step:not(:last-child)::after { content: ""; position: absolute; top: 54px; right: -18px; z-index: 1; width: 12px; height: 12px; border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: rotate(45deg); }
}

/* ---------- research ---------- */
.research { display: grid; gap: 16px; }
.report { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.report__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.report__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-tint); color: var(--red); }
.report__status { padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-500); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.report__title { font-size: 1.25rem; }
.report__text { margin-top: 8px; font-size: var(--t-sm); }
.report__source { margin-top: auto; padding-top: 16px; color: var(--ink-500); font-size: .75rem; line-height: 1.5; }
.report__source span { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .6875rem; }
@media (min-width: 640px) { .research { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .split--research { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); } }

/* ---------- grid + card (topics, guides, reviewers) ---------- */
.grid { display: grid; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid__note { margin-top: 24px; color: var(--ink-500); font-size: var(--t-sm); }

.card { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink-700); }
.card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 28px; border-radius: 14px; background: var(--paper); color: var(--red); transition: background-color .35s var(--ease), color .35s var(--ease); }
.card__kicker { margin-bottom: 8px; color: var(--ink-500); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.card__title { font-size: var(--t-h3); }
.card__title a { color: inherit; text-decoration: none; }
.card__text { margin-top: 10px; font-size: var(--t-sm); }
.card__more, .card__status { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; font-size: var(--t-sm); font-weight: 600; }
.card__more { color: var(--ink); }
.card__more .icon { transition: transform .3s var(--ease); }
.card__status { color: var(--ink-500); font-weight: 500; }
.card__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 163, 92, .18); }
.card--link { text-decoration: none; transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.card--link:hover { border-color: transparent; box-shadow: var(--shadow-lg); color: var(--ink-700); transform: translateY(-4px); }
.card--link:hover .card__icon { background: var(--red); color: var(--white); }
.card--link:hover .card__more { color: var(--red); }
.card--link:hover .card__more .icon { transform: translateX(4px); }
.section--paper .card { border-color: transparent; box-shadow: var(--shadow); }
@media (max-width: 639px) {
	.grid--3 > .card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-content: start; padding: 20px; }
	.grid--3 > .card > * { grid-column: 2; }
	.grid--3 > .card > .card__icon { grid-column: 1; grid-row: 1 / span 6; width: 48px; height: 48px; margin: 0; }
	.grid--3 > .card .card__title { font-size: 1.1875rem; }
	.grid--3 > .card .card__text { margin-top: 6px; }
	.grid--3 > .card :is(.card__more, .card__status) { padding-top: 12px; }
}
@media (min-width: 640px) { .card { padding: 32px; } }

.person__photo { width: 72px; height: 72px; margin-bottom: 20px; border-radius: 50%; object-fit: cover; }
.person__bar { margin-top: 12px; color: var(--ink-500); font-size: var(--t-xs); }

/* Reviewed-by badge and proof line (the only ways a claim or figure can appear) */
.reviewed { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: var(--ink-700); font-size: var(--t-xs); }
.reviewed__check { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E") center/100% no-repeat; }
.reviewed__meta { display: block; color: var(--ink-500); }
.proof { margin-top: 10px; color: var(--ink-500); font-size: var(--t-xs); }
.proof__sep { margin-inline: 6px; }
.stat { margin: 0; }
.stat__value { display: block; color: var(--ink); font: 400 var(--t-h2)/1.1 var(--serif); }
.stat__label { margin-top: 4px; font-size: var(--t-sm); }

/* ---------- research: pipeline ---------- */
.pipeline { position: relative; display: grid; gap: 4px; margin: 36px 0 0; padding: 0; list-style: none; }
.pipeline li { position: relative; display: flex; gap: 18px; padding: 14px 0; }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 62px; bottom: -10px; width: 1px; background: var(--line-strong); }
.pipeline__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--red-tint); color: var(--red); }
.pipeline h3 { font-size: 1.25rem; }
.pipeline p { margin-top: 4px; font-size: var(--t-sm); }


/* ---------- request form (on ink) ---------- */
.formcard { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-lg); color: var(--ink-700); }
.formcard__title { font-size: 1.625rem; font-weight: 400; }
.formcard form { display: grid; gap: 16px; }
.alert { margin: 16px 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-size: var(--t-sm); }
.alert--error { border-color: var(--red); color: var(--text-strong); }
.alert[hidden] { display: none; }
@media (min-width: 560px) {
	.formcard { padding: 36px; }
	.field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; color: var(--ink); font: 400 1.25rem/1.35 var(--serif); list-style: none; cursor: pointer; transition: color .2s var(--ease); }
.faq__item summary:hover { color: var(--red); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .3s var(--ease), background-color .3s var(--ease); }
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle { border-color: var(--red); background: var(--red); }
.faq__item[open] .faq__toggle::before, .faq__item[open] .faq__toggle::after { background: var(--white); }
.faq__item[open] .faq__toggle::after { transform: rotate(0); }
.faq__item p { max-width: 62ch; padding: 0 0 24px; }
@media (min-width: 640px) { .faq__item p { padding: 0 56px 26px 0; } }
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }

/* ---------- footer ---------- */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); background: var(--paper); color: var(--ink-700); font-size: var(--t-sm); }
.site-footer .logo { color: var(--ink); }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.site-footer__grid > :first-child, .site-footer__grid > :last-child { grid-column: 1 / -1; }
.site-footer h2 { margin-bottom: 18px; color: var(--ink); font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.site-footer__tagline { max-width: 34ch; margin: 18px 0 22px; }
.site-footer__grid > div:first-child .site-footer__tagline { margin-bottom: 0; }
.site-footer__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.site-footer__list a { color: var(--ink-700); text-decoration: none; transition: color .2s var(--ease); }
.site-footer__list a:hover { color: var(--red); }
.site-footer__disclosure { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-500); font-size: var(--t-xs); line-height: 1.7; }
.site-footer__disclosure strong { color: var(--ink); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; color: var(--ink-500); font-size: var(--t-xs); }
@media (min-width: 1024px) {
	.site-footer { padding-top: 96px; }
	.site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 56px; }
	.site-footer__grid > :first-child, .site-footer__grid > :last-child { grid-column: auto; }
}

/* =========================================================================
   Inner pages (Day 5, D-024): one header, one article layout, one document layout.
   ========================================================================= */

/* ---------- page header + breadcrumbs ---------- */
.pagehead { padding: 36px 0 44px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper), var(--white)); }
.pagehead__title { max-width: 22ch; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.02em; }
.pagehead__lead { max-width: 62ch; margin-top: 18px; font-size: var(--t-lg); line-height: 1.6; }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 1024px) { .pagehead { padding: 48px 0 64px; } }

.crumbs { margin-bottom: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0; padding: 0; list-style: none; color: var(--ink-500); font-size: var(--t-xs); }
/* The separator trails the item before it, so a wrapped crumb never starts its line with a stray "/". */
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-500); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.hero .crumbs { margin-bottom: 20px; }

.reviewline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 22px; }
.reviewline .reviewed { margin: 0; }
.reviewline__by, .reviewline__meta { color: var(--ink-500); font-size: var(--t-xs); }
.reviewline__by a { color: var(--ink); font-weight: 600; }

.gatenotice { padding: 12px 0; background: #FFF4E5; color: #7A4B00; font-size: var(--t-sm); }
.safetybar { padding: 14px 0; background: var(--alert); color: var(--alert-ink); font-size: var(--t-sm); }
.safetybar strong { color: var(--alert-ink); }

/* A page header already provides the breathing room; the section after it starts sooner. */
.pagehead + .section, .pagehead + section, .safetybar + .pagehead + .section, .gatenotice + .pagehead + .section,
.page-intro + .section, .pagehead + .section--paper { padding-top: 40px; }
@media (min-width: 1024px) { .pagehead + .section { padding-top: 64px; } }
.article__main .grid--3 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1023px) { .pagehead--profile + .section .article__aside { order: -1; } }
@media (min-width: 640px) { .article__main .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.result .card__title { font-family: var(--sans); font-size: var(--t-sm); font-weight: 500; color: var(--ink-500); }

/* ---------- article layout (main + side card) ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.article > * { min-width: 0; }
.article__main > * + * { margin-top: 28px; }
.article__h2 { font-size: var(--t-h3); }
.article__terms { color: var(--ink-500); font-size: var(--t-sm); }
.article__terms span { color: var(--ink); font-weight: 600; }
@media (min-width: 1024px) {
	.article { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
	.article__aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 20px; }
}

.prose { color: var(--ink-700); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.625rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--red); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--red); color: var(--ink); font: 400 1.25rem/1.5 var(--serif); }

.asidecard { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.asidecard__title { color: var(--ink); font: 600 1.125rem/1.3 var(--serif); }
.asidecard__text { color: var(--ink-500); font-size: var(--t-sm); }
.asidecard--figure { justify-items: center; text-align: center; background: radial-gradient(70% 55% at 50% 38%, var(--red-tint), var(--white) 70%); }
.asidecard--figure .bodymap { width: 130px; }
.asidecard--figure .button { justify-self: stretch; }
.factorlist--compact { grid-template-columns: 1fr !important; gap: 10px !important; }
.factorlist--compact li { align-items: center; }

.answer { padding: 22px 24px; border-left: 3px solid var(--red); border-radius: 0 var(--r) var(--r) 0; background: var(--paper); }
.answer__label { margin-bottom: 8px; color: var(--red); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.answer__text { color: var(--ink); font-size: 1.125rem; line-height: 1.6; }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.topics__label { margin-right: 4px; color: var(--ink-500); font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.topics__link { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-size: var(--t-sm); text-decoration: none; }
.topics__link:hover { border-color: var(--red); color: var(--red); }
.corrections, .shortdisclosure { color: var(--ink-500); font-size: var(--t-xs); }
.shortdisclosure { display: flex; gap: 8px; align-items: flex-start; padding-top: 20px; border-top: 1px solid var(--line); }
.shortdisclosure .icon { margin-top: 1px; color: var(--ink-500); }

/* ---------- attorney profile ---------- */
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.profile__photo, .profile__initials { flex: none; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.profile__initials { display: grid; place-items: center; background: var(--red-tint); color: var(--red); font: 600 2.25rem/1 var(--serif); }
.profile__role { margin-top: 10px; color: var(--ink-700); font-size: var(--t-lg); }
.profile__verified { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(18, 183, 106, .1); color: #067647; font-size: var(--t-xs); font-weight: 600; }
.disclosurebox { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: var(--t-sm); }
.disclosurebox__title { margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.disclosurebox ul { margin: 0 0 10px; padding-left: 1.2em; }
.facts { display: grid; gap: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.facts > div { padding: 16px 20px; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-500); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; color: var(--ink); font-size: var(--t-sm); }
.facts dd a { display: block; margin-top: 2px; font-size: var(--t-xs); }

/* ---------- results ---------- */
.result__amount { margin: 4px 0 8px; color: var(--ink); font: 600 1.75rem/1.1 var(--serif); }
.result__amount--lg { margin-top: 18px; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.result__disclaimer { margin-top: 10px; color: var(--ink-500); font-size: var(--t-xs); }

/* ---------- call-to-action band ---------- */
.ctaband { padding-block: 56px; border-top: 1px solid var(--line); background: var(--red-tint); }
.ctaband__inner { display: grid; gap: 20px; align-items: center; }
.ctaband__title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); }
.ctaband__text { margin-top: 8px; color: var(--ink-700); }
@media (min-width: 768px) { .ctaband__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }

/* ---------- empty state ---------- */
.emptystate { display: grid; justify-items: center; gap: 14px; max-width: 620px; margin: 0 auto; padding: 40px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); text-align: center; }
.emptystate__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--red-tint); color: var(--red); }
.emptystate__title { font-size: 1.625rem; }
.emptystate__text { color: var(--ink-700); }
.emptystate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* ---------- case-value page ---------- */
.hero--tool { padding-top: 32px; }
.hero__title--page { font-size: clamp(2.25rem, 1.2rem + 3vw, 3.75rem); white-space: normal !important; }
.rules { display: grid; gap: 16px; }
.rule { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.rule__num { display: block; margin-bottom: 18px; color: var(--red); font: 400 1.75rem/1 var(--serif); }
.rule h3 { font-size: 1.1875rem; }
.rule p { margin-top: 8px; font-size: var(--t-sm); }
.clientdisclosure { display: grid; gap: 8px; margin-top: 28px; padding: 20px 22px; border-radius: var(--r); background: var(--paper); font-size: var(--t-sm); }
@media (min-width: 640px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- document layout (standards, methodology, legal) ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.doc > * { min-width: 0; }
.doc__toc { display: none; }
.doc__status { margin-bottom: 28px; padding: 14px 18px; border-radius: var(--r-sm); background: #FFF4E5; color: #7A4B00; font-size: var(--t-sm); }
.doc__section + .doc__section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.doc__section h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; font-size: 1.625rem; }
.doc__section h2 span { color: var(--red); font-size: 1rem; font-weight: 600; font-family: var(--sans); letter-spacing: .04em; }
.doc__section p, .doc__section li { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; }
.doc__section p + p { margin-top: 14px; }
.doc__list, .doc__steps { display: grid; gap: 12px; margin: 0; padding-left: 1.2em; }
.doc__steps { padding-left: 1.4em; }
@media (min-width: 1024px) {
	.doc { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; }
	.doc__toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
	.doc__toc-title { margin-bottom: 14px; color: var(--ink-500); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
	.doc__toc ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
	.doc__toc a { display: block; padding-left: 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-700); font-size: var(--t-sm); text-decoration: none; }
	.doc__toc a:hover { border-left-color: var(--red); color: var(--red); }
}

/* ---------- about page ---------- */
.dodont { display: grid; gap: 16px; }
.dodont__col { padding: 28px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.dodont__col h3 { margin-bottom: 16px; font-size: 1.375rem; }
.dodont__col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dodont__col li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.dodont__col .icon { width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: rgba(18, 183, 106, .12); color: var(--green); stroke-width: 2.4; }
.nope { position: relative; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--red-tint); }
.nope::before, .nope::after { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 1.8px; margin: -.9px 0 0 -4.5px; background: var(--red); transform: rotate(45deg); }
.nope::after { transform: rotate(-45deg); }
.facts-list { display: grid; gap: 24px; }
.facts-list h3 { font-size: 1.1875rem; }
.facts-list p { margin-top: 6px; }
@media (min-width: 768px) { .dodont { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }

/* ---------- contact ---------- */
.safetynote { margin-bottom: 28px; padding: 14px 18px; border-left: 3px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--red-tint); color: var(--ink); font-size: var(--t-sm); }
.contactline { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font: 600 1.375rem/1 var(--serif); }
.routes { display: grid; gap: 16px; }
.route { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.route__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--red-tint); color: var(--red); }
.route__title { font-size: 1.3125rem; }
.route__text { flex: 1; font-size: var(--t-sm); }
.route__soon { color: var(--ink-500); font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 768px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .routes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.site-footer__legal-links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__legal-links a { color: var(--ink-500); text-decoration: none; }
.site-footer__legal-links a:hover { color: var(--red); }

/* ---------- intake (Day 6, D-025) ---------- */
.request-page { padding-top: 32px; background: linear-gradient(180deg, var(--paper) 0, var(--white) 420px); }
.request-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.request-grid > * { min-width: 0; }
.request-grid__copy .pagehead__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); }
.request-grid__next { margin-top: 28px; padding: 20px 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.request-grid__next ol { display: grid; gap: 8px; margin: 10px 0 0; padding-left: 1.2em; font-size: var(--t-sm); }
.request-grid__copy .shortdisclosure { margin-top: 24px; }
@media (max-width: 1023px) { .request-grid__next, .request-grid__copy .ticks, .request-grid__copy .shortdisclosure { display: none; } .request-grid { gap: 20px; } }
@media (min-width: 1024px) {
	.request-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
	.request-grid__copy { position: sticky; top: calc(var(--header-h) + 32px); }
}

.intake__summary { margin: -8px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--paper); color: var(--ink-500); font-size: var(--t-xs); font-weight: 500; }
.intake__summary[hidden] { display: none; }
.intake__more { padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.intake__more > summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; color: var(--ink); font-size: var(--t-sm); font-weight: 600; cursor: pointer; list-style: none; }
.intake__more > summary::-webkit-details-marker { display: none; }
.intake__more > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.intake__more[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.intake__more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.intake__more-body { display: grid; gap: 22px; padding: 0 18px 18px; }
.intake__nav--send { display: grid; justify-items: stretch; }
.intake__nav--send .button--quiet { justify-self: center; }
.intake__fine { color: var(--ink-500); font-size: var(--t-xs); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fsel__group { padding: 12px 14px 4px; color: var(--ink-500); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fsel__group[hidden] { display: none; }

.intake { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-lg); scroll-margin-top: calc(var(--header-h) + 16px); }
.intake__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.intake__title { color: var(--ink); font: 400 1.375rem/1.2 var(--serif); }
.intake__count { color: var(--ink-500); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.intake__steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 16px 0 24px; padding: 0; list-style: none; }
.intake__steps li { height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s var(--ease); }
.intake__steps li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.intake__steps .is-done { background: var(--ink); }
.intake__steps .is-current { background: var(--red); }
.intake__carry { margin: -8px 0 20px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--red-tint); color: var(--red-dark); font-size: var(--t-xs); font-weight: 500; }
.intake__carry[hidden] { display: none; }

.intake { min-width: 0; }
.intake__step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.intake__step > *, .intake__branch > * { min-width: 0; }
.intake__step + .intake__step { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.js .intake__step { display: none; margin: 0; padding: 0; border: 0; }
.js .intake__step.is-active { display: grid; animation: panel-in .4s var(--ease) both; }
.intake__q { font-size: 1.625rem; font-weight: 400; line-height: 1.2; outline: none; }
.intake__lead { margin-top: -12px; color: var(--ink-500); font-size: var(--t-sm); }
.intake__note { color: var(--ink-500); font-size: var(--t-xs); }
.intake__note[hidden] { display: none; }
.intake__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.intake__nav .button--primary { flex: 0 1 auto; }
/* Back + Continue side by side need ~360px; below that, stack them with Continue on top. */
@media (max-width: 479px) {
	.intake__nav { flex-direction: column-reverse; align-items: stretch; }
	.intake__nav .button { width: 100%; justify-content: center; }
}
.js .intake__branch { display: none; }
.js .intake__branch.is-on { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
html:not(.js) .intake__nav { display: none; }
html:not(.js) .intake__step[data-step="2"] .intake__nav { display: flex; }

.choice__error { margin-top: 8px; color: var(--red); font-size: var(--t-xs); font-weight: 500; }
.choice__error[hidden] { display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid .fsel__button, .field.is-invalid select { border-color: var(--red); }

.consentbox { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.consentbox__label { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-700); font-size: var(--t-sm); line-height: 1.55; cursor: pointer; }
.consentbox__label input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); }
.consentbox.is-invalid { border-color: var(--red); }
.consentbox__links { margin-top: 10px; color: var(--ink-500); font-size: var(--t-xs); }
@media (min-width: 560px) { .intake { padding: 32px; } }

.formcard--cta { display: grid; gap: 16px; }
.formcard__kicker { color: var(--red); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.formcard__steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.formcard__steps li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.formcard__steps span { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red-tint); color: var(--red); font-size: var(--t-xs); font-weight: 700; }
.formcard--cta .alert { margin: 0; }
.steps--list { grid-template-columns: minmax(0, 1fr) !important; }
.steps--list .step::after { display: none; }

/* ---------- analytics consent (only when GTM is configured, D-026) ---------- */
.consentbar { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 14px; max-width: 560px; margin-left: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-lg); font-size: var(--t-sm); }
.consentbar[hidden] { display: none; }
.consentbar__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@media (max-width: 1023px) { .consentbar { bottom: calc(80px + env(safe-area-inset-bottom)); } }
/* Phones: the same words and the same two equal choices, in less of the screen — at full size the banner
   and the action bar under it covered a third of a 812px screen until a choice was made. */
@media (max-width: 559px) {
	.consentbar { left: 10px; right: 10px; gap: 10px; padding: 12px 14px; font-size: .8125rem; line-height: 1.45; }
	.consentbar__actions { flex-wrap: nowrap; }
	.consentbar__actions .button { flex: 1 1 0; min-height: 40px; padding-block: 8px; }
}

/* ---------- mobile action bar ---------- */
.sticky-bar { position: fixed; margin: 0; left: 0; right: 0; bottom: 0; z-index: 40; transition: transform .4s var(--ease); display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(7, 22, 44, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sticky-bar__item { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; }
.sticky-bar__item--primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.sticky-bar__item--primary:hover { color: var(--white); }
.sticky-bar__item small { margin-left: .35em; font-size: .8em; font-weight: 500; }
.sticky-bar.is-hidden { transform: translateY(110%); }
@media (max-width: 1023px) { body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); } }
@media (min-width: 1024px) { .sticky-bar { display: none; } }

.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- search ---------- */
.searchform { margin: 0 0 32px; }
.searchform__label { display: block; margin-bottom: 8px; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.searchform__row { display: flex; flex-wrap: wrap; gap: 10px; }
.searchform__input { flex: 1 1 16rem; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); color: var(--ink); font: inherit; font-size: var(--t-sm); }
/* Under 16px, iOS Safari zooms the whole page when the field is tapped. */
@media (max-width: 1023px) { .searchform__input { font-size: 16px; } }
.searchform__input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.searchlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.searchlist__item { padding: 20px 0; border-top: 1px solid var(--line); }
.searchlist__kind { margin: 0 0 6px; font: 600 var(--t-xs)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.searchlist__title { margin: 0 0 6px; font: 600 1.25rem/1.3 var(--serif); }
.searchlist__title a { color: var(--ink); text-decoration: none; }
.searchlist__title a:hover { color: var(--red); }
.searchlist__text { margin: 0; color: var(--ink-500); font-size: var(--t-sm); }
.emptystate { padding: 32px 0 8px; border-top: 1px solid var(--line); }
.emptystate__title { margin: 0 0 8px; font: 600 1.375rem/1.3 var(--serif); }
.emptystate__text { margin: 0 0 16px; color: var(--ink-500); }
.emptystate__links { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--t-sm); }
.asidecard__list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--t-sm); }


/* ---------- promise bar + brand lockup (his stylesheet, D-033) ---------- */
.promise { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 6%; background: var(--promise); color: #081B32; }
.promise strong { color: inherit; font: 700 clamp(1rem, 2vw, 1.35rem)/1.5 var(--sans); }
.promise span { color: inherit; font-size: var(--t-sm); font-weight: 700; }
@media (max-width: 700px) { .promise { flex-direction: column; align-items: flex-start; gap: 6px; padding: 15px 20px; } }

.logo { display: flex; align-items: center; gap: 12px; line-height: 1.2; text-decoration: none; }
.logo__mark { font: 700 29px/1 var(--serif); color: var(--accent); border: 1px solid var(--accent); padding: 12px 8px; letter-spacing: -3px; }
.logo__mark span { color: var(--text-strong); }
.logo__word { display: block; color: var(--text); font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; }
.logo__word strong { display: block; font-size: 19px; color: var(--accent); }
.logo__word small { display: block; max-width: 230px; margin-top: 6px; font-size: 10px; letter-spacing: .03em; line-height: 1.3; text-transform: none; color: var(--ink-500); }
@media (max-width: 700px) { .logo__word small { display: none; } }
/* Phones: a smaller lockup so the language switch shares its row instead of taking one of its own —
   the header is sticky, and at full size it covered a quarter of a 740px screen. */
@media (max-width: 559px) {
	.logo { gap: 10px; }
	.logo__mark { padding: 9px 6px; font-size: 22px; letter-spacing: -2px; }
	.logo__word { font-size: 11px; letter-spacing: 1.1px; }
	.logo__word strong { font-size: 15px; }
	.site-header__inner { gap: 6px 12px; padding-block: 10px 4px; }
}
@media (max-width: 359px) {
	.logo__word { letter-spacing: .8px; }
	.logo__word strong { font-size: 14px; }
	.lang-switch { padding: .3rem .55rem; }
}

/* ---------- case types grid ---------- */
.casetypes__group + .casetypes__group { margin-top: 44px; }
.casetypes__heading { margin: 0 0 16px; font: 600 var(--t-h3)/1.2 var(--serif); }
.casetypes__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.casetype { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.casetype:hover { border-color: var(--accent); transform: translateY(-2px); }
.casetype__title { font: 500 var(--t-lg)/1.25 var(--serif); }
.casetype__text { color: var(--text-muted); font-size: var(--t-sm); }
/* Phones: 36 cards repeating the same line made this a five-screen scroll. Keep the label and the action. */
@media (max-width: 559px) {
	.casetypes__grid { gap: 10px; }
	.casetype { padding: 14px 16px; gap: 4px; }
	.casetype__text { display: none; }
}
.casetype__more { margin-top: auto; padding-top: 6px; color: var(--accent); font-size: var(--t-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.casetypes__note { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: var(--t-sm); }


/* ---------- reported outcomes (third-party, sourced) ---------- */
.outcomes__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.outcome { padding: 16px 0; border-top: 1px solid var(--line); }
.outcomes__list.is-clipped > .outcome:nth-child(n+4) { display: none; }
.outcomes__more { width: 100%; margin-top: 8px; }
.outcome[tabindex="-1"] { outline: none; }
.outcome__kind { margin: 0 0 4px; font: 600 var(--t-xs)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.outcome__title { margin: 0 0 4px; font-weight: 600; }
.outcome__amount { margin: 0 0 6px; font: 600 1.375rem/1.1 var(--serif); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.outcome__text { margin: 0 0 6px; color: var(--text-muted); font-size: var(--t-sm); }
.outcome__caveat { margin: 0 0 6px; color: var(--text-muted); font-size: var(--t-xs); font-style: italic; }
.outcome__source { margin: 0; font-size: var(--t-xs); color: var(--text-muted); }
.outcome__source a { color: var(--accent); }
.outcomes__panel[hidden] { display: none; }

/* ---------- plain content (fallback template) ---------- */
.prose { max-width: calc(720px + 2 * var(--gutter)); }
.prose h1 { margin-bottom: 24px; font-size: var(--t-h2); }
.prose p + p { margin-top: 16px; }

/* ---------- editor build notes (logged-in editors only) ---------- */
.buildnotes { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: min(28rem, calc(100vw - 32px)); font-size: var(--t-xs); }
.buildnotes__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; list-style: none; cursor: pointer; box-shadow: var(--shadow-lg); }
.buildnotes__toggle::-webkit-details-marker { display: none; }
.buildnotes__dot { width: 8px; height: 8px; border-radius: 50%; background: #F79009; }
.buildnotes__body { max-height: 60vh; margin-top: 8px; padding: 20px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-lg); }
.buildnotes__intro { margin-bottom: 12px; color: var(--ink-500); }
.buildnotes ol { display: grid; gap: 10px; margin: 0; padding-left: 18px; color: var(--ink-700); }
@media (max-width: 1023px) { .buildnotes { bottom: calc(82px + env(safe-area-inset-bottom)); } }

/* ---------- scroll reveal ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--delay, 0ms), transform .8s var(--ease) var(--delay, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- locations hub ---------- */
.places { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.place { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--text); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.place:hover { border-color: var(--accent); transform: translateY(-2px); }
.place__name { font: 400 1.25rem/1.2 var(--serif); color: var(--text-strong); }
.place__meta { color: var(--ink-500); font-size: var(--t-xs); }
.place__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--accent); font-size: var(--t-xs); font-weight: 600; white-space: nowrap; }
.states { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.states__item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--text); font-size: var(--t-sm); text-decoration: none; transition: border-color .2s var(--ease), color .2s var(--ease); }
.states__item:hover { border-color: var(--accent); color: var(--text-strong); }
.states__code { min-width: 2.2em; color: var(--ink-500); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; }
.places__note { margin-top: 24px; color: var(--ink-500); font-size: var(--t-xs); }
@media (min-width: 560px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } .states { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .places { grid-template-columns: repeat(4, minmax(0, 1fr)); } .states { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- injury explorer, his composition (D-033) ---------- */
.explorer { padding: 23px 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); overflow: hidden; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-top .eyebrow { margin: 0; }
.explorer__title { margin: 8px 0 0; font-size: 24px; }
.text-button { padding: 8px; border: 0; background: none; color: var(--ink-500); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.text-button:hover { color: var(--text-strong); }

.body-stage { position: relative; width: 100%; min-height: 620px; height: 620px; margin: 10px 0; background: var(--bg); }
.body-stage > img { width: 100%; height: 100%; object-fit: contain; opacity: .95; }
.connectors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.connectors polyline { fill: none; stroke: #D29C54; stroke-width: .15; opacity: .75; }

.hotspot { position: absolute; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); cursor: pointer; z-index: 2; }
.hotspot span { display: block; width: 12px; height: 12px; margin: auto; border-radius: 50%; background: var(--hotspot); box-shadow: 0 0 12px var(--hotspot); }
.hotspot::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--hotspot); border-radius: 50%; animation: pulse 2.5s ease-out infinite; }
.is-paused .hotspot::after { animation: none; }
/* Out of layout until app.js has placed them: drawn at 0,0 and then moved, they were a 0.45 layout shift on the home page. */
.body-stage:not(.is-placed) .hotspot { display: none; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 90%, 100% { transform: scale(1.7); opacity: 0; } }

.body-label { position: absolute; z-index: 3; max-width: 34%; padding: 5px 7px; border: 0; border-bottom: 1px solid #BD9550; background: rgba(9, 26, 50, .92); color: var(--text-strong); font: inherit; font-size: 14px; line-height: 1.3; text-align: left; transform: translateY(-50%); cursor: pointer; }
.body-label.left { left: 0; }
.body-label.right { right: 0; text-align: right; }
.body-label small { display: block; margin-top: 4px; font-size: 12px; color: #EED38E; }
.body-label[aria-pressed="true"] { background: #204771; }
.map-caption { margin: 8px 0 15px; font-size: 12px; color: var(--ink-500); }

.injury-result { padding: 20px; border-radius: 7px; background: var(--surface); }
.injury-result .outcomes { border: 0; padding: 0; background: none; }
.injury-result .explorer__label { margin: 18px 0 10px; color: var(--ink-500); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.injury-result .button { margin-top: 16px; }
@media (max-width: 1100px) { .explorer { padding: 20px 14px; } }
@media (max-width: 760px) { .body-stage { height: 560px; min-height: 0; max-width: 540px; margin: 12px auto; } }
@media (max-width: 760px) {
	/* A span plus its case count needs room; give the labels a little more and tighten the leading. */
	.body-label { max-width: 42%; padding: 4px 6px; font-size: 13px; line-height: 1.25; }
	.body-label small { margin-top: 2px; font-size: 11px; line-height: 1.2; }
}
@media (max-width: 390px) { .body-stage { height: 460px; } .body-label { font-size: 12px; } .body-label small { font-size: 10px; } }

/* ---------- his hero: centred title, explorer + evaluation card (D-033) ---------- */
.landing { max-width: 1500px; margin: auto; padding: 35px 4% 0; }
.landing-title { max-width: 1000px; margin: 0 auto 26px; text-align: center; }
.landing-title .eyebrow { margin: 0; }
.landing-title h1 { margin: 13px 0 14px; font: 400 clamp(36px, 4vw, 58px)/1.06 var(--serif); letter-spacing: -1.2px; }
.landing-title h1 em { font-style: normal; color: var(--accent); }
.landing-title p { max-width: 70ch; margin: 0 auto; color: var(--ink-500); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }

.calculator { padding: 32px; border: 1px solid #315479; border-radius: 12px; background: linear-gradient(150deg, #153457, #10233E); box-shadow: 0 22px 60px rgba(0, 0, 0, .2); scroll-margin-top: calc(var(--header-h) + 16px); }
.calculator .eyebrow { margin: 0; }
.calculator h2 { margin: 12px 0 18px; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; }
.calculator h2 em { font-style: normal; color: var(--accent); }
.calculator > p { margin-bottom: 18px; font-size: 15px; color: var(--ink-500); }
.calculator .intake { padding: 0; border: 0; background: none; box-shadow: none; }
.calculator .intake__head { display: none; }
.calculator .intake__steps { margin-top: 0; }

.other-path { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.other-path b { flex: 1; min-width: 260px; }
.other-path a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; }
.other-path a:hover { text-decoration: underline; }

@media (max-width: 1100px) { .hero-grid { gap: 18px; } .calculator { padding: 24px; } }

/* Three items in the hero grid, placed explicitly rather than left to auto-flow.
   Our DOM order is explorer, results, form — the results panel is produced with the figure — so
   auto-placement would put the results panel in the right-hand column and push the form down a row.
   Naming the cells keeps the form beside the figure where it belongs. */
.hero-grid > .explorer      { grid-column: 1; grid-row: 1; }
.hero-grid > .calculator    { grid-column: 2; grid-row: 1; }
.hero-grid > .injury-result { grid-column: 1; grid-row: 2; }

/* Once the grid is one column, DOM order would put ~4,200px of outcome records between the figure
   and the form — the form sat at 5,937px, more than five screens down, which is what the client
   reported. Ordering puts the form directly under the body image, as his build does. */
@media (max-width: 760px) {
	.hero-grid > .explorer,
	.hero-grid > .calculator,
	.hero-grid > .injury-result { grid-column: auto; grid-row: auto; }
	.hero-grid > .explorer      { order: 0; }
	.hero-grid > .calculator    { order: 1; }
	.hero-grid > .injury-result { order: 2; }
}

/* The campaign A/B variant (?layout=form-first), matching the client's own.
   Without these rules the two variants rendered identically while the page still recorded which one
   the visitor "saw" — so every lead would have carried a variant label that meant nothing, and the
   comparison it exists to support would have been noise presented as a result. */
.hero-grid--form-first > .calculator { grid-column: 1; }
.hero-grid--form-first > .explorer   { grid-column: 2; }
@media (min-width: 761px) {
	.hero-grid--form-first { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (max-width: 760px) {
	/* The column assignments above must be released here as well as on the base grid: this selector
	   is more specific, so without its own reset the explorer stayed in column 2 of a one-column grid
	   and rendered at x334 on a 390px screen — off the side of the phone. */
	.hero-grid--form-first > .calculator,
	.hero-grid--form-first > .explorer,
	.hero-grid--form-first > .injury-result { grid-column: auto; grid-row: auto; }
	.hero-grid--form-first > .calculator    { order: 0; }
	.hero-grid--form-first > .explorer      { order: 1; }
	.hero-grid--form-first > .injury-result { order: 2; }
}
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: minmax(0, 1fr); }
	.landing { padding-top: 27px; }
	.landing-title { margin-bottom: 18px; text-align: left; }
	.landing-title p { margin-inline: 0; }
}

/* The evaluation card carries the heading, so the form's own step heading becomes a quiet step label. */
.calculator .intake__q { margin: 0; color: var(--accent); font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.calculator .intake__lead { margin-top: 0; }
.calculator .intake__steps { margin: 0 0 18px; }
.calculator .field label, .calculator .choice__legend { font-weight: 600; }
.section-top > div { min-width: 0; }
.section-top .eyebrow { margin-bottom: 6px; white-space: nowrap; }
.section-top > div { flex: 1; }
.section-top .text-button { flex: none; white-space: nowrap; align-self: flex-start; }
.explorer .injury-result { margin-top: 0; }
.explorer .outcomes { margin-top: 0; border: 0; padding: 0; background: none; }

/* ---------- his trust band, case grid and FAQ (D-033) ---------- */
.trust-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 35px 6%; border-block: 1px solid #34516B; background: var(--trust); }
.trust-band article { max-width: 650px; }
.trust-band b, .trust-band h2 { display: block; margin: 0 0 10px; color: #E8CC83; font-size: 23px; font-family: var(--serif); font-weight: 400; }
.trust-band p { margin: 0; color: var(--ink-500); font-size: 15px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; max-width: 1400px; margin: 0 auto 25px; }
.section-heading h2 { margin: 10px 0; font-size: 35px; }
.section-heading p { max-width: 370px; margin: 0; font-size: 15px; color: var(--ink-500); }

.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1400px; margin: 0 auto; }
.case-card { display: flex; flex-direction: column; padding: 24px 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); text-decoration: none; transition: background-color .2s var(--ease); }
.case-card:hover { background: #173858; }
.case-card > span { color: var(--accent); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.case-card h3 { margin: 20px 0 13px; font: 400 23px/1.2 var(--serif); }
.case-card p { flex: 1; margin: 0; font-size: 14px; color: var(--ink-500); }
.case-card b { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-size: 12px; }

.faq { max-width: 1000px; margin: 0 auto; }
.faq h2 { margin-top: 12px; font-size: 35px; }
.faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq summary { font-size: 17px; cursor: pointer; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin: 15px 0 0; font-size: 15px; color: var(--ink-500); }

@media (max-width: 1100px) { .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .trust-band { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 760px) {
	.section-heading { display: block; }
	.section-heading p { margin-top: 20px; }
	.case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.case-card { padding: 20px 15px; }
	.case-card h3 { font-size: 21px; }
}
/* Phones: two compact columns, label + action only. One column of full cards was ~7 screens of the same sentence. */
@media (max-width: 559px) {
	.case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.case-card { padding: 14px 12px; }
	.case-card > span { font-size: 10px; letter-spacing: 1px; }
	.case-card h3 { margin: 8px 0 0; font-size: 17px; overflow-wrap: anywhere; hyphens: auto; }
	.case-card p { display: none; }
	.case-card b { margin-top: auto; padding-top: 10px; }
}

/* His floating action on a phone (D-033) rather than a full-width bar. */
.sticky-bar { left: 5%; right: 5%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 4px 24px rgba(0, 0, 0, .55); }
.sticky-bar__item--primary { border-radius: 5px; }
.site-footer { padding-bottom: 100px; }

/* ---------- his locations and research pages (D-033) ---------- */
.page-intro { max-width: 1000px; margin: auto; padding: 65px 5% 30px; }
.page-intro h1 { margin: 13px 0 14px; font: 400 clamp(32px, 3.6vw, 52px)/1.08 var(--serif); letter-spacing: -1px; }
.page-intro > p { max-width: 750px; font-size: 18px; color: var(--ink-500); }
.page-intro .pagehead__actions { margin-top: 24px; }

.state-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.state-grid a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font-size: var(--t-sm); text-decoration: none; transition: border-color .2s var(--ease), color .2s var(--ease); }
.state-grid a:hover { border-color: var(--accent); color: var(--text-strong); }

.range-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; padding: 20px; border: 1px solid #55708C; border-radius: 8px; background: #102A45; }
.range-summary small { display: block; margin-bottom: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-500); }
.range-summary strong { display: block; color: #F1D28B; font: 400 clamp(1.2rem, 2vw, 1.7rem)/1.2 var(--serif); }
.range-summary a { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 13px; }
.range-note { max-width: 750px; font-size: 14px; line-height: 1.6; color: var(--ink-500); }

.source-list { display: grid; gap: 4px; }
.source-result { margin: 22px 0; padding-left: 18px; border-left: 2px solid #CAAB63; }
.source-result .eyebrow { margin: 0 0 6px; font-size: .75rem; }
.source-result h3 { margin: .5rem 0; max-width: 72ch; font: 600 1rem/1.5 var(--sans); }
.source-amount { display: block; margin-bottom: 8px; color: #E5C374; font: 400 26px/1.2 var(--serif); }
.source-result p { margin: 0 0 8px; max-width: 78ch; font-size: 14px; color: var(--ink-500); }
.source-result .fine { font-size: 13px; color: var(--ink-500); }
.source-result a { color: var(--accent); font-size: 13px; }

@media (max-width: 900px) { .state-grid { grid-template-columns: repeat(2, 1fr); } .range-summary { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .page-intro { padding-top: 40px; } }

/* One region of his figure, for an injury page. */
.bodyfigure { margin: 0; }
.bodyfigure .body-stage { height: 420px; min-height: 0; border-radius: var(--r); }
.bodyfigure .hotspot { pointer-events: none; }
.bodyfigure figcaption { margin-top: 12px; color: var(--ink-500); font-size: var(--t-xs); text-align: center; }
@media (max-width: 760px) { .bodyfigure .body-stage { height: 340px; } }

/* ---------- his two-column reading layout (D-033) ---------- */
.local-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 520px); gap: 50px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 65px; }
.reading { max-width: 1000px; margin: auto; padding: 20px 0 40px; }
.local-grid .reading { padding: 0; }
/* Fill the track instead of sizing to content: with margin:auto a grid item shrinks to fit, and a
   table's one-line caption then demanded ~1,480px and widened the page on phones. */
.local-grid > * { min-width: 0; }
.local-grid > .reading { width: 100%; }
.reading h2 { margin: 35px 0 12px; font-size: 29px; }
.reading h2:first-child { margin-top: 0; }
.reading h3 { margin-top: 25px; }
.reading p { margin-bottom: 18px; max-width: 72ch; color: var(--ink-500); }
.reading a { color: var(--accent); }
.reading .ticks { margin: 16px 0 20px; gap: 12px; }
.reading .ticks li { align-items: baseline; }
.reading .ticks strong { display: block; }
.reading .range-summary { margin-top: 16px; }
@media (max-width: 900px) {
	.local-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 45px; }
	/* Form first, article second — the client's own build does this and ours did the opposite.
	   On a case-type page the article ran to five screens, so the form sat at 5,508px on a phone:
	   present, and never seen. Someone who arrived ready to send a request had to read first. */
	.local-grid > .calculator { grid-row: 1; }
	.local-grid > .reading { grid-row: 2; }
}

/* Language switch (SG§17.10). Sits beside the primary nav; renders nothing until /es/ exists. */
.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	padding: .35rem .7rem;
	border: 1px solid var(--wp--preset--color--line, currentColor);
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .02em;
	text-decoration: none;
	white-space: nowrap;
	flex: none;
}
.lang-switch:hover,
.lang-switch:focus-visible { border-color: var(--wp--preset--color--accent, currentColor); }
@media (max-width: 860px) { .lang-switch { order: 3; } }

/* ---------- touch targets ----------
   WCAG 2.5.8 (AA) asks for 24x24 CSS pixels on anything you tap. Breadcrumb and footer links were
   15-17px high: fine with a mouse, a real miss on a phone, and they are standalone navigation rather
   than links inside a sentence, so the inline exception does not cover them.

   Applied on a coarse pointer OR a narrow screen, not one or the other: a phone with a stylus
   reports a fine pointer, and a desktop touchscreen reports a coarse one at full width. Either
   signal alone misses a real case. Done with padding rather than a min-height so the link box grows
   around the text instead of the text moving inside a taller box, and the negative margin keeps the
   visual rhythm the extra padding would otherwise push apart. */
@media (pointer: coarse), (max-width: 782px) {
	.crumbs ol a,
	.site-footer__list a {
		display: inline-block;
		padding-block: 6px;
	}
	.crumbs ol { margin-block: -6px; }
	.site-footer__list { gap: 4px; }
	.site-footer__list a { padding-inline: 2px; }
}

/* ---------- link-list ----------
   The lists on the practice-area, state and city pages: each row is one link with a trailing arrow.
   Introduced with those templates and previously unstyled, which left a default bullet list whose
   arrow wrapped onto its own line.

   The arrow is kept on the same line as the last word by making the link a flex row and giving the
   icon flex-shrink: 0 — a non-breaking space would do it too, but only until a label is long enough
   to wrap, and these labels carry city names. */
.link-list { display: grid; gap: 2px; margin: 0 0 24px; padding: 0; list-style: none; }
.link-list li { margin: 0; }
.link-list a {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	transition: color .2s var(--ease), padding-inline-start .2s var(--ease);
}
.link-list a .icon { flex: 0 0 auto; align-self: center; opacity: .55; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.link-list a:hover,
.link-list a:focus-visible { color: var(--accent); }
.link-list a:hover .icon { transform: translateX(3px); opacity: 1; }

/* No hover-only movement for anyone who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
	.link-list a,
	.link-list a .icon { transition: none; }
	.link-list a:hover .icon { transform: none; }
}

/* ---------- source-note ----------
   Where a figure states its own provenance: population, county crash counts. Deliberately quieter
   than body text but never below the contrast floor — it is the part that makes a number usable. */
.source-note { margin: 0 0 16px; color: var(--ink-700); font-size: var(--t-sm); line-height: 1.6; }
.source-note a { text-decoration: underline; }

/* A standalone "read on" link with a trailing arrow, e.g. "More in Texas →". Inline-flex keeps the
   arrow on the last line of the label instead of dropping it onto a line of its own. */
.reading p > a:only-child { display: inline-flex; align-items: baseline; gap: 6px; }
.reading p > a:only-child .icon { flex: 0 0 auto; align-self: center; }

/* Factor summary — a list of what an attorney would look at, built from what the visitor said.
   It replaces five words that were true of every case and useful for none. */
.summary__factors{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px}
.summary__factors li{display:grid;gap:2px;padding-left:16px;position:relative;line-height:1.5}
.summary__factors li::before{content:"";position:absolute;left:0;top:.6em;width:6px;height:6px;border-radius:50%;background:var(--wp--preset--color--gold,#C8A13A)}
.summary__factors b{font-size:14px;font-weight:600}
.summary__factors span{font-size:13px;color:var(--wp--preset--color--slate,#5a6b7f)}
@media (max-width:600px){.summary__factors{gap:12px}}

/* Onward links. Derived from the data, never a hand-kept list, and never printed for a destination
   that is not published — see Site\RelatedLinks. */
.related{margin-top:40px;padding-top:24px;border-top:1px solid var(--line)}
.related-wrap{padding-bottom:var(--section)}
.related-wrap .related{margin-top:0}
.related__title{font-size:1.0625rem;margin:0 0 4px}
.related__note{margin:0 0 12px;font-size:var(--t-sm);color:var(--ink-500)}
.related__list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.related__list a{display:inline-block;padding:6px 0;text-decoration:none;border-bottom:1px solid transparent}
.related__list a:hover,.related__list a:focus-visible{border-bottom-color:currentColor}
.related__meta{color:var(--ink-500);font-size:var(--t-xs);margin-left:6px}
@media (min-width:640px){.related__list{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px}}

/* Answer-first block: the question a page answers, its answer, and — only where we hold a record
   carrying all of it — one verified figure with its source and what it does not mean. The figure is
   a <figure> with its own <figcaption> so the number, its attribution and its caveat stay attached
   wherever the page is quoted, extracted or read aloud. */
.answer-first{margin:0 0 28px}
.answer-first__q{font-size:1.25rem;margin:0 0 8px;text-wrap:balance}
.answer-first__a{margin:0;max-width:62ch}
.answer-first__fact{margin:18px 0 0;padding:14px 18px;background:var(--bg-raised);border-left:3px solid var(--accent);border-radius:0 6px 6px 0}
.answer-first__quote{margin:0;font-size:var(--t-sm);font-weight:600;quotes:none}
.answer-first__cite{margin-top:6px;font-size:var(--t-xs);color:var(--ink-500);line-height:1.55}
.answer-first__cite a{color:inherit}
.answer-first__date::before{content:"· "}
.answer-first__context{display:block;margin-top:4px}
@media (max-width:600px){.answer-first__fact{padding:12px 14px}}

/* What we hold, counted. The chart is aria-hidden and the table beside it carries the same numbers:
   a screen reader should be handed the data, not a description of a picture of it. Every figure here
   is a count of records on the page — never an average, a rate, or a valuation. */
.dist{display:grid;gap:24px;margin:0 0 32px}
.dist__chart{max-width:100%;height:auto}
.dist__label{fill:var(--ink);font-size:13px}
.dist__count{fill:var(--ink-500);font-size:12px;font-weight:600}
.dist__bar{fill:var(--accent)}
@media (min-width:860px){.dist{grid-template-columns:minmax(0,1fr) minmax(260px,360px);align-items:start;gap:40px}}

.data-table{width:100%;border-collapse:collapse;margin:0 0 14px;font-size:var(--t-sm)}
/* A wide table scrolls inside its own box rather than widening the page. */
.table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 14px}
.table-scroll .data-table{margin:0}
.data-table caption{text-align:left;padding:0 0 10px;color:var(--ink-500);font-size:var(--t-xs);line-height:1.5}
.data-table th,.data-table td{text-align:left;padding:9px 12px 9px 0;border-bottom:1px solid var(--line);vertical-align:top}
.data-table thead th{font-size:var(--t-xs);text-transform:uppercase;letter-spacing:.06em;color:var(--ink-500);font-weight:600}
.data-table tbody th{font-weight:600}
.data-table .num{text-align:right;font-variant-numeric:tabular-nums;padding-right:0}
.data-table .muted{color:var(--ink-500)}
.data-table a{text-decoration:none;border-bottom:1px solid transparent}
.data-table a:hover,.data-table a:focus-visible{border-bottom-color:currentColor}
.dist__table{margin:0}
.download{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.download h3{margin:0 0 6px}
/* A wide table is the one thing allowed to scroll sideways; the page body never does. */
@media (max-width:700px){
	.data-table{display:block;overflow-x:auto;white-space:nowrap}
	.data-table td,.data-table th{white-space:normal;min-width:7rem}
}
/* Inside its own scroll box a table keeps table layout and wraps: the county crash table has four
   short numeric columns that fit a phone once the headers wrap, and its caption must wrap too. */
@media (max-width:700px){
	.table-scroll .data-table{display:table;white-space:normal}
	.table-scroll .data-table td,.table-scroll .data-table th{min-width:0;padding-right:8px}
	.table-scroll .data-table .num{padding-right:0;padding-left:8px}
	.table-scroll .data-table thead th{letter-spacing:.02em}
}
@media (max-width:359px){
	.table-scroll .data-table thead th{font-size:.625rem}
}
