/* EDITED IN PLACE (10/11, docs/GRADES-ON-PAGES.md: generators are retired for built pages). This file is no longer
   generated: mocks/src/townhall/make_css.py made its first build and now refuses to overwrite it without --force.
   Edit the rules here; tools/css_lint.py guards them (a rule two pages share goes in core.css). The note below is history. */
/* TG townhall.css: Town Hall page (merged direction). Part 1 is generated by
   mocks/src/townhall/make_css.py: the live TownTapestry Town Hall + Politics rules the merged pages use (tools/css_audit.py,
   @media wrappers kept), minus every rule core.css already has. Part 2 is this page's additions (additions.css). */
.vt-ava{width:52px;height:52px;border-radius:50%;overflow:hidden;flex:none;display:grid;place-items:center;background:var(--surface)}
.vt-ava.sm{width:32px;height:32px}
.vt-ava.ini{background:hsl(var(--vh) 30% 90%);color:hsl(var(--vh) 30% 32%);font-weight:700;font-size:17px}
.vt-ava.sm.ini{font-size:12px}
.vt-races{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}
.vt-race{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#fff;min-width:0}
.vt-rh{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:6px}
.vt-rh b{font-size:15px;letter-spacing:-.01em}
.vt-rh small{font-size:12px;color:var(--faint);white-space:nowrap}
.vt-cand{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(50px,1fr) 52px;gap:10px;align-items:center;padding:5px 0;font-size:13.5px}
.vt-cn{display:flex;flex-direction:column;min-width:0}
.vt-cn b{font-weight:600;overflow-wrap:anywhere}
.vt-cand.top .vt-cn b{font-weight:700}
.vt-cn em{font-style:normal;font-size:12px;color:var(--muted)}
.vt-bt{height:12px;background:#eef1f4;border-radius:4px;overflow:hidden}
.vt-bt i{display:block;height:100%;border-radius:0 4px 4px 0}
.vt-pct{text-align:right;font-weight:600}
.vt-ctx{font-size:12.5px;color:var(--muted);margin:6px 0 0;border-top:1px solid var(--hair);padding-top:8px}
@media (max-width:640px){
  .vt-races{grid-template-columns:1fr}
  }
.hall-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px;align-items:center;border-radius:18px;padding:32px;background:radial-gradient(circle at 0 100%,color-mix(in srgb,var(--accent) 30%,transparent),transparent 42%),var(--night);border:1px solid var(--line);overflow:hidden}
.hall-hero.has-photo{background:var(--night)}
.hall-hin{position:relative;z-index:1;max-width:620px}
.hall-hero.has-photo .hall-hin{background:linear-gradient(90deg,var(--night) 70%,rgba(18,26,38,0));margin:-32px 0 -32px -32px;padding:32px 56px 32px 32px}
.hall-hero h1{font-size:44px;letter-spacing:-.04em;line-height:1.02;margin-top:6px}
.hall-hin > p{color:var(--ink-2);margin:10px 0 0;font-size:16px}
.hall-day{position:relative;z-index:1;width:230px;background:#fff;border-radius:18px;padding:18px;text-align:center;box-shadow:0 18px 40px rgba(15,22,35,.16),0 2px 6px rgba(15,22,35,.08)}
.hall-cal{width:110px;margin:10px auto 8px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#fff}
.hall-cal b{display:block;background:var(--accent);color:#fff;font-size:13px;letter-spacing:.14em;text-transform:uppercase;padding:5px 0}
.hall-cal i{display:block;font-style:normal;font-size:46px;font-weight:800;letter-spacing:-.04em;line-height:1.15;padding-top:4px}
.hall-cal small{display:block;font-size:12px;color:var(--muted);padding-bottom:8px}
.hall-cd{margin:0;font-size:17px;font-weight:700;letter-spacing:-.01em}
.hall-rule{margin:4px 0 0;font-size:12.5px;color:var(--muted);line-height:1.4}
.hall-day .link{display:inline-block;margin-top:8px;font-size:13px}
.hall-mts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.hall-mt{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;border:1px solid var(--line);border-radius:var(--r);padding:12px}
.hall-mt.past{background:var(--surface);border-color:transparent}
.hall-md{text-align:center;border-radius:10px;background:var(--accent-tint);padding:6px 0;align-self:start}
.hall-mt.past .hall-md{background:#fff}
.hall-md b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--accent-ink)}
.hall-md i{display:block;font-style:normal;font-size:22px;font-weight:700;line-height:1.1}
.hall-mm b{display:block;font-size:15px}
.hall-mm small{display:block;font-size:13px;color:var(--muted)}
.hall-ml{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px}
.hall-ml a{font-size:13px;font-weight:600;color:var(--accent-ink)}
.hall-ml a:hover{text-decoration:underline}
.hall-tmd{border-radius:14px;background:var(--night);color:#fff;padding:16px}
.hall-tmd .kick{color:var(--accent-soft)}
.hall-tmd .hz-then-d{color:#fff}
.hall-tmd p{margin:6px 0 0;font-size:14px;color:#d5dbe3;line-height:1.45}
.hall-tmd p.muted{color:#9aa4b2}
.hall-tmd .btn{margin-top:12px;background:var(--accent);border-color:var(--accent);color:#fff}
.hall-tmd .btn:hover{background:var(--accent-ink);border-color:var(--accent-ink)}
.hall-rcpt{position:relative;background:#fffdf7;border:1px solid #ece6d6;border-bottom:0;border-radius:6px 6px 0 0;padding:22px 22px 26px;box-shadow:0 10px 30px rgba(15,22,35,.08);max-width:460px;width:100%;justify-self:center;font-variant-numeric:tabular-nums;-webkit-mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/16px 51% repeat-x,linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat;mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/16px 51% repeat-x,linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat}
.hall-rh{text-align:center;border-bottom:2px dashed #d9d2bf;padding-bottom:12px;margin-bottom:10px}
.hall-rh b{display:block;font-size:17px;letter-spacing:.18em}
.hall-rh span{font-size:12px;color:var(--muted)}
.hall-rl{display:flex;align-items:baseline;gap:8px;padding:6px 0}
.hall-rl span{font-size:14.5px;font-weight:600}
.hall-rl span small{display:block;font-size:11.5px;font-weight:400;color:var(--faint)}
.hall-rl i{flex:1;border-bottom:2px dotted #d9d2bf;transform:translateY(-4px);min-width:16px}
.hall-rl b{font-size:15px}
.hall-rt{display:flex;justify-content:space-between;align-items:baseline;border-top:2px dashed #d9d2bf;margin-top:8px;padding-top:12px}
.hall-rt span{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.hall-rt b{font-size:26px;letter-spacing:-.02em;color:var(--accent-ink)}
.hall-rf{margin-top:12px;text-align:center;font-size:12px;color:var(--muted);line-height:1.6}
.hall-ladder{list-style:none;margin:0;padding:0;position:relative;display:flex;flex-direction:column;gap:8px}
.hall-ladder::before{content:"";position:absolute;left:17px;top:18px;bottom:18px;width:2px;background:var(--line)}
.hall-ladder li{position:relative;display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:10px 14px 10px 0;background:#fff;margin-left:0}
.hall-lv{display:flex;gap:12px;align-items:center}
.hall-ln{width:36px;height:36px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:700;font-size:14px;margin-left:-1px;box-shadow:0 0 0 4px #fff}
.hall-lv b{display:block;font-size:15px}
.hall-lp{display:flex;flex-wrap:wrap;gap:6px}
.hall-chip{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;border:1px solid var(--line);border-radius:999px;padding:4px 11px;background:#fff}
a.hall-chip:hover{border-color:var(--accent);color:var(--accent-ink)}
.hall-chip i, .hall-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none}
.hall-c{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:var(--r);padding:12px;background:#fff;text-align:left;min-width:0}
.hall-c small{display:block;font-size:12px;color:var(--muted)}
.hall-c b{display:block;font-size:14.5px;overflow-wrap:anywhere}
a.hall-c:hover{border-color:var(--accent)}
@media (max-width:900px){
  .hall-hero{grid-template-columns:1fr;padding:22px}
  .hall-hero.has-photo .hall-hin{background:rgba(18,26,38,.88);margin:-22px -22px 0;padding:22px}
  .hall-day{justify-self:center}
  .hall-hero h1{font-size:32px}
  .hall-ladder li{grid-template-columns:1fr;gap:8px;padding:12px 14px 12px 0}
  .hall-lp{padding-left:48px}
}
@media (max-width:640px){
  .hall-hero h1{font-size:30px}
  .hall-day{width:100%;max-width:300px}
  .hall-rcpt{padding:18px 16px 24px}
  .hall-rl span{font-size:14px}
}

/* ---- Part 2: Town Hall additions (mocks/src/townhall/additions.css) ---- */
/* hero: the shared hb-hero background with the live two-column layout (text | next civic date) on the inner wrapper */
.hb-hero.hall-hero{display:block}
.hb-hero .th-in{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px;align-items:center;max-width:none}
.hb-hero.has-photo .th-in{background:none;margin:0;padding:0}
.hb-hero.has-art .th-in .hall-hin{background:linear-gradient(90deg,var(--bg) 70%,rgba(255,255,255,0));margin:-32px 0 -32px -32px;padding:32px 56px 32px 32px}
/* receipt: enterprises below the total, outside "your share" */
.th-rsep{margin:14px 0 4px;text-align:center;border-top:2px dashed #d9d2bf;padding-top:10px}
.th-rsep span{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.hall-rl.th-ent span{font-weight:500;color:var(--ink-2)}
.hall-rl.th-ent b{font-size:14px;color:var(--ink-2)}
/* compared with similar places: the group's middle half, median and the town */
.th-lead{margin:0 0 18px;color:var(--ink-2);line-height:1.6}
.th-pb{position:relative;height:16px;border-radius:8px;background:var(--surface);margin:30px 0 10px}
.th-pb-mid{position:absolute;top:0;bottom:0;border-radius:8px;background:var(--accent-soft)}
.th-pb-med{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:var(--ink-2)}
.th-pb-me{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px #fff}
.th-pb-me b{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);font-size:13px;white-space:nowrap;color:var(--accent-ink)}
.th-pb-key{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:var(--muted);margin-bottom:6px}
.th-pb-key i{display:inline-block;width:12px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.th-k-mid{background:var(--accent-soft)}
.th-k-med{width:2px !important;background:var(--ink-2)}
.th-k-me{border-radius:50% !important;width:10px !important;background:var(--accent)}
.th-why{margin-top:0}
.th-why p{margin:0 0 10px;color:var(--ink-2);line-height:1.6}
/* who's in charge: one term-dated name, or the official site */
.th-off{display:flex;gap:14px;align-items:flex-start;margin-top:0}
.th-off b{display:block;font-size:17px}
.th-off small{display:block;color:var(--muted);margin:2px 0 6px}
.th-av{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--accent-tint);color:var(--accent-ink);font-weight:700}
.th-av .ic{width:20px;height:20px}
.th-asof{display:block;width:100%;font-size:12px;color:var(--muted);margin-top:2px}
/* elections */
.th-el{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px;align-items:start}
.th-el .vt-races{margin-top:0}
.th-turn{margin-top:0}
.th-h4{margin:22px 0 8px;font-size:15px}
.th-tbl td,.th-tbl th{white-space:nowrap}
.th-tbl td:nth-child(3){white-space:normal}
.th-cty{margin-top:0}
.th-county{margin:0 0 6px;font-size:15.5px;line-height:1.6}
/* who represents you: NH base + floterial districts, address lookups */
.th-dist{width:100%;padding:4px 0}
.th-dist + .th-dist{border-top:1px solid var(--hair);margin-top:6px;padding-top:10px}
.th-dist > b{font-size:14px}
.th-dist > small{display:block;color:var(--muted);font-size:12.5px;margin:1px 0 6px}
.th-dist > div{display:flex;flex-wrap:wrap;gap:6px}
.th-look{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
/* a meeting listed on a holiday */
.th-flag{display:block;margin-top:3px;color:var(--bad);font-size:12.5px}
@media (max-width:900px){.hb-hero .th-in{grid-template-columns:1fr;gap:18px}.hb-hero.has-art .th-in .hall-hin{margin:0;padding:0;background:none}.th-el{grid-template-columns:1fr}}
@media (max-width:640px){.th-tbl td,.th-tbl th{white-space:normal}}
/* neighbors: the map and a four-column table side by side, stacked below 1100px */
.th-nb{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:20px;align-items:start}
.th-nb .lib-tbl td,.th-nb .lib-tbl th{padding-left:10px}
.th-talk{max-width:560px}
@media (max-width:1100px){.th-nb{grid-template-columns:1fr}}
/* bar rows: the value column grows for big-city figures ("167,354 + 30,033 pt", "$92.3 billion") instead of spilling */
.hz-two .cmp .brow{grid-template-columns:110px minmax(0,1fr) auto}
@media (max-width:640px){.hz-two .cmp .brow{grid-template-columns:84px minmax(40px,1fr) auto}}
/* 2024 election showcase: the live Politics race card with the same portrait (or initials) treatment for every candidate */
.th-show{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px;align-items:start}
.th-show .th-feat{margin:0}
.th-faces{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 0 6px}
.th-face{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:16px 12px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.th-face .vt-ava{width:96px;height:96px;margin-bottom:8px;box-shadow:0 0 0 3px #fff,0 0 0 4px var(--line)}
.th-face .vt-ava.th-ini{font-size:28px}
.th-face > b{font-size:16px}
.th-face > em{font-style:normal;font-size:12.5px;color:var(--muted)}
.th-fp{font-size:30px;font-weight:700;letter-spacing:-.02em;margin-top:6px}
.th-face > small{font-size:12.5px;color:var(--muted)}
.th-face .vt-bt{width:100%;margin-top:8px}
.vt-ava.th-ini{background:var(--surface);color:var(--ink-2)}
.th-ini-o{visibility:hidden}
.vt-cn.th-cn{flex-direction:row;align-items:center;gap:10px}
.th-cn > span:last-child{display:flex;flex-direction:column;min-width:0;text-align:left}
.th-most{margin:10px 0 0;font-size:14px;color:var(--ink-2)}
.th-races{margin-top:16px}
@media (max-width:900px){.th-show{grid-template-columns:1fr}}
@media (max-width:420px){.th-faces{gap:10px}.th-face{padding:12px 8px}.th-face .vt-ava{width:72px;height:72px}.th-fp{font-size:24px}}
