/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Mar 06 2026 | 21:08:31 */
/* =============================================================================
   RICHARD NUNNS — PEARL REGISTRY DESIGN SYSTEM
   PREFIX: rich | Theme: Sinatra | Content: .entry-content
   ============================================================================= */

/* ===== LAYER 0: CSS CUSTOM PROPERTIES ===== */

:root {
    --rich-bg:              #FFFFFF;
    --rich-bg-alt:          #F7FAFB;
    --rich-surface:         #FFFFFF;
    --rich-ink:             #0B1B2B;
    --rich-ink-light:       #4B6278;
    --rich-ink-muted:       #8A9BAD;
    --rich-accent:          #1F7A8C;
    --rich-accent-hover:    #0F4C5C;
    --rich-accent-rgb:      31, 122, 140;
    --rich-gold:            #B89A4A;
    --rich-gold-light:      #E7D08A;
    --rich-gold-rgb:        184, 154, 74;
    --rich-plum:            #6A4C7D;
    --rich-plum-light:      #EDE7F3;
    --rich-amber:           #F2AE2E;
    --rich-amber-light:     #FFE1A6;
    --rich-pearl:           #EEF3F6;
    --rich-border:          #D4DDE4;
    --rich-border-light:    #E8EEF2;
    --rich-pros:            #2E8B57;
    --rich-cons:            #C0392B;
    --rich-radius:          12px;
    --rich-container-max:   1140px;
    --rich-font-head:       'Manrope', 'Segoe UI', system-ui, sans-serif;
    --rich-font-body:       'Inter', 'Segoe UI', system-ui, sans-serif;
}


/* ===== LAYER 1: STRUCTURAL RESET ===== */
/* Only removes theme container constraints so sections go full-width.
   No typography, color, or element resets — those live in Layer 2. */

.rich-container *,
.rich-container *::before,
.rich-container *::after {
    box-sizing: border-box;
}

/* Remove Sinatra / generic theme width constraints */
body .site-content,
body .sinatra-container,
body #primary,
body #content,
body .entry-content,
body .site-main,
body article {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* Astra: .entry-content[data-ast-blocks-layout] > * sets max-width on direct children,
   which overrides width: 100vw on rich-section. max-width takes priority over width —
   must be neutralized. */
.entry-content[data-ast-blocks-layout] > * {
    max-width: none !important;
}

/* Prevent horizontal scroll from 100vw sections */
html {
    overflow-x: clip;
}

/* Strip theme backgrounds */
body, .site,
.sinatra-wrapper,
.entry-content,
#primary, #content {
    background: transparent !important;
    background-color: transparent !important;
}


/* ===== LAYER 2: CONTENT DESIGN ===== */
/* Full visual design for all content via rich-{tag} classes.
   Specificity: .rich-container .rich-x = 0,2,0 — beats theme without !important. */

/* ---- Headings ---- */

.rich-container .rich-h1 {
    font-family: var(--rich-font-head);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--rich-accent-hover);
    margin: 0;
    padding: 0;
    padding-bottom: 0.5rem;
    position: relative;
}

/* h1 gold accent bar — Section 4D.7 / hero variant */
.rich-container .rich-h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin-top: 0.625rem;
    background: linear-gradient(90deg, var(--rich-gold-light), var(--rich-gold));
    border-radius: 2px;
    pointer-events: none;
}

.rich-container .rich-h2 {
    font-family: var(--rich-font-head);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--rich-accent-hover);
    margin: 0;
    padding: 0;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    position: relative;
}

/* h2 60px gold gradient accent bar */
.rich-container .rich-h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--rich-gold), var(--rich-gold-light));
    border-radius: 2px;
    pointer-events: none;
}

.rich-container .rich-h3 {
    font-family: var(--rich-font-head);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--rich-accent-hover);
    margin: 0;
    padding: 0;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.rich-container .rich-h4 {
    font-family: var(--rich-font-head);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--rich-accent-hover);
    margin: 0;
    padding: 0;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.rich-container .rich-h5 {
    font-family: var(--rich-font-head);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rich-accent-hover);
    margin: 0;
    padding: 0;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.rich-container .rich-h6 {
    font-family: var(--rich-font-head);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rich-ink-light);
    margin: 0;
    padding: 0;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ---- Paragraphs ---- */

.rich-container .rich-p {
    font-family: var(--rich-font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--rich-ink);
    margin: 0;
    padding: 0;
    margin-bottom: 1em;
}

/* ---- Lead paragraph — first p after h2 (Section 4D.8) ---- */

.rich-container .rich-h2 + .rich-p {
    font-size: 1.1875rem;
    font-weight: 450;
    line-height: 1.7;
    color: var(--rich-ink-light);
    padding-left: 1.25rem;
    position: relative;
}

.rich-container .rich-h2 + .rich-p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--rich-accent), var(--rich-accent-hover));
    border-radius: 2px;
}

/* ---- Inline Links (Section 4D.9) ---- */

.rich-container .rich-a {
    color: var(--rich-accent);
    text-decoration: none;
    background-image: linear-gradient(var(--rich-gold), var(--rich-gold));
    background-size: 100% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: color 0.2s, background-size 0.2s;
}

.rich-container .rich-a:hover {
    color: var(--rich-accent-hover);
    background-image: linear-gradient(var(--rich-gold), var(--rich-gold));
    background-size: 100% 3px;
}

