/* Euro-CNS Deep Learning: design tokens for the new frontend (course-studio-plan.md §7.0).
 *
 * Taken from the Course Studio prototype (prototypes/course-studio/studio.css). Every screen
 * built on templates/ui/base.html uses these; nothing here is Studio-specific.
 *
 * Content types are coded by the stain they evoke, so colour carries meaning:
 *   case/slides = hematoxylin, H5P = eosin, quiz = DAB, video = LFB,
 *   annotation = the viewer's annotation green, tutor = gold.
 */
:root {
    --ink: #18202e;
    --ink-2: #4a5568;
    --ink-3: #5b6678;          /* ≥ 4.5:1 on white and on --glass (WCAG 1.4.3) */
    --glass: #eef1f5;          /* app background: cool, like a slide under the lamp */
    --paper: #ffffff;
    --rule: #dde3ea;
    --rule-2: #eef1f5;
    --field-line: #848e9e;     /* every field and select border: 3.3:1 on white (WCAG 1.4.11; prototype library.css:545) */
    --brand: #2563eb;
    --brand-ink: #1d4ed8;
    --brand-wash: #eff4ff;

    --hema: #4b3f9e;  --hema-wash: #f0eefb;   /* case, slides */
    --eosin: #c2306f; --eosin-wash: #fdf0f5;  /* H5P interactives */
    --dab: #8a5420;   --dab-wash: #fbf3ea;    /* quiz */
    --lfb: #1f6f8b;   --lfb-wash: #ebf6fa;    /* video */
    --annot: #0f8a5f; --annot-wash: #e9f7f1;  /* reference annotations */
    --tutor: #a46b00; --tutor-wash: #fdf6e3;  /* tutor */
    --text: #3b4a5f;  --text-wash: #f1f4f8;   /* text pages */

    --danger: #c53030;
    --ok: #15803d;

    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --sans: "Inter", system-ui, sans-serif;

    --nav-h: 48px;
    --radius: 10px;
    --shadow-1: 0 1px 2px rgba(24, 32, 46, .06), 0 1px 3px rgba(24, 32, 46, .08);
    --shadow-2: 0 6px 24px rgba(24, 32, 46, .10), 0 2px 6px rgba(24, 32, 46, .06);
    --shadow-3: 0 24px 64px rgba(24, 32, 46, .22);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* type colours: any element with .c-<kind> exposes --c (ink) and --w (wash) */
.c-case  { --c: var(--hema);  --w: var(--hema-wash); }
.c-h5p   { --c: var(--eosin); --w: var(--eosin-wash); }
.c-quiz  { --c: var(--dab);   --w: var(--dab-wash); }
.c-video { --c: var(--lfb);   --w: var(--lfb-wash); }
.c-text  { --c: var(--text);  --w: var(--text-wash); }
.c-annot { --c: var(--annot); --w: var(--annot-wash); }
.c-tutor { --c: var(--tutor); --w: var(--tutor-wash); }
