/* NightOut design tokens. Every colour of the interface is named here; components.css and app.css hold none of their
   own (a test keeps it so). One look, chosen by the owner on 11.11.2026: Ember, quieter. One white card per screen;
   ember only for the action and for what is live; what is chosen is cream.
   The first block is the dark page. The second is the light page, for a phone set to light: it changes only the names
   it lists, and it needs no script. */
:root{
  color-scheme:dark;
  /* the page, and what is raised on it */
  --bg:#131110;--coal:#1B1817;--cocoa:#282422;--line:#383230;
  --bg-out:#0A0909; /* page colour outside the phone column on wide screens */
  --status-bar:#131110; /* under the clock of the app installed on an iPhone: that clock is always white, so dark on both pages */
  --scroll-thumb:rgba(246,242,238,.2); /* the thin scrollbar a desktop browser draws on the page; phones draw none */
  --scroll-thumb-paper:rgba(19,17,16,.24); /* the same on the white paper of a sheet, on both pages */
  /* text on the page */
  --cream:#F6F2EE;--muted:#ADA39C;
  /* paper: the white card, sheets, fields */
  --white:#FFFFFF;--paper-top:#fff;--sand:#F1EEEA;--paper-rule:#EBE7E2;--paper-edge:#DDD7D1;--paper-line:#D1CAC3;--grab:#D7D1CB;
  /* text on paper */
  --ink:#131110;--muted-ink:#70665F;--closed-ink:#5F5650;--pin-ink:#131110;--danger-ink:#B8213F;
  /* the accent */
  --ember:#F75D2B;--ember-hi:#FF7A45;--ember-lo:#D94A1C;--coral:#FC5777;
  --on-ember:#fff; /* text on Ember buttons. White follows the brand book but is 3.3:1; ink would be 5.8:1. One place to switch. */
  --ember-glow:rgba(247,93,43,.18); /* the ring around the pin of the stop the night is at */
  /* the action button */
  --btn-top:#F5632F;--btn-bottom:#EC5625;--btn-shine:rgba(255,255,255,.18);--btn-glow:rgba(247,93,43,.14);--btn-ink:var(--on-ember);
  /* what is switched on or chosen: a pressed chip, the open tab, a switch and its knob */
  --sel:#F6F2EE;--sel-ink:#131110;--tab-on:#F6F2EE;--knob:var(--cream);--knob-on:var(--sel-ink);
  /* a person's plate, the person's own plate, and the person's own words in the chat */
  --av:var(--white);--me:#F75D2B;--me-ink:#fff;--mine:var(--white);--mine-ink:var(--ink);
  --danger-text:var(--coral); /* a row that takes something away, on the page */
  /* the note that rises from the bottom of the screen */
  --toast:var(--cocoa);--toast-line:var(--line);--toast-ink:var(--cream);--toast-act:var(--ember-hi);
  /* quiet buttons */
  --ghost-line:rgba(246,242,238,.38);--dim:#2E2927;--dim-ink:#B9AFA8;
  /* a warning on the page */
  --warn-bg:rgba(252,87,119,.12);--warn-line:rgba(252,87,119,.5);--warn-ink:#FFC9D3;--warn-strong:#fff;
  /* over a photo or a map: veils of the page's colour */
  --veil:rgba(19,17,16,.55);--veil-strong:rgba(19,17,16,.72);--hero-top:rgba(19,17,16,.5);--hero-bottom:rgba(19,17,16,.35);--bg-clear:rgba(19,17,16,0);
  --me-dot:#2F7BF5;--me-ring:#FFFFFF;--me-halo:rgba(47,123,245,.25); /* "you are here" on the full-screen map: the blue every map app uses, on both pages */
  --photo-edge:rgba(246,242,238,.25);--scrim:rgba(8,7,7,.64);--shadow:rgba(0,0,0,.35);
  /* paper on a light page needs an edge; on the dark page it needs none */
  --paper-shadow:none;--paper-ring:transparent;
  /* the map: the walked line and the line under it (js/map.js reads these) */
  --route:#F75D2B;--route-casing:#0E0C0B;
  --credit-invert:invert(1); /* the (i) of the map's credit is drawn dark: turned light on a dark map */
  --spare-tiles:invert(1) grayscale(1) brightness(.42) contrast(.95); /* the spare map's OpenStreetMap tiles, turned dark */
}

/* The light page: pale page, white cards and paper with an edge, ink words; what is chosen is ink. */
@media (prefers-color-scheme:light){
  :root{
    color-scheme:light;
    --bg:#F5F3F1;--coal:#FFFFFF;--cocoa:#ECE8E4;--line:#DFD9D3;--bg-out:#E6E2DE;--scroll-thumb:rgba(25,22,20,.22);
    --cream:#191614;--muted:#70665F;
    --ember-hi:#C2410C;--ember-lo:#C2410C;
    --sel:#191614;--sel-ink:#FFFFFF;--tab-on:#C2410C;--knob:#FFFFFF;--knob-on:#FFFFFF;
    --av:var(--sand);--mine:var(--sel);--mine-ink:var(--sel-ink);--danger-text:var(--danger-ink);
    --toast:#191614;--toast-line:#191614;--toast-ink:#FFFFFF;--toast-act:#FF9A70;
    --ghost-line:rgba(25,22,20,.3);--dim:#E6E2DE;--dim-ink:#6B625B;
    --warn-bg:rgba(252,87,119,.1);--warn-line:rgba(205,55,90,.45);--warn-ink:#8F1836;--warn-strong:#6A0E25;
    --veil:rgba(255,255,255,.72);--veil-strong:rgba(255,255,255,.86);--hero-top:rgba(23,11,7,.3);--hero-bottom:rgba(23,11,7,.2);--bg-clear:rgba(245,243,241,0);
    --photo-edge:rgba(23,11,7,.12);--scrim:rgba(23,11,7,.45);--shadow:rgba(23,11,7,.22);
    --paper-shadow:0 0 0 1px #DFD9D3,0 10px 28px rgba(19,17,16,.08);--paper-ring:#DFD9D3;
    --route:#E8501F;--route-casing:#FFFFFF;
    --credit-invert:invert(0);--spare-tiles:none;
  }
}

/* v2 additions (not in the design package). */
:root{
  --col:430px; /* widest the app column gets */
  --hdr-h:52px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
