/*
 * FredScanner Command Center
 * Consolidated stylesheet candidate generated from the working production CSS.
 * Legacy selectors for removed markup were deleted. Existing live cascade order is preserved.
 */

:root {
	--fs-background: #0b1118;
	--fs-background-2: #0d1420;
	--fs-panel: #121b27;
	--fs-panel-raised: #172231;
	--fs-border: rgba(255, 255, 255, 0.08);
	--fs-text: #f4f7fb;
	--fs-muted: #9eacba;
	--fs-orange: #f47a20;
	--fs-orange-soft: rgba(244, 122, 32, 0.15);
	--fs-green: #26d36b;
	--fs-red: #e54856;
	--fs-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	--fs-radius: 18px;
	--fs-radius-sm: 12px;
}

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

html {
	background:
		radial-gradient(circle at top center, rgba(29, 52, 89, 0.25), transparent 40%),
		linear-gradient(180deg, #09111d 0%, #0b1118 100%);
}

body {
	margin: 0;
	color: var(--fs-text);
	background: transparent;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

.site-shell {
	width: min(1400px, calc(100% - 40px));
	margin-inline: auto;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(12px);
	background: rgba(8, 14, 24, 0.92);
	border-bottom: 1px solid var(--fs-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}


.site-header__right {
	display: flex;
	align-items: center;
	gap: 28px;
}

.primary-navigation__list {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-navigation__list a {
	color: #d7e0ea;
	font-weight: 600;
	font-size: 0.96rem;
}

.primary-navigation__list a:hover,
.primary-navigation__list a:focus {
	color: var(--fs-orange);
}

.social-links {
	display: flex;
	align-items: center;
	gap: 10px;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	color: #fff;
	font-weight: 700;
	border: 1px solid rgba(255,255,255,0.08);
}

/* Page */
.command-center-page {
	padding: 28px 0 48px;
}


/* Layout */
.dashboard-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
	gap: 24px;
	align-items: start;
}

.dashboard-main,
.dashboard-sidebar {
	display: grid;
	gap: 24px;
}

/* Panels */
.panel {
	background: linear-gradient(180deg, rgba(21,30,42,0.98), rgba(18,27,39,0.98));
	border: 1px solid var(--fs-border);
	border-radius: var(--fs-radius);
	box-shadow: var(--fs-shadow);
	overflow: hidden;
}

.panel__header {
	display: flex;
	align-items: center;
	padding: 18px 20px 0;
}

.panel__header--between {
	justify-content: space-between;
}


.panel__header h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
}

.panel__link {
	color: var(--fs-orange);
	font-weight: 700;
	font-size: 0.95rem;
}

/* Hero camera */
.panel--hero {
	padding-bottom: 18px;
}

.camera-frame {
	margin: 18px 20px 14px;
	height: 500px;
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,0.08);
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
		linear-gradient(135deg, #1a2b3c, #22384d 45%, #1b4f27 100%);
}


.camera-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	padding: 0 20px;
}

.camera-thumbs__item {
	min-height: 64px;
	padding: 10px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.08);
	background: rgba(255,255,255,0.03);
	color: #d6dfea;
	font-size: 0.84rem;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
}

.camera-thumbs__item.is-active {
	border-color: var(--fs-orange);
	box-shadow: inset 0 0 0 1px var(--fs-orange);
}

/* Incidents */
.incident-list {
	padding: 10px 0 6px;
}

.incident-row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) 240px;
	gap: 18px;
	align-items: center;
	padding: 16px 20px;
	border-top: 1px solid rgba(255,255,255,0.06);
}

.incident-row:first-child {
	border-top: none;
}

.incident-row__time {
	color: var(--fs-orange);
	font-weight: 800;
	font-size: 0.95rem;
}

.incident-row__title {
	font-size: 1.05rem;
	font-weight: 800;
}

.incident-row__sub {
	color: var(--fs-muted);
	font-size: 0.95rem;
}

.incident-row__units {
	color: #d6dee8;
	font-size: 0.95rem;
	text-align: right;
}


.on-air-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--fs-red);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
}

.feed-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 16px 20px 0;
}

.feed-tabs__item {
	height: 42px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.08);
	background: rgba(255,255,255,0.03);
	color: #d6dfea;
	font-weight: 800;
	cursor: pointer;
}

.feed-tabs__item.is-active {
	border-color: var(--fs-orange);
	color: var(--fs-orange);
	background: rgba(244, 122, 32, 0.08);
}


/* Weather */


/* Sponsors */


.sponsor-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 110px;
	border-radius: 14px;
	border: 1px solid rgba(255,255,255,0.08);
	background:
		linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05)),
		#0e1621;
	font-size: 1.35rem;
	font-weight: 900;
	color: #fff;
}

/* Footer */
.site-footer {
	margin-top: 40px;
	padding: 24px 0 36px;
	border-top: 1px solid var(--fs-border);
	color: var(--fs-muted);
}

.site-footer__inner {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.site-footer p {
	margin: 0;
	font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1100px) {


	.dashboard-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.incident-row {
		grid-template-columns: 100px minmax(0, 1fr);
	}

	.incident-row__units {
		grid-column: 2;
		text-align: left;
	}
}

@media (max-width: 900px) {
	.site-header__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-header__right {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.primary-navigation__list {
		flex-wrap: wrap;
		gap: 14px 18px;
	}

	.dashboard-sidebar {
		grid-template-columns: 1fr;
	}

	.camera-thumbs {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 700px) {
	.site-shell {
		width: min(100% - 24px, 1400px);
	}


	.primary-navigation {
		display: none;
	}


	.camera-frame {
		height: 320px;
	}


	.camera-thumbs {
		grid-template-columns: 1fr;
	}

	.incident-row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.incident-row__units {
		grid-column: auto;
	}


	.site-footer__inner {
		flex-direction: column;
	}
}


/* ===== Mockup alignment pass ===== */

.site-header__inner {
	min-height: 138px;
	padding-block: 12px;
}

.site-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	min-width: 390px;
	line-height: 1;
}


.command-center-page {
	padding-top: 26px;
}


.panel--sponsors {
	margin-top: 24px;
}

.panel--sponsors .sponsor-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel--sponsors .sponsor-card {
	min-height: 116px;
}

@media (max-width: 900px) {
	.site-header__inner {
		min-height: auto;
	}

	.site-brand {
		min-width: 0;
	}


}

@media (max-width: 700px) {


	.panel--sponsors .sponsor-grid {
		grid-template-columns: 1fr;
	}
}


/* ===== Final header logo ===== */

.site-header__inner {
	min-height: 132px;
	padding-block: 12px;
}

.site-brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
}

.site-brand__final-logo {
	display: block;
	width: clamp(320px, 34vw, 520px);
	height: auto;
}

@media (max-width: 900px) {
	.site-header__inner {
		min-height: auto;
	}

	.site-brand__final-logo {
		width: min(460px, 88vw);
	}
}

@media (max-width: 700px) {
	.site-brand__final-logo {
		width: min(340px, 90vw);
	}
}

/* Header logo sizing refinement */
.site-header__inner {
	min-height: 96px;
	padding-block: 10px;
}

.site-brand__final-logo {
	width: clamp(240px, 26vw, 360px);
	height: auto;
}

@media (max-width: 900px) {
	.site-brand__final-logo {
		width: min(320px, 74vw);
	}
}

@media (max-width: 700px) {
	.site-brand__final-logo {
		width: min(280px, 82vw);
	}
}

/* Final compact header sizing */
.site-header__inner {
	min-height: 78px;
	padding-block: 6px;
}

.site-brand__final-logo {
	width: 280px;
	max-width: 28vw;
	height: auto;
}

@media (max-width: 900px) {
	.site-brand__final-logo {
		width: 250px;
		max-width: 70vw;
	}
}

@media (max-width: 700px) {
	.site-brand__final-logo {
		width: 220px;
		max-width: 78vw;
	}
}

/* ===== Viewport overflow fix ===== */

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

.site-shell {
	width: min(1400px, calc(100% - 32px));
	max-width: 100%;
}

.site-header__inner {
	min-width: 0;
}

.site-brand {
	min-width: 0;
	flex-shrink: 1;
}

.site-brand__final-logo {
	display: block;
	width: 280px;
	max-width: 100%;
}

.site-header__right {
	min-width: 0;
	flex: 1 1 auto;
	justify-content: flex-end;
}

.primary-navigation {
	min-width: 0;
}

.primary-navigation__list {
	flex-wrap: wrap;
	justify-content: flex-end;
	row-gap: 10px;
}

.dashboard-grid,
.dashboard-main,
.dashboard-sidebar,
.panel{
	min-width: 0;
}


.dashboard-grid {
	grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
}

.camera-frame,
.camera-thumbs,
.incident-list{
	min-width: 0;
}

@media (max-width: 1180px) {
	.site-header__inner {
		flex-wrap: wrap;
	}

	.site-header__right {
		width: 100%;
		justify-content: space-between;
	}

	.primary-navigation__list {
		justify-content: flex-start;
	}


	.dashboard-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.site-shell {
		width: min(100% - 20px, 1400px);
	}

	.site-header__right {
		align-items: flex-start;
	}

	.social-links {
		flex-wrap: wrap;
	}


	.dashboard-sidebar {
		grid-template-columns: 1fr;
	}

	.camera-thumbs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.camera-thumbs {
		grid-template-columns: 1fr;
	}
}

/* ===== Live incidents ===== */

.panel__status {
	margin: 4px 0 0;
	color: var(--fs-muted);
	font-size: 0.78rem;
	font-weight: 600;
}

.incident-updated {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 3px 7px;
	border: 1px solid rgba(244, 122, 32, 0.35);
	border-radius: 999px;
	background: rgba(244, 122, 32, 0.12);
	color: var(--fs-orange);
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
}

.incident-row__radio {
	margin-top: 4px;
	color: var(--fs-orange);
	font-size: 0.78rem;
	font-weight: 700;
}

.incident-empty {
	padding: 28px 20px;
	color: var(--fs-muted);
	text-align: center;
}

.incident-row {
	transition:
		background-color 180ms ease,
		border-color 180ms ease;
}

.incident-row:hover {
	background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 700px) {
	.panel__header--between {
		align-items: flex-start;
		gap: 14px;
	}

	.incident-row__units {
		color: var(--fs-muted);
		font-size: 0.86rem;
	}
}

/* ===== Incident icons ===== */

.panel__heading-with-icon {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.panel__heading-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	background: rgba(255, 255, 255, 0.02);
}

.panel__heading-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}


