/**
 * The navigation dropdowns: About, Career, and anything else given the
 * mc-subnav class. The button itself is an ordinary block; only the panel that
 * opens under it is drawn here.
 */

.mc-home .mc-subnav {
	position: relative;
	display: flex;
	align-items: center;
	gap: 3px;
}

.mc-home .mc-subnav > .wp-block-button__link:not([style*="padding"]) {
	padding-right: 0;
}

.mc-home .mc-subnav-toggle {
	display: grid;
	place-items: center;
	width: 25px;
	height: 36px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 5px;
	color: #143442;
	cursor: pointer;
}

.mc-subnav-toggle svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	transition: transform 0.2s;
}

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

.mc-home .mc-subnav-menu[hidden] {
	display: none;
}

.mc-home .mc-subnav-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 95;
	width: 238px;
	padding: 8px;
	background: #fff;
	border: 1px solid #dce6eb;
	border-radius: 10px;
	box-shadow: 0 16px 40px rgb(11 36 48 / 18%);
}

/* The menu's own size and weight, and rows about two-thirds as tall as before
 * (client, 29 Sep 2026). Phones and tablets have their own list in pages.css. */
.mc-home .mc-subnav-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 7px;
	color: #294454;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	text-decoration: none;
	white-space: nowrap;
}

.mc-home .mc-subnav-menu a:hover,
.mc-home .mc-subnav-menu a:focus-visible {
	background: #edf6fa;
	color: #096c9b;
}

/* The header has nine items now, so let them shrink before they wrap. */
@media (min-width: 701px) and (max-width: 1340px) {
	.mc-home .mc-nav-links {
		gap: clamp(7px, 1vw, 16px);
	}

	.mc-home .mc-nav-link > .wp-block-button__link {
		font-size: clamp(11px, 0.95vw, 15px);
	}
}

@media (max-width: 700px) {
	.mc-home .mc-subnav {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
	}

	.mc-home .mc-subnav-menu {
		position: static;
		flex-basis: 100%;
		width: 100%;
		margin: 6px 0 12px;
		box-shadow: none;
	}
}
