/* Section richness — loaded after style.css so it can refine home sections.
 * Owned by the sections/process pass. Keep brand tokens (--bg/--accent/--ink).
 *
 * Direction: the flat uniform black reads cheap. Add depth & layering with
 * --bg-soft/--surface elevation, hairline --line borders, soft shadows and
 * very-low-alpha brass glows. Quiet luxury — richer, not louder. All motion
 * is transform/opacity only, with a reduced-motion fallback at the bottom.
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * Hero scrim — give the bottom edge a touch more depth so the title sits
 * on a soft vignette instead of flat video, plus a faint brass warmth.
 * ------------------------------------------------------------------- */
.rap-hero__scrim {
	background:
		radial-gradient(120% 80% at 50% 12%, rgba(159, 178, 204, 0.05), transparent 60%),
		linear-gradient(to top, rgba(12, 13, 15, 0.84) 0%, rgba(12, 13, 15, 0.32) 42%, rgba(12, 13, 15, 0.58) 100%);
}
/* Centred with auto margins, not `inset-inline-start: 50%` + a translate: the
 * logical inset resolves to `right: 50%` under RTL while `translateX(-50%)`
 * stays physical, so the pair disagreed and the cue sat one full width (22px)
 * left of centre in Hebrew. Auto margins are direction-agnostic. */
