/*
 * BC Sociology in Action — site styles ("Shared Voice" direction, Figma page 11).
 * Mobile-first. Desktop geometry follows the 1440 px Figma frames
 * (1340 px content, 50 px gutters). Accessibility adjustments to Figma
 * colours are marked "a11y" and listed in docs/IMPLEMENTER-NOTES.md §4.
 */

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--cream: #f7f4ee;
	--ink: #1c201e;
	--navy: #122033;
	--green: #344e41;
	--ochre: #e0a96d;
	--terracotta: #c86d51;
	--blue: #55789b;
	--terracotta-text: #ad4f35; /* a11y: Figma #c86d51 text on cream is 3.3:1; this is 4.9:1 */
	--ochre-text: #8f5c1f;      /* a11y: Figma #e0a96d text on cream is 1.9:1; this is 5.1:1 */
	--muted: #5c5f5c;           /* a11y: replaces 50% ink (3.1:1); this is 6.2:1 */
	--link: #163d43;
	--rule: rgba(28, 32, 30, 0.25);
	--line: #d2d1cb;

	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tag: "DM Sans", var(--sans);

	--gutter: clamp(20px, 3.5vw, 50px);
	--max: 1340px;
	--radius: 12px;

	--h1: clamp(2.5rem, 1.6rem + 3.4vw, 3.75rem);          /* 60 */
	--h-home: clamp(3rem, 1.7rem + 5vw, 5rem);             /* 80 */
	--h-section: clamp(2.25rem, 1.5rem + 2.9vw, 3.75rem);   /* 60 */
	--h-lg: clamp(1.875rem, 1.4rem + 1.6vw, 2.8125rem);     /* 45 */
	--h-md: clamp(1.625rem, 1.3rem + 1vw, 2.5rem);          /* 40 */
	--h-card: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);         /* 32 */
	--tab: clamp(1.25rem, 1rem + 1.1vw, 2rem);              /* 32 */

	/* Tone (header + hero) defaults: cream */
	--tone-bg: var(--cream);
	--tone-fg: var(--ink);
	--tone-btn-bg: var(--green);
	--tone-btn-fg: var(--cream);
	--accent-text: var(--green);
	--accent: var(--green);
}

