/**
 * Monumental — main stylesheet.
 * White and red, diagonal energy, football details kept subtle.
 */

/* ============================================================ Tokens */
:root {
	--rp-red: #E4002B;
	--rp-red-dark: #B50022;
	--rp-red-soft: #FF5470;
	--rp-ink: #101114;
	--rp-ink-2: #1A1C21;
	--rp-cloud: #F5F6F8;
	--rp-line: #E7E9EE;
	--rp-txt: #23252B;
	--rp-muted: #6B7280;
	--font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
	--r: 14px;
	--skew: -8deg;
	--shadow: 0 10px 30px rgba(16, 17, 20, .10);
	--shadow-lg: 0 24px 60px rgba(16, 17, 20, .18);
	--ease: cubic-bezier(.2, .7, .3, 1);
	--header-h: 76px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--rp-txt);
	background: #fff;
	overflow-x: hidden;
}

html { overflow-x: clip; }

img { max-width: 100%; height: auto; }

/* Nothing in the content flow may force horizontal scrolling. */
.entry-content, .entry-content--wide, .article__body, .review-layout > * { min-width: 0; max-width: 100%; }
.entry-content { overflow-wrap: break-word; }
.entry-content table { display: block; width: 100%; overflow-x: auto; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: 1.08;
	color: var(--rp-ink);
	margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--rp-red); }
a:hover { color: var(--rp-red-dark); }

