/*
Theme Name: CLLF
Theme URI: https://cllf.ca/
Author: Canadian Legal Literacy Foundation
Description: Native block theme for the Canadian Legal Literacy Foundation and its programs.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.4.0
Text Domain: cllf
*/

:root {
	--cllf-rule: 1px solid var(--wp--preset--color--border);
	--cllf-shadow: 0 18px 45px rgba(38, 26, 22, 0.08);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 0.13em;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	box-shadow: 0 0 0 6px var(--wp--preset--color--text);
	outline: 3px solid var(--wp--preset--color--white);
	outline-offset: 2px;
}

::selection {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--text);
}

.cllf-skip-link {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--red);
	font-weight: 700;
	left: 1rem;
	padding: 0.75rem 1rem;
	position: fixed;
	top: 1rem;
	transform: translateY(-200%);
	z-index: 100000;
}

.cllf-skip-link:focus {
	transform: translateY(0);
}

.cllf-site-header {
	border-bottom: 1px solid rgba(251, 248, 235, 0.24);
	position: relative;
	z-index: 20;
}

.cllf-header-bar {
	gap: clamp(0.75rem, 2vw, 1.75rem);
	max-width: 1400px !important;
	min-height: 6rem;
}

.cllf-brand-lockup {
	flex: 0 1 18rem;
	min-width: min(14rem, 42vw);
}

.cllf-brand-lockup .cllf-organization-name {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.2;
}

.cllf-brand-lockup .wp-block-site-logo img {
	height: auto;
	max-height: 4rem;
	width: auto;
}

.cllf-site-header .wp-block-navigation {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.025em;
}

.cllf-site-header .wp-block-navigation-item__content {
	padding-block: 0.55rem;
	text-decoration: none;
}

.cllf-site-header .current-menu-item > .wp-block-navigation-item__content,
.cllf-site-header .current-menu-ancestor > .wp-block-navigation-item__content {
	box-shadow: inset 0 -2px var(--wp--preset--color--gold);
}

.cllf-site-navigation {
	font-size: clamp(0.78rem, 0.72rem + 0.2vw, 0.92rem);
	font-weight: 700;
	letter-spacing: 0.015em;
}

