/* StoreKissan design tokens (Day 3, owner-approved). Every colour, font and size used anywhere lives here.
   Views and app.css use only these variables — never a raw colour or font size. */

/* ---- Font: Mukta, self-hosted (SIL Open Font License — /fonts/OFL.txt). Devanagari + Latin subsets. ---- */
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/mukta-devanagari-400.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: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/mukta-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/mukta-devanagari-500.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: "Mukta"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/mukta-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/mukta-devanagari-600.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: "Mukta"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/mukta-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/mukta-devanagari-700.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: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/mukta-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/mukta-devanagari-800.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: "Mukta"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/mukta-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }

:root {
    /* Colours */
    --sk-green-900: #1C3A34;   /* header, sidebar, dark surfaces */
    --sk-green-800: #25473F;   /* chips / pills on the dark header */
    --sk-green-700: #2E6B5E;   /* primary button, selected tab */
    --sk-green-100: #E3F0EC;   /* light green icon backgrounds */
    --sk-amber-400: #E5A75C;   /* accent on dark: avatar, selected language */
    --sk-amber-700: #9A5A1C;   /* accent text / links on light */
    --sk-amber-800: #7A4514;   /* warning text */
    --sk-amber-50:  #FFF4E6;   /* warning card background */
    --sk-amber-line: #F0D4AE;  /* warning card border */
    --sk-cream: #FAF7F0;       /* page background */
    --sk-card: #FFFFFF;        /* cards, inputs */
    --sk-line: #E3E6E4;        /* card borders */
    --sk-line-strong: #C9D1CD; /* input borders */
    --sk-ink: #1B2420;         /* main text */
    --sk-ink-2: #3C4A45;       /* labels */
    --sk-muted: #5B6863;       /* secondary text (never below 16px) */
    --sk-ok: #1E6B3A;     --sk-ok-bg: #E3F3E8;    /* "ठीक" */
    --sk-due: #9B1C12;    --sk-due-bg: #FCE8E6;   /* "बाक़ी", errors */
    --sk-half-bg: #F5C98A;     /* half-full pillar */
    --sk-closed-bg: #D9DEDB;   /* closed pillar */
    --sk-hero-sub: #BFD8D5;    /* tagline / secondary text on the dark header */
    --sk-on-dark: #FAF7F0;     /* text on the dark header */

    /* Tile icon backgrounds (home) */
    --sk-tile-inward: #E3F0EC;
    --sk-tile-outward: #FFF4E6;
    --sk-tile-bardana: #EFE8DA;
    --sk-tile-search: #E3ECF7;
    --sk-tile-board: #F3E6F0;
    --sk-tile-report: #ECEEED;
    --sk-tile-inward-ink: #2E6B5E;
    --sk-tile-outward-ink: #9A5A1C;
    --sk-tile-bardana-ink: #6B5530;
    --sk-tile-search-ink: #2B4F7E;
    --sk-tile-board-ink: #6E3561;
    --sk-tile-report-ink: #3C4A45;

    /* Font */
    --sk-font: "Mukta", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif;
    --sk-lh-body: 1.6;      /* Hindi matras need room */
    --sk-lh-heading: 1.3;

    /* Type scale — phone (default). Owner, 2026-09-27: "font abhi bhi bade lag rahe hai … mobile pe font computer say chota" —
       phone text 14px, computer 15px; 13px is the floor (hints). Tap targets stay 48px. */
    --fs-title: 19px;
    --fs-section: 16px;
    --fs-button: 16px;
    --fs-body: 14px;
    --fs-small: 13px;       /* the smallest size anywhere */
    --fs-number: 22px;      /* big numbers */
    --fs-input: 15px;       /* inputs (Android phones do not zoom) */
    --fs-brand: 22px;
    --fs-lot: 34px;         /* lot number preview */
    --fs-token: 96px;       /* gate token for the driver to read (≥ 96px everywhere) */
    --fs-token-mid: 34px;   /* token on a queue card */
    --fs-search: 16px;
    --fs-name: 16px;        /* person names, home tile words, store name */
    --fs-count: 17px;       /* small count cards */

    /* Spacing steps */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;

    /* Shape */
    --r-card: 18px;
    --r-button: 14px;
    --r-input: 14px;
    --r-pill: 999px;
    --r-tile-icon: 14px;
    --card-pad: 14px;
    --btn-h: 48px;
    --input-h: 48px;
    --tap: 48px;
    --sidebar-w: 264px;
    --content-max: 720px;
    --shadow-press: 0 4px 0 #1C3A34;               /* primary button's darker bottom edge */
    --shadow-login: 0 12px 32px rgba(28, 58, 52, .14);
    --sk-backdrop: rgba(12, 28, 25, .55);          /* behind the phone's slide-in menu */
    --sk-auth-glow-a: rgba(232, 163, 61, .30);     /* login band: warm light, drifting */
    --sk-auth-glow-b: rgba(74, 150, 132, .45);     /* login band: green light, drifting */
}

/* Computer */
@media (min-width: 1024px) {
    :root {
        --fs-title: 21px;
        --fs-section: 17px;
        --fs-button: 15px;
        --fs-body: 15px;
        --fs-small: 14px;
        --fs-number: 26px;
        --fs-input: 15px;
        --fs-brand: 24px;
        --fs-lot: 42px;
        --fs-token: 112px;
        --fs-token-mid: 38px;
        --fs-search: 17px;
        --fs-name: 17px;
        --fs-count: 18px;
        --card-pad: 18px;
        --content-max: 1280px;
    }
}

/* Big screen / TV */
@media (min-width: 1600px) {
    :root {
        --fs-title: 23px;
        --fs-section: 18px;
        --fs-button: 16px;
        --fs-body: 16px;
        --fs-small: 14px;
        --fs-number: 30px;
        --fs-input: 16px;
        --fs-lot: 48px;
        --fs-token: 128px;
        --fs-token-mid: 42px;
        --content-max: 1680px;
    }
}
