/* EpiAtlasz Data Platform - Color Variables */

/* CSS Variables for Hungarian Institutional Colors */
:root {
    /* Fonts */
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'DM Sans', system-ui, -apple-system, sans-serif;
    
    /* Primary Colors */
    --color-primary: #022136;      /* Prussian Blue */
    --color-secondary: #372809;    /* Café Noir */
    
    /* Accent Colors */
    --color-accent-blue: #8AAAD1;  /* Ruddy Blue */
    --color-accent-yellow: #beb45a; /* Flax */
    --color-accent-brown: #644D21;  /* Field Drab */
    --color-accent-orange: #FF6100; /* Orange for cardiovascular */
    --color-highlight: #FF6100;     /* Orange */
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-500: #6b7280;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    
    /* Utility Colors */
    --color-error: #dc2626;

    /* Extended UI Neutrals — a second, Tailwind-shade neutral scale that had been
       hand-typed as repeated hex literals across styles.css/dashboard.css instead of
       referencing a shared value. Named separately from --color-gray-* above since the
       two scales use different hues (slate vs. plain gray) and aren't interchangeable. */
    --color-border-subtle: #e5e7eb;
    --color-surface-muted: #f3f4f6;
    --color-surface-alt: #f8f9fa;
    --color-text-subtle: #9ca3af;
    --color-border-medium: #d1d5db;
    --color-text-strong-gray: #374151;
    --color-surface-tint-blue: #f0f4f8;
    --color-skeleton-light: #f0f0f0;
    --color-skeleton-dark: #e0e0e0;
    --color-accent-orange-tint: #fff7ed;
    --color-text-muted-dark: #666666;
    --color-primary-deep: #0b2034;

    /* Background Colors - Computed from variables */
    --bg-primary: var(--color-primary);
    --bg-secondary: var(--color-secondary);
    --bg-light: var(--color-gray-50);
    --bg-white: var(--color-white);
    --bg-carousel: var(--color-gray-100);
    
    /* Text Colors - Computed from variables */
    --text-primary: var(--color-primary);
    --text-secondary: var(--color-gray-700);
    --text-muted: var(--color-gray-600);
    --text-light: var(--color-white);
    
    /* Border Colors - Computed from variables */
    --border-primary: var(--color-primary);
    --border-light: var(--color-gray-200);
    --border-muted: var(--color-gray-300);
}

/* Form controls don't inherit font-family by default (browsers apply their own
   OS UI font instead) — without this, every <button>/<select>/<input> falls
   back to the system font regardless of what's set on body. */
button, input, select, textarea {
    font-family: inherit;
}

/* Typography - Apply the heading font to all headings and title classes */
h1, h2, h3, h4, h5, h6,
.hero-title, .hero-subtitle, .publication-title,
.navbar-title,
.nav-sections-title,
.vsb-title, .tb-label {
    font-family: var(--font-heading) !important;
}

/* Visually hidden but readable by screen readers and search crawlers. Use for
   headings/labels a design has no visual room for, without depending on any
   external framework's utility classes. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Reveals an .sr-only element when it (or a link inside it) receives focus --
   the standard pattern for a "skip to content" link. */
.sr-only-focusable:focus,
.sr-only-focusable:focus-within {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
}