/* FAVORIT V6 - Luxury Casino - Page */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --gold: #d4af37;
    --gold-light: #f7c948;
    --orange: #f59e0b;
    --green: #10b981;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-lighter: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: rgba(212, 175, 55, 0.2);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    /* FIX BUG-17: prevent horizontal scroll */
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    min-height: 100vh;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
    overflow-x: hidden;
}

/*
 * FIX BUG-12: body previously had max-width:1000px + margin:0 auto — 
 * this worked as a container, but subpages HTML has an explicit 
 * <div class="container"> that had zero CSS styles.
 * Now body is full-width background, .container is the max-width wrapper.
 */
.container {
    max-width: 860px;
    margin: 0 auto;
}

/* ===================================================================
   TOP NAV
   FIX BUG-13 + BUG-14: .top-nav and .back-link had NO CSS at all.
   The back-navigation bar was completely unstyled raw text.
   =================================================================== */

.top-nav {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--navy-light);
    border-radius: 0.875rem;
    border: 1px solid var(--border);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--gold-light);
    gap: 0.75rem;
}

/* ===================================================================
   BREADCRUMB
   =================================================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--navy-light);
    border-radius: 1rem;
    border: 2px solid var(--border);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    /* FIX: inline text link — reset block link styles */
    display: inline;
    padding: 0;
    min-height: auto;
    background: none;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.breadcrumb a:hover {
    color: var(--gold-light);
    transform: none;
    box-shadow: none;
}

.breadcrumb-separator { color: var(--text-secondary); }
.breadcrumb-current   { color: var(--text-secondary); font-weight: 600; }

/* ===================================================================
   ARTICLE
   =================================================================== */

article {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-lighter) 100%);
    border-radius: 2rem;
    border: 2px solid var(--border);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    padding: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    position: relative;
    animation: fadeIn 0.8s ease-out;
    /* FIX: overflow hidden clips the ::before gold bar correctly */
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Gold top border on article */
article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--orange), var(--gold));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    border-radius: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

article header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

/*
 * FIX BUG-06: article h1 had display:flex causing the spinning ::before emoji
 * and the text to misalign on narrow screens (emoji becomes flex item and
 * the long question title wrapped awkwardly).
 * Changed to block layout with the emoji handled as a standalone element.
 * The h1::before spin animation is preserved but contained properly.
 */
article h1 {
    font-size: clamp(1.625rem, 3.5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* FIX: block layout prevents emoji+text flex wrapping issues */
    display: block;
}

article h1::before {
    content: '🎰';
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
    animation: spin 8s linear infinite;
    /* FIX: emoji is not a text gradient — must reset text-fill */
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

@keyframes spin {
    0%   { transform: rotate(  0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1.0); }
    50%       { transform: scale(1.1); }
}

.meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-secondary);
    font-weight: 600;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================================================
   ANSWER CONTENT
   FIX BUG-15: .answer-summary, .key-points, .detailed-content,
   .summary-title, .summary-content, .key-points-list had NO CSS.
   =================================================================== */

.answer-summary {
    background: rgba(212, 175, 55, 0.06);
    border: 2px solid var(--border);
    border-radius: 1.25rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

.summary-title {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 800;
    margin-bottom: 0.875rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-content p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.key-points {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 1.25rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

.key-points > h2 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--green);
    /* Reset gradient text for this heading */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--green);
    background-clip: unset;
}

.key-points-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-points-list li {
    position: relative;
    padding: 0.625rem 0 0.625rem 2rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    font-size: clamp(0.9375rem, 1.75vw, 1.0625rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

.key-points-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.key-points-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
    font-size: 1.125rem;
}

.detailed-content {
    margin-bottom: 2rem;
}

.detailed-content > h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* General answer text (the main content div rendered from perplexity) */
.detailed-content p,
.answer p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-primary);
}

.detailed-content h2,
.answer h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detailed-content h3,
.answer h3 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.detailed-content ul,
.detailed-content ol,
.answer ul,
.answer ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.detailed-content ul,
.answer ul {
    list-style: none;
    padding-left: 0;
}

.detailed-content ul li,
.answer ul li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.75rem;
    line-height: 1.7;
}

.detailed-content ul li::before,
.answer ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 900;
    font-size: 1.125rem;
    top: 0.1em;
}