.tone-green      { --tone-bg: var(--green);      --tone-fg: var(--cream); --tone-btn-bg: var(--cream); --tone-btn-fg: var(--green); --accent-text: var(--green); --accent: var(--green); }
.tone-ochre      { --tone-bg: var(--ochre);      --tone-fg: var(--ink);   --tone-btn-bg: var(--ink);   --tone-btn-fg: var(--cream); --accent-text: var(--ochre-text); --accent: var(--ochre-text); }
.tone-terracotta { --tone-bg: var(--terracotta); --tone-fg: var(--ink);   --tone-btn-bg: var(--ink);   --tone-btn-fg: var(--cream); --accent-text: var(--terracotta-text); --accent: var(--terracotta-text); }
.tone-dark       { --tone-bg: var(--ink);        --tone-fg: var(--cream); --tone-btn-bg: var(--cream); --tone-btn-fg: var(--ink);   --accent-text: var(--terracotta-text); --accent: var(--terracotta-text); }
.tone-overlay    { --tone-bg: transparent;       --tone-fg: var(--cream); --tone-btn-bg: var(--cream); --tone-btn-fg: var(--ink);   --accent-text: var(--terracotta-text); --accent: var(--terracotta-text); }
.tone-cream.single-bcs_video { --tone-btn-bg: var(--ink); --tone-btn-fg: var(--cream); --accent-text: var(--ochre-text); --accent: var(--ochre-text); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.1; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
dl, dd { margin: 0; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.site-main:focus { outline: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: var(--gutter); top: 8px; z-index: 100;
	padding: 12px 18px; background: var(--ink); color: var(--cream); border-radius: var(--radius);
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.center { text-align: center; }
.u-upper { text-transform: uppercase; }
.u-badge {
	display: inline-block; margin: 0.25em 0; padding: 2px 10px; border: 1px solid currentColor;
	border-radius: var(--radius); font-size: 0.875rem;
}

.env-ribbon {
	padding: 6px var(--gutter); background: var(--ink); color: var(--cream);
	font-size: 0.8125rem; text-align: center;
}
.preview-banner {
	position: sticky; top: 0; z-index: 50; padding: 10px var(--gutter);
	background: var(--ochre); color: var(--ink); font-weight: 500; text-align: center;
}
.sample-label {
	display: inline-block; align-self: flex-start; width: fit-content; margin: 0 0 12px; padding: 3px 10px; border: 1px dashed var(--ink);
	border-radius: 8px; background: #fff7e6; color: var(--ink);
	font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; letter-spacing: 0;
	text-transform: none;
}
.sample-label--block { display: block; width: auto; margin-bottom: 32px; padding: 10px 14px; }
.page-hero .sample-label { margin: 16px 0 0; }

/* ---------- Buttons ---------- */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 14px 20px; border: 0; border-radius: var(--radius);
	font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.1;
	text-decoration: none; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { filter: brightness(0.94); }
.button:active { transform: translateY(1px); }
.button--header { background: var(--tone-btn-bg); color: var(--tone-btn-fg); }
.button--solid { background: var(--green); color: var(--cream); }
.button--cream { background: var(--cream); color: var(--green); padding: 16px 24px; }
.button--ochre { background: var(--ochre); color: var(--ink); font-weight: 400; padding: 16px 24px; }
.button--terracotta { background: var(--terracotta); color: var(--ink); font-weight: 400; padding: 16px 24px; }

.icon-button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: inherit; cursor: pointer;
}
.icon-button .icon { width: 24px; height: 24px; }
.icon-button--outline { border: 1px solid currentColor; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--tone-bg); color: var(--tone-fg); }
.site-header__inner {
	display: flex; align-items: center; gap: 12px;
	min-height: 96px; padding-block: 16px;
}
.site-brand {
	display: inline-flex; align-items: center; gap: 10px;
	margin-right: auto; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.1;
	text-decoration: none; padding-block: 12px;
}
.site-brand .site-brand__mark { width: 38px; height: 38px; flex: none; }
.tone-green .site-brand__mark, .tone-terracotta .site-brand__mark, .tone-ochre .site-brand__mark, .tone-dark .site-brand__mark, .tone-overlay .site-brand__mark { background: var(--cream); border-radius: 50%; padding: 2px; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__cta { display: none; }

.site-nav { order: 3; }
.site-nav__toggle .site-nav__icon-close { display: none; }
.site-nav__toggle[aria-expanded="true"] .site-nav__icon-open { display: none; }
.site-nav__toggle[aria-expanded="true"] .site-nav__icon-close { display: block; }

.js .site-nav__panel {
	position: absolute; left: 0; right: 0; top: 100%;
	display: none; padding: 8px var(--gutter) 24px;
	background: var(--tone-bg); color: var(--tone-fg);
	border-top: 1px solid currentColor; box-shadow: 0 16px 24px rgba(28, 32, 30, 0.12);
}
.tone-overlay .site-nav__panel { --tone-bg: var(--ink); }
.js .site-nav__panel.is-open { display: block; }
.no-js .site-nav__toggle { display: none; }
.no-js .site-nav { order: 4; flex-basis: 100%; }

.site-nav__link {
	display: flex; align-items: center; gap: 6px; width: 100%; min-height: 48px;
	padding: 10px 0; border: 0; background: none; cursor: pointer;
	font-family: var(--sans); font-size: 1.0625rem; line-height: 1.25; text-align: left; text-decoration: none;
}
.site-nav__link .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.site-nav__parent[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-nav__item.is-current > .site-nav__link,
.site-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav__sub { padding: 0 0 8px 16px; }
.js .site-nav__sub { display: none; }
.js .site-nav__sub.is-open { display: block; }
.site-nav__sublink { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav__sublink:hover, .site-nav__sublink[aria-current="page"] { text-decoration: underline; }
.site-nav__cta { margin-top: 16px; }

.site-search { background: var(--tone-bg); color: var(--tone-fg); border-top: 1px solid currentColor; }
.tone-overlay .site-search { background: var(--ink); }
.site-search__form { display: flex; gap: 12px; padding-block: 20px; }
.field, .site-search input {
	flex: 1; min-width: 0; min-height: 48px; padding: 12px 16px;
	border: 1px solid currentColor; border-radius: var(--radius);
	background: transparent; color: inherit; font: inherit;
}
.site-search .button { background: var(--tone-btn-bg); color: var(--tone-btn-fg); }

@media (min-width: 1024px) {
	.site-header__inner { display: grid; grid-template-columns: minmax(210px, 1fr) auto auto; gap: 24px; min-height: 112px; padding-block: 24px; }
	.site-brand { margin-right: 0; justify-self: start; }
	.site-nav { order: 0; }
	.site-nav__toggle, .site-nav__cta { display: none; }
	.js .site-nav__panel, .site-nav__panel {
		position: static; display: block; padding: 0; border: 0; box-shadow: none; background: none;
	}
	.site-nav__list { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); }
	.site-nav__item { position: relative; }
	.site-nav__link { width: auto; font-size: 1rem; padding: 12px 0; }
	.site-nav__link .icon { width: 14px; height: 14px; }
	.site-nav__sub, .js .site-nav__sub {
		position: absolute; left: 50%; top: 100%; min-width: 240px; padding: 8px 0;
		transform: translateX(-50%); background: var(--cream); color: var(--ink);
		border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: 0 12px 24px rgba(28, 32, 30, 0.12);
	}
	.no-js .site-nav__sub { display: none; }
	.no-js .has-children:focus-within .site-nav__sub, .no-js .has-children:hover .site-nav__sub { display: block; }
	.site-nav__sublink { padding: 0 20px; }
	.site-header__actions { justify-self: end; }
	.site-header__cta { display: none; }
}

.tone-overlay .site-header { position: absolute; left: 0; right: 0; background: transparent; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--tone-bg); color: var(--tone-fg); }
.page-hero__inner { padding-block: 40px 56px; }
.page-hero__title { font-size: var(--h1); line-height: 1.1; overflow-wrap: anywhere; }
.page-hero__title--regular { font-weight: 400; }
.page-hero__title--long { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.8125rem); line-height: 1.15; }
.page-hero__subtitle { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.3; }
.page-hero__subtitle p { margin: 0; }
.page-hero__lede { max-width: 494px; margin: 20px 0 0; line-height: 1.4; }

.breadcrumbs { margin-bottom: 12px; font-size: 0.875rem; text-transform: uppercase; line-height: 1.25; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 6px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li:last-child::after { content: none; }

@media (min-width: 1024px) {
	.page-hero__inner { min-height: 245px; padding-block: 72px 56px; display: flex; flex-direction: column; justify-content: flex-end; }
	.page-hero--tall .page-hero__inner { min-height: 391px; justify-content: flex-start; padding-top: 90px; }
}

.search-form { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; max-width: 560px; }
.search-form__field {
	flex: 1 1 260px; display: flex; align-items: center; gap: 16px; min-height: 48px;
	padding: 0 12px; border: 1px solid currentColor; border-radius: var(--radius);
}
.search-form__field .icon { width: 24px; height: 24px; flex: none; }
.search-form__field input {
	flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; color: inherit; font: inherit;
}
.search-form__field input::placeholder { color: currentColor; opacity: 0.7; }
.search-form__field input:focus { outline: none; }
.search-form__field:focus-within { outline: 3px solid currentColor; outline-offset: 3px; }

/* ---------- Page body ---------- */
.page-body { padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 112px); }
.page-body--flush { padding-top: 24px; }
.prose { max-width: 677px; line-height: 1.4; }
.prose p { margin-bottom: 1.4em; }
.prose--page h2, .prose--page h3 { margin: 1.5em 0 0.5em; }
.prose--page a { color: var(--link); }
.lede { font-size: 1.125rem; line-height: 1.45; }
.eyebrow { margin: 0 0 8px; font-family: var(--sans); font-size: 0.875rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.4; }
.pending-note { color: var(--muted); font-style: italic; }
.results-note { margin-bottom: 32px; }
.results-note a { margin-left: 8px; color: var(--link); }

.split { display: grid; gap: 48px; }
@media (min-width: 900px) {
	.split { grid-template-columns: minmax(0, 677px) minmax(0, 376px); justify-content: space-between; column-gap: 64px; }
	.split--event { grid-template-columns: minmax(0, 713px) minmax(0, 320px); }
}

/* ---------- Section headings ---------- */
.section-title { font-size: var(--h-section); line-height: 1.1; }
.section-title--center { text-align: center; }
.section-intro { margin-bottom: clamp(40px, 6vw, 72px); }
.section-intro--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-intro__mark { width: 44px; height: 44px; margin-bottom: 20px; }
.section-intro__text { max-width: 475px; margin: 20px 0 0; }

/* ---------- Ring mark & placeholders ---------- */
.ring-mark { width: 48px; height: 48px; }
.placeholder {
	display: flex; align-items: center; justify-content: center; position: relative;
	width: 100%; height: 100%; min-height: 160px; background: #ebe4d6; color: var(--green);
}
.placeholder__mark { width: 30%; max-width: 120px; height: auto; opacity: 0.55; }
.placeholder--person { flex-direction: column; gap: 12px; }
.placeholder__initials { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.06em; color: var(--green); }

.empty-state {
	display: flex; flex-direction: column; align-items: center; max-width: 560px; margin: 24px auto;
	padding: 48px 24px; border: 1px dashed var(--rule); border-radius: 16px; text-align: center;
}
.empty-state__mark { width: 56px; height: 56px; margin-bottom: 20px; }
.empty-state__heading { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.empty-state__text { margin: 12px 0 0; color: var(--muted); }
.empty-state__action { margin: 16px 0 0; }
.empty-state__action a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); }

