/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════════
   govitvit.com — the design system's values (website redesign «Ekran», Junior's choice 25 Nov 2026).
   ONE file. Every page family takes its colours, corners, depth and type from here; nothing is copied per page.

   Where each value comes from is written beside it, and tools/website/__tests__/test_design_tokens.py proves it:
     kit: <NAME.path>   the apps' own value in packages/ui/src/theme (V5_JOU, V5_NWIT, V5_RADIUS, MAP_MARK, …):
                        the test reads the TypeScript and fails if this file and the apps ever disagree.
     board: <what>      the approved Rider v5 board's CSS (~/AshleyWork/rider-v5/tools/kit5.css, APPROVED.md
                        02/11/2026), which the kit only approximates in React Native points: kept here as a closed
                        list in the test, so no value can arrive without a source.
     web: <why>         a value only a web page needs (font stack, focus ring, motion curve), with its reason.

   NIGHT IS BUILT AND OFF (Junior, 25 Nov 2026: «Build night with day, keep it switched off until I say»): the night
   values apply only on a page whose <html> carries data-vv-night="auto", and no page carries it. Switching night on
   is that one attribute, on his word.

   This file changes no page by itself: page families start reading it in their own pull requests.
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Jou (day) colours ── */
  --vv-page: #F7F9FC;                          /* kit: V5_JOU.page */
  --vv-card: #FFFFFF;                          /* kit: V5_JOU.surface */
  --vv-card2: #F5F7FA;                         /* kit: V5_JOU.surface2 */
  --vv-ink: #042C53;                           /* kit: V5_JOU.ink */
  --vv-ink2: #5B6779;                          /* kit: V5_JOU.ink2 */
  --vv-edge: #5B6779;                          /* kit: V5_JOU.ink3 — a field's or check box's edge, 5.74:1 on white */
  --vv-line: #E5E8EE;                          /* kit: V5_JOU.line */
  --vv-fill: #E9E9EE;                          /* kit: V5_JOU.fill */
  --vv-acc-a: #1866D2;                         /* kit: V5_JOU.accentStart — the primary button's fill starts here */
  --vv-acc-b: #1F4683;                         /* kit: V5_JOU.accentEnd — … and ends here */
  --vv-link: #1866D2;                          /* kit: V5_JOU.link */
  --vv-tint: #E3EDFA;                          /* kit: V5_JOU.tint */
  --vv-tint-ink: #1866D2;                      /* kit: V5_JOU.tintInk */
  --vv-live: #378ADD;                          /* kit: V5_JOU.live — graphics only, never words (3.59:1) */
  --vv-navy: #1F4683;                          /* kit: V5_JOU.navy */
  --vv-navy-deep: #042C53;                     /* kit: V5_JOU.navyDeep */
  --vv-red: #A32D2D;                           /* kit: V5_JOU.red */
  --vv-red-tint: #F7E0E0;                      /* kit: V5_JOU.status.danger.tint */
  --vv-ok: #1F4683;                            /* kit: V5_JOU.status.ok.text — success is navy, no green */
  --vv-ok-tint: #DFEBFA;                       /* kit: V5_JOU.status.ok.tint */
  --vv-wait: #854F0B;                          /* kit: V5_JOU.status.wait.text */
  --vv-wait-tint: #FCEEDA;                     /* kit: V5_JOU.status.wait.tint */
  --vv-slab: #0F1724;                          /* kit: V5_JOU.slab.fill */
  --vv-slab-ink: #FFFFFF;                      /* kit: V5_JOU.slab.ink */
  --vv-slab-ink2: #B5D4F4;                     /* kit: V5_JOU.slab.inkSecondary */
  --vv-slab-line: rgba(255,255,255,0.12);      /* kit: V5_JOU.slab.hairline */
  --vv-slab-fill: rgba(255,255,255,0.10);      /* kit: V5_JOU.slab.fillSoft */
  --vv-scrim: rgba(4,44,83,0.38);              /* kit: V5_JOU.scrim */
  --vv-glow-ride: rgba(55,138,221,0.38);       /* kit: V5_JOU.glow.ride — the Transpò glow under a picture */
  --vv-on-acc: #FFFFFF;                        /* kit: V5_JOU.slab.ink — words on the primary fill */

  /* ── map marks (D101): the same in every app and on the site ── */
  --vv-mark-departure: #042C53;                /* kit: MAP_MARK.departure */
  --vv-mark-stop: #A32D2D;                     /* kit: MAP_MARK.stop */
  --vv-mark-destination: #0F6E56;              /* kit: MAP_MARK.destination */

  /* ── depth ── */
  --vv-e1: 0 1px 2px rgba(4,44,83,.06), 0 8px 22px -14px rgba(4,44,83,.22);   /* board: kit5.css --e1 (a card) */
  --vv-e2: 0 12px 28px -12px rgba(24,102,210,.28);                            /* board: kit5.css --e2 (a lifted bar) */
  --vv-e3: 0 18px 36px -18px rgba(4,30,60,.55);                               /* board: kit5.css --e3 (a slab, a sheet) */
  --vv-btn-shadow: 0 12px 24px -14px rgba(24,102,210,.28), inset 0 1px 0 rgba(255,255,255,.14); /* board: kit5.css .btn */

  /* ── corners ── */
  --vv-r-slab: 28px;                           /* kit: V5_RADIUS.slab */
  --vv-r-card: 22px;                           /* kit: V5_RADIUS.card */
  --vv-r-group: 20px;                          /* kit: V5_RADIUS.group */
  --vv-r-button: 18px;                         /* kit: V5_RADIUS.button */
  --vv-r-field: 16px;                          /* kit: V5_RADIUS.field */
  --vv-r-small: 14px;                          /* kit: V5_RADIUS.buttonSmall */
  --vv-r-icon: 12px;                           /* kit: V5_RADIUS.rowIcon */
  --vv-r-pill: 999px;                          /* kit: V5_RADIUS.pill */

  /* ── type and touch ── */
  --vv-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* web: the phone's own font, as the apps (V5_TYPE «system font»); no web font to download */
  --vv-weight-display: 800;                    /* kit: V5_TYPE.display.fontWeight */
  --vv-weight-strong: 700;                     /* kit: V5_TYPE.headline.fontWeight */
  --vv-text-floor: 11px;                       /* kit: TYPE_FLOOR_PT — no text is smaller */
  --vv-touch: 44px;                            /* kit: V5_SPACE.chipMinHeight — the smallest control */
  --vv-gutter: 20px;                           /* kit: V5_SPACE.gutter */

  /* ── focus and motion ── */
  --vv-focus: 0 0 0 3px #FFFFFF, 0 0 0 5px #1866D2;   /* web: a 2 px accent ring on a white gap, visible on every surface */
  --vv-ease: cubic-bezier(.23, 1, .32, 1);            /* web: a strong ease-out for anything that answers a tap */
  --vv-press: .97;                                    /* web: a control shrinks to 97 % while pressed */

  color-scheme: light;
}

