/*
 * FederalLawyers.com — Editorial Design System (Design Prompt §1–10)
 * Source: Spodek Brand Guidelines v2 (Editorial).dc.html
 */

:root {
	/* WORDPRESS-HANDOFF §3 brand tokens */
	--ink: #141414;
	--paper: #ffffff;
	--paper-warm: #f4f4f1;
	--red: #d43a2f;
	--grey-body: #4a4a46;
	--grey-mid: #6b6b66;
	--grey-soft: #9a9a94;
	--grey-ghost: #c9c9c4;
	--line: #e4e4e0;
	--line-ink: #33332f;
	--font-display: 'Archivo', sans-serif;
	--font-body: 'Libre Franklin', sans-serif;
	--font-mono: 'IBM Plex Mono', monospace;

	/* theme aliases */
	--fl-ink: var(--ink);
	--fl-ink-hover: #2e2e2a;
	--fl-paper: #ffffff;
	--fl-paper-warm: #f4f4f1;
	--fl-red: #d43a2f;
	--fl-red-hover: #b8291f;
	--fl-grey-body: #4a4a46;
	--fl-grey-mid: #6b6b66;
	--fl-grey-soft: #9a9a94;
	--fl-grey-ghost: #c9c9c4;
	--fl-line: #e4e4e0;
	--fl-line-ink: #33332f;
	--fl-line-ink-2: #232320;
	--fl-gutter: clamp(20px, 4vw, 56px);
	--fl-band-y: clamp(44px, 5.5vw, 72px);
	--fl-band-compact: clamp(36px, 4.5vw, 56px);
	--fl-band-statement: clamp(40px, 5vw, 64px);
	--fl-hero-bottom: clamp(36px, 4.5vw, 56px);
	--fl-rhythm-sm: 14px;
	--fl-rhythm-md: 16px;
	--fl-rhythm-lg: 26px;
	--fl-rhythm-xl: 30px;
	--fl-sticky-rail: 90px;
	--fl-font-display: Archivo, sans-serif;
	--fl-font-body: 'Libre Franklin', sans-serif;
	--fl-font-mono: 'IBM Plex Mono', monospace;
	--fl-container: 1160px;
	--fl-nav-offset: 6rem;
}

html {
	scroll-padding-top: var(--fl-nav-offset);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--fl-font-body);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.85;
	color: var(--fl-grey-body);
	background: var(--fl-paper);
}

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

/* §5: square corners on UI chrome — handoff status dots / play rings keep inline radii */
button, input, select, textarea, .wp-block-button__link {
	font: inherit;
	border-radius: 0;
}

img, video, svg {
	height: auto;
}

/* §1 typography roles — blog / default template prose only (handoff pages use inline styles) */
.sp-page h1,
.sp-page h2,
.sp-page h3,
.sp-page .fl-display,
main:not(.sp-source-body) h1,
main:not(.sp-source-body) h2,
main:not(.sp-source-body) h3 {
	font-family: var(--fl-font-display);
	font-weight: 200;
	color: var(--fl-ink);
}

.sp-page h1,
main:not(.sp-source-body) h1 {
	font-size: clamp(38px, 5.2vw, 68px);
	letter-spacing: -1.8px;
	line-height: 1.05;
}

.sp-page h2,
main:not(.sp-source-body) h2 {
	font-size: clamp(24px, 2.8vw, 36px);
	letter-spacing: -0.8px;
	line-height: 1.1;
}

.sp-page h3,
main:not(.sp-source-body) h3 {
	font-family: var(--fl-font-display);
	font-weight: 400;
	font-size: clamp(17px, 1.8vw, 20px);
	letter-spacing: -0.3px;
	line-height: 1.2;
}

/* §7 shell */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: var(--fl-ink);
	color: var(--fl-paper);
	font-family: var(--fl-font-body);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
	/* Guidelines §34: focus is navigation, not alarm - 2px INK, never red */
	outline: 2px solid var(--fl-ink, #141414);
	outline-offset: 2px;
}

/* Sticky nav — §9 hairline shadow after scroll (motion.js adds .fl-nav-scrolled) */
nav[aria-label="Primary"] {
	position: sticky;
	top: 0;
	z-index: 80;
	background: var(--fl-paper);
	border-bottom: 1px solid var(--fl-line);
	transition: box-shadow 0.15s ease;
}
nav[aria-label="Primary"].fl-nav-scrolled {
	box-shadow: 0 1px 0 var(--fl-line);
}

