/* Shared palette and type, in the LHCb logo's colours: pale above, blue below. The palette is the same in either
   viewer theme. Red means "new or collected" and nothing else; every action is blue. */
:root{
  color-scheme:light;
  /* grounds */
  --pale:#d6f2fc;          /* header bar, panel grounds, stats strips, secondary buttons, segmented tabs */
  --card:#f5fbfe;          /* cards, sheets, dialogs on the scene */
  --white:#ffffff;         /* dialogs over a dark backdrop */
  --paper:#f7fcfe;         /* passport pages */
  --blue:#2154ac;          /* the control bar and every action: primary buttons, Play, toggles that are on, links, pins */
  /* text */
  --ink:#16408a;           /* display type and headings on light grounds */
  --text:#0f2f5e;          /* body text on light grounds */
  --text-long:#1d3c69;     /* long paragraphs */
  --dim:#3f5f8f;           /* secondary text, labels, captions on light grounds */
  --on-blue:#f2fbff;       /* text on blue */
  --on-blue-dim:#c9e6f6;   /* secondary text on blue */
  --line:#a9cfe2;          /* hairlines, dashed outlines of uncollected stamps */
  --rule:#d6f2fc;          /* list separators on cards */
  --edge:rgba(214,242,252,.55); /* outlines of buttons on blue */
  /* meaning */
  --red:#dc2825;           /* stamps, badges and counts only */
  --red-text:#c21f1c;      /* small red text ("New stamp") */
  --good:#1f7a4a;          /* "Visited" and other confirmations */
  --warn:#e0a43a;          /* border of warnings: never red */
  --warn-bg:#fff4dd;
  --warn-text:#8a5a00;
  --warn-ink:#3d2a00;
  /* the 3D scene */
  --scene:#16408a;         /* background at the centre */
  --scene-edge:#0d2a5c;    /* background at the edge, and the letterbox */
  --scene-glow:#1f4e9c;
  --scene-bg:radial-gradient(ellipse at 60% 45%,var(--scene-glow) 0%,var(--scene) 50%,var(--scene-edge) 100%);
  /* underground: the stage fades to a dark slate as the camera goes below the ground (--depth, 0 to 1, set by
     core/renderer.js setDepth); --stage-bg is the stage's and the letterbox's, --scene-bg everything else's */
  --deep:#1a1f29;
  --deep-edge:#0a0c10;
  --deep-glow:#2b3240;
  --depth:0;
  --stage-edge:color-mix(in srgb,var(--deep-edge) calc(var(--depth) * 100%),var(--scene-edge));
  --stage-bg:radial-gradient(ellipse at 60% 45%,color-mix(in srgb,var(--deep-glow) calc(var(--depth) * 100%),var(--scene-glow)) 0%,
    color-mix(in srgb,var(--deep) calc(var(--depth) * 100%),var(--scene)) 50%,var(--stage-edge) 100%);
  --scrim:rgba(13,42,92,.6); /* notes over the scene */
  --highlight:#ffd36b;     /* the particle a story follows: scene only, never interface */
  /* shape */
  --shadow:0 16px 40px rgba(5,20,50,.4);
  --shadow-s:0 6px 18px rgba(5,20,50,.25);
  --r-card:16px;
  --r-dialog:18px;
  --r-strip:10px;
  --hdr:52px;              /* the header bar */
  --devh:0px;              /* the strip above everything on every copy but production, and on production while it is a preview (index.html #devStrip): below */
  --safe-top:calc(env(safe-area-inset-top,0px) + var(--devh));   /* the top inset: the notch and the strip */
  --focus:#2154ac;         /* focus rings on light grounds; on blue they are --on-blue */
  /* type */
  --font:"Barlow Semi Condensed","Arial Narrow","Roboto Condensed",system-ui,sans-serif;
  --font-display:"Source Serif 4",Georgia,"Times New Roman",serif;
}
/* scripts Barlow lacks (i18n/langs.js LANGS `font`): the i18n module adds a per-language fallback family in front of
   system-ui. Source Serif 4 covers Greek and Cyrillic; the other scripts fall back to Noto at 600, upright (no fake
   italic). Barlow comes first, so Latin words (and English not yet translated) look as they do everywhere else;
   Hebrew's Noto alone comes first, as it always has. */
:root[lang="el"],:root[lang="bg"],:root[lang="sr"],:root[lang="uk"],:root[lang="ru"]{--font:"Barlow Semi Condensed","Noto Sans",system-ui,sans-serif}
:root[lang="he"]{--font:"Noto Sans Hebrew","Barlow Semi Condensed",system-ui,sans-serif;--font-display:"Source Serif 4","Noto Sans Hebrew",system-ui,serif}
:root[lang="ar"]{--font:"Barlow Semi Condensed","Noto Sans Arabic",system-ui,sans-serif;--font-display:"Source Serif 4","Noto Sans Arabic",system-ui,serif}
:root[lang="ur"]{--font:"Barlow Semi Condensed","Noto Nastaliq Urdu",system-ui,sans-serif;--font-display:"Source Serif 4","Noto Nastaliq Urdu",system-ui,serif}
:root[lang="hi"]{--font:"Barlow Semi Condensed","Noto Sans Devanagari",system-ui,sans-serif;--font-display:"Source Serif 4","Noto Sans Devanagari",system-ui,serif}
:root[lang="zh-Hans"]{--font:"Barlow Semi Condensed","Noto Sans SC",system-ui,sans-serif;--font-display:"Source Serif 4","Noto Sans SC",system-ui,serif}
:root[lang="zh-Hant"]{--font:"Barlow Semi Condensed","Noto Sans TC",system-ui,sans-serif;--font-display:"Source Serif 4","Noto Sans TC",system-ui,serif}
:root[lang="ja"]{--font:"Barlow Semi Condensed","Noto Sans JP",system-ui,sans-serif;--font-display:"Source Serif 4","Noto Sans JP",system-ui,serif}
:root[lang="ko"]{--font:"Barlow Semi Condensed","Noto Sans KR",system-ui,sans-serif;--font-display:"Source Serif 4","Noto Sans KR",system-ui,serif}
/* Korean breaks lines between words, not inside them (a word too long for its box still breaks, as a last resort) */
:root[lang="ko"]{word-break:keep-all;overflow-wrap:break-word}
/* Urdu's Nastaliq runs tall, its words stepping down to the line: lines set for Latin (1.1 to 1.5) overlap, so its
   text gets room everywhere a line-height is set for one or two classes (the icons' SVG keeps its own) */
:root[lang="ur"] body :not(svg,svg *){line-height:1.9}
/* display type: the wordmark, card, dialog and panel titles, the holder's name, the intro's choices. Hebrew, Arabic,
   Devanagari, Chinese, Japanese and Korean letters come from Noto, upright: there is no italic face and none is
   synthesised. */
.display{font-family:var(--font-display);font-style:italic;font-weight:600;font-synthesis:none}
/* the strip's room: on every copy but production, and on production while the site is a preview (index.html's
   data-instance and data-preview, from the first paint), not in embed mode; a page without data-instance
   (credits.html) has none */
:root[data-instance]:not([data-instance="production"]):not(.embed),:root[data-instance][data-preview]:not(.embed){--devh:20px}