.detailed-content ol li,
.answer ol li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.detailed-content ol li::marker,
.answer ol li::marker {
    color: var(--gold);
    font-weight: 800;
}

.detailed-content a,
.answer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    transition: all 0.2s ease;
    /* FIX: inline text link — reset block styles */
    display: inline;
    padding: 0;
    min-height: auto;
    background: none;
    border-radius: 0;
    overflow: visible;
}

.detailed-content a:hover,
.answer a:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
    transform: none;
    box-shadow: none;
}

.detailed-content strong,
.answer strong {
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detailed-content em,
.answer em {
    color: var(--gold-light);
    font-style: italic;
}

.detailed-content code,
.answer code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.2em 0.5em;
    border-radius: 0.375rem;
    color: var(--gold-light);
    font-weight: 600;
    border: 1px solid var(--border);
}

.detailed-content blockquote,
.answer blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--gold);
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ===================================================================
   KEY TAKEAWAYS BOX
   =================================================================== */

.key-takeaways {
    background: rgba(212, 175, 55, 0.08);
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.1);
    overflow: hidden;
}

.key-takeaways::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    border-radius: 0;
    pointer-events: none;
}

.key-takeaways h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.key-takeaways h3::before {
    content: '💎';
    font-size: 1.75rem;
    animation: pulse 2s ease-in-out infinite;
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
}

.key-takeaways li {
    padding: 0.875rem 0 0.875rem 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    line-height: 1.6;
}

.key-takeaways li:last-child { border-bottom: none; }

.key-takeaways li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
    font-size: 1.25rem;
    top: 0.9rem;
}

/* ===================================================================
   TABLE OF CONTENTS
   FIX BUG-10: --primary was undefined → fell back to purple #6366f1.
   All ToC colors now use the gold theme variables.
   =================================================================== */

.table-of-contents {
    background: var(--navy-light);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.table-of-contents h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    /* Reset gradient from global h2 rules */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--text-secondary);
    background-clip: unset;
}

.table-of-contents ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    counter-increment: toc-counter;
    margin-bottom: 0.5rem;
    padding: 0;
    border: none;
}

/* FIX BUG-10: was using --primary (undefined → purple). Now gold. */
.table-of-contents li::before {
    content: counter(toc-counter) ". ";
    color: var(--gold);
    font-weight: 700;
}

.table-of-contents a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    /* FIX: inline text link — reset block link card styles */
    display: inline;
    padding: 0;
    min-height: auto;
    background: none;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.table-of-contents a:hover,
.table-of-contents a:focus-visible {
    color: var(--gold-light);
    transform: none;
    box-shadow: none;
    background: none;
    border-color: transparent;
    text-decoration: underline;
}

/* ===================================================================
   PREV / NEXT NAVIGATION
   FIX BUG-07: Was injected as inline <style> in every HTML page (102x).
   Moved to page.css — single source, cached by browser.
   =================================================================== */

.prev-next-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 2.5rem 0 1.5rem;
    padding: 0;
}

.prev-next-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--navy-lighter);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    /* FIX: constrain width so long labels don't overflow */
    max-width: 48%;
    min-width: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
    /* FIX: reset global <a> card min-height and overflow */
    min-height: unset;
    overflow: visible;
    line-height: 1.4;
}

.prev-next-nav a:hover,
.prev-next-nav a:focus-visible {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold);
    transform: none;
    box-shadow: none;
    color: var(--gold-light);
}

.prev-next-nav .nav-prev { margin-right: auto; }
.prev-next-nav .nav-next { margin-left: auto; text-align: right; }

.nav-label {
    font-size: 0.75rem;
    opacity: 0.65;
    display: block;
    font-weight: 500;
}

/* ===================================================================
   CTA SECTION
   FIX BUG-08, BUG-09, BUG-11: .cta-button declared 4x, .cta-block 3x,
   @keyframes shimmerCta 2x. Collapsed to single canonical definitions.
   =================================================================== */

.cta-section {
    margin: clamp(2rem, 5vw, 3rem) 0;
}

.cta-block {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    color: var(--navy);
    border-radius: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmerCta 3s infinite;
    pointer-events: none;
}

/* FIX BUG-11: single @keyframes shimmerCta definition (was 2x) */
@keyframes shimmerCta {
    0%   { left: -100%; }
    100% { left:  100%; }
}

