/* ==========================================================================
   Rolling Vibe — supplementary styles
   Only what theme.json / block markup cannot express on its own.
   ========================================================================== */

/* --- Site header --------------------------------------------------------- */
html {
	/* Anchor links land below the sticky header */
	scroll-padding-top: 90px;
}
.site-header {
	z-index: 100;
	transition: transform 0.28s ease, box-shadow 0.28s ease,
		padding-top 0.28s ease, padding-bottom 0.28s ease;
	/* NOTE: deliberately no `will-change: transform` here — it (like an
	   active `transform`) creates a new containing block for any
	   `position: fixed` descendant. WordPress's full-screen mobile nav
	   overlay lives inside this header and depends on `position: fixed`
	   to cover the whole viewport; with will-change present it was being
	   clipped down to the header's own ~70px box instead of the screen. */
}

/* Dynamic states (toggled by assets/js/header.js) */
.site-header.is-scrolled {
	padding-top: 0.6rem !important;
	padding-bottom: 0.6rem !important;
	box-shadow: 0 6px 24px -14px rgba(0, 0, 0, 0.25);
}
.site-header.is-hidden {
	transform: translateY(-101%);
}
@media (prefers-reduced-motion: reduce) {
	.site-header {
		transition: none;
	}
	.site-header.is-hidden {
		transform: none; /* never hide the header for reduced-motion users */
	}
}

/* True centering: grid keeps the logo dead-center no matter how wide
   the menu is; side zones shrink independently */
.site-header__bar {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 1rem;
	max-width: 1440px;
	margin-inline: auto;
}
.site-header__nav {
	justify-self: start;
	min-width: 0;
}
.site-header__actions {
	justify-self: end;
}
.site-header .wp-block-site-title {
	margin: 0;
	text-align: center;
	white-space: nowrap;
}

/* Nav links: compact uppercase, never wrap or clip */
.site-header .wp-block-navigation {
	font-size: 0.72rem;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.25rem 0;
	white-space: nowrap;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-ink);
	text-decoration: none;
}

/* NOTE: no custom breakpoint override here. WordPress's overlayMenu:"mobile"
   setting is JS-driven (it measures actual overflow via ResizeObserver,
   not a fixed viewport width) and wires up the hamburger button's click
   handler itself. Forcing `display` on its elements via a hardcoded media
   query fought that internal state and was the cause of a broken/dead
   mobile menu button. The header's grid layout already constrains the
   nav's available width, so WP's own overflow detection triggers the
   overlay naturally without any override needed. */

/* Brand lockup: logo mark + two-tone wordmark */
.rv-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none !important;
	color: var(--wp--preset--color--contrast);
	line-height: 1;
}
.rv-brand__mark {
	width: 46px;
	height: 27px; /* logo's native 400x234 ratio */
	background: url(../images/logo.png) no-repeat center / contain;
	flex: 0 0 auto;
}
.rv-brand__text {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 640;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}
.rv-brand__vibe {
	color: var(--wp--preset--color--gold);
}
.rv-brand:hover .rv-brand__text {
	color: var(--wp--preset--color--contrast);
}
.site-footer .rv-brand__mark {
	width: 40px;
	height: 23px;
}
.site-footer .rv-brand__text {
	font-size: 1.35rem;
}
.rv-brand-wrap {
	display: inline-block;
}
@media (max-width: 480px) {
	.rv-brand__text {
		font-size: 1.05rem;
	}
	.rv-brand__mark {
		width: 38px;
		height: 22px;
	}
}

/* Working expandable search (WordPress "button only" behavior):
   collapsed = icon button only; clicking expands the input via core JS */