/* ---------- Tabs ---------- */
.tabs { margin-bottom: clamp(32px, 4vw, 60px); }
.tabs__list {
	display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 4vw, 60px);
	border-bottom: 1px solid var(--line);
}
.tabs__list > li { display: flex; }
.tabs__tab {
	display: inline-flex; align-items: center; min-height: 48px; padding: 8px 10px 14px; margin-bottom: -1px;
	border-bottom: 2px solid transparent; color: #5c5f5c; /* a11y: 50% ink was 3.1:1 */
	font-family: var(--sans); font-size: var(--tab); line-height: 1.1; text-decoration: none;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab.is-active, .tabs__tab[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 500; }
.js .tabs__tab[aria-selected="false"] { color: #5c5f5c; border-bottom-color: transparent; font-weight: 400; }
.tabs__intro { margin: -24px 0 40px; color: var(--muted); }
.tabs__panel { padding-top: clamp(32px, 4vw, 48px); }
.tabs__panel + .tabs__panel { margin-top: 48px; }
.js [data-tabs] .tabs__panel + .tabs__panel { margin-top: 0; }
.js [data-tabs] .tabs__panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.tabs__panel-title { margin-bottom: 24px; font-size: var(--h-card); }

/* ---------- Cards (shared) ---------- */
.card-grid { display: grid; gap: 56px clamp(24px, 3.2vw, 46px); }
@media (min-width: 640px) { .card-grid--3, .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.card-grid--2 { column-gap: clamp(32px, 5vw, 78px); }
}
.card { position: relative; height: 100%; }
.card__link { text-decoration: none; }
.card__link:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ochre); aspect-ratio: 416 / 334; }
.card__media .card__img, .card__media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; }
.card__title { margin: 24px 0 14px; font-size: var(--h-card); line-height: 1.3; }
.card__text { margin: 0 0 20px; line-height: 1.4; }
.card__meta, .card__date {
	margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line);
	font-size: 0.875rem; line-height: 1.4; text-transform: uppercase;
}
.card__date { border: 0; padding: 0; display: block; }
.card--update .card__meta { margin-top: auto; }
.card__duration {
	position: absolute; right: 16px; bottom: 16px; padding: 4px 10px; border-radius: var(--radius);
	background: var(--ink); color: var(--cream); font-family: var(--tag); font-size: 0.875rem; line-height: 1.4;
}