::selection { background: var(--rp-red); color: #fff; }

:focus-visible { outline: 2px solid var(--rp-red); outline-offset: 2px; }

[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.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;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 8px;
	top: 8px;
	z-index: 100000;
	background: #fff;
	color: var(--rp-ink);
	padding: .7rem 1.1rem;
	box-shadow: var(--shadow);
	border-radius: 6px;
	font-weight: 600;
}

.skip-link:focus { background: var(--rp-red); color: #fff; }

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

/* ============================================================ Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .8rem 1.5rem;
	background: var(--rp-red);
	color: #fff;
	text-decoration: none;
	font-family: var(--font-head);
	font-size: 1.05rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	border: 2px solid var(--rp-red);
	border-radius: 4px;
	transform: skewX(var(--skew));
	transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease), box-shadow .25s, color .25s;
	cursor: pointer;
	line-height: 1.1;
}

.btn > * { transform: skewX(8deg); }
.btn .icon { width: 18px; height: 18px; }

.btn:hover {
	background: var(--rp-red-dark);
	border-color: var(--rp-red-dark);
	color: #fff;
	transform: skewX(var(--skew)) translateY(-2px);
	box-shadow: 0 10px 24px rgba(228, 0, 43, .35);
}

.btn--ink { background: var(--rp-ink); border-color: var(--rp-ink); }
.btn--ink:hover { background: #000; border-color: #000; box-shadow: 0 10px 24px rgba(16, 17, 20, .3); }

.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }

.btn--ghost-ink { background: transparent; border-color: var(--rp-ink); color: var(--rp-ink); }
.btn--ghost-ink:hover { background: var(--rp-ink); border-color: var(--rp-ink); color: #fff; box-shadow: 0 10px 24px rgba(16, 17, 20, .25); }

/* ============================================================ Chips and tags */
.chip {
	display: inline-flex;
	padding: .28rem .68rem;
	background: rgba(228, 0, 43, .07);
	color: var(--rp-red-dark);
	border: 1px solid rgba(228, 0, 43, .22);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .09em;
	text-decoration: none;
	border-radius: 3px;
	line-height: 1.3;
	transition: background .2s, border-color .2s, color .2s;
}

a.chip:hover { background: rgba(228, 0, 43, .13); border-color: rgba(228, 0, 43, .4); color: var(--rp-red-dark); }

/* On the dark article hero the badge stays solid for contrast. */
.article__hero .chip { background: var(--rp-red); border-color: var(--rp-red); color: #fff; }
.article__hero a.chip:hover { background: var(--rp-red-dark); border-color: var(--rp-red-dark); color: #fff; }

.tag {
	display: inline-block;
	padding: .18rem .6rem;
	border-radius: 4px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	transform: skewX(var(--skew));
}

.tag--w { background: #0E9F5D; color: #fff; }
.tag--d { background: #5A6272; color: #fff; }
.tag--l { background: var(--rp-red); color: #fff; }

/* ============================================================ Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 80;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--rp-line);
	transition: box-shadow .25s var(--ease);
}

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 17, 20, .08); }

.admin-bar .site-header { top: 32px; }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	height: var(--header-h);
}

.site-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.custom-logo-link { display: block; line-height: 0; flex: none; }
.custom-logo { width: auto; height: 48px; }

.site-brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }

.site-brand__title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--rp-ink);
	text-decoration: none;
	white-space: nowrap;
}

.site-brand__title:hover { color: var(--rp-red); }

.site-brand__badge {
	display: inline-flex;
	align-self: flex-start;
	margin-top: 2px;
	background: var(--rp-red);
	color: #fff;
	font-family: var(--font-head);
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: .14rem .5rem;
	transform: skewX(var(--skew));
	border-radius: 2px;
}

.site-brand__badge > span { display: inline-block; transform: skewX(8deg); }

/* ------------------------------------------------------------ Navigation */
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; align-items: center; gap: .25rem; }
.site-nav .menu > li { position: relative; }

.site-nav .menu a {
	display: block;
	padding: .55rem .8rem;
	color: var(--rp-ink);
	text-decoration: none;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.02rem;
	text-transform: uppercase;
	letter-spacing: .07em;
	position: relative;
	transition: color .2s;
	white-space: nowrap;
}

.site-nav .menu a:hover { color: var(--rp-red); }

.site-nav .menu > li > a::after {
	content: "";
	position: absolute;
	left: .8rem;
	right: .8rem;
	bottom: .2rem;
	height: 3px;
	background: var(--rp-red);
	transform: skewX(var(--skew)) scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ease);
}

.site-nav .menu > li > a:hover::after,
.site-nav .menu > li.current-menu-item > a::after,
.site-nav .menu > li.current_page_item > a::after,
.site-nav .menu > li.current-menu-ancestor > a::after,
.site-nav .menu > li.current_page_ancestor > a::after { transform: skewX(var(--skew)) scaleX(1); }

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--rp-line);
	border-top: 3px solid var(--rp-red);
	border-radius: 0 0 10px 10px;
	box-shadow: var(--shadow);
	padding: .4rem 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
	z-index: 5;
}

.site-nav .menu li:hover > .sub-menu,
.site-nav .menu li:focus-within > .sub-menu,
.site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.site-nav .sub-menu a { font-size: .95rem; padding: .5rem 1rem; letter-spacing: .05em; }
.site-nav .sub-menu .sub-menu { top: -0.4rem; left: 100%; border-top-width: 1px; border-left: 3px solid var(--rp-red); border-radius: 0 10px 10px 0; }

.sub-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; }

.site-header__actions { display: flex; align-items: center; gap: .4rem; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: none;
	border: 0;
	border-radius: 8px;
	color: var(--rp-ink);
	cursor: pointer;
	transition: background .2s, color .2s;
}

.icon-btn:hover { background: var(--rp-cloud); color: var(--rp-red); }

.nav-toggle { display: none; }
.nav-toggle .icon--close { display: none; }
body.nav-open .nav-toggle .icon--menu { display: none; }
body.nav-open .nav-toggle .icon--close { display: block; }

/* ------------------------------------------------------------ Search overlay */
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(16, 17, 20, .7);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: flex-start;
}

.search-overlay__inner { position: relative; padding-top: clamp(6rem, 18vh, 10rem); }

.search-overlay__label {
	color: rgba(255, 255, 255, .75);
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: .9rem;
	margin: 0 0 1rem;
}

.search-overlay .search-form { max-width: none; }

.search-overlay .search-form__field {
	background: transparent;
	border: 0;
	border-bottom: 3px solid var(--rp-red);
	border-radius: 0;
	color: #fff;
	font-family: var(--font-head);
	font-size: clamp(1.7rem, 4.5vw, 2.8rem);
	padding: .4rem 0;
}

.search-overlay .search-form__field:focus { border-color: #fff; }
.search-overlay .search-form__field::placeholder { color: rgba(255, 255, 255, .35); }

.search-overlay .search-form__submit { width: 58px; height: 58px; align-self: center; }

.search-overlay__close { position: absolute; top: 1.4rem; right: 0; color: #fff; }
.search-overlay__close:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ------------------------------------------------------------ Search form */
.search-form { display: flex; gap: .6rem; max-width: 520px; }

.search-form__field {
	flex: 1;
	min-width: 0;
	padding: .75rem 1rem;
	border: 2px solid var(--rp-line);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: var(--rp-txt);
	transition: border-color .2s;
}

.search-form__field:focus { outline: none; border-color: var(--rp-red); }

.search-form__submit {
	display: grid;
	place-items: center;
	flex: none;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 8px;
	background: var(--rp-red);
	color: #fff;
	cursor: pointer;
	transition: background .2s, transform .2s var(--ease);
}

.search-form__submit:hover { background: var(--rp-red-dark); transform: translateY(-2px); }

/* ============================================================ Breadcrumbs */
.breadcrumbs { background: var(--rp-cloud); border-bottom: 1px solid var(--rp-line); font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: .55rem 0; }
.breadcrumbs li { display: flex; align-items: center; gap: .4rem; color: var(--rp-muted); min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: #C6CAD2; transform: skewX(var(--skew)); }
.breadcrumbs a { color: var(--rp-muted); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--rp-red); }

.breadcrumbs [aria-current] {
	color: var(--rp-ink);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 46ch;
}

/* ============================================================ Front page hero */
.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(140deg, var(--rp-ink) 0%, var(--rp-ink-2) 55%, #2A0A12 100%);
	color: #fff;
	padding: clamp(2.8rem, 5.5vw, 4rem) 0 clamp(4.6rem, 8vw, 6rem);
}

.hero .pitch-lines { opacity: .25; }

/* Stadium floodlights. */
.hero__lights {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(38% 55% at 12% -4%, rgba(255, 255, 255, .16), transparent 70%),
		radial-gradient(30% 45% at 88% -4%, rgba(255, 255, 255, .12), transparent 70%);
}

.fp-hero__crest {
	position: absolute;
	right: clamp(-70px, 2vw, 4%);
	top: 50%;
	transform: translateY(-52%) rotate(8deg);
	height: min(56vh, 420px);
	width: auto;
	opacity: .12;
	filter: grayscale(15%) drop-shadow(0 20px 60px rgba(0, 0, 0, .5));
	pointer-events: none;
	z-index: 1;
}

.fp-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .9rem;
}

.fp-hero .sec__eyebrow { color: var(--rp-red-soft); }

.fp-hero__title { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin: 0; max-width: 18ch; }

.fp-hero__lead { color: rgba(255, 255, 255, .78); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 54ch; margin: 0; }

.fp-hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .5rem; }

/* The diagonal banda. */
.hero__band {
	position: absolute;
	left: -6%;
	right: -6%;
	bottom: -72px;
	height: 124px;
	background: linear-gradient(100deg, var(--rp-red), var(--rp-red-dark));
	transform: rotate(-3deg);
	box-shadow: 0 -14px 44px rgba(228, 0, 43, .35);
	z-index: 3;
}

.hero__band::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 10px;
	height: 2px;
	background: rgba(255, 255, 255, .4);
}

