/* Talking on Gia (the owner's pick of mock-social; docs/accounts.md, "Talking on Gia"): I voted (js/voted.js), Home's
   election night banner, today's question and your districts (js/social.js), a thread's page (js/thread.js) and the
   questions for an official on a person page (js/questions.js). Posts' own parts (polls, quotes) are in css/posts.css. */

/* ---------- I voted ---------- */
.vt-box { display: grid; justify-items: center; gap: 8px; margin: 16px 0 0; padding: 16px; border-radius: 20px; background: #f7f5ff; color: #150e5e; text-align: center; }
.vt-box[hidden] { display: none; }
.vt-go { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border: 0; border-radius: 999px; background: #21167c; color: #fff; font: 800 17px var(--font-read, system-ui); cursor: pointer; box-shadow: 0 8px 20px rgba(33, 22, 124, .25); }
.vt-go span { font-size: 22px; }
.vt-go:hover { background: #3424b8; }
.vt-go[hidden], .vt-after[hidden], .vt-note[hidden] { display: none; }
.vt-note { color: #6b6890; font-size: 12.5px; }
.vt-after { display: grid; justify-items: center; gap: 10px; }
/* (the sticker's three looks, the owner's pick of mock-after-election; js/voted.js draws the same for 📤 Share) */
.vt-sticker { display: grid; justify-items: center; align-content: center; gap: 0; width: 150px; height: 150px; border-radius: 50%; color: #fff; transition: background .3s, color .3s;
  background: radial-gradient(circle at 30% 25%, #ffffff55, transparent 40%), linear-gradient(140deg, #1b2bd6, #8a3fd6 50%, #e3375f); box-shadow: 0 0 0 6px #fff, 0 0 0 8px #d9d3fb, 0 14px 30px rgba(21, 14, 94, .3); }
.vt-sticker[data-st="classic"] { background: #fff; color: #b3141c; box-shadow: inset 0 0 0 8px #0b2a8f, inset 0 0 0 11px #fff, inset 0 0 0 14px #b3141c, 0 14px 30px rgba(21, 14, 94, .25); }
.vt-sticker[data-st="star"] { background: conic-gradient(from -90deg, #0b2a8f 0 50%, #b3141c 50% 100%); box-shadow: 0 0 0 6px #fff, 0 14px 30px rgba(21, 14, 94, .3); }
.vt-box .vt-sticker[data-st="star"] span.vt-st-ico { font-size: 0; }   /* (over the compact card's size too) */
.vt-sticker[data-st="star"] .vt-st-ico::before { content: '★'; display: block; font-size: 30px; line-height: 1.1; }
.vt-sticker.is-new { animation: vt-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes vt-pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vt-sticker.is-new { animation: none; } }
.vt-sticker span { font-size: 30px; line-height: 1.1; }
.vt-sticker b { font-size: 26px; line-height: 1.05; }
.vt-sticker small { padding: 0 14px; font-size: 11px; font-weight: 700; opacity: .9; }
.vt-sticker em { margin-top: 2px; font-style: normal; font-size: 10px; font-weight: 800; opacity: .75; }
.vt-looks { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: #e9e5fd; }
.vt-looks button { padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: #3d3a6b; font: 700 13px var(--font-read, system-ui); cursor: pointer; }
.vt-looks button[aria-pressed="true"] { background: #fff; color: #150e5e; box-shadow: 0 1px 4px rgba(21, 14, 94, .15); }
.vt-count { margin: 0; color: #3d3a6b; font-size: 14px; }
.vt-count[hidden] { display: none; }
.vt-count b { color: #150e5e; font-size: 17px; }
.vt-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.vt-btn { padding: 8px 14px; border: 0; border-radius: 12px; background: #d3cdfb; color: #150e5e; font: 800 13.5px var(--font-read, system-ui); cursor: pointer; }
.vt-btn.is-go { background: #21167c; color: #fff; }
.vt-btn:disabled { background: #e3f5ec; color: #0a7d4f; cursor: default; }
.vt-undo { border: 0; background: none; color: #6b6890; font: 600 12px var(--font-read, system-ui); text-decoration: underline; cursor: pointer; }
/* (on Home's violet countdown card) */
.vt-box.is-compact { position: relative; z-index: 2; margin-top: 12px; padding: 12px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); color: #fff; }
.vt-box.is-compact .vt-go { padding: 9px 20px; background: #fff; color: #150e5e; font-size: 15px; box-shadow: none; }
.vt-box.is-compact .vt-note, .vt-box.is-compact .vt-undo { color: rgba(255, 255, 255, .8); }
.vt-box.is-compact .vt-sticker { width: 120px; height: 120px; }
.vt-box.is-compact .vt-sticker span { font-size: 24px; }
.vt-box.is-compact .vt-sticker[data-st="star"] .vt-st-ico::before { font-size: 24px; }
.vt-box.is-compact .vt-sticker b { font-size: 20px; }
.vt-box.is-compact .vt-sticker small { padding: 0 10px; font-size: 10px; }
.vt-box.is-compact .vt-looks { background: rgba(255, 255, 255, .16); }
.vt-box.is-compact .vt-looks button { color: #fff; }
.vt-box.is-compact .vt-looks button[aria-pressed="true"] { background: #fff; color: #150e5e; }
.vt-box.is-compact .vt-count { color: #ddd8ff; }
.vt-box.is-compact .vt-count b { color: #fff; }
.vt-box.is-compact .vt-btn { background: rgba(255, 255, 255, .9); }
.vt-box.is-compact .vt-btn.is-go { background: #fff; color: #150e5e; }

/* ---------- Home: election night, today's question, your districts ---------- */
.so-night { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 14px 18px; border-radius: 22px; color: #fff; text-decoration: none;
  background: radial-gradient(120% 140% at 100% 0%, #8d5be0, #4b33c9 45%, #150e5e); box-shadow: 0 12px 30px rgba(21, 14, 94, .28); }
.so-night b { display: block; font-size: 17px; }
.so-night small { color: rgba(255, 255, 255, .85); font-size: 13px; }
.so-live, .th-live { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #e0434b; color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.so-live i, .th-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: so-blink 1.2s infinite; }
@keyframes so-blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .so-live i, .th-live i { animation: none; } }
.so-q { margin: 0 0 14px; padding: 16px 18px; border-radius: 22px; background: linear-gradient(160deg, #fff, #f6f2ff); box-shadow: var(--card-shadow, 0 6px 18px rgba(38, 27, 143, .08)); color: #150e5e; scroll-margin-top: 80px; }
.so-q-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.so-q-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 14px; background: #21167c; font-size: 19px; }
.so-q-head small { display: block; color: #6b6890; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.so-q-head b { display: block; margin-top: 2px; font-size: 17px; line-height: 1.3; }
.so-q-opts { display: grid; gap: 6px; }
.so-q-opt { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border: 0; border-radius: 12px;
  background: #fff; box-shadow: inset 0 0 0 2px #e3dffa; color: #150e5e; font: 700 14.5px var(--font-read, system-ui); text-align: left; cursor: pointer; }
.so-q-opt:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #a98bff; }
.so-q-opt:disabled { cursor: default; }
.so-q-opt::before { content: ''; position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--w, 0%); background: #efedfd; transition: width .5s ease; }
.so-q-opt.is-mine { box-shadow: inset 0 0 0 2px #4232d4; }
.so-q-opt.is-mine::before { background: #e2dbff; }
.so-q-opt em { font-style: normal; color: #4a4675; }
.so-q-n { margin: 8px 0 0; color: #6b6890; font-size: 12.5px; }
.so-q-why { margin-top: 6px; padding: 0; border: 0; background: none; color: #4232d4; font: 700 14px var(--font-read, system-ui); cursor: pointer; }
.so-q-about { margin: 8px 0 0; color: #6b6890; font-size: 12.5px; }
.so-q-about a { color: #4232d4; font-weight: 700; }
.so-q-talk { margin-top: 10px; }
.so-q-talk[hidden] { display: none; }
.so-dist-sub, .so-dist-none { margin: 4px 0 10px; color: #4a4675; font-size: 13.5px; line-height: 1.4; }
.so-dist-none a { color: #4232d4; font-weight: 700; }
.so-dist-list { display: grid; gap: 6px; }
.so-dist-a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #f7f5ff; color: #150e5e; font-size: 14px; font-weight: 700; text-decoration: none; }
.so-dist-a:hover { background: #efedfd; }
.so-dist-a i { font-style: normal; color: #4232d4; }

/* ---------- a thread's page ---------- */
.th-main { width: min(100% - 32px, 760px); margin: 24px auto 60px; color: #150e5e; }
.th-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 18px 20px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #8d5be0, #4b33c9 45%, #150e5e); }
.th-head h1 { margin: 0; font-size: 22px; color: #fff; }
.th-head p { grid-column: 1 / -1; margin: 4px 0 0; color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.45; }
.th-pin { font-size: 24px; }
.th-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0 0; padding-bottom: 4px; }
.th-tabs a { flex: none; padding: 7px 12px; border-radius: 999px; background: #efedfd; color: #150e5e; font-size: 13px; font-weight: 700; text-decoration: none; }
.th-tabs a.is-on { background: #21167c; color: #fff; }
.th-body { display: grid; gap: 14px; margin-top: 14px; }
.th-results { padding: 14px 18px; border-radius: 20px; background: #fff; box-shadow: var(--card-shadow, 0 6px 18px rgba(38, 27, 143, .08)); }
.th-res-h { margin: 0 0 6px; color: #6b6890; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.th-race { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid #f0eefb; font-size: 14px; }
.th-race small { color: #6b6890; font-size: 12.5px; }
.th-split { display: block; height: 8px; border-radius: 999px; background: #f0b4f1; overflow: hidden; }
.th-split i { display: block; height: 100%; background: #967dfc; }
.th-link { display: inline-block; margin-top: 8px; color: #4232d4; font-weight: 700; font-size: 14px; text-decoration: none; }
.th-wait, .th-empty, .th-cant { margin: 0; padding: 14px 16px; border-radius: 16px; background: #f7f5ff; color: #4a4675; font-size: 14px; }
.th-cant a { color: #4232d4; font-weight: 700; }
.th-join { margin-left: 4px; padding: 6px 12px; border: 0; border-radius: 999px; background: #21167c; color: #fff; font: 800 13px var(--font-read, system-ui); cursor: pointer; }
.th-feed { display: grid; gap: 12px; }
.th-new { position: sticky; top: 70px; z-index: 5; justify-self: center; padding: 7px 14px; border: 0; border-radius: 999px; background: #21167c; color: #fff; font: 800 13px var(--font-read, system-ui); cursor: pointer; box-shadow: 0 8px 20px rgba(33, 22, 124, .3); }
.th-new[hidden] { display: none; }
.th-list { display: grid; gap: 12px; }

/* ---------- questions for an official (person pages) ---------- */
.person-ask[hidden] { display: none; }
.qa-head h2 { margin: 0; font-size: 20px; }
.qa-sub { margin: 4px 0 10px; color: #6b6890; font-size: 13.5px; }
.qa-list { display: grid; }
.qa-q { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid #f0eefb; }
.qa-q.is-held { opacity: .8; }
.qa-q p { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.qa-q small { display: block; margin-top: 3px; color: #6b6890; font-size: 12px; font-weight: 500; }
.qa-up { display: grid; justify-items: center; padding: 6px 0; border: 0; border-radius: 12px; background: #efedfd; color: #150e5e; font: 800 12px var(--font-read, system-ui); cursor: pointer; }
.qa-up b { font-size: 15px; }
.qa-up[aria-pressed="true"] { background: #21167c; color: #fff; }
.qa-up:disabled { cursor: default; opacity: .7; }
.qa-acts { margin-left: 4px; }
.qa-x { margin-left: 6px; padding: 0 4px; border: 0; background: none; color: #6b6890; font: 600 12px var(--font-read, system-ui); cursor: pointer; }
.qa-none { margin: 4px 0; color: #6b6890; font-size: 14px; }
.qa-more { margin: 6px 0 0; padding: 0; border: 0; background: none; color: #4232d4; font: 700 14px var(--font-read, system-ui); cursor: pointer; }
.qa-more[hidden] { display: none; }
.qa-note { margin: 10px 0; padding: 8px 12px; border-radius: 12px; background: #fff8e6; color: #5a4300; font-size: 13px; }
.qa-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: end; }
.qa-ask textarea { padding: 10px 12px; border: 0; border-radius: 14px; background: #efedfd; color: #150e5e; font: 500 14.5px/1.4 var(--font-read, system-ui); resize: vertical; }
.qa-go { padding: 10px 18px; border: 0; border-radius: 14px; background: #21167c; color: #fff; font: 800 14px var(--font-read, system-ui); cursor: pointer; }
.qa-go:disabled { opacity: .6; }
.qa-msg { grid-column: 1 / -1; color: #6b6890; font-size: 12.5px; }
