/* =========================================================================
   The Sacred Files — front-end styles · v0.2.0 (phase 3 visual system)

   Tones: every section declares one tone (.tone--ivory, --parchment, --burgundy,
   --wine, --deep, --midnight, --abyss). Components read the tone's variables, so
   cards, links and dividers adapt to light or dark backgrounds automatically.
   All text pairs meet WCAG AA (4.5:1); brand gold #B99867 is never small text
   on a light background (gold-text #76582A is used there).
   ========================================================================= */

/* ---------- Tone variables ---------- */
:root,
.tone--ivory {
	--t-bg: var(--tsf-ivory);
	--t-text: var(--tsf-midnight);
	--t-heading: var(--tsf-burgundy-deep);
	--t-muted: var(--tsf-muted);
	--t-accent: var(--tsf-burgundy);
	--t-kicker: var(--tsf-gold-text);
	--t-line: rgba(36, 35, 40, 0.14);
	--t-rule: var(--tsf-gold);
	--t-card-bg: var(--tsf-white);
	--t-card-border: rgba(36, 35, 40, 0.1);
	--t-card-top: var(--tsf-burgundy);
	--t-card-shadow: 0 18px 40px rgba(41, 29, 36, 0.14);
	--t-focus: var(--tsf-burgundy);
}
.tone--parchment {
	--t-bg: var(--tsf-parchment);
	--t-card-bg: var(--tsf-ivory);
}
.tone--burgundy,
.tone--wine,
.tone--deep,
.tone--midnight,
.tone--abyss {
	--t-text: var(--tsf-ivory);
	--t-heading: var(--tsf-ivory);
	--t-muted: var(--tsf-muted-dark);
	--t-accent: var(--tsf-gold-light);
	--t-kicker: var(--tsf-gold-light);
	--t-line: rgba(217, 193, 154, 0.28);
	--t-rule: var(--tsf-gold);
	--t-card-bg: rgba(251, 247, 240, 0.04);
	--t-card-border: rgba(217, 193, 154, 0.28);
	--t-card-top: var(--tsf-gold);
	--t-card-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
	--t-focus: var(--tsf-gold-light);
}
.tone--burgundy { --t-bg: var(--tsf-burgundy); --t-muted: var(--tsf-muted-rose); --t-card-bg: rgba(26, 18, 23, 0.28); }
.tone--wine     { --t-bg: var(--tsf-wine); --t-muted: var(--tsf-muted-rose); }
.tone--deep     { --t-bg: var(--tsf-burgundy-deep); --t-card-bg: var(--tsf-wine); }
.tone--midnight { --t-bg: var(--tsf-midnight); }
.tone--abyss    { --t-bg: var(--tsf-abyss); }

[class*="tone--"] { background-color: var(--t-bg); color: var(--t-text); }

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--tsf-ivory);
	color: var(--tsf-midnight);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--t-accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--t-focus, var(--tsf-burgundy));
	outline-offset: 3px;
	border-radius: var(--tsf-radius);
}
.site-header :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible,
.hero :where(a, button):focus-visible { outline-color: var(--tsf-gold-light); }

::selection { background: var(--tsf-burgundy); color: var(--tsf-white); }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--tsf-white);
	color: var(--tsf-burgundy);
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.site-main:focus { outline: none; }

/* ---------- Layout ---------- */
.container {
	--tsf-gutter: clamp(1.15rem, 4vw, 2.5rem);
	width: 100%;
	max-width: calc(78rem + 2 * var(--tsf-gutter));
	margin-inline: auto;
	padding-inline: var(--tsf-gutter);
}
.container--narrow { max-width: calc(44rem + 2 * var(--tsf-gutter)); }
.container--wide { max-width: calc(78rem + 2 * var(--tsf-gutter)); }

/* ---------- Buttons ---------- */
.button,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.8rem 1.6rem;
	border: 1px solid var(--tsf-burgundy);
	border-radius: var(--tsf-radius);
	background: var(--tsf-burgundy);
	color: var(--tsf-ivory);
	font: 600 0.95rem/1.2 var(--tsf-sans);
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.button:hover { background: var(--tsf-burgundy-deep); border-color: var(--tsf-burgundy-deep); color: var(--tsf-ivory); transform: translateY(-1px); }
.button--outline { background: transparent; color: var(--t-accent); border-color: currentColor; }
.button--outline:hover { background: var(--tsf-burgundy); border-color: var(--tsf-burgundy); color: var(--tsf-ivory); }
.button--gold { background: var(--tsf-gold); border-color: var(--tsf-gold); color: var(--tsf-abyss); }
.button--gold:hover { background: var(--tsf-ivory); border-color: var(--tsf-ivory); color: var(--tsf-abyss); }
.button--ghost { background: transparent; border-color: var(--tsf-gold-light); color: var(--tsf-ivory); }
.button--ghost:hover { background: rgba(217, 193, 154, 0.14); border-color: var(--tsf-gold-light); color: var(--tsf-ivory); }
.button--small { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.86rem; }

.icon-button {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	border-radius: var(--tsf-radius);
}
.tsf-icon { width: 1.4em; height: 1.4em; flex: none; }
.button .tsf-icon, .section-header__link .tsf-icon { width: 1.1em; height: 1.1em; transition: transform 0.25s ease; }
.section-header__link:hover .tsf-icon { transform: translateX(3px); }

/* Ornament: line · diamond · line */
.ornament {
	display: block;
	width: 7rem;
	height: 1.25rem;
	margin: 0 auto 1.5rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='20' viewBox='0 0 112 20'%3E%3Cg fill='none' stroke='%23d9c19a' stroke-width='1'%3E%3Cpath d='M0 10h42M70 10h42'/%3E%3Cpath d='M56 3.5 62.5 10 56 16.5 49.5 10Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.tone--ivory .ornament, .tone--parchment .ornament {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='20' viewBox='0 0 112 20'%3E%3Cg fill='none' stroke='%2376582a' stroke-width='1'%3E%3Cpath d='M0 10h42M70 10h42'/%3E%3Cpath d='M56 3.5 62.5 10 56 16.5 49.5 10Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Header (always solid Abyss, gold rule) ---------- */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: var(--tsf-abyss);
	color: var(--tsf-ivory);
	border-bottom: 1px solid rgba(185, 152, 103, 0.5);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: calc(78rem + 5rem);
	min-height: 76px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.site-brand { margin-right: auto; display: flex; align-items: center; min-width: 0; }
.site-brand .custom-logo { display: block; max-height: 48px; width: auto; }
.wordmark {
	font-family: var(--tsf-serif);
	font-weight: 600;
	font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tsf-ivory);
	text-decoration: none;
	white-space: nowrap;
}
.wordmark:hover { color: var(--tsf-gold-light); }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a {
	position: relative;
	color: var(--tsf-ivory);
	text-decoration: none;
	font: 500 0.95rem/1.3 var(--tsf-sans);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--tsf-gold-light); }
.submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.submenu-toggle .tsf-icon { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.submenu-toggle[aria-expanded="true"] .tsf-icon { transform: rotate(180deg); }

/* Language switcher: a compact button + list (header), plain list (footer) */
.lang-switcher { position: relative; display: flex; align-items: center; gap: 0.35rem; }
.lang-switcher ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.1rem; }
.lang-switcher a {
	display: inline-grid;
	place-items: center;
	min-width: 36px;
	min-height: 36px;
	padding: 0 0.35rem;
	font: 600 0.78rem/1 var(--tsf-sans);
	letter-spacing: 0.1em;
	color: var(--tsf-muted-dark);
	text-decoration: none;
}
.lang-switcher a:hover { color: var(--tsf-gold-light); }
.lang-switcher a[aria-current="true"] { color: var(--tsf-gold-light); text-decoration: underline; text-underline-offset: 0.4em; text-decoration-color: var(--tsf-gold); }
.lang-switcher .tsf-icon { width: 1.1rem; height: 1.1rem; color: var(--tsf-gold); }

.lang-switcher__label-inline, .lang-switcher__current-name { display: none; }
.lang-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0 0.6rem;
	border: 1px solid rgba(185, 152, 103, 0.45);
	border-radius: 999px;
	background: transparent;
	color: var(--tsf-ivory);
	font: 600 0.78rem/1 var(--tsf-sans);
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.js .lang-switcher__toggle[hidden] { display: inline-flex; }
.lang-switcher__toggle:hover, .lang-switcher__toggle[aria-expanded="true"] { border-color: var(--tsf-gold-light); background: rgba(217, 193, 154, 0.08); }
.lang-switcher__toggle .tsf-icon--chevron { width: 0.9rem; height: 0.9rem; transition: transform 0.2s ease; }
.lang-switcher__toggle[aria-expanded="true"] .tsf-icon--chevron { transform: rotate(180deg); }
.lang-switcher--menu .lang-switcher__list a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	min-height: 44px;
	padding: 0.35rem 1rem;
	font: 500 0.95rem/1.25 var(--tsf-sans);
	letter-spacing: 0;
	color: var(--tsf-ivory);
}
.lang-switcher__code {
	display: inline-grid;
	place-items: center;
	flex: none;
	min-width: 3.4rem;
	padding: 0.2rem 0.35rem;
	white-space: nowrap;
	border: 1px solid rgba(185, 152, 103, 0.5);
	border-radius: 3px;
	font: 600 0.7rem/1 var(--tsf-sans);
	letter-spacing: 0.08em;
	color: var(--tsf-gold-light);
}
.lang-switcher--menu .lang-switcher__list a[aria-current="true"] { text-decoration: none; background: rgba(217, 193, 154, 0.1); }
.lang-switcher--menu .lang-switcher__list a[aria-current="true"] .lang-switcher__code { background: var(--tsf-gold); border-color: var(--tsf-gold); color: var(--tsf-abyss); }
.lang-switcher--menu .lang-switcher__list a:hover { background: rgba(217, 193, 154, 0.08); color: var(--tsf-gold-light); }
.site-nav__extras { display: flex; align-items: center; gap: 0.85rem; }

