/**
 * Run Walk London - main stylesheet
 * A fast, modern marathon/running blog. Brand navy #012169 + UK red #C8102E.
 *
 * Contents:
 *  1. Design tokens (custom properties)
 *  2. Reset & base
 *  3. Typography
 *  4. Layout (container, section)
 *  5. Buttons, chips, badges
 *  6. Header & navigation
 *  7. Reading progress
 *  8. Home hero
 *  9. Distances
 * 10. Card grid & post cards
 * 11. Page header & breadcrumbs
 * 12. Single article & prose
 * 13. Author bio, post nav, related
 * 14. Newsletter
 * 15. Footer
 * 16. Comments
 * 17. Search form, 404, no-results, pagination, widgets
 * 18. Utilities, reveal, back-to-top
 * 19. Responsive
 * 20. Reduced motion / print
 * 21-30. Tweaks, category strip, post nav, admin bar, a11y, featured row,
 *        single-post flow, audit fixes, Gutenberg blocks, core post states
 * 31. Content elements (prose): quotes, media, tables, details/summary,
 *     definition lists, inline semantics, footnotes, separators, blocks
 */

/* ============================================================= 1. TOKENS */
:root {
	--navy: #012169;
	--navy-700: #0a2c7d;
	--navy-800: #051f57;
	--navy-900: #04143b;
	--navy-950: #020d29;

	--red: #c8102e;
	--red-600: #ac0d27;
	--red-700: #8f0a20;

	--ink: #0e1526;
	--body: #3a4356;
	--muted: #667085;
	--muted-2: #8b93a3;

	--line: #e6e9f0;
	--line-2: #eef1f6;

	/* Paper, not pure white: tinted toward the navy so the whole page agrees. */
	--bg: #fbfbfd;
	--bg-soft: #f4f6fb;
	--bg-soft-2: #eaeff8;
	--white: #ffffff;

	/*
	 * Two families, two jobs. Display is condensed signage type for anything
	 * that behaves like a race number: headlines, nav, labels, times. Text is
	 * the plain one that carries paragraphs. Arial Narrow is the fallback that
	 * actually resembles the display face while it loads.
	 */
	--font-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
	--font: "Public Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

	/*
	 * A condensed face can carry far more size before it shouts, so the scale
	 * is steeper than a normal-width one would allow: ~1.3 between steps.
	 */
	--fs-hero: clamp(2.75rem, 1.4rem + 5.6vw, 5.75rem);
	--fs-h1: clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem);
	--fs-h2: clamp(1.85rem, 1.35rem + 2vw, 2.85rem);
	--fs-h3: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
	--fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);

	/* Labels, meta and anything that reads as stamped rather than written. */
	--fs-label: 0.9rem;
	--ls-label: 0.1em;

	/*
	 * Rhythm, so spacing means something instead of every element breathing at
	 * the same rate. Steps, not one value repeated.
	 */
	--space-2xs: 0.35rem;
	--space-xs: 0.6rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.25rem;
	--space-xl: 3.5rem;
	--space-2xl: clamp(3.5rem, 6vw, 5.5rem);

	--container: 1200px;
	--container-narrow: 748px;
	--gutter: clamp(1.1rem, 4vw, 2.25rem);
	--header-h: 74px;

	/*
	 * Printed matter has no rounded corners. The soft 8-30px radii were the
	 * last thing making every object on the page read as the same generic card,
	 * so the whole system squares up. 2px is a printer's kiss, not a corner.
	 * The pill survives only for things that are genuinely round (avatars).
	 */
	--r-xs: 2px;
	--r-sm: 2px;
	--r-md: 2px;
	--r-lg: 2px;
	--r-xl: 2px;
	--r-pill: 999px;

	--shadow-sm: 0 1px 2px rgba(2, 12, 40, 0.06), 0 2px 6px rgba(2, 12, 40, 0.07);
	--shadow-md: 0 10px 28px -10px rgba(2, 12, 40, 0.16);
	--shadow-lg: 0 26px 52px -20px rgba(2, 12, 40, 0.34);
	--shadow-navy: 0 26px 55px -22px rgba(1, 33, 105, 0.55);

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--t-fast: 0.16s var(--ease);
	--t: 0.28s var(--ease);
}

/* =========================================================== 2. RESET */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--body);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--navy);
	text-decoration: none;
	transition: color var(--t-fast);
}

a:hover {
	color: var(--red);
}

button {
	font: inherit;
	cursor: pointer;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 2px;
	border-radius: 3px;
}

/* ====================================================== 3. TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 800;
	/*
	 * Condensed type sets tighter than a normal-width face and needs no help
	 * from negative tracking; it already closes its own counters.
	 */
	line-height: 0.98;
	letter-spacing: 0;
}

