/*
 * Blevins Training School — shared presentation.
 * Design values come from theme.json. Sections are scoped by bts- classes or
 * registered block-style classes so editor content stays portable.
 */

/* ---------- Foundation (ported from STS Starter 1.0.0) ---------- */

:where(.wp-site-blocks, .editor-styles-wrapper) {
	overflow-wrap: break-word;
	font-variant-numeric: oldstyle-nums proportional-nums;
}

:where(.wp-site-blocks, .editor-styles-wrapper) :focus-visible {
	outline: 3px solid var(--wp--preset--color--focus);
	outline-offset: 3px;
}

:where(.wp-site-blocks, .editor-styles-wrapper) a {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 0.07em;
}

:where(.wp-site-blocks, .editor-styles-wrapper) a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--accent-hover);
	text-decoration-thickness: 0.14em;
}

:where(.wp-block-button:not(.is-style-outline):not(.is-style-bts-ink-outline)) > .wp-block-button__link:is(:hover, :active) {
	background-color: var(--wp--preset--color--accent-hover);
	color: var(--wp--preset--color--on-accent);
}

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

body .skip-link.screen-reader-text:focus {
	background-color: var(--wp--preset--color--canvas);
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 650;
	outline: 3px solid var(--wp--preset--color--focus);
	outline-offset: 3px;
	box-shadow: none;
}

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

/* Paper grain: a faint, static noise layer. Decorative only. */
body {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Typography helpers ---------- */

/*
 * Headings must never break inside a word. Body text keeps break-word (long
 * URLs, email addresses); display type is instead sized to its container
 * below, so it always fits without being split.
 */
:where(.wp-site-blocks, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6, .wp-block-site-title, .bts-dateline) {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
	text-wrap: balance;
}

/*
 * Columns that carry display type become size containers, so headings can
 * scale with the column they sit in (cqi) rather than with the viewport.
 */
.bts-hero__copy,
.bts-section .wp-block-column,
.bts-band .wp-block-column,
.bts-section__head {
	container-type: inline-size;
}

.bts-section .wp-block-column h2,
.bts-band .wp-block-column h2,
.bts-section__head h2 {
	font-size: clamp(2rem, 10cqi, var(--wp--preset--font-size--heading));
}

.is-style-bts-eyebrow,
:where(.wp-site-blocks) .is-style-bts-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.has-ink-background-color .is-style-bts-eyebrow {
	color: var(--wp--preset--color--brass);
}

:where(h1, h2, h3) em {
	font-style: italic;
	color: var(--wp--preset--color--accent);
}

.has-ink-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--brass);
}

.has-ink-background-color a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--on-ink);
}

.has-ink-background-color :focus-visible {
	outline-color: #ffd27a;
}

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

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--text);
	padding-block: calc(0.85rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :active) {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--canvas);
}

.wp-block-button.is-style-bts-ink-outline > .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--brass);
	background: transparent;
	color: var(--wp--preset--color--on-ink);
	padding-block: calc(0.85rem - 2px);
}

.wp-block-button.is-style-bts-ink-outline > .wp-block-button__link:is(:hover, :active) {
	background: var(--wp--preset--color--brass);
	color: var(--wp--preset--color--ink);
}

.wp-block-button__link {
	min-block-size: 44px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

/* ---------- Header ---------- */

.bts-header {
	padding-block: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md);
	border-block-end: 1px solid var(--wp--preset--color--border);
}

.bts-header__rule {
	gap: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--md);
	padding-block-end: var(--wp--preset--spacing--xs);
	border-block-end: 3px double var(--wp--preset--color--border);
}