/* ── Nwit (night): the same roles, the apps' night values. OFF until <html data-vv-night="auto"> (Junior's word). ── */
@media (prefers-color-scheme: dark) {
  :root[data-vv-night="auto"] {
    --vv-page: #090C11;                        /* kit: V5_NWIT.page */
    --vv-card: #12171F;                        /* kit: V5_NWIT.surface */
    --vv-card2: #1A202B;                       /* kit: V5_NWIT.surface2 */
    --vv-ink: #F1F4F8;                         /* kit: V5_NWIT.ink */
    --vv-ink2: #A3AEBD;                        /* kit: V5_NWIT.ink2 */
    --vv-edge: #8F9AAB;                        /* kit: V5_NWIT.ink3 */
    --vv-line: rgba(255,255,255,0.08);         /* kit: V5_NWIT.line */
    --vv-fill: #1A202B;                        /* kit: V5_NWIT.fill */
    --vv-acc-a: #3A70CC;                       /* kit: V5_NWIT.accentStart */
    --vv-acc-b: #2A5BB2;                       /* kit: V5_NWIT.accentEnd */
    --vv-link: #7CB4FF;                        /* kit: V5_NWIT.link */
    --vv-tint: #16263D;                        /* kit: V5_NWIT.tint */
    --vv-tint-ink: #7CB4FF;                    /* kit: V5_NWIT.tintInk */
    --vv-live: #4DA3FF;                        /* kit: V5_NWIT.live */
    --vv-navy: #9CC3FF;                        /* kit: V5_NWIT.navy */
    --vv-navy-deep: #F1F4F8;                   /* kit: V5_NWIT.navyDeep */
    --vv-red: #FF8A80;                         /* kit: V5_NWIT.red */
    --vv-red-tint: #3A1A1A;                    /* kit: V5_NWIT.status.danger.tint */
    --vv-ok: #9CC3FF;                          /* kit: V5_NWIT.status.ok.text */
    --vv-ok-tint: #17284A;                     /* kit: V5_NWIT.status.ok.tint */
    --vv-wait: #FFC46B;                        /* kit: V5_NWIT.status.wait.text */
    --vv-wait-tint: #3A2A10;                   /* kit: V5_NWIT.status.wait.tint */
    --vv-slab: #232B37;                        /* kit: V5_NWIT.slab.fill */
    --vv-slab-ink: #FFFFFF;                    /* kit: V5_NWIT.slab.ink */
    --vv-slab-ink2: #B5D4F4;                   /* kit: V5_NWIT.slab.inkSecondary */
    --vv-slab-line: rgba(255,255,255,0.10);    /* kit: V5_NWIT.slab.hairline */
    --vv-slab-fill: rgba(255,255,255,0.08);    /* kit: V5_NWIT.slab.fillSoft */
    --vv-scrim: rgba(0,0,0,0.6);               /* kit: V5_NWIT.scrim */
    --vv-glow-ride: rgba(77,163,255,0.34);     /* kit: V5_NWIT.glow.ride */
    --vv-e1: inset 0px 1px 0px rgba(255,255,255,0.05), 0px 0px 0px 1px rgba(255,255,255,0.04); /* kit: V5_CARD_LIFT_NIGHT.boxShadow — at night a card is lit at its edge, it casts no shadow */
    --vv-e2: 0 10px 30px -12px rgba(77,163,255,.30);          /* board: kit5.css night --e2 */
    --vv-e3: 0 18px 40px -16px rgba(0,0,0,.7);                /* board: kit5.css night --e3 */
    --vv-btn-shadow: 0 12px 24px -14px rgba(77,163,255,.32), inset 0 1px 0 rgba(255,255,255,.14); /* board: kit5.css night .btn */
    --vv-weight-display: 700;                  /* board: kit5.css night --fwD — weights step down one notch at night */
    --vv-focus: 0 0 0 3px #090C11, 0 0 0 5px #7CB4FF;         /* web: the same ring on the night page */
    color-scheme: dark;
  }
}