.site-header__search {
	max-width: 260px;
	margin: 0;
}
.site-header__search .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 0;
	padding: 0.35rem;
	min-width: 0;
	margin-left: 0.25rem;
	cursor: pointer;
}
.site-header__search .wp-block-search__button:hover,
.site-header__search .wp-block-search__button:focus {
	background: transparent;
	color: var(--wp--preset--color--accent-ink);
}
.site-header__search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}
.site-header__search .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	padding: 0.45rem 0.75rem;
	font-size: 0.875rem;
	font-family: var(--wp--preset--font-family--body);
	background: var(--wp--preset--color--base);
}
.site-header__search .wp-block-search__input:focus {
	outline: 2px solid var(--wp--preset--color--accent-ink);
	outline-offset: 1px;
}
.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper {
	min-width: 0;
}

/* Overlay menu (mobile hamburger panel): editorial, properly spaced */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding: 5.5rem 2rem 2rem;
}
/* Reset WordPress's own list gap for the overlay — our per-item border +
   padding below fully controls the rhythm, so we don't want both stacking
   and doubling the space between items. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content ul {
	gap: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
	border-bottom: 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 1rem 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.375rem, 5.5vw, 1.75rem);
	font-weight: 560;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--wp--preset--color--contrast);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--accent-ink);
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--contrast);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wp-block-navigation__responsive-container-close {
	position: fixed;
	top: 0.75rem;
	right: 1.25rem;
}
.wp-block-navigation__responsive-container-close svg {
	width: 22px;
	height: 22px;
}

/* --- Section masthead (category/archive header) --------------------------- */
.rv-section-masthead__row {
	gap: var(--wp--preset--spacing--50, 2.5rem);
}
.rv-section-masthead__text {
	flex: 1 1 auto;
	min-width: 0;
}
.rv-section-masthead__art {
	flex: 0 0 auto;
	margin: 0;
	line-height: 0;
}
.rv-section-masthead__art img {
	display: block;
	width: 220px;
	height: auto;
}
@media (max-width: 781px) {
	.rv-section-masthead__art {
		display: none;
	}
}

/* Two-tone section title: last word rendered in gold, rest in ink.
   Split client-side (assets/js/header.js) since query-title outputs
   the term name as a single text node. */
.rv-section-masthead__title .rv-title__accent {
	color: var(--wp--preset--color--gold);
}

/* --- Hero ---------------------------------------------------------------- */
.rv-hero__lead .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-ink);
	text-decoration: none;
}

.rv-rail__item:last-child {
	border-bottom: 0 !important;
	padding-bottom: 0 !important;
}
/* Thumb column: fixed 96px, exempt from flex shrinking, image pinned in flow */
.rv-rail__item {
	align-items: flex-start;
}
.rv-rail__item > .rv-rail__thumb {
	flex: 0 0 96px;
	min-width: 96px;
}
.rv-rail__thumb .wp-block-post-featured-image {
	width: 96px;
	height: 96px;
}
.rv-rail__thumb img {
	width: 96px !important;
	height: 96px !important;
	object-fit: cover;
	display: block;
	position: static !important; /* guard against absolute-fill containment rule */
}
.rv-rail__item > .wp-block-group:last-child {
	flex: 1 1 auto;
	min-width: 0;
}
.rv-rail__item .wp-block-post-title {
	margin: 0;
}
.rv-rail__item .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-ink);
}

.rv-hero__columns {
	align-items: flex-start;
}

@media (max-width: 781px) {
	.rv-hero__columns {
		flex-wrap: wrap !important;
	}
	.rv-hero__columns > .wp-block-column {
		flex-basis: 100% !important;
	}
	.rv-hero__rail {
		margin-top: 2.5rem;
	}
}

/* --- Best of the Best (ranked grid) --------------------------------------- */
/* CSS counter drives the numbered badge — one per post-template item */
.rv-bestof-grid {
	counter-reset: rv-rank;
}
.rv-bestof-grid > li {
	counter-increment: rv-rank;
}
.rv-bestof-card {
	position: relative;
}
.rv-bestof-card__rank {
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	z-index: 2;
	pointer-events: none;
}
.rv-bestof-card__rank::before {
	content: counter(rv-rank);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.4rem;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--gold, var(--wp--preset--color--base));
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
}
.rv-bestof-card__body .wp-block-post-title {
	margin: 0;
}
.rv-bestof-card__body .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-ink);
}