.tag {
	display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid transparent; border-radius: var(--radius);
	font-family: var(--tag); font-size: 1rem; line-height: 1.4;
}
.card__media .tag { position: absolute; left: 16px; bottom: 16px; }
.tag--terracotta { background: var(--terracotta); border-color: var(--terracotta); color: var(--ink); }
.tag--green { background: var(--green); border-color: var(--green); color: var(--cream); }
.tag--outline { border-color: var(--ink); color: var(--ink); }

/* Featured update (home) */
.card--featured { display: grid; gap: 24px; margin-bottom: 56px; }
.card--featured .card__media { border-radius: 18px; aspect-ratio: 664 / 366; }
.card--featured .card__title { margin-top: 0; font-size: var(--h-lg); line-height: 1.35; }
.card--featured .card__text { max-width: 553px; }
@media (min-width: 900px) {
	.card--featured { grid-template-columns: minmax(0, 664px) minmax(0, 620px); justify-content: space-between; gap: 56px; }
	.card--featured .card__body { min-height: 100%; }
}

/* ---------- Topic (Key Area) cards ---------- */
.topic-grid { display: grid; gap: 24px; max-width: 1186px; grid-auto-rows: 1fr; }
@media (min-width: 768px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.topic-grid > li { display: flex; }
.topic-card {
	display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 24px;
	border: 1px solid var(--rule); border-radius: 16px; text-decoration: none; line-height: 1.45;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.topic-card:hover { border-color: var(--green); background: #f1ece2; }
.topic-card__title { font-size: 1.5rem; line-height: 1.45; }
.topic-card__num { font-variant-numeric: lining-nums; }
.topic-card__text { margin: 0; }
.topic-card__text--pending { color: var(--muted); }
.topic-card .sample-label { align-self: flex-start; margin: 0; }

/* ---------- Further reading ---------- */
.reading .eyebrow { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.reading__item { padding-top: 16px; font-size: 1.125rem; line-height: 1.45; }
.reading__item + .reading__item { margin-top: 16px; border-top: 1px solid var(--line); }
.reading__title, .reading__source { margin: 0; }
.reading__title a { color: var(--link); overflow-wrap: anywhere; }
.reading__source { color: var(--muted); }
.reading__url { display: inline-block; margin-top: 12px; color: var(--link); overflow-wrap: anywhere; }

/* ---------- Video player ---------- */
.video { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); aspect-ratio: 16 / 9; }
.video__trigger { position: absolute; inset: 0; display: block; color: var(--cream); }
.video__poster-img, .video .placeholder { width: 100%; height: 100%; object-fit: cover; }
.video__trigger::after { content: ""; position: absolute; inset: 0; background: rgba(28, 32, 30, 0.18); transition: background 0.2s ease; }
.video__trigger:hover::after { background: rgba(28, 32, 30, 0.32); }
.video__play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 60px; height: 60px; transform: translate(-50%, -50%); }
.video__play .icon { width: 60px; height: 60px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35)); }
.video__trigger:focus-visible { outline-offset: -6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--unavailable { background: #ebe4d6; }
.video__note {
	position: absolute; left: 50%; bottom: 16px; margin: 0; padding: 6px 12px; transform: translateX(-50%);
	border-radius: var(--radius); background: var(--cream); font-size: 0.875rem; white-space: nowrap;
}

/* Key Area video features */
.topic-videos { margin-top: clamp(64px, 9vw, 120px); }
.feature-video { display: grid; gap: 28px; }
.feature-video + .feature-video { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.feature-video__title { font-size: var(--h-md); line-height: 1.3; }
.feature-video__title a { text-decoration: none; }
.feature-video__title a:hover { text-decoration: underline; }
.feature-video__text p { line-height: 1.4; }
.feature-video__meta { margin-top: auto !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.875rem; text-transform: uppercase; }
.feature-video__text { display: flex; flex-direction: column; }
.feature-video__text .feature-video__title { margin-bottom: 20px; }
@media (min-width: 900px) {
	.feature-video--quick-take { grid-template-columns: minmax(0, 710px) minmax(0, 553px); justify-content: space-between; gap: 46px; }
	.feature-video--deep-dive { max-width: 1164px; }
	.feature-video--deep-dive .feature-video__title { margin-top: 8px; }
}

/* Video detail */
.video-detail { display: grid; gap: 32px; padding-top: 16px; }
.video-detail__title { font-size: var(--h-lg); line-height: 1.3; margin-bottom: 20px; }
.video-detail__text { display: flex; flex-direction: column; }
.video-detail__meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.875rem; text-transform: uppercase; }
.video-detail__meta p { margin: 0 0 6px; }
.video-detail__meta a { color: var(--link); text-transform: none; font-size: 1rem; }
@media (min-width: 900px) {
	.video-detail { grid-template-columns: minmax(0, 710px) minmax(0, 545px); justify-content: space-between; align-items: stretch; gap: 56px; }
	/* A stretched 16:9 player would take its width from the text column's height and cover it. */
	.video-detail__player { align-self: start; }
}

/* ---------- Person cards ---------- */
.card--person {
	display: grid; grid-template-columns: 1fr; gap: 24px; padding: 24px;
	border: 1px solid var(--ink); border-radius: var(--radius);
}
.card__photo { overflow: hidden; border-radius: var(--radius); background: #fff; aspect-ratio: 240 / 249; }
.card__photo .card__img, .card__photo .placeholder { width: 100%; height: 100%; object-fit: cover; }
.card__name { font-size: var(--h-card); line-height: 1.1; text-transform: uppercase; margin-bottom: 16px; overflow-wrap: anywhere; }
.card__lines { margin: 0 0 18px; line-height: 1.25; }
.card--person .card__text { line-height: 1.25; }
.card__more { color: var(--terracotta-text); text-decoration: none; }
.card__more:hover { text-decoration: underline; }
.card__action {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; margin-top: auto;
	color: var(--terracotta-text); text-transform: uppercase; text-decoration: none;
}
.card__action .icon { width: 16px; height: 16px; }
.card__action:hover, .card__action--underline { text-decoration: underline; }
/* Layout follows the card's own width, not the viewport: two-column grids
   make cards narrow at tablet widths, where a 240px photo left the text
   column only a few characters wide. Narrow cards stack; mid-width cards
   use a proportional photo; wide cards keep the 240px desktop layout. */
.card-grid--2 > li { container-type: inline-size; }
@container (min-width: 440px) {
	.card--person { grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 24px; padding: 26px; }
}
@container (min-width: 600px) {
	.card--person { grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); gap: 32px; padding: 26px 32px 26px 26px; }
}
@supports not (container-type: inline-size) {
	@media (min-width: 1280px) {
		.card--person { grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); gap: 32px; padding: 26px 32px 26px 26px; }
	}
}

/* ---------- Profile detail ---------- */
.page-hero--profile .page-hero__text { max-width: 855px; }
.profile { display: grid; gap: 40px; }
.profile__photo { overflow: hidden; border-radius: var(--radius); background: #fff; aspect-ratio: 338 / 348; max-width: 420px; }
.profile__photo .profile__img, .profile__photo .placeholder { width: 100%; height: 100%; object-fit: cover; }
.profile__name { margin: 28px 0 14px; font-family: var(--serif); font-size: var(--h-card); font-weight: 600; line-height: 1.1; text-transform: uppercase; }
.profile__lines { margin: 0; line-height: 1.25; }
.profile__about { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); line-height: 1.25; }
.profile__lines + .profile__about { margin-top: 20px; }
.profile__about p { margin-bottom: 12px; }
.profile__link { color: var(--terracotta-text); font-size: 1.125rem; line-height: 1.45; overflow-wrap: anywhere; }
.profile__contact span { font-size: 1rem; }
.profile__video { margin-top: 64px; max-width: 710px; scroll-margin-top: 24px; }
.profile__main .prose { line-height: 1.4; }
@media (min-width: 900px) {
	.profile { grid-template-columns: minmax(0, 677px) minmax(0, 338px); justify-content: space-between; column-gap: 64px; }
	.profile__side { grid-column: 2; grid-row: 1; margin-top: -200px; position: relative; z-index: 1; }
	.profile__main { grid-column: 1; grid-row: 1; }
	.page-hero--profile .page-hero__inner { padding-right: 400px; }
}

/* ---------- Announcements ---------- */
.feature-banner {
	position: relative; display: flex; align-items: flex-end; min-height: 380px; overflow: hidden;
	border-radius: var(--radius); background: var(--ink); color: var(--cream);
}
.feature-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-banner::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(28, 32, 30, 0) 30%, rgba(28, 32, 30, 0.88) 100%);
}
.feature-banner--plain::after { content: none; }
.feature-banner__text { position: relative; z-index: 1; max-width: 764px; padding: clamp(24px, 3vw, 41px); }
.feature-banner__date { margin: 0 0 15px; }
.feature-banner__title { max-width: 469px; margin-bottom: 15px; font-size: var(--h-card); line-height: 1.1; }
.feature-banner__summary { margin: 0; line-height: 1.25; }
.feature-banner .sample-label { background: var(--cream); }
@media (min-width: 900px) { .feature-banner { min-height: 492px; } }
.card-grid--after-feature { margin-top: 64px; }

