/* Vote.html — comprehensive overrides on top of nicepage.css
   Brand red: #862623 (matches u-custom-color-2)
   Facebook blue (kept as-is): #478ac9
*/

/* --- HERO --- */
#block-vote-hero {
  background-color: #862623;
  padding: 3rem 1rem 2rem;
}
#block-vote-hero h1 { color: #ffffff !important; }

.vote-status-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  margin-top: 0.5rem;
  max-width: 100%;
  text-align: left;
}
.vote-status-dot {
  width: 10px; height: 10px;
  background: #4ade80;
  border-radius: 50%;
  flex: 0 0 10px;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: votePulse 2s infinite;
}
@keyframes votePulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* --- DATES --- */
#block-dates .u-text-1 { color: #1a1a1a; }

.vote-date-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}
.vote-date-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  min-width: 240px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-top: 4px solid #862623;
}
.vote-date-card-label {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
}
.vote-date-card-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: #862623;
  margin: 0;
  line-height: 1.1;
}
.vote-date-card-sub {
  font-size: 0.95rem;
  color: #555;
  margin: 0.5rem 0 0;
}

/* --- QUICK ACTIONS --- */
.u-section-quick { background-color: #fff; }
.u-section-quick .u-text-1 { color: #1a1a1a; }

.vote-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 1.5rem auto 0;
}
.vote-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none !important;
  color: #1a1a1a;
  transition: all 0.2s ease;
}
.vote-quick-card:hover {
  border-color: #862623;
  box-shadow: 0 4px 14px rgba(134, 38, 35, 0.12);
  transform: translateY(-2px);
}
.vote-quick-icon {
  font-size: 1.75rem;
  font-weight: 700;
  color: #862623;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(134, 38, 35, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.vote-quick-title {
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.25rem;
}
.vote-quick-sub {
  font-size: 0.85rem;
  color: #666;
  display: block;
  line-height: 1.4;
}

