/**
 * Royal Vision — main stylesheet
 * Organised as: tokens, reset/base, layout, header, footer, components,
 * article, archive, forms, ad slots, utilities, responsive.
 * Values mirror the design tokens in theme.json so the editor and the
 * front end stay in sync.
 */

/* ------------------------------------------------------------------ *
 * 1. Design tokens
 * ------------------------------------------------------------------ */
:root {
	--rv-primary: #a70a57;
	--rv-primary-dark: #7d0842;
	--rv-primary-tint: #fbedf3;
	--rv-heading: #161616;
	--rv-text: #2a2a2a;
	--rv-text-muted: #555555;
	--rv-bg: #ffffff;
	--rv-surface: #f7f7f8;
	--rv-border: #e7e7e7;
	--rv-success: #1f7a54;
	--rv-success-tint: #eaf5ef;
	--rv-warning: #9a6300;
	--rv-warning-tint: #fbf2e0;

	--rv-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rv-font-serif: Georgia, "Times New Roman", serif;

	--rv-fs-body: 1.0625rem;      /* 17px */
	--rv-fs-body-lg: 1.1875rem;   /* 19px */
	--rv-lh-body: 1.7;

	--rv-reading-width: 760px;
	--rv-content-width: 1120px;
	--rv-wide-width: 1280px;

	--rv-space-1: 0.5rem;
	--rv-space-2: 1rem;
	--rv-space-3: 1.5rem;
	--rv-space-4: 2.5rem;
	--rv-space-5: 4rem;
	--rv-space-6: 6rem;

	--rv-radius: 10px;
	--rv-radius-sm: 6px;
	--rv-shadow: 0 1px 2px rgba(22, 22, 22, 0.04), 0 4px 16px rgba(22, 22, 22, 0.05);
	--rv-shadow-sm: 0 1px 2px rgba(22, 22, 22, 0.06);

	--rv-transition: 180ms ease;
	--rv-header-height: 68px;
}

/* ------------------------------------------------------------------ *
 * 2. Reset & base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
	margin: 0;
	background: var(--rv-bg);
	color: var(--rv-text);
	font-family: var(--rv-font-sans);
	font-size: var(--rv-fs-body);
	line-height: var(--rv-lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--rv-primary); text-decoration: underline; text-underline-offset: 2px; transition: color var(--rv-transition); }
a:hover { color: var(--rv-primary-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--rv-heading); font-weight: 700; line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.3rem); }
p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

hr { border: 0; border-top: 1px solid var(--rv-border); margin: var(--rv-space-4) 0; }

blockquote {
	margin: var(--rv-space-3) 0;
	padding: 0.4em 0 0.4em 1.2em;
	border-left: 3px solid var(--rv-primary);
	color: var(--rv-text-muted);
	font-style: italic;
}

code, pre { font-family: var(--rv-font-mono, ui-monospace, monospace); font-size: 0.9em; }
pre { background: var(--rv-surface); padding: var(--rv-space-2); border-radius: var(--rv-radius-sm); overflow-x: auto; }

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

/* ------------------------------------------------------------------ *
 * 3. Layout helpers
 * ------------------------------------------------------------------ */
.rv-container { width: 100%; max-width: var(--rv-content-width); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.rv-container--wide { max-width: var(--rv-wide-width); }
.rv-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.rv-section--surface { background: var(--rv-surface); }
.rv-section__head { margin-bottom: var(--rv-space-3); }
.rv-section__title { margin: 0; }
.rv-section__subtitle { margin: 0.3em 0 0; color: var(--rv-text-muted); }
.rv-section__head-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--rv-space-2); flex-wrap: wrap; }
.rv-section__link { font-size: 0.95rem; font-weight: 600; white-space: nowrap; }

.rv-skip-link {
	position: absolute; top: -60px; left: 8px; z-index: 1000;
	background: var(--rv-primary); color: #fff; padding: 10px 18px;
	border-radius: var(--rv-radius-sm); text-decoration: none;
	transition: top var(--rv-transition);
}
.rv-skip-link:focus { top: 8px; color: #fff; }

/* Two-column article layout (content + restrained sidebar) */
.rv-layout { display: block; }
@media (min-width: 1024px) {
	.rv-layout--with-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: var(--rv-space-5);
		align-items: start;
	}
}

/* ------------------------------------------------------------------ *
 * 4. Buttons
 * ------------------------------------------------------------------ */