/* ---- Lists (Section 4D.1) ---- */

.rich-container .rich-ul,
.rich-container .rich-ol {
    font-family: var(--rich-font-body);
    font-size: 1rem;
    color: var(--rich-ink-light);
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    background: var(--rich-surface);
    border: 1px solid var(--rich-border-light);
    border-radius: var(--rich-radius);
    overflow: hidden;
}

.rich-container .rich-ol {
    counter-reset: rich-ol-counter;
}

.rich-container .rich-li {
    position: relative;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    border-bottom: 1px solid var(--rich-border-light);
    margin-bottom: 0;
    transition: background 0.15s;
}

.rich-container .rich-li:last-child {
    border-bottom: none;
}

.rich-container .rich-li:hover {
    background: rgba(31, 122, 140, 0.03);
}

.rich-container .rich-li::marker {
    content: none;
}

/* ul arrow_right marker */
.rich-container .rich-ul .rich-li::before {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    content: 'arrow_right';
    position: absolute;
    left: 1.25rem;
    top: 0.9375rem;
    color: var(--rich-accent);
    font-size: 0.75em;
    line-height: 1;
}

/* ol counter badge */
.rich-container .rich-ol .rich-li {
    counter-increment: rich-ol-counter;
    padding-left: 3.5rem;
}

.rich-container .rich-ol .rich-li::before {
    content: counter(rich-ol-counter);
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--rich-gold);
    color: #fff;
    font-family: var(--rich-font-head);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

/* ---- Blockquotes (Section 4D.2) ---- */

.rich-container .rich-blockquote {
    background: var(--rich-plum-light);
    border: 1px solid rgba(106, 76, 125, 0.15);
    border-radius: var(--rich-radius);
    padding: 3.25rem 2rem 2rem 2.5rem;
    margin: 2rem 0;
    position: relative;
}

.rich-container .rich-blockquote::before {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    content: 'format_quote';
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 1.75rem;
    color: var(--rich-plum);
    opacity: 0.5;
    pointer-events: none;
    line-height: 1;
}

/* "EDITORIAL NOTE" mini-stamp */
.rich-container .rich-blockquote::after {
    content: 'EDITORIAL NOTE';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-family: var(--rich-font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rich-plum);
    background: rgba(106, 76, 125, 0.1);
    border: 1px solid rgba(106, 76, 125, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
}

.rich-container .rich-blockquote .rich-p {
    color: var(--rich-ink);
    font-style: italic;
}

.rich-container .rich-cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rich-ink-muted);
    font-style: normal;
}

.rich-container .rich-cite::before {
    content: '— ';
    color: var(--rich-gold);
}

/* ---- Separators (Section 4D.6) ---- */

.rich-container .rich-hr {
    border: none;
    height: 0;
    width: 100%;
    margin: 2.5rem auto;
    position: relative;
    text-align: center;
}

.rich-container .rich-hr::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 2px;
    background: var(--rich-gold);
    border-radius: 2px;
}

.rich-container .rich-hr::after {
    content: '◆';
    position: relative;
    display: inline-block;
    color: var(--rich-gold);
    font-size: 0.75rem;
    background: var(--rich-bg);
    padding: 0 0.5rem;
    z-index: 1;
}

/* ---- Images (Section 4D.4) ---- */

.rich-container .rich-figure {
    margin: 2rem 0;
    position: relative;
}

/* Exclude figures inside wp-block-gallery — gallery manages its own layout */
.wp-block-gallery .rich-figure {
    margin: 0;
}

.rich-container .rich-figure::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-bottom: 3px solid var(--rich-gold);
    border-right: 3px solid var(--rich-gold);
    border-radius: 0 0 var(--rich-radius) 0;
    pointer-events: none;
}

/* No gold corner on gallery images */
.wp-block-gallery .rich-figure::after {
    display: none;
}

.rich-container .rich-img {
    border-radius: 8px;
    border: 1px solid var(--rich-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 100%;
    height: auto;
    transition: box-shadow 0.25s, transform 0.25s;
}

@media (hover: hover) {
    .rich-container .rich-img:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
}

.rich-container .rich-figcaption {
    font-family: var(--rich-font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rich-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.75rem;
    border-left: 2px solid var(--rich-gold);
    padding-left: 0.5rem;
}

/* ---- Tables — native HTML (Section 4D.3) ---- */

.rich-container .rich-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--rich-border);
    border-radius: var(--rich-radius);
    overflow: hidden;
    margin: 1.5rem 0;
}

.rich-container .rich-th {
    background: linear-gradient(135deg, var(--rich-accent-hover), var(--rich-accent));
    color: #fff;
    font-family: var(--rich-font-head);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.8125rem 1.25rem;
    border: none;
}

.rich-container .rich-td {
    font-size: 0.9375rem;
    padding: 0.8125rem 1.25rem;
    border: none;
    border-bottom: 1px solid var(--rich-border-light);
    color: var(--rich-ink-light);
}

.rich-container .rich-table tr:nth-child(even) .rich-td {
    background: var(--rich-bg-alt);
}

.rich-container .rich-table tr:hover .rich-td {
    background: rgba(31, 122, 140, 0.05);
}

/* ---- Code ---- */

