/* PythonDataBench - Academic / Scientific / Scholarly */
:root {
    /* Colors */
    --color-primary: #1e3a5f;
    --color-primary-hover: #152d4a;
    --color-primary-light: rgba(30, 58, 95, 0.06);
    --color-secondary: #4a6fa5;
    --color-accent: #d4a017;
    --color-background: #f0f4f8;
    --color-surface: #ffffff;
    --color-text: #1a202c;
    --color-text-muted: #475569;
    --color-border: #cbd5e1;

    /* Header */
    --header-bg: #1e3a5f;
    --header-border: none;
    --header-shadow: 0 2px 4px rgba(30, 58, 95, 0.15);
    --header-height: 60px;
    --logo-font-size: 1.125rem;
    --logo-font-weight: 700;
    --logo-letter-spacing: 0.02em;

    /* Footer */
    --footer-bg: #0f1d30;
    --footer-text: #94a3b8;
    --footer-accent: #d4a017;

    /* Typography */
    --font-family-sans: 'IBM Plex Sans', system-ui, sans-serif;
    --font-family-heading: 'Source Serif 4', Georgia, serif;
    --font-family-mono: 'Fira Code', 'JetBrains Mono', monospace;
    --font-size-base: 0.9375rem;
    --font-weight-heading: 700;
    --line-height-base: 1.7;
    --line-height-heading: 1.25;

    /* Layout - narrower, dense */
    --max-width-content: 1060px;
    --max-width-article: 700px;
    --sidebar-width: 280px;
    --border-radius: 0.25rem;
    --border-radius-lg: 0.375rem;
    --spacing-md: 0.875rem;
    --spacing-lg: 1.25rem;

    /* Cards */
    --card-border: 1px solid #cbd5e1;
    --card-shadow: 0 1px 3px rgba(30, 58, 95, 0.06);
    --card-shadow-hover: 0 3px 10px rgba(30, 58, 95, 0.1);
    --card-transform-hover: none;
    --card-image-height: 170px;
    --card-padding: 1.25rem;

    /* Decorative */
    --accent-gradient: none;
    --header-decoration: none;
    --code-bg: #1a202c;
    --code-text: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(30, 58, 95, 0.05);
    --shadow-md: 0 2px 6px rgba(30, 58, 95, 0.08);
    --shadow-lg: 0 4px 12px rgba(30, 58, 95, 0.1);

    /* Tags */
    --tag-bg: #e8edf3;
    --tag-border: none;
    --tag-radius: 0.25rem;
    --tag-font-size: 0.75rem;

    /* Pagination */
    --pagination-radius: 0.25rem;
    --pagination-active-bg: #1e3a5f;
    --pagination-active-text: #ffffff;

    /* Nav */
    --nav-link-font-weight: 500;
}

/* White text on dark blue header */
.site-logo {
    color: #ffffff !important;
}
.site-logo:hover {
    color: #d4a017 !important;
}
.nav-link {
    color: rgba(255, 255, 255, 0.75);
}
.nav-link:hover {
    color: #d4a017;
}

/* Academic amber accent bar under header */
.site-header::after {
    height: 3px;
    background: linear-gradient(90deg, #d4a017, #e8b62c, #d4a017);
}

/* Category styled as journal section */
.article-card-category {
    color: #1e3a5f;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    padding: 0.125rem 0.5rem;
    background: rgba(30, 58, 95, 0.06);
    border-radius: 0.125rem;
}

/* Card title serif */
.article-card-title {
    font-family: 'Source Serif 4', Georgia, serif;
}

/* Dense article grid */
.article-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: var(--spacing-lg);
}

/* Sidebar academic labels */
.sidebar-title,
.category-nav-title {
    font-family: 'IBM Plex Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom: 2px solid #1e3a5f;
    color: #1e3a5f;
}

/* Amber-accented blockquote */
.prose blockquote {
    border-left: 4px solid #d4a017;
    background: rgba(212, 160, 23, 0.06);
    border-radius: 0;
}

/* Data-viz inspired tag colors */
.tag-badge {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    color: #1e3a5f;
}
.tag-badge:hover {
    background: #1e3a5f;
    color: #ffffff;
}
.tag-badge:nth-child(4n+1) { border-left: 3px solid #d4a017; }
.tag-badge:nth-child(4n+2) { border-left: 3px solid #3b82f6; }
.tag-badge:nth-child(4n+3) { border-left: 3px solid #10b981; }
.tag-badge:nth-child(4n+4) { border-left: 3px solid #ef4444; }

/* Footnote-style footer */
.site-footer {
    border-top: 2px solid #1e3a5f;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Language Picker - Data table cells with color coding */
.language-picker-section {
    background: #f0f4f8;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    padding: 1.5rem;
    border-top: 3px solid #d4a017;
}
.language-picker-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1e3a5f;
}
.language-picker-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8125rem;
}
.language-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.5rem;
}
.language-picker-item {
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    flex-direction: row;
    gap: 0.5rem;
    border-left: 3px solid #cbd5e1;
}
.language-picker-item:nth-child(4n+1) { border-left-color: #d4a017; }
.language-picker-item:nth-child(4n+2) { border-left-color: #3b82f6; }
.language-picker-item:nth-child(4n+3) { border-left-color: #10b981; }
.language-picker-item:nth-child(4n+4) { border-left-color: #ef4444; }
.language-picker-item:hover {
    background: rgba(30, 58, 95, 0.04);
    transform: none;
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.08);
}
.language-picker-item.active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    border-left-color: #d4a017;
    border-radius: 0.25rem;
}
.language-picker-item .language-native {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
}
.language-picker-item .language-name {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.6875rem;
    margin-top: 0;
}
