 :root {
            /* Primary palette - Football field green meets betting gold */
            --color-primary: #3d8a5a;
            --color-primary-light: #4a9d6a;
            --color-primary-dark: #2d7048;
            
            /* Accent - Gold */
            --color-accent: #e6c04a;
            --color-accent-light: #f0d060;
            --color-accent-dark: #c9a227;
            
            /* Backgrounds - Dark/Black */
            --color-bg: #0d1210;       /* Main page background */
            --color-bg-alt: #141a17;   /* Alternating rows/sections */
            --color-surface: #1a2420;  /* Cards, menus, panels */
            
            /* Text - Light text for dark bg */
            --color-text: #e8ebe8;
            --color-text-muted: #a0a8a0;
            --color-text-light: #707870;
            --color-border: #2a3630;
            
            /* Semantic colors */
            --color-success: #2d8a4e;
            --color-info: #3b82f6;     /* Adjusted blue for dark mode */
            
            /* Typography */
            --font-heading: 'Georgia', 'Times New Roman', serif;
            --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            
            /* Spacing scale */
            --space-xs: 0.25rem;
            --space-sm: 0.5rem;
            --space-md: 1rem;
            --space-lg: 1.5rem;
            --space-xl: 2rem;
            --space-2xl: 3rem;
            --space-3xl: 4rem;
            
            /* Layout */
            --content-width: 72ch;
            --content-wide: 90ch;
            
            /* Shadows - Adjusted for dark mode opacity */
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
            --shadow-glow: 0 0 30px rgba(201, 162, 39, 0.15);
            
            /* Transitions */
            --transition-fast: 150ms ease;
            --transition-base: 250ms ease;
            --transition-slow: 400ms ease;
            
            /* Border radius */
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 12px;
        }

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

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }

        body {
            font-family: var(--font-body);
            font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
            line-height: 1.7;
            color: var(--color-text);
            background: var(--color-bg);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Focus styles for accessibility */
        :focus-visible {
            outline: 3px solid var(--color-accent);
            outline-offset: 3px;
        }

        /* Skip link for accessibility */
        .skip-link {
            position: absolute;
            top: -100%;
            left: var(--space-md);
            padding: var(--space-sm) var(--space-md);
            background: var(--color-primary);
            color: var(--color-surface);
            text-decoration: none;
            font-weight: 600;
            border-radius: var(--radius-sm);
            z-index: 1000;
            transition: top var(--transition-fast);
        }

        .skip-link:focus {
            top: var(--space-md);
        }

        /* Header */
        .site-header {
            background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
            min-height: 4rem;
        }

        /* Main content area */
        main {
            flex: 1;
            width: 100%;
            max-width: var(--content-wide);
            margin: 0 auto;
            align-self: center; 
            padding: var(--space-xl) var(--space-md) var(--space-3xl);
        }

        @media (min-width: 768px) {
            main {
                padding: var(--space-3xl) var(--space-xl);
            }
        }

        /* Article content styles */
        main h1 {
            font-family: var(--font-heading);
            font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
            font-weight: 700;
            line-height: 1.15;
            color: var(--color-accent-light);
            margin-bottom: var(--space-lg);
            letter-spacing: -0.02em;
        }

        @media (prefers-color-scheme: dark) {
            main h1 {
                color: var(--color-accent-light);
            }
        }

        main h2 {
            font-family: var(--font-heading);
            font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
            font-weight: 600;
            line-height: 1.25;
            color: var(--color-primary);
            margin: var(--space-3xl) 0 var(--space-lg);
            padding-bottom: var(--space-sm);
            border-bottom: 3px solid var(--color-accent);
            position: relative;
            text-align: center;
        }

        main h2::before {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 60px;
            height: 3px;
            background: var(--color-primary);
        }

        main h3 {
            font-family: var(--font-heading);
            font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
            font-weight: 600;
            line-height: 1.35;
            color: var(--color-primary-light);
            margin: var(--space-2xl) 0 var(--space-md);
            text-align: center;
        }

        main p {
            margin-bottom: var(--space-lg);
            max-width: var(--content-width);
            margin-left: auto;  
            margin-right: auto; 
        }

        main strong {
            font-weight: 600;
            color: var(--color-text);
        }

        main em {
            font-style: italic;
            color: var(--color-text-muted);
        }

        /* Links within content */
        main a {
            color: var(--color-primary);
            text-decoration: underline;
            text-decoration-color: var(--color-accent);
            text-underline-offset: 3px;
            text-decoration-thickness: 2px;
            transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
        }

        main a:hover {
            color: var(--color-accent-dark);
            text-decoration-color: var(--color-primary);
        }

        /* Lists */
        main ul, main ol {
            margin: 0 0 var(--space-lg);
            padding-left: var(--space-lg);
            max-width: var(--content-width);
        }

        main ul {
            list-style: none;
        }

        main ul li {
            position: relative;
            padding-left: var(--space-md);
            margin-bottom: var(--space-sm);
        }

        main ul li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.7em;
            width: 6px;
            height: 6px;
            background: var(--color-accent);
            border-radius: 50%;
        }

        main ol {
            list-style: none;
            counter-reset: list-counter;
        }

        main ol li {
            counter-increment: list-counter;
            position: relative;
            padding-left: var(--space-lg);
            margin-bottom: var(--space-sm);
        }

        main ol li::before {
            content: counter(list-counter);
            position: absolute;
            left: 0;
            top: 0;
            font-weight: 700;
            font-size: 0.875em;
            color: var(--color-accent-dark);
            background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Blockquotes */
        main blockquote {
            margin: var(--space-xl) 0;
            padding: var(--space-lg) var(--space-xl);
            background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-surface) 100%);
            border-left: 4px solid var(--color-accent);
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            font-style: italic;
            color: var(--color-text-muted);
            box-shadow: var(--shadow-sm);
            max-width: var(--content-width);
        }

        main blockquote p:last-child {
            margin-bottom: 0;
        }

        /* Figures and images */
        main figure {
            margin: var(--space-2xl) auto;
            max-width: 100%;
            text-align: center;
        }

        main figure img,
        main .hero-image,
        main .article-image {
            max-width: 100%;
            width: auto;
            height: auto;
            display: block;
            margin-left: auto;
            margin-right: auto;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            transition: transform var(--transition-slow), box-shadow var(--transition-slow);
        }

        main figure img:hover,
        main .article-image:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg), var(--shadow-glow);
        }

        main .hero-image {
            margin: 0 0 var(--space-2xl);
            border-radius: var(--radius-lg);
            overflow: hidden;
        }

        main figcaption {
            margin-top: var(--space-sm);
            font-size: 0.875rem;
            color: var(--color-text-light);
            text-align: center;
            font-style: italic;
        }

        /* Table of contents navigation */
        main nav[aria-label="Indice"] {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-lg);
            padding: var(--space-lg) var(--space-xl);
            margin: var(--space-2xl) 0;
            box-shadow: var(--shadow-md);
        }

        main nav[aria-label="Indice"] ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        main nav[aria-label="Indice"] li {
            padding: 0;
            margin: 0;
        }

        main nav[aria-label="Indice"] li::before {
            display: none;
        }

        main nav[aria-label="Indice"] a {
            display: block;
            padding: var(--space-sm) 0;
            color: var(--color-text);
            text-decoration: none;
            border-bottom: 1px solid var(--color-border);
            transition: color var(--transition-fast), padding-left var(--transition-fast);
        }

        main nav[aria-label="Indice"] li:last-child a {
            border-bottom: none;
        }

        main nav[aria-label="Indice"] a:hover {
            color: var(--color-primary);
            padding-left: var(--space-sm);
        }

        /* FAQ section styles */
        main section[itemscope] p:first-of-type {
            font-weight: 600;
            color: var(--color-primary);
        }

        /* Tables */
        main table {
            width: 100%;
            border-collapse: collapse;
            margin: var(--space-xl) 0;
            font-size: 0.9375rem;
            box-shadow: var(--shadow-md);
            border-radius: var(--radius-md);
            overflow: hidden;
        }

        main th, main td {
            padding: var(--space-md);
            text-align: left;
            border-bottom: 1px solid var(--color-border);
        }

        main th {
            background: var(--color-primary);
            color: var(--color-surface);
            font-weight: 600;
        }

        main tr:nth-child(even) {
            background: var(--color-bg-alt);
        }

        main tr:hover {
            background: rgba(201, 162, 39, 0.08);
        }

        /* Code blocks */
        main code {
            font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
            font-size: 0.875em;
            background: var(--color-bg-alt);
            padding: var(--space-xs) var(--space-sm);
            border-radius: var(--radius-sm);
            color: var(--color-primary-dark);
        }

        main pre {
            background: var(--color-primary-dark);
            color: var(--color-bg);
            padding: var(--space-lg);
            border-radius: var(--radius-md);
            overflow-x: auto;
            margin: var(--space-xl) 0;
        }

        main pre code {
            background: transparent;
            padding: 0;
            color: inherit;
        }

        /* Horizontal rules */
        main hr {
            border: none;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
            margin: var(--space-3xl) 0;
        }

        /* Selection styles */
        ::selection {
            background: var(--color-accent);
            color: var(--color-primary-dark);
        }

        /* Footer */
        footer {
            background: var(--color-primary-dark);
            min-height: 4rem;
            margin-top: auto;
        }

        /* Print styles */
        @media print {
            body {
                font-size: 11pt;
                color: #000;
                background: #fff;
            }

            main {
                padding: 0;
                max-width: 100%;
            }

            main h1, main h2, main h3 {
                color: #000;
                page-break-after: avoid;
            }

            main a {
                color: #000;
                text-decoration: underline;
            }

            main img, main figure {
                max-width: 100%;
                page-break-inside: avoid;
            }

            header, footer {
                display: none;
            }
        }

        /* Reduced motion */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            html {
                scroll-behavior: auto;
            }
        }

        /* Footer disclaimer styles */
        footer {
            background: var(--color-primary-dark);
            padding: var(--space-xl) var(--space-md);
            margin-top: auto;
        }
        
        .footer-disclaimer {
            max-width: var(--content-wide);
            margin: 0 auto;
            text-align: center;
        }
        
        .footer-disclaimer p {
            color: var(--color-text-light);
            font-size: 0.875rem;
            line-height: 1.6;
            margin: 0;
        }
        
        .footer-disclaimer a {
            color: var(--color-accent);
            text-decoration: none;
        }
        
        .footer-disclaimer a:hover {
            text-decoration: underline;
        }


