/* export to custom props */
:root {
  /* Colors */
  /* Chalkbeat brand colors */
  --cbLogo: #3666EC;
  --cbBureau: #03938F;
  /* Votebeat colors */
  --vbLogo: #7E509E;
  --vbBureau: #331B3D;
  /* Healthbeat colors */
  --hbLogo: #F25A4D;
  --hbBureau: #DD405E;


  /* Primary colors */
  --darker-gray: #222222;
  --dark-gray: #393939;
  --teal: #178287;

  --primary-color: var(--teal);

  /* Secondary colors */
  --yellow: #F4C96C;
  --blue: #268CBA;
  --peach: #F79C75;
  --purple: #BD75AC;
  --cream: #F5F2E9;

  /* Extended colors */
  --lighter-gray: #ECECEC;
  --light-gray: #DCDCDC;
  --gray: #828282;

  --light-teal: #9CD1D4;
  --dark-teal: #127479;

  --light-yellow: #F0DFBC;
  --dark-yellow: #AC8E4C;

  --light-peach: #F1CEBF;
  --dark-peach: #AE6E52;

  --light-purple: #DBC0D4;
  --dark-purple: #855279;

  --light-blue: #A1C8DA;
  --dark-blue: #1B6383;

  --dark-red: #AE5252;
  --red: #F77575;
  --light-red: #F1BFBF;

  --dark-green: #4A8B44;
  --green: #19AB76;
  --light-green: #A7DCBC;

  /* Font stacks */
  --serif: "Crimson Pro", Times, serif;
  --sans: Figtree, Helvetica, Arial, sans-serif;
}
.Votebeat:root {
    --logo: var(--vbLogo);
    --bureau: var(--vbBureau);
  }
.Chalkbeat:root {
    --logo: var(--cbLogo);
    --bureau: var(--cbBureau);
  }
.Healthbeat:root {
    --logo: var(--hbLogo);
    --bureau: var(--hbBureau);
  }


/* Media queries */
/* Replace these variables with better syntax when it becomes available */

/*defensive coding */
* {
  /*border-box, you're the best */
  -ms-box-sizing: border-box;
  box-sizing: border-box;

  /*Safari, you're the worst */
  -webkit-tap-highlight-color: transparent;
}

/*elements */
body {
  padding: 0;
  margin: 0;
  /*remove 300ms click delay in Safari, AKA still the worst */
  touch-action: manipulation;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  color: var(--dark-gray);
  display: flex;
  flex-direction: column;
}
body main {
    flex: 1;
  }

img, svg {
  max-width: 100%;
}

h1 {
  font-size: 44px;
  font-family: var(--sans);
}

@media (max-width: 600px) {

h1 {
    font-size: 34px;
}
  }

h2 {
  font-size: 21px;
  font-family: var(--sans);
  font-weight: normal;
  font-weight: 600;
}

@media (max-width: 600px) {

h2 {
    font-size: 24px;
}
  }


a, a:visited {
  color: var(--bureau);
}


:is(a,a:visited):active,:is(a,a:visited):hover,:is(a,a:visited):focus {
    color: var(--logo);
  }

img:not([alt]) {
  outline: 3px solid red;
}

[aria-hidden] img:not([alt]),[role="img"] img:not([alt]) {
    outline: none;
  }

header {
  text-align: center;
  padding: 20px;
}

header img {
    max-height: 50px;
  }

.cb_newsletter {
  display: grid;
  grid-template-columns: 1fr 3fr 2fr;
  justify-content: space-around;
  align-items: center;
  max-width: 960px;
  padding: 20px;
  margin: 20px auto;
  background-color: #92C5D4;
  font-family: var(--sans);
}

@media (max-width: 600px) {

.cb_newsletter {
    display: block;
}
  }

.cb_newsletter button {
    display: block;
    border: none;
    border-radius: none;
    width: 100%;
    background-color: var(--bureau);
    padding: 10px 16px;
    color: white;
    -webkit-text-decoration: none;
    text-decoration: none;
    font-family: var(--sans);
    font-size: 19px;
    font-weight: bold;
  }