.cllf-site-navigation ul,
.cllf-site-navigation__list {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem clamp(0.6rem, 1.2vw, 1.15rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.cllf-site-navigation a {
	color: inherit;
	display: inline-flex;
	line-height: 1.25;
	min-height: 2.75rem;
	padding-block: 0.7rem;
	text-decoration: none;
	white-space: normal;
}

.cllf-site-navigation a:hover,
.cllf-site-navigation [aria-current="page"] {
	box-shadow: inset 0 -2px var(--wp--preset--color--gold);
}

.cllf-site-navigation__toggle,
.cllf-site-navigation summary {
	align-items: center;
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
	display: none;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.55rem 0.8rem;
}

.cllf-site-navigation--utility ul,
.cllf-site-navigation[data-variant="utility"] ul {
	justify-content: flex-end;
}

.cllf-site-navigation--utility a,
.cllf-site-navigation[data-variant="utility"] a {
	min-height: auto;
	padding-block: 0.35rem;
	text-decoration: underline;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--red) !important;
	color: var(--wp--preset--color--cream) !important;
	padding: clamp(1.5rem, 6vw, 3rem) !important;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	align-items: center;
	min-height: 2.75rem;
	min-width: 2.75rem;
	justify-content: center;
}

.cllf-language-switcher,
.wp-block-cllf-language-switcher {
	align-items: center;
	display: flex;
	font-size: 0.75rem;
	font-weight: 800;
	gap: 0.35rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cllf-language-switcher a,
.wp-block-cllf-language-switcher a,
.wp-block-cllf-language-switcher button {
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit;
	min-height: 2.75rem;
	padding: 0.7rem 0.85rem;
	text-decoration: none;
}

main {
	min-height: 45vh;
}

.wp-site-blocks > main {
	margin-block-start: 0;
}

.cllf-page-shell {
	padding-block: clamp(3rem, 7vw, 7rem);
}

/* The masthead is the page's own hero, so it meets the header the way the homepage hero does. */
.cllf-page-shell:has(> .wp-block-post-content > .cllf-page-masthead:first-child) {
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.cllf-page-intro {
	border-top: 3px solid var(--wp--preset--color--gold);
	display: grid;
	gap: clamp(1.5rem, 4vw, 4rem);
	grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
	padding-top: clamp(1.5rem, 4vw, 3rem);
}

.cllf-kicker {
	color: var(--wp--preset--color--red);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.cllf-hero {
	overflow: hidden;
	position: relative;
}

.cllf-hero::after {
	border: 1px solid rgba(191, 149, 51, 0.55);
	content: "";
	height: clamp(12rem, 28vw, 25rem);
	pointer-events: none;
	position: absolute;
	right: clamp(-7rem, -4vw, -2rem);
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
	width: clamp(12rem, 28vw, 25rem);
}

.cllf-hero > .wp-block-group {
	position: relative;
	z-index: 1;
}

.cllf-display {
	max-width: 16ch;
}

.cllf-editorial-rule {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--gold);
	margin-inline: 0;
	width: 5rem;
}

.cllf-mission {
	position: relative;
}

.cllf-site-header,
.cllf-site-header a,
.cllf-mission,
.cllf-mission h2,
.cllf-mission p,
.cllf-site-footer,
.cllf-site-footer h2,
.cllf-site-footer p,
.cllf-site-footer label,
.cllf-site-footer a {
	color: var(--wp--preset--color--cream) !important;
}

.cllf-mission::before {
	color: rgba(191, 149, 51, 0.45);
	content: "\201C";
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(7rem, 17vw, 15rem);
	line-height: 0.75;
	position: absolute;
	right: max(1rem, calc((100vw - var(--wp--style--global--wide-size)) / 2));
	top: 2rem;
}

.cllf-program-grid,
.cllf-card-grid {
	display: grid;
	gap: clamp(1rem, 2.5vw, 2rem);
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

/*
 * Program pages: each top-level section spans the wide editorial measure, while
 * prose inside it stays at a readable line length and left-aligns with the
 * structured grids, so headings and cards share one left edge.
 */
.cllf-page-shell .wp-block-post-content {
	max-width: var(--wp--style--global--wide-size);
}

.cllf-page-shell .wp-block-post-content > .wp-block-group {
	max-width: var(--wp--style--global--wide-size);
}

.cllf-page-shell .wp-block-post-content > .wp-block-group > * {
	margin-left: 0 !important;
	margin-right: auto !important;
	max-width: 48rem;
}

.cllf-page-shell .wp-block-post-content > .wp-block-group > .cllf-role-grid,
.cllf-page-shell .wp-block-post-content > .wp-block-group > .cllf-advisor-grid,
.cllf-page-shell .wp-block-post-content > .wp-block-group > .cllf-quote-grid,
.cllf-page-shell .wp-block-post-content > .wp-block-group > .cllf-publication-list,
.cllf-page-shell .wp-block-post-content > .wp-block-group > .cllf-recruitment-grid,
.cllf-page-shell .wp-block-post-content > .wp-block-group > .cllf-video-grid,
.cllf-page-shell .wp-block-post-content > .wp-block-group > .cllf-info-blocks,
.cllf-page-shell .wp-block-post-content > .wp-block-group > .cllf-roster-details,
.cllf-page-shell .wp-block-post-content > .wp-block-group > .cllf-status-panel,
.cllf-page-shell .wp-block-post-content > .wp-block-group > .cllf-recruitment-band,
.cllf-page-shell .wp-block-post-content > .wp-block-group > .wp-block-cllf-team-directory {
	max-width: none;
}

/*
 * Rows inside self-managing containers fill their section. The provisioner uses
 * flow layout for those containers; this covers the same containers when they
 * come from a pattern.
 */
.cllf-page-shell .cllf-publication-list > *,
.cllf-page-shell .cllf-role-grid > *,
.cllf-page-shell .cllf-advisor-grid > *,
.cllf-page-shell .cllf-quote-grid > *,
.cllf-page-shell .cllf-info-blocks > *,
.cllf-page-shell .cllf-recruitment-grid > *,
.cllf-page-shell .cllf-video-grid > *,
.cllf-page-shell .cllf-region__columns > * {
	/* Spacing here comes from the container's gap, not from the block-gap margin. */
	margin: 0 !important;
	max-width: none;
}

/*
 * Program pages open with a masthead band so the title has the same weight as
 * the homepage hero instead of floating on the page background.
 */
.cllf-page-shell .wp-block-post-content > .cllf-page-masthead {
	background: var(--wp--preset--color--deep-cream);
	border-top: 3px solid var(--wp--preset--color--red);
	margin-bottom: var(--wp--preset--spacing--60);
	overflow: hidden;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
	position: relative;
}

.cllf-page-masthead::after {
	border: 1px solid rgba(191, 149, 51, 0.5);
	content: "";
	height: clamp(9rem, 20vw, 17rem);
	pointer-events: none;
	position: absolute;
	right: clamp(-6rem, -4vw, -2rem);
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
	width: clamp(9rem, 20vw, 17rem);
}

.cllf-page-masthead > * {
	position: relative;
	z-index: 1;
}

.cllf-page-masthead h1 {
	margin-top: 0;
	max-width: 20ch;
}

.cllf-page-masthead > p {
	max-width: 44rem;
}

.cllf-page-masthead > p:first-of-type {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
}

/* Section index: in-page jump links presented as chips rather than a bullet list. */
.cllf-section-index {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
}

.cllf-section-index li {
	margin: 0;
}

.cllf-section-index a {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--red);
	display: inline-block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.55rem 0.95rem;
	text-decoration: none;
}

.cllf-section-index a:hover,
.cllf-section-index a:focus-visible {
	background: var(--wp--preset--color--red);
	border-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--cream);
}

.cllf-program-card,
.cllf-card,
.cllf-pdf-item,
.cllf-advisor-card,
.cllf-team-card,
.wp-block-cllf-team-directory article,
.wp-block-cllf-team-member {
	background: var(--wp--preset--color--white);
	border: var(--cllf-rule);
	box-shadow: none;
	min-width: 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	position: relative;
}

.cllf-program-card {
	display: flex;
	flex-direction: column;
	grid-column: span 6;
	min-height: 19rem;
}

.cllf-card-grid > *,
.cllf-card-grid > .wp-block-group {
	grid-column: span 6;
}

.cllf-program-card:nth-child(2),
.cllf-program-card:nth-child(3) {
	background: var(--wp--preset--color--deep-cream);
}

.cllf-program-card::before,
.cllf-card::before,
.cllf-pdf-item::before {
	background: var(--wp--preset--color--gold);
	content: "";
	height: 3px;
	left: -1px;
	position: absolute;
	top: -1px;
	width: 4.5rem;
}

.cllf-program-card .wp-block-image {
	margin-right: auto;
	max-width: 100%;
	width: 13rem;
}

.cllf-program-card .wp-block-image img {
	background: var(--wp--preset--color--red);
	max-height: 6rem;
	object-fit: contain;
	object-position: left center;
	padding: 0.6rem;
	width: auto;
}

.cllf-program-card > :last-child {
	margin-top: auto;
}

.cllf-program-link {
	font-weight: 750;
}

.cllf-pdf-item {
	align-items: start;
	display: grid;
	gap: 1rem clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: minmax(0, 1fr) auto;
}

.cllf-editor-notice {
	align-self: start;
	background: var(--wp--preset--color--deep-cream);
	border: 1px dashed var(--wp--preset--color--muted);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	max-width: 22rem;
	padding: 0.75rem 1rem;
}

.cllf-pdf-meta,
.cllf-event-meta,
.wp-block-cllf-upcoming-events time,
.wp-block-cllf-events time {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.cllf-notice {
	border-left: 5px solid var(--wp--preset--color--dark-gold);
	padding: 1.25rem 1.5rem;
}

.cllf-notice.is-closed {
	background: var(--wp--preset--color--deep-cream);
}

.cllf-notice.is-open {
	background: var(--wp--preset--color--white);
}

.wp-block-button .wp-block-button__link,
button,
input[type="button"],
input[type="submit"] {
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.wp-block-button .wp-block-button__link:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--deep-cream);
}

:where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 0;
	color: var(--wp--preset--color--text);
	font: inherit;
	min-height: 3rem;
	padding: 0.75rem 0.85rem;
	width: 100%;
}

textarea {
	min-height: 9rem;
	resize: vertical;
}

label {
	display: inline-block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 750;
	margin-bottom: 0.35rem;
}

.cllf-form-row,
.wp-block-cllf-newsletter-form form,
.cllf-newsletter {
	align-items: end;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(10rem, 0.8fr) minmax(15rem, 1.4fr) auto;
}

.cllf-form-message,
.wp-block-cllf-newsletter-form [role="status"],
.wp-block-cllf-newsletter-form [role="alert"],
.cllf-newsletter-feedback {
	font-weight: 700;
	grid-column: 1 / -1;
}

.wp-block-cllf-newsletter-form [aria-invalid="true"] {
	border-color: var(--wp--preset--color--red);
	border-width: 2px;
}

.cllf-events-shell,
.wp-block-cllf-upcoming-events,
.wp-block-cllf-events,
.cllf-events {
	position: relative;
}

.cllf-event-track,
.wp-block-cllf-upcoming-events__track,
.wp-block-cllf-events__track,
.cllf-carousel__track {
	display: grid;
	gap: clamp(1rem, 2.5vw, 2rem);
	grid-auto-columns: minmax(min(84vw, 22rem), 1fr);
	grid-auto-flow: column;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.cllf-event-card,
.wp-block-cllf-upcoming-events article,
.wp-block-cllf-events article,
.cllf-events article {
	background: var(--wp--preset--color--white);
	border: var(--cllf-rule);
	display: flex;
	flex-direction: column;
	min-height: 22rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	scroll-snap-align: start;
}

.cllf-event-card > :last-child,
.wp-block-cllf-upcoming-events article > :last-child,
.wp-block-cllf-events article > :last-child,
.cllf-events article > :last-child {
	margin-top: auto;
}

.cllf-events .cllf-event-card {
	min-height: 0;
	padding: 0;
}

.cllf-events .cllf-event-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.cllf-events .cllf-event-card__action {
	font-weight: 700;
}

.cllf-carousel-controls {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-top: 1.25rem;
}

.cllf-carousel__controls {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-bottom: 1.25rem;
}

.cllf-carousel-controls button {
	align-items: center;
	background: transparent;
	border: 1px solid var(--wp--preset--color--red);
	color: var(--wp--preset--color--red);
	display: inline-flex;
	font: inherit;
	font-weight: 800;
	justify-content: center;
	min-height: 2.75rem;
	min-width: 2.75rem;
	padding: 0.5rem 0.8rem;
}

.cllf-carousel__button {
	align-items: center;
	background: transparent;
	border: 1px solid var(--wp--preset--color--red);
	color: var(--wp--preset--color--red);
	display: inline-flex;
	font: inherit;
	font-weight: 800;
	justify-content: center;
	min-height: 2.75rem;
	min-width: 2.75rem;
}

.cllf-carousel__button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.cllf-carousel__indicators {
	display: flex;
	gap: 0.4rem;
	margin-right: auto;
}

.cllf-carousel__indicators .cllf-carousel__indicator {
	background: transparent;
	border: 0;
	height: 2.75rem;
	min-height: 2.75rem;
	min-width: 2.75rem;
	padding: 0;
	position: relative;
	width: 2.75rem;
}

.cllf-carousel__indicators .cllf-carousel__indicator::after {
	background: var(--wp--preset--color--border);
	border-radius: 50%;
	content: "";
	height: 0.65rem;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 0.65rem;
}

.cllf-carousel__indicators .cllf-carousel__indicator[aria-current="true"]::after {
	background: var(--wp--preset--color--red);
}

.cllf-carousel-position {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-variant-numeric: tabular-nums;
	margin-right: auto;
}

.cllf-event-track.is-static,
.wp-block-cllf-upcoming-events__track.is-static,
.wp-block-cllf-events__track.is-static {
	grid-auto-flow: initial;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	overflow: visible;
}

.cllf-events--static .cllf-carousel__track {
	grid-auto-flow: initial;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	overflow: visible;
}

.cllf-team-card,
.wp-block-cllf-team-directory article,
.wp-block-cllf-team-member {
	display: flex;
	flex-direction: column;
	padding: 0;
}


.cllf-team-card img,
.wp-block-cllf-team-directory article img,
.wp-block-cllf-team-member img {
	aspect-ratio: 4 / 5;
	display: block;
	/* Without this the intrinsic height attribute wins and the ratio is ignored. */
	height: auto;
	object-fit: cover;
	width: 100%;
}

.cllf-team-card__content,
.wp-block-cllf-team-directory article > div,
.wp-block-cllf-team-member > div {
	padding: 1.25rem;
}

/* Directory columns are narrow, so names and titles use the compact scale. */
.cllf-team-card h3 {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.25;
	margin-bottom: 0.3rem;
}

.cllf-team-card p {
	font-size: var(--wp--preset--font-size--small);
	margin-top: 0;
}

.cllf-team-card:not(.cllf-team-card--lead) p {
	color: var(--wp--preset--color--muted);
}

.cllf-team-card > :not(img) {
	margin-left: 1.25rem;
	margin-right: 1.25rem;
}

.cllf-team-card > :last-child {
	margin-bottom: 1.25rem;
}

/*
 * Members without a mapped portrait get a crest tile at the same aspect ratio,
 * so the directory keeps one even grid instead of collapsing around the gaps.
 */
.cllf-team-card--no-image::before {
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--deep-cream) url("assets/logos/cllf-primary.svg") center / auto 32% no-repeat;
	content: "";
	display: block;
	width: 100%;
}

.cllf-setting-link {
	background: var(--wp--preset--color--red);
	border: 1px solid var(--wp--preset--color--red);
	color: var(--wp--preset--color--cream);
	display: inline-block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	min-height: 2.75rem;
	padding: 0.7rem 1.1rem;
	text-decoration: none;
}

.cllf-site-footer .cllf-setting-link {
	background: transparent;
	border: 0;
	color: inherit;
	min-height: auto;
	padding: 0;
	text-decoration: underline;
}

/* An empty section does not need the full standing of a populated one. */
#upcoming-events:has(.cllf-events__empty) {
	padding-block: var(--wp--preset--spacing--60) !important;
}

