/* 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;
  min-height: 100vh;
}
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: 30px;
  font-family: var(--sans);
  font-weight: normal;
}
@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;
    }
      }
chalkbeat-quiz {
  display: block;
  padding: 24px 16px;
  margin: 24px auto;
  border-top: 2px dashed #888;
  border-bottom: 2px dashed #888;
  font-family: var(--sans);
  background: #F8F8F8;
}
chalkbeat-quiz h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
  }
chalkbeat-quiz .chatter {
    font-size: 18px;
  }
chalkbeat-quiz .score {
    background: var(--cbBureau);
    color: white;
    padding: 20px;
  }
quiz-question {
  display: block;
  background: white;
  font-family: var(--sans);
  border: 1px dashed #888;
  margin: 10px auto 24px;
  padding: 24px;
  transition: opacity .4s linear;
  position: relative;
}
@starting-style {
quiz-question {
    opacity: 0;
}
  }
quiz-question .numeral {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 0px;
    left: 0px;
    opacity: .5;
    font-size: 48px;
    font-weight: bold;
    font-style: italic;
    font-family: var(--serif);
  }
quiz-question[hidden] { display: none }
quiz-question h3 {
    margin: 16px 0 8px;
    font-size: inherit;
    font-weight: normal;
    font-style: italic;
    text-align: center;
  }
quiz-question .email {
    font-family: monospace;
    font-size: 18px;
  }
:is(quiz-question .email) .line {
      margin-bottom: 8px;
    }
quiz-question hr {
    border-top: 1px solid #CCC;
  }
quiz-question .buttons {
    margin-bottom: 8px;
    display: flex;
    gap: 16px;
  }
@media (max-width: 600px) {
quiz-question .buttons {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-auto-rows: 1fr;
  }
    }
quiz-question button {
    appearance: none;
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 6px 12px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    background: #CCC;
    transition: all 1s linear;
    flex: 1;
  }
:is(quiz-question button):hover,:is(quiz-question button):focus {
      background: #AAA;
    }
quiz-question .note {
    margin-top: 16px;
    padding: 8px;
    background: #EEE;
    box-shadow: 4px 4px 8px #0003;
  }
quiz-question.answered button {
      background: var(--button-color, #FDD);
      position: relative;
    }
.clicked:is(quiz-question.answered button) {
        border-color: var(--icon-color);
      }
.clicked:is(quiz-question.answered button)::before {
          position: absolute;
          content: var(--icon, "X");
          background: var(--icon-color, darkred);
          width: 1.3em;
          height: 1.3em;
          color: white;
          top: -10px;
          left: -10px;
          font-weight: bold;
          text-align: center;
          border-radius: 100%;
        }
quiz-question.answered button::before {
      /*content: var(--icon, "X  ");*/
      color: var(--icon-color, "red");
      font-weight: bold;
    }
quiz-question.answered button[data-correct="true"] {
      --button-color: ;background: #DFD;
      --icon: "✓  ";
      --icon-color: green;
    }
.waffle {
  background: #E8E8E8;
  font-family: var(--sans);
  padding: 20px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0 36px;
  font-size: 18px;
}
@media (max-width: 600px) {
.waffle {
    display: block;
}
  }
.waffle h2 {
    margin: 0;
    font-size: 24px;
  }
.waffle h2,.waffle .chatter {
    grid-column: 1 / 3;
  }
.waffle .chart {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(10, 1fr);
  }
.waffle .cell {
    background: var(--cell-color, salmon);
    color: white;
    font-weight: bold;
    text-align: center;
    border: dotted 1px #EEE;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    height: 1.5em;
  }
:is(.waffle .cell):hover {
      outline: 2px solid black;
    }
.waffle .Software { --cell-color: var(--purple) }
.waffle .Training.and.admin { --cell-color: var(--yellow) }
.waffle .Classroom { --cell-color: var(--green) }
.waffle .School.safety { --cell-color: var(--dark-red) }
.waffle .Transportation { --cell-color: gray }
@media (max-width: 600px) {
.waffle .detail {
      padding-top: 24px;
  }
    }
:is(.waffle .detail) .key ul {
      padding: 0;
      margin: 0;
      list-style-type: none;
    }