.rap-hero__scroll {
	position: absolute;
	inset-inline: 0;
	margin-inline: auto;
	width: max-content;
	inset-block-end: clamp(24px, 4vh, 44px);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--accent);
}
.rap-hero__scroll-icon {
	width: 22px;
	height: 35px;
	display: block;
	animation: rap-scroll-arrow 1.6s var(--ease-lux) infinite;
}
@keyframes rap-scroll-arrow {
	0%, 100% { opacity: 0.5; transform: translateY(0); }
	50% { opacity: 1; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
	.rap-hero__scroll-icon { animation: none; }
}

/* Full-screen curtain used by hero → projects transition (Motion). */
.rap-page-transition {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: var(--bg, #0c0d0f);
	pointer-events: none;
	opacity: 0;
	transform: scaleY(0);
	transform-origin: bottom center;
	will-change: transform, opacity;
}

/* ---------------------------------------------------------------------
 * Process section — frame the webp visual richly and refine the accordion
 * ===================================================================== */

/* Elevate the whole section onto a soft band so it reads layered against
   the page, with a faint brass glow drifting in from the visual side. */
.rap-process {
	position: relative;
	background:
		radial-gradient(70% 90% at 18% 30%, rgba(159, 178, 204, 0.055), transparent 62%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
}
[dir="rtl"] .rap-process {
	background:
		radial-gradient(70% 90% at 82% 30%, rgba(159, 178, 204, 0.055), transparent 62%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
}
/* Hairline top/bottom rules to seat the band cleanly. */
.rap-process::before,
.rap-process::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
	pointer-events: none;
}
.rap-process::before { inset-block-start: 0; }
.rap-process::after { inset-block-end: 0; }

/* The visual gets a real frame: surface panel, hairline border, soft shadow,
   subtle inner top-light. The webp now sits inside an object rather than
   floating on flat black. */
.rap-process__visual {
	padding: clamp(20px, 3vw, 40px);
	border: 1px solid var(--line);
	border-radius: 14px;
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(244, 246, 250, 0.035), transparent 55%),
		var(--surface);
	box-shadow:
		0 1px 0 rgba(244, 246, 250, 0.04) inset,
		0 30px 80px -40px rgba(0, 0, 0, 0.85),
		0 0 0 1px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

/* Enhanced halo: a warmer, layered brass glow behind the clip. */
.rap-process__halo {
	inset: 4%;
	background:
		radial-gradient(circle at 50% 42%, rgba(159, 178, 204, 0.16), rgba(159, 178, 204, 0.05) 45%, transparent 70%);
	filter: blur(56px);
}
/* A second slow-breathing ring of light for life (transform/opacity only). */
.rap-process__visual::after {
	content: "";
	position: absolute;
	inset: 12%;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(159, 178, 204, 0.10), transparent 68%);
	filter: blur(40px);
	pointer-events: none;
	z-index: 0;
	animation: rap-halo-breathe 9s var(--ease-lux) infinite;
}
@keyframes rap-halo-breathe {
	0%, 100% { opacity: 0.55; transform: scale(0.96); }
	50%      { opacity: 1;    transform: scale(1.04); }
}

/* Keep the media above the glow layers and give it a gentle settle on enter. */
.rap-process__media-wrap { z-index: 1; }
.rap-process__media {
	filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
/* Screen-blend clips already fake transparency; soften their shadow so the
   blend stays clean over the surface panel. */
.rap-process__media--screen { filter: none; }

/* ---------------------------------------------------------------------
 * Below the two-column breakpoint the step's own media is moved into its
 * open panel (see initProcess in site.js), so it reads as part of the step
 * instead of stacking under the whole list. The media nodes are absolutely
 * positioned for the square visual column, so they are re-flowed here.
 * ------------------------------------------------------------------- */
@media (max-width: 1023px) {
	.rap-process__visual {
		display: none;
	}

	.rap-process__panel-media:empty {
		display: none;
	}

	.rap-process__panel-media {
		position: relative;
		aspect-ratio: 4 / 3;
		width: 100%;
		margin-block: 4px 28px;
		border-radius: 12px;
		overflow: hidden;
		background: #14151a;
	}

	.rap-process__panel-media .rap-process__media-wrap,
	.rap-process__panel-media .rap-process__placeholder {
		position: absolute;
		inset: 0;
	}

	.rap-process__panel-media .rap-process__media {
		opacity: 1;
		transform: none;
	}

	/* The blurb's inline padding lines the text up with the step title; the
	   media takes the full panel width instead. */
	.rap-process__panel-inner {
		display: flex;
		flex-direction: column;
	}
}

/* Accordion list — refined hover/active. Each item gets a quiet brass tint
   and a sliding hairline accent on the active step (transform only). */
.rap-process__item {
	position: relative;
	transition: background-color 0.5s var(--ease-lux);
	border-radius: 8px;
}
.rap-process__btn { padding-inline: 16px; }
.rap-process__item:hover { background: rgba(244, 246, 250, 0.02); }
.rap-process__item.is-open {
	background: linear-gradient(90deg, rgba(159, 178, 204, 0.05), transparent 70%);
}
[dir="rtl"] .rap-process__item.is-open {
	background: linear-gradient(270deg, rgba(159, 178, 204, 0.05), transparent 70%);
}
/* A thin underline that grows from the start edge on the open item. */
.rap-process__item::after {
	content: "";
	position: absolute;
	inset-block-end: -1px;
	inset-inline-start: 0;
	height: 1px;
	width: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: inline-start;
	transition: transform 0.6s var(--ease-lux);
	opacity: 0.7;
}
.rap-process__item.is-open::after { transform: scaleX(1); }
[dir="rtl"] .rap-process__item::after { transform-origin: right; }

.rap-process__num {
	box-shadow: 0 0 0 0 rgba(159, 178, 204, 0);
	transition: all 0.5s var(--ease-lux);
}
.rap-process__item.is-open .rap-process__num {
	box-shadow: 0 6px 18px -6px rgba(159, 178, 204, 0.55);
}
.rap-process__btn:hover .rap-process__num { border-color: rgba(159, 178, 204, 0.5); }
.rap-process__blurb { padding-inline-start: 56px; }

/* =====================================================================
 * Featured projects — polaroid cards live in style.css; section band only
 * ===================================================================== */
.rap-featured .rap-cards,
.rap-archive .rap-cards {
	gap: clamp(20px, 2.6vw, 36px);
}

/* =====================================================================
 * Split preview — richer overlays + hover
 * ===================================================================== */
.rap-split { gap: 1px; background: var(--line); }
.rap-split__panel { background: var(--bg-soft); }
.rap-split__overlay {
	background:
		linear-gradient(to top, rgba(12, 13, 15, 0.9) 0%, rgba(12, 13, 15, 0.15) 55%, rgba(12, 13, 15, 0.35) 100%);
	transition: background 0.6s var(--ease-lux);
}
.rap-split__panel::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(120% 100% at 50% 100%, rgba(159, 178, 204, 0.10), transparent 60%);
	opacity: 0;
	transition: opacity 0.6s var(--ease-lux);
	pointer-events: none;
}
.rap-split__panel:hover::after { opacity: 1; }
.rap-split__overlay { z-index: 2; }
.rap-split__name { transition: color 0.4s var(--ease-lux); }
.rap-split__panel:hover .rap-split__name { color: var(--accent); }

/* =====================================================================
 * Clients section - framed trust band on the deeper paper tone.
 * ===================================================================== */
.rap-clients-section {
	position: relative;
	text-align: center;
	background: transparent;
}
/* Full-width band, content contained — no framed card (was a boxed 1200px
 * tile). Inherits .rap-section's full-bleed padding so it matches every
 * other section edge-to-edge. */
.rap-clients-section__inner {
	position: relative;
	max-width: none;
	margin-inline: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}
/* The client wall's head carries the same type as every other page head
 * (.rap-page__head / .rap-page__title / .rap-page__lead) — it used to run a
 * smaller uppercase title of its own, which read as a different page. */
.rap-clients-section__head {
	text-align: center;
	max-width: 72ch;
	margin-inline: auto;
	margin-bottom: clamp(30px, 4.4vw, 54px);
}
.rap-clients-section__eyebrow {
	margin: 0 0 18px;
}
.rap-clients-section__title {
	margin: 0;
	font-size: var(--fs-section);
	font-weight: var(--weight-display);
	line-height: var(--lh-display);
	letter-spacing: var(--tracking-display);
	text-transform: none;
	text-wrap: balance;
	color: var(--ink);
}
.rap-clients-section__subtitle {
	margin: 24px auto 0;
	max-width: 56ch;
	color: var(--ink-muted);
	font-size: var(--fs-lead);
	line-height: 1.6;
}

/* Section-title badge: hairline — monogram — hairline (matches the original
 * site's heading divider). Reusable across any section head. */
.rap-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 2vw, 22px);
	margin: clamp(16px, 2.2vw, 24px) auto 0;
}
.rap-badge__line {
	display: block;
	width: clamp(46px, 8vw, 92px);
	height: 1px;
	background: var(--line);
}
.rap-badge__mark {
	flex: 0 0 auto;
	width: clamp(32px, 3.6vw, 42px);
	height: auto;
	color: var(--accent);
}
.rap-clients-section .rap-clients {
	border: 0;
	background: transparent;
	padding-block: 0;
}

