/* Samaanta Foundation — supplementary styles. Tokens live in theme.json. */

.samaanta-skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	clip: auto;
	clip-path: none;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--brand-red-dark);
	border-radius: var(--wp--custom--radius--sm);
	box-shadow: var(--wp--preset--shadow--lifted);
	font-weight: 600;
	text-decoration: underline;
}

/* Constrain prose to a comfortable measure (brief 3.4: 65-75 chars). */
:where(.entry-content) > p {
	max-width: var(--wp--custom--measure);
}

/* Minimum touch target (WCAG 2.5.8). */
:where(.wp-block-button__link, .wp-block-navigation-item__content) {
	min-height: var(--wp--custom--touch-target);
	display: inline-flex;
	align-items: center;
}

/* One leading and one tracking per SIZE, not per element. h1-h4 take theirs
   from theme.json; anything that borrows a heading size without being a
   heading takes it from here. Before this, a pull quote, a card title and an
   h3 were all 26px at three different leadings. */
:root {
	--lh-display: 1;
	--lh-h1: 1.02;
	--lh-h2: 1.1;
	--lh-h3: 1.2;
	--lh-h4: 1.3;
	--lh-body: 1.65;
	/* Same leading as body: `small` is a running-text size, and splitting it
	   from body produced 14px text at 1.55 via the preset class and at 1.65 via
	   the raw token, which is exactly the drift these tokens exist to stop. */
	--lh-small: 1.65;
	--lh-label: 1.4;
	--ls-h3: -0.02em;
	--ls-h4: -0.012em;
	--ls-label: 0.12em;
}

/* Leading follows SIZE wherever the size comes from. An editor who sets a
   heading to the h4 size through the block sidebar gets `has-h-4-font-size`,
   which carries no leading — so the element kept its own, and an h2 at 20px
   sat at 1.1 beside an h4 at 20px sitting at 1.3. These pair the two. */
.has-display-font-size    { line-height: var(--lh-display); }
.has-h-1-font-size        { line-height: var(--lh-h1); }
.has-h-2-font-size        { line-height: var(--lh-h2); }
.has-h-3-font-size        { line-height: var(--lh-h3); }
.has-h-4-font-size        { line-height: var(--lh-h4); }
.has-body-large-font-size { line-height: var(--lh-body); }
.has-body-font-size       { line-height: var(--lh-body); }
.has-small-font-size      { line-height: var(--lh-small); }
.has-label-font-size      { line-height: var(--lh-label); }

/* One label. Form labels, filter labels and card labels were 18px/600,
   18px/400 and 14px/600 across the site. */
label,
.samaanta-field label,
.samaanta-filter__field label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: var(--lh-small);
	color: var(--wp--preset--color--ink-soft);
}

/* Native controls do not inherit type. Without this the slider dots and the
   video play button rendered in Arial 13.33px -- the browser default -- on a
   page otherwise set entirely in Inter.

   Longhands, not the `font` shorthand: `font: inherit` also resets weight and
   leading, so it silently undid the button rule that follows. */
button,
input,
select,
textarea,
optgroup {
	font-family: inherit;
	font-size: inherit;
	letter-spacing: inherit;
}

/* One button. The block button is an <a> and the slider controls are native
   <button>s, so they took their leading from three different places: 1.2 from
   theme.json, 1.65 inherited from body, and 1 from the browser. */
button,
.wp-block-button .wp-block-button__link,
.samaanta-btn,
.wp-element-button {
	font-weight: 600;
	line-height: var(--lh-h4);
}

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

/* ---------------------------------------------------------------
   Fellows archive filters
   Plain GET form: works without JS, produces shareable URLs.
   --------------------------------------------------------------- */

.samaanta-filter {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: var(--wp--preset--spacing--20);
	align-items: end;
	padding: var(--wp--preset--spacing--30);
	margin-block-end: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
}

.samaanta-filter__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	min-width: 0;
}

.samaanta-filter__field label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--ink-soft);
}

.samaanta-filter__field input,
.samaanta-filter__field select {
	width: 100%;
	min-height: var(--wp--custom--touch-target);
	padding: 0.5rem 0.75rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface);
	/* border-strong (3.06:1), not border — WCAG 1.4.11 non-text contrast. */
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--sm);
}

.samaanta-filter__field input:focus-visible,
.samaanta-filter__field select:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: 2px;
}

.samaanta-filter__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

.samaanta-filter__submit {
	min-height: var(--wp--custom--touch-target);
	padding: 0.5rem 1.5rem;
	font-weight: 600;
	line-height: var(--lh-h4);
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--brand-red-dark);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	cursor: pointer;
	transition: background var(--wp--custom--transition--fast);
}

.samaanta-filter__submit:hover {
	background: var(--wp--preset--color--brand-red-darker);
}

.samaanta-filter__submit:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

.samaanta-filter__reset {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	color: var(--wp--preset--color--brand-red-dark);
	font-size: var(--wp--preset--font-size--small);
}

.samaanta-filter__count {
	margin-block-end: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 600px) {
	.samaanta-filter {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------
   Header / footer chrome
   --------------------------------------------------------------- */

/* The bar stays with the reader.

   The position goes on the <header> template part, not on the bar inside it.
   A sticky element only travels inside its own parent's box, and the template
   part is exactly as tall as the bar -- so a sticky bar inside it had nowhere
   to go and scrolled away with its parent, which is what it had been doing.
   The part's parent is .wp-site-blocks, which is the whole page.

   Sticky rather than fixed, so the bar keeps its space in the flow and
   nothing below has to be pushed down to clear it. The front page is the
   exception, further down, because its hero starts underneath the bar. */
.wp-site-blocks > header:has(> .samaanta-header--sticky) {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* A shadow only once the page has moved. At rest the bar sits on the page
   with a hairline border like any other band; lifted off it the whole time it
   would read as a floating panel. */
.samaanta-header {
	transition: box-shadow var(--wp--custom--transition--base),
	            background-color var(--wp--custom--transition--base),
	            border-color var(--wp--custom--transition--base);
}
:root.is-scrolled .samaanta-header--sticky {
	box-shadow: 0 1px 16px rgba(14, 17, 19, 0.09);
}

@media (prefers-reduced-motion: reduce) {
	.samaanta-header { transition: none; }
}

.samaanta-header__actions {
	gap: var(--wp--preset--spacing--30);
}

/* Header layout: keep nav on one line, let it wrap to overlay below tablet. */
.samaanta-header__actions { flex-wrap: nowrap; }
.samaanta-header .wp-block-navigation { flex-wrap: nowrap; }
@media (max-width: 1100px) {
	.samaanta-header .wp-block-site-title { font-size: var(--wp--preset--font-size--body-large); }
	.samaanta-header__actions { gap: var(--wp--preset--spacing--20); }
}


/* Keep the donate CTA visible on mobile; the nav collapses behind the
   overlay toggle but the primary action should never be hidden. */
@media (max-width: 600px) {
	.samaanta-header__donate .wp-block-button__link {
		padding-inline: 1rem;
		font-size: var(--wp--preset--font-size--small);
	}
}

.samaanta-footer__list ul,
.samaanta-footer__list {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: 0.5rem;
}

.samaanta-footer a {
	text-decoration: none;
}

.samaanta-footer a:hover,
.samaanta-footer a:focus-visible {
	text-decoration: underline;
}

.samaanta-footer a:focus-visible {
	outline: 2px solid var(--wp--preset--color--surface);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Homepage
   --------------------------------------------------------------- */

/* Split hero — copy beside the photographs on a solid ground. Emitted by
   samaanta/hero-slider when Front Page CMS → Hero → Hero layout is "split".
   Text sits on surface-warm rather than over a photograph, so it needs no
   scrim: brand-red-dark on that ground measures 5.73:1, ink 15.05:1. */
/* One eyebrow. These were three sizes (12.48px, 14px) at two weights and two
   trackings, which read as three different devices rather than one. */
.samaanta-hero__eyebrow,
.samaanta-feature__eyebrow,
.samaanta-edhero__eyebrow,
.samaanta-hero-overlay .samaanta-hero-slide__eyebrow,
.samaanta-eyebrow {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: var(--lh-label);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
}
.samaanta-hero__eyebrow {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--brand-red-darker);
}
.samaanta-hero__title { max-width: 16ch; }
.samaanta-hero__accent { color: var(--wp--preset--color--brand-red-dark); }
.samaanta-hero__lede { max-width: 46ch; }
.samaanta-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 1.25rem 0 0;
	font-size: var(--wp--preset--font-size--small);
}
.samaanta-hero__link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: var(--wp--custom--touch-target);
	color: var(--wp--preset--color--brand-red-dark);
	font-weight: 600;
}

/* Impact figures are set editorially rather than boxed. Six bordered cards
   read as a dashboard; a rule above each figure and room to breathe reads as a
   published statement, which is what these numbers are. */
.samaanta-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	column-gap: var(--wp--preset--spacing--40);
	row-gap: 0;
	list-style: none;
	padding-left: 0;
	margin-block-start: var(--wp--preset--spacing--40);
}

.samaanta-metric {
	padding: 1.25rem 0 2.25rem;
	background: transparent;
	border: 0;
	border-top: 2px solid var(--wp--preset--color--brand-red-dark);
	border-radius: 0;
}

.samaanta-metric__value {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-1);
	font-weight: 600;
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--brand-red-dark);
	font-variant-numeric: lining-nums tabular-nums;
}

.samaanta-metric__prefix,
.samaanta-metric__suffix { font-size: 0.6em; }

.samaanta-metric__label {
	margin: 0.5rem 0 0;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.samaanta-metric__desc {
	margin: 0.25rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}

.samaanta-metric__period {
	margin: 0.6rem 0 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: var(--lh-label);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.samaanta-metric__empty {
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface-warm);
	border: 1px dashed var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--md);
	font-size: var(--wp--preset--font-size--small);
}

.samaanta-steps {
	counter-reset: step;
	list-style: none;
	padding-left: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--wp--preset--spacing--30);
	margin-block-start: var(--wp--preset--spacing--40);
}

.samaanta-steps li {
	counter-increment: step;
	position: relative;
	padding-top: 2.75rem;
}

.samaanta-steps li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--brand-red-dark);
	border-radius: var(--wp--custom--radius--pill);
}

/* ---------------------------------------------------------------
   Fellow profile
   --------------------------------------------------------------- */

.samaanta-profile__portrait img {
	width: 100%;
	object-fit: cover;
	box-shadow: var(--wp--preset--shadow--lifted);
}

/* Cohort chip — the term renders as a link, so style the anchor. */
.samaanta-chip a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--brand-red-dark);
	text-decoration: none;
	font-weight: 600;
}

.samaanta-chip a:hover { border-color: var(--wp--preset--color--brand-red-dark); }

.samaanta-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: var(--wp--preset--spacing--20);
	margin-block: var(--wp--preset--spacing--30) 0;
	padding-block-start: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--border);
}

.samaanta-facts__row dt {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.125rem;
}

.samaanta-facts__row dd {
	margin: 0;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.samaanta-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	list-style: none;
	padding-left: 0;
	margin-block-start: var(--wp--preset--spacing--30);
}

.samaanta-links a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	padding-inline: 1rem;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}

.samaanta-links a:hover {
	border-color: var(--wp--preset--color--brand-red-dark);
	background: var(--wp--preset--color--surface-warm);
}

.samaanta-quote {
	max-width: 34ch;
	margin-inline: auto;
	padding: 0;
	border: 0;
	text-align: center;
}

.samaanta-quote p {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--lh-h3);
	letter-spacing: var(--ls-h3);
	color: var(--wp--preset--color--ink);
	margin: 0;
}

.samaanta-quote p::before { content: "\201C"; }
.samaanta-quote p::after  { content: "\201D"; }

.samaanta-quote cite {
	display: block;
	margin-block-start: var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	color: var(--wp--preset--color--muted);
}

.samaanta-story__section + .samaanta-story__section {
	margin-block-start: var(--wp--preset--spacing--40);
}

.samaanta-story h2 {
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
	margin-block-end: 0.5rem;
}

.samaanta-story p { max-width: var(--wp--custom--measure); }

/* ---------------------------------------------------------------
   Fellow cards (archive grid)

   Spacing follows a deliberate rhythm rather than a single gap:
   image -> name is tight (0.875rem) because they are one unit;
   name -> meta is tighter still (0.25rem); the card's own padding
   is asymmetric (more at the bottom) so the text block sits
   optically centred rather than mathematically centred.
   --------------------------------------------------------------- */

.samaanta-fellow-grid {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
}

.samaanta-fellow-grid .wp-block-post {
	display: flex;
	flex-direction: column;
	padding: 0.5rem 0.5rem 1.25rem;
	border-radius: var(--wp--custom--radius--lg);
	background: transparent;
	transition: background var(--wp--custom--transition--base),
	            transform var(--wp--custom--transition--base),
	            box-shadow var(--wp--custom--transition--base);
}

.samaanta-fellow-grid .wp-block-post:hover {
	transform: translateY(-4px);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.samaanta-fellow-grid .wp-block-post-featured-image {
	margin: 0 0 0.875rem;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface-alt);
}

.samaanta-fellow-grid .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	object-fit: cover;
	transition: transform var(--wp--custom--transition--slow);
}

.samaanta-fellow-grid .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

/* Fellow without a portrait: a deliberate placeholder, not a collapsed card. */
.samaanta-fellow-grid .wp-block-post:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	display: block;
	aspect-ratio: 3 / 4;
	margin-bottom: 0.875rem;
	border-radius: var(--wp--custom--radius--md);
	background:
		radial-gradient(circle at 50% 38%, rgba(26,22,24,.06) 0 22%, transparent 23%),
		radial-gradient(circle at 50% 106%, rgba(26,22,24,.06) 0 34%, transparent 35%),
		var(--wp--preset--color--surface-warm);
}

.samaanta-fellow-grid .wp-block-post-title {
	margin: 0 0 0.25rem;
	line-height: var(--lh-h4);
}

.samaanta-fellow-grid .wp-block-post-title a {
	text-decoration: none;
	text-underline-offset: 3px;
}

.samaanta-fellow-grid .wp-block-post:hover .wp-block-post-title a {
	text-decoration: underline;
}

/* Cohort sits above the name as a small eyebrow. */
.samaanta-fellow-grid .wp-block-post-terms {
	margin: 0;
	line-height: var(--lh-label);
}

.samaanta-card__meta {
	margin-top: 0.125rem;
	gap: 0.375rem;
}

.samaanta-card__meta .wp-block-post-terms a {
	text-decoration: none;
	color: inherit;
}

.samaanta-card__meta .wp-block-post-terms a:hover {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.samaanta-fellow-grid .wp-block-post,
	.samaanta-fellow-grid .wp-block-post-featured-image img {
		transition: none;
	}
	.samaanta-fellow-grid .wp-block-post:hover { transform: none; }
	.samaanta-fellow-grid .wp-block-post:hover .wp-block-post-featured-image img { transform: none; }
}

/* ---------------------------------------------------------------
   ITEM 5 — Nepal-inspired motif

   A single geometric band derived from the stepped triangular forms
   found in Newari temple woodwork and Nepali textile borders.
   Deliberately used in ONLY three places site-wide (see
   docs/design-system.md): under the hero, above the donation CTA,
   and above the footer. Beyond that it stops being a signature and
   becomes decoration.
   --------------------------------------------------------------- */

.samaanta-motif {
	/* Core .wp-block-separator ships max-width + auto margins, which
	   collapsed this to a ~100px stub. Override all three. */
	width: 100%;
	max-width: none;
	height: 14px;
	border: 0;
	margin-inline: 0;
	margin-block: 0;
	background-color: var(--wp--preset--color--brand-red-dark);
	-webkit-mask-image: var(--samaanta-motif-mask);
	mask-image: var(--samaanta-motif-mask);
	-webkit-mask-size: 44px 14px;
	mask-size: 44px 14px;
	-webkit-mask-repeat: repeat-x;
	mask-repeat: repeat-x;
	opacity: 0.6;
}

:root {
	--samaanta-motif-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='14'%3E%3Cpath d='M4 13 L11 3 L18 13 Z' fill='%23000'/%3E%3Cpath d='M26 13 L33 3 L40 13 Z' fill='%23000' opacity='.45'/%3E%3C/svg%3E");
}

.samaanta-motif--light { opacity: 0.3; }

/* ---------------------------------------------------------------
   ITEM 3 — Editorial story feature

   Full-bleed image with an overlapping text card. This is the one
   section on the homepage that breaks the grid, which is what makes
   the page read as authored rather than assembled.
   --------------------------------------------------------------- */