.incident-row {
	grid-template-columns: 110px 72px minmax(0, 1fr) 240px;
}

.incident-row__icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.incident-row__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	border: 2px solid currentColor;
	background: rgba(255, 255, 255, 0.02);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.incident-row__icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

.incident-row__icon--fire {
	color: #ff5d5d;
	background: rgba(255, 93, 93, 0.08);
}

.incident-row__icon--vehicle {
	color: #ffad46;
	background: rgba(255, 173, 70, 0.08);
}

.incident-row__icon--traffic {
	color: #f2c84b;
	background: rgba(242, 200, 75, 0.08);
}

.incident-row__icon--medical {
	color: #49d67d;
	background: rgba(73, 214, 125, 0.08);
}

.incident-row__icon--hazmat {
	color: #c06cff;
	background: rgba(192, 108, 255, 0.08);
}

.incident-row__icon--water {
	color: #4db8ff;
	background: rgba(77, 184, 255, 0.08);
}

.incident-row__icon--weather {
	color: #6fc4ff;
	background: rgba(111, 196, 255, 0.08);
}

.incident-row__icon--investigation {
	color: #a7b7d6;
	background: rgba(167, 183, 214, 0.08);
}

.incident-row__icon--alert {
	color: #ff8f5a;
	background: rgba(255, 143, 90, 0.08);
}

@media (max-width: 1100px) {
	.incident-row {
		grid-template-columns: 100px 64px minmax(0, 1fr);
	}

	.incident-row__units {
		grid-column: 3;
		text-align: left;
	}
}

@media (max-width: 700px) {
	.incident-row {
		grid-template-columns: 88px 54px minmax(0, 1fr);
		gap: 10px;
	}

	.incident-row__icon {
		width: 42px;
		height: 42px;
	}

	.incident-row__icon svg {
		width: 20px;
		height: 20px;
	}

	.incident-row__units {
		grid-column: 1 / -1;
		padding-left: 98px;
	}
}

/* ===== Custom icon polish ===== */

.incident-row__icon {
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.03),
		0 0 14px rgba(0, 0, 0, 0.16);
}

.incident-row__icon svg {
	filter: drop-shadow(0 0 4px rgba(255,255,255,0.04));
}

.incident-row__icon--alarm {
	color: #f5a33d;
	background: rgba(245, 163, 61, 0.08);
}

.incident-row__icon--fire {
	color: #ff6a61;
	background: rgba(255, 106, 97, 0.08);
}

.incident-row__icon--vehicle {
	color: #f5b542;
	background: rgba(245, 181, 66, 0.08);
}

.incident-row__icon--traffic {
	color: #f0cf4e;
	background: rgba(240, 207, 78, 0.08);
}

.incident-row__icon--wires {
	color: #f0cf4e;
	background: rgba(240, 207, 78, 0.08);
}

.incident-row__icon--medical {
	color: #52d56f;
	background: rgba(82, 213, 111, 0.08);
}

/* ===== Incident icon clarity pass ===== */

.incident-row__icon {
	width: 58px;
	height: 58px;
	border-width: 2px;
	background: rgba(255,255,255,0.045);
}

.incident-row__icon svg {
	width: 30px;
	height: 30px;
	filter: none;
}

@media (max-width: 700px) {
	.incident-row__icon {
		width: 48px;
		height: 48px;
	}

	.incident-row__icon svg {
		width: 26px;
		height: 26px;
	}
}

/* ===== Set A icon tuning ===== */

.incident-row__icon {
	width: 56px;
	height: 56px;
	border-width: 2px;
	background: rgba(255,255,255,0.035);
	box-shadow:
		inset 0 0 0 1px rgba(255,255,255,0.03),
		0 0 12px rgba(0,0,0,0.18);
}

.incident-row__icon svg {
	width: 28px;
	height: 28px;
	display: block;
	filter: none;
}

.incident-row__icon--alarm {
	color: #f5a33d;
	background: rgba(245, 163, 61, 0.08);
}

.incident-row__icon--fire {
	color: #ff6b5f;
	background: rgba(255, 107, 95, 0.08);
}

.incident-row__icon--vehicle {
	color: #f2b53f;
	background: rgba(242, 181, 63, 0.08);
}

.incident-row__icon--hazard {
	color: #f2cf4f;
	background: rgba(242, 207, 79, 0.08);
}

.incident-row__icon--wires {
	color: #f2cf4f;
	background: rgba(242, 207, 79, 0.08);
}

.incident-row__icon--investigation {
	color: #9eb4d8;
	background: rgba(158, 180, 216, 0.09);
}

.incident-row__icon--medical {
	color: #52d56f;
	background: rgba(82, 213, 111, 0.08);
}

.incident-row__icon--hazmat {
	color: #c978ff;
	background: rgba(201, 120, 255, 0.08);
}

.incident-row__icon--water {
	color: #59b8ff;
	background: rgba(89, 184, 255, 0.08);
}

.incident-row__icon--weather {
	color: #6ebeff;
	background: rgba(110, 190, 255, 0.08);
}

/* ===== Clear Font Awesome incident icons ===== */

.incident-row__icon i,
.panel__heading-icon i {
	display: block;
	font-size: 1.55rem;
	line-height: 1;
}

.panel__heading-icon i {
	font-size: 1rem;
}

.incident-row__icon svg,
.panel__heading-icon svg {
	display: none;
}

.incident-row__icon {
	width: 58px;
	height: 58px;
}

@media (max-width: 700px) {
	.incident-row__icon {
		width: 48px;
		height: 48px;
	}

	.incident-row__icon i {
		font-size: 1.3rem;
	}
}

/* ===== Scrollable incident panel ===== */

#fredscanner-incident-list {
	max-height: 520px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(244, 122, 32, 0.55) rgba(255, 255, 255, 0.04);
}

#fredscanner-incident-list::-webkit-scrollbar {
	width: 10px;
}

#fredscanner-incident-list::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.03);
	border-radius: 999px;
}

#fredscanner-incident-list::-webkit-scrollbar-thumb {
	background: rgba(244, 122, 32, 0.55);
	border: 2px solid transparent;
	border-radius: 999px;
	background-clip: padding-box;
}

#fredscanner-incident-list::-webkit-scrollbar-thumb:hover {
	background: rgba(244, 122, 32, 0.8);
	background-clip: padding-box;
}

#fredscanner-incident-list .incident-row:last-child {
	border-bottom: 0;
}

@media (max-width: 700px) {
	#fredscanner-incident-list {
		max-height: 470px;
	}
}

/* ===== Live traffic cameras ===== */

.camera-frame--live {
	height: auto;
	aspect-ratio: 16 / 9;
	background: #05090f;
}

.camera-player {
	display: block;
	width: 100%;
	height: 100%;
	background: #05090f;
	object-fit: cover;
}

.camera-frame__caption {
	position: absolute;
	z-index: 3;
	left: 16px;
	bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 32px);
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(5, 9, 15, 0.76);
	backdrop-filter: blur(8px);
	pointer-events: none;
}

.camera-frame__caption strong {
	overflow: hidden;
	color: #fff;
	font-size: 0.92rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.camera-frame__caption span {
	flex: 0 0 auto;
	color: var(--fs-orange);
	font-size: 0.78rem;
	font-weight: 800;
}

.camera-live-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--fs-muted);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.camera-live-status::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.camera-live-status[data-state="live"] {
	color: var(--fs-green);
}

