/* ==========================================================================
   Relational Horizons — cinematic layer
   Contemplative, luminous, reverent. All motion is slow and is switched off
   for prefers-reduced-motion. Classes follow the content contract (rh-*).
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--rh-night: var(--wp--preset--color--night, #0E1220);
	--rh-night-deep: var(--wp--preset--color--night-deep, #080B14);
	--rh-paper: var(--wp--preset--color--paper, #F5F1E8);
	--rh-sand: var(--wp--preset--color--sand, #EDE6D6);
	--rh-card: var(--wp--preset--color--card, #FBF8F1);
	--rh-ink: var(--wp--preset--color--ink, #1B1A17);
	--rh-muted: var(--wp--preset--color--muted, #5A554B);
	--rh-line: var(--wp--preset--color--line, #D9CFBA);
	--rh-ivory: var(--wp--preset--color--ivory, #F3ECDC);
	--rh-mist: var(--wp--preset--color--mist, #CFC6B4);
	--rh-gold: var(--wp--preset--color--gold, #C9A75E);
	--rh-gold-light: var(--wp--preset--color--gold-light, #DDBE78);
	--rh-gold-text: var(--wp--preset--color--gold-text, #7D5F22);

	--rh-display: var(--wp--preset--font-family--display, "Cormorant Garamond", Garamond, serif);
	--rh-body: var(--wp--preset--font-family--body, "Source Serif 4", Georgia, serif);
	--rh-label: var(--wp--preset--font-family--label, Jost, "Helvetica Neue", Arial, sans-serif);
	--rh-arabic: var(--wp--preset--font-family--arabic, Amiri, "Traditional Arabic", serif);

	--rh-measure: var(--wp--style--global--content-size, 680px);
	--rh-wide: var(--wp--style--global--wide-size, 1200px);
	--rh-still-max: 1000px;
	--rh-gutter: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 1.5rem));
	--rh-section-y: clamp(3rem, 6.5vw, 5.25rem);
	--rh-section-join: clamp(0.5rem, 1.5vw, 1.25rem);
	--rh-header-h: 76px;

	--rh-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--rh-ease-film: cubic-bezier(0.65, 0, 0.35, 1);
	--rh-slow: 1.6s;

	/* Context colours: overridden inside night surfaces. */
	--rh-fg: var(--rh-ink);
	--rh-fg-soft: #3A372F;
	--rh-accent: var(--rh-gold-text);
	--rh-accent-strong: #4F3B12;
	--rh-rule: rgba(125, 95, 34, 0.32);

	--rh-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 40 40'%3E%3Cg fill='none' stroke='%23C9A75E' stroke-width='1.2'%3E%3Crect x='-11' y='-11' width='22' height='22'/%3E%3Crect x='-11' y='-11' width='22' height='22' transform='rotate(45)'/%3E%3C/g%3E%3Ccircle r='2.6' fill='%23C9A75E'/%3E%3C/svg%3E");
	--rh-star-open: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 40 40'%3E%3Cg fill='none' stroke='%23C9A75E' stroke-width='1'%3E%3Crect x='-11' y='-11' width='22' height='22'/%3E%3Crect x='-11' y='-11' width='22' height='22' transform='rotate(45)'/%3E%3C/g%3E%3C/svg%3E");
	--rh-rosette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-200 -200 400 400'%3E%3Cg fill='none' stroke='%23C9A75E' stroke-width='1'%3E%3Crect x='-120' y='-120' width='240' height='240' stroke-opacity='.55'/%3E%3Crect x='-120' y='-120' width='240' height='240' transform='rotate(45)' stroke-opacity='.55'/%3E%3Crect x='-120' y='-120' width='240' height='240' transform='rotate(22.5)' stroke-opacity='.22'/%3E%3Crect x='-120' y='-120' width='240' height='240' transform='rotate(67.5)' stroke-opacity='.22'/%3E%3Ccircle r='172' stroke-opacity='.25' stroke-dasharray='1 9'/%3E%3Ccircle r='86' stroke-opacity='.35'/%3E%3C/g%3E%3C/svg%3E");
	--rh-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--rh-ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 24'%3E%3Cdefs%3E%3ClinearGradient id='l' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23C9A75E' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23C9A75E'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23C9A75E' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23C9A75E'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='11.5' width='108' height='1' fill='url(%23l)'/%3E%3Crect x='152' y='11.5' width='108' height='1' fill='url(%23r)'/%3E%3Cg transform='translate(130 12)' fill='none' stroke='%23C9A75E' stroke-width='1'%3E%3Crect x='-7' y='-7' width='14' height='14'/%3E%3Crect x='-7' y='-7' width='14' height='14' transform='rotate(45)'/%3E%3C/g%3E%3Ccircle cx='130' cy='12' r='1.8' fill='%23C9A75E'/%3E%3C/svg%3E");
}

/* Night surfaces flip the context colours. */
.rh-band-dark,
.rh-hero,
.rh-card-dark,
.rh-header,
.rh-footer,
.rh-surface-night,
.rh-nodes > .wp-block-column:first-child {
	--rh-fg: var(--rh-ivory);
	--rh-fg-soft: var(--rh-mist);
	--rh-accent: var(--rh-gold-light);
	--rh-accent-strong: #EBD39C;
	--rh-rule: rgba(201, 167, 94, 0.3);
}

/* 2. Base ------------------------------------------------------------------ */
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--rh-paper);
	color: var(--rh-ink);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-optical-sizing: auto;
}

.wp-site-blocks {
	overflow-x: clip;
}

.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part {
	margin-block-start: 0;
}

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

::selection {
	background: rgba(221, 190, 120, 0.45);
	color: var(--rh-ink);
}

:where(a) {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
	transition: color 0.4s var(--rh-ease), text-decoration-color 0.4s var(--rh-ease);
}

:where(.rh-band-dark, .rh-hero, .rh-card-dark, .rh-surface-night) a:where(:not(.wp-block-button__link)) {
	color: var(--rh-gold-light);
}

:where(.rh-band-dark, .rh-hero, .rh-card-dark, .rh-surface-night) a:where(:not(.wp-block-button__link)):hover {
	color: #EBD39C;
}

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

:where(.rh-band-dark, .rh-hero, .rh-header, .rh-footer) :focus-visible {
	outline-color: var(--rh-gold-light);
}

/* Skip link (WordPress injects .skip-link for block themes). */
.skip-link.screen-reader-text:focus,
.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 100000;
	clip: auto !important;
	clip-path: none !important;
	width: auto !important;
	height: auto !important;
	padding: 14px 22px !important;
	background: var(--rh-gold) !important;
	color: var(--rh-night) !important;
	font-family: var(--rh-label);
	font-size: 0.875rem !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 999px;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

h1, h2, h3, h4 {
	font-family: var(--rh-display);
	text-wrap: balance;
	color: inherit;
}

p {
	text-wrap: pretty;
}

em, i {
	font-style: italic;
}

.rh-section em,
.rh-section-sand em,
.wp-block-post-content > p em {
	color: var(--rh-accent-strong);
}

[lang="ar"],
[lang="ur"],
.rh-calligraphy {
	font-family: var(--rh-arabic);
	font-style: normal;
	letter-spacing: 0;
}

/* Eyebrow / label utility (optional class for small uppercase labels). */
.rh-label,
.rh-eyebrow {
	font-family: var(--rh-label);
	font-size: 0.75rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--rh-accent);
	line-height: 1.5;
}

/* Separator: a gold hairline with the eight-point star. */
.wp-block-separator,
hr.wp-block-separator {
	border: 0 !important;
	height: 24px !important;
	max-width: 260px !important;
	margin-inline: auto !important;
	margin-block: clamp(2.5rem, 6vw, 4rem) !important;
	background: var(--rh-ornament) center / contain no-repeat !important;
	opacity: 1 !important;
	color: transparent !important;
}

/* 3. Header ---------------------------------------------------------------- */
.rh-header-part,
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 60;
}

.rh-header {
	background: rgba(14, 18, 32, 0.97);
	color: var(--rh-ivory);
	border-bottom: 1px solid rgba(201, 167, 94, 0.22);
	transition: background-color 0.8s var(--rh-ease), border-color 0.8s var(--rh-ease), backdrop-filter 0.8s var(--rh-ease);
}

@supports (backdrop-filter: blur(8px)) {
	.rh-header {
		background: rgba(14, 18, 32, 0.82);
		backdrop-filter: blur(14px) saturate(120%);
		-webkit-backdrop-filter: blur(14px) saturate(120%);
	}
}

/* Over a first-block hero, the header floats transparently until scroll. */
body:has(.wp-block-post-content > .rh-hero:first-child) header.wp-block-template-part,
body:has(.wp-block-post-content > .is-style-rh-hero:first-child) header.wp-block-template-part,
body:has(main > .rh-hero:first-child) header.wp-block-template-part,
body:has(main > .rh-gallery-head:first-child) header.wp-block-template-part {
	margin-bottom: calc(-1 * var(--rh-header-h));
}

body:has(.wp-block-post-content > .rh-hero:first-child) .rh-header:not(.is-scrolled),
body:has(.wp-block-post-content > .is-style-rh-hero:first-child) .rh-header:not(.is-scrolled),
body:has(main > .rh-hero:first-child) .rh-header:not(.is-scrolled),
body:has(main > .rh-gallery-head:first-child) .rh-header:not(.is-scrolled) {
	background: linear-gradient(180deg, rgba(8, 11, 20, 0.7), rgba(8, 11, 20, 0));
	border-bottom-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.rh-header__inner {
	max-width: var(--rh-wide);
	margin-inline: auto;
	min-height: var(--rh-header-h);
	gap: 12px 28px;
}

.rh-wordmark {
	gap: 3px !important;
}

.rh-header .wp-block-site-title,
.rh-footer .wp-block-site-title {
	margin: 0;
	font-family: var(--rh-display);
	letter-spacing: 0.02em;
}

.rh-header .wp-block-site-title a,
.rh-footer .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--rh-ivory);
	text-decoration: none;
}

.rh-header .wp-block-site-title a::before {
	content: "";
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	background: var(--rh-star) center / contain no-repeat;
	transition: transform 2.4s var(--rh-ease);
}