.rich-container .rich-pre {
    background: var(--rich-surface);
    border: 1px solid var(--rich-border-light);
    padding: 1.5rem;
    border-radius: var(--rich-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.rich-container .rich-code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
}

/* ---- Native table → cards on mobile ---- */

@media (max-width: 768px) {
    /* Reset wp-block-table wrapper so row-cards don't merge into one block */
    .rich-container .wp-block-table {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    /* Override Sinatra theme mobile: table:not(.variations):not(.shop_table)
       sets border-collapse: collapse and background-color: #f4f4f4 */
    .rich-container .rich-table {
        background: none !important;
        background-color: transparent !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        border-collapse: separate !important;
    }
    .rich-container .rich-table thead { display: none; }
    .rich-container .rich-table tr {
        display: block;
        margin-bottom: 1rem;
        background: var(--rich-bg-alt);
        border-radius: var(--rich-radius);
        padding: 14px 16px;
        border: 1px solid var(--rich-border-light);
    }
    .rich-container .rich-td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--rich-border-light);
        font-size: 0.875rem;
    }
    .rich-container .rich-td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--rich-ink);
    }
    .rich-container .rich-table tr:nth-child(even) .rich-td {
        background: transparent;
    }
}

/* ---- Responsive typography ---- */

@media (max-width: 768px) {
    .rich-container .rich-h1 { font-size: 2rem; }
    .rich-container .rich-h2 { font-size: 1.625rem; }
    .rich-container .rich-h3 { font-size: 1.3rem; }
    .rich-container .rich-h4 { font-size: 1.1rem; }
    .rich-container .rich-p  { font-size: 1rem; line-height: 1.7; }
    .rich-container .rich-h2 + .rich-p { font-size: 1.0625rem; padding-left: 1rem; }
    .rich-container .rich-ul .rich-li,
    .rich-container .rich-ol .rich-li { padding-left: 2.75rem; }
    .rich-container .rich-figure::after { display: none; }
    .rich-container .rich-hr::before { width: 80px; }
    .rich-container .rich-h2::after { width: 48px; }
    .rich-container .rich-h1::after { width: 60px; }
}

@media (max-width: 480px) {
    .rich-container .rich-h1 { font-size: 1.625rem; }
    .rich-container .rich-h2 { font-size: 1.375rem; }
    .rich-container .rich-h3 { font-size: 1.2rem; }
    .rich-container .rich-p  { font-size: 0.9375rem; }
    .rich-container .rich-h2 + .rich-p { font-size: 0.9375rem; }
    .rich-container .rich-table { font-size: 0.875rem; }
    .rich-container .rich-table td { padding: 0.625rem; }
}


/* ===== LAYER 3: SECTION DESIGN ===== */

/* ---- Page background ---- */

body {
    background: var(--rich-bg) !important;
}

/* ---- Gutenberg button block — global utility (not PREFIX-scoped) ---- */
/* Placed in Layer 3 because it uses wp-block-* selectors, not PREFIX classes. */

.wp-block-button .wp-block-button__link {
    background: var(--rich-accent);
    color: #fff;
    font-family: var(--rich-font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.wp-block-button .wp-block-button__link:hover {
    background: var(--rich-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 122, 140, 0.3);
    color: #fff;
}

/* ---- Full-width section mechanics ---- */

.rich-section {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative;
    overflow: hidden;
}

/* ---- Section padding (C1) ---- */

.rich-section {
    padding: 4rem 0;
}

/* ---- Section alternation (C1) ---- */

.rich-section.rich-odd:not(.rich-hero) {
    background: var(--rich-bg);
}

.rich-section.rich-even:not(.rich-hero) {
    background: var(--rich-bg-alt);
}

/* ---- Section divider gold line (C2) ---- */
/* Appears above every section except the hero */

.rich-section:not(.rich-hero)::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--rich-gold);
    pointer-events: none;
    z-index: 1;
}

/* ---- Hero section (C3) ---- */

.rich-hero {
    background: linear-gradient(165deg, #0F4C5C 0%, #1F7A8C 60%, #1A6A7A 100%);
    padding: 5rem 0 4rem;
    color: #fff;
}

/* Pearl micro-noise overlay */
.rich-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

/* Gold baseline 3px at bottom of hero */
.rich-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--rich-gold) 20%, var(--rich-gold) 80%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Hero container above overlays */
.rich-hero > .rich-container {
    position: relative;
    z-index: 1;
}

/* Hero title (injected by plugin) */
.rich-hero-title {
    font-family: var(--rich-font-head);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 0.3em;
}

.rich-hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin-top: 0.625rem;
    background: linear-gradient(90deg, var(--rich-gold-light), var(--rich-gold));
    border-radius: 2px;
}

/* Hero: h2 override (larger treatment, white) */
.rich-hero .rich-h2 {
    font-size: 3.2rem;
    letter-spacing: -0.02em;
    color: #fff;
    margin-top: 0;
}

.rich-hero .rich-h2::after {
    background: linear-gradient(90deg, var(--rich-gold-light), var(--rich-gold));
}

/* Hero headings override */
.rich-hero .rich-h1,
.rich-hero .rich-h3,
.rich-hero .rich-h4 {
    color: #fff;
}

/* Hero paragraphs */
.rich-hero .rich-p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.125rem;
}

/* Hero lead paragraph */
.rich-hero .rich-h2 + .rich-p,
.rich-hero .rich-h1 + .rich-p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.125rem;
    background: none;
    padding-left: 0;
}