/* FIX: removed h3::before emoji duplicate (same fix as index.css BUG-03) */
.cta-block h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--navy);
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--navy);
    position: relative;
    z-index: 1;
}

/* FIX BUG-08: single .cta-button definition (was 4x) */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--navy);
    color: var(--gold-light);
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-family: inherit;
    border: 2px solid var(--navy);
    border-radius: 3rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 52px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    overflow: visible;
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-3px) scale(1.05);
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--gold-light);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.cta-button::after {
    content: '→';
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

/* ===================================================================
   RELATED QUESTIONS
   =================================================================== */

.related-questions {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--navy-light);
    border-radius: 1.5rem;
    border: 2px solid var(--border);
}

.related-questions h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-questions h2::before {
    content: '🔗';
    font-size: 1.75rem;
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.related-questions ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.related-questions a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--navy-lighter);
    border: 2px solid var(--border);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(0.9375rem, 1.75vw, 1.0625rem);
    line-height: 1.5;
    transition: all 0.3s ease;
    min-height: 60px;
    overflow: hidden;
}

.related-questions a::before {
    content: '▸';
    font-size: 1.375rem;
    color: var(--gold);
    font-weight: 900;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.related-questions a:hover,
.related-questions a:focus-visible {
    transform: translateX(6px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    color: var(--text-primary);
}

.related-questions a:hover::before {
    transform: translateX(4px);
}

/* ===================================================================
   BACK TO INDEX
   =================================================================== */

.back-to-index {
    margin-top: 2rem;
    text-align: center;
}

.back-to-index a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--gold);
    border-radius: 3rem;
    transition: all 0.3s ease;
    min-height: 52px;
    overflow: visible;
}

.back-to-index a::before {
    content: '←';
    font-size: 1.375rem;
    transition: transform 0.3s ease;
}

.back-to-index a:hover,
.back-to-index a:focus-visible {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--navy);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.back-to-index a:hover::before {
    transform: translateX(-4px);
}

/* ===================================================================
   FOOTER
   =================================================================== */

footer {
    margin-top: clamp(2rem, 5vw, 3rem);
    padding-top: clamp(1.5rem, 4vw, 2rem);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 500;
}

/* FIX BUG-16: .footer-legal was completely unstyled in both CSS files */
.footer-legal {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-legal a {
    display: inline;
    padding: 0;
    min-height: auto;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    overflow: visible;
    color: var(--gold);
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    transform: none;
    box-shadow: none;
    background: none;
    color: var(--gold-light);
    border-color: var(--gold);
}

/* ===================================================================
   LANGUAGE SWITCHER FOOTER
   =================================================================== */

.language-switcher-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--navy-light);
    border-radius: 1rem;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 0.75rem;
    background: var(--navy-lighter);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* FIX: reset global <a> card styles */
    min-height: unset;
    padding: 0;
    overflow: visible;
    font-weight: normal;
    line-height: 1;
    color: inherit;
}

.lang-flag:hover,
.lang-flag:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
    background: var(--navy-lighter);
}

.lang-flag.active {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.lang-flag.active:hover,
.lang-flag.active:focus-visible {
    background: var(--gold);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

/* ===================================================================
   CTA (old .cta class — kept for backward compat with any page using it)
   =================================================================== */

.cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    color: var(--navy);
    border-radius: 1.5rem;
    padding: clamp(2rem, 5vw, 3rem);
    margin: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    animation: shimmerSlide 3s linear infinite;
    pointer-events: none;
}

@keyframes shimmerSlide {
    0%   { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX( 100%) rotate(45deg); }
}

.cta h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--navy);
}

.cta p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    color: var(--navy);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 640px) {
    body { padding: 1rem; }
    
    article {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .top-nav {
        padding: 0.625rem 1rem;
        margin-bottom: 1rem;
    }
    
    .cta-block {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .language-switcher-footer {
        padding: 0.75rem;
        gap: 0.375rem;
    }
    
    .lang-flag {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .table-of-contents { padding: 1rem; }
    
    .related-questions { padding: 1.25rem; }

    .prev-next-nav {
        gap: 8px;
    }

    .prev-next-nav a {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
}

/* ===================================================================
   ACCESSIBILITY & UTILITIES
   =================================================================== */

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (prefers-contrast: high) {
    article, .related-questions { border-width: 3px; }
}

@media print {
    body { background: white; color: black; }
    .cta, .back-to-index, .cta-section { display: none; }
}
