  /* Âé¶¹´«Ã½Ó³»­ â€” Clark-style scoped header (.sf-header only) */

:root, [data-bs-theme="light"], [data-bs-theme="dark"] {
	--sf-header-overlay-z: 9999999;
	--sf-jump-links-z: calc(var(--sf-header-overlay-z) + 1);
	--bs-border-radius-pill: 0;
}

.sf-header {
	--sf-header-bar-bg: var(--blue);
	--sf-header-text: var(--white);
	--sf-header-accent: var(--gold);
	--sf-header-drawer-bg: var(--blue);
	position: relative;
	z-index: 1030;
	color: var(--sf-header-text);
}

/* Menu + search must sit above scroll-to-top (9999) and AI chat widgets.
   The header is a stacking context, so raise the whole header when overlays open. */
.sf-header.is-menu-open,
.sf-header:has(#sfHeaderSearchModal.show) {
	z-index: var(--sf-header-overlay-z);
}

.sf-header a {
	text-decoration: none;
}

/* Minimal bar */
.sf-header__bar {
	position: relative;
	background: var(--sf-header-bar-bg);
	border-bottom: 4px solid var(--sf-header-accent);
}

.sf-header__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.5rem;
	padding: 0.5rem 0;
}

.sf-header__brand {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.sf-header__logo--full {
	max-width: 220px;
	width: 100%;
	height: auto;
}

.sf-header__logo--mobile {
	height: 42px;
	width: auto;
}

.sf-header__actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.sf-header__action {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 0.85rem;
	border: 0;
	background: transparent;
	color: var(--sf-header-text);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	text-shadow: 0 0 10px var(--blue-dark), 0 0 20px var(--blue-dark), 0 0 30px var(--blue-dark), 0 0 40px var(--blue-dark), 0 0 50px var(--blue-dark);
}

.sf-header__action:hover,
.sf-header__action:focus {
	color: var(--gold-light);
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.sf-header__apply-link {
	border: 2px solid var(--gold);
	padding: 0.5rem 1rem;
}

.sf-header__apply-link:hover,
.sf-header__apply-link:focus {
	background: var(--gold);
	color: var(--blue-dark);
	text-shadow: none;
}

.sf-header__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0.5rem;
	border: 0;
	background: transparent;
	color: var(--sf-header-text);
	cursor: pointer;
}

.sf-header__icon-btn:hover,
.sf-header__icon-btn:focus {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

/* Full-screen drawer */
.sf-header__drawer {
	position: fixed;
	inset: 0;
	z-index: 1045;
	display: flex;
	flex-direction: column;
	background: var(--sf-header-drawer-bg);
	color: var(--white);
	overflow: hidden;
}

.sf-header__drawer[hidden] {
	display: none !important;
}

.sf-header__drawer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}

.sf-header__drawer-brand {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.sf-header__drawer-logo {
	height: 40px;
	width: auto;
}

.sf-header__drawer-close {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	border: 0;
	background: transparent;
	color: var(--white);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.sf-header__drawer-close:hover,
.sf-header__drawer-close:focus {
	color: var(--gold-light);
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.sf-header__drawer-body {
	flex: 1 1 auto;
	overflow: hidden;
}

.sf-header__drawer-main,
.sf-header__drawer-detail {
	height: 100%;
	overflow-y: auto;
	padding: 2rem 0 3rem;
}

.sf-header__drawer-main[hidden],
.sf-header__drawer-detail[hidden] {
	display: none !important;
}

.sf-header__drawer-eyebrow {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--blue-md-light-alt);
}

.sf-header__drawer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

.sf-header__section-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sf-header__section-btn {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	min-height: 56px;
	padding: 0.75rem 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: transparent;
	color: var(--white);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	box-shadow: inset 0 -3px 0 transparent;
	transition: color 0.2s ease, box-shadow 0.25s ease;
}

.sf-header__section-btn:hover,
.sf-header__section-btn:focus,
.sf-header__section-btn.is-active {
	color: var(--gold);
	outline: none;
}

.sf-header__section-btn.is-active {
	box-shadow: inset 0 -3px 0 var(--gold);
}

.sf-header__section-arrow {
	margin-left: auto;
	margin-right: 1rem;
	font-size: 1rem;
	opacity: 0.8;
}

/* Custom kit duotone icons in section buttons (e.g. About Âé¶¹´«Ã½Ó³»­ clock tower) */
.sf-header__section-btn .sf-header__kit-icon {
	--fa-primary-color: var(--white, #fff);
	--fa-secondary-color: var(--blue-med, #1578c1);
	--fa-primary-opacity: 1;
	--fa-secondary-opacity: 0.7;
	/* FA7 icon canvas: match standard fixed-width icons (20px @ 16px = 1.25em) */
	--fa-width: 1.25em;
	line-height: 1;
}

.sf-header__section-btn > i {
	--fa-width: 1.25em;
	flex-shrink: 0;
}

.sf-header__section-btn:hover .sf-header__kit-icon,
.sf-header__section-btn:focus .sf-header__kit-icon,
.sf-header__section-btn.is-active .sf-header__kit-icon {
	--fa-primary-color: var(--gold, #c99700);
}

.sf-header__bookmark-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sf-header__bookmark-links a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 0;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--white);
}

.sf-header__bookmark-links a:hover,
.sf-header__bookmark-links a:focus {
	color: var(--gold-light);
	text-decoration: underline;
}

.sf-header__drawer-bookmarks{
	white-space: nowrap;
}

.sf-header__drawer-primary {
	width: 100%;
}

.sf-header__drawer-cta {
	margin-top: 1.5rem;
}

.sf-header__drawer-footer {
	flex-shrink: 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 0.75rem clamp(1rem, 3vw, 2rem) clamp(1rem, 2.5vh, 1.75rem);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sf-header__theme-switch {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.sf-header__theme-switch-label {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.1rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.82);
	text-align: right;
}

.sf-header__theme-switch-status {
	letter-spacing: 0.02em;
}

.sf-header__theme-switch-mode {
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: var(--gold-light);
}

.sf-header__theme-switch-track {
	position: relative;
	display: flex;
	align-items: center;
	width: 4.5rem;
	height: 2.25rem;
	margin: 0;
	border: 0;
	background-color: rgba(255, 255, 255, 0.18);
	cursor: pointer;
	transition: background-color 0.35s ease;
}

.sf-header__theme-switch-input:checked + .sf-header__theme-switch-track {
	background-color: rgba(0, 0, 0, 0.35);
}

.sf-header__theme-switch-input:focus-visible + .sf-header__theme-switch-track {
	outline: 2px solid var(--gold-light);
	outline-offset: 3px;
}

.sf-header__theme-switch-icon {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.45);
	transition: transform 0.35s ease;
	z-index: 1;
	pointer-events: none;
}

.sf-header__theme-switch-icon--sun {
	left: 0.375rem;
	transform: scale(0);
}

.sf-header__theme-switch-icon--moon {
	right: 0.375rem;
	transform: scale(1);
}

.sf-header__theme-switch-input:checked + .sf-header__theme-switch-track .sf-header__theme-switch-icon--sun {
	transform: scale(1);
}

.sf-header__theme-switch-input:checked + .sf-header__theme-switch-track .sf-header__theme-switch-icon--moon {
	transform: scale(0);
}

.sf-header__theme-switch-thumb {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--gold);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	transition: left 0.35s ease;
	z-index: 2;
	pointer-events: none;
}

.sf-header__theme-switch-input:checked + .sf-header__theme-switch-track .sf-header__theme-switch-thumb {
	left: calc(100% - 2.25rem);
}

.sf-header__theme-switch-thumb-icon {
	position: absolute;
	font-size: 0.95rem;
	color: var(--blue-dark);
	transition: transform 0.45s ease;
}

.sf-header__theme-switch-thumb-icon--sun {
	transform: rotate(0deg) translateY(0);
}

.sf-header__theme-switch-thumb-icon--moon {
	transform: rotate(-30deg) translateY(1.75rem);
}

.sf-header__theme-switch-input:checked + .sf-header__theme-switch-track .sf-header__theme-switch-thumb-icon--sun {
	transform: rotate(30deg) translateY(-1.75rem);
}

.sf-header__theme-switch-input:checked + .sf-header__theme-switch-track .sf-header__theme-switch-thumb-icon--moon {
	transform: rotate(0deg) translateY(0);
}

@media (min-width: 992px) {
	.sf-header__theme-switch-label {
		font-size: 0.8125rem;
	}

	.sf-header__theme-switch-mode {
		font-size: 0.9375rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sf-header__theme-switch-track,
	.sf-header__theme-switch-thumb,
	.sf-header__theme-switch-icon,
	.sf-header__theme-switch-thumb-icon {
		transition: none;
	}
}

.sf-header__drawer-back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	margin-bottom: 1.5rem;
	padding: 0.5rem 0;
	border: 0;
	background: transparent;
	color: var(--gold-light);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.sf-header__drawer-back:hover,
.sf-header__drawer-back:focus {
	color: var(--white);
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.sf-header__section-panel[hidden] {
	display: none !important;
}

.sf-header__section-title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
}

.sf-header__section-overview {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: .75rem;
	padding-bottom: .5rem;
	border-bottom: 3px solid var(--gold);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--gold-light);
}

.sf-header__section-overview:hover,
.sf-header__section-overview:focus {
	color: var(--white);
}

.sf-header__panel-links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sf-header__panel-link {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 0;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--white);
}

.sf-header__panel-link:hover,
.sf-header__panel-link:focus {
	color: var(--gold-light);
	text-decoration: underline;
}

/* Full-screen search */
.sf-header__search-modal {
	--bs-modal-zindex: var(--sf-header-overlay-z);
}

/* Bootstrap appends the backdrop to body, outside .sf-header */
body:has(#sfHeaderSearchModal.show) .modal-backdrop {
	z-index: calc(var(--sf-header-overlay-z) - 1) !important;
}

.sf-header__search-content {
	background: var(--blue-dark);
	color: var(--white);
}

.sf-header__search-title {
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
}

.sf-header__search-modal .btn-close-white {
	filter: invert(1);
}

/* Search modal â€” dark panel regardless of page theme (fixes light-mode black text) */
.sf-header__search-modal {
	--bs-body-color: #fff;
	--bs-body-bg: var(--blue);
	--bs-emphasis-color: #fff;
	--bs-secondary-color: rgba(255, 255, 255, 0.78);
	--bs-heading-color: #fff;
	--bs-border-color: rgba(255, 255, 255, 0.2);
}

.sf-header__search-modal .modal-content,
.sf-header__search-modal .modal-header,
.sf-header__search-modal .modal-body {
	background-color: var(--blue);
	color: #fff;
	border: 0;
}

.sf-header__search-modal h2,
.sf-header__search-modal h3,
.sf-header__search-modal p,
.sf-header__search-modal label,
.sf-header__search-modal .modal-search-top-queries,
.sf-header__search-modal .modal-search-top-queries i {
	color: #fff;
}

.sf-header__search-modal .modal-search-top-queries a,
.sf-header__search-modal .modal-search-quick-links a {
	color: #fff;
}

/* Underline search field â€” transparent so the modal blue shows through */
.sf-header__search-modal form.search fieldset {
	align-items: stretch;
	gap: 0.75rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.sf-header__search-modal form.search fieldset:focus-within {
	box-shadow: none;
	outline: none;
}

.sf-header__search-modal .sf-header__search-input,
.sf-header__search-modal form.search .form-control {
	flex: 1 1 auto;
	min-height: 3.75rem;
	padding: 1.35rem 0 0.65rem;
	border: 0;
	border-radius: 0;
	border-bottom: 3px solid rgba(255, 255, 255, 0.35);
	background: transparent !important;
	box-shadow: none !important;
	color: #fff;
	caret-color: var(--gold, #f4bb33);
	font-size: clamp(1.15rem, 2.4vw, 1.65rem);
	font-weight: 600;
	line-height: 1.3;
}

.sf-header__search-modal .sf-header__search-input::placeholder {
	color: transparent;
}

.sf-header__search-modal .sf-header__search-input:hover,
.sf-header__search-modal form.search .form-control:hover {
	border-bottom-color: rgba(255, 255, 255, 0.55);
}

.sf-header__search-modal .sf-header__search-input:focus,
.sf-header__search-modal form.search .form-control:focus,
.sf-header__search-modal form.search fieldset:focus-within .form-control {
	border-bottom-color: var(--gold, #f4bb33);
	background: transparent !important;
	box-shadow: none !important;
	color: #fff;
}

.sf-header__search-modal .sf-header__search-input:-webkit-autofill,
.sf-header__search-modal .sf-header__search-input:-webkit-autofill:hover,
.sf-header__search-modal .sf-header__search-input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff;
	caret-color: var(--gold, #f4bb33);
	transition: background-color 99999s ease-in-out 0s;
	box-shadow: 0 0 0 1000px transparent inset;
}

.sf-header__search-modal .form-floating > label {
	left: 0;
	padding-left: 0;
	color: rgba(255, 255, 255, 0.62);
	transform-origin: left top;
}

.sf-header__search-modal .form-floating > .form-control:focus ~ label,
.sf-header__search-modal .form-floating > .form-control:not(:placeholder-shown) ~ label {
	color: rgba(255, 255, 255, 0.72);
}

.sf-header__search-modal form.search .btn-gold {
	align-self: flex-end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.25rem;
	min-height: 3.25rem;
	margin-bottom: 0.15rem;
	padding: 0.65rem 0.9rem;
	border: 0;
	background: var(--gold, #f4bb33);
	color: var(--blue-dark, #003366);
	box-shadow: none;
}

.sf-header__search-modal form.search .btn-gold:hover,
.sf-header__search-modal form.search .btn-gold:focus,
.sf-header__search-modal form.search .btn-gold:focus-visible {
	background: var(--gold-light, #ffecbf);
	color: var(--blue-dark, #003366);
	outline: 2px solid var(--gold-light, #ffecbf);
	outline-offset: 2px;
}

/* Top query chips stay content-width pills */
.sf-header__search-modal .modal-search-top-queries .btn {
	display: inline-flex;
	align-items: center;
	width: auto;
	min-height: 0;
	padding: 0.25rem 0.75rem;
	line-height: 1.25;
}

.sf-header__search-modal .modal-search-top-queries .btn-outline-primary {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
	background: transparent;
}

.sf-header__search-modal .modal-search-top-queries .btn-outline-primary:hover,
.sf-header__search-modal .modal-search-top-queries .btn-outline-primary:focus,
.sf-header__search-modal .modal-search-top-queries .btn-outline-primary:focus-visible {
	color: var(--blue);
	background: var(--gold-light, #ffecbf);
	border-color: var(--gold-light, #ffecbf);
}

/* Quick-link cards: full-width flex rows with centered icon + text */
.sf-header__search-modal .modal-search-quick-links .btn-outline-primary,
.sf-header__search-modal .modal-search-quick-links .btn-outline-light {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.65rem;
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	text-align: left;
	line-height: 1.25;
}

.sf-header__search-modal .modal-search-quick-links .btn-outline-primary i,
.sf-header__search-modal .modal-search-quick-links .btn-outline-light i {
	flex: 0 0 auto;
	width: 1.25em;
	text-align: center;
}

.sf-header__search-modal .modal-search-quick-links .btn-outline-primary {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
	background: transparent;
}

.sf-header__search-modal .modal-search-quick-links .btn-outline-primary:hover,
.sf-header__search-modal .modal-search-quick-links .btn-outline-primary:focus,
.sf-header__search-modal .modal-search-quick-links .btn-outline-primary:focus-visible {
	color: var(--blue);
	background: var(--gold-light, #ffecbf);
	border-color: var(--gold-light, #ffecbf);
}

.sf-header__search-modal .modal-search-quick-links .btn-outline-light {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
	background: transparent;
}

.sf-header__search-modal .modal-search-quick-links .btn-outline-light:hover,
.sf-header__search-modal .modal-search-quick-links .btn-outline-light:focus,
.sf-header__search-modal .modal-search-quick-links .btn-outline-light:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.55);
}

/* Overlay variant â€” sits on hero */
.sf-header.sf-header--overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999999;
	background: transparent;
	border-bottom: 0;
	transition: background 0.25s ease, box-shadow 0.25s ease;
}

.sf-header.sf-header--overlay .sf-header__bar {
	background: transparent;
	border-bottom: 0 solid var(--blue-med);
	transition:background-color .5s ease-in-out, border.25s ease-in-out;
}

.sf-header.sf-header--overlay.is-scrolled:not(.is-menu-open) {
	background: var(--blue);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sf-header.sf-header--overlay.is-scrolled:not(.is-menu-open) .sf-header__bar {
	background: var(--blue);
	border-bottom: 2px solid var(--blue-med);
}

.sf-header.sf-header--overlay.is-menu-open {
	background: transparent;
}

html.sf-header-overlay-page body {
	padding-top: 0;
}

body.sf-header-menu-open {
	overflow: hidden;
}

/* Desktop: split-pane drawer like Clark */
@media (min-width: 992px) {
	.sf-header__drawer-grid {
		display: grid;
		grid-template-columns: minmax(10.5rem, 0.72fr) minmax(0, 1.28fr);
		align-items: start;
		gap: clamp(1.5rem, 3vw, 2.5rem);
	}

	.sf-header__drawer-bookmarks {
		white-space: normal;
		min-width: 0;
	}

	.sf-header__drawer-primary {
		min-width: 0;
	}

	.sf-header__drawer-body {
		display: grid;
		grid-template-columns: 1fr;
	}

	.sf-header.is-detail-open .sf-header__drawer-body {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	}

	.sf-header.is-detail-open .sf-header__drawer-main,
	.sf-header.is-detail-open .sf-header__drawer-detail {
		padding-top: 2rem;
	}

	.sf-header.is-detail-open .sf-header__drawer-detail {
		border-left: 1px solid rgba(255, 255, 255, 0.12);
		padding-left: 2rem;
	}

	.sf-header__drawer-back {
		display: none;
	}

	.sf-header__panel-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 2rem;
	}

	.sf-header__action-label {
		display: inline;
	}
}

@media (max-width: 991.98px) {
	.sf-header__search-open .fa-magnifying-glass,
	.sf-header__menu-open .fa-bars {
		font-size: 1.15rem;
	}

	.sf-header__search-open .sf-header__action-label {
		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 jump links must stay above the fixed overlay header when focused. */
#jump-links {
	position: relative;
	z-index: var(--sf-jump-links-z);
}

#jump-links .jump-links,
#jump-links .skip:focus,
#jump-links .skip:hover,
#jump-links .skip:active {
	z-index: var(--sf-jump-links-z);
}
