body:not(.dnnEditState) .is-empty {
  display: none;
}

body:not(.dnnEditState) #topAlert:has(.DNNEmptyPane) {
  display: none;
}

#dnn_disclaimerSection {
  padding: 3em 1em;
}

#dnn_disclaimerSection p {
  color: #fff;
}

#topAlert {
  margin: 0;
  padding: 1rem 0;
  background: var(--brand-color2);
  display: grid;
  grid-template-columns: 95% 5%;

  @media (max-width: 991px) {
    grid-template-columns: 85% 5%;
    justify-content: center;
  }
}

#dnn_alertContent {
  margin: auto;
  padding: 1rem 0;

  & * {
    text-align: center;
    align-items: center;
    font-weight: var(--demi-bold);
  }

  & p,
  & a {
    color: #fff;
    font-size: 18px;
  }
}

.close-alert {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #fff;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z'/%3e%3c/svg%3e")
    center / 2em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
}

#headerImageContainer {
  position: relative;
  overflow: unset;
  z-index: 1;

  & > a > img {
    width: 100%;
  }
}

#utilityContainer {
  display: grid;
  grid-auto-rows: 1fr;
  padding: 1rem 0;
  bottom: 5px;

  & .vr-menu {
    background: var(--brand-color1);
    position: absolute;
    width: 100%;
    padding: 1em 0;
    list-style: none;
    top: 100%;

    & li {

      & .childdrop {
        list-style-type: none;
        color: var(--brand-color2);
      }
    }

    & li > a {
      display: grid;
      border-top: 1px solid var(--brand-divider-color);
      text-wrap: balance;
      padding: 1em 2em;
      color: #fff;
      font-weight: bold;
      margin-left: 0px;
      font-size: 17px;
      background: none;
      
    }
  }

  @media (min-width: 992px) {
    right: 0;
    width: 20%;
    align-items: end;
    position: absolute;
    grid-template-columns: 1fr 1fr 0%;
  }

  @media (max-width: 991px) {
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 0.2em solid var(--brand-color1);
    -webkit-box-shadow: 0px 3px 18px -6px rgba(0, 0, 0, 0.51);
    -moz-box-shadow: 0px 3px 18px -6px rgba(0, 0, 0, 0.51);
    box-shadow: 0px 3px 18px -6px rgba(0, 0, 0, 0.51);
    position: sticky;
    top: 100%;
  }
}

.utility-button {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  justify-self: center;
  z-index: 2;
  width: 100%;

  &:hover p,
  &:focus-within p {
    text-decoration: underline;
    text-underline-offset: 5px;
  }

  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    border-left: 1px solid var(--brand-color1);
  }
}

.mobilebuttons {
  display: grid;
  justify-content: center;
  padding: 5px 0;

  & svg {
    margin: auto;
    fill: var(--brand-color1);
    width: 2rem;
  }

  & p {
    margin: 0;
    font-weight: var(--semi-bold);
    font-size: large;
    font-family: var(--brand-font1);
    color: var(--brand-color1);
  }
}

.utility-dropdown {
  opacity: 0;
  position: absolute;
  transition: all 500ms ease-in-out;
  z-index: -1;
  width: 100%;
  left: -100%;
  top: calc(100% + 5px);
}

.utility-dropdown.shown {
  opacity: 1;
  position: absolute;
  top: calc(100% + 5px);
  padding: 1rem 2rem;
  transition: all 500ms ease-in-out;
  box-shadow: var(--box-shadow);
  left: 0;

  @media (max-width: 991px) {
    left: 0;
  }
}

.utility-dropdown.shown:not(.toolsaccordion) {
  background: #fff;
}

.toolsaccordion {
  background: var(--brand-color1);
}

.registrationTotalsList {
  margin: 0.5em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;

  @media (max-width: 991px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    justify-items: center;
    padding: 0;
    margin: 1rem 0.5rem;
  }
}

.registrationTotalsList > li {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-weight: var(--demi-bold);
  font-size: x-large;
  font-family: var(--brand-font1);

  @media (max-width: 991px) {
    &:first-of-type {
      grid-column: 1/3;
    }
  }

  @media (max-width: 1200px) {
    font-size: large;
  }

  @media (max-width: 425px) {
    font-size: small;
  }
}

