/*
Theme Name: Remedy Nexus
Theme URI: https://remedynexus.com
Author: Remedy Nexus
Description: Block theme for Remedy Nexus, a US-based medical travel concierge. Brand colours, type scale, and spacing are exposed as named presets in theme.json so the site can be restyled from the Site Editor without touching code.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: remedy-nexus
Tags: full-site-editing, block-patterns, accessibility-ready
*/

/* Colour, type, spacing and layout all live in theme.json so the Site Editor
   can expose them. This file carries only what theme.json cannot express:
   sticky behaviour, hover and focus states, and motion. */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

/* The sticky has to sit on the template-part wrapper, not on the group inside
   it. A sticky element only sticks within its own parent's box, and that
   wrapper is exactly as tall as the header — so sticking the inner group makes
   it scroll straight off with its parent. */
.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Navy ground. The wordmark is gold, which measures 2.4:1 on white — on a
   white bar the logo effectively disappeared. On navy it reads clearly, and
   the bar stops looking like every other white header. */
.rn-header {
	backdrop-filter: blur(10px);
	background-color: rgba(0, 26, 77, 0.92) !important;
}

/* The admin bar is fixed on desktop and would otherwise cover the header. */
.admin-bar .wp-site-blocks > header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .wp-site-blocks > header {
		top: 46px;
	}
}

.rn-brand .wp-block-image,
.rn-brand .wp-block-site-logo {
	margin-bottom: 0;
}

/* height:auto is the fallback for any image dropped in here later. The two
   brand images carry explicit dimensions in their own inline styles — which
   win over this — so the browser reserves their box before the PNG loads. */
.rn-brand img {
	display: block;
	height: auto;
}

/* Nav links get a gold underline that grows on hover, rather than a colour
   change alone. */
.rn-header .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.4rem;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.88);
}

.rn-header .wp-block-navigation-item__content::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--wp--preset--color--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rn-header .wp-block-navigation-item__content:hover {
	color: #ffffff;
}

.rn-header .wp-block-navigation-item__content:hover::after,
.rn-header .current-menu-item .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

@media (max-width: 900px) {
	/* The CTA duplicates a link inside the mobile drawer; hiding it keeps the
	   bar from wrapping onto two lines. */
	.rn-header__cta {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.rn-hero {
	position: relative;
	isolation: isolate;
}

/* Keeps hero text at full contrast whatever photograph sits behind it. */
.rn-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		0deg,
		rgba(0, 18, 51, 0.92) 0%,
		rgba(0, 18, 51, 0.72) 38%,
		rgba(0, 18, 51, 0.34) 100%
	);
	pointer-events: none;
}

.rn-hero .wp-block-heading,
.rn-hero p {
	position: relative;
	z-index: 1;
}

/* WordPress adds `border-style: solid` whenever a block sets a border colour.
   Any side whose width is not explicitly set then falls back to the CSS initial
   `medium` — 3px — so a block asking for a single top hairline actually drew a
   3px box on the other three sides. Zeroing here is safe: blocks set their real
   widths inline, and inline styles win. */
.has-border-color {
	border-width: 0;
}

/* Left-aligns a width-limited block inside a constrained layout.
   WordPress emits `margin-left:auto !important` for constrained children, which
   beats an inline style — so overriding it needs !important too. */
.rn-align-left {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Measures for the hero headline and lede.
   These were inline `max-width` declarations on the blocks themselves, which
   the editor could not reproduce from the block attributes — core has no
   max-width support — so every load reported "unexpected or invalid content".
   A class round-trips because className *is* an attribute. */
.rn-measure-title {
	max-width: 16ch;
}

.rn-measure-lede {
	max-width: 44ch;
}

/* --- Block layout resets --------------------------------------------------
   The bespoke grids below are Group blocks now rather than raw HTML, and
   WordPress gives every flow-layout group's children a margin:

       :where(.is-layout-flow) > * { margin-block-start: var(--…--spacing--30) }

   Inside a rule grid or a stagger that opens gaps the design never had.

   Two deliberate choices about where this rule sits and how it is written.
   It uses real class selectors rather than :where(), so it outranks that
   zero-specificity core rule outright instead of tying with it and depending
   on which stylesheet the browser happened to read last. And it is declared
   *here*, near the top, so that every component rule further down the file —
   .rn-strip__val's 0.4rem, for one — is later in source order and still wins.
   Moving this block below them would silently flatten those margins. */

.rn-strip > *,
.rn-strip__cell > *,
.rn-datalines > *,
.rn-dataline > *,
.rn-figures > *,
.rn-figure > *,
.rn-numbered > *,
.rn-numbered__row > *,
.rn-stagger > *,
.rn-band-image > *,
.rn-band-image__inner > * {
	margin-block: 0;
}

/* The core Image block brings its own bottom margin; these grids place their
   own items. */
.rn-stagger .wp-block-image,
.rn-band-image .wp-block-image {
	margin-bottom: 0;
}

/* Italiana has no italic, so the accent is carried by colour alone. */
.rn-accent {
	color: var(--wp--preset--color--gold);
}

/* Block themes do not ship this, and the ledger relies on it to give screen
   readers the meaning of an em-dash placeholder. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   Eyebrow — the small uppercase label above section headings
   -------------------------------------------------------------------------- */

.rn-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
}

