/*
 * Theme Name: ResolveVia
 * Theme URI: https://resolvevia.com
 * Description: ResolveVia qualified call marketplace theme. One codebase for all 17 service niches. Per-niche theming via CSS custom properties. Requires ResolveVia plugin.
 * Version: 2.37.28
 * Requires at least: 6.4
 * Requires PHP: 8.1
 * Author: ResolveVia
 * Author URI: https://resolvevia.com
 * License: Proprietary
 * Text Domain: resolvevia
 *
 * This is the WordPress-required style.css header file for the ResolveVia theme.
 * Plugin assets (main.css, niche-themes.css, buyer-dashboard.css, marketplace.css)
 * are enqueued by class-resolvevia-public.php — NOT duplicated here.
 *
 * This file provides:
 *   - WordPress theme identification header (above)
 *   - Base layout and typography reset for the theme shell
 *   - Structural containers and utility classes
 *   - Print media queries
 *
 * @package ResolveVia
 *
 * Schema: v2.37.39 / Migration 110 / 101 active tables
 */

/* ============================================================
   RESET / BASE
   ============================================================ */

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

html {
    font-size: var(--rv-font-size-md);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--rv-gray-900);
    background-color: var(--rv-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--rv-accent, #2563eb);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    text-decoration: underline;
    color: var(--rv-accent-dark, #1d4ed8);
}

a:focus-visible {
    outline: 2px solid var(--rv-accent, #2563eb);
    outline-offset: 2px;
    border-radius: var(--rv-radius-xs);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--rv-accent, #2563eb);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.25;
    font-weight: var(--rv-weight-bold);
    color: var(--rv-gray-900);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul, ol {
    margin: 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.25rem;
}

/* ============================================================
   CONTAINERS
   ============================================================ */

.rv-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--rv-space-5);
    padding-right: var(--rv-space-5);
}

.rv-container--narrow {
    max-width: 720px;
}

.rv-container--wide {
    max-width: 1440px;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */

#rv-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   BUYER PORTAL LAYOUT
   ============================================================ */

.rv-buyer-portal {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rv-buyer-portal__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--rv-space-6);
    align-items: start;
    padding-top: var(--rv-space-5);
    padding-bottom: var(--rv-space-7);
}

@media (max-width: 900px) {
    .rv-buyer-portal__layout {
        grid-template-columns: 1fr;
    }

    .rv-buyer-sidebar {
        display: none; /* Mobile: sidebar replaced by bottom nav or hamburger */
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.rv-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rv-text-center { text-align: center; }
.rv-text-left   { text-align: left; }
.rv-text-right  { text-align: right; }

.rv-flex         { display: flex; }
.rv-flex-center  { display: flex; align-items: center; justify-content: center; }
.rv-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rv-flex-wrap    { flex-wrap: wrap; }
.rv-gap-sm       { gap: var(--rv-space-2); }
.rv-gap-md       { gap: var(--rv-space-4); }
.rv-gap-lg       { gap: var(--rv-space-5); }

.rv-mt-sm { margin-top: var(--rv-space-2); }
.rv-mt-md { margin-top: var(--rv-space-4); }
.rv-mt-lg { margin-top: var(--rv-space-5); }
.rv-mb-sm { margin-bottom: var(--rv-space-2); }
.rv-mb-md { margin-bottom: var(--rv-space-4); }
.rv-mb-lg { margin-bottom: var(--rv-space-5); }

.rv-hidden { display: none !important; }
.rv-visible { display: block !important; }

/* ============================================================
   BUTTONS
   ============================================================ */

.rv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--rv-radius-sm);
    font-size: var(--rv-font-size-base);
    font-weight: var(--rv-weight-semibold);
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    min-height: 44px; /* F77 touch target */
}

.rv-btn:hover { text-decoration: none; }

.rv-btn:disabled,
.rv-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.rv-btn--primary {
    background-color: var(--rv-accent, #2563eb);
    color: var(--rv-accent-text, #ffffff);
    border-color: var(--rv-accent, #2563eb);
}

.rv-btn--primary:hover {
    background-color: var(--rv-accent-dark, #1d4ed8);
    border-color: var(--rv-accent-dark, #1d4ed8);
    color: var(--rv-accent-text, #ffffff);
}

.rv-btn--secondary {
    background-color: var(--rv-gray-100);
    color: var(--rv-gray-700);
    border-color: var(--rv-gray-300);
}

.rv-btn--secondary:hover {
    background-color: var(--rv-gray-200);
    border-color: var(--rv-gray-400);
    color: var(--rv-gray-900);
}

.rv-btn--ghost {
    background-color: transparent;
    color: var(--rv-accent, #2563eb);
    border-color: transparent;
}

.rv-btn--ghost:hover {
    background-color: var(--rv-accent-light, #dbeafe);
}

.rv-btn--inverse {
    background-color: rgba(255,255,255,0.15);
    color: var(--rv-white);
    border-color: rgba(255,255,255,0.3);
}

.rv-btn--inverse:hover {
    background-color: rgba(255,255,255,0.25);
    color: var(--rv-white);
}

.rv-btn--sm {
    padding: 5px 12px;
    font-size: var(--rv-font-size-sm);
    min-height: 32px;
}

.rv-btn--large {
    padding: 14px 28px;
    font-size: var(--rv-font-size-md);
}

/* ============================================================
   SPINNER
   ============================================================ */

.rv-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: var(--rv-accent, #2563eb);
    border-radius: var(--rv-radius-circle);
    animation: rv-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes rv-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   ALERTS
   DRIFT-757: alerts source colour from the global semantic tokens
   (var(--rv-{status}) / -text / -bg) — one colour system shared with
   notices, now dark-aware. The "softer than a notice" look is a COMPONENT
   style (1px all-round border vs the notice's 4px left bar), NOT a separate
   soft-border colour token. (info follows the cyan canonical.)
   ============================================================ */

.rv-alert {
    padding: var(--rv-space-3) var(--rv-space-4);
    border-radius: var(--rv-radius-sm);
    font-size: var(--rv-font-size-base);
    line-height: 1.5;
}

.rv-alert--success {
    background: var(--rv-success-bg);
    border: 1px solid var(--rv-success);
    color: var(--rv-success-text);
}

.rv-alert--error {
    background: var(--rv-error-bg);
    border: 1px solid var(--rv-error);
    color: var(--rv-error-text);
}

.rv-alert--warning {
    background: var(--rv-warning-bg);
    border: 1px solid var(--rv-warning);
    color: var(--rv-warning-text);
}

.rv-alert--info {
    background: var(--rv-info-bg);
    border: 1px solid var(--rv-info);
    color: var(--rv-info-text);
}

/* ============================================================
   MODAL
   ============================================================ */

.rv-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rv-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.rv-modal__dialog {
    position: relative;
    background: var(--rv-white);
    border-radius: var(--rv-radius-mlg);
    padding: var(--rv-space-5);
    max-width: 480px;
    width: calc(100% - 32px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 1;
}

.rv-modal__header { margin-bottom: var(--rv-space-4); }
.rv-modal__title  { font-size: var(--rv-font-size-lg); font-weight: var(--rv-weight-bold); margin: 0; }
.rv-modal__body   { margin-bottom: 20px; font-size: var(--rv-font-size-base); color: var(--rv-gray-700); line-height: 1.6; }
.rv-modal__footer { display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   CONTENT AREA (legal pages, blog posts)
   ============================================================ */

.rv-content h1, .rv-content h2, .rv-content h3,
.rv-content h4, .rv-content h5, .rv-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.rv-content p { margin-bottom: 1rem; }
.rv-content ul, .rv-content ol { margin-bottom: 1rem; }

.rv-content a {
    color: var(--rv-accent, #2563eb);
    text-decoration: underline;
}

.rv-content a:hover {
    color: var(--rv-accent-dark, #1d4ed8);
}

/* ============================================================================
   DRIFT-717 — BATCH 3b: buyer-overview + caller-acquisition (PUBLIC landings)
   These are theme templates served via get_header(); style.css is enqueued
   unconditionally (theme-functions.php → wp_enqueue_scripts:10), so it always
   loads here. main.css/niche-themes load only conditionally (is_resolvevia_page),
   so EVERY token carries a fallback: structural (--rv-space/--rv-radius) and
   color (--rv-accent → #2563eb, --rv-hero-gradient → default gradient, surfaces
   → light hex). Where niche-themes IS present, theming + dark flip automatically.
   ============================================================================ */

/* ── Shared hero (overview + caller) ────────────────────────────────────────── */
.rv-overview-hero,
.rv-caller-hero {
    background: var(--rv-hero-gradient, linear-gradient(135deg, #2563eb, #1d4ed8));
    color: var(--rv-accent-text, #ffffff);
    padding: var(--rv-space-7, 48px) var(--rv-space-4, 16px);
    text-align: center;
}

.rv-overview-hero__inner,
.rv-caller-hero__inner { max-width: 760px; margin: 0 auto; }

.rv-overview-hero__title,
.rv-caller-hero__title {
    font-size: 32px;
    font-weight: var(--rv-weight-extrabold);
    line-height: 1.15;
    margin: 0 0 var(--rv-space-3, 12px);
    color: var(--rv-accent-text, #ffffff);
}

.rv-overview-hero__subtitle {
    font-size: var(--rv-font-size-lg);
    line-height: 1.5;
    margin: 0 auto var(--rv-space-5, 24px);
    max-width: 560px;
    opacity: 0.95;
}

.rv-overview-hero__actions { display: flex; flex-wrap: wrap; gap: var(--rv-space-3, 12px); justify-content: center; }
.rv-overview-hero__no-fee { font-size: var(--rv-font-size-smd); margin: var(--rv-space-3, 12px) 0 0; opacity: 0.85; }

/* ============================================================================
   SURFACE: buyer-overview (template-buyer-overview.php)
   ============================================================================ */

.rv-overview-page { color: var(--rv-text-primary, #111827); }

.rv-overview-how,
.rv-overview-value,
.rv-overview-faq { padding: var(--rv-space-7, 48px) var(--rv-space-4, 16px); }

.rv-overview-value { background: var(--rv-bg-surface, #f9fafb); }

.rv-overview-section-title {
    font-size: 26px;
    font-weight: var(--rv-weight-bold);
    text-align: center;
    color: var(--rv-text-primary, #111827);
    margin: 0 0 var(--rv-space-6, 32px);
}

/* Steps (numbered "how it works") */
.rv-overview-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--rv-space-5, 24px);
}
.rv-overview-step { display: flex; gap: var(--rv-space-3, 12px); align-items: flex-start; }
.rv-overview-step__number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rv-radius-circle, 50%);
    background: var(--rv-accent, #2563eb);
    color: var(--rv-accent-text, #ffffff);
    font-size: var(--rv-font-size-lg);
    font-weight: var(--rv-weight-bold);
}
.rv-overview-step__title { font-size: var(--rv-font-size-md); font-weight: var(--rv-weight-semibold); color: var(--rv-text-primary, #111827); margin: 0 0 var(--rv-space-1, 4px); }
.rv-overview-step__desc { font-size: var(--rv-font-size-base); color: var(--rv-text-secondary, #6b7280); margin: 0; line-height: 1.6; }

/* Value list (benefits with checkmarks) */
.rv-overview-value-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 720px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--rv-space-4, 16px);
}
.rv-overview-value-item { display: flex; gap: var(--rv-space-2, 8px); align-items: flex-start; font-size: 15px; color: var(--rv-text-primary, #374151); line-height: 1.5; }
.rv-overview-value-item__icon { flex-shrink: 0; color: var(--rv-accent, #2563eb); font-weight: var(--rv-weight-bold); }

/* ============================================================================
   SHARED: FAQ accordion (rv-faq-*) — buyer-overview + reusable on public pages
   ============================================================================ */

.rv-faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--rv-space-2, 8px); }
.rv-faq-item {
    border: 1px solid var(--rv-border-color, #e5e7eb);
    border-radius: var(--rv-radius-md, 8px);
    background: var(--rv-bg-surface, #ffffff);
    padding: var(--rv-space-4, 16px);
}
.rv-faq-item__question { font-size: var(--rv-font-size-md); font-weight: var(--rv-weight-semibold); color: var(--rv-text-primary, #111827); margin: 0 0 var(--rv-space-2, 8px); }
.rv-faq-item__answer { font-size: var(--rv-font-size-base); color: var(--rv-text-secondary, #6b7280); margin: 0; line-height: 1.6; }

/* ============================================================================
   SURFACE: caller-acquisition (template-caller-acquisition.php)
   ============================================================================ */

.rv-caller-acquisition-page { color: var(--rv-text-primary, #111827); }

.rv-caller-hero__location { font-size: var(--rv-font-size-md); opacity: 0.95; margin: 0 0 var(--rv-space-5, 24px); }

/* Phone CTA — the primary action on this funnel page */
.rv-caller-phone-cta { display: flex; flex-direction: column; align-items: center; gap: var(--rv-space-2, 8px); }
.rv-caller-phone-link {
    display: inline-flex;
    align-items: center;
    gap: var(--rv-space-3, 12px);
    padding: var(--rv-space-4, 16px) var(--rv-space-6, 32px);
    background: var(--rv-accent-text, #ffffff);
    color: var(--rv-accent, #2563eb);
    border-radius: var(--rv-radius-pill, 999px);
    font-size: var(--rv-font-size-3xl);
    font-weight: var(--rv-weight-extrabold);
    text-decoration: none;
    box-shadow: var(--rv-shadow-lg, 0 20px 60px rgba(0, 0, 0, 0.18));
    transition: transform var(--rv-transition, 150ms ease);
}
.rv-caller-phone-link:hover { transform: translateY(-1px); }
.rv-caller-phone-link__icon { font-size: var(--rv-font-size-2xl); }
.rv-caller-phone-link__number { font-variant-numeric: tabular-nums; }
.rv-caller-phone-link__label { font-size: var(--rv-font-size-base); opacity: 0.9; margin: 0; }

.rv-phone-unavailable { font-size: 15px; opacity: 0.95; }

.rv-caller-tier-badges { display: flex; flex-wrap: wrap; gap: var(--rv-space-2, 8px); justify-content: center; margin-top: var(--rv-space-4, 16px); }

/* Trust list */
.rv-caller-trust { padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); }
.rv-trust-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 720px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--rv-space-4, 16px) var(--rv-space-6, 32px);
}
.rv-trust-item { display: flex; align-items: center; gap: var(--rv-space-2, 8px); font-size: 15px; color: var(--rv-text-primary, #374151); }
.rv-trust-item__icon { color: var(--rv-accent, #2563eb); font-weight: var(--rv-weight-bold); }

/* Content prose + bottom CTA */
.rv-caller-content { padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); }
.rv-caller-content__body { font-size: 15px; color: var(--rv-text-primary, #374151); line-height: 1.7; }

.rv-caller-bottom-cta { padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); text-align: center; }
.rv-caller-bottom-cta__text { font-size: var(--rv-font-size-lg); font-weight: var(--rv-weight-semibold); color: var(--rv-text-primary, #111827); margin: 0 0 var(--rv-space-4, 16px); }
.rv-caller-bottom-cta--unavailable .rv-caller-bottom-cta__text { color: var(--rv-text-secondary, #6b7280); }

/* ── Dark: value section surface flips via token; hero gradient flips via
   --rv-hero-gradient (niche-themes). No bare-hex semantics here, so no extra
   mirror block needed — all neutrals consume tokens. ─────────────────────────── */

/* ============================================================================
   DRIFT-717 — BATCH P1-7: onboarding / application / waitlist (PUBLIC templates)
   All three use get_header()/get_footer() → public theme pages → style.css loads
   theme-wide. buyer-dashboard.css is NOT loaded here, so form primitives needed
   by these public forms (rv-form/-fieldset/-help/-char-counter/-honeypot) live
   here too. Full var(--token, #fallback). application + waitlist share styling.
   ============================================================================ */

/* Shared public form primitives */
.rv-form { display: flex; flex-direction: column; gap: var(--rv-space-4, 16px); }
.rv-form-fieldset { border: 1px solid var(--rv-border-color, #e5e7eb); border-radius: var(--rv-radius-md, 8px); padding: var(--rv-space-4, 16px); margin: 0; }
.rv-form-fieldset__legend { font-size: var(--rv-font-size-base); font-weight: var(--rv-weight-bold); color: var(--rv-text-primary, #111827); padding: 0 var(--rv-space-2, 8px); }
.rv-form-help { font-size: var(--rv-font-size-sm); color: var(--rv-text-secondary, #6b7280); margin: var(--rv-space-1, 4px) 0 0; line-height: 1.5; }
.rv-form-char-counter { font-size: var(--rv-font-size-sm); color: var(--rv-text-secondary, #9ca3af); text-align: right; font-variant-numeric: tabular-nums; }
/* Honeypot: kept off-screen (not display:none) so bots still fill it */
.rv-honeypot-wrap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── onboarding page shell (branded) ────────────────────────────────────────── */
.rv-onboarding-page { min-height: 100vh; background: var(--rv-bg-primary, #f8fafc); color: var(--rv-text-primary, #111827); }
.rv-onboarding-page__inner { max-width: 640px; margin: 0 auto; padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); }
.rv-onboarding-page__header { margin-bottom: var(--rv-space-5, 24px); text-align: center; }
.rv-onboarding-page__brand { display: inline-flex; align-items: center; gap: var(--rv-space-2, 8px); }
.rv-onboarding-page__logo { height: 36px; width: auto; }
.rv-onboarding-page__brand-name { font-size: var(--rv-font-size-lg); font-weight: var(--rv-weight-extrabold); color: var(--rv-text-primary, #111827); }
.rv-error { color: #dc2626; font-size: var(--rv-font-size-base); text-align: center; padding: var(--rv-space-4, 16px); }

/* ── application + waitlist (parallel public form pages) ─────────────────────── */
.rv-application-page,
.rv-waitlist-page { color: var(--rv-text-primary, #111827); }
.rv-application-page__inner,
.rv-waitlist-page__inner { padding: var(--rv-space-6, 32px) 0; }

.rv-application-header,
.rv-waitlist-header { text-align: center; margin-bottom: var(--rv-space-5, 24px); }
.rv-application-header__title,
.rv-waitlist-header__title { font-size: 28px; font-weight: var(--rv-weight-extrabold); color: var(--rv-text-primary, #111827); margin: 0 0 var(--rv-space-2, 8px); }
.rv-application-header__subtitle,
.rv-waitlist-header__subtitle { font-size: var(--rv-font-size-md); color: var(--rv-text-secondary, #6b7280); margin: 0; line-height: 1.5; }

.rv-application-response,
.rv-waitlist-response {
    padding: var(--rv-space-4, 16px);
    border-radius: var(--rv-radius-md, 8px);
    border-inline-start: 4px solid var(--rv-accent, #2563eb);
    background: var(--rv-accent-light, #eff6ff);
    color: var(--rv-text-primary, #1e40af);
    font-size: var(--rv-font-size-base);
    margin-bottom: var(--rv-space-4, 16px);
}

.rv-application-legal-note,
.rv-waitlist-legal-note { font-size: var(--rv-font-size-sm); color: var(--rv-text-secondary, #9ca3af); line-height: 1.6; margin-top: var(--rv-space-4, 16px); }

/* Dark: error semantic (surfaces/text flip via tokens where niche-themes loads) */
@media (prefers-color-scheme: dark) {
    .rv-error { color: #f87171; }
}
html.rv-dark .rv-error { color: #f87171; }

/* ============================================================================
   DRIFT-717 — BATCH P1-8a: global banners (impersonation, SSO) + CTA block
   Rendered via header.php/functions.php (theme-wide) → style.css. Base classes
   were unstyled, so base + inner included. Full var(--token, #fallback).
   ============================================================================ */

/* Impersonation banner (admin viewing as buyer) — semantic warning */
.rv-impersonation-banner {
    background: #fffbeb;
    border-bottom: 1px solid #f59e0b;
    color: #92400e;
}
.rv-impersonation-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--rv-space-2, 8px) var(--rv-space-4, 16px);
    display: flex;
    align-items: center;
    gap: var(--rv-space-2, 8px);
    flex-wrap: wrap;
    font-size: var(--rv-font-size-smd);
}
.rv-impersonation-banner__icon { flex-shrink: 0; }
.rv-impersonation-banner__message { font-weight: var(--rv-weight-semibold); }
.rv-impersonation-banner__restrictions { color: #b45309; }
.rv-impersonation-banner__exit {
    margin-inline-start: auto;
    padding: var(--rv-space-1, 4px) var(--rv-space-3, 12px);
    border: 1px solid #f59e0b;
    border-radius: var(--rv-radius-sm, 6px);
    background: var(--rv-white);
    color: #92400e;
    font-size: var(--rv-font-size-sm);
    font-weight: var(--rv-weight-semibold);
    cursor: pointer;
    text-decoration: none;
}

/* SSO banner (cross-site link) — info/accent */
.rv-sso-banner {
    background: var(--rv-accent-light, #eff6ff);
    border-bottom: 1px solid var(--rv-accent, #2563eb);
    color: var(--rv-text-primary, #1e40af);
}
.rv-sso-banner__inner {
    padding: var(--rv-space-2, 8px) var(--rv-space-4, 16px);
    display: flex;
    align-items: center;
    gap: var(--rv-space-2, 8px);
    flex-wrap: wrap;
    font-size: var(--rv-font-size-smd);
}
.rv-sso-banner__icon { flex-shrink: 0; }
.rv-sso-banner__text { line-height: 1.4; }

/* CTA block (theme partial) */
.rv-cta-block {
    text-align: center;
    padding: var(--rv-space-7, 48px) var(--rv-space-4, 16px);
    background: var(--rv-bg-surface, #f9fafb);
}
.rv-cta-block__title { font-size: 26px; font-weight: var(--rv-weight-extrabold); color: var(--rv-text-primary, #111827); margin: 0 0 var(--rv-space-3, 12px); }
.rv-cta-block__body { font-size: var(--rv-font-size-md); color: var(--rv-text-secondary, #6b7280); margin: 0 auto var(--rv-space-5, 24px); max-width: 560px; line-height: 1.6; }
.rv-cta-block__actions { display: flex; flex-wrap: wrap; gap: var(--rv-space-3, 12px); justify-content: center; }
.rv-cta-block__phone { font-size: var(--rv-font-size-base); color: var(--rv-text-secondary, #6b7280); margin-top: var(--rv-space-2, 8px); }
.rv-cta-block__btn,
.rv-btn--phone {
    display: inline-flex;
    align-items: center;
    gap: var(--rv-space-2, 8px);
    padding: var(--rv-space-3, 12px) var(--rv-space-6, 32px);
    background: var(--rv-accent, #2563eb);
    color: var(--rv-accent-text, #ffffff);
    border: none;
    border-radius: var(--rv-radius-pill, 999px);
    font-size: var(--rv-font-size-md);
    font-weight: var(--rv-weight-bold);
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--rv-transition, 150ms ease);
}
.rv-cta-block__btn:hover,
.rv-btn--phone:hover { background: var(--rv-accent-dark, #1d4ed8); color: var(--rv-accent-text, #ffffff); }

/* Dark: impersonation warning + sso info */
@media (prefers-color-scheme: dark) {
    .rv-impersonation-banner { background: #2d1a02; border-bottom-color: #fbbf24; color: #fcd34d; }
    .rv-impersonation-banner__restrictions { color: #fbbf24; }
    .rv-impersonation-banner__exit { background: transparent; border-color: #fbbf24; color: #fcd34d; }
}
html.rv-dark .rv-impersonation-banner { background: #2d1a02; border-bottom-color: #fbbf24; color: #fcd34d; }
html.rv-dark .rv-impersonation-banner__restrictions { color: #fbbf24; }
html.rv-dark .rv-impersonation-banner__exit { background: transparent; border-color: #fbbf24; color: #fcd34d; }

/* ============================================================================
   DRIFT-717 — BATCH P1-8b: theme site chrome (header / footer / nav)
   All render via the theme (header.php/footer.php) → style.css (theme-wide).
   Gap sub-elements are additive to any partial bases in main.css. Full fallbacks.
   ============================================================================ */

.rv-page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Site header (public theme header) ──────────────────────────────────────── */
.rv-site-header__inner { display: flex; align-items: center; gap: var(--rv-space-4, 16px); padding: var(--rv-space-3, 12px) var(--rv-space-4, 16px); }
.rv-site-header__brand { flex-shrink: 0; }
.rv-site-header__brand-link { display: inline-flex; align-items: center; gap: var(--rv-space-2, 8px); text-decoration: none; }
.rv-site-header__logo { height: 32px; width: auto; }
.rv-site-header__brand-text { font-size: var(--rv-font-size-lg); font-weight: var(--rv-weight-extrabold); color: var(--rv-text-primary, #111827); }
.rv-site-header__phone { margin-inline-start: auto; }
.rv-site-header__phone-link { display: inline-flex; align-items: center; gap: var(--rv-space-1, 4px); text-decoration: none; color: var(--rv-accent, #2563eb); font-weight: var(--rv-weight-semibold); }
.rv-site-header__phone-icon { font-size: var(--rv-font-size-base); }
.rv-site-header__phone-number { font-variant-numeric: tabular-nums; }
.rv-site-header__controls { display: flex; align-items: center; gap: var(--rv-space-2, 8px); }

.rv-btn--icon { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.rv-lang-selector__globe { font-size: var(--rv-font-size-md); }
.rv-lang-selector__code { font-size: var(--rv-font-size-sm); font-weight: var(--rv-weight-bold); text-transform: uppercase; }
.rv-display-mode-toggle__icon { font-size: var(--rv-font-size-md); line-height: 1; }

/* ── Primary nav (authenticated) ────────────────────────────────────────────── */
.rv-nav__inner { display: flex; align-items: center; gap: var(--rv-space-4, 16px); padding: 0 var(--rv-space-4, 16px); }
.rv-nav__brand { display: inline-flex; align-items: center; gap: var(--rv-space-2, 8px); flex-shrink: 0; text-decoration: none; }
.rv-nav__logo { height: 28px; width: auto; }
.rv-nav__brand-text { font-size: var(--rv-font-size-md); font-weight: var(--rv-weight-extrabold); color: var(--rv-text-primary, #111827); }
.rv-nav__utilities { margin-inline-start: auto; display: flex; align-items: center; gap: var(--rv-space-2, 8px); }
.rv-nav__link--cta {
    padding: var(--rv-space-2, 8px) var(--rv-space-4, 16px);
    background: var(--rv-accent, #2563eb);
    color: var(--rv-accent-text, #ffffff);
    border-radius: var(--rv-radius-sm, 6px);
    font-weight: var(--rv-weight-semibold);
    text-decoration: none;
}
.rv-nav__link--login { color: var(--rv-text-primary, #374151); text-decoration: none; font-weight: var(--rv-weight-semibold); }

.rv-nav__account { position: relative; }
.rv-nav__account-btn { display: inline-flex; align-items: center; gap: var(--rv-space-1, 4px); background: none; border: none; cursor: pointer; color: var(--rv-text-primary, #374151); font-size: var(--rv-font-size-base); font-weight: var(--rv-weight-semibold); padding: var(--rv-space-2, 8px); }
.rv-nav__account-chevron { font-size: 10px; transition: transform var(--rv-transition, 150ms ease); }
.rv-nav__account[aria-expanded="true"] .rv-nav__account-chevron { transform: rotate(180deg); }
.rv-nav__account-dropdown {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + var(--rv-space-1, 4px));
    min-width: 200px;
    background: var(--rv-bg-surface, #ffffff);
    border: 1px solid var(--rv-border-color, #e5e7eb);
    border-radius: var(--rv-radius-md, 8px);
    box-shadow: var(--rv-shadow-lg, 0 20px 60px rgba(0, 0, 0, 0.18));
    padding: var(--rv-space-1, 4px);
    z-index: 100;
}
.rv-nav__toggle-icon { font-size: var(--rv-font-size-xl); line-height: 1; }

/* ── Full footer (multi-column) ─────────────────────────────────────────────── */
.rv-footer__inner { padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); }
.rv-footer__columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--rv-space-5, 24px); }
.rv-footer__col { min-width: 0; }
.rv-footer__col-heading { font-size: var(--rv-font-size-smd); font-weight: var(--rv-weight-bold); text-transform: uppercase; letter-spacing: 0.04em; color: var(--rv-text-primary, #111827); margin: 0 0 var(--rv-space-3, 12px); }
.rv-footer__nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--rv-space-2, 8px); }
.rv-footer__brand { display: flex; flex-direction: column; gap: var(--rv-space-2, 8px); }
.rv-footer__niche-name { font-size: var(--rv-font-size-md); font-weight: var(--rv-weight-extrabold); color: var(--rv-text-primary, #111827); }
.rv-footer__phone { color: var(--rv-accent, #2563eb); font-weight: var(--rv-weight-semibold); text-decoration: none; }
.rv-footer__trust { font-size: var(--rv-font-size-sm); color: var(--rv-text-secondary, #6b7280); }
.rv-footer__copyright { margin-top: var(--rv-space-5, 24px); padding-top: var(--rv-space-4, 16px); border-top: 1px solid var(--rv-border-color, #e5e7eb); font-size: var(--rv-font-size-sm); color: var(--rv-text-secondary, #9ca3af); text-align: center; }

/* ── Simple partial footer ──────────────────────────────────────────────────── */
.rv-partial-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--rv-space-3, 12px); flex-wrap: wrap; padding: var(--rv-space-4, 16px); }
.rv-partial-footer__brand { display: inline-flex; align-items: center; gap: var(--rv-space-2, 8px); }
.rv-partial-footer__niche-name { font-weight: var(--rv-weight-bold); color: var(--rv-text-primary, #111827); }
.rv-partial-footer__nav { display: flex; }
.rv-partial-footer__nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--rv-space-4, 16px); }
.rv-partial-footer__copyright { font-size: var(--rv-font-size-sm); color: var(--rv-text-secondary, #9ca3af); }
.rv-partial-footer__legal { font-size: var(--rv-font-size-sm); color: var(--rv-text-secondary, #9ca3af); }

/* ============================================================================
   DRIFT-717 — BATCH P1-8c: content theme partials + about page
   single / archive / index / 404 / search / searchform / comments / sidebar /
   page / practice-mode-banner / template-about. All theme-rendered → style.css.
   Full var(--token, #fallback); chrome/content is neutral so dark flips via tokens.
   ============================================================================ */

/* Visually-hidden utility (alias of screen-reader-text) */
.rv-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Single post + page ─────────────────────────────────────────────────────── */
.rv-single,
.rv-page { max-width: 760px; margin: 0 auto; padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); }
.rv-single__header,
.rv-page__header { margin-bottom: var(--rv-space-5, 24px); }
.rv-single__title,
.rv-page__title { font-size: 30px; font-weight: var(--rv-weight-extrabold); line-height: 1.2; color: var(--rv-text-primary, #111827); margin: 0 0 var(--rv-space-2, 8px); }
.rv-single__meta { display: flex; gap: var(--rv-space-3, 12px); flex-wrap: wrap; font-size: var(--rv-font-size-smd); color: var(--rv-text-secondary, #6b7280); }
.rv-single__author { font-weight: var(--rv-weight-semibold); }
.rv-single__date { font-variant-numeric: tabular-nums; }
.rv-single__content,
.rv-page__content { font-size: var(--rv-font-size-md); line-height: 1.7; color: var(--rv-text-primary, #374151); }
.rv-single__footer { margin-top: var(--rv-space-5, 24px); padding-top: var(--rv-space-4, 16px); border-top: 1px solid var(--rv-border-color, #e5e7eb); }
.rv-page-links { display: flex; gap: var(--rv-space-2, 8px); flex-wrap: wrap; margin-top: var(--rv-space-4, 16px); font-size: var(--rv-font-size-base); }

/* ── Archive + index (parallel post grids) ──────────────────────────────────── */
.rv-archive,
.rv-index { max-width: 1100px; margin: 0 auto; padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); }
.rv-archive__header { margin-bottom: var(--rv-space-5, 24px); text-align: center; }
.rv-archive__title { font-size: 28px; font-weight: var(--rv-weight-extrabold); color: var(--rv-text-primary, #111827); margin: 0 0 var(--rv-space-2, 8px); }
.rv-archive__description { font-size: 15px; color: var(--rv-text-secondary, #6b7280); margin: 0; }
.rv-archive__grid,
.rv-index__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--rv-space-4, 16px); }
.rv-archive__item-header,
.rv-index__item-header { margin-bottom: var(--rv-space-2, 8px); }
.rv-archive__item-title,
.rv-index__item-title { font-size: var(--rv-font-size-lg); font-weight: var(--rv-weight-bold); line-height: 1.3; margin: 0 0 var(--rv-space-1, 4px); }
.rv-archive__item-date,
.rv-index__item-date { font-size: var(--rv-font-size-sm); color: var(--rv-text-secondary, #9ca3af); font-variant-numeric: tabular-nums; }
.rv-archive__item-excerpt,
.rv-index__item-excerpt { font-size: var(--rv-font-size-base); color: var(--rv-text-secondary, #6b7280); line-height: 1.6; }

/* ── 404 ────────────────────────────────────────────────────────────────────── */
.rv-404 { max-width: 560px; margin: var(--rv-space-7, 48px) auto; padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); text-align: center; }
.rv-404__title { font-size: 64px; font-weight: var(--rv-weight-extrabold); line-height: 1; color: var(--rv-accent, #2563eb); margin: 0; }
.rv-404__heading { font-size: var(--rv-font-size-2xl); font-weight: var(--rv-weight-bold); color: var(--rv-text-primary, #111827); margin: var(--rv-space-3, 12px) 0 var(--rv-space-2, 8px); }
.rv-404__message { font-size: 15px; color: var(--rv-text-secondary, #6b7280); margin: 0 0 var(--rv-space-4, 16px); }
.rv-404__search { margin: var(--rv-space-4, 16px) 0; }
.rv-404__search-label { display: block; font-size: var(--rv-font-size-smd); font-weight: var(--rv-weight-semibold); color: var(--rv-text-primary, #374151); margin-bottom: var(--rv-space-2, 8px); }
.rv-404__actions { display: flex; gap: var(--rv-space-3, 12px); justify-content: center; flex-wrap: wrap; }

/* ── Search results + form ──────────────────────────────────────────────────── */
.rv-search-results { max-width: 760px; margin: 0 auto; padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); }
.rv-search-results__header { margin-bottom: var(--rv-space-4, 16px); }
.rv-search-results__title { font-size: var(--rv-font-size-3xl); font-weight: var(--rv-weight-extrabold); color: var(--rv-text-primary, #111827); margin: 0; }
.rv-search-results__query { color: var(--rv-accent, #2563eb); }
.rv-search-results__list { display: flex; flex-direction: column; gap: var(--rv-space-4, 16px); }
.rv-search-form__inner { display: flex; gap: var(--rv-space-2, 8px); }
.rv-search-form__input {
    flex: 1;
    min-width: 0;
    padding: var(--rv-space-2, 8px) var(--rv-space-3, 12px);
    border: 1px solid var(--rv-border-color, #d1d5db);
    border-radius: var(--rv-radius-sm, 6px);
    background: var(--rv-bg-surface, #ffffff);
    color: var(--rv-text-primary, #111827);
    font-size: var(--rv-font-size-base);
}
.rv-search-form__submit {
    padding: var(--rv-space-2, 8px) var(--rv-space-4, 16px);
    background: var(--rv-accent, #2563eb);
    color: var(--rv-accent-text, #ffffff);
    border: none;
    border-radius: var(--rv-radius-sm, 6px);
    font-weight: var(--rv-weight-semibold);
    cursor: pointer;
}

/* ── Comments ───────────────────────────────────────────────────────────────── */
.rv-comments { max-width: 760px; margin: var(--rv-space-5, 24px) auto 0; }
.rv-comments__title,
.rv-comment-form__title { font-size: var(--rv-font-size-lg); font-weight: var(--rv-weight-bold); color: var(--rv-text-primary, #111827); margin: 0 0 var(--rv-space-3, 12px); }
.rv-comments__list { list-style: none; margin: 0 0 var(--rv-space-5, 24px); padding: 0; display: flex; flex-direction: column; gap: var(--rv-space-4, 16px); }

/* ── Sidebar nav (icon + label items) ───────────────────────────────────────── */
.rv-sidebar-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--rv-space-1, 4px); }
.rv-sidebar-nav__icon { flex-shrink: 0; width: 20px; text-align: center; }
.rv-sidebar-nav__label { font-size: var(--rv-font-size-base); }

/* ── Practice-mode banner (semantic warning, like impersonation) ────────────── */
.rv-practice-mode-banner { background: #fffbeb; border-bottom: 1px solid #f59e0b; color: #92400e; }
.rv-practice-mode-banner__inner { max-width: 1200px; margin: 0 auto; padding: var(--rv-space-2, 8px) var(--rv-space-4, 16px); display: flex; align-items: center; gap: var(--rv-space-2, 8px); flex-wrap: wrap; font-size: var(--rv-font-size-smd); }
.rv-practice-mode-banner__icon { flex-shrink: 0; }
.rv-practice-mode-banner__message { font-weight: var(--rv-weight-semibold); }
.rv-practice-mode-banner__note { color: #b45309; }
.rv-practice-mode-banner__exit {
    margin-inline-start: auto;
    padding: var(--rv-space-1, 4px) var(--rv-space-3, 12px);
    border: 1px solid #f59e0b;
    border-radius: var(--rv-radius-sm, 6px);
    background: var(--rv-white);
    color: #92400e;
    font-size: var(--rv-font-size-sm);
    font-weight: var(--rv-weight-semibold);
    cursor: pointer;
    text-decoration: none;
}

/* ── About page ─────────────────────────────────────────────────────────────── */
.rv-about-page { color: var(--rv-text-primary, #111827); }
.rv-about-hero {
    background: var(--rv-hero-gradient, linear-gradient(135deg, #2563eb, #1d4ed8));
    color: var(--rv-accent-text, #ffffff);
    padding: var(--rv-space-7, 48px) var(--rv-space-4, 16px);
    text-align: center;
}
.rv-about-hero__inner { max-width: 760px; margin: 0 auto; }
.rv-about-hero__title { font-size: 32px; font-weight: var(--rv-weight-extrabold); margin: 0; color: var(--rv-accent-text, #ffffff); }
.rv-about-intro,
.rv-about-services,
.rv-about-credentials,
.rv-about-service-area,
.rv-about-cta { padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); }
.rv-about-intro__p1 { font-size: var(--rv-font-size-lg); font-weight: var(--rv-weight-semibold); color: var(--rv-text-primary, #111827); line-height: 1.6; }
.rv-about-intro__p2 { font-size: var(--rv-font-size-md); color: var(--rv-text-secondary, #374151); line-height: 1.7; }
.rv-about-services__heading,
.rv-about-credentials__heading,
.rv-about-service-area__heading,
.rv-about-cta__heading { font-size: var(--rv-font-size-2xl); font-weight: var(--rv-weight-bold); color: var(--rv-text-primary, #111827); margin: 0 0 var(--rv-space-3, 12px); }
.rv-about-services__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--rv-space-2, 8px); }
.rv-about-services__item { display: flex; align-items: center; gap: var(--rv-space-2, 8px); font-size: 15px; color: var(--rv-text-primary, #374151); }
.rv-about-credentials__body,
.rv-about-cta__text { font-size: 15px; color: var(--rv-text-secondary, #6b7280); line-height: 1.7; }
.rv-about-phone-cta { display: flex; justify-content: center; margin-top: var(--rv-space-4, 16px); }
.rv-about-phone-link__icon { font-size: var(--rv-font-size-lg); }
.rv-about-phone-link__number { font-variant-numeric: tabular-nums; }

/* Dark: practice-mode warning banner (semantic amber) */
@media (prefers-color-scheme: dark) {
    .rv-practice-mode-banner { background: #2d1a02; border-bottom-color: #fbbf24; color: #fcd34d; }
    .rv-practice-mode-banner__note { color: #fbbf24; }
    .rv-practice-mode-banner__exit { background: transparent; border-color: #fbbf24; color: #fcd34d; }
}
html.rv-dark .rv-practice-mode-banner { background: #2d1a02; border-bottom-color: #fbbf24; color: #fcd34d; }
html.rv-dark .rv-practice-mode-banner__note { color: #fbbf24; }
html.rv-dark .rv-practice-mode-banner__exit { background: transparent; border-color: #fbbf24; color: #fcd34d; }

/* ============================================================================
   DRIFT-717 — BATCH G: SEO landing pages (class-seo-generator.php)
   The per-niche/per-zip PUBLIC pages callers reach from search — primary
   acquisition surface, generated dynamically (no static view, so the gap
   inventory never scanned them). Rendered via get_header() → style.css (theme-
   wide). Full var(--token, #fallback); niche accent via var(--rv-accent,#2563eb).
   FAQ (rv-faq/rv-faq-item) + rv-cta base already styled. Light + dark + mobile.
   ============================================================================ */

/* Hero (caller + buyer variants) */
.rv-hero,
.rv-hero-buyer {
    background: var(--rv-hero-gradient, linear-gradient(135deg, #2563eb, #1d4ed8));
    color: var(--rv-accent-text, #ffffff);
    padding: var(--rv-space-7, 48px) var(--rv-space-4, 16px);
    text-align: center;
}
.rv-hero h1,
.rv-hero-buyer h1 {
    font-size: 32px;
    font-weight: var(--rv-weight-extrabold);
    line-height: 1.15;
    margin: 0 auto var(--rv-space-3, 12px);
    max-width: 760px;
    color: var(--rv-accent-text, #ffffff);
}
.rv-hero p,
.rv-hero-buyer p { font-size: var(--rv-font-size-lg); line-height: 1.5; margin: 0 auto var(--rv-space-5, 24px); max-width: 560px; opacity: 0.95; }

/* Trust bar (badges inside hero) */
.rv-trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--rv-space-3, 12px); margin-top: var(--rv-space-4, 16px); }
.rv-trust-bar span {
    display: inline-flex;
    align-items: center;
    gap: var(--rv-space-1, 4px);
    padding: var(--rv-space-1, 4px) var(--rv-space-3, 12px);
    background: rgba(255, 255, 255, 0.18);
    border-radius: var(--rv-radius-pill, 999px);
    font-size: var(--rv-font-size-base);
    font-weight: var(--rv-weight-semibold);
}

/* Content sections (prose + lists on surface) */
.rv-content-block,
.rv-niche-profile,
.rv-how-it-works,
.rv-what-you-get,
.rv-scenarios,
.rv-related {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px);
    color: var(--rv-text-primary, #111827);
}
.rv-content-block h2,
.rv-niche-profile h2,
.rv-how-it-works h2,
.rv-what-you-get h2,
.rv-scenarios h2,
.rv-related h2 {
    font-size: var(--rv-font-size-3xl);
    font-weight: var(--rv-weight-bold);
    margin: 0 0 var(--rv-space-4, 16px);
    color: var(--rv-text-primary, #111827);
}
.rv-content-block p,
.rv-niche-profile p { line-height: 1.7; color: var(--rv-text-secondary, #4b5563); }
.rv-how-it-works ol,
.rv-what-you-get ul,
.rv-scenarios ul { margin: 0; padding-left: var(--rv-space-5, 24px); line-height: 1.7; }
.rv-how-it-works li,
.rv-what-you-get li,
.rv-scenarios li { margin-bottom: var(--rv-space-2, 8px); color: var(--rv-text-secondary, #4b5563); }
.rv-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--rv-space-3, 12px); }
.rv-related a { color: var(--rv-accent, #2563eb); text-decoration: none; }
.rv-related a:hover { text-decoration: underline; }

/* CTA blocks (rv-cta base already styled; add SEO modifiers) */
.rv-cta-buyer,
.rv-cta-caller {
    max-width: 760px;
    margin: var(--rv-space-6, 32px) auto;
    padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px);
    text-align: center;
    background: var(--rv-bg-surface, #f9fafb);
    border-radius: var(--rv-radius-lg, 12px);
}
.rv-cta-buyer h2,
.rv-cta-caller h2 { font-size: var(--rv-font-size-3xl); font-weight: var(--rv-weight-bold); margin: 0 0 var(--rv-space-3, 12px); color: var(--rv-text-primary, #111827); }
.rv-cta-buyer p,
.rv-cta-caller p { color: var(--rv-text-secondary, #4b5563); margin: 0 0 var(--rv-space-4, 16px); }
.rv-cta-micro { font-size: var(--rv-font-size-smd); color: var(--rv-text-secondary, #6b7280); margin: var(--rv-space-3, 12px) 0 0; }

/* Standalone primary button (generator emits single-dash rv-btn-primary, no
   rv-btn base — style self-contained; theme elsewhere uses rv-btn--primary, S22) */
.rv-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rv-space-2, 8px);
    padding: var(--rv-space-3, 12px) var(--rv-space-6, 32px);
    background: var(--rv-accent, #2563eb);
    color: var(--rv-accent-text, #ffffff);
    border: none;
    border-radius: var(--rv-radius-md, 8px);
    font-size: var(--rv-font-size-md);
    font-weight: var(--rv-weight-bold);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--rv-transition, 150ms ease);
}
.rv-btn-primary:hover { background: var(--rv-accent-dark, #1d4ed8); color: var(--rv-accent-text, #ffffff); }

/* Phone CTA (caller pages — the conversion action) */
.rv-phone-cta { display: flex; justify-content: center; margin: var(--rv-space-4, 16px) 0; }
.rv-phone-link {
    display: inline-flex;
    align-items: center;
    gap: var(--rv-space-3, 12px);
    padding: var(--rv-space-4, 16px) var(--rv-space-6, 32px);
    background: var(--rv-accent, #2563eb);
    color: var(--rv-accent-text, #ffffff);
    border-radius: var(--rv-radius-pill, 999px);
    font-size: var(--rv-font-size-3xl);
    font-weight: var(--rv-weight-extrabold);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    box-shadow: var(--rv-shadow-lg, 0 20px 60px rgba(0, 0, 0, 0.18));
    transition: transform var(--rv-transition, 150ms ease);
}
.rv-phone-link:hover { transform: translateY(-1px); color: var(--rv-accent-text, #ffffff); }

/* Dark mirrors — surface-backed sections (hero/CTAs use accent, fine both modes) */
@media (prefers-color-scheme: dark) {
    .rv-cta-buyer,
    .rv-cta-caller { background: var(--rv-bg-surface, #1a1d27); }
    .rv-content-block p,
    .rv-niche-profile p,
    .rv-how-it-works li,
    .rv-what-you-get li,
    .rv-scenarios li { color: var(--rv-text-secondary, #94a3b8); }
}
html.rv-dark .rv-cta-buyer,
html.rv-dark .rv-cta-caller { background: var(--rv-bg-surface, #1a1d27); }
html.rv-dark .rv-content-block p,
html.rv-dark .rv-niche-profile p,
html.rv-dark .rv-how-it-works li,
html.rv-dark .rv-what-you-get li,
html.rv-dark .rv-scenarios li { color: var(--rv-text-secondary, #94a3b8); }

/* Mobile */
@media (max-width: 768px) {
    .rv-hero,
    .rv-hero-buyer { padding: var(--rv-space-6, 32px) var(--rv-space-4, 16px); }
    .rv-hero h1,
    .rv-hero-buyer h1 { font-size: 26px; }
    .rv-hero p,
    .rv-hero-buyer p { font-size: var(--rv-font-size-md); }
    .rv-phone-link { font-size: var(--rv-font-size-xl); padding: var(--rv-space-3, 12px) var(--rv-space-5, 24px); }
}
@media (max-width: 480px) {
    .rv-hero h1,
    .rv-hero-buyer h1 { font-size: 23px; }
    .rv-related ul { flex-direction: column; gap: var(--rv-space-2, 8px); }
}

/* ============================================================================
   DRIFT-717 — BATCH G: service-area list (rv_service_area shortcode)
   Public shortcode rendered in page content → style.css. Token fallbacks.
   ============================================================================ */
.rv-service-area-list { display: flex; flex-wrap: wrap; gap: var(--rv-space-2, 8px); margin: var(--rv-space-4, 16px) 0; }
.rv-service-area-zip {
    display: inline-flex;
    align-items: center;
    gap: var(--rv-space-1, 4px);
    padding: var(--rv-space-1, 4px) var(--rv-space-3, 12px);
    background: var(--rv-bg-surface, #f9fafb);
    border: 1px solid var(--rv-border-color, #e5e7eb);
    border-radius: var(--rv-radius-pill, 999px);
    font-size: var(--rv-font-size-base);
    color: var(--rv-text-primary, #111827);
}
.rv-zip-label { color: var(--rv-text-secondary, #6b7280); font-size: var(--rv-font-size-smd); }
.rv-service-area-empty { color: var(--rv-text-secondary, #6b7280); font-style: italic; }
@media (prefers-color-scheme: dark) {
    .rv-service-area-zip { background: var(--rv-bg-surface, #1a1d27); border-color: var(--rv-border-color, #2d3748); color: var(--rv-text-primary, #e2e8f0); }
    .rv-zip-label,
    .rv-service-area-empty { color: var(--rv-text-secondary, #94a3b8); }
}
html.rv-dark .rv-service-area-zip { background: var(--rv-bg-surface, #1a1d27); border-color: var(--rv-border-color, #2d3748); color: var(--rv-text-primary, #e2e8f0); }
html.rv-dark .rv-zip-label,
html.rv-dark .rv-service-area-empty { color: var(--rv-text-secondary, #94a3b8); }

/* ============================================================
   Skip Navigation + Screen-Reader Utility (DRIFT-1098)
   Front-end styling for rv_skip_links() (rendered by header.php
   immediately after <body>) and the .rv-sr-only utility the
   accessibility helpers document. Theme numbered token space
   (--rv-accent* / --rv-space-* / --rv-radius-*) per the
   two-token-system architecture — NOT the admin named space.
   Off-screen-until-focus pattern: links are invisible until a
   keyboard user tabs to them, then drop into view.
   ============================================================ */
.rv-skip-link {
    position: absolute;
    top: -40px;
    left: var(--rv-space-3);
    background: var(--rv-accent);
    color: var(--rv-accent-text);
    padding: var(--rv-space-2) var(--rv-space-3);
    border-radius: var(--rv-radius-md);
    text-decoration: none;
    z-index: 9999;
}
.rv-skip-link:focus {
    top: var(--rv-space-3);
}
.rv-skip-link + .rv-skip-link {
    left: calc(var(--rv-space-3) + 12rem);
}
.rv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