#quicklinkContainer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-content: center;
  justify-items: center;
  align-items: start;
  background: var(--brand-color2);
  border-bottom: 1px solid #003054;

  @media (max-width: 991px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  @media (max-width: 576px) {
    grid-template-columns: 1fr 1fr;
    display: grid;
    align-items: start;
  }

  & a {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    justify-self: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    --hover-colour: var(--button-hover-color);
    height: 100%;
    width: 100%;
    padding: 5px 0;
    transition: 600ms ease-in-out;

    &:focus,
    &:hover {
      background: var(--hover-colour);

      & img {
        filter: drop-shadow(4px 2px 4px #000000);
        transform: scale(1.1);
      }
    }
  }

  & .quicklinkIcon {
    aspect-ratio: 1;
    height: 115px;
    margin: auto;

    & img {
      margin: auto;
    }

    @media (max-width: 1200px) {
      height: 60px;
    }
  }

  & a > h2 {
    text-align: center;
    color: #fff;
    font-size: 1.3em;
    width: 14ch;
    margin: auto;
    @media (max-width: 1199px) {
      width: 8ch;
      text-wrap: wrap;
    }
  }
}

#homeContainer {
  display: grid;
  grid-template-columns: 27% auto;
  grid-auto-rows: 1fr;

  @media (width < 992px) {
    grid-template-columns: 1fr;
  }

  & img {
    filter: drop-shadow(4px 2px 4px #757575);
  }
}

.dnnEditState .WFContainer_Title_h1:has(#modal)::before {
  content: "Modal Container. To Edit Modal, click the space below, then click the source button `<>` HTML button.";
  color: black;
}

.menu-container {
  border-right: 0.5em solid #003054;
}

.menu-container, .vr-menu {
  margin: 0;
  background: var(--brand-color1);

  & vr-menu > li {
    padding: 0.5em 0;
  }

  & li:hover,
  li:focus-within {
    background: var(--brand-med-light-blue);
    text-decoration: underline 1px solid #003054;
    text-underline-offset: 5px;
  }

  & :not(.childrop) li:not(:first-of-type) > a {
    border-top: 1px solid var(--brand-divider-color);
    display: grid;
    grid-template-columns: auto 16px;
    justify-content: space-between;
    gap: 15px;
    text-wrap: balance;
  }

  & li.sfHover {
    background: var(--brand-dark-blue);
    margin-bottom: 1px;
  }

  & li.sfHover > a:not(:first-of-type) {
    background: var(--brand-med-blue);
    border: none;
  }

  & li.sfHover ~ li:first-of-type a {
    border-top: none;
  }

  /*& li:has(.sf-with-ul):after {
      content: "more";
    }*/

  & a {
    color: #fff;
    text-decoration: none;
    display: grid;
    grid-template-columns: 95% 5%;
    justify-content: space-between;
    max-height: 4rem;
    padding: 0.5em 5px;
    font-weight: var(--demi-bold);
    font-size: 1.2rem;
    width: 93%;
    margin: auto;

    @media (max-width: 1199px) {
      line-height: 2rem;
    }
  }

  & .sf-sub-indicator::before {
    content: "\F229";
    font-family: "bootstrap-icons";
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
    color: var(--brand-med-blue);
  }

  & .sfHover span.sf-sub-indicator {
    transform: rotate(180deg);
    transition: transform 0.2s ease-in-out;
  }

  & a:hover {
    color: #fff;
  }

  & .childdrop {
    width: 100%;
    margin: 0;
    padding: 1em;
    list-style: none !important;
    background: #f0efef;
    

    & a {
      color: var(--brand-color2) !important;
      width: 37ch;
      line-height: 1.3em;
    }
    & a:hover {
      color: #000;
    }

    & li > a {
      width: auto;
    }
  }

  & .childdrop li:hover,
  & .childdrop li:focus-within {
    background: var(--brand-med-light-blue);
  }
}

.childdrop > li > a {
  border: none !important;
}

#mainContent {
  display: grid;
  grid-template-columns: 1fr;
  padding: 2rem;
  padding-top: 1em;
  gap: 2em;

  @media (width < 992px) {
  }
}

.follow-us {
  & h3 {
    text-align: center;
    color: #757575;
  }

  &:focus-within,
  &:hover {
    text-decoration: underline 1px black;
    text-underline-offset: 3px;
  }
}

