/* Self-hosted fonts (SIL Open Font License; from Fontsource). Anek and Mukta are by Ek Type, Mumbai.
 * GENERATED by shared/style/build.mjs from shared/style/tokens/*.json. Do not edit; edit the tokens and run `npm run build`. */

@font-face {
  font-family: "Anek Latin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(/fonts/anek-latin-latin-ext-wdth-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Anek Latin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(/fonts/anek-latin-latin-wdth-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;
}

@font-face {
  font-family: "Anek Devanagari";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/anek-devanagari-devanagari-wght-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,U+11B00-11B09;
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/mukta-devanagari-400-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,U+11B00-11B09;
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/mukta-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/mukta-latin-400-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;
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/mukta-devanagari-500-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,U+11B00-11B09;
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/mukta-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/mukta-latin-500-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;
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/mukta-devanagari-600-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,U+11B00-11B09;
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/mukta-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/mukta-latin-600-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;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-wght-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;
}

/* Broadvale design tokens.
 * GENERATED by shared/style/build.mjs from shared/style/tokens/*.json. Do not edit; edit the tokens and run `npm run build`. */

/* Light theme (default) and everything that does not change with the theme. */
:root {
  color-scheme: light dark;
  --bv-c-paper: #f6f5ef;
  --bv-c-mist: #edf1ea;
  --bv-c-white: #ffffff;
  --bv-c-card-mist: #f7f9f3;
  --bv-c-raised: #ffffff;
  --bv-c-line-paper: #e2e2d8;
  --bv-c-line-mist: #d2dccf;
  --bv-c-ink: #1d3324;
  --bv-c-ink-soft: #43584a;
  --bv-c-ink-muted: #5a6d5d;
  --bv-c-field: #3f6b35;
  --bv-c-field-soft: #dfe9d9;
  --bv-c-canal: #2b5d78;
  --bv-c-canal-soft: #dbe7ee;
  --bv-c-dusk: #534f8d;
  --bv-c-dusk-soft: #e9eaf9;
  --bv-c-clay: #a8553a;
  --bv-c-air: #d5dedb;
  --bv-c-page-top: #abc5d4;
  --bv-c-page-mid: #d5dedb;
  --bv-c-selection: #abc5d4;
  --bv-c-brand: #24402a;
  --bv-c-brand-hover: #3f6b35;
  --bv-c-success: #1e7546;
  --bv-c-success-soft: #dcf2e3;
  --bv-c-warning: #845a0f;
  --bv-c-warning-soft: #ffecc9;
  --bv-c-danger: #b33832;
  --bv-c-danger-soft: #ffe9e6;
  --bv-s-banyan: #24402a;
  --bv-s-field: #3f6b35;
  --bv-s-canal: #2b5d78;
  --bv-s-dusk: #534f8d;
  --bv-s-clay: #a8553a;
  --bv-s-mustard: #e2c160;
  --bv-s-sky: #abc5d4;
  --bv-s-on: #edf1ea;
  --bv-s-on-mustard: #1d3324;
  --bv-s-warning-fill: #e8a33d;
  --bv-font-sans: Mukta, "Anek Devanagari", "Noto Sans Devanagari", "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  --bv-font-display: "Anek Latin", "Anek Devanagari", Mukta, "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  --bv-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bv-font-stretch-display: 112.5%;
  --bv-text-xs: 0.75rem;
  --bv-text-sm: 0.875rem;
  --bv-text-base: 1.0625rem;
  --bv-text-lg: 1.3125rem;
  --bv-text-xl: 1.625rem;
  --bv-text-2xl: 2.0625rem;
  --bv-text-3xl: 2.5625rem;
  --bv-text-display: clamp(2.5rem, 6vw, 3.5rem);
  --bv-leading-body: 1.6;
  --bv-leading-heading: 1.25;
  --bv-leading-deva-heading: 1.35;
  --bv-leading-urdu: 2.1;
  --bv-space-1: 4px;
  --bv-space-2: 8px;
  --bv-space-3: 12px;
  --bv-space-4: 16px;
  --bv-space-5: 24px;
  --bv-space-6: 32px;
  --bv-space-7: 48px;
  --bv-space-8: 64px;
  --bv-space-9: 96px;
  --bv-radius-sm: 8px;
  --bv-radius-md: 12px;
  --bv-radius-lg: 16px;
  --bv-radius-xl: 24px;
  --bv-radius-2xl: 28px;
  --bv-radius-pill: 999px;
  --bv-radius-tile: 26%;
  --bv-shadow-sm: 0 1px 2px rgb(29 51 36 / 0.06);
  --bv-shadow-md: 0 1px 2px rgb(29 51 36 / 0.06), 0 4px 14px rgb(29 51 36 / 0.08);
  --bv-shadow-lg: 0 12px 32px rgb(29 51 36 / 0.14);
  --bv-shadow-tile: 0 4px 6px -1px rgb(36 64 42 / 0.2), 0 2px 4px -2px rgb(36 64 42 / 0.2);
  --bv-motion-fast: 120ms;
  --bv-motion-base: 200ms;
  --bv-motion-slow: 320ms;
  --bv-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bv-control-h: 40px;
  --bv-touch: 48px;
  --bv-width-phone: 28rem;
  --bv-width-read: 46rem;
  --bv-width-site: 72rem;
  --bv-bg: var(--bv-c-paper);
  --bv-surface: var(--bv-c-white);
  --bv-surface-raised: var(--bv-c-raised);
  --bv-border: var(--bv-c-line-paper);
  --bv-fg: var(--bv-c-ink);
  --bv-fg-soft: var(--bv-c-ink-soft);
  --bv-fg-muted: var(--bv-c-ink-muted);
  --bv-brand: var(--bv-c-brand);
  --bv-brand-hover: var(--bv-c-brand-hover);
  --bv-on-brand: var(--bv-s-on);
  --bv-highlight: var(--bv-s-mustard);
  --bv-on-highlight: var(--bv-s-on-mustard);
  --bv-accent: var(--bv-c-field);
  --bv-accent-soft: var(--bv-c-field-soft);
  --bv-accent-solid: var(--bv-s-field);
  --bv-on-accent-solid: var(--bv-s-on);
  --bv-link: var(--bv-c-canal);
  --bv-focus: var(--bv-c-canal);
  --bv-selection: var(--bv-c-selection);
  --bv-field: var(--bv-c-field);
  --bv-field-soft: var(--bv-c-field-soft);
  --bv-canal: var(--bv-c-canal);
  --bv-canal-soft: var(--bv-c-canal-soft);
  --bv-dusk: var(--bv-c-dusk);
  --bv-dusk-soft: var(--bv-c-dusk-soft);
  --bv-clay: var(--bv-c-clay);
  --bv-air: var(--bv-c-air);
  --bv-page-top: var(--bv-c-page-top);
  --bv-page-mid: var(--bv-c-page-mid);
  --bv-success: var(--bv-c-success);
  --bv-success-soft: var(--bv-c-success-soft);
  --bv-warning: var(--bv-c-warning);
  --bv-warning-soft: var(--bv-c-warning-soft);
  --bv-warning-fill: var(--bv-s-warning-fill);
  --bv-danger: var(--bv-c-danger);
  --bv-danger-soft: var(--bv-c-danger-soft);
  --bv-info: var(--bv-c-canal);
  --bv-info-soft: var(--bv-c-canal-soft);
  --bv-solid-banyan: var(--bv-s-banyan);
  --bv-solid-field: var(--bv-s-field);
  --bv-solid-canal: var(--bv-s-canal);
  --bv-solid-dusk: var(--bv-s-dusk);
  --bv-solid-clay: var(--bv-s-clay);
  --bv-solid-mustard: var(--bv-s-mustard);
  --bv-solid-sky: var(--bv-s-sky);
  --bv-on-solid: var(--bv-s-on);
  --bv-on-solid-light: var(--bv-s-on-mustard);
  --bv-page-sky: linear-gradient(to bottom, var(--bv-page-top), var(--bv-page-mid) 45%, var(--bv-bg) 90%);
}
:root[data-theme="light"] { color-scheme: light; }