.rh-header .wp-block-site-title a:hover::before {
	transform: rotate(45deg);
}

.rh-header .wp-block-site-tagline {
	margin: 0 0 0 48px;
	color: var(--rh-gold);
	line-height: 1.2;
}

.rh-header .wp-block-navigation {
	color: #E2DACB;
	gap: 0 26px;
}

.rh-header .wp-block-navigation .wp-block-navigation-item__content {
	color: #E2DACB;
	text-decoration: none;
	padding-block: 13px;
	min-height: 44px;
	position: relative;
}

.rh-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	height: 1px;
	background: var(--rh-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.7s var(--rh-ease);
}

.rh-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.rh-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.rh-header .wp-block-navigation [aria-current="page"] {
	color: var(--rh-gold);
}

.rh-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.rh-header .wp-block-navigation [aria-current="page"]::after {
	transform: scaleX(1);
}

/* Concepts dropdown (core/navigation-submenu): a small night panel with the
   five concept pages. Core handles hover / focus-within / click opening. */
.rh-header .wp-block-navigation .wp-block-navigation__submenu-icon {
	width: 24px;
	height: 44px;
	margin-left: 2px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: var(--rh-gold);
	cursor: pointer;
}

.rh-header .wp-block-navigation .wp-block-navigation__submenu-icon svg {
	width: 10px;
	height: 10px;
	stroke: currentColor;
	transition: transform 0.5s var(--rh-ease);
}

.rh-header .wp-block-navigation .has-child:hover > .wp-block-navigation__submenu-icon svg,
.rh-header .wp-block-navigation .has-child:focus-within > .wp-block-navigation__submenu-icon svg,
.rh-header .wp-block-navigation .wp-block-navigation__submenu-icon[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.rh-header .wp-block-navigation .wp-block-navigation__submenu-container {
	min-width: 330px !important;
	padding: 10px 0 !important;
	background: rgba(14, 18, 32, 0.98) !important;
	border: 1px solid rgba(201, 167, 94, 0.28) !important;
	border-radius: 4px;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
	color: #E2DACB !important;
}

/* A hairline gold cap on the panel. */
.rh-header .wp-block-navigation .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 18px;
	width: 36px;
	height: 1px;
	background: var(--rh-gold);
}

.rh-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item {
	width: 100%;
}

.rh-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	padding: 9px 22px !important;
	font-family: var(--rh-display);
	font-size: 1.1875rem;
	letter-spacing: 0.01em;
	text-transform: none;
	line-height: 1.25;
	white-space: normal;
}

.rh-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	content: none;
}

.rh-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.rh-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background: rgba(201, 167, 94, 0.08);
}

/* Parent stays lit while a child page is open. */
.rh-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content,
.rh-header .wp-block-navigation .has-child:has([aria-current="page"]) > .wp-block-navigation-item__content {
	color: var(--rh-gold);
}

/* Overlay toggles. */
.rh-header .wp-block-navigation__responsive-container-open,
.rh-header .wp-block-navigation__responsive-container-close {
	color: var(--rh-ivory);
	min-width: 48px;
	min-height: 48px;
	align-items: center;
	justify-content: center;
}

@media (max-width: 599px) {
	.rh-header .wp-block-navigation__responsive-container-open {
		display: inline-flex;
	}
}

/* Six items plus the wordmark do not fit one calm line below ~1100px: use the
   overlay there too instead of wrapping the menu onto a second row. Core's
   script only toggles .is-menu-open, so this is purely presentational. */
@media (min-width: 600px) and (max-width: 1099px) {
	.rh-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex;
	}

	.rh-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Overlay: a quiet night screen. */
.rh-header .wp-block-navigation__responsive-container.is-menu-open {
	background: radial-gradient(120% 80% at 50% 0%, #1A2036 0%, var(--rh-night) 55%, var(--rh-night-deep) 100%) !important;
	color: var(--rh-ivory) !important;
	padding: 20px clamp(20px, 7vw, 56px) 40px !important;
}

.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: 14px;
	right: clamp(8px, 4vw, 28px);
}

.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 64px;
	align-items: flex-start;
	max-width: 560px;
	margin-inline: 0;
}

.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	align-items: stretch;
	width: 100%;
}

.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	border-bottom: 1px solid rgba(201, 167, 94, 0.14);
}

.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--rh-display);
	font-size: clamp(1.75rem, 6vw, 2.25rem);
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	padding-block: 10px;
}

.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: none;
}

/* Concept pages listed beneath Concepts, smaller and indented with a gold rule. */
.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	position: static !important;
	min-width: 0 !important;
	width: 100%;
	margin: 0 0 12px 2px !important;
	padding: 0 0 0 18px !important;
	background: transparent !important;
	border: 0 !important;
	border-left: 1px solid rgba(201, 167, 94, 0.35) !important;
	border-radius: 0;
	box-shadow: none;
	opacity: 1 !important;
	visibility: visible !important;
	height: auto !important;
	overflow: visible !important;
}

.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container::before {
	content: none;
}

.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 1.25rem;
	font-style: italic;
	color: var(--rh-mist);
	padding: 8px 0 !important;
}

.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container [aria-current="page"] {
	color: var(--rh-gold-light);
}

.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
	display: none;
}

/* 4. Footer ---------------------------------------------------------------- */
.rh-footer {
	position: relative;
	overflow: hidden;
	background: var(--rh-night);
	color: var(--rh-mist);
	border-top: 1px solid rgba(201, 167, 94, 0.25);
}

.rh-footer::before {
	content: "";
	position: absolute;
	right: -120px;
	bottom: -160px;
	width: 520px;
	height: 520px;
	background: var(--rh-rosette) center / contain no-repeat;
	opacity: 0.35;
	pointer-events: none;
	animation: rh-turn 240s linear infinite;
}

.rh-footer > * {
	position: relative;
	z-index: 1;
}

.rh-footer__inner {
	max-width: var(--rh-wide);
	margin-inline: auto;
}

.rh-footer__motto {
	font-family: var(--rh-display);
	font-style: italic;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.35;
	color: var(--rh-ivory);
	max-width: 820px;
	margin: 0;
}