.bts-header__rule > p {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

/* Phones: the hero repeats the place and years, so keep only the reunion date. */
@media (max-width: 599px) {
	.bts-header__rule > p:first-child {
		display: none;
	}
}

.bts-header__bar {
	gap: var(--wp--preset--spacing--sm);
	padding-block-start: var(--wp--preset--spacing--sm);
}

.bts-brand {
	gap: 0.75rem;
}

.bts-brand .wp-block-site-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.bts-brand .wp-block-site-logo img {
	display: block;
}

/* ---------- Navigation (STS Starter safeguards, renamed) ---------- */

/*
 * Masthead across the mid range. The brand plus six menu items need ~990px at
 * the default size, so 1024-1279px tightens the menu to stay on one row, and
 * 600-1023px (above core's mobile-overlay switch) becomes an intentional
 * two-row masthead with the menu on its own ruled line.
 */
@media (min-width: 64rem) and (max-width: 79.99rem) {
	.bts-navigation,
	.bts-navigation .wp-block-navigation__container {
		font-size: 1rem;
		column-gap: 1rem;
	}
}

@media (min-width: 600px) and (max-width: 63.99rem) {
	.bts-header__bar > .bts-navigation {
		flex-basis: 100%;
		justify-content: flex-start;
		padding-block-start: 0.625rem;
		border-block-start: 1px solid var(--wp--preset--color--border);
	}

	.bts-header__bar > .bts-navigation .wp-block-navigation__container {
		justify-content: flex-start;
		column-gap: 1.25rem;
	}
}

.bts-navigation {
	min-inline-size: 0;
	max-inline-size: 100%;
	color: var(--wp--preset--color--text);
	gap: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--md);
}

.bts-navigation :where(.wp-block-navigation-item, .wp-block-navigation__container, .wp-block-page-list) {
	min-inline-size: 0;
	max-inline-size: 100%;
}

.bts-navigation .wp-block-navigation-item__content {
	min-inline-size: 0;
	max-inline-size: 100%;
	overflow-wrap: anywhere;
	white-space: normal;
	text-decoration: none;
	padding-block: 0.375rem;
}

.bts-navigation .wp-block-navigation-item__content:is(:hover, :focus-visible, :active, [aria-current="page"], [aria-current="true"]) {
	color: var(--wp--preset--color--accent-hover);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.bts-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open,
.bts-navigation.wp-block-navigation .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--canvas);
	color: var(--wp--preset--color--text);
}

.bts-navigation .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--gutter);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.625rem;
}

.bts-navigation .wp-block-navigation__responsive-container.is-menu-open :where(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-page-list) {
	inline-size: 100%;
}

.bts-navigation .wp-block-navigation__responsive-container.is-menu-open .has-child .wp-block-navigation__submenu-container {
	box-sizing: border-box;
	min-inline-size: 0;
	inline-size: 100%;
	padding-inline: var(--wp--preset--spacing--sm);
}

.bts-navigation.wp-block-navigation .wp-block-navigation__submenu-container {
	border-color: var(--wp--preset--color--border);
}

.bts-navigation :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) {
	box-sizing: border-box;
	min-inline-size: 44px;
	min-block-size: 44px;
	padding: 10px;
	border-radius: var(--wp--custom--radius--control);
	color: var(--wp--preset--color--text);
}

.bts-navigation :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close):hover {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent-hover);
}

.bts-navigation :is(a, button):focus-visible {
	outline: 3px solid var(--wp--preset--color--focus);
	outline-offset: 3px;
}

/* ---------- Page scaffolding ---------- */

.bts-main {
	margin-block-start: 0;
	padding-block: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xl);
}

.bts-main--landing {
	padding-block: 0;
}

.bts-main--landing > .wp-block-post-content > * {
	margin-block: 0;
}

.bts-page-title {
	margin-block-end: var(--wp--preset--spacing--lg);
	padding-block-end: var(--wp--preset--spacing--md);
	border-block-end: 3px double var(--wp--preset--color--border);
}

.wp-block-post-content > h2.wp-block-heading:not(:first-child) {
	margin-block-start: var(--wp--preset--spacing--lg);
}

.wp-block-post-content > h3.wp-block-heading:not(:first-child) {
	margin-block-start: var(--wp--preset--spacing--md);
}

.bts-section,
.bts-band {
	padding-block: var(--wp--preset--spacing--xl);
}

