/* Site header: sticky bar with dropdown panels (desktop, 992px and up). */

.aandd-hdr-wrap {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid #e6e9ee;
	transition: box-shadow 0.2s ease;
}

body.admin-bar .aandd-hdr-wrap {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .aandd-hdr-wrap {
		top: 0;
	}
}

.aandd-hdr-wrap.is-scrolled {
	box-shadow: 0 6px 24px rgba(11, 26, 43, 0.08);
}

#header.aandd-hdr,
#header.aandd-hdr.header-scrolled,
#header.aandd-hdr.header-inner-pages {
	position: static;
	padding: 0;
	background: transparent;
	transition: none;
	font-family: "Work Sans", sans-serif;
}

.aandd-hdr-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1200px;
	height: 76px;
	margin: 0 auto;
	padding: 0 15px;
}

#header.aandd-hdr .logo {
	margin: 0 auto 0 0;
	line-height: 0;
}

#header.aandd-hdr .logo img {
	display: block;
	width: auto;
	height: 48px;
	max-height: none;
}

.aandd-hdr svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Top-level links */
.aandd-dn-list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aandd-dn-item {
	position: relative;
}

.aandd-dn-link,
.aandd-dn a.aandd-dn-link:visited,
.aandd-dn a.aandd-dn-link:focus {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	color: #0b1a2b;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.aandd-dn-link svg {
	width: 16px;
	height: 16px;
	stroke-width: 2;
	transition: transform 0.2s ease;
}

.aandd-dn-link:hover,
.aandd-dn a.aandd-dn-link:hover,
.aandd-dn-toggle[aria-expanded="true"] {
	background: #f1f5fa;
	color: #0066b3;
}

.aandd-dn-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.aandd-dn-link.is-active,
.aandd-dn a.aandd-dn-link.is-active {
	color: #0066b3;
}

.aandd-dn-link.is-active::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: #0066b3;
}

.aandd-dn-toggle.is-active::after {
	right: 36px;
}

.aandd-dn-link:focus-visible {
	outline: 2px solid #0066b3;
	outline-offset: 2px;
}

/* Dropdown panels */
.aandd-dn-panel {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	z-index: 10;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px;
	width: 340px;
	padding: 12px;
	border: 1px solid #e6e9ee;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(11, 26, 43, 0.14);
	transform: translateX(calc(-50% + var(--aandd-shift, 0px)));
	animation: aandd-dn-in 0.16s ease-out;
}

.aandd-dn-panel[hidden] {
	display: none;
}

/* Hover bridge so the pointer can travel from the link into the panel. */
.aandd-dn-panel::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 14px;
}

.aandd-dn-panel.is-wide {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 680px;
}

@keyframes aandd-dn-in {
	from {
		opacity: 0;
		transform: translate(calc(-50% + var(--aandd-shift, 0px)), -6px);
	}
	to {
		opacity: 1;
		transform: translate(calc(-50% + var(--aandd-shift, 0px)), 0);
	}
}

.aandd-dn-sublink,
.aandd-dn a.aandd-dn-sublink:visited,
.aandd-dn a.aandd-dn-sublink:focus {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border-radius: 12px;
	text-decoration: none;
	color: #0b1a2b;
}

.aandd-dn a.aandd-dn-sublink:hover,
.aandd-dn a.aandd-dn-sublink:focus-visible {
	background: #f1f5fa;
}

.aandd-dn a.aandd-dn-sublink:focus-visible {
	outline: 2px solid #0066b3;
	outline-offset: -2px;
}

.aandd-dn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #eaf3fb;
	color: #0066b3;
}

.aandd-dn-icon svg {
	width: 20px;
	height: 20px;
	stroke-width: 1.7;
}

.aandd-dn-sublink:hover .aandd-dn-icon {
	background: #0066b3;
	color: #fff;
}

.aandd-dn-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.aandd-dn-title {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: #0b1a2b;
}

.aandd-dn-sublink:hover .aandd-dn-title {
	color: #0066b3;
}

.aandd-dn-sub {
	font-size: 13px;
	line-height: 1.4;
	color: #5a6878;
}

/* Search and call to action */
.aandd-dn-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.aandd-dn-search {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #d9dee5;
	border-radius: 12px;
	background: #fff;
	color: #0b1a2b;
	cursor: pointer;
}

.aandd-dn-search:hover {
	border-color: #0066b3;
	color: #0066b3;
}

.aandd-dn-search svg {
	width: 18px;
	height: 18px;
}

.aandd-dn-cta,
a.aandd-dn-cta:visited,
a.aandd-dn-cta:focus {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 22px;
	border-radius: 22px;
	background: #0066b3;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

a.aandd-dn-cta:hover,
a.aandd-dn-cta:active {
	background: #0a4f8a;
	color: #fff;
}

/* Medium desktops: tighter spacing, CTA hidden. */
@media (max-width: 1199.98px) {
	.aandd-hdr-inner {
		gap: 12px;
	}

	.aandd-dn-link,
	.aandd-dn a.aandd-dn-link:visited,
	.aandd-dn a.aandd-dn-link:focus {
		padding: 0 10px;
		font-size: 15px;
	}

	.aandd-dn-cta {
		display: none;
	}
}

/* Phones and tablets: the full-screen mobile menu takes over. */
@media (max-width: 991.98px) {
	.aandd-dn,
	.aandd-dn-search {
		display: none;
	}

	.aandd-hdr-inner {
		height: 64px;
	}

	#header.aandd-hdr .logo img {
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aandd-dn-panel {
		animation: none;
	}

	.aandd-dn-link svg,
	.aandd-hdr-wrap {
		transition: none;
	}
}