.samaanta-feature { position: relative; }

/* Portrait beside the story, both on one baseline. */
.samaanta-feature__layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}
.samaanta-feature__media {
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
}
.samaanta-feature__media img {
	display: block;
	width: 100%;
	height: clamp(16rem, 32vw, 24rem);
	object-fit: cover;
}
.samaanta-feature__body > :first-child { margin-top: 0; }
.samaanta-feature__body > :last-child { margin-bottom: 0; }
.samaanta-feature__body p { max-width: 54ch; }

@media (max-width: 48rem) {
	.samaanta-feature__layout { grid-template-columns: minmax(0, 1fr); }
	.samaanta-feature__media img { height: clamp(13rem, 52vw, 18rem); }
}

.samaanta-feature__eyebrow {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--brand-red-dark);
}

.samaanta-feature__pullquote {
	margin: var(--wp--preset--spacing--30) 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--wp--preset--color--brand-red-dark);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--lh-h3);
	letter-spacing: var(--ls-h3);
	color: var(--wp--preset--color--ink);
}

@media (max-width: 600px) {
	.samaanta-feature__card {
		margin-top: -3rem;
		padding: var(--wp--preset--spacing--30);
	}
}

/* ---------------------------------------------------------------
   ITEM 4 — Section rhythm

   Sections previously all used the same padding, so every section
   read at identical volume. These modifiers vary density: quiet
   sections breathe, dense sections tighten, and the feature runs
   flush.
   --------------------------------------------------------------- */

.samaanta-section--tight  { padding-block: var(--wp--preset--spacing--50) !important; }
.samaanta-section--flush  { padding-block: 0 !important; }
.samaanta-section--airy   { padding-block: clamp(6rem, 12vw, 10rem) !important; }

/* Lede paragraph directly after a section heading reads larger. */
.samaanta-lede {
	max-width: 52ch;
	margin-inline-start: 0;
	margin-inline-end: auto;
	font-size: var(--wp--preset--font-size--body-large);
	color: var(--wp--preset--color--ink-soft);
}

/* ---------------------------------------------------------------
   Events
   --------------------------------------------------------------- */

.samaanta-event__status {
	display: inline-block;
	margin: 0 0 var(--wp--preset--spacing--20);
	padding: 0.25rem 0.75rem;
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.samaanta-event__status--upcoming {
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--success);
}

.samaanta-event__status--past {
	color: var(--wp--preset--color--ink-soft);
	background: var(--wp--preset--color--border);
}

.samaanta-event__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--30);
}

.samaanta-event__register {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	padding-inline: 1.75rem;
	background: var(--wp--preset--color--brand-red-dark);
	color: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--pill);
	font-weight: 600;
	text-decoration: none;
}

.samaanta-event__register:hover { background: var(--wp--preset--color--brand-red-darker); }

.samaanta-event__calendar {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.samaanta-event__closed {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.samaanta-event-row {
	gap: var(--wp--preset--spacing--30);
	align-items: flex-start;
	padding-block: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* ---------------------------------------------------------------
   Partners

   A wall of logos with the name repeated underneath, split into one
   section per partner type. With five partners across four types that
   was four headings, each with a single card in a row wide enough for
   six, and every partner's one-line description -- the only thing on
   the page that says what they actually do -- left unrendered.

   Each partner is now a card that carries its type, its name and that
   line. Grouping is a setting, off by default.
   --------------------------------------------------------------- */

.samaanta-partner-group + .samaanta-partner-group { margin-top: var(--wp--preset--spacing--50); }

.samaanta-partner-group__title {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: var(--lh-label);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.samaanta-partner-grid {
	--cols: 3;
	display: grid;
	grid-template-columns: repeat(
		auto-fill,
		minmax(max(min(18rem, 100%), calc((100% - (var(--cols) - 1) * var(--wp--preset--spacing--30)) / var(--cols))), 1fr)
	);
	gap: var(--wp--preset--spacing--30);
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.samaanta-partner {
	position: relative;
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr);
	align-items: start;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	transition: border-color var(--wp--custom--transition--fast),
	            box-shadow var(--wp--custom--transition--fast);
}
.samaanta-partner:hover {
	border-color: var(--wp--preset--color--border-strong);
	box-shadow: 0 2px 14px rgba(14, 17, 19, 0.06);
}

/* The frame takes the logo's shape rather than imposing one. Every logo here
   is wide -- around 2:1 -- and a square tile left a band of empty white above
   and below each of them, so the frame read as the subject and the logo as
   something lost inside it.

   The column fixes the width, which is what keeps a wall of logos aligned;
   the height simply follows the image. max-height is the one guard: an
   unusually tall logo is contained rather than allowed to tower over the
   name beside it, and overflow holds it, because max-height alone did not --
   one partner's image hung a clear 40px below its own card. */
.samaanta-partner__logo {
	display: block;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
}
.samaanta-partner__logo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 7rem;
	object-fit: contain;
}

/* An initial, not a grey slab: a partner without a logo still reads as that
   partner rather than as a missing image. It carries its own shape, since
   there is no image here for the frame to take one from. */
.samaanta-partner__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 3 / 2;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface-alt);
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 600;
	color: var(--wp--preset--color--border-strong);
}

.samaanta-partner__type {
	margin: 0 0 0.3rem;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: var(--lh-label);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-red-dark);
}

.samaanta-partner__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
}

/* One link, stretched over the card. A logo link plus a name link plus a
   website link is three stops in the tab order for one destination. */
.samaanta-partner__link {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.samaanta-partner__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wp--custom--radius--lg);
}
.samaanta-partner:hover .samaanta-partner__link { color: var(--wp--preset--color--brand-red-dark); }

/* The focus ring belongs on the card, not on the few pixels of the name. */
.samaanta-partner__link:focus-visible { outline: none; }
.samaanta-partner__link:focus-visible::after {
	outline: 3px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: 3px;
}

.samaanta-partner__out {
	display: inline-block;
	margin-inline-start: 0.3rem;
	color: var(--wp--preset--color--muted);
}

.samaanta-partner__role {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--lh-small);
	color: var(--wp--preset--color--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
	.samaanta-partner { transition: none; }
}

@media (max-width: 30rem) {
	.samaanta-partner { grid-template-columns: 5rem minmax(0, 1fr); }
}

/* ---------------------------------------------------------------
   Team
   --------------------------------------------------------------- */

/* :not([hidden]) on both sides, because the adjacent-sibling selector still
   matches a hidden element -- filter to the last group and the first visible
   one would inherit a 64px gap from a sibling nobody can see. */
.samaanta-team-group[hidden] { display: none; }
.samaanta-team-group:not([hidden]) + .samaanta-team-group:not([hidden]) {
	margin-top: var(--wp--preset--spacing--50);
}


/* ---------------------------------------------------------------
   Tabs

   Links, not buttons: each carries ?group=<slug>, so the filter works
   with scripting off, a filtered view can be linked to, and the back
   button does what it should. The script only saves the round trip.
   --------------------------------------------------------------- */

/* No rule under the bar, and the underline belongs to the tab rather than
   sitting on a shared line. The number of groups is whatever the taxonomy
   says, so the row wraps at some width no matter what breakpoint is chosen --
   and a shared line put the active tab's underline on the first row with the
   rule under the second, floating in the middle of the list. */
.samaanta-tabs {
	margin-block-end: var(--wp--preset--spacing--40);
}
.samaanta-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}
.samaanta-tabs__item { min-width: 0; }

.samaanta-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: var(--wp--custom--touch-target);
	padding-block: 0.6rem;
	border-block-end: 2px solid transparent;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
	line-height: var(--lh-h4);
	color: var(--wp--preset--color--ink-soft);
	text-decoration: none;
	transition: color var(--wp--custom--transition--fast),
	            border-color var(--wp--custom--transition--fast);
}
.samaanta-tabs__tab:hover {
	color: var(--wp--preset--color--ink);
	border-block-end-color: var(--wp--preset--color--border-strong);
}
.samaanta-tabs__tab[aria-current] {
	color: var(--wp--preset--color--ink);
	border-block-end-color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-tabs__tab:focus-visible {
	outline: 3px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: -3px;
}

/* The count is a fact about the tab, not part of its name, so it is set
   apart from the label rather than run into it. */
.samaanta-tabs__count {
	padding-inline: 0.45rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface-alt);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--ink-soft);
}
.samaanta-tabs__tab[aria-current] .samaanta-tabs__count {
	background: var(--wp--preset--color--brand-red-dark);
	color: var(--wp--preset--color--surface);
}

@media (prefers-reduced-motion: reduce) {
	.samaanta-tabs__tab { transition: none; }
}

.samaanta-team-group h2 {
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
	margin-bottom: var(--wp--preset--spacing--30);
}

.samaanta-person-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.samaanta-person__photo img,
.samaanta-person__photo--empty {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface-warm);
	display: block;
}

.samaanta-person__name {
	margin: 0.75rem 0 0.125rem;
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
}

.samaanta-person__role {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--brand-red-dark);
	font-weight: 600;
}

.samaanta-person__bio {
	margin: 0.375rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}

/* Previous / next between fellow profiles.

   `--next` takes `margin-inline-start: auto` rather than the container using
   space-between, so the next link stays on the right even when there is no
   previous one — at the first fellow in a cohort the remaining link must not
   slide across to where the other one was. */
.samaanta-fellow-nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--30);
}
.samaanta-fellow-nav__link {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	max-width: 20rem;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}
.samaanta-fellow-nav__link--next {
	margin-inline-start: auto;
	text-align: right;
}
.samaanta-fellow-nav__dir {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.samaanta-fellow-nav__link--prev .samaanta-fellow-nav__dir::before { content: "\2190\00a0"; }
.samaanta-fellow-nav__link--next .samaanta-fellow-nav__dir::after  { content: "\00a0\2192"; }
.samaanta-fellow-nav__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
}
.samaanta-fellow-nav__link:hover .samaanta-fellow-nav__name { color: var(--wp--preset--color--brand-red-dark); }
.samaanta-fellow-nav__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: 4px;
	border-radius: 4px;
}
@media (max-width: 30rem) {
	.samaanta-fellow-nav__link,
	.samaanta-fellow-nav__link--next { margin-inline-start: 0; text-align: left; max-width: 100%; }
}

/* Cohort index on the fellows landing page. Same stretched-link pattern as the
   team cards: the heading is the anchor so its accessible name is just the
   cohort, and ::after makes the whole card clickable. */
.samaanta-cohort-grid__title {
	margin: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--lh-h3);
}
.samaanta-cohort-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: var(--wp--preset--spacing--30);
	list-style: none;
	padding-left: 0;
	margin: 0;
}
.samaanta-cohort-card {
	position: relative;
	margin: 0;
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface-warm);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	transition: transform var(--wp--custom--transition--base), box-shadow var(--wp--custom--transition--base);
}
.samaanta-cohort-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lifted);
}
.samaanta-cohort-card__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
}
.samaanta-cohort-card__link {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.samaanta-cohort-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wp--custom--radius--lg);
}
.samaanta-cohort-card:hover .samaanta-cohort-card__name { color: var(--wp--preset--color--brand-red-dark); }
.samaanta-cohort-card__link:focus-visible { outline: none; }
.samaanta-cohort-card__link:focus-visible::after {
	outline: 3px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: 3px;
}
.samaanta-cohort-card__meta {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
@media (prefers-reduced-motion: reduce) {
	.samaanta-cohort-card { transition: none; }
	.samaanta-cohort-card:hover { transform: none; }
}

/* Blog byline. Replaces core's post-author-name, because the WordPress account
   that publishes a post is often staff posting on a fellow's behalf. */
.samaanta-byline {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.samaanta-byline__link {
	color: var(--wp--preset--color--brand-red-dark);
	font-weight: 600;
}

/* Team member cards that lead to a bio page.

   The anchor wraps only the name, so a screen reader announces the person's
   name as the link — not the name plus role plus the whole bio excerpt, which
   is what wrapping the entire card would produce. `::after` then stretches that
   anchor over the card so the pointer target is still the full card. */
.samaanta-person--linked { position: relative; }

.samaanta-person__link {
	color: inherit;
	text-decoration: none;
}
.samaanta-person__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wp--custom--radius--lg);
}
.samaanta-person--linked:hover .samaanta-person__name { color: var(--wp--preset--color--brand-red-dark); }
.samaanta-person--linked:hover .samaanta-person__photo img { opacity: .92; }

/* The focus ring belongs on the card, not on the few pixels of the name. */
.samaanta-person__link:focus-visible { outline: none; }
.samaanta-person__link:focus-visible::after {
	outline: 3px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: 4px;
}

.samaanta-person__photo img { transition: opacity var(--wp--custom--transition--fast); }
@media (prefers-reduced-motion: reduce) {
	.samaanta-person__photo img { transition: none; }
}

/* ---------------------------------------------------------------
   Publications
   --------------------------------------------------------------- */

.samaanta-pub-grid {
	display: grid;
	/* min() with 100%, not a bare 22rem: a 352px minimum track cannot fit a
	   320px viewport, and the grid pushed the page 48px wide. */
	grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr));
	gap: var(--wp--preset--spacing--30);
	list-style: none;
	padding-left: 0;
	margin: var(--wp--preset--spacing--40) 0 0;
}

/* The card is a grid, not a flex row. As a flex row the cover stretched to the
   card's full height -- an 88x300 sliver of a report cover -- because a flex
   item's default alignment is stretch and an explicit height beats the
   aspect-ratio. A grid track with `align-items: start` keeps the cover the
   shape a cover actually is. */
.samaanta-pub {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	align-items: start;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	transition: border-color var(--wp--custom--transition--fast),
	            box-shadow var(--wp--custom--transition--fast);
}
.samaanta-pub:has(.samaanta-pub__title a:hover),
.samaanta-pub:has(.samaanta-pub__title a:focus-visible) {
	border-color: var(--wp--preset--color--border-strong);
	box-shadow: 0 2px 14px rgba(14, 17, 19, 0.06);
}
.samaanta-pub:not(:has(.samaanta-pub__cover)) {
	grid-template-columns: minmax(0, 1fr);
}

.samaanta-pub__cover {
	display: block;
	border-radius: var(--wp--custom--radius--sm);
	overflow: hidden;
	/* A report cover is a photograph of a printed object. A hairline keeps a
	   pale cover from bleeding into the card behind it. */
	box-shadow: 0 1px 6px rgba(14, 17, 19, 0.12);
}
.samaanta-pub__cover img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* The body is a column so the download button can be pushed to the foot and
   the buttons line up across a row of cards of different lengths. */
.samaanta-pub__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 100%;
}

.samaanta-pub__type {
	margin: 0 0 0.4rem;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: var(--lh-label);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-red-dark);
}

.samaanta-pub__title {
	margin: 0 0 0.3rem;
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
}
.samaanta-pub__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.samaanta-pub__title a:hover { color: var(--wp--preset--color--brand-red-dark); }

.samaanta-pub__meta {
	margin: 0 0 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.samaanta-pub__excerpt {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--lh-small);
	color: var(--wp--preset--color--ink-soft);
}

/* A download is an action, so it looks like one. It was a bare link with the
   file size run into the end of the words. */
.samaanta-pub__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-block-start: auto;
	min-height: var(--wp--custom--touch-target);
	padding-inline: 0.9rem;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: background-color var(--wp--custom--transition--fast),
	            border-color var(--wp--custom--transition--fast),
	            color var(--wp--custom--transition--fast);
}
.samaanta-pub__link:hover {
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--brand-red-dark);
	border-color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-pub__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: 2px;
}
.samaanta-pub__linkText::before {
	content: "\2193";
	margin-inline-end: 0.4rem;
}

/* The size is information about the file, not part of the label, so it sits
   apart from it rather than running into the closing bracket of the words. */
.samaanta-pub__size {
	padding-inline-start: 0.55rem;
	border-inline-start: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}
