/* Ekalix Radar - the flow kit's material (CONTRACT-V30 P3; flowkit.js draws with it, alwayson.js is the first scene).

   The chart kit's light (chartkit.css, --ck-*): ONE light from the top left - a card is a line of light along its
   top edge and a line of shade along its bottom one; a tank is a bed let into the page with its limits engraved.
   Plain fills and lines only: NO filter, NO blurred or inset shadow, NO radial gradient, no gradient at all (every
   kind of those is shader programs a first visit must compile before its first smooth frame).

   WHAT MOVES: the packet strips (transform: translate, one layer a link, started by .fk-run on the scene) and, when
   a reading changes, a tank's fill and a what-if's marks (transform / opacity transitions). Nothing else. Without
   .fk-run - Animation: Off, reduced motion, a hidden tab, a scene off screen, readings that are not live, print -
   the strips stand still where they are: the same picture, with the same numbers.

   Classes fk-*; tones from the page's .t-<tone> classes (--tone); only what Daylight needs is restated. */
.fk-scene { position: relative; max-width: 100%; --fk-paper: var(--surface-1); --fk-line: 1.7px; }
.fk-svg { position: absolute; left: 0; top: 0; display: block; overflow: visible; }
.fk-pk { position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; }

/* ---- a node: a card with a role and a state ---- */
.fk-node, .fk-link { outline: none; }
.fk-node.is-click, .fk-link.is-click { cursor: pointer; }
.fk-card { fill: var(--surface-2); stroke: var(--border-2); stroke-width: 1; }
.fk-card-hi { stroke: var(--ck-hi-soft); stroke-width: 1; }
.fk-card-lo { stroke: var(--ck-lo-soft); stroke-width: 1; }
.fk-edge { fill: var(--tone); }
.fk-node.k-primary .fk-card { fill: var(--surface-3); stroke: var(--tone-bd); stroke-width: 1.4; }
.fk-node.k-primary .fk-card-hi { stroke: var(--ck-hi); }
.fk-node.k-aux .fk-card { fill: var(--surface-1); stroke-dasharray: 4 3; }
.fk-node.is-click:hover .fk-card { stroke: var(--tone); }
.fk-node.is-sel .fk-card, .fk-node:focus-visible .fk-card { stroke: var(--accent); stroke-width: 2; }
.fk-nm { fill: var(--text); font-family: var(--font); font-size: 13px; font-weight: 650; }
.fk-mark { fill: var(--text-3); font-family: var(--font); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.fk-role { fill: var(--text-3); font-family: var(--font); font-size: 11px; }
.fk-ln { fill: var(--text-2); font-family: var(--font); font-size: 11.5px; }
.fk-ln.st { fill: var(--tone); font-weight: 650; }
.fk-ln.dim { fill: var(--text-3); }
.fk-ln.num { font-family: var(--mono); font-size: 11px; }

/* ---- a link: the line says how it works ---- */
.fk-hit { fill: transparent; stroke: none; }
.fk-link:focus-visible .fk-hit, .fk-link.is-sel .fk-hit { stroke: var(--accent); stroke-width: 1.5; fill: var(--accent-bg); }
.fk-link.is-click:hover .fk-hit { fill: var(--tone-bg); }
.fk-rail { stroke: var(--tone); stroke-width: var(--fk-line); stroke-linecap: round; fill: none; opacity: .86; }
.fk-rail.is-dash { stroke-dasharray: 7 6; stroke-linecap: butt; stroke-width: 2px; }
.fk-head { fill: var(--tone); }
.fk-link.k-plain .fk-rail { stroke: var(--tone); stroke-width: 1.4px; stroke-dasharray: 2 4; opacity: .7; }
.fk-link.k-plain .fk-head { opacity: .8; }
.fk-link.is-stopped .fk-rail { opacity: .55; }
.fk-link.is-stopped .fk-head { opacity: .55; }
.fk-bar { stroke: var(--tone); stroke-width: 3; stroke-linecap: butt; }
.fk-why { fill: var(--tone); font-family: var(--font); font-size: 11.5px; font-weight: 650; paint-order: stroke; stroke: var(--fk-paper); stroke-width: 4px; stroke-linejoin: round; }
/* lag: the gap between the arrowhead and the receiver */
.fk-gap-l { stroke: var(--tone); stroke-width: 1.2; stroke-dasharray: 1.5 3.5; opacity: .9; }
.fk-gap-e { stroke: var(--tone); stroke-width: 1.6; }
.fk-lagt { fill: var(--tone); font-family: var(--mono); font-size: 10.5px; font-weight: 600; paint-order: stroke; stroke: var(--fk-paper); stroke-width: 3.5px; stroke-linejoin: round; }

/* ---- a reservoir: a queue with its real size ---- */
.fk-res-bed { fill: var(--surface-3); }
.fk-res-fill { fill: var(--tone); transform-box: fill-box; transform-origin: 0 50%; transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.fk-res-rim { fill: none; stroke: var(--text-3); stroke-width: 1; }
.fk-res.is-unread .fk-res-rim { stroke-dasharray: 2 2; }
.fk-res-tick { stroke: var(--text-3); stroke-width: 1; }

/* ---- packets: one strip a link, moved by transform ---- */
.fk-flow { position: absolute; height: 0; transform-origin: 0 0; }
.fk-band { position: absolute; top: -6px; height: 12px; overflow: hidden; }
.fk-strip { position: absolute; left: 0; top: 0; height: 12px; transform: translateX(calc(-1 * var(--fk-gap, 40px))); }
.fk-strip i { position: absolute; top: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--tone); }
@keyframes fk-run { from { transform: translateX(calc(-1 * var(--fk-gap, 40px))); } to { transform: translateX(0); } }
.fk-scene.fk-run .fk-strip { animation-name: fk-run; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; }
/* without a graphics card every frame is drawn on the processor: the strips move in steps there (as the diagrams before them) */
:root[data-gfx="soft"]:not([data-motion-pref="full"]) .fk-scene.fk-run .fk-strip { animation-timing-function: steps(12, end); }
/* the page's switch is the last word, whatever the scene's script believes */
:root[data-motion="off"] .fk-scene .fk-strip, :root[data-motion-pref="off"] .fk-scene .fk-strip { animation-name: none; }
:root[data-motion="off"] .fk-res-fill, :root[data-motion-pref="off"] .fk-res-fill, .fk-scene.fk-off .fk-res-fill { transition: none; }

/* ---- the legend: what the signs mean ---- */
.fk-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.fk-lg { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.fk-lg .fk-sw { align-self: center; }
.fk-sw { display: inline-block; width: 26px; height: 8px; flex: none; position: relative; }
.fk-sw.sync { border-top: 1.7px solid var(--text-2); border-bottom: 1.7px solid var(--text-2); height: 6px; }
.fk-sw.async { border-top: 2px dashed var(--text-2); height: 0; }
.fk-sw.stop { border-top: 1.7px solid var(--critical); height: 0; }
.fk-sw.stop::after { content: ''; position: absolute; left: 9px; top: -6px; width: 4px; height: 10px; border-left: 2.5px solid var(--critical); border-right: 2.5px solid var(--critical); background: var(--fk-paper, var(--surface-1)); }
.fk-sw.pk { height: 6px; width: 6px; border-radius: 50%; background: var(--ok); margin: 0 10px; }
.fk-sw.tank { height: 8px; width: 22px; border: 1px solid var(--border-2); background: var(--ck-groove); border-radius: 2px; }
.fk-sw.tank::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 45%; background: var(--warning); }
.fk-sw.gap { border-top: 1.2px dotted var(--text-2); height: 0; width: 22px; }
.fk-sw.gap::after { content: ''; position: absolute; right: 0; top: -5px; height: 9px; border-right: 1.6px solid var(--text-2); }

/* ---- print and export: the still picture, on white paper ---- */
@media print {
  .fk-scene .fk-strip { animation: none !important; }
  .fk-res-fill { transition: none !important; }
}

/* ---- the flows in depth (flow3d.js; the 3D layer of a scene, ao3d.js for Always On) ----
   The canvas lies UNDER the scene's SVG, at the same size and places: the cards, names, numbers, reasons and focus
   rings stay the page's. While the layer is shown (.is-3d, after it has proved its frame rate) the deep field is the
   scene's paper in every theme, the cards are dark glass (a plain fill with alpha - no blur), and the 2D lines,
   tanks and packet strips give way to their 3D streams, rings and lights. Print and "Save picture" give the 2D
   picture: these rules are for the screen only, and the canvas is never printed. */
.fk-gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s ease-out; z-index: 0; border-radius: 10px; pointer-events: none; }
.fk-scene > .fk-svg { z-index: 1; }
.fk-scene > .fk-pk { z-index: 2; }
@media screen {
  .fk-scene.is-3d { --surface-1: #0b1322; --surface-2: rgba(14, 24, 40, .84); --surface-3: rgba(20, 33, 54, .9); --border-2: #2c3d58; --border: #22314a;
                    --text: #e9eff8; --text-2: #b8c5d8; --text-3: #8a9ab0; --fk-paper: #03060d; --ck-hi-soft: rgba(255, 255, 255, .09); --ck-lo-soft: rgba(0, 0, 0, .45); --ck-hi: rgba(255, 255, 255, .16); }
  .fk-scene.is-3d .fk-gl { opacity: 1; }
  .fk-scene.is-3d .fk-rail, .fk-scene.is-3d .fk-head, .fk-scene.is-3d .fk-res, .fk-scene.is-3d .fk-gap, .fk-scene.is-3d .fk-bar, .fk-scene.is-3d > .fk-pk, .fk-scene.is-3d .ao-spine { visibility: hidden; }
  :root[data-motion="off"] .fk-gl, :root[data-motion-pref="off"] .fk-gl { transition: none; }
}
@media print { .fk-gl { display: none !important; } }
.fk-3dw { display: inline-flex; align-items: center; gap: 4px 6px; }
.em-3dwhy.is-fb { color: var(--warning); }
