/* ==========================================================================
   The Economics Files — main stylesheet
   --------------------------------------------------------------------------
   1. Tokens          8. Cards               15. Articles & entry content
   2. Base            9. Hero                16. Documentaries
   3. Typography     10. Homepage sections   17. Reports & research
   4. Layout         11. Charts & data       18. Forms
   5. Buttons        12. Newsletter          19. Search, 404, comments
   6. Header & nav   13. Footer              20. Utilities, motion, print
   7. Page headers   14. Archives & filters
   Fonts are declared in theme.json (self-hosted, OFL licensed).
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
	--navy: #101a2c;
	--navy-deep: #0a111e;
	--navy-soft: #1b2740;
	--gold: #c6a15b;
	--gold-deep: #735727;
	--ivory: #f3efe5;
	--ivory-deep: #e6dfcf;
	--ink-muted: #4a5468;

	--serif: Newsreader, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

	--container: 1240px;
	--container-wide: 1200px;
	--container-article: 760px;
	--gutter: clamp(1.125rem, 4vw, 2.25rem);
	--section-y: clamp(3.5rem, 7vw, 6.5rem);
	--radius: 2px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-height: 112px;

	/* Context colors (light by default; dark sections override). */
	--bg: var(--ivory);
	--fg: var(--navy);
	--fg-muted: var(--ink-muted);
	--line: rgba(16, 26, 44, .14);
	--line-strong: rgba(16, 26, 44, .28);
	--accent-text: var(--gold-deep);
	--card-bg: transparent;
}

.is-dark,
.section--navy,
.section--deep,
.page-header--dark,
.hero,
.site-header,
.mobile-nav,
.site-footer,
.documentary-stage,
.documentary-header,
.newsletter--feature .newsletter__dark,
.error-page {
	--bg: var(--navy);
	--fg: var(--ivory);
	--fg-muted: rgba(243, 239, 229, .7);
	--line: rgba(243, 239, 229, .14);
	--line-strong: rgba(243, 239, 229, .3);
	--accent-text: var(--gold);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
	margin: 0;
	background: var(--ivory);
	color: var(--navy);
	font-family: var(--sans);
	font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
	line-height: 1.65;
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.is-dark-page { background: var(--navy-deep); }
body.nav-open { overflow: hidden; }

img,
svg,
video,
iframe { max-width: 100%; }

img { height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-text); }

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

button { font: inherit; color: inherit; cursor: pointer; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--gold); color: var(--navy); }

.site-main:focus { outline: none; }

/* 3. Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

.eyebrow {
	font-family: var(--sans);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent-text);
	margin: 0 0 1rem;
}

.eyebrow--rule {
	display: inline-flex;
	align-items: center;
	gap: .85rem;
}

.eyebrow--rule::before {
	content: "";
	width: 2.25rem;
	height: 1px;
	background: currentColor;
}

.kicker {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-text);
	margin: 0 0 .55rem;
	line-height: 1.4;
}

.kicker a { text-decoration: none; color: inherit; }
.kicker a:hover { text-decoration: underline; }
.kicker__sep { margin: 0 .45em; opacity: .7; }
.kicker__type { color: var(--fg); opacity: .78; }

.meta {
	font-size: .8rem;
	color: var(--fg-muted);
	letter-spacing: .01em;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .1rem .45rem;
}

.meta a { color: inherit; }
.meta__sep { opacity: .6; }
.meta__updated { font-style: italic; }
.meta__updated::after { content: "·"; margin-left: .45rem; opacity: .6; font-style: normal; }
.meta__reading { display: inline-flex; align-items: center; gap: .3rem; }
.meta__reading .icon { width: 14px; height: 14px; }
.meta__watch { color: var(--accent-text) !important; font-weight: 600; text-decoration: none; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--fg);
	white-space: nowrap;
}

.link-arrow .icon { width: 16px; height: 16px; color: var(--gold); transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* 4. Layout --------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--article { max-width: calc(var(--container-article) + var(--gutter) * 2); }
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }

.section {
	padding-block: var(--section-y);
	background: var(--bg);
	color: var(--fg);
}

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem) var(--section-y); }
.section--ivory { --bg: var(--ivory); }
.section--ivory-deep { --bg: var(--ivory-deep); }
.section--navy { --bg: var(--navy); }
.section--deep { --bg: var(--navy-deep); }

.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
	padding-bottom: 1.25rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
	border-bottom: 1px solid var(--line-strong);
	position: relative;
}

.section-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 4rem;
	height: 2px;
	background: var(--gold);
}

.section-header .eyebrow { margin-bottom: .5rem; }

.section-header__title {
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
	margin: 0;
	color: var(--fg);
}

.grid {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* 5. Buttons -------------------------------------------------------------- */
.button,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .95rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.button .icon { width: 16px; height: 16px; }

.button--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.button--gold:hover { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }

.button--primary,
.wp-element-button,
.wp-block-button__link { background: var(--navy); color: var(--ivory); border-color: var(--navy); }

.button--primary:hover,
.wp-element-button:hover,
.wp-block-button__link:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.is-dark .button--primary,
.section--navy .button--primary,
.section--deep .button--primary { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }

.button--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.button--ghost:hover { border-color: var(--gold); color: var(--gold); }

.button--small { padding: .6rem .9rem; font-size: .7rem; }

.button--disabled { background: transparent; border-color: var(--line-strong); color: var(--fg-muted); cursor: default; }

.icon-button {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--radius);
	color: var(--fg);
	transition: border-color .2s, color .2s;
}

.icon-button:hover { color: var(--gold); border-color: var(--line); }

/* 6. Header & navigation -------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy);
	color: var(--ivory);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.site-header.is-hidden { transform: translateY(-100%); }

.topbar {
	background: var(--navy-deep);
	border-bottom: 1px solid var(--line);
	font-size: .7rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fg-muted);
	transition: margin .35s var(--ease);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 34px;
}

.topbar p { margin: 0; }
.topbar__tagline { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: .01em; font-size: .85rem; color: var(--gold); }
.topbar__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.topbar__links a { text-decoration: none; color: var(--fg-muted); }
.topbar__links a:hover { color: var(--gold); }

.masthead { border-bottom: 1px solid var(--line); }

.masthead__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	min-height: 78px;
	transition: min-height .3s var(--ease);
}

.is-scrolled .masthead__inner { min-height: 64px; }

/* Wordmark */
.brand { margin: 0; flex: 0 0 auto; }