.event-hero { position: relative; display: flex; align-items: flex-end; min-height: 420px; overflow: hidden; background: var(--ink); color: var(--cream); }
.event-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(28, 32, 30, 0.55) 0%, rgba(28, 32, 30, 0.2) 35%, rgba(28, 32, 30, 0.88) 100%);
}
.event-hero__inner { position: relative; z-index: 1; padding-block: 140px 48px; }
.event-hero__date { margin: 0 0 12px; }
.event-hero__title { max-width: 886px; font-size: var(--h1); line-height: 1.1; }
@media (min-width: 1024px) { .event-hero { min-height: 529px; } }

.info-card { align-self: start; padding: 32px; border: 1px solid var(--ink); border-radius: var(--radius); }
.info-card__title { margin-bottom: 24px; font-size: var(--h-card); line-height: 1.1; text-transform: uppercase; }
.info-card__list { display: grid; gap: 4px; margin-bottom: 32px; line-height: 1.3; }
.info-card__list > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.info-card__list dt { text-transform: uppercase; }

/* ---------- Resources ---------- */
.resource-grid { display: grid; gap: 48px clamp(24px, 3vw, 72px); }
@media (min-width: 640px) { .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .resource-grid { grid-template-columns: repeat(3, minmax(0, 426px)); } }
.resource { display: flex; flex-direction: column; }
.resource__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.resource__title { padding-bottom: 18px; border-bottom: 1px solid var(--muted); font-family: var(--sans); font-size: 1.5rem; font-weight: 400; line-height: 1.45; }
.resource__title a { text-decoration: none; }
.resource__title a:hover { text-decoration: underline; }
.resource__title .icon { display: inline-block; width: 22px; height: 22px; margin-left: 8px; vertical-align: -2px; }
.resource__text { margin: 14px 0 0; }
.resource__date { margin: 14px 0 0; }

