/* SCADA Drag's Main screen, view only (scada-screen.js). The drawing itself is
 * SVG with presentation attributes; this file only places it. No inline
 * styles (CSP style-src 'self'). */

@font-face {
  /* Arimo Bold: kl-ui's own font (crates/kl-ui/fonts, SIL OFL), metric
   * compatible with the Arial Bold that AVEVA draws with. Latin subset. */
  font-family: "Arimo";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/arimo-bold-latin.woff2") format("woff2");
}

.scada-screen { container-type: inline-size; position: relative; }
.scada-svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.scada-full { background: #7e7e7e; border-radius: 6px; }

/* Controls: greyed in the drawing; here only the pointer says "not here". */
.scada-hit { cursor: not-allowed; }
/* System Info and Back: the two working buttons (they switch the view here). */
.scada-nav { cursor: pointer; outline: none; }
.scada-nav:focus-visible { stroke: #ffff31; stroke-width: 6; }
.scada-back-svg { max-width: 240px; justify-self: end; border-radius: 4px; }

/* The latched E-stop: AVEVA blinks the yellow disc fast. */
.scada-blink { animation: scada-blink 0.5s steps(1, end) infinite; }
@keyframes scada-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scada-blink { animation: none; } }

/* Narrow: the full screen's smallest text would be under 6 px. The same
 * tiles and panel, stacked. */
.scada-stack { display: none; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); background: #7e7e7e; padding: 8px; border-radius: 6px; }
.scada-tile-svg, .scada-panel-svg { border-radius: 4px; }
.scada-panel-svg { background: #414141; max-width: 420px; justify-self: center; }
@container (max-width: 899px) {
  .scada-full { display: none; }
  .scada-stack { display: grid; }
}

.scada-hint {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); margin: 0;
  padding: 8px 14px; border-radius: 8px; background: #141414; color: #fff;
  font: 600 14px/1.3 system-ui, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.35); pointer-events: none; z-index: 2;
}
.scada-hint[hidden] { display: none; }
