/**
 * ReviewGamer main stylesheet.
 *
 * Structure: tokens, reset, typography, layout, header, hero, cards, sections,
 * article, review blocks, events, forms, footer, utilities, motion.
 * All colors, spacing, radii and timings are CSS variables so the Customizer
 * and Elementor can override the brand globally.
 */

/* ------------------------------------------------------------------ Tokens */
:root {
	/* Colors are re-declared inline by inc/customizer.php. Values here are the
	   fallback used if that inline style is ever stripped by a cache plugin. */
	--rg-bg: #0b0f14;
	--rg-surface: #121923;
	--rg-card: #182230;
	--rg-accent: #6c5ce7;
	--rg-accent-2: #00d4ff;
	--rg-success: #8be28b;
	--rg-text: #f5f7fa;
	--rg-muted: #9aa7b5;
	--rg-accent-rgb: 108, 92, 231;

	--rg-border: rgba(255, 255, 255, 0.10);
	--rg-border-strong: rgba(255, 255, 255, 0.18);
	--rg-overlay: rgba(11, 15, 20, 0.72);
	--rg-danger: #ff6b6b;

	--rg-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--rg-font-display: "Space Grotesk", "Chakra Petch", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
	--rg-font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;

	--rg-fs-xs: 0.75rem;
	--rg-fs-sm: 0.875rem;
	--rg-fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	--rg-fs-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
	--rg-fs-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
	--rg-fs-h2: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
	--rg-fs-h1: clamp(1.9rem, 1.4rem + 2.2vw, 3.25rem);
	--rg-fs-hero: clamp(2.1rem, 1.4rem + 3vw, 3.75rem);

	--rg-lh-tight: 1.12;
	--rg-lh-body: 1.7;

	--rg-s1: 0.25rem;
	--rg-s2: 0.5rem;
	--rg-s3: 0.75rem;
	--rg-s4: 1rem;
	--rg-s5: 1.5rem;
	--rg-s6: 2rem;
	--rg-s7: 3rem;
	--rg-s8: clamp(3rem, 2rem + 4vw, 5.5rem);

	--rg-radius-sm: 6px;
	--rg-radius: 12px;
	--rg-radius-lg: 18px;

	--rg-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
	--rg-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	--rg-shadow-accent: 0 10px 30px rgba(var(--rg-accent-rgb), 0.28);

	--rg-container: 1200px;
	--rg-gutter: clamp(1rem, 4vw, 2.5rem);
	--rg-header-h: 68px;
	--rg-header-inner-h: 68px;

	--rg-t-fast: 140ms;
	--rg-t: 220ms;
	--rg-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-scheme="light"] {
	--rg-bg: #f4f6f9;
	--rg-surface: #ffffff;
	--rg-card: #ffffff;
	--rg-text: #101720;
	--rg-muted: #56636f;
	--rg-border: rgba(16, 23, 32, 0.12);
	--rg-border-strong: rgba(16, 23, 32, 0.22);
	--rg-overlay: rgba(244, 246, 249, 0.86);
	--rg-shadow: 0 12px 30px rgba(16, 23, 32, 0.10);
}

/* ------------------------------------------------------------------- Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--rg-header-h) + 1rem); }

body {
	margin: 0;
	background: var(--rg-bg);
	color: var(--rg-text);
	font-family: var(--rg-font-body);
	font-size: var(--rg-fs-base);
	line-height: var(--rg-lh-body);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background-color: rgba(255, 255, 255, 0.03); }

a { color: inherit; text-decoration-color: rgba(var(--rg-accent-rgb), 0.6); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 {
	font-family: var(--rg-font-display);
	line-height: var(--rg-lh-tight);
	letter-spacing: -0.015em;
	margin: 0 0 var(--rg-s3);
	font-weight: 700;
}

p, ul, ol { margin: 0 0 var(--rg-s4); }

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

::selection { background: rgba(var(--rg-accent-rgb), 0.35); }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: var(--rg-s4);
	top: var(--rg-s4);
	z-index: 200;
	padding: var(--rg-s3) var(--rg-s4);
	background: var(--rg-accent);
	color: #fff;
	border-radius: var(--rg-radius-sm);
}

/* ------------------------------------------------------------------ Layout */
.rg-container {
	width: min(100% - (var(--rg-gutter) * 2), var(--rg-container));
	margin-inline: auto;
}

.rg-main { display: block; min-height: 40vh; padding-bottom: var(--rg-s8); }

.rg-layout {
	display: grid;
	gap: var(--rg-s7);
	grid-template-columns: minmax(0, 1fr);
	padding-block: var(--rg-s6);
}

@media (min-width: 1000px) {
	.rg-layout { grid-template-columns: minmax(0, 1fr) 320px; }
	body.rg-no-sidebar .rg-layout { grid-template-columns: minmax(0, 1fr); }
}

.rg-layout--narrow { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.rg-layout--narrow .rg-layout__aside { display: none; }

.rg-sticky { position: sticky; top: calc(var(--rg-header-h) + var(--rg-s4)); }

.rg-section { margin-block: var(--rg-s8); }

.rg-section--panel {
	background: var(--rg-surface);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius-lg);
	padding: var(--rg-s6) var(--rg-s5);
}

.rg-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--rg-s4);
	margin-bottom: var(--rg-s5);
}

/* Signature: a thin accent rail marking every editorial section. */
.rg-rail { border-left: 3px solid var(--rg-accent); padding-left: var(--rg-s4); }
.rg-section__title { font-size: var(--rg-fs-h2); margin: 0; }

.rg-eyebrow {
	font-family: var(--rg-font-mono);
	font-size: var(--rg-fs-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--rg-accent-2);
	margin: 0 0 var(--rg-s1);
}

.rg-link-more {
	font-family: var(--rg-font-mono);
	font-size: var(--rg-fs-sm);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: var(--rg-muted);
	transition: color var(--rg-t-fast) var(--rg-ease);
}
.rg-link-more:hover { color: var(--rg-text); }

.rg-grid { display: grid; gap: var(--rg-s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 760px) {
	.rg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.rg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ Header */
.rg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--rg-bg); /* fallback for browsers without color-mix */
	background: color-mix(in srgb, var(--rg-bg) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--rg-border);
}

@supports not (backdrop-filter: blur(10px)) {
	.rg-header { background: var(--rg-bg); }
}

.rg-header__inner {
	display: flex;
	align-items: center;
	gap: var(--rg-s4);
	min-height: var(--rg-header-inner-h);
}

.rg-brand__text { margin: 0; font-family: var(--rg-font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.rg-brand__text a { text-decoration: none; }
.rg-brand__accent { color: var(--rg-accent-2); }
.custom-logo { max-height: 44px; width: auto; }

.rg-nav { margin-inline-start: auto; }
.rg-nav__list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: var(--rg-s5);
	margin: 0;
	padding: 0;
}
.rg-nav__list a {
	text-decoration: none;
	font-family: var(--rg-font-display);
	font-size: var(--rg-fs-sm);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--rg-muted);
	padding-block: var(--rg-s2);
	transition: color var(--rg-t-fast) var(--rg-ease);
}
.rg-nav__list a:hover,
.rg-nav__list .current-menu-item > a { color: var(--rg-text); }

