:root {
	--blue: #0056a4;
	--blue-dark: #003d75;
	--blue-soft: #e8f1f8;
	--ink: #1a1a1a;
	--muted: #5a6570;
	--line: #d5dee7;
	--bg: #ffffff;
	--footer-bg: #0f2f4a;
	--max: 1080px;
	--font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--blue);
}

a:hover {
	color: var(--blue-dark);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--blue);
	color: #fff;
	padding: 0.75rem 1rem;
	z-index: 1000;
}

.skip-link:focus {
	left: 0;
}

.site-header {
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.header-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.brand-logo {
	height: 56px;
	width: auto;
}

.header-accent {
	height: 8px;
	background: var(--blue);
}

.nav-toggle {
	display: none;
	border: 1px solid var(--line);
	background: #f7f9fb;
	border-radius: 4px;
	width: 44px;
	height: 40px;
	cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
	margin: 0 auto;
	position: relative;
	content: "";
}

.nav-toggle-bars::before {
	top: -6px;
	position: absolute;
}

.nav-toggle-bars::after {
	top: 6px;
	position: absolute;
}

.primary-nav ul {
	display: flex;
	gap: 0.25rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.primary-nav a {
	text-decoration: none;
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a.is-active {
	color: var(--blue);
	border-bottom-color: var(--blue);
}

.site-main {
	min-height: 60vh;
}

.content-wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3.5rem;
}

.page-hero {
	text-align: center;
	margin-bottom: 2rem;
}

.page-hero h1 {
	margin: 0 0 1rem;
	font-size: clamp(1.6rem, 2.5vw, 2.2rem);
	line-height: 1.25;
	color: var(--blue-dark);
}

.lead {
	font-size: 1.05rem;
	color: var(--muted);
	max-width: 46rem;
	margin: 0 auto 1rem;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 2.5rem 0;
}

.feature-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--blue-soft);
	border-top: 4px solid var(--blue);
	padding: 1.5rem;
}

.feature-card h2 {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	color: var(--blue-dark);
}

.feature-card p {
	margin: 0 0 1.25rem;
	color: var(--ink);
	flex: 1 1 auto;
}

.feature-card .btn {
	margin-top: auto;
	align-self: flex-start;
}

.btn {
	display: inline-block;
	background: var(--blue);
	color: #fff !important;
	text-decoration: none;
	padding: 0.65rem 1.1rem;
	border-radius: 3px;
	font-weight: 600;
	border: none;
	cursor: pointer;
}

.btn:hover {
	background: var(--blue-dark);
}

.btn-secondary {
	background: transparent;
	color: var(--blue) !important;
	border: 2px solid var(--blue);
}

.callout {
	text-align: center;
	margin-top: 2.5rem;
	padding: 1.5rem;
	background: #f4f7fa;
	border: 1px solid var(--line);
}

.callout h2 {
	margin: 0;
	font-size: 1.25rem;
	color: var(--blue-dark);
}

.section-block {
	margin: 2rem 0;
}

.section-block h2 {
	color: var(--blue-dark);
	border-bottom: 2px solid var(--blue);
	padding-bottom: 0.4rem;
	margin-bottom: 1rem;
}

.detail-list {
	margin: 1rem 0 0;
	padding-left: 1.25rem;
}

.detail-list li {
	margin-bottom: 0.55rem;
	line-height: 1.45;
}

.resource-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.resource-list li {
	border-bottom: 1px solid var(--line);
}

.resource-list a {
	display: block;
	padding: 0.75rem 0.25rem;
	text-decoration: none;
	font-weight: 500;
}

.resource-list a:hover {
	background: var(--blue-soft);
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.video-card {
	border: 1px solid var(--line);
	padding: 1rem;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.video-thumb {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #111;
	cursor: pointer;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-thumb:hover img,
.video-thumb:focus-visible img {
	transform: scale(1.04);
	opacity: 0.85;
}

.video-thumb:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

.video-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 58px;
	height: 40px;
	margin: -20px 0 0 -29px;
	border-radius: 10px;
	background: #c00;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.video-play::before {
	content: "";
	position: absolute;
	left: 23px;
	top: 11px;
	border-style: solid;
	border-width: 9px 0 9px 16px;
	border-color: transparent transparent transparent #fff;
}

.video-card h3 {
	margin: 0;
	font-size: 1.05rem;
	color: var(--blue-dark);
}

.video-card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.video-modal[hidden] {
	display: none !important;
}

.video-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.video-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 30, 0.72);
}

.video-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	background: #0f1a24;
	color: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.video-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1rem;
	background: #142433;
}

.video-modal-header h2 {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

.video-modal-close {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.15rem 0.4rem;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
	color: #9fd0ff;
}

.video-modal-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.video-modal-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

body.video-modal-open {
	overflow: hidden;
}

/* Isolated manuals shell (no public navigation) */
.manuals-shell {
	background: #f7f9fb;
	min-height: 100vh;
}

.manuals-header {
	background: #fff;
	border-bottom: 8px solid var(--blue);
}

.manuals-header-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
}

