/*
 * Rules theme.json cannot express. Loaded on the front end and, via
 * add_editor_style(), inside the block editor so the two match.
 *
 * Keep this file small. Anything expressible as a theme.json token or block
 * style belongs there instead, where the Site Editor can preview it.
 */

/* -------------------------------------------------------------------------
 * Long-form reading measure
 *
 * The 720px column is right for headings, tables and figures but far too wide
 * for a paragraph: measured against the real advance widths, 720px at 18px
 * holds about 88 characters in Source Serif 4. Cap the paragraph, not the
 * column (03-design-system/02-typography.md, "The Measure Rule").
 * ------------------------------------------------------------------------- */

/*
 * `li` joined `p` here on 9 September 2026. A-07's roadmap is a two-item list
 * inside the argument, and it was rendering in Source Sans 3 at 18/1.6 running
 * to the full 700px column while the paragraph above it was Source Serif 4 at
 * 20/1.7 capped at 640 — a change of typeface, size and measure mid-argument,
 * 60px past the paragraph's right edge. List prose in a reading column is
 * reading prose. `03-design-system/02-typography.md` said "Descendant
 * paragraphs" and was amended in the same commit (REVIEW-LOG ABT-07).
 */
.is-style-longform :is(p, li) {
	font-family: var(--wp--preset--font-family--longform);
	font-size: var(--wp--preset--font-size--reading);
	line-height: 1.7;
	hyphens: auto;
}

/*
 * The measure is capped on the paragraph and on the list *container*, never on
 * `li`: a list's marker sits in the `ul`'s own inline padding, so capping the
 * item pushes its text that far past the paragraph's right edge instead of
 * aligning with it.
 *
 * !important on the start margin is required, not sloppiness: core's
 * constrained layout emits
 *   .is-layout-constrained > :where(:not(.alignleft)...) {
 *       margin-left: auto !important; margin-right: auto !important; }
 * so any child narrower than contentSize is force-centred. A paragraph capped
 * at the measure would then sit indented from the headings beside it, which
 * reads as a broken left margin rather than as a measure — and a capped list
 * would sit 40px in from the paragraph above it, which is how this was found.
 * Scoped to the inline-start edge only; the end margin stays auto.
 */
.is-style-longform :is(p, ul, ol) {
	max-inline-size: 640px;
	margin-inline-start: 0 !important;
}

/* Headings, tables and figures keep the full column width. */
.is-style-longform :is(h1, h2, h3, h4, h5, h6, figure, table, .wp-block-table) {
	max-inline-size: none;
}

/*
 * UI and listing paragraphs outside long-form.
 *
 * The :not(.is-style-longform *) clause matters: without it this rule is more
 * specific than the long-form rule above and 60ch (634.8px in Source Serif 4 at
 * 20px) silently won, capping essays 5px narrower than the 640px the design
 * system specifies.
 */
.wp-block-post-content p:not(.is-style-lede):not(.is-style-longform *) {
	max-inline-size: 60ch;
	margin-inline-start: 0 !important;
}

/* -------------------------------------------------------------------------
 * Sticky-header anchor offsets (WCAG 2.2 · 2.4.11 Focus Not Obscured)
 *
 * The header is position: sticky, so an in-page target scrolled to the top of
 * the viewport lands underneath it. Both properties are needed: scroll-padding
 * covers programmatic and fragment scrolling, scroll-margin covers the element.
 * The custom property is set by assets/js/header.js and has a static default so
 * the offset is correct before the script runs.
 * ------------------------------------------------------------------------- */

html {
	--aias-header-compact-height: 56px;

	scroll-padding-top: var(--aias-header-compact-height);

	/*
	 * And the bottom, for the consent banner (WCAG 2.2 · 2.4.11 Focus Not
	 * Obscured). The banner is `position: fixed` at the foot of the viewport,
	 * so without this the browser happily scrolls a focused link to a position
	 * the banner covers. `--aias-consent-height` is published by
	 * `aias-core/assets/consent.js` while the banner is on screen and set to
	 * 0px the moment it is dismissed, so this costs a returning visitor
	 * nothing.
	 */
	scroll-padding-bottom: var(--aias-consent-height, 0px);
}

[id] {
	scroll-margin-top: var(--aias-header-compact-height);
}

/* -------------------------------------------------------------------------
 * Footer and section-head link targets
 *
 * Both sit inside a paragraph — the footer's separated by <br>, the section
 * head's trailing its H2 — so they are inline boxes, and a min-height does
 * nothing to an inline box; they need inline-block first. Measured before this
 * rule: all fourteen footer links 22px tall at 360, and the two section-head
 * links 116 x 21 and 139 x 21 at every width. All sixteen failed
 * WCAG 2.2 · 2.5.8, and `tests/a11y/templates.spec.js` caught them.
 *
 * Placed here rather than beside the components they belong to, so that their
 * specificity sits below every link rule that follows and stylelint's
 * no-descending-specificity ordering holds. That is the only reason the
 * section-head rule is not with the rest of `.aias-section-head`.
 * ------------------------------------------------------------------------- */

footer a,
.aias-section-head__link a {
	display: inline-block;
	min-height: 24px;
	padding-block: 0.125rem;
}

@media (pointer: coarse) {

	footer a,
	.aias-section-head__link a {
		min-height: 44px;
		padding-block: 0.625rem;
	}
}

/* -------------------------------------------------------------------------
 * Link underline weight on hover
 *
 * theme.json sets the colour change declaratively; the thickness change is not
 * expressible as a theme.json pseudo-state property.
 * ------------------------------------------------------------------------- */

a:where(:not(.wp-element-button)):hover {
	text-decoration-thickness: 2px;
}

/* -------------------------------------------------------------------------
 * Scripts the Latin faces do not cover
 *
 * The three webfonts carry Latin and Latin Extended Additional only. Sanskrit
 * set in Devanagari, and Tamil or Malayalam quotations, must fall to a face
 * that has those scripts. Marked up with a lang attribute, never by class, so
 * assistive technology gets the language too.
 * ------------------------------------------------------------------------- */

:where([lang|="sa"], [lang|="hi"], [lang|="mr"], [lang|="ne"]):not([lang$="-Latn"]) {
	font-family: "Noto Serif Devanagari", "Noto Sans Devanagari", serif;
}

:where([lang|="ta"]):not([lang$="-Latn"]) {
	font-family: "Noto Serif Tamil", "Noto Sans Tamil", serif;
}

:where([lang|="ml"]):not([lang$="-Latn"]) {
	font-family: "Noto Serif Malayalam", "Noto Sans Malayalam", serif;
}

/* Transliterated Sanskrit stays in the Latin faces and is only italicised. */
:where([lang="sa-Latn"]) {
	font-style: italic;
}

/* -------------------------------------------------------------------------
 * Motion
 *
 * The design system allows 150ms on colour and underline and nothing else.
 * A reduced-motion preference removes even that; state changes still happen,
 * instantly.
 * ------------------------------------------------------------------------- */

@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;
	}
}

/* -------------------------------------------------------------------------
 * Block styles
 *
 * Registered in inc/block-styles.php. Keep the two lists in step: a style
 * registered without CSS does nothing, and CSS without registration is
 * invisible to editors.
 * ------------------------------------------------------------------------- */

.is-style-lede {
	font-family: var(--wp--preset--font-family--longform);
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--grey-700);
	max-inline-size: 60ch;
	margin-inline-start: 0 !important;
}

.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--wp--preset--spacing--20);
}

/* EB Garamond ships real small caps; use them where the face is available. */
.is-style-eyebrow:where(.has-heading-font-family) {
	font-variant-caps: small-caps;
	letter-spacing: 0.04em;
	text-transform: none;
}

.is-style-pullquote-gold::before {
	content: "\201C";
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--display);
	line-height: 0.5;
	color: var(--wp--preset--color--gold-500);
}

.is-style-numbered {
	list-style: none;
	counter-reset: aias-numbered;
	padding-left: 0;
}

.is-style-numbered > li {
	counter-increment: aias-numbered;
	padding-left: 2.5rem;
	position: relative;
}

.is-style-numbered > li::before {
	content: counter(aias-numbered);
	position: absolute;
	left: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--wp--preset--color--maroon-700);
}

.is-style-caption-right figcaption {
	text-align: right;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--grey-700);
}

.is-style-tabular {
	font-family: var(--wp--preset--font-family--longform);
	font-variant-numeric: lining-nums tabular-nums;
}

/* Button variants. Primary is the theme.json default, so it needs no rule. */
.wp-block-button.is-style-secondary > .wp-element-button {
	background-color: transparent;
	color: var(--wp--preset--color--maroon-700);
}

