/**
 * Fuentes Design System
 * Human-Centered Design Implementation
 *
 * Based on:
 * - Cognitive Load Theory (minimize mental effort)
 * - Gestalt Principles (visual grouping and hierarchy)
 * - Progressive Disclosure (reveal complexity gradually)
 * - Recognition over Recall (show, don't make users remember)
 *
 * Scientific References:
 * - Murero (2023): Coordinated Inauthentic Behavior - PMC10060790
 * - Spinde et al. (2023): Media Bias Taxonomy - arXiv:2312.16148
 * - Wardle & Derakhshan (2017): Information Disorder - UNESCO
 *
 * @package     Fuentes
 * @version     6.1.5
 * @author      Lic. Joel Salazar Ramírez <joel@edugame.digital>
 * @copyright   Copyright (C) 2025 Lic. Joel Salazar Ramírez. All rights reserved.
 * @license     GNU General Public License version 2 or later
 * @link        https://edugame.digital
 * @since       December 7, 2025
 */

/* ==========================================================================
   CSS VARIABLES - Design Tokens
   ========================================================================== */
:root {
    /* Primary Colors - Trust & Reliability */
    --fuentes-primary: #0066cc;
    --fuentes-primary-dark: #004d99;
    --fuentes-primary-light: #e6f2ff;

    /* Semantic Colors - Alert System */
    --fuentes-success: #28a745;
    --fuentes-success-light: #d4edda;
    --fuentes-warning: #ffc107;
    --fuentes-warning-light: #fff3cd;
    --fuentes-danger: #dc3545;
    --fuentes-danger-light: #f8d7da;
    --fuentes-info: #17a2b8;
    --fuentes-info-light: #d1ecf1;

    /* Credibility Score Colors */
    --fuentes-cred-high: #28a745;
    --fuentes-cred-good: #5cb85c;
    --fuentes-cred-mixed: #ffc107;
    --fuentes-cred-low: #dc3545;
    --fuentes-cred-very-low: #721c24;

    /* Neutral Colors */
    --fuentes-gray-100: #f8f9fa;
    --fuentes-gray-200: #e9ecef;
    --fuentes-gray-300: #dee2e6;
    --fuentes-gray-400: #ced4da;
    --fuentes-gray-500: #adb5bd;
    --fuentes-gray-600: #6c757d;
    --fuentes-gray-700: #495057;
    --fuentes-gray-800: #343a40;
    --fuentes-gray-900: #212529;

    /* Typography */
    --fuentes-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fuentes-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Font Sizes - Modular Scale (1.25) */
    --fuentes-text-xs: 0.75rem;
    /* 12px */
    --fuentes-text-sm: 0.875rem;
    /* 14px */
    --fuentes-text-base: 1rem;
    /* 16px */
    --fuentes-text-lg: 1.125rem;
    /* 18px */
    --fuentes-text-xl: 1.25rem;
    /* 20px */
    --fuentes-text-2xl: 1.5rem;
    /* 24px */
    --fuentes-text-3xl: 1.875rem;
    /* 30px */
    --fuentes-text-4xl: 2.25rem;
    /* 36px */

    /* Spacing - 8px Grid */
    --fuentes-space-1: 0.25rem;
    /* 4px */
    --fuentes-space-2: 0.5rem;
    /* 8px */
    --fuentes-space-3: 0.75rem;
    /* 12px */
    --fuentes-space-4: 1rem;
    /* 16px */
    --fuentes-space-5: 1.5rem;
    /* 24px */
    --fuentes-space-6: 2rem;
    /* 32px */
    --fuentes-space-8: 3rem;
    /* 48px */

    /* Border Radius */
    --fuentes-radius-sm: 4px;
    --fuentes-radius-md: 8px;
    --fuentes-radius-lg: 12px;
    --fuentes-radius-xl: 16px;
    --fuentes-radius-full: 9999px;

    /* Shadows - Elevation System */
    --fuentes-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --fuentes-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --fuentes-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --fuentes-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --fuentes-transition-fast: 150ms ease;
    --fuentes-transition-base: 250ms ease;
    --fuentes-transition-slow: 350ms ease;

    /* Z-Index Scale */
    --fuentes-z-dropdown: 100;
    --fuentes-z-sticky: 200;
    --fuentes-z-modal: 1000;
    --fuentes-z-tooltip: 1100;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
.fuentes-app {
    font-family: var(--fuentes-font-family);
    font-size: var(--fuentes-text-base);
    line-height: 1.6;
    color: var(--fuentes-gray-800);
    background: var(--fuentes-gray-100);
}

/* ==========================================================================
   LAYOUT - Container System
   ========================================================================== */
.fuentes-container {
    width: 98%;
    max-width: none;
    margin: 0 auto;
    padding: var(--fuentes-space-4);
}

.fuentes-section {
    background: #fff;
    border-radius: var(--fuentes-radius-lg);
    padding: var(--fuentes-space-5);
    margin-bottom: var(--fuentes-space-5);
    box-shadow: var(--fuentes-shadow-sm);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.fuentes-page-title {
    font-size: var(--fuentes-text-3xl);
    font-weight: 700;
    color: var(--fuentes-gray-900);
    margin-bottom: var(--fuentes-space-2);
}

.fuentes-page-subtitle {
    font-size: var(--fuentes-text-lg);
    color: var(--fuentes-gray-600);
    margin-bottom: var(--fuentes-space-5);
}

.fuentes-section-title {
    font-size: var(--fuentes-text-xl);
    font-weight: 600;
    color: var(--fuentes-gray-800);
    margin-bottom: var(--fuentes-space-4);
    padding-bottom: var(--fuentes-space-2);
    border-bottom: 2px solid var(--fuentes-primary);
    display: flex;
    align-items: center;
    gap: var(--fuentes-space-2);
}

.fuentes-section-title .icon {
    font-size: var(--fuentes-text-2xl);
}

/* ==========================================================================
   METRIC CARDS - Dashboard KPIs
   Cognitive Design: Large numbers, clear labels, visual hierarchy
   ========================================================================== */
.fuentes-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--fuentes-space-4);
    margin-bottom: var(--fuentes-space-5);
}