.header-search { background: var(--tsf-abyss); border-top: 1px solid rgba(185, 152, 103, 0.3); }
.header-search[hidden] { display: none; }
.no-js .header-search[hidden] { display: block; } /* without JS the search form is simply always shown */
.js .nav-toggle[hidden], .js .search-toggle[hidden] { display: inline-grid; } /* reserve their space before the script runs */
.header-search__inner { max-width: 44rem; margin-inline: auto; padding: 1rem clamp(1rem, 4vw, 2rem) 1.25rem; }

/* Mobile navigation */
@media (max-width: 959.98px) {
	.site-header__inner { min-height: 64px; }
	.js .nav-toggle { display: inline-grid; }
	.nav-toggle .tsf-icon--close,
	.nav-toggle[aria-expanded="true"] .tsf-icon--menu { display: none; }
	.nav-toggle[aria-expanded="true"] .tsf-icon--close { display: block; }

	.js .site-nav {
		position: fixed;
		left: 0;
		right: 0;
		top: calc(64px + var(--wp-admin--admin-bar--height, 0px));
		bottom: 0;
		overflow-y: auto;
		background:
			radial-gradient(80% 50% at 100% 0%, rgba(217, 193, 154, 0.12), rgba(217, 193, 154, 0) 70%),
			var(--tsf-abyss);
		padding: 0.75rem clamp(1.15rem, 4vw, 2rem) 2rem;
		display: flex;
		flex-direction: column;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
	}
	.js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.no-js .site-nav { width: 100%; order: 10; padding-bottom: 1rem; }
	.no-js .site-header__inner { flex-wrap: wrap; }

	.primary-nav .menu > li { border-bottom: 1px solid rgba(217, 193, 154, 0.18); display: flex; flex-wrap: wrap; align-items: center; }
	.primary-nav .menu > li > a { flex: 1; padding: 1rem 0; font: 600 1.5rem/1.2 var(--tsf-serif); }
	.primary-nav .submenu-toggle { width: 48px; height: 48px; }
	.primary-nav .sub-menu { width: 100%; padding: 0 0 0.9rem 0.25rem; }
	.js .primary-nav .sub-menu:not(.is-open) { display: none; }
	.primary-nav .sub-menu a { display: block; padding: 0.6rem 0; font-size: 1rem; color: var(--tsf-muted-dark); }
	.site-nav__extras { margin-top: auto; padding-top: 1.5rem; justify-content: space-between; flex-wrap: wrap; }
	.site-nav__extras .button { flex: 1 1 100%; }
	body.tsf-nav-open { overflow: hidden; }
}

@media (min-width: 960px) {
	.nav-toggle { display: none !important; }
	.site-nav { display: flex; align-items: center; gap: 1.75rem; }
	.primary-nav .menu { display: flex; align-items: center; gap: 0.25rem 1.4rem; flex-wrap: wrap; }
	.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
	.primary-nav .menu > li > a { padding: 0.6rem 0; }
	.primary-nav .menu > li > a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0.2rem;
		height: 1px;
		background: var(--tsf-gold);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.3s ease;
	}
	.primary-nav .menu > li > a:hover::after,
	.primary-nav .menu > .current-menu-item > a::after,
	.primary-nav .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
	.primary-nav .sub-menu {
		position: absolute;
		top: calc(100% + 0.9rem);
		left: -1.25rem;
		min-width: 15rem;
		padding: 0.75rem 0;
		background: var(--tsf-abyss);
		border: 1px solid rgba(185, 152, 103, 0.35);
		border-top: 2px solid var(--tsf-gold);
		box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
		display: none;
	}
	.primary-nav .sub-menu.is-open,
	.no-js .primary-nav li:focus-within > .sub-menu,
	.no-js .primary-nav li:hover > .sub-menu { display: block; animation: tsf-drop 0.2s ease-out; }
	.primary-nav .sub-menu a { display: block; padding: 0.6rem 1.35rem; }
	.primary-nav .sub-menu a:hover { background: rgba(217, 193, 154, 0.08); }
	.primary-nav .mega > .sub-menu.is-open { display: grid; grid-template-columns: repeat(2, minmax(12rem, 1fr)); min-width: 30rem; }
}

/* Desktop: language list as a dropdown; Explore as a full-width panel of area columns */
@media (min-width: 960px) {
	.lang-switcher--menu .lang-switcher__list {
		position: absolute;
		top: calc(100% + 0.9rem);
		right: 0;
		z-index: 5;
		display: block;
		min-width: 16rem;
		padding: 0.5rem 0;
		background: var(--tsf-abyss);
		border: 1px solid rgba(185, 152, 103, 0.35);
		border-top: 2px solid var(--tsf-gold);
		box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
	}
	.js .lang-switcher--menu .lang-switcher__list:not(.is-open) { display: none; }
	.lang-switcher--menu .lang-switcher__list.is-open { animation: tsf-drop 0.2s ease-out; }
	.no-js .lang-switcher--menu .lang-switcher__list { position: static; display: flex; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
	.no-js .lang-switcher--menu .lang-switcher__name { display: none; }

	.primary-nav .menu > li.menu-item--mega { position: static; }
	.primary-nav .sub-menu.mega {
		left: 50%;
		top: 100%;
		width: min(76rem, calc(100vw - 2rem));
		transform: translateX(-50%);
		padding: 1.75rem 1.75rem 2rem;
		background:
			radial-gradient(60% 120% at 50% 0%, rgba(217, 193, 154, 0.08), rgba(217, 193, 154, 0) 70%),
			var(--tsf-abyss);
	}
	.primary-nav .sub-menu.mega.is-open,
	.no-js .primary-nav li:focus-within > .sub-menu.mega,
	.no-js .primary-nav li:hover > .sub-menu.mega {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 0 1.25rem;
		animation: tsf-drop-mega 0.2s ease-out;
	}
	.mega > li { display: block; min-width: 0; padding: 0 0.25rem; border-left: 1px solid rgba(185, 152, 103, 0.22); }
	.mega > li:first-child { border-left: 0; }
	.primary-nav .mega__heading,
	.primary-nav .mega > li > a.mega__heading {
		display: block;
		padding: 0.25rem 0.75rem 0.85rem;
		font: 600 0.74rem/1.3 var(--tsf-sans);
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var(--tsf-gold);
	}
	.primary-nav .mega > li > a.mega__heading:hover { background: none; color: var(--tsf-gold-light); }
	.primary-nav .sub-menu .mega__list,
	.primary-nav .mega__list.is-open {
		position: static;
		display: block;
		min-width: 0;
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
		animation: none;
	}
	.primary-nav .mega__list a {
		padding: 0.55rem 0.75rem;
		font: 600 1.12rem/1.2 var(--tsf-serif);
		color: var(--tsf-ivory);
		border-radius: 2px;
	}
	.primary-nav .mega__list a:hover,
	.primary-nav .mega__list .current-menu-item > a { color: var(--tsf-gold-light); background: rgba(217, 193, 154, 0.08); }
	.submenu-toggle--group { display: none; }
}
@keyframes tsf-drop-mega { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translateX(-50%); } }

/* Mobile: the language choice sits at the top of the menu as one compact row that opens
   the list of versions; Explore areas are accordions. */
@media (max-width: 959.98px) {
	.site-nav__extras { order: -1; margin: 0 0 0.25rem; padding: 0 0 0.75rem; border-bottom: 1px solid rgba(217, 193, 154, 0.18); }
	.lang-switcher--menu { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 0; }
	.lang-switcher__toggle,
	.js .lang-switcher__toggle[hidden] {
		display: flex;
		width: 100%;
		min-height: 48px;
		padding: 0 0.9rem;
		gap: 0.6rem;
		border-radius: 3px;
		font: 500 0.95rem/1.2 var(--tsf-sans);
		letter-spacing: 0;
	}
	.lang-switcher__label-inline { display: inline; font: 600 0.72rem/1 var(--tsf-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tsf-gold); }
	.lang-switcher__current-name { display: inline; flex: 1; text-align: left; }
	.lang-switcher__toggle .lang-switcher__current { padding: 0.2rem 0.4rem; border: 1px solid rgba(185, 152, 103, 0.5); border-radius: 3px; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--tsf-gold-light); }
	.lang-switcher--menu .lang-switcher__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding-top: 0.4rem; }
	.js .lang-switcher--menu .lang-switcher__list:not(.is-open) { display: none; }
	.lang-switcher--menu .lang-switcher__list a { padding: 0.35rem 0.9rem; }
	.no-js .lang-switcher__toggle { display: none; }
	.primary-nav .mega { padding-top: 0; }
	.primary-nav .mega > li { display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid rgba(217, 193, 154, 0.12); }
	.primary-nav .mega__heading,
	.primary-nav .mega > li > a.mega__heading { flex: 1; padding: 0.85rem 0; font: 600 0.78rem/1.3 var(--tsf-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tsf-gold-light); }
	.primary-nav .mega__list { padding: 0 0 0.6rem 0.75rem; }
	.primary-nav .mega__list a { font: 600 1.1rem/1.3 var(--tsf-serif); color: var(--tsf-ivory); }
}
}
@keyframes tsf-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Search form ---------- */
.search-form { display: flex; align-items: stretch; width: 100%; }
.search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 50px;
	padding: 0.65rem 1rem;
	border: 1px solid rgba(36, 35, 40, 0.3);
	border-right: 0;
	border-radius: var(--tsf-radius) 0 0 var(--tsf-radius);
	background: var(--tsf-white);
	color: var(--tsf-midnight);
	font: 400 1rem/1.4 var(--tsf-sans);
}
.search-form__submit {
	display: grid;
	place-items: center;
	width: 54px;
	border: 1px solid var(--tsf-burgundy);
	border-radius: 0 var(--tsf-radius) var(--tsf-radius) 0;
	background: var(--tsf-burgundy);
	color: var(--tsf-ivory);
	cursor: pointer;
}
.header-search .search-form__submit,
[class*="tone--"]:not(.tone--ivory):not(.tone--parchment) .search-form__submit { background: var(--tsf-gold); border-color: var(--tsf-gold); color: var(--tsf-abyss); }

