body:not(.dnnEditState) .is-empty {
  display: none;
}

#topAlert {
  margin: 0;
  padding: 1rem 0;
  background: var(--brand-red);
  display: grid;
  grid-template-columns: 95% 5%;

  @media (max-width: 991px) {
    grid-template-columns: 85% 5%;
    justify-content: center;
  }

  &:has(.DNNEmptyPane) {
    display: none;
  }
}

#dnn_alertContent {
  margin: auto;
  padding: 1rem 0;

  & * {
    text-align: center;
    align-items: center;
    font-weight: var(--demi-bold);
  }

  & p,
  & a {
    color: #fff;
    font-size: 1.2rem;
  }
}

.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;

  & img {
    width: 100%;
  }
}

#utilityMenuVoters {
  display: grid;
  grid-template-columns: 20% 80%;
  background: var(--brand-lt-gray);
  align-items: center;
  flex-direction: row;
  justify-content: space-around;
  position: relative;

  @media (max-width: 991px) {
    grid-template-columns: 1fr;
  }
}

#utilityContainer {
  display: grid;
  grid-template-columns: 1fr 1fr 0%;
  grid-auto-rows: 1fr;
  position: relative;
  z-index: 1;
  background: var(--brand-med-gray);
  padding: 1rem 0;

  @media (max-width: 991px) {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.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;
  }
}

.utility-button + .utility-button:not(:first-of-type) {
  border-left: 1px solid #000;
}

.mobilebuttons {
  display: grid;
  justify-content: center;
  padding: 5px 0;

  & svg {
    margin: auto;
    fill: #000;
    width: 2rem;
  }

  & p {
    margin: 0;
    font-weight: var(--semi-bold);
    font-size: large;
    font-family: var(--brand-font1);
  }
}

.utility-dropdown {
  opacity: 0;
  display: block;
  position: absolute;
  top: 100%;
  left: -100%;
  transition: all 500ms ease-in-out;
  z-index: -1;
  width: 100%;
}

.utility-dropdown.shown {
  opacity: 1;
  display: block;
  position: absolute;
  top: 100%;
  background: #fff;
  padding: 1rem 2rem;
  left: 0;
  box-shadow: var(--box-shadow);
}

#searchContainer:not(.shown) *,
#translateContainer:not(.shown) * {
  display: none;
}

.registrationTotalsList {
  margin: 0 2rem;
  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(--extra-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: 1fr 1fr 1fr 1fr 1fr 1fr;
  justify-content: center;
  justify-items: center;
  align-items: start;
  background: var(--brand-lt-blue);
  padding: 2rem 5%;

  @media (max-width: 991px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  @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(--brand-dark-blue);
    gap: 1rem;
  }

  & a:hover,
  a:focus {
    --hover-colour: var(--brand-red);
  }

  & .quicklinkIcon {
    background: #fff;
    border-radius: 100%;
    aspect-ratio: 1;
    height: 150px;
    border: 3px solid var(--hover-colour);
    margin: auto;
    background: rgb(255, 255, 255);
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 1) 29%,
      rgba(239, 239, 239, 1) 85%
    );

    & img {
      width: 60%;
      margin: 20%;
    }

    @media (max-width: 1200px) {
      height: 125px;
    }
  }

  & a > h2 {
    text-align: center;
    color: var(--hover-colour);
    text-wrap: nowrap;

    @media (max-width: 1199px) {
      width: 8ch;
      text-wrap: wrap;
    }
  }
}

#homeContainer {
  display: grid;
  grid-template-columns: 20% 80%;
  grid-auto-rows: 1fr;

  @media (width < 992px) {
    grid-template-columns: 1fr;
  }

  & img {
    box-shadow: var(--box-shadow);
    margin: 1rem;
  }
}

