/*
 * Global styles not expressible in theme.json:
 * layout primitives, tones, and shared atoms (buttons, eyebrow, script, pills).
 * Block-specific CSS lives in blocks/<slug>/style.css.
 *
 * Breakpoints: 1024px (stack columns), 768px (mobile).
 */

:root {
	--hs-max: 1440px;
	--hs-gutter: 24px;
	--hs-radius-xl: 80px;
	--hs-radius-lg: 60px;
	--hs-radius-md: 40px;
	--hs-radius-sm: 18px;
	--hs-section-y: clamp(64px, 8vw, 120px);
	--hs-navy: var(--wp--preset--color--navy);
	--hs-cream: var(--wp--preset--color--cream);
	--hs-serif: var(--wp--preset--font-family--serif);
	--hs-sans: var(--wp--preset--font-family--sans);
	--hs-script: var(--wp--preset--font-family--script);
	--hs-btn-hover: var(--wp--preset--color--sky-500); /* Figma F01b: navy → light blue */
	--hs-stone: var(--wp--preset--color--stone); /* muted text: group labels, counts, citations */
	--hs-hairline: #e6e2d9; /* Figma neutral/500: row dividers (no theme.json token) */

	/*
	 * Accents: the warm, bright colours used for every hover / highlight / underline.
	 * Default (non-hover) states stay blue; anything that lights up uses one of these.
	 * Each accent has an ink (text colour on top of it) that passes AA.
	 */
	--hs-accent-pink: #e05cec; /* lilac-700 lifted a step so navy text on it passes AA */
	--hs-accent-pink-ink: var(--hs-navy);
	--hs-accent-orange: #ff8c33;
	--hs-accent-orange-ink: var(--hs-navy);
	--hs-accent-yellow: var(--wp--preset--color--lemon-700);
	--hs-accent-yellow-ink: var(--hs-navy);
	--hs-accent-green: var(--wp--preset--color--green-700);
	--hs-accent-green-ink: var(--hs-navy);
	--hs-accent-purple: #7b2cbf;
	--hs-accent-purple-ink: #fff;

	/*
	 * Package colours are reserved: anything tied to one package uses its colour, and anything
	 * about all packages uses none of them (orange is the neutral "all" accent).
	 */
	--hs-pkg-curriculum: var(--wp--preset--color--sky-500);
	--hs-pkg-assessment: var(--wp--preset--color--green-500);
	--hs-pkg-learning: var(--wp--preset--color--lemon-700);
	--hs-pkg-resources: var(--wp--preset--color--lilac-500);

	/* Accent cycle for the current background (see "Accents" below). */
	--hs-c1: var(--hs-accent-pink);
	--hs-c1-ink: var(--hs-accent-pink-ink);
	--hs-c2: var(--hs-accent-orange);
	--hs-c2-ink: var(--hs-accent-orange-ink);
	--hs-c3: var(--hs-accent-purple);
	--hs-c3-ink: var(--hs-accent-purple-ink);
	--hs-c4: var(--hs-accent-green);
	--hs-c4-ink: var(--hs-accent-green-ink);
	--hs-c5: var(--hs-accent-yellow);
	--hs-c5-ink: var(--hs-accent-yellow-ink);

	--hs-accent: var(--hs-c1);
	--hs-accent-ink: var(--hs-c1-ink);
}