.has-deep-background-color .rn-eyebrow,
.has-navy-background-color .rn-eyebrow {
	color: var(--wp--preset--color--gold);
}

/* ==========================================================================
   The itinerary system

   The site is set like a travel document rather than a brochure. Structure is
   carried by hairline rules, aligned tabular figures, and a numbered stage
   rail — not by rounded cards, which is what made the first pass read as a
   template.
   ========================================================================== */

/* --- Micro label — the workhorse -----------------------------------------
   Sets every stage marker, data key, and column header. Tabular figures so
   numbers align down a column. */

.rn-micro,
.rn-eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--navy);
}

.rn-micro--muted {
	color: var(--wp--preset--color--ink-soft);
}

.has-deep-background-color .rn-micro,
.has-navy-background-color .rn-micro,
.rn-hero .rn-micro,
.has-deep-background-color .rn-eyebrow,
.has-navy-background-color .rn-eyebrow,
.rn-hero .rn-eyebrow {
	color: var(--wp--preset--color--gold);
}

/* --- Itinerary strip ------------------------------------------------------
   Pinned under the hero headline. Four data cells divided by hairlines — the
   signal, within a second, that this is a document and not a banner. */

.rn-strip {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin-top: clamp(2.5rem, 1rem + 5vw, 5rem);
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 720px) {
	.rn-strip {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.rn-strip__cell {
	padding: 1.1rem 1.25rem 0.25rem 0;
}

/* Dividers between cells only — never a leading rule on the first in a row. */
.rn-strip__cell + .rn-strip__cell {
	padding-left: 1.25rem;
	border-left: 1px solid rgba(255, 255, 255, 0.22);
}

@media (max-width: 719px) {
	.rn-strip__cell:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}
	.rn-strip__cell:nth-child(n + 3) {
		border-top: 1px solid rgba(255, 255, 255, 0.16);
		margin-top: 0.75rem;
	}
}

.rn-strip__key {
	color: var(--wp--preset--color--gold);
}

.rn-strip__val {
	margin-top: 0.4rem;
	font-size: 1.0625rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: #ffffff;
}

/* Light-ground variant, for the strip sitting under a light hero. */
.rn-strip--light {
	border-top-color: var(--wp--preset--color--line);
	text-align: left;
}

.rn-strip--light .rn-strip__cell + .rn-strip__cell {
	border-left-color: var(--wp--preset--color--line);
}

@media (max-width: 719px) {
	.rn-strip--light .rn-strip__cell:nth-child(n + 3) {
		border-top-color: var(--wp--preset--color--line);
	}
}

.rn-strip--light .rn-strip__key {
	color: var(--wp--preset--color--navy);
}

.rn-strip--light .rn-strip__val {
	color: var(--wp--preset--color--deep);
}

/* --- Stage rail and ledger ------------------------------------------------
   The signature. Two columns: what Remedy Nexus handles, and what the client
   handles. The client's column is meant to look sparse — that emptiness is
   the argument, so nothing here should be padded out to balance it. */

.rn-ledger__head {
	display: none;
}

@media (min-width: 900px) {
	.rn-ledger__head {
		display: grid;
		grid-template-columns: 4.5rem minmax(0, 1.5fr) minmax(0, 1fr);
		gap: var(--wp--preset--spacing--30);
		padding-bottom: 0.9rem;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}
}

.rn-stage {
	position: relative;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	gap: var(--wp--preset--spacing--30);
	padding-block: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 900px) {
	.rn-stage {
		grid-template-columns: 4.5rem minmax(0, 1.5fr) minmax(0, 1fr);
		align-items: start;
	}
}

/* The continuous rail, drawn on each row so it stitches from one to the next
   without needing a separate element. */
.rn-stage::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0.6875rem;
	width: 1px;
	background: var(--wp--preset--color--line);
}

