/* Concourse's palette and type for the web deck runtime, from the brand pack's tokens (design/concourse-tokens.css).
   Light by default, as the app is: linen paper, peat ink and peat buttons, Harbour for focus and links. Scarlet is
   the one lit colour: it marks the one thing that matters on a slide and is never a button. Atkinson Hyperlegible
   Next for titles and text, Atkinson Hyperlegible Mono for figures and labels (Rob's locked picks). */
:root {
  --ns-primary: #211C18; --ns-primary-2: #29231E; --ns-primary-3: #1D1915; --ns-primary-rgb: 33,28,24; --ns-primary-3-rgb: 29,25,21;
  --ns-accent: #3E6A96; --ns-accent-2: #6F98C2; --ns-accent-deep: #3E6A96; --ns-accent-rgb: 62,106,150;
  --ns-paper: #F6F3EE; --ns-ink: #211C18; --ns-muted: #6E655C; --ns-line: #E5DFD5;
  --ns-good: #2E7D4F; --ns-bad: #B42318;
  --ns-sans: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --c-lit: #E8322E;
}

/* Type: Atkinson Hyperlegible Next for titles and figures, Mono for labels */
.slide .ns-title, .slide h1, .slide h2, .slide h3, .slide .ns-stat b, .ns-cover .ns-kpi b, .ns-div .num, .slide .card.num span, .slide .st span {
  font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif !important; letter-spacing: -.015em; }
.slide .ns-title { font-weight: 700 !important; }
.slide .ns-kicker, .slide .ns-chip, .ns-div .ph, #ns-foot .ph, .slide .option em, .slide .ol-stats span {
  font-family: 'Atkinson Hyperlegible Mono', ui-monospace, monospace !important; font-weight: 500; }
.slide .ns-kicker { color: var(--ns-accent-deep); }
.slide .ns-kicker::before { background: var(--ns-accent); }

/* Dark grounds: night with the Handover motif instead of the runtime's panels */
.ns-cover, .ns-div { background: #1D1915; }
.ns-cover .ns-art, .ns-cover .ns-scrim, .ns-div .ns-art, .ns-div .ns-scrim { display: none; }
.ol-texture { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  --mf-tick: rgba(246, 241, 233, .16); --mf-strong: rgba(246, 241, 233, .3); }
.ol-texture .h-motif { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-motif .mf-t { fill: var(--mf-tick); }
.h-motif .mf-t.b { fill: var(--mf-strong); }
.h-motif .mf-lit { fill: #E8322E; }
.h-motif .mf-halo { fill: none; stroke: #E8322E; stroke-width: 2; opacity: .5; }
/* On the cover and close the motif fades out behind the words, so it never fights the title */
.ns-cover .ol-texture .h-motif, .ol-close .ol-texture .h-motif { -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 40%, #000 72%); mask-image: linear-gradient(100deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 40%, #000 72%); }
.slide.ol-light { isolation: isolate; }
.slide.ol-light > .ol-texture { z-index: -1; --mf-tick: rgba(33, 28, 24, .1); --mf-strong: rgba(33, 28, 24, .18); }
.slide.ol-light > .ol-texture .h-motif { top: 0; bottom: auto; height: 300px; -webkit-mask-image: linear-gradient(255deg, #000 0%, transparent 42%); mask-image: linear-gradient(255deg, #000 0%, transparent 42%); }
.slide.ol-light > .ol-texture .ol-rule { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: #211C18; }
@media (prefers-reduced-motion: reduce) { .h-motif * { animation: none; } }

/* Cover and openers: Concourse by Libra Europe */
.ol-brandrow { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 64px; }
.ol-lockup { display: flex; flex-direction: column; gap: 16px; }
.ol-lockup .wm { height: 60px; width: auto; }
.ol-by { display: flex; align-items: center; gap: 12px; font-family: 'Atkinson Hyperlegible Mono', monospace !important; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,241,233,.72); }
.ol-by img { height: 34px; }
.ns-div .ol-mini { position: absolute; right: calc(var(--ox, 0px) + 120px); top: 96px; height: 40px; opacity: .9; }
.ns-cover h1 span { color: #A8C4E0; }
.ns-cover .ns-kpi.accent b { color: #F6F3EE; }
.ns-start { background: #F6F3EE !important; color: #211C18 !important; }

/* Footer logo: the Libra Europe logo in its own colours; the white version on dark slides */
#stage.ns-dark #ns-foot .logo-img { filter: none; }
#ns-foot .logo { -webkit-mask: none !important; mask: none !important; background: var(--ns-logo) right center / contain no-repeat !important; }
#stage.ns-dark #ns-foot .logo { background-image: var(--logo-light) !important; }

.ol-dwm { filter: none; }
/* Scrollbars: thin and quiet, as in the app */
html, body, * { scrollbar-width: thin; scrollbar-color: rgba(110,101,92,.4) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(110,101,92,.4); border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }
.h-motif.unlit .mf-lit, .h-motif.unlit .mf-halo { display: none; }