/* =========================================================================
   HERO — Christ is the protagonist. Nothing is drawn over the figure in the
   split layout; the full layout shades only the text side.
   ========================================================================= */
.hero {
	--tsf-hero-shade: 0.7;
	--tsf-focus-x: 50%;
	--tsf-focus-y: 25%;
	position: relative;
	isolation: isolate;
	display: grid;
	background: var(--tsf-abyss);
	color: var(--tsf-ivory);
	overflow: hidden;
}
.hero__media { position: relative; margin: 0; overflow: hidden; background: var(--tsf-abyss); }
.hero__frame { position: absolute; inset: -6% 0 0; will-change: transform; }
.hero__frame picture,
.hero__image { display: block; width: 100%; height: 100%; }
.hero__image { object-fit: cover; object-position: var(--tsf-focus-x) var(--tsf-focus-y); }
.hero--fit-contain .hero__frame { inset: 0; }
.hero--fit-contain .hero__image { object-fit: contain; }
.hero--placeholder .hero__frame {
	background: #1a1217 url("../images/hero-placeholder.svg") 50% 35% / cover no-repeat;
}

.hero__credit {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: 2;
	max-width: calc(100% - 1.5rem);
	margin: 0;
	padding: 0.35rem 0.65rem;
	background: rgba(26, 18, 23, 0.78);
	border-left: 2px solid var(--tsf-gold);
	font: 400 0.76rem/1.35 var(--tsf-sans);
	color: var(--tsf-muted-dark);
}
.hero__credit a { color: var(--tsf-ivory); text-decoration-color: rgba(217, 193, 154, 0.6); }

.hero__panel {
	position: relative;
	display: flex;
	align-items: center;
	background:
		radial-gradient(70% 55% at 0% 0%, rgba(217, 193, 154, 0.14), rgba(217, 193, 154, 0) 70%),
		linear-gradient(160deg, var(--tsf-wine) 0%, var(--tsf-burgundy-deep) 48%, var(--tsf-abyss) 100%);
}
.hero__glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(40% 40% at 100% 30%, rgba(246, 227, 187, 0.12), rgba(246, 227, 187, 0) 70%);
}
.hero__content { position: relative; width: 100%; }
.hero__content > * { max-width: 34rem; }
.hero__eyebrow {
	margin: 0 0 1.25rem;
	font: 600 0.74rem/1.4 var(--tsf-sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tsf-gold-light);
}
.hero__title {
	margin: 0 0 0.6rem;
	font-family: var(--tsf-serif);
	font-weight: 600;
	font-size: clamp(2.9rem, 1.6rem + 3.6vw, 5.6rem);
	line-height: 0.96;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--tsf-ivory);
}
.hero__slogan {
	margin: 0;
	font-family: var(--tsf-serif);
	font-style: italic;
	font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.3rem);
	line-height: 1.2;
	color: var(--tsf-gold-light);
}
.hero__rule {
	display: block;
	width: 7rem;
	height: 1.25rem;
	margin: 1.4rem 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='20' viewBox='0 0 112 20'%3E%3Cg fill='none' stroke='%23b99867' stroke-width='1'%3E%3Cpath d='M0 10h42M70 10h42'/%3E%3Cpath d='M56 3.5 62.5 10 56 16.5 49.5 10Z'/%3E%3C/g%3E%3C/svg%3E") left center / contain no-repeat;
}
.hero__subtitle {
	margin: 0 0 2rem;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
	line-height: 1.6;
	color: var(--tsf-parchment);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--tsf-gold-light);
	border-radius: 50%;
}
.hero__scroll:hover { color: var(--tsf-ivory); }

/* Split layout, desktop: text panel 42 % · image 58 % at full height */
@media (min-width: 960px) {
	.hero--split {
		grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
		min-height: clamp(640px, calc(100vh - 76px - var(--wp-admin--admin-bar--height, 0px)), 940px);
		min-height: clamp(640px, calc(100svh - 76px - var(--wp-admin--admin-bar--height, 0px)), 940px);
	}
	.hero--split .hero__panel { grid-column: 1; grid-row: 1; padding: 5rem clamp(2rem, 4vw, 4.5rem) 5.5rem max(clamp(1.15rem, 4vw, 2.5rem), calc((100vw - 78rem) / 2)); }
	.hero--split .hero__media { grid-column: 2; grid-row: 1; }
	/* The seam: a thin gold line and a short fade on the image's very edge — never over the figure. */
	.hero--split .hero__media::before {
		content: "";
		position: absolute;
		inset: 0 auto 0 0;
		z-index: 1;
		width: 6%;
		background: linear-gradient(90deg, var(--tsf-abyss) 0%, rgba(26, 18, 23, 0) 100%);
		pointer-events: none;
	}
	.hero--split .hero__media::after {
		content: "";
		position: absolute;
		inset: 0 auto 0 0;
		z-index: 1;
		width: 1px;
		background: linear-gradient(180deg, rgba(185, 152, 103, 0) 0%, var(--tsf-gold) 25%, var(--tsf-gold) 75%, rgba(185, 152, 103, 0) 100%);
	}

	/* Full layout: image behind, shading only on the text side */
	.hero--full { min-height: clamp(640px, calc(100svh - 76px), 960px); }
	.hero--full .hero__media { position: absolute; inset: 0; }
	.hero--full .hero__panel {
		background: linear-gradient(90deg, rgba(26, 18, 23, var(--tsf-hero-shade)) 0%, rgba(26, 18, 23, calc(var(--tsf-hero-shade) * 0.7)) 32%, rgba(26, 18, 23, 0) 55%);
		padding: 5rem max(clamp(1.15rem, 4vw, 2.5rem), calc((100vw - 78rem) / 2));
	}
	.hero--full .hero__content > * { max-width: 32rem; }
	.hero--full .hero__glow { display: none; }
}

/* Phones and tablets: image first (never covered), text below on the dark panel */
@media (max-width: 959.98px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.hero__media { grid-row: 1; aspect-ratio: 4 / 5; max-height: 78svh; width: 100%; }
	.hero--fit-contain .hero__media { aspect-ratio: auto; height: min(78svh, 125vw); }
	.hero__media::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 14%;
		z-index: 1;
		background: linear-gradient(0deg, var(--tsf-wine) 0%, rgba(61, 26, 38, 0) 100%);
		pointer-events: none;
	}
	.hero__credit { left: 0.75rem; right: auto; bottom: 0.6rem; font-size: 0.7rem; }
	.hero__glow { display: none; }
	.hero__panel { grid-row: 2; padding: 1.75rem clamp(1.15rem, 5vw, 2rem) 4.5rem; background: linear-gradient(180deg, var(--tsf-wine) 0%, var(--tsf-burgundy-deep) 55%, var(--tsf-abyss) 100%); }
	.hero__eyebrow { margin-bottom: 0.9rem; }
	.hero__rule { margin: 1rem 0; }
	.hero__subtitle { margin-bottom: 1.5rem; }
	.hero__actions .button { flex: 1 1 14rem; }
}

/* =========================================================================
   HERO · CINEMATIC (default)
   The painting fills the screen twice: once blurred and darkened as a "depth"
   layer, and once complete and sharp, at full height, in its arched frame.
   A soft golden dawn rises on the halo once; the light behind the work breathes
   very slowly. The text lives in the depth layer and never covers the figure.
   ========================================================================= */
.hero--cinematic {
	--tsf-hero-h: clamp(620px, calc(100svh - 76px - var(--wp-admin--admin-bar--height, 0px)), 1000px);
	--tsf-glow: 0.6;
	background: var(--tsf-abyss);
}
.hero__ambient {
	position: absolute;
	inset: -6%;
	z-index: -3;
	overflow: hidden;
	background: radial-gradient(60% 70% at 70% 30%, #5a3a2c 0%, var(--tsf-wine) 45%, var(--tsf-abyss) 100%);
}
.hero__ambient img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
	filter: blur(34px) saturate(1.15) brightness(0.62);
	transform: scale(1.12);
}
.hero__ambient::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(26, 18, 23, 0.9) 0%, rgba(26, 18, 23, 0.74) 32%, rgba(41, 29, 36, 0.32) 58%, rgba(26, 18, 23, 0.55) 100%),
		linear-gradient(0deg, rgba(26, 18, 23, 0.85) 0%, rgba(26, 18, 23, 0) 34%),
		linear-gradient(180deg, rgba(26, 18, 23, 0.55) 0%, rgba(26, 18, 23, 0) 22%);
}
/* Light that "spills" from the work into the room. */
.hero__light {
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background:
		radial-gradient(60% 80% at 72% 40%, rgba(217, 181, 122, calc(0.12 * var(--tsf-glow) / 0.6)), rgba(217, 181, 122, 0) 72%);
	/* Normal blending: over the dark depth layer it looks the same as "screen" and costs far less. */
}

.hero--cinematic .hero__media { overflow: visible; background: transparent; }
.hero--cinematic .hero__frame {
	position: relative;
	inset: auto;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--tsf-abyss);
	box-shadow:
		0 0 0 1px rgba(217, 193, 154, 0.55),
		0 0 0 8px rgba(26, 18, 23, 0.55),
		0 0 0 9px rgba(185, 152, 103, 0.25),
		0 40px 90px rgba(0, 0, 0, 0.6),
		0 0 140px rgba(217, 181, 122, calc(0.22 * var(--tsf-glow) / 0.6));
}
/* Arched frame: circular arc clip with a gold hairline.
   The shadow is a separate, static layer (blurred once), so the living light inside
   the frame never forces the browser to recompute a filter on every frame. */
.hero__shadow {
	position: absolute;
	inset: 3% -1% -3%;
	filter: blur(34px);
	pointer-events: none;
}
.hero__shadow > span {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
}
.hero--arch .hero__shadow > span { clip-path: circle(var(--tsf-arch-r) at 50% var(--tsf-arch-cy)); }
.hero--cinematic .hero__frame { z-index: 1; }