.camera-live-status[data-state="loading"] {
	color: #f2b53f;
}

.camera-live-status[data-state="error"] {
	color: #ff6b5f;
}

.camera-thumbs--scroll {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	scrollbar-width: thin;
	scrollbar-color: rgba(244, 122, 32, 0.55)
		rgba(255, 255, 255, 0.04);
}

.camera-thumbs--scroll .camera-thumbs__item {
	flex: 0 0 180px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-height: 66px;
}

.camera-thumbs__item strong {
	color: inherit;
	font-size: 0.85rem;
}

.camera-thumbs__item span {
	overflow: hidden;
	color: var(--fs-muted);
	font-size: 0.72rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.camera-thumbs__item.is-active span {
	color: #f4c19b;
}

@media (max-width: 700px) {
	.camera-frame--live {
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.camera-thumbs--scroll {
		display: flex;
	}

	.camera-thumbs--scroll .camera-thumbs__item {
		flex-basis: 150px;
	}
}

/* ===== Camera sizing tweak ===== */

.camera-frame--live {
	aspect-ratio: 4 / 3;
}

.camera-player {
	object-fit: contain;
	background: #05090f;
}

@media (max-width: 700px) {
	.camera-frame--live {
		aspect-ratio: 4 / 3;
	}
}

/* ===== Camera navigation controls ===== */

.camera-navigation {
	display: grid;
	grid-template-columns:
		minmax(0, 1fr)
		auto
		minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 0 20px 12px;
}

.camera-navigation__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.035);
	color: #dce4ed;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	cursor: pointer;
	transition:
		border-color 160ms ease,
		background-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.camera-navigation__button:hover,
.camera-navigation__button:focus-visible {
	border-color: rgba(244, 122, 32, 0.75);
	background: rgba(244, 122, 32, 0.08);
	color: #fff;
	outline: none;
}

.camera-navigation__button:active {
	transform: translateY(1px);
}

.camera-navigation__button > span[aria-hidden="true"] {
	font-size: 1.25rem;
	line-height: 1;
}

.camera-navigation__button--cycle {
	min-width: 170px;
	border-color: rgba(244, 122, 32, 0.45);
	color: var(--fs-orange);
}

.camera-navigation__button--cycle.is-playing {
	background: rgba(38, 211, 107, 0.08);
	border-color: rgba(38, 211, 107, 0.48);
	color: var(--fs-green);
}

.camera-navigation__button--cycle.is-paused {
	background: rgba(244, 122, 32, 0.08);
	border-color: rgba(244, 122, 32, 0.48);
	color: var(--fs-orange);
}

.camera-navigation__cycle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	font-size: 0.85rem !important;
}

@media (max-width: 700px) {
	.camera-navigation {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-inline: 12px;
	}

	.camera-navigation__button--cycle {
		grid-column: 1 / -1;
		grid-row: 1;
		min-width: 0;
	}

	.camera-navigation__button {
		width: 100%;
	}
}

/* ===== Live Broadcastify audio ===== */

.panel--listen-live {
	overflow: hidden;
}

.broadcastify-player {
	position: relative;
	height: 190px;
	margin: 16px 20px 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 14px;
	background: #08131f;
}

.broadcastify-player__iframe {
	display: block;
	width: 100%;
	height: 650px;
	border: 0;
	background: #08131f;
	transform: translateY(0);
}

.broadcastify-player__loading {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(8, 19, 31, 0.96);
	color: var(--fs-muted);
	font-size: 0.88rem;
	font-weight: 700;
	text-align: center;
	pointer-events: none;
}

.broadcastify-player__loading.is-visible {
	display: flex;
}

.listen-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 20px 18px;
	color: var(--fs-muted);
	font-size: 0.78rem;
}

.listen-card__footer p {
	margin: 0;
	text-align: right;
}


@media (max-width: 700px) {
	.broadcastify-player {
		height: 180px;
		margin-inline: 12px;
	}

	.listen-card__footer {
		flex-direction: column;
		align-items: flex-start;
		padding-inline: 12px;
	}

	.listen-card__footer p {
		text-align: left;
	}
}

.listen-card__footer--center {
	justify-content: center;
	text-align: center;
}

.listen-card__footer--center p {
	width: 100%;
	text-align: center;
}

/* ===== Production weather panel ===== */

.panel--weather {
	overflow: hidden;
}

.weather-live {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 14px;
	padding: 16px 20px 20px;
}

.weather-live__radar,
.weather-live__forecast {
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.025);
}

.weather-live__radar {
	position: relative;
	min-height: 220px;
}

.weather-live__radar img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
}

.weather-live__radar-label {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 6px 9px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(5, 9, 15, 0.74);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
}

.weather-live__forecast {
	display: flex;
	align-items: stretch;
	min-height: 220px;
	padding: 8px;
}

.weather-live__forecast .weatherwidget-io {
	width: 100%;
	min-height: 204px;
}

@media (max-width: 1100px) {
	.weather-live {
		grid-template-columns: 1fr;
	}

	.weather-live__radar,
	.weather-live__radar img {
		min-height: 260px;
	}
}

@media (max-width: 700px) {
	.weather-live {
		padding-inline: 12px;
	}

	.weather-live__radar,
	.weather-live__radar img {
		min-height: 210px;
	}
}

/* Stack weather radar above forecast, matching production */

.weather-live {
	grid-template-columns: 1fr;
}

.weather-live__radar {
	min-height: 300px;
}

.weather-live__radar img {
	width: 100%;
	height: 300px;
	min-height: 300px;
	object-fit: cover;
}

.weather-live__forecast {
	width: 100%;
	min-height: 220px;
}

@media (max-width: 700px) {
	.weather-live__radar,
	.weather-live__radar img {
		min-height: 220px;
		height: 220px;
	}
}

/* ===== Homepage priority layout ===== */

/* Weather beneath cameras: radar and forecast side by side. */
.dashboard-main .panel--weather .weather-live {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.dashboard-main .panel--weather .weather-live__radar,
.dashboard-main .panel--weather .weather-live__forecast {
	min-width: 0;
	min-height: 250px;
}

.dashboard-main .panel--weather .weather-live__radar img {
	width: 100%;
	height: 250px;
	min-height: 250px;
	object-fit: cover;
}

.dashboard-main .panel--weather .weather-live__forecast {
	display: flex;
	align-items: stretch;
}

.dashboard-main .panel--weather .weatherwidget-io {
	width: 100% !important;
	max-width: 100% !important;
}

/* Incidents beneath Listen Live in the sidebar. */
.dashboard-sidebar .panel--incidents {
	min-height: 560px;
}

.dashboard-sidebar .panel--incidents .incident-list {
	max-height: 650px;
}


.dashboard-sidebar .panel--incidents .incident-row {
	padding-left: 14px;
	padding-right: 14px;
}

/* Stack weather again on narrower screens. */
@media (max-width: 1100px) {
	.dashboard-main .panel--weather .weather-live {
		grid-template-columns: 1fr;
	}

	.dashboard-main .panel--weather .weather-live__radar,
	.dashboard-main .panel--weather .weather-live__forecast {
		min-height: 220px;
	}

	.dashboard-main .panel--weather .weather-live__radar img {
		height: 220px;
		min-height: 220px;
	}

	.dashboard-sidebar .panel--incidents {
		min-height: 0;
	}
}

/* ===== Sidebar incident formatting ===== */

.dashboard-sidebar .panel--incidents {
	min-width: 0;
	overflow: hidden;
}

.dashboard-sidebar .panel--incidents .incident-list {
	max-height: 620px;
	overflow-y: auto;
	overflow-x: hidden;
}

.dashboard-sidebar .panel--incidents .incident-row {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	grid-template-areas:
		"time details"
		"time units";
	column-gap: 14px;
	row-gap: 6px;
	align-items: start;
	padding: 18px 16px;
}

.dashboard-sidebar .panel--incidents .incident-row__time {
	grid-area: time;
	align-self: center;
	white-space: nowrap;
	font-size: 0.78rem;
	font-weight: 800;
}

.dashboard-sidebar .panel--incidents .incident-row__icon-wrap {
	grid-area: details;
	position: absolute;
}

.dashboard-sidebar .panel--incidents .incident-row__main {
	grid-area: details;
	min-width: 0;
	padding-left: 58px;
}

.dashboard-sidebar .panel--incidents .incident-row__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	font-size: 0.94rem;
	line-height: 1.25;
	word-break: normal;
	overflow-wrap: anywhere;
}

