/* ==========================================================================
   NEON — Nevada Election Observation Network
   A project of The Carter Center
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --slate: #3f4263;      /* primary brand navy */
  --teal: #639787;       /* accent */
  --sand: #edcdad;       /* secondary accent */
  --clay: #c9925f;       /* principle 02 numeral */
  --cream: #f7f5f0;      /* page background */
  --shell: #f8ece0;      /* volunteer + more-ways band */
  --ink: #4a4a5c;        /* body copy on light */
  --ink-muted: #6b6a7d;  /* secondary copy on light */
  --paper: #fff;
  --on-dark: #e7e8f2;    /* body copy on navy */
  --on-dark-muted: #d3d5e4;
  --rule: rgba(63, 66, 99, 0.15);
  --accent: var(--teal);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--cream);
}

a { color: var(--slate); text-decoration-color: var(--teal); }
a:hover { color: var(--teal); }

img { display: block; }

/* --------------------------------------------------------------------------
   Shell
   The container query drives every breakpoint below, so the layout responds
   to its own width rather than the viewport's.
   -------------------------------------------------------------------------- */
.neon-page { min-height: 100vh; background: var(--cream); }

.neon-viewport {
  container-type: inline-size;
  container-name: neonvp;
  width: 100%;
}

.neon-container {
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */
.neon-h2 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 22px;
  color: var(--slate);
}

.neon-h2:last-child { margin-bottom: 0; }

.neon-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.neon-section-lede {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.neon-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}

.neon-eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--accent);
  display: block;
}

.neon-eyebrow--center { justify-content: center; }
.neon-eyebrow--full { width: 100%; justify-content: center; }
.neon-eyebrow--flush { margin-bottom: 0; }

/* Bullet dot shared by the hero duty list and the training list */
.neon-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.neon-rule {
  height: 1px;
  background: var(--rule);
  max-width: 900px;
  margin: 0 auto 40px;
}

/* All four Airtable form embeds share one treatment */
.neon-embed {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  height: 533px;
  display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.neon-hero {
  position: relative;
  min-height: 340px;
  padding: 18px 20px 105px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url("assets/img/hero-polling-place.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 62%;
}

.neon-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(20, 22, 38, 0.78) 0%,
    rgba(20, 22, 38, 0.85) 55%,
    rgba(20, 22, 38, 0.92) 100%
  );
}

/* margin:auto overrides the parent's justify-content:flex-end and centres
   the block vertically. Load-bearing. */
.neon-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: auto;
  text-align: center;
}

.neon-logo-img {
  width: 110px;
  height: auto;
  max-width: 55%;
  margin: 0 auto 10px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

.neon-mission-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 14px;
}

.neon-mission-badge::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--sand);
  display: block;
}

.neon-h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--paper);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.neon-mission {
  margin: 0 auto;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-dark-muted);
  max-width: 65ch;
}

.neon-mission-full { display: none; }

.neon-duties-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.neon-duties-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
}

.neon-duties {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.neon-duties li {
  display: flex;
  gap: 8px;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--on-dark);
}

.neon-duties .neon-dot {
  background: var(--sand);
  margin-top: 7px;
}

/* --------------------------------------------------------------------------
   Volunteer band
   The wedge SVG draws the angled top edge; .neon-wedge-fill carries the flat
   colour below it.
   -------------------------------------------------------------------------- */
.neon-volunteer-pad {
  position: relative;
  overflow: hidden;
  padding: 150px 20px 60px;
  margin-top: -90px;
  z-index: 2;
}

.neon-wedge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px;
  z-index: 0;
  display: block;
}

.neon-wedge-fill {
  position: absolute;
  top: 129px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--shell);
  z-index: 0;
}

.neon-volunteer-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  border-top: 5px solid var(--slate);
  box-shadow: 0 24px 50px rgba(63, 66, 99, 0.28);
}

.neon-volunteer-form-side {
  padding: 32px 24px;
  background: var(--paper);
}

.neon-volunteer-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 26px;
  color: var(--slate);
  text-align: center;
}

.neon-volunteer-lede {
  margin: 0 0 18px;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}

.neon-stipend {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--shell);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.neon-stipend p {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--slate);
}

.neon-volunteer-why-side {
  padding: 22px 24px;
  background: var(--slate);
  color: var(--paper);
}

.neon-why-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.neon-why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.neon-why-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--paper);
}

.neon-why-list .neon-dot {
  background: var(--accent);
  margin-top: 6px;
}

.neon-why-note {
  margin: 12px 0 0;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   More ways to get involved
   Shares the --shell background with the volunteer band above it, so the two
   read as one continuous section. Hence no top padding.
   -------------------------------------------------------------------------- */
.neon-more-pad {
  padding: 0 20px 64px;
  background: var(--shell);
}

.neon-more-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 24px;
}

.neon-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}

.neon-more-card {
  background: var(--paper);
  border-radius: 4px;
  padding: 28px 22px;
  box-shadow: 0 12px 32px rgba(63, 66, 99, 0.14);
}