.rg-nav__list li { position: relative; }
.rg-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: var(--rg-s2);
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: var(--rg-surface);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
	box-shadow: var(--rg-shadow);
	display: none;
	z-index: 20;
}
.rg-nav__list li:hover > .sub-menu,
.rg-nav__list li:focus-within > .sub-menu { display: block; }
.rg-nav__list .sub-menu a { display: block; padding: var(--rg-s2) var(--rg-s3); text-transform: none; letter-spacing: 0; }

.rg-header__actions { display: flex; align-items: center; gap: var(--rg-s2); margin-inline-start: var(--rg-s4); }

.rg-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--rg-border);
	background: transparent;
	color: var(--rg-text);
	cursor: pointer;
	transition: border-color var(--rg-t-fast) var(--rg-ease), background var(--rg-t-fast) var(--rg-ease);
}
.rg-icon-btn:hover { border-color: var(--rg-accent); background: rgba(var(--rg-accent-rgb), 0.12); }

.rg-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--rg-border); border-radius: var(--rg-radius-sm); background: transparent; cursor: pointer; }
.rg-burger__bars, .rg-burger__bars::before, .rg-burger__bars::after {
	display: block; width: 20px; height: 2px; background: var(--rg-text); margin-inline: auto; position: relative;
	transition: transform var(--rg-t) var(--rg-ease), opacity var(--rg-t-fast) var(--rg-ease);
}
.rg-burger__bars::before, .rg-burger__bars::after { content: ""; position: absolute; left: 0; }
.rg-burger__bars::before { top: -6px; }
.rg-burger__bars::after { top: 6px; }
.rg-burger[aria-expanded="true"] .rg-burger__bars { background: transparent; }
.rg-burger[aria-expanded="true"] .rg-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.rg-burger[aria-expanded="true"] .rg-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 979px) {
	.rg-burger { display: block; }
	.rg-header__cta { display: none; }
	.rg-nav {
		position: fixed;
		inset: var(--rg-header-h) 0 auto 0;
		background: var(--rg-surface);
		border-bottom: 1px solid var(--rg-border);
		padding: var(--rg-s4) var(--rg-gutter) var(--rg-s6);
		max-height: calc(100dvh - var(--rg-header-h));
		overflow-y: auto;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--rg-t) var(--rg-ease), transform var(--rg-t) var(--rg-ease), visibility var(--rg-t);
	}
	.rg-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.rg-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.rg-nav__list a { display: block; padding: var(--rg-s4) 0; font-size: var(--rg-fs-lg); border-bottom: 1px solid var(--rg-border); min-height: 48px; }
	.rg-nav__list .sub-menu { position: static; display: block; border: 0; box-shadow: none; background: transparent; padding-left: var(--rg-s4); }
}

.rg-search-panel {
	border-top: 1px solid var(--rg-border);
	background: var(--rg-surface);
	padding: var(--rg-s5) 0;
}
.rg-search-panel .rg-container { position: relative; }
.rg-search-panel__close {
	position: absolute;
	top: -8px;
	right: 0;
	background: transparent;
	border: 0;
	color: var(--rg-muted);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	min-width: 44px;
	min-height: 44px;
}

/* -------------------------------------------------------------------- Hero */
.rg-hero { position: relative; isolation: isolate; padding-block: clamp(3rem, 8vw, 6.5rem); overflow: hidden; }
.rg-hero__media { position: absolute; inset: 0; z-index: -2; }
.rg-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.rg-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(120% 90% at 12% 20%, rgba(var(--rg-accent-rgb), 0.32), transparent 60%),
		linear-gradient(180deg, rgba(11, 15, 20, 0.55), var(--rg-bg) 92%);
	background:
		radial-gradient(120% 90% at 12% 20%, rgba(var(--rg-accent-rgb), 0.32), transparent 60%),
		linear-gradient(180deg, color-mix(in srgb, var(--rg-bg) 55%, transparent), var(--rg-bg) 92%);
}
.rg-hero__inner { display: flex; align-items: center; gap: var(--rg-s6); flex-wrap: wrap; }
.rg-hero__content { max-width: 42rem; }
.rg-hero__title { font-size: var(--rg-fs-hero); margin-block: var(--rg-s3); }
.rg-hero__title a { text-decoration: none; }
.rg-hero__excerpt { color: var(--rg-muted); font-size: var(--rg-fs-lg); }
.rg-hero__actions { display: flex; flex-wrap: wrap; gap: var(--rg-s3); margin-top: var(--rg-s5); }
.rg-hero__score { margin-inline-start: auto; }

/* ------------------------------------------------------------------ Buttons */
.rg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--rg-s2);
	min-height: 46px;
	padding: 0 var(--rg-s5);
	border-radius: var(--rg-radius-sm);
	border: 1px solid transparent;
	font-family: var(--rg-font-display);
	font-size: var(--rg-fs-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--rg-t-fast) var(--rg-ease), box-shadow var(--rg-t) var(--rg-ease), background var(--rg-t-fast) var(--rg-ease);
}
.rg-btn--primary { background: var(--rg-accent); color: #fff; box-shadow: var(--rg-shadow-accent); }
.rg-btn--primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--rg-accent) 88%, #fff); }
.rg-btn--ghost { border-color: var(--rg-border-strong); color: var(--rg-text); background: transparent; }
.rg-btn--ghost:hover { border-color: var(--rg-accent-2); color: var(--rg-accent-2); }

/* -------------------------------------------------------------------- Tags */
.rg-tag {
	display: inline-flex;
	align-items: center;
	font-family: var(--rg-font-mono);
	font-size: var(--rg-fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.28em 0.6em;
	border-radius: 999px;
	border: 1px solid var(--rg-border-strong);
	color: var(--rg-muted);
	text-decoration: none;
}
.rg-tag--cat { border-color: rgba(var(--rg-accent-rgb), 0.55); color: var(--rg-accent-2); }
.rg-tag--platform { border-style: dashed; }
.rg-tag--sponsored { border-color: var(--rg-success); color: var(--rg-success); }
.rg-card__tags { display: flex; flex-wrap: wrap; gap: var(--rg-s2); margin-bottom: var(--rg-s3); }

/* ------------------------------------------------------------------- Cards */
.rg-card {
	display: flex;
	flex-direction: column;
	background: var(--rg-card);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
	overflow: hidden;
	transition: transform var(--rg-t) var(--rg-ease), border-color var(--rg-t) var(--rg-ease), box-shadow var(--rg-t) var(--rg-ease);
}
.rg-card:hover { transform: translateY(-3px); border-color: rgba(var(--rg-accent-rgb), 0.5); box-shadow: var(--rg-shadow); }
.rg-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--rg-surface); }
.rg-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rg-card__score { position: absolute; right: var(--rg-s3); bottom: var(--rg-s3); }
.rg-card__body { padding: var(--rg-s4); display: flex; flex-direction: column; gap: var(--rg-s2); flex: 1; }
.rg-card__title { font-size: var(--rg-fs-h3); margin: 0; }
.rg-card__title a { text-decoration: none; }
.rg-card__title a:hover { color: var(--rg-accent-2); }
.rg-card__excerpt { color: var(--rg-muted); font-size: var(--rg-fs-sm); margin: 0; }
.rg-card--compact .rg-card__body { padding: var(--rg-s3) var(--rg-s4) var(--rg-s4); }

