/* ============================================================
   ROUTE-INTEGRITY-404-A1 — controlled unmatched-route UX
   ------------------------------------------------------------
   Standalone shell under RootLayout (no MainLayout / Navbar).
   Reuses ui-empty + action-btn tokens. Light/dark via CSS vars.
   ============================================================ */

.not-found-section {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  /* Subtle theme-aware wash inspired by login — not a copy, no animation. */
  background:
    radial-gradient(circle at 12% 0%, var(--color-accent-soft) 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, var(--color-accent-soft) 0%, transparent 50%),
    var(--color-bg-canvas);
  color: var(--color-text-primary);
}

.not-found-section__panel {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.not-found-section .not-found-screen {
  max-width: 36rem;
  margin-inline: auto;
}

.not-found-section .not-found-screen .ui-empty__title {
  font-size: var(--font-size-2xl, 1.75rem);
  overflow-wrap: anywhere;
}

.not-found-section .not-found-screen .ui-empty__description {
  max-width: 28rem;
  overflow-wrap: anywhere;
}

.not-found-section .not-found-screen .ui-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.not-found-section .not-found-screen .action-btn:focus-visible {
  outline: 2px solid var(--color-accent, var(--bs-primary));
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .not-found-section {
    padding: var(--space-4) var(--space-3);
  }

  .not-found-section .not-found-screen .ui-empty__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .not-found-section .not-found-screen .action-btn {
    justify-content: center;
    width: 100%;
  }
}
