/* Stryke Scrub brand tokens and primitives (tasks/30).
   Tailwind (CDN, inline config in base.html) handles layout; this file owns
   the things Tailwind utilities express poorly: tokens, focus, badges,
   buttons, motion. */

:root {
	--ink: #12302E;
	--paper: #F7FAF9;
	--bolt: #F5C518;
	--amber: #F59E0B;
	--moss: #2F7D6B;
	--mint: #7FE0C2;
	--coral: #E4573D;
	--slate: #5B6B69;
	--line: #D8E2DF;
	--catchall: #B08A1E;
	--disposable: #8A5BB5;
}

/* Keyboard focus: visible everywhere, 2px moss (quality floor). */
:focus-visible {
	outline: 2px solid var(--moss);
	outline-offset: 2px;
}

/* The only motion on the site is accordion open/close and the progress bar;
   both stop under prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---- Buttons: 44px tall, three tiers ---- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 20px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
}
.btn-primary { background: var(--bolt); color: var(--ink); }
.btn-primary:hover { background: var(--amber); color: var(--ink); }
.btn-secondary { background: var(--ink); color: var(--paper); }
.btn-secondary:hover { background: #1d4a46; }
.btn-tertiary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-danger { background: var(--coral); color: #fff; }

/* ---- Status badges: pill radius, brand-mapped colors ---- */
.badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}
.badge-valid { background: color-mix(in srgb, var(--moss) 12%, white); color: var(--moss); }
.badge-invalid { background: color-mix(in srgb, var(--coral) 12%, white); color: var(--coral); }
.badge-catch_all { background: color-mix(in srgb, var(--catchall) 14%, white); color: var(--catchall); }
.badge-disposable { background: color-mix(in srgb, var(--disposable) 12%, white); color: var(--disposable); }
.badge-unknown { background: color-mix(in srgb, var(--slate) 12%, white); color: var(--slate); }
.badge-duplicate { background: var(--line); color: var(--slate); }
.badge-pending { background: var(--line); color: var(--slate); }
.badge-chip { background: #eef2f1; color: var(--slate); }
/* On ink surfaces, valid flips to mint (task 30 token sheet). */
.on-ink .badge-valid { background: color-mix(in srgb, var(--mint) 25%, transparent); color: var(--mint); }

/* ---- Progress bar (bolt fill on line track) ---- */
.progress-track {
	background: var(--line);
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
}
.progress-fill {
	background: var(--bolt);
	height: 100%;
	border-radius: 999px;
	transition: width 0.6s ease;
}

/* ---- Sidebar nav: active item gets the 3px bolt bar ---- */
.nav-item {
	display: block;
	padding: 10px 16px;
	color: var(--paper);
	text-decoration: none;
	border-left: 3px solid transparent;
	font-weight: 500;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); }
.nav-item.active { border-left-color: var(--bolt); background: rgba(255, 255, 255, 0.08); }

/* Body copy line-length ceiling (type spec: max 70ch). */
.prose-measure { max-width: 70ch; }

/* Display type: tight tracking at large sizes only. */
.display-tight { letter-spacing: -0.02em; }

/* Accordion: native details/summary, no icon library. */
details.faq-item { border-bottom: 1px solid var(--line); }
details.faq-item summary {
	cursor: pointer;
	padding: 16px 0;
	font-weight: 600;
	color: var(--ink);
	list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; float: right; color: var(--slate); }
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item p { padding: 0 0 16px; }