.wp-block-button.is-style-quiet > .wp-element-button {
	background-color: transparent;
	border-color: transparent;
	color: var(--wp--preset--color--maroon-700);
	padding: var(--wp--preset--spacing--10) 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/*
 * The trailing arrow is part of the control, not decoration: it is what
 * distinguishes a quiet button from an ordinary body link, which is otherwise
 * identical (03-design-system/04-… — "text + arrow"). Generated rather than
 * authored so no editor can delete it, and margin-inline-start keeps it from
 * being underlined with the label.
 */
.wp-block-button.is-style-quiet > .wp-element-button::after {
	content: "\2192";
	display: inline-block;
	margin-inline-start: 0.375em;
	text-decoration: none;
}

.wp-block-button.is-style-secondary > .wp-element-button:hover {
	background-color: var(--wp--preset--color--maroon-100);
}

.wp-block-button.is-style-quiet > .wp-element-button:hover {
	background-color: transparent;
	color: var(--wp--preset--color--maroon-500);
	text-decoration-thickness: 2px;
}

/* -------------------------------------------------------------------------
 * Narrative rail
 *
 * 260px sticky rail beside the 720px column, collapsing below 1024px
 * (03-design-system/03-layout-grid-spacing.md).
 * ------------------------------------------------------------------------- */

@media (max-width: 1023px) {

	.aias-rail {
		display: none;
	}
}

/*
 * The title band must share the content column's left edge.
 *
 * On page-narrative the body sits at 444px (120 container + 260 rail + 64 gap)
 * while a constrained band centres its 720px inside the 1200px container, at
 * 360 — an 84px step between the page's own H1 and the first paragraph beneath
 * it, and three different left edges down one page.
 *
 * The band therefore uses flow layout rather than constrained. A constrained
 * container sets `margin-inline: auto !important` on every child, so an offset
 * applied to the children simply loses; padding on the band is the only thing
 * that moves them without a specificity fight.
 *
 * 324px = 260px rail + 64px gap, applied only where the rail exists.
 */
@media (min-width: 1024px) {

	.aias-narrative-band {
		padding-inline-start: 324px;
	}
}

.aias-narrative-band > * {
	max-inline-size: 720px;
}

/* -------------------------------------------------------------------------
 * Sticky header
 *
 * One header part, not two. Past 80px of scroll assets/js/header.js adds
 * .is-compact, which hides the utility bar and tightens the brand row. The
 * transition is CSS-only, so prefers-reduced-motion (above) disables it while
 * the state change still happens.
 * ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
 * The outer-edge bleed
 *
 * `03-…/03-layout-grid-spacing.md` asks for images that run off the outer edge
 * of a wide band at ≥ 1200. The distance from the wide container's edge to the
 * viewport's is not the root padding — with `useRootPaddingAwareAlignments` the
 * wide container is capped at `wide-size` and centred *inside* the padded box,
 * so once the viewport exceeds `wide-size` + 2 × padding the gap grows with the
 * window. It is the larger of the two: the root padding while the cap is not
 * reached, half the overshoot once it is.
 *
 * Stated once here because three components need the same number, and getting
 * it wrong by one term is a horizontal scrollbar on every page that uses it —
 * which is exactly what the first version of this shipped (1488px of document
 * in a 1440px window).
 * ------------------------------------------------------------------------- */

:root {
	--aias-root-pad: var(--wp--style--root--padding-right, 3rem);
	--aias-wide: var(--wp--style--global--wide-size, 1200px);
	--aias-bleed: max(var(--aias-root-pad), (100vw - var(--aias-wide)) / 2);
}


/* -------------------------------------------------------------------------
 * Hero — the editorial split (aias/hero-home)
 *
 * The typographic hero shipped in Phase 1 because the repository held no
 * photograph of the property. It was honest and it was also half a page wide:
 * measured at 1440, the H1 box was 1200px and the longest line inside it 525px,
 * so the right half of the fold carried nothing at all. That is what read as
 * unfinished — not the absence of a photograph, the absence of anything to the
 * right of the sentence.
 *
 * So the hero is now a 7/5 editorial split: the argument on cream at the left,
 * an image panel bleeding to the right viewport edge. The same 7/5 rhythm the
 * design system already gives feature bands, applied to the fold.
 *
 * THE IMAGE IS ATMOSPHERE, NOT THE PROPERTY. `03-design-system/05-…` forbids
 * standing in someone else's building for the heritage home, and this panel
 * does not claim to be it: no caption, empty alt, cropped to a lamplit path and
 * foliage at dusk with no identifiable façade, number plate or person. It is
 * ground, in the way a paper stock is ground. When the Institute's own
 * photography arrives, swap the file and the crop; nothing else here changes.
 * ------------------------------------------------------------------------- */

.aias-hero {

	/*
	 * The bleed is computed from 100vw, which in some engines counts the
	 * scrollbar. `clip` costs nothing when the arithmetic is exact and prevents
	 * a horizontal scrollbar when it is a pixel out; `hidden` would create a
	 * scroll container and break `position: sticky` on the header above.
	 */
	overflow: clip;
}

.aias-hero__grid {
	align-items: center;
}

.aias-hero__text {
	padding-block: var(--wp--preset--spacing--80);
}

.aias-hero__panel img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.aias-hero__panel .wp-block-image,
.aias-hero__panel figure {
	margin: 0;
}

/*
 * `aias-hero__media` and `aias-media-split__img` are on the figures so that
 * `inc/images.php` can tell the LCP image from the lazy ones at render time —
 * a pattern cannot write `fetchpriority` on the `<img>` itself without making
 * the block invalid in the editor. They carry their layout rules here too, so
 * they are hooks that do something rather than markers that do nothing.
 */
.aias-hero__media {
	block-size: 100%;
}

@media (min-width: 1024px) {

	.aias-hero {
		display: flex;
		align-items: center;
		min-height: min(68vh, 40rem);
	}

	.aias-hero__grid {
		width: 100%;
	}

	/*
	 * The panel is the full height of the band, and the image is taken out of
	 * flow to get there. In flow it cannot be: `height: 100%` on an image whose
	 * column is stretched to a line whose height that same image determines is
	 * circular, and the browser resolves it to the image's own aspect height —
	 * measured, a 1218px hero where 640 was asked for. Absolutely positioned,
	 * the band's height comes from the text column and the min-heights below,
	 * and the image simply fills whatever that is.
	 *
	 * The selector out-specifies core's `are-vertically-aligned-center`, which
	 * would otherwise centre the panel and leave cream above and below it.
	 */
	.wp-block-columns.aias-hero__grid > .wp-block-column.aias-hero__panel {
		align-self: stretch;
		position: relative;
		min-height: 26rem;
	}

	.aias-hero__panel .wp-block-image {
		position: absolute;
		inset: 0;
	}

	.aias-hero__panel img {
		width: calc(100% + var(--aias-bleed));
		max-width: none;
	}
}

/*
 * Below the desktop breakpoint the panel stops being a column beside the words
 * and becomes a band above them. `04-page-layouts/01-home.md` says "Stack" for
 * this hero on mobile, and stacking is also the only treatment that keeps its
 * contrast promise: the first attempt put the words over the photograph behind
 * a cream scrim, and at 768 the lede's last third sat on the brightest part of
 * the lamplit path. A scrim strong enough to fix that is strong enough to erase
 * the photograph, which is an argument for not overlaying it at all.
 *
 * `order` rather than a second markup order: the panel is the second column
 * because on desktop it is the right-hand one, and the source order that makes
 * a screen reader hear the argument before the atmosphere is the right one at
 * every width.
 */
@media (max-width: 1023px) {

	/*
	 * `row-gap: 0` because the columns' own gap would otherwise land between the
	 * image band and the eyebrow, on top of the text column's block padding.
	 */
	.aias-hero__grid {
		flex-wrap: wrap;
		row-gap: 0;
	}

	.wp-block-columns.aias-hero__grid > .wp-block-column.aias-hero__panel {
		order: -1;
		flex-basis: 100% !important;
	}

	/*
	 * Full-bleed both edges. On a phone the band is the picture; leaving the
	 * root padding around it makes it read as an illustration dropped into an
	 * article rather than as the top of the page.
	 */
	.aias-hero__panel img {
		height: clamp(14rem, 42vw, 22rem);
		object-position: 62% 40%;
		width: calc(100% + 2 * var(--wp--style--root--padding-right, 1.25rem));
		max-width: none;
		margin-inline-start: calc(0px - var(--wp--style--root--padding-right, 1.25rem));
	}

	.aias-hero__text {
		padding-block: var(--wp--preset--spacing--60);
	}

}


/* -------------------------------------------------------------------------
 * Media split (the home feature bands)
 *
 * `03-…/03-layout-grid-spacing.md`: "Feature split: 7/5 (image/text)
 * alternating direction each band; text column vertically centred; image
 * full-bleed on the outer edge on ≥ 1200px." Only the first two clauses were
 * built, because until now no band had an image to bleed.
 *
 * `is-bleed-start` / `is-bleed-end` name which edge the image runs off, so the
 * alternation stays in the pattern where a reader can see it rather than in an
 * :nth-child rule here. The image grows and, on a start bleed, is pulled back
 * by the same amount: a negative margin on the *column* would not do it, since
 * a flex item's width comes from its flex-basis and a negative margin only
 * shifts it and its siblings.
 * ------------------------------------------------------------------------- */

.aias-media-split {
	align-items: center;
}

.aias-media-split .aias-media-split__media img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.aias-media-split .aias-media-split__media .wp-block-image,
.aias-media-split .aias-media-split__media figure {
	margin: 0;
}

.aias-media-split__img {
	inline-size: 100%;
}

@media (min-width: 1200px) {

	.aias-media-split .aias-media-split__media img {
		width: calc(100% + var(--aias-bleed));
		max-width: none;
	}

	.aias-media-split.is-bleed-start .aias-media-split__media img {
		margin-inline-start: calc(0px - var(--aias-bleed));
	}
}


/* -------------------------------------------------------------------------
 * Sticky header
 *
 * Sticky sits on the template-part WRAPPER, not on the group inside it:
 * `position: sticky` only travels within its containing block, and the wrapper
 * is exactly as tall as the group it contains, so there was nowhere to stick.
 *
 * THE HEIGHT NEVER CHANGES, and that is the whole design of this rule.
 *
 * The first version hid the utility bar on scroll, taking the header from 249px
 * to 137px. It looked right and it was a hard NFR-02 failure: a sticky element
 * that changes height reflows everything below it, and measured cumulative
 * layout shift on an ordinary wheel scroll was **1.17** against a target of
 * 0.1. Scroll is not discrete input, so those shifts are not excluded.
 *
 * Instead the wrapper sticks at a NEGATIVE offset equal to the utility bar's
 * own height. The utility bar scrolls up out of the viewport exactly as it did
 * before; the brand row pins to the top; and the element's layout height is
 * constant throughout, so nothing below it ever moves. No JavaScript is
 * involved in the layout at all — assets/js/header.js now only publishes the
 * measured heights and toggles a class for the shadow.
 * ------------------------------------------------------------------------- */

header.wp-block-template-part {
	position: sticky;
	top: calc(0px - var(--aias-utility-height, 48px));
	z-index: 20;
}

.aias-header {
	border-bottom: 1px solid transparent;
}

.aias-header.is-compact {
	border-bottom-color: var(--wp--preset--color--cream-200);
	box-shadow: var(--wp--preset--shadow--float);
}

/* Same defect on the contents rail: its wrapper was the same height as the
   <aside>. The offset is the measured header height, not a guessed 6rem. */
.aias-rail > .wp-block-template-part {
	position: sticky;
	top: calc(var(--aias-header-compact-height) + var(--wp--preset--spacing--30));
}

/* The utility bar sits on maroon: links there need the light gold, and the
   search field needs a border that survives the dark ground. */
.aias-utility a {
	color: var(--wp--preset--color--gold-300);
}

.aias-utility .wp-block-search__input {
	background: var(--wp--preset--color--maroon-900);
	border-color: var(--wp--preset--color--gold-300);
	color: var(--wp--preset--color--cream-50);
}

.aias-utility :focus-visible {
	outline-color: var(--wp--preset--color--gold-300);
}

/*
 * Every target is at least 24px, and 44px on touch layouts (WCAG 2.2 · 2.5.8).
 *
 * Measured at 360, not assumed: the breadcrumb Home link was 38 x 22 and every
 * one of the fourteen footer links was 22px tall. Footer links sit inside a
 * paragraph separated by <br>, so they are inline and a min-height does nothing
 * to them — they need inline-block first. Separators are not links and need no
 * target of their own.
 */

/*
 * The footer sits flush against whatever ends the page.
 *
 * `.wp-site-blocks > * + *` carries the root 16px blockGap, so a 16px strip of
 * page cream fell between `main` and `footer`. On most templates that is
 * invisible: `main` already ends in ~92px of its own cream padding, and 108px
 * of cream reads the same as 92. On `front-page.html` it was not — `main` has
 * no bottom padding there and the page ends on the full-bleed maroon-700
 * residency band, so the site closed with maroon, a 16px cream stripe, then the
 * maroon-900 footer. Two coloured blocks with a hairline of nothing between
 * them reads as a band that failed to load, which is what the design review of
 * 11 September 2026 measured it as.
 *
 * The footer is always its own coloured region and never wants a gap above it.
 */
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/*
 * The rail's links keep the global link treatment — underlined, maroon —
 * because `03-design-system/02-typography.md` forbids a link distinguished by
 * colour alone. Only the hit area is widened, to the rail's full width. The
 * rule sits here rather than with the rest of `.aias-toc` so that every plain
 * `a` selector stays ahead of the maroon-ground `a:hover` overrides below
 * (stylelint `no-descending-specificity`), which is the same split
 * `.aias-breadcrumbs` already uses.
 */
.aias-toc__item a {
	display: block;
}

.aias-breadcrumbs a,
.aias-nav a,
.aias-utility a {
	display: inline-block;
	display: inline-block;
	min-height: 24px;
	padding-block: 0.25rem;
}

/*
 * Pagination numbers are one or two digits wide — "2" measured 8 x 21 on
 * `/people/` once that archive joined the a11y suite (30 Oct 2026) — so the
 * min-height that serves the text links above is not enough: the width has to
 * be floored too (WCAG 2.2 · 2.5.8). Centred so the digit does not sit at the
 * left of its own box. Previous/next carry the same rule for one consistent
 * row of targets.
 */
.wp-block-query-pagination a {
	display: inline-block;
	min-width: 24px;
	min-height: 24px;
	padding-block: 0.25rem;
	text-align: center;
}

@media (pointer: coarse) {

	.aias-breadcrumbs a,
	.aias-nav a,
	.aias-utility a {
		min-height: 44px;
		padding-block: 0.625rem;
	}

	.wp-block-query-pagination a {
		min-width: 44px;
		min-height: 44px;
		padding-block: 0.625rem;
	}

	/*
	 * The overlay toggle is a button, not a link, so the rule above misses it.
	 * Core ships it at 24x24 — the WCAG 2.2 · 2.5.8 floor, but the design
	 * system asks for 44px on touch layouts and this is the single control the
	 * whole mobile navigation depends on.
	 */
	.wp-block-navigation__responsive-container-open,
	.wp-block-navigation__responsive-container-close {
		min-width: 44px;
		min-height: 44px;
	}
}

/* -------------------------------------------------------------------------
 * Header layout
 *
 * `04-page-layouts/00-global-header-footer.md` specifies a 40px utility strip
 * and a single brand row. The strip measured 48px because the group carried
 * spacing|20 padding (16px) on top of a 32px link box; the padding is now
 * 0.25rem, which lands the strip on 40px exactly at pointer:fine. It grows on
 * coarse pointers and that is deliberate — the 44px touch target below wins
 * over the 40px visual, because a strip that is pretty and unhittable is worse
 * than one that is 8px taller.
 *
 * Brand, primary nav and the CTA share one row (`nowrap`): the logo is a
 * horizontal lockup that already carries the Institute's name, so the stacked
 * title + tagline it replaced would have repeated it.
 * ------------------------------------------------------------------------- */

.aias-utility {
	padding-block: 0.25rem;
}

/*
 * In button-only mode the search block still renders its (collapsed) input, and
 * that input's line-height gave the wrapper 40px — the strip measured 48px
 * against the 40px 04.0 asks for, even with the button itself at 32px.
 */
.aias-utility .wp-block-search,
.aias-utility .wp-block-search__inside-wrapper {
	align-items: center;
	height: 32px;
}

.aias-utility .wp-block-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 0.5rem;
	background: transparent;
	border: 1px solid var(--wp--preset--color--gold-300);
	color: var(--wp--preset--color--gold-300);
	line-height: 1;
}