.samaanta-pub__link:hover .samaanta-pub__size {
	color: var(--wp--preset--color--surface);
	border-inline-start-color: rgba(255, 255, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
	.samaanta-pub,
	.samaanta-pub__link { transition: none; }
}

@media (max-width: 30rem) {
	.samaanta-pub { grid-template-columns: 4.5rem minmax(0, 1fr); }
}

/* ---------------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------------- */
.samaanta-breadcrumbs { margin-block-end: var(--wp--preset--spacing--30); }
.samaanta-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.samaanta-breadcrumbs li + li::before { content: "/"; margin-inline-end: 0.5rem; color: var(--wp--preset--color--border-strong); }
.samaanta-breadcrumbs a { color: var(--wp--preset--color--brand-red-dark); text-decoration: none; }
.samaanta-breadcrumbs a:hover { text-decoration: underline; }
.samaanta-breadcrumbs [aria-current="page"] { color: var(--wp--preset--color--ink-soft); }

/* ---------------------------------------------------------------
   Forms
   --------------------------------------------------------------- */
.samaanta-form-wrap { max-width: 40rem; }
.samaanta-form { display: grid; gap: var(--wp--preset--spacing--30); }
.samaanta-field { display: grid; gap: 0.375rem; }
.samaanta-field label { font-weight: 600; color: var(--wp--preset--color--ink-soft); }
.samaanta-req { color: var(--wp--preset--color--brand-red-dark); }

.samaanta-field input,
.samaanta-field textarea,
.samaanta-field select {
	/* border-box, or `width: 100%` plus padding and a border makes the field
	   2px wider than its column and the whole page scrolls sideways at 320px
	   (WCAG 1.4.10). The theme has no global border-box to rely on. */
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	min-height: var(--wp--custom--touch-target);
	padding: 0.625rem 0.75rem;
	font: inherit;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--sm);
}
.samaanta-field textarea { min-height: 8rem; resize: vertical; }

.samaanta-field input:focus-visible,
.samaanta-field textarea:focus-visible,
.samaanta-field select:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: 2px;
}

.samaanta-field.has-error input,
.samaanta-field.has-error textarea,
.samaanta-field.has-error select { border-color: var(--wp--preset--color--error); }

.samaanta-field-error { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--error); }

.samaanta-check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
.samaanta-check input { width: auto; min-height: auto; margin-top: 0.25rem; }

.samaanta-form__submit {
	justify-self: start;
	min-height: var(--wp--custom--touch-target);
	padding: 0.75rem 2rem;
	font-weight: 600;
	line-height: var(--lh-h4);
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--brand-red-dark);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	cursor: pointer;
	transition: background var(--wp--custom--transition--fast);
}
.samaanta-form__submit:hover { background: var(--wp--preset--color--brand-red-darker); }
.samaanta-form__submit:focus-visible { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 2px; }

/* Honeypot: hidden from humans, present for bots. */
.samaanta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.samaanta-form-errors {
	padding: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface-warm);
	border: 1px solid var(--wp--preset--color--error);
	border-radius: var(--wp--custom--radius--md);
}
.samaanta-form-errors ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.samaanta-form-errors a { color: var(--wp--preset--color--error); }

.samaanta-form-success {
	padding: var(--wp--preset--spacing--40);
	background: color-mix(in srgb, var(--wp--preset--color--success) 10%, white);
	border: 1px solid var(--wp--preset--color--success);
	border-radius: var(--wp--custom--radius--md);
}
.samaanta-form-success p { margin: 0; color: var(--wp--preset--color--success); font-weight: 600; }

/* ---------------------------------------------------------------
   Donation panel
   --------------------------------------------------------------- */
.samaanta-donate { display: grid; gap: var(--wp--preset--spacing--30); max-width: 44rem; }
.samaanta-donate__card {
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
}
.samaanta-donate__card h2 { margin-top: 0; font-size: var(--wp--preset--font-size--h-4); line-height: var(--lh-h4); }
.samaanta-donate__amounts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--wp--preset--spacing--30); }
.samaanta-donate__amount {
	display: inline-flex; align-items: center; min-height: var(--wp--custom--touch-target);
	padding-inline: 1.25rem; font-weight: 600; text-decoration: none;
	color: var(--wp--preset--color--brand-red-dark);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--pill);
}
.samaanta-donate__amount:hover { border-color: var(--wp--preset--color--brand-red-dark); background: var(--wp--preset--color--surface-warm); }
.samaanta-donate__cta, .samaanta-donate__wallet {
	display: inline-flex; align-items: center; min-height: var(--wp--custom--touch-target);
	padding-inline: 1.75rem; font-weight: 600; text-decoration: none;
	color: var(--wp--preset--color--surface); background: var(--wp--preset--color--brand-red-dark);
	border-radius: var(--wp--custom--radius--pill);
}
.samaanta-donate__cta:hover, .samaanta-donate__wallet:hover { background: var(--wp--preset--color--brand-red-darker); }
.samaanta-donate__wallets { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.samaanta-donate__wallet { background: var(--wp--preset--color--teal); }
.samaanta-donate__bank pre {
	white-space: pre-wrap; font-family: var(--wp--preset--font-family--body);
	background: var(--wp--preset--color--surface-alt); padding: var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--md); margin: 0;
}

/* Donation additions: test badge, paypal, secure note, QR */
.samaanta-donate__test {
	display:inline-block; margin-left:.5rem; padding:1px 8px; font-size:var(--wp--preset--font-size--label); font-weight:700;
	text-transform:uppercase; letter-spacing:.03em; color:var(--wp--preset--color--surface);
	background:var(--wp--preset--color--warning); border-radius:var(--wp--custom--radius--pill);
}
.samaanta-donate__wallet--paypal { background:#003087; }
.samaanta-donate__wallet--paypal:hover { background:#001f5c; }
.samaanta-donate__cta, .samaanta-donate__wallet { margin-top:.25rem; }
.samaanta-donate__secure {
	font-size:var(--wp--preset--font-size--small); color:var(--wp--preset--color--muted);
	display:flex; gap:.5rem; align-items:center;
}
.samaanta-donate__secure::before { content:"\1F512"; }
.samaanta-donate__qr { margin:0; text-align:center; }
.samaanta-donate__qr img { width:180px; height:180px; object-fit:contain; border:1px solid var(--wp--preset--color--border); border-radius:var(--wp--custom--radius--md); padding:.5rem; background:#fff; }
.samaanta-donate__qr figcaption { font-size:var(--wp--preset--font-size--small); color:var(--wp--preset--color--muted); margin-top:.5rem; }

/* Donation: eSewa/number detail + transparency notes */
.samaanta-donate__detail { display:flex; flex-direction:column; gap:.1rem; padding:.5rem 0; }
.samaanta-donate__detail-label { font-size:var(--wp--preset--font-size--small); color:var(--wp--preset--color--muted); }
.samaanta-donate__detail-value { font-size:var(--wp--preset--font-size--h-4); line-height: var(--lh-h4); color:var(--wp--preset--color--ink); }
.samaanta-donate__detail-sub { font-size:var(--wp--preset--font-size--small); color:var(--wp--preset--color--ink-soft); }
.samaanta-donate__note { font-size:var(--wp--preset--font-size--small); color:var(--wp--preset--color--ink-soft); margin:.25rem 0; }

/* ---------------------------------------------------------------
   Content components: values, timeline, stat-cite, press band
   --------------------------------------------------------------- */

/* Values grid */
.samaanta-values { display:grid; grid-template-columns:repeat(auto-fit,minmax(15rem,1fr)); gap:var(--wp--preset--spacing--30); list-style:none; padding-left:0; margin:var(--wp--preset--spacing--40) 0 0; }
.samaanta-value { padding:var(--wp--preset--spacing--40); background:var(--wp--preset--color--surface); border:1px solid var(--wp--preset--color--border); border-radius:var(--wp--custom--radius--lg); }
.samaanta-value__num { font-family:var(--wp--preset--font-family--display); font-size:var(--wp--preset--font-size--h-3); color:var(--wp--preset--color--brand-red-dark); line-height:1; }
.samaanta-value h3 { margin:.5rem 0 .5rem; font-size:var(--wp--preset--font-size--h-4); line-height: var(--lh-h4); }
.samaanta-value p { margin:0; color:var(--wp--preset--color--ink-soft); }

/* Timeline (Our Story) */
.samaanta-timeline { list-style:none; padding-left:0; margin:var(--wp--preset--spacing--40) 0 0; position:relative; }
.samaanta-timeline::before { content:""; position:absolute; left:9px; top:6px; bottom:6px; width:2px; background:var(--wp--preset--color--border); }
.samaanta-timeline li { position:relative; padding:0 0 var(--wp--preset--spacing--40) var(--wp--preset--spacing--40); }
.samaanta-timeline li::before { content:""; position:absolute; left:0; top:6px; width:20px; height:20px; border-radius:50%; background:var(--wp--preset--color--brand-red-dark); border:4px solid var(--wp--preset--color--surface); box-shadow:0 0 0 1px var(--wp--preset--color--border); }
.samaanta-timeline .year { font-family:var(--wp--preset--font-family--display); font-weight:600; color:var(--wp--preset--color--brand-red-dark); }
.samaanta-timeline h3 { margin:.1rem 0 .35rem; font-size:var(--wp--preset--font-size--h-4); line-height: var(--lh-h4); }
.samaanta-timeline p { margin:0; color:var(--wp--preset--color--ink-soft); max-width:var(--wp--custom--measure); }

/* Stat with citation (Higher Education page) */
.samaanta-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(14rem,1fr)); gap:var(--wp--preset--spacing--30); list-style:none; padding-left:0; margin:var(--wp--preset--spacing--40) 0; }
.samaanta-stat { padding:var(--wp--preset--spacing--40); background:var(--wp--preset--color--surface-alt); border-radius:var(--wp--custom--radius--lg); }
.samaanta-stat__value { font-family:var(--wp--preset--font-family--display); font-size:var(--wp--preset--font-size--h-1); line-height:1; color:var(--wp--preset--color--brand-red-dark); }
.samaanta-stat__label { margin:.5rem 0 .25rem; font-weight:600; }
.samaanta-stat__cite { font-size:var(--wp--preset--font-size--small); color:var(--wp--preset--color--muted); }

/* Press band ("As featured in") */
.samaanta-press { text-align:center; }
.samaanta-press__label { font-size:var(--wp--preset--font-size--small); font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--wp--preset--color--muted); }
.samaanta-press__items { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:var(--wp--preset--spacing--40); margin-top:var(--wp--preset--spacing--30); }
.samaanta-press__item { font-family:var(--wp--preset--font-family--display); font-size:var(--wp--preset--font-size--h-4); line-height: var(--lh-h4); color:var(--wp--preset--color--ink-soft); }

/* Editorial hero strip for the three-word brand line */
.samaanta-triad { display:flex; flex-wrap:wrap; gap:1.5rem; }
.samaanta-triad span { font-family:var(--wp--preset--font-family--display); font-weight:600; font-size:var(--wp--preset--font-size--h-2); line-height: var(--lh-h2); }
.samaanta-triad span:nth-child(1){ color:var(--wp--preset--color--brand-red-dark); }
.samaanta-triad span:nth-child(2){ color:var(--wp--preset--color--teal); }
.samaanta-triad span:nth-child(3){ color:var(--wp--preset--color--amber); }

/* ---------------------------------------------------------------
   Navigation — dropdowns styled to the brand system
   --------------------------------------------------------------- */

/* Top-level items */
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content,
.samaanta-header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	text-decoration: none;
	padding: 0.4rem 0.15rem;
	transition: color var(--wp--custom--transition--fast);
}

/* Top-level hover / focus → brand red with an animated underline */
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item {
	position: relative;
}
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0.15rem; right: 0.15rem; bottom: -2px;
	height: 2px;
	background: var(--wp--preset--color--brand-red-dark);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--wp--custom--transition--base);
}
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Current page — brand red + persistent underline */
.samaanta-header .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--brand-red-dark);
	font-weight: 600;
}
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"]::after {
	transform: scaleX(1);
}

/* Dropdown panel */
.samaanta-header .wp-block-navigation__submenu-container {
	min-width: 15rem;
	padding: 0.5rem;
	margin-top: 0.5rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--lifted);
	/* gentle reveal */
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--wp--custom--transition--base), transform var(--wp--custom--transition--base);
}
.samaanta-header .wp-block-navigation-item:hover > .wp-block-navigation__submenu-container,
.samaanta-header .wp-block-navigation-item:focus-within > .wp-block-navigation__submenu-container,
.samaanta-header .wp-block-navigation__submenu-container:not([aria-hidden="true"]) {
	opacity: 1;
	transform: translateY(0);
}

/* small pointer notch */
.samaanta-header .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	top: -5px; left: 1.25rem;
	width: 10px; height: 10px;
	background: var(--wp--preset--color--surface);
	border-left: 1px solid var(--wp--preset--color--border);
	border-top: 1px solid var(--wp--preset--color--border);
	transform: rotate(45deg);
}

/* Dropdown items */
.samaanta-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: 0.6rem 0.85rem;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--ink-soft);
	font-weight: 500;
	white-space: nowrap;
	transition: background var(--wp--custom--transition--fast), color var(--wp--custom--transition--fast);
}
.samaanta-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { content: none; }
.samaanta-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.samaanta-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background: var(--wp--preset--color--surface-warm);
	color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"] {
	background: var(--wp--preset--color--surface-warm);
	color: var(--wp--preset--color--brand-red-dark);
	font-weight: 600;
}

/* caret alignment + colour on hover */
.samaanta-header .wp-block-navigation-submenu__toggle svg { transition: transform var(--wp--custom--transition--fast); }
.samaanta-header .wp-block-navigation-item:hover .wp-block-navigation-submenu__toggle svg { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
	.samaanta-header .wp-block-navigation__submenu-container,
	.samaanta-header .wp-block-navigation-item__content::after,
	.samaanta-header .wp-block-navigation-submenu__toggle svg { transition: none; }
}

/* Tighten submenu vertical rhythm (core adds flex gap) */
.samaanta-header .wp-block-navigation__submenu-container { gap: 0.1rem; }
.samaanta-header .wp-block-navigation__submenu-container .wp-block-navigation-item { margin: 0; }

/* ---------------------------------------------------------------
   Fellow-stories slider (accessible carousel)
   No-JS fallback: slides stack and are all visible.
   --------------------------------------------------------------- */
.samaanta-slider { position: relative; }
.samaanta-slider__track { list-style: none; margin: 0; padding: 0; }

/* Enhanced (JS on): horizontal track, one slide visible */
.samaanta-slider.is-enhanced { overflow: hidden; border-radius: var(--wp--custom--radius--xl); }
.samaanta-slider.is-enhanced .samaanta-slider__track {
	display: flex;
	transition: transform var(--wp--custom--transition--slow);
}
.samaanta-slider.is-enhanced .samaanta-slide {
	flex: 0 0 100%;
	min-width: 100%;
}

.samaanta-slide {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	background: var(--wp--preset--color--surface-warm);
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
}
.samaanta-slider.is-enhanced .samaanta-slide { border-radius: 0; }

/* No-JS: space stacked slides */
.samaanta-slider:not(.is-enhanced) .samaanta-slide + .samaanta-slide { margin-top: var(--wp--preset--spacing--30); }

.samaanta-slide__media { min-height: 22rem; }
.samaanta-slide__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.samaanta-slide__img--empty { background:
	radial-gradient(circle at 50% 40%, rgba(26,22,24,.06) 0 22%, transparent 23%),
	var(--wp--preset--color--surface-alt); min-height: 22rem; }

.samaanta-slide__body {
	padding: var(--wp--preset--spacing--50);
	display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
}
.samaanta-slide__cohort { font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--wp--preset--color--brand-red-dark); }
.samaanta-slide__quote { margin: 0; padding: 0; border: 0; }
.samaanta-slide__quote p {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--lh-h3);
	letter-spacing: var(--ls-h3);
	color: var(--wp--preset--color--ink);
}
.samaanta-slide__quote p::before { content: "\201C"; }
.samaanta-slide__quote p::after { content: "\201D"; }
.samaanta-slide__name { margin: 0.25rem 0 0; font-size: var(--wp--preset--font-size--h-4); line-height: var(--lh-h4); }
.samaanta-slide__link {
	align-self: start; margin-top: 0.5rem;
	font-weight: 600; color: var(--wp--preset--color--brand-red-dark);
}

/* ---------------------------------------------------------------
   Shared slider controls: prev / dot rail / next / counter / pause
   --------------------------------------------------------------- */
.samaanta-slider__controls {
	display: flex; align-items: center; justify-content: center;
	margin-top: var(--wp--preset--spacing--30);
}
.samaanta-slider:not(.is-enhanced) .samaanta-slider__controls { display: none; }