.wordmark {
	display: inline-flex;
	flex-direction: column;
	line-height: 1;
	text-decoration: none;
	color: var(--ivory);
}

.wordmark:hover { color: var(--ivory); }

.wordmark__the {
	font-family: var(--sans);
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: .42em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: .32rem;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.wordmark__the::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--gold), transparent);
	opacity: .6;
}

.wordmark__name {
	font-family: var(--serif);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.brand--logo img { max-height: 52px; width: auto; }

/* Primary nav (desktop) */
.primary-nav { margin-left: auto; display: none; }

.primary-nav__menu {
	display: flex;
	align-items: center;
	gap: .25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__menu > li { position: relative; display: flex; align-items: center; }

.primary-nav__menu a {
	display: block;
	padding: .7rem .75rem;
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ivory);
	white-space: nowrap;
}

.primary-nav__menu > li > a { position: relative; }

.primary-nav__menu > li > a::after {
	content: "";
	position: absolute;
	left: .75rem;
	right: .75rem;
	bottom: .35rem;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ease);
}

.primary-nav__menu > li:hover > a::after,
.primary-nav__menu > li > a:focus-visible::after,
.primary-nav__menu > .current-menu-item > a::after,
.primary-nav__menu > .current-menu-ancestor > a::after,
.primary-nav__menu > .current-menu-parent > a::after { transform: scaleX(1); }

.primary-nav__menu .submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 28px;
	margin-left: -.55rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--fg-muted);
}

.submenu-toggle .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.primary-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	list-style: none;
	margin: 0;
	padding: .6rem 0;
	background: var(--navy-deep);
	border: 1px solid var(--line);
	border-top: 2px solid var(--gold);
	box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.primary-nav__menu li:hover > .sub-menu,
.primary-nav__menu li:focus-within > .sub-menu,
.primary-nav__menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.primary-nav__menu .sub-menu a {
	padding: .6rem 1.1rem;
	font-size: .78rem;
	letter-spacing: .06em;
	color: var(--fg-muted);
}

.primary-nav__menu .sub-menu a:hover,
.primary-nav__menu .sub-menu .current-menu-item > a { color: var(--gold); background: rgba(243, 239, 229, .04); }

.masthead__actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.primary-nav + .masthead__actions { margin-left: .5rem; }

.menu-toggle .icon.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .icon.menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .icon.menu-toggle__close { display: block; }

@media (min-width: 1140px) {
	.primary-nav { display: block; }
	.menu-toggle { display: none; }
	.primary-nav + .masthead__actions { margin-left: 0; }
}

@media (max-width: 1139px) {
	.topbar__tagline { display: none; }
}

@media (max-width: 600px) {
	.topbar { display: none; }
	.masthead__inner { min-height: 64px; }
}

/* Search panel */
.search-panel {
	position: absolute;
	inset: 100% 0 auto;
	background: var(--navy-deep);
	border-bottom: 1px solid var(--line);
	padding: 1.5rem 0;
	box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .8);
}

.search-panel[hidden] { display: none; }
.search-panel__inner { display: flex; align-items: center; gap: 1rem; }
.search-panel .search-form { flex: 1; }

/* Search form */
.search-form {
	position: relative;
	display: flex;
	align-items: stretch;
	border: 1px solid var(--line-strong);
	background: transparent;
	border-radius: var(--radius);
}

.search-form:focus-within { border-color: var(--gold); }

.search-form__icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--fg-muted);
	pointer-events: none;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 1rem 1rem 1rem 3rem;
	border: 0;
	background: transparent;
	color: var(--fg);
	font: inherit;
	font-size: 1.05rem;
}

.search-form__input::placeholder { color: var(--fg-muted); }
.search-form__input:focus { outline: none; }
.search-form__input::-webkit-search-cancel-button { filter: grayscale(1); }

.search-form__submit {
	padding: 0 1.4rem;
	border: 0;
	background: var(--gold);
	color: var(--navy);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.search-form__submit:hover { background: var(--ivory); }

/* Mobile navigation */
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 90;
	padding-top: var(--header-height);
	background: var(--navy-deep);
	color: var(--ivory);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mobile-nav[hidden] { display: none; }
.admin-bar .mobile-nav { top: 46px; }

.mobile-nav__inner { padding: 1.5rem var(--gutter) 3rem; max-width: 640px; margin: 0 auto; }
.mobile-nav .search-form { margin-bottom: 1.5rem; }

.mobile-nav__menu,
.mobile-nav__menu .sub-menu { list-style: none; margin: 0; padding: 0; }

.mobile-nav__menu > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--line);
}

.mobile-nav__menu > li > a {
	flex: 1;
	padding: 1rem 0;
	font-family: var(--serif);
	font-size: 1.45rem;
	text-decoration: none;
	color: var(--ivory);
}

.mobile-nav__menu .submenu-toggle {
	width: 48px;
	height: 48px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--gold);
	display: grid;
	place-items: center;
}

.mobile-nav__menu .sub-menu { flex-basis: 100%; display: none; padding: 0 0 1rem 1rem; border-left: 1px solid var(--gold); margin-bottom: 1rem; }
.mobile-nav__menu li.is-open > .sub-menu { display: block; }
.mobile-nav__menu .sub-menu a { display: block; padding: .55rem 0; color: var(--fg-muted); text-decoration: none; }
.mobile-nav__menu .sub-menu a:hover { color: var(--gold); }
.mobile-nav__menu .current-menu-item > a { color: var(--gold); }

.mobile-nav__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* 7. Page headers & breadcrumbs ------------------------------------------ */
.page-header {
	padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
	background: var(--bg);
	color: var(--fg);
	border-bottom: 1px solid var(--line);
}

.page-header--light { --bg: var(--ivory); }
.page-header--dark { --bg: var(--navy-deep); }

.page-header__title {
	font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
	font-weight: 400;
	line-height: 1.04;
	margin: 0;
	max-width: 18ch;
}