.fuentes-metric-card {
    background: #fff;
    border-radius: var(--fuentes-radius-md);
    padding: var(--fuentes-space-4);
    text-align: center;
    border-left: 4px solid var(--fuentes-primary);
    box-shadow: var(--fuentes-shadow-sm);
    transition: transform var(--fuentes-transition-fast), box-shadow var(--fuentes-transition-fast);
}

.fuentes-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fuentes-shadow-md);
}

.fuentes-metric-card--success {
    border-left-color: var(--fuentes-success);
}

.fuentes-metric-card--warning {
    border-left-color: var(--fuentes-warning);
}

.fuentes-metric-card--danger {
    border-left-color: var(--fuentes-danger);
}

.fuentes-metric-card--info {
    border-left-color: var(--fuentes-info);
}

.fuentes-metric-value {
    font-size: var(--fuentes-text-3xl);
    font-weight: 700;
    color: var(--fuentes-primary);
    line-height: 1.2;
}

.fuentes-metric-card--success .fuentes-metric-value {
    color: var(--fuentes-success);
}

.fuentes-metric-card--warning .fuentes-metric-value {
    color: var(--fuentes-warning);
}

.fuentes-metric-card--danger .fuentes-metric-value {
    color: var(--fuentes-danger);
}

.fuentes-metric-label {
    font-size: var(--fuentes-text-sm);
    color: var(--fuentes-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--fuentes-space-1);
}

/* ==========================================================================
   CREDIBILITY SCORE BADGE
   Visual focal point for trust indicators
   ========================================================================== */
.fuentes-credibility-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--fuentes-space-2);
    padding: var(--fuentes-space-2) var(--fuentes-space-3);
    border-radius: var(--fuentes-radius-full);
    font-weight: 600;
    font-size: var(--fuentes-text-sm);
}

.fuentes-credibility-badge--high {
    background: var(--fuentes-success-light);
    color: var(--fuentes-cred-high);
}

.fuentes-credibility-badge--good {
    background: #e8f5e9;
    color: var(--fuentes-cred-good);
}

.fuentes-credibility-badge--mixed {
    background: var(--fuentes-warning-light);
    color: #856404;
}

.fuentes-credibility-badge--low {
    background: var(--fuentes-danger-light);
    color: var(--fuentes-cred-low);
}

.fuentes-credibility-badge--very-low {
    background: #f5c6cb;
    color: var(--fuentes-cred-very-low);
}

