/* =========================================================================
   Reelfellas theme stylesheet
   Everything theme.json can't express: bespoke grids, marquees, the app
   demo panels, the TOC, .btn/.tag/.input classes, .rf-prose and breakpoints.
   ========================================================================= */

/* --- 1. Token aliases -----------------------------------------------------
   theme.json is the source of truth for every color/radius/shadow/font
   value below; these just give them the short names used throughout this
   file (and match the original Nocturne design tokens 1:1). */
:root {
	--color-bg: var(--wp--preset--color--bg);
	--color-surface: var(--wp--preset--color--surface);
	--color-text: var(--wp--preset--color--text);
	--color-divider: var(--wp--preset--color--divider);
	--color-accent: var(--wp--preset--color--accent);
	--color-accent-100: var(--wp--preset--color--accent-100);
	--color-accent-200: var(--wp--preset--color--accent-200);
	--color-accent-300: var(--wp--preset--color--accent-300);
	--color-accent-400: var(--wp--preset--color--accent-400);
	--color-accent-500: var(--wp--preset--color--accent-500);
	--color-accent-600: var(--wp--preset--color--accent-600);
	--color-accent-700: var(--wp--preset--color--accent-700);
	--color-accent-800: var(--wp--preset--color--accent-800);
	--color-accent-900: var(--wp--preset--color--accent-900);
	--color-neutral-100: var(--wp--preset--color--neutral-100);
	--color-neutral-200: var(--wp--preset--color--neutral-200);
	--color-neutral-300: var(--wp--preset--color--neutral-300);
	--color-neutral-400: var(--wp--preset--color--neutral-400);
	--color-neutral-500: var(--wp--preset--color--neutral-500);
	--color-neutral-600: var(--wp--preset--color--neutral-600);
	--color-neutral-700: var(--wp--preset--color--neutral-700);
	--color-neutral-800: var(--wp--preset--color--neutral-800);
	--color-neutral-900: var(--wp--preset--color--neutral-900);
	--brand-gold: var(--wp--preset--color--gold);
	--app-danger: var(--wp--preset--color--danger);
	--app-bg: var(--wp--preset--color--app-bg);
	--app-surface: var(--wp--preset--color--app-surface);
	--app-surface-alt: var(--wp--preset--color--app-surface-alt);
	--app-silver: var(--wp--preset--color--app-silver);
	--app-silver-light: var(--wp--preset--color--app-silver-light);
	--color-section: var(--wp--preset--color--section);
	--color-section-glow: var(--wp--preset--color--section-glow);
	--color-section-ghost: var(--wp--preset--color--section-ghost);

	--font-heading: var(--wp--preset--font-family--heading);
	--font-body: var(--wp--preset--font-family--body);

	--radius-sm: var(--wp--custom--radius--sm);
	--radius-md: var(--wp--custom--radius--md);
	--radius-lg: var(--wp--custom--radius--lg);
	--radius-pill: var(--wp--custom--radius--pill);
	--radius-app: var(--wp--custom--radius--app);

	--shadow-sm: var(--wp--preset--shadow--sm);
	--shadow-md: var(--wp--preset--shadow--md);
	--shadow-lg: var(--wp--preset--shadow--lg);
}

/* --- 2. Base --------------------------------------------------------------- */
body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	overflow-x: hidden;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-300); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 500; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Several components below set their own `display` (flex/grid) and are also
   toggled with the plain `hidden` attribute/property from JS. Without this,
   an author rule with a class selector — or an inline style — beats the
   browser's default `[hidden] { display: none }` and the "hidden" element
   stays visible. This keeps `hidden` authoritative everywhere in the theme. */
[hidden] { display: none !important; }

.rf-kicker {
	font-family: var(--font-heading);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-accent-400);
	margin: 0 0 16px;
}
.rf-section { border-bottom: 1px solid var(--color-divider); }
.rf-section-pad { padding-block: 88px; }

@keyframes reel-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes reel-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes reel-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
	[style*="animation"], .rf-marquee-track { animation: none !important; }
}

/* --- 3. Buttons / tags / inputs (ported from the Nocturne token sheet) --- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	cursor: pointer; text-decoration: none;
	font-family: var(--font-heading); font-weight: 500;
	font-size: 14px; line-height: 1.2; color: var(--color-text);
	background: transparent; border: 1px solid transparent;
	padding: 10px 15px; border-radius: var(--radius-md);
	transition: background .15s, border-color .15s;
}
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: rgba(145,132,217,.12); color: var(--color-accent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: rgba(233,233,237,.07); }
.btn-ghost { color: var(--color-accent); padding-inline: 4px; }
.btn-ghost:hover { background: rgba(145,132,217,.1); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* core/button's wrapping <div> carries the same "btn btn-primary" etc.
   classes as the link inside it, so it was ALSO matching .btn/.btn-*
   above and getting its own border+padding+radius — doubling up with the
   .wp-block-button__link rules below. Strip the box model back off the
   wrapper (equal specificity, later in source, so this wins including on
   :hover) so only the inner link ever renders a visible border/padding. */
.wp-block-button.btn { padding: 0; border: 0; border-radius: 0; background: none; }

/* core/button applies its className to the *wrapping* <div>, not the link,
   so every .btn variant above also needs a "wrapper .wp-block-button__link"
   form for buttons built with the block editor's Buttons block. */
.wp-block-button.btn .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-heading); font-weight: 500; font-size: 14px; line-height: 1.2; color: var(--color-text); background: transparent; border: 1px solid transparent; padding: 10px 15px; border-radius: var(--radius-md); transition: background .15s, border-color .15s; }
.wp-block-button.btn-primary .wp-block-button__link { color: var(--color-accent); border-color: var(--color-accent); }
.wp-block-button.btn-primary:hover .wp-block-button__link { background: rgba(145,132,217,.12); }
.wp-block-button.btn-secondary .wp-block-button__link { border-color: var(--color-divider); }
.wp-block-button.btn-secondary:hover .wp-block-button__link { background: rgba(233,233,237,.07); }
.wp-block-button.btn-store .wp-block-button__link { background: #fff; color: #161826; border-color: #fff; }
.wp-block-button.btn-store:hover .wp-block-button__link { background: var(--color-accent-100); }
.wp-block-button.btn-outline-light .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.5); }
.wp-block-button.btn-outline-light:hover .wp-block-button__link { background: rgba(255,255,255,.12); }
.wp-block-button.btn-icon .wp-block-button__link { width: 36px; height: 36px; padding: 0; }

/* span.tag/div.tag, not just .tag: WordPress adds a bare "tag" class to
   <body> on tag archives (body_class()), and an unscoped .tag rule matches
   that too, turning the whole page into an inline-flex badge. */
span.tag, div.tag {
	display: inline-flex; align-items: center; font-size: 11px;
	letter-spacing: .02em; padding: 3px 10px; border-radius: 6px;
	font-family: var(--font-body);
}
.tag-accent { background: var(--color-accent-800); color: var(--color-accent-100); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

.field label { display: block; font-size: 13px; color: var(--color-neutral-300); margin-bottom: 8px; }
.input {
	width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; box-sizing: border-box;
	font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
	background: var(--color-surface);
	border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: rgba(233,233,237,.45); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 140px; resize: vertical; font-family: inherit; }

details summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; cursor: pointer; }
details[open] .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .2s; }

/* --- 4. Header -------------------------------------------------------------- */
.rf-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--color-bg) 88%, transparent);
	backdrop-filter: blur(14px);
}
/* core's block-gap support adds margin-top to whatever follows the header
   template-part (they're "siblings" in flow layout), leaving a gap before
   every page's banner even starts. Remove it everywhere, not just on one
   template, since the header part is shared by all of them. */
