/* Ward 46 campaign — Bonu Jayamma */
:root {
  --red: #c8102e;
  --red-deep: #8a0a1e;
  --gold: #f2b705;
  --ink: #2a1a1c;
  --muted: #6b5a5c;
  --paper: #ffffff;
  --blush: #fdf0f1;
  --line: #f0d4d8;
  --wa: #1fae55;
  --tg: #229ed9;
  --ok: #1d7a3e;
  --display: 'Ramabhadra', 'Noto Sans Telugu', sans-serif;
  --body: 'Noto Sans Telugu', 'Nirmala UI', 'Gautami', sans-serif;
  --wrap: 1120px;
  --mbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: var(--mbar-h);
}
img, video, canvas { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.muted { color: var(--muted); }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--red-deep);
  margin-bottom: .6rem;
}

.demo-note {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35rem .8rem;
  border: 2px dashed #d89a00;
  border-radius: 8px;
  background: #fff8e0;
  color: #7a5600;
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font: 700 1rem/1.2 var(--body);
  padding: .8em 1.4em;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn svg { width: 1.3em; height: 1.3em; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--gold); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }

/* ---------- Ticker ---------- */
.ticker {
  position: sticky; top: 0; z-index: 50;
  overflow: hidden;
  background: var(--red-deep); color: #fff;
  border-bottom: 3px solid var(--gold);
}
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; }
.ticker-item {
  font-family: var(--display);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1; padding: .7rem 0; white-space: nowrap;
}
.ticker-item::after { content: "★"; color: var(--gold); margin: 0 2.5rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.silence-bar { margin: 0; padding: .6rem 1rem; background: var(--red-deep); color: #fff; text-align: center; font-weight: 600; }

/* ---------- Top bar ---------- */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: .8rem 1.25rem;
}
.party-logo { width: 72px; height: 72px; object-fit: contain; }
.topbar-end { display: flex; align-items: center; gap: .6rem; }
.topbar-text { text-align: center; }
.topbar-text p { margin: 0; font-family: var(--display); line-height: 1.4; }
.motto-1 { color: var(--red); font-size: clamp(1.05rem, 2.6vw, 1.6rem); }
.motto-2 { font-size: clamp(.9rem, 2.2vw, 1.3rem); }
.text-size {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--red); background: #fff; color: var(--red);
  font: 700 1.1rem/1 var(--body); cursor: pointer;
}
.text-size sup { font-size: .6em; }

