/* Public town pages (/town/<city>-<st>, /towns), rendered by the Worker (src/town.js). */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Public Sans", system-ui, sans-serif; color: #14213D; background: #EEF3EF; line-height: 1.5; }
a { color: #1F6F43; }
h1, h2 { font-family: "Newsreader", Georgia, serif; line-height: 1.15; }
.tw-wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.tw-top { background: #14284B; color: #fff; }
.tw-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.tw-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; }
.tw-brand img { border-radius: 50%; background: #fff; }
.tw-brand b { color: #8FD16F; }
.tw-top nav { display: flex; align-items: center; gap: 14px; }
.tw-top nav a { color: #fff; font-weight: 700; text-decoration: none; }
.tw-join, .tw-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: #2F8F4E; color: #fff !important; font-weight: 800; text-decoration: none; }
.tw-btn { min-height: 48px; padding: 0 26px; font-size: 17px; white-space: nowrap; }
.tw-main { padding-top: 22px; padding-bottom: 40px; }
.tw-crumbs { margin: 0 0 4px; font-size: 14px; color: #4B5A6E; }
.tw-crumbs a { color: inherit; }
.tw-main h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 8px; }
.tw-lead { font-size: 18px; color: #334155; margin: 0 0 20px; }
.tw-card { background: #fff; border-radius: 18px; padding: 22px 24px; margin: 0 0 16px; box-shadow: 0 1px 3px rgba(15,23,42,.08); border-top: 4px solid #2F8F4E; }
.tw-card h2 { margin: 0 0 12px; font-size: 26px; }
.tw-events, .tw-news, .tw-pages { list-style: none; margin: 0; padding: 0; }
.tw-events li, .tw-news li, .tw-pages li { padding: 10px 0; border-bottom: 1px solid #E6EDE8; }
.tw-events li:last-child, .tw-news li:last-child, .tw-pages li:last-child { border-bottom: 0; }
.tw-events li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; }
.tw-date { font-weight: 800; color: #1F6F43; font-size: 14.5px; }
.tw-what a, .tw-news a, .tw-pages a { font-weight: 700; color: #14213D; text-decoration: none; }
.tw-what a:hover, .tw-news a:hover, .tw-pages a:hover { text-decoration: underline; }
.tw-muted { display: block; color: #64748B; font-size: 14px; }
.tw-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 10px; }
.tw-stats div { background: #F4F8F5; border-radius: 12px; padding: 12px 14px; }
.tw-stats b { display: block; font-size: 22px; }
.tw-stats em { font-style: normal; font-size: 14px; }
.tw-stats em.up { color: #1F8A4C; } .tw-stats em.down { color: #B91C1C; }
.tw-stats span { font-size: 13.5px; color: #4B5A6E; }
.tw-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; margin: 22px 0; border-radius: 18px; color: #fff; background: linear-gradient(110deg, #14284B, #1F6F43); }
.tw-cta h2 { margin: 0 0 6px; font-size: 26px; }
.tw-cta p { margin: 0; opacity: .92; }
.tw-more p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tw-more a { padding: 6px 12px; border-radius: 999px; background: #EEF3EF; text-decoration: none; font-weight: 600; color: #14213D; }
.tw-more a:hover { background: #DDEBE1; }
.tw-foot { color: #4B5A6E; font-size: 13.5px; padding: 10px 0 30px; }
.tw-foot a { color: inherit; }
@media (max-width: 640px) {
  .tw-events li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tw-cta { flex-direction: column; align-items: flex-start; }
  .tw-top nav a:not(.tw-join) { display: none; }
}
.tw-pop { display: block; margin-top: 4px; font-size: 15px; color: #64748B; }
.tw-about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.tw-about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.tw-about h2 { margin-top: 0; }
.tw-about p { line-height: 1.6; }
@media (max-width: 640px) { .tw-about { grid-template-columns: minmax(0, 1fr); } }