.rv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	font-family: inherit; font-size: 0.975rem; font-weight: 600; line-height: 1.2;
	padding: 0.7em 1.25em; border-radius: 8px; border: 1px solid transparent;
	cursor: pointer; text-decoration: none; transition: background var(--rv-transition), color var(--rv-transition), border-color var(--rv-transition);
}
.rv-btn--primary { background: var(--rv-primary); color: #fff; border-color: var(--rv-primary); }
.rv-btn--primary:hover { background: var(--rv-primary-dark); border-color: var(--rv-primary-dark); color: #fff; }
.rv-btn--secondary { background: #fff; color: var(--rv-heading); border-color: var(--rv-border); }
.rv-btn--secondary:hover { border-color: var(--rv-primary); color: var(--rv-primary); }
.rv-btn--ghost { background: transparent; color: var(--rv-primary); border-color: transparent; padding-inline: 0.25em; }
.rv-btn--ghost:hover { color: var(--rv-primary-dark); }
.rv-btn--sm { font-size: 0.875rem; padding: 0.5em 0.9em; }
.rv-btn--block { display: flex; width: 100%; }

/* ------------------------------------------------------------------ *
 * 5. Site header
 * ------------------------------------------------------------------ */
.rv-header { position: sticky; top: 0; z-index: 200; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid var(--rv-border); }
.rv-header__inner { display: flex; align-items: center; gap: var(--rv-space-3); min-height: var(--rv-header-height); }
.rv-branding { display: flex; align-items: center; gap: 0.6em; flex-shrink: 0; }
.rv-branding__logo img { max-height: 44px; width: auto; display: block; }
.rv-branding__text { font-weight: 700; font-size: 1.15rem; color: var(--rv-heading); text-decoration: none; letter-spacing: -0.01em; }
.rv-branding__text:hover { color: var(--rv-primary); }
.rv-branding__tagline { display: block; font-size: 0.7rem; font-weight: 500; color: var(--rv-text-muted); letter-spacing: 0.02em; text-transform: uppercase; }

.rv-primary-nav { margin-left: auto; }
.rv-menu { list-style: none; display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; }
.rv-menu a { display: block; padding: 0.55em 0.7em; color: var(--rv-heading); text-decoration: none; font-size: 0.95rem; font-weight: 500; border-radius: var(--rv-radius-sm); white-space: nowrap; }
.rv-menu a:hover { color: var(--rv-primary); background: var(--rv-primary-tint); }
.rv-menu .current-menu-item > a,
.rv-menu .current-menu-ancestor > a { color: var(--rv-primary); font-weight: 600; }

/* Dropdown / mega menu */
.rv-menu .menu-item-has-children { position: relative; }
.rv-menu .sub-menu {
	list-style: none; margin: 0; padding: 0.4rem; position: absolute; top: 100%; left: 0;
	min-width: 220px; background: #fff; border: 1px solid var(--rv-border);
	border-radius: var(--rv-radius); box-shadow: var(--rv-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity var(--rv-transition), transform var(--rv-transition), visibility var(--rv-transition);
	z-index: 210;
}
.rv-menu .menu-item-has-children:hover > .sub-menu,
.rv-menu .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.rv-menu .sub-menu a { font-weight: 500; }
.rv-menu .sub-menu .sub-menu { top: 0; left: 100%; }

.rv-header__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.rv-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--rv-border); background: #fff; border-radius: var(--rv-radius-sm); cursor: pointer; color: var(--rv-heading); }
.rv-icon-btn:hover { border-color: var(--rv-primary); color: var(--rv-primary); }
.rv-icon-btn svg { width: 20px; height: 20px; }

.rv-header__cta { display: none; }
@media (min-width: 900px) { .rv-header__cta { display: inline-flex; } }

/* Header search drawer */
.rv-header-search { display: none; border-top: 1px solid var(--rv-border); background: var(--rv-surface); }
.rv-header-search.is-open { display: block; }
.rv-header-search__inner { padding-block: var(--rv-space-2); }

/* Mobile menu toggle */
.rv-nav-toggle { display: none; }
@media (max-width: 991px) {
	.rv-primary-nav { display: none; }
	.rv-nav-toggle { display: inline-flex; }
	.rv-header__cta { display: none; }
}

/* Mobile menu panel */
.rv-mobile-menu {
	position: fixed; inset: 0; z-index: 300; background: #fff;
	transform: translateX(100%); transition: transform 220ms ease;
	display: flex; flex-direction: column; visibility: hidden;
}
.rv-mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.rv-mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: var(--rv-space-2) var(--rv-space-3); border-bottom: 1px solid var(--rv-border); }
.rv-mobile-menu__body { overflow-y: auto; padding: var(--rv-space-2) var(--rv-space-3) var(--rv-space-5); }
.rv-mobile-menu .rv-menu { flex-direction: column; align-items: stretch; gap: 0; }
.rv-mobile-menu .rv-menu a { padding: 0.85em 0.5em; border-bottom: 1px solid var(--rv-border); border-radius: 0; }
.rv-mobile-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: var(--rv-space-2); min-width: 0; }
.rv-mobile-menu .sub-menu a { font-size: 0.9rem; color: var(--rv-text-muted); }
.rv-mobile-menu__cta { margin-top: var(--rv-space-3); }
body.rv-menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ *
 * 6. Cards & grids
 * ------------------------------------------------------------------ */
.rv-grid { display: grid; gap: var(--rv-space-3); }
.rv-grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rv-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rv-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.rv-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--rv-border); border-radius: var(--rv-radius);
	overflow: hidden; transition: border-color var(--rv-transition), box-shadow var(--rv-transition), transform var(--rv-transition);
}
.rv-card:hover { border-color: #d9d9d9; box-shadow: var(--rv-shadow); transform: translateY(-2px); }
.rv-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--rv-surface); overflow: hidden; }
.rv-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-card__media-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--rv-primary); background: var(--rv-primary-tint); }
.rv-card__body { padding: var(--rv-space-3); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.rv-card__eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rv-primary); }
.rv-card__title { font-size: 1.075rem; line-height: 1.35; margin: 0; }
.rv-card__title a { color: var(--rv-heading); text-decoration: none; }
.rv-card__title a:hover { color: var(--rv-primary); }
.rv-card__excerpt { font-size: 0.925rem; color: var(--rv-text-muted); margin: 0; }
.rv-card__meta { margin-top: auto; font-size: 0.8rem; color: var(--rv-text-muted); display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.rv-card__meta span::after { content: "·"; margin-left: 0.5rem; color: var(--rv-border); }
.rv-card__meta span:last-child::after { content: ""; margin: 0; }

/* Featured (horizontal) card */
.rv-card--featured { border: 1px solid var(--rv-border); }
@media (min-width: 720px) {
	.rv-card--featured { flex-direction: row; }
	.rv-card--featured .rv-card__media { aspect-ratio: auto; flex: 1 1 55%; min-height: 280px; }
	.rv-card--featured .rv-card__body { flex: 1 1 45%; justify-content: center; padding: var(--rv-space-4); }
	.rv-card--featured .rv-card__title { font-size: 1.6rem; }
	.rv-card--featured .rv-card__excerpt { font-size: 1rem; }
}

/* Destination / topic tiles */
.rv-tile {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 160px; padding: var(--rv-space-3); border-radius: var(--rv-radius);
	border: 1px solid var(--rv-border); background: var(--rv-surface); color: var(--rv-heading);
	text-decoration: none; overflow: hidden; transition: border-color var(--rv-transition), box-shadow var(--rv-transition), transform var(--rv-transition);
}
.rv-tile:hover { border-color: var(--rv-primary); box-shadow: var(--rv-shadow); transform: translateY(-2px); color: var(--rv-heading); }
.rv-tile__icon { color: var(--rv-primary); margin-bottom: auto; }
.rv-tile__icon svg { width: 28px; height: 28px; }
.rv-tile__title { font-size: 1.05rem; font-weight: 700; margin: 0.5rem 0 0.2rem; }
.rv-tile__desc { font-size: 0.85rem; color: var(--rv-text-muted); margin: 0; }
.rv-tile__count { font-size: 0.78rem; color: var(--rv-primary); font-weight: 600; }
.rv-tile--image { color: #fff; border: 0; min-height: 200px; }
.rv-tile--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,22,22,0.05) 30%, rgba(22,22,22,0.78) 100%); z-index: 1; }
.rv-tile--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rv-tile--image .rv-tile__title, .rv-tile--image .rv-tile__desc { position: relative; z-index: 2; color: #fff; }

/* ------------------------------------------------------------------ *
 * 7. Hero
 * ------------------------------------------------------------------ */
.rv-hero { padding-block: clamp(2rem, 4vw, 3.25rem); border-bottom: 1px solid var(--rv-border); }
.rv-hero__inner { max-width: 820px; }
.rv-hero__eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rv-primary); background: var(--rv-primary-tint); padding: 0.35em 0.8em; border-radius: 999px; margin-bottom: var(--rv-space-2); }
.rv-hero__title { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); line-height: 1.12; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.rv-hero__lead { font-size: clamp(1.05rem, 1rem + 0.6vw, 1.25rem); color: var(--rv-text-muted); margin: 0 0 var(--rv-space-3); max-width: 62ch; }
.rv-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: var(--rv-space-3); }
.rv-hero__search { max-width: 560px; }

