:root {
  --red: #b91c1c;
  --red-dark: #7f1d1d;
  --blue: #143b73;
  --blue-dark: #07182f;
  --ink: #111827;
  --muted: #667085;
  --line: #d7dce5;
  --soft: #f5f7fb;
  --white: #fff;
  --gold: #d8aa3e;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--white); overflow-x: hidden; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 1000;
  transform: translateY(-160%);
  border: 2px solid var(--blue-dark);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--gold);
  color: var(--blue-dark);
  font-weight: 900;
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 950;
  color: var(--blue-dark);
}

.brand img { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.brand span { max-width: 270px; line-height: 1.05; }
.main-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 800; }
.main-nav a { white-space: nowrap; }
.nav-action { color: var(--white); background: var(--red); padding: 11px 16px; border-radius: var(--radius); }
.menu-button { display: none; border: 1px solid currentColor; border-radius: var(--radius); background: transparent; color: inherit; padding: 9px 12px; }

.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 12px; font-weight: 950; letter-spacing: 0; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}
.primary { color: var(--white); background: var(--red); }
.secondary { color: var(--blue); border-color: var(--blue); background: var(--white); }
.light { margin-top: 16px; color: var(--blue-dark); background: var(--gold); }

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: linear-gradient(180deg, #fff, #f6f8fb);
}

.hero-media {
  display: grid;
  place-items: center;
  min-height: 670px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 24, 47, .78), rgba(127, 29, 29, .42)),
    url("/demos/aurora-township/assets/flag-background.jpeg") center/cover;
}

.hero-media img {
  width: min(86%, 760px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  opacity: .96;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 76px);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: 1.02;
}

.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 0 26px;
  color: #344054;
  font-size: 18px;
  line-height: 1.58;
}

.meeting-band {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  align-items: center;
  gap: 28px;
  padding: 36px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: var(--blue);
}

.meeting-band .eyebrow { color: #ffd66b; }
.meeting-band h2 { max-width: 780px; margin: 0 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.14; }
.meeting-band p:not(.eyebrow) { max-width: 820px; margin: 0; color: rgba(255, 255, 255, .84); line-height: 1.56; }

.date-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, .1);
}

.date-card span { display: block; color: #ffd66b; font-size: 38px; font-weight: 950; }
.date-card strong { margin-top: 6px; font-size: 22px; line-height: 1.18; }
.date-card small { margin-top: 10px; color: rgba(255, 255, 255, .76); }

.summary-section,
.principles-preview,
.principles-section,
.principles-review-band,
.leadership-section,
.action-section,
.events-section,
.contact-section {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 64px);
}

.section-heading { max-width: 840px; margin: 0 auto 34px; text-align: center; }
.section-heading h2,
.leadership-section h2,
.events-section h2,
.contact-card h2,
.resource-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.12;
}

.section-heading p:not(.eyebrow),
.leadership-section p,
.events-section p,
.contact-card p,
.resource-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.summary-grid,
.leader-grid,
.action-grid,
.event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.leader-grid,
.action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-grid article,
.leader-grid article,
.event-list article {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(12, 23, 43, .06);
}

.summary-grid span,
.leader-grid span,
.action-grid span {
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.summary-grid h3,
.leader-grid h3,
.event-list h3 {
  margin: 10px 0 8px;
  font-size: 25px;
}

.summary-grid p,
.leader-grid p,
.event-list p {
  color: var(--muted);
  line-height: 1.55;
}

.resource-band {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 64px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 24, 47, .96), rgba(22, 59, 114, .9) 54%, rgba(127, 29, 29, .84)),
    url("/demos/aurora-township/assets/flag-background.jpeg") center/cover;
}

.resource-band .eyebrow { color: #ffd66b; }
.resource-copy p { color: rgba(255, 255, 255, .82); }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.resource-grid a {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, .1);
}

.resource-grid span { color: #ffd66b; font-size: 12px; font-weight: 950; text-transform: uppercase; }
.resource-grid strong { margin-top: 8px; font-size: 22px; line-height: 1.12; }

.principles-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: center;
  background: var(--white);
}

.principles-preview h2 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.12;
}

.principles-preview p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.principles-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(20, 59, 115, .9), rgba(127, 29, 29, .9)),
    url("/demos/aurora-township/assets/flag-background.jpeg") center/cover;
}

.principles-card span {
  color: #ffd66b;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.principles-card strong {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.12;
}

.principles-card small {
  color: rgba(255, 255, 255, .78);
  line-height: 1.45;
}

.page-hero {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 64px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 24, 47, .96), rgba(22, 59, 114, .88) 54%, rgba(127, 29, 29, .82)),
    url("/demos/aurora-township/assets/flag-background.jpeg") center/cover;
}

.page-hero .eyebrow,
.principles-review-band .eyebrow {
  color: #ffd66b;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: .98;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  line-height: 1.58;
}