@media (max-width: 600px) {
	.rv-bestof-grid.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

/* --- Cards --------------------------------------------------------------- */

/* Featured images can NEVER escape their frames.
   When the block declares an aspect-ratio, the image is absolutely
   positioned to fill the cropped frame exactly — a natural-size portrait
   upload can no longer blow past the crop and overlap neighboring cards. */
.wp-block-post-featured-image {
	position: relative;
	overflow: hidden;
	margin: 0;
	width: 100%;
}
.wp-block-post-featured-image img {
	display: block;
	width: 100%;
	object-fit: cover;
}
figure.wp-block-post-featured-image[style*="aspect-ratio"] img {
	position: absolute;
	inset: 0;
	height: 100%;
}

/* Grid items must be allowed to shrink — otherwise a large image forces
   its column wider than 1/3 and overlaps the next column */
.wp-block-post-template.is-layout-grid > li,
.wp-block-post-template > li {
	min-width: 0;
}

.rv-card img {
	width: 100%;
	object-fit: cover;
	display: block;
}
.rv-card .wp-block-post-title {
	margin: 0;
}
.rv-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-ink);
}

/* Section "more" link, right-aligned small caps */
.rv-section__more a,
.rv-section__more {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.rv-section__more a:hover {
	color: var(--wp--preset--color--accent-ink);
}

/* --- Article body -------------------------------------------------------- */
.rv-article-head .wp-block-post-title {
	max-width: 16ch;
	margin-inline: auto;
}
.entry-content > p:first-of-type,
.wp-block-post-content > p:first-of-type {
	font-size: 1.125rem;
	line-height: 1.7;
}

/* --- Section archive (category) ----------------------------------------- */
.rv-cat-grid .wp-block-post-title {
	margin: 0;
}
.rv-cat-grid .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-ink);
}
.rv-cat-grid .wp-block-post-date {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.02em;
}

/* First story spans the full width and reads as the section lead */
.rv-cat-grid.is-layout-grid {
	align-items: start;
}
.rv-cat-grid.is-layout-grid > li:first-child {
	grid-column: 1 / -1;
}
.rv-cat-grid > li:first-child .rv-card {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: var(--wp--preset--spacing--50, 2.5rem);
	align-items: center;
}
.rv-cat-grid > li:first-child .wp-block-post-featured-image {
	aspect-ratio: 3 / 2;
}
.rv-cat-grid > li:first-child .wp-block-post-title {
	font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
	line-height: 1.12;
	letter-spacing: -0.02em;
}
.rv-cat-grid > li:first-child .wp-block-post-excerpt {
	font-size: 1rem !important;
}

@media (max-width: 781px) {
	.rv-cat-grid > li:first-child .rv-card {
		grid-template-columns: 1fr;
	}
}

/* --- Single track review ------------------------------------------------ */
.rv-track-head .wp-block-post-title {
	margin: 0;
	letter-spacing: -0.035em;
	line-height: 1.05;
}
.rv-track-art img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

/* Player slot: make embeds sit full-width and keep a sensible height */
.rv-player-slot .wp-block-embed {
	margin: 0;
}
.rv-player-slot .wp-block-embed__wrapper iframe {
	width: 100%;
	border: 0;
	display: block;
}
/* Spotify/SoundCloud players read best at a fixed compact height */
.rv-player-slot .is-provider-spotify .wp-block-embed__wrapper iframe {
	min-height: 152px;
	border-radius: 0;
}
.rv-player-slot .is-provider-soundcloud .wp-block-embed__wrapper iframe {
	min-height: 166px;
}
.rv-player-slot .is-provider-bandcamp .wp-block-embed__wrapper iframe {
	min-height: 120px;
}
.rv-player-slot .is-provider-youtube .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%;
}
.rv-player-slot .is-provider-youtube .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	height: 100%;
}
.rv-track-tag {
	margin: 0;
}

