/* ==========================================================================
   District 31 — Your District page
   Page-specific styles (loads alongside style.css for shared components)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero / Hook
   -------------------------------------------------------------------------- */
.hook {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 30%, var(--magenta) 70%, var(--orange) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  color: var(--cream);
  position: relative;
}

.hook-eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 24px;
  animation: d31-fadeIn 0.6s 0.1s both;
}

.hook h1 {
  font-size: clamp(44px, 9vw, 100px);
  line-height: 0.95;
  letter-spacing: 2px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: d31-fadeIn 0.6s 0.2s both;
}

.hook h1 .line2 {
  display: block;
  font-size: 0.55em;
  opacity: 0.85;
  margin-top: 8px;
}

.hook-body {
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 400;
  opacity: 0.9;
  animation: d31-fadeIn 0.6s 0.4s both;
}

.hook-pull {
  margin-top: 36px;
  font-family: var(--font-accent);
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--orange);
  animation: d31-fadeIn 0.6s 0.6s both;
}

.hook-arrow {
  margin-top: 40px;
  font-size: 28px;
  opacity: 0.5;
  animation: d31-fadeIn 0.6s 0.8s both, d31-bob 2.5s ease-in-out infinite;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 8px;
}

@keyframes d31-fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes d31-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --------------------------------------------------------------------------
   Numbers / Stats Section
   -------------------------------------------------------------------------- */
.numbers {
  background: var(--cream);
  color: var(--charcoal);
  padding: 80px 24px;
  text-align: center;
}

.numbers h2 {
  font-size: clamp(32px, 5.5vw, 56px);
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.numbers .subtitle {
  font-size: 17px;
  color: #666;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 800px;
  margin: 0 auto;
  gap: 32px;
}

.number-card {
  background: var(--white);
  border-radius: 0;
  padding: 28px 16px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--magenta);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.number-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.1);
}

.number-card:nth-child(2) {
  border-color: var(--orange);
}

.number-card:nth-child(3) {
  border-color: var(--purple);
}

.number-card .big {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--charcoal);
  line-height: 1;
  letter-spacing: 1px;
}

.number-card .big.scary {
  color: var(--magenta);
}

.number-card:nth-child(2) .big.scary,
.number-card:nth-child(2) .big.scary a {
  color: var(--orange);
}

.number-card:nth-child(3) .big.scary {
  color: var(--purple);
}

.number-card .desc {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Communities / Map Section
   -------------------------------------------------------------------------- */
.communities {
  background: var(--slate);
  color: var(--cream);
  padding: 80px 24px;
}

.communities-header {
  text-align: center;
  margin-bottom: 40px;
}

.communities-header h2 {
  font-size: clamp(30px, 5vw, 52px);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.communities-header h2 .pop {
  color: var(--orange);
}

.communities-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto;
}

.comm-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start;
}

/* Map column */
.map-col {
  position: sticky;
  top: 24px;
}

.map-col svg {
  width: 100%;
  height: auto;
}

.map-col .region {
  cursor: pointer;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill-opacity 0.2s, stroke-width 0.2s;
}

.map-col .region:hover {
  fill-opacity: 0.95 !important;
  stroke-width: 3;
  stroke: #fff;
}

.map-col .region.active-region {
  fill-opacity: 1 !important;
  stroke-width: 3.5;
  stroke: var(--orange);
}

.map-col .ghost {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-dasharray: 4, 3;
  pointer-events: none;
}

.map-col .region-label {
  fill: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.5);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.map-col .region-sub {
  fill: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 2.5px;
  stroke-linejoin: round;
}

.map-col .ghost-label {
  fill: rgba(255, 255, 255, 0.15);
  font-family: var(--font-body);
  font-size: 12px;
  font-style: italic;
  text-anchor: middle;
  pointer-events: none;
}

/* Cards column */
.cards-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zone-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}

.zone-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.zone-card.active-card {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.zc-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
}

.zc-color {
  width: 6px;
  height: 48px;
  flex-shrink: 0;
}

.zc-info {
  flex: 1;
}

.zc-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.zc-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.zc-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
  padding-right: 4px;
}

.zone-card.open .zc-arrow {
  transform: rotate(90deg);
  color: var(--orange);
}

.zc-summary {
  padding: 0 20px 16px 40px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.zc-summary strong {
  color: var(--cream);
  font-weight: 600;
}

.zc-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.zone-card.open .zc-detail {
  max-height: 1200px;
}

.zc-detail-inner {
  padding: 0 20px 24px 40px;
}

.zc-detail-inner h4 {
  font-family: var(--font-accent);
  font-size: 14px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  margin-top: 12px;
}

.zc-detail-inner h4:first-child {
  margin-top: 0;
}

.zc-detail-inner p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.zc-detail-inner a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zc-detail-inner a:hover {
  color: var(--cream);
}

.stat-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.stat-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
}