.page-header__desc { max-width: 62ch; margin-top: 1.25rem; font-size: 1.1rem; color: var(--fg-muted); }
.page-header__desc p:last-child { margin-bottom: 0; }
.page-header__search { max-width: 720px; margin-top: 1.75rem; }
.page-header__count { margin: 1rem 0 0; color: var(--fg-muted); font-size: .9rem; }

.breadcrumbs { margin-bottom: 1.5rem; font-size: .75rem; letter-spacing: .04em; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; color: var(--fg-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; opacity: .5; }
.breadcrumbs a { color: var(--fg-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-text); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--fg); display: inline-block; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* 8. Cards ---------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--fg); }

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--navy-soft);
	margin-bottom: 1.1rem;
}

.card__media img,
.media__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--ease), opacity .3s;
}

.card:hover .card__media img { transform: scale(1.035); }

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

.card__title {
	font-size: clamp(1.18rem, 1.05rem + .4vw, 1.4rem);
	line-height: 1.22;
	margin: 0 0 .6rem;
}

.card__title a { text-decoration: none; color: var(--fg); background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
.card__title a:hover { color: var(--fg); background-size: 100% 1px; }

.card__excerpt { color: var(--fg-muted); font-size: .95rem; margin: 0 0 .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card__meta { margin-top: auto; }

.card__play {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(10, 17, 30, .72);
	border: 1px solid rgba(198, 161, 91, .8);
	color: var(--gold);
	backdrop-filter: blur(4px);
	transition: background .25s, color .25s;
}

.card__play .icon { width: 18px; height: 18px; margin-left: 3px; }
.card:hover .card__play { background: var(--gold); color: var(--navy); }

.card__badge {
	position: absolute;
	right: .75rem;
	bottom: .75rem;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .3rem .55rem;
	background: rgba(10, 17, 30, .82);
	color: var(--ivory);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.card__badge .icon { width: 13px; height: 13px; color: var(--gold); }
.card__badge--report { left: .75rem; right: auto; top: .75rem; bottom: auto; }

.card--lead .card__title { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); line-height: 1.1; font-weight: 400; }
.card--lead .card__excerpt { font-size: 1.05rem; -webkit-line-clamp: 4; }
.card--lead .card__play { width: 64px; height: 64px; left: 1.25rem; bottom: 1.25rem; }
.card--lead .card__play .icon { width: 22px; height: 22px; }

.card--horizontal { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 1rem; align-items: start; }
.card--horizontal .card__media { margin-bottom: 0; }
.card--horizontal .card__title { font-size: 1.05rem; }
.card--horizontal .card__play { width: 34px; height: 34px; left: .5rem; bottom: .5rem; }
.card--horizontal .card__play .icon { width: 13px; height: 13px; }
.card--horizontal .card__badge { font-size: .6rem; right: .4rem; bottom: .4rem; }

.card--text { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }

/* 9. Hero ----------------------------------------------------------------- */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(600px, calc(100vh - var(--header-height)), 860px);
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
	background: var(--navy-deep);
	color: var(--ivory);
	overflow: hidden;
}

.hero__media { position: absolute; inset: 0 0 0 30%; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, var(--navy-deep) 30%, rgba(10, 17, 30, .6) 46%, rgba(10, 17, 30, .05) 72%, rgba(10, 17, 30, .3) 100%),
		linear-gradient(0deg, var(--navy-deep) 0%, rgba(10, 17, 30, 0) 28%);
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: end;
}

.hero__title {
	font-size: clamp(2.7rem, 1.4rem + 5.2vw, 5.6rem);
	font-weight: 300;
	line-height: .98;
	letter-spacing: -.025em;
	margin: 0 0 1.5rem;
	max-width: 13ch;
}

.hero__lede { max-width: 46ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--fg-muted); margin: 0; }

.hero__cover {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: rgba(10, 17, 30, .74);
	border-top: 2px solid var(--gold);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.hero__cover-label {
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--fg-muted);
	margin: 0 0 1rem;
	padding-bottom: .9rem;
	border-bottom: 1px solid var(--line);
}

.hero__cover-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.12; margin: 0 0 .75rem; }
.hero__cover-title a { text-decoration: none; color: var(--ivory); }
.hero__cover-title a:hover { color: var(--gold); }
.hero__cover-excerpt { color: var(--fg-muted); font-size: .98rem; margin-bottom: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.1rem; }
.hero__cover-meta { margin: 0; }

@media (max-width: 960px) {
	.hero { align-items: stretch; min-height: 0; padding-top: 0; }
	.hero__media { position: relative; inset: auto; height: 46vw; min-height: 240px; max-height: 420px; margin: 0 0 -6rem; }
	.hero { flex-direction: column; }
	.hero::before { background: linear-gradient(0deg, var(--navy-deep) 55%, rgba(10, 17, 30, .1) 85%); }
	.hero__inner { grid-template-columns: 1fr; position: relative; }
}

/* 10. Homepage sections -------------------------------------------------- */
.home-docs__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.home-docs__side { display: grid; gap: clamp(1.5rem, 3vw, 2rem); align-content: start; }
.home-docs__row { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }

.home-latest__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.home-latest__support { display: grid; gap: 2rem; align-content: start; padding-left: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
.home-latest__list { padding-left: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
.home-latest__row { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }

.list-title {
	font-family: var(--sans);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--fg);
	margin: 0 0 1.25rem;
	padding-bottom: .75rem;
	border-bottom: 2px solid var(--fg);
}

.numbered-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }

.numbered-list li {
	counter-increment: rank;
	position: relative;
	padding: 0 0 1.1rem 2.6rem;
	margin-bottom: 1.1rem;
	border-bottom: 1px solid var(--line);
}