.bts-section + .bts-section:not(.has-background) {
	border-block-start: 1px solid var(--wp--preset--color--border);
}

.bts-section__head {
	margin-block-end: var(--wp--preset--spacing--lg);
}

.wp-block-columns.alignwide {
	gap: var(--wp--preset--spacing--lg) clamp(2rem, 6vw, 6rem);
}

/* ---------- Archival print (image style) ---------- */

.wp-block-image.is-style-bts-mat,
.wp-block-post-featured-image.is-style-bts-mat {
	background: #fffcf6;
	padding: clamp(0.625rem, 1.6vw, 1.25rem) clamp(0.625rem, 1.6vw, 1.25rem) 0;
	box-shadow:
		0 1px 0 rgb(30 27 23 / 0.08),
		0 14px 34px -18px rgb(30 27 23 / 0.45);
	border: 1px solid rgb(127 116 102 / 0.35);
}

.wp-block-image.is-style-bts-mat img {
	display: block;
	inline-size: 100%;
	filter: sepia(0.12) saturate(0.92) contrast(1.02);
}

.wp-block-image.is-style-bts-mat .wp-element-caption {
	margin: 0;
	padding: 0.75rem 0.25rem 0.875rem;
	text-align: center;
	color: var(--wp--preset--color--muted);
}

.wp-block-image.is-style-bts-mat:not(:has(figcaption)) {
	padding-block-end: clamp(0.625rem, 1.6vw, 1.25rem);
}

/* ---------- Hero ---------- */

.bts-hero {
	padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 7vw, 6.5rem);
	position: relative;
	overflow: hidden;
}

.bts-hero::before {
	content: "BTS";
	position: absolute;
	inset-inline-end: -0.06em;
	inset-block-end: -0.28em;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 800;
	font-size: clamp(10rem, 26vw, 26rem);
	line-height: 1;
	color: var(--wp--preset--color--surface);
	pointer-events: none;
	z-index: 0;
}

.bts-hero > * {
	position: relative;
	z-index: 1;
}

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

.bts-hero__title {
	margin-block: 0.75rem 0;
	/* 15% of the copy column: "connection." spans roughly 80% of it. */
	font-size: clamp(2.75rem, 15cqi, 7rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
}

.bts-hero__title em {
	display: inline-block;
	font-weight: 500;
}

.bts-hero__lede {
	max-inline-size: 40ch;
	font-family: var(--wp--preset--font-family--serif);
	line-height: 1.45;
	color: #2f2a24;
}

.bts-hero__copy .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--md);
}

.bts-hero__media .wp-block-image {
	transform: rotate(1.25deg);
	margin: 0;
}

/* Desktop: let the print overlap the column gap slightly so text and photo
   read as one composition rather than two boxes. */
@media (min-width: 64rem) {
	.bts-hero__media .wp-block-image {
		margin-inline-start: calc(-1 * clamp(0rem, 2vw, 2rem));
	}
}

/* ---------- News ledger ---------- */

.bts-ledger {
	padding-block: 0 var(--wp--preset--spacing--lg);
}

.bts-ledger__grid {
	gap: 0;
	border-block: 2px solid var(--wp--preset--color--text);
}

.bts-ledger__item {
	padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--md) var(--wp--preset--spacing--md) 0;
}

.bts-ledger__item + .bts-ledger__item {
	padding-inline-start: var(--wp--preset--spacing--md);
	border-inline-start: 1px solid var(--wp--preset--color--border);
}

.bts-ledger__item > * {
	margin-block: 0.375rem 0;
}

.bts-ledger__headline {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.25;
}

@media (max-width: 47.99rem) {
	.bts-ledger__item,
	.bts-ledger__item + .bts-ledger__item {
		padding-inline: 0;
		border-inline-start: 0;
	}

	.bts-ledger__item + .bts-ledger__item {
		border-block-start: 1px solid var(--wp--preset--color--border);
	}
}