/* Dark theme: follows the phone or computer, unless the page sets data-theme="light". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bv-c-paper: #101a13;
    --bv-c-mist: #101a13;
    --bv-c-white: #18251b;
    --bv-c-card-mist: #18251b;
    --bv-c-raised: #212923;
    --bv-c-line-paper: #2c3d30;
    --bv-c-line-mist: #2c3d30;
    --bv-c-ink: #e6eee3;
    --bv-c-ink-soft: #c3d0c4;
    --bv-c-ink-muted: #a6b8a8;
    --bv-c-field: #8cc07c;
    --bv-c-field-soft: #21331f;
    --bv-c-canal: #8dbcd6;
    --bv-c-canal-soft: #1a2c36;
    --bv-c-dusk: #b1b0ef;
    --bv-c-dusk-soft: #242439;
    --bv-c-clay: #e09576;
    --bv-c-air: #22332a;
    --bv-c-page-top: #1a2c36;
    --bv-c-page-mid: #142019;
    --bv-c-selection: #2b4a5c;
    --bv-c-brand: #2f5136;
    --bv-c-brand-hover: #3f6b35;
    --bv-c-success: #6dc88f;
    --bv-c-success-soft: #152c1e;
    --bv-c-warning: #e8a33d;
    --bv-c-warning-soft: #372508;
    --bv-c-danger: #f2897e;
    --bv-c-danger-soft: #3e1f1b;
  }
}
/* Dark theme chosen by the page or the person: <html data-theme="dark">. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bv-c-paper: #101a13;
  --bv-c-mist: #101a13;
  --bv-c-white: #18251b;
  --bv-c-card-mist: #18251b;
  --bv-c-raised: #212923;
  --bv-c-line-paper: #2c3d30;
  --bv-c-line-mist: #2c3d30;
  --bv-c-ink: #e6eee3;
  --bv-c-ink-soft: #c3d0c4;
  --bv-c-ink-muted: #a6b8a8;
  --bv-c-field: #8cc07c;
  --bv-c-field-soft: #21331f;
  --bv-c-canal: #8dbcd6;
  --bv-c-canal-soft: #1a2c36;
  --bv-c-dusk: #b1b0ef;
  --bv-c-dusk-soft: #242439;
  --bv-c-clay: #e09576;
  --bv-c-air: #22332a;
  --bv-c-page-top: #1a2c36;
  --bv-c-page-mid: #142019;
  --bv-c-selection: #2b4a5c;
  --bv-c-brand: #2f5136;
  --bv-c-brand-hover: #3f6b35;
  --bv-c-success: #6dc88f;
  --bv-c-success-soft: #152c1e;
  --bv-c-warning: #e8a33d;
  --bv-c-warning-soft: #372508;
  --bv-c-danger: #f2897e;
  --bv-c-danger-soft: #3e1f1b;
}

/* Families: <html data-family="consumer|business|research">. No attribute = the parent (website) look. */
[data-family="consumer"] {
  --bv-bg: var(--bv-c-mist);
  --bv-surface: var(--bv-c-card-mist);
  --bv-border: var(--bv-c-line-mist);
  --bv-accent: var(--bv-c-field);
  --bv-accent-soft: var(--bv-c-field-soft);
  --bv-accent-solid: var(--bv-s-field);
  --bv-control-h: 48px;
}
[data-family="business"] {
  --bv-accent: var(--bv-c-canal);
  --bv-accent-soft: var(--bv-c-canal-soft);
  --bv-accent-solid: var(--bv-s-canal);
  --bv-focus: var(--bv-c-canal);
  --bv-control-h: 40px;
}
[data-family="research"] {
  --bv-accent: var(--bv-c-dusk);
  --bv-accent-soft: var(--bv-c-dusk-soft);
  --bv-accent-solid: var(--bv-s-dusk);
  --bv-focus: var(--bv-c-dusk);
  --bv-link: var(--bv-c-dusk);
  --bv-control-h: 40px;
}