@media (max-width: 781px) {
	.rv-track-head .wp-block-columns {
		flex-wrap: wrap !important;
	}
	.rv-track-head .wp-block-column {
		flex-basis: 100% !important;
	}
	.rv-track-head .wp-block-column:last-child {
		margin-top: 1.75rem;
	}
	.rv-track-art {
		max-width: 340px;
	}
}

/* --- Contact form --------------------------------------------------------- */
.rv-form {
	max-width: 720px;
}
.rv-form form {
	margin: 0;
}
.rv-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}
@media (max-width: 600px) {
	.rv-form__row {
		grid-template-columns: 1fr;
	}
}
.rv-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0 0 1.4rem;
}
.rv-form__field label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast);
}
.rv-form__req {
	color: var(--wp--preset--color--accent-ink);
}
.rv-form input[type="text"],
.rv-form input[type="email"],
.rv-form select,
.rv-form textarea {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.5;
	padding: 0.8rem 0.9rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rv-form textarea {
	resize: vertical;
	min-height: 170px;
}
.rv-form select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a0a0a' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	padding-right: 2.4rem;
	cursor: pointer;
}
.rv-form input:hover,
.rv-form select:hover,
.rv-form textarea:hover {
	border-color: var(--wp--preset--color--accent-ink);
}
.rv-form input:focus,
.rv-form select:focus,
.rv-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--contrast);
	box-shadow: 0 0 0 2px var(--wp--preset--color--contrast);
}
.rv-form input::placeholder,
.rv-form textarea::placeholder {
	color: var(--wp--preset--color--muted);
}

/* Honeypot: removed from view and from the accessibility tree */
.rv-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

.rv-form__submit {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin: 1.75rem 0 0;
}
.rv-form__submit .wp-element-button {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.95rem 2.25rem;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.rv-form__submit .wp-element-button:hover,
.rv-form__submit .wp-element-button:focus {
	background: var(--wp--preset--color--accent-ink);
	border-color: var(--wp--preset--color--accent-ink);
	color: var(--wp--preset--color--base);
}
.rv-form__privacy {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}

/* Status notices */
.rv-form__notice {
	font-size: 0.9375rem;
	line-height: 1.55;
	padding: 1rem 1.25rem;
	margin: 0 0 1.75rem;
	border-left: 3px solid;
}
.rv-form__notice--success {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--subtle);
}
.rv-form__notice--error {
	border-color: var(--wp--preset--color--accent-ink);
	background: #fdf1ef;
	color: var(--wp--preset--color--accent-ink);
}

/* --- Layout hardening (anti-overlap) -------------------------------------- */
h1, h2, h3, h4,
.wp-block-post-title,
.wp-block-post-excerpt,
.wp-block-post-content {
	overflow-wrap: break-word;
}
/* Flex/grid text children must be allowed to shrink, or long titles
   overflow onto neighboring elements */
.rv-rail__item > .wp-block-group,
.rv-bestof-card__body,
.rv-card > .wp-block-group,
.rv-cat-grid > li:first-child .rv-card > .wp-block-group {
	min-width: 0;
}
.wp-block-post-title {
	text-wrap: balance;
}

/* --- Single post: article spacing rhythm ---------------------------------- */
.single .wp-block-post-content > * {
	margin-top: 0;
	margin-bottom: 1.4rem;
}
.single .wp-block-post-content > h2 {
	margin-top: 2.25rem;
	margin-bottom: 0.85rem;
}
.single .wp-block-post-content > h3 {
	margin-top: 1.9rem;
	margin-bottom: 0.7rem;
}
.single .wp-block-post-content > figure {
	margin-top: 2rem;
	margin-bottom: 2rem;
}
.single .wp-block-post-content > *:last-child {
	margin-bottom: 0;
}

/* --- Article: immersive cover layout --------------------------------------- */