/* ---------- Search results ---------- */
.search-list { display: grid; gap: 32px; max-width: 800px; }
.search-list__item { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.search-list__title { margin-bottom: 8px; font-size: 1.75rem; line-height: 1.25; }
.search-list__title a { text-decoration: none; }
.search-list__title a:hover { text-decoration: underline; }
.link-list a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 64px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none;
}
.pagination .current { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Home ---------- */
.home-hero { padding-top: clamp(24px, 4vw, 56px); }
.home-hero__intro { display: grid; gap: 24px; margin-bottom: 40px; }
.home-hero__identity { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.home-hero__mark { width: clamp(48px, 7vw, 96px); height: auto; flex: none; }
.home-hero__title { max-width: 560px; color: var(--navy); font-size: clamp(3rem, 1.3rem + 4vw, 4.5rem); line-height: 1.1; }
.home-hero__lede { max-width: 388px; margin: 0; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem); line-height: 1.2; }
.home-hero__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: #ebe4d6; }
.home-hero__img { width: 100%; height: 100%; object-fit: cover; }
.home-hero__lead { display: grid; gap: 24px; justify-items: start; }
@media (min-width: 768px) {
	.home-hero__intro { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
	.home-hero__lede { padding-bottom: 6px; }
	.home-hero__media { aspect-ratio: 1340 / 754; }
}
/* On desktop the four destinations are visible directly below the welcome. */
@media (min-width: 1024px) { .home-hero__cta { display: none; } }

/* Main areas lead the homepage; colour carries the four-ring identity. */
.home-pathways { margin-bottom: clamp(40px, 5vw, 72px); scroll-margin-top: 24px; }
.home-pathways__grid { display: grid; gap: 20px; }
.home-pathway { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--green); color: var(--cream); }
.home-pathway--videos { background: var(--ochre); color: var(--ink); }
.home-pathway--people { background: var(--terracotta); color: var(--ink); }
.home-pathway--resources { background: #e2e9f0; color: var(--navy); border-top: 6px solid var(--blue); padding-top: 22px; }
.home-pathway__title { font-size: clamp(1.875rem, 2.4vw, 2.5rem); margin-bottom: 20px; }
.home-pathway p { line-height: 1.5; margin-bottom: 24px; }
.home-pathway__links { margin-top: auto; }
.home-pathway__links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 10px; min-height: 44px; font-weight: 500; text-decoration-thickness: 1px; }
.home-pathway__links .icon { width: 20px; height: 20px; flex: none; }
.home-pathway__links a:hover { text-decoration-thickness: 2px; }
.page-template-page-about #why, .page-template-page-about #who, .page-template-page-about #departments { scroll-margin-top: 24px; }
@media (min-width: 640px) { .home-pathways__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .home-pathways__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) {
	.site-brand { font-size: 1rem; }
	.site-brand .site-brand__mark { width: 30px; height: 30px; }
	.home-hero__title { font-size: clamp(2.5rem, 9vw, 3.25rem); }
}

.home-why { margin-top: clamp(64px, 8.7vw, 125px); padding-block: clamp(48px, 5.8vw, 84px); background: var(--green); color: var(--cream); }
.home-why__grid { display: grid; gap: 32px; }
.home-why__media { overflow: hidden; border-radius: var(--radius); background: #b7b7b7; aspect-ratio: 721 / 373; }
.home-why__img { width: 100%; height: 100%; object-fit: cover; }
.home-why__card { padding: clamp(28px, 2.8vw, 40px); border-radius: var(--radius); background: var(--ochre); color: var(--ink); }
.home-why__title { margin-bottom: 24px; color: var(--navy); font-size: 2rem; line-height: 1.1; }
.home-why__text p { line-height: 1.45; }
.home-why__text p:last-child { margin-bottom: 0; }
.home-why__values-title { font-family: var(--sans); font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); font-weight: 400; line-height: 1.1; }
.home-why__values-title strong { font-weight: 600; }
.home-why__values li {
	display: flex; align-items: center; gap: 36px; padding-block: 14px;
	font-size: 1.25rem; line-height: 1.1;
}
.home-why__values li + li { border-top: 1px solid rgba(247, 244, 238, 0.7); }
.home-why__values li:first-child { padding-top: 0; }
.home-why__values .icon { width: 36px; height: 36px; flex: none; }
@media (min-width: 1024px) {
	.home-why__grid { grid-template-columns: minmax(0, 721px) minmax(0, 559px); justify-content: space-between; row-gap: 44px; }
	.home-why__card { min-height: 373px; }
	.home-why__values-title { justify-self: end; align-self: start; padding-top: 2px; }
}

/* Committee + expandable biography (Bruce, 30 Oct: continuous cream behind both) */
.committee { padding-top: clamp(72px, 8.7vw, 125px); background: var(--cream); }
.committee__grid { display: grid; gap: 48px clamp(20px, 3.2vw, 46px); grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
@media (min-width: 360px) { .committee__grid { --cols: 2; } }
@media (min-width: 360px) and (max-width: 559px) {
	.committee__grid { row-gap: 32px; }
	.committee__card .committee__name, .committee__card .committee__inst { font-size: 1rem; }
}
@media (min-width: 1024px) { .committee__grid { --cols: 3; } }
.committee__item { display: flex; }
.committee__card {
	display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; padding: 0;
	border: 0; background: none; text-align: left; cursor: default;
}
button.committee__card { cursor: pointer; }
.committee__photo { display: block; overflow: hidden; margin-bottom: 14px; border-radius: var(--radius); background: var(--ochre); aspect-ratio: 416 / 517; }
.committee__img, .committee__photo .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
button.committee__card:hover .committee__img { transform: scale(1.02); }
.committee__name { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.1; text-transform: uppercase; }
.committee__inst { margin: 0; font-size: 1.25rem; line-height: 1.1; }
.committee__more { margin-top: 6px; color: var(--terracotta-text); font-size: 0.9375rem; text-decoration: underline; }
button.committee__card[aria-expanded="true"] .committee__more { text-decoration: none; font-weight: 500; }
.committee__more-close, button.committee__card[aria-expanded="true"] .committee__more-open { display: none; }
button.committee__card[aria-expanded="true"] .committee__more-close { display: inline; }
button.committee__card[aria-expanded="true"] .committee__photo { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); }
.committee__bio { grid-column: 1 / -1; }
.js .committee__bio { display: none; }
.js .committee__bio.is-open { display: block; animation: bcs-reveal 0.25s ease; }
.committee__bio-inner {
	display: grid; gap: 20px; padding: clamp(28px, 4vw, 54px); border: 1px solid var(--ink);
	background: var(--cream); font-size: 1.125rem; line-height: 1.3;
}
.committee__bio-person { display: grid; gap: 8px; align-content: start; }
.committee__bio-text p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
	.committee__bio-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 687px); column-gap: 48px; font-size: 1.25rem; }
}
@keyframes bcs-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.departments { padding-top: clamp(72px, 8.7vw, 125px); }
.departments .section-title { margin-bottom: 36px; }
.departments__list {
	display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows-1), auto);
	border-top: 1px solid var(--green);
}
.departments__list li { border-bottom: 1px solid var(--green); }
.departments__list a, .departments__list span {
	display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 24px 10px 0;
	font-size: 1.125rem; line-height: 1.45; text-decoration: none;
}
.departments__list a:hover { text-decoration: underline; }
.departments__list .icon { width: 14px; height: 14px; flex: none; }
@media (min-width: 640px) { .departments__list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows-2), auto); } }
@media (min-width: 1024px) {
	/* Rules run the full width of every row, as in Figma, even under empty cells. */
	.departments__list {
		grid-template-columns: 404fr 500fr 436fr; grid-template-rows: repeat(var(--rows-3), 49px);
		background: repeating-linear-gradient(to bottom, transparent 0 48px, var(--green) 48px 49px);
	}
	.departments__list li { border-bottom: 0; }
	.departments__list a, .departments__list span { min-height: 48px; padding-block: 0; }
}

