/* ── Base reset & element defaults ─────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

.body--gate {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--f-body); }
input, select, textarea { font-family: var(--f-body); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* htmx-indicator: replicates htmx's default styles in CSS so we can disable
   htmx's auto-injected <style> (which violates our strict CSP nonce policy).
   See the matching <meta name="htmx-config"> tag in head-*.html partials. */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .no-print { display: none !important; }
}

.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;
}

.flex-spacer { flex: 1; }