.menu-container {
  margin: 0;
  background: var(--brand-dark-blue);
  padding: 2rem 0;

  & li:hover,
  li:focus-within {
    background: var(--brand-med-light-blue);
  }

  & :not(.childrop) li:not(:first-of-type) > a {
    border-top: 1px solid var(--brand-med-blue);
  }

  & 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: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    line-height: 2.5vw;
    max-height: 4rem;
    margin: 0 4rem;
    font-weight: var(--demi-bold);

    @media (max-width: 1199px) {
      margin: 0 1.5rem;
      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 {
    background: var(--brand-med-dark-blue);
    width: 100%;
    margin: 0;
  }

  & .childdrop li:hover,
  & .childdrop li:focus-within {
    background: var(--brand-med-light-blue);
  }
}

.childdrop > li > a {
  border: none !important;
}

ul.toolsaccordion {
  background: var(--brand-dark-blue) !important;
  width: 100vw;
}

#mainContent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 4rem;

  @media (width < 992px) {
    padding: 2rem;
  }
}

.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-red);
  padding: 1rem;
  margin: 0;
  box-shadow: var(--box-shadow);

  & a {
    color: unset;
    text-decoration: none;
  }

  & a:hover {
    color: unset;
  }
}

.heading-red > a:hover {
}

.article-container {
  border: 1px solid var(--brand-lt-gray);
  padding: 1rem;
  box-shadow: var(--box-shadow);

  & h4 {
    color: var(--brand-med-blue);
    font-weight: var(--demi-bold);
  }

  & a {
    text-decoration: none;
  }

  &: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: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 5rem;

  @media (max-width: 576px) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    grid-auto-rows: auto;
  }
}

.upcoming-elections-header {
  color: var(--brand-dark-blue);
  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-red);
}

.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-lt-gray);

  &: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-red);
  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-lt-gray);
  content: "\F231";
  font-family: "bootstrap-icons";
  margin: 0 1rem;
}

.upcoming-election-link:hover,
.upcoming-election-link:active {
  color: var(--brand-red);
}

.upcoming-election-link:hover::before,
.upcoming-election-link:active::before {
  transform: scale(1.3);
}

footer {
  background: var(--brand-lt-gray);
}

#footerHeading {
  background: var(--brand-red);
  padding: 1rem 4rem;

  @media (max-width: 576px) {
    padding: 1rem 2rem;
  }
}

#footerHeading > h2 {
  color: #fff;
}

#footerLocations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1rem 4rem;
  grid-auto-rows: 1fr;

  @media (max-width: 576px) {
    grid-template-columns: 1fr;
    row-gap: 3rem;
    padding: 1rem 2rem;
  }
}

.location-card {
  & a {
    display: grid;
    grid-template-columns: auto auto;
    gap: 5px;
    text-decoration: none;
    color: #000;
    justify-content: start;
  }

  & a img {
    width: 1.5rem;
  }

  & .footer-contact-title {
    font-weight: var(--normal-bold);
    text-transform: uppercase;
  }

  & .footer-text {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 6px;
    align-items: center;
  }

  &:hover .office-location-name,
  &:focus-within .office-location-name {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}

#dnn_disclaimerSection {
  padding: 1rem 4rem;
  text-align: left;

  & 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-med-gray);
  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-red);
    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%;
  border-left: 1px solid #000;
}

.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: #000;
}

.c-hamburger span::after,
.c-hamburger span::before {
  position: absolute;
  display: block;
  left: 0;
  width: 100%;
  height: 4px;
  background: #000;
  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;
}

.vr-menu {
  display: block;
  @media (max-width: 991px) {
    display: none;
    background: var(--brand-dark-blue) !important;

    & li {

    }

    & a,
    & a:visited {
      color: #fff;
      font-weight: bold;
      margin: 1em 0;
      font-size: 17px;
      background: none;
      text-decoration: none;
    }

    & a:focus,
    & a:focus-within {
      color: var(--brand-lt-blue);
    }
  }
}

.vr-menu.shown {
  display: grid;
  position: absolute;
}