#historia, #noticias { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ============================================================ Sections */
.sec { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }

.sec--dark { background: var(--rp-ink); color: rgba(255, 255, 255, .85); position: relative; overflow: hidden; }
.sec--dark .sec__title { color: #fff; }

.pitch-lines {
	position: absolute;
	inset: 0;
	background-image: url(../img/pitch.svg);
	background-repeat: no-repeat;
	background-position: center top;
	background-size: min(1100px, 130%) auto;
	opacity: .4;
	pointer-events: none;
}

.sec__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem);
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.sec__eyebrow {
	display: inline-block;
	position: relative;
	padding-left: 2.4rem;
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: .2em;
	font-size: .85rem;
	font-weight: 600;
	color: var(--rp-red);
}

.sec--dark .sec__eyebrow { color: var(--rp-red-soft); }

.sec__eyebrow::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 26px;
	height: 3px;
	background: var(--rp-red);
	transform: translateY(-50%) skewX(var(--skew));
}

.sec__title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .25rem 0 0; }

.sec__more {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: var(--rp-ink);
	text-decoration: none;
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 600;
	font-size: .95rem;
	transition: color .2s, gap .2s var(--ease);
}

.sec--dark .sec__more { color: #fff; }
.sec__more:hover { color: var(--rp-red); gap: .75rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.sec--dark .sec__more:hover { color: var(--rp-red-soft); }
.sec__more .icon { width: 16px; height: 16px; }

.sec--related { background: var(--rp-cloud); }
.sec--page { padding-top: clamp(2.2rem, 5vw, 3.4rem); }

/* ============================================================ Grids */
.grid { display: grid; gap: 1.5rem; position: relative; z-index: 1; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================================================ News cards */
.card {
	position: relative;
	background: #fff;
	border: 1px solid var(--rp-line);
	border-radius: var(--r);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(228, 0, 43, .35); }

/* Images are shown whole, at their native aspect ratio. */
.card__media { position: relative; display: block; overflow: hidden; background: var(--rp-cloud); border-bottom: 1px solid var(--rp-line); }
.card__media img { display: block; width: 100%; height: auto; }
.card__media .card__more {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: auto;
	padding-top: .35rem;
	color: var(--rp-muted);
	text-decoration: none;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	transition: color .2s, gap .2s var(--ease);
}

.card__more .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }

.card:hover .card__more,
.card__more:hover { color: var(--rp-red-dark); gap: .65rem; }

.card:hover .card__more .icon { transform: translateX(2px); }

.thumb-placeholder { aspect-ratio: 16 / 10; }

.card__format {
	position: absolute;
	right: .7rem;
	bottom: .7rem;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	background: rgba(16, 17, 20, .75);
	color: #fff;
	border-radius: 50%;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }

.card__date {
	color: var(--rp-muted);
	font-size: .8rem;
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: .08em;
	white-space: nowrap;
}

.card__title { font-size: 1.25rem; margin: 0; line-height: 1.22; }

.card__title a { color: var(--rp-ink); text-decoration: none; transition: color .25s; }

.card:hover .card__title a,
.card__title a:hover { color: var(--rp-red-dark); }

.card__more {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: auto;
	padding-top: .35rem;
	color: var(--rp-muted);
	text-decoration: none;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	transition: color .2s, gap .2s var(--ease);
}

.card__more .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }

.card:hover .card__more,
.card__more:hover { color: var(--rp-red-dark); gap: .65rem; }

.card:hover .card__more .icon { transform: translateX(2px); }

.thumb-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 100%;
	color: #C7CBD4;
	background:
		repeating-linear-gradient(45deg, transparent 0 14px, rgba(16, 17, 20, .03) 14px 28px),
		var(--rp-cloud);
}