/* Legacy aliases (see build.mjs). */
:root, [data-family] {
  --background: var(--bv-bg);
  --card: var(--bv-surface);
  --foreground: var(--bv-fg);
  --muted: var(--bv-fg-soft);
  --muted-foreground: var(--bv-fg-muted);
  --border: var(--bv-border);
  --sky: var(--bv-solid-sky);
  --air: var(--bv-air);
  --field: var(--bv-field);
  --field-soft: var(--bv-field-soft);
  --canal: var(--bv-canal);
  --canal-soft: var(--bv-canal-soft);
  --mustard: var(--bv-solid-mustard);
  --banyan: var(--bv-brand);
  --on-banyan: var(--bv-on-brand);
  --clay: var(--bv-clay);
  --font-sans: var(--bv-font-sans);
  --font-display: var(--bv-font-display);
  --sans: var(--bv-font-sans);
  --display: var(--bv-font-display);
}

/*
 * Broadvale components for plain-HTML apps (the bv- classes). Why it looks like this: b2c/design/philosophy.md.
 * How to use it: shared/style/README.md and b2c/design/style.md.
 *
 * Load order: generated/fonts.css, generated/tokens.css, then this file (`node shared/style/apply.mjs <page.html>`
 * inlines all three). Every colour, size and font comes from the tokens (--bv-*), so this file follows light/dark
 * (data-theme or the system) and the family (<html data-family="consumer|business|research">) by itself.
 * Since 2026-12-04 (design system): dark mode is supported; the colours live in shared/style/tokens/*.json.
 *
 * Components are prefixed `bv-` so they never clash with an app's own classes.
 */

:root {
  /* Component sizes, from the tokens. An app overrides one by setting it again after this file. */
  --text: var(--bv-text-base); /* 17px, the smallest body text */
  --text-small: var(--bv-text-sm); /* only for notes under a tile, never for things to act on */
  --leading: var(--bv-leading-body);
  --radius-tile: var(--bv-radius-tile);
  --radius-card: var(--bv-radius-lg);
  --radius-sheet: var(--bv-radius-xl);
  --radius-dock: var(--bv-radius-2xl);
  --radius-pill: var(--bv-radius-pill);
  --touch: var(--bv-touch); /* the smallest thing a finger must hit */
  --shadow: var(--bv-shadow-md);
  --shadow-tile: var(--bv-shadow-tile);
  --page-width: var(--bv-width-phone); /* a phone; 32rem from 640px up */
  --page-sky: var(--bv-page-sky);
}

/* Indian scripts: letter-spacing breaks how letters join, and capitals do not exist. Urdu and Arabic need taller lines. */
:root:not(:lang(en)) .bv-wordmark,
:root:not(:lang(en)) .bv-title,
:root:not(:lang(en)) .bv-sheet-body h2 {
  letter-spacing: 0;
  line-height: var(--bv-leading-deva-heading);
}
:lang(ur),
:lang(ar) {
  line-height: var(--bv-leading-urdu);
}
/* Arrows and other icons that point a direction turn round in right-to-left languages. */
[dir="rtl"] .bv-flip {
  transform: scaleX(-1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page-sky) no-repeat, var(--background);
  color: var(--foreground);
  font: var(--text) / var(--leading) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--bv-selection);
}
:focus-visible {
  outline: 2px solid var(--bv-focus);
  outline-offset: 3px;
}
a {
  color: var(--bv-link);
}