.fuentes-credibility-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: var(--fuentes-text-lg);
    font-weight: 700;
    color: #fff;
}

.fuentes-credibility-score--high {
    background: var(--fuentes-cred-high);
}

.fuentes-credibility-score--good {
    background: var(--fuentes-cred-good);
}

.fuentes-credibility-score--mixed {
    background: var(--fuentes-cred-mixed);
    color: #333;
}

.fuentes-credibility-score--low {
    background: var(--fuentes-cred-low);
}

.fuentes-credibility-score--very-low {
    background: var(--fuentes-cred-very-low);
}

/* ==========================================================================
   ALERT CARDS - Coordination Detection
   High contrast for critical information
   ========================================================================== */
.fuentes-alert-card {
    display: flex;
    align-items: flex-start;
    gap: var(--fuentes-space-4);
    padding: var(--fuentes-space-4);
    border-radius: var(--fuentes-radius-md);
    margin-bottom: var(--fuentes-space-3);
}

.fuentes-alert-card--critical {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid var(--fuentes-danger);
}

.fuentes-alert-card--high {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid var(--fuentes-warning);
}

.fuentes-alert-card--medium {
    background: var(--fuentes-info-light);
    border-left: 4px solid var(--fuentes-info);
}

.fuentes-alert-card--low {
    background: var(--fuentes-gray-100);
    border-left: 4px solid var(--fuentes-gray-400);
}

.fuentes-alert-icon {
    font-size: var(--fuentes-text-2xl);
    flex-shrink: 0;
}

.fuentes-alert-content {
    flex: 1;
}

.fuentes-alert-title {
    font-weight: 600;
    font-size: var(--fuentes-text-lg);
    margin-bottom: var(--fuentes-space-1);
}

.fuentes-alert-description {
    font-size: var(--fuentes-text-sm);
    color: var(--fuentes-gray-700);
}

/* ==========================================================================
   EXPANDABLE PANELS - Progressive Disclosure
   Show summary, expand for details
   ========================================================================== */
.fuentes-expandable {
    border: 1px solid var(--fuentes-gray-200);
    border-radius: var(--fuentes-radius-md);
    overflow: hidden;
    margin-bottom: var(--fuentes-space-3);
}

.fuentes-expandable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--fuentes-space-4);
    background: var(--fuentes-gray-100);
    cursor: pointer;
    transition: background var(--fuentes-transition-fast);
}

.fuentes-expandable-header:hover {
    background: var(--fuentes-gray-200);
}

.fuentes-expandable-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--fuentes-space-2);
}

.fuentes-expandable-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--fuentes-transition-fast);
}

.fuentes-expandable.is-open .fuentes-expandable-toggle {
    transform: rotate(180deg);
}

.fuentes-expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--fuentes-transition-base);
}

.fuentes-expandable.is-open .fuentes-expandable-content {
    max-height: 2000px;
}

.fuentes-expandable-body {
    padding: var(--fuentes-space-4);
    border-top: 1px solid var(--fuentes-gray-200);
}

/* ==========================================================================
   DATA GRID - Source Analysis
   ========================================================================== */
.fuentes-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--fuentes-space-4);
}

.fuentes-source-card {
    background: #fff;
    border-radius: var(--fuentes-radius-md);
    padding: var(--fuentes-space-4);
    border: 1px solid var(--fuentes-gray-200);
    transition: all var(--fuentes-transition-fast);
}

.fuentes-source-card:hover {
    border-color: var(--fuentes-primary);
    box-shadow: var(--fuentes-shadow-md);
}

.fuentes-source-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--fuentes-space-3);
}

.fuentes-source-name {
    font-weight: 600;
    font-size: var(--fuentes-text-lg);
    color: var(--fuentes-gray-800);
}

.fuentes-source-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--fuentes-space-2);
    padding: var(--fuentes-space-3);
    background: var(--fuentes-gray-100);
    border-radius: var(--fuentes-radius-sm);
}

.fuentes-source-stat {
    text-align: center;
}

.fuentes-source-stat-value {
    font-size: var(--fuentes-text-xl);
    font-weight: 700;
    color: var(--fuentes-primary);
}

.fuentes-source-stat-label {
    font-size: var(--fuentes-text-xs);
    color: var(--fuentes-gray-600);
    text-transform: uppercase;
}