/* Aura: light spilling from behind the altarpiece, anchored to the aureole at every size. */
.hero__aura {
	position: absolute;
	left: var(--tsf-focus-x);
	top: var(--tsf-focus-y);
	width: 190%;
	aspect-ratio: 1;
	margin: -95% 0 0 -95%;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle, rgba(250, 226, 172, calc(0.34 * var(--tsf-glow) / 0.6)) 0%, rgba(232, 196, 130, calc(0.16 * var(--tsf-glow) / 0.6)) 22%, rgba(217, 181, 122, calc(0.05 * var(--tsf-glow) / 0.6)) 42%, rgba(217, 181, 122, 0) 62%);
}
.hero--cinematic.hero--arch .hero__frame {
	clip-path: circle(var(--tsf-arch-r) at 50% var(--tsf-arch-cy));
	background: rgba(217, 193, 154, 0.75); /* becomes the gold hairline around the arch */
	box-shadow: none;
}
.hero--cinematic.hero--arch .hero__frame picture {
	position: absolute;
	background: var(--tsf-preview, none) center / cover no-repeat, var(--tsf-abyss); /* small preview, never a gold or empty frame */
	inset: 1.5px 1.5px 0;
	clip-path: circle(var(--tsf-arch-r) at 50% var(--tsf-arch-cy));
}
.hero--cinematic.hero--arch .hero__frame picture .hero__image { height: 100%; }
.hero--cinematic.hero--arch.hero--placeholder .hero__frame { background: #1a1217 url("../images/hero-placeholder.svg") 50% 35% / cover no-repeat; }
.hero--cinematic .hero__image { object-fit: cover; object-position: 50% 50%; }
.hero--cinematic:not(.hero--arch) .hero__frame picture { display: block; height: 100%; background: var(--tsf-preview, none) center / cover no-repeat; }
.hero--cinematic.hero--placeholder .hero__frame { background: #1a1217 url("../images/hero-placeholder.svg") 50% 35% / cover no-repeat; }

/* ---- Light layers around the still painting ----------------------------
   Everything here is light added on top of (or behind) the work with "screen"
   blending; the painting itself is never moved, cropped or retouched. */

/* Aureole: a tight core that hugs Bloch's halo + a wide soft bloom. */
.hero__halo {
	position: absolute;
	left: var(--tsf-focus-x);
	top: var(--tsf-focus-y);
	aspect-ratio: 1;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	mix-blend-mode: screen;
	pointer-events: none;
}
.hero__halo--core {
	width: 30%;
	background: radial-gradient(circle, rgba(255, 240, 200, 0.5) 0%, rgba(255, 226, 160, 0.34) 20%, rgba(246, 206, 130, 0.12) 46%, rgba(246, 206, 130, 0) 70%);
	opacity: var(--tsf-glow);
}
.hero__halo--bloom {
	width: 78%;
	background: radial-gradient(circle, rgba(250, 224, 170, 0.2) 0%, rgba(240, 200, 130, 0.08) 38%, rgba(240, 200, 130, 0) 68%);
	opacity: var(--tsf-glow);
}

/* Celestial rays from the aureole, masked so they fade before the figures. */
.hero__rays {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	mix-blend-mode: screen;
	/* Clear centre (the face stays untouched), soft ring, fade before the figures. */
	-webkit-mask-image: radial-gradient(50% 42% at var(--tsf-focus-x) var(--tsf-focus-y), transparent 0%, transparent 13%, #000 24%, rgba(0, 0, 0, 0.5) 52%, transparent 100%);
	mask-image: radial-gradient(50% 42% at var(--tsf-focus-x) var(--tsf-focus-y), transparent 0%, transparent 13%, #000 24%, rgba(0, 0, 0, 0.5) 52%, transparent 100%);
	opacity: calc(0.5 * var(--tsf-glow) / 0.6);
}
.hero__rays-inner {
	position: absolute;
	left: var(--tsf-focus-x);
	top: var(--tsf-focus-y);
	width: 240%;
	aspect-ratio: 1;
	margin: -120% 0 0 -120%;
	background: repeating-conic-gradient(from 0deg at 50% 50%,
		rgba(255, 232, 180, 0) 0deg,
		rgba(255, 232, 180, 0.035) 3deg,
		rgba(255, 232, 180, 0.085) 6deg,
		rgba(255, 232, 180, 0.035) 9deg,
		rgba(255, 232, 180, 0) 12deg,
		rgba(255, 232, 180, 0) 20deg);
	will-change: transform;
}

/* Light motes: tiny, slow, few. */
.hero__motes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__mote {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #fff1cf;
	box-shadow: 0 0 6px 2px rgba(246, 214, 150, 0.55);
	opacity: 0;
}

/* Pause / play control (WCAG 2.2.2): discreet, keyboard operable. */
.hero__pause {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 40px;
	padding: 0.4rem 0.8rem 0.4rem 0.6rem;
	border: 1px solid rgba(217, 193, 154, 0.35);
	border-radius: 999px;
	background: rgba(26, 18, 23, 0.55);
	color: var(--tsf-muted-dark);
	font: 500 0.74rem/1 var(--tsf-sans);
	letter-spacing: 0.04em;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.hero__pause:hover { color: var(--tsf-ivory); border-color: var(--tsf-gold-light); }
.hero__pause-icon { position: relative; width: 10px; height: 12px; }
.hero__pause-icon::before,
.hero__pause-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; border-radius: 1px; }
.hero__pause-icon::before { left: 1px; }
.hero__pause-icon::after { right: 1px; }
.hero__pause[aria-pressed="true"] .hero__pause-icon::before { left: 2px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent currentColor; }
.hero__pause[aria-pressed="true"] .hero__pause-icon::after { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__pause { display: none !important; } }
.tsf-motion-off .hero__pause { display: none !important; }

.hero--cinematic .hero__panel { background: none; }
.hero--cinematic .hero__glow { display: none; }

.hero--cinematic .hero__credit {
	padding: 0;
	background: none;
	border: 0;
	font-size: 0.74rem;
	letter-spacing: 0.02em;
	color: var(--tsf-muted-dark);
}
.hero--cinematic .hero__credit a { color: var(--tsf-muted-dark); text-decoration-color: rgba(217, 193, 154, 0.5); }
.hero--cinematic .hero__credit a:hover { color: var(--tsf-gold-light); }

@media (min-width: 960px) {
	.hero--cinematic {
		--tsf-hero-inline: max(clamp(1.15rem, 4vw, 2.5rem), calc((100vw - 92rem) / 2));
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: clamp(2.5rem, 5vw, 6rem);
		padding-inline: var(--tsf-hero-inline);
		min-height: var(--tsf-hero-h);
	}
	.hero--cinematic .hero__panel {
		grid-column: 1;
		grid-row: 1;
		padding: 4rem 0 6rem;
	}
	.hero--cinematic .hero__media {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		justify-self: end;
		height: min(calc(var(--tsf-hero-h) - 3.25rem), calc((58vw - 4rem) / var(--tsf-ratio)));
		aspect-ratio: var(--tsf-ratio);
		max-width: 100%;
	}
	.hero--cinematic .hero__credit {
		position: absolute;
		left: auto;
		right: calc(100% + 1.75rem);
		top: auto;
		bottom: 1.6rem;
		width: max-content;
		max-width: 15rem;
		text-align: right;
		line-height: 1.45;
	}
	.hero--cinematic .hero__scroll {
		left: var(--tsf-hero-inline);
		transform: none;
		bottom: 1.4rem;
	}
	.hero--cinematic .hero__content > * { max-width: 33rem; }
	.hero--cinematic .hero__pause { left: calc(var(--tsf-hero-inline) + 3.25rem); bottom: 1.25rem; }
	.hero--cinematic .hero__title { font-size: clamp(3rem, 1.4rem + 3.9vw, 6rem); }
}

@media (max-width: 959.98px) {
	.hero--cinematic { grid-template-columns: minmax(0, 1fr); }
	.hero--cinematic .hero__media {
		grid-row: 1;
		justify-self: center;
		width: min(calc(100% - 2.5rem), 26rem, calc((100svh - 64px - 7rem) * var(--tsf-ratio)));
		height: auto;
		max-height: none;
		aspect-ratio: auto;
		margin: 1.4rem auto 0;
	}
	.hero--cinematic .hero__frame { aspect-ratio: var(--tsf-ratio); height: auto; }
	.hero--cinematic .hero__media::after { display: none; }
	.hero--cinematic .hero__credit {
		position: static;
		margin-top: 0.85rem;
		text-align: center;
		font-size: 0.7rem;
	}
	.hero--cinematic .hero__panel {
		grid-row: 2;
		background: none;
		padding: 1.25rem clamp(1.15rem, 5vw, 2rem) 4.5rem;
		text-align: center;
	}
	.hero--cinematic .hero__content > * { margin-inline: auto; }
	.hero--cinematic .hero__rule { background-position: center; }
	.hero--cinematic .hero__actions { justify-content: center; }
	.hero--cinematic .hero__light {
		background: radial-gradient(90% 40% at 50% 26%, rgba(217, 181, 122, calc(0.12 * var(--tsf-glow) / 0.6)), rgba(217, 181, 122, 0) 72%);
	}
	.hero--cinematic .hero__ambient::after {
		background:
			linear-gradient(180deg, rgba(26, 18, 23, 0.55) 0%, rgba(26, 18, 23, 0.25) 30%, rgba(26, 18, 23, 0.82) 62%, rgba(26, 18, 23, 0.95) 100%);
	}
	.hero--cinematic .hero__scroll { display: none; }
	.hero--cinematic .hero__pause { left: 50%; bottom: 1.25rem; transform: translateX(-50%); }
}

/* Motion — the painting appears at once (no fade, no delay). Then: a single gold
   sweep along the arch, the staggered text, and the slow living light.
   Looping light only starts with JS (so it can always be paused), never with
   reduced motion, and stops when paused or off-screen. */
@media (prefers-reduced-motion: no-preference) {
	body:not(.tsf-motion-off) .hero--cinematic .hero__image { animation: none; }
	body:not(.tsf-motion-off) .hero--cinematic .hero__title { animation: tsf-title-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
	body:not(.tsf-motion-off) .hero--cinematic.hero--arch .hero__frame {
		background-image: linear-gradient(100deg, rgba(217, 193, 154, 0) 42%, rgba(255, 246, 216, 1) 50%, rgba(217, 193, 154, 0) 58%);
		background-size: 260% 100%;
		background-repeat: no-repeat;
		animation: tsf-rim-sweep 2.6s ease-in-out 0.7s both;
	}
	body:not(.tsf-motion-off) .hero--cinematic .hero__halo { animation: tsf-dawn 2.6s ease-out 0.3s both; }

	.js body:not(.tsf-motion-off) .hero--cinematic .hero__halo--core { animation: tsf-dawn 2.6s ease-out 0.3s both, tsf-halo-breathe 8s ease-in-out 2.9s infinite; }
	.js body:not(.tsf-motion-off) .hero--cinematic .hero__halo--bloom { animation: tsf-dawn 2.6s ease-out 0.3s both, tsf-bloom-breathe 8s ease-in-out 2.9s infinite; }
	.js body:not(.tsf-motion-off) .hero--cinematic .hero__rays { animation: tsf-dawn-light 3s ease-out 0.6s both, tsf-rays-glow 13s ease-in-out 3.6s infinite alternate; }
	.js body:not(.tsf-motion-off) .hero--cinematic .hero__rays-inner { animation: tsf-rays-turn 40s ease-in-out infinite alternate; }
	.js body:not(.tsf-motion-off) .hero--cinematic .hero__light { animation: tsf-dawn-light 3s ease-out 0.4s both; }
	.js body:not(.tsf-motion-off) .hero--cinematic .hero__aura { animation: tsf-dawn-light 2.6s ease-out 0.3s both, tsf-breathe 8s ease-in-out 2.9s infinite; }
	.js body:not(.tsf-motion-off) .hero--cinematic .hero__mote { animation: tsf-mote var(--t) linear var(--d) infinite; }

	.hero--cinematic.is-paused :is(.hero__halo, .hero__rays, .hero__rays-inner, .hero__light, .hero__aura) { animation: none !important; }
	.hero--cinematic.is-paused .hero__mote,
	.hero--cinematic.is-offscreen .hero__mote { animation-play-state: paused; }
	.hero--cinematic.is-paused .hero__motes { opacity: 0; transition: opacity 0.6s ease; }
	.hero--cinematic.is-offscreen :is(.hero__halo, .hero__rays, .hero__rays-inner, .hero__light, .hero__aura) { animation-play-state: paused; }
}
@media (max-width: 959.98px) {
	.hero__mote:nth-child(n + 4) { display: none; }
}

/* Halo breathes around its rest value (= paused/static look); never blinks. */
@keyframes tsf-dawn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); } to { opacity: var(--tsf-glow); transform: translate(-50%, -50%) scale(1); } }
@keyframes tsf-halo-breathe {
	0%, 100% { opacity: var(--tsf-glow); transform: translate(-50%, -50%) scale(1); }
	50% { opacity: calc(var(--tsf-glow) * 1.45); transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes tsf-bloom-breathe {
	0%, 100% { opacity: var(--tsf-glow); transform: translate(-50%, -50%) scale(1); }
	50% { opacity: calc(var(--tsf-glow) * 1.25); transform: translate(-50%, -50%) scale(1.03); }
}
@keyframes tsf-dawn-light { from { opacity: 0; } }
@keyframes tsf-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
@keyframes tsf-rays-glow { from { opacity: calc(0.5 * var(--tsf-glow) / 0.6); } to { opacity: calc(0.36 * var(--tsf-glow) / 0.6); } }
@keyframes tsf-rays-turn { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
@keyframes tsf-mote {
	0% { opacity: 0; transform: translate3d(0, 0, 0); }
	18% { opacity: 0.55; }
	75% { opacity: 0.35; }
	100% { opacity: 0; transform: translate3d(var(--dx), -90px, 0); }
}
@keyframes tsf-rim-sweep { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@keyframes tsf-title-in { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } } /* no layout change: never shifts the page */

/* =========================================================================
   SECTIONS
   ========================================================================= */
.home-section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.tone--ivory + .tone--ivory { padding-top: 0; }
.home-section:not(.tone--ivory):not(.tone--parchment) + .home-section:not(.tone--ivory):not(.tone--parchment) { box-shadow: inset 0 1px 0 rgba(185, 152, 103, 0.3); }

.section-header {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--t-line);
}
.section-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 4.5rem;
	height: 2px;
	background: var(--t-rule);
}
.section-header--center { justify-content: center; text-align: center; border-bottom: 0; }
.section-header--center::after { display: none; }
.section-header__title {
	margin: 0;
	font-family: var(--tsf-serif);
	font-weight: 600;
	font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem);
	line-height: 1.08;
	color: var(--t-heading);
}
.section-header__intro { flex-basis: 100%; margin: 0; color: var(--t-muted); max-width: 42rem; }
.section-header__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	font: 600 0.9rem/1.2 var(--tsf-sans);
	color: var(--t-accent);
	text-decoration: none;
}
.section-header__link:hover { text-decoration: underline; }

/* Intro band */
.home-intro { text-align: center; }
.home-intro__title {
	margin: 0 0 1rem;
	font-family: var(--tsf-serif);
	font-weight: 600;
	font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem);
	line-height: 1.08;
	color: var(--t-heading);
}
.home-intro__text {
	margin: 0 auto;
	max-width: 36rem;
	font-family: var(--tsf-serif);
	font-style: italic;
	font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem);
	line-height: 1.4;
	color: var(--tsf-gold-light);
}
.home-intro__content { margin-top: 2rem; text-align: left; }