/* ---------- Page ---------- */

/* One column the width of a phone, centred. Safe areas keep it off the notch and the home bar. */
.bv-page {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(2.5rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}
/* A wider column for reading (a lesson, a khabar). */
.bv-page.bv-read {
  --page-width: 46rem;
}

/* The app's name at the top of its home screen. `<h1 class="bv-wordmark">ज्ञान <span>Broadvale</span></h1>` */
.bv-wordmark {
  margin: 0;
  font: 600 1.375rem / 1.3 var(--font-display);
  font-stretch: 112.5%;
  letter-spacing: -0.01em;
}
.bv-wordmark span {
  font-weight: 400;
  color: var(--muted-foreground);
}

/* Headings inside a page. */
.bv-title {
  margin: 0 0 0.375rem;
  font: 600 1.875rem / 1.25 var(--font-display);
  font-stretch: 112.5%;
  letter-spacing: -0.01em;
}
.bv-lead {
  margin: 0 0 0.5rem;
  color: var(--muted-foreground);
}

/* ---------- Top bar: back, where you are, language ---------- */

.bv-topbar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.25rem 0 1.125rem;
}
.bv-crumb {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-foreground);
  font: var(--text-small) var(--font-display);
}
.bv-topbar .bv-chip:last-child {
  margin-inline-start: auto;
}

/* ---------- The 12-tile grid (home screen) ---------- */

/* Rows of three. Always 12 slots on a home screen: empty ones use .bv-tile-empty. */
.bv-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

/* A tile: a square with a big mark, its name under it, and an optional small note ("soon").
   <a class="bv-tile" href="…"><span class="bv-sq bv-tone-field">ज्ञा</span><span class="bv-name">ज्ञान</span></a> */
.bv-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-card);
  color: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.bv-sq {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 7rem;
  margin: 0 auto;
  border-radius: var(--radius-tile);
  font: 600 clamp(1.75rem, 9vw, 2.75rem) / 1 var(--font-display);
  box-shadow: var(--shadow-tile);
  transition: transform 0.15s;
}
.bv-tile:hover .bv-sq {
  transform: translateY(-2px);
}
.bv-tile:active .bv-sq {
  transform: translateY(1px);
}
.bv-name {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}
.bv-note {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--muted-foreground);
}
/* Not open yet: faded, does not move, not a link. */
.bv-tile[aria-disabled="true"] {
  cursor: default;
}
.bv-tile[aria-disabled="true"] .bv-sq {
  opacity: 0.7;
}
.bv-tile[aria-disabled="true"]:hover .bv-sq {
  transform: none;
}
/* A slot kept for later. Never fill a slot only to reach 12. */
.bv-tile-empty {
  display: block;
  aspect-ratio: 1;
  width: 100%;
  max-width: 7rem;
  margin: 0 auto;
  border: 2px dashed var(--border);
  border-radius: var(--radius-tile);
}

/* Tile tones. Light text on all but mustard, which takes ink. */
.bv-tone-field {
  background: var(--bv-solid-field);
  color: var(--on-banyan);
}
.bv-tone-canal {
  background: var(--bv-solid-canal);
  color: var(--on-banyan);
}
.bv-tone-banyan {
  background: var(--bv-solid-banyan);
  color: var(--on-banyan);
}
.bv-tone-dusk {
  background: var(--bv-solid-dusk);
  color: var(--on-banyan);
}
.bv-tone-clay {
  background: var(--bv-solid-clay);
  color: var(--on-banyan);
}
.bv-tone-mustard {
  background: var(--bv-solid-mustard);
  color: var(--bv-on-highlight);
}

/* ---------- The dock: one row of buttons at the bottom of a home screen ---------- */

/* Up to 4 buttons, each an icon with a word under it.
   <nav class="bv-dock"><button class="bv-dock-btn"><svg…/>भाषा</button>…</nav> */
.bv-dock {
  margin-top: 2.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-dock);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.bv-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  min-height: var(--touch);
  padding: 0.75rem 0.25rem;
  border: 0;
  border-radius: 20px;
  background: none;
  color: inherit;
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}
.bv-dock-btn:hover {
  background: var(--background);
}
.bv-dock-btn svg,
.bv-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

/* The main action. One per screen. */
.bv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch);
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--banyan);
  color: var(--on-banyan);
  font: 500 1.125rem / 1.2 var(--font-display);
  text-decoration: none;
  cursor: pointer;
}
.bv-btn:hover {
  background: var(--bv-brand-hover);
}
.bv-btn:active {
  transform: translateY(1px);
}
.bv-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}
.bv-btn.bv-wide {
  width: 100%;
}
/* A second action next to the main one. */
.bv-btn.bv-quiet {
  background: var(--card);
  color: var(--foreground);
  box-shadow: inset 0 0 0 1px var(--border);
}
.bv-btn.bv-quiet:hover {
  box-shadow: inset 0 0 0 1px var(--field);
}