/* Numerals are data on this site (dates, times, distances), so they line up. */
.num,
time,
.post-meta__read,
.post-meta__date {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

p {
	margin: 0 0 1.15rem;
}

strong,
b {
	font-weight: 700;
	color: var(--ink);
}

/* ========================================================== 4. LAYOUT */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-content {
	display: block;
}

.site-main {
	padding-block: clamp(2rem, 5vw, 4rem);
}

.section {
	padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
}

.section--soft {
	background: var(--bg-soft);
}

.section--navy {
	background: var(--navy);
	color: rgba(255, 255, 255, 0.85);
}

/*
 * A section opens the way a programme opens a section: a label, a name, and a
 * heavy rule across the page. The rule does the work an eyebrow chip was
 * pretending to do.
 */
.section__head {
	max-width: none;
	margin-bottom: var(--space-md);
	padding-bottom: var(--space-xs);
	border-bottom: 2px solid var(--ink);
}

.section--navy .section__head,
.home-hero .section__head {
	border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* The head spans the page for its rule; the prose inside it must not. */
.section__lead {
	max-width: 58ch;
	margin: var(--space-xs) 0 0;
}

.section__eyebrow {
	display: inline-block;
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: var(--space-2xs);
}

.section--navy .section__eyebrow {
	color: #ff6b7f;
}

.section__title {
	font-size: var(--fs-h2);
	margin: 0;
}

.section--navy .section__title {
	color: #fff;
}

.section__lead {
	margin: 0.75rem 0 0;
	font-size: var(--fs-lead);
	color: var(--muted);
}

.section--navy .section__lead {
	color: rgba(255, 255, 255, 0.72);
}

.section__head--between {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

/* ==================================================== 5. BUTTONS/CHIPS */
/*
 * Squared, not pilled. A pill is the default of every blog template shipped
 * since 2020; a race number is a rectangle stamped on a rectangle.
 */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 2px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: var(--navy);
	transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
	white-space: nowrap;
}

.btn:hover {
	color: #fff;
	transform: translateY(-2px);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	background: var(--red);
}

.btn--primary:hover {
	background: var(--red-600);
	box-shadow: 0 12px 24px -10px rgba(200, 16, 46, 0.7);
}

.btn--navy {
	background: var(--navy);
}

.btn--navy:hover {
	background: var(--navy-700);
	box-shadow: 0 12px 24px -10px rgba(1, 33, 105, 0.6);
}

.btn--light {
	background: #fff;
	color: var(--navy);
}

.btn--light:hover {
	background: #fff;
	color: var(--red);
}

.btn--outline {
	background: transparent;
	border-color: currentColor;
	color: var(--navy);
}

.btn--outline:hover {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
}

.btn--ghost-light {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.btn--ghost-light:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.btn--lg {
	padding: 1rem 1.8rem;
	font-size: 1.05rem;
}

/*
 * The category reads as a stamped label, not a pill badge. No container: the
 * red and the condensed caps already say "label", so a chip around it is one
 * decoration too many.
 */
.chip {
	display: inline-flex;
	align-items: center;
	padding: 0;
	background: none;
	color: var(--red);
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	line-height: 1;
}

.chip:hover {
	color: var(--ink);
}

.chip:hover {
	background: var(--red);
	color: #fff;
}

.chip--light {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.chip--light:hover {
	background: #fff;
	color: var(--navy);
}

/* ==================================================== 6. HEADER / NAV */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy);
	transition: box-shadow var(--t), background var(--t);
}

.site-header.is-scrolled {
	box-shadow: 0 8px 30px -12px rgba(2, 8, 30, 0.65);
	background: rgba(2, 16, 54, 0.92);
	backdrop-filter: saturate(140%) blur(10px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--header-h);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	min-width: 0;
}

.site-logo img,
.custom-logo {
	height: 44px;
	width: auto;
	border-radius: 50%;
	display: block;
}

.site-name {
	color: #fff;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.9rem;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
}

.site-name:hover {
	color: #fff;
	opacity: 0.85;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.main-nav__list {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
}

.main-nav__list li {
	position: relative;
}

/* Nav is signage: condensed caps, like the boards on a course. */
.main-nav__list a {
	display: inline-block;
	padding: 0.55rem 0.7rem;
	color: rgba(255, 255, 255, 0.82);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 2px;
	transition: color var(--t-fast), background var(--t-fast);
}

.main-nav__list a:hover,
.main-nav__list .current-menu-item > a,
.main-nav__list .current_page_item > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* Sub-menus (desktop) */
.main-nav__list ul.sub-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	min-width: 210px;
	background: #fff;
	border-radius: var(--r-sm);
	box-shadow: var(--shadow-lg);
	padding: 0.4rem;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
	z-index: 20;
}

.main-nav__list li:hover > ul.sub-menu,
.main-nav__list li:focus-within > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.main-nav__list ul.sub-menu a {
	color: var(--ink);
	display: block;
	padding: 0.6rem 0.75rem;
}

.main-nav__list ul.sub-menu a:hover {
	color: var(--red);
	background: var(--bg-soft);
}

.main-nav__cta {
	padding: 0.6rem 1.2rem;
	font-size: 0.9rem;
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--r-xs);
	color: #fff;
}

.menu-toggle__box {
	position: relative;
	width: 22px;
	height: 16px;
	display: block;
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform var(--t-fast), top var(--t-fast), opacity var(--t-fast);
}

.menu-toggle__bar {
	top: 7px;
}

.menu-toggle__bar::before {
	top: -7px;
}

.menu-toggle__bar::after {
	top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after {
	top: 0;
	transform: rotate(-45deg);
}

/* ============================================== 7. READING PROGRESS */
.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--red), #ff5a72);
	z-index: 200;
	transition: transform 0.1s linear;
	pointer-events: none;
	will-change: transform;
}

/* ==================================================== 8. HOME HERO */
/*
 * A programme cover, not a two-column template. The headline gets the whole
 * measure: a condensed face squeezed into a 40% column rags into one-word
 * lines, which is exactly what it is built to avoid. Type leads, the picture
 * supports underneath.
 */
.home-hero {
	position: relative;
	background: linear-gradient(170deg, var(--navy) 0%, var(--navy-900) 100%);
	color: #fff;
	overflow: hidden;
}

.home-hero__inner {
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2.5rem, 5vw, 4rem);
}

/* The rail reads across the top like the strip on a race number. */
.home-hero__rail {
	display: flex;
	align-items: baseline;
	gap: var(--space-sm);
	padding-bottom: var(--space-xs);
	margin-bottom: var(--space-md);
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: #ff8093;
	margin-bottom: 0;
}

/* Date and reading time sit at the far end, tabular, like a results line. */
.home-hero__stats {
	display: inline-flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-left: auto;
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.7);
}

.home-hero__title {
	color: #fff;
	/*
	 * Sized for its own column, not the page. At the full hero size a headline
	 * in a column this wide rags into one-word lines, which is the thing a
	 * condensed face exists to prevent.
	 */
	font-size: clamp(2.25rem, 3.8vw, 4.25rem);
	line-height: 0.92;
	max-width: none;
	margin: 0 0 var(--space-md);
	overflow-wrap: break-word;
}

/*
 * Excerpt and buttons on the left, picture on the right, both hanging off the
 * headline above them rather than sitting either side of it.
 */
/*
 * Two columns that answer each other: headline and lede at the left, picture
 * with the actions beneath it at the right. The buttons belong to the picture's
 * column, which is what stops it dangling: previously the image had nothing
 * under it, so its foot aligned to nothing and left an L of empty navy.
 */
.home-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: start;
}

.home-hero__side {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

/* The pair sits across the width of the picture above it, as one block. */
.home-hero__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xs);
}

.home-hero__title a {
	color: #fff;
}

.home-hero__title a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-underline-offset: 6px;
}

.home-hero__excerpt {
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
	max-width: 42ch;
}

/* The picture: a plain box at the head of its own column, with the actions under it. */
.home-hero__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--navy-950);
	aspect-ratio: 16 / 10;
}

.home-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-hero__media .thumb__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	/*
	 * The band owns the ratio now, so the placeholder just fills it.
	 */
	height: 100%;
	color: rgba(255, 255, 255, 0.4);
}

.home-hero__media .thumb__placeholder svg {
	width: 30%;
	height: auto;
}

.home-hero__meta {
	margin-top: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9rem;
}

.home-hero__meta .post-meta__avatar img {
	border-radius: 50%;
}

/* 9. (Distance cards removed - the homepage uses the category strip, section 22.) */

/* ============================================= 10. CARD GRID / CARDS */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.25rem, 3vw, 2rem);
}

.card-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

/* Auto-fit grid that stays centered with few cards (avoids a stranded card). */
.card-grid--auto {
	grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
	justify-content: center;
}

/*
 * Not a card. A programme entry: a rule, an image, and type. The bordered,
 * rounded, shadowed, lifting-on-hover box is the single most anonymous object
 * on the 2020s web, and it was doing no work here that a rule cannot do.
 */
.post-card {
	display: flex;
	flex-direction: column;
	padding-top: var(--space-sm);
	background: none;
	border: 0;
	/* Subordinate to the section rule above it, or the two fight. */
	border-top: 1px solid var(--line);
	border-radius: 0;
}

.post-card .thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--bg-soft-2);
}

.post-card .thumb__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.post-card:hover .thumb__img {
	transform: scale(1.05);
}

.thumb__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: rgba(255, 255, 255, 0.45);
	background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%);
}

.thumb__placeholder svg {
	width: 25%;
	min-width: 42px;
	max-width: 72px;
	height: auto;
}

/*
 * No side padding: with the box gone there is no wall to hold away from, and
 * the type should hang off the same rule the image does.
 */
.post-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	padding: var(--space-sm) 0 0;
	flex: 1;
}