.site-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    box-shadow: var(--shadow-md);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.top-navigation-bar {
    max-width: var(--content-wide); 
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 70px; 
    display: flex;
    align-items: center;
    justify-content: center; 
}

.menu-desktop {
    display: flex;
    gap: var(--space-xl); 
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-desktop a {
    color: rgba(255, 255, 255, 0.9); 
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.menu-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent); 
    transition: width var(--transition-base);
}

.menu-desktop a:hover {
    color: var(--color-surface); 
}

.menu-desktop a:hover::after {
    width: 100%; 
}

.menu-desktop .current-menu-item a {
    color: var(--color-surface);
}
.menu-desktop .current-menu-item a::after {
    width: 100%;
}


.mobile-controls {
    display: none;
}

@media (max-width: 768px) {
    .site-nav--desktop {
        display: none;
    }
    
    .mobile-controls {
        display: block;
        position: absolute; 
        right: var(--space-md);
    }

    .top-navigation-bar {
        justify-content: flex-end; 
    }
}

/* -------------------------------------------------------------------------
   MOBILE MENU LOGIC
   ------------------------------------------------------------------------- */

/* 1. DEFAULT STATE (Mobile): Hide off-screen */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;         /* Standard drawer width */
    height: 100vh;        /* Full height */
    background: var(--color-surface);
    z-index: 2000;        /* Above everything */
    transform: translateX(-100%); /* Move off-screen to the left */
    transition: transform var(--transition-base); /* Smooth slide animation */
    padding: var(--space-xl) var(--space-md);
    box-shadow: var(--shadow-lg);
}

