/* SafeSite design tokens. Source: docs/SafeSite_UI_Design_Spec.md, section 2.
   The motion layer (assets/motion.css, from the design-taste skill) reads --action, --ink, --bg,
   --card, --line-strong, --ease and --s-*, so they are defined here as aliases. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../vendor/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../vendor/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("../vendor/fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; src: url("../vendor/fonts/noto-sans-devanagari-devanagari-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 600; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; src: url("../vendor/fonts/noto-sans-devanagari-devanagari-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; src: url("../vendor/fonts/noto-sans-devanagari-devanagari-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 800; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; src: url("../vendor/fonts/noto-sans-devanagari-devanagari-800-normal.woff2") format("woff2"); }

:root {
  /* colour: brand and structure */
  --navy: #0C1F4F;
  --blue: #1D5FB5;
  --blue-tint: #EAF1FB;
  --sky: #5B93D6;
  --sky-light: #B5CFF0;
  --magenta: #ED0A65;
  --magenta-ink: #C4004F;
  --brand-green: #26B247;

  /* colour: safety */
  --red: #9B2423;
  --orange: #FF7900;
  --yellow: #F9A800;
  --safety-blue: #005387;
  --green: #237F52;
  --sev-low: #5B6B82;

  /* colour: text and lines */
  --text: #101828;
  --text-strong: #344054;
  --text-2: #475467;
  --text-off: #667085;
  --line-input: #D0D5DD;
  --line: #E4E7EC;
  --surface: #F2F4F7;
  --row: #F9FAFB;
  --on-navy: #C7D2E8;
  --nav-label: #8FA3C8;

  /* colour: states */
  --warn-bg: #FFF4E5;
  --warn-line: #FFB870;
  --warn-ink: #7A3E00;
  --ok-bg: #E3F1EA;
  --ok-ink: #1B6542;
  --danger-bg: #FBEAEA;
  --highlight: #FFE9A8;

  /* aliases read by assets/motion.css */
  --ink: var(--text);
  --bg: #fff;
  --card: #fff;
  --action: var(--blue);
  --action-ink: #fff;
  --line-strong: #98A2B3;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r-btn: 12px;

  /* spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* shape */
  --r-card: 14px;
  --r-card-m: 16px;
  --r-pill: 999px;

  --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
[hidden] { display: none !important; }
:lang(hi), :lang(mr) { line-height: 1.55; }

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

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 8px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
/* white ring with a navy halo: 3:1 or better on a navy ground and on a white one */
.skip-link:focus-visible { outline: 3px solid #fff; outline-offset: 0; box-shadow: 0 0 0 6px var(--navy); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
