/* Madhu Dasari for APTA President 2027–28 — styles.
   Self-contained: tokens, base type, components and page layout.
   One family, Anek Telugu, for both scripts so the తెలుగు switch keeps
   the page's voice. Ink navy and a single saffron accent, taken from the
   campaign's own flyer and the felicitation shawl in the photographs. */

/* ── tokens ───────────────────────────────────────────────────────────── */
:root {
  --ink: #16213a;          /* navy: hero, letter, poster, footer */
  --ink-2: #1f2d4d;        /* lifted navy for fields on navy */
  --saffron: #e5731c;      /* the one accent */
  --saffron-deep: #b9520c; /* accent for text on paper (4.5:1) */
  --leaf: #1f5a3c;         /* new-initiative marks and confirmations */
  --paper: #f5f1e9;        /* page ground */
  --paper-2: #ece6da;      /* tinted fields on paper */
  --white: #fffdf9;
  --text: #1c1a16;
  --muted: #5d5851;
  --rule: #c9c1b3;
  --on-ink: #f5f1e9;
  --on-ink-muted: #b8bfd0;

  --font: "Anek Telugu", "Noto Sans Telugu", system-ui, sans-serif;
  --wide: "wdth" 112;
  --container: 1160px;
  --gutter: clamp(16px, 5vw, 64px);
}

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55; font-weight: 400;
  text-wrap: pretty; font-optical-sizing: auto;
}
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
a { color: var(--saffron-deep); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
::selection { background: rgba(229, 115, 28, .3); }
.tnum { font-variant-numeric: tabular-nums; }
:lang(te) { line-height: 1.7; }
:lang(te) h1, :lang(te) h2, :lang(te) h3 { line-height: 1.25; letter-spacing: 0; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.page { max-width: var(--container); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) 96px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.noscript { max-width: var(--container); margin: 0 auto; padding: 24px var(--gutter); font-size: 15px; }

/* running head: the one structural mark, a saffron bar then a sentence-case line */
.rh {
  font-size: 15px; font-weight: 600; color: var(--saffron-deep); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.rh::before { content: ""; width: 28px; height: 3px; background: var(--saffron); flex: none; }
.h-page {
  font-size: clamp(38px, 5.6vw, 72px); font-variation-settings: var(--wide);
  max-width: 16ch; margin-left: -0.03em;
}
.h-page.wide { max-width: none; }
.section h2, .plan-group h2, .past h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 26ch; margin-bottom: 36px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 62ch; margin-top: 28px; color: var(--text); }
.lede + .lede { margin-top: 18px; }
.lede-sm { font-size: 17px; max-width: 64ch; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mt-36 { margin-top: 36px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border: 2px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; text-decoration: none;
  color: var(--text); background: transparent; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--saffron); color: var(--white); border-color: var(--saffron); }
.btn-primary:hover { background: var(--saffron-deep); border-color: var(--saffron-deep); }
.btn-secondary { border-color: var(--text); color: var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--paper); }
.btn-light { border-color: var(--on-ink); color: var(--on-ink); }
.btn-light:hover { background: var(--on-ink); color: var(--ink); }
.btn-ghost { color: var(--saffron-deep); padding-inline: 6px; }
.btn-ghost:hover { background: rgba(229, 115, 28, .12); }
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .pick, .navlinks a, .seg-btn { transition: background-color .15s, border-color .15s, color .15s; }
}