/* ---------- History + timeline ---------- */

@media (min-width: 48rem) {
	.bts-history__intro {
		position: sticky;
		inset-block-start: var(--wp--preset--spacing--md);
		align-self: flex-start;
	}
}

.bts-history__intro .wp-block-image {
	max-inline-size: 15rem;
	transform: rotate(-1.5deg);
}

ol.is-style-bts-timeline {
	list-style: none;
	margin-inline: 0;
	padding: 0;
	counter-reset: none;
	border-inline-start: 2px solid var(--wp--preset--color--text);
}

ol.is-style-bts-timeline > li {
	position: relative;
	margin: 0;
	padding: 0 0 var(--wp--preset--spacing--lg) var(--wp--preset--spacing--lg);
}

ol.is-style-bts-timeline > li:last-child {
	padding-block-end: 0;
}

ol.is-style-bts-timeline > li::before {
	content: "";
	position: absolute;
	inset-inline-start: calc(-0.5rem - 1px);
	inset-block-start: 0.55em;
	inline-size: 1rem;
	block-size: 1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--canvas);
	border: 2px solid var(--wp--preset--color--accent);
}

ol.is-style-bts-timeline > li > strong:first-child {
	display: block;
	margin-block-end: 0.25rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.75rem, 7cqi, var(--wp--preset--font-size--heading));
	font-weight: 600;
	line-height: 1.05;
	color: var(--wp--preset--color--accent);
}

/* In page content (interior pages) the year labels rank below the h2. */
.wp-block-post-content > ol.is-style-bts-timeline > li > strong:first-child {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

/* ---------- Epigraph ---------- */

.bts-epigraph-band {
	text-align: center;
}

.wp-block-quote.is-style-bts-epigraph {
	margin-inline: auto;
	max-inline-size: 46rem;
	border: 0;
	padding: 0;
}

.wp-block-quote.is-style-bts-epigraph p {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: clamp(1.75rem, 4.2vw, 3.25rem);
	line-height: 1.18;
	text-wrap: balance;
}

.wp-block-quote.is-style-bts-epigraph p::before {
	content: "\201C";
	display: block;
	font-size: 1.6em;
	line-height: 0.6;
	color: var(--wp--preset--color--accent);
}

.wp-block-quote.is-style-bts-epigraph cite {
	display: block;
	margin-block-start: var(--wp--preset--spacing--md);
	font-family: var(--wp--preset--font-family--mono);
	font-style: normal;
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

/* Brass is reserved for the dark ink band, where it measures 8.5:1. */
.has-ink-background-color .wp-block-quote.is-style-bts-epigraph p::before,
.has-ink-background-color .wp-block-quote.is-style-bts-epigraph cite {
	color: var(--wp--preset--color--brass);
}

/* ---------- Galleries ---------- */

/*
 * Core overlays gallery captions in white on the photo, which is unreadable on
 * light scans. Captions sit below the image instead (core does the same for
 * bordered and rounded images). :not(#individual-image) matches core's
 * ID-level specificity.
 */
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) figcaption {
	position: relative;
	flex: initial;
	max-block-size: none;
	overflow: visible;
	margin: 0;
	padding: 0.5rem 0.25rem 0.25rem;
	background: none;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	line-height: 1.5;
	text-shadow: none;
}

.has-ink-background-color .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) figcaption {
	color: var(--wp--preset--color--on-ink);
}

.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):has(figcaption)::before {
	content: none;
}

/*
 * Cropped galleries: core sizes images with `flex: 1 0 0%`, which collapses
 * them once the caption is in the flow. Give them a fixed crop ratio instead.
 */
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) {
	justify-content: flex-start;
}

.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	flex: 0 0 auto;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ---------- Class roll ---------- */

.wp-block-gallery.is-style-bts-class-roll {
	--wp--style--unstable-gallery-gap: clamp(0.75rem, 2vw, 1.5rem);
	gap: var(--wp--style--unstable-gallery-gap);
}