.wp-block-template-part:has(.rf-header) + * { margin-top: 0; }
.rf-header-inner {
	max-width: 1180px; margin: 0 auto; padding: 29px 32px;
	display: flex; align-items: center; gap: 32px;
}
.rf-logo img { display: block; height: 28px; width: auto; }
.rf-nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.rf-nav a {
	white-space: nowrap; font-size: 14px; color: var(--color-neutral-400);
	min-height: 32px; display: inline-flex; align-items: center;
}
.rf-nav a.is-active, .rf-nav a[aria-current="page"] { color: var(--color-accent); }
.rf-header-cta { flex: none; white-space: nowrap; }
.rf-header-cta .wp-block-button.btn .wp-block-button__link { padding: 7px 14px; font-size: 13px; }
/* core/group's own "is-layout-flex > :is(*, div) { margin: 0 }" global-styles
   rule outranks a plain .rf-nav/.rf-header-cta class (it has one more type
   selector's worth of specificity), so the margin-left below needs a
   selector at least as specific to actually push these to the right edge. */
.rf-header-inner .rf-nav { margin-left: auto; }
.rf-header-inner .rf-header-cta { margin-left: 12px; }

@media (max-width: 720px) {
	.rf-header-inner { flex-wrap: wrap; gap: 12px 16px; padding-inline: 20px; }
	.rf-header-inner .rf-nav { order: 3; width: 100%; margin-left: 0; }
	.rf-nav { gap: 18px; }
	.rf-header-inner .rf-header-cta { margin-left: auto; }
}

/* --- 5. CTA band ------------------------------------------------------------ */
.rf-cta-band {
	background: linear-gradient(140deg, var(--color-section) 0%, var(--color-section-glow) 60%, var(--color-section-ghost) 100%);
}
/* .rf-section/.rf-footer normally get a 1px divider against the next
   section — but sitting right against the CTA band's own gradient, that
   plain line just looks like an unwanted border on the band itself. */
.rf-section:has(+ .wp-block-template-part .rf-cta-band) { border-bottom: 0; }
.wp-block-template-part:has(.rf-cta-band) + .wp-block-template-part .rf-footer { border-top: 0; }
.rf-cta-inner {
	max-width: 1180px; margin: 0 auto; padding: 76px 32px;
	display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.rf-cta-inner h2 { font-size: clamp(28px,3.8vw,46px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 14px; color: #fff; white-space: nowrap; }
@media (max-width: 560px) {
	.rf-cta-inner h2 { white-space: normal; }
}
.rf-cta-inner p { font-size: 17px; line-height: 1.6; color: var(--color-accent-200); margin: 0; max-width: 44ch; }
.rf-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.rf-cta-buttons .wp-block-button__link { padding: 14px 22px; font-size: 15px; white-space: nowrap; }
.rf-cta-buttons .btn-store .wp-block-button__link { background: #fff; color: #161826; border-color: #fff; }
.rf-cta-buttons .btn-store:hover .wp-block-button__link { background: var(--color-accent-100); }
.rf-cta-buttons .btn-outline-light .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.5); }
.rf-cta-buttons .btn-outline-light:hover .wp-block-button__link { background: rgba(255,255,255,.12); }

/* --- 6. Footer --------------------------------------------------------------- */
.rf-footer { border-top: 1px solid var(--color-divider); }
.rf-footer-grid {
	max-width: 1180px; margin: 0 auto; padding: 64px 32px 28px;
	display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 40px;
}
.rf-footer-grid h6 { color: var(--color-neutral-400); margin: 0 0 14px; font-size: 14px; font-weight: 500; }
.rf-footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.rf-footer-links li, .rf-footer-links p { margin: 0; }
.rf-footer-links a { font-size: 14px; color: var(--color-text); }
.rf-footer-links a:hover { color: var(--color-accent); }
.rf-footer-links a .ph { color: var(--color-accent); font-size: 15px; margin-right: 2px; vertical-align: -2px; }
.rf-footer-tagline { font-size: 14px; line-height: 1.6; color: var(--color-neutral-400); margin: 0 0 18px; max-width: 34ch; }
.rf-footer-social { display: flex; gap: 10px; }
.rf-footer-logo img { display: block; height: 30px; width: auto; margin-bottom: 16px; }
.rf-footer-bottom {
	max-width: 1180px; margin: 0 auto; padding: 20px 32px 40px; border-top: 1px solid var(--color-divider);
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.rf-footer-bottom p { font-size: 13px; color: var(--color-neutral-500); margin: 0; }
@media (max-width: 820px) {
	.rf-footer-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
}

/* --- 7. Home: hero + poster marquee ----------------------------------------- */
.rf-home-hero { background: radial-gradient(900px 480px at 10% 0%, color-mix(in srgb, var(--color-accent-900) 60%, transparent), transparent 70%); }
.rf-hero-grid {
	max-width: 1180px; margin: 0 auto; padding: 96px 32px 88px;
	display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 56px; align-items: center;
}
.rf-hero-grid h1 { font-size: clamp(38px,5.6vw,68px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 22px; max-width: 16ch; }
.rf-hero-lead { font-size: 18px; line-height: 1.6; color: var(--color-neutral-400); max-width: 48ch; margin: 0 0 32px; }
.rf-hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.rf-hero-buttons .wp-block-button__link { padding: 12px 20px; font-size: 15px; white-space: nowrap; }
.rf-hero-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-neutral-500); margin: 0; }
.rf-hero-note .ph-fill { color: var(--brand-gold); }

#rf-reel { position: relative; height: 520px; }
#rf-reel img { border-radius: var(--radius-md); }

@media (max-width: 900px) {
	.rf-hero-grid { grid-template-columns: 1fr; }
	#rf-reel { height: 360px; }
}

/* --- 8. How it works --------------------------------------------------------- */
.rf-how-it-works { border-bottom: 0; }
.rf-steps-head { text-align: center; margin: 0 auto 48px; }
.rf-steps-head h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; margin: 0; }
.rf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 28px; align-items: start; }
/* core's block-gap support adds margin-top to every child after the first,
   assuming a vertically-stacked "flow" layout — but .rf-steps is a 3-column
   grid (gap already handles spacing), so that stray margin was shifting the
   2nd/3rd columns down and misaligning their images against the 1st. */
.rf-steps > .rf-step { margin-top: 0; }
.rf-step { position: relative; border-bottom: 1px solid var(--color-divider); padding: 0 20px 20px; text-align: center; }
.rf-step::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
	background: var(--color-accent); transform: scaleX(0); transform-origin: left;
	transition: transform .35s ease;
}
.rf-step:hover::after { transform: scaleX(1); }
.rf-step-art { margin: 0 auto 16px; display: grid; place-items: center; width: 100%; max-width: 260px; aspect-ratio: 16/11; }
.rf-step-art img { width: 100%; height: 100%; object-fit: contain; object-position: top; }
.rf-step .rf-step-num { font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: var(--color-accent); }
.rf-step h3 { font-size: 22px; margin: 10px 0; }
.rf-step p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-400); margin: 0; }

/* --- 9. Vibe Match & Watch Now flagship sections ---------------------------- */
.rf-flagship { background: radial-gradient(900px 520px at 12% 0%, color-mix(in srgb, var(--color-accent-900) 70%, transparent), transparent 70%); }
.rf-languages-section { background: radial-gradient(900px 520px at 12% 0%, color-mix(in srgb, var(--color-accent-900) 70%, transparent), transparent 70%); }
/* core's block-gap support adds margin-top after the "How it works" section
   (they're pattern siblings in flow layout) — remove it so Vibe Match sits
   flush underneath instead of leaving a gap. */
