/* ============================================================
   Our Piedmont, shared stylesheet
   Preserves the original site's palette, typography, and cards.
   ============================================================ */
:root {
  --navy: #0b2a4a;
  --navy2: #0e3a66;
  --red: #b11b2a;
  --green: #5a7a52;
  --green2: #3f5a38;
  --cream: #f7f4ef;
  --ink: #132033;
  --muted: #5c6b7a;
  --card: #ffffff;
  --ring: rgba(11,42,74,.18);
  --shadow: 0 14px 40px rgba(12,24,40,.16);
  --radius: 18px;
  --max: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap {
  max-width: var(--max); margin: 0 auto;
  /* Keep content off the screen edges, and clear notches / rounded corners on
     phones using viewport-fit=cover. env() is 0 in portrait on most phones, so
     max() falls back to the 20px minimum there. */
  padding-left:  max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12,24,40,.08);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 750; letter-spacing: .2px;
  color: var(--navy);
  text-decoration: none;
}
.brand small {
  display: block; font-weight: 600; color: var(--muted); letter-spacing: 0;
  margin-top: 2px; font-size: 12px;
}
.flag {
  width: 34px; height: 22px; border-radius: 6px;
  overflow: hidden; border: 1px solid rgba(12,24,40,.14);
  box-shadow: 0 6px 16px rgba(12,24,40,.12);
  flex: 0 0 auto;
}
.nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
  align-items: center;
}
.nav a {
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(12,24,40,.10);
  background: #fff;
  white-space: nowrap;
}
.nav a:hover { border-color: rgba(12,24,40,.22); }
.nav a.navcta { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.nav a.navdonate { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(12,24,40,.08);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,42,74,.84) 0%, rgba(11,42,74,.70) 45%, rgba(11,42,74,.42) 100%),
    url("../images/greensboro_skyline.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 10% 30%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.hero .content { position: relative; color: #fff; padding-top: 54px; padding-bottom: 54px; width: 100%; }
/* compact hero variant for interior pages */
.hero.compact { min-height: 300px; }
.hero.compact::before {
  background:
    linear-gradient(90deg, rgba(11,42,74,.90) 0%, rgba(11,42,74,.78) 55%, rgba(11,42,74,.55) 100%),
    url("../images/greensboro_skyline.jpg");
  background-size: cover; background-position: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 650; font-size: 14px; letter-spacing: .2px;
}
.kicker .dot {
  width: 10px; height: 10px; border-radius: 99px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.55) 100%);
  box-shadow: 0 0 0 6px rgba(255,255,255,.12);
}
h1 { margin: 16px 0 12px; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -.6px; }
.hero.compact h1 { font-size: clamp(26px, 3.4vw, 42px); }
.lead {
  max-width: 68ch; font-size: clamp(15px, 1.5vw, 19px);
  color: rgba(255,255,255,.90); margin: 0 0 22px;
}
.ctaRow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 999px; text-decoration: none;
  font-weight: 700; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12); color: #fff; white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.18); }