.post-card__title {
	font-size: var(--fs-h3);
	line-height: 0.98;
	margin: 0;
}

.post-card__title a {
	color: var(--ink);
}

.post-card__title a:hover {
	color: var(--red);
}

.post-card__excerpt {
	color: var(--muted);
	font-size: 0.95rem;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Chip is a flex-column child, so keep it to its content width (not 100%). */
.post-card__body > .chip {
	align-self: flex-start;
}

.post-card__foot {
	margin-top: auto;
	padding-top: var(--space-2xs);
}

/*
 * The index: where the card grid dies. Same markup as a card, laid out as a
 * results-sheet row, so archives and the homepage tail read as a list of
 * entries rather than a wall of identical boxes.
 */
.card-grid--index {
	display: block;
	border-top: 2px solid var(--ink);
}

.card-grid--index .post-card {
	display: grid;
	/* Big enough to read as a picture rather than a stamp. */
	grid-template-columns: 240px minmax(0, 1fr);
	gap: var(--space-lg);
	align-items: start;
	padding-block: var(--space-md);
	border-top: 0;
	border-bottom: 1px solid var(--line);
}

.card-grid--index .post-card .thumb {
	aspect-ratio: 4 / 3;
}

.card-grid--index .post-card__body {
	padding: 0;
	gap: var(--space-2xs);
}

.card-grid--index .post-card__title {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.card-grid--index .post-card__excerpt {
	max-width: 62ch;
}

.card-grid--index .post-card__foot {
	margin-top: var(--space-2xs);
}

/* The row is the target, so the whole row answers the pointer. */
.card-grid--index .post-card:hover .post-card__title a {
	color: var(--red);
}

@media (max-width: 820px) {
	.card-grid--index .post-card {
		grid-template-columns: 160px minmax(0, 1fr);
		gap: var(--space-md);
	}
}

@media (max-width: 560px) {
	.card-grid--index .post-card {
		grid-template-columns: 108px minmax(0, 1fr);
		gap: var(--space-sm);
	}
}

/* Post meta row */
.post-meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.post-meta__avatar img {
	border-radius: 50%;
	display: block;
	width: 36px;
	height: 36px;
}

.post-meta__lines {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.post-meta__author {
	color: var(--ink);
	font-weight: 600;
}

/*
 * The date and reading time are the only real numbers on a listing, so they
 * are set like a results sheet: condensed, tracked, tabular, uppercase.
 */
.post-meta__sub {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--muted);
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
}

.post-meta__author {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ink);
}

/* ======================================= 11. PAGE HEADER / BREADCRUMB */
.page-header {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.page-title {
	font-size: var(--fs-h1);
	margin: 0.25rem 0 0;
}

.page-title span {
	color: var(--red);
}

.archive-description {
	margin-top: 0.75rem;
	color: var(--muted);
	max-width: 60ch;
}

.breadcrumbs {
	font-size: 0.85rem;
	margin-bottom: 1.25rem;
}

.breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	list-style: none;
	color: var(--muted);
}

.breadcrumb-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.breadcrumb-item + .breadcrumb-item::before {
	content: "/";
	color: var(--muted-2);
}

.breadcrumb-item a {
	color: var(--muted);
	font-weight: 500;
}

.breadcrumb-item a:hover {
	color: var(--red);
}

.breadcrumb-item [aria-current="page"] {
	color: var(--ink);
	font-weight: 600;
}

/* ================================================ 12. SINGLE ARTICLE */
.single .site-main,
.page .site-main {
	padding-top: clamp(1.5rem, 4vw, 2.75rem);
}

.entry {
	max-width: var(--container);
	margin-inline: auto;
}

/*
 * Left-aligned, not centered. A centered headline over centered meta over a
 * centered image is the blog default; ranging everything left from the same
 * edge as the prose gives the page a spine to read down.
 */
.entry-header {
	max-width: var(--container-narrow);
	margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
	padding-bottom: var(--space-sm);
	border-bottom: 2px solid var(--ink);
	text-align: left;
}

.entry-header .chip {
	margin-bottom: var(--space-2xs);
}

.entry-title {
	font-size: var(--fs-h1);
	line-height: 0.96;
	margin: 0 0 var(--space-sm);
}

/* The meta rail sits on the rule, ranged left with the headline. */
.entry-header .post-meta {
	justify-content: flex-start;
}

.entry-subtitle {
	font-size: var(--fs-lead);
	color: var(--muted);
	margin: 0 0 1.5rem;
}

.entry-figure {
	margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	max-width: var(--container);
	margin-inline: auto;
}

.entry-figure img {
	width: 100%;
	height: auto;
}

.entry-figure figcaption {
	font-size: 0.85rem;
	color: var(--muted);
	text-align: center;
	padding: 0.65rem 1rem;
	background: var(--bg-soft);
}

/* Prose */
.entry-content {
	max-width: var(--container-narrow);
	margin-inline: auto;
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--body);
}

.entry-content > * + * {
	margin-top: 1.3rem;
}

.entry-content h2 {
	font-size: var(--fs-h2);
	margin-top: 2.4rem;
	padding-top: 0.4rem;
}

.entry-content h3 {
	font-size: var(--fs-h3);
	margin-top: 1.9rem;
}

.entry-content h2 + p,
.entry-content h3 + p {
	margin-top: 0.7rem;
}

.entry-content a {
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: rgba(1, 33, 105, 0.3);
	text-underline-offset: 3px;
	transition: color var(--t-fast), text-decoration-color var(--t-fast);
}

.entry-content a:hover {
	color: var(--red);
	text-decoration-color: var(--red);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4rem;
}

.entry-content li {
	margin-bottom: 0.55rem;
}

.entry-content ul {
	list-style: none;
	padding-left: 0.25rem;
}

.entry-content ul > li {
	position: relative;
	padding-left: 1.6rem;
}

.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--red);
}

.entry-content ol {
	list-style: none;
	counter-reset: li;
	padding-left: 0.25rem;
}

.entry-content ol > li {
	position: relative;
	padding-left: 2.2rem;
	counter-increment: li;
}

.entry-content ol > li::before {
	content: counter(li);
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.55rem;
	height: 1.55rem;
	display: grid;
	place-items: center;
	background: var(--navy);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	border-radius: 50%;
}

/* Quotes, media and tables now live in section 31 (content elements). */

.entry-content hr {
	border: 0;
	height: 1px;
	background: var(--line);
	margin: 2.5rem 0;
}

.entry-content code {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.9em;
	background: var(--bg-soft-2);
	padding: 0.15em 0.4em;
	border-radius: var(--r-xs);
	color: var(--navy-800);
}

.entry-content pre {
	background: var(--navy-950);
	color: #e8eefc;
	padding: 1.2rem 1.4rem;
	border-radius: var(--r-md);
	overflow-x: auto;
	font-size: 0.9rem;
	line-height: 1.6;
}

.entry-content pre code {
	background: none;
	color: inherit;
	padding: 0;
}

.alignleft {
	float: left;
	margin: 0.4rem 1.6rem 1rem 0;
	max-width: 50%;
}

.alignright {
	float: right;
	margin: 0.4rem 0 1rem 1.6rem;
	max-width: 50%;
}

.aligncenter {
	margin-inline: auto;
}

.page-links {
	margin-top: 2rem;
	font-weight: 600;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
}