@media (max-width: 600px) {

.cb_newsletter button {
      padding: 8px;
      font-size: 14px;
  }
    }

:is(.cb_newsletter button) svg {
      vertical-align: text-top;
      height: 1.2em;
    }

.cb_newsletter .newsletter_logo {
    padding: 16px;
  }

@media (max-width: 600px) {

.cb_newsletter .newsletter_logo {
      display: none;
  }
    }

.cb_newsletter newsletter-signup {
    display: block;
  }

.cb_newsletter .newsletter_form {
    text-align: center;
  }

:is(.cb_newsletter .newsletter_form) input {
      display: block;
      width: 100%;
      padding: 10px;
      margin: 10px 0;
      font-size: inherit;
    }

.cb_newsletter .status {
    font-size: 16px;
    margin-top: 8px;
  }

footer {
  background: var(--cream);
  padding-top: 4em;
}

footer .rhombus {
    position: relative;
    color: var(--cream);
    margin: auto;
    width: 600px;
    max-width: 100%;
    text-align: center;
    font-family: var(--sans);
    font-size: 13px;
    text-transform: uppercase;
    padding: 1em;
  }

@media (max-width: 1100px) {

footer .rhombus {
      overflow: hidden;
  }
    }

:is(footer .rhombus)::before {
      z-index: 0;
      position: absolute;
      inset: 0;
      transform: skew(-20deg);
      background: #333;
      content: "";
      display: block;
    }

:is(footer .rhombus) .content {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

:is(footer .rhombus) .copyright {
      flex: 1;
    }

:is(footer .rhombus) img {
      max-height: 20px;
    }

@media (max-width: 600px) {

:is(footer .rhombus) img {
        max-height: 40px;
    }
      }

* {
  box-sizing: border-box;
}

#boe-election2026__district-container {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 40px auto;
  max-width: 1060px;

}

#boe-election2026__district-btn-toggle,
#boe-election2026__district-btn-toggle-sp {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  padding: 5px 10px;
  color: var(--cbBureau);
  border-radius: 5px;
  transition: border-color 0.3s ease;
  width: fit-content;
  margin: 0 auto;
  border: 1.5px dashed var(--cbBureau);
}

#boe-election2026__district-btn-toggle:hover,
#boe-election2026__district-btn-toggle-sp:hover {
  cursor: pointer;
  border-radius: 5px;
  color: white !important;
  background-color: rgba(3, 147, 143, 1);
}

.boe-election2026__district-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

#boe-election2026__profiles .card-header {
  color: white;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  border-radius: 10px 10px 0 0px;
}

#boe-election2026__profiles .card-header[data-type="2 year"] {
  background: var(--cbLogo);
}

#boe-election2026__profiles .card-header[data-type="4 year"] {
  background: var(--cbBureau);
}

#boe-election2026__profiles details {
  border: 1px solid var(--lighter-gray);
  border-top: none;
  overflow: hidden;
  background: var(--cream);
  border-radius: 0px 0px 10px 10px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2);
}

#boe-election2026__profiles summary {
  font-family: var(--sans);
  font-size: 16px;
  list-style: none;
  padding: 10px 60px 10px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-style: italic;
  position: relative;
}

#boe-election2026__profiles summary::-webkit-details-marker {
  display: none;
}

#boe-election2026__profiles summary::before,
#boe-election2026__profiles summary::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 4px;
  /* background: var(--cbBureau); */
}
#boe-election2026__profiles summary[data-type="2 year"]::before,
#boe-election2026__profiles summary[data-type="2 year"]::after {
  background: var(--cbLogo);
}

#boe-election2026__profiles summary[data-type="4 year"]::before,
#boe-election2026__profiles summary[data-type="4 year"]::after {
  background: var(--cbBureau);
}



