/* ============================================================
   Raumfahrt Aktuell – Frontend
   Dunkles, sachliches News-Layout. Modular mit/ohne Bilder.
   ============================================================ */

:root {
	--ra-bg: #0a0c10;
	--ra-surface: #12151c;
	--ra-raised: #1a2030;
	--ra-border: #2a3344;
	--ra-text: #e8ecf2;
	--ra-muted: #8b93a7;
	--ra-link: #8ebbd9;
	--ra-brass: #c9a66b;
	--ra-header-h: 4.25rem;
	--ra-radius: 2px;
	--ra-max: 72rem;
	--ra-prose: 42rem;
}

/* --- Base -------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

body {
	background:
		radial-gradient(ellipse 120% 60% at 50% -10%, rgba(142, 187, 217, 0.07), transparent 55%),
		var(--ra-bg);
	color: var(--ra-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: rgba(142, 187, 217, 0.35);
	color: #fff;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--ra-link);
	outline-offset: 3px;
}

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

/* --- Site header ------------------------------------------- */

.ra-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 12, 16, 0.88);
	backdrop-filter: blur(12px) saturate(1.2);
	-webkit-backdrop-filter: blur(12px) saturate(1.2);
	border-bottom: 1px solid var(--ra-border);
}

.ra-site-header .ra-header-inner {
	min-height: var(--ra-header-h);
	padding-top: 0.65rem !important;
	padding-bottom: 0.65rem !important;
	gap: 1.25rem;
	align-items: center;
}

.ra-site-header .wp-block-site-logo img {
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--ra-border);
}

.ra-site-header .wp-block-site-title,
.ra-site-header .wp-block-site-title a {
	font-style: normal !important;
	text-decoration: none;
	letter-spacing: 0.01em;
}

.ra-site-header .wp-block-navigation {
	gap: 0.25rem;
}

.ra-site-header .wp-block-navigation-item__content {
	padding: 0.35rem 0.65rem;
	text-decoration: none;
}

.ra-site-header .wp-block-navigation__submenu-container {
	background: var(--ra-raised) !important;
	border: 1px solid var(--ra-border) !important;
	border-radius: var(--ra-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	padding: 0.35rem 0;
}

.ra-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--ra-text) !important;
}

.ra-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: var(--ra-link) !important;
	background: rgba(142, 187, 217, 0.08);
}

/* --- Home / Archive: Magazin-Feed (asymmetrische Spalten) --- */

.ra-feed {
	padding-top: clamp(1.25rem, 3vw, 2rem);
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.ra-feed .wp-block-post-template.ra-post-list,
.ra-feed .ra-post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.15rem;
}

.ra-feed .wp-block-post {
	margin: 0;
	min-width: 0;
}

/* Tablet: 2 Spalten, Lead voll */
@media (min-width: 700px) and (max-width: 999px) {
	.ra-feed .wp-block-post-template.ra-post-list,
	.ra-feed .ra-post-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.35rem;
	}

	.ra-feed .ra-post-list > .wp-block-post:first-child {
		grid-column: 1 / -1;
	}
}

/* Desktop: 12er-Raster, wechselnde Breiten */
@media (min-width: 1000px) {
	.ra-feed .wp-block-post-template.ra-post-list,
	.ra-feed .ra-post-list {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 1.5rem;
	}

	/* 1 — Lead volle Breite */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) {
		grid-column: span 12;
	}

	/* 2+3 — breit / schmal */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(2) {
		grid-column: span 7;
	}
	.ra-feed .ra-post-list > .wp-block-post:nth-child(3) {
		grid-column: span 5;
	}

	/* 4+5 — gespiegelt schmal / breit */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(4) {
		grid-column: span 5;
	}
	.ra-feed .ra-post-list > .wp-block-post:nth-child(5) {
		grid-column: span 7;
	}

	/* 6+7+8 — Dreierreihe */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(6),
	.ra-feed .ra-post-list > .wp-block-post:nth-child(7),
	.ra-feed .ra-post-list > .wp-block-post:nth-child(8) {
		grid-column: span 4;
	}

	/* 9+10 — Feature + Sidebar */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(9) {
		grid-column: span 8;
	}
	.ra-feed .ra-post-list > .wp-block-post:nth-child(10) {
		grid-column: span 4;
	}

	/* Weitere Seiten: 6+6-Paare */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(n + 11) {
		grid-column: span 6;
	}
}

