/* Copied from design/tokens.css by design/sync-tokens.mjs. Do not edit here. */
/*
 * LUMINA·DX: THE DESIGN VARIABLES
 *
 * Every colour, typeface, size, corner and shadow in Lumina is named here,
 * once. Screens and modules use the names. They never write a colour or a
 * size of their own.
 *
 * To change the look: change a value here. Everything that uses the name
 * follows. The accent is the "Brand" block below: seven lines.
 *
 * Where these came from: Lumina's approved design system, v1.1, in the old
 * build's master stylesheet (Lumina Dx Codebase Copy/core/global-styles.css).
 * The names are kept the same, so its rules can be read against this file.
 *
 * Changed from that stylesheet:
 *   - The accent is teal, not electric blue (Marvin, 22 Nov 2026: "The accent
 *     color actually teal not electric blue"). It is #0E7490, the value the
 *     old files themselves call "the old teal".
 *   - Sizes are in rem against the browser's own base, so a person's chosen
 *     text size is respected. The old sheet forced the base to 10px. The
 *     sizes that come out are the same.
 *   - The focus ring keeps its job and loses the name "glow".
 *
 * THE COLOUR RULE (Marvin, 22 Nov 2026):
 *   "Please please please, ensure we maintain a clean, professional
 *    appearance.. No bunch of colors everywhere. Thats means white backgrounds,
 *    Black / slate grey text where necessary... the occasional light grey if
 *    needed. Color is only used to draw the user's attention to something
 *    important, or critical. The exception to this is the menu bar which has
 *    to look cool like it does now."
 *   So: grounds are white. Text is the ink scale. Light grey (--ldx-bg-quiet)
 *   is for the occasional inset. The accent is for the one thing to press and
 *   for showing where you are typing. Red, gold and green are for states that
 *   matter, never for decoration. The sidebar keeps its own dark look, and
 *   the lock screen borrows it.
 *
 * After changing this file, run:  node design/sync-tokens.mjs
 * That copies it into the tap-throughs, which have to carry their own copy.
 */