/* ---------- Section chips ---------- */
.chips {
  display: flex; gap: .5rem;
  overflow-x: auto; scrollbar-width: none;
  padding: .2rem 1.25rem .9rem;
  max-width: var(--wrap); margin: 0 auto;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none;
  padding: .45rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600; font-size: .92rem;
  color: var(--red-deep);
  background: #fff;
}
.chips a:hover { border-color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--red);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 calc(41.66% - 50px);
  width: 100px;
  background: var(--red);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%, 25% 82%, 8% 64%, 30% 46%, 12% 28%, 34% 12%);
  z-index: 1;
}
.hero-photo { align-self: end; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-body {
  position: relative; z-index: 2;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) 8rem;
  align-self: center;
}
.hero-kicker { margin: 0 0 .3rem; font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--gold); }
.hero-name { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 5.6vw, 4rem); line-height: 1.25; margin-bottom: .6rem; }
.hero-name small { font-size: .5em; margin-left: .2em; opacity: .9; }
.hero-ward { font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.4; margin: 0 0 1.4rem; }
.hero-ward strong { font-family: var(--body); font-weight: 700; font-size: 2.3em; line-height: 1; color: var(--gold); vertical-align: -.12em; }
.hero-ward span { font-size: .85em; opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-city {
  position: absolute; right: 0; bottom: 0;
  width: 58.33%; height: 7rem;
  background-size: cover; background-position: center 60%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
}


/* ---------- Hero banner slider ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-banner { position: relative; background: var(--red-deep); }
.hb-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hb-track::-webkit-scrollbar { display: none; }
.hb-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  scroll-snap-align: start;
  overflow: hidden;
}
.hb-bg { /* blurred copy fills any empty edges */
  position: absolute; inset: -20px;
  width: calc(100% + 40px); height: calc(100% + 40px); max-width: none;
  object-fit: cover; filter: blur(24px) brightness(.7);
}
.hb-img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.hb-dots {
  position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%);
  display: flex; gap: .5rem;
  padding: .35rem .6rem; border-radius: 999px; background: rgba(0,0,0,.35);
}
.hb-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s, background .2s;
}
.hb-dots button[aria-current="true"] { width: 26px; background: #fff; }
.hb-dots button::before { content: ""; position: absolute; inset: -12px; } /* bigger tap area */
.hb-dots button { position: relative; }

/* Ballot card strip under the banners */
.ballot-strip { background: var(--red); padding: 1.2rem 1.25rem; }
.ballot-strip .vote-card { margin: 0 auto; }

/* Ballot card */
.vote-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 520px;
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  border-left: 8px solid var(--gold);
}
.vote-symbol { width: 112px; height: 112px; display: grid; place-items: center; }
.vote-symbol img { width: 100%; height: 100%; object-fit: contain; }
.ph-box {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  border: 2px dashed #d89a00; border-radius: 12px;
  color: #7a5600; background: #fff8e0; font-weight: 700;
}
.vote-info p { margin: 0; line-height: 1.45; }
.vote-label { font-family: var(--display); color: var(--red); font-size: 1.25rem; }
.vote-symbol-name { font-weight: 700; }
.vote-serial strong { font-size: 1.8em; color: var(--red); line-height: 1; vertical-align: -.1em; }
.vote-date { font-size: .92rem; color: var(--muted); }
.vote-date span { font-size: .9em; }
.countdown { margin-top: .4rem !important; display: inline-block; padding: .15rem .7rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .92rem; }

/* ---------- Video ---------- */
.video { padding-top: 3.5rem; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 820px;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1a;
}
.video-frame iframe, .video-frame video, .yt-lite { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-lite { background: center / cover no-repeat; cursor: pointer; padding: 0; }
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
}
.yt-play svg { width: 44px; height: 44px; margin-left: 6px; }
.ph-video {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  color: #fff; text-align: center; padding: 1rem;
  border: 3px dashed #d89a00; border-radius: 18px;
}
.ph-video svg { width: 64px; height: 64px; color: var(--gold); }