/* Cover hero: full-bleed featured image with dark scrim, white text */
.rv-cover {
	margin-top: 0 !important;
}
.rv-cover .wp-block-cover__image-background {
	object-fit: cover;
}
.rv-cover__title {
	max-width: 20ch;
	margin-inline: auto !important;
	text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}
.rv-cover .wp-block-post-terms,
.rv-cover .wp-block-post-terms a {
	color: var(--wp--preset--color--accent) !important;
}
@media (max-width: 781px) {
	.rv-cover {
		min-height: 58vh !important;
	}
}

/* Meta / share bar under the cover */
.rv-meta-bar {
	row-gap: 0.75rem;
}
.rv-meta-bar__by,
.rv-meta-bar__dot {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}
.rv-meta-bar .wp-block-post-date {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}
.rv-meta-bar .wp-block-post-author-name a {
	text-decoration: none;
}
.rv-meta-bar .wp-block-post-author-name a:hover {
	color: var(--wp--preset--color--accent-ink);
}

/* Byline rail (sticky beside the article) */
.rv-byline__label {
	font-size: 0.6875rem !important;
	color: var(--wp--preset--color--muted);
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	padding-bottom: 0.45rem;
	width: 100%;
}
.rv-byline .wp-block-avatar img {
	border-radius: 50%;
	display: block;
}
.rv-byline .wp-block-post-date {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}
.rv-byline .wp-block-post-terms {
	font-size: 0.75rem;
}
.rv-share--stack {
	flex-direction: column;
	align-items: flex-start;
}
@media (max-width: 781px) {
	.rv-article-layout {
		flex-wrap: wrap !important;
	}
	.rv-article-rail {
		flex-basis: 100% !important;
	}
	.rv-byline {
		position: static !important;
		flex-direction: row !important;
		flex-wrap: wrap;
		gap: 2rem !important;
		border-bottom: 1px solid var(--wp--preset--color--hairline);
		padding-bottom: 1.5rem;
	}
	.rv-byline__block {
		min-width: 140px;
	}
	.rv-share--stack {
		flex-direction: row;
	}
}

/* Share buttons: ghost editorial */
.rv-share {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}
.rv-share__btn {
	appearance: none;
	background: transparent;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.5rem 1rem;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.rv-share__btn:hover,
.rv-share__btn:focus-visible,
.rv-share__btn.is-copied {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Reading column */
.single .wp-block-post-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #1a1a1a;
}
.single .wp-block-post-content > p:first-of-type {
	font-size: 1.1875rem;
	line-height: 1.65;
}
.single .wp-block-post-content a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}
.single .wp-block-post-content a:hover {
	color: var(--wp--preset--color--accent-ink);
}
.single .wp-block-post-content figcaption,
.wp-element-caption {
	margin-top: 0.6rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.45;
	text-align: left;
}
.rv-article-tags .wp-block-post-terms {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

/* Previous / Next article navigation */
.rv-post-nav {
	row-gap: 1rem;
}
.rv-post-nav .wp-block-post-navigation-link {
	max-width: 42%;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.0625rem;
	line-height: 1.35;
	letter-spacing: -0.01em;
}
.rv-post-nav .wp-block-post-navigation-link .post-navigation-link__label {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.4rem;
}
.rv-post-nav a {
	text-decoration: none;
}
.rv-post-nav a:hover {
	color: var(--wp--preset--color--accent-ink);
	text-decoration: none;
}
@media (max-width: 600px) {
	.rv-post-nav .wp-block-post-navigation-link {
		max-width: 100%;
	}
}

/* Read Next: centered title with short rule */
.rv-readnext__title::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	background: var(--wp--preset--color--contrast);
	margin: 0.9rem auto 0;
}

/* --- Accessibility & motion --------------------------------------------- */
a:focus-visible,
button:focus-visible,
.wp-block-search__button:focus-visible,
.wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-ink);
	outline-offset: 2px;
}

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

img {
	transition: opacity 0.2s ease;
}
.rv-card a:hover img,
.rv-bestof-card a:hover img,
.rv-hero__lead a:hover img {
	opacity: 0.88;
}