.rh-footer__meta {
	padding-top: 24px;
	border-top: 1px solid rgba(201, 167, 94, 0.2);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.rh-footer__credit {
	margin: 0;
	max-width: 640px;
}

.rh-footer__links {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
	font-family: var(--rh-label);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.rh-footer a {
	color: #E2DACB;
	text-decoration: none;
	display: inline-block;
	padding-block: 12px;
}

.rh-footer a:hover {
	color: var(--rh-gold);
}

/* 5. Full-bleed helper ------------------------------------------------------
   Bands are meant to be alignfull; if an author forgets, still bleed. */
:where(.wp-block-post-content, .entry-content) > :is(.rh-hero, .rh-section, .rh-band-dark, .rh-section-sand, .rh-contribute):not(.alignfull) {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

/* A nested, non-full group loses its global padding in core's layout rules;
   bled bands must keep a gutter so text never touches the screen edge. */
:where(.wp-block-post-content, .entry-content) > :is(.rh-section, .rh-band-dark, .rh-section-sand, .rh-contribute) {
	padding-left: var(--wp--style--root--padding-left, var(--rh-gutter)) !important;
	padding-right: var(--wp--style--root--padding-right, var(--rh-gutter)) !important;
}

/* Full bands sit flush against each other: no paper gaps between scenes. */
.wp-block-post-content > :is(.rh-hero, .rh-section, .rh-section-sand, .rh-band-dark, .rh-contribute, .rh-questions.alignfull),
.wp-block-post-content > .wp-block-cover.alignfull,
.wp-block-post-content > .wp-block-image.alignfull,
.wp-block-post-content > .wp-block-group.alignfull.has-background {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* 6. Hero (core/cover.rh-hero) ---------------------------------------------- */
.wp-block-cover.rh-hero,
.rh-hero {
	--rh-hero-h: min(92svh, 1000px);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: max(560px, var(--rh-hero-h));
	align-items: flex-end !important;
	justify-content: center !important;
	padding: calc(var(--rh-header-h) + clamp(2rem, 6vw, 4rem)) var(--rh-gutter) clamp(4.5rem, 9vw, 6.5rem) !important;
	background-color: var(--rh-night);
	color: var(--rh-ivory);
}

.wp-block-post-content > .rh-hero:not(:first-child),
.rh-hero.rh-hero-compact {
	--rh-hero-h: min(72svh, 760px);
}

/* A hero that carries only a title (e.g. Concepts) needs less height than the
   editor's 85vh; overrides the cover's inline min-height. */
.rh-hero:has(> .wp-block-cover__inner-container > :only-child) {
	min-height: max(480px, min(64vh, 680px)) !important;
}

.rh-hero .wp-block-cover__image-background,
.rh-hero .wp-block-cover__video-background {
	z-index: 0 !important;
	transform-origin: 62% 40%;
	animation: rh-kenburns 46s ease-in-out infinite alternate;
	will-change: transform;
}

.rh-hero .wp-block-cover__background {
	z-index: 1 !important;
}

/* Without a chosen overlay colour core paints the dim layer black; use the
   theme's night blue instead (the preview shows the same). */
.wp-block-cover.rh-hero .wp-block-cover__background:not([class*="-background-color"]) {
	background-color: var(--rh-night);
}

/* Legibility: a slow dusk gradient plus vignette above the image. */
.rh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(120% 90% at 50% 40%, rgba(8, 11, 20, 0) 45%, rgba(8, 11, 20, 0.55) 100%),
		linear-gradient(180deg, rgba(8, 11, 20, 0.55) 0%, rgba(8, 11, 20, 0.08) 28%, rgba(8, 11, 20, 0.28) 55%, rgba(8, 11, 20, 0.94) 100%);
}

/* Film grain. */
.rh-hero::after {
	content: "";
	position: absolute;
	inset: -50%;
	z-index: 2;
	pointer-events: none;
	min-height: 0;
	background: var(--rh-grain);
	opacity: 0.07;
	mix-blend-mode: overlay;
	animation: rh-grain 9s steps(9) infinite;
}

.rh-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: var(--rh-wide);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: end;
	row-gap: 0;
	color: var(--rh-ivory);
}

.rh-hero .wp-block-cover__inner-container > * {
	grid-column: 1;
	max-width: 46rem;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-block: 0 0;
	animation: rh-rise 1.5s var(--rh-ease) both;
}

.rh-hero .wp-block-cover__inner-container > * + * {
	margin-top: clamp(1rem, 2vw, 1.5rem);
}

.rh-hero .wp-block-cover__inner-container > :nth-child(1) { animation-delay: 0.15s; }
.rh-hero .wp-block-cover__inner-container > :nth-child(2) { animation-delay: 0.35s; }
.rh-hero .wp-block-cover__inner-container > :nth-child(3) { animation-delay: 0.55s; }
.rh-hero .wp-block-cover__inner-container > :nth-child(4) { animation-delay: 0.75s; }
.rh-hero .wp-block-cover__inner-container > :nth-child(n+5) { animation-delay: 0.95s; }

.rh-hero h1,
.rh-hero .wp-block-heading:first-of-type,
.rh-hero .wp-block-post-title {
	font-family: var(--rh-display);
	font-weight: 400;
	font-size: clamp(2.75rem, 7vw, 5.6rem);
	line-height: 1.01;
	letter-spacing: -0.012em;
	color: #F7F1E3;
	text-shadow: 0 2px 40px rgba(8, 11, 20, 0.55);
}

.rh-hero h1 em,
.rh-hero h1 i {
	color: var(--rh-gold-light);
}

.rh-hero p {
	color: #E2DACB;
	font-size: clamp(1.125rem, 1.6vw, 1.3rem);
	line-height: 1.65;
	max-width: 38rem;
	text-shadow: 0 1px 24px rgba(8, 11, 20, 0.6);
}

.rh-hero .rh-hero-sub {
	font-family: var(--rh-display);
	font-style: italic;
	font-size: clamp(1.6rem, 2.8vw, 2.25rem);
	line-height: 1.25;
	color: #EFE6D2;
}

.rh-hero .rh-label,
.rh-hero .rh-eyebrow {
	color: var(--rh-gold);
}

.rh-hero .rh-calligraphy {
	position: relative;
	font-family: var(--rh-arabic);
	font-size: clamp(3.5rem, 9vw, 7.5rem);
	line-height: 1.2;
	color: var(--rh-gold-light);
	text-shadow: 0 0 40px rgba(221, 190, 120, 0.35);
	animation: rh-rise 1.8s var(--rh-ease) both, rh-shimmer 7s ease-in-out 2s infinite;
	order: -1;
	margin-bottom: 0.25rem;
	justify-self: start;
	isolation: isolate;
}

.rh-hero .rh-calligraphy::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 50%;
	width: 2.4em;
	height: 2.4em;
	translate: -50% -50%;
	background: var(--rh-rosette) center / contain no-repeat;
	opacity: 0.7;
	animation: rh-turn 160s linear infinite;
	pointer-events: none;
}

.rh-hero .wp-block-buttons {
	margin-top: clamp(1.5rem, 3vw, 2.25rem) !important;
}

/* Narrow screens: everything centred, emblem above the title. */
@media (max-width: 899px) {
	.rh-hero .wp-block-cover__inner-container > * {
		justify-self: center;
		text-align: center;
	}

	.rh-hero .rh-calligraphy {
		justify-self: center;
		font-size: clamp(3rem, 12vw, 4.75rem);
		white-space: nowrap;
		margin-bottom: 0.5rem;
	}
}

/* Wide screens: a title card. Text sits left (as a column it would otherwise
   centre inside an off-centre box), calligraphy / orbit glow at right. */
@media (min-width: 900px) {
	.rh-hero .wp-block-cover__inner-container > :not(.rh-calligraphy) {
		text-align: left;
	}

	.rh-hero .wp-block-cover__inner-container:has(> .rh-calligraphy) {
		grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
		column-gap: clamp(2rem, 6vw, 6rem);
	}

	/* One unbroken line: multi-word phrases (فناء و بقاء, وحدة الوجود) must not
	   split into two stacked fragments. */
	.rh-hero .wp-block-cover__inner-container > .rh-calligraphy {
		grid-column: 2;
		grid-row: 1 / span 6;
		align-self: center;
		justify-self: center;
		font-size: clamp(3.75rem, 5.8vw, 6.5rem);
		white-space: nowrap;
		max-width: none;
		padding-inline: 0.3em;
		margin: 0 !important;
	}
}

/* Sky: starfield, orbit, scroll cue (injected by functions.php). */
.rh-sky {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	overflow: hidden;
}

.rh-starfield {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	opacity: 0.9;
}

.rh-starfield circle {
	opacity: 0.25;
	animation: rh-twinkle var(--t, 6s) ease-in-out var(--d, 0s) infinite;
}

.rh-orbit {
	position: absolute;
	width: min(64vw, 340px);
	height: auto;
	right: 50%;
	top: calc(var(--rh-header-h) + 0.5rem);
	translate: 50% 0;
	opacity: 0.32;
	animation: rh-fade-in 3s var(--rh-ease) 0.6s both;
}

@media (min-width: 900px) {
	.rh-orbit {
		width: min(40vw, 560px);
		right: max(var(--rh-gutter), calc((100vw - var(--rh-wide)) / 2));
		top: 50%;
		translate: 0 -46%;
		opacity: 0.95;
	}
}

.rh-orbit-a,
.rh-orbit-b {
	transform-box: view-box;
	transform-origin: 240px 240px;
}

.rh-orbit-a { animation: rh-spin 140s linear infinite; }
.rh-orbit-b { animation: rh-spin 96s linear infinite reverse; }
.rh-orbit-web { animation: rh-flow 8s linear infinite; }

.rh-orbit-star {
	animation: rh-breathe 6s ease-in-out var(--d, 0s) infinite;
}

.rh-orbit-halo {
	transform-box: fill-box;
	transform-origin: center;
	animation: rh-glow 9s ease-in-out infinite;
}

.rh-scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 22px;
	width: 1px;
	height: 56px;
	overflow: hidden;
	translate: -50% 0;
	background: linear-gradient(180deg, rgba(201, 167, 94, 0), rgba(201, 167, 94, 0.35));
}

.rh-scroll-cue::after {
	content: "";
	position: absolute;
	left: 0;
	top: -30%;
	width: 1px;
	height: 30%;
	background: var(--rh-gold-light);
	animation: rh-cue 3.2s var(--rh-ease-film) infinite;
}

.rh-hero.is-offscreen *,
.rh-hero.is-offscreen::after,
.rh-band-dark.is-offscreen::before {
	animation-play-state: paused !important;
}

/* 7. Sections --------------------------------------------------------------- */
.rh-section,
.rh-section-sand {
	position: relative;
	padding-block: var(--rh-section-y) !important;
	color: var(--rh-ink);
}

.rh-section-sand {
	background-color: var(--rh-sand);
}

/* Consecutive scenes on the same ground read as one flowing chapter: the
   second one only adds a small breath instead of a full section gap. */
.rh-section:not(.rh-section-sand):not(.rh-band-dark) + .rh-section:not(.rh-section-sand):not(.rh-band-dark),
.rh-section-sand + .rh-section-sand,
.rh-band-dark + .rh-band-dark {
	padding-top: var(--rh-section-join) !important;
}

/* Images placed between scenes (directly in the post content) sit inside the
   rhythm instead of adding their own large margins on top of section padding. */
.wp-block-post-content > :is(.rh-figure, .rh-still):not(.alignfull) {
	margin-block: var(--rh-section-y) !important;
}

.wp-block-post-content > .rh-section:not(.rh-section-sand):not(.rh-band-dark) + :is(.rh-figure, .rh-still):not(.alignfull) {
	margin-top: 0 !important;
}

.wp-block-post-content > :is(.rh-figure, .rh-still):not(.alignfull) + .rh-section:not(.rh-section-sand):not(.rh-band-dark) {
	padding-top: var(--rh-section-join) !important;
}

.wp-block-post-content > :is(.rh-figure, .rh-still):not(.alignfull):has(+ .rh-section:not(.rh-section-sand):not(.rh-band-dark)) {
	margin-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.rh-section > :where(:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull)),
.rh-section-sand > :where(:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull)),
.rh-band-dark > :where(:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull)) {
	max-width: var(--rh-measure);
	margin-left: auto;
	margin-right: auto;
}

.rh-section > .alignwide,
.rh-section-sand > .alignwide,
.rh-band-dark > .alignwide {
	max-width: var(--rh-wide);
	margin-left: auto;
	margin-right: auto;
}

.rh-section h2,
.rh-section-sand h2,
.rh-band-dark h2 {
	font-size: clamp(2.25rem, 4.4vw, 3.5rem);
	line-height: 1.05;
	margin-block-end: 0.15em;
}

.rh-section h3,
.rh-section-sand h3,
.rh-band-dark h3 {
	font-size: clamp(1.6rem, 2.6vw, 2rem);
	font-weight: 500;
	line-height: 1.15;
}

.rh-section h2:not(:first-child),
.rh-section-sand h2:not(:first-child) {
	margin-block-start: clamp(3rem, 6vw, 4.5rem);
}

/* A short gold rule before section headings. */
.rh-section > h2::before,
.rh-section-sand > h2::before,
.rh-band-dark > h2::before {
	content: "";
	display: block;
	width: 44px;
	height: 1px;
	margin-bottom: 0.6em;
	background: var(--rh-gold);
	transform-origin: left;
	transition: transform 1.4s var(--rh-ease) 0.2s;
}

.rh-js .rh-reveal:not(.is-visible) > h2::before,
.rh-js h2.rh-reveal:not(.is-visible)::before {
	transform: scaleX(0);
}

.rh-section .has-text-align-center::before,
.rh-band-dark > h2.has-text-align-center::before,
.rh-section-sand > h2.has-text-align-center::before {
	margin-inline: auto;
	transform-origin: center;
}

/* Emphasised one-line statements (italic gold display). */
.rh-section .rh-statement,
.rh-section-sand .rh-statement,
.rh-band-dark .rh-statement,
.rh-statement {
	font-family: var(--rh-display);
	font-style: italic;
	font-size: clamp(1.6rem, 2.8vw, 2rem);
	line-height: 1.35;
	color: var(--rh-accent);
}

