:root {
    --forest: #14342b;
    --forest-deep: #0c221c;
    --forest-soft: #1f4d40;
    --leaf: #2f6f5b;
    --terracotta: #c45c26;
    --clay: #d9783a;
    --gold: #c4a35a;
    --paper: #f3eee3;
    --paper-2: #ebe3d2;
    --card: #fbf7ef;
    --ink: #1c1915;
    --muted: #6b6358;
    --line: #ddd2bc;
    --ok: #1f6b45;
    --warn: #9a6700;
    --bad: #9b2c2c;
    --mute: #5c564c;
    --shadow: 0 18px 40px rgba(20, 52, 43, 0.08);
    --radius: 18px;
    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans: "Figtree", "Nirmala UI", "Noto Sans Devanagari", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--forest); }
.skip {
    position: absolute; left: -999px; top: 8px;
    background: var(--forest); color: #fff; padding: 8px 12px; z-index: 20;
}
.skip:focus { left: 8px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
    background: var(--forest-deep);
    color: #efe6d4;
    font-size: 13px;
    letter-spacing: .04em;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; align-items: center; flex-wrap: wrap; }
.topbar a { color: #efe6d4; text-decoration: none; }
.topbar-note { opacity: .85; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.langs-pin {
    display: flex; gap: 6px; margin-right: 4px; padding-right: 10px;
    border-right: 1px solid rgba(255,255,255,.22);
}
.langs a {
    color: #efe6d4; text-decoration: none; padding: 5px 11px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16); font-size: 12px; line-height: 1.2; white-space: nowrap;
}
.langs a.is-pin { font-weight: 700; background: rgba(196,163,90,.18); border-color: rgba(196,163,90,.65); }
.langs a.is-active { background: var(--gold); color: var(--forest-deep); border-color: var(--gold); font-weight: 700; }
.side .langs { margin-top: 4px; }
.side .langs-pin { border-color: rgba(255,255,255,.2); }
.locale-hi, .locale-mr { --sans: "Noto Sans Devanagari", "Nirmala UI", "Figtree", sans-serif; }
.locale-bn, .locale-as { --sans: "Noto Sans Bengali", "Nirmala UI", "Figtree", sans-serif; }
.locale-ta { --sans: "Noto Sans Tamil", "Nirmala UI", "Figtree", sans-serif; }
.locale-te { --sans: "Noto Sans Telugu", "Nirmala UI", "Figtree", sans-serif; }
.locale-gu { --sans: "Noto Sans Gujarati", "Nirmala UI", "Figtree", sans-serif; }
.locale-pa { --sans: "Noto Sans Gurmukhi", "Nirmala UI", "Figtree", sans-serif; }
.locale-kn { --sans: "Noto Sans Kannada", "Nirmala UI", "Figtree", sans-serif; }
.locale-ml { --sans: "Noto Sans Malayalam", "Nirmala UI", "Figtree", sans-serif; }
.locale-or { --sans: "Noto Sans Oriya", "Nirmala UI", "Figtree", sans-serif; }
.locale-ur { --sans: "Noto Naskh Arabic", "Nirmala UI", "Figtree", sans-serif; }

.state-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.state-grid a {
    display: flex; flex-direction: column; gap: 2px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 14px; text-decoration: none; color: inherit; font-size: 15px;
}
.state-grid a strong { font-weight: 700; }
.state-grid a span { color: var(--muted); font-size: 13px; }
.state-grid a:hover { border-color: var(--leaf); }
[data-districts-json] { display: none; }

.site-header {
    background: linear-gradient(180deg, #1a4338 0%, var(--forest) 100%);
    color: #f6f0e4;
    position: sticky; top: 0; z-index: 10;
    border-bottom: 4px solid var(--gold);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo {
    display: block;
    height: 70px;
    width: auto;
    max-width: min(280px, 55vw);
    object-fit: contain;
}
.brand-logo-footer {
    height: 70px;
    max-width: 240px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}
.brand-logo-side {
    height: 48px;
    max-width: 200px;
    filter: brightness(0) invert(1);
}
.brand-mark {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--paper);
    color: var(--forest);
    display: grid; place-items: center;
    font-family: var(--serif); font-weight: 700; font-size: 20px;
    box-shadow: inset 0 0 0 3px var(--gold);
}
.brand strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; }
.brand small { display: block; opacity: .78; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a, .nav button.linkish {
    color: #f6f0e4; text-decoration: none; background: none; border: 0;
    font: inherit; cursor: pointer; padding: 8px 10px; border-radius: 999px;
}
.nav a:hover, .nav a.is-active { background: rgba(255,255,255,.1); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 999px; padding: 11px 18px; font: inherit; font-weight: 650;
    cursor: pointer; text-decoration: none; transition: .18s ease;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: #a84b1d; }
.btn-dark { background: var(--forest-deep); color: #f6f0e4; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn-light { background: var(--paper); color: var(--forest); }
.menu-toggle { display: none; }

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(196,163,90,.22), transparent 28%),
        linear-gradient(160deg, var(--forest-deep), var(--forest) 55%, #1b4a3c);
    color: #f7f1e6;
    padding: 72px 0 88px;
}
.hero::after {
    content: "";
    position: absolute; inset: auto 0 0; height: 42px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f3eee3' d='M0 40c120 30 240-30 360 0s240 30 360 0 240-30 360 0 240 30 360 0v40H0z'/%3E%3C/svg%3E") center/cover no-repeat;
}
.kicker {
    display: inline-block; letter-spacing: .16em; text-transform: uppercase;
    font-size: 12px; color: var(--gold); margin-bottom: 14px;
}
.hero h1 {
    font-family: var(--serif); font-weight: 520; font-size: clamp(36px, 6vw, 68px);
    line-height: 1.08; margin: 0 0 18px; max-width: 16ch;
}
.hero p.lede { font-size: 19px; max-width: 58ch; opacity: .92; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.search-panel {
    background: rgba(251,247,239,.96); color: var(--ink);
    border-radius: 22px; padding: 14px; display: grid;
    grid-template-columns: 1fr auto; gap: 10px;
    box-shadow: var(--shadow); max-width: 720px;
}
.search-panel input, .field input, .field textarea, .filters input {
    width: 100%; border: 1px solid var(--line); background: #fff;
    border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink);
    min-height: 48px;
}
.search-panel input:focus, .field input:focus, .field textarea:focus, .filters input:focus {
    outline: none; border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(47, 111, 91, .22);
}
.field input[type="date"] {
    min-height: 52px;
    padding-right: 12px;
    color-scheme: light;
    cursor: pointer;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .7;
    padding: 6px;
    margin-left: 8px;
}
.field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 48px;
    font: inherit;
    color: var(--ink);
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 44px 12px 14px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6.2L8 10.6 12.5 6.2' stroke='%2314342b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    box-shadow: 0 1px 0 rgba(20, 52, 43, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
select:hover {
    border-color: var(--leaf);
}
select:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(47, 111, 91, .22);
}
select:disabled {
    opacity: .65;
    cursor: not-allowed;
}
select option {
    background: #fff;
    color: var(--ink);
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 28px; max-width: 920px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--serif); font-size: 28px; }
.stat span { font-size: 13px; opacity: .8; }

.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 28px; }
h2, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.muted { color: var(--muted); }
.why-grid, .steps, .cards, .faq { display: grid; gap: 18px; }
.why-grid { grid-template-columns: repeat(3, 1fr); }
.card, .notice, .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card { padding: 22px; }
.why-grid .card h3 { font-family: var(--serif); margin: 12px 0 8px; font-size: 24px; }
.icon-blob {
    width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center; background: var(--paper-2); font-size: 22px;
}
.quote-band {
    background: var(--paper-2);
    border-block: 1px solid var(--line);
}
.quote {
    font-family: var(--serif); font-size: clamp(24px, 4vw, 38px);
    line-height: 1.25; max-width: 22ch; margin: 0;
}
.steps { grid-template-columns: repeat(4, 1fr); }
.step { padding: 22px; }
.step .num {
    font-family: var(--serif); color: var(--terracotta); font-size: 28px;
}
.cards { grid-template-columns: repeat(3, 1fr); }
.report-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; text-decoration: none; color: inherit; }
.report-card .card-media { aspect-ratio: 16 / 10; background: #0f1c18; overflow: hidden; }
.report-card .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.report-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.report-card h3 { margin: 0; font-size: 20px; font-family: var(--serif); }
.blog-cards {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    max-width: 980px;
}
.blog-cards .report-card {
    max-width: 100%;
}
.blog-cards .card-media {
    aspect-ratio: 4 / 3;
    max-height: 160px;
}
.blog-cards .body {
    padding: 14px 16px 16px;
    gap: 6px;
}
.blog-cards h3 {
    font-size: 18px;
}
.blog-cards .muted {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.post-gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0f1c18;
    text-decoration: none;
    color: inherit;
}
.post-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.admin-gallery-item { padding-bottom: 8px; }
.admin-gallery-item .meta { display: block; padding: 8px 10px 0; }
.chip, .badge {
    display: inline-flex; align-items: center; border-radius: 999px;
    padding: 4px 10px; font-size: 12px; font-weight: 650; letter-spacing: .02em;
}
.chip { background: var(--paper-2); color: var(--forest); }
.chip.is-need { background: #efe4c8; color: #6b3f12; }
.chip.is-on { box-shadow: inset 0 0 0 2px var(--forest); }
.badge.ok { background: #e4f3ea; color: var(--ok); }
.badge.warn { background: #fff3d6; color: var(--warn); }
.badge.bad { background: #fde8e8; color: var(--bad); }
.badge.mute { background: #eeeae2; color: var(--mute); }
.meta { font-size: 13px; color: var(--muted); }
.empty {
    text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius);
    background: rgba(255,255,255,.35);
}

.page-hero { padding: 42px 0 10px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); margin: 0 0 10px; }
.filters {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 10px; margin: 24px 0;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-results.is-loading { opacity: .55; pointer-events: none; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 30px; margin: 32px 0 10px; }
.prose p, .prose li { color: #3d3830; }
.faq details {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
}
.faq summary { cursor: pointer; font-weight: 700; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.help { font-size: 13px; color: var(--muted); margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.error { color: var(--bad); font-size: 13px; margin-top: 6px; }
.flash {
    padding: 12px 16px; border-radius: 12px; margin: 16px 0; font-weight: 600;
}
.flash.ok { background: #e4f3ea; color: var(--ok); }
.flash.bad { background: #fde8e8; color: var(--bad); }
.alert-list { background: #fde8e8; color: var(--bad); border-radius: 12px; padding: 12px 16px; }

.detail-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.notice { padding: 22px; }
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f1c18;
    border-radius: 12px;
    overflow: hidden;
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.engage { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.comments h2 { font-size: 28px; }
.comment p { margin: 0; }
button.linkish, .linkish {
    background: none; border: 0; font: inherit; color: var(--forest);
    cursor: pointer; text-decoration: underline; padding: 0;
}

.site-footer {
    background: var(--forest-deep); color: #e8dfcf; padding: 48px 0 24px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer a { color: #e8dfcf; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 13px; opacity: .8; }

.dash {
    display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 0px);
}
.side {
    background: var(--forest-deep); color: #efe6d4; padding: 22px 16px;
}
.side a, .side button.linkish {
    display: block; color: #efe6d4; text-decoration: none; padding: 10px 12px;
    border-radius: 10px; background: none; border: 0; font: inherit; width: 100%; text-align: left; cursor: pointer;
}
.side a:hover, .side a.is-active { background: rgba(255,255,255,.08); }
.dash-main { padding: 28px; background: var(--paper); }
.table-wrap { overflow: auto; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pager a, .pager span { padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(460px, 100%); padding: 28px; }

@media (max-width: 900px) {
    .why-grid, .steps, .cards, .detail-grid, .footer-grid, .dash, .form-grid, .filters, .stats {
        grid-template-columns: 1fr;
    }
    .state-grid { grid-template-columns: 1fr 1fr; }
    .menu-toggle { display: inline-flex; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--forest); padding: 12px; flex-direction: column; align-items: stretch; }
    .nav.open { display: flex; }
    .site-header { position: relative; }
    .search-panel { grid-template-columns: 1fr; }
    .dash-main { padding: 18px 14px; }
}
