/* https://piccalil.li/blog/a-more-modern-css-reset/ */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Prevent font size inflation */
html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}
/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}
/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
  color: currentColor;
}
/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}
/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}
/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}
/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}
:root {
    --primary-purple: #3B0254;
    --primary-pink: #FFDED0;
    --primary-coral: #FF8980;
    --dark-grey: #A9A9A9;
    --secondary-purple: #E1C4FF;
}
html { scroll-behavior: smooth; }
body { background-color: var(--primary-purple); font-family: "Work Sans"; font-size: 100%; min-height: 100%!important;height: 100%!important;line-height: 1.44em;padding: 0px;margin: 0px;}
main {background-color: white;}
.holder { position: relative; width: 1080px; max-width: 100%; margin: auto; padding: 0.5em}
header, footer {background-color: var(--primary-purple); color: var(--primary-pink); padding: 1em;}
header h1 {text-align: center; margin: 0;}
header a {text-decoration: none;}
header a:hover {text-decoration: underline;}
footer p { text-align: center; font-family: Helvetica; font-weight: 200; font-size: small;}
.grid { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
@media only screen and (max-width: 1080px) {
    .grid { 
        grid-template-columns: 100%;
    }
}
.barChart, .lineChart {
  width: 100%;
  position: relative;
  aspect-ratio: 2/1;
  background-color: #efefef;
  border-radius: 4px;
  box-shadow: 1px 1px 1px rgb(0 0 0 / 0.2);
  /* min-height: 0; */
  min-width: 0;
}
canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
/* Thanks to Stuart Lowe for the inspiration: https://open-innovations.org/projects/northernpowergrid/comparison/ */
#selections {
    background-color: #efefef;
    border: 1.5px solid #a1a1a1;
    display: block;
    border-radius: 4px;
    margin: 0;
}
#selections h3 { text-align: center; margin-bottom: 1rem;}
#selections h4 { text-align: center; margin-bottom: 0.25rem;}
@media only screen and (min-width: 1080px) and (min-height: 800px) {
    #selections {
        position: sticky;
        z-index: 1000;
        top: 10px;
    }
}
.filter-menu {
    padding: 0;
    justify-content: center;
    display: flex;
    gap: 0.5rem;
}
@media only screen and (max-width:800px) {
    .filter-menu {
        display: block!important;
        padding: 1rem;
    }
}
.filter-menu li {
    display: inline-block;
    background-color: var(--secondary-purple);
    padding: 0;
    margin-bottom: 0.5em;
    font-size: larger;
}
.filter-menu li a {
    text-decoration: none;
}
.filter-menu li:hover {
    background-color: var(--primary-purple);
    color: var(--primary-pink);
    text-decoration: underline;
    transition-duration: 0.3s;
}
.filter-menu button {
    background-color: unset;
    border: unset;
    color: unset;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.5em;
    text-align: center;
    cursor: pointer;  
    box-shadow: 1px 1px 1px rgb(0 0 0 / 0.2);
}
.filter-menu button.active {
    background-color: var(--primary-purple)!important;
    color: var(--primary-pink)!important;
}
.key-icon {
    width: 14px;
    height: 14px;
    margin-right: 0.5em;
    align-items: center;
}
.legend li {
    display: flex;
    padding: 0.5em;
    align-items: center;
}
.legend {display: flex; padding:0; margin:0; justify-content: center; flex-wrap: wrap; flex-direction: row;}
.barChart label {
    margin-left: 0.25rem;
}
h1 + div, h2 + div, h3 + div, h4 + div {
    margin-top: 1rem;
}
.warning {
    text-align: center;
    background-color: var(--primary-coral);
    & p {
        padding: 0.2em;
        font-weight: 600;
    }
}
select {
    margin: 0.5em 0;
}
input[type="checkbox"] {
    accent-color: var(--primary-purple);
}
dialog::backdrop {
  background-image: linear-gradient(
    45deg,
    var(--primary-purple)
  );
  opacity: 0.75;
}
#titleInfo {
    display: flex;
    margin-top: 1em;
}
#titleInfo h2 {
    margin: 0 5px 0 0;
}
#icon {
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#icon:hover, #icon:focus {
    background: var(--primary-coral);
    border-radius: 5px;
}
section {
    margin-block: 1rem;
    border-top: 2px solid var(--primary-purple);
}