.page-links a,
.page-links > span {
	display: inline-grid;
	place-items: center;
	min-width: 2.1rem;
	height: 2.1rem;
	padding: 0 0.5rem;
	border-radius: var(--r-xs);
	border: 1px solid var(--line);
}

.page-links a:hover {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
}

.entry-footer {
	max-width: var(--container-narrow);
	margin: 2rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	font-size: 0.9rem;
	color: var(--muted);
}

.entry-footer a {
	color: var(--navy);
	font-weight: 600;
}

.entry-footer a:hover {
	color: var(--red);
}

/* ========================================== 13. POST NAV / RELATED */
/*
 * The prev/next links are rendered as post cards inside .post-nav-section (see
 * single.php); the old .post-navigation / .nav-links markup they replaced is
 * gone, so its styles went with it.
 */
.related {
	margin-top: 0;
}

/* ==================================================== 14. NEWSLETTER */
.newsletter {
	background: linear-gradient(135deg, var(--red) 0%, #e11d36 55%, var(--red-700) 100%);
	color: #fff;
	scroll-margin-top: 90px;
}

.newsletter__inner {
	padding-block: clamp(2.5rem, 5vw, 3.75rem);
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.newsletter__title {
	color: #fff;
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem);
	margin: 0 0 0.5rem;
}

.newsletter__sub {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
}

.newsletter__form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.6rem;
}

.newsletter__input {
	width: 100%;
	padding: 0.95rem 1.1rem;
	border: 2px solid transparent;
	border-radius: 2px;
	background: #fff;
	color: var(--ink);
	font-size: 1rem;
}

.newsletter__input::placeholder {
	color: var(--muted);
}

.newsletter__input:focus-visible {
	outline: 3px solid var(--navy-900);
	outline-offset: 2px;
}

.newsletter__msg {
	grid-column: 1 / -1;
	margin: 0.25rem 0 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	min-height: 1.2em;
}

/* ======================================================= 15. FOOTER */
.site-footer {
	background: var(--navy-950);
	color: rgba(255, 255, 255, 0.62);
	/* The masthead below is deliberately wider than the page. */
	overflow: hidden;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: clamp(1.75rem, 4vw, 3rem);
	padding-block: clamp(2.5rem, 4vw, 3.5rem) clamp(1.75rem, 3vw, 2.5rem);
}

/*
 * Masthead: the site name at a size that stops being a label and becomes the
 * texture of the page, the way the back of a race programme carries the event
 * name. It sits behind everything at a whisper of contrast, and clips at the
 * page edge on purpose.
 */
.site-footer__mark {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(3.5rem, 14vw, 11rem);
	font-weight: 800;
	line-height: 0.78;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.07);
	white-space: nowrap;
	user-select: none;
	pointer-events: none;
	/* Sit the letters on the legal rule so it reads as printed to the edge. */
	margin-bottom: -0.1em;
	padding-top: var(--space-sm);
}

.footer-brand__name {
	color: #fff;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.9rem;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	line-height: 1;
}

.footer-brand__name:hover {
	color: #fff;
	opacity: 0.85;
}

.footer-brand__desc {
	margin: 0.85rem 0 1.25rem;
	max-width: 38ch;
	color: rgba(255, 255, 255, 0.55);
}

.social {
	display: flex;
	gap: 0.6rem;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background var(--t-fast), transform var(--t-fast);
}

.social a:hover {
	background: var(--red);
	color: #fff;
	transform: translateY(-2px);
}

/* Column heads are stamped and ruled, like the sections of a programme. */
.footer-col__title {
	color: #fff;
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	margin: 0 0 var(--space-sm);
	padding-bottom: var(--space-2xs);
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.footer-menu a {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.95rem;
}

.footer-menu a:hover {
	color: #fff;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.4rem;
}

.site-info {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
}

.to-top {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 0;
	color: #fff;
	transition: background var(--t-fast), transform var(--t-fast);
}

.to-top:hover {
	background: var(--red);
	transform: translateY(-3px);
}

/* ====================================================== 16. COMMENTS */
.comments-area {
	max-width: var(--container-narrow);
	margin: clamp(2.5rem, 5vw, 4rem) auto 0;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
	font-size: 1.4rem;
}

.comment-list {
	list-style: none;
	margin: 1.5rem 0;
}

.comment-list ol.children {
	list-style: none;
	margin-left: clamp(1rem, 4vw, 2.5rem);
}

.comment-body {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--line);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
	color: var(--ink);
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--muted);
	margin: 0.25rem 0 0.5rem;
}

.comment-metadata a {
	color: var(--muted);
}

.comment-respond {
	margin-top: 2rem;
}

.comment-form {
	display: grid;
	gap: 1rem;
}

.comment-form p {
	margin: 0;
}

.comment-form label:not([for="wp-comment-cookies-consent"]) {
	display: block;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

/* Core emits the consent checkbox inline with its label, so it must not be
   forced to display:block or the checkbox is orphaned on its own line. */
.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.comment-form-cookies-consent input {
	flex: none;
	margin-top: 0.3rem;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	font: inherit;
	background: var(--bg-soft);
	color: var(--ink);
}

.comment-form input:focus-visible,
.comment-form textarea:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 1px;
	background: #fff;
}

.comment-form .form-submit {
	margin: 0;
}

.comment-form .submit {
	display: inline-flex;
	padding: 0.8rem 1.6rem;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--red);
	color: #fff;
	font-weight: 700;
	transition: background var(--t-fast), transform var(--t-fast);
}

.comment-form .submit:hover {
	background: var(--red-600);
	transform: translateY(-2px);
}

/* ============================ 17. SEARCH / 404 / NO-RESULTS / PAGINATION */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 480px;
}

.search-field {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	font: inherit;
	background: var(--bg-soft);
}

.search-field:focus-visible {
	outline: 3px solid var(--red);
	background: #fff;
}

.search-submit {
	padding: 0.75rem 1.4rem;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--navy);
	color: #fff;
	font-weight: 700;
	transition: background var(--t-fast);
}

.search-submit:hover {
	background: var(--red);
}

.no-results,
.error-404 {
	max-width: 620px;
	margin-inline: auto;
	text-align: center;
	padding-block: clamp(2rem, 5vw, 4rem);
}

.error-404 .search-form,
.no-results .search-form {
	margin-inline: auto;
	margin-top: 1.5rem;
}

.error-404__cta {
	margin-top: 1.5rem;
}

/* Use the type scale and share the left edge of the list it labels, rather than
   sitting centred above a left-aligned list. */
.error-404__heading {
	max-width: 420px;
	margin: 2.5rem auto 0.75rem;
	font-size: var(--fs-h3);
	text-align: left;
}

.error-404 ul {
	list-style: none;
	text-align: left;
	max-width: 420px;
	margin: 1rem auto 0;
	display: grid;
	gap: 0.5rem;
}

.error-404 ul a {
	color: var(--navy);
	font-weight: 600;
}

.pagination {
	max-width: var(--container-narrow);
	margin: clamp(2.5rem, 4vw, 3.5rem) auto 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	align-items: center;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding: 0 0.6rem;
	border-radius: var(--r-sm);
	border: 1px solid var(--line);
	color: var(--ink);
	font-weight: 600;
	transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.pagination a.page-numbers:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.pagination .page-numbers.current {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

/* ==================================================== 18. UTILITIES */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-50%, -120%);
	z-index: 300;
	background: var(--navy);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 var(--r-sm) var(--r-sm);
	font-weight: 600;
	transition: transform var(--t-fast);
}

