/* Qrypt BLAST for VPP — simulation overrides.
   Copyright (c) 2026 Qrypt, Inc. All rights reserved.
   Loaded after the dashboard's style.css. The public simulation drops the
   local-only panels (setup commands, readiness, support summary), so the grid
   areas are redefined here. */

/* height:auto lets the embedding page size the iframe to the content, up and down. */
html, body { height: auto; min-height: 0; }

.sim-banner {
  padding: 10px 28px;
  background: rgba(34, 211, 238, 0.10);
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--fg-dim);
  font-size: 13px;
}
.sim-banner strong { color: var(--accent-2); }

.grid.sim-grid {
  grid-template-areas:
    "now      now"
    "topology tour"
    "topology psk"
    "pings    peers"
    "actions  events";
}
.now-panel { grid-area: now; }
/* Keep heading order (h1 > h2) but match the dashboard's ".now-summary h3" look,
   instead of the uppercase ".panel h2" label style. */
.panel.now-panel .now-summary h2 {
  margin: 6px 0 5px; color: var(--fg); font-size: 20px; font-weight: 600;
  line-height: 1.15; letter-spacing: -0.015em; text-transform: none;
}
.now-panel p { margin: 0 0 10px; color: var(--fg-dim); }

@media (max-width: 1100px) {
  .grid.sim-grid {
    grid-template-areas:
      "now"
      "topology"
      "tour"
      "psk"
      "pings"
      "peers"
      "events"
      "actions";
  }
  .sim-banner { padding: 10px 18px; }
}

/* WCAG 1.4.3: white on the dashboard's #f43f5e is 3.67:1. Use the kit's
   --q-danger (#B42318), 6.57:1, for the public page. */
.actions button.danger { background: #B42318; border-color: #B42318; color: #fff; }
.actions button.danger:hover { filter: none; background: #912018; }

/* Faded log lines used opacity, which dropped below 4.5:1. Fade by colour. */
#event-log li.fade { opacity: 1; color: var(--fg-dim); }
#event-log li.fade .ev-time { color: var(--muted); }
#event-log li.fade.error { color: #fda4af; }   /* light red, 8.81:1 on the panel */

/* Paused: stop every animation, including the outage pulse (WCAG 2.2.2). */
body[data-frozen="true"] *,
body[data-frozen="true"] *::before,
body[data-frozen="true"] *::after { animation-play-state: paused !important; transition: none !important; }

/* Keyboard focus must stay visible on the dark theme. */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
