/* AeroGyan — the "Made in India" badge with the national flag of India (ag-india v2). The same file in every app.
   The flag (js/ag-india.js draws it) keeps its official colours in every theme — never recoloured, stretched,
   cropped, rotated or animated; a neutral 1-px border keeps the white band visible on light and dark surfaces.
   Used ONLY in this badge: footer, About / Settings / Help line, landing or download hero pill, install sheet foot.
   Not on payment screens, not next to ads, not as a logo / icon / button / background / decoration.
   JS-free markup: see README (the full inline <svg>).
   Variants: --footer (badge), --line (About / Settings / Help), --pill (hero). The v1 tricolour hairline is retired. */
.ag-india {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; box-sizing: border-box; vertical-align: middle;
  font: 600 11.5px/1.25 var(--ag-font, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif);
  letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
  color: var(--ag-india-ink, var(--ag-muted, #5b6478));
}
.ag-india:lang(hi) { letter-spacing: 0; text-transform: none; font-size: 12.5px; }   /* Devanagari: no tracking */
.ag-india__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* the flag: exactly 3:2, official colours, a neutral hairline border (never a recolour) */
.ag-india__flag {
  display: block; flex: none; width: 18px; height: 12px; aspect-ratio: 3 / 2; border-radius: 0; overflow: visible;
  box-shadow: 0 0 0 1px var(--ag-india-edge, var(--ag-line-2, rgba(15, 23, 42, .22)));
  transform: none; animation: none; transition: none; forced-color-adjust: none;
}

/* footer badge: a quiet chip */
.ag-india--footer {
  padding: 5px 11px 5px 9px; border-radius: 999px;
  background: var(--ag-surface, transparent); border: 1px solid var(--ag-line, rgba(127, 127, 127, .25));
}

/* About / Settings / Help line: sentence case, body size */
.ag-india--line { gap: 9px; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: normal; }
.ag-india--line:lang(hi) { font-size: 13.5px; }
.ag-india--line .ag-india__text { overflow: visible; }

/* landing / download hero pill: a calm outlined pill, a slightly larger flag */
.ag-india--pill {
  padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 12px;
  color: var(--ag-india-pill-ink, var(--ag-text, #0f172a));
  background: var(--ag-india-pill-bg, var(--ag-surface, #fff)); border: 1px solid var(--ag-line-2, rgba(127, 127, 127, .3));
  box-shadow: var(--ag-shadow-1, 0 1px 2px rgba(15, 23, 42, .06));
}
.ag-india--pill:lang(hi) { font-size: 13px; }
.ag-india--pill .ag-india__flag { width: 21px; height: 14px; }

/* a row that centres a badge (footers, the install sheet) */
.ag-india-row, .agi-india { display: flex; justify-content: center; flex-wrap: wrap; margin: 14px 0 0; min-width: 0; }

/* v1 leftovers (retired): the tricolour hairline is gone everywhere */
.ag-india-bar { display: none !important; }
.ag-india-under::after { content: none !important; }

@media (forced-colors: active) { .ag-india--pill { border-color: CanvasText; } }
