/* मतदाता खोज — shared design tokens (website, app, admin).
   Palette "Petrol + Gulabi": a deep petrol blue-green owned by no party, no government site and no payment app,
   with a rose accent used sparingly. Light theme only: it reads best in sunlight.
   Type: Noto Sans Devanagari (Android's own Devanagari face), variable weight and width; Latin digits, same width. */

@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  src: url('../fonts/noto-sans-devanagari-devanagari-standard-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  src: url('../fonts/noto-sans-devanagari-latin-standard-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* text */
  --ink: #0E1C21;          /* 16:1 on --bg */
  --muted: #4A5B61;        /* 6.5:1 on --bg, 7.1:1 on white — the lightest grey used for text */
  /* surfaces */
  --bg: #F3F6F7;
  --surface: #FFFFFF;
  --line: #CBD8DC;         /* dividers and card edges */
  --line-strong: #7A8B91;  /* input borders, 3.5:1 */
  /* brand */
  --petrol: #0A5A73;       /* white on it 7.7:1 */
  --petrol-deep: #063D4F;  /* white on it 11.7:1 */
  --petrol-tint: #E3EEF1;  /* key-number boxes, selected rows */
  --petrol-soft: #9FD0DD;  /* text on --petrol-deep, 7:1 */
  --rose: #F58AAA;         /* accent fill, ink text on it 7.5:1 — never for text, never for errors */
  --rose-ink: #B4235A;     /* rose as text on white, 6.3:1 */
  --rose-tint: #FDE7EE;
  /* status — always with an icon or a word, never colour alone */
  --ok: #178276;
  --ok-tint: #E2F2EF;
  --warn: #9A5800;
  --warn-tint: #FCEFD2;
  --danger: #B3261E;
  --danger-tint: #FCECEA;
  --wa: #11734B;           /* WhatsApp action, white on it 5.9:1 */
  /* shape */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --font: 'Noto Sans Devanagari', 'Noto Sans', system-ui, sans-serif;
  color-scheme: light;
}

html { -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--petrol); }
:focus-visible { outline: 3px solid var(--rose-ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
/* Big numbers: condensed, heavy, every digit the same width. */
.num { font-stretch: 75%; font-weight: 750; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