/* ------------------------------------------------------------------ *
 * 8. Search form
 * ------------------------------------------------------------------ */
.rv-search-form { display: flex; gap: 0.5rem; }
.rv-search-form__field { position: relative; flex: 1; display: flex; align-items: center; }
.rv-search-form__field svg { position: absolute; left: 0.85rem; width: 18px; height: 18px; color: var(--rv-text-muted); pointer-events: none; }
.rv-search-form input[type="search"] {
	width: 100%; font-family: inherit; font-size: 1rem; padding: 0.75em 0.9em 0.75em 2.6rem;
	border: 1px solid var(--rv-border); border-radius: 8px; background: #fff; color: var(--rv-text);
}
.rv-search-form input[type="search"]:focus { border-color: var(--rv-primary); outline: none; box-shadow: 0 0 0 3px var(--rv-primary-tint); }

/* ------------------------------------------------------------------ *
 * 9. Breadcrumbs
 * ------------------------------------------------------------------ */
.rv-breadcrumbs { font-size: 0.85rem; color: var(--rv-text-muted); padding-block: var(--rv-space-2); }
.rv-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; padding: 0; }
.rv-breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.rv-breadcrumbs li:not(:last-child)::after { content: "›"; color: var(--rv-border); }
.rv-breadcrumbs a { color: var(--rv-text-muted); text-decoration: none; }
.rv-breadcrumbs a:hover { color: var(--rv-primary); text-decoration: underline; }
.rv-breadcrumbs [aria-current="page"] { color: var(--rv-heading); font-weight: 500; }