.manuals-kicker {
	margin: 0.35rem 0 0;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
}

.manuals-wrap {
	max-width: 920px;
}

.manuals-staff-notice {
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	background: #fff8e8;
	border-left: 4px solid #d4a017;
}

.manuals-staff-notice p {
	margin: 0 0 0.5rem;
	color: var(--ink);
	font-size: 0.95rem;
	line-height: 1.45;
}

.manuals-staff-notice p:last-child {
	margin-bottom: 0;
}

.manuals-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
}

.manuals-toolbar .btn {
	padding: 0.4rem 0.85rem;
	font-size: 0.9rem;
	font-weight: 700;
}

.manuals-family {
	margin: 0 0 2rem;
}

.manuals-family-header {
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--blue);
}

.manuals-family-header h2 {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	color: var(--blue-dark);
}

.manuals-family-header p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.manuals-footer {
	text-align: center;
	color: var(--muted);
	font-size: 0.85rem;
	padding: 1.5rem;
}

.manuals-footer p {
	margin: 0;
	max-width: 36rem;
	margin-inline: auto;
}

.manual-frame {
	margin-top: 1rem;
	border: 1px solid var(--line);
	background: #111;
	min-height: 70vh;
}

.manual-frame iframe {
	width: 100%;
	height: 75vh;
	border: 0;
	background: #fff;
}

.manuals-token-list li,
.manual-file-row {
	display: grid;
	grid-template-columns: minmax(12rem, 1.6fr) minmax(10rem, 1.1fr) auto;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.65rem 0.25rem;
	border-bottom: 1px solid var(--line);
}

.manual-file-head {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted, #5a6570);
	border-bottom-color: var(--line);
	padding-top: 0.85rem;
}

.manuals-token-list a,
.manual-file-name {
	min-width: 0;
	padding: 0;
	overflow-wrap: anywhere;
}

.manual-file-part {
	font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
	font-size: 0.9rem;
	color: var(--ink, #1a1f24);
	overflow-wrap: anywhere;
}

.manual-file-action {
	justify-self: end;
}

.copy-link-btn {
	flex: 0 0 auto;
	padding: 0.35rem 0.75rem;
	font-size: 0.85rem;
	font-weight: 600;
}

@media (max-width: 720px) {
	.manuals-token-list li,
	.manual-file-row {
		grid-template-columns: 1fr auto;
	}

	.manual-file-head .manual-file-part {
		display: none;
	}

	.manual-file-part {
		grid-column: 1 / -1;
		order: 3;
		font-size: 0.82rem;
		color: var(--muted, #5a6570);
	}

	.manual-file-name {
		grid-column: 1;
	}

	.manual-file-action {
		grid-column: 2;
		grid-row: 1;
	}
}

.copy-link-btn.is-copied {
	background: var(--blue);
	color: #fff !important;
	border-color: var(--blue);
}

.manuals-accordion {
	display: grid;
	gap: 0.5rem;
}

.manuals-acc-item {
	border: 1px solid var(--line);
	border-radius: 4px;
	background: #fff;
}

.manuals-acc-summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	color: var(--blue-dark);
	user-select: none;
}

.manuals-acc-summary::-webkit-details-marker {
	display: none;
}

.manuals-acc-summary::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid var(--blue);
	border-bottom: 2px solid var(--blue);
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
	flex: 0 0 auto;
}

.manuals-acc-item[open] > .manuals-acc-summary::before {
	transform: rotate(45deg);
}

.manuals-acc-summary:hover {
	background: var(--blue-soft);
}

.manuals-acc-label {
	flex: 1 1 auto;
}

.manuals-acc-item .manuals-token-list {
	margin: 0;
	padding: 0 0.75rem 0.5rem;
	border-top: 1px solid var(--line);
}

.page-hero:has(+ .series-tabs) {
	text-align: left;
	margin-bottom: 1.25rem;
}

.page-hero:has(+ .series-tabs) h1 {
	margin-bottom: 0.4rem;
	font-size: clamp(1.4rem, 2vw, 1.85rem);
}

.page-hero:has(+ .series-tabs) .lead {
	margin: 0;
	font-size: 0.95rem;
	max-width: none;
}

.series-tabs {
	margin: 0 0 1.5rem;
}

.series-tabs-label {
	display: block;
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue-dark);
}

.series-tablist {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	padding: 0.5rem;
	margin: 0 0 1.25rem;
	border: 2px solid var(--blue);
	border-radius: 8px;
	background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%);
	box-shadow: 0 6px 18px rgba(0, 61, 117, 0.1);
}