.rg-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rg-s3);
	margin-top: auto;
	padding-top: var(--rg-s2);
	font-family: var(--rg-font-mono);
	font-size: var(--rg-fs-xs);
	color: var(--rg-muted);
	letter-spacing: 0.04em;
}
.rg-meta a { text-decoration: none; }
.rg-meta a:hover { color: var(--rg-text); }
.rg-meta__item + .rg-meta__item::before,
.rg-meta__author + .rg-meta__item::before { content: "•"; margin-inline-end: var(--rg-s3); opacity: 0.5; }

/* ------------------------------------------------------- Signature: score */
.rg-score {
	display: inline-grid;
	place-items: center;
	grid-template-areas: "stack";
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background:
		conic-gradient(var(--rg-score-color, var(--rg-accent-2)) var(--rg-score-pct, 0%), rgba(255, 255, 255, 0.12) 0);
	font-family: var(--rg-font-mono);
	position: relative;
}
.rg-score::before {
	content: "";
	grid-area: stack;
	width: calc(100% - 8px);
	height: calc(100% - 8px);
	border-radius: 50%;
	background: var(--rg-card);
}
.rg-score__value { grid-area: stack; font-size: 1.1rem; font-weight: 700; z-index: 1; line-height: 1; }
.rg-score__scale { display: none; }
.rg-score--high { --rg-score-color: var(--rg-success); }
.rg-score--mid { --rg-score-color: var(--rg-accent-2); }
.rg-score--low { --rg-score-color: var(--rg-danger); }
.rg-score--lg { width: 108px; height: 108px; }
.rg-score--lg .rg-score__value { font-size: 2.1rem; }
.rg-score--lg .rg-score__scale { display: block; grid-area: stack; align-self: end; margin-bottom: 14px; font-size: var(--rg-fs-xs); color: var(--rg-muted); z-index: 1; }
.rg-hero .rg-score::before { background: var(--rg-bg); }

/* ------------------------------------------------------------ Guides, list */
.rg-guides { display: grid; gap: var(--rg-s2); }
.rg-guide-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rg-s4);
	padding: var(--rg-s4);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
	background: var(--rg-card);
	text-decoration: none;
	min-height: 56px;
	transition: border-color var(--rg-t-fast) var(--rg-ease), transform var(--rg-t-fast) var(--rg-ease);
}
.rg-guide-row:hover { border-color: rgba(var(--rg-accent-rgb), 0.6); transform: translateX(3px); }
.rg-guide-row__title { font-family: var(--rg-font-display); font-weight: 600; }
.rg-guide-row__meta { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); color: var(--rg-muted); white-space: nowrap; }

.rg-newslist { display: grid; gap: var(--rg-s3); }
.rg-newslist__item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--rg-s4); align-items: baseline; padding-bottom: var(--rg-s3); border-bottom: 1px solid var(--rg-border); }
.rg-newslist__item time { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); color: var(--rg-muted); }
.rg-newslist__item h3 { font-size: var(--rg-fs-lg); margin: 0; }
.rg-newslist__item a { text-decoration: none; }
.rg-newslist__item a:hover { color: var(--rg-accent-2); }
@media (max-width: 599px) {
	.rg-newslist__item { grid-template-columns: 1fr; gap: var(--rg-s1); }
}

/* --------------------------------------------------------------- Timeline */
.rg-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rg-s4); }
.rg-timeline__item {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: var(--rg-s5);
	padding: var(--rg-s4);
	border: 1px solid var(--rg-border);
	border-left: 3px solid var(--rg-accent);
	border-radius: var(--rg-radius);
	background: var(--rg-card);
}
.rg-timeline__date { font-family: var(--rg-font-mono); font-size: var(--rg-fs-sm); color: var(--rg-accent-2); }
.rg-timeline__title { font-size: var(--rg-fs-h3); margin: 0 0 var(--rg-s2); }
.rg-timeline__title a { text-decoration: none; }
.rg-timeline__meta { display: flex; flex-wrap: wrap; gap: var(--rg-s3); align-items: center; font-size: var(--rg-fs-sm); color: var(--rg-muted); margin: 0; }
@media (max-width: 699px) {
	.rg-timeline__item { grid-template-columns: 1fr; gap: var(--rg-s2); }
}

.rg-event-facts { display: flex; flex-wrap: wrap; gap: var(--rg-s5); margin: var(--rg-s4) 0 0; }
.rg-event-facts dt { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--rg-muted); }
.rg-event-facts dd { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------- Article */
.rg-archive-head { margin-bottom: var(--rg-s6); }
.rg-archive-title { font-size: var(--rg-fs-h1); margin-block: var(--rg-s2); }
.rg-archive-desc { color: var(--rg-muted); max-width: 60ch; }
.rg-author-head { display: flex; gap: var(--rg-s5); align-items: center; flex-wrap: wrap; }
.rg-author-head__avatar { border-radius: 50%; }

.rg-breadcrumbs { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); color: var(--rg-muted); margin-bottom: var(--rg-s3); }
.rg-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--rg-s2); margin: 0; padding: 0; }
.rg-breadcrumbs li + li::before { content: "/"; margin-inline-end: var(--rg-s2); opacity: 0.6; }
.rg-breadcrumbs a { text-decoration: none; }
.rg-breadcrumbs a:hover { color: var(--rg-text); }

.rg-article__header { margin-bottom: var(--rg-s5); }
.rg-article__title { font-size: var(--rg-fs-h1); margin-block: var(--rg-s2) var(--rg-s3); }
.rg-article__standfirst { font-size: var(--rg-fs-lg); color: var(--rg-muted); max-width: 62ch; }
.rg-article__hero { margin: 0 0 var(--rg-s6); }
.rg-article__hero img { width: 100%; border-radius: var(--rg-radius-lg); }
.rg-article__hero figcaption { font-size: var(--rg-fs-xs); color: var(--rg-muted); margin-top: var(--rg-s2); }
.rg-updated { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); color: var(--rg-success); margin-top: var(--rg-s2); }