.thumb-placeholder .icon { width: 34px; height: 34px; }
.thumb-placeholder--mini .icon { width: 22px; height: 22px; }

/* ============================================================ Lightbox */
body.lb-open { overflow: hidden; }

.lb {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: rgba(10, 10, 12, .93);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem;
}

.lb__fig { margin: 0; max-width: min(1100px, 92vw); }
.lb__img { max-width: 100%; max-height: 84vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: block; }

.lb__close, .lb__prev, .lb__next {
	position: absolute;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #fff;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 1.25rem;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .2s, border-color .2s;
	line-height: 1;
}

.lb__close:hover, .lb__prev:hover, .lb__next:hover { background: var(--rp-red); border-color: var(--rp-red); }
.lb__close { top: 1.2rem; right: 1.2rem; }
.lb__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ============================================================ Socials */
.socials { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; flex-wrap: wrap; }

.socials a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	color: rgba(255, 255, 255, .8);
	border: 1px solid rgba(255, 255, 255, .2);
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}

.socials a:hover { background: var(--rp-red); border-color: var(--rp-red); color: #fff; transform: translateY(-3px); }

/* ============================================================ Club review */
.sec--review { padding-top: clamp(3rem, 6vw, 4.6rem); }

/* Full-width layout: sticky contents rail + wide reading column. */
.sec--review .container { width: min(1460px, 100% - 2.5rem); }

.review-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(2rem, 4.5vw, 4.5rem);
	align-items: start;
}

.review-layout:has(.review-toc[hidden]) { grid-template-columns: 1fr; }

.review-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.review-toc__label {
	position: relative;
	display: block;
	padding-left: 1.5rem;
	margin-bottom: .9rem;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .18em;
	color: var(--rp-red);
}

.review-toc__label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 16px;
	height: 3px;
	background: var(--rp-red);
	transform: translateY(-50%) skewX(var(--skew));
}

.review-toc__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rp-line); }

.review-toc__list a {
	display: block;
	padding: .5rem 0 .5rem 1.5rem;
	margin-left: -1px;
	border-left: 2px solid transparent;
	color: var(--rp-muted);
	text-decoration: none;
	font-size: .95rem;
	line-height: 1.35;
	transition: color .2s, border-color .2s;
}

.review-toc__list a:hover { color: var(--rp-ink); }
.review-toc__list li.is-active > a { color: var(--rp-red-dark); border-left-color: var(--rp-red); font-weight: 600; }

.review .entry-content { font-size: 1.1rem; }
.review .entry-content--wide { max-width: none; font-size: 1.15rem; }
.review .entry-content--wide p { line-height: 1.8; }

.review .entry-content h2 {
	font-size: clamp(1.8rem, 2.6vw, 2.5rem);
	margin: 1.5em 0 .65em;
	scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

/* Opening paragraph reads as a lead. */
.review .entry-content > p:first-child { font-size: 1.32rem; line-height: 1.7; color: #3A3E46; }

/* Separators: hairline with a red skewed tick. */
.review .entry-content hr {
	width: 100%;
	height: 1px;
	margin: 2.6em 0 2.3em;
	border: 0;
	background: var(--rp-line);
	position: relative;
	overflow: visible;
	transform: none;
}

.review .entry-content hr::after {
	content: "";
	position: absolute;
	left: 0;
	top: -2px;
	width: 56px;
	height: 5px;
	background: var(--rp-red);
	transform: skewX(var(--skew));
}

/* Lists flow into two columns on wide screens. */
.review .entry-content--wide ul { columns: 2; column-gap: 3.5rem; }
.review .entry-content--wide ul li { break-inside: avoid; }

.review .entry-content .wp-block-image img { box-shadow: var(--shadow); cursor: zoom-in; }
.review .entry-content .wp-block-image { margin-block: 2.1em; }
.review .entry-content--wide .wp-block-image img { width: 100%; }

/* Ad and banner blocks keep their natural size, centred. */
.entry-content .code-block { margin-block: 1.8em; text-align: center; }
.entry-content .code-block img { width: auto; max-width: 100%; display: inline-block; box-shadow: none; cursor: pointer; }

.review .entry-content ul { list-style: none; padding-left: .2em; }
.review .entry-content ul li { position: relative; padding-left: 1.5em; margin-bottom: .55em; }

.review .entry-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .52em;
	width: .8em;
	height: .28em;
	background: var(--rp-red);
	transform: skewX(var(--skew));
}

/* ============================================================ Latest news */
.sec--news { background: var(--rp-cloud); border-top: 1px solid var(--rp-line); }
.news-grid { margin-top: 1.5rem; }

.empty-note {
	border: 1px dashed var(--rp-line);
	background: #fff;
	color: var(--rp-muted);
	padding: 1.2rem 1.4rem;
	border-radius: 10px;
}

.feature-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	background: #fff;
	border: 1px solid var(--rp-line);
	border-radius: var(--r);
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

.feature-card { align-items: center; }

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(228, 0, 43, .35); }

