/* eCounty public pages (ecounty.us and <county>-<state>.ecounty.us) */
:root {
  --bg: #f6f4ef; --card: #ffffff; --ink: #1d2b36; --muted: #5d6b76; --line: #e2ddd2;
  --accent: #2a5f8f; --accent-ink: #ffffff; --soft: #e8eef4; --ok: #2f7a4f; --warn: #a3620a;
  --radius: 12px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #12181d; --card: #1a2229; --ink: #e7ecef; --muted: #9aa7b1; --line: #2b353e; --accent: #6aa5d8; --accent-ink: #0d1418; --soft: #1f2c37; --ok: #6cc28f; --warn: #e2a74b; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #12181d; --card: #1a2229; --ink: #e7ecef; --muted: #9aa7b1; --line: #2b353e; --accent: #6aa5d8; --accent-ink: #0d1418; --soft: #1f2c37; --ok: #6cc28f; --warn: #e2a74b; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); background: var(--card); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: .2px; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand b { color: var(--accent); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 0 0 8px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0; max-width: 640px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h2 { font-size: 19px; margin: 0 0 10px; }
section { margin: 0 0 28px; }
section > h2 { font-size: 22px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.k { color: var(--muted); font-size: 14px; }
.pill { display: inline-block; font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); }
.next { border-left: 4px solid var(--accent); }
.next .date { font-size: 24px; font-weight: 700; }
ol.agenda { margin: 8px 0 0; padding-left: 22px; }
ol.agenda li { margin: 2px 0; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
details summary { cursor: pointer; font-weight: 600; }
.minutes { white-space: pre-wrap; margin: 10px 0 0; font-size: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.table { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 10px; }
.contact b { display: block; }
.contact a { text-decoration: none; }
footer { border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); padding: 6px 0; }
@media (max-width: 600px) { .hero { padding: 26px 0 16px; } .hide-sm { display: none; } }
/* eTribe (<tribe>.ecounty.us): the tribe page and its maps */
.contact .phone { display: block; font-size: 26px; font-weight: 700; margin: 4px 0 6px; text-decoration: none; }
.stat { font-size: 15px; margin: 0 0 8px; } .stat b { font-size: 24px; display: block; line-height: 1.2; }
ul.cats { list-style: none; margin: 4px 0 8px; padding: 0; font-size: 14px; }
ul.cats li { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
ul.cats i { width: 14px; height: 14px; border-radius: 3px; flex: none; display: inline-block; opacity: .8; }
ul.cats i.line { background: none; border: 3px solid; border-radius: 2px; width: 10px; height: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; } a.pill { text-decoration: none; color: var(--accent); }
.wrap.wide { max-width: none; }
body.mapbody { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.mapwrap { flex: 1; display: flex; min-height: 0; }
#map { flex: 1; min-width: 0; background: #dfe6e9; }
.panel { width: 340px; flex: none; overflow-y: auto; background: var(--card); border-left: 1px solid var(--line); padding: 14px 16px 24px; }
.panel h1 { font-size: 20px; margin: 0 0 6px; } .panel h2 { font-size: 15px; margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
table.mini { font-size: 13.5px; margin: 6px 0 10px; } table.mini th, table.mini td { padding: 4px 4px; } table.mini .n { text-align: right; white-space: nowrap; }
.dl { margin: 0 0 12px; } .dl .btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.dl .btn, .panel button.btn { font: inherit; font-size: 13.5px; padding: 6px 12px; cursor: pointer; }
.pop table { font-size: 13px; margin-top: 4px; } .pop th { text-transform: none; letter-spacing: 0; padding: 2px 8px 2px 0; font-size: 12px; } .pop td { padding: 2px 0; border: 0; } .pop th { border: 0; }
.town span { font: 600 12px system-ui, sans-serif; color: #1d2b36; background: rgba(255,255,255,.8); padding: 1px 5px; border-radius: 4px; white-space: nowrap; position: relative; left: -50%; }
.leaflet-container { font: 14px system-ui, sans-serif; }
@media (max-width: 760px) {
  .mapwrap { flex-direction: column; } #map { flex: 1 1 60%; }
  .panel { width: auto; flex: 0 0 40%; border-left: 0; border-top: 1px solid var(--line); }
}