.wp-block-gallery.is-style-bts-class-roll .wp-block-image {
	background: #fffcf6;
	padding: 0.5rem 0.5rem 0;
	border: 1px solid rgb(127 116 102 / 0.35);
	box-shadow: 0 10px 24px -18px rgb(30 27 23 / 0.5);
	flex-direction: column;
}

/*
 * Core's cropped-gallery rule gives images `flex: 1 0 0%` (with ID-level
 * specificity via :not(#individual-image)). In this column-direction figure
 * that collapses lazily loaded images to 0px tall, so match its specificity
 * and size the photo by aspect ratio instead.
 */
.wp-block-gallery.is-style-bts-class-roll.has-nested-images figure.wp-block-image:not(#individual-image) {
	block-size: auto;
}

.wp-block-gallery.is-style-bts-class-roll.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img,
.wp-block-gallery.is-style-bts-class-roll.has-nested-images figure.wp-block-image:not(#individual-image) img {
	flex: 0 0 auto;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: sepia(0.12) saturate(0.9);
}

.wp-block-gallery.is-style-bts-class-roll.has-nested-images figure.wp-block-image:not(#individual-image) figcaption {
	position: static;
	background: none;
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.125rem;
	padding: 0.5rem 0.25rem 0.625rem;
	text-align: start;
	text-shadow: none;
	max-block-size: none;
	overflow: visible;
}

.wp-block-gallery.is-style-bts-class-roll.has-nested-images figure.wp-block-image:has(figcaption)::before {
	display: none;
}

.bts-roll .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--lg);
}

/* ---------- Reunion ---------- */

.bts-dateline {
	margin-block: 0.5rem 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(3.25rem, 17cqi, var(--wp--preset--font-size--numeral));
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.02em;
	font-variant-numeric: lining-nums;
}

.bts-dateline span {
	display: block;
	color: var(--wp--preset--color--brass);
	font-style: italic;
}

.bts-reunion h2 {
	margin-block-start: var(--wp--preset--spacing--md);
}

.bts-reunion__program h3 {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brass);
	padding-block-end: 0.75rem;
	border-block-end: 3px double currentColor;
}

ul.is-style-bts-program {
	list-style: none;
	margin: 0 0 var(--wp--preset--spacing--lg);
	padding: 0;
}

ul.is-style-bts-program > li {
	padding-block: 0.875rem;
	border-block-end: 1px dotted currentColor;
}

ul.is-style-bts-program > li > strong:first-child {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}

.bts-reunion .wp-block-image.is-style-bts-mat {
	background: #f5efe4;
}

/* ---------- Scholarship ---------- */

.bts-spotlight {
	padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--md);
	background: var(--wp--preset--color--canvas);
	border: 1px solid var(--wp--preset--color--border);
	outline: 1px solid var(--wp--preset--color--border);
	outline-offset: 5px;
}

.bts-spotlight > * {
	margin-block: 0.5rem 0;
}

.bts-spotlight {
	container-type: inline-size;
}

.bts-spotlight__name {
	font-size: clamp(1.75rem, 9cqi, var(--wp--preset--font-size--heading));
	line-height: 1.05;
}

/* ---------- Recipient spotlight (pattern: recipient-spotlight) ---------- */
/* Two matted prints, each above a dated milestone. From 40rem the milestones
   sit on one ruled line so the prints read as a 2-step timeline; below that the
   chapters stack: print, year, text, print, year, text. */

.wp-block-post-content > .bts-recipient {
	margin-block: var(--wp--preset--spacing--lg);
}

.bts-recipient__head {
	margin-block-end: var(--wp--preset--spacing--lg);
}

.bts-recipient__head > * {
	margin-block: 0;
}

.bts-recipient__name {
	margin-block-start: 0.5rem;
	font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4.5rem);
	line-height: 1;
	letter-spacing: -0.015em;
}

.bts-recipient__lede {
	margin-block-start: 0.75rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--lead);
	font-style: italic;
	line-height: 1.35;
	color: #2f2a24;
}