.cllf-events__empty,
.cllf-empty-state,
.cllf-team-directory__empty {
	background: var(--wp--preset--color--deep-cream);
	border: var(--cllf-rule);
	border-left: 5px solid var(--wp--preset--color--dark-gold);
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.4;
	margin: 0;
	padding: clamp(1.5rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
}

.cllf-newsletter__trap {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.cllf-newsletter__consent {
	grid-column: 1 / -1;
}

.cllf-search-form .wp-block-search__inside-wrapper {
	border: 0;
	display: flex;
	gap: 0.5rem;
	padding: 0;
}

.cllf-query-list {
	list-style: none;
	padding: 0;
}

.cllf-query-list > li {
	border-top: var(--cllf-rule);
	padding-block: clamp(1.5rem, 4vw, 3rem);
}

.cllf-site-footer {
	border-top: 3px solid var(--wp--preset--color--gold);
}

.cllf-site-footer h2.cllf-organization-name {
	font-size: var(--wp--preset--font-size--x-large);
}

.cllf-copyright {
	gap: 0.35em;
}

.cllf-copyright > * {
	margin: 0;
}

#footer-contact {
	scroll-margin-top: 2rem;
}

#newsletter {
	scroll-margin-top: 2rem;
}

.cllf-footer-grid {
	display: grid;
	gap: clamp(2rem, 6vw, 6rem);
	grid-template-columns: minmax(14rem, 0.8fr) minmax(18rem, 1.4fr);
}