/* ==========================================================================
   MOSAIC CHART - Visual Data Display
   ========================================================================== */
.fuentes-mosaic {
    display: flex;
    flex-wrap: wrap;
    border: 2px solid var(--fuentes-gray-300);
    border-radius: var(--fuentes-radius-md);
    overflow: hidden;
}

.fuentes-mosaic-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: var(--fuentes-space-3);
    cursor: pointer;
    transition: all var(--fuentes-transition-fast);
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.fuentes-mosaic-block:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: var(--fuentes-shadow-lg);
}

.fuentes-mosaic-content {
    text-align: center;
}

.fuentes-mosaic-title {
    font-weight: 600;
    font-size: var(--fuentes-text-lg);
    color: var(--fuentes-gray-800);
    margin-bottom: var(--fuentes-space-1);
    word-break: break-word;
}

.fuentes-mosaic-value {
    font-size: var(--fuentes-text-2xl);
    font-weight: 700;
    color: var(--fuentes-primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.fuentes-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--fuentes-space-2);
    padding: var(--fuentes-space-3) var(--fuentes-space-5);
    font-size: var(--fuentes-text-base);
    font-weight: 600;
    border-radius: var(--fuentes-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--fuentes-transition-fast);
    text-decoration: none;
}

.fuentes-btn--primary {
    background: var(--fuentes-primary);
    color: #fff;
}

.fuentes-btn--primary:hover {
    background: var(--fuentes-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--fuentes-shadow-md);
}

.fuentes-btn--secondary {
    background: var(--fuentes-gray-200);
    color: var(--fuentes-gray-700);
}

.fuentes-btn--secondary:hover {
    background: var(--fuentes-gray-300);
}

.fuentes-btn--large {
    padding: var(--fuentes-space-4) var(--fuentes-space-6);
    font-size: var(--fuentes-text-lg);
}

.fuentes-btn--block {
    width: 100%;
}

/* ==========================================================================
   SEARCH BOX
   ========================================================================== */
.fuentes-search-box {
    display: flex;
    flex-direction: column;
    gap: var(--fuentes-space-4);
    padding: var(--fuentes-space-5);
    background: #fff;
    border-radius: var(--fuentes-radius-lg);
    box-shadow: var(--fuentes-shadow-sm);
    margin-bottom: var(--fuentes-space-5);
}

.fuentes-search-input {
    width: 100%;
    padding: var(--fuentes-space-4);
    font-size: var(--fuentes-text-lg);
    border: 2px solid var(--fuentes-gray-300);
    border-radius: var(--fuentes-radius-md);
    transition: border-color var(--fuentes-transition-fast);
}

.fuentes-search-input:focus {
    outline: none;
    border-color: var(--fuentes-primary);
    box-shadow: 0 0 0 3px var(--fuentes-primary-light);
}

.fuentes-search-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--fuentes-space-3);
}

.fuentes-search-select {
    padding: var(--fuentes-space-2) var(--fuentes-space-3);
    font-size: var(--fuentes-text-base);
    border: 1px solid var(--fuentes-gray-300);
    border-radius: var(--fuentes-radius-sm);
    background: #fff;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.fuentes-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--fuentes-z-modal);
    display: none;
}

.fuentes-modal.is-open {
    display: block;
}

.fuentes-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.fuentes-modal-container {
    position: relative;
    max-width: 600px;
    max-height: 85vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: var(--fuentes-radius-lg);
    box-shadow: var(--fuentes-shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fuentes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--fuentes-space-4) var(--fuentes-space-5);
    background: var(--fuentes-primary);
    color: #fff;
}

.fuentes-modal-title {
    font-size: var(--fuentes-text-xl);
    font-weight: 600;
    margin: 0;
}

.fuentes-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--fuentes-radius-sm);
    color: #fff;
    font-size: var(--fuentes-text-xl);
    cursor: pointer;
    transition: background var(--fuentes-transition-fast);
}

.fuentes-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fuentes-modal-body {
    padding: var(--fuentes-space-5);
    overflow-y: auto;
    flex: 1;
}

/* ==========================================================================
   TOOLTIP
   ========================================================================== */