/* A small rounded button for the top bar: back, language. Still 40px tall; its hit area grows to 48px. */
.bv-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 40px;
  padding: 0.25rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--foreground);
  font: 500 0.9375rem / 1.2 var(--font-display);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.bv-chip::after {
  content: "";
  position: absolute;
  inset: -4px;
}
.bv-chip:hover {
  border-color: var(--field);
}

/* A small label: "written", "soon". Not a button. */
.bv-tag {
  display: inline-block;
  padding: 0.0625rem 0.5625rem;
  border-radius: var(--radius-pill);
  background: var(--field-soft);
  color: var(--field);
  font-size: 0.75rem;
  font-weight: 600;
}
.bv-tag.bv-tag-canal {
  background: var(--canal-soft);
  color: var(--canal);
}
.bv-tag.bv-tag-grey {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-weight: 400;
}

/* ---------- Cards and lists (inner screens) ---------- */

.bv-card {
  display: block;
  min-width: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}
a.bv-card:hover {
  border-color: var(--field);
}
.bv-card[aria-disabled="true"] {
  opacity: 0.55;
  box-shadow: none;
}
.bv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.625rem;
}
/* "Not written yet", "not translated yet". Calm, never an error colour. */
.bv-empty {
  margin: 1rem 0;
  padding: 1.125rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--muted-foreground);
}

/* ---------- Sheet: a panel over the page ---------- */

/* A native <dialog class="bv-sheet">, so Escape and the back gesture close it.
   Inside: <div class="bv-sheet-body"><header><h2>…</h2><button class="bv-x">…</button></header>…</div> */
.bv-sheet {
  width: min(92vw, 30rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.bv-sheet::backdrop {
  background: rgb(16 26 19 / 0.55);
}
.bv-sheet-body {
  padding: 1.25rem;
}
.bv-sheet-body > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bv-sheet-body h2 {
  margin: 0;
  font: 600 1.5rem / 1.25 var(--font-display);
  font-stretch: 112.5%;
}
.bv-x {
  display: grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  margin: -0.75rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.bv-x:hover {
  background: var(--card);
}

/* ---------- Forms ---------- */

.bv-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.bv-input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  min-height: var(--touch);
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  font-size: 1.125rem;
}

/* ---------- Language picker: 4 rows of 3, placed as on the map of India ---------- */

/* Filled by Broadvale.languagePicker() in languages.js. Sanskrit top left, English bottom right. */
.bv-langs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  max-width: 26rem;
  margin: 0 auto;
}
.bv-langs button {
  aspect-ratio: 1;
  width: 100%;
  padding: 0.375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--foreground);
  font-size: clamp(1rem, 4.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.bv-langs button:hover {
  border-color: var(--field);
}
.bv-langs button[aria-pressed="true"] {
  border: 2px solid var(--bv-accent-solid);
  background: var(--bv-accent-solid);
  color: var(--bv-on-accent-solid);
}

/* ---------- Small things ---------- */

/* A short message at the bottom that fades away by itself. Only for "saved", never for anything to act on. */
.bv-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--foreground);
  color: var(--background);
  font-size: var(--text-small);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.bv-toast.bv-on {
  opacity: 1;
}
/* Text only a screen reader hears. */
.bv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 640px) {
  :root {
    --page-width: 32rem;
  }
  .bv-page {
    padding-inline: 1.5rem;
  }
  .bv-grid {
    column-gap: 2rem;
  }
  .bv-sheet-body {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Only our own components. An app's own animations must handle reduced motion themselves. */
  .bv-sq,
  .bv-btn,
  .bv-toast {
    transition: none;
  }
  .bv-tile:hover .bv-sq,
  .bv-tile:active .bv-sq,
  .bv-btn:active {
    transform: none;
  }
}

/* Extra scripts for HipShopper, self-hosted next to the design-system fonts.
   Latin and Devanagari already come from shared/style (Anek, Mukta).
   Noto Sans Devanagari is added as a fallback. Do not edit shared/style from here.
   SIL Open Font License, from Fontsource / Noto. */
@font-face { font-family: "Noto Sans Devanagari"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-sans-devanagari-devanagari-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-sans-devanagari-devanagari-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-sans-bengali-bengali-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-sans-bengali-bengali-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Gurmukhi"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-sans-gurmukhi-gurmukhi-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Gurmukhi"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-sans-gurmukhi-gurmukhi-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Gujarati"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-sans-gujarati-gujarati-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Gujarati"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-sans-gujarati-gujarati-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Oriya"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-sans-oriya-oriya-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Oriya"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-sans-oriya-oriya-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Tamil"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-sans-tamil-tamil-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Tamil"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-sans-tamil-tamil-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Telugu"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-sans-telugu-telugu-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Telugu"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-sans-telugu-telugu-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Kannada"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-sans-kannada-kannada-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Kannada"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-sans-kannada-kannada-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Malayalam"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-sans-malayalam-malayalam-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Malayalam"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-sans-malayalam-malayalam-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-naskh-arabic-arabic-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-naskh-arabic-arabic-600-normal.woff2) format("woff2"); }