/*
 * Core sizes the search icon with `min-width`/`min-height: 1.5em`, which a
 * plain width/height cannot override — the button stayed 40px tall and set the
 * whole strip to 48px against the 40px the spec asks for.
 */
.aias-utility .wp-block-search__button svg {
	width: 18px;
	min-width: 18px;
	height: 18px;
	min-height: 18px;
	fill: currentcolor;
}

.aias-utility .wp-block-search__button:hover {
	background: var(--wp--preset--color--maroon-700);
	color: var(--wp--preset--color--cream-50);
}

.aias-header__main {
	padding-block: 0.75rem;
}

.aias-header__row {
	min-height: 64px;
}

/*
 * The Site Logo block writes its width inline. The lockup is 2.35:1, so sizing
 * it by width makes its height depend on an aspect ratio nobody is looking at —
 * height is what has to line up with the nav beside it.
 */
.aias-brand .wp-block-site-logo,
.aias-brand .wp-block-site-logo img {
	width: auto;
	max-width: none;
}

.aias-brand .wp-block-site-logo img {
	height: 64px;
	display: block;
}

.aias-header.is-compact .aias-brand .wp-block-site-logo img {
	height: 40px;
}

.aias-header__end {
	flex: 0 1 auto;
	min-width: 0;
}

.aias-header__cta .wp-block-button__link {
	white-space: nowrap;
}

@media (max-width: 1023px) {

	.aias-brand .wp-block-site-logo img {
		height: 44px;
	}

	.aias-header__row {
		min-height: 56px;
	}

	/*
	 * The utility links wrapped to three rows at 360px, making the strip taller
	 * than the header it sits above. 04.0 puts them in the drawer and the footer
	 * on mobile, and the footer already carries all three — Research Library,
	 * Events, News & Notes — so hiding them here loses no destination. Support
	 * and search stay: they are the two the strip exists for.
	 */
	.aias-header .aias-utility__nav {
		display: none;
	}

	/*
	 * 04.0 puts the drawer below 1024px; core switches its Navigation overlay at
	 * a hard-coded 600px, so between 600 and 1023 the full list rendered inline
	 * and wrapped to two lines beside the logo (the header measured 105px at
	 * 768). Move core's own switch to the breakpoint the design uses.
	 */


	.aias-utility .wp-block-group {
		justify-content: flex-end;
	}
}

/*
 * 04.0 puts the drawer below 1024px; core switches its Navigation overlay at a
 * hard-coded 600px, so between 600 and 1023 the full list rendered inline and
 * wrapped to two lines beside the logo. Measured, the inline nav needs the full
 * 1200px wide container — seven items, one of them "About the Institute", plus
 * a 64px lockup and the CTA — so the drawer runs to 1199px rather than 1023px.
 */
@media (max-width: 1199px) {

	.aias-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.aias-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 599px) {

	/*
	 * The CTA stays in the bar at every width: it is the page's primary action
	 * and `tests/e2e/nav.spec.js` rightly asserts a keyboard visitor can reach
	 * it from the header. It wrapped to two lines at 360 only because the
	 * utility links were still occupying the row above; with those gone and the
	 * lockup at 40px it fits on one line, so it is compacted rather than hidden.
	 */
	.aias-header .aias-header__cta .wp-block-button__link {
		padding: 0.5rem 0.75rem;
		font-size: var(--wp--preset--font-size--xs);
	}

	.aias-brand .wp-block-site-logo img {
		height: 40px;
	}
}