.feature-card__media { position: relative; display: block; overflow: hidden; background: var(--rp-cloud); align-self: stretch; display: flex; align-items: center; border-right: 1px solid var(--rp-line); }
.feature-card__media img { display: block; width: 100%; height: auto; }
.feature-card__media .card__more {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: auto;
	padding-top: .35rem;
	color: var(--rp-muted);
	text-decoration: none;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	transition: color .2s, gap .2s var(--ease);
}

.card__more .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }

.card:hover .card__more,
.card__more:hover { color: var(--rp-red-dark); gap: .65rem; }

.card:hover .card__more .icon { transform: translateX(2px); }

.thumb-placeholder { aspect-ratio: 16 / 9; align-self: stretch; }

.feature-card__body {
	padding: clamp(1.4rem, 3vw, 2.2rem);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .8rem;
}

.feature-card__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; line-height: 1.15; }

.feature-card__title a { color: var(--rp-ink); text-decoration: none; transition: color .25s; }

.feature-card:hover .feature-card__title a,
.feature-card__title a:hover { color: var(--rp-red-dark); }

.feature-card__excerpt { color: var(--rp-muted); margin: 0; }

.feature-card__more {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-top: auto;
	color: var(--rp-red-dark);
	text-decoration: none;
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 600;
	font-size: .95rem;
	transition: color .2s, gap .2s var(--ease);
}

.feature-card__more:hover { color: var(--rp-red); gap: .75rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.feature-card__more .icon { width: 16px; height: 16px; }

/* ============================================================ Footer */
.site-footer { position: relative; background: var(--rp-ink); color: rgba(255, 255, 255, .75); margin-top: clamp(3rem, 7vw, 5rem); }

.site-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -34px;
	height: 34px;
	background: var(--rp-ink);
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.front-page .site-footer, .home .site-footer { margin-top: 0; }

.site-footer__stripe { height: 7px; background: linear-gradient(90deg, var(--rp-red), var(--rp-red-dark)); }

.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; }

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: clamp(1.6rem, 4vw, 3rem);
	padding: clamp(2.6rem, 6vw, 4rem) 0 2.2rem;
}

.footer-col { min-width: 0; }
.footer-crest { margin-bottom: .9rem; }
.footer-about { margin: 0 0 1.2rem; max-width: 34ch; }

.widget__title,
.site-footer .widget-title {
	position: relative;
	padding-left: 1.8rem;
	color: #fff;
	font-size: 1.05rem;
	letter-spacing: .14em;
	margin: 0 0 1rem;
}

.widget__title::before,
.site-footer .widget-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 18px;
	height: 3px;
	background: var(--rp-red);
	transform: translateY(-50%) skewX(var(--skew));
}

.site-footer .widget { margin-bottom: 1.6rem; }
.site-footer .widget:last-child { margin-bottom: 0; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.site-footer .widget a { text-decoration: none; }

.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }

.footer-menu a {
	position: relative;
	display: inline-block;
	color: rgba(255, 255, 255, .75);
	text-decoration: none;
	transition: color .2s, padding-left .25s var(--ease);
}

.footer-menu a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 0;
	height: 2px;
	background: var(--rp-red);
	transform: translateY(-50%) skewX(var(--skew));
	transition: width .25s var(--ease);
}

.footer-menu a:hover { color: #fff; padding-left: .9rem; }
.footer-menu a:hover::before { width: 10px; }

.footer-latest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.footer-latest li { display: flex; flex-direction: column; gap: .15rem; }
.footer-latest a { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; line-height: 1.35; }
.footer-latest a:hover { color: var(--rp-red-soft); }
.footer-latest time { color: rgba(255, 255, 255, .45); font-size: .76rem; text-transform: uppercase; font-family: var(--font-head); letter-spacing: .1em; }

.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0 1.8rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; }
.site-footer__copy { margin: 0; font-size: .9rem; }
.socials--bottom { margin-left: auto; }

.site-footer__disclaimer {
	flex-basis: 100%;
	margin: .5rem 0 0;
	font-size: .78rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, .45);
	max-width: 94ch;
}

/* ============================================================ Back to top */
.back-top {
	position: fixed;
	right: 1.2rem;
	bottom: 1.2rem;
	z-index: 70;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	border: 0;
	background: var(--rp-red);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(228, 0, 43, .4);
	transform: skewX(var(--skew));
	transition: background .2s, transform .25s var(--ease);
}

.back-top .icon { transform: skewX(8deg); }
.back-top:hover { background: var(--rp-red-dark); transform: skewX(var(--skew)) translateY(-3px); }