.btn.primary { background: #fff; color: var(--navy); border-color: rgba(255,255,255,.6); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.btn.primary:hover { filter: brightness(.98); }
.btn.red { background: var(--red); border-color: var(--red); color:#fff; }
.btn.red:hover { filter: brightness(1.08); background: var(--red); }

/* ── MAIN CONTENT ── */
main { padding: 44px 0 60px; }
section { padding: 34px 0; }
.sectionTitle {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
h2 { margin: 0; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -.2px; color: var(--navy); }
h3 { font-size: clamp(16px, 1.5vw, 20px); }
.subtle { color: var(--muted); max-width: 72ch; }
.grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
.card {
  background: var(--card); border: 1px solid rgba(12,24,40,.10);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.cardBody { padding: 18px 18px 16px; }
.pillRow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pill {
  display: inline-flex; align-items: center; padding: 8px 10px;
  border-radius: 999px; border: 1px solid rgba(12,24,40,.10);
  background: rgba(11,42,74,.04); color: var(--navy);
  font-weight: 650; font-size: 14px; white-space: nowrap;
}
.media { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }
.list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.list li { margin: 8px 0; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini {
  border-radius: 16px; border: 1px solid rgba(12,24,40,.10);
  background: #fff; padding: 16px; box-shadow: 0 10px 26px rgba(12,24,40,.10);
}
.mini h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.mini p { margin: 0; color: var(--muted); }
.note {
  border-left: 4px solid var(--red); background: rgba(177,27,42,.06);
  border-radius: 12px; padding: 12px 14px; color: var(--ink);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── TRACKER CARDS ── */
.trackerGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tracker {
  background:#fff; border:1px solid rgba(12,24,40,.10);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow:hidden;
  display:flex; flex-direction:column;
}
.tracker img { width:100%; height:auto; display:block; border-bottom:1px solid rgba(12,24,40,.08); }
.tracker .cardBody { display:flex; flex-direction:column; gap:8px; }
.tracker h3 { margin:0; color:var(--navy); }
.tracker p { margin:0; color:var(--muted); font-size:15px; }

/* ── ARTICLE / LONG-FORM ── */
.article { background:#fff; border:1px solid rgba(12,24,40,.10); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 30px; }
.article .byline { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.article h2 { margin: 26px 0 10px; font-size: clamp(20px,2vw,26px); }
.article h3 { margin: 22px 0 8px; color: var(--navy); }
.article p { margin: 0 0 14px; color: var(--ink); }
.article ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink); }
.article li { margin: 6px 0; }
.article .pull {
  border-left: 4px solid var(--navy); background: rgba(11,42,74,.05);
  padding: 12px 16px; border-radius: 10px; color: var(--ink);
  font-style: italic; margin: 0 0 16px;
}
.article .sources { border-top:1px solid rgba(12,24,40,.10); margin-top: 24px; padding-top: 16px; font-size: 14px; color: var(--muted); }
.article .sources li { margin: 8px 0; }

/* ── TABLES ── */
.tableWrap { overflow-x: auto; max-width: 100%; border-radius: 14px; border:1px solid rgba(12,24,40,.12); box-shadow: 0 10px 26px rgba(12,24,40,.08); margin: 0 0 18px; }
table.data { border-collapse: collapse; width: 100%; min-width: 560px; background:#fff; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(12,24,40,.08); vertical-align: top; }
table.data thead th { background: var(--navy); color:#fff; font-weight: 700; }
table.data tbody tr:nth-child(even) { background: rgba(11,42,74,.03); }
.tag { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:700; }
.tag.yea { background: rgba(90,122,82,.16); color: var(--green2); }
.tag.nay { background: rgba(177,27,42,.12); color: var(--red); }

/* ── COMING SOON ── */
.comingsoon {
  text-align:center; padding: 60px 20px; background:#fff;
  border:1px solid rgba(12,24,40,.10); border-radius: var(--radius); box-shadow: var(--shadow);
}
.comingsoon i { font-size: 42px; color: var(--navy); margin-bottom: 14px; }
.comingsoon h2 { margin: 6px 0 8px; }
.comingsoon p { color: var(--muted); max-width: 60ch; margin: 0 auto; }

/* ── FOOTER ── */
footer { border-top: 1px solid rgba(12,24,40,.08); background: #fff; padding: 26px 0 34px; color: var(--muted); font-size: 14px; }
.fine { font-size: 13px; color: rgba(92,107,122,.95); }
.mutedLink { color: var(--muted); text-decoration: none; }
.mutedLink:hover { text-decoration: underline; }

/* ── FORMS ── */
.formRow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
input[type="email"] { flex: 1 1 220px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(12,24,40,.16); font-size: 15px; }
button { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(12,24,40,.12); background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }
button:hover { filter: brightness(1.06); }

/* ── DONATE BUTTON ── */
.donate-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 11px 22px; border-radius: 999px; background: var(--red);
  color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
  border: none; box-shadow: 0 6px 20px rgba(177,27,42,.25); transition: filter .15s;
}
.donate-btn:hover { filter: brightness(1.08); }

/* Wide donate band */
.donateBand { background: linear-gradient(180deg, rgba(11,42,74,.04), rgba(177,27,42,.05)); border:1px solid rgba(12,24,40,.10); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; text-align:center; }
.donateBand h2 { margin: 0 0 8px; }
.donateBand p { color: var(--muted); max-width: 70ch; margin: 0 auto 16px; }

/* ── ACCESSIBILITY ── */
.sr-only { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .cards3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .trackerGrid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap {
    /* a little more breathing room on small phones */
    padding-left:  max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }
  .topbar { gap: 10px; }
  .nav { gap: 6px; font-size: 13px; }
  .nav a { padding: 6px 8px; }
  .hero .content { padding-top: 40px; padding-bottom: 40px; }
  .ctaRow { gap: 10px; }
  .btn { padding: 10px 14px; font-size: 14px; }
  .article { padding: 20px 16px 24px; }
  footer > .wrap > div:first-child { flex-direction: column; gap: 20px; }
}