/* -------------------------------------------------------------------------
 * Primary navigation dropdowns
 *
 * `04-page-layouts/00-global-header-footer.md`: "Panel `white`, border
 * `cream-200`, shadow token, padding `40`; max width 640px", opened as a
 * disclosure — "Esc closes and returns focus to the toggle; … Tab leaves the
 * panel and closes it — focus is never trapped (WCAG 2.1.2)".
 *
 * The behaviour is core's, not ours. `openSubmenusOnClick: true` on the
 * Navigation block renders each parent as a real <button> with aria-expanded
 * and gives exactly that disclosure, including the Esc and click-outside
 * handling. Writing our own would be a worse copy of it. What is left here is
 * the panel's appearance and the chevron's state.
 *
 * Below 1200 the whole navigation is a drawer (see "Header layout"), where core
 * renders the submenus as stacked accordions. The panel rules are therefore
 * scoped to the width at which there is a bar to hang a panel from; inside the
 * drawer a white floating card over a cream sheet would read as a modal on top
 * of a modal.
 * ------------------------------------------------------------------------- */

@media (min-width: 1200px) {

	.aias-nav .wp-block-navigation__submenu-container {
		min-inline-size: 15rem;
		max-inline-size: 40rem;
		padding: var(--wp--preset--spacing--30);
		border: 1px solid var(--wp--preset--color--cream-200);
		border-radius: 2px;
		background-color: var(--wp--preset--color--white);
		box-shadow: var(--wp--preset--shadow--float);
	}

	/*
	 * Core sets its own padding on every submenu item. The rows need to be
	 * 44px-tall targets with the panel's own padding around them, not the
	 * 0.5em/1em core default that leaves them touching the border.
	 */
	.aias-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		display: block;
		padding: 0.5rem var(--wp--preset--spacing--30);
		border-radius: 2px;
	}

	.aias-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
		background-color: var(--wp--preset--color--cream-100);
		color: var(--wp--preset--color--maroon-700);
	}

	/*
	 * The 3px underline that marks the current section is drawn on the item's
	 * <a>. A submenu parent is a <button>, so the same rule missed it and an
	 * open section showed no current-state at all.
	 */
	.aias-nav .current-menu-ancestor > .wp-block-navigation-submenu__toggle,
	.aias-nav .current-menu-item > .wp-block-navigation-submenu__toggle {
		box-shadow: inset 0 -3px 0 var(--wp--preset--color--maroon-700);
	}
}

/* -------------------------------------------------------------------------
 * The drawer's submenus (below 1200)
 *
 * Core renders every submenu open inside the overlay, which is right — an
 * accordion that starts closed hides the very links the drawer exists to show —
 * but its defaults were written for a menu of one level: rows carry no target
 * height, and the parent reads as one more item rather than as the head of a
 * group. The drawer went from seven rows to twenty-two the day the dropdowns
 * landed, so what was a tolerable default became the longest screen here.
 *
 * The child indent is left as core's 2rem. Core sets it with a selector that
 * repeats `.wp-block-navigation__submenu-container` four times, and the only
 * way to override it is to repeat it five. A specificity war with core over
 * 16px is a rule that breaks on a core release; the indent it gives is fine.
 * ------------------------------------------------------------------------- */

@media (max-width: 1199px) {

	/* 44px rows, as 03-…/03-… requires of every touch target. */
	.aias-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	/* The section head is the group's label, not a sibling of its children. */
	.aias-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
		color: var(--wp--preset--color--maroon-900);
		font-family: var(--wp--preset--font-family--heading);
		font-size: var(--wp--preset--font-size--lg);
	}
}


/* The chevron turns when the panel is open, at every width. */
.aias-nav .wp-block-navigation__submenu-icon {
	transition: transform 150ms ease-out;
}

.aias-nav .wp-block-navigation-submenu__toggle[aria-expanded="true"] .wp-block-navigation__submenu-icon {
	transform: rotate(180deg);
}


/* -------------------------------------------------------------------------
 * Breadcrumbs
 *
 * `Home › Section › Page` per 04.0: sm, grey-700, grey-500 separators, current
 * page not a link. On narrow screens the middle collapses to `Home › … › Page`
 * rather than wrapping to three lines — the trail is orientation, and a trail
 * that costs three lines of a phone screen has stopped paying for itself.
 * ------------------------------------------------------------------------- */

.aias-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aias-breadcrumbs__item {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.aias-breadcrumbs__sep {
	color: var(--wp--preset--color--grey-500);
}

.aias-breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--grey-700);
}

@media (max-width: 599px) {

	.aias-breadcrumbs__item:not(:first-child):not(:last-child) {
		display: none;
	}

	/* Only when something was actually hidden: last item is not the second. */
	.aias-breadcrumbs__item:last-child:not(:nth-child(2)) .aias-breadcrumbs__sep::before {
		content: "… ";
	}
}

/* -------------------------------------------------------------------------
 * Links on dark grounds
 *
 * elements.link sets maroon-700, which is the right colour on cream and an
 * invisible one on maroon-900 (1.3:1). Every maroon surface — utility bar,
 * footer, CTA band — re-points links to gold-300 (8.26:1 on maroon-900,
 * 6.18:1 on maroon-700). Buttons are excluded: they carry their own ground.
 * ------------------------------------------------------------------------- */

.has-maroon-900-background-color a:where(:not(.wp-element-button)),
.has-maroon-700-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--gold-300);
}

.has-maroon-900-background-color a:where(:not(.wp-element-button)):hover,
.has-maroon-700-background-color a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--cream-50);
}

/* The site title in the footer sits on maroon and must not
   inherit maroon-900. */
.has-maroon-900-background-color .wp-block-site-title a {
	color: var(--wp--preset--color--cream-50);
}

/* -------------------------------------------------------------------------
 * Consent banner
 *
 * Rendered by inc/consent.php on wp_footer, not by a pattern — see that file
 * for why. Fixed to the foot of the viewport and `hidden` in the markup, so it
 * occupies no space in the flow and shifts nothing when it appears.
 * ------------------------------------------------------------------------- */

.aias-consent {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 40;
	padding-block: var(--wp--preset--spacing--40);
	padding-inline: clamp(1.25rem, 4vw, 3rem);
	border-top: 2px solid var(--wp--preset--color--gold-500);
	box-shadow: var(--wp--preset--shadow--float);
}

.aias-consent:focus {
	outline: none;
}

.aias-consent__inner {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	align-items: center;
	justify-content: space-between;
	max-inline-size: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.aias-consent__text {
	margin: 0;
	max-inline-size: 70ch;
}

.aias-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

.aias-consent__accept,
.aias-consent__decline {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	padding: 0.5rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 2px;
	cursor: pointer;
	min-height: 44px;
}

.aias-consent__accept {
	background-color: var(--wp--preset--color--gold-500);
	color: var(--wp--preset--color--maroon-900);
}

.aias-consent__accept:hover {
	background-color: var(--wp--preset--color--gold-300);
}

/* On maroon the maroon-700 outline would be invisible; gold-300 is 8.26:1. */
.aias-consent__decline {
	background-color: transparent;
	border-color: var(--wp--preset--color--gold-300);
	color: var(--wp--preset--color--gold-300);
}

.aias-consent__decline:hover {
	background-color: var(--wp--preset--color--maroon-700);
	color: var(--wp--preset--color--cream-50);
}

.aias-consent :focus-visible {
	outline: 2px solid var(--wp--preset--color--gold-300);
	outline-offset: 2px;
}

/* Emitted by inc/consent.php; only ever seen on paper. */
.aias-print-footer {
	display: none;
}

/*
 * The 48px gold heading ornament from
 * 03-design-system/03-layout-grid-spacing.md.
 * Left-aligned, because centred text is reserved for pull-quotes, the facts
 * strip and the 404.
 */
.wp-block-separator.is-style-aias-rule {
	width: 48px;
	max-width: 48px;
	height: 2px;
	margin-inline: 0 auto;
	border: 0;
	background-color: var(--wp--preset--color--gold-500);
	opacity: 1;
}

/* -------------------------------------------------------------------------
 * Section contents
 *
 * A ruled list, never a card grid (03.4): these are documents, and a section
 * landing is a table of contents.
 * ------------------------------------------------------------------------- */

/*
 * The "on this page" rail (`aias/toc`).
 *
 * It shipped with no styling at all: `grep aias-toc` across this stylesheet
 * returned nothing while `.aias-section-contents` had seven rules, so the block
 * rendered as a UA-default `<ul>`: disc bullets and 40px of
 * `padding-inline-start`, inside a 260px column whose every neighbour aligns
 * to the container edge.
 * The rail was the one element on `page-narrative` that did not, and on a short
 * page (A-07 is 280 words) three default bullets above an empty column is most
 * of the reason the page read as unfinished. Found by the design review of
 * 9 September 2026; catalogued as a component at
 * `03-design-system/04-components-and-patterns.md:12` all along.
 *
 * Deliberately quiet: this is a wayfinding aid beside the argument, not a
 * second navigation, so it borrows `.aias-section-contents`'s tokens rather
 * than inventing any. There is no scroll-spy state here because the block
 * emits none — `blocks/toc/render.php` writes plain anchors and no
 * `aria-current`, and a highlight nothing updates is worse than none.
 */
.aias-toc__heading {
	margin: 0 0 var(--wp--preset--spacing--30);
}

.aias-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--cream-200);
}

.aias-toc__item {
	padding-block: var(--wp--preset--spacing--20);
	border-bottom: 1px solid var(--wp--preset--color--cream-200);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.4;
}

/* Nested headings step in; the block emits --level-1, --level-2, … */
.aias-toc__item--level-2 {
	padding-inline-start: var(--wp--preset--spacing--30);
}