.rn-stage:first-of-type::before {
	top: var(--wp--preset--spacing--40);
}

.rn-stage:last-of-type::before {
	bottom: auto;
	height: var(--wp--preset--spacing--40);
}

.rn-stage__num {
	position: relative;
	z-index: 1;
	padding-top: 0.2rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--navy-light);
}

.rn-stage__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--deep);
}

.rn-stage__note {
	margin-top: 0.5rem;
	max-width: 46ch;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--wp--preset--color--ink-soft);
}

.rn-handled {
	margin: var(--wp--preset--spacing--20) 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.rn-handled li {
	padding-left: 1.1rem;
	text-indent: -1.1rem;
}

.rn-handled li + li {
	margin-top: 0.5rem;
}

.rn-handled li::before {
	content: '—';
	margin-right: 0.5rem;
	color: var(--wp--preset--color--navy-light);
}

/* The client's column. Coral appears here and nowhere else on the page: it is
   the one warm mark, and it means "your part". */
.rn-yours {
	grid-column: 2;
	margin-top: var(--wp--preset--spacing--30);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 900px) {
	.rn-yours {
		grid-column: 3;
		margin-top: 0;
		padding-top: 0;
		padding-left: var(--wp--preset--spacing--30);
		border-top: 0;
		border-left: 1px solid var(--wp--preset--color--line);
	}

	/* The column header above already says "You handle"; repeating it in every
	   row printed the label five times down the page. It stays for narrow
	   screens, where there is no header row. */
	.rn-yours > .rn-micro {
		display: none;
	}
}

.rn-yours ul {
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.rn-yours li {
	padding-left: 1.1rem;
	text-indent: -1.1rem;
}

/* Coral Ink, not brand Coral. #FF6F61 measures 2.73:1 on white, which fails
   even the 3:1 large-text threshold; #CC3E29 is the same hue at 4.90:1. Brand
   coral stays for decorative use and for the dark bands, where it clears 6:1. */
.rn-yours li::before {
	content: '●';
	margin-right: 0.55rem;
	font-size: 0.5rem;
	vertical-align: 0.18em;
	color: var(--wp--preset--color--coral-ink);
}

/* An em dash rather than the word "nothing" — quieter, and it scans as a
   ledger entry. */
.rn-yours--empty {
	margin-top: 0.3rem;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--wp--preset--color--coral-ink);
}

.rn-tally {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Pushes the button to the far edge so the figure and its sentence read as one
   unit instead of three crowded items. */
.rn-tally .wp-block-buttons {
	margin-left: auto;
}

.rn-tally__figure {
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	line-height: 0.9;
	color: var(--wp--preset--color--coral-ink);
}

.rn-tally__text {
	max-width: 26ch;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--wp--preset--color--deep);
}

/* --- Data lines ----------------------------------------------------------
   Key, dotted leader, value — an itinerary line item. */

.rn-datalines {
	border-top: 1px solid var(--wp--preset--color--line);
}

.rn-dataline {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding-block: 0.85rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.rn-dataline__key {
	flex: none;
	color: var(--wp--preset--color--ink-soft);
}

/* The dotted leader between key and value. Drawn rather than marked up: as an
   element it was an empty <span>, which converting these sections to core
   blocks would have turned into an empty paragraph for the client to trip
   over. A flex container's ::after is itself a flex item, so `order` places it
   between the two. Excluded from the stacked variant, which is a grid and
   would gain a phantom row. */
.rn-dataline:not(.rn-dataline--stacked) > .rn-dataline__key {
	order: 1;
}

.rn-dataline:not(.rn-dataline--stacked)::after {
	content: "";
	order: 2;
	flex: 1;
	border-bottom: 1px dotted var(--wp--preset--color--line);
	transform: translateY(-0.25rem);
}

.rn-dataline:not(.rn-dataline--stacked) > .rn-dataline__val {
	order: 3;
}

.rn-dataline__val {
	flex: none;
	font-size: 0.9375rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--deep);
}

/* Variant for rows whose value is a sentence rather than a short term: label
   above at narrow widths, label in a fixed column alongside once there is room. */
.rn-dataline--stacked {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
	padding-block: var(--wp--preset--spacing--30);
}

@media (min-width: 860px) {
	.rn-dataline--stacked {
		grid-template-columns: 16rem minmax(0, 1fr);
		gap: var(--wp--preset--spacing--40);
		align-items: baseline;
	}
}

.rn-dataline__body {
	max-width: 62ch;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--wp--preset--color--ink-soft);
}