.dashboard-sidebar .panel--incidents .incident-row__sub,
.dashboard-sidebar .panel--incidents .incident-row__radio {
	font-size: 0.78rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.dashboard-sidebar .panel--incidents .incident-row__units {
	grid-area: units;
	min-width: 0;
	padding-left: 58px;
	font-size: 0.74rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.dashboard-sidebar .panel--incidents .incident-row__icon {
	width: 44px;
	height: 44px;
}

.dashboard-sidebar .panel--incidents .incident-updated {
	font-size: 0.64rem;
}

/* Keep the sidebar panel header from crowding itself. */
.dashboard-sidebar .panel--incidents .panel__header {
	gap: 12px;
}

.dashboard-sidebar .panel--incidents .panel__link {
	flex-shrink: 0;
	white-space: nowrap;
	font-size: 0.76rem;
}

@media (max-width: 1100px) {
	.dashboard-sidebar .panel--incidents .incident-row {
		grid-template-columns: 82px minmax(0, 1fr);
	}
}

@media (max-width: 520px) {
	.dashboard-sidebar .panel--incidents .incident-row {
		grid-template-columns: 1fr;
		grid-template-areas:
			"time"
			"details"
			"units";
	}

	.dashboard-sidebar .panel--incidents .incident-row__time {
		align-self: auto;
	}

	.dashboard-sidebar .panel--incidents .incident-row__main,
	.dashboard-sidebar .panel--incidents .incident-row__units {
		padding-left: 56px;
	}
}

/* ===== Fix sidebar incident icon alignment ===== */

.dashboard-sidebar .panel--incidents .incident-row {
	position: relative;
	display: grid;
	grid-template-columns: 64px 48px minmax(0, 1fr);
	grid-template-areas:
		"time icon details"
		"time icon units";
	column-gap: 12px;
	row-gap: 6px;
	align-items: center;
	padding: 18px 16px;
}

.dashboard-sidebar .panel--incidents .incident-row__time {
	grid-area: time;
	position: static;
	align-self: center;
	white-space: nowrap;
}

.dashboard-sidebar .panel--incidents .incident-row__icon-wrap {
	grid-area: icon;
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
}

.dashboard-sidebar .panel--incidents .incident-row__main {
	grid-area: details;
	min-width: 0;
	padding-left: 0;
}

.dashboard-sidebar .panel--incidents .incident-row__units {
	grid-area: units;
	min-width: 0;
	padding-left: 0;
	text-align: left;
}

.dashboard-sidebar .panel--incidents .incident-row__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
}

@media (max-width: 520px) {
	.dashboard-sidebar .panel--incidents .incident-row {
		grid-template-columns: 58px 44px minmax(0, 1fr);
		grid-template-areas:
			"time icon details"
			"time icon units";
		column-gap: 9px;
	}

	.dashboard-sidebar .panel--incidents .incident-row__main,
	.dashboard-sidebar .panel--incidents .incident-row__units {
		padding-left: 0;
	}
}

/* ===== Tall sidebar incident panel ===== */

.dashboard-sidebar {
	display: flex;
	flex-direction: column;
}

.dashboard-sidebar .panel--incidents {
	flex: 1;
	min-height: 900px;
	display: flex;
	flex-direction: column;
}

.dashboard-sidebar .panel--incidents .incident-list {
	flex: 1;
	max-height: none;
	overflow-y: auto;
	overflow-x: hidden;
}

@media (max-width: 1100px) {
	.dashboard-sidebar .panel--incidents {
		min-height: 620px;
	}
}

@media (max-width: 700px) {
	.dashboard-sidebar .panel--incidents {
		min-height: 560px;
	}
}

/* ===== Let incidents use the full panel height ===== */

.dashboard-sidebar .panel--incidents {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.dashboard-sidebar .panel--incidents .panel__header {
	flex: 0 0 auto;
}

.dashboard-sidebar .panel--incidents .incident-list {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none !important;
	height: auto;
	overflow-y: auto;
	overflow-x: hidden;
}

.dashboard-sidebar .panel--incidents .incident-row:last-child {
	border-bottom: 0;
}

/* ===== Lock incident panel height to weather row ===== */

.dashboard-sidebar .panel--incidents {
	flex: 0 0 auto;
	height: 760px;
	min-height: 0;
	max-height: 760px;
	display: flex;
	flex-direction: column;
}

.dashboard-sidebar .panel--incidents .panel__header {
	flex: 0 0 auto;
}

.dashboard-sidebar .panel--incidents .incident-list {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	max-height: none !important;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

@media (max-width: 1100px) {
	.dashboard-sidebar .panel--incidents {
		height: 680px;
		max-height: 680px;
	}
}

@media (max-width: 700px) {
	.dashboard-sidebar .panel--incidents {
		height: 560px;
		max-height: 560px;
	}
}


.dashboard-sidebar .panel--incidents {
	height: 830px;
	max-height: 830px;
}

@media (max-width: 1100px) {
	.dashboard-sidebar .panel--incidents {
		height: 720px;
		max-height: 720px;
	}
}

@media (max-width: 700px) {
	.dashboard-sidebar .panel--incidents {
		height: 580px;
		max-height: 580px;
	}
}

/* ===== Compact two-line sidebar incidents ===== */

.dashboard-sidebar .panel--incidents .incident-row {
	grid-template-columns: 64px 46px minmax(0, 1fr);
	grid-template-areas:
		"time icon details"
		"time icon units";
	column-gap: 12px;
	row-gap: 2px;
	padding: 13px 16px;
}

.dashboard-sidebar .panel--incidents .incident-row__title {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.2;
}

.dashboard-sidebar .panel--incidents .incident-row__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"title title"
		"location radio";
	column-gap: 8px;
	row-gap: 2px;
}

.dashboard-sidebar .panel--incidents .incident-row__title {
	grid-area: title;
}

.dashboard-sidebar .panel--incidents .incident-row__sub {
	grid-area: location;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dashboard-sidebar .panel--incidents .incident-row__radio {
	grid-area: radio;
	white-space: nowrap;
}

.dashboard-sidebar .panel--incidents .incident-row__units {
	grid-area: units;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 0.73rem;
	line-height: 1.25;
}

.dashboard-sidebar .panel--incidents .incident-row__icon {
	width: 40px;
	height: 40px;
}

.dashboard-sidebar .panel--incidents .incident-row__time {
	font-size: 0.76rem;
}

.dashboard-sidebar .panel--incidents .incident-updated {
	font-size: 0.6rem;
}

/* ===== Sidebar incidents: icon rail with inline time ===== */

.dashboard-sidebar .panel--incidents .incident-row {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	grid-template-areas:
		"icon details"
		"icon units";
	column-gap: 12px;
	row-gap: 3px;
	align-items: start;
	padding: 13px 16px;
}

.dashboard-sidebar .panel--incidents .incident-row__icon-wrap {
	grid-area: icon;
	align-self: center;
}

.dashboard-sidebar .panel--incidents .incident-row__main {
	grid-area: details;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas:
		"time title"
		"time location"
		"time radio";
	column-gap: 9px;
	row-gap: 2px;
	min-width: 0;
}

.dashboard-sidebar .panel--incidents .incident-row__time {
	grid-area: time;
	align-self: start;
	margin-top: 1px;
	white-space: nowrap;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--fs-orange);
}

.dashboard-sidebar .panel--incidents .incident-row__title {
	grid-area: title;
	min-width: 0;
	margin: 0;
}

.dashboard-sidebar .panel--incidents .incident-row__sub {
	grid-area: location;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dashboard-sidebar .panel--incidents .incident-row__radio {
	grid-area: radio;
	white-space: nowrap;
}

.dashboard-sidebar .panel--incidents .incident-row__units {
	grid-area: units;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 0.73rem;
	line-height: 1.25;
}


.dashboard-sidebar .panel--incidents .incident-row__icon {
	width: 40px;
	height: 40px;
}


@media (max-width: 520px) {
	.dashboard-sidebar .panel--incidents .incident-row {
		grid-template-columns: 42px minmax(0, 1fr);
		column-gap: 9px;
		padding-inline: 12px;
	}

	.dashboard-sidebar .panel--incidents .incident-row__main {
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 7px;
	}
}

/* ===== Correct inline incident time placement ===== */

.dashboard-sidebar .panel--incidents .incident-row {
	display: grid;
	grid-template-columns: 46px auto minmax(0, 1fr);
	grid-template-areas:
		"icon time details"
		"icon time units";
	column-gap: 10px;
	row-gap: 3px;
	align-items: start;
	padding: 13px 16px;
}

.dashboard-sidebar .panel--incidents .incident-row__icon-wrap {
	grid-area: icon;
	position: static;
	align-self: center;
}

.dashboard-sidebar .panel--incidents .incident-row__time {
	grid-area: time;
	position: static;
	align-self: start;
	margin-top: 1px;
	white-space: nowrap;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--fs-orange);
}

.dashboard-sidebar .panel--incidents .incident-row__main {
	grid-area: details;
	display: block;
	min-width: 0;
	padding: 0;
}

.dashboard-sidebar .panel--incidents .incident-row__title {
	margin: 0 0 2px;
}

.dashboard-sidebar .panel--incidents .incident-row__sub {
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dashboard-sidebar .panel--incidents .incident-row__radio {
	margin-top: 2px;
}

.dashboard-sidebar .panel--incidents .incident-row__units {
	grid-area: units;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

@media (max-width: 520px) {
	.dashboard-sidebar .panel--incidents .incident-row {
		grid-template-columns: 42px auto minmax(0, 1fr);
		column-gap: 8px;
		padding-inline: 12px;
	}
}

/* ===== Refine compact incident alignment ===== */

.dashboard-sidebar .panel--incidents .incident-row {
	grid-template-columns: 46px auto minmax(0, 1fr);
	grid-template-areas:
		"icon time title"
		"icon meta meta";
	column-gap: 14px;
	row-gap: 4px;
}


.dashboard-sidebar .panel--incidents .incident-row__icon-wrap {
	margin-right: 2px;
}


.dashboard-sidebar .panel--incidents .incident-row__main {
	display: contents;
}

.dashboard-sidebar .panel--incidents .incident-row__title {
	grid-area: title;
	margin: 0;
	min-width: 0;
}


.dashboard-sidebar .panel--incidents .incident-row__sub {
	grid-area: meta;
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dashboard-sidebar .panel--incidents .incident-row__radio {
	grid-area: meta;
	margin: 20px 0 0;
	white-space: nowrap;
}

.dashboard-sidebar .panel--incidents .incident-row__units {
	grid-area: meta;
	margin-top: 40px;
	padding: 0;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

@media (max-width: 520px) {
	.dashboard-sidebar .panel--incidents .incident-row {
		column-gap: 11px;
	}
}

/* ===== Incident Radio + Units metadata line ===== */

.dashboard-sidebar .panel--incidents .incident-row__meta {
	display: flex;
	align-items: baseline;
	gap: 5px;
	min-width: 0;
	margin-top: 2px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 0.73rem;
	line-height: 1.25;
}

.dashboard-sidebar .panel--incidents .incident-row__meta .incident-row__radio {
	position: static;
	display: inline;
	flex: 0 0 auto;
	margin: 0;
	color: var(--fs-orange);
	font: inherit;
	font-weight: 800;
	white-space: nowrap;
}

.dashboard-sidebar .panel--incidents .incident-row__meta .incident-row__units {
	position: static;
	display: inline;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dashboard-sidebar .panel--incidents .incident-row__meta-separator {
	flex: 0 0 auto;
	color: var(--fs-muted);
}

/* ===== Final incident metadata alignment ===== */

.dashboard-sidebar .panel--incidents .incident-row {
	grid-template-columns: 46px auto minmax(0, 1fr);
	grid-template-areas:
		"icon time details";
	align-items: start;
}

.dashboard-sidebar .panel--incidents .incident-row__main {
	grid-area: details;
	display: block;
	min-width: 0;
	padding: 0;
}

.dashboard-sidebar .panel--incidents .incident-row__meta {
	display: flex;
	align-items: baseline;
	gap: 5px;
	width: 100%;
	margin-top: 3px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dashboard-sidebar .panel--incidents .incident-row__meta .incident-row__radio,
.dashboard-sidebar .panel--incidents .incident-row__meta .incident-row__units {
	display: inline;
	position: static;
	margin: 0;
	padding: 0;
	width: auto;
	max-width: none;
}

.dashboard-sidebar .panel--incidents .incident-row__meta .incident-row__units {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}


.dashboard-sidebar .panel--incidents > .incident-list .incident-row > .incident-row__units {
	display: none;
}

/* ===== Fill the forecast panel with widget gray ===== */

.weather-live__forecast {
	padding: 0;
	background: #4a4a4a;
}

.weather-live__forecast .weatherwidget-io {
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-height: 250px;
	background: #4a4a4a;
}

.weather-live__forecast iframe {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 250px !important;
	margin: 0 !important;
	background: #4a4a4a !important;
}

@media (max-width: 1100px) {
	.weather-live__forecast .weatherwidget-io,
	.weather-live__forecast iframe {
		min-height: 220px !important;
	}
}

/* Cover WeatherWidget's unused dark footer area */

.weather-live__forecast {
	position: relative;
	overflow: hidden;
	background: #667174;
}

.weather-live__forecast::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	height: 40px;
	background: #667174;
	pointer-events: none;
	border-radius: 0 0 13px 13px;
}

/* Tighten the Traffic Cameras header after subtitle removal */

.panel--hero .panel__header {
	padding-top: 16px;
	padding-bottom: 12px;
}

.panel--hero .panel__header h2 {
	margin-bottom: 0;
}


/* ===== Sponsor banner cards ===== */
.panel--sponsors .sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: #080d13;
    color: inherit;
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.panel--sponsors .sponsor-card:hover,
.panel--sponsors .sponsor-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(244, 122, 32, 0.65);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.panel--sponsors .sponsor-card:focus-visible {
    outline: 2px solid var(--fs-orange);
    outline-offset: 3px;
}

.panel--sponsors .sponsor-card img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

/* ===== Allow incident units to wrap ===== */
.dashboard-sidebar .panel--incidents .incident-row__meta {
    align-items: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
}

.dashboard-sidebar .panel--incidents .incident-row__meta .incident-row__units {
    flex: 1 1 180px;
    min-width: 0;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

/* ===== Incident Broadcastify radio links ===== */
.dashboard-sidebar .panel--incidents .incident-row__radio a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(244, 122, 32, 0.48);
    text-underline-offset: 2px;
}

.dashboard-sidebar .panel--incidents .incident-row__radio a:hover,
.dashboard-sidebar .panel--incidents .incident-row__radio a:focus-visible {
    color: #fff;
    text-decoration-color: var(--fs-orange);
}

.dashboard-sidebar .panel--incidents .incident-row__radio a:focus-visible {
    outline: 2px solid var(--fs-orange);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== Polished header navigation ===== */
.site-header__right {
    gap: 14px;
}

.primary-navigation {
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.018)
        ),
        rgba(12, 19, 29, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.035),
        0 8px 24px rgba(0,0,0,0.18);
}

.primary-navigation__list {
    gap: 3px;
    flex-wrap: nowrap;
}

.primary-navigation__list a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #d7e0ea;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.primary-navigation__list a:hover,
.primary-navigation__list a:focus-visible {
    color: #fff;
    background: rgba(244, 122, 32, 0.13);
    box-shadow: inset 0 0 0 1px rgba(244, 122, 32, 0.28);
    transform: translateY(-1px);
}

.primary-navigation__list a:focus-visible {
    outline: 2px solid var(--fs-orange);
    outline-offset: 2px;
}

/* Treat Home as the current-page item for this homepage template. */
.home .primary-navigation__list > li:first-child > a {
    color: #fff;
    background:
        linear-gradient(
            180deg,
            rgba(244, 122, 32, 0.25),
            rgba(244, 122, 32, 0.13)
        );
    box-shadow:
        inset 0 0 0 1px rgba(244, 122, 32, 0.38),
        0 4px 14px rgba(244, 122, 32, 0.08);
}

.social-links {
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.018)
        ),
        rgba(12, 19, 29, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.035),
        0 8px 24px rgba(0,0,0,0.18);
}

.social-links a {
    width: 38px;
    height: 38px;
    border-color: rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.055);
    font-size: 0.82rem;
    text-decoration: none;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    color: #fff;
    background: rgba(244, 122, 32, 0.16);
    border-color: rgba(244, 122, 32, 0.48);
    box-shadow: 0 5px 16px rgba(244, 122, 32, 0.12);
    transform: translateY(-2px);
}

.social-links a:focus-visible {
    outline: 2px solid var(--fs-orange);
    outline-offset: 2px;
}

@media (max-width: 1180px) {
    .site-header__right {
        align-items: center;
    }

    .primary-navigation__list {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .site-header__right {
        align-items: stretch;
        gap: 10px;
    }

    .primary-navigation,
    .social-links {
        border-radius: 16px;
    }

    .primary-navigation__list {
        justify-content: flex-start;
        gap: 3px;
    }

    .primary-navigation__list a {
        min-height: 36px;
        padding-inline: 12px;
        font-size: 0.84rem;
    }

    .social-links {
        width: fit-content;
    }
}

/* ===== Wide rotating sponsor panel ===== */
.dashboard-main .panel--sponsors {
    margin-top: 24px;
}

.dashboard-main .panel--sponsors .panel__header {
    padding-bottom: 14px;
}

.sponsor-rotator {
    padding: 0 20px 18px;
}

.sponsor-rotator__viewport {
    position: relative;
    min-height: 142px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: #080d13;
}

.dashboard-main .panel--sponsors .sponsor-card {
    position: absolute;
    inset: 0;
    min-height: 142px;
    padding: 18px;
    border: 0;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    pointer-events: none;
    transition:
        opacity 350ms ease,
        visibility 350ms ease,
        transform 350ms ease,
        background-color 160ms ease;
}

.dashboard-main .panel--sponsors .sponsor-card.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.dashboard-main .panel--sponsors .sponsor-card:hover,
.dashboard-main .panel--sponsors .sponsor-card:focus-visible {
    transform: translateX(0);
    background: rgba(244, 122, 32, 0.035);
    box-shadow: none;
}

.dashboard-main .panel--sponsors .sponsor-card img {
    max-width: 600px;
    max-height: 106px;
}

.sponsor-rotator__controls {
    display: inline-flex;
    gap: 6px;
}

.sponsor-rotator__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    background: rgba(255,255,255,0.055);
    color: #fff;
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.sponsor-rotator__button:hover,
.sponsor-rotator__button:focus-visible {
    border-color: rgba(244, 122, 32, 0.55);
    background: rgba(244, 122, 32, 0.14);
    transform: translateY(-1px);
}

.sponsor-rotator__button:focus-visible {
    outline: 2px solid var(--fs-orange);
    outline-offset: 2px;
}

.sponsor-rotator__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
}

.sponsor-rotator__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    cursor: pointer;
    transition:
        width 180ms ease,
        background-color 180ms ease;
}

.sponsor-rotator__dot.is-active {
    width: 24px;
    background: var(--fs-orange);
}

.sponsor-rotator__dot:focus-visible {
    outline: 2px solid var(--fs-orange);
    outline-offset: 3px;
}

/*
 * The sponsor panel increases the left column height.
 * The sidebar is already flexible, so incidents consume the added space.
 */
.dashboard-sidebar .panel--incidents {
    min-height: 1080px;
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-main .panel--sponsors .sponsor-card {
        transition: none;
    }
}

@media (max-width: 700px) {
    .sponsor-rotator {
        padding-inline: 14px;
    }

    .sponsor-rotator__viewport,
    .dashboard-main .panel--sponsors .sponsor-card {
        min-height: 116px;
    }

    .dashboard-main .panel--sponsors .sponsor-card {
        padding: 12px;
    }

    .dashboard-sidebar .panel--incidents {
        min-height: 900px;
    }
}

/* ===== Narrower desktop dashboard columns ===== */
@media (min-width: 1181px) {
    .dashboard-grid {
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(420px, 1fr);
        gap: 24px;
    }
}

/* ===== Explicit desktop dashboard split ===== */
@media (min-width: 1181px) {
    body .command-center-page .dashboard-grid {
        grid-template-columns: minmax(0, 58%) minmax(0, 42%) !important;
        gap: 24px !important;
    }
}

/* ===== Trim right column to 90% and reduce total site width ===== */
@media (min-width: 1181px) {
    .site-shell {
        width: min(100% - 48px, 1365px);
    }

    body .command-center-page .dashboard-grid {
        grid-template-columns:
            minmax(0, 60.55fr)
            minmax(0, 39.45fr) !important;
        gap: 24px !important;
    }
}

/* ===== Uppercase incident call descriptions ===== */
.dashboard-sidebar .panel--incidents .incident-row__title {
    text-transform: uppercase;
}

/* ===== Incident layout Option B: title first ===== */
.dashboard-sidebar .panel--incidents .incident-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-areas:
        "icon details time";
    column-gap: 12px;
    align-items: start;
}

.dashboard-sidebar .panel--incidents .incident-row__icon-wrap {
    grid-area: icon;
    align-self: start;
}

.dashboard-sidebar .panel--incidents .incident-row__main {
    grid-area: details;
    display: block;
    min-width: 0;
    padding: 0;
}

.dashboard-sidebar .panel--incidents .incident-row__time {
    grid-area: time;
    align-self: start;
    margin: 1px 0 0 10px;
    padding: 0;
    white-space: nowrap;
    text-align: right;
}

.dashboard-sidebar .panel--incidents .incident-row__title {
    margin: 0 0 2px;
    min-width: 0;
    line-height: 1.22;
}

.dashboard-sidebar .panel--incidents .incident-row__sub {
    margin: 0;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    line-height: 1.3;
}

.dashboard-sidebar .panel--incidents .incident-row__meta {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 5px;
    width: 100%;
    margin-top: 3px;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
}

.dashboard-sidebar .panel--incidents .incident-row__meta .incident-row__units {
    flex: 1 1 170px;
    min-width: 0;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .dashboard-sidebar .panel--incidents .incident-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        column-gap: 9px;
    }

    .dashboard-sidebar .panel--incidents .incident-row__time {
        margin-left: 6px;
        font-size: 0.7rem;
    }
}