/* Night band. */
.rh-band-dark {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--rh-night);
	color: var(--rh-mist);
	padding-block: clamp(3.5rem, 7.5vw, 6rem) !important;
	--rh-lb: clamp(20px, 5vh, 48px);
}

.rh-band-dark h1,
.rh-band-dark h2,
.rh-band-dark h3,
.rh-band-dark h4 {
	color: #F7F1E3;
}

.rh-band-dark strong {
	color: var(--rh-ivory);
}

/* Grain. */
.rh-band-dark::before {
	content: "";
	position: absolute;
	inset: -50%;
	z-index: -1;
	pointer-events: none;
	background: var(--rh-grain);
	opacity: 0.06;
	mix-blend-mode: overlay;
	animation: rh-grain 9s steps(9) infinite;
}

/* Vignette + letterbox bars that open as the scene enters. */
.rh-band-dark::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(#04060C, #04060C) top / 100% 0 no-repeat,
		linear-gradient(#04060C, #04060C) bottom / 100% 0 no-repeat,
		radial-gradient(110% 80% at 50% 45%, rgba(29, 34, 56, 0.55) 0%, rgba(14, 18, 32, 0) 55%, rgba(4, 6, 12, 0.7) 100%);
	transition: background-size 2.2s var(--rh-ease-film);
}

.rh-js .rh-band-dark:not(.is-open)::after {
	background-size: 100% var(--rh-lb), 100% var(--rh-lb), 100% 100%;
}

.rh-band-dark.is-open::after {
	background-size: 100% 0, 100% 0, 100% 100%;
}

/* 8. Verse (core/quote.rh-verse) --------------------------------------------- */
.wp-block-quote.rh-verse,
.rh-verse {
	position: relative;
	max-width: min(56rem, 100%) !important;
	margin-block: clamp(2.25rem, 5vw, 3.5rem) !important;
	margin-inline: auto !important;
	padding: clamp(3.25rem, 6vw, 4.5rem) clamp(0.5rem, 4vw, 3rem) clamp(2.25rem, 4vw, 3rem) !important;
	border: 0 !important;
	text-align: center;
	font-family: var(--rh-display);
	font-style: italic;
	color: var(--rh-fg);
	background: none;
	quotes: none;
}

.rh-verse::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(260px, 70%);
	height: 24px;
	translate: -50% 0;
	background: var(--rh-ornament) center / contain no-repeat;
}

.rh-verse::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 120px;
	height: 1px;
	translate: -50% 0;
	background: linear-gradient(90deg, rgba(201, 167, 94, 0), var(--rh-gold), rgba(201, 167, 94, 0));
}

.rh-verse p {
	margin: 0 auto;
	font-family: var(--rh-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.75rem, 3.6vw, 2.85rem);
	line-height: 1.3;
	letter-spacing: -0.005em;
	color: inherit;
	text-wrap: balance;
	transition: opacity 2.2s var(--rh-ease), filter 2.2s var(--rh-ease), letter-spacing 2.6s var(--rh-ease);
}

.rh-verse p + p {
	margin-top: 0.4em;
}

.rh-verse cite,
.rh-verse .wp-block-quote__citation,
.rh-verse footer {
	display: block;
	margin-top: 1.6rem;
	font-family: var(--rh-label);
	font-style: normal;
	font-size: 0.8125rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--rh-accent);
}

.rh-verse cite::before {
	content: none;
}

.rh-verse [lang="ar"],
.rh-verse .rh-calligraphy {
	font-family: var(--rh-arabic);
	font-style: normal;
	font-size: 1.15em;
	color: var(--rh-accent);
}

.rh-media .rh-verse p {
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.rh-band-dark .rh-verse p {
	color: #F7F1E3;
	text-shadow: 0 0 30px rgba(221, 190, 120, 0.12);
}

/* Larger, quieter verse inside a night band reads like a title card. */
.rh-band-dark .rh-verse {
	margin-block: clamp(1.5rem, 4vw, 3rem) !important;
}

/* 9. Figures and film stills ----------------------------------------------- */
.rh-figure,
.rh-still {
	position: relative;
	margin-block: clamp(2rem, 4.5vw, 3.5rem);
}

/* Images keep their natural size or the width set in the editor (core/image
   `width`, written inline on the <img>); they are only ever scaled DOWN. */
.rh-figure img,
.rh-still img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
	border-radius: 2px;
}

/* Unsized figures never tower over the reading column. */
.rh-figure:not(.is-resized):not(.alignfull) img,
.rh-still:not(.is-resized):not(.alignfull) img {
	width: auto;
	max-height: min(70vh, 680px);
}

.rh-figure figcaption,
.rh-still figcaption,
.rh-figure .wp-element-caption,
.rh-still .wp-element-caption {
	margin-top: 0.9rem;
	font-family: var(--rh-label);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rh-muted);
	text-align: center;
}

.rh-band-dark .rh-figure figcaption,
.rh-band-dark .rh-still figcaption {
	color: var(--rh-mist);
}

/* Wide stills: framed at their natural proportion, never wider than
   --rh-still-max (~1000px) nor taller than ~70vh; the frame hugs the image. */
.rh-figure.alignwide,
.rh-still.alignwide {
	width: fit-content;
	max-width: min(var(--rh-still-max), 100%) !important;
	margin-inline: auto !important;
}

.rh-figure.alignwide img,
.rh-still.alignwide img {
	width: auto;
	max-width: 100%;
	max-height: 70vh;
}

/* Full bleed: a cinematic band, parallax-ready. */
.rh-figure.alignfull,
.rh-still.alignfull {
	overflow: hidden;
	margin-block: 0;
}

.rh-figure.alignfull img,
.rh-still.alignfull img {
	width: 100%;
	max-height: 80vh;
	object-fit: cover;
	border-radius: 0;
}

/* Parallax headroom only when the motion script is running, only for
   full-bleed bands (or an explicit .rh-parallax), and only on larger screens. */
@media (min-width: 768px) {
	.rh-js .rh-figure.alignfull img,
	.rh-js .rh-still.alignfull img,
	.rh-js .rh-parallax img {
		scale: 1.08;
		will-change: translate;
	}
}

/* Thin banner strips (marked by the motion script, ratio > 3:1) become
   quiet decorative bands: no heavy matte, soft feathered ends, gold hairlines. */
.rh-figure.rh-is-band,
.rh-still.rh-is-band {
	max-width: min(880px, 100%) !important;
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.rh-figure.rh-is-band::before,
.rh-figure.rh-is-band::after,
.rh-still.rh-is-band::before,
.rh-still.rh-is-band::after {
	content: "";
	display: block;
	height: 1px;
	margin: 0 auto;
	width: 60%;
	background: linear-gradient(90deg, rgba(201, 167, 94, 0), var(--rh-gold), rgba(201, 167, 94, 0));
	opacity: 0.7;
}

.rh-figure.rh-is-band::before,
.rh-still.rh-is-band::before {
	margin-bottom: clamp(10px, 1.6vw, 16px);
}

.rh-figure.rh-is-band::after,
.rh-still.rh-is-band::after {
	margin-top: clamp(10px, 1.6vw, 16px);
}

.rh-figure.rh-is-band img,
.rh-still.rh-is-band img {
	max-height: 260px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
	border-radius: 0;
}

.rh-parallax {
	overflow: hidden;
}

.rh-figure.alignfull figcaption,
.rh-still.alignfull figcaption {
	padding-inline: var(--rh-gutter);
	padding-bottom: 1rem;
}

/* Floats become film stills beside the text. */
.rh-figure.alignleft,
.rh-figure.alignright,
.rh-still.alignleft,
.rh-still.alignright {
	max-width: min(46%, 360px);
	margin-block: 0.4rem 1.5rem;
}

/* Floats sit on the edge of the reading column (not the band edge), and on
   wide screens step slightly outside it, like a still pinned beside the text. */
.rh-figure.alignleft,
.rh-still.alignleft {
	float: left;
	margin-right: clamp(1.25rem, 3vw, 2.5rem);
	margin-left: max(0px, calc((100% - var(--rh-measure)) / 2));
}

.rh-figure.alignright,
.rh-still.alignright {
	float: right;
	margin-left: clamp(1.25rem, 3vw, 2.5rem);
	margin-right: max(0px, calc((100% - var(--rh-measure)) / 2));
}

@media (min-width: 1180px) {
	.rh-figure.alignleft,
	.rh-still.alignleft {
		margin-left: max(0px, calc((100% - var(--rh-measure)) / 2 - 120px));
	}

	.rh-figure.alignright,
	.rh-still.alignright {
		margin-right: max(0px, calc((100% - var(--rh-measure)) / 2 - 120px));
	}
}

@media (max-width: 599px) {
	.rh-figure.alignleft,
	.rh-figure.alignright,
	.rh-still.alignleft,
	.rh-still.alignright {
		float: none;
		max-width: 100%;
		margin: 2rem 0 !important;
	}
}

.rh-figure.aligncenter,
.rh-still.aligncenter {
	margin-inline: auto;
	display: table;
}

/* A centred image with an explicit editor width may be wider than the reading
   column (e.g. 760px / 957px source sizes): let it use up to the wide size. */
.rh-figure.aligncenter.is-resized,
.rh-still.aligncenter.is-resized,
.wp-block-image.aligncenter.is-resized:is(.rh-figure, .rh-still) {
	max-width: min(100%, var(--rh-wide)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Film still: dark matte, hairline frame, vignette. */
.rh-still {
	padding: clamp(6px, 1vw, 12px);
	background: var(--rh-night);
	box-shadow: 0 0 0 1px rgba(201, 167, 94, 0.35), 0 40px 80px -40px rgba(14, 18, 32, 0.65);
	border-radius: 3px;
}

.rh-still img {
	-webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 62%, rgba(0, 0, 0, 0.72) 100%);
	mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 62%, rgba(0, 0, 0, 0.72) 100%);
	clip-path: inset(0 0 0 0);
	transition: clip-path 2s var(--rh-ease-film), opacity 1.8s var(--rh-ease);
}

.rh-still figcaption,
.rh-still .wp-element-caption {
	color: var(--rh-mist);
	margin-top: 0;
	padding: 0.9rem 0.5rem 0.4rem;
}

.rh-still.alignfull {
	padding: 0;
	box-shadow: none;
	border-radius: 0;
}

.rh-still.alignfull img {
	-webkit-mask-image: none;
	mask-image: none;
}

.rh-still.alignfull::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(120% 90% at 50% 50%, rgba(8, 11, 20, 0) 55%, rgba(8, 11, 20, 0.6) 100%);
}

