/* ==========================================================================
   TruckAccidentAid — base: design tokens, reset, typography, buttons, forms
   ========================================================================== */

/* Fonts (self-hosted, OFL; the exact woff2 files Google Fonts serves for this set):
   Source Serif 4 (headings, variable 400–700), IBM Plex Sans (text, 400–700),
   IBM Plex Mono (typed data: dates, citations, numbering). Latin + latin-ext. */
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-normal-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-normal-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-normal-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-normal-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-normal-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-normal-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-italic-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-italic-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-normal-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-normal-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-normal-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-normal-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-normal-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-normal-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-normal-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-normal-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Serif 4";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-serif-4-italic-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Source Serif 4";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-serif-4-italic-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/source-serif-4-normal-400-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/source-serif-4-normal-400-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallbacks (computed from the woff2 vs Liberation Sans / Serif): the swap to
   the web fonts does not move the layout. */
@font-face {
	font-family: "IBM Plex Sans Fallback";
	src: local("Arial"), local("Liberation Sans"), local("Helvetica");
	size-adjust: 101.1%;
	ascent-override: 101.3%;
	descent-override: 27.2%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Source Serif 4 Fallback";
	src: local("Times New Roman"), local("Liberation Serif"), local("Times");
	size-adjust: 110.5%;
	ascent-override: 93.7%;
	descent-override: 30.3%;
	line-gap-override: 0%;
}

:root {
	/* World: the visitor's claim file. Locked palette — paper, grey pressboard folder, slate edge,
	   ballpoint ink, carbon blue (links/actions), rubber-stamp red (dates, deadlines, help).
	   Token names are historical (green = primary action, accent = stamp red); values are the world's. */

	/* Ink & text (ballpoint blue-black) */
	--c-ink: #16213A;
	--c-text: #323A4C;
	--c-text-2: #3E4658;
	--c-muted: #5A6173;

	/* Paper & lines */
	--c-bg: #F1F2F4;
	--c-surface: #FFFFFF;
	--c-hover-bg: #E6E9ED;
	--c-line: #D3D7DE;
	--c-line-2: #E3E6EA;
	--c-line-strong: #B1B7C2;

	/* Folder (names historical: grey pressboard, not manila) + slate edge (bands, index tabs, highlighter) */
	--c-manila: #D8DEE6;
	--c-manila-2: #E5E9EE;
	--c-manila-edge: #8590A3;
	--c-manila-text: #16213A;
	--c-manila-muted: #3D4760;

	/* Primary action / links: carbon blue */
	--c-green: #1F45A8;
	--c-green-dark: #163380;
	--c-green-tint: #E4EAF7;
	--c-green-focus: #BCCBEE;

	/* Rubber-stamp red: help CTA, verified stamp, deadlines */
	--c-accent: #C42B1C;
	--c-accent-hover: #A32216;
	--c-accent-dark: #8E1D12;
	--c-accent-tint: #FBEAE7;
	--c-sand: #E5E9EE;
	--c-orange: #D8DEE6;

	/* Dark sections (utility bar, footer, lawyer CTA): ink */
	--c-dark: #141D33;
	--c-dark-line: #2B3651;
	--c-dark-text: #C9D0E0;
	--c-dark-text-2: #AEB7CB;
	--c-dark-muted: #929CB4;
	--c-logo-dark: #2A3A63;

	/* Text & icons on dark / brand surfaces */
	--c-on-dark: #FFFFFF;
	--c-on-dark-2: #D6DCE9;
	--c-on-dark-muted: #9EA8BF;
	--c-on-dark-icon: #BCCBEE;
	--c-on-dark-line: #36425F;
	--c-on-green-2: #DDE5F8;
	--c-on-green-muted: #B7C6EC;
	--c-accent-on-dark-hover: #D9402F;

	/* Extra text & lines */
	--c-text-strong: #222A3D;
	--c-line-control: #A0A8B5;
	--c-line-green: #C5D0EA;
	--c-line-green-strong: #9EB1DE;
	--c-skeleton: #D5D9E0;

	/* Folder notes (guide CTA, notes, government-claim box) */
	--c-sand-line: #C2CAD6;
	--c-sand-line-strong: #8590A3;
	--c-sand-line-dashed: #9AA4B5;
	--c-sand-text: #222C42;
	--c-accent-tint-2: #F7D4CF;

	/* Charts (settlement calculator) */
	--c-chart-wage: #4A6FC4;

	/* RGB triplets for translucent shadows / overlays: rgba(var(--c-dark-rgb), .2) */
	--c-ink-rgb: 22, 33, 58;
	--c-dark-rgb: 20, 29, 51;
	--c-overlay: rgba(20, 29, 51, .64);

	/* Type: Source Serif 4 for headings, IBM Plex Sans for text and UI,
	   IBM Plex Mono only for typed data — dates, citations, numbering. */
	--f-sans: 'IBM Plex Sans', 'IBM Plex Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-serif: 'Source Serif 4', 'Source Serif 4 Fallback', Georgia, 'Times New Roman', serif;
	--f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	/* Layout: square paper, rounded only on index tabs */
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 2px;
	--radius-lg: 3px;
	--radius-xl: 4px;
	--radius-tab: 8px;
	--tab-h: 28px;
	--shadow-paper: 0 1px 1px rgba(var(--c-ink-rgb), .08), 0 6px 14px -8px rgba(var(--c-ink-rgb), .22);
	--shadow-pop: 0 2px 4px rgba(var(--c-ink-rgb), .08), 0 14px 30px -10px rgba(var(--c-ink-rgb), .28);
	--shadow-modal: 0 24px 60px rgba(var(--c-ink-rgb), .35);
}