.aias-toc__item--level-3 {
	padding-inline-start: var(--wp--preset--spacing--40);
}


.aias-section-contents__heading {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--maroon-700);
}

.aias-section-contents__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--cream-200);
}

.aias-section-contents__item {
	padding-block: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--cream-200);
}

.aias-section-contents__title {
	margin: 0 0 0.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 500;
}

.aias-section-contents__link {
	text-decoration: none;
}

.aias-section-contents__link:hover {
	text-decoration: underline;
}

.aias-section-contents__summary {
	margin: 0;
	max-inline-size: 68ch;
	color: var(--wp--preset--color--grey-700);
	font-size: var(--wp--preset--font-size--sm);
}

/* -------------------------------------------------------------------------
 * A-Z index (aias/az-index)
 *
 * Twenty-seven targets in one bar, and they must not shrink below a hittable
 * size to fit - 27 x 44px is 1188px, wider than the content column at any
 * viewport this site has. So the bar wraps, and WCAG 2.2 - 2.5.8 wins over
 * keeping the alphabet on one line.
 *
 * It is a grid rather than a wrapping flex row because flex leaves an orphan:
 * at 1440 exactly twenty-six letters fitted and Z sat alone on a second row.
 * `auto-fit` + `minmax` divides the width into equal columns and the letters
 * fill them, so every row is full and the columns line up vertically. Measured:
 * one row at 1440 and 1024, two at 768, four at 360 on a touch device - where
 * every target is 44 x 44.
 *
 * Letters with nothing behind them are rendered by the block as <span>, not a
 * disabled link: there is nothing to activate, so nothing belongs in the tab
 * order. They are grey-500 on cream-50 (5.4:1), which is above the text
 * floor even though inactive controls are exempt from it - a letter a visitor
 * cannot read is not communicating "empty", it is just noise.
 *
 * The active letter is a filled block rather than an underline. The bar sits
 * directly above the results it governs, and an underline here would read as an
 * ordinary link hover on a page whose links are all underlined.
 * ------------------------------------------------------------------------- */

.aias-az-index__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(2rem, 1fr));

	/*
	 * `spacing-10`, not a raw 0.125rem. There is no 2px step on the scale, and
	 * `wp/CLAUDE.md` §3 is unqualified about spacing coming from the presets —
	 * the same correction the card CSS needed in this session's design review.
	 * At 4px the twenty-seven targets still fit the rows measured below.
	 */
	gap: var(--wp--preset--spacing--10);
	margin: 0;
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: 0;
	list-style: none;
	border-block: 1px solid var(--wp--preset--color--cream-200);
}

.aias-az-index__item {
	margin: 0;
}

.aias-az-index__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 2rem;
	min-block-size: 2rem;
	padding-inline: 0.375rem;
	border-radius: 2px;
	color: var(--wp--preset--color--maroon-700);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--md);
	line-height: 1;
	text-decoration: none;
}

a.aias-az-index__link:hover {
	background-color: var(--wp--preset--color--cream-100);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.aias-az-index__link[aria-current="true"] {
	background-color: var(--wp--preset--color--maroon-700);
	color: var(--wp--preset--color--cream-50);
}

a.aias-az-index__link[aria-current="true"]:hover {
	background-color: var(--wp--preset--color--maroon-500);
	color: var(--wp--preset--color--cream-50);
}

.aias-az-index__link.is-empty {
	color: var(--wp--preset--color--grey-500);
}

@media (pointer: coarse) {

	.aias-az-index__list {
		grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
	}

	.aias-az-index__link {
		min-block-size: 44px;
	}
}

/* -------------------------------------------------------------------------
 * Timeline (aias/timeline + aias/timeline-period)
 *
 * P-06 asks for a vertical timeline "on all sizes" — no horizontal variant at
 * any width. A horizontal timeline of fourteen periods either scrolls
 * sideways, which hides most of it, or compresses each period to a few words,
 * which is not what these entries are.
 *
 * The rule is drawn on the list, not per item, so it is continuous rather than
 * fourteen abutting segments; the markers sit on top of it. Colours per 03.4:
 * maroon-700 line, gold-500 markers, grey-700 dates.
 * ------------------------------------------------------------------------- */

.aias-timeline {
	position: relative;
	margin: 0;
	padding: 0 0 0 var(--wp--preset--spacing--50);
	list-style: none;
}

.aias-timeline::before {
	content: "";
	position: absolute;
	inset-block: 0.55rem auto;
	inset-inline-start: 0;
	block-size: calc(100% - 0.55rem);
	inline-size: 1px;
	background: var(--wp--preset--color--maroon-700);
}

.aias-timeline__period {
	position: relative;
	padding-block-end: var(--wp--preset--spacing--60);
}

.aias-timeline__period:last-child {
	padding-block-end: 0;
}

.aias-timeline__period::before {
	content: "";
	position: absolute;
	inset-block-start: 0.4rem;

	/* Half the marker, so it is centred on the 1px rule rather than beside it. */
	inset-inline-start: calc(0px - var(--wp--preset--spacing--50) - 4px);
	inline-size: 9px;
	block-size: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold-500);
}

.aias-timeline__dates {
	margin: 0 0 0.15rem;
	color: var(--wp--preset--color--grey-700);
	font-family: var(--wp--preset--font-family--longform);
	font-size: var(--wp--preset--font-size--sm);
	font-variant-numeric: tabular-nums lining-nums;
}

.aias-timeline__title {
	margin: 0 0 0.35rem;
}

.aias-timeline__text {
	margin: 0;
	max-inline-size: 62ch;
	color: var(--wp--preset--color--grey-700);
}

/* -------------------------------------------------------------------------
 * Card (aias/card)
 *
 * One block, one stylesheet section, `.is-variant-*` per variant (WP-25). Only
 * `person` exists today; Phase 3's variants extend this block rather than
 * adding their own.
 *
 * The person card has no border and no background: `03-design-system/04-…`
 * reserves the 1px rule for the event card, and a nineteen-card grid of boxed
 * portraits reads as a product catalogue rather than a faculty list. Hover
 * underlines the name and nothing else — no lift, no shadow, no scale (03.4,
 * "Cards (hover: underline title only, no lift)").
 * ------------------------------------------------------------------------- */

.aias-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.aias-card__media {
	position: relative;
	overflow: hidden;

	/*
	 * The ratio lives on the container, not the image, so the monogram
	 * fallback occupies exactly the same space as a portrait. Without it a
	 * grid row with one missing photograph collapses to a different height and
	 * the names stop lining up.
	 */
	aspect-ratio: 4 / 5;
	container-type: inline-size;
	background-color: var(--wp--preset--color--cream-100);
}

.aias-card__portrait {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;

	/* Faces sit in the upper half of a portrait; a centre crop beheads them. */
	object-position: center 20%;
}

/*
 * Monogram fallback. Two of the nineteen people supplied no portrait, and the
 * Institute is still collecting the rest, so this is the state the page ships
 * in rather than an edge case. Initials, not a silhouette: a stock avatar is a
 * picture of nobody in the slot reserved for a picture of someone.
 */
.aias-card__monogram {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	block-size: 100%;
	background-color: var(--wp--preset--color--cream-200);
	color: var(--wp--preset--color--maroon-700);
	font-family: var(--wp--preset--font-family--heading);

	/*
	 * Sized against its own box, not the type scale. A fixed size read as 9.1%
	 * cap height in the 220px compact box and 5.6% in a 359px one — the same
	 * two initials looking like two different design decisions across one page.
	 * `cqw` needs the container declared on `.aias-card__media`, which is
	 * already the fixed-ratio box.
	 */
	font-size: 26cqw;
	font-weight: 400;
	letter-spacing: 0.06em;

	/* Optical centring: the letter-spacing above pads the right side only. */
	text-indent: 0.06em;
}

.aias-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
}

.aias-card__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 500;
	line-height: 1.2;
}

.aias-card__link {
	display: inline-block;
	text-decoration: none;
}

.aias-card__link:hover {
	text-decoration: underline;
}

/*
 * WCAG 2.2 · 2.5.8: every target at least 24 x 24 CSS px. The compact name is
 * set at `md`, which gives a ~22px line box, and an inline link can be no
 * taller than its line. Padding rather than a larger type size, which would
 * contradict the scale — and axe does not test 2.5.8, so nothing automated was
 * ever going to catch this.
 */
.aias-card.is-size-compact .aias-card__link {
	padding-block: 2px;
}

.aias-card__affiliation {
	margin: 0;
	color: var(--wp--preset--color--grey-700);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
	text-wrap: pretty;
}

.aias-card__excerpt {

	/*
	 * On top of the body's own `spacing-10` gap, so the space between the
	 * affiliation and the biography is `spacing-20` — the meta line belongs to
	 * the name, the prose is a new thing.
	 */
	margin: var(--wp--preset--spacing--10) 0 0;

	/*
	 * `md`, not `sm`. 03-…/02 attaches the 60ch measure to listing paragraphs
	 * at `md`, and `sm` is 15px — under the 17px floor `wp/CLAUDE.md` §4 sets
	 * for body text. This is the only prose on the card; the affiliation above
	 * it is a meta line and stays at `sm`.
	 */
	max-inline-size: 60ch;
	color: var(--wp--preset--color--grey-900);
	font-family: var(--wp--preset--font-family--longform);
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.6;
	text-wrap: pretty;
}

/*
 * The compact card is the home page's five-up scholars band, where five names
 * share the width three normally would. Only the type steps down — the portrait
 * ratio, the monogram and the hover behaviour are the same card.
 */