/* =====================================================================
 * Section light-pools — keep content from floating in dead black. Each
 * major section gets a soft, off-centre glow (rule-of-thirds placement)
 * so the eye lands in light. Very low alpha — atmosphere, not spotlight.
 * ===================================================================== */
.rap-featured,
.rap-split {
	position: relative;
	isolation: isolate;
}
.rap-featured::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	/* Pool sits at the upper third on the heading side (RTL → right third). */
	background: radial-gradient(58% 50% at 78% 24%, rgba(244, 246, 250, 0.04), transparent 62%);
}
[dir="ltr"] .rap-featured::before {
	background: radial-gradient(58% 50% at 22% 24%, rgba(244, 246, 250, 0.04), transparent 62%);
}
.rap-split::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(70% 60% at 50% 50%, rgba(159, 178, 204, 0.045), transparent 65%);
}

/* Featured heading — give it presence and tie it to the cards (less void
 * between the kicker/title and the grid). */
.rap-featured__head {
	margin-block-end: clamp(28px, 4vw, 52px);
}
.rap-featured__title {
	font-size: clamp(1.9rem, 4vw, 3rem);
}

/* =====================================================================
 * Light-theme adjustments — the richness above was tuned for a dark ground;
 * soften shadows and re-tune glows/logos for the light body.
 * ===================================================================== */
/* On light, a faint brass warmth reads better than the white glow used on dark. */
.rap-featured::before {
	background: radial-gradient(58% 50% at 78% 24%, rgba(59, 74, 94, 0.06), transparent 62%);
}
[dir="ltr"] .rap-featured::before {
	background: radial-gradient(58% 50% at 22% 24%, rgba(59, 74, 94, 0.06), transparent 62%);
}
.rap-split::before {
	background: radial-gradient(70% 60% at 50% 50%, rgba(59, 74, 94, 0.05), transparent 65%);
}
/* Clients logo treatment (grayscale rest -> full colour on hover) is owned by
 * the roni-clients plugin's clients-marquee.css. */

/* =====================================================================
 * Consultation-first homepage blocks
 * ===================================================================== */
.rap-hero__subline {
	margin: clamp(14px, 2vw, 24px) auto 0;
	max-width: var(--measure);
	color: var(--ink-muted);
	font-size: clamp(1.08rem, 1.8vw, 1.32rem);
	line-height: 1.7;
}
.rap-home .rap-consult-audience,
.rap-home .rap-consult-proof,
.rap-home .rap-consult-final {
	padding-block: clamp(52px, 8vw, 108px);
}
/* Divi builder can inject heading defaults with strong specificity. Re-assert
   the consultation typographic hierarchy inside the page container scope. */
#page-container .rap-home :is(.rap-consult-audience__title, .rap-consult-proof__title, .rap-consult-final__title) {
	letter-spacing: -0.012em;
	line-height: 1.12;
}
/* One reading size for every prose block. This clamp bottomed out at 16px on
 * mobile while the process blurbs next to it stayed at 18, so two paragraph
 * sizes appeared on the same screen. */
