/* ==========================================================================
   Block: Sticky Subnav
   Scoped to .glacial-sticky-subnav
   ========================================================================== */

.glacial-sticky-subnav {
	/* position is managed by JS — fixed on scroll, static before */
	z-index: 34;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid #edf0f6;
	border-bottom: 1px solid #dfe6f2;
	box-shadow: 0 8px 22px rgba(24, 28, 72, 0.06);
}

/* Full-width state when JS fixes the nav to the top */
.glacial-sticky-subnav.is-stuck {
	box-shadow: 0 4px 18px rgba(24, 28, 72, 0.10);
	border-top: none;
}

.glacial-sticky-subnav.is-stuck .glacial-sticky-subnav__inner {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.glacial-sticky-subnav__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 24px;
}

.glacial-sticky-subnav__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--ioes-muted, #586275);
	text-transform: uppercase;
	margin-right: 6px;
	white-space: nowrap;
	flex-shrink: 0;
}

.glacial-sticky-subnav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid transparent;
	color: var(--ioes-navy, #181c48);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	flex-shrink: 0;
}

.glacial-sticky-subnav__link:hover,
.glacial-sticky-subnav__link.is-active {
	background: #eef8ff;
	border-color: #d6e9f5;
	color: var(--ioes-blue, #4857a6);
}

.glacial-sticky-subnav__cta {
	margin-left: auto;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--ioes-teal, #0cb9a2);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	transition: opacity 0.15s;
	flex-shrink: 0;
}

.glacial-sticky-subnav__cta:hover {
	opacity: 0.88;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Tablet (max 980px) — horizontal scroll, hide label to save space
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
	.glacial-sticky-subnav {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none; /* Firefox */
	}

	.glacial-sticky-subnav::-webkit-scrollbar {
		display: none; /* Chrome/Safari */
	}

	.glacial-sticky-subnav__inner {
		min-width: max-content;
		padding: 10px 16px;
	}
}

/* --------------------------------------------------------------------------
   Mobile (max 480px) — hide "On this page" label, tighten padding
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
	.glacial-sticky-subnav__label {
		display: none;
	}

	.glacial-sticky-subnav__inner {
		padding: 8px 12px;
		gap: 2px;
	}

	.glacial-sticky-subnav__link {
		font-size: 12px;
		padding: 7px 10px;
	}

	.glacial-sticky-subnav__cta {
		font-size: 12px;
		padding: 7px 12px;
	}
}



/* ── Subnav stuck at top (replaces main nav) ──────────────────────────────── */
.glacial-sticky-subnav.is-stuck {
	top: 0 !important;
	box-shadow: 0 4px 18px rgba(24, 28, 72, 0.12);
	border-top: none;
}