.rg-prose { max-width: 72ch; }
.rg-prose h2 { font-size: var(--rg-fs-h2); margin-top: var(--rg-s7); }
.rg-prose h3 { font-size: var(--rg-fs-h3); margin-top: var(--rg-s6); }
.rg-prose img { border-radius: var(--rg-radius); }
.rg-prose blockquote {
	margin: var(--rg-s6) 0;
	padding: var(--rg-s4) var(--rg-s5);
	border-left: 3px solid var(--rg-accent);
	background: var(--rg-surface);
	border-radius: 0 var(--rg-radius) var(--rg-radius) 0;
	color: var(--rg-text);
}
.rg-prose code { font-family: var(--rg-font-mono); font-size: 0.9em; background: var(--rg-surface); padding: 0.15em 0.4em; border-radius: 4px; }
.rg-prose pre { background: var(--rg-surface); border: 1px solid var(--rg-border); border-radius: var(--rg-radius); padding: var(--rg-s4); overflow-x: auto; }
.rg-prose ul, .rg-prose ol { padding-inline-start: 1.25rem; }
.rg-prose li { margin-bottom: var(--rg-s2); }
.rg-prose figure { margin-inline: 0; }

.rg-tags { display: flex; flex-wrap: wrap; gap: var(--rg-s2); align-items: center; margin: var(--rg-s6) 0; }
.rg-tags__label { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); text-transform: uppercase; color: var(--rg-muted); }
.rg-tags a { font-size: var(--rg-fs-sm); text-decoration: none; border: 1px solid var(--rg-border); border-radius: 999px; padding: 0.2em 0.7em; }

.rg-authorbox {
	display: flex;
	gap: var(--rg-s4);
	align-items: flex-start;
	padding: var(--rg-s5);
	background: var(--rg-surface);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
}
.rg-authorbox__avatar { border-radius: 50%; }
.rg-authorbox__name { font-family: var(--rg-font-display); font-weight: 700; margin: 0 0 var(--rg-s1); }
.rg-authorbox__bio { color: var(--rg-muted); font-size: var(--rg-fs-sm); margin: 0; }

/* ------------------------------------------------------------ Review parts */
.rg-verdict {
	background: var(--rg-surface);
	background: linear-gradient(160deg, color-mix(in srgb, var(--rg-accent) 14%, var(--rg-surface)), var(--rg-surface));
	border: 1px solid var(--rg-border-strong);
	border-radius: var(--rg-radius-lg);
	padding: var(--rg-s6) var(--rg-s5);
	margin-bottom: var(--rg-s6);
}
.rg-verdict__head { display: flex; align-items: center; justify-content: space-between; gap: var(--rg-s4); flex-wrap: wrap; }
.rg-verdict__title { font-size: var(--rg-fs-h2); margin: 0; }
.rg-verdict__text { font-size: var(--rg-fs-lg); margin-block: var(--rg-s4); }
.rg-verdict .rg-score::before { background: var(--rg-surface); }

.rg-proscons { display: grid; gap: var(--rg-s5); margin-top: var(--rg-s5); }
@media (min-width: 700px) { .rg-proscons { grid-template-columns: 1fr 1fr; } }
.rg-proscons h3 { display: flex; align-items: center; gap: var(--rg-s2); font-size: var(--rg-fs-lg); }
.rg-proscons__mark {
	display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
	font-family: var(--rg-font-mono); font-weight: 700; color: var(--rg-bg);
}
.rg-proscons__col--pro .rg-proscons__mark { background: var(--rg-success); }
.rg-proscons__col--con .rg-proscons__mark { background: var(--rg-danger); }
.rg-proscons ul { list-style: none; padding: 0; margin: 0; }
.rg-proscons li { padding-left: var(--rg-s4); border-left: 1px solid var(--rg-border); margin-bottom: var(--rg-s2); }
.rg-verdict__cta { margin: var(--rg-s5) 0 0; }

.rg-specs { margin-block: var(--rg-s7); }
.rg-specs__title { font-size: var(--rg-fs-h2); }
.rg-table { width: 100%; border-collapse: collapse; margin-bottom: var(--rg-s5); }
.rg-table th, .rg-table td { text-align: left; padding: var(--rg-s3) var(--rg-s4); border-bottom: 1px solid var(--rg-border); vertical-align: top; }
.rg-table th { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--rg-muted); width: 34%; font-weight: 500; }
.rg-specs__grid { display: grid; gap: var(--rg-s5); }
@media (min-width: 700px) { .rg-specs__grid { grid-template-columns: 1fr 1fr; } }
.rg-specs__col ul { list-style: none; padding: 0; margin: 0; }
.rg-specs__col li { padding: var(--rg-s2) 0; border-bottom: 1px dashed var(--rg-border); font-size: var(--rg-fs-sm); }

.rg-callout { border-radius: var(--rg-radius); padding: var(--rg-s4) var(--rg-s5); border: 1px solid var(--rg-border); background: var(--rg-surface); margin-block: var(--rg-s5); }
.rg-callout h3 { font-size: var(--rg-fs-lg); margin-top: 0; }
.rg-callout--tip { border-left: 3px solid var(--rg-accent-2); }
.rg-callout--warning { border-left: 3px solid var(--rg-danger); }

.rg-toc {
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
	background: var(--rg-surface);
	padding: var(--rg-s4) var(--rg-s5);
	margin-bottom: var(--rg-s6);
}
.rg-toc__title { font-size: var(--rg-fs-lg); margin-top: 0; }
.rg-toc__list { margin: 0; padding-inline-start: 1.1rem; }
.rg-toc__item { margin-bottom: var(--rg-s1); }
.rg-toc__item--h3 { margin-inline-start: var(--rg-s4); font-size: var(--rg-fs-sm); list-style-type: none; }
.rg-toc a { text-decoration: none; }
.rg-toc a:hover { text-decoration: underline; }

.rg-disclosure {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rg-s3);
	align-items: baseline;
	font-size: var(--rg-fs-sm);
	color: var(--rg-muted);
	background: var(--rg-surface);
	border: 1px dashed var(--rg-border-strong);
	border-radius: var(--rg-radius-sm);
	padding: var(--rg-s3) var(--rg-s4);
	margin-block: var(--rg-s5);
}
.rg-disclosure__tag { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--rg-accent-2); }

/* ------------------------------------------------------------------ Forms */
.rg-field { display: grid; gap: var(--rg-s2); margin-bottom: var(--rg-s3); }
.rg-field__label { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--rg-muted); }
.rg-field__input,
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%;
	min-height: 46px;
	padding: var(--rg-s3) var(--rg-s4);
	background: var(--rg-bg);
	border: 1px solid var(--rg-border-strong);
	border-radius: var(--rg-radius-sm);
	color: var(--rg-text);
	font: inherit;
}
textarea { min-height: 120px; }
.rg-field--check { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--rg-s3); }
.rg-field--check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--rg-accent); }
.rg-field--check label { font-size: var(--rg-fs-sm); color: var(--rg-muted); }
.rg-field--hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.rg-searchform__row { display: flex; gap: var(--rg-s2); }
.rg-searchform__row .rg-btn { flex-shrink: 0; }