#vibe-picker { margin-top: 0; }
.rf-flagship-grid {
	max-width: 1180px; margin: 0 auto; padding: 96px 32px;
	display: grid; gap: 56px; align-items: start;
}
.rf-flagship-grid.rf-vibe { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); }
.rf-flagship-grid.rf-watch { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
.rf-flagship-copy { position: sticky; top: 96px; }
.rf-flagship-copy h2 { font-size: clamp(32px,4.4vw,56px); line-height: 1.03; letter-spacing: -.035em; margin: 0 0 22px; max-width: 15ch; }
/* "Same vibe. New movie." matches the "Three steps..." heading's font style
   (size + letter-spacing) from the How it works section above it. */
#vibe-picker .rf-flagship-copy h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; }
/* "You had an hour..." matches the same "Three steps..." font style too. */
.rf-watch-copy h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; }
.rf-flagship-copy p { font-size: 17px; line-height: 1.65; color: var(--color-neutral-300); max-width: 46ch; margin: 0 0 18px; }
/* .rf-flagship-copy p above also matches .rf-kicker (it's a <p> too) and,
   being more specific, was overriding its font style — "Flagship · Vibe
   Match"/"Flagship · Watch Now" should look like "How Reelfellas works". */
.rf-flagship-copy .rf-kicker { font-size: 12px; letter-spacing: 0.14em; color: var(--color-accent-400); margin: 0 0 16px; max-width: none; }
.rf-flagship-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.rf-flagship-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--color-neutral-300); }
.rf-flagship-list .ph { color: var(--color-accent); font-size: 18px; margin-top: 2px; }
.rf-flagship-copy .rf-flagship-hint { font-family: ui-monospace, monospace; font-size: 12px; color: var(--color-neutral-500); margin: 44px 0 0; }
.rf-flagship-notes { display: grid; gap: 14px; }
.rf-flagship-notes div { border-top: 1px solid var(--color-divider); padding-top: 14px; }
.rf-flagship-notes p { font-size: 15px; color: var(--color-neutral-300); margin: 0; }
.rf-flagship-notes strong { color: var(--color-text); font-weight: 600; }

@media (max-width: 900px) {
	.rf-flagship-grid.rf-vibe, .rf-flagship-grid.rf-watch { grid-template-columns: 1fr; }
	.rf-flagship-copy { position: static; }
	.rf-watch-panel { order: 2; }
	.rf-watch-copy { order: 1; }
}