/* Start Here paths: dark cards on ivory */
.start-paths__grid,
.collections__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.start-paths__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.path-card__link {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	height: 100%;
	min-height: 13rem;
	padding: 2rem 2rem 4rem;
	background: var(--tsf-burgundy-deep);
	border-top: 3px solid var(--tsf-gold);
	color: var(--tsf-ivory);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.path-card--2 .path-card__link { background: var(--tsf-burgundy); }
.path-card__link::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 60% at 100% 0%, rgba(217, 193, 154, 0.18), rgba(217, 193, 154, 0) 70%);
	opacity: 0;
	transition: opacity 0.35s ease;
}
.path-card__link:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(41, 29, 36, 0.28); }
.path-card__link:hover::before { opacity: 1; }
.path-card__num { position: relative; font-family: var(--tsf-serif); font-size: 1.05rem; color: var(--tsf-gold-light); letter-spacing: 0.14em; }
.path-card__title { position: relative; font-family: var(--tsf-serif); font-weight: 600; font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); line-height: 1.1; }
.path-card__text { position: relative; color: var(--tsf-muted-dark); font-size: 0.97rem; }
.path-card--2 .path-card__text { color: var(--tsf-muted-rose); }
.path-card__arrow { position: absolute; left: 2rem; bottom: 1.4rem; color: var(--tsf-gold-light); transition: transform 0.3s ease; }
.path-card__link:hover .path-card__arrow { transform: translateX(6px); }
.page-article--start .start-paths { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 0; }

/* Collections: gold hairline grid on midnight (borders, so no empty cells show) */
.collections__grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	border-top: 1px solid rgba(185, 152, 103, 0.35);
	border-left: 1px solid rgba(185, 152, 103, 0.35);
}
@media (min-width: 640px) { .collections__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .collections__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.collection-card { background: var(--t-bg); border-right: 1px solid rgba(185, 152, 103, 0.35); border-bottom: 1px solid rgba(185, 152, 103, 0.35); }
.collection-card__link {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	height: 100%;
	min-height: 10rem;
	padding: 1.75rem 1.75rem 3.5rem;
	color: var(--tsf-ivory);
	text-decoration: none;
	transition: background-color 0.3s ease;
}
.collection-card__link:hover { background: var(--tsf-wine); }
.collection-card__title { font-family: var(--tsf-serif); font-weight: 600; font-size: 1.55rem; line-height: 1.12; color: var(--tsf-gold-light); transition: color 0.3s ease; }
.collection-card__link:hover .collection-card__title { color: var(--tsf-ivory); }
.collection-card__text { font-size: 0.92rem; color: var(--tsf-muted-dark); }
.collection-card__link:hover .collection-card__text { color: var(--tsf-muted-rose); }
.collection-card__arrow { position: absolute; left: 1.75rem; bottom: 1.25rem; color: var(--tsf-gold); transition: transform 0.3s ease; }
.collection-card__link:hover .collection-card__arrow { transform: translateX(6px); }

/* Explore cards: a visual band (licensed image, or an arch ornament with the card's numeral)
   and a compact caption with the arrow beside the title, so no empty space is left. */
.collection-card__body { display: flex; flex-direction: column; gap: 0.45rem; }
.collection-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.collections__grid--images .collection-card__link { min-height: 0; padding: 0; gap: 0; }
.collections__grid--images .collection-card__body { padding: 1.15rem 1.35rem 1.3rem; }
.collections__grid--images .collection-card__arrow { position: static; flex: none; margin-top: 0.2rem; }
.collection-card__media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background:
		radial-gradient(60% 75% at 50% 38%, rgba(217, 193, 154, 0.26), rgba(217, 193, 154, 0) 70%),
		linear-gradient(165deg, var(--tsf-wine), var(--tsf-burgundy-deep));
}
.collection-card--2 .collection-card__media { background: radial-gradient(60% 75% at 50% 38%, rgba(217, 193, 154, 0.22), rgba(217, 193, 154, 0) 70%), linear-gradient(165deg, var(--tsf-burgundy), var(--tsf-abyss)); }
.collection-card--3 .collection-card__media { background: radial-gradient(60% 75% at 50% 38%, rgba(217, 193, 154, 0.22), rgba(217, 193, 154, 0) 70%), linear-gradient(165deg, var(--tsf-midnight), var(--tsf-wine)); }
.collection-card--4 .collection-card__media { background: radial-gradient(60% 75% at 50% 38%, rgba(217, 193, 154, 0.26), rgba(217, 193, 154, 0) 70%), linear-gradient(165deg, var(--tsf-burgundy-deep), var(--tsf-burgundy)); }
.collection-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(26, 18, 23, 0) 60%, rgba(26, 18, 23, 0.5));
	border-bottom: 1px solid rgba(185, 152, 103, 0.45);
	pointer-events: none;
}
/* The arch: two gold hairlines echoing the hero's altarpiece frame, with a small diamond at the key */
.collection-card:not(.collection-card--image) .collection-card__media::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 36%;
	max-width: 8.5rem;
	aspect-ratio: 3 / 4;
	transform: translate(-50%, -46%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 120' fill='none' stroke='%23d9c19a'%3E%3Cpath d='M4 119V45a41 41 0 0 1 82 0v74' stroke-width='1.1'/%3E%3Cpath d='M11 119V46a34 34 0 0 1 68 0v73' stroke-width='.6' opacity='.6'/%3E%3Cpath d='M45 0.8 49 4.8 45 8.8 41 4.8Z' fill='%23d9c19a' stroke='none'/%3E%3Cpath d='M0 119.5h90' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.85;
}
.collection-card__numeral {
	position: relative;
	z-index: 1;
	margin-top: 6%;
	font: 500 clamp(1.35rem, 1.1rem + 0.8vw, 1.9rem)/1 var(--tsf-serif);
	letter-spacing: 0.02em;
	color: var(--tsf-gold-light);
}
.collection-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.collection-card__link:hover .collection-card__img { transform: scale(1.04); }
.collection-card__link:hover .collection-card__media::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .collection-card__link:hover .collection-card__img { transform: none; } }