/* The originals are shown exactly as supplied: no archival tint. */
.bts-recipient .wp-block-image.is-style-bts-mat img {
	filter: none;
}

/* Print width comes from the grid column, never from the photograph: content-
   based sizing (fit-content) collapses in Safari and Firefox, and for lazy
   images that have not loaded, because core's lightbox makes the figure a
   column flexbox and a percentage max-width image contributes no width.
   The caps keep each photograph at or below its own pixel width (640 x 480
   and 480 x 640 originals) once the mat padding is subtracted. */
.bts-recipient .bts-recipient__print {
	box-sizing: border-box;
	margin: 0;
	inline-size: 100%;
	min-inline-size: 0;
	max-inline-size: 42rem;
	transform: rotate(-0.75deg);
}

.bts-recipient .bts-recipient__print img {
	flex: none;
	align-self: stretch;
	inline-size: 100%;
	max-inline-size: 100%;
	block-size: auto;
}

.bts-recipient .bts-recipient__print figcaption {
	overflow-wrap: break-word;
}

/* Core's "Enlarge" button: 32px target (WCAG 2.2 target size) and the site's
   focus ring instead of the browser default. */
.bts-recipient .wp-lightbox-container button {
	inline-size: 2rem;
	block-size: 2rem;
}

.bts-recipient .wp-lightbox-container button:focus-visible {
	outline: 3px solid var(--wp--preset--color--focus);
	outline-offset: 2px;
}

.bts-recipient .bts-recipient__print--portrait {
	max-inline-size: 24rem;
	transform: rotate(1deg);
}

.bts-recipient__milestone {
	position: relative;
	margin-block-start: var(--wp--preset--spacing--md);
	padding-block-start: var(--wp--preset--spacing--md);
	border-block-start: 2px solid var(--wp--preset--color--text);
}

.bts-recipient__milestone::before {
	content: "";
	position: absolute;
	inset-block-start: calc(-0.5rem - 1px);
	inset-inline-start: 0;
	inline-size: 1rem;
	block-size: 1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--canvas);
	border: 2px solid var(--wp--preset--color--accent);
}

.bts-recipient__milestone > * {
	margin-block: 0;
	max-inline-size: 36rem;
}

.bts-recipient__milestone > * + * {
	margin-block-start: 0.5rem;
}

.bts-recipient .bts-recipient__year {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
	font-weight: 600;
	line-height: 1.05;
	color: var(--wp--preset--color--accent);
}

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

.bts-recipient__closing {
	margin-block-start: var(--wp--preset--spacing--xl);
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
	font-style: italic;
	line-height: 1.25;
	text-align: center;
	text-wrap: balance;
}

.bts-recipient__closing::before {
	content: "";
	display: block;
	inline-size: 3rem;
	block-size: 3px;
	margin: 0 auto 1.25rem;
	background: var(--wp--preset--color--accent);
}

@media (min-width: 40rem) {
	.bts-recipient .bts-recipient__chapters.wp-block-columns {
		--bts-recipient-gap: clamp(1.5rem, 5vw, 5rem);
		display: grid;
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
		grid-template-rows: auto auto;
		gap: 0 var(--bts-recipient-gap);
	}

	/* Each chapter's print and milestone join the parent grid directly, so both
	   prints share row 1 (aligned on their bottom edge) and both milestones
	   share row 2. Source order stays print, milestone, print, milestone. */
	.bts-recipient .bts-recipient__chapters > .bts-recipient__chapter {
		display: contents;
	}

	.bts-recipient__chapter > .bts-recipient__print {
		grid-row: 1;
		align-self: end;
	}

	.bts-recipient__chapter > .bts-recipient__milestone {
		grid-row: 2;
	}

	.bts-recipient__chapter:first-child > * {
		grid-column: 1;
	}

	.bts-recipient__chapter:last-child > * {
		grid-column: 2;
	}

	/* Carry the rule across the column gap so the two milestones share a line. */
	.bts-recipient__chapter:first-child .bts-recipient__milestone::after {
		content: "";
		position: absolute;
		inset-block-start: -2px;
		inset-inline-start: 100%;
		inline-size: var(--bts-recipient-gap);
		border-block-start: 2px solid var(--wp--preset--color--text);
	}
}