.cllf-footer-meta {
	border-top: 1px solid rgba(251, 248, 235, 0.25);
	font-size: var(--wp--preset--font-size--x-small);
	padding-top: 1.5rem;
}

.cllf-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
}

.cllf-hero-grid {
	align-items: flex-start;
	gap: clamp(2rem, 5vw, 4.5rem);
}

.cllf-hero-intro {
	flex: 1 1 32rem;
}

.cllf-hero-spotlight {
	flex: 0 1 24rem;
	width: 100%;
}

/*
 * With no upcoming event the spotlight renders nothing, so the column is
 * dropped and the introduction uses the full editorial measure.
 */
.cllf-hero-grid:not(:has(.cllf-event-spotlight)) .cllf-hero-spotlight {
	display: none;
}

.cllf-hero-grid:not(:has(.cllf-event-spotlight)) .cllf-hero-intro {
	max-width: 46rem;
}

.cllf-hero-grid:not(:has(.cllf-event-spotlight)) .cllf-display {
	max-width: 21ch;
}

.cllf-mission-grid {
	gap: clamp(2rem, 5vw, 4.5rem);
}

.cllf-mission-mark {
	flex: 0 0 auto;
	margin: 0;
}

.cllf-program-rows {
	border-top: var(--cllf-rule);
	margin-top: var(--wp--preset--spacing--50);
}

