/*

 Theme Name:   Vote Yes to Keep Arlington Strong!

 Theme URI:    https://generatepress.com

 Description:  Default GeneratePress child theme

 Author:       Tom Usborne

 Author URI:   https://tomusborne.com

 Template:     generatepress

 Version:      0.1

*/



.site-header { 

background-image: url('/wp-content/themes/generatepress-child/img/top-slice.png');

background-repeat:repeat-x;

background-size:auto 40px;}



body { 

background-image: url('/wp-content/themes/generatepress-child/img/top-slice.png');

background-repeat:repeat-x;

background-position:bottom;

background-size:auto 40px;

padding-bottom:40px;}



.inside-header {padding-top:65px;}



/* Menu item styled like a GeneratePress button */

.vol-button {height:60px;min-width:174px;}

.vol-button > a {
padding-top:12px !important;
  background-color: #9e4140;

  color: white !important;

  //padding: .55em 1em;

  border-radius: 15px;

  font-weight: 600;

  line-height: 1.2;

}



/* Hover / focus */

.vol-button > a:hover,

.vol-button > a:focus-visible {

  background-color: #333;

  color: white !important;

  text-decoration: none;

}



@media (max-width: 960px) {

  .main-navigation .menu-toggle {

    display: block;

  }



  .main-navigation .main-nav {

    display: none;

  }



  .main-navigation.toggled .main-nav {

    display: block;

  }

}


.menu-item-has-children .dropdown-menu-toggle {padding-right:10px;}

@media (max-width: 1205px) {

 .main-navigation .main-nav ul li a {padding-left:12px;padding-right:12px;}
 .menu-item-has-children .dropdown-menu-toggle {padding-right:5px;}

}


@media (max-width: 1115px) {

 .main-navigation .main-nav ul li a {padding-left:7px;padding-right:7px;font-size:16px;}
 .menu-item-has-children .dropdown-menu-toggle {padding-right:5px;padding-left:5px;}
 .vol-button a {font-size:17px !important;}
 .vol-button {min-width:160px;}
 

}

@media (max-width: 1035px) {

 #menu-item-434 {display:none;} 

}







html {  min-height: 100dvh; }



.simple-carousel {

  position: relative;

  width: 100%;

  height: 500px;

  overflow: hidden;

}



.carousel-slide {

  position: absolute;

  inset: 0;

  opacity: 0;

  transition: opacity 0.6s ease-in-out;

  will-change: opacity;

}



.carousel-slide.active {

  opacity: 1;

}



/* Make the <img> behave like background-size:cover */

.carousel-slide img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center;

  display: block;

}



/* Text overlay */

.carousel-overlay {

  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  pointer-events: none;

}



.carousel-overlay h1 {

  color: #fff;

  font-size: clamp(2rem, 5vw, 3.5rem);

  font-weight: 800;

  letter-spacing: 0.05em;

  text-shadow: 0 2px 12px rgba(0,0,0,0.8);

  margin: 0 1rem;

}



.carousel-highlight {

  position: relative;

  display: inline-block;

  z-index: 0;

}



.carousel-highlight::before {

  content: "";

  position: absolute;

  left: -0.15em;

  right: -0.08em;

  top: 7%;

  height: 1.2em;

  background: #9e4140;

  z-index: -1;

}







ul.home-list {

 margin-left:1em;

  

  padding-right:30px;

  list-style: none; /* Removes default bullets */

  padding-left: 15px; /* Adjust padding as needed */

  

}



ul.home-list li {

  padding-left: 40px; /* Space for the custom bullet */

  position: relative; /* Needed for absolute positioning of the bullet */

  margin-bottom:22px;

}



ul.home-list li::before {

  content: "";

  position: absolute;

  left: 0; /* Position it to the left of the padding */

  top: 50%; /* Vertical centering trick */

  transform: translateY(-50%); /* Vertical centering trick */

  width: 30px; /* Size of your custom bullet */

  height: 30px; /* Size of your custom bullet */

  background-image: url("/wp-content/themes/generatepress-child/img/checkmark.svg"); /* Path to your image file */

  background-size: contain;

  background-repeat: no-repeat;

}



.home-list-head {margin-bottom:10px;}



.home-p-2 {margin-bottom:0px;}







.wp-block-cover h1 {

  color: #fff;

  font-size: clamp(2.5rem, 6vw, 3.5rem) !important;

  font-weight: 400;

  letter-spacing: 0.05em;

  text-shadow: 0 2px 12px rgba(0,0,0,0.8);

  margin: 0 1rem;

  text-transform:uppercase;
    overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none  !important;

 



} 



@media (max-width: 768px) {

  header {

    animation: tickerScroll 30s linear infinite;

        will-change: background-position;



  }

  

  body {

   animation: tickerScroll2 30s linear infinite;

   will-change: background-position;

  }



  

}



@media (max-width: 400px) {



  .wp-block-cover h1 {

  font-size: 2rem !important;

  }

  

  }



@keyframes tickerScroll {

  from { background-position: 0 0; }

  to   { background-position: -1210px 0; } /* tweak distance */

}



@keyframes tickerScroll2 {

  from { background-position: 0 bottom; }

  to   { background-position: -1210px bottom; } /* tweak distance */

}



.polling-place-table {

  display: grid;

  grid-template-columns: 1fr 1fr;

  column-gap: 2rem;

  position: relative;

}



/* vertical divider */

.polling-place-table::before {

  content: "";

  position: absolute;

  top: 0;

  bottom: 0;

  left: calc(50% - 0.5px); /* center line */

  width: 2px;

  background: #333;

  pointer-events: none;

}