nav[aria-label="Primary"] [data-panel] { display: none; }

/* Logo lockup — §02 Brand Guidelines: duet weights, one line */
.fl-logo,
nav > div > a[href="/"] {
	display: flex;
	align-items: baseline;
	gap: 8px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	flex-wrap: nowrap;
}
.fl-logo-spodek,
nav > div > a[href="/"] > span:first-child {
	font-family: var(--fl-font-display);
	font-weight: 600;
	font-size: 22px;
	color: var(--fl-ink);
	letter-spacing: -0.4px;
}
.fl-logo-rest,
nav > div > a[href="/"] > span:last-child {
	font-family: var(--fl-font-display);
	font-weight: 200;
	font-size: 22px;
	color: var(--fl-ink);
}

/* §5 buttons */
.fl-btn-red,
a.fl-btn-red {
	display: inline-block;
	background: var(--fl-red);
	color: var(--fl-paper);
	font-family: var(--fl-font-body);
	font-weight: 600;
	font-size: 13.5px;
	padding: 13px 22px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}
.fl-btn-red:hover { background: var(--fl-red-hover); }

.fl-btn-ink {
	background: var(--fl-ink);
	color: var(--fl-paper);
}
.fl-btn-ink:hover { background: var(--fl-ink-hover); }

.fl-link-red {
	font-weight: 500;
	color: var(--fl-ink);
	text-decoration: none;
	border-bottom: 1.5px solid var(--fl-red);
	padding-bottom: 2px;
	transition: color 0.15s ease;
}
.fl-link-red:hover { color: var(--fl-red); }

/* §7 — sticky nav must not be trapped by template-part wrapper */
header.wp-block-template-part,
div.wp-block-template-part:has(nav[aria-label="Primary"]) {
	display: contents;
}

/* §4 — canonical container helper (block templates) */
.fl-container,
.sp-container {
	max-width: var(--fl-container);
	margin-inline: auto;
	padding-inline: var(--fl-gutter);
}

/* §3 — shadow card signature */
.fl-shadow-card {
	background: var(--fl-paper);
	border: 1px solid var(--fl-line);
	box-shadow: 6px 6px 0 var(--fl-line);
}

/* §3 — disclaimer strip (§6) */
.fl-disclaimer-strip,
.sp-disclaimer-strip {
	font-family: var(--fl-font-mono);
	font-size: 8px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--fl-grey-mid);
	padding-bottom: 12px;
	border-bottom: 1px solid var(--fl-line);
	margin-top: var(--fl-rhythm-lg);
}

/* §4 — sticky article rail */
.sp-rail-sticky,
.fl-rail-sticky {
	position: sticky;
	top: var(--fl-sticky-rail);
}