#boe-election2026__profiles summary::before {
  right: 30px;
  transform: translate(50%, -50%);
  transition: transform 0.2s ease;
}

#boe-election2026__profiles summary::after {
  right: 14px;
  transform: translate(-6px, -50%) rotate(90deg);
  transition: transform 0.2s ease;
}

#boe-election2026__profiles summary p {
  margin: 0;
}

#boe-election2026__profiles summary .boe-election-term {
  font-weight: 600;
}

#boe-election2026__profiles summary .boe-election-term[data-type="2 year"] {
  color: var(--cbLogo);
}

#boe-election2026__profiles summary .boe-election-term[data-type="4 year"] {
  color: var(--cbBureau);
}

#boe-election2026__profiles details[open] summary::after {
  transform: translate(-6px, -50%) rotate(0deg);
}

.details-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.details-content-inner {
  overflow: hidden;
}

.details-content-inner .details-content-links {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px 0;
  padding: 0 10px;
}

.details-content-district-link {
  display: flex;
  align-items: center;
}

.details-content-district-link a {
  -webkit-text-decoration: none;
  text-decoration: none;
}

.details-content-district-link a:hover {
  -webkit-text-decoration: underline;
  text-decoration: underline;
}

.details-content-district-link a::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.25em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%393939'%3E%3Cpath d='M206.78-100.78q-44.3 0-75.15-30.85-30.85-30.85-30.85-75.15v-546.44q0-44.3 30.85-75.15 30.85-30.85 75.15-30.85H480v106H206.78v546.44h546.44V-480h106v273.22q0 44.3-30.85 75.15-30.85 30.85-75.15 30.85H206.78ZM405.52-332 332-405.52l347.69-347.7H560v-106h299.22V-560h-106v-119.69L405.52-332Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}


.details-content-inner ul.link-list {
  list-style: none;
  padding: 0 10px;
  margin: 0;
}

.link-list-items a {
  font-family: var(--sans);
  -webkit-text-decoration: none;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border-width: 1.5px;
  border-style: dashed;
  border-color: rgba(27, 99, 131, 0.5);
  border-radius: 20px;
  position: relative;
  margin-bottom: 20px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.link-list-items a:hover {
  background-color: rgba(27, 99, 131, 0.3);
  border-color: rgba(27, 99, 131, 1);
}

.link-list-items-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  background: #dedede;
  display: block;
  flex-shrink: 0;
  display: flex;
  align-self: center;
  justify-content: center;
}

.link-list-items-img::after {
  content: "No photo";
  font-size: 12px;
  font-family: var(--sans);
  align-self: center;
}

.link-list-items div{
  width: 100%;
  margin-right: 10px;
}

.link-list-items div p {
  margin: 0;
}

.boe-election2026__district-item-candidate {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  display: flex;
  justify-content: space-between;
}

.link-list-items-incumb {
  font-weight: 400;
  font-size: 16px;
  color: var(--cream);
  height: fit-content;
  background-color: var(--dark-peach);
  padding-inline: 10px;
  border-radius: 15px;

}

.boe-election2026__district-item-title {
  font-weight: 100;
  font-size: 15px;
  line-height: 1.2;
}

.term-length {
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  padding: 0px 7px;
  border-radius: 5px;
  color: white;
}

.term-length-bond {
  white-space: nowrap;
}

.two-year-bold {
  background: var(--cbLogo);
}

.four-year-bold {
  background: var(--cbBureau);
}

@media (prefers-reduced-motion: reduce) {
  #boe-election2026__profiles .details-content-wrapper,
  summary::after {
    transition: none;
  }
}

#boe-election2026__profiles .boe-election-paragraph,
#boe-election2026__profiles h2,
#boe-election2026__profiles .boe-election2026__president-note
{
  max-width: 1068px;
  margin-inline: auto;
}

#boe-election2026__profiles-president h2 {
  font-family: var(--sans);
  text-transform: uppercase;
}

.boe-election2026__embed-section {
  max-width: 700px;
}