.numbered-list li::before {
	content: counter(rank, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: -.15rem;
	font-family: var(--serif);
	font-size: 1.6rem;
	line-height: 1;
	color: var(--gold);
}

.numbered-list .kicker { margin-bottom: .3rem; }
.numbered-list__title { display: block; font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; text-decoration: none; margin-bottom: .3rem; }
.numbered-list__title:hover { text-decoration: underline; text-decoration-color: var(--gold); color: var(--fg); }

@media (max-width: 1080px) {
	.home-latest__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.home-latest__lead { grid-column: 1 / -1; }
	.home-latest__support { padding-left: 0; border-left: 0; }
}

@media (max-width: 760px) {
	.home-docs__grid,
	.home-latest__grid { grid-template-columns: 1fr; }
	.home-latest__list { padding-left: 0; border-left: 0; }
}

/* Category tiles */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat-tile { position: relative; background: var(--navy); display: flex; flex-direction: column; }
.cat-tile--wide { grid-column: span 2; }

.cat-tile__link {
	position: relative;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	gap: .5rem;
	padding: 0 1.5rem 1.25rem;
	text-decoration: none;
	color: var(--ivory);
	flex: 1;
}

.cat-tile__media { display: block; height: 150px; margin: 0 -1.5rem .75rem; overflow: hidden; position: relative; }
.cat-tile--wide .cat-tile__media { height: 150px; }
.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .4s, transform .8s var(--ease); }
.cat-tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--navy) 0%, rgba(16, 26, 44, 0) 70%); }
.cat-tile__link:hover .cat-tile__media img { opacity: 1; transform: scale(1.04); }

.cat-tile__num { position: absolute; top: 1rem; left: 1.5rem; font-family: var(--serif); font-size: .95rem; color: var(--gold); letter-spacing: .1em; }
.cat-tile__name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.cat-tile__link:hover .cat-tile__name { color: var(--gold); }
.cat-tile__desc { font-size: .9rem; color: var(--fg-muted); line-height: 1.5; }
.cat-tile__count { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: .5rem; }
.cat-tile__latest { margin: 0; padding: .9rem 1.5rem 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--fg-muted); line-height: 1.45; }
.cat-tile__latest span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); margin-right: .25rem; }
.cat-tile__latest a { color: var(--ivory); text-decoration: none; }
.cat-tile__latest a:hover { color: var(--gold); text-decoration: underline; }

@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } .cat-tile--wide { grid-column: auto; } }

/* Research showcase */
.home-research__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 4vw, 3.5rem); }
.research-feature { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ivory); border: 1px solid var(--line); }
.research-feature__media { display: block; aspect-ratio: 16 / 7; overflow: hidden; }
.research-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.research-feature__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.research-feature__title { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem); line-height: 1.12; }
.research-feature__title a { text-decoration: none; }
.research-feature__excerpt { color: var(--fg-muted); }

.findings { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: grid; gap: .65rem; }
.findings li { position: relative; padding-left: 1.6rem; line-height: 1.5; }
.findings li::before { content: ""; position: absolute; left: 0; top: .6em; width: .9rem; height: 1px; background: var(--gold); }

.report-list,
.type-links { list-style: none; margin: 0 0 2.25rem; padding: 0; }
.report-list li { padding: 0 0 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.report-list .kicker { margin-bottom: .25rem; }
.report-list__title { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; text-decoration: none; margin-bottom: .35rem; }
.type-links li { border-bottom: 1px solid var(--line); }
.type-links a { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; text-decoration: none; font-weight: 500; font-size: .95rem; }
.type-links .icon { width: 16px; height: 16px; color: var(--gold-deep); transition: transform .25s var(--ease); }
.type-links a:hover .icon { transform: translateX(3px); }
.home-research__note { font-size: .88rem; color: var(--fg-muted); padding: 1rem 1.25rem; border-left: 2px solid var(--gold); background: rgba(243, 239, 229, .6); }

@media (max-width: 900px) { .home-research__grid { grid-template-columns: 1fr; } }

/* Partnerships */
.home-partners__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.home-partners__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; }
.home-partners__text { color: var(--fg-muted); font-size: 1.08rem; margin-bottom: 2rem; max-width: 44ch; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: offer; }
.offer { background: var(--navy); padding: clamp(1.5rem, 3vw, 2.25rem); counter-increment: offer; }
.offer::before { content: counter(offer, decimal-leading-zero); display: block; font-family: var(--serif); color: var(--gold); font-size: 1rem; margin-bottom: 1.5rem; letter-spacing: .1em; }
.offer__title { font-size: 1.35rem; margin-bottom: .6rem; }
.offer__text { color: var(--fg-muted); font-size: .95rem; margin: 0; }

@media (max-width: 900px) { .home-partners__inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .offer-list { grid-template-columns: 1fr; } }

.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band__title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); margin-bottom: .4rem; }
.cta-band p { color: var(--fg-muted); margin: 0; max-width: 56ch; }

/* 11. Charts & data ------------------------------------------------------ */
.data-notice {
	display: flex;
	gap: .85rem;
	align-items: flex-start;
	padding: 1rem 1.25rem;
	margin: 0 0 2rem;
	border: 1px solid rgba(198, 161, 91, .45);
	background: rgba(198, 161, 91, .08);
	font-size: .9rem;
	color: var(--fg-muted);
}

.data-notice strong { color: var(--gold); }
.data-notice .icon { flex: 0 0 auto; color: var(--gold); margin-top: .1rem; }