#page-container .rap-home :is(.rap-consult-card__body, .rap-consult-quote__text, .rap-consult-final__body) {
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

.rap-consult-audience__head {
	margin-bottom: clamp(24px, 4vw, 44px);
}
.rap-consult-audience__title {
	margin-top: 10px;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.rap-consult-audience__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(16px, 2vw, 26px);
}
@media (min-width: 980px) {
	.rap-consult-audience__grid {
		grid-template-columns: 1fr 1fr;
	}
}
.rap-consult-card {
	padding: clamp(22px, 3vw, 38px);
	border: 1px solid var(--line);
	border-radius: 10px;
	background: linear-gradient(150deg, rgba(59, 74, 94, 0.08), transparent 58%), var(--surface);
}
.rap-consult-card__title {
	font-size: clamp(1.3rem, 2.2vw, 1.8rem);
	margin: 0;
}
.rap-consult-card__body {
	margin: 14px 0 18px;
	color: var(--ink-muted);
}
.rap-consult-proof__head {
	margin-bottom: clamp(20px, 3vw, 34px);
}
.rap-consult-proof__title {
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
.rap-consult-proof__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(14px, 2vw, 22px);
}
@media (min-width: 980px) {
	.rap-consult-proof__grid {
		grid-template-columns: 1fr 1fr;
	}
}
.rap-consult-quote {
	margin: 0;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
}
.rap-consult-quote__text {
	margin: 0;
	line-height: 1.75;
}
.rap-consult-quote__name {
	display: block;
	margin-top: 14px;
	color: var(--ink-muted);
	font-style: normal;
	font-size: 0.9rem;
}

.rap-consult-final {
	position: relative;
}
.rap-consult-final__inner {
	padding: clamp(28px, 4vw, 54px);
	border: 1px solid var(--line);
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(59, 74, 94, 0.12), transparent 60%), var(--surface);
	text-align: center;
}
.rap-consult-final__title {
	margin-top: 10px;
	font-size: clamp(2rem, 4.2vw, 3rem);
}
.rap-consult-final__body {
	max-width: var(--measure);
	margin: 14px auto 22px;
	color: var(--ink-muted);
}
@media (max-width: 780px) {
	.rap-consult-card {
		padding: 22px 18px 24px;
	}
	.rap-consult-final__inner {
		padding: 24px 18px 30px;
	}
}

/* =====================================================================
 * Full-width alternating section bands — edge-to-edge colour rhythm
 * (mirrors the original site's alternating sections). Light editorial:
 * white ↔ cool light-grey, so each block reads as a distinct band.
 * ===================================================================== */
.rap-home .rap-section { padding-block: clamp(56px, 8vw, 110px); }

.rap-home .rap-consult-audience { background: var(--bg); }
.rap-home .rap-featured        { background: var(--bg-soft); }
.rap-home .rap-process         { background: var(--bg); }
.rap-home .rap-consult-proof   { background: var(--bg-soft); }
.rap-home .rap-clients-section { background: var(--bg); }
.rap-home .rap-consult-final   { background: var(--bg-soft); }

/* Process band was a vertical white→grey→white gradient sized to the old
 * 1600px column; as a full-width band it should read as one clean tone. */
.rap-home .rap-process,
[dir="rtl"] .rap-home .rap-process {
	background: var(--bg);
}

/* Safety net: if any page ever renders in Divi's boxed layout, force it
 * full-width so the whole site is edge-to-edge on every page. */
.et_boxed_layout #page-container {
	max-width: 100% !important;
	box-shadow: none !important;
}

/* =====================================================================
 * Reduced motion — every animation above needs a still fallback.
 * ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	.rap-process__visual::after { animation: none; opacity: 0.7; transform: none; }
	.rap-card,
	.rap-card__img,
	.rap-process__item,
	.rap-process__item::after,
	.rap-process__num,
	.rap-process__btn,
	.rap-split__overlay,
	.rap-split__panel::after,
	.rap-split__name { transition: none; }
}

/* =====================================================================
 * Articles & press
 *
 * One list, two kinds of entry: a press mention that leaves the site and an
 * article that stays on it. They share a card; the outbound one earns an arrow
 * and its source name, and nothing else distinguishes them, because the reader
 * cares about the piece rather than where it is hosted.
 * ===================================================================== */
/* Two to a row rather than three: the list starts with a handful of entries,
 * and a 340px track left a third column standing empty on the rail. */
