/* Ordelvio News: the form every page wears.
   The site's form is the hologram deck of the main room (design/sections/room-nebula.js): a bright blue nebula
   behind everything, glass panels with cut corners inside a lit line, pictures and players as screens in a glowing
   ring, wide upper-case labels, light numerals. This file holds what every page shares: the values, the recipes for
   a panel and a screen, the sky and the base of a page. The Pages sections link it as their own stylesheet; the
   feed joins it in front of news.css (feed/tools/build-assets.mjs), so both halves of the site read one set of
   values. Local system fonts only; identity artwork keeps its own colours and stands on the sky without a plate. */
:root {
  color-scheme: dark;
  /* Space and light */
  --holo-space: #030a24;
  --holo-deep: #04103a;
  --holo-ink: #ecfdff;          /* text on the deck */
  --holo-bright: #f2feff;       /* titles and numerals */
  --holo-text: #d6eafa;         /* long reading text */
  --holo-dim: #a5cfea;          /* secondary text */
  --holo-faint: #93b9d9;        /* the smallest metadata, on panels only; 4.5:1 at a panel's brightest point */
  --holo-accent: #6ff6ff;
  --holo-edge: #b6fdff;         /* the bright corner strokes of a frame */
  --holo-blue: #38c6ff;
  --holo-glow: #1e9bff;
  --holo-line: #6ff6ff59;
  --holo-hair: #6ff6ff24;
  --holo-warn: #ffb866;
  --holo-ok: #86ffb8;
  --holo-on-accent: #031233;    /* text on a filled control */
  /* Glass: a reading panel keeps its long text above 7:1, also under its own sheen over the brightest sky */
  --holo-glass: linear-gradient(180deg, #0a2a6ce0, #061538eb);
  --holo-glass-thin: #071a3fb8;
  --holo-fill: linear-gradient(180deg, #8ffaff, #38c6ff);
  /* Sections and topics, as lights */
  --holo-news: #ffd27a;
  --holo-live: #ff7aa5;
  --holo-economy: #86ffb8;
  --holo-about: #e3f4ff;
  --holo-violet: #c9a8ff;
  --holo-sky-blue: #7ab8ff;
  /* Type */
  --holo-font: "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --holo-read: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --holo-title-glow: 0 0 14px #6ff6ff73, 0 0 44px #1e7bffb3, 0 0 90px #1e5bff80;
  --holo-label-glow: 0 0 12px #1e9bff;
  --holo-ease: cubic-bezier(.22, .8, .24, 1);
  /* A panel: glass with cut corners inside a thin line, brighter strokes at each corner, faint scan lines.
     It is the background of a layer clipped with the chamfer of the same size. */
  --holo-cut: 14px;
  --holo-chamfer: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  --holo-chamfer-lg: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
  --holo-chamfer-sm: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  --holo-frame:
    linear-gradient(to bottom right, #b6fdff calc(50% + 2px), #0000 calc(50% + 2px)) left top / 14px 14px no-repeat,
    linear-gradient(to bottom left, #b6fdff calc(50% + 2px), #0000 calc(50% + 2px)) right top / 14px 14px no-repeat,
    linear-gradient(to top right, #b6fdff calc(50% + 2px), #0000 calc(50% + 2px)) left bottom / 14px 14px no-repeat,
    linear-gradient(to top left, #b6fdff calc(50% + 2px), #0000 calc(50% + 2px)) right bottom / 14px 14px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) left 14px top 0 / 26px 2px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) right 14px top 0 / 26px 2px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) left 14px bottom 0 / 26px 2px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) right 14px bottom 0 / 26px 2px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) left 0 top 14px / 2px 26px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) right 0 top 14px / 2px 26px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) left 0 bottom 14px / 2px 26px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) right 0 bottom 14px / 2px 26px no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) left top / 100% 1px no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) left bottom / 100% 1px no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) left top / 1px 100% no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) right top / 1px 100% no-repeat;
  --holo-frame-lg:
    linear-gradient(to bottom right, #b6fdff calc(50% + 2.4px), #0000 calc(50% + 2.4px)) left top / 22px 22px no-repeat,
    linear-gradient(to bottom left, #b6fdff calc(50% + 2.4px), #0000 calc(50% + 2.4px)) right top / 22px 22px no-repeat,
    linear-gradient(to top right, #b6fdff calc(50% + 2.4px), #0000 calc(50% + 2.4px)) left bottom / 22px 22px no-repeat,
    linear-gradient(to top left, #b6fdff calc(50% + 2.4px), #0000 calc(50% + 2.4px)) right bottom / 22px 22px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) left 22px top 0 / 44px 3px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) right 22px top 0 / 44px 3px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) left 22px bottom 0 / 44px 3px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) right 22px bottom 0 / 44px 3px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) left 0 top 22px / 3px 44px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) right 0 top 22px / 3px 44px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) left 0 bottom 22px / 3px 44px no-repeat,
    linear-gradient(#b6fdff, #b6fdff) right 0 bottom 22px / 3px 44px no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) left top / 100% 1px no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) left bottom / 100% 1px no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) left top / 1px 100% no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) right top / 1px 100% no-repeat;
  --holo-frame-sm:
    linear-gradient(to bottom right, #b6fdff calc(50% + 1.6px), #0000 calc(50% + 1.6px)) left top / 8px 8px no-repeat,
    linear-gradient(to bottom left, #b6fdff calc(50% + 1.6px), #0000 calc(50% + 1.6px)) right top / 8px 8px no-repeat,
    linear-gradient(to top right, #b6fdff calc(50% + 1.6px), #0000 calc(50% + 1.6px)) left bottom / 8px 8px no-repeat,
    linear-gradient(to top left, #b6fdff calc(50% + 1.6px), #0000 calc(50% + 1.6px)) right bottom / 8px 8px no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) left top / 100% 1px no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) left bottom / 100% 1px no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) left top / 1px 100% no-repeat,
    linear-gradient(#6ff6ff8c, #6ff6ff8c) right top / 1px 100% no-repeat;
  --holo-scan: repeating-linear-gradient(0deg, #a8ecff0d 0 1px, #0000 1px 4px);
  --holo-sheen: radial-gradient(120% 80% at 50% 0, #49bcff2b, #0000 72%);
  /* The light around a panel and inside its line */
  --holo-halo: 0 0 34px -12px #1e9bff, 0 0 110px -44px #1e9bff;
  --holo-halo-near: 0 0 30px -8px #38c6ff, 0 0 120px -36px #1e9bff;
  --holo-inner: inset 0 0 26px -10px #1e9bff;
  /* A screen: a picture or a player in a ring of light */
  --holo-screen: 0 0 0 1.5px #6ff6ff, 0 0 42px -6px #1e9bff, 0 0 130px -34px #1e9bff;
  /* A rule: a hair of light that is brightest at its middle */
  --holo-rule: linear-gradient(90deg, #6ff6ff00, #6ff6ff59 14%, #b6fdff 50%, #6ff6ff59 86%, #6ff6ff00);
  /* The sky: the nebula of the main room, painted a little calmer than in the room so that a label standing
     directly on it keeps 4.5:1 at its brightest point, and three sizes of stars that repeat at different steps */
  --holo-sky:
    radial-gradient(70% 60% at 22% 24%, #2a6bff7a, #0000 66%),
    radial-gradient(60% 55% at 80% 30%, #22c8ff52, #0000 64%),
    radial-gradient(80% 70% at 55% 90%, #3a34d070, #0000 70%);
  --holo-stars:
    radial-gradient(2px 2px at 71px 113px, #fff, #9fdcff80 55%, #0000) 0 0 / 613px 613px,
    radial-gradient(2.2px 2.2px at 402px 57px, #fff, #9fdcff80 55%, #0000) 0 0 / 613px 613px,
    radial-gradient(1.8px 1.8px at 251px 388px, #fff, #b9c8ff80 55%, #0000) 0 0 / 613px 613px,
    radial-gradient(2px 2px at 548px 471px, #fff, #9fdcff80 55%, #0000) 0 0 / 613px 613px,
    radial-gradient(1.3px 1.3px at 37px 201px, #e8f6ff, #0000) 0 0 / 397px 397px,
    radial-gradient(1.4px 1.4px at 163px 61px, #dcefff, #0000) 0 0 / 397px 397px,
    radial-gradient(1.2px 1.2px at 289px 263px, #e8f6ff, #0000) 0 0 / 397px 397px,
    radial-gradient(1.3px 1.3px at 351px 149px, #cfe4ff, #0000) 0 0 / 397px 397px,
    radial-gradient(1.4px 1.4px at 102px 337px, #e8f6ff, #0000) 0 0 / 397px 397px,
    radial-gradient(1px 1px at 19px 43px, #bcd9f5cc, #0000) 0 0 / 251px 251px,
    radial-gradient(1px 1px at 88px 171px, #bcd9f5b3, #0000) 0 0 / 251px 251px,
    radial-gradient(.9px .9px at 139px 97px, #bcd9f5cc, #0000) 0 0 / 251px 251px,
    radial-gradient(1px 1px at 197px 219px, #bcd9f599, #0000) 0 0 / 251px 251px,
    radial-gradient(.9px .9px at 226px 23px, #bcd9f5b3, #0000) 0 0 / 251px 251px,
    radial-gradient(1px 1px at 61px 239px, #bcd9f599, #0000) 0 0 / 251px 251px;
}

/* The sky stands still behind the page while the page scrolls over it. The canvas colour under it is the sky's own
   ground, so a phone's sliding toolbar never uncovers another colour. */
html { background: var(--holo-deep); scrollbar-color: #2a7bff var(--holo-space); }
html::before {
  content: ""; position: fixed; z-index: -1; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; pointer-events: none;
  background: var(--holo-stars), var(--holo-sky), linear-gradient(180deg, var(--holo-space), var(--holo-deep) 55%, var(--holo-space));
}
/* A room paints its own scene over the whole window, so the sky is not drawn under it. */
html[data-room]::before { content: none; }
::selection { background: #6ff6ff; color: #031233; }

/* The language switch of the group's standard (brand/languages) wears the form through the values it offers a
   site. In a room other than the main one it keeps the standard's own dark dress. */
html:not([data-room]) .l10n-switch, html[data-room="nebula"] .l10n-switch {
  --l10n-bg: #071a3feb; --l10n-fg: var(--holo-ink); --l10n-muted: var(--holo-dim); --l10n-border: var(--holo-line);
  --l10n-hover: #6ff6ff1f; --l10n-accent: var(--holo-accent); --l10n-shadow: var(--holo-halo), var(--holo-inner);
  --l10n-font: var(--holo-read);
}

@media (forced-colors: active) {
  html::before { display: none; }
}
/* On paper the deck is ink on white: every colour a page takes from the values above turns dark. */
@media print {
  :root {
    --holo-ink: #000; --holo-bright: #000; --holo-text: #111; --holo-dim: #333; --holo-faint: #444; --holo-accent: #000;
    --holo-edge: #000; --holo-line: #0006; --holo-hair: #0003; --holo-title-glow: none; --holo-label-glow: none;
    --holo-halo: none; --holo-halo-near: none; --holo-inner: none; --holo-screen: 0 0 0 1px #000;
  }
  html { background: #fff; }
  html::before { display: none; }
}