/* ===== Subtle alternating incident rows ===== */
.dashboard-sidebar .panel--incidents .incident-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.018);
}


/* ===== Larger 1200x180 sponsor artwork ===== */
.sponsor-rotator__viewport {
    min-height: 166px;
}

.dashboard-main .panel--sponsors .sponsor-card {
    min-height: 166px;
    padding: 14px;
}

.dashboard-main .panel--sponsors .sponsor-card img {
    width: 100%;
    max-width: 1200px;
    max-height: 138px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .sponsor-rotator__viewport,
    .dashboard-main .panel--sponsors .sponsor-card {
        min-height: 126px;
    }

    .dashboard-main .panel--sponsors .sponsor-card img {
        max-height: 100px;
    }
}

/* ===== Fire alarm icons use fire-red styling ===== */
.dashboard-sidebar .panel--incidents .incident-row__icon--alarm {
    color: #ff6b5f;
    background: rgba(255, 107, 95, 0.08);
}

/* ===== Latest Incidents title icon ===== */
.panel__heading-icon--alert {
    color: #ff8a63;
    background: rgba(255, 138, 99, 0.12);
    border-color: rgba(255, 138, 99, 0.32);
}

.panel__heading-icon--alert i {
    display: block;
    font-size: 0.92rem;
    line-height: 1;
}