.quick-links-vote > a {

  background-color: #333;

  color: white !important;

  //padding: .55em 1em;

}



/* Hover / focus */

.quick-links-vote > a:hover,

.quick-links-vote > a:focus-visible {

  background-color: #9e4140;

  color: white !important;

  text-decoration: none;

}



.term-tip {

  position: relative;

  cursor: help;

  border-bottom: 2px dotted currentColor;

}



/* tooltip box */

.term-tip__box {

  position: absolute;

  left: 50%;

  bottom: calc(100% + 10px);

  transform: translateX(-50%);

  width: min(260px, 80vw);

  padding: .6rem .75rem;

  border-radius: .5rem;

  background: rgba(3,3,3,.9);

  color: #fff;

  font-size: .95rem;

  line-height: 1.3;

  box-shadow: 0 6px 18px rgba(0,0,0,.25);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  z-index: 9999;

}



/* little arrow */

.term-tip__box::after {

  content: "";

  position: absolute;

  left: 50%;

  top: 100%;

  transform: translateX(-50%);

  border: 8px solid transparent;

  border-top-color: rgba(0,0,0,.92);

}



/* show on hover OR keyboard focus */

.term-tip:hover .term-tip__box,

.term-tip:focus .term-tip__box,

.term-tip:focus-within .term-tip__box {

  opacity: 1;

  visibility: visible;

}



/* reduce motion preference */

@media (prefers-reduced-motion: no-preference) {

  .term-tip__box {

    transition: opacity .15s ease-in-out, transform .15s ease-in-out;

  }

  .term-tip:hover .term-tip__box,

  .term-tip:focus .term-tip__box,

  .term-tip:focus-within .term-tip__box {

    transform: translateX(-50%) translateY(-2px);

  }

}



.cost-ticker {

  width: 100%;

  height: 65px;

  background: rgb(158, 65, 64);

  color: #fff;

  display: flex;

  align-items: center;

  overflow: hidden;

  border-radius: 0; /* adjust if you want */

  margin-bottom:30px;

}



.cost-ticker__label {

  flex: 0 0 auto;

  height: 100%;

  display: flex;

  align-items: center;

  padding: 0 14px;

  font-weight: 800;

  letter-spacing: 0.03em;

  white-space: nowrap;

  border-right: 1px solid rgba(255,255,255,0.35);

}



.cost-ticker__viewport {

  flex: 1 1 auto;

  overflow: hidden;

  height: 100%;

  display: flex;

  align-items: center;

}



.cost-ticker__track {

  display: inline-flex;

  align-items: center;

  gap: 0;

  white-space: nowrap;

  will-change: transform;

  animation: cost-ticker-scroll 88s linear infinite;

  padding-left: 14px; /* space after label */

}

.cuts-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  animation: cost-ticker-scroll 270s linear infinite;
  padding-left: 14px; /* space after label */
}



.cost-ticker__item {

  font-weight: 650;

  letter-spacing: 0.01em;

}



.cost-ticker__sep {

  display: inline-block;

  margin: 0 14px;

  opacity: 0.85;

}



/* Continuous left scroll */

@keyframes cost-ticker-scroll {

  0%   { transform: translateX(0); }

  100% { transform: translateX(-50%); }

}



/* Pause on hover (optional) */

.cost-ticker:hover .cost-ticker__track {

  animation-play-state: paused;

}


.cost-ticker:hover .cuts-ticker__track {

  animation-play-state: paused;

}



/* Respect reduced motion */

@media (prefers-reduced-motion: reduce) {

  .cost-ticker__track {

    animation: none;

  }

}



.why-now-home {margin-bottom:0px;}



.page-id-340 {

  scroll-behavior: smooth;

}

.page-id-405 {

  scroll-behavior: smooth;

}

.page-id-528 {

  scroll-behavior: smooth;

}

.email-updates-h6 { margin-bottom:5px;}

.footer-widget-1 aside {margin-bottom:0px !important;}

.ngp-form input {width:50%;}

.footer-widget-1 .at-fieldset {min-width:60% !important;width:60% !important;padding-left:0px !important;padding-bottom:0px !important;}
.footer-widget-1 .EmailAddress input {margin-bottom:0px !important;}
.footer-widget-1 .at-submit {float:left !important;margin-left:0px !important;background-color:#1e40af !important;}
.header-widget {height:60px;}
#block-18 {margin-bottom:0px;}

.js-form-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease;
}

.js-form-panel.is-open {
  
  max-height: 2000px;
}

.supporter-columns {
  column-count: 3;
  column-gap: 2rem;

  list-style: none;      /* remove bullets */
  padding-left: 0;       /* remove default indent */

  //width: fit-content;    /* shrink to content width */
  margin: 0 auto;        /* center the block */
  text-align: center;      /* keep names left-aligned */
}

.supporter-columns li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

/* Mobile */
@media (max-width: 768px) {
  .supporter-columns {
    column-count: 1;
  }
}

.electeds-list {
list-style: none;      /* remove bullets */
  padding-left: 0;       /* remove default indent */
  text-align:center;
  margin:0px;
}

.tax-calculator {
    max-width: 420px;
    background: #ffffff;
    padding: 20px 24px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.tax-calculator h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}

.tax-calc-field {
    margin-bottom: 14px;
}

.tax-calc-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.tax-calc-field input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tax-calculator button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background: #9e413f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tax-calculator button:hover {
    background: #863836;
}

#tax-impact {
    margin-top: 16px;
    font-size: 15px;
}

.taxcalc-error {
    color: #b00020;
}