/* ============================================================
   Stand-alone status pages: 404, 500, maintenance (503) and the campaign
   redirect interstitial (core/templates/status_base.html). They used to load
   the Tailwind CDN (~120 KB of JS that builds CSS in the browser) and Plus
   Jakarta Sans; now this file plus hr-tokens.css. Values only from tokens.
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--hr-space-7) var(--hr-space-4);
  background: var(--hr-paper);
  color: var(--hr-ink);
  font-family: var(--hr-font-body);
  font-size: var(--hr-ui);
  line-height: var(--hr-lh-body);
  -webkit-font-smoothing: antialiased;
}

.status {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.status__logo {
  display: block;
  width: auto;
  height: var(--hr-space-10);
  margin: 0 auto var(--hr-space-12);
}

.status__kicker {
  margin: 0 0 var(--hr-space-3);
  color: var(--hr-graphite);
  font-size: var(--hr-kicker);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-kicker);
  text-transform: uppercase;
}

.status__title {
  margin: 0 0 var(--hr-space-4);
  font-family: var(--hr-font-display);
  font-size: var(--hr-h-puff);
  font-weight: var(--hr-w-bold);
  line-height: var(--hr-lh-heading);
}

.status__lead {
  margin: 0 0 var(--hr-space-9);
  color: var(--hr-graphite);
  font-size: var(--hr-dek);
}

.status__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hr-space-5);
}

/* Filled CTA (components/core/Button.jsx, variant "cta"): one per view. */
.status__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--hr-h-btn);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--hr-radius-pill);
  background: var(--hr-green-cta);
  color: var(--hr-paper);
  font-size: var(--hr-ui-lg);
  font-weight: var(--hr-w-semibold);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--hr-dur-color) var(--hr-ease);
}

.status__button:hover,
.status__button:focus-visible {
  background: var(--hr-green-deep);
}

/* Text link (components/core/TextLink.jsx, variant "inline"). */
.status__link {
  color: var(--hr-green-link);
  font-weight: var(--hr-w-semibold);
  text-decoration: none;
  transition: color var(--hr-dur-color) var(--hr-ease);
}

.status__link:hover,
.status__link:focus-visible {
  color: var(--hr-green-deep);
  text-decoration: underline;
}

.status__button:focus-visible,
.status__link:focus-visible {
  outline: none;
  box-shadow: var(--hr-focus-ring);
}

/* Bordered panel (maintenance, redirect): the card border, no shadow. */
.status__panel {
  padding: var(--hr-pad-box);
  border: var(--hr-card-border);
  border-radius: var(--hr-radius);
  background: var(--hr-paper);
}

.status__panel .status__lead {
  margin-bottom: 0;
}

.status__fact {
  margin: var(--hr-space-7) 0;
  padding: var(--hr-space-4);
  border-radius: var(--hr-radius-input);
  background: var(--hr-sand);
}

.status__fact .status__kicker {
  margin-bottom: var(--hr-space-1);
  font-size: var(--hr-kicker-xs);
}

.status__fact p:last-child {
  margin: 0;
  font-weight: var(--hr-w-semibold);
}

.status__meta {
  margin: var(--hr-space-10) 0 0;
  color: var(--hr-graphite);
  font-size: var(--hr-meta-sm);
}

/* Redirect: a quiet spinner while the tracking call is sent. */
.status__spinner {
  width: var(--hr-space-10);
  height: var(--hr-space-10);
  margin: 0 auto var(--hr-space-7);
  border: 3px solid var(--hr-mint);
  border-top-color: var(--hr-green-cta);
  border-radius: 50%;
  animation: status-spin 1s linear infinite;
}

@keyframes status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status__spinner {
    animation-duration: 3s;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