/* App demo panel shell, shared by Vibe Match and Watch Now */
.rf-app-panel { background: var(--app-bg); border-radius: var(--radius-app); box-shadow: var(--shadow-lg); }
.rf-app-panel-pad { padding: 16px; }
.rf-app-tabs { display: flex; gap: 4px; background: var(--app-surface); border-radius: 50px; padding: 4px; margin-bottom: 16px; }
.rf-app-tabs.rf-flat { border-radius: 0 0 12px 12px; padding: 16px 0 0; justify-content: space-around; background: var(--app-surface); }
.rf-pill-btn {
	flex: 1; min-height: 36px; padding: 8px 12px; border-radius: 50px; border: 0; cursor: pointer;
	font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--app-silver);
	background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	transition: all .15s;
}
.rf-pill-btn.is-active { background: var(--app-surface-alt); color: #fff; font-weight: 700; }
.rf-lens-btn {
	position: relative; background: transparent; border: 0; cursor: pointer; font-family: var(--font-body);
	font-size: 13px; padding: 0 4px 8px; color: var(--app-silver); font-weight: 400; transition: all .15s;
}
.rf-lens-btn.is-active { color: var(--brand-gold); font-weight: 700; box-shadow: inset 0 -2px 0 0 var(--brand-gold); }

.rf-vibe-seed { background: var(--app-surface); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.rf-vibe-seed-head { display: flex; align-items: center; gap: 16px; }
.rf-vibe-seed-head img { width: 64px; height: 88px; border-radius: 8px; object-fit: cover; flex: none; }
.rf-vibe-seed-head p:first-child { font-size: 12px; color: var(--app-silver); margin: 0 0 4px; }
.rf-vibe-seed-head p:last-child { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: #fff; margin: 0; }
.rf-vibe-tags-wrap { border-top: 1px solid rgba(172,177,192,.15); padding-top: 16px; }
.rf-vibe-tags-wrap > p { font-size: 11px; color: var(--app-silver); margin: 0 0 10px; }
.rf-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-chip {
	min-height: 32px; padding: 6px 16px; border-radius: 50px; cursor: pointer;
	font-family: var(--font-heading); font-size: 12px; font-weight: 600; transition: all .15s;
	background: var(--app-surface); border: 1px solid var(--app-silver-light); color: var(--app-silver);
}
.rf-chip.is-active { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--app-bg); }

.rf-vibe-section-title { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 2px; }
.rf-vibe-section-sub { font-size: 12px; color: var(--app-silver); margin: 0 0 12px; }
.rf-poster-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 0 4px 6px; }
.rf-poster-card { width: 128px; flex: none; }
.rf-poster-card-art { position: relative; aspect-ratio: 2/3; margin-bottom: 10px; }
.rf-poster-card-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.rf-match-badge {
	position: absolute; bottom: -8px; left: -6px; min-width: 34px; height: 28px; border-radius: 999px; padding: 0 6px;
	background: var(--brand-gold); border: 2px solid var(--app-bg); display: grid; place-items: center;
	font-family: var(--font-heading); font-size: 11px; font-weight: 900; color: var(--app-bg);
}
.rf-friends-badge {
	position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 2px;
	background: rgba(16,18,35,.85); border-radius: 50px; padding: 3px 6px;
	font-family: var(--font-heading); font-size: 10px; font-weight: 700; color: #fff;
}
.rf-poster-card-title { font-size: 13px; font-weight: 600; color: #fff; margin: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-react-row { display: flex; gap: 8px; }
.rf-react-btn {
	display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 4px 8px; border-radius: 50px; cursor: pointer;
	font-family: var(--font-heading); font-size: 11px; font-weight: 700; transition: all .15s;
	background: transparent; border: 1px solid var(--app-silver-light); color: var(--app-silver);
}
.rf-react-btn.is-up { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--app-bg); }
.rf-react-btn.is-down { background: var(--app-danger); border-color: var(--app-danger); color: #fff; }

.rf-friend-card { background: var(--app-surface); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.rf-friend-head { display: flex; align-items: center; gap: 8px; }
.rf-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--app-surface-alt); border: 1px solid var(--app-silver-light); display: grid; place-items: center; font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: #fff; flex: none; object-fit: cover; }
.rf-friend-pick { display: flex; gap: 16px; }
.rf-friend-pick img { width: 48px; height: 66px; border-radius: 8px; object-fit: cover; flex: none; }
.rf-friend-pick-title { font-size: 14px; font-weight: 700; color: var(--brand-gold); margin: 0; }
.rf-friend-pick-note { font-size: 12px; line-height: 1.45; color: var(--app-silver); margin: 0; }
.rf-friend-pick-tags { font-size: 11px; color: var(--app-silver-light); margin: 2px 0 0; }

.rf-request-card { background: var(--app-surface); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.rf-request-suggest {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: var(--brand-gold); color: var(--app-bg);
	border: 0; border-radius: 50px; padding: 8px 16px; font-family: var(--font-heading); font-size: 12px; font-weight: 700; cursor: pointer;
}
.rf-request-suggest:hover { filter: brightness(1.08); }

/* Watch Now panel specifics */
.rf-watch-stage { padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rf-watch-intro { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 6px; }
.rf-watch-intro .ph-fill { font-size: 30px; color: var(--brand-gold); }
.rf-watch-intro p:first-of-type { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--brand-gold); margin: 4px 0 0; }
.rf-watch-intro p:last-child { font-size: 13px; color: var(--app-silver); margin: 0; }
.rf-watch-frame { position: relative; width: 150px; height: 225px; border-radius: 8px; }
.rf-watch-frame-empty { width: 100%; height: 100%; box-sizing: border-box; border: 1px dashed var(--app-silver-light); border-radius: 8px; display: grid; place-items: center; }
.rf-watch-frame-empty .ph-fill { font-size: 32px; color: var(--app-silver-light); }
.rf-watch-fan { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.rf-watch-fan-card { position: absolute; width: 78%; height: 92%; box-sizing: border-box; border: 1px dashed var(--app-silver-light); border-radius: 8px; }
.rf-watch-fan-card.rf-left { transform: rotate(-12deg) translateX(-16px) translateY(8px); }
.rf-watch-fan-card.rf-right { transform: rotate(12deg) translateX(16px) translateY(8px); }
.rf-watch-fan-card.rf-center { background: var(--app-bg); }
.rf-watch-reel { width: 100%; height: 100%; overflow: hidden; border-radius: 8px; }
.rf-watch-reel-track { display: flex; flex-direction: column; transition: none; }
.rf-watch-reel-track img { display: block; width: 150px; height: 225px; object-fit: cover; }
.rf-watch-poster { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.rf-watch-result { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
.rf-watch-result-title { font-size: 15px; font-weight: 700; color: #fff; margin: 0; text-align: center; }
.rf-watch-result-badge { background: var(--brand-gold); border-radius: 50px; padding: 3px 8px; font-family: var(--font-heading); font-size: 11px; font-weight: 900; color: var(--app-bg); }
.rf-watch-result-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rf-watch-result-tags span { border: 1px solid var(--app-silver-light); border-radius: 50px; padding: 2px 8px; font-size: 10px; font-weight: 600; color: var(--app-silver-light); }
.rf-watch-note { font-size: 12px; line-height: 1.35; color: var(--app-silver); margin: 6px 0 0; text-align: center; max-width: 36ch; }

.rf-watch-controls { background: var(--app-surface-alt); border-radius: 0 0 var(--radius-app) var(--radius-app); overflow: hidden; }
.rf-watch-controls-pad { padding: 24px 16px; }
.rf-watch-controls-label { font-size: 13px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.rf-watch-blend-label { margin-top: 30px; }
.rf-watch-controls-label span { color: var(--app-silver); font-weight: 400; }
.rf-buddy-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 50px; cursor: pointer;
	font-family: var(--font-heading); font-size: 12px; font-weight: 600; transition: all .15s;
	background: transparent; border: 1px dashed var(--app-silver-light); color: var(--app-silver);
}
.rf-buddy-btn.is-active { background: var(--app-surface); border: 1px solid var(--brand-gold); color: #fff; }
.rf-buddy-avatar { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; background: var(--app-surface); color: var(--app-silver); margin-right: 4px; object-fit: cover; }
.rf-buddy-btn.is-active .rf-buddy-avatar { background: var(--brand-gold); color: var(--app-bg); }
.rf-watch-actions { display: flex; }
.rf-watch-actions button {
	flex: 1; min-height: 48px; border: 0; font-family: var(--font-heading); font-size: 15px; font-weight: 700; cursor: pointer;
}
.rf-watch-again { background: var(--app-surface-alt); border-right: 1px solid var(--app-silver-light) !important; color: #fff; }
.rf-watch-again:hover { background: #343858; }
.rf-watch-cta { background: var(--brand-gold); color: var(--app-bg); }
.rf-watch-cta:hover { filter: brightness(1.08); }

/* --- 10. Community features grid -------------------------------------------- */
/* Every section heading site-wide uses this same font style + the same
   16px gap under its kicker (matches "Three steps..." from How it works).
   #features h2 has no explicit margin-top otherwise, so it was picking up
   core's default 24px block-gap instead of the intended 16px. */
#features h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; margin-top: 0; }
.rf-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; }
.rf-feature-card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.rf-feature-vignette { background: var(--app-bg); border-bottom: 1px solid var(--color-neutral-800); padding: 20px; height: 180px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rf-feature-body { padding: 20px; }
.rf-feature-body .ph, .rf-feature-body .ph-fill { font-size: 20px; color: var(--color-accent); }
.rf-feature-body h4 { font-size: 18px; margin: 12px 0 8px; }
.rf-feature-body p { font-size: 14px; line-height: 1.6; color: var(--color-neutral-400); margin: 0; }
.rf-feature-about {
	border: 1px solid var(--color-neutral-800); border-radius: var(--radius-lg); padding: 28px 24px;
	display: flex; flex-direction: column; justify-content: center; gap: 18px;
	background: radial-gradient(420px 220px at 20% 0%, color-mix(in srgb, var(--color-accent-900) 65%, transparent), transparent 70%);
}
.rf-feature-about p { font-family: var(--font-heading); font-size: 21px; line-height: 1.25; letter-spacing: -.02em; color: var(--color-text); margin: 0; }

/* --- 11. Blog teaser (front page) ------------------------------------------- */
.rf-teaser-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.rf-teaser-head h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; margin: 0; white-space: nowrap; }
@media (max-width: 560px) {
	.rf-teaser-head h2 { white-space: normal; }
}

/* Query Loop styling shared by the teaser and blog list */
.rf-teaser-grid ul, .rf-teaser-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 22px; align-items: start; list-style: none; margin: 0; padding: 0; }
/* core's block-gap support adds margin-top to every post card after the
   first, assuming a vertically-stacked "flow" layout — but this is a grid
   (gap already handles spacing), so that stray margin was pushing cards
   1-3 down and misaligning them against the first card's top edge. */
.rf-teaser-grid .wp-block-post-template > li { margin-top: 0; }
.rf-teaser-grid .wp-block-post-featured-image { aspect-ratio: 16/10; border-radius: var(--radius-lg); border: 1px solid var(--color-neutral-800); overflow: hidden; margin-bottom: 14px; }
.rf-teaser-grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.rf-teaser-grid .wp-block-post-terms a { color: inherit; }
.rf-teaser-grid .wp-block-post-title { font-size: 18px; margin: 8px 0; line-height: 1.25; }
.rf-teaser-grid .wp-block-post-title a { color: var(--color-text); }
.rf-teaser-grid .wp-block-post-excerpt { font-size: 14px; line-height: 1.6; color: var(--color-neutral-400); }

/* --- 12. FAQ ----------------------------------------------------------------- */
.rf-faq-grid { max-width: 1180px; margin: 0 auto; padding: 80px 32px; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 48px; align-items: start; }
.rf-faq-grid h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; margin: 0 0 14px; max-width: 16ch; }
.rf-faq-grid > div:first-child p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-400); margin: 0; max-width: 34ch; }
/* the rule above also matches .rf-kicker (it's a <p> too) and, being more
   specific, was overriding it — "FAQ" should look like "How Reelfellas
   works". */
.rf-faq-grid > div:first-child .rf-kicker { font-size: 12px; letter-spacing: 0.14em; color: var(--color-accent-400); margin: 0 0 16px; max-width: none; }
/* core's block-gap support adds margin-top to every <details> after the
   first, stacking on top of padding-top below and making the gap after
   each question (padding-bottom + next item's margin-top) bigger than the
   gap before it (padding-top alone). Zero it so padding alone (symmetric)
   controls the spacing. */
.rf-faq-list details { border-top: 1px solid var(--color-divider); padding: 18px 0; margin: 0; overflow: hidden; }
.rf-faq-list details:last-child { border-bottom: 1px solid var(--color-divider); }
.rf-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-heading); font-size: 17px; font-weight: 500; }
.rf-faq-list summary .faq-plus { font-size: 16px; color: var(--color-accent); flex: none; }
.rf-faq-list details p { font-size: 15px; line-height: 1.65; color: var(--color-neutral-400); margin: 12px 0 0; max-width: 58ch; }
@media (max-width: 900px) { .rf-faq-grid { grid-template-columns: 1fr; } }

/* --- 13. About page ----------------------------------------------------------- */
.rf-about-hero { background: radial-gradient(900px 480px at 10% 0%, color-mix(in srgb, var(--color-accent-900) 60%, transparent), transparent 70%); }
.rf-about-hero-grid { max-width: 1180px; margin: 0 auto; padding: 104px 32px 88px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 56px; align-items: center; }
.rf-about-hero-grid h1 { font-size: clamp(36px,5.4vw,66px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 28px; max-width: 18ch; }
.rf-about-hero-grid > div:first-child > p { font-size: 19px; line-height: 1.6; color: var(--color-neutral-300); max-width: 52ch; margin: 0; }
/* the rule above also matches .rf-kicker (it's a <p> too) and, being more
   specific, was overriding it — "About Reelfellas" should look like "For
   movie people, by movie people" on the homepage. */
.rf-about-hero-grid > div:first-child > .rf-kicker { font-size: 12px; letter-spacing: 0.14em; color: var(--color-accent-400); max-width: none; margin: 0 0 16px; }
.rf-about-art { position: relative; height: 460px; }
.rf-about-art img { position: absolute; width: 52%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.rf-about-art .rf-poster-1 { left: 2%; top: 40px; transform: rotate(-9deg); opacity: .85; }
.rf-about-art .rf-poster-2 { right: 2%; top: 40px; transform: rotate(9deg); opacity: .85; }
.rf-about-art .rf-poster-3 { left: 24%; top: 0; z-index: 2; }
.rf-about-pill {
	position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 3;
	display: flex; align-items: center; gap: 10px; background: var(--color-surface); border: 1px solid var(--color-neutral-700);
	border-radius: 999px; padding: 8px 14px 8px 8px; box-shadow: var(--shadow-md); white-space: nowrap;
}
.rf-pill-icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--brand-gold); display: grid; place-items: center; }
.rf-pill-icon .ph-fill { font-size: 13px; color: var(--brand-gold); }
.rf-about-pill span:last-child { font-size: 13px; color: var(--color-neutral-200); }
.rf-about-pill strong { color: var(--brand-gold); font-weight: 600; }

.rf-story-grid { max-width: 1180px; margin: 0 auto; padding: 88px 32px; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 56px; align-items: start; }
/* Matches the same section-heading font style used everywhere else
   (e.g. "Three steps..." on the homepage) — 16px gap under the kicker. */
.rf-story-grid h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; line-height: 1.08; margin: 0; max-width: 14ch; }
.rf-story-copy { display: flex; flex-direction: column; gap: 20px; max-width: 60ch; }
.rf-story-copy p { font-size: 17px; line-height: 1.7; color: var(--color-neutral-300); margin: 0; }

#halves h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; margin-top: 0; }
#halves { border-bottom: 0; }
.rf-halves { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 24px; align-items: stretch; }
.rf-half-card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.rf-half-card .ph, .rf-half-card .ph-fill { font-size: 24px; color: var(--color-accent); }
.rf-half-card h3 { font-size: 22px; margin: 0; }
.rf-half-card p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-400); margin: 0; }
.rf-half-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.rf-half-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 72px; }
.rf-half-connector .rf-line { width: 1px; flex: 1; background: linear-gradient(to bottom, transparent, var(--color-accent)); }
.rf-half-connector .rf-line-bottom { background: linear-gradient(to top, transparent, var(--color-accent)); }
.rf-half-connector-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--brand-gold); display: grid; place-items: center; }
.rf-half-connector-icon .ph-fill { font-size: 18px; color: var(--brand-gold); }
.rf-half-connector-label { font-family: var(--font-heading); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-neutral-400); text-align: center; }