/* 2. OVERLAY: Darkens the background when menu is open */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1900;        /* Below menu, above content */
    opacity: 0;           /* Invisible by default */
    visibility: hidden;   /* Not clickable by default */
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

/* 3. ACTIVE STATES (To be toggled via JavaScript) */
.mobile-menu.is-active {
    transform: translateX(0); /* Slide into view */
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* 4. DESKTOP: Force hide everything related to mobile menu */
@media (min-width: 769px) {
    .mobile-menu, 
    .mobile-menu-overlay,
    .mobile-menu__close {
        display: none !important;
    }
}

/* -------------------------------------------------------------------------
   BURGER BUTTON STYLES
   ------------------------------------------------------------------------- */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010; /* Ensure it stays above other header elements */
}

.burger span {
    display: block;
    width: 100%;
    height: 3px; /* Thickness of the lines */
    background-color: var(--color-surface); /* Adapts to theme (white in dark header) */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Optional: Hover effect for burger */
.burger:hover span {
    background-color: var(--color-accent);
}

/* -------------------------------------------------------------------------
   MOBILE MENU INTERNALS
   ------------------------------------------------------------------------- */

/* 1. Close Button (The "X") */
.mobile-menu__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text); /* Uses theme text color */
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s ease;
}

.mobile-menu__close:hover {
    color: var(--color-accent);
}