/* ── navigation ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; row-gap: 8px;
  padding: 12px var(--gutter); background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav-brand { margin-right: auto; color: inherit; line-height: 1.15; display: flex; align-items: center; gap: 10px; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--rule); }
.nav-brand:hover { text-decoration: none; }
.nav-brand .b1 { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav-brand .b2 { font-size: 12px; color: var(--muted); }
.navlinks { display: flex; gap: 4px 20px; align-items: center; flex-wrap: wrap; flex: 1 1 100%; order: 3; }
.navlinks a { font-size: 15px; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.navlinks a:hover { text-decoration: none; border-bottom-color: var(--rule); }
.navlinks a[aria-current="page"] { border-bottom-color: var(--saffron); }
.seg { display: inline-flex; border: 1px solid var(--rule); flex: none; }
.seg-btn { padding: 6px 12px; font-size: 14px; cursor: pointer; border: 0; background: transparent; color: inherit; }
.seg-btn + .seg-btn { border-left: 1px solid var(--rule); }
.seg-btn:hover { background: var(--paper-2); }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.nav-cta { min-height: 40px; padding: 8px 16px; font-size: 15px; flex: none; }
@media (min-width: 1240px) { .navlinks { flex: 0 0 auto; order: 0; } }
@media (max-width: 720px) {
  .navlinks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .navlinks.more { --nav-mask: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .navlinks.more-l { --nav-mask: linear-gradient(to right, transparent, #000 56px); }
  .navlinks.more.more-l { --nav-mask: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
  .navlinks.more, .navlinks.more-l { -webkit-mask-image: var(--nav-mask); mask-image: var(--nav-mask); }
  .navlinks::-webkit-scrollbar { display: none; }
  .nav-cta { display: none; }
  body[data-route="home"] .nav { position: static; }
}

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: var(--ink); color: var(--on-ink);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto;
  min-height: min(82vh, 760px); overflow: hidden;
}
.hero-text {
  grid-column: 1; grid-row: 1; align-self: center;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 56px) clamp(48px, 7vw, 96px) var(--gutter);
  max-width: 640px; justify-self: end; width: 100%;
}
.hero h1 {
  font-size: clamp(42px, 5.4vw, 78px); font-variation-settings: var(--wide);
  margin-left: -0.03em; max-width: 12ch; text-wrap: balance;
}
.hero .sub { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; max-width: 48ch; margin: 28px 0 36px; color: var(--on-ink); opacity: .92; }
.hero-photo { grid-column: 2; grid-row: 1; position: relative; min-height: 360px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 14px;
  font-size: 12.5px; line-height: 1.4; color: var(--on-ink);
  background: linear-gradient(to top, rgba(22, 33, 58, .92), rgba(22, 33, 58, 0));
}
.facts {
  grid-column: 1 / -1; grid-row: 2; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 4px solid var(--saffron);
}
.facts > div { padding: 22px var(--gutter); border-left: 1px solid rgba(255, 255, 255, .14); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.facts dd { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--on-ink-muted); max-width: 30ch; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .hero-photo { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 16 / 10; }
  .hero-text { grid-column: 1; grid-row: 2; max-width: none; justify-self: stretch; padding: 40px var(--gutter) 44px; }
  .hero h1 { max-width: none; margin-left: 0; }
  .facts { grid-row: 3; grid-template-columns: 1fr; }
  .facts > div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 16px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 14px; }
  .facts > div:first-child { border-top: 0; }
  .facts dd { margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .sub, .hero .btn-row { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .sub { animation-delay: .12s; }
  .hero .btn-row { animation-delay: .22s; }
  .hero-photo img { animation: reveal 1.1s ease-out both; }
  .facts { animation: fade .8s .5s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── pillars ──────────────────────────────────────────────────────────── */
.pillars-sec { padding-bottom: 0; }
.pillars {
  list-style: none; display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.pillars li {
  padding: 22px 18px 24px 0; font-size: 19px; font-weight: 600; line-height: 1.2;
  border-left: 1px solid var(--rule); padding-left: 18px;
}
.pillars li:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(3, 1fr); } .pillars li:nth-child(4) { border-left: 0; padding-left: 0; } .pillars li:nth-child(-n+3) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 520px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillars li { border-bottom: 1px solid var(--rule); } .pillars li:nth-child(odd) { border-left: 0; padding-left: 0; } .pillars li:nth-child(4) { border-left: 1px solid var(--rule); padding-left: 18px; } .pillars li:nth-last-child(-n+2) { border-bottom: 0; } }

/* ── programs ─────────────────────────────────────────────────────────── */
.prog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 72px); }
.prog h3 { font-size: 24px; margin-bottom: 10px; }
.prog p { font-size: 17px; line-height: 1.5; max-width: 52ch; }
.new-list { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.new-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 16px; line-height: 1.45; color: var(--text); max-width: 56ch; }
.new-mark {
  font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 7px 4px; margin-top: 3px;
  color: var(--leaf); border: 1px solid var(--leaf); white-space: nowrap;
}
:lang(te) .new-mark { padding-top: 4px; }
.plan-group { margin-top: clamp(56px, 7vw, 88px); padding-top: 32px; border-top: 1px solid var(--rule); }
.plan-group h2 { margin-bottom: 32px; }
@media (max-width: 720px) { .prog-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── letter ───────────────────────────────────────────────────────────── */
.letter { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 8vw, 104px) 0; }
.letter-grid { display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.letter .rh { color: var(--saffron); }
.letter .rh::before { background: var(--saffron); }
.letter-body p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 58ch; margin-top: 18px; }
.letter-body .salute { font-weight: 600; margin-top: 0; }
.letter-body .sign { margin-top: 32px; font-weight: 700; font-size: 22px; display: flex; flex-direction: column; }
.letter-body .sign span { font-weight: 400; font-size: 14px; color: var(--on-ink-muted); margin-top: 4px; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 720px) { .letter-grid { grid-template-columns: 1fr; } .portrait { max-width: 260px; } }

