:root {
  --ink: #0c3a36;
  --ink-2: #143f3b;
  --gold: #c47a2d;
  --gold-2: #a85f18;
  --paper: #eef4f1;
  --card: #ffffff;
  --line: #d5e0db;
  --muted: #4d6b66;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans Devanagari", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
a { color: var(--ink); }
.site-header { background: var(--ink); color: #fff; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 16px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #fff; }
.brand-mark {
  width: 46px; height: 46px; border: 2px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold); font-size: 22px;
}
.brand strong { display: block; font-family: "Noto Serif Devanagari", serif; font-size: 1.35rem; }
.brand em { font-style: normal; color: #d9ece8; font-size: .95rem; }
.header-meta { margin: 0; text-align: right; font-size: .85rem; color: #d5ebe7; }
.main-nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-inner a {
  padding: 14px 16px; text-decoration: none; font-weight: 600; color: var(--ink);
  border-bottom: 3px solid transparent;
}
.nav-inner a.is-on, .nav-inner a:hover { border-color: var(--gold); }
.hero { display: grid; grid-template-columns: 1.3fr .9fr; gap: 28px; padding: 48px 0 24px; }
.kicker { color: var(--muted); font-weight: 600; }
.hero h1 { font-family: "Noto Serif Devanagari", serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin: 8px 0; }
.hero h1 span { color: var(--gold-2); }
.notice {
  background: #fff; border-left: 5px solid var(--gold); padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(12,58,54,.06);
}
.notice h2 { margin: 6px 0 10px; font-family: "Noto Serif Devanagari", serif; }
.section { padding: 28px 0 48px; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; flex-wrap: wrap; }
.section h2 { font-family: "Noto Serif Devanagari", serif; margin: 4px 0 0; font-size: 2rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.checklist { display: grid; grid-template-columns: 1.4fr .7fr; gap: 22px; margin-top: 18px; }
.check-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-item input { width: 20px; height: 20px; margin-top: 4px; }
.progress { font-size: 2.4rem; font-weight: 700; }
.btn, button.btn, a.btn {
  display: inline-block; border: 1px solid var(--ink); background: #fff; color: var(--ink);
  padding: 10px 14px; border-radius: 10px; text-decoration: none; cursor: pointer; font: inherit;
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.voter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step-no { color: var(--gold); font-weight: 700; }
.doc-list { display: grid; gap: 10px; }
.doc-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.doc-row small { color: var(--muted); display: block; }
.badge { font-size: .75rem; font-weight: 700; border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; }
.cat-card strong { display: block; font-size: 1.05rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.site-footer { background: var(--ink); color: #dff; padding: 28px 0; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.site-footer a { color: #fff; margin-right: 10px; }
.muted { color: var(--muted); }
.site-footer .muted { color: #b7d4cf; }
select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); width: 100%; }
.search { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.pager { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero, .checklist, .voter-grid, .cat-grid, .footer-grid, .doc-row { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-meta { text-align: left; }
}
.nav-cta {
  background: var(--gold);
  color: #fff !important;
  border-radius: 999px;
  margin: 8px 4px;
  padding: 8px 14px !important;
  border-bottom: none !important;
  animation: navPulse 1.8s ease-in-out infinite;
}
.nav-cta.is-on, .nav-cta:hover { filter: brightness(1.08); }
.side-cta {
  position: fixed;
  right: 0;
  top: 38%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 12px;
  border-radius: 14px 0 0 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  box-shadow: -4px 8px 24px rgba(166, 95, 24, .35);
  animation: bannerGlow 1.6s ease-in-out infinite;
}
.side-cta-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
  animation: blink 1s step-end infinite;
}
[hidden] { display: none !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
}
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cand-card img.photo { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; background: #dfeae6; }
.profile-hero { display: grid; grid-template-columns: 220px 1fr; gap: 22px; }
.profile-hero img { width: 100%; border-radius: 16px; object-fit: cover; max-height: 280px; }
.alert { background: #fff3e0; border: 1px solid #f0c989; padding: 12px 14px; border-radius: 10px; }
@keyframes navPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,122,45,.55); }
  50% { box-shadow: 0 0 0 8px rgba(196,122,45,0); }
}
@keyframes bannerGlow {
  0%, 100% { box-shadow: -4px 8px 24px rgba(166, 95, 24, .35); }
  50% { box-shadow: -6px 8px 32px rgba(196, 122, 45, .85); }
}
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 860px) {
  .form-grid, .profile-hero { grid-template-columns: 1fr; }
  .side-cta { writing-mode: horizontal-tb; transform: none; top: auto; bottom: 16px; right: 12px; border-radius: 999px; padding: 10px 16px; }
}
@media print {
  .site-header, .site-footer, .main-nav, .no-print, .side-cta { display: none !important; }
  body { background: #fff; }
}