/* 2. Menu List Container */
.menu-mobile {
    list-style: none; /* Removes default bullets */
    padding: 0;
    margin: 60px 0 0 0; /* Top margin to clear the close button */
}

/* 3. List Items */
.menu-mobile li {
    border-bottom: 1px solid var(--color-border); /* Separator lines */
    width: 100%;
}

/* 4. Links Styling */
.menu-mobile a {
    display: block;
    padding: 15px 0;
    font-family: var(--font-heading); /* Use your heading font for style */
    font-size: 1.25rem; /* Larger text for touch targets */
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

/* 5. Active/Hover States for Links */
.menu-mobile a:hover,
.menu-mobile .current-menu-item a {
    color: var(--color-primary);
    padding-left: 10px; /* Slight slide effect */
}

/* Fix for dark mode inside menu (if needed specifically) */
@media (prefers-color-scheme: dark) {
    .burger span {
        background-color: #ffffff; /* Force white burger on dark header */
    }
}

/* -------------------------------------------------------------------------
   FOOTER STYLES (4-Column Layout)
   ------------------------------------------------------------------------- */

/* 1. Main Footer Container */
.site-footer {
    background-color: #111111; /* Dark background like reference */
    color: #b0b0b0; /* Light grey text */
    padding: 60px 20px 20px;
    margin-top: auto;
    border-top: 4px solid var(--color-accent); /* Golden top border */
}

/* 2. Grid Layout */
.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 40px;
    max-width: var(--content-wide);
    margin: 0 auto;
    padding-bottom: 40px;
}

/* 3. Typography & Headings */
.footer-heading {
    color: var(--color-accent); /* Golden color */
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4. Lists & Links */
.footer-list, 
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li, 
.footer-menu-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Links color logic */
.footer-list a, 
.footer-menu-list a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover, 
.footer-menu-list a:hover {
    color: var(--color-accent); /* Gold on hover */
    text-decoration: underline;
}

/* Red warning highlights */
.warning-icon {
    margin-right: 5px;
}

/* 5. Bottom Copyright Bar */
.footer-bottom {
    border-top: 1px solid #333; /* Subtle separator */
    padding-top: 30px;
    margin-top: 20px;
    text-align: center;
}

.footer-bottom-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.adm-subtext strong {
    color: var(--color-accent);
}

/* -------------------------------------------------------------------------
   RESPONSIVE FOOTER
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr; /* 1 column on mobile */
        text-align: center; /* Center align for mobile look */
    }
    
    .footer-heading {
        margin-top: 20px;
        margin-bottom: 15px;
    }
}

/* -------------------------------------------------------------------------
   404 ERROR PAGE STYLES
   ------------------------------------------------------------------------- */

/* 1. Container - Centers everything */
.error-404-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Takes up most of the screen */
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg); /* Ensures dark background */
}

.error-404-content {
    max-width: 600px;
    margin: 0 auto;
}

/* 2. Big "404" Number */
.error-code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 12rem); /* Responsive giant text */
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent); /* Gold color */
    margin: 0 0 var(--space-md);
    text-shadow: 0 0 30px rgba(230, 192, 74, 0.2); /* Golden glow */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Bouncing Ball Animation for the "0" */
.ball-icon {
    display: inline-block;
    font-size: 0.6em; /* Slightly smaller than numbers */
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

/* 3. Headlines & Text */
.error-title {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--color-text);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none; /* Removes any default borders */
}

.error-title::before {
    display: none; /* Hides decorative lines if any */
}

.error-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* 4. "Back to Home" Button */
.btn-home {
    display: inline-block;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 138, 78, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--color-primary);
}

.btn-home:hover {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 138, 78, 0.6);
}


#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    text-align: center; 
}

#crumbs a {
    text-decoration: none;
    color: #0073aa; 
}

#crumbs a:hover {
    text-decoration: underline;
}

#crumbs .current {
    font-weight: bold;
    color: rgb(255, 255, 255);
}