/* 10. Media & text ---------------------------------------------------------- */
.rh-media.wp-block-media-text {
	position: relative;
	column-gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	margin-block: clamp(2rem, 5vw, 3.5rem);
	background: none;
}

/* First / only child of a section: the section padding is the breath. */
.rh-section > .rh-media.wp-block-media-text:first-child,
.rh-band-dark > .rh-media.wp-block-media-text:first-child {
	margin-top: 0;
}

.rh-section > .rh-media.wp-block-media-text:last-child,
.rh-band-dark > .rh-media.wp-block-media-text:last-child {
	margin-bottom: 0;
}

/* Honour the editor's vertical alignment (top is the content default). */
.rh-media.wp-block-media-text.is-vertically-aligned-top,
.rh-media.wp-block-media-text.is-vertically-aligned-top > .wp-block-media-text__media,
.rh-media.wp-block-media-text.is-vertically-aligned-top > .wp-block-media-text__content {
	align-items: start;
	align-self: start;
}

.rh-media.wp-block-media-text.is-vertically-aligned-bottom > * {
	align-self: end;
}

/* The media column keeps the set mediaWidth; the picture inside keeps its own
   proportion (no crop), capped in height, and the frame hugs it. */
.rh-media .wp-block-media-text__media {
	position: relative;
	width: fit-content;
	max-width: 100%;
	overflow: hidden;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(201, 167, 94, 0.3), 0 40px 80px -44px rgba(14, 18, 32, 0.7);
	background: var(--rh-night);
}

/* The picture rests on the outer edge of the wide area, like the text does. */
.rh-media:not(.has-media-on-the-right) .wp-block-media-text__media {
	justify-self: start;
}

.rh-media.has-media-on-the-right .wp-block-media-text__media {
	justify-self: end;
}

.rh-media .wp-block-media-text__media img,
.rh-media .wp-block-media-text__media video {
	display: block;
	width: auto !important;
	max-width: 100% !important;
	height: auto;
	max-height: 560px;
	margin-inline: auto;
	transition: transform 2.4s var(--rh-ease), clip-path 2s var(--rh-ease-film);
}

/* An explicitly cropped media-text (editor "crop to fill") keeps its crop. */
.rh-media.is-image-fill .wp-block-media-text__media,
.rh-media.is-image-fill-element .wp-block-media-text__media {
	width: auto;
	justify-self: stretch;
}

.rh-media.is-image-fill-element .wp-block-media-text__media img {
	width: 100% !important;
	height: 100%;
	max-height: none;
	object-fit: cover;
}

/* Desktop: when the text runs long, the picture stays in view beside it. */
@media (min-width: 782px) {
	.rh-media.is-vertically-aligned-top .wp-block-media-text__media {
		position: sticky;
		top: calc(var(--rh-header-h) + 2rem);
	}

	/* Inside an overflow-clipped band, sticky would only push the image down. */
	:is(.rh-band-dark, .rh-contribute, .rh-card-dark) .rh-media.is-vertically-aligned-top .wp-block-media-text__media {
		position: relative;
		top: auto;
	}
}

.rh-media .wp-block-media-text__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(120% 90% at 50% 50%, rgba(8, 11, 20, 0) 60%, rgba(8, 11, 20, 0.45) 100%);
}

.rh-media:hover .wp-block-media-text__media img {
	transform: scale(1.025);
}

.rh-media .wp-block-media-text__content {
	padding: 0 !important;
}

.rh-media .wp-block-media-text__content > * {
	max-width: 34rem;
}

/* Beside a narrow image (22% / 30%) the text column is much wider than the
   reading measure: centre the measure in it so no wide empty gap opens up
   between the text and the image. */
@media (min-width: 782px) {
	.rh-media:is([style*="22% auto"], [style*="30% auto"], [style*="auto 22%"], [style*="auto 30%"]) .wp-block-media-text__content > * {
		max-width: 36rem;
		margin-inline: auto;
	}
}

.rh-media .wp-block-media-text__content h2,
.rh-media .wp-block-media-text__content h3 {
	font-size: clamp(2rem, 3.6vw, 3rem);
	line-height: 1.05;
	margin-top: 0;
}

.rh-media .wp-block-media-text__content > :first-child {
	margin-top: 0;
}

@media (max-width: 781px) {
	.rh-media.wp-block-media-text {
		grid-template-columns: 100% !important;
		row-gap: 1.75rem;
	}

	.rh-media.wp-block-media-text .wp-block-media-text__media {
		grid-column: 1 !important;
		grid-row: 1 !important;
		justify-self: center;
	}

	.rh-media .wp-block-media-text__media img,
	.rh-media .wp-block-media-text__media video {
		max-height: min(62vh, 480px);
	}

	.rh-media.wp-block-media-text .wp-block-media-text__content {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}
}

/* 11. Cards ---------------------------------------------------------------- */
/* Cards: a grid of equal-height panels. One readable column on phones and
   tablets (long reflective texts need the measure), side by side from 1024px. */
.rh-cards.wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 2vw, 1.5rem) !important;
	margin-block: clamp(2rem, 4.5vw, 3rem);
	align-items: stretch !important;
}

.rh-cards.wp-block-columns > .wp-block-column {
	flex-basis: auto !important;
	width: auto !important;
	margin: 0 !important;
}

@media (max-width: 1023px) {
	.rh-cards.wp-block-columns {
		max-width: var(--rh-measure) !important;
		margin-inline: auto !important;
	}
}

@media (min-width: 1024px) {
	.rh-cards.wp-block-columns {
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
	}

	/* Four cards: two by two keeps each card a comfortable width. */
	.rh-cards.wp-block-columns:has(> .wp-block-column:nth-child(4)) {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.rh-card,
.rh-card-dark {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: clamp(1.6rem, 3vw, 2.1rem) clamp(1.4rem, 3vw, 1.85rem) !important;
	background: var(--rh-card);
	border: 1px solid var(--rh-line);
	border-radius: 4px;
	font-size: 1.0625rem;
	line-height: 1.72;
	color: var(--rh-ink);
	hyphens: manual;
	transition: transform 0.9s var(--rh-ease), box-shadow 0.9s var(--rh-ease), border-color 0.9s var(--rh-ease);
}

.rh-card > *,
.rh-card-dark > * {
	margin: 0 !important;
}

.rh-card::before,
.rh-card-dark::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 2px;
	background: linear-gradient(90deg, var(--rh-gold), var(--rh-gold-light));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 1.2s var(--rh-ease);
	border-radius: 4px 4px 0 0;
}

.rh-card:hover,
.rh-card-dark:hover,
.rh-card:focus-within,
.rh-card-dark:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px -30px rgba(14, 18, 32, 0.55);
	border-color: rgba(125, 95, 34, 0.45);
}

.rh-card:hover::before,
.rh-card-dark:hover::before,
.rh-card:focus-within::before,
.rh-card-dark:focus-within::before {
	transform: scaleX(1);
}

.rh-card h2,
.rh-card h3,
.rh-card h4,
.rh-card-dark h2,
.rh-card-dark h3,
.rh-card-dark h4 {
	font-family: var(--rh-display);
	font-weight: 500;
	font-size: clamp(1.6rem, 2.4vw, 1.9rem);
	line-height: 1.12;
}

.rh-card .rh-label,
.rh-card-dark .rh-label {
	color: var(--rh-accent);
}

.rh-card-dark,
.rh-cards .rh-card.rh-card-dark {
	background: var(--rh-night);
	color: #E9E2D0;
	border-color: var(--rh-night);
	overflow: hidden;
	isolation: isolate;
}

.rh-card-dark::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(90% 70% at 85% 0%, rgba(201, 167, 94, 0.14), rgba(14, 18, 32, 0) 60%);
}

.rh-card-dark h2,
.rh-card-dark h3,
.rh-card-dark h4 {
	color: #F7F1E3;
}

.rh-card-dark em {
	color: var(--rh-gold-light);
}

/* Numerals such as "i", "ii" as the first short line of a card. */
.rh-card > .rh-numeral,
.rh-card-dark > .rh-numeral {
	font-family: var(--rh-display);
	font-size: 2.5rem;
	line-height: 1;
	color: var(--rh-gold);
}