.samaanta-slider__rail {
	display: flex; align-items: center; gap: 0.15rem;
	max-width: 100%; flex-wrap: nowrap;
}
.samaanta-slider__btn {
	flex: 0 0 auto;
	width: var(--wp--custom--touch-target); height: var(--wp--custom--touch-target);
	display: grid; place-items: center;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--ink); cursor: pointer;
	transition: background var(--wp--custom--transition--fast), border-color var(--wp--custom--transition--fast);
}
.samaanta-slider__btn:hover { background: var(--wp--preset--color--surface-warm); border-color: var(--wp--preset--color--brand-red-dark); }
.samaanta-slider__btn:focus-visible { outline: 2px solid var(--wp--preset--color--brand-red-dark); outline-offset: 2px; }
.samaanta-slider__icon { width: 22px; height: 22px; }

/* Play / pause shows the action it will perform, matching its accessible name. */
.samaanta-slider__icon--play,
.samaanta-slider__pause[data-playing="true"] .samaanta-slider__icon--play { display: none; }
.samaanta-slider__pause[data-playing="false"] .samaanta-slider__icon--play { display: block; }
.samaanta-slider__pause[data-playing="false"] .samaanta-slider__icon--pause { display: none; }

/* Dot rail. Each dot is a 44px-tall target; the current one stretches into a
   pill that fills as the auto-advance timer runs, so the dots report progress
   instead of only position. */
.samaanta-slider__dots { display: flex; align-items: center; gap: 0; min-width: 0; }
.samaanta-slider__dot {
	position: relative;
	flex: 0 1 auto;
	min-width: 28px; height: var(--wp--custom--touch-target);
	display: grid; place-items: center;
	padding: 0 7px; border: 0; background: transparent; cursor: pointer;
}
.samaanta-slider__dot-track {
	display: block; overflow: hidden;
	width: 10px; height: 10px; border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--border-strong);
	transition: width var(--wp--custom--transition--base), background var(--wp--custom--transition--fast);
}
.samaanta-slider__dot:hover .samaanta-slider__dot-track { background: var(--wp--preset--color--ink-soft); }
.samaanta-slider__dot[aria-current="true"] .samaanta-slider__dot-track {
	width: 2.5rem;
	background: color-mix(in srgb, var(--wp--preset--color--brand-red-dark) 28%, transparent);
}
.samaanta-slider__dot-fill {
	display: block; width: 100%; height: 100%;
	border-radius: inherit; transform: scaleX(0); transform-origin: left center;
	background: var(--wp--preset--color--brand-red-dark);
}
.samaanta-slider__dot[aria-current="true"] .samaanta-slider__dot-fill { transform: scaleX(1); }
/* While auto-advance is actually running, the fill becomes a progress bar. */
.samaanta-slider.is-playing .samaanta-slider__dot[aria-current="true"] .samaanta-slider__dot-fill {
	animation: samaanta-dot-progress var(--samaanta-slider-duration, 6000ms) linear forwards;
}
@keyframes samaanta-dot-progress {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}
.samaanta-slider__dot:focus-visible { outline: 2px solid var(--wp--preset--color--brand-red-dark); outline-offset: -2px; border-radius: var(--wp--custom--radius--sm); }

/* The annotation: which slide a dot leads to, shown on hover and on keyboard
   focus. It lives inside the button, so moving the pointer onto the label
   keeps it open (WCAG 1.4.13 hoverable / persistent); Escape hides it. */
.samaanta-slider__dot-note {
	position: absolute; bottom: calc(100% - 2px); left: 50%;
	transform: translateX(-50%) translateY(4px);
	max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	padding: .35rem .7rem; border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--label); line-height: var(--lh-label); font-weight: 500;
	box-shadow: var(--wp--preset--shadow--lifted);
	opacity: 0; visibility: hidden;
	transition: opacity var(--wp--custom--transition--fast), transform var(--wp--custom--transition--fast), visibility 0s linear .15s;
}
.samaanta-slider__dot:hover .samaanta-slider__dot-note,
.samaanta-slider__dot:focus-visible .samaanta-slider__dot-note {
	opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
	transition: opacity var(--wp--custom--transition--fast), transform var(--wp--custom--transition--fast);
}
/* Escape sets this on the carousel. */
.samaanta-slider.is-notes-hidden .samaanta-slider__dot-note { display: none; }

.samaanta-slider__count {
	display: inline-flex; align-items: center; gap: .25rem;
	padding-inline: .5rem; font-size: var(--wp--preset--font-size--small); font-weight: 600;
	font-variant-numeric: tabular-nums; letter-spacing: .04em;
	color: var(--wp--preset--color--ink-soft);
}
.samaanta-slider__count-sep { opacity: .6; }

/* Very narrow screens: drop the counter before the rail can overflow. */
@media (max-width: 24rem) {
	.samaanta-slider__count { display: none; }
	.samaanta-slider__dot { min-width: 24px; padding-inline: 5px; }
}

@media (max-width: 720px) {
	.samaanta-slide { grid-template-columns: 1fr; }
	.samaanta-slide__media { min-height: 16rem; }
	.samaanta-slide__body { padding: var(--wp--preset--spacing--40); }
}
@media (prefers-reduced-motion: reduce) {
	.samaanta-slider.is-enhanced .samaanta-slider__track { transition: none; }
}

/* Video facade (click-to-play — no YouTube cookie/JS until user clicks) */
.samaanta-video {
	position: relative; aspect-ratio: 16/9; margin-top: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--lg); overflow: hidden; cursor: pointer;
	/* The default when there is no poster at all: a quiet panel with the
	   brand mark, rather than the flat red rectangle this used to be. */
	background:
		radial-gradient(circle at 50% 42%, rgba(255,255,255,.07), transparent 58%),
		linear-gradient(158deg, #2A1413 0%, var(--wp--preset--color--brand-red-darker) 52%, #140A0A 100%);
}
.samaanta-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* Poster: the still from the film, dimmed just enough that a white play
   button stays legible over whatever frame YouTube chose. */
.samaanta-video__poster {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; display: block;
	transition: transform var(--wp--custom--transition--slow);
}
/* The scrim is a pseudo-element of the panel, so it paints after the panel's
   children -- without a stacking order it covered the play button and turned
   it grey. */
.samaanta-video--has-poster::after {
	content: "";
	position: absolute; inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(14,17,19,.28) 0%, rgba(14,17,19,.42) 100%);
}
.samaanta-video__play { z-index: 2; }
.samaanta-video:hover .samaanta-video__poster { transform: scale(1.02); }
.samaanta-video.is-playing .samaanta-video__poster,
.samaanta-video.is-playing::after { display: none; }
.samaanta-video__play {
	position:absolute; inset:0; margin:auto; width:5rem; height:5rem;
	display:grid; place-items:center; cursor:pointer;
	background:rgba(255,255,255,.95); border:0; border-radius:50%;
	box-shadow:var(--wp--preset--shadow--lifted);
	transition:transform var(--wp--custom--transition--fast), background var(--wp--custom--transition--fast);
}
.samaanta-video__play:hover { transform:scale(1.06); background:#fff; }
.samaanta-video__play:focus-visible { outline:3px solid var(--wp--preset--color--surface); outline-offset:3px; }
.samaanta-video__icon { font-size:var(--wp--preset--font-size--h-3); line-height: var(--lh-h3); color:var(--wp--preset--color--brand-red-dark); margin-left:.25rem; }

/* ---------------------------------------------------------------
   Nav caret alignment — center the dropdown chevron with its label
   --------------------------------------------------------------- */
.samaanta-header .wp-block-navigation-item.wp-block-navigation-submenu {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}
.samaanta-header .wp-block-navigation-submenu > .wp-block-navigation-item__content {
	padding-right: 0;
}
.samaanta-header .wp-block-navigation-submenu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	padding: 0;
	margin: 0;
	line-height: 0;
	color: inherit;
}
.samaanta-header .wp-block-navigation-submenu__toggle svg {
	display: block;
	width: 0.7em;
	height: 0.7em;
	margin-top: -0.05em; /* optical centre with the cap-height of the label */
}
/* caret follows the label colour on hover / current */
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item:hover .wp-block-navigation-submenu__toggle,
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item:focus-within .wp-block-navigation-submenu__toggle {
	color: var(--wp--preset--color--brand-red-dark);
}

/* Homepage newsletter section — center the single-field form */
.samaanta-newsletter .samaanta-form-wrap { max-width: 32rem; margin-inline: auto; }
.samaanta-newsletter .samaanta-form { gap: var(--wp--preset--spacing--20); }
.samaanta-newsletter .samaanta-form__submit { justify-self: center; }

/* ---------------------------------------------------------------
   Homepage polish
   --------------------------------------------------------------- */

/* Centered Education Plus triad */
.samaanta-triad--center { justify-content: center; margin-block: 0.5rem 1rem; }
.samaanta-triad--center span { font-size: var(--wp--preset--font-size--h-1); line-height: var(--lh-h1); }

/* Impact: cap at a tidy 3-per-row so 6 metrics = 2 clean rows */
.samaanta-metrics { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); max-width: 66rem; }
@media (min-width: 900px) { .samaanta-metrics { grid-template-columns: repeat(3, 1fr); } }

/* Press band: tighten the vertical space so it reads as a band, not a void */
.samaanta-press { padding-block: 0; }

/* Slider: give the empty text panel a touch more presence */
.samaanta-slide__body { gap: 0.75rem; }

/* ---------------------------------------------------------------
   Hero banner — full-bleed, full-height image carousel
   ---------------------------------------------------------------
   The image fills the screen; the words sit on top of it. Two rules
   are load-bearing rather than decorative:

   1. The scrim is not "a nice gradient". It is what keeps the overlay
      text above 4.5:1 (WCAG 1.4.3) no matter which photograph an editor
      uploads — the text column always sits under >= 0.72 alpha of near
      black, which is >= 7:1 against white text even over a white sky.
   2. Heights are `min-height`, never `height`. At 400% zoom, or with a
      long headline in a translated locale, the banner grows instead of
      clipping its own content (WCAG 1.4.10).
   --------------------------------------------------------------- */
:root { --samaanta-header-h: 4.75rem; }

/* The banner opens the page, so it must sit flush against the header: drop the
   block gap WordPress puts above <main> when the banner is its first child. */
main:has( > .samaanta-hero-banner:first-child ) { margin-block-start: 0; }

.samaanta-hero-banner {
	position: relative;
	border-radius: 0;
	isolation: isolate;
	background: var(--wp--preset--color--brand-red-darker);
}
/* The generic `.samaanta-slider.is-enhanced` rounds its corners; a full-bleed
   banner must stay square, and outranks it on specificity. */
.samaanta-hero-banner.is-enhanced { overflow: hidden; border-radius: 0; }

/* The viewport stacks the image track and — in the steady presentation — the
   single overlay of copy, in one grid cell. Stacking rather than absolute
   positioning means the copy still contributes to the banner's height, so a
   long headline at 400% zoom pushes the banner taller instead of spilling out
   of it (WCAG 1.4.10). */
.samaanta-hero-banner__viewport { display: grid; }
.samaanta-hero-banner__viewport > * { grid-area: 1 / 1; min-width: 0; }
/* Clip the horizontal track. This is what keeps off-screen slides off the
   screen now that they are no longer `visibility: hidden` — and what stops the
   overflowing track from scrolling the page sideways (WCAG 1.4.10). */
.samaanta-hero-banner.is-enhanced .samaanta-hero-banner__viewport { overflow: hidden; }

/* A grid of one, so the overlay stretches to the banner's height rather than
   being given `height: 100%` — which, without a global border-box, would add
   its own padding on top of that height and overhang the banner. */
.samaanta-hero-banner__static { position: relative; z-index: 1; display: grid; }

/* Steady presentation, no JS: the extra photographs carry no information of
   their own — the message is already on the first one — so showing five
   stacked images below the copy would be noise, not a fallback. */
.samaanta-hero-banner--steady:not(.is-enhanced) .samaanta-hero-slide--media:not(:first-child) { display: none; }

/* Horizontal track — the same presentation as the fellow carousel and the
   compact image slider, so every carousel on the site moves one way. The track
   is a grid item held to the cell width by `min-width: 0`, so its slides
   overflow sideways and the viewport clips them.

   Off-screen slides stay *visible* here — they have to, to slide in — so the
   cross-fade's `visibility: hidden` backstop is gone and `inert` +
   `aria-hidden` (applied in slider.js) are the whole of the focus-order
   guarantee. `overflow: hidden` below is what keeps them off the screen. */
.samaanta-hero-banner.is-enhanced .samaanta-slider__track {
	display: flex;
	transition: transform var(--wp--custom--transition--slow);
}

.samaanta-hero-slide {
	position: relative;
	display: block;                 /* override the fellow-slide grid */
	flex: 0 0 100%;
	min-width: 100%;
	background: var(--wp--preset--color--brand-red-darker);
	border-radius: 0;
	overflow: hidden;
}
/* No-JS: stack the slides, each a readable banner in its own right. */
.samaanta-hero-banner:not(.is-enhanced) .samaanta-hero-slide + .samaanta-hero-slide { margin-top: 2px; }

/* Height. `svh` keeps mobile browsers from hiding the CTA behind the URL bar;
   the `vh` line above it is the fallback for browsers without svh. */
.samaanta-hero-banner--full .samaanta-hero-slide { min-height: calc(100vh - var(--samaanta-header-h)); }
.samaanta-hero-banner--tall .samaanta-hero-slide { min-height: min(78vh, 46rem); }
.samaanta-hero-banner--standard .samaanta-hero-slide { min-height: clamp(22rem, 56vh, 34rem); }
@supports (height: 100svh) {
	.samaanta-hero-banner--full .samaanta-hero-slide { min-height: calc(100svh - var(--samaanta-header-h)); }
	.samaanta-hero-banner--tall .samaanta-hero-slide { min-height: min(78svh, 46rem); }
	.samaanta-hero-banner--standard .samaanta-hero-slide { min-height: clamp(22rem, 56svh, 34rem); }
}
/* Landscape phones and heavily zoomed viewports: stop demanding a full screen
   of height, or the copy has nowhere to go. */
@media (max-height: 34rem) {
	.samaanta-hero-banner .samaanta-hero-slide { min-height: 22rem; }
}

.samaanta-hero-slide__media { position: absolute; inset: 0; }
.samaanta-hero-slide__img {
	width: 100%; height: 100%; display: block;
	object-fit: cover; object-position: center;
}
.samaanta-hero-slide__img--top { object-position: center top; }
.samaanta-hero-slide__img--bottom { object-position: center bottom; }
.samaanta-hero-slide__img--left { object-position: left center; }
.samaanta-hero-slide__img--right { object-position: right center; }
.samaanta-hero-slide__img--empty {
	background:
		radial-gradient(circle at 70% 30%, rgba(255,255,255,.10), transparent 60%),
		var(--wp--preset--color--brand-red-darker);
}

/* The slow Ken Burns drift that used to run here is gone: with the track now
   translating sideways, a simultaneous zoom made two motions compete and the
   banner read as busy. The slide itself is the movement. */

/* The contrast guarantee. Horizontal for the side-set layout, plus a bottom
   wash that carries the control rail. */
.samaanta-hero-slide__scrim {
	position: absolute; inset: 0; display: block; pointer-events: none;
	background:
		linear-gradient(90deg,
			rgba(18,13,14,.88) 0%,
			rgba(18,13,14,.78) 55%,
			rgba(18,13,14,.42) 78%,
			rgba(18,13,14,.28) 100%),
		linear-gradient(0deg, rgba(18,13,14,.62) 0%, rgba(18,13,14,0) 42%);
}

.samaanta-hero-slide__overlay {
	position: relative; z-index: 1;
	box-sizing: border-box;   /* the theme has no global border-box; without
	                             this the padding is added to the stretched
	                             height and the copy overhangs the banner */
	min-height: inherit;      /* fill the slide, so the copy centres against
	                             the banner rather than against its own height */
	display: flex; align-items: center;
	padding-block: clamp(4rem, 12vh, 8rem);
	padding-inline: max(var(--wp--custom--gutter), calc((100% - var(--wp--custom--wide)) / 2));
}
.samaanta-hero-slide__inner {
	max-width: 38rem; color: #fff;
	display: flex; flex-direction: column; align-items: flex-start;
}
.samaanta-hero-slide__eyebrow {
	display: inline-block; margin-bottom: 1rem;
	font-size: var(--wp--preset--font-size--small); font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: #fff;
	background: var(--wp--preset--color--brand-red-dark);
	padding: .35rem .85rem; border-radius: var(--wp--custom--radius--pill);
}
.samaanta-hero-slide__heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-1);
	line-height: var(--lh-h1);
	letter-spacing: -0.04em;
	text-wrap: balance;
	color: #fff;
}
/* A light gold rather than the palette's amber: the palette value is tuned for
   dark text on light paper and would only just clear 3:1 over a photograph.
   This clears 9:1 against the scrim. */