/* The design-system stacks, taken once on <html>. Each language below puts its script font in front of them on <body>.
   (2026-12-06: the earlier rules set --bv-font-sans from itself on the same element, which CSS treats as invalid,
   so Indian-language pages fell back to a serif font. Doing it one level down avoids that loop.) */
:root { --bb-base-sans: var(--bv-font-sans); --bb-base-display: var(--bv-font-display); }

/* Hindi and Marathi keep the design-system fonts first; Noto covers any missing glyphs. */
html[lang="hi"] body, html[lang="mr"] body {
  --bv-font-sans: "Mukta", "Noto Sans Devanagari", var(--bb-base-sans);
  --bv-font-display: "Anek Devanagari", "Noto Sans Devanagari", var(--bb-base-display);
}
html[lang="bn"] body, html[lang="as"] body {
  --bv-font-sans: "Noto Sans Bengali", var(--bb-base-sans);
  --bv-font-display: "Noto Sans Bengali", var(--bb-base-display);
}
html[lang="pa"] body {
  --bv-font-sans: "Noto Sans Gurmukhi", var(--bb-base-sans);
  --bv-font-display: "Noto Sans Gurmukhi", var(--bb-base-display);
}
html[lang="gu"] body {
  --bv-font-sans: "Noto Sans Gujarati", var(--bb-base-sans);
  --bv-font-display: "Noto Sans Gujarati", var(--bb-base-display);
}
html[lang="or"] body {
  --bv-font-sans: "Noto Sans Oriya", var(--bb-base-sans);
  --bv-font-display: "Noto Sans Oriya", var(--bb-base-display);
}
html[lang="ta"] body {
  --bv-font-sans: "Noto Sans Tamil", var(--bb-base-sans);
  --bv-font-display: "Noto Sans Tamil", var(--bb-base-display);
}
html[lang="te"] body {
  --bv-font-sans: "Noto Sans Telugu", var(--bb-base-sans);
  --bv-font-display: "Noto Sans Telugu", var(--bb-base-display);
}
html[lang="kn"] body {
  --bv-font-sans: "Noto Sans Kannada", var(--bb-base-sans);
  --bv-font-display: "Noto Sans Kannada", var(--bb-base-display);
}
html[lang="ml"] body {
  --bv-font-sans: "Noto Sans Malayalam", var(--bb-base-sans);
  --bv-font-display: "Noto Sans Malayalam", var(--bb-base-display);
}
html[lang="ur"] body {
  --bv-font-sans: "Noto Naskh Arabic", var(--bb-base-sans);
  --bv-font-display: "Noto Naskh Arabic", var(--bb-base-display);
}
html[lang="hi"] body, html[lang="mr"] body,
html[lang="bn"] body, html[lang="as"] body,
html[lang="pa"] body, html[lang="gu"] body, html[lang="or"] body,
html[lang="ta"] body, html[lang="te"] body, html[lang="kn"] body, html[lang="ml"] body, html[lang="ur"] body {
  --font-sans: var(--bv-font-sans);
  --font-display: var(--bv-font-display);
}

/* Avoid a flash of English while a saved non-English choice is applied. */
html.bb-pending body { visibility: hidden; }

/* HipShopper: only layout and small pieces on top of shared/style (tokens + bv- components). No colours set here:
   every colour is a --bv-* token, so light, dark and the consumer family follow by themselves.
   2026-12-06 icons redesign: icon-first tiles, compact product cards. 2026-12-06 why-cards: why, tradeoff and both store ratings on the card face. Overrides and reasons: ../../design/style.md. */

/* ---------- Page width: a phone column; wider on a computer so tiles go 4 then 6 a row ---------- */
.bb-page { --page-width: var(--bv-width-phone); }
@media (min-width: 40rem) { .bb-page { --page-width: 40rem; } }
@media (min-width: 60rem) { .bb-page { --page-width: 60rem; } }