/* ------------------------------------------------------------------ *
 * 10. Article / single
 * ------------------------------------------------------------------ */
.rv-article { padding-block: var(--rv-space-4); }
.rv-article__header { max-width: var(--rv-reading-width); margin-inline: auto; margin-bottom: var(--rv-space-3); }
.rv-article__category { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rv-primary); }
.rv-article__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem); line-height: 1.15; margin: 0.4rem 0 0.6rem; letter-spacing: -0.01em; }
.rv-article__summary { font-size: 1.15rem; color: var(--rv-text-muted); line-height: 1.55; margin: 0 0 var(--rv-space-2); }
.rv-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; font-size: 0.875rem; color: var(--rv-text-muted); margin-top: var(--rv-space-2); }
.rv-entry-meta__author { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; color: var(--rv-heading); }
.rv-entry-meta__author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.rv-entry-meta__item { display: inline-flex; align-items: center; gap: 0.3rem; }
.rv-entry-meta__updated { color: var(--rv-success); font-weight: 500; }

.rv-article__featured { max-width: var(--rv-content-width); margin: var(--rv-space-3) auto; }
.rv-article__featured img { width: 100%; border-radius: var(--rv-radius); display: block; }
.rv-article__featured figcaption { font-size: 0.8rem; color: var(--rv-text-muted); text-align: center; margin-top: 0.5rem; }