.samaanta-hero-slide__accent { color: var(--samaanta-hero-accent, #F5C46B); }
.samaanta-hero-slide__text {
	margin: 1.25rem 0 0;
	font-size: var(--wp--preset--font-size--body-large);
	line-height: var(--lh-body);
	color: rgba(255,255,255,.94);
	max-width: 34rem;
}
.samaanta-hero-slide__text a { color: #fff; text-decoration: underline; }

.samaanta-hero-slide__actions {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: .75rem 1rem; margin-top: 2rem;
}
.samaanta-hero-slide__cta {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: var(--wp--custom--touch-target);
	padding-inline: 1.75rem; font-weight: 600;
	color: var(--wp--preset--color--brand-red-darker); background: #fff;
	border: 2px solid #fff;
	border-radius: var(--wp--custom--radius--pill); text-decoration: none;
	transition: transform var(--wp--custom--transition--fast), background var(--wp--custom--transition--fast);
}
.samaanta-hero-slide__cta:hover { transform: translateY(-2px); }
.samaanta-hero-slide__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.samaanta-hero-slide__cta--ghost {
	color: #fff; background: rgba(255,255,255,.08);
	border-color: rgba(255,255,255,.85);
	backdrop-filter: blur(4px);
}
.samaanta-hero-slide__cta--ghost:hover { background: rgba(255,255,255,.18); }
.samaanta-hero-slide__link {
	display: inline-flex; align-items: center; gap: .35rem;
	min-height: var(--wp--custom--touch-target);
	color: #fff; font-weight: 600; text-decoration: underline;
	text-underline-offset: 4px;
}
.samaanta-hero-slide__link:hover { text-decoration-thickness: 2px; }
.samaanta-hero-slide__link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* The control rail sits on the bottom edge, on the same optical line as the
   copy above it. */
.samaanta-hero-banner .samaanta-slider__controls {
	position: absolute; z-index: 2; inset-inline: 0;
	bottom: clamp(1rem, 3vh, 2.25rem);
	margin-top: 0;
	display: flex; justify-content: flex-start;
	padding-inline: max(var(--wp--custom--gutter), calc((100% - var(--wp--custom--wide)) / 2));
	pointer-events: none;   /* the bar is narrow; the rest of the row is not a
	                           dead zone over the image */
}
.samaanta-hero-banner .samaanta-slider__rail { pointer-events: auto; }
.samaanta-hero-banner .samaanta-slider__rail {
	background: rgba(18,13,14,.62);
	border: 1px solid rgba(255,255,255,.22);
	backdrop-filter: blur(10px);
	border-radius: var(--wp--custom--radius--pill);
	padding: .25rem .35rem;
}
.samaanta-hero-banner .samaanta-slider__btn {
	background: transparent; border: 0; color: #fff;
	width: var(--wp--custom--touch-target); height: var(--wp--custom--touch-target);
}
.samaanta-hero-banner .samaanta-slider__btn:hover { background: rgba(255,255,255,.18); }
.samaanta-hero-banner .samaanta-slider__btn:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.samaanta-hero-banner .samaanta-slider__count { color: #fff; }
.samaanta-hero-banner .samaanta-slider__dot-track { background: rgba(255,255,255,.42); }
.samaanta-hero-banner .samaanta-slider__dot[aria-current="true"] .samaanta-slider__dot-track { background: rgba(255,255,255,.3); }
.samaanta-hero-banner .samaanta-slider__dot-fill { background: #fff; }
.samaanta-hero-banner .samaanta-slider__dot:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }

/* Below the tablet breakpoint the copy moves to the bottom of the frame and
   the rail centres under it. */
@media (max-width: 782px) {
	.samaanta-hero-slide__scrim {
		background: linear-gradient(0deg,
			rgba(18,13,14,.92) 0%,
			rgba(18,13,14,.80) 42%,
			rgba(18,13,14,.45) 70%,
			rgba(18,13,14,.35) 100%);
	}
	.samaanta-hero-slide__overlay {
		align-items: flex-end;
		padding-block: 5rem clamp(5.5rem, 16vh, 7.5rem);
	}
	.samaanta-hero-slide__actions > * { flex: 1 1 auto; }
	.samaanta-hero-banner .samaanta-slider__controls { justify-content: center; padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	/* The track still moves — it has to, or the banner would be stuck on slide
	   one — but it jumps rather than glides. Auto-advance is switched off
	   entirely in slider.js, so this only affects a deliberate press. */
	.samaanta-hero-banner.is-enhanced .samaanta-slider__track { transition: none; }
	.samaanta-hero-slide__cta:hover { transform: none; }
}
/* Windows high-contrast / forced colours: the scrim and glass disappear, so
   fall back to real borders and system colours. */
@media (forced-colors: active) {
	.samaanta-hero-slide__inner { background: Canvas; padding: 1rem; }
	.samaanta-hero-slide__heading,
	.samaanta-hero-slide__text,
	.samaanta-hero-slide__link { color: CanvasText; }
	.samaanta-slider__rail { border: 1px solid CanvasText; background: Canvas; }
	.samaanta-slider__dot-track { border: 1px solid CanvasText; }
	.samaanta-slider__dot[aria-current="true"] .samaanta-slider__dot-fill { background: Highlight; }
}

/* ---------------------------------------------------------------
   Compact image slider (hero card) — image-only, rounded frame
   --------------------------------------------------------------- */
.samaanta-image-slider { position: relative; }
.samaanta-image-slider .samaanta-imgslide__frame {
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--lifted);
	background: var(--wp--preset--color--surface-alt);
}
.samaanta-image-slider .samaanta-slider__track { display: flex; }
.samaanta-image-slider.is-enhanced .samaanta-slider__track {
	transition: transform var(--wp--custom--transition--slow);
}
.samaanta-imgslide {
	flex: 0 0 100%;
	min-width: 100%;
	margin: 0;
	padding: 0;
	background: none;
	border-radius: 0;
	display: block;
	aspect-ratio: 4 / 3;
}
.samaanta-imgslide__img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* No-JS: stack the images */
.samaanta-image-slider:not(.is-enhanced) .samaanta-imgslide + .samaanta-imgslide { margin-top: 2px; }

/* Controls: centered under the card */
.samaanta-image-slider .samaanta-slider__controls { margin-top: var(--wp--preset--spacing--20); }
.samaanta-image-slider:not(.is-enhanced) .samaanta-slider__controls { display: none; }
@media (prefers-reduced-motion: reduce) {
	.samaanta-image-slider.is-enhanced .samaanta-slider__track { transition: none; }
}

/* ---------------------------------------------------------------
   Image slider zoom + lightbox
   --------------------------------------------------------------- */
.samaanta-imgslide__zoom {
	display: block; position: relative; width: 100%; height: 100%;
	cursor: zoom-in; line-height: 0;
}
.samaanta-imgslide__zoom:focus-visible { outline: 3px solid var(--wp--preset--color--brand-red-dark); outline-offset: -3px; }
.samaanta-imgslide__zoomicon {
	position: absolute; top: .75rem; right: .75rem;
	width: 2rem; height: 2rem; display: grid; place-items: center;
	font-size: var(--wp--preset--font-size--body); color: var(--wp--preset--color--ink);
	background: rgba(255,255,255,.9); border-radius: var(--wp--custom--radius--pill);
	box-shadow: var(--wp--preset--shadow--soft);
	opacity: 0; transform: scale(.9);
	transition: opacity var(--wp--custom--transition--fast), transform var(--wp--custom--transition--fast);
}
.samaanta-imgslide__zoom:hover .samaanta-imgslide__zoomicon,
.samaanta-imgslide__zoom:focus-visible .samaanta-imgslide__zoomicon { opacity: 1; transform: scale(1); }

/* Lightbox */
.samaanta-lightbox { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; }
.samaanta-lightbox[hidden] { display: none; }
.samaanta-lightbox__backdrop { position: absolute; inset: 0; background: rgba(20,15,16,.88); cursor: zoom-out; }
.samaanta-lightbox__dialog {
	position: relative; z-index: 1;
	max-width: min(92vw, 1100px); max-height: 90vh;
	display: flex; flex-direction: column; align-items: center;
}
.samaanta-lightbox__img {
	max-width: 92vw; max-height: 82vh; width: auto; height: auto;
	object-fit: contain; border-radius: var(--wp--custom--radius--md);
	box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #000;
}
.samaanta-lightbox__counter { margin: .75rem 0 0; color: rgba(255,255,255,.85); font-size: var(--wp--preset--font-size--small); }
.samaanta-lightbox__btn {
	position: absolute; width: 3rem; height: 3rem; display: grid; place-items: center;
	background: rgba(255,255,255,.95); border: 0; border-radius: 50%;
	color: var(--wp--preset--color--ink); font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4); cursor: pointer;
	transition: background var(--wp--custom--transition--fast), transform var(--wp--custom--transition--fast);
}
.samaanta-lightbox__btn:hover { transform: scale(1.06); }
.samaanta-lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.samaanta-lightbox__prev { left: -1rem; top: 50%; transform: translateY(-50%); }
.samaanta-lightbox__next { right: -1rem; top: 50%; transform: translateY(-50%); }
.samaanta-lightbox__prev:hover { transform: translateY(-50%) scale(1.06); }
.samaanta-lightbox__next:hover { transform: translateY(-50%) scale(1.06); }
.samaanta-lightbox__close { top: -1rem; right: -1rem; }
@media (max-width: 600px) {
	.samaanta-lightbox__prev { left: .5rem; }
	.samaanta-lightbox__next { right: .5rem; }
	.samaanta-lightbox__close { top: .5rem; right: .5rem; }
}

/* ---------------------------------------------------------------
   Nav dropdowns — definitive fixes (alignment, hover state, hover bridge)
   Later in the file so these win over earlier rules.
   --------------------------------------------------------------- */

/* The submenu item is a centered flex row */
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item.has-child {
	position: relative;
	display: flex;
	align-items: center;
}

/* Caret toggle: SAME height as the 44px label so their centres line up */
.samaanta-header .wp-block-navigation-submenu__toggle {
	min-height: var(--wp--custom--touch-target);
	min-width: 1.75rem;   /* >=24px hit area (WCAG 2.5.8 target size) */
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 0 0 0.1rem !important;
	color: inherit;
	background: transparent;
	border: 0;
}
.samaanta-header .wp-block-navigation-submenu__toggle svg {
	display: block;
	width: 0.8em;
	height: 0.8em;
	margin: 0;
	transition: transform var(--wp--custom--transition--fast);
}
.samaanta-header .wp-block-navigation-submenu__toggle svg path {
	stroke: currentColor;   /* chevron follows the toggle colour */
}

/* Hover / focus: caret joins the label — turns brand red AND rotates */
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item.has-child:hover .wp-block-navigation-submenu__toggle,
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item.has-child:focus-within .wp-block-navigation-submenu__toggle {
	color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item.has-child:hover .wp-block-navigation-submenu__toggle svg,
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item.has-child:focus-within .wp-block-navigation-submenu__toggle svg {
	transform: rotate(180deg);
}

/* Hover-gap bridge: an invisible strip under each dropdown item so moving the
   mouse down onto the panel keeps the item hovered — the menu no longer closes
   in the gap. */
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item.has-child::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 0.9rem;      /* covers the panel offset */
	background: transparent;
}
.samaanta-header .wp-block-navigation__submenu-container { margin-top: 0.65rem; }

/* Dropdowns open under their own item. The nav carries `items-justified-right`,
   and WordPress core right-aligns submenus under that class to keep them inside
   the viewport — which put each panel 142-148px to the LEFT of the item that
   opened it, and left the little pointer arrow aiming at nothing. */
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
	left: 0;
	right: auto;
}

/* Between the mobile breakpoint and 1024px the nav runs nearly the full width,
   and a 15rem panel under the last dropdown ran 12px past the viewport. The
   panel narrows rather than jumping back to the right edge. */
@media (min-width: 56.3125rem) and (max-width: 64rem) {
	.samaanta-header .wp-block-navigation__submenu-container { min-width: 12.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.samaanta-header .wp-block-navigation-submenu__toggle svg { transition: none; }
}

/* Center the label text within its link box so it lines up with the caret.
   (The link renders as a tall block with the text sitting near the top;
   flex-centering drops the text to the true vertical centre = caret centre.) */
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
}

/* Brand logo (SVG) */
.samaanta-logo { display: inline-flex; align-items: center; line-height: 0; }
.samaanta-logo img { display: block; width: 184px; height: auto; }
.samaanta-logo--footer img { width: 190px; }
@media (max-width: 600px) { .samaanta-logo img { width: 150px; } }

/* Post excerpt "Read more" link */
.wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.4rem;
	font-weight: 600;
	color: var(--wp--preset--color--brand-red-dark);
	text-decoration: none;
}
.wp-block-post-excerpt__more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.wp-block-post-excerpt { margin-block: 0.5rem; }
.wp-block-post-excerpt p { color: var(--wp--preset--color--ink-soft); }

/* Keep top-level nav labels on one line; tighten spacing on narrow laptops */
.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { white-space: nowrap; }
@media (min-width: 782px) and (max-width: 1200px) {
	.samaanta-header .wp-block-navigation { gap: 1rem !important; }
	.samaanta-header__actions { gap: 0.75rem; }
	.samaanta-logo img { width: 156px; }
}

/* ---------------------------------------------------------------
   Collapse the primary nav to the hamburger overlay below 900px.
   Core only collapses at 600px by default.

   This sat at 1024px, which meant a 1280px laptop — an ordinary
   desktop viewport — was served a hamburger and never saw the
   dropdowns at all.

   900px is measured, not guessed. With the tightening below applied,
   the bar's content is logo 130px + nav 540px + donate 142px = 812px,
   and it needs ~872px once the header's own padding is counted. It was
   briefly set to 768px, which put 769–880px into horizontal scroll — a
   WCAG 1.4.10 reflow failure. 900px clears the floor with ~28px to
   spare; below it the overlay takes over, which is the right treatment
   for a tablet anyway.

   If a menu item is ever added, re-measure: the floor moves with the
   label set.
   --------------------------------------------------------------- */
@media (max-width: 900px) {
	/* show the hamburger open button */
	.samaanta-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}
	/* hide the inline horizontal menu; the overlay holds the real menu */
	.samaanta-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: block;
		width: auto;
		height: auto;
		overflow: initial;
		position: static;
		background: transparent !important;
	}
	.samaanta-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content {
		display: none !important;
	}
	/* The close button has to be hidden by name. Collapsing the container to
	   nothing does not reach it: it is absolutely positioned, so it escapes a
	   zero-sized static parent and sat beside the hamburger as a second icon
	   on every phone-width page. */
	.samaanta-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
		display: none !important;
	}
	/* the overlay (open) covers the screen as usual */
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open {
		display: flex !important;
	}
}

/* Small laptops (901–1024px): the horizontal bar is kept, but tightened so six
   items, the logo and the donate button fit on one line without wrapping.
   Below 901px the hamburger takes over instead. */
@media (min-width: 901px) and (max-width: 1024px) {
	.samaanta-header .wp-block-navigation__container {
		gap: 0.85rem;
	}
	.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		font-size: var(--wp--preset--font-size--small);
		letter-spacing: 0;
	}
	/* The logo keeps its aspect ratio; only its rendered width comes down. */
	.samaanta-header .samaanta-logo img {
		width: auto;
		max-height: 34px;
	}
	.samaanta-header__donate .wp-block-button__link {
		padding-inline: 0.9rem;
		font-size: var(--wp--preset--font-size--small);
		white-space: nowrap;
	}
}

/* Inside the mobile overlay, reset the desktop dropdown-card styling to a
   plain stacked submenu (no floating panel, notch or shadow). */
@media (max-width: 900px) {
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		position: static !important;
		opacity: 1 !important;
		transform: none !important;
		visibility: visible !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
	}
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container::before { display: none !important; }
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		color: var(--wp--preset--color--ink-soft) !important;
		background: transparent !important;
		padding: 0.4rem 0 !important;
	}
	/* remove the desktop underline/caret rotation artefacts in the overlay */
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { content: none !important; }
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child::after { content: none !important; }
}

/* Mobile overlay menu: center items, sensible spacing, brand-red active */
@media (max-width: 900px) {
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: center !important;
		gap: 0.25rem !important;
		padding-top: 1rem;
	}
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { text-align: center; }
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		font-size: var(--wp--preset--font-size--body-large);
		padding: 0.5rem 0 !important;
	}
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		text-align: center !important;
		font-size: var(--wp--preset--font-size--body);
	}
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child { display: block; }
}