.principles-section {
  background: var(--soft);
}

.principle-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.principle-list article {
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(12, 23, 43, .06);
}

.principle-list h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

.principle-list p {
  margin: 0;
  color: #344054;
  font-size: 18px;
  line-height: 1.65;
}

.principles-review-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  color: var(--white);
  background: var(--blue-dark);
}

.principles-review-band h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.12;
}

.principles-review-band p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, .8);
}

.leadership-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  align-items: start;
  background: var(--soft);
}

.pc-roster-section {
  background: var(--white);
}

.pc-roster-card {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(12, 23, 43, .07);
}

.pc-roster-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: #1f2937;
}

.pc-roster-row:first-child {
  border-top: 0;
}

.pc-roster-row span:last-child {
  justify-self: end;
  font-weight: 950;
  color: var(--blue-dark);
  letter-spacing: .04em;
}

.pc-roster-head {
  min-height: 50px;
  color: var(--white);
  background: var(--blue-dark);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.pc-roster-head span:last-child {
  color: var(--white);
}

.action-section { background: var(--blue-dark); color: var(--white); }
.action-section .eyebrow { color: #ffd66b; }
.action-section .section-heading p { color: rgba(255, 255, 255, .78); }
.action-grid a {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
  transition: transform .18s ease, border-color .18s ease;
}

.action-grid a:hover,
.action-grid a:focus-visible { transform: translateY(-4px); border-color: rgba(255, 255, 255, .58); }
.action-grid span { color: #ffd66b; }
.action-grid strong { margin: 10px 0 8px; font-size: 26px; line-height: 1.12; }
.action-grid small { color: rgba(255, 255, 255, .76); line-height: 1.45; }

.events-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.event-list { grid-template-columns: 1fr; }
.event-list article { min-height: auto; }
.event-list time { color: var(--red); font-weight: 950; text-transform: uppercase; font-size: 13px; }

.contact-section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  background: var(--soft);
}

.contact-card,
.contact-info {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(12, 23, 43, .06);
}

form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
label { display: grid; gap: 8px; color: #344054; font-weight: 850; }
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
}
form .button { align-self: end; }

.contact-info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.contact-info img { width: 128px; height: 128px; object-fit: contain; margin-bottom: 16px; }
.contact-info h3 { font-size: 28px; margin: 0 0 12px; }
.contact-info p { color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.contact-info a,
.contact-card a {
  color: var(--red);
  font-weight: 900;
}

.ballot-page {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 64px);
  background: #eef2f7;
}

.ballot-sheet {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(12, 23, 43, .08);
}

.ballot-header {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ballot-header img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.ballot-header h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
}

.ballot-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.ballot-alert {
  margin: 22px 0;
  border: 1px solid #f0c36a;
  border-radius: var(--radius);
  padding: 16px;
  background: #fff8e8;
}

.ballot-alert strong {
  color: var(--red-dark);
}

.ballot-alert p {
  margin: 6px 0 0;
  color: #5f4b1a;
  line-height: 1.5;
}

.ballot-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.ballot-table th,
.ballot-table td {
  border: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.ballot-table th {
  color: var(--white);
  background: var(--blue);
}

.ballot-table td {
  line-height: 1.45;
}

.ballot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: var(--blue-dark);
}

.site-footer img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 999px; padding: 4px; }
.site-footer p { margin: 4px 0 0; color: rgba(255, 255, 255, .7); }
.site-footer div:last-child { display: flex; gap: 14px; align-items: center; }
.site-footer a { color: rgba(255, 255, 255, .82); }

@media (max-width: 980px) {
  .menu-button { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 12px 18px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .nav-action { text-align: center; }
  .hero,
  .meeting-band,
  .resource-band,
  .principles-preview,
  .principles-review-band,
  .leadership-section,
  .events-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .hero-media { min-height: 360px; order: 2; }
  .hero-media img { width: min(88%, 620px); }
  .hero { min-height: auto; }
  .summary-grid,
  .leader-grid,
  .action-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand span { max-width: 190px; }
  .hero-copy h1 { font-size: 40px; }
  .summary-grid,
  .leader-grid,
  .action-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .site-footer div:last-child { flex-wrap: wrap; }
  .principles-review-band,
  .ballot-header {
    grid-template-columns: 1fr;
  }
  .ballot-page {
    padding: 18px;
  }
  .ballot-table {
    font-size: 14px;
  }
  .ballot-table th,
  .ballot-table td {
    padding: 10px;
  }
  .pc-roster-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 18px;
  }
  .pc-roster-row span:last-child {
    justify-self: start;
  }
}

@media print {
  body {
    background: #fff;
  }
  .no-print,
  .skip-link,
  .ballot-actions {
    display: none !important;
  }
  .ballot-page {
    padding: 0;
    background: #fff;
  }
  .ballot-sheet {
    max-width: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .ballot-alert {
    border-color: #999;
    background: #fff;
  }
}
