/* ExposeSanAngelo.com — Move Weight Foundation
   San Angelo, Texas chapter theme */

:root {
  --bg:      #0c0f14;
  --bg2:     #131822;
  --bg3:     #1b2130;
  --bg4:     #232b3d;
  --border:  #2c3547;
  --border2: #3a4761;
  --text:    #eef2f8;
  --text2:   #a8b3c7;
  --text3:   #6f7d95;
  --accent:  #e03131;
  --accent2: #ff6b6b;
  --gold:    #f0a020;
  --green:   #02a95c;
  --blue:    #4c8dff;
  --water:   #22b8cf;
  --radius:  10px;
  --maxw:    1180px;
  --mono:    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { margin: 0 0 1em; }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* ── SKIP LINK ─────────────────────────────────────────── */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ── TOP BAR ───────────────────────────────────────────── */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: baseline; gap: 2px;
  font-weight: 900; font-size: 1.12rem; letter-spacing: -.03em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .lo-1 { color: var(--accent); }
.logo .lo-2 { color: var(--text); }
.logo .lo-tld { color: var(--text3); font-weight: 700; font-size: .8em; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a {
  color: var(--text2); font-size: .855rem; font-weight: 600;
  padding: 7px 11px; border-radius: 7px; white-space: nowrap;
}
.nav a:hover { background: var(--bg3); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--bg4); color: var(--text); }
.nav a.nav-cta {
  background: var(--accent); color: #fff; font-weight: 800;
}
.nav a.nav-cta:hover { background: #c62828; color: #fff; }

.navtoggle {
  margin-left: auto; background: var(--bg3); color: var(--text);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 7px 12px; font-size: .9rem; font-weight: 700; cursor: pointer;
  display: none;
}
@media (max-width: 900px) {
  .navtoggle { display: block; }
  .nav {
    display: none; width: 100%; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding-top: 10px; border-top: 1px solid var(--border); margin-top: 8px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
}

/* ── DONATE BANNER ─────────────────────────────────────── */
.donate-banner {
  background: linear-gradient(135deg, #02a95c, #018a4a);
  color: #fff; text-align: center; padding: 13px 16px;
  font-size: .88rem; font-weight: 700;
  border-bottom: 1px solid #016b38;
}
.donate-banner a { color: #fff; text-decoration: underline; font-weight: 800; }
.donate-banner a:hover { color: #c8ffdf; }
.donate-banner .sep { opacity: .55; margin: 0 6px; }
@media (max-width: 640px) { .donate-banner .hide-sm { display: none; } }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  padding: 54px 0 44px;
  background:
    radial-gradient(900px 380px at 18% -8%, rgba(224,49,49,.16), transparent 62%),
    radial-gradient(720px 340px at 88% 4%, rgba(34,184,207,.11), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .73rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent2);
  background: rgba(224,49,49,.11); border: 1px solid rgba(224,49,49,.32);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hero p.lede { font-size: 1.1rem; color: var(--text2); max-width: 68ch; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 19px; border-radius: 8px;
  font-weight: 700; font-size: .92rem; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red    { background: var(--accent); color: #fff; }
.btn-red:hover { background: #c62828; color: #fff; }
.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover { background: #018a4a; color: #fff; }
.btn-ghost  { background: transparent; color: var(--text); border-color: var(--border2); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ── SECTIONS ──────────────────────────────────────────── */
section { padding: 46px 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: 26px; }
.section-head p { color: var(--text2); max-width: 72ch; margin: 0; }

/* ── STAT STRIP ────────────────────────────────────────── */
.stats {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stat {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.stat .n {
  font-size: 1.75rem; font-weight: 900; letter-spacing: -.03em;
  font-family: var(--mono); line-height: 1.1;
}
.stat .l { font-size: .78rem; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 5px; }
.stat .src { font-size: .72rem; margin-top: 8px; }
.stat.red .n    { color: var(--accent2); }
.stat.gold .n   { color: var(--gold); }
.stat.water .n  { color: var(--water); }
.stat.green .n  { color: #3ddc8a; }
.stat.blue .n   { color: var(--blue); }

/* ── CARDS ─────────────────────────────────────────────── */
.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--border2); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text2); font-size: .93rem; flex: 1; }
.card .card-ico { font-size: 1.5rem; margin-bottom: 10px; }
.card .card-link { font-weight: 700; font-size: .9rem; margin-top: 6px; }

/* ── TIMELINE ──────────────────────────────────────────── */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline > li { position: relative; padding: 0 0 26px 34px; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg3); border: 3px solid var(--border2);
}
.timeline > li.hit::before  { border-color: var(--accent); background: var(--accent); }
.timeline > li.warn::before { border-color: var(--gold); background: var(--gold); }
.timeline .tl-date {
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  color: var(--text3); text-transform: uppercase; letter-spacing: .05em;
}
.timeline .tl-title { font-weight: 800; font-size: 1.03rem; margin: 3px 0 5px; }
.timeline .tl-body { color: var(--text2); font-size: .93rem; }
.timeline .tl-body p:last-child { margin-bottom: 0; }

/* ── VOTE PILL ─────────────────────────────────────────── */
.vote {
  display: inline-block; font-family: var(--mono); font-weight: 800;
  font-size: .76rem; padding: 2px 9px; border-radius: 20px;
  background: var(--bg4); border: 1px solid var(--border2);
  color: var(--text2); margin-left: 8px; vertical-align: 2px;
}
.vote.split { background: rgba(240,160,32,.14); border-color: rgba(240,160,32,.45); color: var(--gold); }

/* ── CALLOUTS ──────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--border2);
  background: var(--bg2); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.red   { border-left-color: var(--accent); background: rgba(224,49,49,.07); }
.callout.gold  { border-left-color: var(--gold);   background: rgba(240,160,32,.07); }
.callout.water { border-left-color: var(--water);  background: rgba(34,184,207,.07); }
.callout .co-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text3); display: block; margin-bottom: 5px;
}

blockquote {
  margin: 20px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-size: 1.06rem; color: var(--text);
}
blockquote cite { display: block; font-size: .85rem; color: var(--text3); font-style: normal; margin-top: 8px; }

/* ── SOURCE LINKS ──────────────────────────────────────── */
.src, .sources { font-size: .8rem; color: var(--text3); }
.src a, .sources a { color: var(--text2); border-bottom: 1px dotted var(--text3); text-decoration: none; }
.src a:hover, .sources a:hover { color: var(--accent2); border-bottom-color: var(--accent2); text-decoration: none; }
.sources { margin-top: 10px; }
.sources ul { margin: 6px 0 0; padding-left: 20px; }
.sources li { margin-bottom: 4px; }

/* ── TABLES ────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 540px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  background: var(--bg3); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text2); font-weight: 800; white-space: nowrap;
}
tbody tr:hover { background: var(--bg2); }
td.num { font-family: var(--mono); white-space: nowrap; }
td.up   { color: var(--accent2); font-family: var(--mono); white-space: nowrap; }
td.down { color: #3ddc8a; font-family: var(--mono); white-space: nowrap; }

/* ── FORMS ─────────────────────────────────────────────── */
.form-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.field { margin-bottom: 17px; }
.field label {
  display: block; font-size: .84rem; font-weight: 700;
  margin-bottom: 6px; color: var(--text);
}
.field .hint { font-size: .79rem; color: var(--text3); font-weight: 400; margin-top: 4px; }
.field .req { color: var(--accent2); }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 11px 13px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border2); border-radius: 8px;
  font-family: inherit; font-size: .94rem;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,49,49,.16);
}
select { cursor: pointer; }
.checkrow { display: flex; gap: 10px; align-items: flex-start; font-size: .89rem; color: var(--text2); }
.checkrow input { margin-top: 4px; flex-shrink: 0; }
.inline-form { display: flex; gap: 9px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 210px; }

.formmsg { padding: 13px 16px; border-radius: 8px; font-size: .9rem; font-weight: 600; margin-top: 16px; display: none; }
.formmsg.show { display: block; }
.formmsg.ok   { background: rgba(2,169,92,.13);  border: 1px solid rgba(2,169,92,.42);  color: #4ade9a; }
.formmsg.err  { background: rgba(224,49,49,.11); border: 1px solid rgba(224,49,49,.42); color: var(--accent2); }
.formmsg a { color: inherit; font-weight: 800; text-decoration: underline; }

/* ── BADGE ─────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 20px;
  background: var(--bg4); border: 1px solid var(--border2); color: var(--text2);
}
.badge.email  { background: rgba(76,141,255,.14); border-color: rgba(76,141,255,.42); color: var(--blue); }
.badge.portal { background: rgba(240,160,32,.14); border-color: rgba(240,160,32,.42); color: var(--gold); }
.badge.mail   { background: rgba(224,49,49,.12);  border-color: rgba(224,49,49,.42);  color: var(--accent2); }
.badge.open   { background: rgba(2,169,92,.14);   border-color: rgba(2,169,92,.42);   color: #3ddc8a; }

/* ── NEWS LIST ─────────────────────────────────────────── */
.newslist { list-style: none; padding: 0; margin: 0; }
.newslist li {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
}
.newslist .nl-date { font-family: var(--mono); font-size: .78rem; color: var(--text3); white-space: nowrap; min-width: 84px; }
.newslist .nl-title { flex: 1; min-width: 240px; font-weight: 600; }
.newslist .nl-outlet { font-size: .76rem; color: var(--text3); white-space: nowrap; }

/* ── OUTLET GRID ───────────────────────────────────────── */
.outlets { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.outlet {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.outlet h3 { font-size: 1.05rem; margin-bottom: 2px; }
.outlet .o-meta { font-size: .78rem; color: var(--text3); margin-bottom: 10px; }
.outlet p { font-size: .88rem; color: var(--text2); margin-bottom: 10px; }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 40px 0 26px; margin-top: 20px; font-size: .88rem;
}
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-col h4 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text3); margin-bottom: 11px;
}
.foot-col a { display: block; color: var(--text2); padding: 3px 0; font-size: .88rem; }
.foot-col a:hover { color: var(--accent2); }
.foot-bottom {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--text3); font-size: .8rem;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.foot-bottom a { color: var(--text2); }

/* ── UTIL ──────────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.muted { color: var(--text2); }
.dim { color: var(--text3); }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.nowrap { white-space: nowrap; }
.grid2 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }

@media print {
  .topbar, .donate-banner, footer, .hero-btns, .navtoggle { display: none; }
  body { background: #fff; color: #000; }
}