/* ---------- Icons (Tabler, inline SVG) ---------- */
.bb-ic { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bb-ic-fill { fill: currentColor; stroke: none; }
[dir="rtl"] .bv-flip { display: block; transform: scaleX(-1); }

/* ---------- Top bar ---------- */
.bb-top { display: flex; align-items: center; gap: var(--bv-space-3); margin-bottom: var(--bv-space-5); min-height: var(--bv-touch); }
.bb-wordmark { margin: 0; flex: 1 1 auto; font-size: var(--bv-text-xl); }
.bb-title { margin: 0; flex: 1 1 auto; min-width: 0; font: 600 var(--bv-text-xl) / var(--bv-leading-heading) var(--bv-font-display); text-wrap: balance; overflow-wrap: break-word; }
.bb-category .bb-title { font-size: var(--bv-text-lg); }
:root:not(:lang(en)) .bb-title { line-height: var(--bv-leading-deva-heading); }
.bb-back, .bb-iconbtn, .bb-lang {
  position: relative; flex: none; display: grid; place-items: center;
  width: var(--bv-touch); height: var(--bv-touch); padding: 0;
  border: 1px solid var(--bv-border); border-radius: var(--bv-radius-pill);
  background: var(--bv-surface); color: var(--bv-fg); text-decoration: none; cursor: pointer;
}
.bb-iconbtn { border-color: transparent; background: none; color: var(--bv-fg-muted); }
.bb-back:hover, .bb-lang:hover, .bb-iconbtn:hover { border-color: var(--bv-accent); }
.bb-lang { margin-inline-start: auto; }
.bb-lang:focus-within { outline: 2px solid var(--bv-focus); outline-offset: 3px; }
/* The real <select> covers the round button, invisible, so a tap opens the phone's own list. */
.bb-lang-select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
  appearance: none; border: 0; font-size: var(--bv-text-base);
  font-family: "Anek Latin", "Anek Devanagari", "Mukta", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Gurmukhi", "Noto Sans Gujarati", "Noto Sans Oriya", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Kannada", "Noto Sans Malayalam", "Noto Naskh Arabic", sans-serif;
}
/* The page's own icon beside its name. */
.bb-head-ic.bv-sq { flex: none; width: 2.75rem; max-width: none; margin: 0; box-shadow: none; }
.bb-head-ic > .bb-ic { width: 58%; height: 58%; }