.rf-lang-row-wrap { max-width: 1180px; margin: 0 auto; padding: 88px 32px 40px; }
.rf-lang-row-wrap h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; margin-top: 0; }
.rf-lang-row {
	display: flex; gap: 14px; overflow-x: auto; padding: 8px 32px 88px; max-width: 1180px; margin: 0 auto; box-sizing: border-box;
	scrollbar-width: thin; scrollbar-color: var(--color-accent) var(--color-neutral-800);
}
.rf-lang-row::-webkit-scrollbar { height: 8px; }
.rf-lang-row::-webkit-scrollbar-track { background: var(--color-neutral-800); border-radius: 999px; }
.rf-lang-row::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 999px; }
.rf-lang-row::-webkit-scrollbar-thumb:hover { background: var(--color-accent-300); }
.rf-lang-row figure { margin: 0; flex: none; width: 132px; }
.rf-lang-row img { display: block; width: 132px; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--radius-md); }
.rf-lang-row figcaption { font-size: 12px; color: var(--color-neutral-400); margin-top: 8px; }

#principles h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; margin-top: 0; }
.rf-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 28px; }
.rf-principles > div { position: relative; border-top: 1px solid var(--color-divider); padding-top: 20px; }
.rf-principles > div::after {
	content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
	background: var(--color-accent); transform: scaleX(0); transform-origin: left;
	transition: transform .35s ease;
}
.rf-principles > div:hover::after { transform: scaleX(1); }
.rf-principles h4 { font-size: 18px; margin: 0 0 8px; }
.rf-principles p { font-size: 14px; line-height: 1.6; color: var(--color-neutral-400); margin: 0; }

@media (max-width: 900px) {
	.rf-about-hero-grid, .rf-story-grid, .rf-halves { grid-template-columns: 1fr; }
	.rf-about-art { height: 380px; max-width: 420px; }
	.rf-halves > div:nth-child(2) { flex-direction: row; min-height: 44px; }
	.rf-halves > div:nth-child(2) .rf-line { height: 1px; width: auto; }
}

/* --- 14. Blog index ------------------------------------------------------------ */
.rf-blog-hero { background: radial-gradient(900px 420px at 10% 0%, color-mix(in srgb, var(--color-accent-900) 60%, transparent), transparent 70%); }
.rf-blog-hero-grid { max-width: 1180px; margin: 0 auto; padding: 96px 32px 56px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 48px; align-items: center; }
.rf-blog-hero-grid h1 { font-size: clamp(36px,5vw,60px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; max-width: 18ch; }
.rf-blog-hero-grid > div:first-child > p { font-size: 18px; line-height: 1.6; color: var(--color-neutral-400); max-width: 50ch; margin: 0; }
/* the rule above also matches .rf-kicker (it's a <p> too) and, being more
   specific, was overriding it — match "For movie people, by movie people". */
.rf-blog-hero-grid > div:first-child > .rf-kicker { font-size: 12px; letter-spacing: 0.14em; color: var(--color-accent-400); max-width: none; margin: 0 0 16px; }
.rf-blog-art { position: relative; height: 360px; display: flex; align-items: center; justify-content: center; }
#read-by-category h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; margin-top: 0; }
.rf-blog-art-frame { position: relative; width: 64%; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-neutral-700); box-shadow: var(--shadow-lg); }
.rf-blog-art-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-blog-art-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }

.rf-marquee-strip { width: 0; min-width: 100%; border-bottom: 1px solid var(--color-divider); overflow: hidden; padding: 18px 0; margin-top: 0; box-sizing: border-box; }
.rf-marquee-track { display: flex; gap: 40px; width: max-content; animation: reel-marquee 38s linear infinite; }
.rf-marquee-track span { display: flex; align-items: center; gap: 40px; font-family: var(--font-heading); font-size: clamp(20px,2.4vw,30px); letter-spacing: -.02em; color: var(--color-neutral-600); white-space: nowrap; }
.rf-marquee-track .ph-fill { font-size: 18px; color: var(--brand-gold); }

