/* One red for the whole product (CEO 2026-11-12): "Sealing wax".
   Every error, destructive action, validation outline and recording dot on the
   web reads these variables. The values are the ones the CEO chose; do not add
   a fifth red here, and do not type a red hex anywhere else
   (tests/test_one_red_contract.py fails on it).

   Why plain CSS and not skin.js: the app's themes are the classes dark / light /
   zen / zenGarden on <body> (skin.js sets them after load). Three of the four are
   light, so the light values live on :root and only the night theme overrides them.
   That also gives login, signup, landing and the lock screen the right red before
   any script runs. Loaded from templates/sidebar.html (every app page) and from
   the pages that do not include the sidebar.

   Why utility classes and not a Tailwind `danger` colour: the app loads Tailwind
   v2 from a CDN plus a committed, purged v3 build (styles/dist/output.css) that
   nothing in the repo rebuilds. A new colour would need a rebuild that can silently
   drop classes; a class defined here is always present wherever this file loads. */
:root {
  --ln-danger: #9C3030;
  --ln-danger-pressed: #7C2020;
  --ln-danger-soft: #FAEEEC;
  --ln-danger-hairline: #E6C4C0;
  /* Solid fills (buttons, solid toasts, the recording dot) are the deep red in
     every theme, with a white label. The pale night red above is for text, icons,
     outlines, tints and hairlines only (CEO 2026-11-16). */
  --ln-danger-fill: #9C3030;
  --ln-danger-fill-pressed: #7C2020;
  --ln-on-danger: #FFFFFF;
  /* The deep fill is 2.0 to 2.6:1 against the night surfaces (needs 3:1 as a UI
     boundary), so at night every solid fill gets a 1px edge in the text red. */
  --ln-danger-edge: transparent;
}
/* .ln-danger-night marks a surface that is always dark, in any theme (the gift
   page, the memory detail overlay, the welcome onboarding), so the night red is used on it. */
body.dark,
.ln-danger-night,
.onboarding-flow {
  --ln-danger: #F0A39B;
  --ln-danger-pressed: #E08A82;
  --ln-danger-soft: rgba(240, 163, 155, 0.13);
  --ln-danger-hairline: #6A4048;
  --ln-danger-edge: var(--ln-danger);
}

/* Text and icons */
.ln-text-danger { color: var(--ln-danger); }
.ln-hover-text-danger:hover { color: var(--ln-danger-pressed); }

/* Solid fill with the label that is readable on it */
.ln-bg-danger { background-color: var(--ln-danger-fill); color: var(--ln-on-danger); box-shadow: inset 0 0 0 1px var(--ln-danger-edge); }
.ln-bg-danger:hover { background-color: var(--ln-danger-fill-pressed); }

/* Soft tint, outline */
.ln-bg-danger-soft { background-color: var(--ln-danger-soft); }
.ln-border-danger { border-color: var(--ln-danger); }
.ln-border-danger-hairline { border-color: var(--ln-danger-hairline); }
.ln-hover-bg-danger:hover { background-color: var(--ln-danger-fill-pressed); color: var(--ln-on-danger); box-shadow: inset 0 0 0 1px var(--ln-danger-edge); }