/* ---------- Tile grid: 3 a row on a phone, 4 on a tablet, 6 on a computer ---------- */
.bb-grid { margin: var(--bv-space-2) 0 0; gap: var(--bv-space-4) var(--bv-space-3); }
@media (min-width: 40rem) { .bb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .bb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--bv-space-5) var(--bv-space-4); } }
.bb-tile { min-height: var(--bv-touch); }
.bb-tile .bv-sq { position: relative; max-width: 6.5rem; }
.bb-tile .bv-sq > .bb-ic { width: 46%; height: 46%; stroke-width: 1.75; }
/* Soft tiles (categories): a tinted square, the icon in the deeper tone. */
.bv-sq.bb-soft { box-shadow: none; }
.bb-soft-field { background: var(--bv-field-soft); color: var(--bv-field); }
.bb-soft-canal { background: var(--bv-canal-soft); color: var(--bv-canal); }
.bb-soft-dusk { background: var(--bv-dusk-soft); color: var(--bv-dusk); }
.bb-soft-mustard { background: var(--bv-warning-soft); color: var(--bv-warning); }
.bb-soft-clay { background: var(--bv-danger-soft); color: var(--bv-clay); }
/* Not open yet: muted, with a small clock in the corner instead of words. */
.bb-tile[aria-disabled="true"] .bv-sq { opacity: 0.45; }
.bb-soon { position: absolute; inset-block-end: 6%; inset-inline-end: 6%; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: var(--bv-radius-pill); background: var(--bv-surface); color: var(--bv-fg-muted); }
.bb-soon .bb-ic { width: 0.95rem; height: 0.95rem; }
/* Optional tiny name under a tile (CONFIG.tileLabels in build.mjs). */
.bb-label { margin-top: var(--bv-space-1); font-size: var(--bv-text-sm); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- "What to look for": a small panel over the page ---------- */
.bb-pop { width: min(92vw, 28rem); padding: var(--bv-space-4) var(--bv-space-5); border: 1px solid var(--bv-border); border-radius: var(--bv-radius-xl); background: var(--bv-surface); color: var(--bv-fg); box-shadow: var(--bv-shadow-lg); }
.bb-pop p { margin: 0 0 var(--bv-space-2); }
.bb-pop p:last-child { margin: 0; }

/* ---------- Filter chips: one row that scrolls sideways ---------- */
.bb-filter { display: flex; gap: var(--bv-space-2); margin: 0 calc(-1 * var(--bv-space-4)) var(--bv-space-3); padding: var(--bv-space-1) var(--bv-space-4); overflow-x: auto; scrollbar-width: none; }
.bb-filter::-webkit-scrollbar { display: none; }
.bb-filter[hidden] { display: none; }
.bb-fchip {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: var(--bv-space-1);
  min-height: 40px; padding: 0 var(--bv-space-3); white-space: nowrap;
  border: 1px solid var(--bv-border); border-radius: var(--bv-radius-pill);
  background: var(--bv-surface); color: var(--bv-fg); font: 500 var(--bv-text-sm) / 1.2 var(--bv-font-display); cursor: pointer;
}
.bb-fchip::after { content: ""; position: absolute; inset: -4px 0; }
.bb-fchip .bb-ic { width: 18px; height: 18px; }
.bb-fchip[aria-pressed="true"] { background: var(--bv-brand); color: var(--bv-on-brand); border-color: var(--bv-brand); }

/* ---------- Product cards ---------- */
.bb-items { display: grid; gap: var(--bv-space-3); }
@media (min-width: 60rem) { .bb-items { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.bb-item { padding: var(--bv-space-4); }
.bb-item[hidden] { display: none; }
.bb-item-name { margin: 0; font: 600 var(--bv-text-lg) / var(--bv-leading-heading) var(--bv-font-display); }
.bb-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bv-space-2) var(--bv-space-3); margin: var(--bv-space-2) 0 var(--bv-space-2); }
.bb-price { margin: 0; font: 700 var(--bv-text-xl) / 1.1 var(--bv-font-display); }
.bb-price small { font: 400 var(--bv-text-sm) / 1 var(--bv-font-sans); color: var(--bv-fg-muted); }
/* Both store ratings as plain text (never links). Numbers stay LTR in Urdu. */
.bb-rates { list-style: none; display: flex; flex-wrap: wrap; gap: var(--bv-space-1) var(--bv-space-4); margin: 0 0 var(--bv-space-3); padding: 0; font: 500 var(--bv-text-sm) / 1.4 var(--bv-font-display); }
.bb-rates li { direction: ltr; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0.25em; }
.bb-rstore { font: 600 var(--bv-text-xs) / 1.4 var(--bv-font-display); color: var(--bv-fg-muted); }
.bb-rstars { font-weight: 600; color: var(--bv-success); }
/* Short why / tradeoff on the card face. Longer research text stays behind More. */
.bb-pick { margin: 0 0 var(--bv-space-2); font: 400 var(--bv-text-sm) / 1.45 var(--bv-font-sans); color: var(--bv-fg); }
.bb-pick-k { display: block; margin-bottom: 1px; font: 600 var(--bv-text-xs) / 1.3 var(--bv-font-display); color: var(--bv-fg-muted); }
.bb-tradeoff { color: var(--bv-fg-soft); }
.bb-feat { list-style: none; display: flex; gap: var(--bv-space-2); margin: 0; padding: 0; margin-inline-start: auto; color: var(--bv-fg-muted); }
.bb-feat .bb-ic { width: 20px; height: 20px; }
.bb-buyrow { display: flex; flex-wrap: wrap; gap: var(--bv-space-2); }
/* The cheapest trusted store is the one big button; other stores sit under it as quiet buttons. */
.bb-buy { flex: 1 1 auto; justify-content: space-between; gap: var(--bv-space-3); padding-inline: var(--bv-space-4); font-size: var(--bv-text-sm); white-space: nowrap; overflow-wrap: normal; }
.bb-buy:not(.bv-quiet) { flex-basis: 100%; font-size: var(--bv-text-base); }
.bb-buyrow:has(.bb-fallback-label) .bb-buy { flex-basis: 0; font-size: var(--bv-text-sm); }
.bb-buy-p { font-weight: 700; white-space: nowrap; }
.bb-oos { white-space: nowrap; font-size: var(--bv-text-sm); }
.bb-nostore, .bb-fallback-label { flex: 1 0 100%; margin: 0; color: var(--bv-fg-muted); font-size: var(--bv-text-sm); }
.bb-buyrow:has(.bb-fallback-label) .bb-buy { font-weight: 400; }
.bb-item-name { overflow-wrap: break-word; }
/* Suits, the longer why, full rating notes, price note and sources wait behind "More". */
.bb-more { margin-top: var(--bv-space-2); }
.bb-more > summary { display: inline-flex; align-items: center; gap: var(--bv-space-1); min-height: var(--bv-touch); list-style: none; cursor: pointer; color: var(--bv-link); font: 500 var(--bv-text-sm) / 1 var(--bv-font-display); }
.bb-more > summary::-webkit-details-marker { display: none; }
.bb-chev { width: 18px; height: 18px; transition: transform var(--bv-motion-fast) var(--bv-motion-ease); }
.bb-more[open] .bb-chev { transform: rotate(180deg); }
.bb-why { margin: 0 0 var(--bv-space-3); }
.bb-h4 { font: 600 var(--bv-text-base) / 1.3 var(--bv-font-display); margin: var(--bv-space-3) 0 var(--bv-space-1); }
.bb-h4 small { font-weight: 400; color: var(--bv-fg-muted); }
.bb-dl { margin: 0 0 var(--bv-space-3); display: grid; grid-template-columns: auto 1fr; gap: var(--bv-space-1) var(--bv-space-3); }
.bb-dl dt { font-weight: 600; }
.bb-dl dd { margin: 0; color: var(--bv-fg-soft); }
@media (max-width: 26rem) { .bb-dl { grid-template-columns: 1fr; } .bb-dl dd { margin-bottom: var(--bv-space-2); } }
.bb-signal ul, .bb-src { list-style: none; margin: 0; padding: 0; }
.bb-signal li, .bb-src li { padding: var(--bv-space-1) 0; }
.bb-store { display: inline-block; min-width: 6rem; font-weight: 600; }
.bb-star { font-weight: 600; }
.bb-nv { color: var(--bv-fg-muted); font-style: italic; }
.bb-nvnote { font-style: normal; font-size: var(--bv-text-sm); }
.bb-pricenote { margin: var(--bv-space-3) 0 0; color: var(--bv-fg-muted); font-size: var(--bv-text-sm); }

/* ---------- Footer: tiny ---------- */
.bb-foot { margin-top: var(--bv-space-7); color: var(--bv-fg-muted); font-size: var(--bv-text-xs); text-align: center; }
.bb-foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .bv-sq, .bb-chev { transition: none; } }