.rg-newsletter { background: var(--rg-surface); border: 1px solid var(--rg-border); border-radius: var(--rg-radius-lg); padding: var(--rg-s6) var(--rg-s5); }
.rg-section--newsletter .rg-newsletter { background: linear-gradient(140deg, color-mix(in srgb, var(--rg-accent) 18%, var(--rg-surface)), var(--rg-surface)); }
.rg-newsletter--compact { background: transparent; border: 0; padding: 0; }
.rg-newsletter__title { font-size: var(--rg-fs-h2); margin-top: 0; }
.rg-newsletter__text { color: var(--rg-muted); max-width: 52ch; }
.rg-newsletter__form { max-width: 34rem; }
.rg-newsletter__status { margin: var(--rg-s3) 0 0; font-size: var(--rg-fs-sm); min-height: 1.4em; }
.rg-newsletter__status.is-ok { color: var(--rg-success); }
.rg-newsletter__status.is-error { color: var(--rg-danger); }

/* --------------------------------------------------------------- Comments */
.rg-comments { margin-top: var(--rg-s8); }
.rg-comments__title { font-size: var(--rg-fs-h2); }
.rg-comments__list, .rg-comments__list .children { list-style: none; padding-inline-start: 0; }
.rg-comments__list .children { padding-inline-start: var(--rg-s5); border-left: 1px solid var(--rg-border); }
.rg-comments__list .comment-body { padding: var(--rg-s4); border: 1px solid var(--rg-border); border-radius: var(--rg-radius); background: var(--rg-card); margin-bottom: var(--rg-s4); }
.comment-meta { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); color: var(--rg-muted); }
.comment-form { display: grid; gap: var(--rg-s3); }

/* ------------------------------------------------------------------- Ads */
.rg-ad-slot { display: grid; place-items: center; margin-block: var(--rg-s5); }
.rg-ad-slot--header { margin-top: var(--rg-s4); }
.rg-ad {
	width: 100%;
	max-width: 970px;
	min-height: 100px;
	display: grid;
	place-items: center;
	gap: var(--rg-s2);
	border: 1px dashed var(--rg-border-strong);
	border-radius: var(--rg-radius);
	padding: var(--rg-s3);
	background: var(--rg-surface);
}
.rg-ad__label { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--rg-muted); }
.rg-ad-slot--sidebar .rg-ad { min-height: 250px; max-width: 320px; }

/* ---------------------------------------------------------------- Widgets */
.rg-widget { background: var(--rg-card); border: 1px solid var(--rg-border); border-radius: var(--rg-radius); padding: var(--rg-s4) var(--rg-s5); margin-bottom: var(--rg-s5); }
.rg-widget__title { font-size: var(--rg-fs-lg); }
.rg-widget ul { list-style: none; padding: 0; margin: 0; }
.rg-widget li { padding: var(--rg-s2) 0; border-bottom: 1px solid var(--rg-border); }
.rg-widget a { text-decoration: none; }

/* ----------------------------------------------------------------- Footer */
.rg-footer { border-top: 1px solid var(--rg-border); background: var(--rg-surface); padding-top: var(--rg-s7); }
.rg-footer__grid { display: grid; gap: var(--rg-s6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .rg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .rg-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; } }
.rg-footer__title { font-size: var(--rg-fs-sm); text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--rg-font-mono); color: var(--rg-muted); }
.rg-footer__list { list-style: none; padding: 0; margin: 0; }
.rg-footer__list li { margin-bottom: var(--rg-s2); }
.rg-footer__list a { text-decoration: none; font-size: var(--rg-fs-sm); }
.rg-footer__list a:hover { color: var(--rg-accent-2); }
.rg-footer__about { color: var(--rg-muted); font-size: var(--rg-fs-sm); max-width: 40ch; }
.rg-social__list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--rg-s3); padding: 0; margin: 0; }
.rg-social__list a { font-family: var(--rg-font-mono); font-size: var(--rg-fs-xs); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; border: 1px solid var(--rg-border); border-radius: 999px; padding: 0.4em 0.9em; }
.rg-footer__bottom { border-top: 1px solid var(--rg-border); margin-top: var(--rg-s6); padding-block: var(--rg-s4); }
.rg-copyright { font-size: var(--rg-fs-xs); color: var(--rg-muted); margin: 0; }

.rg-to-top {
	position: fixed;
	right: var(--rg-s4);
	bottom: var(--rg-s4);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--rg-border-strong);
	background: var(--rg-card);
	color: var(--rg-text);
	cursor: pointer;
	z-index: 90;
}

/* ------------------------------------------------------- Misc / utilities */
.rg-empty { padding: var(--rg-s7) 0; max-width: 46rem; }
.rg-empty__title { font-size: var(--rg-fs-h2); }
.rg-404 { padding-block: var(--rg-s8); }
.rg-404__title { font-size: var(--rg-fs-h1); }
.rg-404__text { color: var(--rg-muted); max-width: 52ch; }
.rg-home-intro { margin-block: var(--rg-s7); }

.pagination, .rg-page-links { margin-top: var(--rg-s6); }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--rg-s2); }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--rg-s3);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius-sm);
	text-decoration: none;
	font-family: var(--rg-font-mono);
	font-size: var(--rg-fs-sm);
}
.page-numbers.current { background: var(--rg-accent); color: #fff; border-color: transparent; }

/* Elementor: let containers span full width without fighting theme padding. */
.rg-has-elementor .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--rg-container); }
.elementor-widget-container p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- Motion */
.rg-reveal { opacity: 0; transform: translateY(14px); }
.rg-reveal.is-visible { opacity: 1; transform: none; transition: opacity 480ms var(--rg-ease), transform 480ms var(--rg-ease); }

@media (max-width: 767px) {
	/* Scroll reveals are skipped on small screens: content must be instant. */
	.rg-reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.rg-reveal { opacity: 1; transform: none; }
	.rg-card:hover, .rg-btn--primary:hover, .rg-guide-row:hover { transform: none; }
}