.rn-accred .wp-block-image {
	flex: none;
	margin-bottom: 0;
}

/* --- Hanging label grid --------------------------------------------------
   Labels sit out in the margin rather than stacked above the heading, which
   is what gives the page its asymmetry. */

@media (min-width: 1000px) {
	.rn-hang {
		display: grid;
		/* 9rem forced two-word labels like "What we coordinate" onto three
		   cramped lines. */
		grid-template-columns: 11.5rem minmax(0, 1fr);
		gap: var(--wp--preset--spacing--40);
		align-items: start;
	}

	.rn-hang > .rn-micro,
	.rn-hang > .rn-eyebrow {
		padding-top: 0.65rem;
	}
}

/* --- Oversized numerals for the editorial list ---------------------------
   Numbered with a CSS counter rather than typed markup, because the list is a
   query loop — the count has to follow whatever the client publishes. */

.rn-numeral {
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem);
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	line-height: 0.85;
	color: var(--wp--preset--color--navy-light);
}

.rn-entries {
	counter-reset: rn-entry;
}

.rn-entries .rn-entry::before {
	counter-increment: rn-entry;
	content: counter(rn-entry, decimal-leading-zero);
	display: block;
	margin-bottom: var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	line-height: 0.9;
	color: var(--wp--preset--color--navy-light);
}

/* ==========================================================================
   Camply-inspired devices

   Borrowed: the light airy opening with an accent word, the staggered image
   row, a committed dark mid-page block, outlined circles holding large
   figures, numbered rows, and circular arrow buttons.

   Not borrowed: its tour cards carry prices, which this site cannot show.
   ========================================================================== */

/* --- Light hero ----------------------------------------------------------- */

.rn-hero-light {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--base);
}

/* Soft off-centre wash, the warm glow behind Camply's opening. Kept faint so
   the page still reads as clinical rather than decorative. */
.rn-hero-light::before {
	content: '';
	position: absolute;
	top: -35%;
	left: 50%;
	width: min(120rem, 160%);
	aspect-ratio: 1;
	transform: translateX(-50%);
	background: radial-gradient(
		circle at 50% 45%,
		rgba(255, 111, 97, 0.09) 0%,
		rgba(201, 162, 39, 0.05) 34%,
		rgba(255, 255, 255, 0) 62%
	);
	pointer-events: none;
	z-index: 0;
}

.rn-hero-light > * {
	position: relative;
	z-index: 1;
}

/* The accent word in the headline. Coral Ink, not brand coral: this is text. */
.rn-hl-accent {
	color: var(--wp--preset--color--coral-ink);
}

/* --- Staggered image row -------------------------------------------------- */

.rn-stagger {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--20);
}

@media (min-width: 860px) {
	.rn-stagger {
		grid-template-columns: 1.35fr 1fr 1fr;
		gap: var(--wp--preset--spacing--30);
		align-items: start;
	}

	/* The offsets are the point — a level row would just be a gallery. */
	.rn-stagger__item:nth-child(2) {
		margin-top: 3.5rem;
	}

	.rn-stagger__item:nth-child(3) {
		margin-top: 1.5rem;
	}
}

.rn-stagger__item {
	position: relative;
	overflow: hidden;
	margin: 0;
}

.rn-stagger__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rn-stagger__item:hover img {
	transform: scale(1.04);
}

/* Fixed heights rather than aspect ratios. With ratios, the wider left column
   grew ~190px taller than the others and left a dead white void beneath them.
   Explicit heights keep the stagger to a deliberate 60-90px. */