.stat-item .sv {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
  line-height: 1;
  letter-spacing: 1px;
}

.stat-item .sl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.zc-sources {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.zc-sources span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.zc-sources a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
}

.zc-sources a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* --------------------------------------------------------------------------
   Punchline Section
   -------------------------------------------------------------------------- */
.punchline {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 40%, var(--magenta) 100%);
  color: var(--cream);
  padding: 80px 24px;
  text-align: center;
}

.punchline h2 {
  font-size: clamp(32px, 6vw, 64px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.punchline h2 .pop {
  color: var(--orange);
}

.punchline .body-text {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 36px;
  opacity: 0.9;
}

.callout-box {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 32px 28px;
  max-width: 520px;
  margin: 0 auto 40px;
  text-align: center;
}

.callout-box .cb-stat {
  font-family: var(--font-accent);
  font-size: clamp(18px, 3vw, 30px);
  color: var(--orange);
  line-height: 1.3;
  margin-bottom: 12px;
}

.callout-box .cb-text {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.5;
}

.punchline .kicker {
  font-family: var(--font-accent);
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--orange);
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Now What Section
   -------------------------------------------------------------------------- */
.now-what {
  background: var(--cream);
  color: var(--charcoal);
  padding: 80px 24px;
  text-align: center;
}

.now-what h2 {
  font-size: clamp(32px, 5.5vw, 56px);
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-align: center;
}

.now-what .subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.now-what-grid {
  max-width: 800px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
}

.now-what-grid h3 {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.now-what-grid h3 .pop {
  color: var(--magenta);
}

.nw-item {
  margin-bottom: 20px;
}

.nw-item .nw-title {
  font-family: var(--font-accent);
  font-size: 16px;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.nw-item .nw-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.nw-action {
  background: var(--white);
  padding: 28px 24px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--orange);
}

.nw-pledge {
  background: var(--white);
  padding: 28px 24px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--magenta);
}

/* --------------------------------------------------------------------------
   Accountability Callout (between punchline and now-what)
   -------------------------------------------------------------------------- */
.accountability {
  background: var(--slate);
  color: var(--cream);
  padding: 64px 24px;
  text-align: center;
}

.accountability-inner {
  max-width: 900px;
  margin: 0 auto;
}

.accountability h2 {
  font-size: clamp(26px, 5vw, 48px);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
  line-height: 1.1;
}

.accountability h2 .pop {
  color: var(--orange);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.who-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.who-list li {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.5vw, 32px);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.who-them {
  text-align: left;
}

.who-them li {
  color: var(--magenta);
}

.who-you {
  text-align: right;
}

.who-you li {
  color: rgba(255, 255, 255, 0.2);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.15);
}

.who-divider {
  width: 2px;
  height: 100%;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.who-divider::after {
  content: 'vs';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-accent);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  background: var(--slate);
  padding: 8px 0;
}

/* Blank Bill callout */
.blank-bill {
  margin-bottom: 36px;
}

.blank-bill-label {
  font-family: var(--font-accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.blank-bill-card {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  padding: 28px 24px;
  max-width: 480px;
  margin: 0 auto 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.blank-bill-card:hover {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
}

.blank-bill-id {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 4px;
}

.blank-bill-title {
  display: block;
  font-size: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.blank-bill-status {
  display: block;
  font-family: var(--font-accent);
  font-size: 16px;
  color: var(--orange);
}

.blank-bill-punchline {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto;
}

.blank-bill-punchline strong {
  color: var(--orange);
  font-weight: 700;
}

.accountability-kicker {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto;
}

.accountability-kicker strong {
  color: var(--orange);
  font-weight: 700;
}

.accountability-kicker a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.accountability-kicker a:hover {
  color: var(--cream);
}

.now-what .btn {
  margin-top: 16px;
}

@media (max-width: 500px) {
  .who-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .who-them,
  .who-you {
    text-align: center;
  }

  .who-divider {
    width: 100%;
    height: 2px;
    min-height: 0;
  }

  .who-divider::after {
    padding: 0 8px;
  }
}

/* --------------------------------------------------------------------------
   Back-to-home link
   -------------------------------------------------------------------------- */
.back-link {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
}

.back-link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.back-link .arrow {
  display: inline-block;
  margin-right: 4px;
  transition: transform var(--transition-fast);
}

.back-link:hover .arrow {
  transform: translateX(-4px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .comm-layout {
    grid-template-columns: 1fr;
  }

  .map-col {
    position: relative;
    top: 0;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .number-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 320px;
  }

  .now-what-grid {
    grid-template-columns: 1fr;
  }

  .zc-summary {
    padding-left: 20px;
  }

  .zc-detail-inner {
    padding-left: 20px;
  }

  .back-link {
    top: 52px;
    font-size: 0.85rem;
  }
}