.updates { padding-top: clamp(80px, 10vw, 150px); }
.updates .section-title { margin-bottom: clamp(40px, 6vw, 96px); }
.more-link { margin: 40px 0 0; text-align: center; }
.more-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--link); font-weight: 500; }
.more-link .icon { width: 16px; height: 16px; }

.cta { padding-block: clamp(72px, 9vw, 130px) clamp(64px, 7vw, 100px); }
.cta__box {
	display: grid; gap: 28px; padding: clamp(32px, 4vw, 62px) clamp(24px, 3.5vw, 50px) clamp(32px, 2vw, 24px);
	border-radius: var(--radius); background: var(--green); color: var(--cream);
}
.cta__title { max-width: 758px; font-size: var(--h-lg); line-height: 1.35; }
.cta__text { max-width: 634px; margin: 0; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.4; }
.cta__button { justify-self: start; }
@media (min-width: 900px) {
	.cta__box { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; min-height: 445px; padding-bottom: 24px; }
	.cta__title { grid-column: 1; grid-row: 1; }
	.cta__button { grid-column: 2; grid-row: 1; align-self: start; margin-right: 0; }
	.cta__text { grid-column: 1; grid-row: 2; align-self: end; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); }
.site-footer__inner { display: grid; gap: 40px; padding-block: 56px 48px; }
.site-footer__brand { display: inline-flex; flex-direction: column; gap: 8px; align-self: start; text-decoration: none; }
.site-footer__mark { width: 56px; height: 56px; }
.site-footer__name { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.footer-col__title { margin-bottom: 4px; color: var(--green); font-family: var(--sans); font-size: 1rem; font-weight: 400; line-height: 1.25; }
.footer-col__list a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.25; text-decoration: none; }
.footer-col__list a:hover { text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid var(--ink); font-size: 0.875rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding-block: 6px; }
.site-footer__bottom p { margin: 0; display: flex; align-items: center; min-height: 44px; }
.site-footer__legal { display: flex; gap: 28px; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; }
@media (min-width: 900px) {
	.site-footer__inner { grid-template-columns: 1fr auto; padding-block: 59px 56px; }
	.site-footer__nav { grid-template-columns: repeat(4, auto); column-gap: clamp(32px, 4vw, 56px); }
}

/* ---------- Motion ---------- */
@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; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .env-ribbon, .video__play { display: none; }
	body { background: #fff; }
}