/* ── latest / gallery preview ─────────────────────────────────────────── */
.latest { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.latest-text h2 { margin-bottom: 16px; }
.latest-text p { font-size: 17px; line-height: 1.5; max-width: 46ch; margin-bottom: 28px; }
.latest-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.latest-photos a:first-child { grid-row: 1 / 3; }
.latest-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.latest-photos a:first-child img { aspect-ratio: auto; }
@media (max-width: 800px) { .latest { grid-template-columns: 1fr; } }

/* ── voices ───────────────────────────────────────────────────────────── */
.voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.voice { margin: 0; padding: 24px 24px 22px; background: var(--white); border-top: 3px solid var(--saffron); display: flex; flex-direction: column; }
.voice p { font-size: 17px; line-height: 1.5; flex: 1; }
.voice p::before { content: "\201C"; color: var(--saffron); font-weight: 700; margin-right: 2px; }
.voice p::after { content: "\201D"; color: var(--saffron); font-weight: 700; margin-left: 2px; }
.voice footer { margin-top: 18px; display: flex; flex-direction: column; font-size: 14px; }
.voice .who { font-weight: 600; }
.voice .where { color: var(--muted); }
@media (max-width: 900px) { .voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .voice-grid { grid-template-columns: 1fr; } }
.support { margin-top: clamp(56px, 7vw, 88px); }
.support-list { border-top: 1px solid var(--rule); }
.support-row { display: grid; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); gap: 12px clamp(24px, 4vw, 64px); padding: 24px 0; border-bottom: 1px solid var(--rule); }
.support-row h2 { font-size: 19px; line-height: 1.25; }
.support-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; }
.support-people .name { font-size: 16px; font-weight: 600; }
.support-people .role { font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 600px) { .support-row { grid-template-columns: 1fr; } }

/* ── poster ───────────────────────────────────────────────────────────── */
.poster { background: var(--saffron); color: var(--white); padding: clamp(56px, 8vw, 104px) 0; }
.poster h2 { font-size: clamp(30px, 4vw, 54px); max-width: 22ch; font-variation-settings: var(--wide); margin-left: -0.03em; text-wrap: balance; }
.poster p { font-size: 19px; line-height: 1.5; max-width: 52ch; margin: 24px 0 36px; }
.poster .btn-primary { background: var(--ink); border-color: var(--ink); }
.poster .btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.poster .btn-light { border-color: var(--white); color: var(--white); }
.poster .btn-light:hover { background: var(--white); color: var(--saffron-deep); }