.indicators { list-style: none; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.indicator { background: var(--navy-deep); padding: 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
.indicator__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.indicator__value { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem); line-height: 1.05; color: var(--ivory); font-variant-numeric: tabular-nums; }
.indicator__note { font-size: .78rem; color: var(--gold); }

@media (max-width: 900px) { .indicators { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tef-chart {
	margin: 0;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border: 1px solid var(--line);
	background: var(--card-bg);
	color: var(--fg);
	min-width: 0;
}

.entry-content .tef-chart { margin: 2.25rem 0; background: rgba(255, 255, 255, .45); }

.tef-chart__head { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1rem; }
.tef-chart__badge { align-self: flex-start; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: .25rem .5rem; border: 1px solid var(--gold); color: var(--accent-text); margin-bottom: .5rem; }
.tef-chart__title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.tef-chart__subtitle { font-size: .82rem; color: var(--fg-muted); }

.tef-chart__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin: 0 0 .75rem; padding: 0; font-size: .8rem; color: var(--fg-muted); }
.tef-chart__legend li { display: inline-flex; align-items: center; gap: .45rem; }
.tef-chart__key { width: 18px; height: 3px; background: var(--gold); display: inline-block; }
.tef-chart__key--2 { background: repeating-linear-gradient(90deg, var(--fg) 0 5px, transparent 5px 8px); opacity: .7; }

.tef-chart__svg { width: 100%; height: auto; display: block; overflow: visible; }
.tef-chart__grid { stroke: var(--line); stroke-width: 1; }
.tef-chart__grid.is-zero { stroke: var(--line-strong); }
.tef-chart__axis { fill: var(--fg-muted); font-family: var(--sans); font-size: 11px; }
@media (max-width: 760px) { .tef-chart__axis { font-size: 17px; } }
@media (max-width: 420px) { .tef-chart__axis { font-size: 20px; } }
.tef-chart__line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.tef-chart__line--1 { stroke: var(--gold); }
.tef-chart__line--2 { stroke: var(--fg); stroke-width: 1.75; stroke-dasharray: 5 3; opacity: .7; }
.tef-chart__area { fill: var(--gold); opacity: .07; }
.tef-chart__dot--1 { fill: var(--gold); }
.tef-chart__dot--2 { fill: var(--fg); opacity: .7; }
.tef-chart__bar--1 { fill: var(--gold); }
.tef-chart__bar--2 { fill: var(--fg-muted); }

.tef-chart__data { margin-top: 1rem; font-size: .85rem; }
.tef-chart__data summary { cursor: pointer; color: var(--fg-muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.tef-chart__data table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-variant-numeric: tabular-nums; }
.tef-chart__data th,
.tef-chart__data td { padding: .4rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.tef-chart__source { margin: 1rem 0 0; font-size: .78rem; color: var(--fg-muted); display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.tef-chart__source span { font-weight: 600; }
.tef-chart__source em { color: var(--accent-text); }

/* 12. Newsletter ---------------------------------------------------------- */
.newsletter { padding-block: var(--section-y); background: var(--ivory); color: var(--navy); position: relative; }

.newsletter--feature { text-align: center; border-top: 1px solid var(--line); }
.newsletter--feature::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: clamp(2rem, 5vw, 3.5rem); background: var(--gold); }
.newsletter--feature .newsletter__inner { max-width: 820px; }
.newsletter--feature .newsletter__title { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.02; margin-bottom: 1rem; }
.newsletter--feature .newsletter__copy { font-size: 1.15rem; color: var(--ink-muted); max-width: 52ch; margin: 0 auto 2rem; }
.newsletter--feature .newsletter-form { max-width: 560px; margin: 0 auto; }

.newsletter--compact { background: var(--ivory-deep); padding-block: clamp(3rem, 6vw, 4.5rem); }
.newsletter--compact .newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; }
.newsletter--compact .newsletter__title { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin-bottom: .5rem; }
.newsletter--compact .newsletter__copy { color: var(--ink-muted); margin: 0; }
@media (max-width: 860px) { .newsletter--compact .newsletter__inner { grid-template-columns: 1fr; } }

.newsletter-form__row { display: flex; gap: 0; border: 1px solid var(--navy); background: rgba(255, 255, 255, .55); }
.newsletter-form__row:focus-within { box-shadow: 0 0 0 3px rgba(198, 161, 91, .45); }
.newsletter-form__input { flex: 1; min-width: 0; padding: 1rem 1.1rem; border: 0; background: transparent; font: inherit; color: var(--navy); }
.newsletter-form__input:focus { outline: none; }
.newsletter-form__input[aria-invalid="true"] { background: rgba(176, 58, 46, .06); }
.newsletter-form .button { border-radius: 0; }
.newsletter-form__note { font-size: .78rem; color: var(--ink-muted); margin: .9rem 0 0; }
.newsletter-form__note a { color: inherit; }

.form-status { min-height: 0; margin: 0; font-size: .9rem; }
.form-status.is-visible { margin-top: .9rem; padding: .75rem 1rem; border-left: 2px solid var(--gold); background: rgba(198, 161, 91, .12); text-align: left; }
.form-status.is-error { border-left-color: #a33a2c; background: rgba(163, 58, 44, .08); }

@media (max-width: 480px) {
	.newsletter-form__row { flex-direction: column; }
	.newsletter-form .button { width: 100%; }
}

/* 13. Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--ivory); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; border-top: 2px solid var(--gold); }

.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.site-footer__tagline { font-family: var(--serif); font-style: italic; color: var(--gold); margin: 1.25rem 0 .75rem; font-size: 1.05rem; }
.site-footer__desc { color: var(--fg-muted); font-size: .9rem; max-width: 40ch; }
.site-footer__title { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: .25rem 0 1.25rem; }

.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-menu a { color: var(--fg-muted); text-decoration: none; font-size: .9rem; word-break: break-word; }
.footer-menu a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer__label { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); opacity: .75; margin-bottom: .15rem; }
.site-footer address { font-style: normal; color: var(--fg-muted); font-size: .85rem; }

.social-links { display: flex; gap: .5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.social-links a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); color: var(--fg-muted); transition: color .2s, border-color .2s; }
.social-links a:hover { color: var(--gold); border-color: var(--gold); }
.social-links .icon { width: 18px; height: 18px; }

.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.75rem; font-size: .8rem; color: var(--fg-muted); }
.site-footer__copy { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.legal-menu a { color: var(--fg-muted); text-decoration: none; }
.legal-menu a:hover { color: var(--gold); }
.back-to-top { display: inline-flex; align-items: center; gap: .4rem; color: var(--fg-muted); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.back-to-top .icon { width: 14px; height: 14px; }

.brand--footer .wordmark__name { font-size: 1.5rem; }

@media (max-width: 1080px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

/* 14. Archives & filters ------------------------------------------------- */
.filters { margin-top: 2rem; }
.filters ul { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0 0 .25rem; overflow-x: auto; scrollbar-width: thin; }
.filters a {
	display: inline-block;
	padding: .5rem .95rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	color: var(--fg);
	transition: border-color .2s, background .2s, color .2s;
}

.filters a:hover { border-color: var(--gold); color: var(--fg); }
.filters a.is-current { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.archive-lead { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.archive-lead .card--lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.archive-lead .card--lead .card__media { margin-bottom: 0; }
@media (max-width: 800px) { .archive-lead .card--lead { grid-template-columns: 1fr; } }

.pagination { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	min-width: 44px;
	height: 44px;
	padding: 0 .9rem;
	justify-content: center;
	border: 1px solid var(--line-strong);
	text-decoration: none;
	font-size: .85rem;
	color: var(--fg);
}

.pagination .page-numbers .icon { width: 16px; height: 16px; }
.pagination .page-numbers.current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--fg); }
.pagination .dots { border: 0; }

.empty-state { padding: 2rem 0; color: var(--fg-muted); max-width: 640px; }
.empty-state .search-form { margin-top: 1.5rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.chip-list a { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: .85rem; color: var(--fg); }
.chip-list a:hover { border-color: var(--gold); color: var(--fg); }

/* 15. Articles & entry content ------------------------------------------- */
.article-header { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 2.5rem); }
.article-header__title { font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4rem); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1.25rem; }
.article-header__dek { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.4; color: var(--ink-muted); font-style: italic; margin: 0 0 1.75rem; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.byline__avatar { border-radius: 50%; }
.byline__text { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 200px; }
.byline__author { font-weight: 600; font-size: .92rem; }
.byline__author a { text-decoration: none; }

.share { display: flex; align-items: center; gap: .75rem; }
.share__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.share__list { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; position: relative; }
.share__link { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: 50%; padding: 0; transition: border-color .2s, color .2s; }
.share__link:hover { border-color: var(--gold); color: var(--accent-text); }
.share__link .icon { width: 16px; height: 16px; }
.share__status { position: absolute; right: 0; top: calc(100% + .4rem); font-size: .75rem; color: var(--accent-text); white-space: nowrap; }

.article-hero { margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.article-hero__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-hero figcaption { font-size: .8rem; color: var(--fg-muted); padding-top: .6rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, var(--container-article)); justify-content: center; gap: 3rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.article-layout.has-toc { grid-template-columns: 240px minmax(0, var(--container-article)); max-width: calc(240px + 3rem + var(--container-article) + var(--gutter) * 2); }

.article-aside { position: relative; }
.article-aside .toc { position: sticky; top: calc(var(--header-height) + 1.5rem); }

.toc { border-top: 2px solid var(--navy); font-size: .88rem; }
.toc__summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; padding: .9rem 0; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary .icon { width: 16px; height: 16px; transition: transform .2s; }
.toc[open] .toc__summary .icon { transform: rotate(180deg); }
.toc__list { list-style: none; margin: 0; padding: 0 0 1rem; counter-reset: toc; }
.toc__item a { display: block; padding: .45rem 0 .45rem .9rem; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-muted); line-height: 1.35; transition: color .2s, border-color .2s; }
.toc__item--h3 a { padding-left: 1.7rem; font-size: .82rem; }
.toc__item a:hover { color: var(--navy); }
.toc__item a.is-active { color: var(--navy); border-left-color: var(--gold); font-weight: 600; }

@media (min-width: 1100px) {
	.toc__summary { cursor: default; pointer-events: none; }
	.toc__summary .icon { display: none; }
}

@media (max-width: 1099px) {
	.article-layout.has-toc { grid-template-columns: minmax(0, var(--container-article)); max-width: calc(var(--container-article) + var(--gutter) * 2); gap: 0; }
	.article-aside { margin-bottom: 2rem; }
	.toc { border: 1px solid var(--line); border-top: 2px solid var(--navy); padding: 0 1rem; background: rgba(255, 255, 255, .4); }
}

.disclosure { padding: 1rem 1.25rem; margin-bottom: 2rem; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: rgba(198, 161, 91, .1); font-size: .9rem; }

/* Entry content (block editor output) */
.entry-content { font-size: clamp(1.04rem, 1rem + .2vw, 1.14rem); line-height: 1.75; }
.entry-content > * { margin-top: 0; margin-bottom: 1.5rem; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-content h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-top: 3rem; margin-bottom: 1rem; }
.entry-content h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); margin-top: 2.25rem; margin-bottom: .75rem; }
.entry-content h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; margin-top: 2rem; }
.entry-content a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.is-dark .entry-content a,
.documentary-body .entry-content a { color: var(--ivory); }
.entry-content a:hover { color: var(--gold-deep); }
.entry-content ul,
.entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .5rem; }
.entry-content li::marker { color: var(--gold-deep); }
.entry-content strong { font-weight: 600; }