/* ===== Standard WordPress pages ===== */
.standard-page {
	padding-top: 38px;
	padding-bottom: 54px;
}

.standard-page__article {
	width: min(100%, 1040px);
	margin: 0 auto;
	padding: clamp(26px, 4vw, 52px);
	color: #e9eef7;
	background:
		linear-gradient(
			145deg,
			rgba(24, 35, 52, 0.98),
			rgba(15, 24, 38, 0.98)
		);
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 22px;
	box-shadow:
		0 20px 55px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.standard-page__header {
	padding-bottom: 22px;
	margin-bottom: 28px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.standard-page__eyebrow {
	margin: 0 0 8px;
	color: #ff8a3d;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.standard-page__title {
	margin: 0;
	color: #f7f9fc;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.standard-page__featured-image {
	margin: 0 0 30px;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 16px;
	background: rgba(5, 12, 22, 0.6);
}

.standard-page__featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.standard-page__content {
	color: #cfd8e7;
	font-size: 1rem;
	line-height: 1.75;
}

.standard-page__content > :first-child {
	margin-top: 0;
}

.standard-page__content > :last-child {
	margin-bottom: 0;
}

.standard-page__content h2,
.standard-page__content h3,
.standard-page__content h4,
.standard-page__content h5,
.standard-page__content h6 {
	margin-top: 1.7em;
	margin-bottom: 0.65em;
	color: #f3f6fb;
	line-height: 1.2;
}

.standard-page__content h2 {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.standard-page__content h3 {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.standard-page__content p,
.standard-page__content ul,
.standard-page__content ol,
.standard-page__content blockquote,
.standard-page__content table {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.standard-page__content ul,
.standard-page__content ol {
	padding-left: 1.4em;
}

.standard-page__content li + li {
	margin-top: 0.4em;
}

.standard-page__content a {
	color: #ff9a58;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.standard-page__content a:hover,
.standard-page__content a:focus {
	color: #ffc08f;
}

.standard-page__content blockquote {
	padding: 18px 22px;
	margin-left: 0;
	margin-right: 0;
	color: #dce5f2;
	background: rgba(255, 138, 61, 0.07);
	border-left: 4px solid #ff8a3d;
	border-radius: 0 12px 12px 0;
}

.standard-page__content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.standard-page__content table {
	width: 100%;
	border-collapse: collapse;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 10px;
}

.standard-page__content th,
.standard-page__content td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.standard-page__content th {
	color: #f5f7fb;
	background: rgba(255, 255, 255, 0.045);
}

.standard-page__content tr:last-child td {
	border-bottom: 0;
}

.standard-page__content .wp-block-button__link,
.standard-page__content input[type="submit"],
.standard-page__content button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	color: #101722;
	font-weight: 800;
	text-decoration: none;
	background: #ff8a3d;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.standard-page__content .wp-block-button__link:hover,
.standard-page__content .wp-block-button__link:focus,
.standard-page__content input[type="submit"]:hover,
.standard-page__content button:hover {
	color: #101722;
	background: #ffa76d;
}

.standard-page__footer {
	padding-top: 24px;
	margin-top: 32px;
	border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.standard-page__edit-link a {
	color: #93a4bb;
	font-size: 0.82rem;
}

.page-links {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 24px;
}

@media (max-width: 720px) {
	.standard-page {
		padding-top: 20px;
		padding-bottom: 30px;
	}

	.standard-page__article {
		padding: 24px 20px;
		border-radius: 16px;
	}

	.standard-page__header {
		margin-bottom: 22px;
	}

	.standard-page__content {
		font-size: 0.96rem;
	}

	.standard-page__content table {
		display: block;
		overflow-x: auto;
	}
}

/* ===== Dynamic primary navigation ===== */
.primary-navigation__list .current-menu-item > a,
.primary-navigation__list .current_page_item > a,
.primary-navigation__list .current-menu-ancestor > a,
.primary-navigation__list .current_page_ancestor > a,
.primary-navigation__list a[aria-current="page"] {
	color: #ffffff;
	background: rgba(255, 122, 45, 0.16);
	border-color: rgba(255, 138, 61, 0.48);
	box-shadow:
		inset 0 0 0 1px rgba(255, 138, 61, 0.08),
		0 5px 16px rgba(0, 0, 0, 0.12);
}

.primary-navigation__list .current-menu-item > a:hover,
.primary-navigation__list .current_page_item > a:hover,
.primary-navigation__list a[aria-current="page"]:hover {
	color: #ffffff;
	background: rgba(255, 122, 45, 0.22);
}

/* ===== Primary navigation dropdowns ===== */
.primary-navigation__list {
	position: relative;
}

.primary-navigation__list > li {
	position: relative;
}

.primary-navigation__list .menu-item-has-children > a::after {
	content: "";
	margin-left: 7px;
	font-family: "Font Awesome 6 Free";
	font-size: 0.62em;
	font-weight: 900;
	vertical-align: 0.12em;
	opacity: 0.78;
}

.primary-navigation__list .sub-menu {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 9px);
	left: 0;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: rgba(15, 24, 38, 0.99);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 14px;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.primary-navigation__list .sub-menu::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 10px;
}

.primary-navigation__list li:hover > .sub-menu,
.primary-navigation__list li:focus-within > .sub-menu {
	display: block;
}

.primary-navigation__list .sub-menu li {
	display: block;
	width: 100%;
}

.primary-navigation__list .sub-menu a {
	display: block;
	width: 100%;
	padding: 10px 12px;
	color: #dce5f2;
	white-space: nowrap;
	border: 0;
	border-radius: 9px;
	background: transparent;
	box-shadow: none;
}

.primary-navigation__list .sub-menu a:hover,
.primary-navigation__list .sub-menu a:focus {
	color: #ffffff;
	background: rgba(255, 138, 61, 0.13);
}

.primary-navigation__list .sub-menu .current-menu-item > a,
.primary-navigation__list .sub-menu a[aria-current="page"] {
	color: #ffffff;
	background: rgba(255, 138, 61, 0.18);
}

@media (max-width: 900px) {
	.primary-navigation__list .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		margin-top: 6px;
		padding: 4px 0 0 12px;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.primary-navigation__list .sub-menu a {
		white-space: normal;
	}
}

/* ===== 404 page ===== */
.error-page {
	display: grid;
	place-items: center;
	min-height: calc(100vh - 260px);
	padding-top: 48px;
	padding-bottom: 64px;
}

.error-page__panel {
	width: min(100%, 760px);
	padding: clamp(34px, 6vw, 72px);
	text-align: center;
	background:
		radial-gradient(
			circle at top,
			rgba(255, 138, 61, 0.10),
			transparent 42%
		),
		linear-gradient(
			145deg,
			rgba(24, 35, 52, 0.98),
			rgba(15, 24, 38, 0.98)
		);
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 24px;
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.error-page__code {
	margin: 0 0 10px;
	color: #ff8a3d;
	font-size: clamp(4.5rem, 14vw, 8rem);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.07em;
	text-shadow: 0 10px 30px rgba(255, 138, 61, 0.18);
}

.error-page__title {
	margin: 0;
	color: #f7f9fc;
	font-size: clamp(2rem, 5vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.error-page__message {
	max-width: 590px;
	margin: 22px auto 0;
	color: #b9c5d6;
	font-size: 1.05rem;
	line-height: 1.7;
}

.error-page__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px 20px;
	margin-top: 32px;
}

.error-page__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 11px 22px;
	color: #101722;
	font-weight: 800;
	text-decoration: none;
	background: #ff8a3d;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(255, 138, 61, 0.16);
}

.error-page__button:hover,
.error-page__button:focus {
	color: #101722;
	background: #ffa76d;
	transform: translateY(-1px);
}

.error-page__link {
	color: #ff9a58;
	font-weight: 700;
	text-underline-offset: 3px;
}

.error-page__link:hover,
.error-page__link:focus {
	color: #ffc08f;
}

@media (max-width: 720px) {
	.error-page {
		min-height: auto;
		padding-top: 24px;
		padding-bottom: 36px;
	}

	.error-page__panel {
		padding: 34px 22px;
		border-radius: 18px;
	}

	.error-page__message {
		font-size: 0.98rem;
	}
}

/* ===== 404 page logo ===== */
.error-page__logo {
	display: block;
	width: min(100%, 470px);
	margin: 0 auto 34px;
	text-decoration: none;
}

.error-page__logo img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.32));
	transition:
		transform 160ms ease,
		filter 160ms ease;
}

.error-page__logo:hover img,
.error-page__logo:focus img {
	transform: translateY(-2px);
	filter:
		drop-shadow(0 14px 30px rgba(0, 0, 0, 0.36))
		drop-shadow(0 0 16px rgba(255, 138, 61, 0.12));
}

@media (max-width: 720px) {
	.error-page__logo {
		width: min(100%, 360px);
		margin-bottom: 28px;
	}
}

/* ===== Search results ===== */
.search-results-page {
	padding-top: 38px;
	padding-bottom: 58px;
}

.search-results-page__header {
	width: min(100%, 1040px);
	margin: 0 auto 28px;
	padding: clamp(26px, 4vw, 44px);
	background:
		linear-gradient(
			145deg,
			rgba(24, 35, 52, 0.98),
			rgba(15, 24, 38, 0.98)
		);
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 22px;
	box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.search-results-page__eyebrow {
	margin: 0 0 8px;
	color: #ff8a3d;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.search-results-page__title {
	margin: 0;
	color: #f7f9fc;
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.search-results-page__form {
	margin-top: 26px;
}

.fredscanner-search-form {
	display: flex;
	gap: 10px;
	width: 100%;
}

.fredscanner-search-form__field {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 46px;
	padding: 10px 15px;
	color: #f4f7fb;
	background: rgba(7, 13, 22, 0.78);
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 12px;
	outline: none;
}

.fredscanner-search-form__field:focus {
	border-color: rgba(255, 138, 61, 0.72);
	box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.12);
}

.fredscanner-search-form__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	color: #101722;
	font-weight: 800;
	background: #ff8a3d;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.fredscanner-search-form__button:hover,
.fredscanner-search-form__button:focus {
	background: #ffa76d;
}

.search-results-list {
	display: grid;
	gap: 16px;
	width: min(100%, 1040px);
	margin: 0 auto;
}

.search-result-card {
	padding: 24px 26px;
	background: rgba(18, 28, 43, 0.96);
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 16px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.search-result-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 9px;
	color: #91a0b5;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.search-result-card__type {
	color: #ff9a58;
}

.search-result-card__title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	line-height: 1.25;
}

.search-result-card__title a {
	color: #f4f7fb;
	text-decoration: none;
}

.search-result-card__title a:hover,
.search-result-card__title a:focus {
	color: #ff9a58;
}

.search-result-card__excerpt {
	margin-top: 12px;
	color: #bac6d7;
	line-height: 1.65;
}

.search-result-card__excerpt > :last-child {
	margin-bottom: 0;
}

.search-result-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	color: #ff9a58;
	font-weight: 750;
	text-decoration: none;
}

.search-result-card__link:hover,
.search-result-card__link:focus {
	color: #ffc08f;
}

.search-pagination {
	width: min(100%, 1040px);
	margin: 28px auto 0;
}

.search-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.search-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 8px 13px;
	color: #dbe4ef;
	text-decoration: none;
	background: rgba(18, 28, 43, 0.96);
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 999px;
}

.search-pagination .page-numbers.current,
.search-pagination .page-numbers:hover,
.search-pagination .page-numbers:focus {
	color: #101722;
	background: #ff8a3d;
	border-color: #ff8a3d;
}

.search-empty {
	width: min(100%, 760px);
	margin: 0 auto;
	padding: clamp(34px, 6vw, 64px);
	text-align: center;
	color: #bac6d7;
	background: rgba(18, 28, 43, 0.96);
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 20px;
}

.search-empty__icon {
	margin-bottom: 18px;
	color: #ff8a3d;
	font-size: 2.2rem;
}

.search-empty h2 {
	margin: 0;
	color: #f4f7fb;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.search-empty p {
	margin: 14px 0 0;
}

@media (max-width: 720px) {
	.search-results-page {
		padding-top: 20px;
		padding-bottom: 34px;
	}

	.search-results-page__header,
	.search-result-card {
		padding: 22px 20px;
		border-radius: 16px;
	}

	.fredscanner-search-form {
		flex-direction: column;
	}

	.fredscanner-search-form__button {
		width: 100%;
	}
}

/* ===== Mobile primary navigation ===== */
.mobile-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	color: #f5f7fb;
	background: rgba(17, 27, 42, 0.96);
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 13px;
	cursor: pointer;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
	color: #ffffff;
	background: rgba(255, 138, 61, 0.13);
	border-color: rgba(255, 138, 61, 0.5);
	outline: none;
}

.mobile-menu-toggle__bars {
	display: grid;
	gap: 5px;
	width: 21px;
}

.mobile-menu-toggle__bars span {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 999px;
	transition:
		transform 180ms ease,
		opacity 180ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bars span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bars span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
	.site-header__inner {
		position: relative;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 14px;
	}

	.site-brand {
		min-width: 0;
	}

	.mobile-menu-toggle {
		display: inline-flex;
	}

	.site-header__right {
		position: absolute;
		z-index: 1200;
		top: calc(100% + 12px);
		right: 0;
		left: 0;
		display: none;
		padding: 14px;
		background: rgba(12, 20, 32, 0.99);
		border: 1px solid rgba(148, 163, 184, 0.22);
		border-radius: 18px;
		box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
	}

	.site-header__right.is-open {
		display: grid;
		gap: 14px;
	}

	.primary-navigation {
		width: 100%;
	}

	.primary-navigation__list {
		display: grid;
		width: 100%;
		gap: 6px;
		margin: 0;
		padding: 0;
	}

	.primary-navigation__list > li {
		display: block;
		width: 100%;
	}

	.primary-navigation__list > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 44px;
		padding: 10px 13px;
		border-radius: 11px;
	}

	.primary-navigation__list .menu-item-has-children > a::after {
		transition: transform 160ms ease;
	}

	.primary-navigation__list .menu-item-has-children.is-submenu-open > a::after {
		transform: rotate(180deg);
	}

	.primary-navigation__list .sub-menu {
		display: none;
		margin: 5px 0 0;
		padding: 5px 0 2px 14px;
	}

	.primary-navigation__list .is-submenu-open > .sub-menu {
		display: grid;
		gap: 4px;
	}

	.primary-navigation__list .sub-menu a {
		min-height: 40px;
		padding: 9px 12px;
	}

	.social-links {
		justify-content: center;
		width: 100%;
	}

	body.mobile-menu-open {
		overflow-x: hidden;
	}
}

