/* Kerala PYQ Web Kit · tokens.css · v1.0 (2026-11-15)
   Single source of truth for colour, type, space, radius, shadow, z-index, motion. Derived from the approved Kerala-theme mock.
   Never hard-code a hex, px radius or duration in a page: use these variables. Contrast ratios are in WEBKIT.md (computed by build_showroom.py). */
:root{
  /* ---- colour: brand ---- */
  --kp-ink:#05342a;          /* borders, headings, button text on light */
  --kp-green-900:#08432f;    /* header/footer gradient end */
  --kp-green-800:#0b523f;    /* band gradient end */
  --kp-green:#0d5c47;        /* primary actions, links, offset shadow */
  --kp-green-dark:#094535;   /* hover */
  --kp-cream:#fbf5e4;        /* page body */
  --kp-cream-card:#fffdf6;   /* reading surfaces (always solid, never over a pattern) */
  --kp-cream-line:#e8dcb6;   /* hairlines, empty progress track */
  --kp-mint:#e3f1ea;         /* selected tint */
  --kp-turmeric:#f2b01e;     /* accents, bands, warn fill (never text on cream) */
  --kp-turmeric-hi:#ffd66b;  /* text/links on green only */
  --kp-gold:#b78a2a;         /* kasavu bands, dividers, borders (never text) */
  --kp-gold-deep:#7a5a12;    /* kasavu band base */
  --kp-bronze:#6b4a00;       /* the ONLY gold-family colour allowed for text on cream */
  --kp-terracotta:#b5482f;
  /* ---- colour: text ---- */
  --kp-text:#111513;
  --kp-text-2:#33403a;       /* lead paragraphs */
  --kp-muted:#4a524d;        /* captions, hints (>=4.5:1 on cream and on white) */
  --kp-on-dark:#e4f2ec;      /* body text on green */
  --kp-on-dark-2:#cfe4da;
  --kp-white:#fff;
  /* ---- colour: state (every state also carries an icon + word; never colour alone) ---- */
  --kp-correct:#1e7b34;  --kp-correct-bg:#eef8f0;
  --kp-wrong:#b42331;    --kp-wrong-bg:#fdf0f1;
  --kp-warn:#6b4a00;     --kp-warn-bg:#fff3c4;   /* text bronze on pale turmeric */
  --kp-info:#1f5f7a;     --kp-info-bg:#e6f2f7;
  --kp-disabled:#5f6661; --kp-disabled-bg:#eef1ee;
  --kp-line:#cfd6d1;     /* neutral control border */
  /* ---- type ---- */
  --kp-font:Inter,'Noto Sans Malayalam',system-ui,-apple-system,'Segoe UI',sans-serif;
  --kp-font-ml:'Noto Sans Malayalam',Manjari,Inter,system-ui,sans-serif;
  --kp-fs-xs:.75rem;  --kp-fs-sm:.875rem; --kp-fs-base:1rem;   --kp-fs-md:1.125rem;
  --kp-fs-lg:1.25rem; --kp-fs-xl:1.5rem;  --kp-fs-2xl:1.875rem;--kp-fs-3xl:2.5rem;
  --kp-fs-h1:clamp(1.5rem,5.4vw,2.5rem);
  --kp-fs-h2:clamp(1.25rem,4.2vw,1.7rem);
  --kp-fs-h1-ml:clamp(1rem,3.6vw,1.35rem);
  --kp-lh-tight:1.2; --kp-lh-body:1.6; --kp-lh-ml:1.75;   /* Malayalam never below 1.7: conjuncts clip otherwise */
  --kp-fw-regular:400; --kp-fw-medium:500; --kp-fw-semibold:600; --kp-fw-bold:700;
  /* ---- space (4px base) ---- */
  --kp-s-1:.25rem; --kp-s-2:.5rem; --kp-s-3:.75rem; --kp-s-4:1rem; --kp-s-5:1.25rem;
  --kp-s-6:1.5rem; --kp-s-7:2rem;  --kp-s-8:2.5rem;  --kp-s-9:3rem; --kp-s-10:4rem;
  --kp-gutter:1.25rem; --kp-max:68rem; --kp-max-narrow:46rem; --kp-max-read:40rem;
  /* ---- radius / border ---- */
  --kp-r-sm:8px; --kp-r-md:10px; --kp-r-lg:14px; --kp-r-xl:16px; --kp-r-pill:99px;
  --kp-bw:2px;   --kp-bw-thick:6px;
  /* ---- shadow: hard offset, never blurred (the Kerala "raised" look) ---- */
  --kp-sh-btn:3px 3px 0 var(--kp-ink);
  --kp-sh-card:4px 4px 0 var(--kp-green);
  --kp-sh-card-lg:5px 5px 0 var(--kp-green);
  --kp-sh-gold:3px 3px 0 var(--kp-gold);
  --kp-sh-float:0 8px 24px rgba(5,52,42,.28);          /* sheets, toasts only */
  --kp-focus:0 0 0 3px var(--kp-cream),0 0 0 6px var(--kp-ink);
  /* ---- z-index ---- */
  --kp-z-base:1; --kp-z-sticky:20; --kp-z-totop:30; --kp-z-header:40; --kp-z-timer:45;
  --kp-z-sheet:60; --kp-z-toast:70; --kp-z-skip:100;
  /* ---- motion ---- */
  --kp-dur-fast:120ms; --kp-dur:200ms; --kp-dur-page:250ms; --kp-dur-slow:400ms;  /* page transition must stay <=300ms */
  --kp-ease:cubic-bezier(.2,.7,.2,1); --kp-ease-spring:cubic-bezier(.3,1.6,.5,1); --kp-ease-io:ease-in-out;
  /* ---- layout: sticky offsets (scroll-margin / scroll-padding read these) ---- */
  --kp-header-h:64px; --kp-header-h-shrunk:52px; --kp-timer-h:52px; --kp-tap:44px;
  --kp-offset:calc(var(--kp-header-h-shrunk) + 12px);      /* default anchor offset */
  /* ---- breakpoints (documentation + JS; media queries must use the literal px) ---- */
  --kp-bp-sm:640px; --kp-bp-nav:860px; --kp-bp-md:768px; --kp-bp-lg:1024px; --kp-bp-xl:1280px;
}
/* Exam pages: header is static, the timer bar is the only sticky element at the top. */
.kp-exam{--kp-offset:calc(var(--kp-timer-h) + 12px)}
