/* QoT Core: jump navigation, site-wide.
   ---------------------------------------------------------------------------
   WHY THIS FILE EXISTS. The jump-nav pattern was ratified inside the listicle
   template (2026-09-03) and its rules were scoped to body.qot-tmpl-listicle in
   listicle.css. The 2026-09-04 consolidation folded the pattern onto the
   road-trip hub (WP 1222), which does not carry the listicle template meta, so
   the nav needs an unscoped home. Loaded by includes/class-jump-nav-style.php
   only when the rendered post contains a qot-jump-nav element. Rules mirror
   listicle.css; on listicle pages both sheets load and agree, so the duplicate
   is harmless by construction. Change BOTH copies or neither.
   --------------------------------------------------------------------------- */

.qot-jump-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .55rem;
	margin-block: 1.1rem 1.4rem;
}
.qot-jump-nav__label {
	font-family: var(--brand-font-body, inherit);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--brand-text-muted, #57606B);
	margin-right: .35rem;
}
.qot-jump-nav a {
	font-family: var(--brand-font-body, inherit);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--brand-primary, #1B365D);
	background: var(--brand-surface, #FFFFFF);
	border: 1.5px solid rgba(27, 54, 93, .35);
	border-radius: 999px;
	padding: 0 1.05rem;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.qot-jump-nav a:hover {
	background: var(--brand-primary, #1B365D);
	border-color: var(--brand-primary, #1B365D);
	color: var(--brand-text-on-dark, #FFFFFF);
}
.qot-jump-nav a:focus-visible {
	outline: 3px solid var(--brand-primary, #1B365D);
	outline-offset: 2px;
}

/* Targets: keep an anchored heading clear of any sticky header. */
.entry-content h2[id] {
	scroll-margin-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.qot-jump-nav) {
		scroll-behavior: smooth;
	}
}

@media (max-width: 600px) {
	.qot-jump-nav a {
		font-size: 13px;
		min-height: 40px;
		padding: 0 .85rem;
	}
}
