:root {
  --soil: #5c3d24;
  --soil-deep: #3d2818;
  --green: #3d5c3a;
  --green-deep: #2c4329;
  --saffron: #c45c26;
  --saffron-soft: #e08a4f;
  --cream: #f7f1e3;
  --cream-2: #efe6d4;
  --white: #fffcf6;
  --ink: #2c2416;
  --muted: #6b5b4a;
  --line: #d9cbb4;
  --card: #fffdf8;
  --radius: 16px;
  --shadow: none;
  --max: 1120px;
  --font: "Noto Sans Devanagari", "Noto Sans", system-ui, sans-serif;
  --serif: "Noto Serif Devanagari", "Noto Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); }
a:hover { color: var(--saffron); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.25;
  font-weight: 700;
  color: var(--soil-deep);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }

.sr-only, .skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--soil);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.35rem;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: 0.75rem; }

.header-search {
  margin-left: auto;
  display: none;
  flex: 1;
  max-width: 420px;
}
.header-search input,
.header-search button,
.filter-form select,
.filter-form button,
.map-search input,
.map-search button,
.submit-form input,
.submit-form select,
.submit-form textarea,
.submit-form button {
  font: inherit;
}
.header-search {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.header-search input {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 10px 14px;
}
.header-search button,
.nav-toggle,
.filter-form button,
.map-search button {
  border: 0;
  background: var(--soil);
  color: var(--cream);
  padding: 10px 16px;
  cursor: pointer;
}
.nav-toggle { border-radius: 999px; }

.site-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-width: var(--max);
  margin-inline: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--soil);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--saffron); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(44, 36, 22, 0.42), rgba(44, 36, 22, 0.62)),
    var(--hero-image, #5c3d24);
  background-size: cover;
  background-position: center;
  color: var(--cream);
  min-height: 68vh;
  display: grid;
  align-items: end;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 16px 48px;
}
.hero h1, .hero .lede, .hero .eyebrow { color: var(--cream); }
.eyebrow {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 8px;
}
.lede { font-size: 1.15rem; max-width: 38rem; }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: #a64b1d; color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.hero .btn-ghost { color: var(--cream); }

.section { padding: 48px 0; }
.section.alt { background: var(--cream-2); }
.section-inner, .page-wrap { max-width: var(--max); margin: 0 auto; padding: 28px 16px 56px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 20px;
}
.section-head a, .text-link { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.stats-grid, .card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.stat-card, .card, .profile-card, .notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-card { padding: 18px; text-align: center; }
.stat-card strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--serif);
  color: var(--soil);
}
.card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #cbb89a;
}
.card-body { padding: 14px 16px 18px; }
.card-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 6px; }
.card h3 a { text-decoration: none; color: inherit; }

.cta-band {
  background: var(--green);
  color: var(--cream);
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); }

.site-footer {
  background: var(--soil-deep);
  color: var(--cream);
  padding: 40px 16px 20px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.site-footer a { color: #f0d7b4; }
.site-footer h2, .site-footer h3 { color: var(--cream); }
.footer-links { list-style: none; padding: 0; }
.copyright { max-width: var(--max); margin: 28px auto 0; opacity: 0.8; }

.bkn-breadcrumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 16px; }
.archive-head { margin-bottom: 20px; }
.filter-bar { display: flex; gap: 12px; }
.filter-bar a { text-decoration: none; }
.filter-bar .is-active { font-weight: 800; color: var(--saffron); }
.filter-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.single-hero-img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin-bottom: 16px;
}
.single-grid { display: grid; gap: 20px; }
.profile-card { padding: 18px; height: fit-content; }
.fact-list { margin: 0; }
.fact-list div { margin-bottom: 10px; }
.fact-list dt { font-size: 0.82rem; color: var(--muted); }
.fact-list dd { margin: 0; font-weight: 600; }

.submit-form { display: grid; gap: 10px; max-width: 640px; }
.submit-form input, .submit-form select, .submit-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.submit-form .hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.notice { padding: 12px 14px; }
.notice.success { border-color: var(--green); }
.notice.error { border-color: var(--saffron); }

.search-group { margin: 28px 0; }
.result-list { list-style: none; padding: 0; }
.result-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }

.timeline { list-style: none; padding: 0; border-left: 3px solid var(--saffron); margin-left: 8px; }
.timeline li { padding: 0 0 20px 18px; }

.map-page { padding-bottom: 0; }
.map-toolbar {
  max-width: none;
  padding: 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.map-toolbar h1 { font-size: 1.4rem; }
.map-search { display: flex; margin-top: 10px; max-width: 520px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.map-search input { flex: 1; border: 0; padding: 10px 14px; }
.map-layout { display: grid; min-height: 72vh; }
.village-map { min-height: 420px; background: #d7e0c8; }
.map-layers, .map-results { background: var(--white); padding: 12px 14px; border-top: 1px solid var(--line); }
.map-layers label { display: block; padding: 4px 0; }
.map-results article { padding: 10px 0; border-bottom: 1px solid var(--line); }
.map-results h3 { font-size: 1rem; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 12, 0.88);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 20px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(96vw, 1100px); max-height: 86vh; }
.lightbox button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }

@media (min-width: 720px) {
  .header-search { display: flex; }
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .single-grid { grid-template-columns: 1.4fr 0.8fr; }
  .map-layout { grid-template-columns: 200px 1fr 280px; }
  .map-layers, .map-results { border-top: 0; border-left: 1px solid var(--line); }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.compact, .people-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(6, 1fr); }
}