.social-icons-container {
  display: grid;
  grid-template-columns: repeat(4, 48px);
  justify-items: center;
  gap: 9px;
  justify-content: center;

  & a {
    align-items: center;
    width: fit-content;
  }

  & a:focus,
  a:hover {
    transform: scale(1.2);
    z-index: 2;
  }

  & img {
    max-width: 3em;
  }
}

.notices-container,
.notices-container-with-nested > div {
  display: grid;
  grid-template-columns: repeat(2, 3fr);

  @media (width < 992px) {
    grid-template-columns: 1fr;
  }
}

.heading-red {
  grid-column: 1/4;
  color: #fff;
  background-color: var(--brand-color2);
  padding: 1rem;
  margin: 0;
  box-shadow: var(--box-shadow);

  & a {
    color: unset;
    text-decoration: none;
  }

  & a:focus,
  a:hover {
    color: unset;
  }
}

.heading-red > a:focus,
a:hover {
}

.article-container {
  border: 1px solid var(--brand-divider-color);
  padding: 1rem;
  box-shadow: var(--box-shadow);

  & h4 {
    color: var(--brand-med-blue);
    font-weight: var(--demi-bold);
  }

  & a {
    text-decoration: none;
  }

  &:a:focus h4,
  & a:hover h4,
  &:focus-within h4 {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}

.article-text {
  display: flex;
  align-items: end;

  & p {
    color: #000;
  }
}

.article-text.expanded {
  transition: transform 0.3s ease-out;
  height: auto;
  transform: scaleY(1);
}

#homeContentSplit {
  display: grid;
  grid-template-columns: 60% 35%;
  grid-auto-rows: 1fr;
  gap: 2em;

  @media (max-width: 576px) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    grid-auto-rows: auto;
  }
}

#homeSplitRight > div + div {
  margin-top: 1em;
}

.upcoming-elections-header {
  color: var(--brand-color1);
  background: rgb(227, 229, 232);
  background: linear-gradient(
    90deg,
    rgba(227, 229, 232, 1) 2%,
    rgba(241, 243, 245, 1) 50%
  );
  padding: 1rem;
  box-shadow: var(--box-shadow);
}

button.accordion-button {
  color: var(--brand-color2);
}

.accordion-body {
  display: grid;
}

div.accordion {
  box-shadow: var(--box-shadow);
}

div.accordion,
div.accordion-flush,
div.accordion-item {
  border: none;
  border-radius: none;
}

div.accordion-item {
  border: 1px solid var(--brand-divider-color);

  &:hover h3,
  &:focus-within h3 {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}

.accordion-flush div.accordion-item:last-of-type {
  border-bottom: 0;
}

button.accordion-button::after {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-right: 0;
  content: "";
  background-image: "";
  background-repeat: no-repeat;
  background-size: 0;
  transition: none;
}

button.accordion-button:not(.collapsed) {
  color: var(--brand-color2);
  box-shadow: none;
  background-color: #fff;
}

button.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed)::before {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 1rem;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

.accordion-button.collapsed::before {
  transform: rotate(-90deg);
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 1rem;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

.upcoming-election-link {
  color: var(--brand-dark-blue);
  font-size: 1.3rem;
  text-decoration: none;
  font-family: var(--brand-font1);
  font-weight: var(--semi-bold);
  display: grid;
  grid-template-columns: 3rem 1fr;
}

.upcoming-election-link::before {
  color: var(--brand-divider-color);
  content: "\F231";
  font-family: "bootstrap-icons";
  margin: 0 1rem;
}

.upcoming-election-link:hover,
.upcoming-election-link:focus .upcoming-election-link:active {
  color: var(--brand-color2);
}

.upcoming-election-link:hover::before,
.upcoming-election-link:active::before {
  transform: scale(1.3);
}

footer {
  background: var(--brand-divider-color);
}

#footerContactInfo {
  text-align: center;

  & .footer-text {
    color: #fff;
    text-transform: capitalize;
  }
}

#footerContact {
  background: #003054;
  padding: 2rem 4rem;
  display: grid;
  grid-template-columns: 50% 50%;

  @media (max-width: 576px) {
    padding: 1rem 2rem;
    grid-template-columns: 1fr;
    gap: 2em;
  }

  & h3 {
    font-weight: var(--demi-bold);
    text-transform: capitalize;
    color: #fff;
    display: inline;
  }
  & p {
    color: #fff;
    display: inline;
  }

  & a {
    color: #fff;
    text-decoration: none;

    &:hover,
    &:focus {
      text-decoration: underline;
      text-underline-offset: 5px;
      color: var(--brand-section-background);
    }
  }
}

