/* Ekalix Radar - Always On as one living picture (CONTRACT-V30 P3; alwayson.js on flowkit.js / flowkit.css).

   The order a person reads it in: the verdict (words, its next step, one action), the question "if the primary is
   lost now" (answered in words at once; a button shows it on the picture), then the picture or - one key, T - the
   table of the same replicas and numbers.

   The what-if is drawn with the same nodes and links: the primary struck out, the replica that takes over marked,
   the data at risk and the redo named on its link, the listener's path moved. Played once, in the order it would
   happen (opacity and transform only), and it returns by itself; with Animation: Off it is the finished still.
   Material as the kits': no filter, no blurred or inset shadow, no gradient. Classes ao-*. */
.ao { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ao-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px 22px; align-items: start; }
.ao-top > :only-child { grid-column: 1 / -1; }
.ao.ao-slim .ao-top { grid-template-columns: minmax(0, 1fr); }

/* ---- the verdict ---- */
.ao-verdict { border-left: 3px solid var(--tone); padding: 1px 0 2px 12px; min-width: 0; }
.ao-vhead { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 650; color: var(--text); letter-spacing: -.005em; overflow-wrap: anywhere; }
.ao-vdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tone); margin-right: 9px; vertical-align: 2px; }
.ao-vmore { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); max-width: 74ch; }
.ao-vnext { margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); max-width: 74ch; }
.ao-vnext b { color: var(--text); }
.ao-vnext .btn.ao-go { margin-left: 10px; white-space: nowrap; vertical-align: 1px; }
.ao .btn.ao-go, :root[data-theme] .ao .btn.ao-go, :root[data-theme] .ao .btn.ao-go:hover:not(:disabled),
.ao .btn.ao-ask, :root[data-theme] .ao .btn.ao-ask, .ao .btn.ao-save, :root[data-theme] .ao .btn.ao-save { box-shadow: none; }
:root[data-ekx-template="next"] .nx-app .ao .btn.ao-go { color: var(--on-accent); font-weight: 700; }
/* the page's line over several groups */
.ao-page { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 12px; padding: 1px 0 2px 12px; border-left: 3px solid var(--tone); }
.ao-page .ao-vhead { font-size: 20px; }
.ao-page > * { min-width: 0; max-width: 100%; }
.ao-page .ao-pcount { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.ao-page a { font-size: 13px; }

/* ---- if the primary is lost now ---- */
.ao-lostbox { border: 1px solid var(--border); border-radius: var(--r-s); padding: 9px 12px 10px; background: var(--surface-1); min-width: 0; }
.ao-lostbox.on { border-color: var(--accent-bd); background: var(--accent-bg); }
.ao-lq { margin: 0; font-size: var(--fs-micro); font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.ao-la { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.ao-lshort { color: var(--text-2); }
.ao-lostbox.how-forced .ao-la b, .ao-lostbox.how-none .ao-la b { color: var(--critical); }
.ao-ll { margin: 0; padding: 8px 12px 8px 28px; font-size: 12.5px; line-height: 1.55; color: var(--text-2); border: 1px solid var(--accent-bd); border-radius: var(--r-s); background: var(--accent-bg); columns: 2 340px; column-gap: 34px; }
.ao-ll li { break-inside: avoid; }
.ao-ll .dim { color: var(--text-3); }
.ao-lhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.ao-safe { margin: 5px 0 0; font-size: 11.5px; color: var(--text-3); }
.ao .btn.ao-ask.on { border-color: var(--accent-bd); color: var(--text); }

/* ---- the bar: whose readings, picture or table ---- */
.ao-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; color: var(--text-3); }
.ao-when { white-space: nowrap; }
.ao-when.live { color: var(--ok); font-weight: 600; }
.ao-ldot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.ao-views { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-s); overflow: hidden; }
.ao-views button { appearance: none; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; padding: 4px 11px; cursor: pointer; }
.ao-views button + button { border-left: 1px solid var(--border); }
.ao-views button:hover { color: var(--text); background: var(--surface-2); }
.ao-views button.on { background: var(--accent-bg); color: var(--text); }
.ao-views button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ao-views kbd { margin-left: 5px; font-size: 10px; padding: 0 4px; }

/* ---- the picture ---- */
.ao-stage { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.ao-scene { margin: 2px 0 0; }
.ao-spine { stroke: var(--border-2); stroke-width: 1.4; }
.ao-read { flex: 1 1 220px; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.ao-note, .ao-none { margin: 0; font-size: 12.5px; color: var(--text-3); }
.ao-table table + table { margin-top: 12px; }
.ao-table td, .ao-table th { padding-left: 7px; padding-right: 7px; }
/* the figures' headings and a name's tag may take a second line, so the table fits Next's column without scrolling */
.ao-table th.num { white-space: normal; }
.ao-table .ao-tag-pri { margin-left: 6px; }
/* a phone: each replica is a card of its own - label left, value right - instead of a table that scrolls sideways */
.ao.ao-slim .ao-table { max-height: none; }
.ao.ao-slim .ao-table thead { display: none; }
.ao.ao-slim .ao-table table, .ao.ao-slim .ao-table tbody { display: block; }
.ao.ao-slim .ao-table tr { display: block; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
.ao.ao-slim .ao-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 2px 4px; border: 0; text-align: right; white-space: normal; }
.ao.ao-slim .ao-table td::before { content: attr(data-th); flex: none; color: var(--text-3); font-size: 11.5px; text-align: left; }
.ao.ao-slim .ao-table td.nm { font-weight: 650; }
.ao.ao-slim .ao-seeds { display: none; }
.ao-tag-pri { color: var(--accent); }
.ao-tag-live { margin-left: 6px; color: var(--ok); }
.ao-st { color: var(--tone); font-weight: 600; }
.ao-row-taker td:last-child { color: var(--text); font-weight: 600; }

/* ---- the what-if on the picture ---- */
.ao-scene.ao-lost .is-lost { opacity: .45; }
.ao-strike { stroke: var(--critical); stroke-width: 2.6; stroke-linecap: round; }
.ao-lostlab { fill: var(--critical); font-family: var(--font); font-size: 11.5px; font-weight: 650; paint-order: stroke; stroke: var(--fk-paper); stroke-width: 4px; stroke-linejoin: round; }
.ao-scene.ao-lost .is-dimlink { opacity: .2; }
.ao-scene.ao-lost .is-rest { opacity: .6; }
.ao-scene.ao-lost .is-taker .fk-card { stroke: var(--accent); stroke-width: 2.4; fill: var(--surface-3); }
.ao-scene.ao-lost .is-takerlink .fk-rail, .ao-scene.ao-lost .is-takerlink .fk-head { opacity: .45; }
.ao-follow line { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; }
.ao-follow text { fill: var(--accent); font-family: var(--font); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--fk-paper); stroke-width: 4px; stroke-linejoin: round; }
.ao-wrisk, .ao-wredo { font-family: var(--font); font-size: 11.5px; font-weight: 650; paint-order: stroke; stroke: var(--fk-paper); stroke-width: 4px; stroke-linejoin: round; }
.ao-wrisk { fill: var(--critical); }
.ao-wrisk.none { fill: var(--ok); }
.ao-wredo { fill: var(--text); }

/* played once, in the order it would happen: the primary goes, its links fall still, a replica takes over, what is
   at risk, the redo it must finish, the listener follows. Opacity and transform only. */
@keyframes ao-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes ao-from1 { from { opacity: 1; } }
@keyframes ao-from5 { from { opacity: .45; } }
@keyframes ao-drain { to { transform: scaleX(0); } }
.ao-scene.ao-play .is-lost { animation: ao-from1 .6s ease-out both; }
.ao-scene.ao-play .ao-gone { animation: ao-in .3s ease-out .4s both; }
.ao-scene.ao-play .is-dimlink { animation: ao-from1 .5s ease-out .6s both; }
.ao-scene.ao-play .is-rest { animation: ao-from1 .5s ease-out .6s both; }
.ao-scene.ao-play .is-taker { animation: ao-from5 .5s ease-out 1.2s both; }
.ao-scene.ao-play .ao-wrisk { animation: ao-in .4s ease-out 2s both; }
.ao-scene.ao-play .ao-wredo { animation: ao-in .4s ease-out 2.9s both; }
.ao-scene.ao-play .is-takerlink .at-end .fk-res-fill { animation: ao-drain 2.2s ease-in 3.4s forwards; }
.ao-scene.ao-play .ao-follow { animation: ao-in .5s ease-out 4.2s both; }
:root[data-motion="off"] .ao-scene *, :root[data-motion-pref="off"] .ao-scene * { animation: none !important; }

/* ---- print: the still picture and the words; no controls ---- */
@media print {
  .ao-ask, .ao-views, .ao-save { display: none !important; }
  .ao-scene * { animation: none !important; }
}

/* ---- wide: the words beside the picture (a group 1000 px or more, the picture showing) ---- */
.ao.ao-wide { display: grid; grid-template-columns: var(--ao-side, 360px) minmax(0, 1fr); gap: 10px 24px; align-items: start; }
.ao-side, .ao-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ao.ao-wide .ao-top { grid-template-columns: minmax(0, 1fr); }
.ao.ao-wide > .ao-note { grid-column: 1 / -1; }
.ao.ao-wide .ao-vhead { font-size: 18px; }
.ao.ao-wide .ao-bar { gap: 6px 10px; }
.ao.ao-wide .ao-read:empty { display: none; }
.ao.ao-wide .ao-ll { columns: 1; }
