/* ==========================================================================
   KviZlet design tokens. Loaded first on every regular page via
   templates/partials/head_brand.html. Colours come from the logo/favicon
   (static/images/favicon.svg): violet -> indigo ground, cyan and yellow accents.
   Work Mode themes ([data-theme=...]) and night mode ([data-night]) override
   surfaces in their own files; components read these tokens, never raw hex.
   ========================================================================== */

:root {
    /* Brand */
    --brand-violet: #7A2BCB;
    --brand-indigo: #2C2F9E;
    --brand-violet-deep: #5E1DA6;
    --brand-indigo-deep: #23267F;
    --brand-cyan: #4FD1FF;
    --brand-yellow: #FFCC4D;
    --brand-orange: #FFA53A;
    --brand-violet-bright: #A066F0; /* violet that reads on dark grounds */
    --ink: #1E1B3A;            /* body text, text on yellow */
    --ink-soft: #2D2A4A;       /* headings on white panels */

    /* Semantic */
    --bg-gradient: linear-gradient(160deg, var(--brand-violet) 0%, var(--brand-indigo) 100%);
    --banner-gradient: linear-gradient(160deg, var(--brand-violet-deep) 0%, var(--brand-indigo-deep) 100%);
    --cta-bg: linear-gradient(160deg, var(--brand-yellow) 0%, var(--brand-orange) 100%);
    --cta-bg-hover: linear-gradient(160deg, #FFD566 0%, #FFB04F 100%);
    --cta-ink: var(--ink);
    --accent: var(--brand-violet);          /* links, active tabs, scores on white */
    --accent-soft: rgba(122, 43, 203, 0.08); /* tinted fills, selected rows */
    --accent-tint: #F1E9FB;                 /* pale violet fill, opaque */
    --violet-rgb: 122, 43, 203;             /* for rgba(var(--violet-rgb), a) */
    --highlight: var(--brand-cyan);         /* hover borders, focus, live states */
    --focus-ring: 0 0 0 3px rgba(79, 209, 255, 0.55);
    --success: #1F9D6B;
    --success-soft: #DDF7EC;
    --danger: #D93848;
    --danger-soft: #FDE4E7;
    --warning: #B45309;
    --warning-soft: #FFF3D6;

    /* Shape */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-pill: 999px;

    /* Type */
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Baloo 2', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Violet-tinted shadows (r, g, b) */
    --shadow-tint: 76, 29, 149;

}

/* Sprite icons (static/images/icons.svg) via {% icon %} / icon(). Outline follows the
   text colour; the fill is --icon-accent, or the icon's own default when unset. */
.icon {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
    flex: none;
    overflow: visible;
}
.icon.icon-c { --icon-accent: var(--brand-cyan); }
.icon.icon-y { --icon-accent: var(--brand-yellow); }