/* Reset
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

html.is-locked {
	overflow: hidden;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

svg {
	flex-shrink: 0;
}

button,
input,
select,
textarea {
	font: inherit;
}

[hidden] {
	display: none !important;
}

summary::-webkit-details-marker {
	display: none;
}

/* Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--f-serif);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.01em;
	color: var(--c-ink);
	text-wrap: balance;
}

::selection {
	background: var(--c-green-focus);
	color: var(--c-ink);
}

html {
	scrollbar-color: var(--c-line-strong) var(--c-bg);
	accent-color: var(--c-green);
}

p {
	margin: 0;
	text-wrap: pretty;
}

a {
	color: var(--c-green);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

a:hover {
	color: var(--c-green-dark);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--c-green);
	outline-offset: 2px;
}

/* Section label = a manila index tab: the folder you are in, not a kicker. */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	min-height: var(--tab-h);
	max-width: 100%;
	padding: 6px 12px 5px;
	border: 1px solid var(--c-manila-edge);
	border-bottom: 0;
	border-radius: var(--radius-tab) var(--radius-tab) 0 0;
	background: var(--c-manila);
	color: var(--c-manila-text);
	font-family: var(--f-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.25;
	text-transform: uppercase;
}

/* Layout helpers
   ========================================================================== */

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s;
}

.btn--accent {
	background: var(--c-accent);
	color: var(--c-on-dark);
}

.btn--accent:hover {
	background: var(--c-accent-hover);
	color: var(--c-on-dark);
}

.btn--dark {
	background: var(--c-ink);
	color: var(--c-on-dark);
}

.btn--dark:hover {
	background: var(--c-dark);
	color: var(--c-on-dark);
}

.btn--green {
	background: var(--c-green);
	color: var(--c-on-dark);
}

.btn--green:hover {
	background: var(--c-green-dark);
	color: var(--c-on-dark);
}

.btn--outline {
	border: 1.5px solid var(--c-ink);
	background: transparent;
	color: var(--c-ink);
}

.btn--outline:hover {
	background: var(--c-ink);
	color: var(--c-on-dark);
}

.btn--outline-green {
	border: 1.5px solid var(--c-green);
	background: transparent;
	color: var(--c-green);
}

.btn--outline-green:hover {
	background: var(--c-green);
	color: var(--c-on-dark);
}

.btn--md {
	min-height: 48px;
	padding: 0 22px;
}

.btn--lg {
	min-height: 52px;
	padding: 0 24px;
	font-size: 16px;
}

.btn--xl {
	min-height: 54px;
	padding: 0 24px;
	font-size: 16.5px;
	text-align: left;
	white-space: normal;
}

.btn--block {
	width: 100%;
	white-space: normal;
}

/* Small text elements
   ========================================================================== */

.text-link {
	display: inline-block;
	padding-block: 4px;
	font-size: 15px;
	font-weight: 600;
}

/* Rubber date stamp: only for real dates (Last verified, deadlines). */
.stamp {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px 4px;
	border: 2px solid currentColor;
	border-radius: var(--radius-lg);
	color: var(--c-accent-hover);
	font-family: var(--f-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	line-height: 1.2;
	text-transform: uppercase;
	transform: rotate(-1.5deg);
	mix-blend-mode: multiply;
}

.badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: var(--radius);
	background: var(--c-sand);
	color: var(--c-manila-text);
	font-family: var(--f-sans);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1.5px solid var(--c-line-strong);
	border-radius: var(--radius);
	background: var(--c-surface);
	color: var(--c-ink);
	font-size: 16px; /* prevents iOS zoom on focus */
	font-weight: 400;
}

textarea {
	line-height: 1.5;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--c-green);
	outline: 2px solid var(--c-green-focus);
	outline-offset: 0;
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--c-green);
}

/* Accessibility
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Form honeypot (inc/form-safety.php): off-screen, people never see or reach it. */
.taa-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Turnstile hint (components/turnstile.js): the widget wants a click before sending. */
.wpcf7-form .taa-ts-attention {
	border-radius: 4px;
	outline: 2px solid var(--c-accent);
	outline-offset: 4px;
}

.wpcf7-form .taa-ts-msg {
	flex: 1 0 100%;
	margin: 10px 0 12px;
	color: var(--c-accent-dark);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	margin: 0;
	clip: auto;
	background: var(--c-surface);
	color: var(--c-ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow-pop);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