.cllf-program-row {
	align-items: center;
	border-bottom: var(--cllf-rule);
	flex-wrap: wrap;
	gap: clamp(1rem, 3vw, 2rem);
	padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.cllf-program-row__number {
	color: var(--wp--preset--color--dark-gold);
	flex: 0 0 auto;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1;
	margin: 0;
	width: 2.5rem;
}

.cllf-program-row__mark {
	background: var(--wp--preset--color--red);
	flex: 0 0 auto;
	height: 5.5rem;
	padding: 0.75rem;
	width: 8rem;
}

.cllf-program-row__mark.is-foundation {
	background: var(--wp--preset--color--deep-cream);
	border: var(--cllf-rule);
}

.cllf-program-row__mark figure {
	height: 100%;
	margin: 0;
	width: 100%;
}

.cllf-program-row__mark img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.cllf-program-row__title {
	flex: 1 1 14rem;
	margin: 0;
}

.cllf-program-row__description {
	color: var(--wp--preset--color--muted);
	flex: 2 1 18rem;
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.cllf-footer-grid {
	grid-template-columns: minmax(14rem, 1.4fr) repeat(2, minmax(10rem, 1fr)) minmax(14rem, 1.2fr);
}

.cllf-footer-heading {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

/* The footer sits on the dark red band, so the form action needs the reverse of the default button. */
.cllf-site-footer .cllf-newsletter button {
	background: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--red);
}

.cllf-site-footer .cllf-newsletter button:hover {
	background: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--text);
}

.cllf-publication-list {
	display: flex;
	flex-direction: column;
}

.cllf-publication-item {
	border-top: var(--cllf-rule);
	display: grid;
	gap: 1rem clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: minmax(0, 1fr) auto;
	padding-block: clamp(1.25rem, 3vw, 1.75rem);
}

.cllf-publication-item h3 {
	font-size: var(--wp--preset--font-size--large);
	margin: 0;
}

.cllf-publication-item p {
	margin: 0.4rem 0 0;
}

.cllf-publication-item__body {
	max-width: 52rem;
	min-width: 0;
}

.cllf-publication-item__action {
	align-self: center;
	margin: 0;
}

/*
 * Compact call to action. The visible label stays short; the accessible name on
 * the link itself carries the full publication title.
 */
.cllf-action-link {
	border: 1px solid var(--wp--preset--color--red);
	color: var(--wp--preset--color--red);
	display: inline-block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 0.6rem 1rem;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.cllf-action-link:hover,
.cllf-action-link:focus-visible {
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--cream);
}

.cllf-publication-item.is-featured .cllf-action-link {
	border-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--cream);
}