.rn-stagger__item--tall img {
	height: clamp(20rem, 16rem + 12vw, 32rem);
}

.rn-stagger__item--short img {
	height: clamp(16rem, 13rem + 9vw, 26rem);
}

@media (max-width: 859px) {
	.rn-stagger__item--tall img,
	.rn-stagger__item--short img {
		height: clamp(14rem, 10rem + 22vw, 20rem);
	}
}

/* Corner label sitting on the image, with a scrim so it stays legible over
   any photograph. This is the core Image block's caption — a plain
   <figcaption>, which is what core's save() emits. Do not reintroduce a
   custom class here: the editor would regenerate the element without it and
   call the block invalid. */
.rn-stagger__item figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2.5rem 1rem 0.9rem;
	color: #ffffff;
	background: linear-gradient(to top, rgba(0, 18, 51, 0.8), transparent);
}

/* --- Figure circles ------------------------------------------------------- */

.rn-figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: var(--wp--preset--spacing--40);
	justify-items: center;
}

/* The ring is decorative framing, not a control or a boundary needed to read
   the content — the numeral and label inside both clear AA on their own — so
   WCAG 1.4.11 does not apply to it. Lifted from 0.28 anyway so it is not
   needlessly faint. */
.rn-figure {
	display: grid;
	place-items: center;
	width: min(15rem, 100%);
	aspect-ratio: 1;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	text-align: center;
	padding: 1.5rem;
}

/* Figures are set in Inter, never the display face. Italiana's zero is
   indistinguishable from a capital O and its one reads as an I, so "01"
   rendered as "OI" — fatal for a design built on numbers. Display face for
   words, Inter for figures. */
.rn-figure__num {
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem);
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	line-height: 0.95;
	/* Brand coral clears 6:1 on the dark band, so it is safe here — unlike on
	   white, where Coral Ink is required. */
	color: var(--wp--preset--color--coral);
}

.rn-figure__label {
	margin-top: 0.55rem;
	color: rgba(255, 255, 255, 0.72);
}

/* --- Numbered rows -------------------------------------------------------- */

.rn-numbered {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

@media (min-width: 860px) {
	.rn-numbered {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--50);
	}
}

.rn-numbered__row {
	display: flex;
	align-items: baseline;
	gap: 0.9rem;
	padding-block: 0.95rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.rn-numbered__num {
	flex: none;
	color: var(--wp--preset--color--coral-ink);
}

.rn-numbered__text {
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--wp--preset--color--deep);
}

/* Same rows on a dark band. */
.has-deep-background-color .rn-numbered__row,
.rn-band-dark .rn-numbered__row {
	border-bottom-color: rgba(255, 255, 255, 0.18);
}

.rn-band-dark .rn-numbered__num {
	color: var(--wp--preset--color--coral);
}

.rn-band-dark .rn-numbered__text {
	color: rgba(255, 255, 255, 0.9);
}

.rn-band-dark .rn-micro--muted {
	color: rgba(255, 255, 255, 0.6);
}

/* --- Circular arrow button ------------------------------------------------
   A core Button block, so the client can edit its text and destination.

   The arrow is drawn here rather than typed into the markup, and the button's
   real text — "Read more about Turkey" — is what stays in the DOM. That is an
   accessibility requirement, not a flourish: a core Button has no aria-label
   attribute, so a button containing only "→" reaches a screen reader with no
   name at all. font-size: 0 hides the words visually while leaving them in the
   accessibility tree, and the ::after restores a size for the glyph.

   The wrapper is .wp-block-button; the circle belongs to the anchor inside. */

.rn-round-btn .wp-block-button__link {
	display: inline-grid;
	place-items: center;
	width: 4.25rem;
	height: 4.25rem;
	padding: 0;
	background: none;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 0;
	line-height: 1;
	text-decoration: none;
	transition:
		background-color 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
		color 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rn-round-btn .wp-block-button__link::after {
	content: "\2192";
	font-size: 1.25rem;
}

.rn-round-btn .wp-block-button__link:hover {
	background: var(--wp--preset--color--coral-ink);
	border-color: var(--wp--preset--color--coral-ink);
	color: #ffffff;
}

/* --- Full-bleed image band with a corner label ---------------------------- */

.rn-band-image {
	position: relative;
	overflow: hidden;
	min-height: clamp(20rem, 14rem + 26vw, 34rem);
	display: flex;
	align-items: flex-end;
}

.rn-band-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.rn-band-image__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--40);
	color: #ffffff;
	/* Deeper and taller than before. The Istanbul photograph is bright right
	   down to the waterline, and at 0.75/70% the label sat on open sky. */
	background: linear-gradient(to top, rgba(0, 18, 51, 0.9) 0%, rgba(0, 18, 51, 0.55) 45%, transparent 100%);
}

