/*
 * Parent Data Force — design system layer.
 * Fault-line hero, records docket, stats strip, and shared tokens.
 * Palette lives in theme.json; these rules style the custom regions that
 * block markup can't reach (the animated canvas, the docket grid, the stats).
 */

/* ---- tokens (mirror theme.json palette for use in custom regions) -------- */
:root {
	--pdf-ink-0: #0b0b0b;
	--pdf-ink-1: #161616;
	--pdf-ink-2: #1d1d1d;
	--pdf-line: #2a2a2a;
	--pdf-mid: #a0a0a0;
	--pdf-paper: #f5f5f5;
	--pdf-signal: #ff5a1f;
	--pdf-signal-hi: #ffa366;
	--pdf-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---- fault-line hero ----------------------------------------------------- */
.pdf-hero {
	position: relative;
	min-height: clamp(460px, 78vh, 780px);
	overflow: hidden;
	border-bottom: 1px solid var(--pdf-line);
	background: var(--pdf-ink-0);
}
.pdf-hero .pdf-ascii {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.pdf-hero-inner {
	position: relative;
	z-index: 2;
	height: 100%;
	min-height: inherit;
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: clamp(24px, 4vw, 48px);
	padding: 0 clamp(24px, 4vw, 48px);
}
.pdf-hero-text { flex: 1; min-width: 0; }
.pdf-kicker {
	font-family: var(--pdf-mono);
	color: var(--pdf-signal);
	font-size: 13px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	margin: 0 0 1rem;
}
.pdf-hero-title {
	font-size: clamp(2.75rem, 6vw, 5.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 0.98;
	margin: 0;
}
.pdf-hero-sub {
	color: var(--pdf-mid);
	margin: 1.125rem 0 0;
	max-width: 32rem;
	font-size: 1.125rem;
	line-height: 1.6;
}
.pdf-hero-logo {
	flex: 0 0 auto;
	width: min(40vh, 380px);
	aspect-ratio: 1;
	position: relative;
}
.pdf-hero-logo img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 50%;
	filter: drop-shadow(0 0 44px rgba(255, 90, 31, 0.28)) drop-shadow(0 0 120px rgba(255, 90, 31, 0.12));
}
@media (max-width: 900px) {
	.pdf-hero-inner { flex-direction: column-reverse; justify-content: center; gap: 20px; }
	.pdf-hero-logo { width: min(30vh, 240px); }
}

/* ---- ASCII section divider ------------------------------------------------ */
.pdf-rule {
	font-family: var(--pdf-mono);
	color: var(--pdf-signal);
	font-size: 0.8125rem;
	letter-spacing: 0.2em;
	white-space: nowrap;
	overflow: hidden;
	margin: 0 0 0.5rem;
}

/* ---- stats strip (scraper data) ------------------------------------------ */
.pdf-stats {
	border-top: 1px solid var(--pdf-line);
	border-bottom: 1px solid var(--pdf-line);
	background: var(--pdf-ink-1);
}
.pdf-stats-grid {
	display: grid;
	max-width: 1340px;
	margin: 0 auto;
}
.pdf-stats-set {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	transition: opacity 0.6s ease, visibility 0.6s ease;
}
.pdf-stats-set.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.pdf-stats-dots {
	display: none;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 0 1.25rem;
}
.pdf-stats--rotating .pdf-stats-dots { display: flex; }
.pdf-stats-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 1px solid var(--pdf-mid);
	background: transparent;
	cursor: pointer;
	padding: 0;
}
.pdf-stats-dot.is-active {
	background: var(--pdf-signal);
	border-color: var(--pdf-signal);
}
.pdf-stat {
	padding: 1.625rem 2rem;
	border-left: 1px solid var(--pdf-line);
}
.pdf-stat:first-child { border-left: none; }
.pdf-stat-num {
	font-family: var(--pdf-mono);
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--pdf-signal);
	line-height: 1;
}
.pdf-stat-lbl {
	font-family: var(--pdf-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pdf-mid);
	margin-top: 0.5rem;
}
/* long range strings (e.g. "Sept. 18, 2021–present") shrink to fit the cell */
.pdf-stat-num--range {
	font-size: 1.125rem;
	letter-spacing: 0.01em;
	line-height: 1.25;
	padding-top: 0.45rem;
}
@media (max-width: 900px) {
	.pdf-stats-set { grid-template-columns: repeat(2, 1fr); }
	.pdf-stat { border-left: none; border-top: 1px solid var(--pdf-line); }
}