/* Force-center the overlay menu (override the nav's right justification) */
@media (max-width: 900px) {
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation,
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		justify-content: center !important;
		align-items: center !important;
		text-align: center !important;
	}
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
	.samaanta-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		width: auto !important;
		justify-content: center !important;
		text-align: center !important;
	}
}

/* ---------------------------------------------------------------
   Press coverage ("In the news")
   --------------------------------------------------------------- */
/* ---------------------------------------------------------------
   Story card

   One card, shared by Featured coverage on /press-coverage/ and by the
   News and Blog listings. It was named for the press page it was built
   for, so the blog listing could only copy it or look like something
   else — and copying is exactly how the fellow card, and the news and
   blog lists, drifted apart twice already in this project. A neutral
   name, one definition, no copies.

   Not `samaanta-card`, whose `__meta` already belongs to the fellow
   grid, and not `samaanta-story`, which is the fellow's own story
   block. Either would have read as part of a component it has nothing
   to do with.
   --------------------------------------------------------------- */

.samaanta-articlegrid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: var(--wp--preset--spacing--30); list-style: none; padding-left: 0; margin: var(--wp--preset--spacing--40) 0 0;
}
.samaanta-articlecard { margin: 0; }
.samaanta-articlecard__link, .samaanta-articlecard > .samaanta-articlecard__body {
	display: flex; flex-direction: column; height: 100%;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg); overflow: hidden;
	text-decoration: none; color: inherit;
	transition: transform var(--wp--custom--transition--base), box-shadow var(--wp--custom--transition--base);
}
.samaanta-articlecard__link:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--lifted); }
.samaanta-articlecard__link:focus-visible { outline: 2px solid var(--wp--preset--color--brand-red-dark); outline-offset: 2px; }
.samaanta-articlecard__media { aspect-ratio: 16/10; overflow: hidden; background: var(--wp--preset--color--surface-alt); }
.samaanta-articlecard__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--wp--custom--transition--slow); }
.samaanta-articlecard__link:hover .samaanta-articlecard__img { transform: scale(1.04); }
.samaanta-articlecard__body { padding: var(--wp--preset--spacing--30); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.samaanta-articlecard__outlet { font-family: var(--wp--preset--font-family--display); font-weight: 600; color: var(--wp--preset--color--brand-red-dark); }
.samaanta-articlecard__title { margin: 0; font-size: var(--wp--preset--font-size--h-4); line-height: var(--lh-h4); }
.samaanta-articlecard__meta { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.samaanta-articlecard__excerpt { margin: 0; color: var(--wp--preset--color--ink-soft); font-size: var(--wp--preset--font-size--small); }
.samaanta-articlecard__read { margin-top: auto; padding-top: 0.5rem; font-weight: 600; color: var(--wp--preset--color--brand-red-dark); }
.samaanta-articlecard__link:hover .samaanta-articlecard__read { text-decoration: underline; text-underline-offset: 3px; }


/* ---------------------------------------------------------------
   Feature hero — full-screen, shaded, words over the photograph

   The depth is layered, not a single wash: a warm glow set off-centre,
   a directional shade heaviest where the words sit, and a bottom wash
   that carries the control rail.

   The shade is structural. Over the text column it never drops below
   0.78 alpha of #16100F, which is the measured floor: against a pure
   white photograph — the worst case — that composites to rgb(73,69,68),
   giving cream body 9.16:1 and the gold accent 5.19:1. Over a dark
   photograph those become 18.22:1 and 10.32:1. An editor cannot break
   it by uploading a bright image.
   --------------------------------------------------------------- */
.samaanta-hero-banner--feature { background: #16100F; }

.samaanta-hero-banner--feature .samaanta-hero-slide {
	min-height: calc(100vh - var(--samaanta-header-h));
}
@supports (height: 100svh) {
	.samaanta-hero-banner--feature .samaanta-hero-slide {
		min-height: calc(100svh - var(--samaanta-header-h));
	}
}
@media (max-height: 40rem) {
	.samaanta-hero-banner--feature .samaanta-hero-slide { min-height: 32rem; }
}

.samaanta-hero-banner--feature .samaanta-hero-slide__scrim {
	background:
		radial-gradient(ellipse 80% 70% at 86% 16%, rgba(168, 50, 43, .34), transparent 62%),
		linear-gradient(100deg,
			rgba(22, 16, 15, .95) 0%,
			rgba(22, 16, 15, .88) 52%,
			rgba(22, 16, 15, .60) 76%,
			rgba(22, 16, 15, .42) 100%),
		linear-gradient(0deg, rgba(22, 16, 15, .82) 0%, rgba(22, 16, 15, 0) 38%);
}

.samaanta-hero-banner--feature .samaanta-hero-slide__inner { max-width: 44rem; }

.samaanta-hero-banner--feature .samaanta-hero-slide__eyebrow {
	color: #E8B86D;
	letter-spacing: 0.2em;
}
.samaanta-hero-banner--feature .samaanta-hero-slide__heading {
	font-size: var(--wp--preset--font-size--display);
	line-height: var(--lh-display);
	letter-spacing: -0.04em;
}
.samaanta-hero-banner--feature .samaanta-hero-slide__accent { color: #E8B86D; }
.samaanta-hero-banner--feature .samaanta-hero-slide__text {
	max-width: 42ch;
	font-size: var(--wp--preset--font-size--body-large);
}

/* Factual meta row, counted from what is published. */
.samaanta-hero-feature__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	margin: 2rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid rgba(253, 251, 247, .22);
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.04em;
	color: #EFE6DC;
}
.samaanta-hero-feature__meta li { display: inline-flex; align-items: center; }
.samaanta-hero-feature__meta li + li::before {
	content: "";
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(253, 251, 247, .5);
	margin-inline-end: 1.25rem;
}

/* Scroll cue: a full-height hero hides what follows it. */
.samaanta-hero-feature__cue {
	display: block;
	width: 1px;
	height: 3rem;
	margin-top: 2.5rem;
	background: linear-gradient(180deg, rgba(253, 251, 247, .55), rgba(253, 251, 247, 0));
	position: relative;
	overflow: hidden;
}
.samaanta-hero-feature__cue-line {
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	width: 1px;
	height: 1.1rem;
	background: #E8B86D;
	animation: samaanta-cue 2.4s ease-in-out infinite;
}
@keyframes samaanta-cue {
	0%   { transform: translateY(-110%); opacity: 0; }
	35%  { opacity: 1; }
	100% { transform: translateY(300%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.samaanta-hero-feature__cue-line { animation: none; opacity: .9; }
}
@media (max-width: 48rem) {
	.samaanta-hero-banner--feature .samaanta-hero-slide__scrim {
		background:
			radial-gradient(ellipse 120% 60% at 70% 14%, rgba(168, 50, 43, .30), transparent 64%),
			linear-gradient(180deg, rgba(22, 16, 15, .86) 0%, rgba(22, 16, 15, .90) 60%, rgba(22, 16, 15, .94) 100%);
	}
	.samaanta-hero-feature__cue { display: none; }
}


/* ---------------------------------------------------------------
   Editorial makeover — section separation and card weight

   The triangle band was a decorative mask repeated across the full
   width. Against a full-screen shaded hero it reads as ornament from
   a different design, so the separator becomes a hairline that fades
   at both ends. The class and its two modifiers stay, so wherever an
   editor has switched a divider on it still works — this is a change
   of treatment, not of structure, and reverting is this block alone.
   --------------------------------------------------------------- */
.samaanta-motif {
	height: 1px;
	opacity: 1;
	-webkit-mask-image: none;
	mask-image: none;
	background-color: transparent;
	background-image: linear-gradient(
		90deg,
		transparent 0%,
		var(--wp--preset--color--border) 14%,
		var(--wp--preset--color--border) 86%,
		transparent 100%
	);
}
.samaanta-motif--light {
	opacity: 1;
	background-image: linear-gradient(
		90deg,
		transparent 0%,
		rgba(253, 251, 247, .26) 14%,
		rgba(253, 251, 247, .26) 86%,
		transparent 100%
	);
}

/* Cards: lighter containment. A 1px border plus a large radius plus a
   fill makes every card shout equally; the border alone, warmer and
   quieter, lets the photograph and the headline carry the card. */
.samaanta-articlecard__link,
.samaanta-cohort-card {
	border-color: var(--wp--preset--color--border);
	box-shadow: none;
}
.samaanta-articlecard__link:hover,
.samaanta-cohort-card:hover {
	box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px rgba(28, 25, 23, .07);
}


/* ---------------------------------------------------------------
   Precise — editorial landing

   One typeface, near-monochrome, hairlines instead of boxes. The
   headline carries the page and the photograph corroborates it, so
   there is no scrim and no overlay: type sits on paper at 18.95:1 and
   the image is never dimmed to make words legible over it.
   --------------------------------------------------------------- */
.samaanta-edhero {
	padding-block: clamp(3.5rem, 7vw, 6.5rem) 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.samaanta-edhero__inner { max-width: var(--wp--custom--wide); margin-inline: auto; }

.samaanta-edhero__eyebrow {
	margin: 0 0 1.5rem;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-edhero__title {
	margin: 0;
	max-width: 19ch;
	font-size: var(--wp--preset--font-size--display);
	font-weight: 600;
	line-height: var(--lh-display);
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--ink);
}
.samaanta-edhero__accent { color: var(--wp--preset--color--brand-red-dark); }

.samaanta-edhero__row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem 3.5rem;
	align-items: flex-end;
	margin-top: 2.5rem;
}
.samaanta-edhero__lede {
	flex: 1 1 26rem;
	min-width: 0;
	max-width: 52ch;
	margin: 0;
	font-size: var(--wp--preset--font-size--body-large);
	line-height: var(--lh-body);
	color: var(--wp--preset--color--ink-soft);
}
.samaanta-edhero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.samaanta-edhero__btn {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	padding-inline: 1.6rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--ink);
}
.samaanta-edhero__btn:hover { background: var(--wp--preset--color--ink-soft); border-color: var(--wp--preset--color--ink-soft); }
.samaanta-edhero__btn--ghost {
	background: transparent;
	color: var(--wp--preset--color--ink);
}
.samaanta-edhero__btn--ghost:hover { background: var(--wp--preset--color--surface-alt); color: var(--wp--preset--color--ink); }

/* The photograph: full width under the copy, square corners, no shadow. */
.samaanta-edhero .samaanta-image-slider { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.samaanta-edhero .samaanta-imgslide__frame {
	border-radius: 0;
	box-shadow: none;
	border: 1px solid var(--wp--preset--color--border);
}
.samaanta-edhero .samaanta-imgslide { aspect-ratio: 21 / 9; }
@media (max-width: 48rem) {
	.samaanta-edhero .samaanta-imgslide { aspect-ratio: 4 / 3; }
}

/* Square the system off: hairlines, not boxes. */
.samaanta-articlecard__link,
.samaanta-cohort-card,
.samaanta-imgslide__frame,
.samaanta-profile__portrait img,
.samaanta-fellow-grid .wp-block-post-featured-image img {
	border-radius: 0 !important;
}
.samaanta-articlecard__link { box-shadow: none; }
.samaanta-articlecard__link:hover { box-shadow: none; background: var(--wp--preset--color--surface-alt); }


/* ---------------------------------------------------------------
   Overlay landing — the slider is the whole first screen, the header
   and the words ride on top of it.

   The shade is structural and built to measured floors. Against a
   pure-white photograph — the worst an editor can upload — 0.72 alpha
   of #0E1113 gives white text 7.64:1, and 0.80 gives 10.30:1. The
   gradient therefore sits at .78 across the header band and .86 across
   the copy and controls at the foot, with a lighter middle so the
   photograph is still a photograph.
   --------------------------------------------------------------- */
/* On the front page the hero starts at the very top of the document and the
   bar rides over it, so the bar cannot take space in the flow -- sticky would
   push the photograph down by its own height and the hero would no longer own
   the first screen. Fixed instead, which pins it just the same. */
body:has(.samaanta-hero-overlay) .wp-site-blocks > header:has(> .samaanta-header--sticky) {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
}
body:has(.samaanta-hero-overlay) .samaanta-header--sticky {
	position: static;
}
body:has(.samaanta-hero-overlay) .samaanta-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 30;
	background: transparent;
	border-bottom: 0;
}

body:has(.samaanta-hero-overlay) main { margin-block-start: 0; }

/* Logo reverses to white over the photograph. */
body:has(.samaanta-hero-overlay) .samaanta-header .samaanta-logo img {
	filter: brightness(0) invert(1);
}
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation-item__content,
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation__responsive-container-open {
	color: #FFFFFF;
}
/* The chevron is a stroked path on a `fill="none"` svg, so colouring it with
   `fill` turned it into a solid triangle instead of reversing the chevron. */
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation-submenu__toggle svg,
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation-submenu__toggle svg path {
	fill: none;
	stroke: #FFFFFF;
}
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation-item__content:focus-visible,
body:has(.samaanta-hero-overlay) .samaanta-header .samaanta-logo:focus-visible {
	outline: 3px solid #FFFFFF;
	outline-offset: 3px;
}
/* The submenu panel is a solid card, so it keeps its own colours. */
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink-soft);
}

.samaanta-hero-overlay .samaanta-hero-slide {
	min-height: 100vh;
}
@supports (height: 100svh) {
	.samaanta-hero-overlay .samaanta-hero-slide { min-height: 100svh; }
}
@media (max-height: 36rem) {
	.samaanta-hero-overlay .samaanta-hero-slide { min-height: 34rem; }
}

/* The shade is shaped, not flat, and its strength is measured per photograph:
   PHP samples the image and sets --scrim-top (the header strip, full width),
   --scrim-copy (the copy column on a wide screen) and --scrim-wide (the full
   width, which is what a phone has to carry). A dark stage shot keeps its
   colour; a bright courtyard gets covered. The fallbacks are the safe worst
   case, used when no measurement exists.

   Layers composite source-over, so where they overlap the shade only ever
   increases — a measured floor can be exceeded but never undercut. */
.samaanta-hero-overlay .samaanta-hero-slide__scrim {
	--scrim-top: .72;
	--scrim-copy: .72;
	--scrim-wide: .72;
	background:
		/* 1 — header strip. Held at full strength through the whole header
		   rather than decaying inside it: the nav sits at 16-73px of a 900px
		   hero, so a gradient that starts releasing at 7% releases under the
		   text. */
		linear-gradient(
			180deg,
			rgba(14, 17, 19, var(--scrim-top)) 0%,
			rgba(14, 17, 19, var(--scrim-top)) 11%,
			rgba(14, 17, 19, calc(var(--scrim-top) * .55)) 16%,
			rgba(14, 17, 19, 0) 23%
		),
		/* 2 — foot band: carries the meta row and settles the frame. */
		linear-gradient(
			0deg,
			rgba(14, 17, 19, calc(var(--scrim-copy) * .82)) 0%,
			rgba(14, 17, 19, calc(var(--scrim-copy) * .30)) 16%,
			rgba(14, 17, 19, 0) 30%
		),
		/* 3 — copy column: full strength under the text, then released so the
		   right of the frame keeps its light. In a group photograph that is
		   the difference between shading faces and shading the wall. */
		linear-gradient(
			90deg,
			rgba(14, 17, 19, var(--scrim-copy)) 0%,
			rgba(14, 17, 19, var(--scrim-copy)) 48%,
			rgba(14, 17, 19, calc(var(--scrim-copy) * .40)) 70%,
			rgba(14, 17, 19, calc(var(--scrim-copy) * .12)) 90%,
			rgba(14, 17, 19, calc(var(--scrim-copy) * .10)) 100%
		);
}

/* Copy sits at the foot, clear of the control rail. */
.samaanta-hero-overlay .samaanta-hero-banner__static {
	align-content: end;
	padding-block: 0 11rem;
}
.samaanta-hero-overlay .samaanta-hero-slide__inner { max-width: 44rem; }

.samaanta-hero-overlay .samaanta-hero-slide__eyebrow {
	font-weight: 600;
	letter-spacing: 0.18em;
	color: #FFFFFF;
	opacity: .92;
}
.samaanta-hero-overlay .samaanta-hero-slide__heading {
	font-size: var(--wp--preset--font-size--h-1);
	line-height: var(--lh-h1);
	letter-spacing: -0.04em;
	color: #FFFFFF;
}
.samaanta-hero-overlay .samaanta-hero-slide__accent { color: #FFFFFF; opacity: .78; }
.samaanta-hero-overlay .samaanta-hero-slide__text {
	max-width: 46ch;
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--lh-body);
	color: #E6EAEC;
}
.samaanta-hero-overlay .samaanta-hero-slide__actions { margin-top: 1.75rem; gap: .6rem .75rem; }
.samaanta-hero-overlay .samaanta-hero-slide__cta {
	min-height: 44px;
	padding-inline: 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	border-radius: 0;
}
.samaanta-hero-overlay .samaanta-hero-slide__link { font-size: var(--wp--preset--font-size--small); }
.samaanta-hero-overlay .samaanta-hero-feature__meta {
	margin-top: 1.5rem;
	padding-top: 1rem;
	font-size: var(--wp--preset--font-size--label);
}
.samaanta-hero-overlay .samaanta-hero-feature__cue { display: none; }

/* Control rail: bottom-right, on the same gutter as the copy. */
.samaanta-hero-overlay .samaanta-slider__controls {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	justify-content: flex-end;
	padding: 0 0 2.25rem 0;
	pointer-events: none;
}
.samaanta-hero-overlay .samaanta-slider__rail {
	pointer-events: auto;
	margin-inline-end: max(var(--wp--custom--gutter), calc((100% - var(--wp--custom--wide)) / 2));
}

@media (max-width: 48rem) {
	.samaanta-hero-overlay .samaanta-hero-banner__static { padding-block: 0 9rem; }
	/* On a phone the copy spans the full width, so the column layer becomes a
	   vertical wash at --scrim-wide and holds it from just below the header all
	   the way down. The first version released at 26% — which is exactly where
	   the headline sits on a 844px screen, and it measured 1.6:1. */
	.samaanta-hero-overlay .samaanta-hero-slide__scrim {
		background:
			linear-gradient(
				180deg,
				rgba(14, 17, 19, var(--scrim-top)) 0%,
				rgba(14, 17, 19, var(--scrim-top)) 9%,
				rgba(14, 17, 19, var(--scrim-wide)) 15%,
				rgba(14, 17, 19, var(--scrim-wide)) 100%
			);
	}
	/* A 3:2 photograph cropped to a phone keeps barely a third of its width,
	   and a centred crop lands on torsos. Biasing upward keeps faces, which is
	   what a group photograph is for. */
	.samaanta-hero-overlay .samaanta-hero-slide__img:not(.samaanta-hero-slide__img--top):not(.samaanta-hero-slide__img--bottom):not(.samaanta-hero-slide__img--left):not(.samaanta-hero-slide__img--right) {
		object-position: center 32%;
	}
	.samaanta-hero-overlay .samaanta-slider__rail { margin-inline-end: 1.25rem; }
}


/* Overlay header colours — specificity note.

   The base rule that colours the nav is
   `.samaanta-header .wp-block-navigation__container > .wp-block-navigation-item
    > .wp-block-navigation-item__content` at (0,4,0). An override written as
   `body:has(...) .samaanta-header .wp-block-navigation-item__content` is only
   (0,3,1) and loses, which left dark ink on a dark scrim — unreadable, and
   invisible to axe, which cannot judge text over a background image. Matching
   the full chain takes this to (0,5,1). */
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content,
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation-item__content {
	color: #FFFFFF;
}
/* Hover cannot go to brand red here: on the header scrim that is dark on dark.
   It stays white and leans on the underline instead. */
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation__container > .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content {
	color: #FFFFFF;
}
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	background-color: #FFFFFF;
}
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation-submenu__toggle svg,
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation-submenu__toggle svg path {
	fill: none;
	stroke: #FFFFFF;
}
/* The submenu is a solid card and keeps the system colours — (0,5,1) so it
   outranks the white rule above. */
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink-soft);
}
body:has(.samaanta-hero-overlay) .samaanta-header .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--brand-red-dark);
}