/* Phones: two cards per row with titles that wrap and hyphenate (long German/French/Portuguese words) */
@media (max-width: 639.98px) {
	.collections__grid--m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.collections__grid--m2 .collection-card__media { aspect-ratio: 4 / 3; }
	.collections__grid--m2 .collection-card__body { padding: 0.8rem 0.8rem 0.95rem; }
	.collections__grid--m2 .collection-card__head { gap: 0.4rem; }
	.collections__grid--m2 .collection-card__title { font-size: 1.12rem; line-height: 1.15; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
	.collections__grid--m2 .collection-card__arrow .tsf-icon { width: 1.05rem; height: 1.05rem; }
	.collections__grid--m2 .collection-card__text { font-size: 0.85rem; }
	.collections__grid--m2 .collection-card__numeral { font-size: 1.15rem; }
	.collections__grid--m2 .collection-card:not(.collection-card--image) .collection-card__media::before { width: 40%; }
}

/* From History to Eternity: golden light from the corner */
.history-eternity {
	background-image: radial-gradient(55% 70% at 92% 0%, rgba(217, 193, 154, 0.16), rgba(217, 193, 154, 0) 65%);
}
.newsletter { text-align: center; }
.newsletter__text { margin: 1rem auto 0; max-width: 34rem; color: var(--t-muted); }

/* =========================================================================
   CARDS (tone-aware editorial cards)
   ========================================================================= */
.card-grid,
.archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
}
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--t-card-bg);
	border: 1px solid var(--t-card-border);
	border-top: 3px solid var(--t-card-top);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--t-card-shadow); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tsf-burgundy-deep); }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__media img { transform: scale(1.045); }
.card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(70% 90% at 80% 15%, rgba(217, 193, 154, 0.3), rgba(217, 193, 154, 0) 60%),
		linear-gradient(140deg, var(--tsf-wine), var(--tsf-abyss));
}
.card__placeholder-mark {
	width: 6rem;
	height: 1.25rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='20' viewBox='0 0 112 20'%3E%3Cg fill='none' stroke='%23d9c19a' stroke-width='1'%3E%3Cpath d='M0 10h42M70 10h42'/%3E%3Cpath d='M56 3.5 62.5 10 56 16.5 49.5 10Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.7;
}
.card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.4rem 1.4rem; flex: 1; }
.kicker {
	margin: 0;
	font: 600 0.72rem/1.4 var(--tsf-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--t-kicker);
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker__sep { opacity: 0.7; }
.card__title {
	margin: 0;
	font-family: var(--tsf-serif);
	font-weight: 600;
	font-size: 1.55rem;
	line-height: 1.14;
	color: var(--t-heading);
}
.card__title a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--tsf-gold), var(--tsf-gold)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.4s ease; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a, .card__title a:focus-visible { background-size: 100% 1px; }
.card .kicker a, .card__labels { position: relative; z-index: 2; }
.card__excerpt { color: var(--t-muted); font-size: 0.96rem; line-height: 1.6; }
.card__excerpt p { margin: 0; }
.card__labels { margin: 0.15rem 0 0; font-size: 0.78rem; font-weight: 600; color: var(--t-accent); }
.card__meta { margin: auto 0 0; padding-top: 0.35rem; font-size: 0.8rem; color: var(--t-muted); }
.card__meta-sep { margin: 0 0.35rem; opacity: 0.6; }

/* Research status chip */
.status-chip {
	position: absolute;
	left: 0.85rem;
	top: 0.85rem;
	z-index: 2;
	padding: 0.32rem 0.6rem;
	background: var(--tsf-gold-light);
	color: var(--tsf-abyss);
	font: 700 0.66rem/1.2 var(--tsf-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.status-chip--inline { position: static; display: inline-block; box-shadow: none; }
.status-chip--unconfirmed { background: var(--tsf-muted-dark); }
.card__status { margin: 0.25rem 0 0; }
.card--research { border-top-color: var(--tsf-gold); }

/* Featured card */
.card--featured .card__title { font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.75rem); line-height: 1.06; }
.card--featured .card__body { padding: 1.5rem 1.75rem 1.75rem; }

/* Compact card (lists) */
.card-list { display: grid; gap: 0; border-top: 1px solid var(--t-line); }
.card--compact {
	flex-direction: row;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--t-line);
	transition: background-color 0.3s ease;
}
.card--compact:hover { transform: none; box-shadow: none; background: rgba(185, 152, 103, 0.07); }
.card--compact .card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: baseline; width: 100%; padding: 1.35rem 0.75rem; }
.card--compact .kicker, .card--compact .card__labels, .card--compact .card__status { grid-column: 1 / -1; }
.card--compact .card__title { font-size: 1.4rem; }
.card--compact .card__meta { grid-column: 2; grid-row: 2; margin: 0; padding: 0; white-space: nowrap; font-weight: 600; color: var(--t-accent); }
@media (max-width: 639.98px) {
	/* Long dates and "latest update" lines (German, French…) wrap under the title instead of widening the row */
	.card--compact .card__body { grid-template-columns: minmax(0, 1fr); }
	.card--compact .card__meta { grid-column: 1; grid-row: auto; white-space: normal; }
}

/* Featured Files grid */
.featured__grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 960px) {
	.featured__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); }
	.featured__grid .card--featured { grid-row: 1 / span 3; }
	.featured__grid .card--default { flex-direction: row; }
	.featured__grid .card--default .card__media { flex: 0 0 40%; aspect-ratio: auto; min-height: 9rem; }
	.featured__grid .card--default .card__title { font-size: 1.3rem; }
	.featured__grid .card--default .card__excerpt { display: none; }
	.featured__grid .card--default .status-chip { font-size: 0.6rem; left: 0.5rem; top: 0.5rem; }

	.feature-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
	.feature-grid .card--compact:first-of-type { border-top: 1px solid var(--t-line); }
	.feature-grid > .card--featured { grid-row: 1 / span 4; }

	.archive-grid--featured > .card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
	.archive-grid--featured > .card--featured .card__media { aspect-ratio: auto; min-height: 22rem; }
	.archive-grid--featured > .card--featured .card__body { justify-content: center; padding: 2.25rem; }
}
@media (max-width: 959.98px) {
	.feature-grid { display: grid; gap: 1.25rem; }
}

/* Empty states and editor hints */
.empty-state {
	text-align: center;
	padding: clamp(2.75rem, 6vw, 4.5rem) 1.5rem;
	border: 1px solid var(--t-card-border);
	border-top: 3px solid var(--t-card-top);
	background: var(--t-card-bg);
}
.empty-state__ornament { display: block; width: 3rem; height: 1px; margin: 0 auto 1.25rem; background: var(--tsf-gold); }
.empty-state__title { margin: 0 0 0.5rem; font-family: var(--tsf-serif); font-size: 1.7rem; font-weight: 600; color: var(--t-heading); }
.empty-state__text { margin: 0 auto 1rem; max-width: 30rem; color: var(--t-muted); }
.tsf-admin-hint {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border: 1px dashed var(--tsf-gold-text);
	background: rgba(255, 255, 255, 0.85);
	color: var(--tsf-midnight);
	font-size: 0.85rem;
}
.tsf-admin-hint__label { font-weight: 700; color: var(--tsf-burgundy); }
.site-footer__hint { max-width: 78rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem) 1rem; }

/* =========================================================================
   ARCHIVES
   ========================================================================= */
.archive-header,
.page-header {
	position: relative;
	padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
	background-image: radial-gradient(50% 90% at 100% 0%, rgba(217, 193, 154, 0.14), rgba(217, 193, 154, 0) 70%);
	border-bottom: 1px solid rgba(185, 152, 103, 0.45);
}
.archive-header__title,
.page-header__title {
	margin: 0.3rem 0 0.75rem;
	font-family: var(--tsf-serif);
	font-weight: 600;
	font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.4rem);
	line-height: 1.02;
	color: var(--t-heading);
}
.archive-header__intro, .page-header__lead { margin: 0; max-width: 44rem; font-size: 1.1rem; color: var(--t-muted); }
.archive-header__intro p { margin: 0 0 0.5rem; }
.archive-header__count { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--t-muted); }
.archive-header__search { max-width: 36rem; margin-top: 1.25rem; }
.archive-body { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem); }

.filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem;
	margin-top: 2rem;
	padding: 1.25rem;
	background: rgba(26, 18, 23, 0.35);
	border: 1px solid rgba(217, 193, 154, 0.25);
}
.filters__field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 11rem; }
.filters label { font: 600 0.74rem/1.2 var(--tsf-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tsf-gold-light); }
.filters input,
.filters select {
	min-height: 48px;
	padding: 0.5rem 0.75rem;
	border: 1px solid transparent;
	border-radius: var(--tsf-radius);
	background: var(--tsf-ivory);
	color: var(--tsf-midnight);
	font: 400 1rem/1.3 var(--tsf-sans);
}
.filters__actions { display: flex; align-items: center; gap: 1rem; }
.filters .button { background: var(--tsf-gold); border-color: var(--tsf-gold); color: var(--tsf-abyss); }
.filters .button:hover { background: var(--tsf-ivory); border-color: var(--tsf-ivory); }
.filters__reset { font-size: 0.9rem; min-height: 44px; display: inline-flex; align-items: center; color: var(--tsf-ivory); }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 1rem; padding: 0; font-size: 0.82rem; color: var(--t-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.6; }
.breadcrumbs a { color: inherit; }

.pagination { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	min-height: 46px;
	padding: 0 0.85rem;
	border: 1px solid var(--t-line);
	color: var(--tsf-midnight);
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pagination .page-numbers.current { background: var(--tsf-burgundy); border-color: var(--tsf-burgundy); color: var(--tsf-ivory); }
.pagination a.page-numbers:hover { border-color: var(--tsf-burgundy); color: var(--tsf-burgundy); }

/* =========================================================================
   ARTICLE
   ========================================================================= */
.reading-progress {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 120;
	height: 3px;
	pointer-events: none;
}
.reading-progress__bar { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--tsf-gold), var(--tsf-gold-light)); transform: scaleX(0); transform-origin: left; }
.no-js .reading-progress { display: none; }

.article-header { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.25rem, 4vw, 3rem); background-image: radial-gradient(50% 90% at 100% 0%, rgba(217, 193, 154, 0.16), rgba(217, 193, 154, 0) 70%); }
.article-header--with-figure { padding-bottom: clamp(7rem, 14vw, 11rem); }
.article-header .kicker { color: var(--tsf-gold-light); }
.article-header__title {
	margin: 0.5rem 0 1rem;
	font-family: var(--tsf-serif);
	font-weight: 600;
	font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.2rem);
	line-height: 1.03;
	color: var(--tsf-ivory);
}
.article-header__lead {
	margin: 0 0 1.4rem;
	font-family: var(--tsf-serif);
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
	line-height: 1.4;
	color: var(--tsf-parchment);
}
.post-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin: 0; font-size: 0.88rem; color: var(--t-muted); }
.post-meta a { color: var(--t-text); }
.post-meta__sep { opacity: 0.5; }
.post-meta--note { margin-top: 0.6rem; display: block; }

.article-figure { position: relative; z-index: 1; margin: calc(-1 * clamp(5rem, 11vw, 8.5rem)) auto clamp(2.5rem, 5vw, 3.5rem); }
.article-figure img { display: block; width: 100%; height: auto; box-shadow: 0 30px 60px rgba(26, 18, 23, 0.35); }
.article-figure__credit { margin-top: 0.6rem; font-size: 0.8rem; color: var(--tsf-muted); text-align: right; }
.article-header:not(.article-header--with-figure) + .article-layout { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

.article-layout { display: grid; gap: 2rem; padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }
.article-body { min-width: 0; max-width: 44rem; width: 100%; margin-inline: auto; }
@media (min-width: 1100px) {
	.article-layout:has(.article-aside) { grid-template-columns: 15.5rem minmax(0, 44rem); justify-content: center; column-gap: 4.5rem; }
	.article-layout:has(.article-aside) .article-body { margin: 0; }
	.article-aside { grid-column: 1; grid-row: 1 / span 2; }
	.article-aside .toc { position: sticky; top: calc(100px + var(--wp-admin--admin-bar--height, 0px)); }
}

.entry-content { font-size: var(--wp--preset--font-size--medium); line-height: 1.78; color: var(--tsf-midnight); }
.entry-content > * { margin-block: 0 1.4em; }
.entry-content :where(h2, h3, h4) { margin-top: 2.1em; margin-bottom: 0.6em; scroll-margin-top: 110px; color: var(--tsf-burgundy-deep); }
.entry-content :where(h2) { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.3rem); }
.entry-content :where(ul, ol) { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content li::marker { color: var(--tsf-burgundy); }
.entry-content img { height: auto; }
.entry-content figcaption { font-size: 0.85rem; color: var(--tsf-muted); }
.entry-content blockquote { margin-inline: 0; }
.entry-content .alignwide { max-width: min(78rem, 100vw - 2rem); margin-inline: calc(50% - min(39rem, 50vw - 1rem)); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.page-article .entry-content { max-width: 44rem; margin-inline: auto; padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 5.5rem); }

/* Interactive table of contents */
.toc { border-top: 2px solid var(--tsf-gold); padding-top: 0.85rem; font-size: 0.92rem; }
.toc__summary { cursor: pointer; font: 700 0.74rem/1.4 var(--tsf-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tsf-gold-text); min-height: 44px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary::after { content: ""; width: 0.55rem; height: 0.55rem; margin-right: 0.3rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s ease; }
.toc__details[open] > .toc__summary::after { transform: rotate(-135deg) translateY(-2px); }
.toc__list { margin: 0.6rem 0 0; padding: 0; list-style: none; counter-reset: toc; }
.toc__list li { counter-increment: toc; }
.toc__list a {
	display: flex;
	gap: 0.6rem;
	padding: 0.45rem 0 0.45rem 0.85rem;
	border-left: 2px solid rgba(36, 35, 40, 0.12);
	color: var(--tsf-muted);
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.toc__list a::before { content: counter(toc, decimal-leading-zero); font-family: var(--tsf-serif); font-weight: 600; color: var(--tsf-gold-text); }
.toc__list a:hover { color: var(--tsf-burgundy); border-left-color: var(--tsf-gold); }
.toc__list a[aria-current="true"] { color: var(--tsf-burgundy-deep); font-weight: 600; border-left-color: var(--tsf-burgundy); background: rgba(185, 152, 103, 0.1); }
@media (max-width: 1099.98px) {
	.article-aside { margin-bottom: -0.5rem; }
	.toc { background: var(--tsf-white); border: 1px solid rgba(36, 35, 40, 0.1); border-top: 3px solid var(--tsf-gold); padding: 0.6rem 1.1rem 0.9rem; }
}

/* About this file: dark block that frames the article's claims */
.file-box {
	margin: 0 0 2.75rem;
	padding: 1.5rem 1.6rem;
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(217, 193, 154, 0.12), rgba(217, 193, 154, 0) 70%),
		var(--tsf-burgundy-deep);
	border-top: 3px solid var(--tsf-gold);
	color: var(--tsf-ivory);
	font-size: 0.93rem;
}
.file-box__title { margin: 0 0 1rem; font: 700 0.74rem/1.4 var(--tsf-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tsf-gold-light); }
.file-box__list { margin: 0; display: grid; gap: 0.9rem; }
.file-box__row { display: grid; gap: 0.25rem; padding-top: 0.9rem; border-top: 1px solid rgba(217, 193, 154, 0.2); }
.file-box__row:first-child { padding-top: 0; border-top: 0; }
@media (min-width: 640px) { .file-box__row { grid-template-columns: 11rem 1fr; gap: 1rem; } }
.file-box dt { font-weight: 600; color: var(--tsf-gold-light); }
.file-box dd { margin: 0; }
.file-box a { color: var(--tsf-ivory); text-decoration-color: var(--tsf-gold); }
.file-box__date { color: var(--tsf-muted-dark); }
.file-box__policy { margin: 1.1rem 0 0; font-size: 0.88rem; }
.claim-labels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.claim-label { padding: 0.2rem 0.65rem; border: 1px solid rgba(217, 193, 154, 0.6); font-size: 0.84rem; }
.claim-label a { text-decoration: none; }
.claim-label a:hover { text-decoration: underline; }

/* Article sections: timeline, sources, corrections */
.article-section { margin-top: 3.25rem; padding-top: 1.75rem; border-top: 1px solid rgba(36, 35, 40, 0.14); position: relative; }
.article-section::before { content: ""; position: absolute; left: 0; top: -1px; width: 4.5rem; height: 2px; background: var(--tsf-gold); }
.article-section__title { margin: 0 0 1.1rem; font-family: var(--tsf-serif); font-size: 1.9rem; color: var(--tsf-burgundy-deep); }

.timeline__status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0 0 1.5rem; font-weight: 600; }
.timeline__list { list-style: none; margin: 0; padding: 0 0 0 1.6rem; position: relative; }
.timeline__list::before { content: ""; position: absolute; left: 0.4rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: linear-gradient(180deg, var(--tsf-gold), var(--tsf-burgundy)); }
.timeline__item { position: relative; padding: 0 0 1.75rem 1rem; }
.timeline__item::before {
	content: "";
	position: absolute;
	left: calc(-1.6rem + 0.4rem - 6px);
	top: 0.3rem;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--tsf-ivory);
	border: 2px solid var(--tsf-burgundy);
}
.timeline__item--latest::before { background: var(--tsf-gold); border-color: var(--tsf-gold); box-shadow: 0 0 0 5px rgba(185, 152, 103, 0.25); }
.timeline__item--latest { padding-bottom: 0.25rem; }
.timeline__latest { display: inline-block; margin-bottom: 0.3rem; padding: 0.15rem 0.5rem; background: var(--tsf-burgundy); color: var(--tsf-ivory); font: 700 0.64rem/1.3 var(--tsf-sans); letter-spacing: 0.12em; text-transform: uppercase; }
.timeline__date { display: block; font: 700 0.78rem/1.4 var(--tsf-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tsf-gold-text); }
.timeline__title { margin: 0.2rem 0; font-family: var(--tsf-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--tsf-burgundy-deep); }
.timeline__detail, .timeline__ref { margin: 0.3rem 0 0; font-size: 0.94rem; color: var(--tsf-muted); }

