/* Sounds Debatable Header. Scoped to .sdh-root so theme styles don't leak in or out. */

.sdh-root { display: contents; }
.sdh-root, #sd-ribbon, #sd-header {
	--sdh-accent: var(--sdf-accent, #05FD00);
	--sdh-line: #2B2B2B;
	--sdh-muted: #A9A59B;
	--sdh-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sdh-sans: Outfit, "Helvetica Neue", Arial, sans-serif;
	--sdh-gutter: clamp(20px, 4vw, 48px);
}
#sd-ribbon *, #sd-header * { box-sizing: border-box; }
#sd-ribbon p, #sd-header p, #sd-header ul { margin: 0; padding: 0; }
#sd-header ul { list-style: none; }
#sd-header a, #sd-ribbon a { text-decoration: none; }
#sd-header button { font: inherit; margin: 0; text-transform: none; letter-spacing: 0; box-shadow: none; }
#sd-header a:focus-visible, #sd-header button:focus-visible, #sd-header input:focus-visible,
#sd-ribbon a:focus-visible, #sd-ribbon button:focus-visible {
	outline: 3px solid var(--sdh-accent);
	outline-offset: 2px;
	border-radius: 8px;
}
#sd-header .sdf-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ribbon */
#sd-ribbon { background: #05FD00 !important; background: var(--sdh-accent) !important; color: #000000 !important; font-family: var(--sdh-sans); }
#sd-ribbon[hidden] { display: none; }
#sd-ribbon .sdh-ribbon__inner {
	max-width: 1280px; margin: 0 auto; padding: 0 var(--sdh-gutter); min-height: 44px;
	display: flex; align-items: center; justify-content: space-between; gap: 8px 16px;
}
#sd-ribbon .sdh-ribbon__text { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.35; padding: 8px 0; }
#sd-ribbon .sdh-ribbon__text svg { flex: 0 0 auto; }
#sd-ribbon .sdh-ribbon__actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
#sd-ribbon .sdh-ribbon__link {
	color: #000000 !important; font-size: 14px; font-weight: 700; padding: 12px 8px;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px;
}
#sd-ribbon .sdh-ribbon__link:hover { text-decoration-thickness: 3px; }
#sd-ribbon .sdh-ribbon__close {
	width: 40px; height: 40px; border: 0; background: transparent !important; color: #000000 !important; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; padding: 0;
}
#sd-ribbon .sdh-ribbon__close:hover { background: rgba(0, 0, 0, 0.1) !important; }

/* Bar */
#sd-header {
	position: relative; z-index: 1000; background: #000000 !important; color: #FFFFFF !important;
	font-family: var(--sdh-sans); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased;
}
#sd-header.sdh--sticky { position: sticky; top: 0; top: var(--wp-admin--admin-bar--height, 0px); }
#sd-header .sdh-bar {
	max-width: 1280px; margin: 0 auto; padding: 0 var(--sdh-gutter); min-height: 104px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
#sd-header .sdh-logo { display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--sdh-accent) !important; }
#sd-header .sdh-logo img { display: block; height: 64px; width: auto; }
#sd-header .sdh-wordmark {
	display: flex; flex-direction: column;
	font-family: "SD Wordmark", Archivo, Impact, "Arial Narrow", sans-serif;
	font-style: italic; font-weight: 900; font-size: 42px; line-height: 0.82;
	text-transform: uppercase; color: var(--sdh-accent) !important;
}

#sd-header .sdh-nav { align-self: stretch; display: flex; }
#sd-header ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
#sd-header li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
#sd-header li::before, #sd-header li::after { content: none !important; display: none !important; }
#sd-header .sdh-nav > ul { display: flex; align-items: stretch; gap: 4px; }
#sd-header .sdh-nav > ul > li { position: static !important; display: flex; align-items: center; }
#sd-header .sdh-panel ul { display: block; }
#sd-header .sdh-panel li { display: block; position: static; }
#sd-header .sdh-trigger, #sd-header .sdh-top {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
	border-radius: 999px; border: 0; background: transparent !important; color: #FFFFFF !important;
	font-family: var(--sdh-sans); font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