.series-tab {
	appearance: none;
	border: 2px solid var(--blue);
	background: #fff;
	color: var(--blue-dark);
	font: inherit;
	font-size: clamp(0.95rem, 1.8vw, 1.15rem);
	font-weight: 800;
	line-height: 1.2;
	padding: 0.7rem 0.9rem;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.series-tab:hover {
	background: var(--blue-soft);
	color: var(--blue-dark);
	transform: translateY(-1px);
}

.series-tab.is-active {
	color: #fff;
	background: var(--blue);
	border-color: var(--blue-dark);
	box-shadow: 0 4px 0 var(--blue-dark);
}

.series-tab.is-active:hover {
	background: var(--blue-dark);
	color: #fff;
}

.series-tab:focus-visible {
	outline: 3px solid var(--blue-dark);
	outline-offset: 3px;
}

@media (max-width: 720px) {
	.series-tablist {
		grid-template-columns: 1fr;
	}
}

.series-panel[hidden] {
	display: none !important;
}

.series-panel .section-block {
	margin: 0 0 1.15rem;
}

.series-panel .section-block h2 {
	font-size: 1.05rem;
	margin: 0 0 0.5rem;
	padding-bottom: 0.25rem;
}

.series-panel .resource-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1.25rem;
}

.series-panel .resource-list a,
.series-panel .resource-item {
	padding: 0.35rem 0.15rem;
	font-size: 0.92rem;
	line-height: 1.35;
}

.series-panel .video-grid {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.6rem;
}

.series-panel .video-grid-featured {
	grid-template-columns: repeat(4, 1fr);
	margin-bottom: 0.75rem;
}

.series-panel .video-card {
	padding: 0.45rem;
	gap: 0.35rem;
}

.series-panel .video-card h3 {
	font-size: 0.8rem;
	line-height: 1.3;
	font-weight: 600;
}

.series-panel .video-play {
	width: 42px;
	height: 28px;
	margin: -14px 0 0 -21px;
	border-radius: 7px;
}

.series-panel .video-play::before {
	left: 16px;
	top: 7px;
	border-width: 7px 0 7px 12px;
}

.series-panel .video-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1.25rem;
}

.series-panel .video-text-link {
	appearance: none;
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: transparent;
	color: var(--blue);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.35;
	padding: 0.35rem 0.15rem;
	cursor: pointer;
}

.series-panel .video-text-link:hover {
	color: var(--blue-dark);
	background: var(--blue-soft);
}

.series-panel .video-text-link:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.series-panel .resource-list,
	.series-panel .video-link-list {
		grid-template-columns: 1fr;
	}

	.series-panel .video-grid,
	.series-panel .video-grid-featured {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}
}

.form-stack {
	display: grid;
	gap: 1rem;
	max-width: 36rem;
}

.form-stack label {
	display: grid;
	gap: 0.35rem;
	font-weight: 600;
}

.form-stack input,
.form-stack select,
.form-stack textarea {
	font: inherit;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 3px;
}

.form-stack textarea {
	min-height: 120px;
	resize: vertical;
}

/* Honeypot � leave empty; visually hidden from people, still in the DOM for bots */
.form-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.note {
	background: #fff8e8;
	border-left: 4px solid #d4a017;
	padding: 0.85rem 1rem;
	margin: 1rem 0;
}

.site-footer {
	background: var(--footer-bg);
	color: #d7e3ef;
	padding: 2rem 1.25rem;
}

.footer-inner {
	max-width: var(--max);
	margin: 0 auto;
	text-align: center;
}

.footer-phone {
	font-size: 1.1rem;
	margin: 0 0 1.25rem;
}

.footer-phone a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.footer-nav {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1.25rem;
}

.footer-nav a {
	color: #c5d7e8;
	text-decoration: none;
	font-size: 0.95rem;
}

.footer-nav a:hover,
.footer-nav a.is-active {
	color: #fff;
	text-decoration: underline;
}

.copyright {
	margin: 0;
	font-size: 0.85rem;
	color: #9bb0c3;
}

.source-tag {
	color: var(--muted);
	font-weight: 400;
	margin-left: 0.35rem;
	font-size: 0.85em;
}

.missing-tag {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1rem 0.4rem;
	background: #fde8e8;
	color: #a11919;
	font-weight: 700;
	font-size: 0.8rem;
	border-radius: 3px;
	text-transform: lowercase;
}

.resource-item {
	padding: 0.75rem 0.25rem;
	border-bottom: 1px solid var(--line);
}

.resource-list .resource-item {
	border-bottom: none;
}

.resource-list li.resource-item {
	border-bottom: 1px solid var(--line);
}

.resource-missing .resource-title {
	color: var(--muted);
}

.legal-updated {
	color: var(--muted);
	font-size: 0.9rem;
	margin: 0;
}

.legal-doc h2 {
	margin-top: 1.75rem;
	font-size: 1.15rem;
}

.legal-doc ul {
	padding-left: 1.25rem;
}

.legal-doc li {
	margin-bottom: 0.35rem;
}

.preview-banner {
	background: #fff3cd;
	color: #5c4800;
	text-align: center;
	padding: 0.55rem 1rem;
	font-size: 0.9rem;
	border-bottom: 1px solid #e6d28a;
}

@media (max-width: 860px) {
	.feature-grid {
		grid-template-columns: 1fr;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.primary-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--line);
		padding: 0.75rem 1.25rem 1rem;
	}

	.site-header {
		position: relative;
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
	}
}
