/* =============================================================
   Census Schedule page — scoped under .page-census
   ============================================================= */

.page-census .page-spacer { height: 0; }

/* ---------- Hero ---------- */
.census-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 50%, #15803d 100%);
  padding: 96px 0 64px;
  color: #fff;
}
.census-hero-bg { position: absolute; inset: 0; opacity: 0.12; pointer-events: none; }
.census-hero-blob {
  position: absolute;
  background: #fff;
  border-radius: 9999px;
  filter: blur(2px);
}
.census-hero-blob-1 { width: 384px; height: 384px; top: -192px; left: -192px; }
.census-hero-blob-2 { width: 320px; height: 320px; bottom: -107px; right: -107px; }

.census-hero-inner { position: relative; z-index: 1; text-align: center; }

.census-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  margin-bottom: 20px;
}
.census-hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: #4ade80;
  animation: census-pulse 1.6s ease-in-out infinite;
}

.census-hero-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
}
.census-hero-title-hi {
  display: block;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-top: 6px;
}
.census-hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  margin: 0 0 8px;
}
.census-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.census-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}
.census-stat {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 14px 16px;
}
.census-stat-value { font-size: 28px; font-weight: 700; color: #fff; line-height: 1; }
.census-stat-label { font-size: 12px; color: rgba(255,255,255,0.85); margin-top: 6px; }

/* ---------- Controls (filters + search) ---------- */
.census-controls { padding: 28px 0 0; }
.census-controls-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.census-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.census-filter {
  appearance: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--gray-600, #4b5563);
  border: 1px solid var(--gray-200, #e5e7eb);
  transition: all 0.18s ease;
}
.census-filter:hover {
  border-color: #fdba74;
  color: #ea580c;
}
.census-filter.is-active {
  background: #ea580c;
  color: #fff;
  border-color: #ea580c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.census-search {
  position: relative;
  width: 100%;
  max-width: 280px;
}
.census-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
}
.census-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 9999px;
  border: 1px solid var(--gray-200, #e5e7eb);
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.census-search input:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(253, 186, 116, 0.35);
}

/* ---------- Table ---------- */
.census-table-section { padding: 24px 0 64px; }

.census-table-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--gray-100, #f3f4f6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}
.census-table-scroll { overflow-x: auto; }

.census-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.census-table thead tr {
  background: var(--gray-50, #f9fafb);
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
}
.census-table th {
  padding: 14px 16px;
  font-weight: 600;
  color: var(--gray-600, #4b5563);
  white-space: nowrap;
  font-size: 13px;
}
.census-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
  color: var(--gray-700, #374151);
  vertical-align: middle;
}
.census-table tbody tr:last-child td { border-bottom: none; }
.census-table tbody tr:hover { background: #fff7ed; }

.t-left   { text-align: left; }
.t-center { text-align: center; }
.t-nowrap { white-space: nowrap; }

.census-state-hi { font-weight: 600; color: var(--gray-900, #111827); }
.census-state-en { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* ---------- Status badges ---------- */
.census-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}
.census-badge-dot {
  width: 6px; height: 6px;
  border-radius: 9999px;
}
.census-badge-undecided    { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.census-badge-undecided    .census-badge-dot { background: #d1d5db; }

.census-badge-upcoming     { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.census-badge-upcoming     .census-badge-dot { background: #3b82f6; }

.census-badge-selfActive   { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.census-badge-selfActive   .census-badge-dot { background: #22c55e; animation: census-pulse 1.6s ease-in-out infinite; }

.census-badge-houseToHouse { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.census-badge-houseToHouse .census-badge-dot { background: #f59e0b; animation: census-pulse 1.6s ease-in-out infinite; }

.census-badge-completed    { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.census-badge-completed    .census-badge-dot { background: #9ca3af; }

/* ---------- Empty state ---------- */
.census-empty {
  text-align: center;
  padding: 56px 16px;
  color: #6b7280;
  font-size: 15px;
}

/* ---------- CTA section spacing tweak ---------- */
.page-census .census-cta { padding: 56px 0; }

/* ---------- Animations ---------- */
@keyframes census-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .census-hero { padding: 80px 0 48px; }
  .census-controls-inner { flex-direction: column; align-items: stretch; }
  .census-search { max-width: 100%; }
  .census-table th, .census-table td { padding: 10px 12px; }
}