/* Without this the micro label and the arrow inherit navy and disappear
   against a bright sky. */
.rn-band-image .rn-micro,
.rn-band-image__inner .rn-micro {
	color: #ffffff;
}

.rn-band-image .rn-round-btn .wp-block-button__link {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.7);
}

/* The photograph is the Image block's <img>, absolutely positioned behind the
   label. The figure itself must not box it. */
.rn-band-image__media {
	position: static;
	margin: 0;
}

/* --- Entries -------------------------------------------------------------
   Replaces the old card. A top hairline and space instead of a bordered,
   rounded, shadowed box. */

.rn-card,
.rn-entry {
	height: 100%;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
	background: none;
}

.rn-card .wp-block-post-title a,
.rn-entry .wp-block-post-title a {
	text-decoration: none;
	transition: color 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rn-card:hover .wp-block-post-title a,
.rn-entry:hover .wp-block-post-title a {
	color: var(--wp--preset--color--navy);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.rn-card .wp-block-post-featured-image,
.rn-entry .wp-block-post-featured-image {
	overflow: hidden;
}

.rn-card .wp-block-post-featured-image img,
.rn-entry .wp-block-post-featured-image img {
	transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rn-card:hover .wp-block-post-featured-image img,
.rn-entry:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   FAQ — built on the core Details block, so it is keyboard accessible and
   screen-reader friendly without any JavaScript of ours.
   -------------------------------------------------------------------------- */

.rn-faq .wp-block-details {
	padding-block: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* The browser's default disclosure triangle is the clearest "unstyled page"
   tell there is. Replaced with a plus that rotates into a minus. */
.rn-faq .wp-block-details summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	font-weight: 600;
	color: var(--wp--preset--color--deep);
	cursor: pointer;
	list-style: none;
}

.rn-faq .wp-block-details summary::-webkit-details-marker,
.rn-faq .wp-block-details summary::marker {
	display: none;
	content: '';
}

.rn-faq .wp-block-details summary::after {
	content: '+';
	flex: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.35rem;
	font-weight: 300;
	line-height: 1;
	color: var(--wp--preset--color--navy-light);
	transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rn-faq .wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.rn-faq .wp-block-details summary:hover {
	color: var(--wp--preset--color--navy);
}

.rn-faq .wp-block-details p {
	margin-top: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--ink-soft);
	max-width: 68ch;
}

/* --------------------------------------------------------------------------
   Focus — visible everywhere, never removed
   -------------------------------------------------------------------------- */

:where(a, button, summary, input, select, textarea, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 3px;
	border-radius: 6px;
}

.has-deep-background-color :focus-visible,
.rn-hero :focus-visible,
.rn-footer :focus-visible {
	outline-color: var(--wp--preset--color--gold);
}

/* --------------------------------------------------------------------------
   Closing CTA — a contained panel, so it does not merge with the dark footer
   -------------------------------------------------------------------------- */

.rn-cta__note {
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.78);
}

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

/* A gold hairline marks where the page ends and the footer begins. */
.wp-site-blocks > footer {
	border-top: 2px solid var(--wp--preset--color--gold);
}

/* Block gap would otherwise leave a white seam between the last section and
   the footer, which reads as a rendering fault rather than a divider. */
.wp-site-blocks > footer,
.wp-site-blocks > main {
	margin-block-start: 0;
}

/* Footer and dark bands: links inherit the band's text colour rather than the
   navy link colour, which would be unreadable there. */
.rn-footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.rn-footer a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.rn-footer__list {
	list-style: none;
	padding-left: 0;
}

.rn-footer__list li + li {
	margin-top: 0.75rem;
}

.rn-badge {
	flex: none;
	background: #ffffff;
	border-radius: 999px;
	padding: 4px;
}

.rn-badge img {
	display: block;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

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

	.rn-card:hover {
		transform: none;
	}
}