.fuentes-tooltip {
    position: fixed;
    background: #fff;
    border: 2px solid var(--fuentes-primary);
    border-radius: var(--fuentes-radius-md);
    padding: var(--fuentes-space-4);
    box-shadow: var(--fuentes-shadow-lg);
    z-index: var(--fuentes-z-tooltip);
    max-width: 350px;
    font-size: var(--fuentes-text-sm);
    display: none;
}

.fuentes-tooltip.is-visible {
    display: block;
}

.fuentes-tooltip-title {
    font-weight: 600;
    color: var(--fuentes-primary);
    margin-bottom: var(--fuentes-space-2);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.fuentes-empty-state {
    text-align: center;
    padding: var(--fuentes-space-8);
    background: var(--fuentes-gray-100);
    border-radius: var(--fuentes-radius-lg);
    border: 2px dashed var(--fuentes-gray-300);
}

.fuentes-empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--fuentes-space-4);
}

.fuentes-empty-state-title {
    font-size: var(--fuentes-text-xl);
    font-weight: 600;
    color: var(--fuentes-gray-700);
    margin-bottom: var(--fuentes-space-2);
}

.fuentes-empty-state-description {
    color: var(--fuentes-gray-600);
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */
.fuentes-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--fuentes-space-6);
}

.fuentes-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--fuentes-gray-200);
    border-top-color: var(--fuentes-primary);
    border-radius: 50%;
    animation: fuentes-spin 0.8s linear infinite;
}

@keyframes fuentes-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   STORY CARD
   ========================================================================== */
.fuentes-story-card {
    background: #fff;
    border-radius: var(--fuentes-radius-md);
    padding: var(--fuentes-space-4);
    margin-bottom: var(--fuentes-space-3);
    border: 1px solid var(--fuentes-gray-200);
    transition: all var(--fuentes-transition-fast);
}

.fuentes-story-card:hover {
    border-color: var(--fuentes-primary-light);
    box-shadow: var(--fuentes-shadow-md);
}

.fuentes-story-title {
    font-size: var(--fuentes-text-lg);
    font-weight: 600;
    color: var(--fuentes-gray-800);
    margin-bottom: var(--fuentes-space-2);
}

.fuentes-story-title a {
    color: inherit;
    text-decoration: none;
}

.fuentes-story-title a:hover {
    color: var(--fuentes-primary);
}

.fuentes-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fuentes-space-3);
    font-size: var(--fuentes-text-sm);
    color: var(--fuentes-gray-600);
    margin-bottom: var(--fuentes-space-3);
}

.fuentes-story-meta-item {
    display: flex;
    align-items: center;
    gap: var(--fuentes-space-1);
}

.fuentes-story-excerpt {
    color: var(--fuentes-gray-700);
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --fuentes-text-3xl: 1.5rem;
        --fuentes-text-4xl: 1.875rem;
    }

    .fuentes-container {
        padding: var(--fuentes-space-3);
    }

    .fuentes-section {
        padding: var(--fuentes-space-4);
    }

    .fuentes-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .fuentes-data-grid {
        grid-template-columns: 1fr;
    }

    .fuentes-search-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .fuentes-modal-container {
        margin: 2vh;
        max-height: 96vh;
    }
}

@media (max-width: 480px) {
    .fuentes-metrics {
        grid-template-columns: 1fr;
    }

    .fuentes-metric-value {
        font-size: var(--fuentes-text-2xl);
    }

    .fuentes-btn--large {
        padding: var(--fuentes-space-3) var(--fuentes-space-4);
        font-size: var(--fuentes-text-base);
    }
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    .fuentes-app--auto-dark {
        --fuentes-gray-100: #1a1a2e;
        --fuentes-gray-200: #16213e;
        --fuentes-gray-300: #0f3460;
        --fuentes-gray-700: #e0e0e0;
        --fuentes-gray-800: #f0f0f0;
        --fuentes-gray-900: #ffffff;
    }

    .fuentes-app--auto-dark .fuentes-section,
    .fuentes-app--auto-dark .fuentes-metric-card,
    .fuentes-app--auto-dark .fuentes-source-card,
    .fuentes-app--auto-dark .fuentes-story-card {
        background: var(--fuentes-gray-200);
        border-color: var(--fuentes-gray-300);
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {

    .fuentes-search-box,
    .fuentes-btn,
    .fuentes-modal {
        display: none !important;
    }

    .fuentes-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