/* ── vision page extras ───────────────────────────────────────────────── */
.ideas { margin-top: clamp(56px, 7vw, 88px); padding: 40px clamp(20px, 4vw, 48px); background: var(--paper-2); }
.ideas .lede-sm { margin-bottom: 32px; }
.idea-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.idea h3 { font-size: 20px; margin-bottom: 8px; }
.idea p { font-size: 16px; line-height: 1.5; color: var(--text); max-width: 52ch; }
@media (max-width: 720px) { .idea-list { grid-template-columns: 1fr; } }
.flyer-sec { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
.flyer-sec p { font-size: 16px; max-width: 40ch; margin-bottom: 20px; }
.flyer-thumb { display: block; box-shadow: 0 12px 32px rgba(22, 33, 58, .18); }
.flyer-thumb.small { max-width: 180px; margin-top: 24px; font-size: 13px; color: var(--muted); box-shadow: none; }
.flyer-thumb.small img { box-shadow: 0 8px 24px rgba(22, 33, 58, .16); margin-bottom: 8px; }
@media (max-width: 560px) { .flyer-sec { grid-template-columns: 1fr; } .flyer-thumb { max-width: 240px; } }

/* ── about ────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.about-grid .portrait { margin-top: 8px; }
.about-grid .portrait img { aspect-ratio: 4 / 5; object-position: 50% 10%; }
.record { margin-top: clamp(56px, 7vw, 80px); }
.record-list { margin: 0; border-top: 1px solid var(--rule); max-width: 820px; }
.record-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.record-list dt { font-weight: 600; }
.record-list dd { margin: 0; color: var(--muted); }
.words { margin-top: clamp(56px, 7vw, 80px); }
.big-quote { margin: 0; max-width: 64ch; }
.big-quote p { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; font-weight: 500; }
.big-quote footer { margin-top: 20px; font-size: 15px; color: var(--muted); }
.philosophy {
  margin-top: clamp(56px, 7vw, 80px); padding-top: 32px; border-top: 3px solid var(--saffron);
  font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.2; max-width: 26ch; letter-spacing: -0.015em;
}
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } .about-grid .portrait { max-width: 280px; } .record-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* ── events ───────────────────────────────────────────────────────────── */
.upcoming { margin-top: clamp(48px, 6vw, 72px); }
.upcoming-list { border-top: 1px solid var(--rule); max-width: 860px; }
.up-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.up-row .when { font-weight: 700; color: var(--saffron-deep); }
.up-row .title { font-weight: 600; font-size: 18px; }
.up-row .body { font-size: 15px; color: var(--muted); margin-top: 2px; }
.past { margin-top: clamp(56px, 7vw, 88px); }
.past h2 { font-size: clamp(22px, 2.4vw, 30px); max-width: none; margin-bottom: 18px; }
.past-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); margin-top: 40px; }
.past-grid h3 { font-size: 19px; margin-bottom: 14px; }
.past-grid p { font-size: 16px; line-height: 1.5; max-width: 48ch; }
.leader-list { list-style: none; display: grid; gap: 8px; }
.leader-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.leader-list li span:first-child { font-weight: 600; }
.leader-list .where { color: var(--muted); font-size: 14px; }
.gallery-h { font-size: 19px; margin: 56px 0 20px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.tall img { aspect-ratio: auto; height: 100%; }
.service-gallery { margin-top: 64px; }
.service-gallery .lede { max-width: 62ch; }
.mt-32 { margin-top: 32px; }
.gallery figcaption { font-size: 13px; line-height: 1.4; color: var(--muted); padding: 8px 0 4px; }
@media (max-width: 800px) { .past-grid { grid-template-columns: 1fr; } .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery figure.tall { grid-row: auto; } .gallery figure.tall img { aspect-ratio: 3 / 2; height: auto; } .up-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* ── forms and survey ─────────────────────────────────────────────────── */
.field > label, .field > .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.input {
  width: 100%; min-height: 46px; padding: 8px 12px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--white); border: 1px solid var(--rule); caret-color: var(--saffron); margin-top: 6px;
}
.input:hover { border-color: var(--muted); }
.input:focus-visible { border-color: var(--saffron); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; }
select.input { appearance: auto; }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 56px 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.step-head h2, .step-h { font-size: 24px; }
.step-h { margin: 56px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.step-h.tight { margin-bottom: 8px; }
.counter { font-size: 15px; font-weight: 600; color: var(--saffron-deep); }
.step-note { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.pick-group { font-size: 14px; font-weight: 600; color: var(--muted); margin: 24px 0 10px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pick {
  text-align: left; cursor: pointer; padding: 14px 16px 16px 44px; position: relative;
  border: 1px solid var(--rule); background: var(--white); color: var(--text); display: block; width: 100%;
}
.pick:hover { border-color: var(--saffron); }
.pick.on { border-color: var(--saffron); box-shadow: inset 0 0 0 1px var(--saffron); }
.pick.off { cursor: not-allowed; opacity: .5; }
.pick.off:hover { border-color: var(--rule); }
.pick-box { position: absolute; left: 14px; top: 17px; width: 18px; height: 18px; border: 2px solid var(--rule); background: transparent; }
.pick.on .pick-box { border-color: var(--saffron); background: var(--saffron); }
.pick-title { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; margin-bottom: 4px; }
.pick-body { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 15px; padding: 8px 14px; cursor: pointer; border: 1px solid var(--rule); background: var(--white); color: var(--text); text-align: left; }
.chip:hover { border-color: var(--saffron); }
.chip.on, .chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.form-3.max900 { max-width: 900px; margin-top: 32px; }
.form-stack { display: grid; gap: 28px; }
.field.narrow { max-width: 360px; }
.submit-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 48px; }
.hint { font-size: 15px; color: var(--muted); }
@media (max-width: 720px) { .form-2 { grid-template-columns: 1fr; } .h-page, .poster h2 { margin-left: 0; } }

.picked-list { list-style: none; margin-top: 32px; border-top: 1px solid var(--rule); max-width: 640px; }
.picked-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 18px; }
.thanks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
.panel { padding: 24px; background: var(--white); border-top: 3px solid var(--rule); }
.panel.nudge { border-top-color: var(--saffron); }
.panel .rh { margin-bottom: 10px; }
.panel .title { font-size: 18px; font-weight: 600; margin-bottom: 16px; line-height: 1.3; }
.panel.narrow { max-width: 640px; margin-top: 48px; }
.done-box { margin-top: 48px; padding: 28px; background: var(--white); border-top: 3px solid var(--leaf); max-width: 640px; }
.done-box .title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }

/* ── join and vote ────────────────────────────────────────────────────── */
.countdown { display: flex; align-items: baseline; gap: 20px; margin: 40px 0 48px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.countdown .n { font-size: clamp(44px, 6vw, 72px); font-weight: 700; color: var(--saffron-deep); line-height: 1; letter-spacing: -0.02em; }
.countdown .l { font-size: 16px; line-height: 1.4; max-width: 34ch; }
.steps-grid { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.steps-grid li { counter-increment: step; padding: 20px 0 0; border-top: 3px solid var(--ink); }
.steps-grid li::before { content: counter(step); display: block; font-weight: 700; color: var(--saffron-deep); margin-bottom: 8px; }
.steps-grid .title { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.25; }
.steps-grid .body { font-size: 15px; line-height: 1.5; color: var(--muted); }
.vote-list { border-top: 1px solid var(--rule); max-width: 860px; }
.vote-row { display: grid; grid-template-columns: minmax(100px, 160px) minmax(0, 1fr); gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.vote-when { font-size: 20px; font-weight: 700; color: var(--saffron-deep); }
.vote-row .title { font-size: 18px; font-weight: 600; margin-bottom: 6px; line-height: 1.25; }
.vote-row .body { font-size: 16px; line-height: 1.5; max-width: 58ch; }
.remind { margin-top: 48px; max-width: 560px; }
.remind .title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.remind-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.remind-row .input { max-width: 320px; margin: 0; }
.remind-done { font-size: 16px; color: var(--leaf); font-weight: 600; }
@media (max-width: 560px) { .vote-row { grid-template-columns: 1fr; } }

/* ── contact ──────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(24px, 5vw, 80px); margin-top: 48px; }
.contact-email { font-size: 18px; font-weight: 600; word-break: break-all; }
.group-body { font-size: 16px; line-height: 1.5; max-width: 36ch; }
.contact-form { display: grid; gap: 20px; }
.contact-form textarea.input { min-height: 150px; }
.sent { font-size: 18px; font-weight: 600; color: var(--leaf); }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── team dashboard ───────────────────────────────────────────────────── */
.h-team { font-size: clamp(32px, 4vw, 52px); }
.passcode-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; max-width: 420px; align-items: flex-end; }
.passcode-row .input { max-width: 200px; margin: 0; }
.code-hint { font-size: 14px; color: var(--muted); margin-top: 12px; }
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.team-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.team-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; padding: 32px 0; margin-top: 32px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.team-n { font-size: 40px; font-weight: 700; color: var(--saffron-deep); line-height: 1; }
.team-l { font-size: 13px; color: var(--muted); margin-top: 8px; }
.team-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(24px, 4vw, 64px); margin-top: 48px; }
.team-grid h2, .team-h2 { font-size: 22px; margin-bottom: 20px; }
.team-h2.later { margin: 56px 0 16px; }
.team-grid h2.later { margin: 40px 0 16px; }
.rank-list { display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 14px; }
.rank-row .label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-weight: 600; }
.bar-track { height: 10px; background: var(--paper-2); }
.bar-fill { height: 10px; background: var(--saffron); }
.rank-row .pct { text-align: right; color: var(--muted); }
.writeins { list-style: none; display: grid; gap: 4px; }
.writeins li { font-size: 14px; line-height: 1.5; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--text); }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.scroll-x { overflow-x: auto; }
.table.wide { min-width: 820px; }
.table .right { text-align: right; }
.table .nowrap { white-space: nowrap; }
.table .small { font-size: 13px; }
.tag { display: inline-flex; font-size: 12px; padding: 3px 8px; }
.tag.sup-a { background: var(--saffron); color: var(--white); }
.tag.sup-b { background: rgba(229, 115, 28, .18); color: var(--saffron-deep); }
.tag.sup-c, .tag.sup-u { background: var(--paper-2); color: var(--muted); }
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } }

/* ── footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--on-ink-muted); }
.footer .inner { padding-block: 36px; display: flex; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; font-size: 13.5px; line-height: 1.5; }
.footer .note { max-width: 62ch; }
.footer .note + .note { margin-top: 6px; }
.footer .powered { margin-top: 14px; font-size: 12.5px; opacity: .85; }
.footer a { color: var(--on-ink); }

/* ── survey and team additions (19 Sep) ───────────────────────────────── */
.hero-note { margin-top: 18px; font-size: 14px; color: var(--on-ink-muted); }
.hero-note a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.pick-go {
  margin-top: 14px; font-size: 14px; font-weight: 600; cursor: pointer; padding: 7px 12px;
  border: 1px solid var(--rule); background: var(--white); color: var(--text);
}
.pick-go::before { content: "+"; margin-right: 6px; color: var(--saffron-deep); font-weight: 700; }
.pick-go:hover { border-color: var(--saffron); }
.pick-go.on { border-color: var(--saffron); background: var(--saffron); color: var(--white); }
.pick-go.on::before { content: "\2713"; color: var(--white); }
.meta-row { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.meta-row li { font-size: 14px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--rule); background: var(--white); }
.step-of { display: block; font-size: 13px; font-weight: 600; color: var(--saffron-deep); margin-bottom: 4px; }
.opt { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 10px; }
.why { margin-top: 48px; padding: 24px; background: var(--paper-2); max-width: 640px; }
.why .rh { margin-bottom: 8px; }
.why p:last-child { font-size: 16px; line-height: 1.5; }
.share-box { margin-top: 40px; padding: 24px; background: var(--white); border-top: 3px solid var(--saffron); max-width: 640px; }
.share-box .rh { margin-bottom: 8px; }
.share-box .title { font-size: 18px; font-weight: 600; margin-bottom: 16px; line-height: 1.3; }
.thanks-next { margin-top: 40px; font-size: 16px; color: var(--muted); }
.thanks-grid { margin-top: 16px; }
.serve-group { margin-top: 28px; }
.serve-group h3 { font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.serve-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pick.serve { padding-top: 12px; padding-bottom: 12px; }
.pick.serve .pick-title { font-size: 16px; margin-bottom: 2px; }
.pick.serve .pick-box { top: 15px; }
.record-list dd .src { font-size: 12px; margin-left: 8px; }
.record-note { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 64ch; }
.served-h { font-size: 19px; margin: 32px 0 8px; }
.served { font-size: 16px; line-height: 1.5; max-width: 64ch; }
.ctabar { display: none; }
@media (max-width: 720px) {
  .ctabar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); background: var(--ink); }
  .ctabar:empty, .ctabar.hidden { display: none; }
  .bar-link { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; background: var(--saffron); color: var(--white); text-decoration: none; padding: 8px 16px; }
  .bar-link:hover { text-decoration: none; }
  .bar-main { font-weight: 700; font-size: 16px; line-height: 1.2; }
  .bar-sub { font-size: 12px; opacity: .9; }
  body:has(.ctabar:not(:empty)) .footer { padding-bottom: 76px; }
  /* The voice-assistant launcher (ElevenLabs widget, a fixed full-viewport host) sits above the bottom bar while the bar is showing. */
  body:has(.ctabar:not(:empty):not(.hidden)) elevenlabs-convai { height: calc(100% - 74px) !important; }
}

/* ── submissions and dashboard (API) ─────────────────────────────────── */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.queued-note { font-size: 14px; color: var(--muted); max-width: 56ch; margin-top: 12px; }
.btn-x { font-size: 13px; padding: 4px 8px; white-space: nowrap; }
.team-grid.later { margin-top: 56px; }
