/* HealthOrder — design system
   ---------------------------------------------------------------
   Blinkit's visual language: white surfaces, thin hairlines, tight
   radii, dense product grids, outlined green ADD buttons, and a
   yellow accent strip. Typeface is Google Sans (Devanagari included,
   which the Hindi guide needs).

   One stylesheet, no build step, no framework. Tokens live on :root;
   dark theme is applied by media query plus an explicit [data-theme]
   override so the header toggle wins in both directions. */

:root {
  /* Blinkit's greens and yellow, matched to their published UI */
  --g-900: #05421a;
  --g-800: #086b1d;
  --g-700: #0c831f;          /* the ADD-button / delivery green */
  --g-600: #14a72c;
  --g-100: #dff5e3;
  --g-050: #f3fdf5;
  --yellow: #f8cb46;
  --yellow-dk: #e0ae1d;
  --amber: #f0a922;          /* carbs, in the macro bar */
  --coral: #ef6f53;          /* fat, in the macro bar */

  --ink: #1f1f1f;
  --ink-2: #55565b;
  --ink-3: #8a8d95;
  --line: #ececed;
  --line-2: #e0e0e2;
  --card: #ffffff;
  --tile: #f7f7f8;           /* product image tile */
  --bg: #ffffff;
  --bg-2: #fafafa;

  --ns-a: #038141;
  --ns-b: #85bb2f;
  --ns-c: #fecb02;
  --ns-d: #ee8100;
  --ns-e: #e63e11;

  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow: 0 1px 2px rgba(31, 31, 31, .06), 0 6px 20px -10px rgba(31, 31, 31, .16);
  --shadow-lg: 0 20px 52px -20px rgba(31, 31, 31, .34);
  --maxw: 1280px;
  --header-h: 68px;

  --sans: "Google Sans", "Google Sans Text", "Product Sans", ui-sans-serif, system-ui,
          -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f0f1f3;
    --ink-2: #b6b9c0;
    --ink-3: #8b8f98;
    --line: #262a30;
    --line-2: #323740;
    --card: #16191d;
    --tile: #ffffff;
    --bg: #0e1013;
    --bg-2: #121519;
    --g-100: #123a1c;
    --g-050: #0f2a16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px -10px rgba(0, 0, 0, .8);
    --shadow-lg: 0 20px 52px -20px rgba(0, 0, 0, .9);
  }
}

:root[data-theme="dark"] {
  --ink: #f0f1f3;
  --ink-2: #b6b9c0;
  --ink-3: #8b8f98;
  --line: #262a30;
  --line-2: #323740;
  --card: #16191d;
  --tile: #ffffff;
  --bg: #0e1013;
  --bg-2: #121519;
  --g-100: #123a1c;
  --g-050: #0f2a16;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px -10px rgba(0, 0, 0, .8);
  --shadow-lg: 0 20px 52px -20px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }
/* The header is sticky, so anchor targets must clear it or they land underneath.
   It stacks into two rows below 900px, hence the taller offset there. */
:target, [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (max-width: 899px) { :target, [id] { scroll-margin-top: 124px; } }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--g-700); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.1rem + 2.9vw, 3rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 24px; } }
.narrow { max-width: 800px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sr:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto;
  margin: 0; padding: 10px 16px; background: var(--g-700); color: #fff;
  border-radius: var(--r-sm); z-index: 200;
}

/* ---------------------------------------------------------------- header */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand actions actions" "search search search";
  padding-block: 10px;          /* never `padding:` — .wrap owns padding-inline */
}
@media (min-width: 900px) {
  .hdr-in {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand search actions";
    gap: 18px; height: var(--header-h); padding-block: 0;
  }
}

.brand { grid-area: brand; display: flex; align-items: center; gap: 9px; font-weight: 700;
  font-size: 1.1rem; letter-spacing: -.03em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--yellow); color: #1f1f1f;
  display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.brand small { display: block; font-size: .56rem; font-weight: 500; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); margin-top: -2px; }

.search { grid-area: search; position: relative; min-width: 0; }
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); outline: none;
  font-size: 16px;              /* below 16px iOS Safari zooms the page on focus */
}
.search input:focus { border-color: var(--g-700); background: var(--bg); }
.search > svg { position: absolute; left: 13px; top: 12px; width: 18px; height: 18px;
  color: var(--ink-3); pointer-events: none; }