/* Overlay header: WordPress emits preset background classes as
   `.has-surface-background-color{background-color:... !important}`, so a plain
   `background: transparent` loses and the bar stays opaque white — which hid
   the photograph behind it and left white nav text on white. !important is the
   only way to beat !important, and it is scoped to the overlay hero. */
body:has(.samaanta-hero-overlay) .samaanta-header,
body:has(.samaanta-hero-overlay) .samaanta-header.has-background {
	background-color: transparent !important;
}

/* ...until the page moves. Once the bar is no longer over the photograph it
   stops pretending to be: solid white, a hairline border, the nav back to ink
   and the logo back to Samaanta red.

   These have to be stated here, after the rules above and not beside the
   sticky ones, and they have to repeat the same long chains. The white nav
   rule is (0,5,1) and the transparent background is !important, so an
   override written next to the sticky rules lost on both counts and the bar
   stayed a transparent strip with white text over white content. */
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky,
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky.has-background {
	background-color: var(--wp--preset--color--surface) !important;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .samaanta-logo img {
	filter: none;
}
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content,
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .wp-block-navigation-item__content,
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--ink);
}
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .wp-block-navigation__container > .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--brand-red-dark);
}
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	background-color: var(--wp--preset--color--brand-red-dark);
}
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .wp-block-navigation-submenu__toggle svg,
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .wp-block-navigation-submenu__toggle svg path {
	fill: none;
	stroke: currentColor;
}
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .wp-block-navigation-item__content:focus-visible,
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky .samaanta-logo:focus-visible {
	outline-color: var(--wp--preset--color--brand-red-dark);
}
:root.is-scrolled body:has(.samaanta-hero-overlay) .samaanta-header--sticky {
	box-shadow: 0 1px 16px rgba(14, 17, 19, 0.09);
}

/* The meta row is a sibling of the copy container, not a child, so it has no
   padding of its own. Align it to the same optical edge as the copy and the
   control rail. */
body:has(.samaanta-hero-overlay) .samaanta-hero-feature__meta {
	margin-inline-start: max(var(--wp--custom--gutter), calc((100% - var(--wp--custom--wide)) / 2));
	margin-inline-end: 1.5rem;
	max-width: 44rem;
}
@media (max-width: 48rem) {
	body:has(.samaanta-hero-overlay) .samaanta-hero-feature__meta { margin-inline-start: 1.25rem; }
}


/* ---------------------------------------------------------------
   Inner pages

   Every page but the front page opens on the same two bands: a tinted
   header carrying the breadcrumb trail and the title, and a body band
   under it. Pages, posts, archives, search and 404 all share them, so a
   visitor moving between them meets one rhythm instead of five.

   Every value below is a step on the spacing scale, so these pages are
   measured with the same ruler as the front page. They were not: the
   band opened on 56px where a front-page section opens on 96px, and
   none of 56/48/60 is a step on anything.

   The scale has no fluid middle step -- 10 to 50 are fixed, 60 and 70
   are fluid -- so the bands step up once at 48rem. That is deliberate:
   interpolating with a clamp() of its own is how inner pages ended up
   on a private scale in the first place.
   --------------------------------------------------------------- */

.samaanta-pagehead {
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--surface-alt);
	border-block-end: 1px solid var(--wp--preset--color--border);
}
/* 46rem is about 78 characters at body size -- the upper end of a comfortable
   measure, chosen because every rem the column gives back becomes empty page
   beside it. */
.samaanta-pagebody {
	--measure-prose: 46rem;
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}
@media (min-width: 48rem) {
	.samaanta-pagehead {
		padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	}
	.samaanta-pagebody {
		padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	}
}

.samaanta-pagehead .samaanta-breadcrumbs {
	margin-block-end: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
}
.samaanta-pagehead :where(.wp-block-post-title, .wp-block-query-title, h1) {
	margin: 0;
}

/* A term description or standfirst under the title, inside the band. */
/* Anything narrower than the band is centred by WordPress's constrained
   layout, so the standfirst under an archive title floated 467px right of the
   title itself.

   Pinning it to 0 fixed that but introduced the opposite problem above
   1440px: the title is capped at the reading width and centred in the band,
   while the standfirst sat against the band's own padding edge -- 130px apart
   at 1700px, and dead level below 1440px, which is why it looked fine until
   the window was wide. The start margin is the title's own offset, computed
   the same way out of the same containing block, so the two share an edge at
   every width. */
.samaanta-pagehead .samaanta-pagehead__lead,
.samaanta-pagehead .samaanta-lede,
.samaanta-pagehead .wp-block-term-description {
	max-width: 56ch;
	margin-inline: max(0px, calc((100% - var(--wp--custom--read)) / 2)) auto !important;
	margin-block: var(--wp--preset--spacing--20) 0;
	font-size: var(--wp--preset--font-size--body-large);
	line-height: var(--lh-body);
	color: var(--wp--preset--color--ink-soft);
}

/* Byline, date and terms sit together under the title on single posts. */
.samaanta-pagehead__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin-block-start: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.samaanta-pagehead__meta > * { margin: 0; }

/* Document pages get a reading container, not the full 110rem the front page
   uses. A page of prose cannot fill 1,760px: at that width the text column,
   the gap and the rail left roughly 700px of nothing in the middle of the
   page, which reads as a mistake rather than as margin. The container holds
   the prose, its grids and the rail as one block and centres it, so the space
   that is left over becomes margin on both sides.

   The front page keeps the full width, because its hero and its card grids
   can use it. WordPress's constrained layout caps children at contentSize and
   centres them with auto margins, so setting the width here is enough. */
.samaanta-pagehead > *,
.samaanta-pagebody {
	max-width: var(--wp--custom--read);
}

/* Every direct child of the body band starts at the band's own left edge.
   WordPress's constrained layout sets `margin-left/right: auto !important` on
   each one, which centred anything narrower than the band: /contact/ opened
   its content 348px right of its own title at 1440, and 544px right of it at
   1920. */
.samaanta-pagebody > * {
	margin-inline: 0 !important;
	max-width: none;
}

/* On a wide screen the section nav becomes a right-hand rail. Only the bands
   that carry one become a grid -- a grid's gap applies between rows as well as
   columns, so making every band a grid would have put the rail's gutter
   between stacked blocks too. */
@media (min-width: 75rem) {
	.samaanta-pagebody:has(.samaanta-secnav) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem);
		justify-content: space-between;
		column-gap: var(--wp--preset--spacing--50);
		align-items: start;
	}
	.samaanta-pagebody:has(.samaanta-secnav) > .samaanta-secnav {
		--cols: 1;
		position: sticky;
		top: var(--wp--preset--spacing--30);
		margin-block-start: 0;
		padding-block-start: 0;
		border-block-start: 0;
	}
	.samaanta-pagebody:has(.samaanta-secnav) > .samaanta-secnav .samaanta-secnav__link {
		font-size: var(--wp--preset--font-size--small);
	}
}

/* The measure belongs to the prose, not to the column that holds it.
   Capping the column instead trapped every card grid inside 42rem: the team
   grid rendered one portrait in a 503px column with 750px of empty page
   beside it. Prose keeps its measure; a grid, a form or a figure takes the
   width the page actually has. */
.samaanta-pagebody .wp-block-post-content > :where(
	p, h1, h2, h3, h4, h5, h6,
	ul.wp-block-list, ol.wp-block-list,
	blockquote, .wp-block-details, .wp-block-quote, .wp-block-pullquote
) {
	max-width: var(--measure-prose);
	margin-inline: 0 auto !important;
}

/* Components that set their own narrower width align left in the band rather
   than floating in the middle of it. */
.samaanta-pagebody :where(.samaanta-form-wrap, .samaanta-metrics) {
	margin-inline: 0 auto !important;
}

/* The lede sits flush left under the title. WordPress's constrained layout
   sets `margin-left: auto !important` on every child, which silently won
   against margin-inline-start:0 and left the opening paragraph of every
   page indented ~76px from the title above it. */
.samaanta-pagebody .samaanta-lede,
.entry-content .samaanta-lede {
	max-width: 56ch;
	margin-inline: 0 auto !important;
	margin-block: 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--body-large);
	line-height: var(--lh-body);
	color: var(--wp--preset--color--ink-soft);
}

/* Vertical rhythm: a heading belongs to what follows it, so the space above
   is several times the space below. The space above is layout, and comes from
   the scale; the space below binds the heading to its own paragraph, and so
   is set in em and scales with the type. */
.samaanta-pagebody :where(h2) { margin-block: var(--wp--preset--spacing--40) 0.5em; }
.samaanta-pagebody :where(h3) { margin-block: var(--wp--preset--spacing--30) 0.5em; }
.samaanta-pagebody :where(h4) { margin-block: var(--wp--preset--spacing--30) 0.5em; }
@media (min-width: 48rem) {
	.samaanta-pagebody :where(h2) { margin-block-start: var(--wp--preset--spacing--50); }
	.samaanta-pagebody :where(h3) { margin-block-start: var(--wp--preset--spacing--40); }
}
.samaanta-pagebody :where(h2, h3, h4):first-child { margin-block-start: 0; }
.samaanta-pagebody :where(p, ul, ol) { margin-block: 0 1.1em; }
.samaanta-pagebody :where(p, ul, ol):last-child { margin-block-end: 0; }

/* One source of vertical rhythm between the blocks of a body band. A
   component that carried its own margin on top of the block gap added a
   second: the fellows archive opened gaps of 120px and 144px, neither of them
   a step on anything. Stated after the prose rules above, which match with
   equal specificity but a wider target. */
.samaanta-pagebody > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Marker indent for PROSE lists only. A component that renders its cards as
   a <ul> -- the publication grid, the press grid -- is not prose, and giving
   it a 20px indent pushed it 12px past the viewport at 320px. */
.samaanta-pagebody :where(ul.wp-block-list, ol.wp-block-list) {
	padding-inline-start: 1.25rem;
}
.samaanta-pagebody :where(ul.wp-block-list, ol.wp-block-list) > li + li {
	margin-block-start: 0.4em;
}

/* A section heading carries a short rule, which is what tells the eye a new
   section has started before it has read a word. */
.samaanta-pagebody > .wp-block-post-content > h2::before,
.samaanta-pagebody .entry-content > h2::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2px;
	margin-block-end: var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--brand-red-dark);
}

/* Figures and tables may use the full width of the band. */
.samaanta-pagebody :where(figure, table) { max-width: none; }

/* A lead image is not a banner. The band may run to 1,760px; an article's
   opening photograph stops well short of that, or it reads as a hero the
   page did not ask for. */
.samaanta-pagebody > .wp-block-post-featured-image {
	max-width: 60rem;
}

/* A category or term label above the title, inside the band. */
.samaanta-pagehead .wp-block-post-terms {
	display: block;
	margin-block-end: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/* The search field belongs to the band on a search results page, the way the
   breadcrumb trail does -- it is how you restate the query, not body content. */
.samaanta-pagehead__search {
	max-width: 32rem;
	margin-block-start: var(--wp--preset--spacing--30);
}

/* Profiles carry their own portrait band rather than the plain pagehead, so
   the trail is spaced to that band instead. */
.samaanta-profile .samaanta-breadcrumbs {
	margin-block-end: var(--wp--preset--spacing--40);
}

/* A portrait beside a short fact list does not want 1,760px: the band may run
   the full width of the page, but past about 76rem the portrait grows until it
   dwarfs the name and facts it is meant to introduce. */
.samaanta-profile .wp-block-columns {
	max-width: 76rem;
	margin-inline: 0 auto !important;
}


/* ---------------------------------------------------------------
   Post lists (blog, category, search)

   A list of posts is read, not scanned, so it keeps the prose measure
   rather than stretching to the band. Entries were previously divided
   by nothing but the default block gap, which ran titles, dates and
   excerpts together into one column of text.
   --------------------------------------------------------------- */

/* Wider than the prose measure when it carries thumbnails: a 9rem image plus
   a 46rem column of text is still one readable line length, and squeezing the
   text to make room would have made it two. */
.samaanta-postlist { max-width: var(--measure-prose, 46rem); }
.samaanta-postlist--media { max-width: 58rem; }
/* Cards are not prose. Left at the measure they got two columns where the
   same grid on /press-coverage/ gets three, so the two listings were the same
   card at different sizes. */
.samaanta-postlist--cards { max-width: none; }
.samaanta-postlist__items {
	margin: 0;
	padding: 0;
	list-style: none;
}
.samaanta-postlist__items > li {
	padding-block: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--wp--preset--color--border);
}
.samaanta-postlist__items > li:first-child {
	padding-block-start: 0;
	border-block-start: 0;
}
.samaanta-postlist__items .wp-block-post-title { margin: 0; }

/* The thumbnail is a thumbnail. Both /news/ and /blog/ previously ran the
   featured image at the full width of the column -- around 1,016px -- so four
   posts were four screens of photographs with the headlines in between. */