/* ============================================================ Page head */
.page-head { position: relative; background: var(--rp-ink); color: #fff; padding: clamp(2.2rem, 5vw, 3.6rem) 0; overflow: hidden; }

.page-head::before {
	content: "";
	position: absolute;
	right: -8%;
	top: -50%;
	width: 42%;
	height: 220%;
	background: linear-gradient(100deg, var(--rp-red), var(--rp-red-dark));
	transform: rotate(14deg);
}

.page-head::after {
	content: "";
	position: absolute;
	right: 36%;
	top: -50%;
	width: 22px;
	height: 220%;
	background: rgba(255, 255, 255, .06);
	transform: rotate(14deg);
}

.page-head .container { position: relative; z-index: 1; }
.page-head__title { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; max-width: 24ch; }
.page-head__title span { color: #FFD3DB; }
.page-head__desc { color: rgba(255, 255, 255, .75); margin: .5rem 0 0; max-width: 70ch; }
.page-head__desc p { margin: 0; }

.page-head--media { padding: 0; min-height: 340px; display: flex; align-items: flex-end; }
.page-head--media::before, .page-head--media::after { display: none; }
.page-head--media .page-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 17, 20, .85), rgba(16, 17, 20, .18) 70%); }
.page-head--media .container { padding-block: 2.2rem; }

/* ============================================================ Single article */
.article__hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--rp-ink), #23060D);
	color: #fff;
}

.article__hero .pitch-lines { opacity: .18; }

.article__hero-inner { position: relative; z-index: 1; padding-block: clamp(2.2rem, 5vw, 3rem); }

/* The featured image is shown whole, never cropped. */
.article__featured { margin: 0 0 clamp(1.6rem, 4vw, 2.4rem); }

.article__featured img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--r);
	box-shadow: var(--shadow);
	cursor: zoom-in;
}
.article__title { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin: .7rem 0 .9rem; max-width: 24ch; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.post-meta__author { display: inline-flex; align-items: center; gap: .55rem; }
.post-meta__author img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); }
.post-meta__author a { color: #fff; text-decoration: none; font-weight: 600; }
.post-meta__author a:hover { color: var(--rp-red-soft); }

.article__body { padding-block: clamp(2.2rem, 5vw, 3.4rem) clamp(1.6rem, 4vw, 2.4rem); }

/* Full-width article layout. */
.single .site-main .container { width: min(1460px, 100% - 2.5rem); }
.single .entry-content { max-width: none; font-size: 1.15rem; }
.single .entry-content p { line-height: 1.8; }

/* ============================================================ Entry content */
.entry-content { max-width: 760px; margin-inline: auto; font-size: 1.08rem; }
.entry-content > * { margin-block: 0 1.3em; }
.entry-content p { line-height: 1.75; }

.entry-content h2 { font-size: 1.9rem; margin-top: 1.9em; position: relative; padding-left: 1.1rem; }

.entry-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: .16em;
	bottom: .16em;
	width: 5px;
	background: var(--rp-red);
	transform: skewX(var(--skew));
}

.entry-content h3 { font-size: 1.45rem; margin-top: 1.6em; }
.entry-content > *:first-child { margin-top: 0; }

.entry-content a { color: var(--rp-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--rp-red-dark); }
.entry-content img { border-radius: 12px; }

.entry-content blockquote {
	position: relative;
	margin: 1.8em 0;
	padding: 1.4rem 1.6rem 1.4rem 2rem;
	background: var(--rp-cloud);
	border-left: 5px solid var(--rp-red);
	border-radius: 0 12px 12px 0;
	font-family: var(--font-head);
	font-size: 1.35rem;
	line-height: 1.35;
	color: var(--rp-ink);
}

.entry-content blockquote p { line-height: inherit; margin: 0 0 .4em; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-family: var(--font-body); font-size: .85rem; color: var(--rp-muted); font-style: normal; }

.entry-content hr { border: 0; height: 4px; width: 90px; background: var(--rp-red); transform: skewX(var(--skew)); margin: 2.2em auto; }

.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content figcaption { text-align: center; color: var(--rp-muted); font-size: .85rem; margin-top: .55rem; }

.entry-content .alignwide { width: min(1000px, 100vw - 2.5rem); margin-left: calc(50% - min(1000px, 100vw - 2.5rem) / 2); max-width: none; }
.entry-content .alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.entry-content .alignfull img { border-radius: 0; }

.entry-content--wide { max-width: none; }
.entry-content--left { max-width: none; margin-inline: 0; font-size: 1.02rem; margin-bottom: 1.5rem; }

.page-links { margin-top: 1.5rem; font-weight: 600; }

.page-links a, .page-links > span:not(:first-child) {
	display: inline-grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 .5rem;
	margin-left: .35rem;
	border: 1px solid var(--rp-line);
	border-radius: 8px;
	text-decoration: none;
}

.page-links a:hover { border-color: var(--rp-red); }