.aias-card.is-size-compact .aias-card__name {
	font-size: var(--wp--preset--font-size--md);
}

.aias-card.is-size-compact .aias-card__affiliation {
	font-size: var(--wp--preset--font-size--sm);
}

/*
 * The large card is the lead of a group — the Academic Director above the
 * Steering Committee grid (A-04). Side-by-side from 600px because at 360 a
 * 4:5 portrait beside a paragraph leaves both too narrow to read.
 */
@media (min-width: 640px) {

	.aias-card.is-size-large {
		flex-direction: row;
		gap: var(--wp--preset--spacing--50);
		align-items: start;
	}

	/*
	 * Proportional, not a fixed 220px. The lead card must read as the lead, and
	 * a fixed basis stopped doing that the moment the people templates went
	 * full 1200px wide: the four-up grid below grew to 276px columns while the
	 * Academic Director's portrait stayed at 220, so the most senior person on
	 * the page had the smallest photograph on it. The clamp keeps a floor for
	 * the tablet range, where a percentage would collapse it.
	 */
	.aias-card.is-size-large .aias-card__media {
		flex: 0 0 clamp(200px, 28%, 340px);
	}

	.aias-card.is-size-large .aias-card__body {
		flex: 1 1 0;
	}

	.aias-card.is-size-large .aias-card__name {
		font-size: var(--wp--preset--font-size--xl);
	}
}

/* -------------------------------------------------------------------------
 * Letter (is-style-letter, pattern aias/letter)
 *
 * A-03 Founder's Note: portrait beside a long-form letter, closing on a
 * signature.
 *
 * The portrait column collapses when there is no portrait. The core featured
 * image block renders no element at all for a page without one, and the
 * Institute has not
 * supplied the founder's photograph, so without this the letter would sit
 * beside a 240px hole for however many months that takes. `:has()` does the
 * test that a pattern cannot: a pattern file runs once at registration, with no
 * post in scope, so it has nothing to ask.
 *
 * Each selector is kept on one line even though it names fewer elements than
 * the markup has. Split across lines they read as a selector list that has lost
 * its commas, and the repair someone would reach for is silent and wide: adding
 * commas turns the second rule into three loose ones, and
 * `.wp-block-separator + p` alone restyles every paragraph after every
 * separator on the site.
 * ------------------------------------------------------------------------- */

.is-style-letter .wp-block-column:first-child:not(:has(img)) {
	display: none;
}

/*
 * The signature sits under the gold rule, set in the reading face and italic so
 * it reads as a hand rather than as another paragraph of the letter.
 */
.is-style-letter .wp-block-column .wp-block-separator + p {
	margin-block-start: 0;
	font-family: var(--wp--preset--font-family--longform);
	font-style: italic;
}

/* -------------------------------------------------------------------------
 * People grids — the breakpoints the design system specifies
 *
 * `03-design-system/03-layout-grid-spacing.md`: people grids are 4-up at
 * ≥ 1200, 3-up at ≥ 768 and 2-up on mobile. The Grid layout's own controls
 * cannot express that. `minimumColumnWidth` is a floor, not a breakpoint, and
 * one low enough to give two columns at 360 (about 9rem) is low enough to give
 * four at 768 — while `columnCount` is only a cap, so it cannot force three.
 * Set together they produced 4/2/1 on A-04 and 3/2/1 on A-06 against a spec of
 * 4/3/2 and 3/3/2.
 *
 * So `columnCount` alone survives in the patterns, where it states the widest
 * intent — four on A-04, three on A-06, five on the home band — and the two
 * narrower steps, which are the same everywhere, are stated once here.
 *
 * Scoped by `:has(.aias-card)` rather than a class on the Post Template,
 * because a pattern may not carry custom classes (the pattern audit enforces
 * it) and a registered block style per column count would be three styles
 * describing one rule.
 * ------------------------------------------------------------------------- */

@media (max-width: 767px) {

	.wp-block-post-template.is-layout-grid:has(.aias-card) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 1199px) {

	.wp-block-post-template.is-layout-grid:has(.aias-card) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* -------------------------------------------------------------------------
 * Room beneath the consent banner (WCAG 2.2 · 2.4.11)
 *
 * `scroll-padding-bottom` alone is not enough: it tells the browser where to
 * stop scrolling, but at the very end of the document there is nothing left to
 * scroll, so the last few focusable elements stay under the banner however the
 * scroll is padded. This adds the missing document height, and only while the
 * banner is actually on screen — the custom property is 0px otherwise.
 * ------------------------------------------------------------------------- */

body {
	padding-block-end: var(--aias-consent-height, 0px);
}


/* -------------------------------------------------------------------------
 * Visually hidden
 *
 * The clip-path form rather than `display: none` or `visibility: hidden`, both
 * of which remove the text from the accessibility tree along with the screen —
 * which is the opposite of what is wanted. Used for the suffix that makes a
 * repeated "Details" link unique (WCAG 2.4.4) and for the filter's live region.
 *
 * Not `.screen-reader-text`: that name belongs to core's block-library
 * stylesheet, and redefining it here would mean this file silently depending on
 * whether that stylesheet happened to load on a given template.
 * ------------------------------------------------------------------------- */

.aias-visually-hidden {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* -------------------------------------------------------------------------
 * Badge (03-design-system/04-…)
 *
 * "Type/mode/status labels: xs, small caps or uppercase, 2px radius,
 * maroon-100 field + maroon-900 text (12.41:1) or 1px grey-500 outline on
 * cream; never a pill, never colour-only (text always present)."
 *
 * The last clause is the load-bearing one and it is enforced by the markup, not
 * here: `Display::badge()` has no icon-only form to call. These rules only make
 * sure the two styles stay distinguishable without relying on hue — one is a
 * filled field, the other an outline, which is a difference in shape.
 * ------------------------------------------------------------------------- */

.aias-badge {
	display: inline-block;
	padding: 0.125em 0.5em;

	/* 2px, not a pill — a pill reads as a status chip you can dismiss. */
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.aias-badge.is-style-field {
	background-color: var(--wp--preset--color--maroon-100);
	color: var(--wp--preset--color--maroon-900);
}

.aias-badge.is-style-outline {
	border: 1px solid var(--wp--preset--color--grey-500);
	color: var(--wp--preset--color--grey-900);

	/* Compensate for the border so both styles sit on the same baseline. */
	padding: calc(0.125em - 1px) calc(0.5em - 1px);
}

/* -------------------------------------------------------------------------
 * Card — the WP3.2 variants
 *
 * Everything above under `.aias-card` is shared; these are the parts only the
 * programme, event, publication and resource variants use. Kept together rather
 * than filed under each variant because most of them are used by two or three,
 * and a rule copied per variant is a rule that gets fixed in one of them.
 * ------------------------------------------------------------------------- */

.aias-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10);
	margin: 0;
}

/*
 * A badge in a card may wrap. `.aias-badge` is `nowrap` so that a short label
 * is never broken, but a series name is the Institute's own — "Sree Sankara
 * Sanskrit Textual Study Circle" — and set in one line it is wider than a card
 * at 360px, where it pushed the whole page 6px past the viewport. Two lines
 * inside the rectangle are still the catalogue's badge: text present, 2px
 * corners, no pill.
 */
.aias-card__badges .aias-badge {
	max-inline-size: 100%;
	white-space: normal;
}

/*
 * Facts and citation lines. `03-…/02-…` puts every date and fee cell in Source
 * Serif 4 with lining tabular figures; Source Sans 3 ships no `tnum` tag, so
 * the family has to change with the numerals. This lives here rather than in
 * theme.json because theme.json's `styles.blocks` keys are resolved per block
 * and would need one entry per block repeating the same declaration.
 */
.aias-card__facts {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	margin: var(--wp--preset--spacing--10) 0 0;
}

.aias-card__fact {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
}

.aias-card__fact dt {
	color: var(--wp--preset--color--grey-700);
}

.aias-card__fact dd {
	margin: 0;
	color: var(--wp--preset--color--grey-900);
	font-family: var(--wp--preset--font-family--longform);
	font-variant-numeric: lining-nums tabular-nums;
}

.aias-card__meta {
	margin: 0;
	color: var(--wp--preset--color--grey-700);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
	text-wrap: pretty;
}

.aias-card__authors {
	margin: 0;
	color: var(--wp--preset--color--grey-900);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
	text-wrap: pretty;
}

.aias-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin: var(--wp--preset--spacing--10) 0 0;
}

.aias-card__action {
	color: var(--wp--preset--color--maroon-700);
	font-size: var(--wp--preset--font-size--sm);

	/*
	 * WCAG 2.2 · 2.5.8 — every target at least 24 x 24 CSS px. An inline link is
	 * no taller than its line box, and `sm` gives about 22px. The same padding
	 * the compact card's name already carries, for the same reason, and axe does
	 * not test 2.5.8 so nothing automated would have caught it.
	 */
	padding-block: 2px;
	text-decoration: none;
}

.aias-card__action::after {
	content: "\2192";
	display: inline-block;
	margin-inline-start: 0.375em;
}

.aias-card__action:hover {
	text-decoration: underline;
}

/*
 * The event date block. EB Garamond per 03-…/04-…; deliberately WITHOUT
 * tabular figures — the 30 Aug 2026 build correction removed `tnum` from the
 * event-card row after measuring that no shipped face retains the tag, and a
 * declaration that does nothing is worse than none because the next reader
 * believes it.
 */
.aias-card__date {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	line-height: 1;
	color: var(--wp--preset--color--maroon-700);
}

.aias-card__day {
	font-size: var(--wp--preset--font-size--xl-2);
	font-weight: 400;
}

.aias-card__month {
	margin-block-start: 0.25em;
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-700);
}