.boe-election2026__embed-section .boe-election2026__president-bio p:last-of-type {
    min-height: auto;
  }

#boe-election__president-profile-btn {
  font-family: var(--serif);
  font-weight: 600;
  -webkit-text-decoration: none;
  text-decoration: none;
  /* background-color: rgba(3, 147, 143, 0.8); */
  background-color: var(--cream);
  border: 2px dashed transparent;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  /* color: white; */
  color: var(--cbBureau);
  border-radius: 5px;
  transition: border-color 0.3s ease;
  width: fit-content;
  margin: 0 auto;
  border: 1.5px dashed var(--cbBureau);
}

#boe-election__president-profile-btn:hover {
  border-radius: 5px;
  color: white !important;
  background-color: rgba(3, 147, 143, 1);
}

#boe-election__president-profile-btn::after {
    content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.25em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%2303938F'%3E%3Cpath d='M206.78-100.78q-44.3 0-75.15-30.85-30.85-30.85-30.85-75.15v-546.44q0-44.3 30.85-75.15 30.85-30.85 75.15-30.85H480v106H206.78v546.44h546.44V-480h106v273.22q0 44.3-30.85 75.15-30.85 30.85-75.15 30.85H206.78ZM405.52-332 332-405.52l347.69-347.7H560v-106h299.22V-560h-106v-119.69L405.52-332Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

#boe-election__president-profile-btn:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23ffffff'%3E%3Cpath d='M206.78-100.78q-44.3 0-75.15-30.85-30.85-30.85-30.85-75.15v-546.44q0-44.3 30.85-75.15 30.85-30.85 75.15-30.85H480v106H206.78v546.44h546.44V-480h106v273.22q0 44.3-30.85 75.15-30.85 30.85-75.15 30.85H206.78ZM405.52-332 332-405.52l347.69-347.7H560v-106h299.22V-560h-106v-119.69L405.52-332Z'/%3E%3C/svg%3E");
}

.boe-election2026__president-section {
  display: flex;
  flex-direction: column;
  gap: 50px; 
  margin: 40px auto 0 auto;
  max-width: 95vw;
}

.boe-election2026__president-wrap {
  position: relative;
  margin-bottom: 30px;
}

.boe-election2026__president-bio {
  background-color: var(--cbBureau);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
}

.boe-election2026__president-bio p {
  font-family: var(--sans);
  color: white;
}

.boe-election2026__president-bio p:first-of-type {
  font-size: 21px;
  font-weight: 700;
  margin: 20px 20px 0px;
  font-style: normal;
  font-family: var(--sans);
}

.boe-election2026__president-bio p:last-of-type {
  font-size: 16px;
  font-weight: 100;
  margin: 5px 20px 20px 20px;
  text-transform: uppercase;
}

.boe-election2026__president-bio img {
  width: 150px;
  height: 150px;
  margin-bottom: -15px;
  align-self: center;
}

.boe-election2026__president-quote {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  align-self: flex-end;
  border: 1.5px dashed var(--cbBureau);;
  padding: 20px;
  margin-top: 20px;
  background: var(--cream);
  border-radius: 10px;
}

.boe-election2026__president-quote figure,.boe-election2026__president-quote blockquote,.boe-election2026__president-quote p {
    margin: 0;
  }

.boe-election2026__president-quote figcaption a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--cbBureau);
}

.boe-election2026__president-note {
  font-family: var(--serif);
  font-style: italic;
  margin: 0 0 75px 0;
}

.boe-election2026__president-note a {
  color: var(--cbBureau);
}