.cllf-publication-item.is-featured .cllf-action-link:hover,
.cllf-publication-item.is-featured .cllf-action-link:focus-visible {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--red);
}

.cllf-publication-item.is-featured {
	background: var(--wp--preset--color--red);
	border-top: 0;
	color: var(--wp--preset--color--cream);
	grid-template-columns: 1fr;
	margin-bottom: 1rem;
	padding: clamp(1.5rem, 4vw, 2.25rem);
}

.cllf-publication-item.is-featured h3,
.cllf-publication-item.is-featured a {
	color: var(--wp--preset--color--cream);
}

.cllf-recruitment-grid {
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cllf-status-panel,
.cllf-recruitment-band {
	background: var(--wp--preset--color--deep-cream);
	border-left: 5px solid var(--wp--preset--color--dark-gold);
	padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2rem);
}

.cllf-info-blocks {
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.cllf-info-block {
	border-top: 3px solid var(--wp--preset--color--gold);
	padding-top: 1rem;
}

.cllf-info-block__number {
	color: var(--wp--preset--color--dark-gold);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1;
	margin: 0 0 0.65rem;
}

.cllf-pathways-section + .cllf-pathways-section {
	border-top: var(--cllf-rule);
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--60);
}

.cllf-video-grid {
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	margin-top: 1.5rem;
}

.cllf-video-grid .wp-block-video {
	margin: 0;
}

/*
 * Regional programmes. The archive presents each region as the barriers it
 * faces and the programme's response, so the two read side by side.
 */
.cllf-region + .cllf-region {
	border-top: var(--cllf-rule);
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--50);
}

.cllf-region > h3 {
	border-left: 4px solid var(--wp--preset--color--gold);
	margin-bottom: var(--wp--preset--spacing--40);
	padding-left: 0.9rem;
}