.entry-content .is-style-tef-lede,
.entry-content > p:first-child.has-drop-cap { font-size: 1.25em; line-height: 1.6; }

.entry-content .has-drop-cap:not(:focus)::first-letter { font-family: var(--serif); color: var(--gold-deep); font-size: 4.2em; line-height: .8; margin: .08em .1em 0 0; font-weight: 400; }

.entry-content blockquote { margin-left: 0; margin-right: 0; padding-left: 1.5rem; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.2em; font-style: italic; }
.entry-content blockquote cite,
.entry-content .wp-block-pullquote cite { display: block; margin-top: .75rem; font-family: var(--sans); font-style: normal; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }

.entry-content .is-style-tef-pull,
.entry-content .wp-block-pullquote { border: 0; border-top: 2px solid var(--gold); border-bottom: 1px solid var(--line-strong); padding: 2rem 0; margin: 3rem 0; text-align: left; font-family: var(--serif); font-style: normal; }
.entry-content .is-style-tef-pull p,
.entry-content .wp-block-pullquote p { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.25; font-weight: 400; letter-spacing: -.01em; margin: 0; }
.entry-content .is-style-tef-pull { padding-left: 0; }

.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption,
.entry-content .wp-element-caption { font-size: .8rem; color: var(--fg-muted); margin-top: .6rem; line-height: 1.5; }
.entry-content .is-style-tef-cinematic img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.entry-content .alignwide { width: min(1100px, calc(100vw - var(--gutter) * 2)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.article-layout.has-toc .entry-content .alignwide,
.article-layout.has-toc .entry-content .alignfull { width: 100%; margin-left: 0; transform: none; }
.entry-content .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .entry-content .alignleft, .entry-content .alignright { float: none; max-width: 100%; margin: 0 0 1.5rem; } }

.tef-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.tef-table-scroll:focus-visible { outline-offset: 0; }
.entry-content .wp-block-table { margin: 0; overflow: visible; }
.entry-content table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.entry-content table th,
.entry-content table td { padding: .7rem .9rem; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content table thead th { border-bottom: 2px solid var(--navy); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.entry-content .is-style-tef-data tbody tr:nth-child(odd) { background: rgba(16, 26, 44, .035); }
.entry-content .wp-block-table figcaption { text-align: left; }

.entry-content .is-style-tef-callout,
.entry-content .is-style-tef-takeaway { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); background: rgba(255, 255, 255, .45); }
.entry-content .is-style-tef-takeaway { border-top: 3px solid var(--gold); background: var(--navy); color: var(--ivory); }
.entry-content .is-style-tef-takeaway h2,
.entry-content .is-style-tef-takeaway h3 { margin-top: 0; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.entry-content .is-style-tef-takeaway li::marker { color: var(--gold); }
.entry-content .is-style-tef-takeaway a { color: var(--ivory); }
.entry-content .is-style-tef-callout > *:last-child,
.entry-content .is-style-tef-takeaway > *:last-child { margin-bottom: 0; }

.entry-content .is-style-tef-numbered-gold { list-style: none; padding-left: 0; counter-reset: gold; }
.entry-content .is-style-tef-numbered-gold li { counter-increment: gold; position: relative; padding-left: 2.5rem; }
.entry-content .is-style-tef-numbered-gold li::before { content: counter(gold, decimal-leading-zero); position: absolute; left: 0; font-family: var(--serif); color: var(--gold-deep); font-size: 1.1em; }

.entry-content code { font-size: .88em; background: rgba(16, 26, 44, .06); padding: .1em .35em; border-radius: 2px; }
.entry-content pre { overflow-x: auto; background: var(--navy); color: var(--ivory); padding: 1.25rem; font-size: .85rem; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line-strong); margin: 3rem auto; }
.entry-content .wp-block-separator.is-style-dots::before { color: var(--gold); }
.entry-content .wp-block-embed iframe { width: 100%; }
.entry-content .wp-block-columns { gap: 2rem; }
.entry-content .wp-block-buttons { gap: .75rem; }

.entry-content .editor-note { padding: .85rem 1rem; border: 1px dashed var(--gold-deep); font-size: .88rem; color: var(--ink-muted); background: rgba(198, 161, 91, .08); }

.link-list { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--fg); }
.link-list__title { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.link-list__items { margin: 0; padding-left: 1.4rem; font-size: .9rem; color: var(--fg-muted); display: grid; gap: .5rem; }
.link-list__items a { color: var(--fg); word-break: break-word; }
.link-list--recommended .link-list__items { list-style: square; }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2.5rem; }
.article-tags__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.article-tags ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.article-tags a { display: inline-block; padding: .3rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .8rem; text-decoration: none; }

.article-footer-share { margin-top: 2.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.author-box { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.5rem; background: rgba(255, 255, 255, .45); border: 1px solid var(--line); }
.author-box__avatar { border-radius: 50%; flex: 0 0 auto; }
.author-box__label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 .2rem; }
.author-box__name { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 .4rem; }
.author-box__name a { text-decoration: none; }
.author-box__bio { margin: 0; font-size: .92rem; color: var(--fg-muted); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-block: 2rem 3.5rem; }
.post-nav__link { display: flex; flex-direction: column; gap: .45rem; padding: 1.5rem; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.post-nav__link:hover { border-color: var(--gold); color: var(--fg); }
.post-nav__link--next { text-align: right; align-items: flex-end; }
.post-nav__label { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.post-nav__label .icon { width: 14px; height: 14px; color: var(--gold-deep); }
.post-nav__title { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { text-align: left; align-items: flex-start; } }

.page-links { margin-top: 2rem; display: flex; gap: .5rem; }
.page-updated { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* 16. Documentaries ------------------------------------------------------- */
.documentary-stage { background: var(--navy-deep); color: var(--ivory); padding: clamp(1.5rem, 3vw, 2.25rem) 0 0; }

.video-player { position: relative; }
.video-player__frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.video-player__poster,
.video-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-player__play,
.video-player__soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-decoration: none; color: var(--ivory); background: radial-gradient(circle at center, rgba(10, 17, 30, .25), rgba(10, 17, 30, .7)); }
.video-player__button { display: grid; place-items: center; width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); border-radius: 50%; background: var(--gold); color: var(--navy); transition: transform .3s var(--ease), background .2s; }
.video-player__button .icon { width: 40%; height: 40%; margin-left: 6%; }
.video-player__play:hover .video-player__button { transform: scale(1.06); background: var(--ivory); }
.video-player__button--muted { background: rgba(243, 239, 229, .12); color: var(--fg-muted); border: 1px solid var(--line-strong); }
.video-player__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); text-align: center; padding: 0 1rem; }
.video-player.is-playing .video-player__play,
.video-player.is-playing .video-player__poster { display: none; }