/* --- SEO INTRO --- */
.u-section-seo-intro { background-color: #fff; }
.vote-seo-intro {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
}
.vote-seo-intro strong { color: #1a1a1a; }

/* --- LAST UPDATED --- */
.u-section-updated { background-color: #f7f7f7; }
.vote-last-updated {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  margin: 0;
}
.vote-last-updated a {
  color: #862623;
  text-decoration: underline;
}

/* --- FIND CLOSEST LOCATION --- */
.u-section-finder { background-color: #fafafa; }
.u-section-finder .u-text-1 { color: #1a1a1a; }

.vote-finder-box {
  max-width: 720px;
  margin: 1.5rem auto 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.vote-finder-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.vote-finder-input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
}
.vote-finder-input:focus {
  outline: none;
  border-color: #862623;
  box-shadow: 0 0 0 3px rgba(134, 38, 35, 0.15);
}
.vote-finder-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.vote-finder-btn:disabled { opacity: 0.6; cursor: wait; }
.vote-finder-btn-go {
  background: #862623;
  color: #fff;
}
.vote-finder-btn-go:hover:not(:disabled) { background: #6e1e1c; }
.vote-finder-or {
  text-align: center;
  margin: 0.9rem 0;
  color: #888;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.vote-finder-or::before,
.vote-finder-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ddd;
}
.vote-finder-or::before { left: 0; }
.vote-finder-or::after { right: 0; }
.vote-finder-btn-gps {
  display: block;
  width: 100%;
  background: #fff;
  color: #862623;
  border: 2px solid #862623;
}
.vote-finder-btn-gps:hover { background: #fdf6f5; }
.vote-finder-privacy {
  font-size: 0.78rem;
  color: #888;
  text-align: center;
  margin: 0.9rem 0 0;
  font-style: italic;
}
.vote-finder-status {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #1e3a8a;
  text-align: left;
}
.vote-finder-status-visible { display: block; }
.vote-finder-status-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.vote-finder-results { margin-top: 1.5rem; }
.vote-finder-results-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
  text-align: center;
}
.vote-finder-results-title em {
  font-style: normal;
  color: #862623;
}
.vote-finder-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.vote-finder-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: left;
  position: relative;
}
.vote-finder-card-best {
  border-color: #862623;
  background: linear-gradient(180deg, #fff 0%, #fdf6f5 100%);
  box-shadow: 0 2px 8px rgba(134, 38, 35, 0.1);
}
.vote-finder-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #862623;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
}
.vote-finder-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.25rem;
}
.vote-finder-dist {
  font-size: 0.92rem;
  color: #862623;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.vote-finder-addr {
  font-size: 0.9rem;
  color: #333;
  margin: 0 0 0.4rem;
  line-height: 1.4;
}
.vote-finder-room {
  font-size: 0.82rem;
  color: #666;
  font-style: italic;
}
.vote-finder-hours {
  font-size: 0.88rem;
  color: #333;
  margin: 0.15rem 0;
}
.vote-finder-hours-edonly { color: #777; }
.vote-finder-access {
  font-size: 0.82rem;
  color: #1a6e2e;
  font-weight: 600;
  margin: 0.3rem 0;
}
.vote-finder-dir {
  display: inline-block;
  margin-top: 0.5rem;
  color: #862623;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.vote-finder-dir:hover { text-decoration: underline; }

/* --- SECTION LEDE TEXT --- */
.vote-section-lede {
  max-width: 720px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
}

/* --- EARLY VOTING LOCATIONS --- */
.u-section-ev .u-text-1 { color: #1a1a1a; }

.vote-loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  max-width: 980px;
  margin: 1.5rem auto 0;
}
.vote-loc-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: left;
  border-left: 4px solid #ccc;
}
.vote-loc-featured {
  border-left-color: #862623;
  background: linear-gradient(180deg, #fff 0%, #fdf6f5 100%);
}
.vote-loc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.vote-loc-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.25;
}
.vote-loc-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  white-space: nowrap;
}
.vote-loc-badge-hours {
  background: #862623;
  color: #fff;
}
.vote-loc-addr {
  font-size: 0.95rem;
  margin: 0.25rem 0;
  color: #333;
}
.vote-loc-meta {
  font-size: 0.85rem;
  margin: 0.25rem 0;
  color: #666;
}
.vote-loc-access {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #1a6e2e;
  font-weight: 600;
}
.vote-loc-note {
  font-size: 0.85rem;
  font-style: italic;
  color: #862623;
  margin: 0.4rem 0 0.6rem;
}
.vote-loc-dir {
  display: inline-block;
  margin-top: 0.5rem;
  color: #862623;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.vote-loc-dir:hover { text-decoration: underline; }

/* --- ELECTION DAY VOTE CENTERS --- */
.u-section-ed { background-color: #fff; }
.u-section-ed .u-text-1 { color: #1a1a1a; }

.vote-ed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 1.5rem auto 0;
}
.vote-ed-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  text-align: left;
}
.vote-ed-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.3rem;
  line-height: 1.25;
}
.vote-ed-room {
  font-size: 0.82rem;
  color: #666;
  margin: 0 0 0.2rem;
  font-style: italic;
}
.vote-ed-addr {
  font-size: 0.9rem;
  color: #333;
  margin: 0 0 0.35rem;
}
.vote-ed-flag {
  font-size: 0.78rem;
  color: #1a6e2e;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.vote-ed-dir {
  font-size: 0.85rem;
  color: #862623;
  font-weight: 700;
  text-decoration: none;
}
.vote-ed-dir:hover { text-decoration: underline; }
.vote-source-note {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin-top: 1.5rem;
}
.vote-source-note a {
  color: #862623;
  text-decoration: underline;
}

/* --- WHAT TO BRING --- */
.u-section-id h2 { color: #ffffff !important; }
#block-id h2 { color: #ffffff !important; }

/* --- FAQ --- */
.u-section-faq { background-color: #f7f7f7; }
.u-section-faq .u-text-1 { color: #1a1a1a; }

.vote-faq-list {
  max-width: 780px;
  margin: 1.5rem auto 0;
  text-align: left;
}
.vote-faq-item {
  background: #fff;
  border-radius: 6px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 3px solid #862623;
}
.vote-faq-item summary {
  font-weight: 700;
  font-size: 1.02rem;
  color: #1a1a1a;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.vote-faq-item summary::-webkit-details-marker { display: none; }
.vote-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: #862623;
  transition: transform 0.2s ease;
}
.vote-faq-item[open] summary::after { content: '−'; }
.vote-faq-item p {
  margin: 0.7rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #333;
}
.vote-faq-item a { color: #862623; text-decoration: underline; }

/* --- WHY DIANNE --- */
.u-section-why { background-color: #fff; }
.u-section-why .u-text-1 { color: #1a1a1a; }
.vote-why-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 980px;
  margin: 1.75rem auto 0;
  align-items: start;
  text-align: left;
}
.vote-why-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 4px solid #862623;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: block;
}
.vote-why-lede {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #1a1a1a;
  margin: 0 0 1rem;
}
.vote-why-lede strong { color: #862623; }
.vote-why-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #333;
}
.vote-why-list li { margin-bottom: 0.6rem; }
.vote-why-list strong { color: #862623; }
.vote-why-cta {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.vote-why-cta a {
  color: #862623;
  text-decoration: none;
  border-bottom: 1px solid #862623;
  display: inline-block;
  margin-right: 0.5rem;
}
.vote-why-cta a:hover { color: #6e1e1c; }

@media (max-width: 720px) {
  .vote-why-wrap { grid-template-columns: 1fr; gap: 1.25rem; }
  .vote-why-photo { max-width: 240px; margin: 0 auto; }
}

/* --- SHARE BUTTONS --- */
.u-section-share .u-text-1 { color: #1a1a1a; }

.vote-share-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.vote-share-btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}
.vote-share-btn-primary {
  background: #862623;
  color: #fff !important;
}
.vote-share-btn-primary:hover { background: #6e1e1c; }
.vote-share-btn-facebook {
  background: #478ac9;
  color: #fff !important;
}
.vote-share-btn-facebook:hover { background: #3a73a8; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .vote-quick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .vote-date-cards { flex-direction: column; align-items: center; }
  #block-vote-hero h1 { font-size: 2rem !important; }
  #block-vote-hero p { font-size: 1.1rem !important; }
  .vote-status-banner { font-size: 0.9rem; padding: 0.5rem 0.9rem; }
  .vote-loc-head { flex-direction: column; align-items: flex-start; }
  .vote-loc-badge { font-size: 0.8rem; }
}