/* --- Karte (identische Struktur mit/ohne Bild) ------------- */

.ra-article-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	background: var(--ra-surface);
	border: 1px solid var(--ra-border);
	border-radius: 4px;
	overflow: hidden;
	transition:
		border-color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.ra-article-card:hover {
	border-color: rgba(142, 187, 217, 0.45);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Medien-Slot: immer gleiche Basis-Proportion */
.ra-article-card .wp-block-post-featured-image,
.ra-article-card .ra-media-fallback {
	display: block;
	margin: 0 !important;
	aspect-ratio: 16 / 10;
	width: 100%;
	overflow: hidden;
	background: var(--ra-raised);
	flex-shrink: 0;
	position: relative;
}

.ra-article-card .wp-block-post-featured-image a,
.ra-article-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.ra-article-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.ra-article-card .wp-block-post-featured-image figcaption,
.ra-article-card .ra-image-credit {
	display: none;
}

/* Typografischer Fallback wenn kein Bild */
.ra-media-fallback {
	text-decoration: none;
	background:
		radial-gradient(ellipse 80% 60% at 70% 20%, rgba(142, 187, 217, 0.14), transparent 55%),
		radial-gradient(circle at 18% 78%, rgba(201, 166, 107, 0.1), transparent 40%),
		linear-gradient(155deg, #161b27 0%, #0c0f16 100%);
	border-bottom: 1px solid var(--ra-border);
}

.ra-media-fallback__orbit {
	position: absolute;
	inset: 18% 22%;
	border: 1px solid rgba(142, 187, 217, 0.22);
	border-radius: 50%;
	pointer-events: none;
}

.ra-media-fallback__orbit::before {
	content: "";
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ra-brass);
	top: 12%;
	right: 18%;
	box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.2);
}

.ra-media-fallback__date {
	position: absolute;
	left: 1.1rem;
	bottom: 0.9rem;
	font-family: "Barlow", sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ra-muted);
}

.ra-media-fallback__date em {
	font-style: normal;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ra-text);
	display: block;
	line-height: 1;
	margin-bottom: 0.15rem;
}

.ra-article-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.55rem;
	padding: 1.15rem 1.2rem 1.25rem;
}

.ra-article-card .wp-block-post-title {
	margin: 0;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.ra-article-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--ra-text);
}

.ra-article-card:hover .wp-block-post-title a {
	color: var(--ra-link);
}

.ra-article-card .wp-block-post-excerpt {
	margin: 0;
	flex: 1;
}