@media (min-width: 560px) {

  .boe-election2026__president-section {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 40px; 
  }

  .boe-election2026__president-wrap {
    flex: 0 0 555px;
  }

  .boe-election2026__president-wrap.spanish {
    flex: 0 0 700px;
  }


  .boe-election2026__president-bio {
    max-width: 80%;
  }

  .boe-election2026__president-bio p:first-of-type {
    font-size: 21px;
    margin: 20px 20px 0px;
  }

  .boe-election2026__president-bio p:last-of-type {
    font-size: 15px;
  }

  .boe-election2026__president-bio img {
    width: 200px;
    height: 200px;
    margin-left: 20px;
    margin-bottom: -15px;
    align-self: start;
  }

  .boe-election2026__president-quote {
    padding: 10px 15px;
    margin-bottom: -20px;
    border-radius: 10px;
    position: absolute;
    bottom: 0px;
    right: 0;
    max-width: calc(100% - 230px);
  }

  .boe-election2026__president-note {
    margin: 75px 0;
  }

}

@media (min-width: 1451px) {

  .boe-election2026__president-section {
    flex-direction: row;
    gap: 80px 30px;
    margin-bottom: 100px;
  }

  .boe-election2026__president-section > * {
    flex: 1; 
  }

  .boe-election2026__president-wrap:last-of-type {
    margin-bottom: 150px;
  }

  .boe-election2026__president-bio img {
    width: 150px;
    height: 150px;
  }

  .boe-election2026__president-bio p:last-of-type {
    min-height: 50px;
  }

  .boe-election2026__president-quote {
    max-width: calc(100% - 180px);
    top: 80px;
    bottom:auto;
  }

}

@media (min-width: 1100px) {
  .boe-election2026__president-wrap:last-of-type {
    margin-bottom: 50px;
  }
}

.boe-election2026__embed-section-embed {
  max-width: 900px;
}

.boe-election2026__embed-section-embed .boe-election2026__president-bio-embed p:last-of-type {
    min-height: auto;
  }


.boe-election2026__president-wrap-embed {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.boe-election2026__president-bio-embed {
  background-color: var(--cbBureau);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
}

.boe-election2026__president-bio-embed p {
  font-family: var(--sans);
  color: white;
}

.boe-election2026__president-bio-embed p:first-of-type {
  font-size: 21px;
  font-weight: 700;
  margin: 20px 20px 0px;
  font-style: normal;
  font-family: var(--sans);
}

.boe-election2026__president-bio-embed p:last-of-type {
  font-size: 16px;
  font-weight: 100;
  margin: 5px 20px 20px 20px;
  text-transform: uppercase;
}

.link-list-items-img-embed {
  width: 200px;
  height: 200px;
  align-self: center;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  background: #dedede;
  display: block;
  flex-shrink: 0;
  display: flex;
  align-self: center;
  justify-content: center;
}

.link-list-items-img-embed::before {
  content: "No photo";
  font-size: 20px;
  font-family: var(--sans);
  align-self: center;
  transform: translate(20%, 100%);
}

.boe-election2026__president-quote-embed {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  align-self: center;
  border: 1.5px dashed var(--cbBureau);;
  padding: 15px;
  background: var(--cream);
  border-radius: 10px;
  max-width: 95%;
  margin-top: -15px;
}

.boe-election2026__president-quote-embed figure,.boe-election2026__president-quote-embed blockquote,.boe-election2026__president-quote-embed p {
    margin: 0;
  }

.boe-election2026__president-quote-embed figcaption a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--cbBureau);
}

@media (min-width: 601px) {


  .boe-election2026__president-wrap-embed {
    flex-direction: row;
    align-items: center;
  }

  .boe-election2026__president-wrap-embed > * {
    flex: 1;
  }

  .boe-election2026__president-bio-embed {
    max-width: 300px;
    padding-right: 50px;
  }


  .boe-election2026__president-bio-embed p:first-of-type {
    font-size: 21px;
    margin: 20px 20px 0px;
  }

  .boe-election2026__president-bio-embed p:last-of-type {
    font-size: 15px;
  }

  .link-list-items-img-embed {
    width: 200px;
    height: 200px;
    margin: 0 0 20px 20px;
    align-self: start;
  }

  .boe-election2026__president-quote-embed {
    padding: 10px 15px;
    margin-left: -50px;
  }
}