@media (max-width: 768px) {
	:root {
		--hs-gutter: 16px;
		--hs-radius-xl: 40px;
		--hs-radius-lg: 32px;
		--hs-radius-md: 24px;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

/* ---------- Layout ---------- */

/* Outer frame: 1440 max with 24px gutter → 1392 content (design container). */
.hs-frame {
	width: 100%;
	max-width: var(--hs-max);
	margin-inline: auto;
	padding-inline: var(--hs-gutter);
	box-sizing: border-box;
}

.hs-section {
	padding-block: var(--hs-section-y);
}

/* Theme blocks and template parts butt up against each other; sections own their spacing. */
.wp-site-blocks > *,
[class*="wp-block-highscope-"].alignfull {
	margin-block: 0;
}

/* ---------- Tones (set by `hs-tone--{key}`) ---------- */

.hs-tone--sky {
	--tone-100: var(--wp--preset--color--sky-100);
	--tone-300: var(--wp--preset--color--sky-300);
	--tone-500: var(--wp--preset--color--sky-500);
	--tone-700: var(--wp--preset--color--sky-700);
	--tone-text: var(--wp--preset--color--sky-700); /* tone colour for text on white / cream */
	--tone-pkg: var(--hs-pkg-curriculum); /* the package colour this tone stands for */
}

.hs-tone--lilac {
	--tone-100: var(--wp--preset--color--lilac-100);
	--tone-300: #f5cdf9;
	--tone-500: var(--wp--preset--color--lilac-500);
	--tone-700: var(--wp--preset--color--lilac-700);
	--tone-text: var(--wp--preset--color--lilac-700);
	--tone-pkg: var(--hs-pkg-resources); /* the package colour this tone stands for */
}

.hs-tone--green {
	--tone-100: var(--wp--preset--color--green-100);
	--tone-300: var(--wp--preset--color--green-300);
	--tone-500: var(--wp--preset--color--green-500);
	--tone-700: var(--wp--preset--color--green-700);
	--tone-text: var(--wp--preset--color--green-700);
	--tone-pkg: var(--hs-pkg-assessment); /* the package colour this tone stands for */
}

.hs-tone--lemon {
	--tone-100: var(--wp--preset--color--lemon-100);
	--tone-300: var(--wp--preset--color--lemon-300);
	--tone-500: var(--wp--preset--color--lemon-500);
	--tone-700: var(--wp--preset--color--lemon-700);
	--tone-text: var(--wp--preset--color--lemon-900); /* lemon-700 is unreadable on white */
	--tone-pkg: var(--hs-pkg-learning); /* the package colour this tone stands for */
}

/* ---------- Accents ----------
 *
 * 1. A named accent: `hs-accent--{pink|orange|yellow|green|purple}` sets --hs-accent / --hs-accent-ink.
 * 2. Background context: `hs-on-{green|blue|yellow|lilac}` on a coloured panel reorders the cycle so
 *    the first pick is the colour-wheel opposite (green → pink, blue → orange/yellow,
 *    yellow/lilac → purple) and its own colour never comes up.
 * 3. Groups: children of `.hs-accents` (and every `.hs-buttons` row) take c1, c2, c3… in turn, so two
 *    neighbours never light up in the same colour.
 * Components only ever read var(--hs-accent) / var(--hs-accent-ink).
 */


.hs-on-green {
	--hs-c1: var(--hs-accent-pink);
	--hs-c1-ink: var(--hs-accent-pink-ink);
	--hs-c2: var(--hs-accent-purple);
	--hs-c2-ink: var(--hs-accent-purple-ink);
	--hs-c3: var(--hs-accent-orange);
	--hs-c3-ink: var(--hs-accent-orange-ink);
	--hs-c4: var(--hs-accent-yellow);
	--hs-c4-ink: var(--hs-accent-yellow-ink);
	--hs-c5: var(--hs-accent-pink);
	--hs-c5-ink: var(--hs-accent-pink-ink);
}

.hs-on-blue {
	--hs-c1: var(--hs-accent-orange);
	--hs-c1-ink: var(--hs-accent-orange-ink);
	--hs-c2: var(--hs-accent-yellow);
	--hs-c2-ink: var(--hs-accent-yellow-ink);
	--hs-c3: var(--hs-accent-pink);
	--hs-c3-ink: var(--hs-accent-pink-ink);
	--hs-c4: var(--hs-accent-purple);
	--hs-c4-ink: var(--hs-accent-purple-ink);
	--hs-c5: var(--hs-accent-orange);
	--hs-c5-ink: var(--hs-accent-orange-ink);
}

.hs-on-yellow,
.hs-on-lilac {
	--hs-c1: var(--hs-accent-purple);
	--hs-c1-ink: var(--hs-accent-purple-ink);
	--hs-c2: var(--hs-accent-pink);
	--hs-c2-ink: var(--hs-accent-pink-ink);
	--hs-c3: var(--hs-accent-orange);
	--hs-c3-ink: var(--hs-accent-orange-ink);
	--hs-c4: var(--hs-accent-green);
	--hs-c4-ink: var(--hs-accent-green-ink);
	--hs-c5: var(--hs-accent-purple);
	--hs-c5-ink: var(--hs-accent-purple-ink);
}

.hs-on-green,
.hs-on-blue,
.hs-on-yellow,
.hs-on-lilac {
	--hs-accent: var(--hs-c1);
	--hs-accent-ink: var(--hs-c1-ink);
}

:is(.hs-accents, .hs-buttons, .hs-products) > :nth-child(5n + 1) { --hs-accent: var(--hs-c1); --hs-accent-ink: var(--hs-c1-ink); }
:is(.hs-accents, .hs-buttons, .hs-products) > :nth-child(5n + 2) { --hs-accent: var(--hs-c2); --hs-accent-ink: var(--hs-c2-ink); }
:is(.hs-accents, .hs-buttons, .hs-products) > :nth-child(5n + 3) { --hs-accent: var(--hs-c3); --hs-accent-ink: var(--hs-c3-ink); }
:is(.hs-accents, .hs-buttons, .hs-products) > :nth-child(5n + 4) { --hs-accent: var(--hs-c4); --hs-accent-ink: var(--hs-c4-ink); }
:is(.hs-accents, .hs-buttons, .hs-products) > :nth-child(5n + 5) { --hs-accent: var(--hs-c5); --hs-accent-ink: var(--hs-c5-ink); }

/* Named accents win over the cycle and the background context. */
:root .hs-accent--pink { --hs-accent: var(--hs-accent-pink); --hs-accent-ink: var(--hs-accent-pink-ink); }
:root .hs-accent--orange { --hs-accent: var(--hs-accent-orange); --hs-accent-ink: var(--hs-accent-orange-ink); }
:root .hs-accent--yellow { --hs-accent: var(--hs-accent-yellow); --hs-accent-ink: var(--hs-accent-yellow-ink); }
:root .hs-accent--green { --hs-accent: var(--hs-accent-green); --hs-accent-ink: var(--hs-accent-green-ink); }
:root .hs-accent--purple { --hs-accent: var(--hs-accent-purple); --hs-accent-ink: var(--hs-accent-purple-ink); }

/* ---------- Typography atoms ---------- */

.hs-heading {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.14;
	color: var(--hs-navy);
	text-wrap: balance;
}

.hs-heading--xl {
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1.07;
}

.hs-eyebrow {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 500;
	font-size: 18px;
	line-height: 1.15;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hs-navy);
}

.hs-script {
	margin: 0;
	font-family: var(--hs-script);
	font-weight: 400;
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.2;
	color: var(--wp--preset--color--sky-700);
}

.hs-text {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
	color: var(--hs-navy);
}

.hs-text--lg {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
}

.hs-text > :first-child,
.hs-rich > :first-child { margin-top: 0; }
.hs-text > :last-child,
.hs-rich > :last-child { margin-bottom: 0; }

/* ---------- Hand-drawn doodles (highscope_draw()) ---------- */

.hs-draw {
	display: block;
	overflow: visible;
}

.hs-draw__ink {
	fill: var(--hs-ink, var(--hs-ink-art, currentColor));
}

.hs-draw__pen {
	fill: none;
	stroke: #fff;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/*
 * Underlined accent word in headings: wrap with <u> in the field. inc/accents.php swaps the <u> for
 * the Figma brush underline (drawn in by motion.css) and gives each one the next colour of the page's
 * rainbow; on a coloured panel the panel's opposite colour takes over (.hs-on-*).
 */
.hs-heading u {
	text-decoration: underline;
	text-decoration-color: var(--hs-accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.12em;
}

.hs-heading u.hs-u,
u.hs-u {
	position: relative;
	text-decoration: none;
}

.hs-u__line {
	position: absolute;
	left: -0.02em;
	bottom: -0.1em;
	width: calc(100% + 0.04em);
	height: 0.11em;
	--hs-ink: var(--hs-accent);
	pointer-events: none;
}

.hs-u--1 { --hs-accent: var(--hs-c1); }
.hs-u--2 { --hs-accent: var(--hs-c2); }
.hs-u--3 { --hs-accent: var(--hs-c3); }
.hs-u--4 { --hs-accent: var(--hs-c4); }
.hs-u--5 { --hs-accent: var(--hs-c5); }

/* On a coloured panel every underline takes the panel's opposite colour. */
:is(.hs-on-green, .hs-on-blue, .hs-on-yellow, .hs-on-lilac) u.hs-u { --hs-accent: var(--hs-c1); }

/* ---------- Buttons ---------- */

.hs-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.hs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 59px; /* Figma: 24px padding + cap-height label */
	padding: 0 32px;
	border: 2px solid var(--hs-navy);
	border-radius: var(--hs-radius-sm);
	font-family: var(--hs-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: capitalize;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Button whose destination isn't set yet (no href): looks the same, just not clickable. */
a.hs-btn:not([href]) {
	cursor: default;
}

.hs-btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--sky-500);
	outline-offset: 3px;
}

.hs-btn--primary {
	background: var(--hs-navy);
	color: #fff;
}

/* Hover: light blue fill with the navy label, as in the Figma prototype (F01b). */
.hs-btn--primary:hover,
.hs-btn--outline:hover,
.hs-btn--light:hover {
	background: var(--hs-btn-hover);
	border-color: var(--hs-btn-hover);
	color: var(--hs-btn-hover-fg, var(--hs-navy));
}

.hs-btn--outline {
	background: transparent;
	color: var(--hs-navy);
}

.hs-btn--light {
	background: #fff;
	border-color: #fff;
	color: var(--hs-navy);
}

/* Fill colour chosen in the editor (Button colour field): highscope_button_style() sets the vars inline. */
.hs-btn[style*="--hs-btn-bg"] {
	background: var(--hs-btn-bg);
	border-color: var(--hs-btn-bg);
	color: var(--hs-btn-fg);
}

.hs-btn[style*="--hs-btn-bg"]:hover {
	background: var(--hs-btn-hover);
	border-color: var(--hs-btn-hover);
	color: var(--hs-btn-hover-fg, var(--hs-navy));
}

/* File inputs (tax certificate, P.O. file, forms): the text-input box with an outline-button picker. */
input[type="file"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 56px;
	padding: 7px 18px 7px 7px;
	border: 1.5px solid var(--hs-rule, #e6e2d9);
	border-radius: 14px;
	background: #fff;
	color: var(--wp--preset--color--stone, #6b6b6b);
	font-family: var(--hs-sans);
	font-size: 15px;
	line-height: 40px;
	cursor: pointer;
}

input[type="file"]::file-selector-button {
	height: 40px;
	margin: 0 14px 0 0;
	padding: 0 18px;
	border: 2px solid var(--hs-navy);
	border-radius: 10px;
	background: transparent;
	color: var(--hs-navy);
	font-family: var(--hs-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

input[type="file"]:hover::file-selector-button {
	background: var(--hs-btn-hover);
	border-color: var(--hs-btn-hover);
}

input[type="file"]:focus-visible {
	border-color: var(--hs-navy);
	outline: 3px solid var(--wp--preset--color--sky-300);
	outline-offset: 0;
}

/* YouTube / Vimeo background video: a 16:9 iframe scaled to cover its layer (highscope_bg_embed()). */
.hs-bg-embed {
	overflow: hidden;
	pointer-events: none;
	container-type: size;
}

.hs-bg-embed iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100cqw, 177.78cqh);
	height: max(100cqh, 56.25cqw);
	border: 0;
	transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
	.hs-btn {
		min-height: 56px;
		padding-inline: 24px;
	}
}

/* Text link with arrow (e.g. "Working at a district? Talk to our team →"). */
.hs-link {
	font-weight: 500;
	color: var(--hs-navy);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hs-link:hover {
	text-decoration-thickness: 2px;
	text-decoration-color: var(--hs-accent);
}

/* Text link whose hover is the hand-drawn brush underline (Figma F03), drawn in left to right with a
   rounded leading edge, in the link's accent colour. */
.hs-brush-link {
	position: relative;
}

.hs-brush-link::after,
.hs-arrow-link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 6px;
	background: var(--hs-accent);
	-webkit-mask: url(../svg/underline.svg) 0 0 / 100% 100% no-repeat;
	mask: url(../svg/underline.svg) 0 0 / 100% 100% no-repeat;
	clip-path: inset(0 100% 0 0 round 3px);
	transition: clip-path 0.25s ease-in;
	pointer-events: none;
}

.hs-brush-link:hover::after,
.hs-brush-link:focus-visible::after,
.hs-arrow-link:hover::after,
.hs-arrow-link:focus-visible::after {
	clip-path: inset(0 0 0 0 round 3px);
	transition: clip-path 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Pills ---------- */

.hs-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--tone-500, var(--wp--preset--color--sky-500));
	color: var(--hs-navy);
	font-family: var(--hs-sans);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	white-space: nowrap;
}

/* ---------- Utilities ---------- */

.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.hs-block-placeholder {
	padding: 32px;
	border: 2px dashed var(--wp--preset--color--sky-300);
	border-radius: 16px;
	text-align: center;
	font-size: 14px;
	color: var(--hs-navy);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Empty state ----------
 * One centred line where a list has nothing to show ("No open roles right now. Check back soon.").
 * Same look as the events empty state (blocks/events-list). */

.hs-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 640px;
	margin-inline: auto;
	padding-block: clamp(24px, 4vw, 48px);
	text-align: center;
}

.hs-empty-state__text {
	margin: 0;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.2;
}

/* =====================================================================
 * Module redesign patterns (Figma "Page 3", docs/redesign/01-plan.md).
 * Shared by the redesigned blocks; each block only adds layout.
 * Tone-aware classes read --tone-* from the nearest `.hs-tone--{key}`.
 * ===================================================================== */

/* ---------- Script eyebrow ----------
 * Caveat label above a serif title ("Pick your role", dates, "2 open roles", years).
 * The base `.hs-script` is unchanged (research-stats, product-grid); the modifiers below are opt-in.
 * Size:  --sm 24 · --md 28 · --lg 32 · --xl 36 (all Caveat Bold) · --display 80 (Regular, years).
 * Colour: --tone (nearest .hs-tone--*), --sky | --lilac | --green | --lemon, --navy. */

.hs-script--sm,
.hs-script--md,
.hs-script--lg,
.hs-script--xl {
	font-weight: 700;
	line-height: 1.2;
}

.hs-script--sm { font-size: 24px; }
.hs-script--md { font-size: 28px; }
.hs-script--lg { font-size: clamp(28px, 2.4vw, 32px); }
.hs-script--xl { font-size: clamp(30px, 2.6vw, 36px); }

.hs-script--display {
	font-size: clamp(48px, 5.6vw, 80px);
	font-weight: 400;
	line-height: 1;
}

.hs-script--tone { color: var(--tone-text, var(--wp--preset--color--sky-700)); }
.hs-script--sky { color: var(--wp--preset--color--sky-700); }
.hs-script--lilac { color: var(--wp--preset--color--lilac-700); }
.hs-script--green { color: var(--wp--preset--color--green-700); }
.hs-script--lemon { color: var(--wp--preset--color--lemon-900); }
.hs-script--navy { color: var(--hs-navy); }

/* Small muted line next to a label ("4 trainings", "11 recordings", citations). */
.hs-meta {
	margin: 0;
	font-family: var(--hs-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--hs-stone);
}

.hs-meta--strong { font-weight: 500; }

/* ---------- Chips (static, non-interactive pills) ----------
 * Tag / meta / status pills: "Literacy", "{team}", "Full", "3 seats left".
 * Default cream fill. --white (on a cream row) · --outline (2px cream ring on white) ·
 * --tone (tone-100 fill) · --sm (status size, 13px semibold). */

.hs-chip {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--hs-cream);
	color: var(--hs-navy);
	font-family: var(--hs-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}

.hs-chip--white { background: #fff; }
.hs-chip--outline { padding: 8px 16px; border: 2px solid var(--hs-cream); background: transparent; }
.hs-chip--tone { background: var(--tone-100, var(--wp--preset--color--sky-100)); }

.hs-chip--sm {
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.hs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Filter tabs (template-parts/components/filter-tabs.php) ----------
 * Pill links. Filter mode: separate cream pills that wrap, selected = navy (aria-current).
 * Tabs mode (--segmented): pills inside one cream track, selected = navy (aria-selected).
 * Group label: tiny uppercase stone text (AGE / FORMAT / TOPIC); several groups sit in `.hs-filter-bar`.
 * Per-tab tone (People Directory): add `hs-filter-tabs__tab--tone hs-tone--{key}` to the tab (the
 * component does this from an item's `tone`): the selected pill fills with --tone-700.
 */

.hs-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 36px;
}

.hs-filter-bar__end {
	margin-left: auto;
}

.hs-filter-tabs__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.hs-filter-tabs__label {
	margin: 0 4px 0 0;
	font-family: var(--hs-sans);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hs-stone);
}

.hs-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-filter-tabs--segmented {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--hs-cream);
	max-width: 100%;
	box-sizing: border-box;
}

.hs-filter-tabs__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 41px; /* Figma chip: 10px + 21px line + 10px */
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--hs-cream);
	color: var(--hs-navy);
	font-family: var(--hs-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hs-filter-tabs__tab:hover {
	background: var(--hs-hairline);
}

.hs-filter-tabs__tab[aria-current="true"],
.hs-filter-tabs__tab[aria-selected="true"],
.hs-filter-tabs__tab[aria-pressed="true"],
.hs-filter-tabs__tab.is-active {
	background: var(--hs-navy);
	color: #fff;
}

/* Per-tab tone: selected pill takes the tab's own tone (Leadership sky, Staff green, Trainers lemon,
   Board lilac). White label as in Figma; lemon gets navy (white on lemon is unreadable). */
.hs-filter-tabs__tab--tone[aria-current="true"],
.hs-filter-tabs__tab--tone[aria-selected="true"],
.hs-filter-tabs__tab--tone[aria-pressed="true"],
.hs-filter-tabs__tab--tone.is-active {
	background: var(--tone-700);
	color: #fff;
}

.hs-filter-tabs__tab--tone.hs-tone--lemon:is([aria-current="true"], [aria-selected="true"], [aria-pressed="true"], .is-active) {
	color: var(--hs-navy);
}

.hs-filter-tabs__tab:focus-visible {
	outline: 2px solid var(--hs-navy);
	outline-offset: 3px;
}

/* Library (resource-library, not part of the redesign) keeps its earlier sky pills. */
.hs-resource-library .hs-filter-tabs__group { gap: 12px 16px; }
.hs-resource-library .hs-filter-tabs__label {
	min-width: 64px;
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.06em;
	color: var(--hs-navy);
}
.hs-resource-library .hs-filter-tabs__tab {
	min-height: 44px;
	padding: 10px 20px;
	background: var(--tone-100, var(--wp--preset--color--sky-100));
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}
.hs-resource-library .hs-filter-tabs__tab:hover { background: var(--tone-300, var(--wp--preset--color--sky-300)); }
.hs-resource-library .hs-filter-tabs__tab[aria-current="true"] { background: var(--hs-navy); color: #fff; }

/* Dropdown pill that sits with the filter pills ("Topic: All ⌄"). Use on a <select> or a <button>. */
.hs-pill-select {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 41px;
	padding: 9px 40px 9px 18px;
	border: 1.5px solid var(--hs-navy);
	border-radius: 999px;
	background: transparent url(../svg/chevron-down-hand.svg) right 14px center / 20px 20px no-repeat;
	color: var(--hs-navy);
	font-family: var(--hs-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.hs-pill-select:hover { background-color: var(--hs-cream); }

.hs-pill-select:focus-visible {
	outline: 2px solid var(--hs-navy);
	outline-offset: 3px;
}

/* ---------- Row list ----------
 * Rows instead of card grids (trio-list, document-list, job-list, research-studies, webinars,
 * training-calendar, state-picker "Other alignments").
 *   .hs-rows                 list (<ul role="list"> or <div>); rows split by 1px hairlines
 *   .hs-rows--dashed         2px dashed dividers in the row's tone (--tone-300; set hs-tone--* per row)
 *   .hs-rows--hover          cream highlight on hover / focus-within and on the current row
 *                            ([aria-current], .is-current); the highlighted row is rounded, no divider
 *   .hs-rows--hl-tone        highlight with the row's --tone-100 instead of cream (calendar)
 *   .hs-rows--flush          no side padding (research rows sit flush with the column)
 *   .hs-row                  one row: flex, 24px gap, 28px / 24px padding
 *   .hs-row__main            grows; .hs-row__end stays at the right
 *   .hs-row--aside           row with a script label column on the left (research year)
 *   .hs-row__aside           that column (357px in Figma; put a .hs-script--display in it)
 * Groups (by year / month):
 *   .hs-row-group            wrapper; .hs-row-group__head = script label + .hs-meta count
 *   .hs-row-group--aside     label in a left column beside the rows (document-list years)
 */

.hs-rows {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	box-sizing: border-box;
	padding: 28px 24px;
	border-bottom: 1px solid var(--hs-hairline);
	border-radius: 0;
	color: var(--hs-navy);
	transition: background-color 0.15s ease, border-radius 0.15s ease;
}

.hs-row__main {
	flex: 1 1 auto;
	min-width: 0;
}

.hs-row__end {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}

.hs-row__title {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.2;
	color: var(--hs-navy);
}

.hs-row__title--lg { font-size: clamp(28px, 3vw, 40px); }
.hs-row__title--sm { font-size: clamp(20px, 2vw, 26px); line-height: 1.25; }

.hs-rows--dashed > .hs-row {
	border-bottom: 2px dashed var(--tone-300, var(--wp--preset--color--sky-300));
}

.hs-rows--flush > .hs-row {
	padding-inline: 0;
}

.hs-rows--hover > .hs-row {
	--hs-row-hl: var(--hs-cream);
}

.hs-rows--hl-tone > .hs-row {
	--hs-row-hl: var(--tone-100, var(--wp--preset--color--sky-100));
}

.hs-rows--hover > .hs-row:hover,
.hs-rows--hover > .hs-row:focus-within,
.hs-rows > .hs-row[aria-current]:not([aria-current="false"]),
.hs-rows > .hs-row.is-current {
	background: var(--hs-row-hl, var(--hs-cream));
	border-bottom-color: transparent;
	border-radius: 24px;
}

/* Hide the divider above a highlighted row too, so the rounded panel floats clear. */
.hs-rows--hover > .hs-row:has(+ .hs-row:hover),
.hs-rows--hover > .hs-row:has(+ .hs-row:focus-within),
.hs-rows > .hs-row:has(+ .hs-row.is-current) {
	border-bottom-color: transparent;
}

/* Chips on a highlighted cream row turn white, as in the Job List hover state. */
.hs-rows--hover > .hs-row:is(:hover, :focus-within, .is-current) .hs-chip--outline {
	border-color: #fff;
	background: #fff;
}

.hs-row--aside {
	align-items: flex-start;
	gap: 56px;
	padding-block: 40px;
}

.hs-row__aside {
	flex: 0 0 min(357px, 30%);
	min-width: 0;
}

.hs-row-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hs-row-group + .hs-row-group {
	margin-top: 56px;
}

.hs-row-group__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	padding-inline: 24px;
}

.hs-row-group--aside {
	display: grid;
	grid-template-columns: minmax(0, min(357px, 30%)) minmax(0, 1fr);
	gap: 0 56px;
	align-items: start;
}

.hs-row-group--aside > .hs-row-group__head {
	padding: 28px 0 0;
}

@media (max-width: 768px) {
	.hs-row {
		flex-wrap: wrap;
		gap: 16px;
		padding: 20px 16px;
	}

	.hs-rows--flush > .hs-row { padding-inline: 0; }

	.hs-row__end {
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 12px;
	}

	.hs-row--aside {
		flex-direction: column;
		gap: 8px;
		padding-block: 28px;
	}

	.hs-row__aside { flex-basis: auto; }

	.hs-row-group__head { padding-inline: 16px; }

	.hs-row-group--aside {
		grid-template-columns: minmax(0, 1fr);
	}

	.hs-row-group--aside > .hs-row-group__head { padding: 0; }

	.hs-row-group + .hs-row-group { margin-top: 40px; }
}

/* ---------- Cream card with a tone media tile ----------
 * story-cards, partner-cards, people-directory, product-cards.
 *   .hs-card                cream card, 40px radius, 12px inset (the tile sits inside it)
 *   .hs-card__media         inset rounded tile, fills with --tone-500 (set hs-tone--* on the card);
 *                           holds a photo (<img> covers it), a logo or an icon (centred)
 *   .hs-card__media--photo  no tone fill behind a photo
 *   .hs-card__body          24px / 16px padding, 32px gap to the link
 *   .hs-card__title         serif 28; .hs-card__eyebrow = script role / date under or above it
 *   .hs-card--link          whole card clickable via .hs-card__title a (stretched link)
 * Grid: .hs-cards (3 columns, 12px gap; --2 for two columns), stacks on mobile.
 */

.hs-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.hs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.hs-cards,
	.hs-cards--2 { grid-template-columns: minmax(0, 1fr); }
}

.hs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
	padding: 12px;
	border-radius: var(--hs-radius-md);
	background: var(--hs-cream);
	color: var(--hs-navy);
}

.hs-card__media {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	aspect-ratio: 400 / 362;
	overflow: hidden;
	padding: 24px;
	box-sizing: border-box;
	border-radius: var(--hs-radius-md);
	background: var(--tone-500, var(--wp--preset--color--sky-500));
	text-align: center;
}

.hs-card__media--photo {
	padding: 0;
	background: var(--hs-hairline);
}

.hs-card__media--photo > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A logo inside the tile: centred, capped so wide and tall logos both fit. */
.hs-card__logo {
	display: block;
	max-width: 70%;
	max-height: 40%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.hs-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 24px 16px 12px;
}

.hs-card__body > .hs-arrow-link {
	margin-top: auto;
	padding-top: 16px; /* 16 + 16 gap = Figma's 32 between title and link */
}

.hs-card__title {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: clamp(24px, 2vw, 28px);
	line-height: 1.1;
	color: var(--hs-navy);
}

.hs-card__title a {
	color: inherit;
	text-decoration: none;
}

.hs-card--link .hs-card__title a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	z-index: 1;
}

.hs-card--link:has(.hs-card__title a:focus-visible) {
	outline: 2px solid var(--hs-navy);
	outline-offset: 3px;
}

.hs-card--link .hs-card__title a:focus-visible { outline: none; }

/* Initials fallback when a photo / logo is missing (person, partner). */
.hs-card__initials {
	font-family: var(--hs-serif);
	font-size: clamp(56px, 6vw, 96px);
	line-height: 1;
	color: var(--hs-navy);
}

/* ---------- Text link with an arrow ----------
 * "Read more →", "Download →", "Show all 12 →". Poppins 500 16, navy; hover draws the brush
 * underline (same as .hs-brush-link) and nudges the arrow. Markup: template-parts/components/arrow-link.php
 * or <a class="hs-arrow-link">Label <svg class="hs-arrow-link__icon">…arrow-right…</svg></a>.
 * --sm: 14px. On a <button>, it resets the button chrome. */

.hs-arrow-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--hs-navy);
	font-family: var(--hs-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.hs-arrow-link--sm { font-size: 14px; gap: 8px; }

.hs-arrow-link__icon {
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	transition: transform 0.2s ease;
}

.hs-arrow-link:hover .hs-arrow-link__icon,
.hs-arrow-link:focus-visible .hs-arrow-link__icon {
	transform: translateX(3px);
}

.hs-arrow-link:focus-visible {
	outline: 2px solid var(--hs-navy);
	outline-offset: 4px;
	border-radius: 4px;
}

/* Keep the stretched-link overlay of a card below the arrow link's own hit area. */
.hs-card .hs-arrow-link { z-index: 2; }

/* ---------- Round prev / next arrow buttons ----------
 * story-cards, audience-cards. 52px circle, 1.5px navy ring, hand-drawn 24px arrow.
 * Markup: template-parts/components/arrow-buttons.php, or
 * <div class="hs-arrow-btns"><button class="hs-arrow-btn hs-arrow-btn--prev" type="button" aria-label="Previous">
 *   <span class="hs-arrow-btn__icon" aria-hidden="true"></span></button>…--next…</div>
 * Disabled ([disabled] / aria-disabled="true") fades out. */

.hs-arrow-btns {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hs-arrow-btns[hidden] { display: none; }

.hs-arrow-btn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1.5px solid var(--hs-navy);
	border-radius: 999px;
	background: transparent;
	color: var(--hs-navy);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.hs-arrow-btn__icon {
	display: block;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url(../svg/arrow-right-hand.svg) center / 24px 24px no-repeat;
	mask: url(../svg/arrow-right-hand.svg) center / 24px 24px no-repeat;
}

.hs-arrow-btn--prev .hs-arrow-btn__icon {
	-webkit-mask-image: url(../svg/arrow-left-hand.svg);
	mask-image: url(../svg/arrow-left-hand.svg);
}

.hs-arrow-btn:hover:not([disabled], [aria-disabled="true"]) {
	background: var(--hs-btn-hover);
	border-color: var(--hs-btn-hover);
}

.hs-arrow-btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--sky-500);
	outline-offset: 3px;
}

.hs-arrow-btn[disabled],
.hs-arrow-btn[aria-disabled="true"] {
	opacity: 0.3;
	cursor: default;
}

/* ---------- Plus / minus toggle icon (accordions) ----------
 * <span class="hs-plus-minus" aria-hidden="true"></span> inside the toggle button; shows − when the
 * button (or an ancestor) has aria-expanded="true" or the <details> is open. */

.hs-plus-minus {
	display: block;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url(../svg/icon-plus.svg) center / 24px 24px no-repeat;
	mask: url(../svg/icon-plus.svg) center / 24px 24px no-repeat;
}

[aria-expanded="true"] .hs-plus-minus,
.hs-plus-minus[aria-expanded="true"],
details[open] > summary .hs-plus-minus {
	-webkit-mask-image: url(../svg/icon-minus.svg);
	mask-image: url(../svg/icon-minus.svg);
}