.ra-article-card .wp-block-post-excerpt p {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.ra-article-card .wp-block-post-date {
	margin: 0.35rem 0 0;
	padding-top: 0.65rem;
	border-top: 1px solid var(--ra-border);
}

.ra-article-card .wp-block-post-date a {
	color: inherit;
	text-decoration: none;
}

.ra-article-card .wp-block-post-date a:hover {
	color: var(--ra-brass);
}

/* --- Horizontale Karten (breite Spalten) -------------------- */

@media (min-width: 1000px) {
	/* Lead + breite Feature-Slots: Bild | Text */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .ra-article-card,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(2) .ra-article-card,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(5) .ra-article-card,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(9) .ra-article-card {
		display: grid;
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: stretch;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .ra-media-fallback,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(2) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(2) .ra-media-fallback,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(5) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(5) .ra-media-fallback,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(9) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(9) .ra-media-fallback {
		aspect-ratio: auto;
		height: 100%;
		min-height: 16rem;
		border-bottom: none;
		border-right: 1px solid var(--ra-border);
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(2) .ra-article-card__body,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(5) .ra-article-card__body {
		justify-content: flex-start;
		padding: 1.15rem 1.25rem;
		gap: 0.55rem;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .wp-block-post-excerpt,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(9) .wp-block-post-excerpt {
		flex: 0 1 auto;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .ra-article-card__body,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(9) .ra-article-card__body {
		justify-content: flex-start;
		padding: 0.7rem 0.9rem 0.85rem;
		gap: 0.35rem;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .wp-block-post-date,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(9) .wp-block-post-date {
		margin-top: 0.2rem;
		padding-top: 0.4rem;
	}

	/* Lead betont */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .ra-article-card {
		background:
			linear-gradient(180deg, rgba(142, 187, 217, 0.05), transparent 42%),
			var(--ra-surface);
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .ra-media-fallback {
		min-height: 15rem;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .wp-block-post-title,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .wp-block-post-title.has-large-font-size {
		font-size: clamp(1.55rem, 2.6vw, 2.15rem) !important;
		line-height: 1.15;
		max-width: none;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .wp-block-post-title a {
		display: inline;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .wp-block-post-excerpt p {
		-webkit-line-clamp: 4;
		font-size: 1.05rem;
		line-height: 1.6;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .ra-media-fallback__orbit {
		inset: 22% 26%;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(1) .ra-media-fallback__date em {
		font-size: 2.85rem;
	}

	/* Breite Features (2, 5, 9) */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(2) .wp-block-post-title,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(2) .wp-block-post-title.has-large-font-size,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(5) .wp-block-post-title,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(5) .wp-block-post-title.has-large-font-size,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(9) .wp-block-post-title,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(9) .wp-block-post-title.has-large-font-size {
		font-size: clamp(1.2rem, 1.8vw, 1.45rem) !important;
		max-width: none;
		line-height: 1.2;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(2) .wp-block-post-excerpt p,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(5) .wp-block-post-excerpt p,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(9) .wp-block-post-excerpt p {
		-webkit-line-clamp: 3;
	}

	/* Schmale Spalten: etwas höherer Medienblock, kürzerer Text */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(3) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(3) .ra-media-fallback,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(4) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(4) .ra-media-fallback,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(10) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(10) .ra-media-fallback {
		aspect-ratio: 4 / 3;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(3) .wp-block-post-excerpt p,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(4) .wp-block-post-excerpt p,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(10) .wp-block-post-excerpt p {
		-webkit-line-clamp: 3;
	}

	/* Dreierreihe: kompakt */
	.ra-feed .ra-post-list > .wp-block-post:nth-child(6) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(6) .ra-media-fallback,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(7) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(7) .ra-media-fallback,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(8) .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(8) .ra-media-fallback {
		aspect-ratio: 16 / 11;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(6) .wp-block-post-title,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(7) .wp-block-post-title,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(8) .wp-block-post-title {
		font-size: 1.05rem;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(6) .wp-block-post-excerpt p,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(7) .wp-block-post-excerpt p,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(8) .wp-block-post-excerpt p {
		-webkit-line-clamp: 2;
		font-size: 0.875rem;
	}

	.ra-feed .ra-post-list > .wp-block-post:nth-child(6) .ra-article-card__body,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(7) .ra-article-card__body,
	.ra-feed .ra-post-list > .wp-block-post:nth-child(8) .ra-article-card__body {
		padding: 1rem 1.05rem 1.1rem;
	}
}

/* Tablet-Lead horizontal */
@media (min-width: 700px) and (max-width: 999px) {
	.ra-feed .ra-post-list > .wp-block-post:first-child .ra-article-card {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: stretch;
		background:
			linear-gradient(180deg, rgba(142, 187, 217, 0.04), transparent 40%),
			var(--ra-surface);
	}

	.ra-feed .ra-post-list > .wp-block-post:first-child .wp-block-post-featured-image,
	.ra-feed .ra-post-list > .wp-block-post:first-child .ra-media-fallback {
		aspect-ratio: auto;
		height: 100%;
		min-height: 18rem;
		border-bottom: none;
		border-right: 1px solid var(--ra-border);
	}

	.ra-feed .ra-post-list > .wp-block-post:first-child .ra-article-card__body {
		justify-content: center;
		padding: 1.5rem;
	}

	.ra-feed .ra-post-list > .wp-block-post:first-child .wp-block-post-title {
		font-size: clamp(1.4rem, 3vw, 1.85rem);
		max-width: 18ch;
	}
}

@media (max-width: 699px) {
	.ra-feed .ra-post-list > .wp-block-post:first-child .wp-block-post-title {
		font-size: clamp(1.3rem, 5vw, 1.65rem);
	}
}

/* Pagination */
.ra-feed .wp-block-query-pagination {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ra-border);
	font-family: "Barlow", sans-serif;
	grid-column: 1 / -1;
}

.ra-feed .wp-block-query-pagination a {
	text-decoration: none;
	color: var(--ra-muted);
}

.ra-feed .wp-block-query-pagination a:hover,
.ra-feed .wp-block-query-pagination .current {
	color: var(--ra-text);
}

/* Archive title */
.ra-archive-header {
	padding: clamp(1.75rem, 4vw, 3rem) 0 1rem;
	border-bottom: 1px solid var(--ra-border);
	margin-bottom: 1.5rem;
}

.ra-archive-header .wp-block-query-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* --- Single article hero ----------------------------------- */

.ra-hero {
	background: var(--ra-surface);
	border-bottom: 1px solid var(--ra-border);
	margin-bottom: 0 !important;
}

/* Bild-Hero: Bild volle Breite, darunter Titelband */
.ra-hero .ra-hero-media {
	margin: 0 !important;
	max-width: none;
	width: 100%;
}

.ra-hero .ra-hero-media:not(:has(img)) {
	display: none;
}

.ra-hero .ra-hero-media figure,
.ra-hero .ra-hero-media .wp-block-post-featured-image {
	margin: 0;
	width: 100%;
	max-width: none;
}

.ra-hero .ra-hero-media .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.ra-hero .ra-hero-media img {
	display: block;
	width: 100%;
	max-height: min(68vh, 560px);
	object-fit: cover;
	background: #000;
}

.ra-hero .ra-hero-media figcaption,
.ra-hero .ra-hero-media .ra-image-credit,
.ra-hero .wp-element-caption.ra-image-credit {
	display: block;
	margin: 0;
	padding: 0.65rem max(1rem, 3vw);
	background: #0d1016;
	border-bottom: 1px solid var(--ra-border);
	font-family: "Barlow", sans-serif;
	font-size: 0.8125rem;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--ra-muted);
	line-height: 1.4;
}

.ra-hero .ra-hero-media figcaption::before,
.ra-hero .ra-image-credit::before {
	content: none;
}

.ra-hero .ra-hero-copy {
	padding-top: clamp(1.75rem, 4vw, 2.75rem) !important;
	padding-bottom: clamp(1.75rem, 4vw, 2.75rem) !important;
}

/* Nur-Headline-Hero: mehr Luft, größere Typo */
body.ra-hero-text-only .ra-hero .ra-hero-copy,
.ra-hero:not(:has(.ra-hero-media img)) .ra-hero-copy {
	padding-top: clamp(3rem, 8vw, 5.5rem) !important;
	padding-bottom: clamp(2.5rem, 6vw, 4rem) !important;
}

.ra-hero .wp-block-post-title {
	margin: 0 0 1rem;
	font-size: clamp(1.85rem, 4.5vw, 3rem);
	max-width: 22ch;
}

body.ra-hero-text-only .ra-hero .wp-block-post-title,
.ra-hero:not(:has(.ra-hero-media img)) .wp-block-post-title {
	font-size: clamp(2.1rem, 5.5vw, 3.5rem);
	max-width: 18ch;
}

.ra-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	font-family: "Barlow", sans-serif;
}

.ra-hero-meta .wp-block-post-date,
.ra-hero-meta .wp-block-post-terms {
	margin: 0;
}

.ra-hero-meta .wp-block-post-terms a {
	color: var(--ra-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.ra-hero-meta .wp-block-post-terms a:hover {
	color: var(--ra-link);
	border-bottom-color: var(--ra-link);
}

.ra-hero-meta .wp-block-post-terms:not(:empty)::before {
	content: "·";
	margin-right: 1.25rem;
	color: var(--ra-border);
	pointer-events: none;
}

/* --- Article body ------------------------------------------ */

.ra-article-body {
	padding-top: clamp(2rem, 4vw, 3rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.ra-article-body .entry-content,
.ra-article-body .wp-block-post-content {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.ra-article-body .wp-block-post-content > * + * {
	margin-top: 1.25em;
}

.ra-article-body .wp-block-post-content h2 {
	margin-top: 2em;
	margin-bottom: 0.6em;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--ra-border);
}

.ra-article-body .wp-block-post-content h3 {
	margin-top: 1.6em;
	font-size: 1.2rem;
}

.ra-article-body .wp-block-post-content a {
	text-underline-offset: 0.15em;
}

.ra-article-body .wp-block-post-content figure {
	margin: 2rem 0;
}

.ra-article-body .wp-block-post-content figcaption,
.ra-article-body .wp-block-image figcaption,
.ra-article-body .ra-image-credit {
	margin-top: 0.5rem;
	padding: 0.4rem 0 0;
	font-family: "Barlow", sans-serif;
	font-size: 0.8125rem;
	font-style: normal;
	color: var(--ra-muted);
	border-top: 1px solid var(--ra-border);
}

.ra-article-body .wp-block-post-content ul,
.ra-article-body .wp-block-post-content ol {
	padding-left: 1.25em;
}

.ra-article-body .wp-block-post-content blockquote {
	margin: 1.75em 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 3px solid var(--ra-brass);
	color: var(--ra-muted);
	font-style: italic;
}

/* --- Page template ----------------------------------------- */

.ra-page-header {
	padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem;
	border-bottom: 1px solid var(--ra-border);
	margin-bottom: 2rem;
}

.ra-page-header .wp-block-post-title {
	margin: 0;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
}

/* --- Footer ------------------------------------------------ */

.ra-site-footer {
	border-top: 1px solid var(--ra-border);
	background: #07090c;
	margin-top: auto;
}

.ra-site-footer .ra-footer-inner {
	padding-top: 2rem !important;
	padding-bottom: 2rem !important;
	gap: 1rem;
	align-items: center;
}

.ra-site-footer .wp-block-site-title a {
	text-decoration: none;
	font-size: 0.95rem;
	color: var(--ra-muted);
}

.ra-site-footer a {
	color: var(--ra-muted);
	text-decoration: none;
}

.ra-site-footer a:hover {
	color: var(--ra-text);
}

.ra-site-footer p {
	margin: 0;
	color: var(--ra-muted);
	font-family: "Barlow", sans-serif;
	font-size: 0.875rem;
}

/* --- Comments (de-emphasize) ------------------------------- */

.ra-article-body .wp-block-comments,
.ra-article-body .comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ra-border);
	font-family: "Barlow", sans-serif;
	font-size: 0.9rem;
	color: var(--ra-muted);
}

/* --- Search / 404 ------------------------------------------ */

.ra-empty-state {
	padding: clamp(3rem, 8vw, 6rem) 0;
	text-align: left;
}

.ra-empty-state .wp-block-search__input {
	background: var(--ra-raised);
	border: 1px solid var(--ra-border);
	color: var(--ra-text);
	padding: 0.65rem 0.85rem;
}

.ra-empty-state .wp-block-search__button {
	background: var(--ra-link);
	color: var(--ra-bg);
	border: none;
	font-family: "Barlow", sans-serif;
	font-weight: 600;
}

/* --- Utility: hide empty featured images globally ---------- */

.wp-block-post-featured-image:empty {
	display: none;
}

/* Plugin caption override (dark) */
.wp-block-post-featured-image .wp-element-caption,
.wp-block-post-featured-image figcaption.ra-image-credit {
	color: var(--ra-muted) !important;
	font-style: normal !important;
}