/* 12. Concept nodes -------------------------------------------------------- */
.rh-nodes.wp-block-columns {
	position: relative;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px !important;
	padding-top: 34px;
	margin-block: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 600px) {
	.rh-nodes.wp-block-columns {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.rh-nodes.wp-block-columns > .wp-block-column {
		grid-column: span 2;
	}

	.rh-nodes.wp-block-columns > .wp-block-column:nth-child(4),
	.rh-nodes.wp-block-columns > .wp-block-column:nth-child(5) {
		grid-column: span 3;
	}
}

/* When the nodes wrap, only the first row carries star markers (a marker on a
   lower row would sit on top of the card above it). */
@media (max-width: 599px) {
	.rh-nodes > .wp-block-column:nth-child(n+2)::before {
		display: none;
	}

	/* Stacked on phones: cards hug their content instead of 300px towers. */
	.rh-nodes > .wp-block-column {
		min-height: 0;
	}
}

@media (min-width: 600px) and (max-width: 1099px) {
	.rh-nodes > .wp-block-column:nth-child(n+4)::before {
		display: none;
	}
}

@media (min-width: 1100px) {
	.rh-nodes.wp-block-columns {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.rh-nodes.wp-block-columns > .wp-block-column,
	.rh-nodes.wp-block-columns > .wp-block-column:nth-child(4),
	.rh-nodes.wp-block-columns > .wp-block-column:nth-child(5) {
		grid-column: auto;
	}

	/* The thread that links the five nodes. */
	.rh-nodes.wp-block-columns::before {
		content: "";
		position: absolute;
		top: 14px;
		left: 10%;
		right: 10%;
		height: 1px;
		background: linear-gradient(90deg, rgba(201, 167, 94, 0), var(--rh-gold) 12%, var(--rh-gold) 88%, rgba(201, 167, 94, 0));
		transform-origin: left;
		transition: transform 2.4s var(--rh-ease-film) 0.2s;
	}

	.rh-js .rh-nodes.wp-block-columns:not(.is-open)::before {
		transform: scaleX(0);
	}
}

.rh-nodes > .wp-block-column {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 300px;
	padding: 30px 26px 28px !important;
	background: var(--rh-card);
	border: 1px solid var(--rh-line);
	border-radius: 4px;
	color: var(--rh-ink);
	flex-basis: auto !important;
	transition: transform 0.9s var(--rh-ease), box-shadow 0.9s var(--rh-ease), border-color 0.9s var(--rh-ease);
}

.rh-nodes > .wp-block-column > * {
	margin: 0 !important;
}

/* Star marker that sits on the thread. */
.rh-nodes > .wp-block-column::before {
	content: "";
	position: absolute;
	top: -34px;
	left: 50%;
	width: 28px;
	height: 28px;
	translate: -50% 0;
	background: var(--rh-paper) var(--rh-star) center / 24px no-repeat;
	border-radius: 50%;
	transition: transform 2s var(--rh-ease);
}

.rh-section-sand .rh-nodes > .wp-block-column::before {
	background-color: var(--rh-sand);
}

.rh-nodes > .wp-block-column:hover,
.rh-nodes > .wp-block-column:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px -24px rgba(14, 18, 32, 0.55);
	border-color: var(--rh-gold-text);
}

.rh-nodes > .wp-block-column:hover::before,
.rh-nodes > .wp-block-column:focus-within::before {
	transform: rotate(45deg);
}

.rh-nodes > .wp-block-column > :first-child,
.rh-nodes .rh-calligraphy,
.rh-nodes [lang="ar"],
.rh-nodes [lang="ur"] {
	font-family: var(--rh-arabic);
	font-size: 2.5rem;
	line-height: 1.25;
	color: var(--rh-gold-text);
}

/* Arabic name at the top of a concept card (Concepts page). */
.rh-cards .rh-calligraphy {
	font-size: clamp(1.75rem, 2.4vw, 2.25rem);
	line-height: 1.3;
	color: var(--rh-gold-text);
	margin-bottom: 0.25rem;
}

.rh-card-dark .rh-calligraphy {
	color: var(--rh-gold-light);
}

/* Two-word names (فناء و بقاء, وحدة الوجود) stay on one line in the narrow cards. */
.rh-nodes .rh-calligraphy {
	font-size: clamp(1.9rem, 2.45vw, 2.5rem);
	white-space: nowrap;
}

.rh-nodes > .wp-block-column > p:has(+ :is(h2, h3, h4)),
.rh-nodes .rh-label {
	font-family: var(--rh-label);
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--rh-gold-text);
	line-height: 1.5;
}

.rh-nodes :is(h2, h3, h4) {
	font-family: var(--rh-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.1;
	color: inherit;
}

.rh-nodes :is(h2, h3, h4) + p {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--rh-muted);
}

.rh-nodes > .wp-block-column > p:last-child {
	margin-top: auto !important;
	padding-top: 10px;
	font-family: var(--rh-display);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.3;
	color: #3A372F;
}

.rh-nodes > .wp-block-column a {
	color: inherit;
	text-decoration: none;
}

.rh-nodes > .wp-block-column a:hover {
	color: var(--rh-gold-text);
}

/* Whole card is clickable via its (last) link; focus ring shows on the card. */
.rh-nodes > .wp-block-column a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 4px;
}

.rh-nodes > .wp-block-column a:focus-visible {
	outline: none;
}

.rh-nodes > .wp-block-column a:focus-visible::after {
	outline: 2px solid var(--rh-gold);
	outline-offset: 3px;
}

/* Ishq — the ground — is the night card. */
.rh-nodes > .wp-block-column:first-child {
	background: var(--rh-night);
	border-color: var(--rh-night);
	color: var(--rh-ivory);
	overflow: visible;
}

.rh-nodes > .wp-block-column:first-child > :first-child,
.rh-nodes > .wp-block-column:first-child [lang="ar"] {
	color: var(--rh-gold-light);
	text-shadow: 0 0 24px rgba(221, 190, 120, 0.3);
}

.rh-nodes > .wp-block-column:first-child > p:has(+ :is(h2, h3, h4)),
.rh-nodes > .wp-block-column:first-child .rh-label {
	color: var(--rh-gold);
}

.rh-nodes > .wp-block-column:first-child :is(h2, h3, h4) + p {
	color: var(--rh-mist);
}

.rh-nodes > .wp-block-column:first-child > p:last-child {
	color: #E9E2D0;
}

.rh-nodes > .wp-block-column:first-child a:hover {
	color: var(--rh-gold-light);
}

.rh-band-dark .rh-nodes > .wp-block-column::before {
	background-color: var(--rh-night);
}

/* 13. Reflective questions ------------------------------------------------- */
.rh-questions {
	position: relative;
	text-align: center;
	padding-block: clamp(1rem, 3vw, 2rem);
	color: var(--rh-fg);
}

.rh-questions > :is(h2, h3) {
	text-align: center;
}

.rh-questions > :is(h2, h3)::before {
	content: "";
	display: block;
	width: 48px;
	height: 48px;
	margin: 0 auto 1.25rem;
	background: var(--rh-star-open) center / contain no-repeat;
	animation: rh-breathe 6s ease-in-out infinite;
}

.rh-questions > p,
.rh-questions li {
	font-family: var(--rh-display);
	font-style: italic;
	font-size: clamp(1.4rem, 2.3vw, 1.75rem);
	line-height: 1.42;
	color: var(--rh-fg);
	max-width: 52rem;
	margin-inline: auto !important;
	text-wrap: balance;
}

.rh-questions > p + p,
.rh-questions li + li {
	margin-top: clamp(1.25rem, 2.6vw, 1.75rem);
}

/* Small ornament between lines. */
.rh-questions > p + p::before,
.rh-questions ul > li + li::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	margin: 0 auto clamp(1.25rem, 2.6vw, 1.75rem);
	background: var(--rh-star-open) center / contain no-repeat;
	opacity: 0.8;
}

/* A line that continues the previous sentence (marked by cinematic.js). */
.rh-questions > p.rh-q-cont {
	margin-top: 0.2em !important;
}

.rh-questions > p.rh-q-cont::before {
	display: none;
}

/* The intro line (if marked) stays in reading type. */
.rh-questions > .rh-questions-intro,
.rh-questions > p.has-small-font-size,
.rh-questions > p:has(+ p):first-child:not(:only-child).rh-intro {
	font-family: var(--rh-body);
	font-style: normal;
	font-size: 1.1875rem;
	line-height: 1.8;
	color: var(--rh-fg-soft);
	max-width: 40rem;
}

.rh-questions > .rh-questions-intro + p::before {
	display: none;
}

.rh-questions > p:last-child,
.rh-questions li:last-child {
	color: var(--rh-accent);
}

.rh-questions ul,
.rh-questions ol {
	list-style: none;
	padding: 0;
	margin: 0 auto;
}

.rh-questions ol {
	counter-reset: rh-q;
}

.rh-questions ol > li {
	counter-increment: rh-q;
}

.rh-questions ol > li::before {
	content: counter(rh-q, lower-roman) ".";
	display: block;
	margin: 0 auto 0.5rem;
	font-family: var(--rh-display);
	font-style: normal;
	font-size: 1.15rem;
	letter-spacing: 0.08em;
	color: var(--rh-gold);
}

.rh-questions ol > li + li {
	padding-top: clamp(1.75rem, 3.5vw, 2.25rem);
	border-top: 1px solid var(--rh-rule);
}

/* Night band carrying questions: generous breath. */
.rh-band-dark .rh-questions > p,
.rh-band-dark .rh-questions li,
.rh-band-dark.rh-questions > p,
.rh-band-dark.rh-questions li {
	color: var(--rh-ivory);
}

.rh-band-dark .rh-questions > p:last-child,
.rh-band-dark.rh-questions > p:last-child,
.rh-band-dark .rh-questions li:last-child {
	color: var(--rh-gold-light);
}

/* 14. Contribute & buttons ------------------------------------------------- */
.rh-contribute {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--rh-sand);
	padding-block: clamp(3.75rem, 8vw, 6.5rem) !important;
	text-align: center;
	color: var(--rh-ink);
}

.rh-contribute::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 50%;
	width: min(820px, 140vw);
	aspect-ratio: 1;
	translate: -50% -50%;
	background: var(--rh-rosette) center / contain no-repeat;
	opacity: 0.32;
	animation: rh-turn 300s linear infinite;
	pointer-events: none;
}

.rh-contribute::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(260px, 70%);
	height: 24px;
	translate: -50% -50%;
	background: var(--rh-ornament) center / contain no-repeat;
}

.rh-contribute > * {
	max-width: 40rem;
	margin-left: auto !important;
	margin-right: auto !important;
}

.rh-contribute h2 {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	line-height: 1.04;
}

.rh-contribute p {
	color: #3A372F;
}

.rh-contribute .wp-block-buttons {
	justify-content: center;
	margin-top: 2rem !important;
}

.rh-contribute.rh-band-dark,
.rh-band-dark .rh-contribute {
	background-color: var(--rh-night);
	color: var(--rh-mist);
}

.rh-contribute.rh-band-dark p {
	color: var(--rh-mist);
}

/* Buttons. */
.wp-block-button .wp-block-button__link,
.wp-element-button {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: background-color 0.6s var(--rh-ease), color 0.6s var(--rh-ease), border-color 0.6s var(--rh-ease), box-shadow 0.8s var(--rh-ease), transform 0.8s var(--rh-ease);
}