@media (max-width: 520px) {
	.site-header__right {
		right: -4px;
		left: -4px;
		border-radius: 15px;
	}

	.site-brand__final-logo {
		max-width: 260px;
	}
}

/* ===== Narrow mobile navigation stabilization ===== */
@media (max-width: 600px) {
	body .site-header .site-header__inner {
		grid-template-columns: minmax(0, 1fr) 46px !important;
		gap: 10px;
	}

	body .site-header .site-brand__final-logo {
		width: min(100%, 300px);
		max-width: 100%;
	}

	body .site-header .site-header__right.is-open {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 12px !important;
		width: auto !important;
		min-width: 0 !important;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}

	body .site-header .primary-navigation {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
	}

	body .site-header .primary-navigation__list {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		width: 100% !important;
		min-width: 0 !important;
		gap: 5px !important;
	}

	body .site-header .primary-navigation__list > li {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
	}

	body .site-header .primary-navigation__list > li > a {
		display: flex !important;
		width: 100% !important;
		box-sizing: border-box;
	}

	body .site-header .social-links {
		display: flex !important;
		width: fit-content !important;
		max-width: 100%;
		margin: 0 !important;
		align-self: flex-start;
	}
}

@media (max-width: 420px) {
	body .site-header .site-brand__final-logo {
		width: min(100%, 245px);
	}

	body .site-header .site-header__right {
		top: calc(100% + 8px);
		padding: 10px;
		border-radius: 14px;
	}
}