:is(.waffle .detail) h3 {
      margin: 0 0 8px;
      padding-bottom: 8px;
      font-weight: normal;
      border-bottom: 1px solid black;
    }
:is(.waffle .detail) .icon {
      display: inline-block;
      width: .8em;
      height: .8em;
      background: var(--cell-color);
      border-radius: 100%;
      vertical-align: baseline;
    }
:is(:is(.waffle .detail) .individual) b {
        display: block;
        font-size: 15px;
      }
:is(:is(.waffle .detail) .individual) .metadata {
        display: block;
        font-size: 20px;
        margin-bottom: 1em;
      }
:is(:is(.waffle .detail) .individual):not([hidden]) + .key {
        display: none;
      }
@keyframes notification-pop {
  0%, 55% {
    transform: translate(-50%, -50%) scale(.2);
    opacity: 0;
  }

  60% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 999;
  }

  80% {
    z-index: inherit;
  }
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 18px;
  color: white;
  background: black;
}
@media (max-width: 600px) {
.hero {
    display: block;
    color: white;
    background: black;
}
  }
.hero .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 20px;
  }
:is(.hero .text) h1 {
      margin: .3em 0;
      font-family: inherit;
    }
:is(.hero .text) h2 {
      font-size: 22px;
      font-family: inherit;
    }
:is(.hero .text) .credits {
      list-style-type: none;
      padding: 0;
      margin: 16px 0;
    }
.hero .animation {
    background: #EEE;
    position: relative;
    --notification-count: 20;
    overflow: hidden;
  }
@media (max-width: 600px) {
.hero .animation {
      aspect-ratio: 1 / 1;
  }
    }
:is(.hero .animation) .notification {
      position: absolute;
      transform: translate(-50%, -50%);
      left: var(--x, 50%);
      top: var(--y, 50%);
      background: white;
      color: black;
      padding: 20px 16px 10px;
      border-radius: 16px;
      width: 50%;
      box-shadow: 8px 16px 32px -16px #0008;
      
      display: grid;
      grid-template-columns: 30px 1fr;
      align-items: center;
      border: 1px solid #888;
      gap: 8px 16px;
      font-family: var(--sans);
      font-size: 12px;
      text-align: left;

      animation-name: notification-pop;
      animation-fill-mode: forward;
      animation-timing-function: ease;
      animation-duration: calc(var(--notification-count) * .25s);
      transform-origin: 50% 50%;
      animation-delay: calc((var(--index, 1) - (var(--notification-count) - 1)) * .25s);
      animation-iteration-count: infinite;
      animation-direction: normal;
    }
:is(:is(.hero .animation) .notification):after {
        content: "⋯   ⨯";
        position: absolute;
        top: 5px;
        right: 15px;
        font-family: var(--sans);

      }
:is(:is(.hero .animation) .notification) svg {
        width: 100%;
        height: 100%;
        fill: red !important;
      }
:is(:is(.hero .animation) .notification) h1 {
        display: block;
        font-size: inherit;
        text-align: left;
        max-height: 4em;
        text-overflow: ellipsis;
        overflow: hidden;
        margin: 0;
      }
:is(:is(.hero .animation) .notification) .domain {
        grid-column: 2 / 3;
      }
.social .hero {
    display: block;

  }
:is(.social .hero) .text { display: none }
:is(.social .hero) .animation {
      width: 100%;
      aspect-ratio: 16 / 9;
    }
:is(.social .hero) .notification {
      animation: none;
      width: 200px;
      opacity: .8;
      filter: url(#light-scramble);
    }
.central:is(:is(.social .hero) .notification) {
        opacity: 1;
        font-size: 24px;
        filter: none;
        box-shadow:
          0 0 16px 16px #0001,
          0 16px 8px -8px #0006;
        border: 2px solid black;
      }
.central:is(:is(.social .hero) .notification) h1 {
          font-size: 36px;
        }
.central:is(:is(.social .hero) .notification) {
        width: 40%;
      }
.central:is(:is(.social .hero) .notification) .domain {
          filter: url(#scramble);
        }
article.story {
  padding: 0 16px;
}
article.story > * {
    margin: auto;
    max-width: 600px;
  }
article.story > p {
    margin-top: 1em;
    margin-bottom: 1em;
  }
article.story .waffle {
    max-width: 1000px;
  }