.skip-link:focus {
	transform: translate(-50%, 0);
	color: #fff;
}

.reveal {
	will-change: opacity, transform;
}

.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

.js .reveal-stagger > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js .reveal-stagger.is-visible > * {
	opacity: 1;
	transform: none;
}

.js .reveal-stagger.is-visible > *:nth-child(2) {
	transition-delay: 0.08s;
}

.js .reveal-stagger.is-visible > *:nth-child(3) {
	transition-delay: 0.16s;
}

.js .reveal-stagger.is-visible > *:nth-child(4) {
	transition-delay: 0.24s;
}

/* Back-to-top floating (mobile/scroll) handled in footer bottom-bar */

/* =================================================== 19. RESPONSIVE */
@media (max-width: 1024px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	:root {
		--header-h: 64px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--navy-900);
		padding: 0.5rem var(--gutter) 1.5rem;
		box-shadow: var(--shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		pointer-events: none;
		transition: opacity var(--t), transform var(--t), visibility var(--t);
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
	}

	.main-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
	}

	.main-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.main-nav__list > li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.main-nav__list a {
		display: block;
		padding: 0.9rem 0.5rem;
		font-size: 1.05rem;
	}

	.main-nav__list ul.sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: transparent;
		padding: 0 0 0.5rem 0.75rem;
	}

	.main-nav__list ul.sub-menu a {
		color: rgba(255, 255, 255, 0.7);
		padding: 0.55rem 0.5rem;
	}

	.main-nav__list ul.sub-menu a:hover {
		background: transparent;
		color: #fff;
	}

	.main-nav__cta {
		margin-top: 1rem;
		width: 100%;
	}

	/*
	 * The two columns stack. Side by side at this width the headline gets a
	 * measure of about four characters and the second button leaves the screen.
	 */
	.home-hero__grid {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}

	/*
	 * Dissolve the picture's column so its two halves can take their own places
	 * in the stack: picture, then the headline, then the actions. Kept welded,
	 * the buttons land above the headline and ask you to read an article you
	 * have not been told the name of yet.
	 */
	.home-hero__side {
		display: contents;
	}

	.home-hero__media {
		order: -1;
	}

	.home-hero__actions {
		order: 1;
	}

	.home-hero__excerpt {
		max-width: none;
	}

	.newsletter__inner {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}

}

@media (max-width: 620px) {
	.card-grid {
		grid-template-columns: 1fr;
	}

	.section__head--between {
		flex-direction: column;
		align-items: flex-start;
	}

	.newsletter__form {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.site-footer__bottom-inner {
		flex-direction: column-reverse;
		gap: 1rem;
		text-align: center;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 1rem auto;
		max-width: 100%;
	}
}

/* =============================================== 20. MOTION / PRINT */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.js .reveal,
	.js .reveal-stagger > * {
		opacity: 1;
		transform: none;
	}

	.post-card:hover .thumb__img {
		transform: none;
	}
}

@media print {
	.site-header,
	.newsletter,
	.site-footer,
	.reading-progress,
	.post-nav-section,
	.related {
		display: none !important;
	}

	.entry-content {
		font-size: 12pt;
	}
}

/* =============================================== 21. TWEAKS / OVERRIDES */
.site-main--flush {
	padding-block: 0;
}

.section__head--center {
	max-width: none;
	text-align: center;
	margin-inline: auto;
}

/* Homepage empty-state hero (no published posts). */
.home-hero__inner--empty {
	grid-template-columns: 1fr;
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
	place-items: center;
}

body.menu-open {
	overflow: hidden;
}

[id] {
	scroll-margin-top: calc(var(--header-h) + 20px);
}

.home-hero__meta .post-meta,
.home-hero__meta .post-meta__sub {
	color: rgba(255, 255, 255, 0.72);
}

.home-hero__meta .post-meta__author {
	color: #fff;
}

.single .breadcrumbs {
	max-width: var(--container-narrow);
	margin-inline: auto;
	margin-bottom: 1.5rem;
}

/* Featured image on static Pages (rendered via seo_blog_post_thumbnail). */
.page .post-thumbnail {
	max-width: var(--container-narrow);
	margin: 0 auto 1.75rem;
	border-radius: var(--r-lg);
	overflow: hidden;
}

.page .post-thumbnail img {
	width: 100%;
}

.js .reveal-stagger.is-visible > *:nth-child(5) {
	transition-delay: 0.32s;
}

.js .reveal-stagger.is-visible > *:nth-child(6) {
	transition-delay: 0.4s;
}

/* =============================================== 22. CATEGORY STRIP */
.cat-strip {
	display: flex;
	gap: 0;
	border-radius: var(--r-lg);
	overflow: hidden;
}

.cat-tile {
	--sk: 40px;
	position: relative;
	flex: 1 1 0;
	min-height: clamp(230px, 26vw, 330px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: #fff;
	isolation: isolate;
	clip-path: polygon(var(--sk) 0, 100% 0, calc(100% - var(--sk)) 100%, 0 100%);
}

.cat-tile:first-child {
	clip-path: polygon(0 0, 100% 0, calc(100% - var(--sk)) 100%, 0 100%);
}

.cat-tile:last-child {
	clip-path: polygon(var(--sk) 0, 100% 0, 100% 100%, 0 100%);
}

/* Overlap by the skew so the slanted edges meet seamlessly (no gaps). */
.cat-tile + .cat-tile {
	margin-left: calc(var(--sk) * -1);
}

.cat-tile__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	background-color: var(--navy-800);
	transform: scale(1.03);
	transition: transform 0.6s var(--ease);
}

.cat-tile:hover .cat-tile__img,
.cat-tile:focus-visible .cat-tile__img {
	transform: scale(1.12);
}

.cat-tile__img--empty {
	display: grid;
	place-items: center;
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
	color: rgba(255, 255, 255, 0.28);
}

.cat-tile__img--empty svg {
	width: 38%;
	height: auto;
}

.cat-tile__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(2, 10, 35, 0.92) 0%, rgba(2, 10, 35, 0.62) 55%, rgba(2, 10, 35, 0.42) 100%);
}

.cat-tile__label {
	width: 100%;
	padding: 1.3rem 1.4rem 1.45rem;
	padding-left: calc(var(--sk) + 0.7rem);
	padding-right: calc(var(--sk) + 0.7rem);
}