:root {
  /* ---- Brand: the accent. Teal. Used for the one thing to press, and for focus. ---- */
  --ldx-brand:          #0e7490;  /* buttons, links, the thing to press */
  --ldx-brand-hover:    #155e75;
  --ldx-brand-active:   #164e63;
  --ldx-brand-light:    #ecfeff;  /* a wash behind something highlighted */
  --ldx-brand-border:   #a5f3fc;
  --ldx-brand-accent:   #22d3ee;  /* the bright form, for use on the dark sidebar */
  --ldx-brand-950:      #083344;  /* the deepest form, at the foot of the sidebar */
  --ldx-focus-ring:     0 0 0 3px rgb(14 116 144 / 0.16);

  /* ---- Ink: cool slate, darkest to lightest ---- */
  --ldx-ink-950:  #0f172a;  /* headings, names */
  --ldx-ink-900:  #111827;
  --ldx-ink-800:  #1e293b;
  --ldx-ink-700:  #334155;
  --ldx-ink-600:  #475569;  /* body text */
  --ldx-ink-500:  #64748b;  /* labels, small print */
  --ldx-ink-400:  #94a3b8;
  --ldx-ink-300:  #cbd5e1;
  --ldx-ink-200:  #e2e8f0;  /* borders */
  --ldx-ink-100:  #f1f5f9;
  --ldx-ink-50:   #f8fafc;

  /* ---- Surfaces ---- */
  --ldx-bg:             #ffffff;  /* every ground is white */
  --ldx-bg-quiet:       #f8fafc;  /* the occasional light grey, for an inset */
  --ldx-surface:        #ffffff;
  --ldx-surface-card:   #ffffff;
  --ldx-border:         #e2e8f0;  /* what separates one thing from the next */

  /* ---- Sidebar: the menu bar. Dark navy, deepening into the accent. The one place that isn't white. ---- */
  --ldx-sidebar-bg:     linear-gradient(180deg, var(--ldx-ink-950) 0%, var(--ldx-brand-950) 100%);
  --ldx-sidebar-border: rgb(255 255 255 / 0.06);
  --ldx-sidebar-width:  260px;

  /* ---- On the dark: text and lines that sit on the sidebar and the lock screen ---- */
  --ldx-on-dark:        #ffffff;
  --ldx-on-dark-soft:   rgb(255 255 255 / 0.65);  /* links not chosen, small print */
  --ldx-on-dark-faint:  rgb(255 255 255 / 0.42);  /* section labels */
  --ldx-on-dark-fill:   rgb(255 255 255 / 0.08);  /* a key or a field on the dark */
  --ldx-on-dark-line:   rgb(255 255 255 / 0.25);

  /* ---- Fixed measures ---- */
  --ldx-topbar-height:  56px;
  --ldx-control-height: 44px;   /* the least a finger needs */
  --ldx-signin-width:   400px;  /* the sign-in card */
  --ldx-lock-width:     320px;  /* the lock screen's column */
  --ldx-page-width:     880px;  /* the widest a page of cards grows */
  --ldx-qr-size:        176px;
  --ldx-narrow:         720px;  /* below this the sidebar folds into a strip (kept in step with the @media line in lumina.css) */

  /* ---- Gold: warnings, allergy flags, the practice-clinic strip ---- */
  --ldx-gold:           #92400e;
  --ldx-gold-mid:       #d97706;
  --ldx-gold-light:     #fffbeb;
  --ldx-gold-border:    #fde68a;

  /* ---- States. Only for things that matter. These never follow the accent. ---- */
  --ldx-success:        #15803d;  /* done, signed, normal */
  --ldx-success-mid:    #22c55e;
  --ldx-success-light:  #f0fdf4;
  --ldx-success-border: #bbf7d0;

  --ldx-danger:         #dc2626;  /* refused, critical, errors */
  --ldx-danger-mid:     #ef4444;
  --ldx-danger-light:   #fef2f2;
  --ldx-danger-border:  #fecaca;

  --ldx-warning:        #d97706;
  --ldx-warning-dark:   #92400e;
  --ldx-warning-light:  #fffbeb;

  --ldx-neutral:        #475569;
  --ldx-neutral-light:  #f1f5f9;
  --ldx-neutral-border: #e2e8f0;

  /* ---- Type. Inter for everything, IBM Plex Mono for codes and labels. No serif.
          Weights: 800 page titles and names, 700 card titles, 600 labels and
          badges, 500 buttons and navigation, 400 body. ---- */
  --ldx-font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ldx-font-mono:  "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --ldx-text-xs:    0.625rem;   /* 10px  small labels */
  --ldx-text-sm:    0.75rem;    /* 12px  badges, small print */
  --ldx-text-base:  0.875rem;   /* 14px  body and controls */
  --ldx-text-md:    1rem;       /* 16px  card titles */
  --ldx-text-lg:    1.125rem;   /* 18px */
  --ldx-text-xl:    1.25rem;    /* 20px  sign-in title */
  --ldx-text-2xl:   1.5rem;     /* 24px  page titles */
  --ldx-text-3xl:   1.75rem;    /* 28px */
  --ldx-text-4xl:   2.25rem;    /* 36px */

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

  /* ---- Corners ---- */
  --ldx-radius-sm:  6px;
  --ldx-radius-md:  10px;   /* buttons, inputs */
  --ldx-radius-lg:  16px;   /* cards */
  --ldx-radius-xl:  22px;   /* the sign-in card */

  /* ---- Shadows: faint. Borders do the separating. ---- */
  --ldx-shadow-xs:  0 1px 2px rgb(15 23 42 / 0.04);
  --ldx-shadow-sm:  0 1px 3px rgb(15 23 42 / 0.06), 0 1px 2px rgb(15 23 42 / 0.04);
  --ldx-shadow-md:  0 4px 12px rgb(15 23 42 / 0.08), 0 2px 4px rgb(15 23 42 / 0.04);
  --ldx-shadow-lg:  0 10px 30px rgb(15 23 42 / 0.1), 0 4px 8px rgb(15 23 42 / 0.05);

  /* ---- Movement ---- */
  --ldx-transition:      0.15s ease;
  --ldx-transition-slow: 0.25s ease;

  /* ---- Layers ---- */
  --ldx-z-overlay:   40;
  --ldx-z-sidebar:   50;
  --ldx-z-dropdown:  60;
  --ldx-z-toast:     70;
  --ldx-z-lock:      100;   /* the lock screen sits above everything */
}