.rf-blog-layout { max-width: 1180px; margin: 0 auto; padding: 72px 32px 88px; display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; align-items: start; }
.rf-blog-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.rf-blog-heading { font-size: clamp(24px,2.6vw,32px); letter-spacing: -.03em; margin: 0; }

.rf-blog-layout .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.rf-post-row, .rf-blog-layout .wp-block-post-template > li {
	display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 28px; align-items: center;
	padding: 28px 0; border-top: 1px solid var(--color-divider); text-decoration: none; color: inherit;
}
.rf-post-row:hover, .rf-blog-layout .wp-block-post-template > li:hover { opacity: .9; }
.rf-post-row .rf-post-row-img,
.rf-blog-layout .wp-block-post-featured-image { aspect-ratio: 16/10; border-radius: var(--radius-lg); border: 1px solid var(--color-neutral-800); overflow: hidden; margin: 0; }
.rf-post-row .rf-post-row-img img,
.rf-blog-layout .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-post-row h3, .rf-blog-layout .wp-block-post-title { font-size: clamp(20px,2.2vw,26px); line-height: 1.2; letter-spacing: -.02em; margin: 14px 0 10px; }
.rf-blog-layout .wp-block-post-title a { color: var(--color-text); }
.rf-post-row p, .rf-blog-layout .wp-block-post-excerpt p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-400); margin: 0 0 16px; }
.rf-blog-layout .wp-block-post-terms { font-size: 11px; }
.rf-post-row-byline { display: flex; align-items: center; gap: 10px; }
.rf-post-row-byline img { height: 14px; width: auto; opacity: .85; }
.rf-post-row-byline span { font-size: 13px; color: var(--color-neutral-500); }
.rf-blog-empty { border-top: 1px solid var(--color-divider); padding: 40px 0; }
.rf-blog-empty p:first-child { font-size: 16px; color: var(--color-neutral-300); margin: 0 0 6px; }
.rf-blog-empty p:last-child { font-size: 14px; color: var(--color-neutral-500); margin: 0; }

.rf-blog-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 36px; }
.rf-blog-side-label { font-family: var(--font-heading); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-neutral-400); margin: 0 0 14px; }
.rf-search-wrap { position: relative; }
/* core/search renders no icon element of its own, so the magnifying glass
   is drawn as a pseudo-element using the icon font directly. */
.rf-search-wrap::before {
	content: "\e30c"; font-family: "Phosphor" !important; speak: never; font-style: normal; font-weight: normal;
	position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 1;
	font-size: 16px; line-height: 1; color: var(--color-neutral-500); pointer-events: none;
}
.rf-search-wrap input.wp-block-search__input {
	width: 100%; min-height: 44px; padding: 10px 14px 10px 36px; font: inherit; box-sizing: border-box;
	font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
	background: var(--color-bg); border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.rf-search-wrap input.wp-block-search__input:hover { border-color: rgba(233,233,237,.45); }
.rf-search-wrap input.wp-block-search__input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
.rf-search-wrap input.wp-block-search__input::placeholder { color: var(--color-neutral-500); }
.rf-search-wrap .wp-block-search__button {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.rf-cat-list { display: flex; flex-direction: column; }
.rf-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 10px; margin: 0 -10px; border-radius: var(--radius-md); font-family: var(--font-heading); font-size: 14px; color: var(--color-neutral-300); transition: background .15s; }
.rf-cat-row.is-active { background: var(--color-accent-900); color: var(--color-accent-100); }
.rf-cat-count { font-size: 12px; color: var(--color-neutral-500); }
.rf-side-view-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--font-heading); font-size: 13px; font-weight: 500; color: var(--color-accent); text-decoration: none; transition: color .15s; }
.rf-side-view-all:hover { color: var(--color-accent-300); }
.rf-side-view-all .ph { font-size: 13px; }
.rf-directory-list { max-width: 640px; margin: 0 auto; padding: 24px 32px 88px; }
.rf-directory-list .rf-cat-row { min-height: 48px; font-size: 15px; }

.rf-spotlight-list { display: flex; flex-direction: column; gap: 16px; }
.rf-spotlight-item { display: flex; gap: 14px; align-items: center; color: inherit; }
.rf-spotlight-item:hover { opacity: .85; }
.rf-spotlight-item img { width: 64px; height: 64px; flex: none; border-radius: var(--radius-md); object-fit: cover; }
.rf-spotlight-item span { font-family: var(--font-heading); font-size: 14px; line-height: 1.35; color: var(--color-neutral-200); }

.rf-cat-tiles { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.rf-cat-tile { position: relative; aspect-ratio: 4/5; border: 1px solid var(--color-neutral-800); border-radius: var(--radius-lg); overflow: hidden; display: block; background: var(--color-surface); }
.rf-cat-tile:hover { border-color: var(--color-accent); }
.rf-cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.rf-cat-tile-scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-bg) 15%, transparent 70%); }
.rf-cat-tile-text { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.rf-cat-tile-name { font-family: var(--font-heading); font-size: 22px; font-weight: 500; color: var(--color-text); }
.rf-cat-tile-desc { font-size: 13px; line-height: 1.45; color: var(--color-neutral-300); }

@media (max-width: 900px) {
	.rf-blog-hero-grid { grid-template-columns: 1fr; }
	.rf-blog-art { height: 300px; max-width: 460px; }
	.rf-blog-layout { grid-template-columns: 1fr; }
	.rf-blog-side { position: static; }
	/* auto-fit can't wrap without a definite container width in this
	   context, so it renders one track per tile and overflows instead —
	   switch to an explicit, definite-fraction column count here. */
	.rf-cat-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.rf-cat-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .rf-post-row { grid-template-columns: 1fr; gap: 16px; } }

/* --- 15. Single post ------------------------------------------------------------- */
.rf-progress-track { position: sticky; top: 0; z-index: 60; height: 2px; background: transparent; }
.rf-progress-bar { height: 2px; width: 0; background: var(--brand-gold); transition: width .1s linear; }

.rf-post-header { max-width: 1180px; margin: 0 auto; padding: 56px 32px 40px; }
.rf-post-hero { background: radial-gradient(900px 480px at 12% 0%, color-mix(in srgb, var(--color-accent-900) 60%, transparent), transparent 70%); }
.rf-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--color-neutral-500); margin-bottom: 28px; }
.rf-breadcrumb a { color: var(--color-neutral-400); }
.rf-breadcrumb .ph { font-size: 11px; }
.rf-breadcrumb span { color: var(--color-neutral-300); }
.rf-post-header h1 { font-size: clamp(34px,5vw,62px); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 20px; }
.rf-post-lede { font-size: 20px; line-height: 1.55; color: var(--color-neutral-300); margin: 0 0 32px; }

.rf-byline { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--color-divider); }
.rf-byline-info { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.rf-byline-author { display: flex; align-items: center; gap: 12px; }
.rf-byline-badge { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--brand-gold); display: grid; place-items: center; flex: none; overflow: hidden; }
.rf-byline-badge .ph-fill { font-size: 16px; color: var(--brand-gold); }
.rf-byline-badge-logo { border: 0; }
.rf-byline-badge-logo img { width: 100%; height: 100%; object-fit: cover; }
.rf-byline-name { font-size: 14px; font-weight: 600; color: var(--color-text); margin: 0; }
.rf-byline-meta { font-size: 13px; color: var(--color-neutral-500); margin: 0; }
.rf-byline-share { display: flex; align-items: center; gap: 8px; }
.rf-share-label { font-size: 13px; color: var(--color-neutral-500); margin-right: 4px; }