.cat-tile__name {
	display: block;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.cat-tile__count {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 820px) {
	.cat-strip {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.cat-tile,
	.cat-tile:first-child,
	.cat-tile:last-child {
		clip-path: none;
		border-radius: var(--r-md);
		min-height: 150px;
	}

	/* Must match the base sibling selector's specificity to cancel the
	   skew overlap, otherwise tiles shift left and clip their labels. */
	.cat-tile + .cat-tile {
		margin-left: 0;
	}

	.cat-tile__label {
		padding: 1rem 1.1rem;
	}
}

@media (max-width: 460px) {
	.cat-strip {
		grid-template-columns: 1fr;
	}
}

/* ======================================= 23. PREV / NEXT NAV CARDS */
.nav-card {
	position: relative;
}

.nav-card__rel {
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
	z-index: 3;
	background: var(--red);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.32rem 0.7rem;
	border-radius: var(--r-pill);
	box-shadow: 0 6px 14px -6px rgba(200, 16, 46, 0.8);
}

/* ============================================ 24. WP ADMIN BAR FIX */
.admin-bar .site-header {
	top: 32px;
}

.admin-bar .reading-progress {
	top: 32px;
}

.admin-bar .skip-link:focus {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header,
	.admin-bar .reading-progress,
	.admin-bar .skip-link:focus {
		top: 46px;
	}
}

/* ================================= 25. A11Y + DEGENERATE-STATE POLISH */
/* Single prev/next card: centered, not a lonely half-row. */
.card-grid--1 {
	grid-template-columns: minmax(0, 520px);
	justify-content: center;
}

/* A single category tile should read as a normal card, not a lopsided skew. */
.cat-tile:only-child {
	clip-path: none;
	border-radius: var(--r-lg);
}

/* Skip-link focuses <main> programmatically; no visible ring on the container. */
#primary:focus {
	outline: none;
}

/* Keep the focus ring visible on dark navy / red surfaces (WCAG 1.4.11). */
.site-header a:focus-visible,
.main-nav__cta:focus-visible,
.menu-toggle:focus-visible,
.search-toggle:focus-visible,
.home-hero a:focus-visible,
.cat-tile:focus-visible,
.newsletter .btn:focus-visible,
.site-footer a:focus-visible,
.to-top:focus-visible {
	outline-color: #fff;
}

/* ============================================= 26. FEATURED ROW */
.feature-row {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
	align-items: start;
}

.feature-row__lg {
	display: flex;
}

.feature-row__lg > .post-card {
	width: 100%;
}

.feature-row__rail {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
	min-width: 0;
}

.feature-sm {
	display: flex;
	flex-direction: column;
	min-height: 150px;
	padding-top: var(--space-sm);
	background: none;
	border: 0;
	border-top: 1px solid var(--line);
	border-radius: 0;
}

.feature-sm:hover .feature-sm__title a {
	color: var(--red);
}

.feature-sm__media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bg-soft-2);
}

.feature-sm__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.feature-sm:hover .feature-sm__media img {
	transform: scale(1.05);
}

.feature-sm__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	padding: var(--space-sm) 0 0;
	min-width: 0;
	flex: 0 0 auto;
}

.feature-sm__title {
	font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.55rem);
	line-height: 0.98;
	margin: 0;
}

.feature-sm__title a {
	color: var(--ink);
}

.feature-sm__title a:hover {
	color: var(--red);
}

.feature-sm__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}

.feature-sm--promo {
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 0.6rem;
	padding: 1.5rem;
	background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%);
	border-color: transparent;
	color: #fff;
	text-decoration: none;
}

.feature-sm--promo:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-navy);
}

.feature-sm__promo-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--red);
	color: #fff;
}

.feature-sm--promo .feature-sm__body {
	padding: 0;
	align-items: center;
}

.feature-sm--promo .feature-sm__title {
	color: #fff;
}

.feature-sm--promo .feature-sm__meta {
	color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 900px) {
	.feature-row {
		grid-template-columns: 1fr;
	}
}

/* ============================== 27. SINGLE-POST FLOW ALIGNMENT */
/* Reading column is narrow-centered; the wide "keep reading" sections share
   one centered axis with a centered heading, so the left edge stays clean. */
.single .post-nav-section,
.single .related {
	max-width: 1080px;
	margin-inline: auto;
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.single .post-nav-section .section__head,
.single .related .section__head {
	max-width: none;
	text-align: center;
}

/* ============================================= 28. AUDIT FIXES */
/* Hide WordPress "Suggested text:" editor prompts on the Privacy page. */
.privacy-policy-tutorial {
	display: none;
}

/* Static pages: align header + breadcrumb with the centered reading column. */
.page .entry-header {
	text-align: left;
}

.page .breadcrumbs {
	max-width: var(--container-narrow);
	margin-inline: auto;
	margin-bottom: 1.5rem;
}

/* Author archive profile card. */
.author-card {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 1.75rem);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
	border-radius: var(--r-lg);
	color: rgba(255, 255, 255, 0.82);
	box-shadow: var(--shadow-navy);
}

.author-card__avatar img {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.15);
}

.author-card .section__eyebrow {
	color: #ff8093;
	margin-bottom: 0.35rem;
}

.author-card__name {
	color: #fff;
	font-size: var(--fs-h1);
	margin: 0 0 0.5rem;
}

.author-card__desc {
	margin: 0 0 0.5rem;
	color: rgba(255, 255, 255, 0.75);
	max-width: 62ch;
}

.author-card__meta {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 560px) {
	.author-card {
		flex-direction: column;
		text-align: center;
	}

	.author-card__desc {
		max-width: none;
	}
}

/* Header search toggle + dropdown panel. */
.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: var(--r-xs);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background var(--t-fast);
}

.search-toggle:hover {
	background: rgba(255, 255, 255, 0.18);
}

.header-search {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--navy-900);
	box-shadow: var(--shadow-lg);
	padding: 1rem 0;
	z-index: 90;
}

.header-search[hidden] {
	display: none;
}

.header-search .search-form {
	max-width: 620px;
	margin-inline: auto;
}

/* ================================== 29. GUTENBERG BLOCK SUPPORT */
/* Wide / full blocks break out of the narrow reading column. */
.entry-content > .alignwide {
	width: min(1080px, calc(100vw - 2 * var(--gutter)));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content > .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content > .alignfull img {
	width: 100%;
	border-radius: 0;
}

/* Images and tables are styled in section 31 (content elements). */

/* Editor buttons match the theme's buttons. */
.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.4rem;
	border-radius: var(--r-pill);
	background: var(--red);
	color: #fff;
	font-weight: 700;
	font-size: 0.975rem;
	line-height: 1;
	text-decoration: none;
	transition: background var(--t-fast), transform var(--t-fast);
}

.entry-content .wp-block-button__link:hover {
	background: var(--red-600);
	color: #fff;
	transform: translateY(-2px);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--navy);
	border: 2px solid currentColor;
}

.entry-content .wp-block-separator {
	border: 0;
	height: 1px;
	background: var(--line);
	margin-block: 2.5rem;
}

.entry-content .wp-block-embed,
.entry-content .wp-block-gallery {
	margin-block: 1.8rem;
}

/* =================================== 30. CORE POST STATES */
/* Sticky posts need a visible marker, otherwise the feature looks broken. */
.post-card.sticky {
	border-color: var(--red);
	box-shadow: 0 0 0 1px var(--red);
}

/* Password-protected posts: core outputs a bare, unstyled form. */
.post-password-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
	max-width: var(--container-narrow);
	margin-inline: auto;
}

.post-password-form label {
	display: flex;
	flex: 1 1 16rem;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink);
}

.post-password-form input[type="password"] {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--bg-soft);
	font: inherit;
}

.post-password-form input[type="submit"] {
	padding: 0.8rem 1.6rem;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--red);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* Comments left by the post author (expected by the WP theme handbook). */
.comment-list .bypostauthor > .comment-body {
	background: var(--bg-soft);
	border-radius: var(--r-sm);
	padding-inline: 1rem;
}