/* ---- records docket (post index) ----------------------------------------- */
.pdf-docket { max-width: 1340px; margin: 0 auto; }
.pdf-docket-list { display: block; }
.pdf-drow {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	align-items: baseline;
	padding: 1.5rem 0.5rem;
	border-bottom: 1px solid var(--pdf-line);
	transition: background 0.15s ease;
}
.pdf-drow:hover { background: var(--pdf-ink-1); }
.pdf-drow-date {
	flex: 0 0 5.5rem;
	font-family: var(--pdf-mono);
	font-size: 0.8125rem;
	color: var(--pdf-mid);
}
.pdf-drow-cat {
	flex: 0 0 11rem;
	font-family: var(--pdf-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pdf-signal);
}
.pdf-drow-cat a { color: var(--pdf-signal); text-decoration: none; }
.pdf-drow-main { flex: 1; min-width: 16rem; }
.pdf-drow-title {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0;
	line-height: 1.25;
}
.pdf-drow-title a { color: inherit; text-decoration: none; }
.pdf-drow:hover .pdf-drow-title a { color: var(--pdf-signal-hi); }
.pdf-drow-excerpt {
	color: var(--pdf-mid);
	font-size: 0.875rem;
	margin: 0.375rem 0 0;
	line-height: 1.5;
	max-width: 40rem;
	font-weight: 400;
}
@media (max-width: 820px) {
	.pdf-drow { gap: 0.25rem 1rem; }
	.pdf-drow-date, .pdf-drow-cat { flex: 0 0 auto; }
}

/* ---- filter tabs ---------------------------------------------------------- */
.pdf-tabs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	max-width: 1340px;
	margin: 0 auto;
	padding: 1.75rem 2rem 0;
}
.pdf-tab {
	font-family: var(--pdf-mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.5rem 1rem;
	border: 1px solid var(--pdf-line);
	border-radius: 999px;
	color: var(--pdf-mid);
	text-decoration: none;
	cursor: pointer;
	background: transparent;
}
.pdf-tab:hover { color: var(--pdf-paper); border-color: var(--pdf-mid); }
.pdf-tab.is-active {
	background: var(--pdf-signal);
	border-color: var(--pdf-signal);
	color: #160801;
	font-weight: 700;
}

/* ---- donate pill (header nav) --------------------------------------------- */
.wp-block-navigation .wp-block-navigation-item__content[href*="/donate/"] {
	background: var(--pdf-signal);
	color: #160801 !important;
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	font-weight: 700;
}
.wp-block-navigation .wp-block-navigation-item__content[href*="/donate/"]:hover {
	background: var(--pdf-signal-hi);
}

/* ---- long-form article reading view -------------------------------------- *//* ---- long-form article reading view -------------------------------------- */
.pdf-article .wp-block-post-content > p {
	font-size: 1.19rem;
	line-height: 1.78;
	color: #e8e8e8;
	margin-bottom: 1.6em;
}
.pdf-article .wp-block-post-content > p:first-of-type::first-letter {
	font-family: var(--pdf-mono);
	font-size: 4.4em;
	font-weight: 700;
	color: var(--pdf-signal);
	float: left;
	line-height: 0.8;
	padding: 8px 14px 0 0;
}
.pdf-article .wp-block-post-content h2 {
	font-size: 1.85rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 2.4em 0 0.9em;
	line-height: 1.15;
}
.pdf-article .wp-block-post-content h2::before {
	content: "//";
	font-family: var(--pdf-mono);
	color: var(--pdf-signal);
	font-weight: 500;
	font-size: 0.8em;
	margin-right: 0.5em;
}
.pdf-article .wp-block-post-content h3 {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 2em 0 0.7em;
	letter-spacing: -0.01em;
}
.pdf-article .wp-block-post-content blockquote {
	margin: 2.2em 0;
	padding: 6px 0 6px 26px;
	border-left: 3px solid var(--pdf-signal);
	font-size: 1.32rem;
	line-height: 1.6;
	color: var(--pdf-paper);
	font-weight: 500;
	font-style: italic;
}
.pdf-article .wp-block-post-content ul,
.pdf-article .wp-block-post-content ol { margin: 0 0 1.6em 1.4em; }
.pdf-article .wp-block-post-content li {
	font-size: 1.13rem;
	line-height: 1.7;
	color: #e0e0e0;
	margin-bottom: 0.5em;
}
.pdf-article .wp-block-post-content li::marker { color: var(--pdf-signal); }
.pdf-article-kicker {
	font-family: var(--pdf-mono);
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--pdf-signal);
	margin-bottom: 1rem;
}
.pdf-article-accent {
	font-family: var(--pdf-mono);
	color: var(--pdf-signal);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	white-space: nowrap;
	overflow: hidden;
	margin: 1.6rem 0 2.1rem;
	opacity: 0.8;
}

/* ---- 404 fault scene ------------------------------------------------------ */
.pdf-404 { position: relative; min-height: 52vh; overflow: hidden; border: 1px solid var(--pdf-line); }
.pdf-404 .pdf-ascii { position: absolute; inset: 0; width: 100%; height: 100%; }
.pdf-404-body { position: relative; z-index: 2; padding: clamp(2rem, 6vw, 4rem); }

/* respect reduced motion for any CSS-driven accents */
@media (prefers-reduced-motion: reduce) {
	.pdf-hero *, .pdf-404 *, .pdf-stats .pdf-stats-set { animation: none !important; transition: none !important; }
}