.rich-hero .rich-h2 + .rich-p::before,
.rich-hero .rich-h1 + .rich-p::before {
    display: none;
}

/* Hero links */
.rich-hero .rich-a {
    color: var(--rich-gold-light);
    background-image: linear-gradient(rgba(231, 208, 138, 0.6), rgba(231, 208, 138, 0.6));
}

/* ---- Registry Stamp (C4) ---- */

@keyframes stampIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.rich-section-2::before,
.rich-review-section::before,
.rich-comparison-section::before,
.rich-faq::before {
    /* overrides the gold divider line — we use ::before for stamps */
    width: auto;
    height: auto;
    background: none;
    transform: none;
    left: auto;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--rich-font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    animation: stampIn 0.25s ease-out both;
    pointer-events: none;
    z-index: 2;
    display: block;
    position: absolute;
}

.rich-section-2::before {
    content: 'R1 · REGISTERED';
    color: var(--rich-gold);
    background: rgba(184, 154, 74, 0.08);
    border: 1px solid rgba(184, 154, 74, 0.25);
}

.rich-review-section::before {
    content: 'V · VERIFIED';
    color: var(--rich-gold);
    background: rgba(184, 154, 74, 0.08);
    border: 1px solid rgba(184, 154, 74, 0.25);
}

.rich-comparison-section::before {
    content: 'T1 · TERMS';
    color: var(--rich-plum);
    background: var(--rich-plum-light);
    border: 1px solid rgba(106, 76, 125, 0.25);
}

.rich-faq::before {
    content: 'FAQ · REFERENCE';
    color: var(--rich-accent);
    background: rgba(31, 122, 140, 0.08);
    border: 1px solid rgba(31, 122, 140, 0.25);
}

/* ---- Container ---- */

.rich-container {
    max-width: var(--rich-container-max) !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

/* ---- Table wrap ---- */

.rich-table-wrap {
    padding: 2rem 0;
}

/* ---- FAQ section — decorative only (C5) ---- */
/* The plugin outputs <style id="wpas-faq-base"> which covers:
   max-height, overflow, opacity, transition on .rich-faq-answer;
   cursor, user-select on .rich-faq-question.
   This block adds ONLY visual / decorative treatment. */

.rich-faq-list {
    /* width constrained by .rich-container */
}

.rich-faq-item {
    background: var(--rich-surface);
    border: 1px solid var(--rich-border-light);
    border-radius: var(--rich-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

/* Open state: gold border accent */
.rich-faq-item.rich-faq-item--open {
    border-color: var(--rich-gold);
}

.rich-faq-question {
    /* !important: the plugin outputs cursor/user-select on this element via <style id="wpas-faq-base">.
       Sinatra theme also sets generic element padding at moderate specificity.
       !important ensures our right-padding (3rem, needed for the ::after arrow clearance)
       is never overridden by either the plugin's base style or theme. */
    padding: 1.25rem 3rem 1.25rem 1.5rem !important;
    font-family: var(--rich-font-head);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--rich-ink);
    position: relative;
    transition: background 0.15s, color 0.15s;
}

.rich-faq-question:hover {
    background: rgba(31, 122, 140, 0.03);
}

/* Open state: question gets accent color */
.rich-faq-item.rich-faq-item--open .rich-faq-question {
    color: var(--rich-accent-hover);
}

/* expand_more arrow — decorative, plugin handles rotation via JS class */
.rich-faq-question::after {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    content: 'expand_more';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--rich-ink);
    transition: transform 0.3s;
    pointer-events: none;
    line-height: 1;
}

.rich-faq-item.rich-faq-item--open .rich-faq-question::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--rich-accent-hover);
}

/* Answer: decorative padding + top separator */
.rich-faq-answer {
    padding: 0 1.5rem 1.25rem;
    /* NOTE: max-height, overflow, opacity, transition are output by the plugin */
}

.rich-faq-answer::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--rich-border-light);
    margin-bottom: 1rem;
}

/* ---- Comparison section (C6) ---- */

.rich-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.rich-comparison-block {
    background: var(--rich-surface);
    border: 1px solid var(--rich-border-light);
    border-radius: var(--rich-radius);
    padding: 1.75rem;
}

.rich-comparison-pros {
    border-top: 3px solid var(--rich-pros);
}

.rich-comparison-cons {
    border-top: 3px solid var(--rich-cons);
}

/* Pros h3 icon */
.rich-comparison-pros .rich-h3::before {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    content: 'check_circle';
    margin-right: 0.4em;
    color: var(--rich-pros);
    vertical-align: middle;
}

/* Cons h3 icon */
.rich-comparison-cons .rich-h3::before {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    content: 'cancel';
    margin-right: 0.4em;
    color: var(--rich-cons);
    vertical-align: middle;
}

/* List items inside comparison */
.rich-comparison-block .rich-li {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--rich-border-light);
}

.rich-comparison-block .rich-li:last-child {
    border-bottom: none;
}

/* ---- Comparison section (C6 section-level) ---- */
/* Subtle plum tint for visual parity with .rich-review-section gold tint */

.rich-comparison-section {
    background: linear-gradient(90deg, rgba(106, 76, 125, 0.02) 0%, transparent 8%) !important;
}

/* ---- Review section (C7) ---- */

.rich-review-section {
    border-left: 4px solid var(--rich-gold);
    background: linear-gradient(90deg, rgba(184, 154, 74, 0.03) 0%, transparent 8%) !important;
}