@media (max-width: 39.99rem) {
	.bts-recipient .bts-recipient__chapters.wp-block-columns {
		gap: var(--wp--preset--spacing--lg);
	}
}

/* ---------- Stay connected ---------- */

.bts-connect .wp-block-columns {
	align-items: center;
}

.bts-connect__emblem .wp-block-image {
	max-inline-size: 15rem;
	margin-inline: auto;
}

.bts-connect .wp-block-column h2 {
	font-size: clamp(2.5rem, 12cqi, var(--wp--preset--font-size--display));
	line-height: 1;
	margin-block-start: 0;
}

/* ---------- Footer ---------- */

.bts-footer {
	padding-block: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--md);
}

.bts-footer .wp-block-site-title a {
	color: var(--wp--preset--color--on-ink);
	text-decoration: none;
	font-size: 2rem;
}

.bts-footer h2.is-style-bts-eyebrow {
	font-size: 0.8125rem;
	margin-block-end: 0.75rem;
}

.bts-footer-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--on-ink);
	padding-block: 0.25rem;
}

.bts-footer-nav .wp-block-navigation-item__content:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--brass);
	text-decoration: underline;
}

.bts-footer__colophon {
	margin-block-start: var(--wp--preset--spacing--lg);
	padding-block-start: var(--wp--preset--spacing--sm);
	border-block-start: 1px solid rgb(245 239 228 / 0.3);
}

.bts-footer__colophon p {
	margin: 0;
	color: rgb(245 239 228 / 0.85);
}

/* ---------- Archive entries ---------- */

.bts-entry {
	padding-block: var(--wp--preset--spacing--md);
	border-block-end: 1px solid var(--wp--preset--color--border);
}

.bts-entry > * {
	margin-block: 0.375rem 0;
}

.bts-entry .wp-block-post-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.bts-entry .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* ---------- News ---------- */

/* Date and category on one line; the category is set off by a rule rather
   than a typed separator, so screen readers hear only the two values. */
.bts-entry__meta {
	gap: 0.25rem 0.625rem;
	align-items: baseline;
}

.bts-entry__meta > * {
	margin: 0;
}

.bts-entry__meta .wp-block-post-terms {
	padding-inline-start: 0.625rem;
	border-inline-start: 1px solid var(--wp--preset--color--border);
}

/* Narrow phones: date and category may wrap; drop the rule so a wrapped
   category does not start with a stray divider. */
@media (max-width: 23.99rem) {
	.bts-entry__meta .wp-block-post-terms {
		padding-inline-start: 0;
		border-inline-start: 0;
	}
}

.bts-entry__meta .wp-block-post-terms a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.bts-entry__meta .wp-block-post-terms a:hover {
	color: var(--wp--preset--color--accent-hover);
	text-decoration-thickness: 2px;
}

.bts-entry .wp-block-post-title {
	margin-block-start: 0.5rem;
}

.bts-archive-kicker {
	margin-block-end: 0.5rem;
}

.bts-archive-kicker a {
	color: inherit;
	text-underline-offset: 0.3em;
}

/* News views only (posts page, single posts, archives): page headlines scale
   with the viewport on phones so long words such as "announcements" fit, and
   never break mid-word (core's post-title sets word-break: break-word). */
body:is(.blog, .single-post, .archive) .bts-main :is(h1.wp-block-heading, h1.wp-block-post-title, h1.wp-block-query-title) {
	font-size: clamp(2rem, 11vw, var(--wp--preset--font-size--display));
}

body:is(.blog, .single-post, .archive) .bts-main .wp-block-post-title {
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
}

