/* ==========================================================================
   Saras · Base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--ink-900);
}

h1 { font-size: var(--fs-24); }
h2 { font-size: var(--fs-20); }
h3 { font-size: var(--fs-17); }
h4 { font-size: var(--fs-14); font-weight: 600; }

p { margin: 0 0 var(--s-3); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--seal-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover { border-bottom-color: currentColor; }

ul, ol { margin: 0; padding-left: 1.15rem; }

img, svg { max-width: 100%; }
svg { display: block; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-6) 0;
}

button { font-family: inherit; font-size: inherit; }

/* Identifier values: registration, chassis, engine, PAN, account and
   request numbers — mono keeps look-alike characters legible. */
.mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
  letter-spacing: 0.01em;
  font-variant-ligatures: none;
}

.tnum { font-variant-numeric: tabular-nums; }

/* ---- Focus: always visible, never removed ---- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---- Screen-reader-only + skip link ---- */
.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;
}

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -3rem;
  z-index: 200;
  background: var(--ink-900);
  color: var(--text-invert);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-md);
  border: 0;
}
.skip-link:focus-visible { top: var(--s-3); }

.is-hidden { display: none !important; }

/* The native `hidden` attribute is UA-stylesheet-level (display: none) and
   loses to any author rule that sets `display` on the same element — every
   `.btn`, `.rail-link`, `.callout` etc. in this codebase does exactly that.
   Restate it here so `el.hidden = true` always wins, everywhere. */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