/* ============================== 31. CONTENT ELEMENTS (PROSE) */
/*
 * Everything an article body can contain. All of it is scoped to
 * .entry-content so none of it leaks into the site chrome. Each thing is
 * matched in both shapes it can arrive in: the editor emits Gutenberg block
 * markup (.wp-block-*), the content pipeline and hand-written HTML emit the
 * bare element.
 */

/* --- Quotes ---------------------------------------------------------- */
/*
 * A quote glyph rather than the accent bar every blog puts down the left of a
 * blockquote: the bar is indistinguishable from a card side-tab.
 */
.entry-content blockquote {
	position: relative;
	margin-block: 2.25rem;
	padding-left: 3.25rem;
	font-size: 1.3rem;
	line-height: 1.5;
	font-weight: 500;
	color: var(--ink);
}

.entry-content blockquote::before {
	content: "\201C";
	position: absolute;
	left: 0;
	top: 0.28em;
	font-size: 4.25rem;
	line-height: 0.8;
	font-weight: 800;
	color: var(--red);
	pointer-events: none;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 0.9rem;
	font-size: 0.9rem;
	font-style: normal;
	font-weight: 600;
	color: var(--muted);
}

/* Core ships these two quote styles; both drop the glyph. */
.entry-content blockquote.is-style-plain {
	padding-left: 0;
	font-size: 1.15rem;
	font-weight: 400;
}

/*
 * Core's large style sets "padding: 0 1em" at (0,2,0), which beats the base
 * padding-left above (0,1,1) and slides the text under the quote glyph. It also
 * sizes the paragraph at 1.5em, which would compound against a font-size set
 * here, so the size is applied to the paragraph instead.
 */
.entry-content blockquote.is-style-large {
	padding: 0 0 0 3.25rem;
}

.entry-content blockquote.is-style-large p {
	font-size: 1.5rem;
}

.entry-content blockquote.is-style-plain::before {
	content: none;
}

.entry-content .wp-block-pullquote {
	margin-block: 2.75rem;
	padding: 2rem 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	text-align: center;
}

.entry-content .wp-block-pullquote blockquote {
	margin: 0;
	padding-left: 0;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
	line-height: 1.3;
	font-weight: 700;
	color: var(--navy);
}

.entry-content .wp-block-pullquote blockquote::before {
	content: none;
}

/* --- Images and media ------------------------------------------------ */
.entry-content figure {
	margin-block: 2rem;
}

.entry-content figure img,
.entry-content > img,
.entry-content p > img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
	border-radius: var(--r-md);
	/*
	 * Pipeline images are remote and carry no width/height, so they have no
	 * intrinsic box: tint the space they will occupy instead of flashing white,
	 * and hairline them so a photo with light edges still reads as a framed
	 * object on a white page.
	 */
	background: var(--bg-soft);
	box-shadow: 0 0 0 1px rgba(2, 12, 40, 0.07);
}

.entry-content figcaption,
.entry-content .wp-element-caption,
.entry-content .wp-caption-text {
	margin-top: 0.7rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--muted);
	text-align: center;
}

/* Full-bleed media is edge to edge, so a radius and frame would fight it. */
.entry-content .alignfull img {
	border-radius: 0;
	box-shadow: none;
	width: 100%;
}

/*
 * Core's rounded style is a 9999px circle crop, which turns every landscape
 * image into an ellipse. The content here is all landscape, so this reads as a
 * generous corner instead: the intent (softer than default) survives, the
 * ellipse does not. Hard-coded because the radius tokens are all square now,
 * and a "rounded" style that is not round is a lie.
 */
.entry-content .wp-block-image.is-style-rounded img {
	border-radius: 26px;
}

/* A linked image should not inherit the prose link underline. */
.entry-content a:has(> img) {
	display: inline-block;
	text-decoration: none;
}

.entry-content a > img {
	transition: opacity var(--t-fast);
}

.entry-content a:hover > img {
	opacity: 0.86;
}

.entry-content .wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75rem;
}

.entry-content .wp-block-gallery.has-nested-images figure {
	margin: 0;
}

.entry-content .wp-block-gallery.has-nested-images img {
	width: 100%;
}

.entry-content .wp-block-media-text {
	margin-block: 2rem;
}

.entry-content .wp-block-media-text__media img {
	width: 100%;
}

.entry-content .wp-block-cover {
	margin-block: 2rem;
	border-radius: var(--r-md);
	overflow: hidden;
}

.entry-content .wp-block-embed {
	margin-block: 2rem;
}

.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
}

.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.entry-content iframe,
.entry-content video {
	max-width: 100%;
	border: 0;
	border-radius: var(--r-md);
}

.entry-content audio {
	width: 100%;
}

/* A floated image must never run under the next section heading. */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	clear: both;
}

.entry-content::after {
	content: "";
	display: block;
	clear: both;
}

/* --- Tables ---------------------------------------------------------- */
/*
 * The pipeline emits the header row as <th> inside <tbody> with no <thead> at
 * all, so a thead-only header rule silently matches nothing (this is why the
 * live tables rendered flat). Both shapes are handled. Zebra and hover are
 * scoped to <td> so they can never repaint a header cell in either shape.
 */
.entry-content .wp-block-table {
	margin-block: 2rem;
	max-width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--white);
	/*
	 * Clips the header's corners against the radius, and lets a wide table
	 * scroll on its own instead of widening the page. Overflow on one axis
	 * computes the other to auto, so this clips both.
	 */
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

.entry-content table {
	width: 100%;
	margin: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	/* Separate keeps the outer radius; collapse would square the corners off. */
	border-collapse: separate;
	border-spacing: 0;
	background: var(--white);
	font-size: 0.95rem;
	line-height: 1.45;
}

/* The figure owns the frame when there is one, so the table must not add a second. */
.entry-content .wp-block-table > table {
	border: 0;
	border-radius: 0;
	/* Narrower than this the columns crush, so the figure scrolls instead. */
	min-width: 34rem;
}

/*
 * Core's table block CSS puts "border: 1px solid" on every cell, so overriding
 * only border-bottom leaves its left/right/top edges drawing a grid of lines
 * through the table. Reset all four, then draw the one rule that is wanted.
 */
.entry-content th,
.entry-content td {
	padding: 0.8rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--line-2);
	text-align: left;
	vertical-align: top;
}

.entry-content tr:last-child > th,
.entry-content tr:last-child > td {
	border-bottom: 0;
}

/* Core also rules off thead/tfoot at 3px, which fights the header fill. */
.entry-content .wp-block-table thead,
.entry-content .wp-block-table tfoot {
	border: 0;
}

.entry-content thead th,
.entry-content table:not(:has(thead)) tbody tr:first-child th {
	background: var(--navy);
	color: #fff;
	font-weight: 700;
	border-bottom-color: var(--navy-700);
	/*
	 * No text-transform here: the posts are Turkish, and uppercasing a dotted i
	 * on a page that is not lang="tr" produces the wrong letter (i -> I, not
	 * the intended dotted capital).
	 */
}

/* A header background would square off the rounded top corners of a raw table. */
.entry-content tr:first-child > th:first-child {
	border-top-left-radius: calc(var(--r-md) - 1px);
}

.entry-content tr:first-child > th:last-child {
	border-top-right-radius: calc(var(--r-md) - 1px);
}