.aias-card__date.is-undated {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.4;
	color: var(--wp--preset--color--grey-700);
}

/*
 * The event card is boxed (03-…/04-…: "1px border") — the box itself is the
 * shared rule below, with the programme card. Side by side with its date block
 * in a list, so that a run of them scans as a diary.
 */
.aias-card.is-variant-event {
	flex-direction: row;
	gap: var(--wp--preset--spacing--30);
	align-items: start;
}

.aias-card.is-variant-event .aias-card__date {
	flex: 0 0 auto;
	min-inline-size: 4rem;
}

.aias-card.is-variant-event .aias-card__body {
	flex: 1 1 0;
}

/*
 * The boxed cards — programme and event. `03-design-system/03-…` "Shape &
 * elevation": "cards 1px solid cream-200 on cream-50, or white card on
 * cream-100 band with no border", radius 2px everywhere; `01-…` lists
 * cream-100 as "card backgrounds on cream-50" and keeps cream-200 for card
 * borders because they are decorative, not a control boundary. Twenty-one
 * programmes in a three-up grid with nothing between them read as one wall of
 * text on /learning/programmes/ — the Institute's word was "crowded" — and the
 * events archive had the same wall; a hairline box on a faintly warmer field
 * is the quietest thing that separates them. No shadow, no lift, nothing
 * changes on hover but the title's underline (01 rule 11; 04 "Cards (hover:
 * underline title only, no lift)").
 *
 * Padding is the scale's own card padding: `30` on mobile, `40` from 640px
 * (03 "Spacing scale").
 */
.aias-card.is-variant-programme,
.aias-card.is-variant-event {
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--cream-200);
	border-radius: 2px;
	background-color: var(--wp--preset--color--cream-100);
}

/*
 * On a cream-100 band — the home page's "Learn with us" — the same card is the
 * second of 03's two forms: white, no visible border. The border is kept at 1px
 * and made transparent rather than removed so the box is the same size on
 * both surfaces.
 */
.has-cream-100-background-color .aias-card.is-variant-programme,
.has-cream-100-background-color .aias-card.is-variant-event {
	border-color: transparent;
	background-color: var(--wp--preset--color--white);
}

/*
 * Boxes in a row share the row's height — `align-items: stretch`, declared
 * beside the people grids' `start` rule further down so the lower-specificity
 * rule stays first in source — and the Details link sits on the foot of every
 * box.
 */
.aias-card.is-variant-programme .aias-card__body {
	flex: 1 1 auto;
}

.aias-card.is-variant-programme .aias-card__actions,
.aias-card.is-variant-event .aias-card__actions {
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--10);
}

/*
 * In a grid the event card stacks instead — date block over body. A three-up
 * column is about 380px at 1440; with the date column beside it the title had
 * some 230px, and "Inauguration of the Institute and the Anand Vaidya Memorial
 * Residential Library" ran to six lines. The row form (`.is-variant-event`,
 * above) remains for lists.
 */
.wp-block-post-template.is-layout-grid .aias-card.is-variant-event {
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	align-items: stretch;
}

/*
 * 3 / 2 / 1, not the people grids' 4 / 3 / 2. `03-design-system/03-…`: "Card
 * grids: 3-up ≥ 1024px, 2-up 640–1023px, 1-up < 640px". The people rule is
 * that file's exception for portrait grids; a programme or event card carries
 * two badges, a title that may run to three lines, facts or a date, a
 * paragraph and a link, and two of those side by side at 360px is what the
 * home band shipped with. From 1024px the shared `:has(.aias-card)` rule and
 * the block's own `columnCount: 3` already give three.
 */
@media (max-width: 639px) {

	.wp-block-post-template.is-layout-grid:has(.aias-card.is-variant-programme),
	.wp-block-post-template.is-layout-grid:has(.aias-card.is-variant-event) {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 640px) and (max-width: 1023px) {

	.wp-block-post-template.is-layout-grid:has(.aias-card.is-variant-programme),
	.wp-block-post-template.is-layout-grid:has(.aias-card.is-variant-event) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 640px) {

	.aias-card.is-variant-programme,
	.aias-card.is-variant-event {
		padding: var(--wp--preset--spacing--40);
	}
}

/*
 * The publication year heading. It introduces the run of citations under it, so
 * it needs air above and none below — the first citation belongs to it.
 */
.aias-card__year {
	margin: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 400;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--wp--preset--color--grey-700);
	border-block-end: 1px solid var(--wp--preset--color--cream-200);
	padding-block-end: var(--wp--preset--spacing--10);
}

/* The first year on a page opens the list; it needs no space above it. */
.aias-card__year:first-child {
	margin-block-start: 0;
}

/*
 * A citation is a row, not a card: no media, tighter stack, and the title set
 * at the body size because the authors and venue around it carry equal weight.
 */
.aias-card.is-variant-publication .aias-card__name {
	font-size: var(--wp--preset--font-size--md);
}

.aias-card.is-resource-quote .aias-card__quote {
	margin: 0;
	padding: 0;
	border: 0;
}

/*
 * A class rather than `.aias-card__quote p`. The descendant form is a lower
 * specificity than the long-form paragraph rule near the top of this file, so
 * stylelint's no-descending-specificity flags it — correctly: whichever of the
 * two the cascade happened to resolve would depend on where the card sat.
 */
.aias-card__quote-text {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lg);
	font-style: italic;
	line-height: 1.4;
	text-wrap: pretty;
}

/* The video card's poster is 16:9, unlike the 4:5 portrait box above. */
.aias-card__media.is-video {
	aspect-ratio: 16 / 9;
}

.aias-card__thumb {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.aias-card__play {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	transform: translate(-50%, -50%);
	inline-size: 0;
	block-size: 0;

	/*
	 * A triangle drawn from borders rather than an SVG or a glyph: it is pure
	 * decoration (`aria-hidden`), and this way it needs no file, no font and no
	 * request. The colours are tokens, so it follows the palette.
	 */
	border-block-start: 0.9rem solid transparent;
	border-block-end: 0.9rem solid transparent;
	border-inline-start: 1.4rem solid var(--wp--preset--color--cream-50);
	filter: drop-shadow(0 0 2px rgb(0 0 0 / 45%));
}

@media (min-width: 640px) {

	.aias-card.is-variant-event .aias-card__date {
		min-inline-size: 5rem;
	}
}

/* -------------------------------------------------------------------------
 * Meta panels (aias/programme-meta, aias/event-meta)
 *
 * The rail beside a programme (L-07) or an event (C-02). One set of rules for
 * both: they are the same component answering different questions, and the
 * moment they were two sets one of them would have been retuned alone.
 * ------------------------------------------------------------------------- */

.aias-meta {
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--cream-100);
}

.aias-meta__title {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 500;
	line-height: 1.2;
}

.aias-meta__list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
}

.aias-meta__row {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.aias-meta__key {
	color: var(--wp--preset--color--grey-700);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/*
 * Source Serif 4 with lining tabular figures on every value — 03-…/02-…
 * *Numerals*, and `05-…/03-theme-json-spec.md` names this rule for both meta
 * blocks. It is here rather than in theme.json because that file's per-block
 * `css` entries would be the same declaration written twice.
 */
.aias-meta__value {
	margin: 0;
	color: var(--wp--preset--color--grey-900);
	font-family: var(--wp--preset--font-family--longform);
	font-size: var(--wp--preset--font-size--md);
	font-variant-numeric: lining-nums tabular-nums;
	line-height: 1.5;
	text-wrap: pretty;
}

.aias-meta__note {
	display: block;
	margin-block-start: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--grey-700);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm);
	font-variant-numeric: normal;
}

.aias-meta__ended {
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--20);
	background-color: var(--wp--preset--color--cream-200);
	color: var(--wp--preset--color--grey-900);
	font-size: var(--wp--preset--font-size--sm);
}

.aias-meta__action {
	margin-block-start: var(--wp--preset--spacing--40);
}

/*
 * Sticky from the desktop breakpoint only, and offset by the sticky header's
 * own height — L-07: "Meta panel sticky on desktop (below the sticky header —
 * its `top` equals `--aias-header-compact-height`)". Below 1024 the panel moves
 * above the content in the template, where sticky would pin it over the prose.
 */
@media (min-width: 1024px) {

	.aias-meta {
		position: sticky;
		inset-block-start: calc(var(--aias-header-compact-height, 0px) + var(--wp--preset--spacing--30));
	}
}

/* -------------------------------------------------------------------------
 * Video facade (aias/video-facade)
 *
 * The player is not in the page until someone asks for it, so both states have
 * to occupy the same box — otherwise the whole page jumps at the moment of the
 * click, which is a layout shift caused by the visitor's own action and counts
 * against CLS all the same.
 * ------------------------------------------------------------------------- */

.aias-facade {
	margin-inline: 0;
}

.aias-facade__frame,
.aias-facade__player {
	position: relative;
	aspect-ratio: 16 / 9;
	background-color: var(--wp--preset--color--grey-900);
}

.aias-facade__poster {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.aias-facade__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.aias-facade__triangle {
	inline-size: 0;
	block-size: 0;
	border-block-start: 1.25rem solid transparent;
	border-block-end: 1.25rem solid transparent;
	border-inline-start: 2rem solid var(--wp--preset--color--cream-50);
	filter: drop-shadow(0 0 3px rgb(0 0 0 / 45%));
	transition: transform 120ms ease-out;
}

@media (prefers-reduced-motion: reduce) {

	.aias-facade__triangle {
		transition: none;
	}
}

.aias-facade__play:hover .aias-facade__triangle {
	transform: scale(1.08);
}

.aias-facade__iframe {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	border: 0;
}

.aias-facade__caption {
	margin-block-start: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--grey-700);
	font-size: var(--wp--preset--font-size--sm);
}

