/* Mana Palakurthi (built on Graduate Voices)
   kumkum red, red soil, paddy green, turmeric · Encode Sans for English, Anek Telugu for Telugu · mobile-first */

@font-face {
  font-family: "Encode Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/encode-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Encode Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/encode-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Anek Telugu";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/anek-telugu-telugu.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CDA, U+1CF2, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Anek Telugu";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/anek-telugu-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anek Telugu";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/anek-telugu-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Core palette: civis.vote's exact colours */
  --forest:    #9c2a1e;   /* kumkum red: hero, heading accents, links */
  --pine:      #151515;   /* headings */
  --navy:      #3a1d14;   /* red-soil brown: menus, admin bar */
  --marigold:  #1f7a3a;   /* paddy green: main call to action */
  --marigold-d:#17602d;
  --mint:      #fdf1dc;   /* light turmeric sections */
  --cream:     #fcf9f2;   /* cream sections */
  --page:      #ffffff;
  --ink:       #212529;
  --bright:    #c43b2c;   /* bright red: secondary filled buttons */

  /* Supporting tones (names kept for the admin stylesheet) */
  --green-950: var(--pine);
  --green-900: var(--navy);
  --green-800: var(--forest);
  --green-700: #9c2a1e;
  --green-600: #c43b2c;
  --green-500: #d9604f;
  --green-100: #f6d6cf;
  --green-50:  var(--mint);
  --gold:      var(--marigold);
  --gold-soft: #e3f2e5;
  --ink-2:     #6b3b2a;
  --muted:     #757575;
  --line:      #eadfd6;
  --paper:     var(--page);
  --card:      #ffffff;
  --danger:    #dd2828;
  --danger-bg: #fdecea;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(0, 63, 107, .05), 0 8px 24px rgba(0, 63, 107, .06);
  --font: "Encode Sans", "Anek Telugu", "Noto Sans Telugu", "Kohinoor Telugu", "Nirmala UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
body.lang-te { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); text-underline-offset: .18em; }
a:hover { color: var(--pine); }
h1, h2, h3 { color: var(--pine); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.015em; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
.lang-te h1 { font-size: clamp(1.75rem, 5.2vw, 3rem); line-height: 1.32; letter-spacing: 0; }
.lang-te h2 { line-height: 1.4; letter-spacing: 0; }
.lang-te h3 { line-height: 1.5; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 760px; }
.page-pad { padding-top: 40px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--pine); color: #fff; padding: 8px 12px; z-index: 20; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--pine); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--pine); }
.logo-mark { width: 38px; height: 38px; color: var(--forest); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-region { font-size: .8rem; font-weight: 600; color: var(--green-600); }
.lang-te .brand-name { font-size: 1.02rem; }

.main-nav { display: none; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--forest); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 8px 12px; border-radius: 999px;
}
.main-nav a:hover { color: var(--navy); background: var(--mint); }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--marigold); border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-toggle {
  color: var(--forest); text-decoration: none; font-weight: 700; font-size: .95rem;
  border: 1.5px solid var(--green-100); border-radius: 999px; padding: 6px 14px; min-height: 40px;
  display: inline-flex; align-items: center; background: #fff;
}
.lang-toggle:hover { border-color: var(--forest); color: var(--navy); }
.btn.header-cta { display: none; }