.search-pop {
  position: absolute; top: 47px; left: 0; right: 0; background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg);
  max-height: min(60vh, 420px); overflow: auto; display: none; z-index: 70;
}
.search-pop.on { display: block; }
.search-pop a { display: flex; gap: 10px; align-items: center; padding: 9px 12px;
  border-bottom: 1px solid var(--line); }
.search-pop a:last-child { border-bottom: 0; }
.search-pop a:hover, .search-pop a:focus-visible { background: var(--g-050); }
.search-pop img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px;
  background: var(--tile); flex: none; }
.search-pop b { font-weight: 500; font-size: .88rem; }
.search-pop span { color: var(--ink-3); font-size: .75rem; display: block; }

.hdr-actions { grid-area: actions; display: flex; gap: 4px; align-items: center; justify-self: end; }
.hdr-nav { display: none; gap: 2px; align-items: center; }
@media (min-width: 1080px) { .hdr-nav { display: flex; } }
.hdr-nav a { padding: 8px 10px; border-radius: var(--r-xs); font-size: .875rem;
  font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.hdr-nav a:hover { background: var(--g-050); color: var(--g-700); }
@media (min-width: 1080px) and (max-width: 1220px) { .hdr-nav a.opt { display: none; } }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--card); cursor: pointer; flex: none;
  font-size: 1rem;
}
.icon-btn:hover { border-color: var(--g-700); color: var(--g-700); }
.cart-btn {
  display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px;
  border-radius: var(--r-sm); border: 0; cursor: pointer; flex: none;
  background: var(--g-700); color: #fff; font-weight: 600; font-size: .875rem;
}
.cart-btn:hover { background: var(--g-800); }
.cart-btn .n {
  background: rgba(255, 255, 255, .24); border-radius: 999px; padding: 0 7px;
  font-size: .78rem; font-variant-numeric: tabular-nums; min-width: 22px; text-align: center;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; padding: 40px 0 36px;
  /* Solid yellow for the panel's whole height. An earlier version faded to the
     page background, which put forced dark ink on a dark background in dark
     mode — the text has to stay readable in both themes. */
  background: linear-gradient(160deg, #fbd975 0%, var(--yellow) 55%, #f2be2e 100%);
}
.hero h1, .hero p.lede { color: #1f1f1f; }
.hero .eyebrow { color: #7a5c00; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; background: #fff; padding: 0 .12em; border-radius: 6px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p.lede { font-size: 1.02rem; max-width: 62ch; color: #3d3520; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 20px; max-width: 560px; }
@media (min-width: 620px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border-radius: var(--r); padding: 10px 12px; }
.stat b { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; color: var(--g-700); }
.stat span { font-size: .68rem; color: #55565b; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-sm); font-weight: 600; font-size: .93rem;
  border: 1px solid transparent; cursor: pointer; background: var(--g-700); color: #fff;
  transition: background .15s ease; min-height: 44px;
}
.btn:hover { background: var(--g-800); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--g-700); color: var(--g-700); background: var(--card); }
.btn.sm { padding: 8px 14px; font-size: .84rem; min-height: 38px; }

/* ---------------------------------------------------------------- sections */
.sec { padding: 32px 0; }
@media (min-width: 720px) { .sec { padding: 44px 0; } }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin-bottom: 18px; flex-wrap: wrap; }
.sec-head p { color: var(--ink-2); margin: 0; max-width: 62ch; font-size: .93rem; }
.eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--g-700); margin-bottom: 6px; }

.cat-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
.cat {
  background: var(--g-050); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 12px; display: block; transition: border-color .14s ease, transform .14s ease;
}
.cat:hover { border-color: var(--g-700); transform: translateY(-2px); }
.cat .e { font-size: 24px; line-height: 1; }
.cat b { display: block; margin-top: 8px; font-size: .875rem; font-weight: 600; }
.cat span { font-size: .74rem; color: var(--ink-3); }