@media print {
	.rg-header, .rg-footer, .rg-to-top, .rg-ad-slot, .rg-newsletter, .rg-comments { display: none !important; }
	body { background: #fff; color: #000; }
}

/* =====================================================================
   v1.1 visual layer
   Ambient background, richer header, animated nav, card motion,
   score ring animation, denser footer. Everything still degrades to a
   static, readable page when motion is reduced.
   ===================================================================== */

@supports (background: paint(x)) {
	@property --rg-score-pct {
		syntax: "<percentage>";
		inherits: false;
		initial-value: 0%;
	}
}

/* Ambient depth: two accent auroras plus a faint technical grid. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -3;
	pointer-events: none;
	background:
		radial-gradient(58rem 34rem at 78% -8%, rgba(var(--rg-accent-rgb), 0.16), transparent 62%),
		radial-gradient(42rem 30rem at -10% 12%, rgba(0, 212, 255, 0.10), transparent 60%);
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -3;
	pointer-events: none;
	opacity: 0.35;
	background-image:
		linear-gradient(to right, var(--rg-border) 1px, transparent 1px),
		linear-gradient(to bottom, var(--rg-border) 1px, transparent 1px);
	background-size: 88px 88px;
	mask-image: radial-gradient(120% 80% at 50% 0%, #000 15%, transparent 72%);
	-webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 15%, transparent 72%);
}

[data-scheme="light"] body::before { opacity: 0.55; }

/* ------------------------------------------------------------- Top bar */
.rg-topbar {
	border-bottom: 1px solid var(--rg-border);
	background: linear-gradient(90deg, rgba(var(--rg-accent-rgb), 0.14), transparent 55%);
	font-family: var(--rg-font-mono);
	font-size: var(--rg-fs-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rg-muted);
}
.rg-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--rg-s4); min-height: 34px; }
.rg-topbar p { margin: 0; }
.rg-topbar__tagline { display: inline-flex; align-items: center; gap: var(--rg-s2); }
.rg-topbar__dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--rg-success);
	box-shadow: 0 0 0 0 rgba(139, 226, 139, 0.6);
	animation: rg-pulse 2.8s var(--rg-ease) infinite;
}
@keyframes rg-pulse {
	0% { box-shadow: 0 0 0 0 rgba(139, 226, 139, 0.55); }
	70% { box-shadow: 0 0 0 8px rgba(139, 226, 139, 0); }
	100% { box-shadow: 0 0 0 0 rgba(139, 226, 139, 0); }
}
@media (max-width: 767px) { .rg-topbar__date { display: none; } }

/* -------------------------------------------------------------- Header */
.rg-header {
	background: linear-gradient(180deg, color-mix(in srgb, var(--rg-bg) 94%, transparent), color-mix(in srgb, var(--rg-bg) 82%, transparent));
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid transparent;
	border-image: linear-gradient(90deg, transparent, rgba(var(--rg-accent-rgb), 0.55), rgba(0, 212, 255, 0.45), transparent) 1;
	transition: box-shadow var(--rg-t) var(--rg-ease), background var(--rg-t) var(--rg-ease);
}
.rg-header.is-scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45); }
.rg-header.is-scrolled .rg-topbar { display: none; }
.rg-header.is-scrolled .rg-header__inner { min-height: 58px; }
.rg-header__inner { transition: min-height var(--rg-t) var(--rg-ease); }

.rg-brand__text { display: flex; font-size: 1.4rem; }
.rg-brand__text a { display: inline-flex; align-items: center; gap: var(--rg-s3); }
.rg-brand__badge {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: #fff;
	background: linear-gradient(135deg, var(--rg-accent), var(--rg-accent-2));
	border-radius: 10px;
	box-shadow: var(--rg-shadow-accent);
	transition: transform var(--rg-t) var(--rg-ease);
}
.rg-brand__text a:hover .rg-brand__badge { transform: rotate(-8deg) scale(1.06); }
.rg-brand__accent {
	background: linear-gradient(92deg, var(--rg-accent-2), var(--rg-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Animated nav underline. */
.rg-nav__list > li > a { position: relative; }
.rg-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 2px;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, var(--rg-accent), var(--rg-accent-2));
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--rg-t) var(--rg-ease);
}
.rg-nav__list > li > a:hover::after,
.rg-nav__list > .current-menu-item > a::after,
.rg-nav__list > .current-menu-parent > a::after { transform: scaleX(1); transform-origin: left; }

.rg-header__cta.rg-btn--ghost {
	border-color: rgba(var(--rg-accent-rgb), 0.6);
	background: rgba(var(--rg-accent-rgb), 0.12);
}
.rg-header__cta.rg-btn--ghost:hover { background: var(--rg-accent); color: #fff; border-color: transparent; }

/* Reading progress. */
.rg-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.rg-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--rg-accent), var(--rg-accent-2));
	box-shadow: 0 0 12px rgba(var(--rg-accent-rgb), 0.8);
	transition: width 90ms linear;
}

@media (max-width: 979px) {
	.rg-nav { box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5); }
	.rg-nav__list > li > a::after { display: none; }
}

/* ---------------------------------------------------------------- Hero */
.rg-hero { padding-block: clamp(4rem, 10vw, 8rem); }
.rg-hero__media img { opacity: 0.34; transform: scale(1.04); animation: rg-hero-drift 18s var(--rg-ease) forwards; }
@keyframes rg-hero-drift { to { transform: scale(1); } }
.rg-hero::before {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 55%;
	z-index: -1;
	background: linear-gradient(180deg, transparent, var(--rg-bg));
}
.rg-hero__content > * { animation: rg-rise 700ms var(--rg-ease) both; }
.rg-hero__content > .rg-card__tags { animation-delay: 60ms; }
.rg-hero__content > .rg-hero__title { animation-delay: 130ms; }
.rg-hero__content > .rg-hero__excerpt { animation-delay: 200ms; }
.rg-hero__content > .rg-meta { animation-delay: 260ms; }
.rg-hero__content > .rg-hero__actions { animation-delay: 320ms; }
@keyframes rg-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.rg-hero__title {
	text-wrap: balance;
	text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}
.rg-hero__title a { background-image: linear-gradient(90deg, var(--rg-accent-2), var(--rg-accent-2)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 400ms var(--rg-ease); }
.rg-hero__title a:hover { background-size: 100% 2px; }
.rg-hero__score { animation: rg-rise 700ms 380ms var(--rg-ease) both; }

/* --------------------------------------------------------- Section head */
.rg-section__title { position: relative; }
.rg-rail { position: relative; border-left-color: transparent; }
.rg-rail::before {
	content: "";
	position: absolute;
	left: -3px;
	top: 4px;
	bottom: 4px;
	width: 3px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--rg-accent), var(--rg-accent-2));
}
.rg-link-more { position: relative; padding-bottom: 3px; }
.rg-link-more::after {
	content: "";
	position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: right;
	transition: transform var(--rg-t) var(--rg-ease);
}
.rg-link-more:hover::after { transform: scaleX(1); transform-origin: left; }

.rg-section--panel {
	position: relative;
	background:
		linear-gradient(180deg, rgba(var(--rg-accent-rgb), 0.07), transparent 40%),
		var(--rg-surface);
	overflow: hidden;
}
.rg-section--panel::before {
	content: "";
	position: absolute;
	top: 0; left: 10%; right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(var(--rg-accent-rgb), 0.7), transparent);
}