/* §5 — handoff style-hover attributes (README: motion.js hover states) */
[style-hover] {
	transition: background 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

[style-hover="border-color:#141414"]:hover {
	border-color: #141414 !important;
}

[style-hover="background:#d43a2f"]:hover {
	background: #d43a2f !important;
	background-color: #d43a2f !important;
}

[style-hover="background:#f4f4f1"]:hover {
	background: #f4f4f1 !important;
	background-color: #f4f4f1 !important;
}

[style-hover="background:#000000"]:hover {
	background: #2e2e2a !important;
	background-color: #2e2e2a !important;
}

[style-hover="color:#141414"]:hover {
	color: #141414 !important;
}

/* §5 — global hover enforcement on handoff inline CTAs (color only) */
.sp-source-body a[style*="background:#d43a2f"]:hover,
.sp-source-body a[style*="background: #d43a2f"]:hover,
.sp-source-body a[style*="background-color:#d43a2f"]:hover,
.sp-source-body a[style*="background-color: #d43a2f"]:hover {
	background: var(--fl-red-hover) !important;
	background-color: var(--fl-red-hover) !important;
}

.sp-source-body a[style*="background:#141414"]:hover,
.sp-source-body a[style*="background: #141414"]:hover,
.sp-source-body button[style*="background:#141414"]:hover {
	background: var(--fl-ink-hover) !important;
	background-color: var(--fl-ink-hover) !important;
}

.sp-source-body a[style*="border-bottom:1.5px solid #d43a2f"]:hover,
.sp-source-body a[style*="border-bottom: 1.5px solid #d43a2f"]:hover {
	color: var(--fl-red) !important;
}

/* §5 — white-on-ink button */
.fl-btn-paper,
.sp-source-body a[style*="background:#fff"]:hover,
.sp-source-body a[style*="background:#ffffff"]:hover {
	transition: background 0.15s ease, color 0.15s ease;
}
.sp-source-body a[style*="background:#fff"]:hover,
.sp-source-body a[style*="background:#ffffff"]:hover {
	background: var(--fl-line) !important;
	background-color: var(--fl-line) !important;
}

/* §25 / §7 closer — Gravity Forms hairline inputs */
.gform_wrapper,
.gform_wrapper.gravity-theme {
	--gf-form-gap-y: 0;
}
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label {
	font-family: var(--fl-font-mono) !important;
	font-size: 9px !important;
	font-weight: 400 !important;
	letter-spacing: 2px !important;
	text-transform: uppercase !important;
	color: var(--fl-grey-mid) !important;
	margin-bottom: 6px !important;
}
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper select,
.gform_wrapper textarea {
	border: 0 !important;
	border-bottom: 1px solid var(--fl-line) !important;
	border-radius: 0 !important;
	background: transparent !important;
	padding: 12px 14px !important;
	font-family: var(--fl-font-body) !important;
	font-weight: 300 !important;
	font-size: 15px !important;
	color: var(--fl-ink) !important;
	box-shadow: none !important;
}
.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
	outline: none !important;
	border-bottom-color: var(--fl-ink) !important;
}
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"] {
	background: var(--fl-red) !important;
	color: var(--fl-paper) !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-family: var(--fl-font-body) !important;
	font-weight: 600 !important;
	font-size: 13.5px !important;
	padding: 13px 22px !important;
	cursor: pointer;
	transition: background 0.15s ease !important;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover {
	background: var(--fl-red-hover) !important;
}

/* §4 full-bleed handoff page bodies */
.sp-source-body .entry-content,
.sp-fullbleed-article .entry-content {
	max-width: none;
	width: 100%;
	font-size: inherit;
	line-height: inherit;
}

.sp-page .entry-content {
	max-width: 72ch;
	font-size: clamp(17px, 1.4vw, 18px);
	line-height: 1.75;
}

/* Handoff pages own max-width:1160px + inline gutters — no extra WP root padding */
.wp-site-blocks {
	padding-left: 0;
	padding-right: 0;
}

main.wp-block-group {
	padding-left: 0;
	padding-right: 0;
	max-width: none;
}

/* Handoff page body rules → assets/css/handoff-page.css (bundled .dc.html model) */

.sp-source-body,
.sp-source-body * {
	box-sizing: border-box;
}

.sp-source-body input,
.sp-source-body select,
.sp-source-body textarea,
.sp-source-body button {
	box-sizing: border-box;
}

/* §9 reduced motion — disable movement; keep §5 hover color transitions */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
	}
	.sp-reveal,
	.fed-rise,
	.fed-settle {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* Prevent horizontal scroll sitewide */
html,
body {
	overflow-x: clip;
	max-width: 100%;
}

@media (max-width: 640px) {
	main.sp-source-body,
	main.sp-source-body * {
		box-sizing: border-box;
	}
	main.sp-source-body img,
	main.sp-source-body video,
	main.sp-source-body iframe {
		max-width: 100%;
		height: auto;
	}

	/* Utility strip: allow wrap on narrow phones */
	.fl-site-header > div[style*="background:#141414"],
	header.fl-site-header > div[style*="background:#141414"] {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 8px !important;
		padding-top: 10px !important;
		padding-bottom: 10px !important;
	}
}

@media (max-width: 860px) {
	/* Desktop nav links → burger drawer (motion.js) */
	nav[aria-label="Primary"] .sp-navlinks {
		display: none !important;
	}

	nav[aria-label="Primary"] > div {
		flex-wrap: nowrap !important;
		padding-top: 16px !important;
		padding-bottom: 16px !important;
	}

	nav[aria-label="Primary"] .sp-burger {
		margin-left: auto;
		flex-shrink: 0;
	}

	/* Megamenus off — drawer links instead */
	nav[aria-label="Primary"] [data-panel] {
		display: none !important;
	}

	/* Logo scales down slightly */
	nav[aria-label="Primary"] > div > a[href="/"] span {
		font-size: 18px !important;
	}
}