.entry-content tbody tr:nth-child(even) > td {
	background: var(--bg-soft);
}

.entry-content tbody tr:hover > td {
	background: var(--bg-soft-2);
}

/*
 * Core's own stripe style paints odd rows. Without this the two striping rules
 * stack and every row ends up shaded.
 */
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) > td {
	background: var(--bg-soft);
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(even) > td {
	background: transparent;
}

.entry-content table caption {
	caption-side: bottom;
	padding-top: 0.7rem;
	font-size: 0.85rem;
	color: var(--muted);
	text-align: center;
}

/*
 * A table that runs off the edge of a phone with no affordance reads as broken
 * rather than swipeable. The mask applies to the scrollport, not the scrolled
 * content, so the right edge softens exactly while there is more to reach; JS
 * adds the class only to tables that actually overflow, and drops it at the end
 * of the scroll. No JS means no fade and a plain scroll, which is the old
 * behaviour, so nothing regresses.
 */
.entry-content .wp-block-table.is-scrollable {
	mask-image: linear-gradient(to right, #000 calc(100% - 42px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 42px), transparent 100%);
}

/* The figure is the table's frame, so its caption belongs to it as a footer. */
.entry-content .wp-block-table > figcaption {
	margin-top: 0;
	padding: 0.7rem 1rem;
	border-top: 1px solid var(--line-2);
	background: var(--bg-soft);
}

/* --- Details / summary ----------------------------------------------- */
/*
 * Auto-generated health content is full of question-and-answer sections, so
 * these need to read as a real FAQ accordion, not a browser disclosure widget.
 */
.entry-content details {
	padding-inline: 1.15rem;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--white);
	transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

/* Stacked questions read as one group, not as separate floating cards. */
.entry-content details + details {
	margin-top: 0.6rem;
}

.entry-content details[open] {
	padding-bottom: 1.15rem;
	box-shadow: var(--shadow-sm);
}

.entry-content details:hover {
	border-color: var(--bg-soft-2);
}

.entry-content summary {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding-block: 1.05rem;
	min-height: 1.4em;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ink);
	cursor: pointer;
	user-select: none;
	/* Kills the default triangle; the -webkit- rule covers older Safari. */
	list-style: none;
	transition: color var(--t-fast);
}

.entry-content summary::-webkit-details-marker {
	display: none;
}

.entry-content summary::marker {
	content: "";
}

.entry-content summary:hover {
	color: var(--navy);
}

.entry-content details[open] > summary {
	color: var(--navy);
	border-bottom: 1px solid var(--line-2);
}

.entry-content summary::after {
	content: "";
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	margin-left: auto;
	margin-top: 0.2em;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--t);
}

.entry-content details[open] > summary::after {
	transform: rotate(180deg);
}

/* The rhythm rule only reaches direct children of .entry-content. */
.entry-content details > * + * {
	margin-top: 1.05rem;
}

/* --- Definition lists ------------------------------------------------ */
.entry-content dl {
	margin-block: 1.6rem;
}

.entry-content dt {
	font-weight: 700;
	color: var(--ink);
}

.entry-content dd {
	margin: 0.3rem 0 0;
	padding-left: 1.1rem;
	color: var(--body);
}

.entry-content dd + dt {
	margin-top: 1.1rem;
}

/* --- Inline semantics ------------------------------------------------ */
.entry-content mark {
	padding: 0.08em 0.28em;
	border-radius: 4px;
	background: rgba(200, 16, 46, 0.14);
	color: var(--ink);
}

.entry-content kbd {
	padding: 0.18em 0.42em;
	border: 1px solid var(--line);
	border-radius: var(--r-xs);
	background: var(--bg-soft);
	box-shadow: 0 1px 0 var(--line);
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.82em;
	color: var(--ink);
	white-space: nowrap;
}

.entry-content samp,
.entry-content var {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.entry-content var {
	font-style: italic;
}

.entry-content abbr[title] {
	text-decoration: underline dotted;
	text-underline-offset: 3px;
	cursor: help;
}

/* Keep super/subscripts from stretching the 1.75 line-height. */
.entry-content sub,
.entry-content sup {
	position: relative;
	font-size: 0.72em;
	line-height: 0;
	vertical-align: baseline;
}

.entry-content sup {
	top: -0.5em;
}

.entry-content sub {
	bottom: -0.25em;
}

.entry-content del,
.entry-content s {
	color: var(--muted);
}

.entry-content ins {
	padding: 0.08em 0.28em;
	border-radius: 4px;
	background: rgba(1, 33, 105, 0.09);
	text-decoration: none;
}

.entry-content q {
	quotes: "\201C" "\201D" "\2018" "\2019";
}

.entry-content cite {
	font-style: normal;
	color: var(--muted);
}

.entry-content dfn {
	font-style: italic;
	font-weight: 600;
	color: var(--ink);
}

.entry-content small {
	font-size: 0.85em;
	color: var(--muted);
}

.entry-content address {
	font-style: normal;
}

/* A pasted URL must not push the column wider than the page. */
.entry-content p,
.entry-content li,
.entry-content dd {
	overflow-wrap: break-word;
}

/* --- Footnotes ------------------------------------------------------- */
.entry-content .wp-block-footnotes {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	font-size: 0.92rem;
	color: var(--muted);
}

.entry-content .wp-block-footnotes li:target {
	background: rgba(200, 16, 46, 0.08);
	border-radius: var(--r-xs);
}

/* --- Separators ------------------------------------------------------ */
/* The default separator is a short brand rule, not a full-width hairline. */
.entry-content .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 5rem;
	max-width: 5rem;
	height: 3px;
	margin-inline: auto;
	border-radius: 3px;
	background: var(--red);
}

.entry-content .wp-block-separator.is-style-wide {
	width: auto;
	max-width: none;
}

.entry-content .wp-block-separator.is-style-dots {
	width: auto;
	max-width: none;
	height: auto;
	background: none;
	border: 0;
	line-height: 1;
	text-align: center;
}

.entry-content .wp-block-separator.is-style-dots::before {
	content: "\00b7\00b7\00b7";
	padding-left: 0.6em;
	color: var(--muted-2);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.6em;
}

/* --- Layout blocks --------------------------------------------------- */
/*
 * Core ships per-block CSS inline (wp-block-columns-inline-css and friends) and
 * it lands before this file, so layout and stacking are already handled. Only
 * the rhythm is ours.
 */
.entry-content .wp-block-columns {
	margin-block: 2rem;
}

/* Padding only looks deliberate once there is a background to hold it. */
.entry-content .wp-block-group.has-background {
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--r-md);
}

.entry-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block: 2rem;
}

.entry-content .wp-block-buttons.is-content-justification-center {
	justify-content: center;
}

.entry-content .wp-block-buttons.is-content-justification-right {
	justify-content: flex-end;
}

@media (max-width: 620px) {
	/* A float in a phone-width column leaves both the text and image cramped. */
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		max-width: 100%;
		margin-inline: auto;
	}

	.entry-content blockquote {
		padding-left: 2.4rem;
		font-size: 1.15rem;
	}

	.entry-content blockquote::before {
		font-size: 3.25rem;
	}

	.entry-content th,
	.entry-content td {
		padding: 0.65rem 0.8rem;
	}
}