#sd-header .sdh-top:hover, #sd-header .sdh-trigger:hover { color: var(--sdh-accent) !important; }
#sd-header .sdh-trigger[aria-expanded="true"], #sd-header .sdh-nav li.is-open > .sdh-trigger { background: #1C1C1C !important; color: #FFFFFF !important; }
#sd-header .sdh-chev { transition: transform .2s ease; }
#sd-header [aria-expanded="true"] > .sdh-chev { transform: rotate(180deg); }

#sd-header .sdh-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
#sd-header .sdh-icon {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3A3A3A; background: transparent !important;
	color: #FFFFFF !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
#sd-header .sdh-icon:hover, #sd-header .sdh-icon[aria-expanded="true"] { border-color: var(--sdh-accent) !important; color: var(--sdh-accent) !important; }
#sd-header .sdh-cta {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
	background: var(--sdh-accent) !important; color: #000000 !important; font-weight: 700; font-size: 15px; white-space: nowrap;
}
#sd-header .sdh-cta:hover { background: #FFFFFF !important; color: #000000 !important; }
#sd-header .sdh-burger { display: none; }
#sd-header .sdh-burger__close { display: none; }
#sd-header .sdh-burger[aria-expanded="true"] .sdh-burger__open { display: none; }
#sd-header .sdh-burger[aria-expanded="true"] .sdh-burger__close { display: inline; }

/* Dropdown panels */
#sd-header .sdh-panel {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #111111 !important; border-top: 1px solid var(--sdh-line);
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
#sd-header .sdh-panel { display: none !important; }
#sd-header .sdh-nav > ul > li.is-open > .sdh-panel,
#sd-header:not(.sdh-js) .sdh-nav > ul > li:hover > .sdh-panel,
#sd-header:not(.sdh-js) .sdh-nav > ul > li:focus-within > .sdh-panel { display: block !important; }
#sd-header:not(.sdh-js) .sdh-nav li:hover > .sdh-trigger .sdh-chev { transform: rotate(180deg); }
#sd-header .sdh-panel__inner {
	max-width: 1280px; margin: 0 auto; padding: 36px var(--sdh-gutter) 40px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px;
}
#sd-header .sdh-group__title { font-size: 14px; color: var(--sdh-muted) !important; margin-bottom: 8px; }
#sd-header .sdh-link { display: flex; flex-direction: column; padding: 10px 0; color: #FFFFFF !important; }
#sd-header .sdh-link__label { font-weight: 600; font-size: 17px; }
#sd-header .sdh-link__desc { font-size: 14px; color: var(--sdh-muted) !important; }
#sd-header .sdh-link:hover .sdh-link__label { color: var(--sdh-accent) !important; }
#sd-header .sdh-feature {
	background: #EFEBDF !important; color: #000000 !important; border-radius: 20px; padding: 28px;
	display: flex; flex-direction: column; gap: 10px; justify-content: space-between; min-height: 220px;
}
#sd-header .sdh-feature--plain { min-height: 0; justify-content: flex-start; }
#sd-header .sdh-feature__kicker { font-size: 14px; font-weight: 600; }
#sd-header .sdh-feature__title {
	font-family: var(--sdh-serif); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em;
}
#sd-header .sdh-feature__btn {
	align-self: flex-start; background: #000000 !important; color: #FFFFFF !important; border-radius: 999px;
	padding: 11px 18px; font-weight: 700; font-size: 14px;
}
#sd-header .sdh-feature:hover .sdh-feature__btn { background: var(--sdh-accent) !important; color: #000000 !important; }