.rh-btn .wp-block-button__link {
	background: var(--rh-gold);
	color: var(--rh-night);
	border: 1px solid var(--rh-gold);
	border-radius: 999px;
	font-family: var(--rh-label);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.rh-btn .wp-block-button__link:hover,
.rh-btn .wp-block-button__link:focus-visible {
	background: var(--rh-gold-light);
	border-color: var(--rh-gold-light);
	color: var(--rh-night);
	box-shadow: 0 0 0 1px rgba(201, 167, 94, 0.35), 0 12px 40px -12px rgba(221, 190, 120, 0.55);
	transform: translateY(-1px);
}

/* On light grounds a night button keeps contrast elegant. */
:where(.rh-section, .rh-section-sand, .rh-contribute:not(.rh-band-dark)) .rh-btn .wp-block-button__link {
	background: var(--rh-night);
	border-color: var(--rh-night);
	color: var(--rh-ivory);
}

:where(.rh-section, .rh-section-sand, .rh-contribute:not(.rh-band-dark)) .rh-btn .wp-block-button__link:hover,
:where(.rh-section, .rh-section-sand, .rh-contribute:not(.rh-band-dark)) .rh-btn .wp-block-button__link:focus-visible {
	background: #1D2238;
	border-color: #1D2238;
	color: var(--rh-gold-light);
}

.rh-btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--rh-accent-strong);
	border: 1px solid var(--rh-gold-text);
	border-radius: 999px;
	font-family: var(--rh-label);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

:where(.rh-hero, .rh-band-dark, .rh-card-dark, .rh-surface-night) .rh-btn-ghost .wp-block-button__link {
	color: var(--rh-ivory);
	border-color: rgba(201, 167, 94, 0.6);
}

.rh-btn-ghost .wp-block-button__link:hover,
.rh-btn-ghost .wp-block-button__link:focus-visible {
	color: var(--rh-gold-text);
	border-color: var(--rh-gold-text);
	background: rgba(201, 167, 94, 0.08);
}

:where(.rh-hero, .rh-band-dark, .rh-card-dark, .rh-surface-night) .rh-btn-ghost .wp-block-button__link:hover,
:where(.rh-hero, .rh-band-dark, .rh-card-dark, .rh-surface-night) .rh-btn-ghost .wp-block-button__link:focus-visible {
	color: var(--rh-gold-light);
	border-color: var(--rh-gold);
	background: rgba(201, 167, 94, 0.1);
}

/* 15. Lede with drop cap --------------------------------------------------- */
.rh-lede {
	font-size: clamp(1.1875rem, 1.6vw, 1.3125rem);
	line-height: 1.75;
	/* Contain the drop cap so a short lede never indents the next paragraph. */
	display: flow-root;
}

.rh-lede::first-letter {
	float: left;
	font-family: var(--rh-display);
	font-weight: 400;
	font-style: normal;
	font-size: 4.1em;
	line-height: 0.8;
	padding: 0.07em 0.1em 0 0;
	margin-top: 0.04em;
	color: var(--rh-gold-text);
}

.rh-band-dark .rh-lede::first-letter {
	color: var(--rh-gold-light);
}

/* 16. Offerings gallery ---------------------------------------------------- */
.rh-gallery-head {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--rh-night);
	color: var(--rh-ivory);
	padding-top: calc(var(--rh-header-h) + clamp(3rem, 8vw, 6rem)) !important;
	padding-bottom: clamp(3rem, 7vw, 5rem) !important;
}

.rh-gallery-head h1 {
	font-size: clamp(2.75rem, 6vw, 4.75rem);
	color: #F7F1E3;
}

.rh-gallery-head p {
	color: var(--rh-mist);
}

.rh-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-block: clamp(2rem, 4vw, 2.75rem);
}

.rh-filters__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-filter {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #C9B994;
	border-radius: 999px;
	background: transparent;
	color: #3A372F;
	font-family: var(--rh-label);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.6s var(--rh-ease), color 0.6s var(--rh-ease), border-color 0.6s var(--rh-ease);
}

.rh-filter:hover {
	border-color: var(--rh-gold-text);
	color: var(--rh-gold-text);
}

.rh-filter.is-active,
.rh-filter[aria-current="page"] {
	background: var(--rh-night);
	border-color: var(--rh-night);
	color: var(--rh-gold-light);
}

.rh-filter--form {
	border-style: dashed;
}

.rh-offering-grid.wp-block-post-template,
.rh-offering-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important;
	gap: clamp(1.1rem, 2vw, 1.4rem) !important;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-offering-grid > li {
	margin: 0 !important;
	width: auto !important;
}

.rh-offering {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--rh-card);
	border: 1px solid var(--rh-line);
	border-radius: 4px;
	overflow: hidden;
	transition: transform 1s var(--rh-ease), box-shadow 1s var(--rh-ease), border-color 1s var(--rh-ease);
}

.rh-offering:hover,
.rh-offering:focus-within {
	transform: translateY(-5px);
	box-shadow: 0 30px 60px -36px rgba(14, 18, 32, 0.6);
	border-color: rgba(125, 95, 34, 0.5);
}

.rh-offering .wp-block-post-featured-image {
	position: relative;
	margin: 0 !important;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--rh-night);
}

.rh-offering .wp-block-post-featured-image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 2.6s var(--rh-ease), filter 2s var(--rh-ease);
	filter: saturate(0.92);
}

.rh-offering .wp-block-post-featured-image::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(8, 11, 20, 0) 55%, rgba(8, 11, 20, 0.45) 100%);
}

.rh-offering:hover .wp-block-post-featured-image img,
.rh-offering:focus-within .wp-block-post-featured-image img {
	transform: scale(1.06);
	filter: saturate(1.05);
}

/* No image: a quiet night plate with the star. */
.rh-offering:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	display: block;
	aspect-ratio: 4 / 3;
	background:
		var(--rh-star-open) center / 56px no-repeat,
		radial-gradient(90% 80% at 50% 40%, #1D2238 0%, var(--rh-night) 70%);
}

.rh-offering__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 22px 24px !important;
	flex: 1;
}

.rh-offering__body > * {
	margin: 0 !important;
}

.rh-offering .wp-block-post-terms {
	color: var(--rh-gold-text);
}

.rh-offering .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
	position: relative;
	z-index: 2;
}

.rh-offering .wp-block-post-terms a:hover {
	text-decoration: underline;
}

.rh-offering .wp-block-post-title {
	font-family: var(--rh-display);
	font-weight: 500;
	font-size: 1.75rem;
	line-height: 1.15;
}

.rh-offering .wp-block-post-title a {
	color: var(--rh-ink);
	text-decoration: none;
}

.rh-offering .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.rh-offering .wp-block-post-title a:focus-visible {
	outline: none;
}

.rh-offering .wp-block-post-title a:focus-visible::after {
	outline: 2px solid var(--rh-gold);
	outline-offset: -4px;
	border-radius: 4px;
}

.rh-offering .wp-block-post-excerpt,
.rh-offering .wp-block-post-author-name,
.rh-offering .rh-offering__meta {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--rh-muted);
}

.rh-offering .wp-block-post-excerpt__more-text {
	display: none;
}

.rh-offering .rh-offering__form {
	margin-top: auto !important;
	padding-top: 8px;
	color: var(--rh-muted);
}

/* Every fifth tile turns to night — a rhythm of light and dark. */
.rh-offering-grid > li:nth-child(5n + 2) .rh-offering {
	background: var(--rh-night);
	border-color: var(--rh-night);
	color: #E9E2D0;
}

.rh-offering-grid > li:nth-child(5n + 2) .rh-offering .wp-block-post-title a {
	color: #F7F1E3;
}

.rh-offering-grid > li:nth-child(5n + 2) .rh-offering .wp-block-post-terms {
	color: var(--rh-gold);
}

.rh-offering-grid > li:nth-child(5n + 2) .rh-offering :is(.wp-block-post-excerpt, .rh-offering__form, .wp-block-post-author-name) {
	color: var(--rh-mist);
}

.rh-offering-grid > li:nth-child(5n + 2) .rh-offering .wp-block-post-title a:focus-visible::after {
	outline-color: var(--rh-gold-light);
}

.rh-gallery .wp-block-query-pagination {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	font-family: var(--rh-label);
	font-size: 0.875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	gap: 14px;
}

.rh-gallery .wp-block-query-pagination a,
.rh-gallery .wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	text-decoration: none;
}

.rh-gallery .wp-block-query-pagination .page-numbers.current {
	color: var(--rh-gold-text);
	border-bottom: 1px solid var(--rh-gold-text);
}

.rh-empty {
	padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
	border: 1px dashed #C9B994;
	border-radius: 4px;
	text-align: center;
}

.rh-empty p:first-child {
	font-family: var(--rh-display);
	font-style: italic;
	font-size: 1.75rem;
	line-height: 1.3;
}

/* Single offering. */
.rh-offering-single .wp-block-post-terms {
	color: var(--rh-gold);
}

.rh-offering-single .wp-block-post-terms a {
	color: var(--rh-gold-light);
	text-decoration: none;
}

.rh-offering-meta {
	font-family: var(--rh-label);
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rh-muted);
}

