/* ==========================================================================
   FSP Simulator — v4.0 Strict (Clinical Light Premium)
   Scope: fallback notice (missing React manifest) + login gate + React root.
   Tokens via tokens-v4.css · Card/Button via components.css (klz-*).
   Rules honoured: R01 white-first · R02 #2563EB CTA only · R14 Inter body.
   ========================================================================== */

/* ── Shell for the mounted React app ──────────────────────────────────── */
#kennti-fsp-root {
  min-height: 400px;
  font-family: var(--font-body);
  color: var(--on-surface);
}

/* ── Notice (render_shortcode fallback when manifest missing) ──────────── */
.klz-fsp-notice {
  max-width: 640px;
  margin: 2rem auto;
  text-align: center;
  font-family: var(--font-body);
  color: var(--on-surface-variant);
}

.klz-fsp-notice p {
  margin: 0;
  font-size: 1rem;
  line-height: var(--lh-body);
}

/* ── Login gate (unauthenticated user) ────────────────────────────────── */
.klz-fsp-gate {
  max-width: 480px;
  margin: 2rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.klz-fsp-gate__message {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--on-surface);
  line-height: var(--lh-body);
}

/* ── RTL (Arabic) ─────────────────────────────────────────────────────── */
[dir="rtl"] .klz-fsp-gate,
:lang(ar) .klz-fsp-gate {
  font-family: var(--font-ar);
  line-height: var(--lh-body-rtl);
}

[dir="rtl"] .klz-fsp-gate__message,
:lang(ar) .klz-fsp-gate__message {
  font-family: var(--font-ar);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .klz-fsp-gate,
  .klz-fsp-notice {
    margin: 1.5rem auto;
  }

  .klz-fsp-gate {
    padding-inline: 16px;
  }
}

/* ── Reduced motion — inherited from components, nothing extra needed ──── */