/* Review gallery: let wp-block-gallery handle its 3-col flex layout */
.rich-review-section .wp-block-gallery {
    margin: 1.5rem 0;
    gap: 0.75rem;
}

.rich-review-section .wp-block-gallery .rich-figure {
    margin: 0;
}

.rich-review-section .wp-block-gallery .rich-img {
    border-radius: 8px;
    border: 1px solid var(--rich-border-light);
    width: 100%;
    height: auto;
}

/* Review comparison variants — same grid, reduced padding */
.rich-comparison-review {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.rich-comparison-block-review {
    /* Reduced padding vs standalone (1.75rem) — visually nested inside review context */
    padding: 1.25rem;
    border-radius: var(--rich-radius);
    /* Slightly tinted background vs standalone pure white — reinforces nesting */
    background: var(--rich-bg-alt);
    border: 1px solid var(--rich-border-light);
}

.rich-comparison-pros-review {
    /* 2px (vs 3px standalone) — visually nested within review card context */
    border-top: 2px solid var(--rich-pros);
}

.rich-comparison-cons-review {
    /* 2px (vs 3px standalone) — visually nested within review card context */
    border-top: 2px solid var(--rich-cons);
}

.rich-comparison-pros-review .rich-h3::before {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    content: 'check_circle';
    margin-right: 0.4em;
    color: var(--rich-pros);
    vertical-align: middle;
}

.rich-comparison-cons-review .rich-h3::before {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    content: 'cancel';
    margin-right: 0.4em;
    color: var(--rich-cons);
    vertical-align: middle;
}

/* ---- Subsection treatment (C8) ---- */

.rich-subsection {
    background: var(--rich-surface);
    border: 1px solid var(--rich-border-light);
    border-radius: var(--rich-radius);
    padding: 2rem 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Gold L-corner — horizontal arm */
.rich-subsection::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 40px;
    height: 3px;
    background: var(--rich-gold);
    border-radius: 2px 0 0 0;
    pointer-events: none;
}

/* Gold L-corner — vertical arm */
.rich-subsection::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 3px;
    height: 40px;
    background: var(--rich-gold);
    border-radius: 2px 0 0 0;
    pointer-events: none;
}

/* ---- Section-level responsive ---- */

@media (max-width: 768px) {
    .rich-section { padding: 2.75rem 0; }
    .rich-section:not(.rich-hero)::before { width: 60px; }

    /* Hero */
    .rich-hero { padding: 3.5rem 0 2.75rem; }
    .rich-hero-title { font-size: 2rem; }
    .rich-hero .rich-h2 { font-size: 2.2rem; }
    .rich-hero .rich-p { font-size: 1rem; }

    /* Comparison / review grids */
    .rich-comparison,
    .rich-comparison-review {
        grid-template-columns: 1fr;
    }

    /* Review gallery: stack on mobile */
    /* .rich-review-section .wp-block-gallery {
        flex-direction: column;
    } */

    /* Subsection */
    .rich-subsection { padding: 1.5rem 1.25rem; }

    /* Stamps → inline */
    .rich-section-2::before,
    .rich-review-section::before,
    .rich-comparison-section::before,
    .rich-faq::before {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .rich-hero { padding: 2.75rem 0 2rem; }
    .rich-hero-title { font-size: 1.625rem; }
    .rich-hero .rich-h2 { font-size: 1.8rem; }
}


/* =============================================
   LAYER 3 (cont): HEADER
   ============================================= */

.rich-site-header {
    position: sticky;
    top: 0;
    z-index: 99999;
    background: #fff;
    border-bottom: 1px solid var(--rich-border-light);
    transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}

/* Gold baseline (B1) */
.rich-site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--rich-gold) 20%, var(--rich-gold) 80%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

/* Sticky scroll state (B2) */
.rich-site-header.rich-is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.rich-header-inner {
    max-width: var(--rich-container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 68px;
}

/* Logo */
.rich-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.rich-logo img {
    height: 65px;
    width: auto;
    display: block;
}

/* Navigation */
.rich-header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    flex-wrap: nowrap;
}

.rich-header-link {
    font-family: var(--rich-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rich-ink);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

/* Animated underline from center on hover */
.rich-header-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--rich-gold);
    border-radius: 1px;
    transition: width 0.25s;
}

.rich-header-link:hover {
    color: var(--rich-accent);
}

.rich-header-link:hover::after {
    width: calc(100% - 1.5rem);
}

/* Active page state */
.rich-header-link.rich-is-active,
.rich-header-link[aria-current="page"] {
    color: var(--rich-accent);
}

.rich-header-link.rich-is-active::after,
.rich-header-link[aria-current="page"]::after {
    width: calc(100% - 1.5rem);
}


/* ---- Aggressive button reset for all themes ---- */
.rich-site-header button,
.rich-site-header button:hover,
.rich-site-header button:focus,
.rich-site-header button:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* ---- Dropdown ---- */

.rich-dropdown {
    position: relative;
}

.rich-dropdown-toggle {
    font-family: var(--rich-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rich-ink);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s;
    white-space: nowrap;
}

.rich-dropdown-toggle:hover {
    color: var(--rich-accent);
}

.rich-dropdown-toggle:focus-visible {
    outline: 2px solid var(--rich-accent);
    outline-offset: 2px;
}