.cllf-region__columns {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.cllf-region__column > p + p {
	margin-top: 0.9rem;
}

.cllf-region__column .cllf-kicker {
	margin-bottom: 0.6rem;
}

/* An opening statement that carries the section, set at display weight. */
.cllf-lead-statement {
	border-left: 4px solid var(--wp--preset--color--gold);
	color: var(--wp--preset--color--red);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
	max-width: 34ch;
	padding-left: 1rem;
}

.cllf-role-grid {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	margin-top: var(--wp--preset--spacing--50);
}

.cllf-role-card {
	background: var(--wp--preset--color--white);
	border: var(--cllf-rule);
	border-top: 3px solid var(--wp--preset--color--gold);
	display: flex;
	flex-direction: column;
	padding: clamp(1.25rem, 3vw, 1.85rem);
}

.cllf-role-card h3 {
	font-size: var(--wp--preset--font-size--large);
	margin: 0 0 0.65rem;
}

.cllf-role-card p {
	margin: 0 0 0.85rem;
}

.cllf-role-card ul {
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
	padding-left: 1.1rem;
}

.cllf-role-card li + li {
	margin-top: 0.45rem;
}

.cllf-advisor-grid {
	display: grid;
	gap: clamp(0.85rem, 2vw, 1.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	margin-bottom: var(--wp--preset--spacing--50);
}

.cllf-advisor-card {
	background: var(--wp--preset--color--white);
	border: var(--cllf-rule);
	padding: clamp(1rem, 2.5vw, 1.4rem);
}

.cllf-advisor-card h4 {
	font-size: var(--wp--preset--font-size--medium);
	margin: 0;
}

.cllf-advisor-card p {
	margin: 0.3rem 0 0;
}

.cllf-advisor-card__role {
	color: var(--wp--preset--color--dark-gold);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cllf-advisor-card__affiliation {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.cllf-advisor-card__note {
	border-top: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	font-style: italic;
	margin-top: 0.7rem;
	padding-top: 0.55rem;
}

/*
 * Archived advisory rosters. Earlier years repeat most of the same people, so
 * they collapse behind a disclosure instead of extending the page threefold.
 */
.cllf-roster-details {
	background: var(--wp--preset--color--white);
	border: var(--cllf-rule);
	margin-block: 0 var(--wp--preset--spacing--30);
}

.cllf-roster-details > summary {
	align-items: center;
	color: var(--wp--preset--color--red);
	cursor: pointer;
	display: flex;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	gap: 0.75rem;
	justify-content: space-between;
	list-style: none;
	padding: clamp(0.85rem, 2vw, 1.1rem) clamp(1rem, 2.5vw, 1.4rem);
}

.cllf-roster-details > summary::-webkit-details-marker {
	display: none;
}

.cllf-roster-details > summary::after {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	flex: 0 0 auto;
	height: 0.5rem;
	rotate: 45deg;
	translate: 0 -0.15rem;
	width: 0.5rem;
}

.cllf-roster-details[open] > summary {
	border-bottom: var(--cllf-rule);
}

.cllf-roster-details[open] > summary::after {
	rotate: -135deg;
	translate: 0 0.15rem;
}

.cllf-roster-details > summary:hover {
	background: var(--wp--preset--color--deep-cream);
}

.cllf-roster-details > .cllf-advisor-grid {
	margin: 0;
	padding: clamp(1rem, 2.5vw, 1.5rem);
}

.cllf-roster-details > .cllf-advisor-grid .cllf-advisor-card {
	background: var(--wp--preset--color--cream);
}

.cllf-quote-grid {
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.cllf-testimonial {
	background: var(--wp--preset--color--white);
	border: var(--cllf-rule);
	border-left: 3px solid var(--wp--preset--color--gold);
	margin: 0;
	padding: clamp(1.25rem, 3vw, 1.85rem);
}

.cllf-testimonial p {
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.cllf-testimonial cite {
	color: var(--wp--preset--color--muted);
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	font-style: normal;
	font-weight: 700;
	margin-top: 1rem;
}

.cllf-note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.cllf-footer-grid > * {
	min-width: 0;
}

.cllf-site-footer .cllf-form-row,
.cllf-site-footer .wp-block-cllf-newsletter-form form,
.cllf-site-footer .cllf-newsletter {
	grid-template-columns: 1fr;
}

.cllf-site-footer .cllf-form-row > *,
.cllf-site-footer .wp-block-cllf-newsletter-form form > * {
	grid-column: auto;
}

.cllf-footer-links a,
.cllf-program-row__action a {
	overflow-wrap: break-word;
	word-break: break-word;
}

.cllf-program-row__action {
	flex: 0 1 15rem;
	margin: 0 0 0 auto;
	max-width: 100%;
}

@media (max-width: 1100px) {
	.cllf-hero-spotlight {
		display: none;
	}

	.cllf-hero {
		--wp--preset--spacing--50: 0.85rem;
	}

	.cllf-hero-intro .wp-block-buttons {
		margin-top: 0.5rem;
	}
}

@media (max-width: 900px) {
	.cllf-page-intro,
	.cllf-footer-grid {
		grid-template-columns: 1fr;
	}

	.cllf-mission-mark {
		display: none;
	}

	.cllf-recruitment-grid {
		grid-template-columns: 1fr;
	}

	.cllf-program-card,
	.cllf-card-grid > *,
	.cllf-card-grid > .wp-block-group {
		grid-column: span 6;
	}

	.cllf-form-row,
	.wp-block-cllf-newsletter-form form,
	.cllf-newsletter {
		grid-template-columns: 1fr 1fr;
	}

	.cllf-form-row > :last-child,
	.wp-block-cllf-newsletter-form form > :last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1320px) {
	.cllf-site-header .cllf-header-bar {
		align-items: center;
		flex-wrap: wrap;
		padding-block: 0.75rem;
	}

	.cllf-site-header .cllf-site-navigation--primary,
	.cllf-site-header .cllf-site-navigation[data-variant="primary"] {
		margin-left: auto;
	}

	.cllf-site-navigation--primary.is-enhanced .cllf-site-navigation__toggle {
		display: inline-flex;
	}

	.cllf-site-navigation--primary.is-enhanced [data-cllf-nav-panel] {
		display: none;
	}

	.cllf-site-navigation--primary.is-enhanced .cllf-site-navigation__toggle[aria-expanded="true"] + [data-cllf-nav-panel] {
		background: var(--wp--preset--color--red);
		border-top: 1px solid rgba(251, 248, 235, 0.24);
		display: block;
		left: 0;
		padding: 1rem var(--wp--preset--spacing--40) 1.5rem;
		position: absolute;
		top: 100%;
		width: 100%;
	}

	.cllf-site-navigation--primary.is-enhanced [data-cllf-nav-panel] ul {
		align-items: stretch;
		flex-direction: column;
	}

	.cllf-site-navigation--primary.is-enhanced [data-cllf-nav-panel] a {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.cllf-header-bar {
		min-height: 4.75rem;
	}

	.cllf-brand-lockup {
		min-width: 0;
	}

	.cllf-brand-lockup .wp-block-site-logo img {
		max-height: 3rem;
	}

	.cllf-program-card,
	.cllf-card-grid > *,
	.cllf-card-grid > .wp-block-group {
		grid-column: 1 / -1;
	}

	.cllf-pdf-item,
	.cllf-form-row,
	.wp-block-cllf-newsletter-form form,
	.cllf-newsletter {
		grid-template-columns: 1fr;
	}

	.cllf-pdf-item > :last-child,
	.cllf-form-row > :last-child,
	.wp-block-cllf-newsletter-form form > :last-child {
		grid-column: auto;
	}

	/* A title and its call to action need the full column width at this size. */
	.cllf-publication-item {
		grid-template-columns: 1fr;
	}

	.cllf-publication-item__action {
		align-self: start;
	}

}

/* Below this width the text column reaches the motif, so the motif is dropped. */
@media (max-width: 1000px) {
	.cllf-page-masthead::after,
	.cllf-hero::after {
		display: none;
	}
}

@media (min-width: 360px) and (max-width: 600px) {
	.cllf-team-directory {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/*
 * Motion.
 *
 * Only elements the reveal script marks with cllf-reveal are ever hidden, so
 * content is never hidden when JavaScript does not run.
 */
:root {
	--cllf-reveal-shift: 1.15rem;
}

.cllf-reveal {
	opacity: 0;
	transform: translateY(var(--cllf-reveal-shift));
	transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: opacity, transform;
}

.cllf-reveal.is-revealed {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* Hover and focus movement on the things that respond to a pointer. */
.cllf-card,
.cllf-role-card,
.cllf-advisor-card,
.cllf-testimonial,
.cllf-team-card {
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cllf-role-card:hover,
.cllf-advisor-card:hover,
.cllf-card:hover {
	border-color: var(--wp--preset--color--dark-gold);
	box-shadow: var(--cllf-shadow);
	transform: translateY(-3px);
}

.cllf-team-card:hover {
	box-shadow: var(--cllf-shadow);
	transform: translateY(-3px);
}

.cllf-action-link,
.cllf-section-index a,
.cllf-program-link,
.cllf-setting-link,
.wp-element-button,
.cllf-roster-details > summary {
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cllf-program-row {
	transition: background-color 0.25s ease;
}

.cllf-program-row:hover {
	background: var(--wp--preset--color--deep-cream);
}

.cllf-program-link {
	display: inline-block;
	transition: transform 0.25s ease;
}

.cllf-program-row:hover .cllf-program-link {
	transform: translateX(0.25rem);
}

.cllf-publication-item {
	transition: background-color 0.25s ease;
}

.cllf-publication-item:not(.is-featured):hover {
	background: var(--wp--preset--color--deep-cream);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	/* No shift, in case the script started before the preference was read. */
	:root {
		--cllf-reveal-shift: 0;
	}
}