/* --------------------------------------------------------------- Cards */
.rg-card { position: relative; }
.rg-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(140deg, rgba(var(--rg-accent-rgb), 0.9), rgba(0, 212, 255, 0.5) 45%, transparent 70%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity var(--rg-t) var(--rg-ease);
	pointer-events: none;
	z-index: 2;
}
.rg-card:hover::before { opacity: 1; }
.rg-card__media { overflow: hidden; }
.rg-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(11, 15, 20, 0.78));
	opacity: 0.75;
	transition: opacity var(--rg-t) var(--rg-ease);
}
.rg-card:hover .rg-card__media::after { opacity: 0.5; }
.rg-card__media img { transition: transform 620ms var(--rg-ease); }
.rg-card:hover .rg-card__media img { transform: scale(1.06); }
.rg-card__score { z-index: 2; }
.rg-card__title a {
	background-image: linear-gradient(90deg, var(--rg-accent-2), var(--rg-accent-2));
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 320ms var(--rg-ease), color var(--rg-t-fast) var(--rg-ease);
}
.rg-card:hover .rg-card__title a { background-size: 100% 1px; }
.rg-tag--cat { background: rgba(var(--rg-accent-rgb), 0.14); }

/* --------------------------------------------------------- Score ring */
.rg-score { transition: --rg-score-pct 1100ms var(--rg-ease); }
.rg-score::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid var(--rg-score-color, var(--rg-accent-2));
	opacity: 0.25;
}
.rg-score--lg { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); }

/* --------------------------------------------------------- Guides rows */
.rg-guide-row { position: relative; overflow: hidden; }
.rg-guide-row::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--rg-accent), var(--rg-accent-2));
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform var(--rg-t) var(--rg-ease);
}
.rg-guide-row:hover::before { transform: scaleY(1); transform-origin: top; }

.rg-timeline__item { position: relative; transition: transform var(--rg-t) var(--rg-ease), border-color var(--rg-t) var(--rg-ease); }
.rg-timeline__item:hover { transform: translateX(4px); border-color: rgba(var(--rg-accent-rgb), 0.5); }

.rg-newslist__item { transition: padding-left var(--rg-t) var(--rg-ease); }
.rg-newslist__item:hover { padding-left: var(--rg-s2); }

/* ------------------------------------------------------------- Buttons */
.rg-btn { position: relative; overflow: hidden; }
.rg-btn--primary { background: linear-gradient(120deg, var(--rg-accent), color-mix(in srgb, var(--rg-accent-2) 45%, var(--rg-accent))); }
.rg-btn--primary::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0; left: -60%;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
	transform: skewX(-18deg);
	transition: left 620ms var(--rg-ease);
}
.rg-btn--primary:hover::after { left: 120%; }

/* -------------------------------------------------------------- Footer */
.rg-footer {
	position: relative;
	background:
		radial-gradient(60rem 22rem at 15% 0%, rgba(var(--rg-accent-rgb), 0.16), transparent 60%),
		var(--rg-surface);
	padding-top: var(--rg-s8);
	border-top: 0;
}
.rg-footer::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--rg-accent), var(--rg-accent-2), transparent);
}
.rg-footer__title { position: relative; padding-bottom: var(--rg-s2); margin-bottom: var(--rg-s4); }
.rg-footer__title::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 28px; height: 2px;
	background: var(--rg-accent-2);
}
.rg-footer__list a { position: relative; display: inline-block; transition: transform var(--rg-t-fast) var(--rg-ease), color var(--rg-t-fast) var(--rg-ease); }
.rg-footer__list a:hover { transform: translateX(4px); }
.rg-footer .rg-brand__text { font-size: 1.5rem; margin-bottom: var(--rg-s3); }
.rg-social__list a { transition: border-color var(--rg-t-fast) var(--rg-ease), color var(--rg-t-fast) var(--rg-ease), transform var(--rg-t-fast) var(--rg-ease); }
.rg-social__list a:hover { border-color: var(--rg-accent-2); color: var(--rg-accent-2); transform: translateY(-2px); }
.rg-footer__col--news .rg-newsletter--compact {
	background: linear-gradient(150deg, rgba(var(--rg-accent-rgb), 0.16), transparent 70%);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius-lg);
	padding: var(--rg-s5);
}
.rg-footer__bottom { background: rgba(0, 0, 0, 0.22); margin-top: var(--rg-s7); }

.rg-to-top {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--rg-accent), var(--rg-accent-2));
	color: #fff;
	border: 0;
	box-shadow: var(--rg-shadow-accent);
	transition: transform var(--rg-t) var(--rg-ease), opacity var(--rg-t) var(--rg-ease);
}
.rg-to-top:hover { transform: translateY(-3px); }

/* ------------------------------------------------------ Reveal, refined */
.rg-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 620ms var(--rg-ease), transform 620ms var(--rg-ease);
	transition-delay: calc(var(--rg-i, 0) * 70ms);
}
.rg-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 767px) {
	/* Mobile keeps a lighter fade, no vertical travel, so nothing waits. */
	.rg-reveal { opacity: 0; transform: none; transition-duration: 380ms; }
	.rg-reveal.is-visible { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	body::before, body::after { animation: none; }
	.rg-topbar__dot { animation: none; }
	.rg-hero__media img,
	.rg-hero__content > *,
	.rg-hero__score { animation: none; opacity: 1; transform: none; }
	.rg-reveal, .rg-reveal.is-visible { opacity: 1; transform: none; }
	.rg-timeline__item:hover, .rg-to-top:hover, .rg-footer__list a:hover { transform: none; }
	.rg-card:hover .rg-card__media img { transform: none; }
}

/* Editor-only diagnostics. Never rendered for visitors. */
.rg-hint {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rg-s2);
	align-items: baseline;
	font-size: var(--rg-fs-sm);
	color: var(--rg-muted);
	background: rgba(var(--rg-accent-rgb), 0.10);
	border: 1px dashed rgba(var(--rg-accent-rgb), 0.55);
	border-radius: var(--rg-radius-sm);
	padding: var(--rg-s3) var(--rg-s4);
	margin: 0 0 var(--rg-s4);
}
.rg-hint__tag {
	font-family: var(--rg-font-mono);
	font-size: var(--rg-fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--rg-accent-2);
}
.rg-home-intro:empty { display: none; }

/* -------------------------------------------------- Spotlight (featured) */
.rg-spotlight { display: grid; gap: var(--rg-s5); }

@media (min-width: 900px) {
	.rg-spotlight { grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; }
	.rg-card--spotlight { grid-row: span 2; }
	.rg-card--spotlight .rg-card__media { aspect-ratio: 4 / 3; }
	.rg-card--spotlight .rg-card__body { padding: var(--rg-s5); gap: var(--rg-s3); }
	.rg-card--spotlight .rg-card__title { font-size: var(--rg-fs-h2); }
	.rg-card--spotlight .rg-card__excerpt { font-size: var(--rg-fs-base); }
	.rg-card--featured { flex-direction: row; align-items: stretch; }
	.rg-card--featured .rg-card__media { width: 42%; flex-shrink: 0; aspect-ratio: auto; }
	.rg-card--featured .rg-card__body { padding: var(--rg-s4); }
	.rg-card--featured .rg-card__excerpt { display: none; }
}