.rich-dropdown-arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.rich-dropdown.rich-is-open .rich-dropdown-arrow {
    transform: rotate(180deg);
}

.rich-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 100;
    background: var(--rich-surface);
    border: 1px solid var(--rich-border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    overflow: hidden;
}

.rich-dropdown.rich-is-open .rich-dropdown-menu {
    display: block;
}

@media (min-width: 769px) {
    .rich-dropdown:hover .rich-dropdown-menu { display: block; }
    .rich-dropdown:hover .rich-dropdown-arrow { transform: rotate(180deg); }
}

.rich-dropdown-link {
    display: block;
    font-family: var(--rich-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rich-ink);
    text-decoration: none;
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.rich-dropdown-link:hover {
    background: rgba(31, 122, 140, 0.06);
    color: var(--rich-accent);
}

/* ---- Mobile menu ---- */

.rich-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background 0.15s;
}

.rich-mobile-toggle:hover {
    background: rgba(31, 122, 140, 0.06);
}

.rich-burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--rich-ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ---- Close button (hidden on desktop) ---- */

.rich-mobile-close {
    display: none;
}

@media (max-width: 768px) {
    .rich-mobile-toggle { display: flex; }

    .rich-header-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        z-index: 9999;
        overflow-y: auto;
        padding: 0;
    }

    .rich-header-nav.rich-is-open {
        display: flex;
    }

    /* Close button */
    .rich-mobile-close {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 16px 20px;
        background: none;
        border: none;
        border-bottom: 2px solid var(--rich-gold);
        cursor: pointer;
    }

    .rich-close-icon {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        color: var(--rich-ink);
        border-radius: 8px;
        background: var(--rich-bg-alt);
        border: 1px solid var(--rich-border-light);
        transition: background 0.15s;
        line-height: 1;
    }

    .rich-mobile-close:hover .rich-close-icon {
        background: rgba(31, 122, 140, 0.06);
    }

    /* Menu links */
    .rich-header-link {
        font-size: 1.0625rem;
        font-weight: 500;
        padding: 1rem 1.5rem;
        min-height: 52px;
        display: flex;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid var(--rich-border-light);
    }

    .rich-header-link::after { display: none; }

    .rich-dropdown {
        width: 100%;
        border-bottom: 1px solid var(--rich-border-light);
    }

    .rich-dropdown-toggle {
        font-size: 1.0625rem;
        width: 100%;
        justify-content: space-between;
        min-height: 52px;
        padding: 1rem 1.5rem;
    }

    .rich-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--rich-border-light);
        border-radius: 0;
        padding: 0;
        width: 100%;
        background: var(--rich-bg-alt);
    }

    .rich-dropdown.rich-is-open .rich-dropdown-menu { display: block; }

    .rich-dropdown-link {
        font-size: 0.9375rem;
        padding: 0.875rem 1.5rem 0.875rem 2.5rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}


/* =============================================
   LAYER 3 (cont): FOOTER
   ============================================= */

.rich-site-footer {
    background: var(--rich-pearl) !important;
    position: relative;
    font-family: var(--rich-font-body);
}

/* Gold top border (B3) */
.rich-site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--rich-gold) 20%, var(--rich-gold) 80%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Footer main columns */
.rich-footer-main {
    max-width: var(--rich-container-max);
    margin: 0 auto;
    padding: 3rem 20px 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 2.5rem;
}

/* ---- Column 1: Company Info ---- */

.rich-footer-brand {}

.rich-footer-logo {
    display: block;
    margin-bottom: 1rem;
}

.rich-footer-logo img {
    height: 75px;
    width: auto;
    display: block;
}