/* ===== Page width options ===== */
.standard-page--full .standard-page__article {
	width: 100%;
	max-width: none;
}

.landing-page {
	padding-top: 28px;
	padding-bottom: 54px;
}

.landing-page__article {
	width: 100%;
	margin: 0 auto;
}

.landing-page__content {
	color: #cfd8e7;
	line-height: 1.7;
}

.landing-page__content > :first-child {
	margin-top: 0;
}

.landing-page__content > :last-child {
	margin-bottom: 0;
}

.landing-page__featured-image {
	margin: 0 0 28px;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 18px;
	background: rgba(5, 12, 22, 0.6);
}

.landing-page__featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.landing-page__footer {
	padding-top: 24px;
	margin-top: 32px;
	border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.landing-page__content .alignwide {
	width: min(100%, 1200px);
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
}

.landing-page__content .alignfull {
	width: 100%;
	max-width: none;
}

@media (max-width: 720px) {
	.standard-page--full .standard-page__article {
		padding: 24px 20px;
	}

	.landing-page {
		padding-top: 18px;
		padding-bottom: 34px;
	}
}

/* ===== Core WordPress block support ===== */
.entry-content .alignwide {
	width: min(100%, 1200px);
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
}

.entry-content .alignfull {
	width: 100%;
	max-width: none;
	margin-right: 0;
	margin-left: 0;
}

.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}

.entry-content .wp-block-embed__wrapper {
	position: relative;
	max-width: 100%;
}

.entry-content figure {
	max-width: 100%;
}

.entry-content figcaption {
	margin-top: 8px;
	color: #91a0b5;
	font-size: 0.85rem;
	line-height: 1.45;
}

/* ===== Accessibility and keyboard pass ===== */

/*
 * WordPress-compatible visually hidden text.
 * It becomes visible when focused, which powers the skip link.
 */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	position: fixed;
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	margin: 0;
	overflow: visible;
	clip: auto;
	color: #101722;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	white-space: normal;
	background: #ff9a58;
	border: 2px solid #ffffff;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* Keep anchor targets clear of the site header. */
#primary,
[id] {
	scroll-margin-top: 110px;
}


:where(
	a,
	button,
	input,
	select,
	textarea,
	summary,
	[tabindex]:not([tabindex="-1"])
):focus-visible {
	outline: 3px solid #ff9a58;
	outline-offset: 3px;
}


.mobile-menu-toggle:focus-visible,
.fredscanner-search-form__field:focus-visible,
.fredscanner-search-form__button:focus-visible,
.primary-navigation a:focus-visible,
.social-links a:focus-visible,
.sponsor-rotator__button:focus-visible,
.sponsor-rotator__dot:focus-visible,
.panel__link:focus-visible,
.incident-row__radio a:focus-visible,
.search-pagination .page-numbers:focus-visible,
.error-page__button:focus-visible,
.error-page__link:focus-visible,
.standard-page__content a:focus-visible{
	outline: 3px solid #ff9a58;
	outline-offset: 3px;
}

/* Make navigation focus visible even inside dark pills. */
.primary-navigation a:focus-visible,
.social-links a:focus-visible {
	color: #ffffff;
	border-color: rgba(255, 154, 88, 0.72);
	background: rgba(255, 138, 61, 0.2);
	box-shadow:
		0 0 0 2px rgba(8, 14, 24, 0.95),
		0 0 0 5px rgba(255, 154, 88, 0.82);
}


.standard-page__content a,
.landing-page__content a,
.search-result-card__excerpt a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}


@media (forced-colors: active) {
	.mobile-menu-toggle,
	.primary-navigation a,
	.social-links a,
	button,
	.wp-block-button__link {
		border: 1px solid ButtonText;
	}

	:focus-visible {
		outline: 3px solid Highlight;
	}
}


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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}

	.error-page__button:hover,
	.error-page__logo:hover img,
	.sponsor-rotator__button:hover {
		transform: none;
	}
}

/* ===== Desktop third-level navigation ===== */
@media (min-width: 901px) {
	.primary-navigation__list .sub-menu li {
		position: relative;
	}

	.primary-navigation__list .sub-menu .sub-menu {
		top: -8px;
		left: calc(100% + 8px);
	}

	/*
	 * Invisible bridge between nested menu panels so the menu
	 * remains open while the pointer crosses the visual gap.
	 */
	.primary-navigation__list .sub-menu .sub-menu::before {
		top: 0;
		right: 100%;
		bottom: 0;
		left: auto;
		width: 10px;
		height: auto;
	}
}

/* ===== Colored social icons ===== */
.social-links .social-link i {
    font-size: 0.95rem;
    line-height: 1;
}

.social-links .social-link--x i {
    color: #ffffff;
}

.social-links .social-link--facebook i {
    color: #1877f2;
}

.social-links .social-link--youtube i {
    color: #ff0000;
}

.social-links .social-link--bluesky i {
    color: #1185fe;
}