.mobile-menu { position: relative; }
.mobile-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 12px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 700; font-size: .95rem;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 18px; height: 18px; }
.mobile-menu nav {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 8px; display: grid;
}
.mobile-menu nav a { color: var(--pine); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 8px; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { background: var(--mint); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #fff; color: var(--muted); padding: 48px 0 56px; font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer .brand { color: var(--pine); margin-bottom: 14px; }
.site-footer .logo-mark { color: var(--forest); }
.site-footer .brand-region { color: var(--marigold); }
.site-footer h2 { color: var(--pine); font-size: 1rem; font-weight: 700; margin-bottom: 12px; letter-spacing: 0; }
.footer-grid { display: grid; gap: 32px; }
.footer-tagline { color: var(--forest); font-weight: 700; font-size: 1.2rem; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-note a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover, .footer-note a:hover { color: var(--forest); text-decoration: underline; }
.footer-note p { font-size: .9rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--bright); color: #fff; }
.btn-primary:hover { background: var(--forest); color: #fff; }
.btn-primary[disabled] { opacity: .65; cursor: progress; }
.btn-accent { background: var(--marigold); color: #fff; }
.btn-accent:hover { background: var(--marigold-d); color: #fff; }
.btn-ghost { background: rgba(24, 148, 234, .1); color: var(--forest); border-color: transparent; }
.btn-ghost:hover { background: rgba(24, 148, 234, .18); color: var(--navy); }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-lg { min-height: 58px; padding: 14px 30px; font-size: 1.1rem; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: .95rem; }
.btn-whatsapp { background: #1f8f4e; color: #fff; }
.btn-whatsapp:hover { background: #17733e; color: #fff; }
.btn-whatsapp svg { width: 22px; height: 22px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--green-700); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }

/* ── Home: hero ─────────────────────────────────────────────── */
.hero { background: var(--forest); color: rgba(255, 255, 255, .85); padding: 48px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .4em; }
.lang-te .hero h1 { max-width: 19ch; }
.hero-place { color: #fff; font-weight: 600; margin-bottom: 18px; max-width: 40ch; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: rgba(255, 255, 255, .85); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { font-size: .92rem; color: rgba(255, 255, 255, .78); margin: 0; }
.hero-counter { display: inline-flex; align-items: center; margin: 18px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; font-size: .95rem; }
.counter-dot { width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }

/* The draft manifesto sheet: the one memorable object on the page */
.draft { margin: 0; justify-self: center; width: 100%; max-width: 440px; position: relative; isolation: isolate; padding: 6px 10px 14px 4px; }
.draft::before { /* page beneath, slightly offset */
  content: ""; position: absolute; inset: 18px 4px 4px 12px; z-index: -1;
  background: #f2c76a; border-radius: 6px; transform: rotate(-2.5deg);
}
.draft-sheet {
  position: relative; background: #ffffff; color: var(--ink);
  border-radius: 6px; padding: 28px 26px 22px;
  box-shadow: 0 2px 0 #dde5ef, 0 30px 60px -20px rgba(0, 0, 0, .45);
  transform: rotate(1.4deg);
}
.draft-status { font-size: .85rem; font-weight: 600; color: var(--green-600); margin-bottom: 6px; }
.draft-title { font-weight: 800; font-size: 1.32rem; line-height: 1.2; color: var(--pine); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--pine); }
.lang-te .draft-title { line-height: 1.45; font-size: 1.22rem; }
.draft-lines { list-style: none; counter-reset: plank; margin: 0; padding: 0; display: grid; gap: 14px; }
.draft-lines li { counter-increment: plank; position: relative; padding-left: 34px; min-height: 26px; display: grid; gap: 8px; align-content: center; }
.draft-lines li::before {
  content: counter(plank); position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--forest); font-weight: 800; font-size: .82rem; line-height: 1;
}
.draft-text { font-weight: 600; color: var(--ink); line-height: 1.35; }
.draft-bar { display: block; height: 9px; border-radius: 6px; background: #efe4d8; }
.draft-bar.w88 { width: 88%; } .draft-bar.w62 { width: 62%; } .draft-bar.w94 { width: 94%; }
.draft-bar.w48 { width: 48%; } .draft-bar.w76 { width: 76%; }
.draft-yours::before { background: var(--marigold) !important; color: #fff !important; }
.draft-yours a {
  position: relative; justify-self: start; font-weight: 700; color: var(--pine); text-decoration: none;
  padding: 2px 4px 4px; background: linear-gradient(var(--gold-soft), var(--gold-soft)) no-repeat 0 0 / 100% 100%;
}
.draft-yours a::after { /* the line being written */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--marigold);
  transform-origin: left; animation: write 1.1s .5s cubic-bezier(.6, 0, .2, 1) both;
}
.draft-yours a:hover { color: var(--forest); }
@keyframes write { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.draft-note { margin-top: 20px; font-size: .88rem; color: var(--muted); }

/* ── Home: sections ─────────────────────────────────────────── */
.district-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.district-strip h2 { font-size: 1rem; font-weight: 700; color: var(--green-700); margin-bottom: 10px; letter-spacing: 0; }
.district-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.district-names li { font-weight: 600; color: var(--pine); font-size: 1.02rem; }
.district-names li:not(:last-child)::after { content: "/"; color: var(--line); margin: 0 12px; font-weight: 400; }

.band { padding: 64px 0; }
.band-tint { background: var(--mint); }
.band-cream { background: var(--cream); }
.band-title { margin-bottom: 28px; max-width: 24ch; }
.lead-muted { color: var(--ink-2); font-size: 1.1rem; max-width: 52ch; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.timeline li { position: relative; padding-left: 64px; }
.timeline-num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--forest); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.timeline li:not(:last-child)::after { /* connector */
  content: ""; position: absolute; left: 21px; top: 52px; bottom: -22px; width: 2px; background: var(--green-100);
}
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--ink-2); margin: 0; max-width: 34ch; }

.two-col { display: grid; gap: 32px; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 38px; font-size: 1.08rem; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat;
}
.link-pair { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.voter-card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.voter-card h2 { font-size: 1.3rem; }
.link-list { padding-left: 1.1em; }
.link-list li { margin-bottom: 6px; }
.link-list a::after { content: " ↗"; }

.ask-band { display: grid; gap: 32px; align-items: start; }
.ask-latest { border-left: 3px solid var(--marigold); padding-left: 22px; display: grid; gap: 18px; }
.ask-latest h3 { font-size: 1rem; color: var(--green-700); margin: 0; }
.mini-qa .tag-pill { margin-bottom: 4px; }
.mini-q { font-weight: 700; color: var(--pine); margin-bottom: 4px; }
.mini-a { color: var(--ink-2); margin: 0; }

.closing { padding: 0 0 72px; }
.closing-inner { display: grid; gap: 24px; align-items: center; background: var(--forest); color: rgba(255, 255, 255, .85); border-radius: 24px; padding: 36px 28px; }
.closing h2 { color: #fff; }
.closing p { max-width: 60ch; margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }

/* ── Inner pages ────────────────────────────────────────────── */
.page-intro { margin-bottom: 32px; }
.page-intro h1, .prose > h1, .survey-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.lang-te .page-intro h1, .lang-te .prose > h1, .lang-te .survey-head h1 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); }
.page-intro .lead, .lead { font-size: 1.15rem; color: var(--ink-2); }

/* ── Survey ─────────────────────────────────────────────────── */
.survey-wrap { max-width: 780px; padding-top: 32px; padding-bottom: 64px; }
.survey-head { margin-bottom: 8px; }
.survey-head h1 { margin-bottom: .2em; }

.progress { position: sticky; top: 68px; z-index: 5; background: var(--page); padding: 12px 0 14px; margin-bottom: 8px; }
.progress-text { font-size: .9rem; font-weight: 700; color: var(--forest); margin-bottom: 6px; }
.progress-track { height: 8px; background: var(--green-100); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--forest); border-radius: 999px; transition: width .3s ease; }

.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.js .step { display: none; }
.js .step.is-active { display: block; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-count { font-size: .9rem; font-weight: 700; color: var(--green-600); margin-bottom: 4px; }
.step h2 { font-size: clamp(1.4rem, 3.6vw, 1.75rem); }
.step h2:focus { outline: none; }
.step-intro { color: var(--ink-2); margin-bottom: 20px; }
.step-sensitive { border-top: 5px solid var(--marigold); }
.step-sensitive .step-intro { background: var(--gold-soft); padding: 12px 14px; border-radius: var(--radius-sm); color: #7a3418; }

.q { border-top: 1px solid var(--line); padding: 22px 0 6px; }
.step-intro + .q { border-top: 0; padding-top: 4px; }
.q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-title { display: block; font-weight: 700; font-size: 1.12rem; line-height: 1.4; color: var(--pine); margin-bottom: 6px; padding: 0; }
.q-help, .q-hint { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }
.q-hint { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.counter { white-space: nowrap; }
.subset-hint { display: block; font-style: italic; }
.badge { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #eef1ef; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.badge-req { background: var(--gold-soft); color: #8a3516; }

.choices { display: grid; gap: 8px; }
.choice {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 15px; min-height: 54px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; transition: border-color .12s, background-color .12s;
}
.choice:hover { border-color: var(--green-500); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-mark { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; border: 2px solid #98a6b8; background: #fff; transition: all .12s; }
.choice input[type="radio"] + .choice-mark { border-radius: 50%; }
.choice input[type="checkbox"] + .choice-mark { border-radius: 6px; }
.choice input:checked + .choice-mark { border-color: var(--forest); background: var(--forest); box-shadow: inset 0 0 0 3px #fff; }
.choice input[type="checkbox"]:checked + .choice-mark {
  box-shadow: none;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.choice:has(input:checked) { border-color: var(--forest); background: var(--mint); }
.choice:has(input:focus-visible) { outline: 3px solid var(--marigold); outline-offset: 2px; }
.choice.is-disabled { opacity: .5; cursor: not-allowed; }
.choice-label { flex: 1; }
.choice[hidden] { display: none; }

select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 54px;
}
select { appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%233772c2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat; }
textarea { resize: vertical; line-height: 1.6; }
select:focus, textarea:focus { border-color: var(--green-600); outline: 3px solid rgba(55, 114, 194, .22); outline-offset: 0; }

.q.has-error .choices .choice, .q.has-error select, .q.has-error textarea { border-color: var(--danger); }
.q-error { color: var(--danger); font-weight: 600; font-size: .92rem; margin: 8px 0 0; }
.form-alert, .notice { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.form-alert { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.notice { background: var(--gold-soft); color: #7a3418; }
.notice p:last-child { margin-bottom: 0; }

.step-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.step-nav .btn { flex: 1; }
.step-nav .btn-submit { background: var(--marigold); color: #fff; }
.step-nav .btn-submit:hover { background: var(--marigold-d); color: #fff; }
html:not(.js) .js-next, html:not(.js) .js-back { display: none; }
html:not(.js) .step-nav { border-top: 0; padding-top: 0; }
html:not(.js) .step:not(:last-of-type) .step-nav { display: none; }
.submit-note { font-size: .88rem; color: var(--muted); margin-top: 18px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Results / thanks ───────────────────────────────────────── */
.result-card { text-align: center; padding: 28px 8px 12px; }
.result-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--marigold); color: #fff; font-size: 2rem; font-weight: 800; }
.result-icon svg { width: 40px; height: 40px; }
.result-error { text-align: left; }
.error-list { padding-left: 1.1em; color: var(--ink-2); }
.error-list li { margin-bottom: 10px; }
.numbered { padding-left: 1.3em; margin: 0; }
.numbered li { margin-bottom: 6px; }
.share-card { text-align: center; }

.prose h2 { margin-top: 1.7em; font-size: 1.3rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; color: var(--ink-2); }

/* ── Public results, Ask Dr. Krishna, methodology ──────────── */
.notice-ok { background: var(--mint); color: var(--pine); }
.preview-note { border: 1.5px dashed #c44d27; }

.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 24px; }
.stat { background: var(--forest); color: rgba(255, 255, 255, .85); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-dates { font-size: 1.2rem; padding-top: 6px; }
.stat-label { font-size: .92rem; color: rgba(255, 255, 255, .78); }

.results-grid { display: grid; gap: 18px; }
.results-grid > .card, .results-col > .card { margin-bottom: 0; }
.results-col { display: grid; gap: 18px; align-content: start; }
.result-block h2 { font-size: 1.25rem; }
.pbars { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; gap: 14px; }
.pbar-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pbar-label { font-weight: 600; }
.pbar-pct { font-weight: 800; color: var(--forest); font-variant-numeric: tabular-nums; }
.pbar progress { display: block; width: 100%; height: 10px; margin: 4px 0 2px; border: 0; border-radius: 999px; overflow: hidden; background: var(--mint); -webkit-appearance: none; appearance: none; }
.pbar progress::-webkit-progress-bar { background: var(--mint); border-radius: 999px; }
.pbar progress::-webkit-progress-value { background: var(--forest); border-radius: 999px; }
.pbar progress::-moz-progress-bar { background: var(--forest); border-radius: 999px; }
.pbar:first-child progress::-webkit-progress-value { background: var(--marigold); }
.pbar:first-child progress::-moz-progress-bar { background: var(--marigold); }
.pbar-n { font-size: .84rem; color: var(--muted); }

.district-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.district-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; background: var(--page); }
.district-name { font-size: .9rem; font-weight: 700; color: var(--green-700); }
.district-issue { font-weight: 700; color: var(--pine); }
.district-n { font-size: .84rem; color: var(--muted); }

.caveat { margin: 24px 0; padding: 16px 18px; border-left: 4px solid var(--marigold); background: var(--gold-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #7a3418; }
.caveat p:last-child { margin-bottom: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.ask-form textarea { margin-top: 4px; }
.ask-form .btn { margin-top: 6px; }
.answers { margin-top: 40px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.topic-chips a { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.topic-chips a[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.qa { position: relative; }
.tag-pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--mint); color: var(--forest); margin-bottom: 8px; }
.qa-label { font-size: .9rem; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.qa-label-a { color: var(--green-700); margin-top: 14px; }
.qa-q { margin: 0; font-size: 1.12rem; font-weight: 700; color: var(--pine); }
.qa-a { padding-left: 14px; border-left: 3px solid var(--marigold); margin-bottom: 10px; }

.facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 20px 0 8px; }
.facts div { background: var(--mint); border-radius: var(--radius-sm); padding: 12px 14px; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 800; font-size: 1.25rem; color: var(--pine); }

/* Quoted answers on the Issues page */
.voice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 12px; }
.voice { margin: 0; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--mint); }
.voice blockquote { margin: 0; line-height: 1.6; overflow-wrap: anywhere; font-size: 1.05rem; color: var(--pine); }
.voice blockquote::before { content: "“"; font-weight: 800; color: var(--green-600); margin-right: 2px; }
.voice blockquote::after { content: "”"; font-weight: 800; color: var(--green-600); margin-left: 2px; }

/* ── Larger screens ─────────────────────────────────────────── */
@media (min-width: 640px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .choices-2col { grid-template-columns: 1fr 1fr; }
  .step { padding: 32px 36px; }
  .step-nav .btn { flex: 0 0 auto; min-width: 150px; }
  .step-nav .js-next, .step-nav .btn-submit { margin-left: auto; }
  .hero { padding: 72px 0 84px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .timeline li { padding-left: 0; padding-top: 64px; }
  .timeline li:not(:last-child)::after { left: 52px; right: -12px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .closing-inner { grid-template-columns: 1fr auto; padding: 48px 56px; gap: 40px; }
}
@media (min-width: 960px) {
  .btn.header-cta { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .draft { justify-self: end; }
  .two-col { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 56px; }
  .ask-band { grid-template-columns: 1fr 1fr; gap: 56px; }
  .results-grid { grid-template-columns: 1.15fr 1fr; align-items: start; margin-bottom: 18px; }
  .band { padding: 88px 0; }
}
@media (max-width: 400px) {
  .brand-region { display: none; }
  .lang-toggle { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Voter enrolment helper ─────────────────────────────────── */
.phase-box { background: var(--forest); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; }
.phase-box h2 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.phase-box p { margin: 0; color: rgba(255, 255, 255, .9); }
.enrol-check .q:first-of-type { border-top: 0; padding-top: 4px; }
.enrol-check .btn { margin-top: 16px; }
.enrol-result { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); }
.enrol-result p:last-child { margin-bottom: 0; }
.enrol-ok { background: #e3f4ea; color: #134b2c; border-left: 4px solid #2e8b57; }
.enrol-maybe { background: var(--gold-soft); color: #7a3418; border-left: 4px solid var(--marigold); }
.enrol-no { background: #eef1f5; color: var(--ink-2); border-left: 4px solid var(--muted); }
.enrol-steps { padding-left: 1.3em; }
.enrol-steps li { margin-bottom: 10px; color: var(--ink-2); }
@media (min-width: 640px) { .choices-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Manifesto drafts, polls, meetings, district pages ──────── */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.draft-note a { color: var(--forest); font-weight: 600; }
.district-names a { color: var(--pine); text-decoration-color: var(--green-100); text-underline-offset: .25em; }
.district-names a:hover { text-decoration-color: var(--marigold); }

.plank-list { list-style: none; counter-reset: plank; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.plank { counter-increment: plank; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 18px 72px; }
.plank::before { content: counter(plank); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; font-weight: 800; }
.plank h2 { font-size: 1.3rem; margin-bottom: 6px; }
.plank-body { color: var(--ink-2); }
.plank-evidence { display: inline-block; font-size: .92rem; font-weight: 600; color: var(--forest); background: var(--mint); border-radius: 8px; padding: 4px 10px; }
.plank-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 6px; }
.plank-change { flex: 0 1 auto; }
.plank-change[open] { flex: 1 1 100%; }
.plank-change[open] summary { margin-bottom: 10px; }
.plank-change summary { list-style: none; display: inline-flex; }
.plank-change summary::-webkit-details-marker { display: none; }
.plank-form .btn-primary { order: -1; }
.plank-change textarea { min-height: 80px; margin-bottom: 4px; }
.plank-done { font-weight: 600; color: #1e6b41; }
.plank-counts { margin: 10px 0 0; }

.engage-grid { display: grid; gap: 40px; }
.poll-card h3.poll-q, .poll-q { font-size: 1.2rem; color: var(--pine); margin-bottom: 14px; }
.poll-form .choices { margin-bottom: 14px; }
.past-title { margin-top: 32px; }

.event-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.event { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.event-date { flex: 0 0 60px; height: 64px; border-radius: 12px; background: var(--forest); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.event-day { font-size: 1.5rem; font-weight: 800; }
.event-mon { font-size: .8rem; font-weight: 600; }
.event-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.event-body p { margin: 0 0 2px; color: var(--ink-2); font-size: .95rem; }
.event-when { font-weight: 600; color: var(--pine) !important; }
.event.is-cancelled { opacity: .7; }
.event.is-cancelled h3 { text-decoration: line-through; }
.tag-cancel { background: var(--danger-bg); color: var(--danger); text-decoration: none; display: inline-block; }
.past-events summary { cursor: pointer; font-weight: 700; color: var(--forest); margin: 8px 0 14px; }
.other-districts { margin: 32px 0; }
.other-districts h2 { font-size: 1.1rem; }

@media (min-width: 960px) {
  .engage-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .engage-grid.engage-single { grid-template-columns: minmax(0, 760px); }
}
fieldset.q { border: 0; margin: 0; min-width: 0; padding-left: 0; padding-right: 0; }
fieldset.q legend { padding: 0; }
@media (max-width: 639px) {
  .plank { padding: 20px 18px 16px; }
  .plank::before { position: static; display: grid; margin-bottom: 10px; }
}

/* Full menu only where it fits on one line (Encode Sans is a wide face) */
.main-nav a, .btn.header-cta, .lang-toggle { white-space: nowrap; }
.main-nav a { padding: 8px 10px; font-size: .95rem; }
@media (min-width: 1240px) {
  .lang-en .main-nav { display: flex; }
  .lang-en .mobile-menu { display: none; }
  .lang-en .main-nav + .header-actions { margin-left: 8px; }
}
@media (min-width: 1360px) {   /* Telugu menu labels are longer */
  .lang-te .main-nav { display: flex; }
  .lang-te .mobile-menu { display: none; }
  .lang-te .main-nav + .header-actions { margin-left: 8px; }
}

/* Saved-on-phone messages */
.notice-info { background: var(--mint); color: var(--navy); }
.notice-info .link-btn { margin-left: 4px; }
.pending-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 520px; margin: 0 auto; padding: 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600; box-shadow: var(--shadow); }
.pending-banner.is-done { background: #1e7a46; }

/* Show-a-friend QR on the thank-you page */
.friend-qr { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.friend-qr h3 { font-size: 1.05rem; color: var(--ink-2); }
.friend-qr-code { width: 220px; height: 220px; margin: 12px auto; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.friend-qr-code svg { width: 100%; height: 100%; display: block; }

/* Shareable result image */
.share-card-box .cta-row { margin: 12px 0 4px; }
.share-card-preview { display: block; width: 100%; max-width: 360px; margin: 16px 0 0; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.share-card-preview[hidden] { display: none; }

/* Volunteer sign-up */
.text-input { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 54px; }
.text-input:focus { border-color: var(--green-600); outline: 3px solid rgba(24, 148, 234, .22); outline-offset: 0; }
.q.has-error .text-input { border-color: var(--danger); }
.vol-form .q:first-of-type { border-top: 0; padding-top: 4px; }
.vol-form .btn-lg { margin-top: 18px; }
.consent .choice-label { font-size: .95rem; }
.vol-separate p { margin: 0; }
.vol-privacy { margin-top: 24px; }

/* Join us (graduate sign-up) */
fieldset.q { margin: 0; min-width: 0; border-width: 1px 0 0; border-style: solid; border-color: var(--line); }
.join-sec { font-size: 1.05rem; color: var(--navy); margin: 30px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--green-500); }
.join-sec:first-of-type { margin-top: 4px; }
.join-sec + .q, .join-sec + fieldset.q { border-top: 0; }
.join-branch { margin-left: 14px; padding-left: 16px; border-left: 3px solid var(--mint); }
.join-branch[hidden] { display: none; }
fieldset.join-branch { margin-left: 14px; }
.select-short { max-width: 240px; }
.join-govt-note { margin: 14px 0 0; font-size: .92rem; }
.join-consent { margin-top: 18px; }
.join-counter { display: inline-flex; align-items: center; margin: 4px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--mint); color: var(--navy); font-weight: 600; font-size: .95rem; }
.join-counter .counter-dot { box-shadow: 0 0 0 4px rgba(24, 148, 234, .18); }
.join-next { margin-top: 16px; }
.join-next p:last-child { margin-bottom: 0; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.closing .closing-join { margin-top: 14px; font-size: .95rem; color: #fff; }
.mobile-menu summary svg { flex: none; width: 18px; height: 18px; }
/* The header may use more of a wide screen than the page content, so six menu items fit */
.site-header .wrap { max-width: 1560px; }

/* Dr. Krishna's letter and other open questions */
.letter { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--marigold); border-radius: 14px; padding: 28px 22px 20px; margin-bottom: 20px; }
.letter h1 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 0 18px; }
.letter-body p { font-size: 1.08rem; line-height: 1.75; margin: 0 0 14px; color: var(--ink); max-width: 64ch; }
.lang-te .letter-body p { line-height: 1.95; }
.letter-body a { color: var(--forest); }
.letter-body .letter-sign { font-weight: 700; color: var(--navy); margin-top: 22px; }
.letter-form textarea { width: 100%; min-height: 220px; font: inherit; font-size: 1.02rem; line-height: 1.6; padding: 14px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.letter-form textarea:focus { outline: 3px solid rgba(24, 148, 234, .35); border-color: var(--forest); }
.letter-form .letter-district { display: block; margin-top: 18px; }
.letter-form .btn { margin-top: 20px; }
.letter-anon { margin: 14px 0 0; }
.letter-next { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.letter-band { background: var(--cream); padding: 44px 0; border-bottom: 1px solid var(--line); }
.letter-band-inner { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; justify-content: space-between; }
.letter-band h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 3.4vw, 1.75rem); }
.letter-teaser { margin: 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--marigold); max-width: 60ch; }
.letter-teaser p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--ink); }
@media (min-width: 720px) { .letter { padding: 40px 44px 30px; } }

/* Publishing promise (letter) and Graduates' voices */
.pub-promise { background: var(--cream); border-left: 4px solid var(--marigold); border-radius: 10px; padding: 16px 18px; margin-bottom: 22px; }
.pub-promise h2 { font-size: 1.15rem; margin: 0 0 6px; color: var(--navy); }
.pub-promise p { margin: 0; line-height: 1.7; }
.pub-choice { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.pub-choice .choices { margin-top: 8px; }
.pub-name { margin: 14px 0 6px 14px; padding-left: 16px; border-left: 3px solid var(--mint); }
.pub-name[hidden] { display: none; }
.publish-consent { border-top: 1px solid var(--line); }
.voices-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 6px 0 14px; }
.voices-filters label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
.voices-filters select { min-width: 200px; }
.voices-count { color: var(--muted, #5b6b7b); margin: 0 0 16px; }
.voices-list { columns: 1; column-gap: 20px; }
@media (min-width: 760px) { .voices-list { columns: 2; } }
@media (min-width: 1140px) { .voices-list { columns: 3; } }
.vcard { break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 14px; margin: 0 0 20px; }
.vcard blockquote { margin: 0; }
.vcard blockquote p { margin: 0 0 8px; line-height: 1.7; font-size: 1.02rem; }
.lang-te .vcard blockquote p { line-height: 1.9; }
.vcard details summary { cursor: pointer; color: var(--forest); font-weight: 600; margin-bottom: 6px; }
.vcard figcaption { font-weight: 700; color: var(--navy); font-size: .95rem; }
.vcard-src { display: block; font-weight: 500; color: var(--muted, #5b6b7b); font-size: .82rem; margin-top: 2px; }
.voices-cta { margin: 26px auto 0; text-align: center; }
.home-voices { padding: 48px 0; }
.home-voices-list { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 18px 0; }
@media (min-width: 900px) { .home-voices-list { grid-template-columns: repeat(3, 1fr); } }
.home-voices-list .vcard { margin: 0; }
.letter-form .sub-q { margin-left: 14px; padding-left: 16px; border-left: 3px solid var(--mint); }
.letter-form .sub-q .sub-q { margin-left: 0; padding-left: 0; border-left: 0; margin-top: 14px; }
.letter-form [data-show-when][hidden] { display: none; }

/* Six or seven header links (Issues, manifesto, voices, Ask, meetings, Register, Join) need more room
   before the full menu replaces the Menu button. Widths measured with Encode Sans / Anek Telugu. */
@media (min-width: 1240px) and (max-width: 1279px) {
  .nav-n6.lang-en .main-nav { display: none; }
  .nav-n6.lang-en .mobile-menu { display: block; }
}
@media (min-width: 1240px) and (max-width: 1359px) {
  .nav-n7.lang-en .main-nav { display: none; }
  .nav-n7.lang-en .mobile-menu { display: block; }
}
@media (min-width: 1360px) and (max-width: 1399px) {
  .nav-n6.lang-te .main-nav { display: none; }
  .nav-n6.lang-te .mobile-menu { display: block; }
}
@media (min-width: 1360px) and (max-width: 1479px) {
  .nav-n7.lang-te .main-nav { display: none; }
  .nav-n7.lang-te .mobile-menu { display: block; }
}

/* Tech graduates */
.circle-hero { background: var(--forest); color: #fff; padding: 56px 0 48px; }
.circle-hero h1 { color: #fff; font-size: clamp(1.7rem, 4.6vw, 2.6rem); max-width: 22ch; margin: 0 0 14px; }
.circle-hero .lead { color: rgba(255, 255, 255, .92); max-width: 62ch; }
.circle-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.circle-h2 { margin: 8px 0 18px; }
.circle-issues { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .circle-issues { grid-template-columns: repeat(2, 1fr); } }
.circle-issue { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 16px; }
.circle-issue h3 { margin: 0 0 12px; font-size: 1.12rem; color: var(--ink); }
.circle-issue p { margin: 0 0 12px; line-height: 1.65; }
.circle-issue p span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 2px; }
.circle-problem span { color: var(--muted, #5b6b7b); }
.circle-commit { background: var(--mint); border-radius: 8px; padding: 10px 12px; }
.circle-commit span { color: var(--navy); }
.circle-help-band { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; background: var(--cream); border-left: 5px solid var(--marigold); border-radius: 14px; padding: 26px 24px; margin: 30px 0; }
.circle-help-band h2 { margin: 0 0 8px; }
.circle-help-band > div { max-width: 66ch; }
.circle-help-band ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.6; }
.circle-vote { margin-bottom: 20px; }
.circle-points { margin: 0; padding-left: 20px; line-height: 1.6; }
.home-circles { background: var(--mint); padding: 34px 0; }
.home-circles-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.home-circles h2 { margin: 0 0 6px; font-size: clamp(1.2rem, 3vw, 1.5rem); }
.home-circles p { margin: 0; max-width: 64ch; }
.home-circles .circle-actions { margin: 0; }

/* Professions hub */
.circle-tiles { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 28px; }
@media (min-width: 640px) { .circle-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .circle-tiles { grid-template-columns: repeat(4, 1fr); } }
.circle-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--forest); border-radius: 12px; padding: 18px 18px 16px; color: var(--ink); text-decoration: none; }
.circle-tile:hover, .circle-tile:focus-visible { border-color: var(--forest); box-shadow: 0 2px 0 var(--forest); }
.circle-tile h2, .circle-tile h3 { font-size: 1.08rem; margin: 0 0 10px; color: var(--navy); }
.circle-tile ul { margin: 0 0 14px; padding-left: 18px; line-height: 1.55; font-size: .95rem; flex: 1; }
.circle-tile .circle-open { font-weight: 700; color: var(--forest); }
.home-circles .circle-tiles { margin: 18px 0 0; }
.home-circles .circle-tile ul { display: none; }
.home-circles .circle-tile { padding: 14px 16px; }
.home-circles .circle-tile h3 { margin: 0; font-size: 1rem; }
.circle-crumb a { color: rgba(255, 255, 255, .9); }
.circle-others { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.circle-others a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; }
/* Homepage: compact chips, two per row on phones */
.home-circles .circle-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .home-circles .circle-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .home-circles .circle-tiles { grid-template-columns: repeat(5, 1fr); } }
.home-circles .circle-tile { padding: 11px 12px; border-top-width: 3px; }
.home-circles .circle-tile h3 { font-size: .95rem; line-height: 1.35; }

/* Register: organisation section */
.join-sub { font-size: 1.05rem; margin: 18px 0 6px; color: var(--navy); }
.reg-org2 { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 4px; }
.reg-invite { margin-top: 14px; }
.org-select { max-width: 100%; }
@media (max-width: 420px) { .choices-2col .choice-label { font-size: .92rem; } }
.join-form .choices-2col { grid-template-columns: 1fr 1fr; }
/* Register: keep nested follow-ups from drifting off narrow screens */
.join-form .join-branch .join-branch { margin-left: 0; padding-left: 12px; }
.join-form .reg-org2 { margin-left: 0; padding-left: 0; border-left: 0; }
.join-form .choices-2col .choice { padding: 10px 11px; gap: 8px; min-height: 0; }
@media (max-width: 420px) { .join-form .join-branch { margin-left: 6px; padding-left: 12px; } }

/* One-minute survey: both blocks on one screen */
.step-single .step-block + .step-block { margin-top: 26px; padding-top: 20px; }
.step-single .step-block.step-sensitive { border-top: 5px solid var(--marigold); }
.more-invite { border: 2px solid var(--green-500, #1f9d55); }
.more-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
/* One-minute survey: two compact columns of choices, even on phones, to keep the page short */
.survey-quick .choices { grid-template-columns: 1fr 1fr; gap: 8px; }
.survey-quick .choice { padding: 10px 10px; min-height: 0; gap: 8px; }
.survey-quick .choice-label { font-size: .95rem; line-height: 1.35; }
.survey-quick .q-help { margin-bottom: 8px; }

/* Manifesto in chapters */
.plank h3 { font-size: 1.08rem; margin: 0 0 6px; }
.mx-preface p { margin: 0 0 12px; }
.mx-contents ul { list-style: none; margin: 6px 0 10px; padding-left: 0; line-height: 1.9; }
.mx-chapter { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; padding: 0 18px; }
.mx-chapter > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.mx-chapter > summary::-webkit-details-marker { display: none; }
.mx-chapter > summary::before { content: "+"; font-weight: 800; color: var(--forest); width: 1em; }
.mx-chapter[open] > summary::before { content: "−"; }
.mx-chapter > summary h2 { display: inline; font-size: 1.15rem; margin: 0; }
.mx-chapter[open] { padding-bottom: 12px; }
.mx-intro { color: var(--ink-2); margin: 0 0 12px; }
.mx-circles { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; }
.mx-appeal { border-left: 5px solid var(--marigold); font-weight: 600; }
.pledge-hero { background: var(--navy); color: #fff; padding: 40px 0 34px; }
.pledge-hero h1 { color: #fff; margin: 0 0 8px; }
.pledge-hero .lead { color: rgba(255, 255, 255, .9); margin: 0; }
.pledge-list { margin: 18px 0 24px; padding-left: 26px; }
.pledge-list li { margin: 0 0 16px; }
.pledge-list h2 { font-size: 1.1rem; margin: 0 0 4px; }
.pledge-list p { margin: 0; }
.home-pledge .pledge-points { margin: 10px 0 14px; padding-left: 20px; }
.mx-chapter .plank { padding: 16px 14px 14px 58px; }
.mx-chapter .plank::before { left: 14px; top: 16px; width: 30px; height: 30px; font-size: .9rem; }
.home-pledge { padding: 28px 0 0; }

/* Circle page: link to the group's manifesto chapter */
.circle-manifesto { margin: 1.25rem 0 0; font-weight: 600; }
.circle-manifesto a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Admin preview of a hidden page */
.mx-hidden-banner { background: #fff4d6; border-bottom: 2px solid #e0b100; color: #4a3b00; font-size: .95rem; padding: 10px 0; }
.mx-hidden-banner a { color: inherit; font-weight: 700; }

/* Homepage "What people are saying": buttons side by side, short note while few comments are published */
.home-voices .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.home-voices-empty { max-width: 640px; }

/* ── The cause in the hero: "A vote is not for sale." with the question beneath ── */
.hero h1 { max-width: 18ch; }
.lang-te .hero h1 { max-width: 20ch; }
.hero-q { display: block; margin-top: .35em; font-size: .52em; line-height: 1.3; font-weight: 600; color: rgba(255, 255, 255, .9); }

/* ── Home: the People's Pledge band ── */
.pledge-band { background: var(--mint); padding: 44px 0; border-bottom: 1px solid var(--line); }
.pledge-band-inner { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; justify-content: space-between; }
.pledge-band h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 3.4vw, 1.75rem); color: var(--forest); }
.pledge-band-text { margin: 0; padding-left: 16px; border-left: 4px solid var(--forest); font-size: 1.15rem; font-weight: 600; color: var(--pine); }
.pledge-band-text p { margin: 0; }
.pledge-band-count { margin: 12px 0 0; font-size: .95rem; color: var(--ink-2); }
.pledge-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Pledge page ── */
.pledge-card h2 { margin-top: 0; color: var(--forest); }
.pledge-text { margin: 0 0 22px; padding: 18px 20px; border-left: 5px solid var(--forest); background: var(--mint); border-radius: 0 12px 12px 0; font-size: 1.18rem; line-height: 1.6; font-weight: 600; color: var(--pine); }
.pledge-text p { margin: 0; }
.pledge-form .pledge-fields { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 640px) { .pledge-form .pledge-fields { grid-template-columns: 1fr 1fr; } }
.pledge-form select { width: 100%; min-height: 54px; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.pledge-form .q-help { margin-top: 12px; }
.pledge-done { text-align: center; padding: 8px 0 4px; }
.pledge-done h3 { margin: 0 0 8px; }
.pledge-count { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pledge-total { font-size: 1.25rem; font-weight: 800; color: var(--forest); margin: 0 0 8px; }
.pledge-mandals { list-style: none; padding: 0; margin: 10px 0 0; }
.pledge-mandals li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.pledge-card--candidate { border-top: 5px solid var(--marigold); }
.pledge-candidates { list-style: none; padding: 0; margin: 0 0 14px; }
.pledge-candidates li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pledge-candidates span { font-size: .92rem; color: var(--muted); }
.pledge-next { font-weight: 700; }

/* ── How to judge a candidate ── */
.judge-list { list-style: none; counter-reset: jq; padding: 0; margin: 0 0 18px; }
.judge-list li { counter-increment: jq; margin-bottom: 12px; }
.judge-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.judge-item input { width: 24px; height: 24px; margin-top: 3px; flex: none; accent-color: var(--marigold); }
.judge-item strong { display: block; font-size: 1.08rem; color: var(--pine); }
.judge-item strong::before { content: counter(jq) ". "; color: var(--forest); }
.judge-item small { display: block; margin-top: 4px; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.judge-item:has(input:checked) { border-color: var(--marigold); background: var(--gold-soft); }
.judge-count { font-size: 1.15rem; font-weight: 800; color: var(--marigold-d); }

/* ── Alternative Politics explainers ── */
.ideas-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.idea-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.idea-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.idea-card strong, .idea-card small { padding: 0 16px; }
.idea-card strong { font-size: 1.08rem; color: var(--pine); line-height: 1.35; }
.idea-card small { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.idea-num { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 800; }
.idea-card:hover { border-color: var(--forest); }
.ideas-pledge { margin-top: 28px; }
.pledge-hero .hero-place a { color: #fff; }
.idea-facts { display: grid; gap: 12px; margin: 0 0 26px; }
@media (min-width: 720px) { .idea-facts { grid-template-columns: repeat(3, 1fr); } }
.idea-fact { padding: 18px; border-radius: var(--radius); background: var(--mint); border-top: 5px solid var(--forest); }
.idea-fact strong { display: block; font-size: 1.7rem; line-height: 1.15; color: var(--forest); margin-bottom: 8px; }
.idea-fact span { font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.idea-p { font-size: 1.1rem; line-height: 1.75; }
.idea-points dt { font-weight: 800; color: var(--forest); margin-top: 16px; }
.idea-points dd { margin: 4px 0 0; line-height: 1.6; }
.idea-do { margin-top: 26px; border-top: 5px solid var(--marigold); }
.idea-do h2 { margin-top: 0; }
.idea-do li { margin-bottom: 8px; line-height: 1.55; }
.idea-poster { margin: 28px auto; max-width: 420px; text-align: center; }
.idea-poster img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.idea-poster figcaption { margin-top: 10px; font-weight: 700; }
.idea-sources { margin-top: 26px; font-size: .92rem; }
.idea-sources h2 { font-size: 1.1rem; }
.idea-sources li { margin-bottom: 6px; word-break: break-word; }
.ideas-band { padding: 48px 0; }
.ideas-band h2 { margin-top: 0; }
.ideas-strip { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 20px 0; }
@media (min-width: 720px) { .ideas-strip { grid-template-columns: repeat(4, 1fr); } }
.ideas-strip img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: var(--shadow); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