#footerLocations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1rem 0;
  background: var(--brand-color1);

  @media (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 576px) {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    padding: 1rem 2rem;
  }
}

.locations-title {
  grid-column: 1 / -1;
  color: #fff;

  padding-bottom: 0.5em;
  text-transform: uppercase;
  text-align: center;
}

.location-card {
  text-align: center;
  & a {
    color: #fff;
    text-decoration: none;
  }
  &:hover,
  &:focus {
    text-decoration: underline;
    text-underline-offset: 5px;
    color: var(--brand-section-background);
  }
  & h3 {
    color: #fff;
  }

  & a img {
    width: 1.5rem;
  }

  & .footer-contact-title {
    font-weight: var(--normal-bold);
    text-transform: uppercase;
  }

  & .footer-text {
    color: #fff;
  }

  &:hover .office-location-name,
  &:focus-within .office-location-name {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}

#dnn_disclaimerSection {
  padding: 1rem 4rem;
  text-align: left;
  background: #003054;

  & p {
    max-width: 100%;
    margin: auto;
    font-weight: var(--demi-bold);
  }

  @media (max-width: 576px) {
    padding: 1rem 2rem;
  }
}

body.dnnEditState footer {
  margin-bottom: 5%;
}

div.HomePageENRLinkContainer {
  border: solid 1px var(--brand-divider-color);
  box-shadow: var(--box-shadow);
  margin: 0;
  width: 100%;

  & .HomePageENRElection > span {
    color: var(--brand-dark-blue);
    font-family: var(--brand-font1);
  }

  & hr {
    display: none;
  }

  & .HomePageENRLinkHighlight > span {
    color: var(--brand-color2);
    font-family: var(--brand-font1);
  }

  &:hover span,
  &:focus-within span {
    text-decoration: underline;
    text-underline-offset: 5px;
  }

  @media (max-width: 576px) {
    width: 100%;
  }
}

.hamburger_wrapper {
  width: 100%;
}

.c-hamburger {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  margin: auto;
  padding: 0;
  width: 68px;
  height: 100%;
  font-size: 0;
  appearance: none;
  box-shadow: none;
  border-radius: 0;
  border: none;
  transition: background 0.3s;
  top: 0;
  align-items: end;
  justify-items: center;
}

.c-hamburger:focus {
  outline: none;
}

.c-hamburger span {
  display: block;
  position: absolute;
  top: 15px;
  left: 18px;
  right: 18px;
  height: 4px;
  background: var(--brand-color1);
}

.c-hamburger span::after,
.c-hamburger span::before {
  position: absolute;
  display: block;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-color1);
  content: "";
}

.c-hamburger span::before {
  top: -10px;
}

.c-hamburger span::after {
  bottom: -10px;
}

.c-hamburger--htx {
}

.c-hamburger--htx span {
  transition: background 0s 0.3s;
}

.c-hamburger--htx span::before,
.c-hamburger--htx span::after {
  transition-duration: 0.3s, 0.3s;
  transition-delay: 0.3s, 0s;
}

.c-hamburger--htx span::before {
  transition-property: top, transform;
}

.c-hamburger--htx span::after {
  transition-property: bottom, transform;
}

i.e.menuopen .c-hamburger--htx.is-active {
}

.c-hamburger--htx.is-active span {
  background: none;
}

.c-hamburger--htx.is-active span::before {
  top: 0;
  transform: rotate(45deg);
}

.c-hamburger--htx.is-active span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.c-hamburger--htx.is-active span::before,
.c-hamburger--htx.is-active span::after {
  transition-delay: 0s, 0.3s;
}

/*# customer used classes from previous build */

.WFContainer_Bluebar h1 {
  background: var(--brand-color1) !important;
  font-family: var(--brand-font1);
}

.WFContainer_Redbar h1 {
  background: var(--brand-color2) !important;
  font-family: var(--brand-font1);
}
