/* The public India data pages (internal/seo). Self-contained, like the landing page's stylesheet: the same fonts
   (served by the web container under /fonts/) and the Paper / Night palette, no app tokens. Text pages that work
   without JavaScript. */

@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

:root {
  --bg: #fbf8f1;
  --bg-2: #ffffff;
  --bg-alt: #f3eee2;
  --ink: #1c1a16;
  --ink-2: #4a453c;
  --ink-3: #7a7365;
  --line: #e2dccd;
  --accent: #ec4a2f;
  --accent-ink: #fbf8f1;
  --link: #b8321b;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e17;
    --bg-2: #121826;
    --bg-alt: #0f1420;
    --ink: #eef0f4;
    --ink-2: #b8bfcc;
    --ink-3: #8a93a3;
    --line: #242c3c;
    --accent: #c6ff3d;
    --accent-ink: #0a0e17;
    --link: #c6ff3d;
  }
  .map img {
    filter: brightness(0.92);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0.4rem 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.wrap {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--bg-2);
  padding: 0.5rem 1rem;
}

.top {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.wordmark b {
  font-weight: 800;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  margin: 0.25rem 0.4rem 0.25rem 0;
}
.btn:hover {
  background: var(--bg-alt);
}
.nav .btn,
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  filter: brightness(0.95);
  background: var(--accent);
}
.btn-sm {
  min-height: 34px;
  padding: 0.25rem 0.8rem;
  margin: 0;
}

.page {
  padding: 1.2rem 0 4rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.crumbs li + li::before {
  content: "›";
  margin-right: 0.35rem;
}
.crumbs a {
  color: var(--ink-2);
}

.answer {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  font-size: 1.06rem;
  max-width: 78ch;
}
.answer p {
  margin: 0 0 0.55rem;
}
.answer .updated {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.map {
  margin: 1.8rem 0 0;
}
.map img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt);
}
.map figcaption {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}

section > p {
  max-width: 78ch;
  color: var(--ink-2);
}
.note {
  font-size: 0.9rem;
  color: var(--ink-3);
}

.scroll {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  padding: 0.7rem 0.9rem 0;
  font-size: 0.85rem;
  color: var(--ink-3);
}
th,
td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: var(--bg-alt);
}
tbody th {
  font-weight: 500;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
small {
  color: var(--ink-3);
}

.chips,
.packs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.chips a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  text-decoration: none;
  color: var(--ink);
}
.chips a:hover {
  border-color: var(--ink-3);
}
.packs .btn {
  margin: 0;
  font-weight: 500;
}

.cta {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 0.2rem 1.4rem 1.2rem;
  margin-top: 2.6rem;
}
.cta h2 {
  border-top: 0;
}

.faq dt {
  font-weight: 600;
  margin-top: 1rem;
}
.faq dd {
  margin: 0.25rem 0 0;
  color: var(--ink-2);
  max-width: 78ch;
}

.sources p {
  font-size: 0.92rem;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot a {
  color: var(--ink-2);
}

/* Investigations and solution pages. */
.eyebrow {
  margin: 1.2rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.findings {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.8rem;
}
.findings li {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.findings strong {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--ink);
}
.findings span {
  color: var(--ink-2);
}
.findings small {
  color: var(--ink-3);
}
.map-tall img {
  max-width: 760px;
}
.legend {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.3rem 1rem;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
}
.swatch {
  flex: none;
}
.steps {
  max-width: 78ch;
  padding-left: 1.3rem;
  color: var(--ink-2);
}
.steps li {
  margin: 0 0 0.6rem;
}
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.2rem;
}
.card,
.evidence {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.card img,
.evidence img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  background: var(--bg-alt);
}
.card h2,
.evidence h3 {
  font-size: 1.15rem;
}

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.compare-form {
  display: grid;
  gap: 0.5rem;
  max-width: 32rem;
  margin: 1.5rem 0;
}
.compare-form select {
  font: inherit;
  padding: 0.4rem;
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .nav {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }
  .nav a:not(.btn) {
    display: none;
  }
}