/* -------------------------------------------------------------------------
 * Filter chips (aias/programme-filter)
 *
 * Links, not buttons — see the note in the block's render.php. They are styled
 * as chips because that is what the layout asks for, and `aria-current` rather
 * than `aria-pressed` because a link that navigates is not a toggle.
 * ------------------------------------------------------------------------- */

.aias-filter {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.aias-filter__group {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
}

.aias-filter__legend {
	margin: 0;
	color: var(--wp--preset--color--grey-700);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.aias-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10);
	margin: 0;
	padding: 0;
	list-style: none;
}

.aias-filter__item {
	margin: 0;
}

.aias-filter__chip {
	display: inline-flex;
	align-items: center;

	/*
	 * 03.3: touch targets 44px. The padding rather than a fixed height, so a
	 * chip whose label wraps at 320 grows instead of clipping.
	 */
	min-block-size: 44px;
	padding-inline: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--grey-500);
	border-radius: 2px;
	color: var(--wp--preset--color--grey-900);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.3;
	text-decoration: none;
}

.aias-filter__chip:hover {
	background-color: var(--wp--preset--color--cream-100);
}

/*
 * The current filter. Not colour alone — the border thickens and the fill
 * changes, so the state survives a monochrome print and a colour-blind reader
 * (03-…/01-…, "never colour-only").
 */
.aias-filter__chip[aria-current="true"] {
	background-color: var(--wp--preset--color--maroon-700);
	border-color: var(--wp--preset--color--maroon-700);
	color: var(--wp--preset--color--cream-50);
}

.aias-filter__chip[aria-current="true"]:hover {
	background-color: var(--wp--preset--color--maroon-900);
	border-color: var(--wp--preset--color--maroon-900);
}

.aias-filter__count {
	margin: 0;
	color: var(--wp--preset--color--grey-700);
	font-family: var(--wp--preset--font-family--longform);
	font-size: var(--wp--preset--font-size--sm);
	font-variant-numeric: lining-nums tabular-nums;
}

/* -------------------------------------------------------------------------
 * Term links (core/post-terms)
 *
 * WCAG 2.2 · 2.5.8 — every target at least 24 x 24 CSS px. An inline link is no
 * taller than its line box, and the term list on the programme archive is set
 * at `sm`, which measures about 22px: axe reports it as a SERIOUS target-size
 * violation on every card in the grid.
 *
 * Padding rather than a larger type size, which would contradict the scale, and
 * `inline-block` because vertical padding on an inline element does not change
 * the box the pointer can hit. The same fix, for the same reason, as the
 * compact card's name link and the card's action link above.
 *
 * `a[rel="tag"]` rather than a bare `a`: core marks every term link with it,
 * and the attribute lifts this to the same specificity as the inverted-band
 * link rule further up the file. A bare `a` is lower, comes later, and would
 * leave the cascade deciding by source order — which stylelint flags,
 * correctly.
 * ------------------------------------------------------------------------- */

.wp-block-post-terms a[rel="tag"] {
	display: inline-block;
	padding-block: 2px;
}

/* -----------------------------------------------------------------------------
 * Footer columns: 5 → 2 → 1.
 *
 * `04-page-layouts/00-global-header-footer.md` specifies "Grid 5 → 2 (tablet) →
 * 1 (mobile … stacked lists, footer nav kept short)". Core does not do that:
 * `wp-block-columns` is flex, and core's own rule at `max-width: 781px` sets
 * every column to `flex-basis: 100% !important`, so five columns become five
 * full-width stacked blocks in one step. At 768 that is a footer the reader
 * scrolls through five times.
 *
 * The `!important` is core's, not a preference — its rule carries one, so an
 * override needs one to win. Two columns are `50%` less half the horizontal
 * gap, which is the gap each column gives up to its neighbour.
 *
 * The second breakpoint is 600px rather than a device width: below it the
 * longest label in column 3, "Student Portal (coming soon)", wraps to three
 * lines in a half-width column and the grid stops reading as a grid.
 * -------------------------------------------------------------------------- */

@media (max-width: 781px) {

	.aias-footer__columns > .wp-block-column {
		flex-basis: calc(50% - (var(--wp--preset--spacing--50) / 2)) !important;
	}
}

@media (max-width: 600px) {

	.aias-footer__columns > .wp-block-column {
		flex-basis: 100% !important;
	}
}


/* -------------------------------------------------------------------------
 * Page header band (parts/page-header.html) — its two width modifiers
 *
 * One part serves every page template, but the templates do not agree on how
 * wide their content is, and a title band that does not line up with the prose
 * beneath it is worse than no band. So the part is constrained to the content
 * measure by default — which is right for `page.html` and
 * `page-section-landing.html`, whose prose is also 720 — and two modifiers on
 * the template-part reference carry the other two cases:
 *
 *   `--wide`  page-wide, page-people, page-contact and page-narrative: the
 *             band's own content runs to the wide container, so its breadcrumbs
 *             and H1 start at that container's left edge.
 *
 * page-narrative used to indent its title 324px so the H1 sat above the 720
 * column rather than above the contents rail beside it. That offset is dropped
 * rather than ported. Inside a full-width band the title belongs to the page,
 * not to the prose column — it now lines up with its own breadcrumbs and with
 * every other template's, which is worth more than lining up with the first
 * paragraph. The offset also could not be expressed as padding without redoing
 * the wide container's centring arithmetic, and a special case that needs
 * viewport maths to stay correct is a special case that will drift.
 *
 * `page-feature.html` is deliberately not converted: its title is inside a
 * Cover with the featured image behind it, which is a different treatment on
 * purpose. `single.html` and the CPT singles are not converted either — their
 * title group carries a meta row, and where that row belongs relative to a
 * band is a decision about post furniture rather than about page headers.
 * ------------------------------------------------------------------------- */

/*
 * The modifier sits on the template-part WRAPPER — `className` on a
 * `wp:template-part` reference is applied there, not to the group inside the
 * part file — so it is the wrapper that is selected and the band that is
 * styled.
 *
 * Widening is done by redefining the content-size variable rather than by
 * capping the children. Core's constrained layout reads
 * `--wp--style--global--content-size` in its own `> :where(…)` rule; setting
 * that variable uses the layout system instead of fighting it, and avoids a
 * `> *` selector, which collides with every other `> *` in this file under
 * stylelint's no-descending-specificity.
 *
 * `--narrative` needs no width change — the column it sits above is already
 * the 720px content size — only the start offset.
 */
.aias-page-header--wide > .aias-page-header {
	--wp--style--global--content-size: var(--wp--style--global--wide-size);
}


/* -------------------------------------------------------------------------
 * Section head — eyebrow, heading and the listing's own link on one line
 *
 * Every band on the home page announced itself differently: some with a bare
 * H2, some with an eyebrow paragraph, and the listing link always sat at the
 * bottom left where it read as another item in the list rather than as the way
 * out of it. Three bands, three rhythms, on the one page whose job is to look
 * composed.
 *
 * This is the one rhythm: a hairline, the heading at the left, the "all of
 * them" link trailing at the right on the same baseline, dropping under the
 * heading when the two no longer fit. It carries no colour and no type of its
 * own — the heading keeps its own size from the pattern.
 * ------------------------------------------------------------------------- */

.aias-section-head {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	align-items: baseline;
	justify-content: space-between;
	padding-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--wp--preset--color--cream-200);
}

.aias-section-head > * {
	margin-block: 0;
}

.aias-section-head__title {
	flex: 1 1 min(28rem, 100%);
}

.aias-section-head__link {
	flex: 0 0 auto;
}

/* Its link's 24px target is set with the footer's, near the top of this file —
   see "Footer and section-head link targets" for why it has to live there. */


/* -------------------------------------------------------------------------
 * Card grids: cards start at the top of their row
 *
 * Grid items stretch by default, so a card whose title runs to two lines made
 * every card in the row that tall and left the shorter ones with their text
 * floating in the middle of an over-tall box. Measured on the home scholars
 * band: five cards, two of them a line taller, and the five names sat on three
 * different baselines.
 *
 * Aligning to the start puts every card's portrait on one line and every name
 * directly under its own portrait. The row still reserves the tallest card's
 * height; nothing below it moves.
 * ------------------------------------------------------------------------- */

.wp-block-post-template.is-layout-grid:has(.aias-card) {
	align-items: start;
}

/*
 * The boxed cards are the exception: a text-only box has no portrait to line
 * up, and a ragged bottom edge on a row of frames reads as a layout that did
 * not finish. The body grows and the actions take `margin-block-start: auto`
 * (see `.is-variant-programme`), so every Details link sits on the foot.
 */
.wp-block-post-template.is-layout-grid:has(.aias-card.is-variant-programme),
.wp-block-post-template.is-layout-grid:has(.aias-card.is-variant-event) {
	align-items: stretch;
}


/* -------------------------------------------------------------------------
 * Footer column heads sit on one baseline
 *
 * "Community & Resources" is the only column label that wraps to two lines, and
 * because each column is an independent flex child its list then started 24px
 * lower than the other three. Reserving two lines on every label costs nothing
 * where the label is one line and buys a footer whose four lists start
 * together.
 * Below the two-column breakpoint the labels stack anyway, so the reservation
 * is released.
 * ------------------------------------------------------------------------- */

@media (min-width: 782px) {

	.aias-footer__columns .wp-block-column > h2:first-child,
	.aias-footer__columns .wp-block-column > h3:first-child {
		min-height: calc(2 * 1.2em);
	}
}