/* Pagination: 44px targets, current page shown in ink. */
.bts-pagination.wp-block-query-pagination {
	margin-block-start: var(--wp--preset--spacing--lg);
	gap: 0.5rem 1rem;
	align-items: center;
	font-weight: 600;
}

.bts-pagination .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.bts-pagination .page-numbers,
.bts-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	min-inline-size: 2.75rem;
	min-block-size: 2.75rem;
	padding-inline: 0.5rem;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--control);
}

.bts-pagination a.page-numbers,
.bts-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--border);
	text-decoration: none;
}

.bts-pagination a.page-numbers:hover,
.bts-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover {
	color: var(--wp--preset--color--accent-hover);
	text-decoration: underline;
}

.bts-pagination .page-numbers.current {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--canvas);
}

.bts-pagination .page-numbers.dots {
	min-inline-size: 1.5rem;
	padding: 0;
}

/* Single post: newer / older and all-news links. */
.bts-post-nav {
	margin-block-start: var(--wp--preset--spacing--xl);
}

.bts-post-nav__links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--wp--preset--spacing--md);
	padding-block: var(--wp--preset--spacing--md);
	border-block: 3px double var(--wp--preset--color--border);
}

.bts-post-nav__links:not(:has(a)) {
	display: none;
}

.bts-post-nav__links > * {
	margin: 0;
}

.bts-post-nav .post-navigation-link__label {
	display: block;
	margin-block-end: 0.25rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.bts-post-nav :is(.post-navigation-link-previous, .post-navigation-link-next) a {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.25;
	color: var(--wp--preset--color--text);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.bts-post-nav :is(.post-navigation-link-previous, .post-navigation-link-next) a:hover {
	color: var(--wp--preset--color--accent-hover);
	text-decoration-thickness: 2px;
}

.bts-post-nav__newer {
	text-align: end;
}

.bts-post-nav__older:empty,
.bts-post-nav__newer:empty {
	display: none;
}

@media (max-width: 39.99rem) {
	.bts-post-nav__newer {
		text-align: start;
	}
}

.bts-post-nav__all {
	margin-block-start: var(--wp--preset--spacing--md);
	font-weight: 600;
}

.bts-post-nav__all a::before {
	content: "\2190\00a0";
	content: "\2190\00a0" / "";
}

/* ---------- Native search and comment controls (STS Starter, renamed) ---------- */

.wp-block-search .wp-block-search__input,
.bts-comments input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.bts-comments textarea {
	box-sizing: border-box;
	max-inline-size: 100%;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--control);
	background-color: #fffcf6;
	color: var(--wp--preset--color--text);
	font: inherit;
	padding: 0.75rem;
}

.bts-comments :where(.comment-form-author, .comment-form-email, .comment-form-url) input,
.bts-comments textarea {
	display: block;
	inline-size: 100%;
}

.bts-comments textarea {
	min-block-size: 8rem;
	resize: vertical;
}

:where(.wp-block-search__button, .bts-comments input[type="submit"]) {
	min-block-size: 44px;
}

.bts-comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--xs);
}

.bts-comments .comment-form-cookies-consent input[type="checkbox"] {
	flex: 0 0 auto;
}

/* ---------- Motion and display modes ---------- */

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

@media (forced-colors: active) {
	:where(.wp-site-blocks, .editor-styles-wrapper) :focus-visible,
	.bts-navigation :is(a, button):focus-visible {
		outline-color: Highlight;
	}

	.bts-navigation :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) {
		border: 1px solid ButtonText;
	}

	.bts-navigation.wp-block-navigation .wp-block-navigation__submenu-container {
		border-color: CanvasText;
	}

	.bts-hero::before {
		display: none;
	}

	.bts-recipient__milestone::before {
		background: Canvas;
		border-color: CanvasText;
	}

	body .skip-link.screen-reader-text:focus {
		outline-color: Highlight;
	}
}

@media print {
	.bts-header__rule,
	.bts-navigation,
	.bts-footer-nav {
		display: none;
	}

	body {
		background: none;
	}
}
