/* MileKart design tokens. Import this in the theme and build components from these values. */
/* Plus Jakarta Sans, self-hosted (SIL Open Font License, ../fonts/plus-jakarta-sans/OFL.txt). The files are
   Google Fonts' own variable subsets (weights 400 to 800 in one file), with Google's unicode ranges: a page only
   downloads the subsets its text needs. latin-ext holds the rupee sign (U+20B9), so prices need it too. The latin
   and latin-ext files are preloaded in functions.php: keep those URLs the same as here. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-latin.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 {
  /* Colour */
  --mk-navy: #10243E;          /* text, primary surfaces, secondary buttons */
  --mk-navy-deep: #0A1728;     /* hover on navy */
  --mk-yellow: #F5B301;        /* the one primary action per page, milestone caps, road dashes */
  --mk-yellow-tint: #FFF1C2;   /* selected rows, status chips, savings chips */
  --mk-white: #FFFFFF;
  --mk-panel: #F3F5F8;         /* quiet panels, image placeholders */
  --mk-line: #DDE3EA;          /* hairlines */
  --mk-line-strong: #9AA8BA;   /* unselected control borders, upcoming steps */
  --mk-text-muted: #4A5A70;    /* secondary text on white or panel (passes 4.5:1) */
  --mk-text-on-navy: #C3CEDC;  /* secondary text on navy */

  /* Type: Plus Jakarta Sans (self-hosted above, SIL Open Font License) */
  --mk-font: 'Plus Jakarta Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --mk-weight-body: 400;
  --mk-weight-label: 600;
  --mk-weight-strong: 700;
  --mk-weight-display: 800;
  --mk-size-hero: clamp(40px, 5.6vw, 80px);
  --mk-size-h1: clamp(32px, 4vw, 48px);  /* SPACING-AND-COMPONENTS.md: 32 to 48 */
  --mk-size-h2: clamp(24px, 2.8vw, 34px);  /* SPACING-AND-COMPONENTS.md: 24 to 34 */
  --mk-size-h3: 22px;
  --mk-size-body-lg: 18px;
  --mk-size-body: 16px;
  --mk-size-ui: 15px;
  --mk-size-small: 14px;
  --mk-size-caption: 13px;
  --mk-tracking-display: -0.03em;
  --mk-tracking-caps: 0.14em;  /* small all-caps labels */

  /* Shape */
  --mk-radius-control: 10px;   /* inputs, small buttons, chips */
  --mk-radius-button: 12px;    /* large buttons */
  --mk-radius-card: 14px;      /* product images */
  --mk-radius-panel: 24px;     /* large panels */
  --mk-radius-milestone: 999px 999px 14px 14px; /* arched category tiles */
  --mk-border-control: 2px solid var(--mk-navy);
  --mk-road: 4px dashed var(--mk-yellow);        /* section dividers */
  --mk-road-quiet: 3px dashed var(--mk-line-strong);

  /* Spacing scale (see SPACING-AND-COMPONENTS.md for where each step is used) */
  --mk-space-1: 4px;
  --mk-space-2: 8px;
  --mk-space-3: 12px;
  --mk-space-4: 16px;
  --mk-space-5: 18px;
  --mk-space-6: 24px;
  --mk-space-7: 28px;
  --mk-space-8: 40px;
  --mk-space-9: 56px;
  --mk-space-10: 88px;

  /* States */
  --mk-yellow-hover: #E0A400;
  --mk-error: #B42318;
  --mk-success: #067647;
  --mk-success-bg: #ECFDF3;
  --mk-focus-ring: 3px solid var(--mk-navy);
  --mk-disabled-opacity: 0.45;

  /* Button and control heights */
  --mk-button-md: 52px;
  --mk-button-sm: 48px;
  --mk-button-card: 46px;
  --mk-input-sm: 48px;

  /* Layout */
  --mk-page-max: 1280px;
  --mk-page-gutter: 24px;
  --mk-section-gap: 56px;     /* between Home sections */
  --mk-page-bottom: 88px;
  --mk-grid-gap: clamp(14px, 2vw, 28px);
  --mk-touch-min: 44px;        /* minimum height of anything tappable */
  --mk-button-lg: 56px;
  --mk-input: 52px;
}
