:root {
	/* Fallback tracks surface/brand (#0f2a4a); the #262624 it read before was a
	   pre-rebrand value the token has not carried for some time. */
	--move-page-header-bg: var(--move-color-dark, #0f2a4a);
	--move-page-header-text: var(--move-color-text-inverse, #f5f3ee);
	/* Both bands are WHITE per Figma, not the earthy cream/tan pair
	   (#fbeee1 / #efece3) these used pre-rebrand. */
	--move-page-header-subnav-bg: var(--move-color-surface, #ffffff);
	--move-page-header-accent: var(--move-color-accent, #689fdf);
	/* Tabs are plain dark links in Figma, not accent-coloured; 15.9:1 on white. */
	--move-page-header-anchors-text: var(--move-color-dark-alt, #061b33);

	/* Title is a 56px display line with a 64px Rosario italic emphasis span
	   (sitewide em/i rule), not a 32px/600 heading. Breadcrumb type lives in
	   global.css, shared with the Study single template. */
	--move-page-header-font-title: var(--move-font-size-3xl, 2rem);         /* 32px, mobile */
	--move-page-header-font-title-lg: var(--move-font-size-5xl, 3.5rem);    /* 56px */
	--move-page-header-font-anchors: var(--move-font-size-base, 1rem);         /* 16px */
	--move-page-header-font-anchors-icon: var(--move-font-size-sm, 0.875rem);  /* 14px */
}

/* `display: contents`, not a box: keeps the tab bar's sticky positioning
 * from being confined to this element's height. No `container-type` either —
 * that would re-establish a containing block, and this block has no
 * @container rules.
 */
.move-page-header {
	display: contents;
	font-family: var(--move-font-base);
	--move-strong-weight: var(--move-font-weight-bold, 700);
}

/* Neutralises the host theme's <body> size (Twenty Twenty-Five sets 22px).
   Applied to the three bands, not the wrapper (display:contents paints
   nothing). Breadcrumb reached via descendant selector since global.css's
   `.move-breadcrumb` is shared with Study single, which needs no reset. */
.move-page-header__banner,
.move-page-header .move-breadcrumb,
.move-page-header__anchors {
	font-size: 1rem;
	font-weight: 400;
}

.move-page-header__banner {
	background: var(--move-page-header-bg);
	color: var(--move-page-header-text);
	/* The site navbar and this band are both navy, so they abut with no visible
	   boundary — only on internal pages, since Home has no Page Header block.
	   Figma draws no rule here; this is a build decision, asked for directly. */
	border-top: var(--move-border-width, 1px) solid var(--move-page-header-rule, #ffffff);
	/* Back-to-top target: taller than anything above the banner can be, so a
	   jump always clamps to scrollY 0, even before main.js measures the header. */
	scroll-margin-top: 100vh;
	/* The containing block and the clip the background graphic needs come from
	   `move-hero-band` in global.css, which this element also carries. */
}
.move-page-header__container {
	max-width: var(--move-container-max, 1312px);
	margin-inline: auto;
	/* Without this the band's new stacking context paints the graphic over the title. */
	position: relative;
	z-index: 1;
	/* espacing/header: 80px inline, 32px block. */
	padding: var(--move-space-32, 2rem) var(--move-container-gutter, 2rem);
}
.move-page-header__title {
	margin: 0;
	font-size: var(--move-page-header-font-title);
	/* Light, not 600: weight contrast comes from the Rosario italic emphasis
	   span, as on the Home hero's H1. */
	font-weight: var(--move-font-weight-light, 300);
	/* Flat -1px: Figma's `letter-spacing/tight` variable is absolute here,
	   not the -0.01em percentage step (see tokens.css). */
	letter-spacing: -1px;
	line-height: var(--move-line-snug, 1.3);
	color: #ffffff;
	/* Rosario italic run at Medium 500 against this Light 300 roman (the
	   sitewide em/i rule only swaps family, not weight). 64px size step is
	   desktop-only, set below — mobile-first, since it doubles the 32px line. */
	--move-em-weight: var(--move-font-weight-medium, 500);
}
/* @media, not @container: this block is `display: contents` and establishes
 * no container (see .move-page-header above), so there's nothing to query.
 */
@media (min-width: 768px) {
	.move-page-header__title {
		font-size: var(--move-page-header-font-title-lg);
		/* Two-size lockup: 56px roman, 64px italic emphasis. Raising the
		   roman to 64px would flatten the device — the 8px belongs to the
		   emphasis run alone. */
		--move-em-size: var(--move-font-size-6xl, 4rem); /* 64px */
	}
}

/* Sticks at the very top: the header above it is `position: static` on every
 * page this block appears on (only Home's header is sticky, and Home never
 * carries a Page Header), so there's nothing above to offset against.
 */
.move-page-header__anchors {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--move-page-header-subnav-bg);
	/* Plain 1px border/light hairline, not a dashed accent rule. */
	border-bottom: var(--move-border-width, 1px) solid #eae9e6;
	box-shadow: 0 40px 43.5px rgba(184, 184, 184, 0.1);
}
/* Inner rail: only the content is width-constrained, not the colour. */
.move-page-header__anchors-inner {
	display: flex;
	/* Top, not centre: on a two-row wrap, centring would float the icon
	   between rows instead of beside the first tab. */
	align-items: flex-start;
	justify-content: center;
	gap: 0.5rem;
	max-width: var(--move-container-max, 1312px);
	margin-inline: auto;
	padding: var(--move-space-sm, 1rem) var(--move-container-gutter, 2rem);
}
/* No leading glyph on this bar per Figma. Hidden, not removed, so nothing
   referencing it breaks. */
.move-page-header__anchors-icon {
	display: none;
}
/* FA icon has no font-size to inherit like the ↳ glyph it replaced — sized
   directly instead. */
.move-page-header__anchors-icon svg {
	width: var(--move-page-header-font-anchors-icon);
	height: var(--move-page-header-font-anchors-icon);
}
/* Wraps to a second row rather than scrolling (`overflow-x: auto` put a
 * scrollbar under the strip; the prototype lets tabs run on). Only the list
 * wraps — the rail above stays one row so the ↳ keeps its place.
 */
.move-page-header__anchors-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	/* 18px between tabs, per the prototype. */
	gap: 0.25rem 1.125rem;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.move-page-header__anchors-list a {
	display: inline-block;
	/* Both dimensions, for SC 2.5.8 — height alone let a short label (a
	   two-char heading) render a 21px-wide target. The ::after hit-area trick
	   only extends height (0 horizontal inset by design), so min-width is
	   needed here too; 18px row gap keeps it collision-free. */
	min-width: var(--move-target-min, 24px);
	min-height: var(--move-target-min, 24px);
	/* 12px inline / 8px block, per Figma. */
	padding: var(--move-space-xs, 0.5rem) var(--move-space-12, 0.75rem);
	text-align: center;
	/* Text/Text-16 (tokens.css): 16px Light at 1.4, tracked -1%. */
	font-size: var(--move-page-header-font-anchors);
	font-weight: var(--move-font-weight-light, 300);
	line-height: var(--move-line-normal, 1.4);
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	color: var(--move-page-header-anchors-text);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: border-bottom-color var(--move-transition, 150ms ease);
}
.move-page-header__anchors-list a[aria-current="page"] {
	border-bottom-color: var(--move-page-header-accent);
	font-weight: var(--move-font-weight-semibold, 600);
}
.move-page-header__anchors-list a:hover,
.move-page-header__anchors-list a:focus-visible {
	border-bottom-color: var(--move-page-header-accent);
}
.move-page-header a:focus-visible,
.move-page-header__anchors-list a:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}

/* F2 of the layout handoff: anchor bar is desktop-only. Below 768px the
 * breadcrumb replaces it, and the same anchors move into the header's
 * hamburger menu (main.js's openNav() auto-expands the current page's
 * flyout). Page layout, not a component concern, so plain `@media`.
 */
@media (max-width: 767.98px) {
	.move-page-header__anchors {
		display: none;
	}
}
