/* Shared across every page (index.php + all auth/register pages): color
   tokens, the page reset, the base body look, the focus ring, and the
   language toggle. Previously this was duplicated verbatim in index.php's
   inline <style> AND here — two places to keep in sync, which is exactly
   how they drift. Single source of truth now; page-specific CSS (hero,
   quickfacts, register-card, form fields, ...) stays in its own file. */

:root {
  --navy: #081a24;
  --navy-2: #0c2530;
  --teal: #12a9a4;
  --teal-dark: #0e7d7a;
  --gold: #f2b705;
  --lime: #b5d334;
  --cream: #f7f6f1;
  --ink: #0c2530;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 320px, var(--cream) 320px);
  color: var(--ink);
  min-height: 100vh;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Visually-hidden but still announced by screen readers — used for the
   text alternative next to icon-only controls (e.g. the emoji gender
   choices in register-form.php), so an icon that's meaningless to
   assistive tech still has a real accessible name. */
.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;
}

/* NL/FR/EN toggle, same look on the dark navy background everywhere
   (index.php + the top of every auth/register page). .auth-card flips
   this to a light-on-dark-background variant, see styles/auth.css. */
.lang-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.lang-toggle a {
  display: inline-block;
  border: none;
  background: transparent;
  color: #dfe9ea;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.lang-toggle a.active {
  background: var(--gold);
  color: #1a1400;
}

.lang-toggle a:hover {
  text-decoration: none;
}

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