.documentary-header { background: var(--navy-deep); color: var(--ivory); padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.documentary-header__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.documentary-header__title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.8rem); font-weight: 400; line-height: 1.04; letter-spacing: -.02em; }
.documentary-header__intro { font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); color: var(--fg-muted); line-height: 1.45; margin: 0; }
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--gold); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.facts dt { color: var(--fg-muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding-top: .15rem; }
.facts dd { margin: 0; text-align: right; }
.facts a { color: var(--gold); text-decoration: none; }
@media (max-width: 860px) { .documentary-header__inner { grid-template-columns: 1fr; } }

.documentary-body { background: var(--navy); color: var(--ivory); padding: clamp(2.5rem, 5vw, 4rem) 0; --fg: var(--ivory); --fg-muted: rgba(243, 239, 229, .7); --line: rgba(243, 239, 229, .14); --line-strong: rgba(243, 239, 229, .3); --accent-text: var(--gold); }
.documentary-body .entry-content li::marker { color: var(--gold); }
.documentary-body .entry-content a:hover { color: var(--gold); }
.documentary-body .entry-content blockquote cite { color: var(--fg-muted); }
.documentary-body .tef-chart { background: rgba(243, 239, 229, .03); }
.documentary-body .entry-content table thead th { border-bottom-color: var(--gold); }

/* 17. Reports & research -------------------------------------------------- */
.report-header { border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3rem); }
.report-header__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.report-header__cover { position: relative; }
.report-header__cover::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); z-index: 0; }
.report-header__img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(16, 26, 44, .6); }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
@media (max-width: 860px) { .report-header__inner { grid-template-columns: 1fr; } .report-header__cover { max-width: 520px; } }