.rf-post-hero-image { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.rf-post-hero-image .rf-frame { aspect-ratio: 21/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-neutral-800); }
.rf-post-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* align-items:stretch (the grid default) so .rf-toc-col matches the
   article column's full height — .rf-toc's position:sticky needs that
   extra room to actually travel/stay pinned as you scroll, releasing only
   once its (now much taller) containing column's bottom is reached. */
.rf-post-layout { max-width: 1180px; margin: 0 auto; padding: 56px 32px 80px; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 64px; }
.rf-toc-sticky { position: sticky; top: 96px; }
.rf-toc-label { font-family: var(--font-heading); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-neutral-400); margin: 0 0 14px; }
.rf-toc { display: flex; flex-direction: column; border-left: 1px solid var(--color-divider); }
.rf-toc-link { display: block; padding: 8px 0 8px 16px; margin-left: -1px; font-size: 14px; line-height: 1.4; color: var(--color-neutral-500); border-left: 1px solid transparent; transition: color .15s, border-color .15s; }
.rf-toc-link.is-active { color: var(--color-text); border-left-color: var(--brand-gold); }

.rf-key-moments { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px; margin-bottom: 44px; }
.rf-key-moments-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.rf-key-moments-head .ph { font-size: 18px; color: var(--color-accent); }
.rf-prose .rf-key-moments-head h2 { font-size: 18px; margin: 0; }
.rf-key-moments ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px 28px; }
.rf-key-moments li { display: flex; gap: 14px; }
.rf-key-moments .rf-km-num { font-family: var(--font-heading); font-size: 13px; color: var(--brand-gold); flex: none; width: 18px; }
.rf-key-moments .rf-km-title { font-size: 15px; font-weight: 600; color: var(--color-text); margin: 0 0 4px; }
.rf-key-moments .rf-km-desc { font-size: 14px; line-height: 1.55; color: var(--color-neutral-400); margin: 0; }

.rf-read-also { display: flex; gap: 16px; align-items: center; margin: 36px 0; padding: 16px; border: 1px solid var(--color-neutral-800); border-radius: var(--radius-lg); color: inherit; }
.rf-read-also:hover { border-color: var(--color-accent); }
.rf-read-also img { width: 96px; height: 64px; flex: none; border-radius: var(--radius-md); object-fit: cover; }
.rf-read-also-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-300); margin: 0 0 4px; }
.rf-read-also-title { font-family: var(--font-heading); font-size: 15px; color: var(--color-text); margin: 0; }

.rf-vibe-cta { margin: 36px 0; padding: 24px; border-radius: var(--radius-lg); background: radial-gradient(420px 200px at 0% 0%, color-mix(in srgb, var(--color-accent-900) 70%, transparent), transparent 75%), var(--color-surface); border: 1px solid var(--color-neutral-800); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rf-vibe-cta-title { font-family: var(--font-heading); font-size: 18px; color: var(--color-text); margin: 0 0 6px; max-width: 40ch; }
.rf-vibe-cta-sub { font-size: 14px; color: var(--color-neutral-400); margin: 0; }

.rf-prose p { font-size: 18px; line-height: 1.75; color: var(--color-neutral-300); margin: 0 0 22px; }
.rf-prose h2 { font-size: clamp(24px,2.6vw,30px); letter-spacing: -.02em; line-height: 1.2; margin: 48px 0 16px; scroll-margin-top: 96px; }
.rf-prose .wp-block-image img { width: 100%; border-radius: var(--radius-lg); }
.rf-prose h3 { font-size: 20px; margin: 32px 0 12px; }
.rf-prose ul { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 10px; }
.rf-prose li { font-size: 17px; line-height: 1.65; color: var(--color-neutral-300); }
.rf-prose strong { color: var(--color-text); font-weight: 600; }
.rf-prose blockquote {
	margin: 36px 0; padding: 24px 24px 24px 28px; border-left: 2px solid var(--brand-gold); border-radius: var(--radius-lg);
	background: radial-gradient(420px 200px at 0% 0%, color-mix(in srgb, var(--color-accent-900) 70%, transparent), transparent 75%), var(--color-surface);
}
.rf-prose blockquote p { font-family: var(--font-heading); font-size: clamp(22px,2.4vw,28px); line-height: 1.35; letter-spacing: -.02em; color: var(--color-text); margin: 0; }
.rf-prose figure { margin: 36px 0; }
.rf-prose figcaption { font-size: 13px; color: var(--color-neutral-500); margin-top: 10px; }
.rf-post-tags {
	display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding-top: 28px;
	border-top: 1px solid var(--color-divider);
}
.rf-post-tags a {
	display: inline-flex; align-items: center; font-family: var(--font-heading); font-weight: 600; font-size: 13px;
	padding: 8px 16px; border-radius: var(--radius-md); background: var(--color-neutral-700); color: var(--color-neutral-100);
	text-decoration: none; transition: background .15s;
}
.rf-post-tags a:hover { background: var(--color-neutral-600); }
.rf-post-tags .wp-block-post-terms__separator { display: none; }

.rf-questions-answered { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--color-divider); }
.rf-questions-answered h2 { font-size: 22px; margin: 0 0 20px; }
.rf-questions-answered details { border-top: 1px solid var(--color-divider); padding: 18px 0; margin: 0; overflow: hidden; }
.rf-questions-answered details:last-child { border-bottom: 1px solid var(--color-divider); }
.rf-questions-answered summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-heading); font-size: 16px; font-weight: 500; }
.rf-questions-answered summary .faq-plus { font-size: 16px; color: var(--color-accent); flex: none; }
.rf-questions-answered p { font-size: 15px; line-height: 1.65; color: var(--color-neutral-400); margin: 12px 0 0; }

.rf-postnav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.rf-postnav-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--color-neutral-800); border-radius: var(--radius-lg); color: inherit; transition: border-color .15s; }
.rf-postnav-card:hover { border-color: var(--color-accent); }
.rf-postnav-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 13px; color: var(--color-neutral-400); }
.rf-postnav-title { font-family: var(--font-heading); font-size: 20px; font-weight: 500; color: var(--color-text); }
.rf-postnav-next { align-items: flex-end; text-align: right; }
.rf-postnav-next .rf-postnav-label { flex-direction: row-reverse; }
@media (max-width: 640px) { .rf-postnav-grid { grid-template-columns: 1fr; } }

.rf-related-section { border-top: 1px solid var(--color-divider); }
.rf-related-head { max-width: 1180px; margin: 0 auto; padding: 72px 32px 0; }
.rf-related-head h2 { font-size: clamp(28px,3.6vw,44px); letter-spacing: -.03em; margin: 0 0 32px; }
.rf-related-grid { box-sizing: border-box; max-width: 1180px; margin: 0 auto; padding: 0 32px 80px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.rf-related-card { position: relative; color: inherit; display: block; }
.rf-related-card:hover { opacity: .9; }
.rf-related-thumb { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-lg); border: 1px solid var(--color-neutral-800); overflow: hidden; margin-bottom: 14px; }
.rf-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-related-cat { margin: 0 0 8px; }
.rf-related-title { font-size: 18px; margin: 0; line-height: 1.25; }
.rf-related-link { color: inherit; text-decoration: none; }
.rf-related-link::after { content: ""; position: absolute; inset: 0; }

@media (max-width: 960px) { .rf-post-layout { grid-template-columns: 1fr; } .rf-toc-col { display: none; } }
@media (max-width: 640px) { .rf-related-grid { grid-template-columns: 1fr; } }