/* Search */
#sd-header .sdh-search { position: absolute; left: 0; right: 0; top: 100%; background: #111111 !important; border-top: 1px solid var(--sdh-line); }
#sd-header .sdh-search[hidden] { display: none; }
#sd-header .sdh-search__form {
	max-width: 1280px; margin: 0 auto; padding: 24px var(--sdh-gutter); display: flex; gap: 8px;
}
#sd-header .sdh-search input {
	flex: 1 1 auto; min-width: 0; min-height: 52px; border-radius: 999px; border: 1px solid #3A3A3A;
	background: #1C1C1C !important; color: #FFFFFF !important; padding: 0 22px; font: 500 17px var(--sdh-sans); margin: 0; box-shadow: none;
}
#sd-header .sdh-search input::placeholder { color: #8E8A80 !important; }
#sd-header .sdh-search button {
	flex: 0 0 auto; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--sdh-accent) !important; color: #000000 !important; font: 700 16px var(--sdh-sans);
}

#sd-header .sdh-results { max-width: 1280px; margin: 0 auto; padding: 0 var(--sdh-gutter); }
#sd-header .sdh-results ul { padding-bottom: 20px !important; display: block; }
#sd-header .sdh-results li { display: block; border-top: 1px solid var(--sdh-line); }
#sd-header .sdh-result {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 4px;
	color: #FFFFFF !important; font-size: 17px; font-weight: 600; border-radius: 8px;
}
#sd-header .sdh-result:hover, #sd-header .sdh-result:focus-visible { background: #1C1C1C !important; color: var(--sdh-accent) !important; }
#sd-header .sdh-result__type { flex: 0 0 auto; font-size: 13px; font-weight: 500; color: var(--sdh-muted) !important; }
#sd-header .sdh-result--all { color: var(--sdh-accent) !important; font-size: 15px; }
#sd-header .sdh-results__empty { padding: 0 4px 22px; color: var(--sdh-muted) !important; font-size: 15px; }
#sd-header .sdh-search { max-height: calc(100vh - 120px); overflow-y: auto; }

/* Phone and tablet drawer */
#sd-header .sdh-drawer { display: none; }
@media (max-width: 1080px) {
	#sd-header .sdh-nav { display: none; }
	#sd-header .sdh-burger { display: inline-flex; }
	#sd-header .sdh-panel { display: none !important; }
	#sd-header .sdh-bar { min-height: 84px; }
	#sd-header .sdh-wordmark { font-size: 34px; }
	#sd-header .sdh-logo img { height: 52px; }
	#sd-header .sdh-drawer:not([hidden]) {
		display: block; position: absolute; left: 0; right: 0; top: 100%;
		background: #000000 !important; border-top: 1px solid var(--sdh-line);
		max-height: calc(100vh - 84px); overflow-y: auto; overscroll-behavior: contain;
		padding: 8px var(--sdh-gutter) 28px;
	}
	#sd-header .sdh-drawer__list > li { border-bottom: 1px solid var(--sdh-line); }
	#sd-header .sdh-drawer__trigger, #sd-header .sdh-drawer__top {
		width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 60px;
		background: transparent !important; border: 0; color: #FFFFFF !important; padding: 0; cursor: pointer;
		font-family: var(--sdh-serif); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; text-align: left;
	}
	#sd-header .sdh-drawer__sub { padding: 0 0 16px; }
	#sd-header .sdh-drawer__sub[hidden] { display: none; }
	#sd-header .sdh-drawer__sub a { display: block; padding: 10px 0; color: #D9D6CE !important; font-size: 17px; font-weight: 500; }
	#sd-header .sdh-drawer__sub a:hover { color: var(--sdh-accent) !important; }
	#sd-header .sdh-drawer__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
	#sd-header .sdh-drawer__actions .sdh-cta { justify-content: center; min-height: 52px; font-size: 16px; }
	#sd-header .sdh-outline {
		display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px;
		border: 1px solid #FFFFFF; color: #FFFFFF !important; font-weight: 600; font-size: 16px;
	}
}
@media (max-width: 560px) {
	#sd-header .sdh-bar { gap: 12px; min-height: 76px; }
	#sd-header .sdh-wordmark { font-size: 30px; }
	#sd-header .sdh-actions .sdh-cta { display: none; }
	#sd-header .sdh-drawer:not([hidden]) { max-height: calc(100vh - 76px); }
	#sd-ribbon .sdh-ribbon__text span { font-size: 13px; }
}
body.sdh-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
	#sd-header * { transition: none !important; }
}