.rh-post-nav {
	border-top: 1px solid var(--rh-line);
	padding-top: 1.5rem;
	font-family: var(--rh-label);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rh-post-nav a {
	display: inline-block;
	padding-block: 12px;
	text-decoration: none;
}

/* Search form. */
.wp-block-search__input {
	min-height: 48px;
	border: 1px solid var(--rh-line) !important;
	border-radius: 999px !important;
	padding: 0 20px !important;
	background: var(--rh-card);
	font: inherit;
	color: var(--rh-ink);
}

.wp-block-search__inside-wrapper {
	border: 0 !important;
	gap: 8px;
}

/* 17. Reveal system --------------------------------------------------------- */
.rh-js .rh-reveal {
	transition:
		opacity var(--rh-slow) var(--rh-ease) var(--rh-delay, 0s),
		transform var(--rh-slow) var(--rh-ease) var(--rh-delay, 0s),
		filter var(--rh-slow) var(--rh-ease) var(--rh-delay, 0s);
}

.rh-js .rh-reveal:not(.is-visible) {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
}

/* Verses breathe in: soft focus and loosened tracking settle. */
.rh-js .rh-verse.rh-reveal:not(.is-visible) {
	transform: none;
	opacity: 1;
}

.rh-js .rh-verse.rh-reveal:not(.is-visible) p {
	opacity: 0;
	filter: blur(6px);
	letter-spacing: 0.05em;
}

.rh-js .rh-verse.rh-reveal:not(.is-visible)::before {
	opacity: 0;
}

.rh-verse::before {
	transition: opacity 2s var(--rh-ease) 0.4s;
}

/* Film stills open like a letterbox. */
.rh-js .rh-still.rh-reveal:not(.is-visible) {
	transform: none;
	opacity: 1;
}

.rh-js .rh-still.rh-reveal:not(.is-visible) img {
	clip-path: inset(16% 0 16% 0);
	opacity: 0.25;
}

/* Media slides in from its side. */
.rh-js .rh-media.rh-reveal:not(.is-visible) {
	transform: none;
	opacity: 1;
}

.rh-js .rh-media.rh-reveal:not(.is-visible) .wp-block-media-text__media img {
	clip-path: inset(0 0 0 100%);
}

.rh-js .rh-media.has-media-on-the-right.rh-reveal:not(.is-visible) .wp-block-media-text__media img {
	clip-path: inset(0 100% 0 0);
}

.rh-js .rh-media.rh-reveal .wp-block-media-text__content {
	transition: opacity 1.6s var(--rh-ease) 0.5s, transform 1.6s var(--rh-ease) 0.5s;
}

.rh-js .rh-media.rh-reveal:not(.is-visible) .wp-block-media-text__content {
	opacity: 0;
	transform: translate3d(0, 24px, 0);
}

.rh-media .wp-block-media-text__media img {
	clip-path: inset(0 0 0 0);
}

/* 18. Keyframes ------------------------------------------------------------ */
@keyframes rh-kenburns {
	0% { transform: scale(1.04) translate3d(0, 0, 0); }
	100% { transform: scale(1.16) translate3d(-1.6%, -1.2%, 0); }
}

@keyframes rh-rise {
	from { opacity: 0; transform: translate3d(0, 22px, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes rh-fade-in {
	from { opacity: 0; }
}

@keyframes rh-turn {
	to { rotate: 360deg; }
}

@keyframes rh-spin {
	to { transform: rotate(360deg); }
}

@keyframes rh-twinkle {
	0%, 100% { opacity: 0.15; }
	50% { opacity: 0.95; }
}

@keyframes rh-breathe {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}

@keyframes rh-glow {
	0%, 100% { transform: scale(1); opacity: 0.35; }
	50% { transform: scale(1.35); opacity: 0.75; }
}

@keyframes rh-flow {
	to { stroke-dashoffset: -40; }
}

@keyframes rh-shimmer {
	0%, 100% { text-shadow: 0 0 30px rgba(221, 190, 120, 0.2); }
	50% { text-shadow: 0 0 48px rgba(221, 190, 120, 0.6); }
}

@keyframes rh-grain {
	0% { transform: translate3d(0, 0, 0); }
	20% { transform: translate3d(-4%, 3%, 0); }
	40% { transform: translate3d(3%, -2%, 0); }
	60% { transform: translate3d(-2%, -4%, 0); }
	80% { transform: translate3d(4%, 2%, 0); }
	100% { transform: translate3d(0, 0, 0); }
}

@keyframes rh-cue {
	0% { top: -30%; }
	60%, 100% { top: 110%; }
}

/* 18b. Small screens — lighter --------------------------------------------- */
@media (max-width: 767px) {
	/* No film grain, Ken Burns drift or slow rotations on phones: they cost
	   battery and paint time and add little at this size. */
	.rh-hero::after,
	.rh-band-dark::before {
		display: none;
	}

	.rh-hero .wp-block-cover__image-background,
	.rh-hero .wp-block-cover__video-background,
	.rh-footer::before,
	.rh-contribute::before,
	.rh-hero .rh-calligraphy::before,
	.rh-orbit-a,
	.rh-orbit-b,
	.rh-orbit-web {
		animation: none !important;
		will-change: auto;
	}

	.rh-header,
	.rh-header.is-scrolled {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.rh-header.is-scrolled,
	body:not(:has(.rh-hero:first-child)) .rh-header {
		background: rgba(14, 18, 32, 0.97);
	}

	.rh-card:hover,
	.rh-card-dark:hover,
	.rh-nodes > .wp-block-column:hover {
		transform: none;
	}
}

/* The footer email address reads as an address, not a shouted label. */
.rh-footer__links a.rh-footer__email {
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: 0.9375rem;
}

/* 18b. Contribution form (Contact Form 7) ---------------------------------- */
.wpcf7 {
	max-width: var(--rh-measure);
	margin-inline: auto;
}

.wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	background: var(--rh-card);
	border: 1px solid var(--rh-line);
	border-radius: 4px;
	box-shadow: 0 30px 60px -44px rgba(14, 18, 32, 0.45);
}

.wpcf7-form > p {
	margin: 0;
}

.wpcf7-form .rh-form-intro {
	font-family: var(--rh-display);
	font-style: italic;
	font-size: clamp(1.3rem, 2vw, 1.55rem);
	line-height: 1.4;
	color: var(--rh-gold-text);
}

.wpcf7-form label,
.wpcf7-form legend {
	display: block;
	font-family: var(--rh-label);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.6;
	color: #3A372F;
}

.wpcf7-form label > .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.55rem;
}

.wpcf7-form .rh-form-help {
	margin-top: -1rem;
	font-size: 0.9375rem;
	color: var(--rh-muted);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="file"],
.wpcf7-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	font-family: var(--rh-body);
	font-size: 1.0625rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rh-ink);
	background: #FFFDF8;
	border: 1px solid #CBBF9F;
	border-radius: 4px;
	transition: border-color 0.4s var(--rh-ease), box-shadow 0.4s var(--rh-ease);
}

.wpcf7-form textarea {
	min-height: 140px;
	resize: vertical;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--rh-gold-text);
	box-shadow: 0 0 0 3px rgba(201, 167, 94, 0.28);
}

.wpcf7-form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.wpcf7-form legend {
	margin-bottom: 0.65rem;
	padding: 0;
}

/* Radio and checkbox options as quiet chips. */
.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.wpcf7-form .wpcf7-list-item {
	margin: 0;
}

.wpcf7-form .wpcf7-checkbox label,
.wpcf7-form .wpcf7-radio label {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 44px;
	padding: 0 1rem;
	font-family: var(--rh-body);
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rh-ink);
	background: #FFFDF8;
	border: 1px solid #CBBF9F;
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.4s var(--rh-ease), background-color 0.4s var(--rh-ease);
}

.wpcf7-form .wpcf7-checkbox label:hover,
.wpcf7-form .wpcf7-radio label:hover,
.wpcf7-form .wpcf7-checkbox label:has(input:checked),
.wpcf7-form .wpcf7-radio label:has(input:checked) {
	border-color: var(--rh-gold-text);
	background: #F6EEDC;
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--rh-gold-text);
}

/* Ownership and consent statements. */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-family: var(--rh-body);
	font-size: 1rem;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rh-ink);
}

.wpcf7-form .wpcf7-acceptance input {
	margin-top: 0.3rem;
	flex: 0 0 auto;
}

.wpcf7-form .wpcf7-submit {
	align-self: flex-start;
	min-height: 52px;
	padding: 0 2rem;
	font-family: var(--rh-label);
	font-size: 0.9375rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rh-ivory);
	background: var(--rh-night);
	border: 1px solid var(--rh-night);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.6s var(--rh-ease), color 0.6s var(--rh-ease);
}

.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:focus-visible {
	background: #1D2238;
	color: var(--rh-gold-light);
}

.wpcf7-form .wpcf7-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.wpcf7-form .wpcf7-spinner {
	margin: 0 0 0 0.75rem;
}

.wpcf7-not-valid-tip {
	margin-top: 0.4rem;
	font-family: var(--rh-body);
	font-size: 0.9375rem;
	letter-spacing: 0;
	text-transform: none;
	color: #9B2C1F;
}

.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 1rem 1.25rem;
	font-size: 1rem;
	border-radius: 4px;
	border-width: 1px;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--rh-gold-text);
	background: #F6EEDC;
	color: var(--rh-ink);
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0s !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
	}

	.rh-hero .wp-block-cover__image-background,
	.rh-hero .wp-block-cover__video-background,
	.rh-hero::after,
	.rh-band-dark::before,
	.rh-orbit-a,
	.rh-orbit-b,
	.rh-orbit-web,
	.rh-footer::before,
	.rh-contribute::before,
	.rh-hero .rh-calligraphy::before {
		animation: none !important;
	}

	.rh-starfield circle {
		animation: none !important;
		opacity: 0.6;
	}

	.rh-scroll-cue {
		display: none;
	}

	.rh-js .rh-reveal:not(.is-visible),
	.rh-js .rh-reveal:not(.is-visible) p,
	.rh-js .rh-reveal:not(.is-visible) img,
	.rh-js .rh-reveal:not(.is-visible) .wp-block-media-text__content {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		clip-path: none !important;
		letter-spacing: inherit;
	}

	.rh-js .rh-band-dark:not(.is-open)::after {
		background-size: 100% 0, 100% 0, 100% 100%;
	}

	.rh-figure img,
	.rh-still img,
	.rh-parallax img,
	.rh-hero .wp-block-cover__image-background,
	.rh-hero .wp-block-cover__inner-container {
		translate: none !important;
		scale: none !important;
	}

	.rh-card:hover,
	.rh-card-dark:hover,
	.rh-nodes > .wp-block-column:hover,
	.rh-offering:hover,
	.rh-btn .wp-block-button__link:hover {
		transform: none;
	}
}

/* 20. Print ---------------------------------------------------------------- */
@media print {
	.rh-sky,
	.rh-header,
	.rh-footer::before,
	.rh-hero::after,
	.rh-band-dark::before,
	.rh-band-dark::after {
		display: none !important;
	}

	.rh-js .rh-reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	.rh-hero,
	.rh-band-dark {
		background: #fff !important;
		color: #000 !important;
	}
}
