/* Critical loader fallback.
   The server-rendered loader is markup only; its full styling lives in
   forum.css. Keeping these few rules in a separate file that is loaded first
   means a stale or half-deployed forum.css can never expose the loader as
   plain text at the top of the page. Same-origin, so the CSP still allows it. */
#boot-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg, #f6f5fa);
}

#boot-loader:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#boot-loader .page-transition-card {
  display: grid;
  justify-items: center;
  gap: 14px;
}

#boot-loader .page-transition-name {
  color: var(--text, #1f1d2b);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#boot-loader .page-transition-bar {
  width: 160px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line, #e6e3f0);
}

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