:root {
    /* Brand Colors */
    --dr-klein-blue: #002FA7;
    --dr-klein-light: #3B6DFF;
    --dr-bg-light: #F2F2F7;
    --dr-bg-dark: #050505;
    
    /* Zensical Overrides - Minimal */
    --md-primary-fg-color: var(--dr-klein-blue);
    --md-primary-fg-color--light: var(--dr-klein-light);
    --md-default-bg-color: transparent; /* Let aurora show through */
}

/* Dark Mode Overrides */
[data-md-color-scheme="slate"] {
    --md-default-bg-color: transparent;
    --md-default-fg-color: #ffffff;
    --md-primary-fg-color: var(--dr-klein-light);
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
body {
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    font-family: "Inter", sans-serif;
}

/* Syncopate for Site Title - Force Override */
.md-header__title, 
.md-header__topic {
    font-family: "Syncopate", sans-serif !important;
    font-weight: 800 !important;
    /* REMOVED: text-transform: uppercase; */
    letter-spacing: -0.05em;
}

/* Syncopate for H1 Only */
h1, .md-typeset h1 {
    font-family: "Syncopate", sans-serif !important;
    font-weight: 700;
    /* REMOVED: text-transform: uppercase; */
    letter-spacing: -0.03em;
}

/* Revert other headings to default/Inter */
h2, .md-typeset h2,
h3, .md-typeset h3,
h4, .md-typeset h4 {
    font-family: "Inter", sans-serif !important;
    letter-spacing: -0.02em;
}

/* Code Font */
code, kbd, pre {
    font-family: "JetBrains Mono", monospace;
}

/* =========================================
   3. AURORA BACKGROUND (Wallpaper)
   ========================================= */
/* Wrapper behind everything */
.aurora-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--dr-bg-light);
}
[data-md-color-scheme="slate"] .aurora-wrapper {
    background-color: var(--dr-bg-dark);
}

.aurora-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.aurora-blob {
    position: absolute; border-radius: 50%; filter: blur(100px);
    opacity: 0.5; mix-blend-mode: multiply; animation: float 25s infinite ease-in-out;
}
[data-md-color-scheme="slate"] .aurora-blob {
    mix-blend-mode: screen; opacity: 0.3;
}

.blob-1 { top: -20%; right: -20%; width: 80vw; height: 80vw; background: radial-gradient(circle, rgba(0, 47, 167, 0.4), transparent 70%); }
.blob-2 { bottom: -20%; left: -20%; width: 70vw; height: 70vw; background: radial-gradient(circle, rgba(59, 109, 255, 0.3), transparent 70%); animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 20px); }
}

/* =========================================
   4. UI TWEAKS (Subtle)
   ========================================= */

/* Transparent Header to show background */
.md-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
[data-md-color-scheme="slate"] .md-header {
    background-color: rgba(20, 20, 20, 0.85);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Content Cards - Glassy look */
.md-typeset .admonition,
.md-typeset details {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
}
[data-md-color-scheme="slate"] .md-typeset .admonition,
[data-md-color-scheme="slate"] .md-typeset details {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Footer Previous/Next Links - Font Only Modification */
/* Removed background/border/shadow to just change font per request */
.md-footer__link {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0; /* Reset padding if necessary or keep minimal */
    transition: opacity 0.2s;
}

.md-footer__link:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Force Syncopate on Title Elements inside Footer Link */
.md-footer__title {
    font-family: "Syncopate", sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
    /* REMOVED: text-transform: uppercase; */
}

/* Keep direction label default or mono */
.md-footer__direction {
    font-family: "JetBrains Mono", monospace !important;
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

/* Adjust Main Content Background transparency */
.md-main__inner {
    margin-top: 1rem;
}

.md-sidebar--secondary,
.md-nav--secondary,
.md-nav--secondary .md-nav__title {
    background: transparent !important;
    box-shadow: none !important;
}