.sources__list { list-style: none; padding: 0; margin: 0; counter-reset: src; font-size: 0.94rem; }
.source { counter-increment: src; position: relative; padding: 0.85rem 0 0.85rem 2.6rem; border-bottom: 1px solid rgba(36, 35, 40, 0.1); }
.source::before { content: counter(src); position: absolute; left: 0; top: 0.8rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border: 1px solid var(--tsf-gold-text); border-radius: 50%; font-family: var(--tsf-serif); font-weight: 600; color: var(--tsf-gold-text); }
.source__title { font-weight: 600; color: var(--tsf-burgundy); }
.source__details { display: block; color: var(--tsf-muted); }
.source__type { display: inline-block; margin-top: 0.3rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tsf-gold-text); }
.corrections__list { padding-left: 1.2rem; font-size: 0.94rem; }

.article-tags { margin-top: 2.75rem; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.tag-list a { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid rgba(36, 35, 40, 0.18); font-size: 0.85rem; color: var(--tsf-midnight); text-decoration: none; transition: all 0.25s ease; }
.tag-list a:hover { border-color: var(--tsf-burgundy); background: var(--tsf-burgundy); color: var(--tsf-ivory); }

.share { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(36, 35, 40, 0.14); }
.share__title { margin: 0 0 0.85rem; font: 700 0.74rem/1.4 var(--tsf-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tsf-gold-text); }
.share__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; align-items: center; }
.share__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.4rem 1rem;
	border: 1px solid rgba(36, 35, 40, 0.18);
	background: transparent;
	color: var(--tsf-midnight);
	font: 500 0.88rem/1 var(--tsf-sans);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s ease;
}
.share__link:hover { border-color: var(--tsf-burgundy); background: var(--tsf-burgundy); color: var(--tsf-ivory); }
.share__link .tsf-icon { width: 1rem; height: 1rem; }
.share__status { margin-left: 0.5rem; font-size: 0.85rem; color: var(--tsf-muted); }

.related { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--tsf-parchment); border-top: 1px solid rgba(185, 152, 103, 0.4); --t-card-bg: var(--tsf-ivory); }
.comments { padding-bottom: 4rem; }
.page-links { margin: 2rem 0; display: flex; gap: 0.5rem; }

/* 404 */
.not-found { padding-block: clamp(4rem, 12vw, 8rem); text-align: center; }
.not-found__code { margin: 0; font-family: var(--tsf-serif); font-size: clamp(4.5rem, 3rem + 7vw, 9rem); line-height: 1; color: var(--tsf-gold-light); }
.not-found__title { margin: 0.5rem 0 1rem; font-family: var(--tsf-serif); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--t-heading); }
.not-found__text { color: var(--t-muted); }
.not-found__search { max-width: 30rem; margin: 2rem auto; }
.not-found__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.not-found .button--outline { color: var(--tsf-gold-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--tsf-abyss); color: var(--tsf-ivory); font-size: 0.93rem; border-top: 2px solid var(--tsf-gold); }
.site-footer__inner {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	max-width: calc(78rem + 5rem);
	margin-inline: auto;
	padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.15rem, 4vw, 2.5rem) 2.75rem;
}
.site-footer__brand { grid-column: 1 / -1; max-width: 30rem; }
@media (min-width: 960px) { .site-footer__brand { grid-column: span 2; } }
.wordmark--footer { margin: 0 0 0.75rem; font-size: 1.5rem; }
.site-footer__descriptor { margin: 0 0 0.75rem; font-family: var(--tsf-serif); font-style: italic; font-size: 1.25rem; color: var(--tsf-gold-light); }
.site-footer__independence { margin: 0; color: var(--tsf-muted-dark); font-size: 0.86rem; line-height: 1.6; }
.site-footer__title { margin: 0 0 1rem; font: 700 0.72rem/1.4 var(--tsf-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tsf-gold-light); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { margin-bottom: 0.2rem; }
.site-footer a { color: var(--tsf-ivory); text-decoration: none; display: inline-block; padding: 0.35rem 0; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--tsf-gold-light); text-decoration: underline; }
.lang-switcher--full ul { flex-direction: column; gap: 0; }
.lang-switcher--full a { display: inline-block; min-width: 0; min-height: 0; padding: 0.35rem 0; font: 400 0.93rem/1.4 var(--tsf-sans); letter-spacing: 0; color: var(--tsf-ivory); }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: space-between;
	max-width: calc(78rem + 5rem);
	margin-inline: auto;
	padding: 1.25rem clamp(1.15rem, 4vw, 2.5rem) 2rem;
	border-top: 1px solid rgba(185, 152, 103, 0.3);
	font-size: 0.82rem;
	color: var(--tsf-muted-dark);
}
.site-footer__bottom p { margin: 0; }

/* ---------- Comments ---------- */
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid rgba(36, 35, 40, 0.14); }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-family: var(--tsf-serif); font-size: 1.6rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form p { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.comment-form label { font-weight: 600; font-size: 0.9rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 0.6rem 0.75rem;
	border: 1px solid rgba(36, 35, 40, 0.35);
	border-radius: var(--tsf-radius);
	background: var(--tsf-white);
	font: 400 1rem/1.5 var(--tsf-sans);
	color: var(--tsf-midnight);
}
.comment-form .comment-form-cookies-consent { flex-direction: row; align-items: flex-start; gap: 0.5rem; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-form .submit { min-height: 46px; padding: 0.75rem 1.5rem; border: 0; background: var(--tsf-burgundy); color: var(--tsf-ivory); font: 600 0.95rem/1 var(--tsf-sans); cursor: pointer; border-radius: var(--tsf-radius); }
.comment-form .submit:hover { background: var(--tsf-burgundy-deep); }

/* =========================================================================
   MOTION — only when the visitor allows it
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
	body:not(.tsf-motion-off) .hero__image { animation: tsf-hero-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	body:not(.tsf-motion-off) .hero--placeholder .hero__frame { animation: tsf-fade 1.6s ease-out both; }
	body:not(.tsf-motion-off) .hero__content > * { animation: tsf-fade-up 0.9s ease-out both; }
	body:not(.tsf-motion-off) .hero__content > :nth-child(2) { animation-delay: 0.1s; }
	body:not(.tsf-motion-off) .hero__content > :nth-child(3) { animation-delay: 0.2s; }
	body:not(.tsf-motion-off) .hero__content > :nth-child(4) { animation-delay: 0.3s; }
	body:not(.tsf-motion-off) .hero__content > :nth-child(5) { animation-delay: 0.38s; }
	body:not(.tsf-motion-off) .hero__content > :nth-child(6) { animation-delay: 0.46s; }

	/* Section reveal (progressive enhancement: only when JS marks the page) */
	.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
	.js .reveal.is-visible { opacity: 1; transform: none; }
	.js body.tsf-motion-off .reveal { opacity: 1; transform: none; }
}
/* The image as a whole settles gently; the figure itself is never animated. */
@keyframes tsf-hero-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes tsf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tsf-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

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

@media print {
	.reveal { opacity: 1 !important; transform: none !important; }
}

@media (forced-colors: active) {
	.button, .share__link, .path-card__link, .collection-card__link, .card { border: 1px solid CanvasText; }
	.hero__glow, .hero--split .hero__media::before, .hero__halo, .hero__light, .hero__aura, .hero__rays, .hero__motes, .hero__shadow { display: none; }
}

/* =========================================================================
   THEMATIC PAGES (Explore): core Query Loop styled as editorial cards
   ========================================================================= */
.page-header--hub .ornament { margin: 0.5rem 0 1rem; }
.entry-content--hub > .hub-files { margin-top: clamp(2rem, 4vw, 3rem); }
.hub-files .wp-block-post-template { gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 781px) { .hub-files .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 600px) and (max-width: 781px) { .hub-files .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hub-files .wp-block-post {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0 0 1.4rem;
	background: #fff;
	border: 1px solid rgba(118, 88, 42, 0.22);
	border-top: 3px solid var(--tsf-burgundy);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hub-files .wp-block-post:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(41, 29, 36, 0.14); }
.hub-files .wp-block-post > *:not(.wp-block-post-featured-image) { margin: 0; padding-inline: 1.4rem; }
.hub-files .wp-block-post-featured-image { margin: 0 0 0.6rem; overflow: hidden; background: var(--tsf-burgundy-deep); }
.hub-files .wp-block-post-featured-image img { transition: transform 0.6s ease; }
.hub-files .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.045); }
.hub-files__topic { font: 600 0.72rem/1.4 var(--tsf-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tsf-gold-text); }
.hub-files__topic a { color: inherit; text-decoration: none; }
.hub-files__title { font-family: var(--tsf-serif); font-size: 1.45rem; line-height: 1.15; }
.hub-files__title a { color: var(--tsf-abyss); text-decoration: none; }
.hub-files__title a:hover { color: var(--tsf-burgundy); }
.hub-files__excerpt { font-size: 0.95rem; line-height: 1.6; color: var(--tsf-muted); }
.hub-files__excerpt .wp-block-post-excerpt__excerpt { margin: 0; }
.hub-files__date { margin-top: auto !important; font-size: 0.82rem; color: var(--tsf-muted); }
.hub-files__empty { padding: 2rem; text-align: center; background: var(--tsf-parchment); border-top: 3px solid var(--tsf-gold); color: var(--tsf-midnight); }
.hub-files .wp-block-query-pagination { margin-top: 2.5rem; gap: 0.5rem; font-weight: 600; }
.hub-files .wp-block-query-pagination a { color: var(--tsf-burgundy); }
@media (prefers-reduced-motion: reduce) {
	.hub-files .wp-block-post:hover, .hub-files .wp-block-post:hover .wp-block-post-featured-image img { transform: none; }
}

/* Explore cards: the focus ring is drawn inside the card so neighbouring cards never hide it */
.collection-card__link:focus-visible { outline: 2px solid var(--tsf-gold-light); outline-offset: -5px; }