.rich-footer-description {
    font-size: 0.9rem;
    color: var(--rich-ink-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* License logos */
.rich-footer-licenses {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.rich-license-logo {
    display: inline-block;
}

.rich-license-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

/* ---- Column 2: Quick Links ---- */

.rich-footer-nav-col {}

.rich-footer-col-title {
    font-family: var(--rich-font-head);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rich-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.rich-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rich-footer-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rich-ink-light);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.15s;
}

.rich-footer-link:hover {
    color: var(--rich-accent);
}

/* Footer link groups (parent with children) */
.rich-footer-group {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

.rich-footer-group:first-child {
    margin-top: 0;
}

.rich-footer-group-title {
    font-family: var(--rich-font-head);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--rich-ink-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0 0.35rem;
}

.rich-footer-link--child {
    font-size: 0.875rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--rich-border-light);
}

.rich-footer-link--child:hover {
    border-color: var(--rich-accent);
}

/* ---- Column 3: Responsible Gambling ---- */

.rich-footer-responsible {
    position: relative;
}

/* Plum editorial mark (B4) — ::before rectangle left of heading */
.rich-footer-responsible-title {
    font-family: var(--rich-font-head);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rich-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.rich-footer-responsible-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 4px;
    background: var(--rich-plum);
    border-radius: 2px;
    flex-shrink: 0;
}

.rich-footer-responsible-text {
    font-size: 0.875rem;
    color: var(--rich-ink-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Help links — gold left border */
.rich-footer-help-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rich-footer-help-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rich-ink-light);
    text-decoration: none;
    border-left: 2px solid var(--rich-gold);
    padding-left: 0.625rem;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1.5;
}

.rich-footer-help-link:hover {
    color: var(--rich-accent);
    border-color: var(--rich-accent);
}

/* ---- Bottom bar ---- */

.rich-footer-bottom {
    background: var(--rich-pearl);
    border-top: 1px solid var(--rich-border-light);
    filter: brightness(0.97);
}

.rich-footer-bottom-inner {
    max-width: var(--rich-container-max);
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rich-copyright {
    font-size: 0.8125rem;
    color: var(--rich-ink-muted);
}

.rich-age-badge {
    font-family: var(--rich-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rich-amber);
    background: var(--rich-amber-light);
    border: 1px solid rgba(242, 174, 46, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ---- Footer responsive ---- */

@media (max-width: 900px) {
    .rich-footer-main {
        grid-template-columns: 1fr 1fr;
    }
    .rich-footer-responsible {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .rich-footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 20px 1.5rem;
    }
    .rich-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* =============================================
   LAYER 3 (cont): TABLE CSS (from wp-table)
   ============================================= */

/* ============================================================
   Pearl Registry Cards — rich prefix
   ============================================================ */
.rich-casino-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: var(--rich-container-max);
    margin: 0 auto;
    padding: 0;
    font-family: var(--rich-font-body);
}

.rich-casino-card {
    position: relative;
    overflow: hidden;
    background: var(--rich-surface);
    border: 1px solid var(--rich-border);
    border-radius: var(--rich-radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rich-casino-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--rich-gold);
}

.rich-casino-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--rich-gold) 20%, var(--rich-gold) 80%, transparent 100%);
    pointer-events: none;
}

.rich-casino-prime {
    background: linear-gradient(135deg, #FFFDF5 0%, #FFF9E6 100%);
    border: 1px solid var(--rich-gold);
    box-shadow: 0 2px 16px rgba(184, 154, 74, 0.15);
}

.rich-casino-prime:hover {
    box-shadow: 0 4px 20px rgba(184, 154, 74, 0.25);
    border-color: var(--rich-gold);
}

.rich-casino-ribbon {
    position: absolute;
    top: 12px;
    right: -30px;
    width: 110px;
    background: var(--rich-gold);
    color: #fff;
    font-family: var(--rich-font-head);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-align: center;
    text-transform: uppercase;
    padding: 4px 12px;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 2;
}

.rich-casino-featured {
    background: var(--rich-surface);
    border: 1px solid rgba(184, 154, 74, 0.4);
    border-left: 3px solid var(--rich-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.rich-casino-compact {
    background: var(--rich-surface);
    border: 1px solid var(--rich-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.rich-casino-card__body {
    display: grid;
    grid-template-columns: 48px 1fr 1.4fr auto auto;
    align-items: center;
    gap: 0 20px;
    padding: 16px 20px;
}

.rich-casino-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--rich-accent-hover);
    color: #fff;
    font-family: var(--rich-font-head);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 6px;
    flex-shrink: 0;
    line-height: 1;
}

.rich-casino-prime .rich-casino-rank {
    background: var(--rich-gold);
    box-shadow: 0 0 8px rgba(184, 154, 74, 0.4);
}

.rich-casino-card__identity {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.rich-casino-logo {
    display: inline-block;
    text-decoration: none;
}

.rich-casino-logo__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid var(--rich-border-light);
    padding: 8px;
    overflow: hidden;
}

.rich-casino-logo__inner img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.rich-casino-logo__fallback {
    font-family: var(--rich-font-head);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rich-ink);
    text-align: center;
    line-height: 1.2;
    padding: 4px;
}

.rich-casino-brand {
    display: block;
    font-family: var(--rich-font-head);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rich-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.rich-casino-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rich-casino-rating__stars {
    display: flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.rich-casino-star {
    font-family: 'Material Symbols Outlined';
    font-size: 1rem;
    line-height: 1;
    user-select: none;
}

.rich-casino-star--full {
    color: var(--rich-gold);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.rich-casino-star--empty {
    color: var(--rich-ink-muted);
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.rich-casino-rating__value {
    font-family: var(--rich-font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--rich-ink);
}

.rich-casino-rating--unrated .rich-casino-rating__label {
    font-size: 0.8125rem;
    color: var(--rich-ink-muted);
    font-style: italic;
}

/* Bonus highlight block */
.rich-casino-card__bonus {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rich-casino-bonus-label {
    font-family: var(--rich-font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--rich-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rich-casino-bonus-text {
    font-family: var(--rich-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--rich-accent-hover);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metrics strip */
.rich-casino-card__metrics {
    display: flex;
    gap: 16px;
    align-items: center;
}

.rich-casino-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rich-casino-metric__label {
    font-family: var(--rich-font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--rich-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rich-casino-metric__value {
    font-family: var(--rich-font-head);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--rich-ink);
    white-space: nowrap;
}

.rich-casino-card__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rich-casino-review-link {
    font-family: var(--rich-font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--rich-accent) !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.rich-casino-review-link:hover {
    color: var(--rich-accent-hover) !important;
    text-decoration: underline;
}

.rich-casino-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rich-accent) !important;
    color: #fff !important;
    font-family: var(--rich-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.rich-casino-cta:hover {
    background: var(--rich-accent-hover) !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 122, 140, 0.3);
}

.rich-casino-card a:not(.rich-casino-cta):not(.rich-casino-review-link):not(.rich-casino-logo) {
    color: inherit;
    text-decoration: none;
}


.rich-casino-more {
    display: flex;
    justify-content: center;
    padding: 24px 0 8px;
}

.rich-casino-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--rich-accent);
    color: var(--rich-accent);
    font-family: var(--rich-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 12px 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.rich-casino-more__btn:hover {
    background: var(--rich-accent);
    color: #fff;
}

@media (max-width: 768px) {
    .rich-casino-table { gap: 10px; padding: 0 12px; }
    .rich-casino-card__body {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding: 20px 16px;
    }
    .rich-casino-rank {
        width: 32px; height: 32px; font-size: 1rem;
        align-self: flex-start;
    }
    .rich-casino-card__identity {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .rich-casino-brand {
        font-size: 1.0625rem;
        max-width: 100%;
        text-align: center;
        white-space: normal;
    }
    .rich-casino-logo__inner { width: 120px; height: 52px; }
    .rich-casino-rating { justify-content: center; margin-top: 2px; }
    .rich-casino-card__bonus { align-items: center; }
    .rich-casino-bonus-label { text-align: center; }
    .rich-casino-bonus-text { font-size: 0.9375rem; text-align: center; -webkit-line-clamp: 3; }
    .rich-casino-card__metrics {
        display: flex;
        justify-content: center;
        gap: 20px;
        width: 100%;
        padding: 12px 0;
        border-top: 1px solid var(--rich-border-light);
        border-bottom: 1px solid var(--rich-border-light);
    }
    .rich-casino-metric { align-items: center; text-align: center; }
    .rich-casino-card__action {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .rich-casino-cta {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 20px;
        justify-content: center;
    }
    .rich-casino-card::after { width: 80%; left: 10%; transform: none; }
    .rich-casino-ribbon { font-size: 0.6rem; top: 10px; right: -32px; width: 105px; padding: 3px 12px; }
    .rich-casino-more__btn { width: 100%; min-height: 48px; }
}

@media (max-width: 480px) {
    .rich-casino-card__body { padding: 16px 14px; gap: 12px; }
    .rich-casino-logo__inner { width: 100px; height: 46px; }
    .rich-casino-brand { font-size: 1rem; }
    .rich-casino-bonus-text { font-size: 0.875rem; }
    .rich-casino-card__metrics { gap: 14px; padding: 10px 0; }
    .rich-casino-metric__value { font-size: 0.8125rem; }
    .rich-casino-cta { font-size: 0.9375rem; letter-spacing: 0.03em; }
    .rich-casino-review-link { font-size: 0.6875rem; }
}


/* =============================================
   LAYER 3 (cont): LEGAL PAGES (Terms, Policy)
   ============================================= */

#terms,
#policy {
    max-width: var(--rich-container-max);
    margin: 0 auto;
    padding: 3rem 20px;
    font-family: var(--rich-font-body);
}

#terms .wp-block-group__inner-container,
#policy .wp-block-group__inner-container {
    background: var(--rich-surface);
    border: 1px solid var(--rich-border-light);
    border-radius: var(--rich-radius);
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
}

/* Gold L-corner — horizontal arm */
#terms .wp-block-group__inner-container::before,
#policy .wp-block-group__inner-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 40px;
    height: 3px;
    background: var(--rich-gold);
    border-radius: 2px 0 0 0;
    pointer-events: none;
}

/* Gold L-corner — vertical arm */
#terms .wp-block-group__inner-container::after,
#policy .wp-block-group__inner-container::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 3px;
    height: 40px;
    background: var(--rich-gold);
    border-radius: 2px 0 0 0;
    pointer-events: none;
}

/* Section headings (bold paragraphs) */
#terms p strong,
#policy p strong {
    display: block;
    font-family: var(--rich-font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--rich-accent-hover);
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rich-border-light);
}

/* First heading — no top border/margin */
#terms .wp-block-group__inner-container > p:first-child strong,
#policy .wp-block-group__inner-container > p:first-child strong {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Body paragraphs */
#terms p,
#policy p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--rich-ink-light);
    margin: 0 0 0.875rem;
}

/* Paragraphs that ARE headings (contain only strong) */
#terms p:has(> strong:only-child),
#policy p:has(> strong:only-child) {
    margin-bottom: 0.5rem;
}

/* Lists inside legal pages */
#terms ul,
#terms ol,
#policy ul,
#policy ol {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--rich-ink-light);
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

#terms li,
#policy li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

#terms li strong,
#policy li strong {
    color: var(--rich-ink);
    display: inline;
    font-family: var(--rich-font-body);
    font-size: inherit;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Links */
#terms a,
#policy a {
    color: var(--rich-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--rich-accent-rgb), 0.3);
    transition: color 0.15s, border-color 0.15s;
}

#terms a:hover,
#policy a:hover {
    color: var(--rich-accent-hover);
    border-color: var(--rich-accent-hover);
}

@media (max-width: 768px) {
    #terms, #policy { padding: 2rem 12px; }
    #terms .wp-block-group__inner-container,
    #policy .wp-block-group__inner-container { padding: 1.75rem 1.25rem 1.5rem; }
    #terms p, #policy p { font-size: 0.875rem; }
    #terms p strong, #policy p strong { font-size: 1rem; margin-top: 1.25rem; padding-top: 1rem; }
    #terms ul, #terms ol, #policy ul, #policy ol { font-size: 0.875rem; }
}