.samaanta-postlist__item { display: grid; gap: var(--wp--preset--spacing--30); }
.samaanta-postlist--media .samaanta-postlist__item:has(.samaanta-postlist__thumb) {
	grid-template-columns: 11rem minmax(0, 1fr);
	align-items: start;
}
.samaanta-postlist__thumb {
	display: block;
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
	background: var(--wp--preset--color--surface-alt);
}
.samaanta-postlist__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: opacity var(--wp--custom--transition--fast);
}
.samaanta-postlist__item:hover .samaanta-postlist__thumb img { opacity: 0.9; }

.samaanta-postlist__title {
	/* No letter-spacing of its own. An <h3> already carries -0.02em from
	   theme.json whatever size it is set at, and overriding it to the h4 value
	   made a second treatment at the same size -- 21 signatures where the site
	   had 20. */
	margin: 0;
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
}
.samaanta-postlist__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.samaanta-postlist__title a:hover {
	color: var(--wp--preset--color--brand-red-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.samaanta-postlist__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin-block-start: var(--wp--preset--spacing--10);
	margin-block-end: 0;
}
.samaanta-postlist__meta > * {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.samaanta-postlist__cat {
	font-weight: 600;
	color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-postlist__excerpt {
	margin: var(--wp--preset--spacing--20) 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--lh-small);
	color: var(--wp--preset--color--ink-soft);
}
.samaanta-postlist__empty { margin: 0; color: var(--wp--preset--color--ink-soft); }

.samaanta-postlist .wp-block-post-excerpt { margin-block-start: var(--wp--preset--spacing--20); }
.samaanta-postlist .wp-block-post-excerpt__excerpt { margin: 0; }
.samaanta-postlist .wp-block-post-excerpt__more-text { margin-block-start: var(--wp--preset--spacing--10); }

.samaanta-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	margin-block-start: var(--wp--preset--spacing--50);
	padding-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
}
.samaanta-postlist__of { color: var(--wp--preset--color--muted); }
.samaanta-postlist__prev,
.samaanta-postlist__next {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	font-weight: 600;
	color: var(--wp--preset--color--brand-red-dark);
}

@media (max-width: 36rem) {
	.samaanta-postlist--media .samaanta-postlist__item:has(.samaanta-postlist__thumb) {
		grid-template-columns: 7rem minmax(0, 1fr);
		gap: var(--wp--preset--spacing--20);
	}
}

@media (prefers-reduced-motion: reduce) {
	.samaanta-postlist__thumb img { transition: none; }
}


/* ---------------------------------------------------------------
   Fellow strip (home)

   A row of compact cards in place of the one-at-a-time carousel the
   home page used to carry, which stood 1,116px tall to show a single
   face.
   --------------------------------------------------------------- */

/* auto-fill, not auto-fit, and not a fixed column count. The block asks for
   six fellows but a young cohort may return four, and auto-fit would stretch
   four cards across the full width into portraits twice the intended size.
   auto-fill keeps the track size constant and simply leaves the empty tracks
   empty, so the cards look the same whatever the site holds. */
/* A column floor AND a ceiling. auto-fill alone keeps the track size fixed,
   which is right on a laptop but at 1920px produced nine tracks for four
   fellows and shrank the portraits to 171px. Taking the larger of the minimum
   and one-sixth of the row caps the count at six without a media query. */
.samaanta-fellow-strip {
	--gap: clamp(1rem, 2vw, 1.75rem);
	--cols: 6;
	display: grid;
	grid-template-columns: repeat(
		auto-fill,
		minmax(max(10rem, calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols))), 1fr)
	);
	gap: var(--gap);
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	padding: 0;
	list-style: none;
}

.samaanta-fcard {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.samaanta-fcard__media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--border);
}
.samaanta-fcard__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--wp--custom--transition--slow);
}
.samaanta-fcard:hover .samaanta-fcard__img { transform: scale(1.03); }

.samaanta-fcard__initials {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-2);
	line-height: var(--lh-h2);
	font-weight: 600;
	color: var(--wp--preset--color--border-strong);
}

.samaanta-fcard__cohort {
	margin: 0.75rem 0 0;
	color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-fcard__name {
	margin: 0.3rem 0 0;
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
}
.samaanta-fcard__link {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
/* Stretched over the card so the whole tile is the target, while the link's
   accessible name stays just the fellow's name. */
.samaanta-fcard__link::after {
	content: "";
	position: absolute;
	inset: 0;
}
.samaanta-fcard:hover .samaanta-fcard__link { color: var(--wp--preset--color--brand-red-dark); }
.samaanta-fcard__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: 3px;
}
.samaanta-fcard__meta {
	margin: 0.2rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--lh-small);
	color: var(--wp--preset--color--muted);
}

@media (max-width: 36rem) {
	.samaanta-fellow-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------------------------------------------------------------
   Update cards (home)
   --------------------------------------------------------------- */

.samaanta-update-cards {
	--gap: clamp(1.25rem, 2.5vw, 2.25rem);
	--cols: 3;
	display: grid;
	grid-template-columns: repeat(
		auto-fill,
		minmax(max(17rem, calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols))), 1fr)
	);
	gap: var(--gap);
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	padding: 0;
	list-style: none;
}

.samaanta-ucard {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.samaanta-ucard__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
}
.samaanta-ucard__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--wp--custom--transition--slow);
}
.samaanta-ucard:hover .samaanta-ucard__img { transform: scale(1.03); }

/* A post with no featured image gets a panel rather than a gap, so the row
   of cards keeps one baseline. */
.samaanta-ucard__fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1rem;
	background:
		linear-gradient(135deg, rgba(163, 32, 29, .06), rgba(163, 32, 29, 0) 62%),
		var(--wp--preset--color--surface-alt);
}
.samaanta-ucard__fallback > span {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: var(--lh-label);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--wp--preset--color--border-strong);
}

.samaanta-ucard__body { display: flex; flex-direction: column; }
.samaanta-ucard__cat {
	margin: 0.9rem 0 0;
	color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-ucard__title {
	margin: 0.35rem 0 0;
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
}
.samaanta-ucard__link { color: var(--wp--preset--color--ink); text-decoration: none; }
.samaanta-ucard__link::after { content: ""; position: absolute; inset: 0; }
.samaanta-ucard:hover .samaanta-ucard__link { color: var(--wp--preset--color--brand-red-dark); }
.samaanta-ucard__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: 3px;
}
.samaanta-ucard__meta {
	margin: 0.35rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--lh-small);
	color: var(--wp--preset--color--muted);
}
.samaanta-ucard__excerpt {
	margin: 0.6rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--lh-body);
	color: var(--wp--preset--color--ink-soft);
}


/* ---------------------------------------------------------------
   Section navigation

   Surfaces the pages that belong to a section on the pages of that
   section. Without it, nine published pages had no inbound link from
   anywhere on the site.
   --------------------------------------------------------------- */

.samaanta-secnav {
	margin-block-start: var(--wp--preset--spacing--50);
	padding-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--wp--preset--color--border);
}
.samaanta-secnav__title {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: var(--lh-label);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.samaanta-secnav__list {
	--cols: 4;
	display: grid;
	grid-template-columns: repeat(
		auto-fill,
		minmax(max(14rem, calc(100% / var(--cols))), 1fr)
	);
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.samaanta-secnav__item { min-width: 0; }
.samaanta-secnav__link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--wp--custom--touch-target);
	padding-block: 0.65rem;
	padding-inline-end: 1rem;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
	line-height: var(--lh-h4);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	border-block-end: 1px solid var(--wp--preset--color--border);
}
.samaanta-secnav__link::after {
	content: "\2192";
	margin-inline-start: auto;
	color: var(--wp--preset--color--border-strong);
	transition: transform var(--wp--custom--transition--fast), color var(--wp--custom--transition--fast);
}
.samaanta-secnav__link:hover {
	color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-secnav__link:hover::after {
	color: var(--wp--preset--color--brand-red-dark);
	transform: translateX(3px);
}
.samaanta-secnav__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: -2px;
}


/* ---------------------------------------------------------------
   What we do — the programme in strands
   --------------------------------------------------------------- */

.samaanta-strands {
	--cols: 4;
	display: grid;
	grid-template-columns: repeat(
		auto-fill,
		minmax(max(15rem, calc(100% / var(--cols))), 1fr)
	);
	gap: 0;
	margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
	padding: 0;
	list-style: none;
	border-block-start: 1px solid var(--wp--preset--color--border);
}
.samaanta-strand {
	position: relative;
	min-width: 0;
	padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1rem, 2vw, 1.5rem) clamp(1.3rem, 2.6vw, 1.8rem) 0;
	border-block-end: 1px solid var(--wp--preset--color--border);
}
.samaanta-strand__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--lh-h4);
}
.samaanta-strand__link { color: var(--wp--preset--color--ink); text-decoration: none; }
.samaanta-strand__link::after { content: ""; position: absolute; inset: 0; }
.samaanta-strand:hover .samaanta-strand__link { color: var(--wp--preset--color--brand-red-dark); }
.samaanta-strand__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-red-dark);
	outline-offset: -2px;
}
.samaanta-strand__text {
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--lh-body);
	color: var(--wp--preset--color--ink-soft);
	max-width: 34ch;
}


/* ---------------------------------------------------------------
   Our reach — counted, not typed
   --------------------------------------------------------------- */

.samaanta-reach {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: start;
}
.samaanta-reach__heading {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--h-2);
	line-height: var(--lh-h2);
	letter-spacing: -0.03em;
}
.samaanta-reach__intro .samaanta-lede { margin-block: 0.9rem 0; }
.samaanta-reach__more { margin: var(--wp--preset--spacing--30) 0 0; }

/* The figures sit with the heading, not with the map, so the left column
   carries something and the map gets a column of its own. Each figure is
   topped by a rule, so it needs clearance from the paragraph above it. */
.samaanta-reach__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 2rem);
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 0;
	list-style: none;
}
.samaanta-reach__stat {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding-block-start: 0.85rem;
	border-block-start: 2px solid var(--wp--preset--color--ink);
}
.samaanta-reach__value {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-1);
	font-weight: 600;
	line-height: 0.95;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.samaanta-reach__label {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: var(--lh-label);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.samaanta-reach__districts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.5rem;
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	padding: 0;
	list-style: none;
}
.samaanta-reach__district a,
.samaanta-reach__district {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding-inline: 0.7rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--lh-small);
	color: var(--wp--preset--color--ink-soft);
	text-decoration: none;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
}
.samaanta-reach__district { padding: 0; border: 0; background: none; }
.samaanta-reach__district a:hover {
	color: var(--wp--preset--color--brand-red-dark);
	border-color: var(--wp--preset--color--border-strong);
}

@media (max-width: 48rem) {
	.samaanta-reach { grid-template-columns: minmax(0, 1fr); }
}


/* ---------------------------------------------------------------
   Fellows across Nepal — the map

   The live site carries this as a flat JPEG whose numbers are typed
   into the artwork. Here the country is one SVG path and every pin is
   a link into a district archive, so the map cannot disagree with the
   fellows it is drawn from.
   --------------------------------------------------------------- */

.samaanta-map {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	align-items: center;
}

/* Capped, because everything drawn inside an SVG scales with it -- including
   the labels. Let the map run to 1,376px and a 12px district name becomes
   22px. The cap keeps type on the map close to type beside it. */
.samaanta-map__svg {
	display: block;
	width: 100%;
	max-width: 46rem;
	height: auto;
	overflow: visible;
}

/* The country reads as a quiet ground the pins sit on, not as a subject in
   its own right. The fill is `border` at low opacity rather than one of the
   surface tokens, because the block sits on a white page on /fellows/ and on
   `surface-alt` on the front page -- and `surface-alt`, `surface-warm` and
   the front page's band are all the same hex, so any surface token made the
   land vanish into one background or the other. A translucent fill lands a
   step darker than whatever is behind it. */
.samaanta-map__country {
	fill: var(--wp--preset--color--border);
	fill-opacity: 0.45;
	stroke: var(--wp--preset--color--border-strong);
	stroke-width: 1.5;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.samaanta-map__pin {
	fill: var(--wp--preset--color--brand-red-dark);
	fill-opacity: 0.82;
	stroke: var(--wp--preset--color--surface);
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
	transition: fill-opacity var(--wp--custom--transition--fast), r var(--wp--custom--transition--fast);
}

/* Every district Samaanta has not reached yet, drawn faintly. Six red dots on
   an empty outline say "here"; the same six against all seventy-seven say
   "here, and not yet there". */
.samaanta-map__rest {
	fill: var(--wp--preset--color--border-strong);
	fill-opacity: 0.45;
}

/* District names on the map. paint-order puts the halo behind the glyphs so
   a name stays legible where it crosses the coastline or another dot. */
.samaanta-map__name {
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	fill: var(--wp--preset--color--ink);
	stroke: var(--wp--preset--color--surface);
	stroke-width: 4;
	paint-order: stroke fill;
	stroke-linejoin: round;
}
.samaanta-map__leader {
	stroke: var(--wp--preset--color--border-strong);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

.samaanta-map__hit { fill: transparent; }
.samaanta-map__link { cursor: pointer; }
.samaanta-map__link:hover .samaanta-map__pin { fill-opacity: 1; }

/* The pins are small and sit on a pale ground, so a focus ring drawn on the
   circle itself disappears into the coastline. This draws it outside. */
.samaanta-map__link:focus-visible {
	outline: none;
}
.samaanta-map__link:focus-visible .samaanta-map__pin {
	fill-opacity: 1;
	stroke: var(--wp--preset--color--ink);
	stroke-width: 3;
}

.samaanta-map__stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: 0;
	list-style: none;
}
.samaanta-map__stat { display: flex; flex-direction: column; gap: 0.15rem; }
.samaanta-map__value {
	font-size: var(--wp--preset--font-size--h-2);
	font-weight: 600;
	line-height: var(--lh-h2);
	letter-spacing: var(--ls-h2, -0.03em);
	color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-map__label {
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--lh-small);
	color: var(--wp--preset--color--ink-soft);
}

/* The list is the map for anyone the SVG does not reach -- a screen reader, a
   printed page, a browser that failed to load it. It is not a legend.

   Grouped by province, because "six districts" and "six districts in four of
   the seven provinces" are different facts and the second is the one the
   section is making. */
.samaanta-map__groups {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: var(--wp--preset--spacing--30);
}
.samaanta-map__province {
	margin: 0 0 0.35rem;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: var(--lh-label);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.samaanta-map__list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
}
.samaanta-map__district {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-block: 0.4rem;
	border-block-end: 1px solid var(--wp--preset--color--border);
}
.samaanta-map__district a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.samaanta-map__district a:hover {
	color: var(--wp--preset--color--brand-red-dark);
	text-decoration: underline;
}
.samaanta-map__count {
	flex: none;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--muted);
}

.samaanta-map__note {
	margin-block: var(--wp--preset--spacing--30) 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}

.samaanta-map--bare { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 64rem) {
	.samaanta-map { grid-template-columns: minmax(0, 1fr); }
}

/* On a phone the map is about 350px wide, so a name set at map scale lands
   around 6px and the labels sit on top of each other. The grouped list below
   carries the same information at a size that can be read. */
@media (max-width: 40rem) {
	.samaanta-map__labels,
	.samaanta-map__leader { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.samaanta-map__pin { transition: none; }
}


/* ---------------------------------------------------------------
   Holiday update — the annual letter
   --------------------------------------------------------------- */

.samaanta-holiday {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	background: var(--wp--preset--color--surface-warm);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
}
.samaanta-holiday:not(:has(.samaanta-holiday__media)) {
	grid-template-columns: minmax(0, 1fr);
}
.samaanta-holiday__media { margin: 0; overflow: hidden; border-radius: var(--wp--custom--radius--md); }
.samaanta-holiday__img {
	display: block;
	width: 100%;
	height: clamp(11rem, 22vw, 16rem);
	object-fit: cover;
}
.samaanta-holiday__heading {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--h-2);
	line-height: var(--lh-h2);
	letter-spacing: -0.03em;
}
.samaanta-holiday__tagline {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--body-large);
	line-height: var(--lh-body);
	color: var(--wp--preset--color--brand-red-dark);
}
.samaanta-holiday__excerpt {
	margin: 0.9rem 0 0;
	max-width: 58ch;
	color: var(--wp--preset--color--ink-soft);
}
.samaanta-holiday__link { margin: 1.1rem 0 0; font-weight: 600; }

@media (max-width: 48rem) {
	.samaanta-holiday { grid-template-columns: minmax(0, 1fr); }
}