.rap-articles__list {
	display: grid;
	gap: clamp(18px, 2.2vw, 30px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
}

.rap-article {
	position: relative;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.28s var(--ease-lux), box-shadow 0.28s var(--ease-lux), border-color 0.28s var(--ease-lux);
}

.rap-article:hover,
.rap-article:focus-within {
	transform: translateY(-3px);
	border-color: rgba(59, 74, 94, 0.32);
	box-shadow: 0 24px 52px -34px rgba(12, 12, 23, 0.45);
}

/* The whole card is the target, so the link wraps the content rather than
   sitting inside it as a separate hit area. */
.rap-article__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.rap-article__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.rap-article__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bg);
}

.rap-article__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s var(--ease-lux);
}

.rap-article:hover .rap-article__img {
	transform: scale(1.03);
}

.rap-article__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(20px, 2.4vw, 30px);
	flex: 1;
}

.rap-article__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--ink-muted);
}

.rap-article__index {
	font-variant-numeric: tabular-nums;
	opacity: 0.55;
}

.rap-article__source {
	font-weight: var(--weight-display);
	letter-spacing: 0.04em;
	color: var(--ink);
}

.rap-article__title {
	margin: 0;
	font-size: var(--fs-card);
	line-height: var(--lh-card);
	color: var(--ink);
}

.rap-article__standfirst {
	margin: 0;
	color: var(--ink-muted);
	font-size: var(--fs-small);
	line-height: 1.7;
	/* Three lines of standfirst is enough to judge a piece by; more and the
	   cards stop lining up. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rap-article__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-block-start: auto;
	padding-block-start: 6px;
	font-size: var(--fs-small);
	font-weight: var(--weight-medium);
	color: var(--ink);
}

.rap-article__out {
	flex: none;
	/* The glyph points away from the reading direction on both sides. */
	transform: scaleX(1);
}

[dir="rtl"] .rap-article__out {
	transform: scaleX(-1);
}

.rap-article:hover .rap-article__cta {
	color: var(--accent);
}

.rap-articles__empty {
	color: var(--ink-muted);
}

/* Single article we host ourselves. */
.rap-article-single__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink-muted);
}

.rap-article-single__standfirst {
	margin-block-start: 20px;
	max-width: var(--measure);
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--ink-muted);
}

.rap-article-single__figure {
	margin: clamp(28px, 4vw, 48px) 0;
}

.rap-article-single__img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
}

.rap-article-single__body {
	max-width: var(--measure);
}

.rap-article-single__body > * + * {
	margin-block-start: 1.1em;
}

.rap-article-single__back {
	margin-block-start: clamp(40px, 5vw, 72px);
	padding-block-start: 24px;
	border-block-start: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
	.rap-article,
	.rap-article__img {
		transition: none;
	}
	.rap-article:hover {
		transform: none;
	}
	.rap-article:hover .rap-article__img {
		transform: none;
	}
}

/* Phones: article cards follow the same centred furniture as the rest of
   the page (see the block at the end of style.css); the standfirst keeps
   its start edge so it stays readable. */
@media (max-width: 899px) {
	.rap-article__meta { justify-content: center; }
	.rap-article__title { text-align: center; }
	.rap-article__cta { align-self: center; }
}

/* =====================================================================
 * Page text: free copy under the projects grid, written under Pages →
 * "טקסט לעמודים". Reads as body copy on the rail, centred at a comfortable
 * measure like the page heads above it.
 * ===================================================================== */
.rap-page-text {
	padding-inline: var(--rap-rail);
	padding-block: clamp(48px, 7vw, 104px);
}

.rap-archive .rap-page-text {
	padding-inline: 0;
	padding-block-end: 0;
}

.rap-page-text__body {
	max-width: var(--measure);
	margin-inline: auto;
	color: var(--ink);
	line-height: 1.8;
}

.rap-page-text__body > * + * {
	margin-block-start: 1em;
}

.rap-page-text__body :is(h2, h3) {
	font-size: var(--fs-card);
	line-height: var(--lh-card);
	margin-block-start: 1.6em;
}

.rap-page-text__body > :first-child {
	margin-block-start: 0;
}

.rap-page-text__body a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* =====================================================================
 * Home: the Divi content under the splash (template-home.php). Base text
 * styles only, wrapped in :where() so they carry no specificity and any
 * setting made in the Visual Builder wins over them.
 * ===================================================================== */
:where(.rap-home__content) :where(.et_pb_text_inner) {
	color: var(--ink);
	line-height: 1.8;
}

:where(.rap-home__content) :where(.et_pb_text_inner) :where(h2, h3) {
	font-size: var(--fs-card);
	line-height: var(--lh-card);
	padding-block-end: 0.4em;
}

:where(.rap-home__content) :where(.et_pb_text_inner) :where(a) {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}