/* ---------- About ---------- */
.about { padding-top: 3.5rem; }
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 1.5rem 3rem; align-items: start; }
.about-text p { margin: 0 0 1rem; max-width: 62ch; }
.about-facts { margin: 0; display: grid; gap: .8rem; }
.about-facts div { padding: 1rem 1.2rem; border-left: 5px solid var(--red); background: var(--blush); border-radius: 0 12px 12px 0; }
.about-facts dt { font-size: .9rem; color: var(--muted); }
.about-facts dd { margin: 0; font-family: var(--display); font-size: 1.7rem; color: var(--red-deep); line-height: 1.3; }
.about-photos { display: flex; gap: 1rem; overflow-x: auto; margin-top: 1.5rem; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.about-photos figure { flex: 0 0 min(280px, 75%); margin: 0; scroll-snap-align: start; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.about-photos figcaption { font-size: .88rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Priorities ---------- */
.priorities { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.pri-grid {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 3px solid var(--red);
}
.pri-grid li {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 1.4rem .6rem; text-align: center;
  font-weight: 600; font-size: .98rem; line-height: 1.5;
}
.pri-grid li + li { border-left: 1px solid var(--line); }
.pri-grid svg { width: 46px; height: 46px; color: var(--red); }

/* ---------- Colony promises ---------- */
.colony { background: var(--blush); padding: 3rem 0; }
.colony-pick { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; max-width: 420px; margin-bottom: 1.2rem; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.promise-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  background: #fff; border-radius: 12px;
  font-weight: 600;
}
.promise-list li::before {
  content: "✓";
  position: absolute; left: 1rem; top: 1rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: .85rem; line-height: 1;
}

/* ---------- Schedule ---------- */
.schedule { padding-top: 3.5rem; }
.schedule-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.schedule-list li { padding: 1rem 1.2rem; border: 1.5px solid var(--line); border-radius: 14px; }
.schedule-list li.is-today { border-color: var(--red); background: var(--red); color: #fff; }
.schedule-list p { margin: 0; }
.sch-when { font-weight: 700; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.sch-when span { font-weight: 600; opacity: .85; }
.is-today .sch-when { color: var(--gold); }
.sch-place { font-family: var(--display); font-size: 1.3rem; margin-top: .3rem !important; }
.sch-note { font-size: .92rem; opacity: .85; }

/* ---------- Forms (report + volunteer) ---------- */
.report, .volunteer { padding: 3.5rem 0; }
.volunteer { background: var(--blush); }
.report-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 1rem 3rem; align-items: start; }
.fb-intro p { color: var(--muted); max-width: 46ch; }
.fb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fb-form > label, .fb-form fieldset { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; }
.fb-form .full { grid-column: 1 / -1; }
.form-msg { grid-column: 1 / -1; }
.form-msg:empty { display: none; }
.fb-form input[type="text"], .fb-form input[type="tel"], .fb-form select, .fb-form textarea,
.colony-pick select, .sm-form input[type="text"] {
  font: 400 1rem/1.5 var(--body);
  padding: .7rem .8rem;
  min-height: 48px;
  border: 1.5px solid #dcc3c6; border-radius: 10px;
  background: #fff; color: var(--ink);
  width: 100%;
}
.fb-form input:focus, .fb-form select:focus, .fb-form textarea:focus, .colony-pick select:focus, .sm-form input:focus {
  border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(200,16,46,.15);
}
.fb-form.tried :invalid { border-color: var(--red); background: #fff6f7; }
.fb-form.tried .consent:has(:invalid) { color: var(--red); }

.attach-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.attach-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1rem;
  border: 1.5px dashed var(--red); border-radius: 10px;
  background: #fff; color: var(--red-deep);
  font: 600 .95rem/1.3 var(--body);
  cursor: pointer;
}
.attach-btn svg { width: 22px; height: 22px; flex: none; }
.attach-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.attach-btn:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.attach-btn.done { border-style: solid; border-color: var(--ok); color: var(--ok); }
.photo-preview { max-height: 220px; width: auto; border-radius: 10px; }

.consent { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; font-weight: 400 !important; font-size: .88rem !important; color: var(--muted); }
.consent input, .help-types input { width: 20px; height: 20px; margin-top: .25rem; accent-color: var(--red); flex: none; }
.help-types { border: 0; padding: 0; margin: 0; }
.help-types legend { padding: 0; margin-bottom: .4rem; }
.help-types label { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; padding: .3rem 0; }
.fb-form button[type="submit"] { justify-self: start; }
.hp { position: absolute; left: -9999px; }

.notice { margin: 0; padding: .8rem 1rem; border-radius: 10px; font-weight: 600; }
.notice-ok { background: #e7f6ec; color: #145a2e; }
.notice-err { background: #fde8ea; color: var(--red-deep); }

/* ---------- Tracker ---------- */
.tracker { padding-top: .5rem; padding-bottom: 3.5rem; }
.tracker-counts { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; max-width: 720px; }
.tracker-counts li { padding: .9rem 1rem; border-radius: 12px; background: var(--blush); }
.tracker-counts strong { display: block; font-size: 2rem; line-height: 1.1; }
.tracker-counts span { font-size: .88rem; font-weight: 600; }
.st-new strong { color: var(--red-deep); }
.st-raised strong { color: #b26b00; }
.st-resolved strong { color: var(--ok); }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.issue { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.issue img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.issue-body { padding: 1rem; }
.issue-body p { margin: 0 0 .4rem; }
.issue h3 { font-size: 1.05rem; }
.issue-meta { font-size: .85rem; color: var(--muted); }
.issue-note { font-size: .9rem; padding: .5rem .7rem; background: var(--blush); border-radius: 8px; }
.badge { display: inline-block; padding: .1rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff; }
.badge.st-new { background: var(--red); }
.badge.st-raised { background: #b26b00; }
.badge.st-resolved { background: var(--ok); }

/* ---------- Status maker ---------- */
.status-maker { background: var(--red-deep); color: #fff; padding: 3.5rem 0; }
.status-maker .section-title { color: var(--gold); }
.status-maker p { opacity: .92; max-width: 46ch; }
.sm-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem 3rem; align-items: center; }
.sm-form { display: grid; gap: 1rem; max-width: 440px; }
.sm-form > label:first-child { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
.sm-form .attach-btn { border-color: #fff; color: var(--red-deep); }
.sm-format { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.sm-format legend { padding: 0; margin-bottom: .3rem; font-weight: 600; }
.sm-format label { display: flex; align-items: center; gap: .4rem; min-height: 40px; }
.sm-format input { width: 20px; height: 20px; accent-color: var(--gold); }
.sm-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.sm-actions .btn-red { background: var(--gold); color: var(--ink); }
.sm-preview canvas { width: 100%; max-width: 320px; height: auto; margin: 0 auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* ---------- Join ---------- */
.join { padding: 3.5rem 0; }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.group { background: #fff; border-radius: 18px; overflow: hidden; text-align: center; padding-bottom: 1.4rem; border: 1px solid #f2d0d5; }
.group-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; background: var(--red); color: #fff; text-align: left; }
.group-head h3 { font-size: 1.1rem; }
.group-head p { margin: 0; font-size: .88rem; opacity: .92; }
.group-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.group-icon svg { width: 34px; height: 34px; }
.group-whatsapp .group-icon { color: var(--wa); }
.group-telegram .group-icon { color: var(--tg); }
.qr { width: 196px; min-height: 196px; margin: 1.4rem auto 1rem; padding: 8px; background: #fff; border: 1px solid #eee; border-radius: 10px; word-break: break-all; font-size: .8rem; }
.qr img, .qr canvas { width: 180px !important; height: 180px !important; }
.group-url { margin: .7rem 0 0; font-size: .88rem; color: var(--muted); }
.group-phone { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.group-phone svg { width: 20px; height: 20px; color: var(--red); }

/* ---------- Booth ---------- */
.booth { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.booth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; align-items: start; }
.booth-search p { margin: 0 0 1rem; max-width: 46ch; }
.booth-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.booth-list li { padding: 1rem 1.2rem; border: 1.5px solid var(--line); border-radius: 12px; }
.booth-list p { margin: 0; }
.booth-name { font-weight: 700; }
.booth-list a { display: inline-flex; align-items: center; gap: .3rem; margin-top: .4rem; color: var(--red); font-weight: 600; min-height: 40px; }
.booth-list svg { width: 18px; height: 18px; }

/* ---------- Closing & footer ---------- */
.closing { background: var(--red-deep); color: #fff; text-align: center; padding: 3rem 1.25rem; }
.closing p { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.45; }
.footer { background: var(--red); color: #fff; text-align: center; padding: 1.4rem 1.25rem; }
.footer p { margin: 0; font-weight: 700; }
.footer .footer-small { font-weight: 400; font-size: .85rem; opacity: .85; margin-top: .3rem; }

/* ---------- Mobile action bar ---------- */
.mbar { display: none; }

/* ---------- Admin ---------- */
.admin { background: var(--blush); }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem; }
.admin h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.admin-login { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.admin input[type="password"], .admin input[type="text"], .admin input[type="date"], .admin select {
  font: inherit; padding: .5rem .7rem; border: 1.5px solid #dcc3c6; border-radius: 10px; background: #fff; min-height: 44px;
}
.admin-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.admin-tabs a { padding: .5rem 1rem; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; }
.admin-tabs a.on { background: var(--red); color: #fff; }
.admin-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); }
.admin-cards { display: grid; gap: 1rem; }
.admin-card { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; background: #fff; border-radius: 14px; padding: 1rem; }
.admin-card:not(:has(img)) { grid-template-columns: 1fr; }
.admin-card img { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; }
.admin-card p { margin: 0 0 .4rem; }
.admin-meta { font-size: .85rem; color: var(--muted); }
.admin-msg { white-space: pre-line; }
.admin-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0 .3rem; }
.admin-row input[type="text"] { flex: 1 1 220px; }
.admin-add { background: #fff; padding: 1rem; border-radius: 14px; align-items: end; }
.admin-add label { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; }
.link-danger { background: none; border: 0; color: var(--red); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: .3rem 0; }
.table-scroll { overflow-x: auto; background: #fff; border-radius: 12px; }
.admin table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin th, .admin td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin th { background: var(--red); color: #fff; white-space: nowrap; }
.admin tr.past { opacity: .5; }


/* ---------- Today's update ---------- */
.today { padding: 3rem 0 0; }
.today-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 1.5rem 3rem; align-items: center;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  border-top: 4px solid var(--gold); border-bottom: 1px solid var(--line);
}
.today-flyer { padding: 0; border: 0; background: none; cursor: zoom-in; }
.today-flyer img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; background: var(--blush); }
.today-tag { display: inline-block; margin: 0 0 .4rem; padding: .15rem .8rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: .85rem; }
.today-text { margin: 0 0 1.2rem; max-width: 60ch; }
.today-actions, .sub-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Gallery ---------- */
.gallery { padding: 3.5rem 0 1rem; }
.g-strip {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2 + 1.25rem));
  padding: .5rem max(1.25rem, calc((100vw - var(--wrap)) / 2 + 1.25rem)) 1rem;
  scrollbar-width: thin;
}
.g-strip:focus-visible { outline-offset: -3px; }
.g-item { flex: 0 0 clamp(240px, 32vw, 360px); margin: 0; scroll-snap-align: start; }
.g-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.g-item button:hover img { transform: scale(1.03); }
.g-item figcaption { margin-top: .5rem; font-weight: 600; font-size: .95rem; line-height: 1.45; }
.g-item figcaption span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.g-sub { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--red-deep); margin: 1.5rem 0 .8rem; }
.g-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.g-video { margin: 0; }
.g-video .video-frame { max-width: none; }
.g-video figcaption { margin-top: .5rem; font-weight: 600; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: rgba(20, 6, 8, .97); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { margin-top: .7rem; font-weight: 600; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ---------- Subscribe ---------- */
.subscribe { padding: 3.5rem 0; border-top: 1px solid var(--line); }

/* ---------- Admin additions ---------- */
.admin-panel { background: #fff; border-radius: 14px; padding: 1.2rem; margin-bottom: 1.2rem; }
.admin-panel h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.admin-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form { display: grid; gap: .8rem; }
.admin-form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; }
.admin-form textarea, .admin textarea { font: inherit; padding: .6rem .7rem; border: 1.5px solid #dcc3c6; border-radius: 10px; min-height: 120px; }
.admin-form input[type="file"] { font: inherit; }
.send-box { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; align-items: start; }
.send-box img { width: 200px; border-radius: 10px; }
.send-box textarea { width: 100%; min-height: 200px; font-size: .92rem; }
.send-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.admin-gallery figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; }
.admin-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-gallery figcaption { padding: .5rem .7rem; font-size: .85rem; }
.admin-gallery .vid { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #222; color: #fff; font-weight: 700; }
.admin-tip { font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
.wa-link { color: var(--wa); font-weight: 700; }

@media (max-width: 960px) {
  .today-grid { grid-template-columns: 1fr; }
  .today-flyer img { max-height: 420px; }
  .admin-grid2, .send-box { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .today { padding-top: 2rem; }
  .gallery { padding-top: 2.5rem; }
  .subscribe { padding: 2.5rem 0; }
  .g-item { flex-basis: 78vw; }
  .today-actions .btn, .sub-actions .btn { flex: 1 1 100%; }
  .lb-prev, .lb-next { top: auto; bottom: max(1rem, env(safe-area-inset-bottom)); transform: none; }
}


/* ---------- Admin: registrations & SMS ---------- */
.reg-counts { grid-template-columns: repeat(5, 1fr); max-width: none; }
.reg-filter label { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; }
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; margin-right: .6rem; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1rem 0; }
.pager a { font-weight: 700; color: var(--red); }
.sms-status p { margin: 0 0 .5rem; }
.ok-text { color: var(--ok); font-weight: 700; }
.bad-text { color: var(--red); font-weight: 700; }
.sms-preview { white-space: pre-wrap; font: inherit; background: var(--blush); border-radius: 10px; padding: .8rem 1rem; margin: 0 0 .6rem; }
.sms-tpl { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.sms-confirm { border: 2px solid var(--red); }
.admin-h2 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.gw-resp { white-space: pre-wrap; word-break: break-all; font-size: .78rem; background: #f6f6f6; padding: .5rem; border-radius: 6px; max-height: 160px; overflow: auto; }
@media (max-width: 700px) { .reg-counts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pri-grid { grid-template-columns: repeat(3, 1fr); }
  .pri-grid li:nth-child(4) { border-left: 0; }
  .pri-grid li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .join-grid { grid-template-columns: 1fr 1fr; }
  .report-grid, .about-grid, .sm-grid, .booth-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --mbar-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body { font-size: 1rem; }
  html { scroll-padding-top: 48px; }

  .topbar { gap: .5rem; padding: .6rem 1rem; }
  .party-logo { width: 46px; height: 46px; }
  .topbar-end { gap: .4rem; }
  .text-size { width: 38px; height: 38px; font-size: 1rem; }
  .chips { padding: .1rem 1rem .7rem; }

  .hero { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .hero-photo { max-height: 400px; overflow: hidden; }
  .hero-body { padding: 1.5rem 1rem 6.5rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 140px; }
  .hero-city { width: 100%; height: 5.5rem; }
  .vote-card { grid-template-columns: 84px 1fr; gap: .8rem; text-align: left; margin-left: auto; margin-right: auto; }
  .vote-symbol { width: 84px; height: 84px; }

  .video, .about, .priorities, .schedule { padding-top: 2.5rem; }
  .colony, .report, .volunteer, .join, .status-maker { padding: 2.5rem 0; }
  .booth { padding-top: 2.5rem; padding-bottom: 2.5rem; }

  .pri-grid { grid-template-columns: 1fr 1fr; }
  .pri-grid li { border-left: 0 !important; border-top: 1px solid var(--line); padding: 1.1rem .5rem; }
  .pri-grid li:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .pri-grid svg { width: 38px; height: 38px; }

  .fb-form { grid-template-columns: 1fr; }
  .fb-form .full-sm, .fb-form button[type="submit"] { justify-self: stretch; }
  .attach-row .attach-btn { flex: 1 1 100%; }

  .tracker-counts { gap: .5rem; }
  .tracker-counts li { padding: .7rem; }
  .tracker-counts strong { font-size: 1.6rem; }
  .tracker-counts span { font-size: .78rem; line-height: 1.35; display: block; }

  .sm-actions .btn { flex: 1 1 140px; }
  .sm-preview canvas { max-width: 240px; }

  .join-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }

  .mbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: var(--mbar-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(138,10,30,.12);
  }
  .mbar a, .mbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 0; background: none; padding: 0;
    color: var(--red-deep); text-decoration: none;
    font: 600 .78rem/1.2 var(--body);
    cursor: pointer;
  }
  .mbar svg { width: 24px; height: 24px; }
  .mbar .mbar-wa { color: var(--wa); }

  .admin-card { grid-template-columns: 1fr; }
  .admin-card img { width: 100%; height: 180px; }
}

@media (max-width: 700px) {
  .hb-dots { position: static; transform: none; justify-content: center; width: max-content; margin: 0 auto; padding: .55rem 0; background: none; }
}

@media (max-width: 380px) {
  .motto-2 { display: none; }
  .vote-card { grid-template-columns: 1fr; text-align: center; }
  .vote-symbol { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hb-dots button { transition: none; }
  .btn { transition: none; }
  .ticker-track { animation: none; width: auto; justify-content: center; }
  .ticker-group + .ticker-group, .ticker-item + .ticker-item { display: none; }
  .ticker-item { white-space: normal; text-align: center; padding: .7rem 1rem; }
  .ticker-item::after { display: none; }
}

/* ---------- Language switch (EN / తెలుగు) ---------- */
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .7rem; border-radius: 999px;
  border: 2px solid var(--red); background: var(--red); color: #fff; font: 700 .95rem/1 var(--body); text-decoration: none;
}
.lang-switch:hover, .lang-switch:focus-visible { background: var(--red-deep); border-color: var(--red-deep); }
@media (max-width: 640px) { .lang-switch { height: 38px; min-width: 38px; font-size: .85rem; padding: 0 .55rem; } }
/* English headings use the body font — Ramabhadra is a Telugu display face */
.lang-en .section-title, .lang-en .topbar-text p, .lang-en .vote-label, .lang-en .closing p { font-family: var(--body); font-weight: 700; }

/* "Voter slip" chip — stands out in the section chips */
.chips a.chip-hot { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== WhatsApp join banner ===== */
.wa-join{padding:48px 0;background:linear-gradient(135deg,#1e5a43 0%,#173f30 55%,#1d2b25 100%)}
.wa-card{display:grid;grid-template-columns:1.6fr 1fr;gap:40px;align-items:center;padding:44px;border-radius:28px;background:rgba(10,40,30,.55);border:1px solid rgba(143,227,184,.18);box-shadow:0 20px 50px rgba(0,0,0,.25)}
.wa-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 16px;margin:0 0 18px;border:1px solid rgba(143,227,184,.45);border-radius:999px;color:#9be8bf;font-size:.95rem}
.wa-badge svg{width:18px;height:18px}
.wa-title{font-family:'Ramabhadra','Noto Sans Telugu',sans-serif;color:#fff;font-size:clamp(1.7rem,3.6vw,2.6rem);line-height:1.3;margin:0 0 14px}
.wa-desc{color:rgba(255,255,255,.82);font-size:1.05rem;line-height:1.75;margin:0 0 22px}
.wa-points{list-style:none;margin:0 0 28px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}
.wa-points li{position:relative;padding-left:32px;color:rgba(255,255,255,.9);line-height:1.5}
.wa-points li::before{content:"✓";position:absolute;left:0;top:1px;width:22px;height:22px;border:1.5px solid #4cc98a;border-radius:50%;color:#4cc98a;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.wa-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px}
.wa-btn{display:inline-flex;align-items:center;gap:10px;padding:16px 28px;border-radius:14px;background:#43c184;color:#0b2a1d;font-weight:700;font-size:1.1rem;text-decoration:none;box-shadow:0 10px 24px rgba(67,193,132,.3);transition:transform .15s,box-shadow .15s}
.wa-btn:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(67,193,132,.4)}
.wa-btn svg{width:22px;height:22px}
.wa-phone{display:inline-flex;align-items:center;gap:8px;color:#9be8bf;font-weight:600;text-decoration:none}
.wa-phone svg{width:18px;height:18px}
.wa-qr-card{background:#fff;border:3px solid #8fe3b8;border-radius:22px;padding:28px 20px;text-align:center}
.wa-qr-card .qr{width:210px;max-width:100%;margin:0 auto 16px;padding:10px;background:#fff;border:1px solid #e6e6e6;border-radius:14px}
.wa-qr-card .qr img,.wa-qr-card .qr canvas,.wa-qr-card .qr svg{display:block;width:100%!important;height:auto!important}
.wa-qr-label{margin:0 0 4px;font-weight:700;color:#0f3b2a}
.wa-qr-url{margin:0;font-family:ui-monospace,Menlo,monospace;font-size:.85rem;color:#666}
@media (max-width:820px){
  .wa-card{grid-template-columns:1fr;padding:28px 22px;gap:28px}
  .wa-points{grid-template-columns:1fr}
  .wa-btn{width:100%;justify-content:center}
}