/* --- 16. Contact page ------------------------------------------------------------ */
.rf-contact-grid { max-width: 1180px; margin: 0 auto; padding: 64px 32px 88px; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.9fr); gap: 56px; align-items: start; }
.rf-contact-form-card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 32px; }
.rf-contact-form-card h2 { font-size: 24px; margin: 0 0 6px; }
/* Contact Form 7 renders its own wpcf7-* classes, not the theme's .input,
   so the fields fall back to unstyled browser defaults (white) unless
   targeted directly here. */
.rf-contact-form-card .wpcf7-form p { margin: 0 0 20px; }
.rf-contact-form-card input.wpcf7-form-control:not([type="hidden"]):not([type="submit"]),
.rf-contact-form-card textarea.wpcf7-form-control {
	width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; box-sizing: border-box;
	font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
	background: var(--color-bg); border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.rf-contact-form-card input.wpcf7-form-control:hover,
.rf-contact-form-card textarea.wpcf7-form-control:hover { border-color: rgba(233,233,237,.45); }
.rf-contact-form-card input.wpcf7-form-control:focus-visible,
.rf-contact-form-card textarea.wpcf7-form-control:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
.rf-contact-form-card input.wpcf7-form-control::placeholder,
.rf-contact-form-card textarea.wpcf7-form-control::placeholder { color: var(--color-neutral-500); }
.rf-contact-form-card textarea.wpcf7-form-control { min-height: 140px; resize: vertical; font-family: inherit; }
.rf-contact-form-card input.wpcf7-submit {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
	font-family: var(--font-heading); font-weight: 500; font-size: 14px;
	color: var(--color-accent); background: transparent; border: 1px solid var(--color-accent);
	padding: 10px 20px; border-radius: var(--radius-md); cursor: pointer; transition: background .15s;
}
.rf-contact-form-card input.wpcf7-submit:hover { background: var(--color-accent-900); }
.rf-contact-form-card .wpcf7-response-output { margin: 16px 0 0; border-radius: var(--radius-md); font-size: 14px; }
.rf-topic-chips p { display: flex; flex-wrap: wrap; gap: 15px; margin: 0; }
.rf-topic-chip {
	min-height: 34px; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
	font-family: var(--font-heading); font-size: 13px; font-weight: 500; transition: all .15s;
	background: transparent; border: 1px solid var(--color-neutral-700); color: var(--color-neutral-300);
}
.rf-topic-chip.is-active { background: var(--color-accent-900); border-color: var(--color-accent); color: var(--color-accent-100); }
.rf-contact-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 32px; }
.rf-contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--color-neutral-800); border-radius: var(--radius-lg); color: inherit; background: var(--color-surface); }
.rf-contact-card:hover { border-color: var(--color-accent); }
.rf-contact-card-icon { width: 40px; height: 40px; flex: none; border-radius: var(--radius-md); background: var(--color-accent-900); display: grid; place-items: center; }
.rf-contact-card-icon .ph { font-size: 19px; color: var(--color-accent-200); }
.rf-contact-card-label { display: block; font-size: 12px; color: var(--color-neutral-500); margin-bottom: 2px; }
.rf-contact-card-value { display: block; font-family: var(--font-heading); font-size: 16px; color: var(--color-text); overflow-wrap: anywhere; }
.rf-contact-card-hint { display: block; font-size: 13px; color: var(--color-neutral-400); margin-top: 4px; }
.rf-contact-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 0; }
.rf-contact-success-icon { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--brand-gold); display: grid; place-items: center; }
.rf-contact-success-icon .ph { font-size: 22px; color: var(--brand-gold); }
.rf-quick-answers details { border-top: 1px solid var(--color-divider); padding: 18px 0; margin: 0; overflow: hidden; }
.rf-quick-answers details:last-child { border-bottom: 1px solid var(--color-divider); }
.rf-quick-answers summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-heading); font-size: 15px; font-weight: 500; }
.rf-quick-answers summary .faq-plus { font-size: 16px; color: var(--color-accent); flex: none; }
.rf-quick-answers details p { font-size: 14px; line-height: 1.6; color: var(--color-neutral-400); margin: 12px 0 0; }
@media (max-width: 900px) { .rf-contact-grid { grid-template-columns: 1fr; } .rf-contact-side { position: static; } }

/* --- 17. Legal template ----------------------------------------------------------- */
.rf-legal-hero { background: radial-gradient(900px 420px at 10% 0%, color-mix(in srgb, var(--color-accent-900) 60%, transparent), transparent 70%); }
.rf-legal-hero-inner { max-width: 1180px; margin: 0 auto; padding: 88px 32px 56px; }
.rf-legal-hero-inner h1 { font-size: clamp(36px,5.2vw,64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 16px; }
.rf-last-updated { font-size: 14px; color: var(--color-neutral-500); margin: 0 0 24px; }
.rf-legal-intro { font-size: 18px; line-height: 1.65; color: var(--color-neutral-300); margin: 0 0 16px; max-width: 75ch; }
.rf-legal-intro-sub { font-size: 16px; line-height: 1.65; color: var(--color-neutral-400); margin: 0; max-width: 75ch; }

.rf-legal-layout { max-width: 1180px; margin: 0 auto; padding: 24px 32px 88px; display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 64px; align-items: start; }
.rf-legal-toc-col { position: sticky; top: 96px; padding-top: 40px; }

.rf-legal-body .rf-prose p { font-size: 17px; margin: 0 0 18px; max-width: 75ch; }
.rf-legal-body .rf-prose h2 { font-size: clamp(22px,2.4vw,28px); margin: 0 0 16px; }
.rf-legal-body .rf-prose h3 { font-size: 18px; margin: 26px 0 10px; color: var(--color-text); }
.rf-legal-body .rf-prose ul { max-width: 75ch; }
.rf-legal-body .rf-prose li { font-size: 16px; }
.rf-legal-body .rf-prose li::marker { color: var(--brand-gold); }
.rf-legal-body .rf-prose > h2 { border-top: 1px solid var(--color-divider); padding-top: 40px; margin-top: 40px; scroll-margin-top: 88px; }
.rf-legal-body .rf-prose > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.rf-legal-notice { margin-top: 8px; padding: 24px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-neutral-800); display: flex; gap: 16px; align-items: flex-start; }
.rf-legal-notice .ph { font-size: 22px; color: var(--brand-gold); flex: none; margin-top: 2px; }
.rf-legal-notice p { margin: 0; font-size: 16px; color: var(--color-neutral-200); }

.rf-legal-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; max-width: 75ch; }
.rf-legal-steps li { display: flex; gap: 14px; align-items: flex-start; }
.rf-legal-steps .rf-step-circle { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--brand-gold); display: grid; place-items: center; font-family: var(--font-heading); font-size: 13px; color: var(--brand-gold); }
.rf-legal-steps span:last-child { font-size: 16px; line-height: 1.65; color: var(--color-neutral-300); padding-top: 2px; }

.rf-legal-warning { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--app-danger) 10%, var(--color-surface)); border: 1px solid color-mix(in srgb, var(--app-danger) 45%, transparent); max-width: 75ch; }
.rf-legal-warning .ph { font-size: 20px; color: #ff8a8a; flex: none; margin-top: 2px; }
.rf-legal-warning p { margin: 0; color: var(--color-neutral-100); }

@media (max-width: 960px) { .rf-legal-layout { grid-template-columns: 1fr; } .rf-legal-toc-col { display: none; } }

/* --- 18. 404 --------------------------------------------------------------------- */
.rf-404 { max-width: 640px; margin: 0 auto; padding: 140px 32px; text-align: center; }
.rf-404 h1 { font-size: clamp(48px,8vw,96px); margin: 0 0 12px; color: var(--brand-gold); }
.rf-404 p { font-size: 17px; color: var(--color-neutral-400); margin: 0 0 24px; }