.neon-more-card--teal { border-top: 5px solid var(--teal); }
.neon-more-card--slate { border-top: 5px solid var(--slate); }

.neon-more-title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 21px;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.neon-about-pad {
  position: relative;
  overflow: hidden;
  padding: 44px 24px 48px;
  background:
    linear-gradient(rgba(243, 242, 246, 0.9), rgba(243, 242, 246, 0.9)),
    url("assets/img/about-background.jpg") center / cover;
}

.neon-about-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
}

.neon-roster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 auto 56px;
  max-width: 900px;
}

.neon-roster-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--paper);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 4px 18px rgba(63, 66, 99, 0.1);
}

.neon-roster-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(63, 66, 99, 0.12);
}

.neon-roster-name {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 16px;
  color: var(--slate);
}

.neon-roster-role {
  margin: 0;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Numbered principles */
.neon-principles {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
}

.neon-principle {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.neon-principle:last-child { border-bottom: none; }

.neon-principle-num {
  flex: none;
  width: 40px;
  font-weight: 700;
  font-size: 22px;
}

.neon-principle-num--teal { color: var(--teal); }
.neon-principle-num--clay { color: var(--clay); }
.neon-principle-num--slate { color: var(--slate); }

.neon-principle-name {
  margin: 0 0 3px;
  font-weight: 700;
  font-size: 16px;
  color: var(--slate);
}

.neon-principle-desc {
  margin: 0;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Photo band. The background colour shows through if the image fails. */
.neon-about-media {
  width: 100%;
  height: 260px;
  max-width: 900px;
  margin: 8px auto 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e7e4dd;
}

.neon-about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.neon-contact-pad {
  padding: 28px 24px;
  background: var(--cream);
}

.neon-contact-inner {
  max-width: 100%;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 8px 28px rgba(63, 66, 99, 0.1);
}

.neon-contact-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.neon-contact-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-contact-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 19px;
  color: var(--slate);
}

.neon-contact-lede {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.neon-contact-email {
  margin: 14px 0 0;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.neon-footer-pad {
  padding: 24px 24px 28px;
  background: var(--slate);
}

.neon-footer-inner {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.neon-footer-text {
  margin: 0;
  font-weight: 500;
  font-size: 12px;
  color: var(--paper);
}

/* ==========================================================================
   Container query: 640px and up
   ========================================================================== */
@container neonvp (min-width: 640px) {
  .neon-container { max-width: 640px; }

  .neon-hero {
    min-height: 480px;
    padding: 56px 40px 175px;
  }

  .neon-logo-img {
    width: 140px;
    max-width: 60%;
    margin-bottom: 16px;
  }

  .neon-h1 {
    font-size: 38px;
    margin-bottom: 12px;
  }

  .neon-mission-short { display: none; }
  .neon-mission-full { display: block; }

  .neon-volunteer-pad {
    padding: 96px 40px 80px;
    margin-top: -150px;
  }

  .neon-more-pad { padding: 0 40px 80px; }

  .neon-roster-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }

  .neon-about-pad { padding: 64px 40px; }
  .neon-contact-pad { padding: 28px 40px; }
  .neon-contact-inner { padding: 32px; }
  .neon-footer-pad { padding: 32px 40px 36px; }
}

/* ==========================================================================
   Container query: 1024px and up
   ========================================================================== */
@container neonvp (min-width: 1024px) {
  .neon-container { max-width: none; }

  .neon-hero {
    min-height: 620px;
    padding: 64px 64px 195px;
  }

  .neon-hero-inner { max-width: 900px; }

  .neon-logo-img {
    width: 200px;
    max-width: 40%;
  }

  .neon-h1 { font-size: 52px; }

  .neon-volunteer-pad {
    padding: 90px 64px 70px;
    margin-top: -170px;
  }

  .neon-volunteer-card { max-width: 820px; }
  .neon-volunteer-form-side { padding: 48px 48px 36px; }
  .neon-volunteer-why-side { padding: 28px 48px; }

  .neon-why-list {
    flex-direction: row;
    gap: 28px;
    flex-wrap: wrap;
  }

  .neon-why-list li { flex: 1; min-width: 160px; }

  .neon-more-pad { padding: 0 64px 88px; }

  .neon-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1040px;
    gap: 24px;
  }

  .neon-about-pad { padding: 72px 64px 96px; }
  .neon-about-inner { max-width: 1240px; }

  .neon-roster-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: none;
    gap: 20px;
  }

  .neon-roster-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 14px;
  }

  .neon-roster-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .neon-contact-pad {
    padding: 48px 64px;
    display: flex;
    justify-content: center;
  }

  .neon-contact-inner {
    max-width: 640px;
    width: 100%;
    padding: 40px 48px;
  }

  .neon-footer-pad { padding: 48px 64px 52px; }
  .neon-footer-inner { max-width: 900px; }
}