/* ------------------------------------------------------------ product card */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 860px)  { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card[hidden] { display: none; }

.card-img { position: relative; aspect-ratio: 1 / .92; background: var(--tile); padding: 10px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column;
  gap: 5px; z-index: 2; }

.card-body { padding: 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-brand { font-size: .64rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); }
.card-name {
  font-size: .845rem; font-weight: 600; line-height: 1.3; display: -webkit-box;
  -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.card-pack { font-size: .75rem; color: var(--ink-3); }

/* the per-100 g macro strip */
.macros {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
  border: 1px solid var(--line); border-radius: var(--r-xs); overflow: hidden;
  background: var(--line); margin-top: 2px;
}
.macros i {
  background: var(--bg-2); font-style: normal; text-align: center; padding: 4px 0 5px;
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.macros i b { font-weight: 700; font-variant-numeric: tabular-nums;
  line-height: 1.1; letter-spacing: -.02em; }
.macros i s { font-size: clamp(.46rem, 1.75vw, .55rem); text-decoration: none;
  color: var(--ink-3); font-weight: 600; letter-spacing: 0; text-transform: uppercase;
  line-height: 1; white-space: nowrap; }
.macros i b { font-size: clamp(.57rem, 2.15vw, .74rem); }
.macros-cap { font-size: .6rem; color: var(--ink-3); text-align: center; margin-top: -2px; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price small { font-weight: 400; color: var(--ink-3); font-size: .66rem; }

/* Blinkit's outlined ADD button */
.add {
  border: 1px solid var(--g-700); background: var(--g-050); color: var(--g-700);
  border-radius: var(--r-xs); padding: 0 14px; height: 34px; font-weight: 700;
  font-size: .78rem; letter-spacing: .04em; cursor: pointer; flex: none;
}
.add:hover { background: var(--g-700); color: #fff; }
.qty {
  display: inline-flex; align-items: center; background: var(--g-700);
  border-radius: var(--r-xs); overflow: hidden; height: 34px; flex: none;
}
.qty button { border: 0; background: none; color: #fff; width: 28px; height: 34px;
  cursor: pointer; font-size: 1.05rem; font-weight: 600; line-height: 1; padding: 0; }
.qty span { color: #fff; font-weight: 700; font-size: .82rem; min-width: 16px; text-align: center;
  font-variant-numeric: tabular-nums; }

/* nutri-score chip */
.ns { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: var(--r-xs);
  color: #fff; font-weight: 700; font-size: .78rem; line-height: 1; flex: none; }
.ns-A { background: var(--ns-a); } .ns-B { background: var(--ns-b); }
.ns-C { background: var(--ns-c); color: #3a2b00; } .ns-D { background: var(--ns-d); }
.ns-E { background: var(--ns-e); }

.pill {
  font-size: .64rem; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: var(--g-050); color: var(--g-700); border: 1px solid var(--g-100);
  white-space: nowrap;
}
.pill.warn { background: color-mix(in srgb, var(--yellow) 24%, transparent); color: #8a5b00;
  border-color: color-mix(in srgb, var(--yellow) 46%, transparent); }
.pill.lab { background: color-mix(in srgb, #2563eb 12%, transparent); color: #1d4ed8;
  border-color: color-mix(in srgb, #2563eb 26%, transparent); }
:root[data-theme="dark"] .pill.warn { color: var(--yellow); }
:root[data-theme="dark"] .pill.lab { color: #9dbaff; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- filters */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
/* Wraps rather than scrolls. A horizontal scroller hides options off-screen —
   half the categories were unreachable without noticing the strip moved. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line-2); background: var(--card); border-radius: 999px;
  padding: 7px 13px; font-size: .82rem; font-weight: 500; cursor: pointer; white-space: nowrap;
  min-height: 36px;
}
.chip[aria-pressed="true"] { background: var(--g-700); border-color: var(--g-700); color: #fff; }
select.sortsel {
  border: 1px solid var(--line-2); background: var(--card); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 16px; font-weight: 500; cursor: pointer; min-height: 40px;
}
@media (min-width: 900px) { select.sortsel { font-size: .875rem; } }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th, td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--line);
  vertical-align: top; overflow-wrap: anywhere; }
th { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  font-weight: 600; background: var(--bg-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- cart & drawer */
.scrim { position: fixed; inset: 0; background: rgba(15, 18, 22, .5); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 100;
  background: var(--bg-2); display: flex; flex-direction: column;
  transform: translateX(101%); transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  box-shadow: var(--shadow-lg);
}
.drawer.on { transform: none; }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.drawer-bd { flex: 1 1 auto; min-height: 96px; overflow-y: auto; padding: 12px 16px;
  -webkit-overflow-scrolling: touch; }
.drawer-ft { flex: 0 1 auto; max-height: 52%; overflow-y: auto;
  border-top: 1px solid var(--line);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); }

.line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line > img { width: 50px; height: 50px; object-fit: contain; background: var(--tile);
  border-radius: var(--r-xs); flex: none; }
.line-main { flex: 1; min-width: 0; }
.line-main b { display: block; font-size: .85rem; font-weight: 600; line-height: 1.28; }
.line-main span { font-size: .74rem; color: var(--ink-3); }

/* four-platform comparison */
.plat-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Three platforms fit three columns comfortably; the old 1340px breakpoint was
   sized for four and left a two-up grid on every normal desktop. */
@media (min-width: 1020px) { .plat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plat-card { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card);
  display: flex; flex-direction: column; overflow: hidden; }
.plat-hd { display: flex; align-items: center; gap: 10px; padding: 12px 13px;
  border-bottom: 1px solid var(--line); }
.plat-logo { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center;
  font-weight: 700; font-size: .9rem; flex: none; }
.plat-hd b { font-size: .93rem; font-weight: 600; display: block; line-height: 1.2; }
.plat-hd span { font-size: .72rem; color: var(--ink-3); }
.plat-items { padding: 4px 13px; flex: 1; }
.plat-item { display: flex; gap: 8px; align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: .8rem; }
.plat-item:last-child { border-bottom: 0; }
.plat-item .nm { flex: 1; min-width: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }
.plat-item .pr { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.plat-item .go { color: var(--g-700); font-weight: 700; flex: none; }
.plat-item.out { color: var(--ink-3); }
.plat-item.out .pr { font-weight: 500; font-size: .74rem; }
.plat-ft { padding: 11px 13px; border-top: 1px solid var(--line); background: var(--bg-2); }
.plat-sum { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-2);
  margin-bottom: 3px; }
.plat-sum.tot { font-size: .98rem; font-weight: 700; color: var(--ink); margin: 6px 0 10px;
  padding-top: 7px; border-top: 1px dashed var(--line-2); }

/* ---------------------------------------------------------------- blocks */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
@media (min-width: 720px) { .panel { padding: 20px; } }
.note {
  background: var(--g-050); border: 1px solid var(--g-100); border-left: 3px solid var(--g-700);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: .865rem; color: var(--ink-2);
}
.note.warn { background: color-mix(in srgb, var(--yellow) 13%, transparent);
  border-color: color-mix(in srgb, var(--yellow) 40%, transparent); border-left-color: var(--yellow-dk); }
.note b { color: var(--ink); }

.proof-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.proof-list a { display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2);
  font-size: .85rem; font-weight: 500; }
.proof-list a:hover { border-color: var(--g-700); color: var(--g-700); }
.proof-kind { font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 6px; border-radius: 5px; background: var(--g-050); color: var(--g-700); flex: none; }
.proof-kind.labtest { background: color-mix(in srgb, #2563eb 13%, transparent); color: #1d4ed8; }
.proof-kind.science { background: color-mix(in srgb, #9333ea 13%, transparent); color: #7e22ce; }
:root[data-theme="dark"] .proof-kind.labtest { color: #9dbaff; }
:root[data-theme="dark"] .proof-kind.science { color: #ddb5fd; }
.proof-list .ext { margin-left: auto; color: var(--ink-3); }

.vid { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: #000; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.creator { display: grid; gap: 16px; grid-template-columns: 1fr; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
@media (min-width: 880px) { .creator { grid-template-columns: 1.05fr 1fr; align-items: center; } }

/* ---------------------------------------------------------------- calculator */
.calc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.field label, .fieldlabel { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-3); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); outline: none; font-size: 16px;
}
.field input:focus, .field select:focus { border-color: var(--g-700); background: var(--bg); }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 46px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); font-weight: 500; font-size: .85rem; cursor: pointer; padding: 0 8px; }
.seg button[aria-pressed="true"] { background: var(--g-700); border-color: var(--g-700); color: #fff; }

.macro-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .macro-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.macro { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.macro b { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.macro > span { font-size: .7rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; }
.macro .sub { font-size: .78rem; color: var(--ink-2); margin-top: 3px; }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden;
  margin-top: 10px; display: flex; }
.bar i { display: block; height: 100%; }

/* ---------------------------------------------------------------- tiers */
.tier { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-lg);
  padding: 18px; margin-bottom: 14px; }
@media (min-width: 720px) { .tier { padding: 22px; } }
.tier-hd { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tier-badge { font-size: 26px; line-height: 1; }
.tier-impact { margin-left: auto; background: var(--g-050); color: var(--g-700);
  border: 1px solid var(--g-100); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .78rem; }
.tier h3 { margin: 0; }
.tier h3 small { display: block; font-weight: 500; font-size: .72rem; color: var(--ink-3);
  letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }
.tier ul { padding-left: 20px; margin: 0 0 12px; }
.tier, .tier li, .tier p, .tier td, .tier th { overflow-wrap: anywhere; }
.tier li { margin-bottom: 7px; }
.tier h4 { font-size: .95rem; margin: 15px 0 7px; color: var(--g-700); }

.verdict { font-weight: 600; white-space: nowrap; }
.verdict.drop { color: var(--ns-e); }
.verdict.limit { color: #b8860b; }
.verdict.revise { color: var(--ns-d); }

.tip { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.tip .ic { font-size: 24px; }
.tip .hi { font-size: 1.08rem; font-weight: 600; margin: 9px 0 4px; }
.tip .en { color: var(--g-700); font-weight: 600; font-size: .875rem; margin-bottom: 9px; }
.tip .why { color: var(--ink-2); font-size: .865rem; margin: 0; }

/* ---------------------------------------------------------------- footer */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0 26px; margin-top: 44px; }
.ftr-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ftr h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3);
  margin-bottom: 10px; }
.ftr a { display: block; padding: 4px 0; color: var(--ink-2); font-size: .875rem; }
.ftr a:hover { color: var(--g-700); }
.ftr-base { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--ink-3); display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- bottom nav */
.botnav { display: none; }
@media (max-width: 899px) {
  .botnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 5px 2px calc(5px + env(safe-area-inset-bottom));
  }
  .botnav a { flex: 1; display: grid; place-items: center; gap: 1px; padding: 5px 2px;
    font-size: .63rem; font-weight: 500; color: var(--ink-3); min-height: 46px; }
  .botnav a.on { color: var(--g-700); }
  .botnav .e { font-size: 17px; }
  body { padding-bottom: 58px; }
}

/* ---------------------------------------------------------------- misc */
.toast {
  position: fixed; left: 50%; bottom: 76px; transform: translate(-50%, 16px); z-index: 120;
  background: var(--ink); color: var(--bg); padding: 10px 17px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px); text-align: center;
}
@media (min-width: 900px) { .toast { bottom: 26px; } }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.empty { text-align: center; padding: 44px 16px; color: var(--ink-3); }
.empty .e { font-size: 38px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------- product page: platform rows */
.pl-row {
  display: flex; align-items: center; gap: 11px; padding: 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--card); margin-bottom: 8px; min-height: 60px;
}
.pl-row:hover { border-color: var(--g-700); }
.pl-main { flex: 1; min-width: 0; }
.pl-main b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.25; }
.pl-main span { font-size: .72rem; color: var(--ink-3); display: block; }
.pl-price { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; font-size: .95rem; }
.pl-price small { display: block; font-weight: 400; font-size: .64rem; color: var(--ink-3); }
.pl-price.out { color: var(--ink-3); font-weight: 500; font-size: .84rem; }
.pl-go { color: var(--g-700); font-weight: 700; font-size: .78rem; white-space: nowrap; flex: none; }
.pl-go.out { color: var(--ink-3); }
@media (max-width: 460px) {
  .pl-go { display: none; }             /* the whole row is the tap target */
  .pl-main span { font-size: .68rem; }
}

/* ------------------------------------------- product page: hero image */
.pdp-img {
  width: 100%; aspect-ratio: 1; max-height: 440px; object-fit: contain;
  background: var(--tile); border-radius: var(--r); padding: 18px;
}
@media (max-width: 640px) {
  /* A square box on a narrow phone pushes everything below the fold, and most
     pack shots are wider than they are tall anyway. */
  .pdp-img { aspect-ratio: 4 / 3; max-height: 280px; padding: 10px; }
}

/* bigger tap targets on touch, without loosening the desktop density */
@media (max-width: 899px) {
  .add { height: 36px; padding: 0 16px; }
  .qty { height: 36px; }
  .qty button { width: 32px; height: 36px; }
}

/* --------------------------------------------- product page: two-up layout */
.pdp, .pdp2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 440px minmax(0, 1fr); gap: 34px; align-items: start; }
  .pdp2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}

/* Grid and flex children default to min-width:auto, so a wide child (a table
   with a min-width, a long unbroken product name) can push a whole page past
   the viewport. Opt every layout container's children out of that. */
.grid > *, .plat-grid > *, .pdp > *, .pdp2 > *, .macro-grid > *,
.calc-grid > *, .cat-grid > *, .ftr-grid > *, .creator > * { min-width: 0; }
.panel, .tbl-wrap { min-width: 0; }
.card-name, .line-main b, .plat-hd b { overflow-wrap: anywhere; }

/* keyboard-highlighted search result (aria-activedescendant has no default style) */
.search-pop a.sel { background: var(--g-050); box-shadow: inset 3px 0 0 var(--g-700); }

/* ------------------------------------------- who-to-trust source rows */
.src-row { align-items: flex-start; }
.src-row .plat-logo { margin-top: 2px; }
.src-row .pl-main span { font-size: .82rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 620px) {
  /* The category pill next to a long blurb squeezed it into a ~150px column on
     a phone. Let it drop to its own line instead. */
  .src-row { flex-wrap: wrap; }
  .src-row .pl-main { flex: 1 1 calc(100% - 45px); }
  .src-row .pill { order: 3; margin-left: 45px; }
}

/* ------------------------------------------------ Hindi / English switch */
/* Both languages are in the markup; exactly one is shown. Defaulting on
   :root:not([data-lang="hi"]) means English still renders if the attribute is
   missing entirely — a broken script must not blank the navigation. */
[data-hi] { display: none; }
:root[data-lang="hi"] [data-hi] { display: inline; }
:root[data-lang="hi"] [data-en] { display: none; }
:root[data-lang="hi"] div[data-hi], :root[data-lang="hi"] p[data-hi],
:root[data-lang="hi"] li[data-hi], :root[data-lang="hi"] td[data-hi],
:root[data-lang="hi"] section[data-hi] { display: revert; }

.lang-btn { font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
:root[data-lang="hi"] body { font-synthesis-weight: none; }

/* ------------------------------------------ Label Padhega: traffic lights */
.tl-table th, .tl-table td { vertical-align: middle; }
.tl-table thead th.tl-lo, .tl-table thead th.tl-mid, .tl-table thead th.tl-hi {
  text-align: center; color: #fff;
}
.tl-table thead th.tl-lo  { background: #1e8e3e; }
.tl-table thead th.tl-mid { background: #e8a33d; color: #3a2b00; }
.tl-table thead th.tl-hi  { background: #d93025; }
.tl-table td.tl {
  text-align: center; font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tl-table td.tl-lo  { background: color-mix(in srgb, #1e8e3e 13%, transparent); color: #12692c; }
.tl-table td.tl-mid { background: color-mix(in srgb, #e8a33d 20%, transparent); color: #8a5b00; }
.tl-table td.tl-hi  { background: color-mix(in srgb, #d93025 13%, transparent); color: #b3261e; }
.tl-table td.tl-note { font-size: .82rem; color: var(--ink-2); }
@media (min-width: 861px) { .tl-table td.tl-note { min-width: 210px; } }
:root[data-theme="dark"] .tl-table td.tl-lo  { color: #6fd48b; }
:root[data-theme="dark"] .tl-table td.tl-mid { color: #f0c176; }
:root[data-theme="dark"] .tl-table td.tl-hi  { color: #f6928a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tl-table td.tl-lo  { color: #6fd48b; }
  :root:not([data-theme="light"]) .tl-table td.tl-mid { color: #f0c176; }
  :root:not([data-theme="light"]) .tl-table td.tl-hi  { color: #f6928a; }
}

.label-steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; gap: 12px; max-width: 78ch; }
.label-steps li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 16px 15px 56px;
}
.label-steps li::before {
  content: counter(step); position: absolute; left: 15px; top: 15px;
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g-700); color: #fff; font-weight: 700; font-size: .85rem;
}
.label-steps li b { display: block; font-size: 1rem; margin-bottom: 4px; }
.label-steps li p { margin: 0; color: var(--ink-2); font-size: .9rem; }

/* --------------------------------------------------------- footer, trimmed */
.ftr-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.ftr-brand b { font-size: 1.05rem; letter-spacing: -.02em; }
.ftr-brand p { margin: 2px 0 0; color: var(--ink-3); font-size: .87rem; max-width: 46ch; }

.ftr-links { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.ftr-links a {
  display: flex; align-items: center; gap: 9px; padding: 14px 15px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card);
  font-weight: 700; font-size: .92rem; color: var(--ink); min-height: 52px;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.ftr-links a:hover, .ftr-links a:focus-visible {
  border-color: var(--g-700); background: var(--g-050); color: var(--g-700);
  transform: translateY(-2px);
}
.ftr-links a span { line-height: 1.25; }

/* ---------------------------------------------- tables that fit, unscrolled
   A comparison table earns its grid: you read down a column to compare. So it
   stays a table at every width and is made to fit instead — abbreviated
   headers, tighter cells, and a product column that wraps while the numeric
   ones stay on one line. */
.tbl-compact { table-layout: auto; width: 100%; }
.tbl-compact th, .tbl-compact td { padding: 9px 8px; }
.tbl-compact td.num, .tbl-compact th.num { white-space: nowrap; }
/* Above the abbreviation breakpoint a header must not wrap — "Score" breaking
   to "Scor/e" costs more width than it saves. Below it, headers are already
   abbreviated and nowrap would push the table past the viewport instead. */
@media (min-width: 621px) { .tbl-compact thead th { white-space: nowrap; } }
.tbl-compact .th-abbr { display: none; }

@media (max-width: 860px) {
  .tbl-compact { font-size: .8rem; }
  .tbl-compact th, .tbl-compact td { padding: 8px 5px; }
}
@media (max-width: 620px) {
  .tbl-compact { font-size: .72rem; }
  .tbl-compact th, .tbl-compact td { padding: 7px 3px; }
  .tbl-compact .th-full { display: none; }
  .tbl-compact .th-abbr { display: inline; }
  .tbl-compact thead th { font-size: .6rem; letter-spacing: .02em; }
  /* The name column is the only one allowed to wrap; it absorbs the squeeze. */
  .tbl-compact td:first-child, .tbl-compact th:first-child { min-width: 72px; }
  .tbl-compact td:first-child span { display: none; }
  /* Columns share the width evenly rather than bidding for it by content, which
     is what let one verbose column push a numeric table past the viewport. */
  .tbl-compact { table-layout: fixed; }
  .tbl-compact td, .tbl-compact th { overflow-wrap: anywhere; }
}
@media (max-width: 400px) {
  .tbl-compact { font-size: .67rem; }
  .tbl-compact th, .tbl-compact td { padding: 6px 2px; }
  .tbl-compact td:first-child, .tbl-compact th:first-child { min-width: 72px; }
}

/* ------------------------------------------------------ prose tables only
   A comparison table compresses because its cells are numbers. A reference
   table whose cells are sentences does not — four columns of Hindi prose at
   320px is roughly six characters a line. Those, and only those, restack into
   one labelled block per row. The numeric tables stay tables at every width. */
@media (max-width: 700px) {
  .tbl-prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl-prose, .tbl-prose tbody, .tbl-prose tr, .tbl-prose td { display: block; }
  .tbl-prose tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl-prose tr:last-child { border-bottom: 0; }
  .tbl-prose td { border: 0; padding: 3px 0; }
  .tbl-prose td:first-child { font-weight: 700; font-size: .95rem; margin-bottom: 3px; }
  .tbl-prose td[data-label]::before {
    content: attr(data-label) " — "; color: var(--ink-3); font-weight: 600;
  }
}