.rg-card--spotlight { position: relative; }
.rg-card--spotlight::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: inset 0 0 90px rgba(var(--rg-accent-rgb), 0.18);
}

/* =====================================================================
   v1.3 fixes
   Content tables, stable header, footer newsletter band, animated
   section headings, empty section states.
   ===================================================================== */

/* ------------------------------------------------- Tables in articles */
.rg-prose table,
.rg-prose .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--rg-fs-sm);
	background: var(--rg-card);
	color: var(--rg-text);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
	overflow: hidden;
}
.rg-prose .wp-block-table { overflow-x: auto; margin-block: var(--rg-s6); }
.rg-prose th,
.rg-prose td {
	padding: var(--rg-s3) var(--rg-s4);
	border: 0;
	border-bottom: 1px solid var(--rg-border);
	text-align: left;
	vertical-align: top;
	color: var(--rg-text);
}
.rg-prose thead th {
	background: rgba(var(--rg-accent-rgb), 0.18);
	font-family: var(--rg-font-display);
	font-size: var(--rg-fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rg-text);
	border-bottom: 1px solid var(--rg-border-strong);
}
.rg-prose tbody tr:last-child td { border-bottom: 0; }

/* Core "stripes" style ships a light grey background that made light text
   unreadable on a dark theme. Repaint both variants. */
.rg-prose .wp-block-table.is-style-stripes table,
.rg-prose table.is-style-stripes { border-color: var(--rg-border); }
.rg-prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.rg-prose table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: rgba(255, 255, 255, 0.045);
}
.rg-prose .wp-block-table.is-style-stripes tbody tr:nth-child(even),
.rg-prose table.is-style-stripes tbody tr:nth-child(even) {
	background-color: transparent;
}
.rg-prose .wp-block-table.is-style-stripes td,
.rg-prose .wp-block-table.is-style-stripes th { color: var(--rg-text); border-color: var(--rg-border); }
.rg-prose tbody tr { transition: background-color var(--rg-t-fast) var(--rg-ease); }
.rg-prose tbody tr:hover { background-color: rgba(var(--rg-accent-rgb), 0.10); }
.rg-prose .wp-block-table figcaption { color: var(--rg-muted); font-size: var(--rg-fs-xs); }

[data-scheme="light"] .rg-prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
[data-scheme="light"] .rg-prose table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: rgba(16, 23, 32, 0.05);
}

/* --------------------------------------------------- Header stability */
/* The top bar used to be removed on scroll, which changed the sticky header
   height, moved the document, and re-triggered the scroll handler: the header
   appeared to vibrate. It now keeps a constant height at every scroll
   position, and only its shadow reacts. */
.rg-header.is-scrolled .rg-topbar { display: block; }
/* Never size the inner bar from --rg-header-h: JS measures the whole header
   into that variable, so reading it back here grew the header on every
   recalculation, which is what made it shake. */
.rg-header.is-scrolled .rg-header__inner { min-height: var(--rg-header-inner-h); }
.rg-header__inner { transition: none; }
.rg-header.is-scrolled { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5); }
.rg-header.is-scrolled .rg-topbar { opacity: 0.55; transition: opacity var(--rg-t) var(--rg-ease); }

/* ------------------------------------------------ Footer newsletter band */
.rg-footer__cta {
	border-bottom: 1px solid var(--rg-border);
	padding-block: var(--rg-s7);
	margin-bottom: var(--rg-s7);
	background: linear-gradient(120deg, rgba(var(--rg-accent-rgb), 0.16), transparent 62%);
}
.rg-footer__cta .rg-newsletter,
.rg-footer__cta .rg-newsletter--compact {
	background: transparent;
	border: 0;
	padding: 0;
	display: grid;
	gap: var(--rg-s4) var(--rg-s7);
	align-items: start;
}
.rg-footer__cta .rg-newsletter__title { margin: 0; }
.rg-footer__cta .rg-newsletter__text { margin: 0; }
.rg-footer__cta .rg-newsletter__form { max-width: none; }

@media (min-width: 900px) {
	.rg-footer__cta .rg-newsletter {
		grid-template-columns: 1.05fr 1fr;
		grid-template-rows: auto auto;
	}
	.rg-footer__cta .rg-newsletter__title { grid-column: 1; grid-row: 1; }
	.rg-footer__cta .rg-newsletter__text { grid-column: 1; grid-row: 2; }
	.rg-footer__cta .rg-newsletter__form { grid-column: 2; grid-row: 1 / span 2; }
	.rg-footer__cta .rg-searchform__row,
	.rg-footer__cta .rg-field__input { max-width: 26rem; }
}

/* Four balanced columns, no more empty half. */
@media (min-width: 1040px) {
	.rg-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.rg-social--column .rg-social__list { flex-direction: column; align-items: flex-start; gap: var(--rg-s2); }

/* --------------------------------------------- Animated section heads */
.rg-section__head .rg-rail::before { transform: scaleY(0); transform-origin: top; }
.rg-section__head.is-visible .rg-rail::before {
	transform: scaleY(1);
	transition: transform 520ms var(--rg-ease) 80ms;
}
.rg-section__head .rg-eyebrow {
	opacity: 0;
	transform: translateX(-10px);
}
.rg-section__head.is-visible .rg-eyebrow {
	opacity: 1;
	transform: none;
	transition: opacity 420ms var(--rg-ease) 120ms, transform 420ms var(--rg-ease) 120ms;
}
.rg-section__title {
	background-image: linear-gradient(100deg, var(--rg-text) 32%, var(--rg-accent-2) 50%, var(--rg-text) 68%);
	background-size: 260% 100%;
	background-position: 100% 0;
	-webkit-background-clip: text;
	background-clip: text;
}
.rg-section__head.is-visible .rg-section__title {
	animation: rg-title-sweep 1500ms var(--rg-ease) 260ms 1;
}
@keyframes rg-title-sweep {
	0% { background-position: 100% 0; color: transparent; }
	99% { background-position: 0 0; color: transparent; }
	100% { background-position: 0 0; color: inherit; }
}

/* --------------------------------------------------- Empty section state */
.rg-section--empty { opacity: 0.9; }
.rg-empty-note {
	border: 1px dashed var(--rg-border-strong);
	border-radius: var(--rg-radius);
	padding: var(--rg-s5);
	color: var(--rg-muted);
	font-size: var(--rg-fs-sm);
	margin: 0;
	background: linear-gradient(180deg, rgba(var(--rg-accent-rgb), 0.06), transparent);
}

@media (prefers-reduced-motion: reduce) {
	.rg-section__head .rg-rail::before,
	.rg-section__head .rg-eyebrow { transform: none; opacity: 1; }
	.rg-section__title { animation: none; background-image: none; }
	.rg-prose tbody tr:hover { background-color: transparent; }
}