/* The reading column */
.rv-entry-content { max-width: var(--rv-reading-width); margin-inline: auto; font-size: var(--rv-fs-body-lg); line-height: 1.75; }
.rv-entry-content > * { margin-inline: auto; }
.rv-entry-content h2 { margin-top: 1.8em; scroll-margin-top: calc(var(--rv-header-height) + 16px); }
.rv-entry-content h3 { margin-top: 1.5em; scroll-margin-top: calc(var(--rv-header-height) + 16px); }
.rv-entry-content img { border-radius: var(--rv-radius-sm); }
.rv-entry-content figure { margin: var(--rv-space-3) 0; }
.rv-entry-content figcaption { font-size: 0.85rem; color: var(--rv-text-muted); text-align: center; margin-top: 0.5rem; }
.rv-entry-content a { text-decoration: underline; }
.rv-entry-content ul li::marker { color: var(--rv-primary); }
.rv-entry-content .alignwide { max-width: var(--rv-content-width); }
.rv-entry-content .alignfull { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* Article footer blocks share the reading width */
.rv-article__footer > * { max-width: var(--rv-reading-width); margin-inline: auto; }

/* ------------------------------------------------------------------ *
 * 11. Editorial components (also used by block patterns)
 * ------------------------------------------------------------------ */
.rv-box { border: 1px solid var(--rv-border); border-radius: var(--rv-radius); padding: var(--rv-space-3); margin: var(--rv-space-3) auto; background: #fff; }
.rv-box__title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; margin: 0 0 0.6rem; color: var(--rv-heading); }
.rv-box__title svg { width: 20px; height: 20px; flex-shrink: 0; }
.rv-box > :last-child { margin-bottom: 0; }

.rv-box--takeaways { background: var(--rv-primary-tint); border-color: #f0cede; }
.rv-box--takeaways .rv-box__title { color: var(--rv-primary-dark); }
.rv-box--takeaways ul { margin: 0; padding-left: 1.2em; }

.rv-box--tip { background: var(--rv-success-tint); border-color: #cfe7dc; }
.rv-box--tip .rv-box__title { color: var(--rv-success); }

.rv-box--notice, .rv-box--important { background: var(--rv-warning-tint); border-color: #ecd9ac; }
.rv-box--notice .rv-box__title, .rv-box--important .rv-box__title { color: var(--rv-warning); }

.rv-box--eligibility { background: var(--rv-surface); }

/* Pros & cons */
.rv-proscons { display: grid; gap: var(--rv-space-2); margin: var(--rv-space-3) auto; }
@media (min-width: 620px) { .rv-proscons { grid-template-columns: 1fr 1fr; } }
.rv-proscons__col { border: 1px solid var(--rv-border); border-radius: var(--rv-radius); padding: var(--rv-space-3); }
.rv-proscons__col--pros { background: var(--rv-success-tint); border-color: #cfe7dc; }
.rv-proscons__col--cons { background: var(--rv-warning-tint); border-color: #ecd9ac; }
.rv-proscons__col h3, .rv-proscons__col h4 { margin-top: 0; }
.rv-proscons__col ul { list-style: none; padding: 0; margin: 0; }
.rv-proscons__col li { padding-left: 1.6em; position: relative; }
.rv-proscons__col--pros li::before { content: "✓"; position: absolute; left: 0; color: var(--rv-success); font-weight: 700; }
.rv-proscons__col--cons li::before { content: "–"; position: absolute; left: 0; color: var(--rv-warning); font-weight: 700; }

/* Tables (cost/comparison) */
.rv-table-wrap { overflow-x: auto; margin: var(--rv-space-3) auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rv-border); border-radius: var(--rv-radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.rv-entry-content table, .rv-table-wrap table { min-width: 480px; }
th, td { text-align: left; padding: 0.7em 0.9em; border-bottom: 1px solid var(--rv-border); vertical-align: top; }
thead th { background: var(--rv-surface); font-weight: 700; color: var(--rv-heading); border-bottom: 2px solid var(--rv-border); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--rv-primary-tint); }

/* FAQ accordion */
.rv-faq { margin: var(--rv-space-3) auto; }
.rv-faq__item { border: 1px solid var(--rv-border); border-radius: var(--rv-radius-sm); margin-bottom: 0.6rem; overflow: hidden; background: #fff; }
.rv-faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 1em 1.1em; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--rv-heading); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rv-faq__q:hover { color: var(--rv-primary); }
.rv-faq__q .rv-faq__icon { flex-shrink: 0; transition: transform var(--rv-transition); }
.rv-faq__q[aria-expanded="true"] .rv-faq__icon { transform: rotate(45deg); color: var(--rv-primary); }
.rv-faq__a { padding: 0 1.1em; max-height: 0; overflow: hidden; transition: max-height var(--rv-transition), padding var(--rv-transition); }
.rv-faq__a[hidden] { display: block; }
.rv-faq__item.is-open .rv-faq__a { padding: 0 1.1em 1.1em; max-height: 1000px; }

/* FAQ — native <details> variant (no JS, used by the block pattern) */
.rv-faq details { border: 1px solid var(--rv-border); border-radius: var(--rv-radius-sm); margin-bottom: 0.6rem; background: #fff; overflow: hidden; }
.rv-faq summary { list-style: none; cursor: pointer; padding: 1em 1.1em; font-weight: 600; color: var(--rv-heading); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rv-faq summary::-webkit-details-marker { display: none; }
.rv-faq summary::after { content: "+"; color: var(--rv-primary); font-size: 1.3rem; line-height: 1; flex-shrink: 0; transition: transform var(--rv-transition); }
.rv-faq details[open] summary::after { transform: rotate(45deg); }
.rv-faq summary:hover { color: var(--rv-primary); }
.rv-faq details > *:not(summary) { padding: 0 1.1em 1.1em; margin: 0; }

/* Sources */
.rv-sources { font-size: 0.9rem; }
.rv-sources ol { padding-left: 1.4em; }
.rv-sources li { margin-bottom: 0.5rem; word-break: break-word; }

/* CTA block */
.rv-cta { background: var(--rv-primary); color: #fff; border-radius: var(--rv-radius); padding: var(--rv-space-4); margin: var(--rv-space-3) auto; text-align: center; }
.rv-cta--soft { background: var(--rv-primary-tint); color: var(--rv-heading); }
.rv-cta__title { color: #fff; font-size: 1.4rem; margin: 0 0 0.4rem; }
.rv-cta--soft .rv-cta__title { color: var(--rv-heading); }
.rv-cta__text { margin: 0 auto var(--rv-space-2); max-width: 52ch; opacity: 0.95; }
.rv-cta--soft .rv-cta__text { color: var(--rv-text-muted); opacity: 1; }
.rv-cta .rv-btn--primary { background: #fff; color: var(--rv-primary); border-color: #fff; }
.rv-cta .rv-btn--primary:hover { background: rgba(255,255,255,0.9); color: var(--rv-primary-dark); }
.rv-cta--soft .rv-btn--primary { background: var(--rv-primary); color: #fff; }
.rv-cta--soft .rv-btn--primary:hover { background: var(--rv-primary-dark); }

/* Author box */
.rv-author-box { display: flex; gap: var(--rv-space-3); padding: var(--rv-space-3); border: 1px solid var(--rv-border); border-radius: var(--rv-radius); background: var(--rv-surface); margin: var(--rv-space-4) auto; }
.rv-author-box__avatar { flex-shrink: 0; }
.rv-author-box__avatar img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.rv-author-box__name { margin: 0; font-size: 1.1rem; }
.rv-author-box__name a { color: var(--rv-heading); text-decoration: none; }
.rv-author-box__role { font-size: 0.85rem; color: var(--rv-primary); font-weight: 600; margin: 0.1rem 0 0.5rem; }
.rv-author-box__bio { font-size: 0.925rem; margin: 0; color: var(--rv-text-muted); }
.rv-author-box__links { margin-top: 0.6rem; display: flex; gap: 0.6rem; }
.rv-author-box__links a { color: var(--rv-text-muted); }
.rv-author-box__links a:hover { color: var(--rv-primary); }

/* Social share */
.rv-share { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: var(--rv-space-3) auto; }
.rv-share__label { font-size: 0.85rem; font-weight: 600; color: var(--rv-text-muted); }
.rv-share a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--rv-border); border-radius: var(--rv-radius-sm); color: var(--rv-heading); }
.rv-share a:hover { border-color: var(--rv-primary); color: var(--rv-primary); background: var(--rv-primary-tint); }
.rv-share svg { width: 18px; height: 18px; }

/* Related articles */
.rv-related { margin: var(--rv-space-5) 0; }

/* Post navigation */
.rv-post-nav { display: grid; gap: var(--rv-space-2); margin: var(--rv-space-4) auto; }
@media (min-width: 620px) { .rv-post-nav { grid-template-columns: 1fr 1fr; } }
.rv-post-nav__link { border: 1px solid var(--rv-border); border-radius: var(--rv-radius); padding: var(--rv-space-2) var(--rv-space-3); text-decoration: none; display: block; }
.rv-post-nav__link:hover { border-color: var(--rv-primary); }
.rv-post-nav__dir { font-size: 0.78rem; color: var(--rv-text-muted); }
.rv-post-nav__title { color: var(--rv-heading); font-weight: 600; font-size: 0.95rem; }
.rv-post-nav__link--next { text-align: right; }

/* ------------------------------------------------------------------ *
 * 12. Table of contents
 * ------------------------------------------------------------------ */
.rv-toc { border: 1px solid var(--rv-border); border-radius: var(--rv-radius); background: #fff; }
.rv-toc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.85em 1em; font-weight: 700; font-size: 0.95rem; color: var(--rv-heading); background: none; border: 0; font-family: inherit; cursor: pointer; }
.rv-toc__body { padding: 0 1em 1em; }
.rv-toc nav ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.rv-toc nav li { margin: 0; counter-increment: toc; }
.rv-toc nav a { display: block; padding: 0.35em 0; font-size: 0.9rem; color: var(--rv-text-muted); text-decoration: none; border-left: 2px solid transparent; padding-left: 0.7em; }
.rv-toc nav a:hover, .rv-toc nav a.is-active { color: var(--rv-primary); border-left-color: var(--rv-primary); }
.rv-toc nav .toc-h3 a { padding-left: 1.6em; font-size: 0.85rem; }

/* In-article (mobile) TOC is collapsible; hidden once the sidebar TOC shows */
.rv-toc--inline { margin: var(--rv-space-3) auto; max-width: var(--rv-reading-width); }
.rv-toc--inline .rv-toc__body[hidden] { display: none; }
@media (min-width: 1024px) { .rv-toc--inline { display: none; } }

/* Sidebar sticky TOC (desktop) */
.rv-sidebar { position: sticky; top: calc(var(--rv-header-height) + 16px); display: flex; flex-direction: column; gap: var(--rv-space-3); }
@media (max-width: 1023px) { .rv-sidebar { display: none; } }

/* Reading progress bar */
.rv-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--rv-primary); z-index: 250; transition: width 80ms linear; }

/* ------------------------------------------------------------------ *
 * 13. Ad slots
 * ------------------------------------------------------------------ */
.rv-ad-slot { margin: var(--rv-space-4) auto; max-width: var(--rv-reading-width); text-align: center; }
.rv-ad-slot__inner { min-height: 100px; display: flex; align-items: center; justify-content: center; background: var(--rv-surface); border: 1px dashed var(--rv-border); border-radius: var(--rv-radius-sm); color: var(--rv-text-muted); font-size: 0.8rem; overflow: hidden; }
.rv-ad-slot__label { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 0.35rem; }
/* Reserve space to avoid CLS on common ad sizes */
.rv-ad-slot--leaderboard .rv-ad-slot__inner { min-height: 90px; }
.rv-ad-slot--rectangle .rv-ad-slot__inner { min-height: 250px; max-width: 336px; margin-inline: auto; }
.rv-ad-slot--in-article .rv-ad-slot__inner { min-height: 120px; }
.rv-ad-slot[hidden] { display: none; }

/* ------------------------------------------------------------------ *
 * 14. Newsletter
 * ------------------------------------------------------------------ */
.rv-newsletter { background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: var(--rv-radius); padding: var(--rv-space-4); text-align: center; }
.rv-newsletter__title { margin: 0 0 0.35rem; }
.rv-newsletter__text { color: var(--rv-text-muted); margin: 0 auto var(--rv-space-2); max-width: 48ch; }
.rv-newsletter__form { display: flex; gap: 0.5rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.rv-newsletter__form input[type="email"] { flex: 1; min-width: 200px; font-family: inherit; font-size: 1rem; padding: 0.7em 0.9em; border: 1px solid var(--rv-border); border-radius: 8px; }
.rv-newsletter__note { font-size: 0.78rem; color: var(--rv-text-muted); margin: 0.6rem 0 0; }

/* ------------------------------------------------------------------ *
 * 15. Forms (enquiry / contact)
 * ------------------------------------------------------------------ */
.rv-form { display: grid; gap: var(--rv-space-2); }
.rv-form__row { display: grid; gap: var(--rv-space-2); }
@media (min-width: 560px) { .rv-form__row--2 { grid-template-columns: 1fr 1fr; } }
.rv-field { display: flex; flex-direction: column; gap: 0.35rem; }
.rv-field label { font-size: 0.9rem; font-weight: 600; color: var(--rv-heading); }
.rv-field .req { color: var(--rv-primary); }
.rv-field input, .rv-field select, .rv-field textarea {
	font-family: inherit; font-size: 1rem; padding: 0.7em 0.85em;
	border: 1px solid var(--rv-border); border-radius: 8px; background: #fff; color: var(--rv-text); width: 100%;
}
.rv-field input:focus, .rv-field select:focus, .rv-field textarea:focus { border-color: var(--rv-primary); outline: none; box-shadow: 0 0 0 3px var(--rv-primary-tint); }
.rv-field textarea { min-height: 120px; resize: vertical; }
.rv-form__note { font-size: 0.82rem; color: var(--rv-text-muted); }

/* ------------------------------------------------------------------ *
 * 16. Archive / page headers
 * ------------------------------------------------------------------ */
.rv-page-header { padding-block: var(--rv-space-4); border-bottom: 1px solid var(--rv-border); }
.rv-page-header--surface { background: var(--rv-surface); }
.rv-page-header__eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rv-primary); }
.rv-page-header__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); margin: 0.3rem 0 0.5rem; }
.rv-page-header__desc { color: var(--rv-text-muted); max-width: 68ch; margin: 0; }

/* Topic chips */
.rv-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--rv-space-3) 0; }
.rv-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; font-weight: 500; padding: 0.4em 0.85em; border: 1px solid var(--rv-border); border-radius: 999px; color: var(--rv-heading); text-decoration: none; background: #fff; }
.rv-chip:hover, .rv-chip.is-active { border-color: var(--rv-primary); color: var(--rv-primary); background: var(--rv-primary-tint); }

/* Pagination */
.rv-pagination { margin: var(--rv-space-4) 0; }
.rv-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.rv-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 0.7em; border: 1px solid var(--rv-border); border-radius: var(--rv-radius-sm); color: var(--rv-heading); text-decoration: none; font-size: 0.9rem; }
.rv-pagination .page-numbers:hover { border-color: var(--rv-primary); color: var(--rv-primary); }
.rv-pagination .page-numbers.current { background: var(--rv-primary); border-color: var(--rv-primary); color: #fff; }
.rv-pagination .page-numbers.dots { border: 0; }

/* ------------------------------------------------------------------ *
 * 17. Footer
 * ------------------------------------------------------------------ */
.rv-footer { background: #161616; color: #cfcfcf; padding-block: var(--rv-space-5) var(--rv-space-3); margin-top: var(--rv-space-6); }
.rv-footer a { color: #e6e6e6; text-decoration: none; }
.rv-footer a:hover { color: #fff; text-decoration: underline; }
.rv-footer__grid { display: grid; gap: var(--rv-space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .rv-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .rv-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.rv-footer__brand-logo img { max-height: 42px; width: auto; margin-bottom: var(--rv-space-2); filter: brightness(0) invert(1); }
.rv-footer__brand-text { font-size: 0.9rem; color: #b3b3b3; max-width: 34ch; }
.rv-footer__col-title { color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 var(--rv-space-2); }
.rv-footer__col ul { list-style: none; margin: 0; padding: 0; }
.rv-footer__col li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.rv-footer__social { display: flex; gap: 0.6rem; margin-top: var(--rv-space-2); }
.rv-footer__social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid #333; border-radius: var(--rv-radius-sm); }
.rv-footer__social a:hover { border-color: var(--rv-primary); background: var(--rv-primary); }
.rv-footer__social svg { width: 18px; height: 18px; }
.rv-footer__bottom { border-top: 1px solid #2a2a2a; margin-top: var(--rv-space-4); padding-top: var(--rv-space-3); display: flex; flex-wrap: wrap; gap: var(--rv-space-2); justify-content: space-between; align-items: center; font-size: 0.82rem; color: #9a9a9a; }
.rv-footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; list-style: none; margin: 0; padding: 0; }
.rv-footer__disclaimer { font-size: 0.78rem; color: #8a8a8a; margin-top: var(--rv-space-2); max-width: 90ch; }

/* ------------------------------------------------------------------ *
 * 18. Misc / states
 * ------------------------------------------------------------------ */
.rv-no-results { max-width: var(--rv-reading-width); margin: var(--rv-space-5) auto; text-align: center; }
.rv-no-results__title { margin-bottom: 0.5rem; }
.rv-404 { text-align: center; padding-block: var(--rv-space-5); }
.rv-404__code { font-size: clamp(3rem, 2rem + 6vw, 6rem); font-weight: 800; color: var(--rv-primary); line-height: 1; margin: 0; }

.rv-meta-note { font-size: 0.82rem; color: var(--rv-text-muted); }
.rv-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.rv-list-plain { list-style: none; padding: 0; margin: 0; }
.rv-list-plain li { margin-bottom: 0.6rem; }
.rv-list-plain a { color: var(--rv-heading); text-decoration: none; }
.rv-list-plain a:hover { color: var(--rv-primary); }

.rv-stack > * + * { margin-top: var(--rv-space-2); }
.rv-mt-0 { margin-top: 0; }
.rv-text-center { text-align: center; }