/* ============================================================ Article foot, tags, share */
.article__foot {
	max-width: 760px;
	margin: 2.2rem auto 0;
	padding-top: 1.6rem;
	border-top: 1px solid var(--rp-line);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: center;
	justify-content: space-between;
}

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }

.tags a {
	display: inline-block;
	padding: .3rem .8rem;
	background: var(--rp-cloud);
	border: 1px solid var(--rp-line);
	border-radius: 999px;
	color: var(--rp-txt);
	font-size: .85rem;
	text-decoration: none;
	transition: background .2s, border-color .2s, color .2s;
}

.tags a:hover { background: var(--rp-red); border-color: var(--rp-red); color: #fff; }

.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.share__label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--rp-muted); margin-right: .2rem; }

.share__btn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	border: 1px solid var(--rp-line);
	background: #fff;
	color: var(--rp-ink);
	cursor: pointer;
	text-decoration: none;
	transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}

.share__btn:hover { background: var(--rp-red); border-color: var(--rp-red); color: #fff; transform: translateY(-2px); }
.share__toast { font-size: .8rem; color: #0E9F5D; font-weight: 700; min-height: 1em; }

/* ============================================================ Post navigation */
.post-navigation { max-width: 760px; margin: 2rem auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.post-navigation a {
	display: block;
	height: 100%;
	padding: 1rem 1.2rem;
	border: 1px solid var(--rp-line);
	border-radius: 12px;
	text-decoration: none;
	transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
}

.post-navigation a:hover { border-color: var(--rp-red); transform: translateY(-3px); box-shadow: var(--shadow); }
.post-navigation .nav-next { text-align: right; }

.post-nav__label {
	display: block;
	color: var(--rp-red);
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .72rem;
	font-weight: 700;
	margin-bottom: .2rem;
}

.post-nav__title { color: var(--rp-ink); font-weight: 600; line-height: 1.3; }

/* ============================================================ Pagination */
.pagination { margin-top: 2.4rem; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; }

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 .8rem;
	border: 1px solid var(--rp-line);
	border-radius: 10px;
	text-decoration: none;
	color: var(--rp-ink);
	font-family: var(--font-head);
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: border-color .2s, color .2s, background .2s;
}

a.page-numbers:hover { border-color: var(--rp-red); color: var(--rp-red); }
.page-numbers.current { background: var(--rp-red); border-color: var(--rp-red); color: #fff; }
.page-numbers.dots { border: 0; }

/* ============================================================ Comments */
.comments { background: var(--rp-cloud); border-top: 1px solid var(--rp-line); padding: clamp(2.4rem, 5vw, 3.6rem) 0; margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.comments__inner { max-width: 760px; }
.comments__title { font-size: 1.7rem; margin: 0 0 1.4rem; }
.comments__closed { color: var(--rp-muted); font-style: italic; }

.comment-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.comment-list .comment, .comment-list .pingback, .comment-list .trackback { background: #fff; border: 1px solid var(--rp-line); border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.comment-list .children { list-style: none; margin: 1rem 0 0; padding-left: clamp(.8rem, 4vw, 1.6rem); border-left: 3px solid var(--rp-line); }
.comment-list .children .comment { margin-bottom: .8rem; }

.comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--rp-ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: .78rem; margin-top: .15rem; }
.comment-metadata a { color: var(--rp-muted); text-decoration: none; }
.comment-metadata a:hover { color: var(--rp-red); }
.comment-content { margin-top: .6rem; }
.comment-content p { margin: 0 0 .5em; }

.reply a { font-size: .78rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--rp-red); text-decoration: none; font-weight: 700; }
.reply a:hover { color: var(--rp-red-dark); }

.comment-respond { background: #fff; border: 1px solid var(--rp-line); border-radius: 12px; padding: 1.4rem; }
.comment-reply-title { font-size: 1.4rem; margin-top: 0; }

.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .9rem; }
.comment-form p { margin-bottom: 1rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: .7rem .9rem;
	border: 2px solid var(--rp-line);
	border-radius: 8px;
	font: inherit;
	background: #fff;
	transition: border-color .2s;
}

.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--rp-red); }

.comment-form input[type="submit"] {
	background: var(--rp-red);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: .8rem 1.6rem;
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	cursor: pointer;
	transition: background .2s;
}

.comment-form input[type="submit"]:hover { background: var(--rp-red-dark); }

/* ============================================================ Empty states, 404 */
.content-none { text-align: center; max-width: 560px; margin-inline: auto; padding: 2.5rem 0; }
.content-none__title { font-size: 2rem; }
.content-none__text { color: var(--rp-muted); }
.content-none .search-form { margin: 1.4rem auto 0; }

.sec--404 { text-align: center; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.four-oh-four { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.four-oh-four__num {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(6rem, 20vw, 11rem);
	line-height: .9;
	color: var(--rp-red);
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: 3px var(--rp-red);
	letter-spacing: .04em;
	transform: skewX(var(--skew));
}

.four-oh-four__title { font-size: 2.2rem; margin: 0; }
.four-oh-four__text { color: var(--rp-muted); margin: 0; }
.sec--404 .search-form { width: 100%; max-width: 460px; }

/* ============================================================ Reveal on scroll */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

.grid > .rv:nth-child(2) { transition-delay: .08s; }
.grid > .rv:nth-child(3) { transition-delay: .16s; }
.grid > .rv:nth-child(4) { transition-delay: .24s; }
.grid > .rv:nth-child(5) { transition-delay: .32s; }
.grid > .rv:nth-child(6) { transition-delay: .4s; }

/* ============================================================ Responsive */
@media (max-width: 1024px) {
	.grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.review-layout { grid-template-columns: 1fr; gap: 1.5rem; }
	.review-toc { position: static; }
	.review-toc__label { margin-bottom: .6rem; }

	.review-toc__list {
		display: flex;
		gap: .25rem;
		overflow-x: auto;
		border-left: 0;
		border-bottom: 1px solid var(--rp-line);
		padding-bottom: 0;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.review-toc__list::-webkit-scrollbar { display: none; }

	.review-toc__list li { flex: 0 0 auto; }

	.review-toc__list a {
		white-space: nowrap;
		border-left: 0;
		border-bottom: 2px solid transparent;
		margin: 0;
		padding: .45rem .7rem;
	}

	.review-toc__list li.is-active > a { border-bottom-color: var(--rp-red); }

	.review .entry-content--wide ul { columns: 1; }

	.review .entry-content--wide,
	.single .entry-content { font-size: 1.05rem; }
	.review .entry-content > p:first-child { font-size: 1.15rem; }
	.review .entry-content .wp-block-image { margin-block: 1.5em; }

	.nav-toggle { display: inline-flex; }

	/* Full-width dropdown panel under the sticky header. Anchored with
	   position:absolute so the header's backdrop-filter cannot break it. */
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin-left: 0;
		background: linear-gradient(165deg, var(--rp-ink), var(--rp-ink-2));
		border-top: 3px solid var(--rp-red);
		box-shadow: 0 30px 60px rgba(16, 17, 20, .35);
		max-height: calc(100vh - var(--header-h));
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s, transform .3s var(--ease), visibility .3s;
	}

	body.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	body.nav-open { overflow: hidden; }

	body.nav-open::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(16, 17, 20, .55);
		z-index: 55;
		-webkit-backdrop-filter: blur(3px);
		backdrop-filter: blur(3px);
	}

	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem clamp(1.25rem, 5vw, 2.5rem) 1rem; }
	.site-nav .menu li { position: relative; }
	.site-nav .menu a { display: block; color: #fff; padding: .95rem 2.6rem .95rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: normal; }
	.site-nav .menu > li:last-child > a { border-bottom: 0; }
	.site-nav .menu a:hover { color: var(--rp-red-soft); }
	.site-nav .menu > li > a::after { display: none; }
	.site-nav .menu > li.current-menu-item > a, .site-nav .menu > li.current_page_item > a { color: var(--rp-red-soft); }

	.sub-toggle { display: grid; place-items: center; position: absolute; right: 0; top: .5rem; width: 40px; height: 40px; color: #fff; border-radius: 8px; }
	.sub-toggle:hover { background: rgba(255, 255, 255, .1); }
	.sub-toggle svg { transition: transform .25s var(--ease); }
	li.is-open > .sub-toggle svg { transform: rotate(180deg); }

	.site-nav .sub-menu {
		position: static;
		min-width: 0;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 0 0 0 1rem;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
	}

	.site-nav li.is-open > .sub-menu { display: block; }
	.site-nav .sub-menu a { color: rgba(255, 255, 255, .8); font-size: 1rem; }
}

@media (max-width: 900px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feature-card { grid-template-columns: 1fr; }
	.feature-card__media { border-right: 0; border-bottom: 1px solid var(--rp-line); }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.article__foot { flex-direction: column; align-items: flex-start; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.footer-col--about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.grid--3, .grid--4 { grid-template-columns: 1fr; }
	.custom-logo { height: 40px; }
	.site-brand__title { font-size: 1.2rem; }
	.hero { padding-bottom: 6rem; }
	.hero__band { bottom: -84px; height: 134px; }
	.fp-hero__crest { display: none; }
	.fp-hero__actions .btn { padding: .7rem 1.1rem; font-size: .95rem; }
	.article__hero-inner { padding-block: 1.6rem; }
	.entry-content .code-block { margin-block: 1.3em; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.socials--bottom { margin-left: 0; }
	.breadcrumbs [aria-current] { max-width: 22ch; }
	.lb { padding: 1rem; }
	.lb__prev { left: .5rem; }
	.lb__next { right: .5rem; }
	.search-overlay .search-form { flex-wrap: nowrap; }
}

/* ============================================================ Reduced motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	.js .rv { opacity: 1; transform: none; }
}