.findings-box { padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 2.5rem; background: var(--navy); color: var(--ivory); border-top: 3px solid var(--gold); }
.findings-box__title { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5rem; }
.findings-box .findings { margin-bottom: 0; }

.type-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.type-card { background: var(--ivory-deep); }
.type-card a { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.75rem; text-decoration: none; transition: background .2s; }
.type-card a:hover { background: var(--ivory); color: var(--navy); }
.type-card__name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }
.type-card__desc { color: var(--ink-muted); font-size: .92rem; }
.type-card__count { margin-top: auto; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

.download-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.download-item { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.download-item__icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); color: var(--gold-deep); flex: 0 0 auto; }
.download-item__body { flex: 1; min-width: 0; }
.download-item .kicker { margin-bottom: .15rem; }
.download-item__title { font-family: var(--serif); font-size: 1.15rem; text-decoration: none; }

.path-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.path-list a { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto; gap: 1rem 2rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ivory); }
.path-list__name { font-family: var(--serif); font-size: 1.35rem; }
.path-list__desc { color: var(--fg-muted); font-size: .92rem; }
.path-list .icon { color: var(--gold); transition: transform .25s var(--ease); }
.path-list a:hover .path-list__name { color: var(--gold); }
.path-list a:hover .icon { transform: translateX(4px); }
@media (max-width: 700px) { .path-list a { grid-template-columns: 1fr auto; } .path-list__desc { grid-column: 1; } .path-list .icon { grid-row: 1; grid-column: 2; } }

/* 18. Forms --------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-layout__main .entry-content { margin-bottom: 2.5rem; }
.contact-card { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.contact-card:first-child { border-top: 2px solid var(--navy); }
.contact-card__title { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .5rem; }
.contact-card p { color: var(--fg-muted); font-size: .9rem; margin-bottom: .5rem; }
.contact-card a { font-weight: 600; word-break: break-word; }
.contact-card address { font-style: normal; color: var(--fg-muted); }
.contact-layout__note { font-size: .88rem; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }

.field { margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; }
.field__req { color: var(--gold-deep); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: .85rem 1rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .6);
	color: var(--navy);
	font: inherit;
	transition: border-color .2s, box-shadow .2s;
}

.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23101A2C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.field input:focus,
.field select:focus,
.field textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(198, 161, 91, .45); }

.field [aria-invalid="true"] { border-color: #a33a2c; }
.field__error { color: #a33a2c; font-size: .82rem; }

.field--check { flex-direction: row; align-items: flex-start; gap: .75rem; }
.field--check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--navy); flex: 0 0 auto; }
.field--check label { font-weight: 400; font-size: .88rem; }
.field--check .field__error { flex-basis: 100%; }
.field--check { flex-wrap: wrap; }

.field--hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.25rem; margin-bottom: 1.75rem; border-left: 3px solid var(--gold); background: rgba(198, 161, 91, .12); }
.notice--success { border-left-color: #2f6b4f; background: rgba(47, 107, 79, .1); }
.notice--error { border-left-color: #a33a2c; background: rgba(163, 58, 44, .08); }
.notice:focus { outline: none; }

/* 19. Search, 404, comments ---------------------------------------------- */
.search-results { list-style: none; margin: 0; padding: 0; }
.search-result { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.search-result__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-soft); }
.search-result__media img { width: 100%; height: 100%; object-fit: cover; }
.search-result__title { font-size: 1.4rem; margin-bottom: .4rem; }
.search-result__title a { text-decoration: none; }
.search-result__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); color: var(--fg); }
.search-result__excerpt { color: var(--fg-muted); font-size: .95rem; margin-bottom: .5rem; }
@media (max-width: 600px) { .search-result { grid-template-columns: 1fr; gap: 1rem; } }
.page-header .search-form { background: rgba(255, 255, 255, .5); }
.page-header--light .search-form__submit { background: var(--navy); color: var(--ivory); }
.page-header--light .search-form__submit:hover { background: var(--gold); color: var(--navy); }

.error-page { background: var(--navy-deep); color: var(--ivory); padding: clamp(4rem, 10vw, 8rem) 0; text-align: center; }
.error-page__code { font-family: var(--serif); font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 1; color: var(--gold); margin: 0 0 1rem; font-weight: 300; }
.error-page__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 400; }
.error-page__text { color: var(--fg-muted); max-width: 52ch; margin: 0 auto 2rem; }
.error-page .search-form { max-width: 560px; margin: 0 auto; }
.error-page .chip-list { justify-content: center; }

.comments { padding-top: 1rem; }
.comments__title,
.comment-reply-title { font-size: 1.6rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; border-left: 1px solid var(--line); }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .5rem; }
.comment-meta img { border-radius: 50%; }
.comment-metadata a { color: var(--fg-muted); text-decoration: none; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; }

/* 20. Utilities, motion, print ------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	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: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	padding: .9rem 1.25rem;
	background: var(--gold);
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
}

.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }

.wp-caption-text,
.gallery-caption,
.bypostauthor,
.sticky { font-size: inherit; }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.site-header.is-hidden { transform: none; }
}

@media print {
	.site-header,
	.mobile-nav,
	.site-footer,
	.newsletter,
	.share,
	.article-aside,
	.related,
	.post-nav,
	.article-footer-share { display: none !important; }
	body { background: #fff; color: #000; }
	.article-layout,
	.article-layout.has-toc { display: block; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Refinements after QA ---------------------------------------------------- */
.documentary-body .entry-content .editor-note { color: var(--fg-muted); border-color: rgba(198, 161, 91, .5); }
.field--check label { flex: 1; min-width: 0; }
.field--check .field__error { margin-left: 2rem; }
@media (max-width: 860px) { .report-header__cover { margin-right: 14px; } }
