@import url(https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,300,400,500,600,700,900);
@import url(https://fonts.googleapis.com/css?family=Domine:300italic,400italic,700italic,300,400,500,600,700,900);

@font-face {
  font-family: "Tex Gyre Adventor Regular";
  src: local("TeX Gyre Adventor"),
    url("fonts/texgyreadventor-regular.db360b27276e.otf") format("opentype");
}

@font-face {
  font-family: "Tex Gyre Adventor Bold";
  src: local("TeX Gyre Adventor"),
    url("fonts/texgyreadventor-bold.30312e77fb18.otf") format("opentype");
}

.protected-True:before {

      display: inline-block;
      font-style: normal;
      font-variant: normal;
      text-rendering: auto;
      -webkit-font-smoothing: antialiased;
    padding-right:5px;
    font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f023";
}

.user-logged-in .protected-True:before {
    content: "\f09c";
}

:root {
    --blue: #004b8b;
    --blue-semitrans: #004b8b60;
    --blue-trans: #004b8b20;
    --orange: #e77c05;
    --orange-semitrans: #e77c0560;
    --orange-trans: #e77c0520;
    --orange-dark: #b96a12;
    --yellow: #ebb81f;
    --yellow-semitrans: #ebb81f60;
    --yellow-trans: #ebb81f20;
    --magenta: #95215e;
    --magenta-semitrans: #95215e60;
    --magenta-trans: #95215e20;
    --red: #9d140d;
    --red-semitrans: #9d140d60;
    --red-trans: #9d140d20;
    --teal: #00737e;
    --teal-semitrans: #00737e60;
    --teal-trans: #00737e20;
    --purple: #433277;
    --purple-semitrans: #43327760;
    --purple-trans: #43327720;
    --navh: 63px;
      --blue: #004b8b;
  --blue-semitrans: #9fbbd3;
  --blue-trans: #dfe8f0;

  --orange: #e77c05;
  --orange-semitrans: #f6cea1;
  --orange-trans: #fcefe0;
  --orange-dark: #b96a12;

  --yellow: #ebb81f;
  --yellow-semitrans: #f7e4ab;
  --yellow-trans: #fcf6e3;

  --magenta: #95215e;
  --magenta-semitrans: #d7acc2;
  --magenta-trans: #f2e3eb;

  --red: #9d140d;
  --red-semitrans: #daa7a4;
  --red-trans: #f3e2e1;

  --teal: #00737e;
  --teal-semitrans: #9fcace;
  --teal-trans: #dfeeef;

  --purple: #433277;
  --purple-semitrans: #b8b2cc;
  --purple-trans: #e8e5ee;
}

body {
    font-family: "Open Sans";
    color: #444;
    background: #00737e09;
    margin:0;
}

img {
    width:100%;
}

.bold {
    font-weight: 700;
}

.medium {
    font-weight: 500;
}

a:active, a {
    color: var(--teal);
}

a:visited {
    color: var(--teal);
}
.center, .header {
    max-width:1200px;
    margin: auto;
    padding: 0 45px;
}

.summary-box {
    background: rgba(150,150, 150, 0.1);
    padding: 1em;
    border-radius: 7px;
    margin-top: 1em;
    max-width: 832px;
}
.summary-box h4 {
    color: var(--teal);
    margin-top: 0;
    display: flex;
    font-size:small;
}
.summary-box h4 img {
    width: 15px;
    align-self: center;
}
@media only screen and (min-width: 1000px) {
    .center, .header {
        padding-left: calc(250px + 2em);
    }

    .sidebar {position:fixed;}
}

@media only screen and (max-width: 1000px) {
    .sidebar {
        display: none;
    }
}

.center {
    min-height: calc(100vh - 180px);
}

.card {
    background: white;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    box-sizing: border-box;
}

.card h2 {
    font-size: 0.8em;
    margin:0;
}
.card-header {
    display: flex;
    justify-content: space-between; /* Push items to opposite sides */
    align-items: center; /* Vertically align */
    font-weight: bold;
    margin: 0 0 1em;
}

.card-header a {
    text-decoration: none;
    font-size: small;
}

.stories.feed {
    max-width: 600px;
}

.stories.side {
    display: block;
}

.story.center {
    max-width:800px;
    width:80%;
    margin-bottom: 100px;
    margin-top:100px;
    padding-left: 45px;
}

.story-card.pinned {
    border: 1px solid var(--teal-semitrans)
}

.notice {
    background: var(--teal-trans);
    color: var(--teal);
    border-radius: 5px;
    font-size: small;
    padding: 10px;
    display:flex;
}

.notice a {
    white-space: nowrap;        /* Prevent wrapping */
    overflow: hidden;           /* Hide overflow text */
    text-overflow: ellipsis;    /* Add ellipsis (...) */
    max-width: 300px;           /* Set a maximum width for the links */
    display: inline-block;      /* Ensure the truncation works */
    vertical-align: middle;
    font-weight: normal;
}


.notice i {margin: 3px 5px 0 0 ;vertical-align: middle;}

.notice p {margin: 0;vertical-align: middle;}

.highlight {
    font-size: small;
}

.highlight i {
    margin-right: 3px;
}

.button-block {
    border: 2px solid;
    padding: 10px;
    border-radius: 5px;
}

.dropbtn {
    width:100%;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {

}

/* The search field */
.dropdown input {
  box-sizing: border-box;
  background-position: 14px 12px;
  background-repeat: no-repeat;
  font-size: 16px;
  padding: 1em;
  border: none;
  border-bottom: 1px solid var(--teal-semitrans);
}

/* The search field when it gets focus/clicked on */
.dropdown-content input:focus {outline: 3px solid var(--teal-semitrans);}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
    min-width:230px;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f7fafa;
  min-width: 230px;
  z-index: 1;
    box-shadow: 0 2px 1px rgba(0,0,0,0.03),
0 4px 2px rgba(0,0,0,0.03),
0 8px 4px rgba(0,0,0,0.03),
0 16px 8px rgba(0,0,0,0.01),
0 32px 16px rgba(0,0,0,0.01),
-32px 32px 132px #004b8b15,
32px 32px 132px #95215e10;
}

.dropdown-list {

    max-height: 300px;
    overflow-y: scroll;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
    cursor: pointer;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: var(--teal-trans)}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

.sidepanel a {
    text-decoration: none;
}

.stories .date, .stories .category, .story .date, .story .category {
    display: inline-block;
    font-size: small;
    background: var(--teal-trans);
    color: var(--teal);
    padding: 2px 4px;
    border-radius: 4px;
}

.preview img {margin-top:1em;}

.story h1 {
    font-size: 2em;
}

.story h2, .story h3, .story h4, .story h5, .story h6 {
    margin-top: 3em;
    margin-bottom: 2em;
}

.story p, .story ul {
    font-size: 1.25em;
    line-height: 1.875em;
    font-family: Domine;
}

.story-meta {
    margin-bottom: 3em;
}

.story-meta span {
    display:inline-block;
    margin-right: 1em;
}

.story iframe, .story img {
    margin-top: 2em;
    margin-bottom: 2em;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    border: none;
}

.story img {
    height:auto;
}

.story .caption, .story .narrow, .story h1, .story h2, .story h3, .story h4, .story h5, .story h6, .story p, .story ul, .story-meta {
    margin-left: calc((100% - 600px) / 2);
    max-width: 600px;
    box-sizing: border-box;
}

.story .caption {
    font-size: .875em;
    color: #666666;
}
.story .noshadow {
    box-shadow: none;
}

.story a {
    color: var(--teal);
}

.story a:active {
    color: var(--teal);
}

.story a:visited {
    color: var(--teal);
}

.story .big-banner {
    background: linear-gradient(#00737e, #00737e00);
    position: absolute;
    width: 100vw;
    height: 400px;
    left: 0;
    z-index: -1;
    margin-top:4em;
}

.story .big-banner img {
    box-shadow: none;
    width: 100%;
    margin: 0;
}

.story .big-banner + h2 {
    font-size: 4em;
    color: white;
    margin-top:3em;
}

.button-block.Report, a.button-block.Report, a.button-block.Report:visited {
    background-color: var(--teal-trans);
    border-color: var(--teal-semitrans);
    color: var(--teal);
}

.button-block.Map, a.button-block.Map, a.button-block.Map:visited {
    background-color: var(--magenta-trans);
    border-color: var(--magenta-semitrans);
    color: var(--magenta);
}

.button-block.More, a.button-block.More, a.button-block.More:visited {
    background-color: var(--blue-trans);
    border-color: var(--blue-semitrans);
    color: var(--blue);
}

.button-block.Link, a.button-block.Link, a.button-block.Link:visited {
    background-color: var(--purple-trans);
    border-color: var(--purple-semitrans);
    color: var(--purple);
}

.button-block.godeeper {
    display: inline-grid;
    margin-bottom:4px;
}

.button-block.godeeper:hover {
    box-shadow: 1px 2px 4px rgba(0,0,0,0.2)
}

.godeeper span{
    font-weight:bold;
    font-size:smaller;
    opacity: 0.5;
}

.category.update {
    color: var(--blue);
    background: var(--blue-trans);
}
.category.Video {
    color: var(--magenta);
    background: var(--magenta-trans);
}
.Video .preview {
    margin-left: -1em;margin-right: -1em;margin-bottom: -1em;
}
.stories .report-title {
    font-size: large;
    margin-top: 1em;
}



.preview {
    margin-top:1em;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
    border-radius: 10px;
}

.Video .action {
    display: none!important;
}

#nav {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1em;
    height: var(--navh);
    box-sizing:border-box;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.7);
}
#spacer {
    height: var(--navh);
}
#nav a, #nav a:active, #nav a:visited {
    font-weight: 700;
    color:#444;
    text-decoration:none;
    margin-top:6px;
    display: block;
    margin-right:2em;
    float:left;
}

#nav a:hover {
    color: #333;
}

#logo {
    width:100px;
}

.header h1 {
    font-size:42px;
    font-family: "Tex Gyre Adventor Bold";
    font-weight: normal;
}

.header h2 {
    font-family: "Open Sans";
    font-weight:normal;
}

#subhead {
    margin:1em 3%;
    box-sizing:border-box;
    border-radius: 10px;
    clear: both;
    background: #ffffff60;
    position: fixed;
    top: var(--navh);
    margin-left: 270px;
    padding: 1em;
    width: calc(98% - 270px);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255,255,255,0.5);

    box-shadow: 1px 3px 8px 0px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,.7);
    display: flex;
      gap:12px;
  flex-wrap:wrap;
}

#subhead > * {
    align-content: center;
}

#subhead-buttons {
      gap:10px;
    display:flex;
    margin-left:auto;
}

@media only screen and (max-width: 1200px) {
    #subhead-description {
        /*flex-basis: 100%;*/
    }
    #subhead button {
        float: none;
    }
    #subhead-buttons {
        margin-left: 0;
    }
}

#subhead button, #subhead  select {
}


select, .dropbtn {
    cursor: pointer;
    font-size: 1em;
    padding: 1em;
    border-radius: 0;
    border: none;
    border-bottom: 3px solid var(--teal);
    background: var(--teal-trans);
    color: var(--teal);
/* Removes the default <select> styling */
-webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-top: 1em;
    box-shadow: 0 2px 1px rgba(0,0,0,0.03),
0 4px 2px rgba(0,0,0,0.03),
0 8px 4px rgba(0,0,0,0.03),
0 16px 8px rgba(0,0,0,0.01),
0 32px 16px rgba(0,0,0,0.01),
-32px 32px 132px #004b8b15,
32px 32px 132px #95215e10;
    transition:all .2s ease-out;
}

select:hover, .dropbtn:hover {
    box-shadow: 0 2px 1px rgba(0,0,0,0.10),
0 4px 2px rgba(0,0,0,0.07),
0 8px 4px rgba(0,0,0,0.05),
0 16px 8px rgba(0,0,0,0.03),
0 32px 16px rgba(0,0,0,0.03),
-32px 32px 132px #004b8b15,
32px 32px 132px #95215e10;
}

select-block {
    margin: 1em 3em 2em 0;
    display: block;
    float: left;
}
#add-comparison {
    /*transition:all .5s ease;*/
    transition: background-color 0s, color 0s!important;
}
#add-comparison.open {
    width: 300px;
    padding: 1em;
    color: var(--teal);
    background: var(--teal-trans);
    border-radius: 7px;
    border: none;
    box-shadow: none;
    cursor: initial;
}

#add-comparison.open #compOpen {
    cursor: initial;
}

.close {
    float: right;
    cursor: pointer;
    opacity: 0.8;
}

.close:hover {
    opacity:1;
}

button i, #add-comparison i {
    margin-left: 10px;
}

.header button i {
    margin-left:0;
}

#compAdd, #compOpen {
    cursor: pointer;
}

#comp-link, #comp-reset {
    cursor: pointer;margin: 0;font-size: .8em;
}

#comp-link:hover, #comp-reset:hover {
    text-decoration:underline
}

.comp-selection {
    font-size: small;padding: .5em;border: 1px solid;border-radius: 3px;
}

#compAdd {
    font-size: small;
    margin-top:10px;
    padding: 5px;border-radius:3px;border: 1px dashed var(--teal-semitrans);
}

#compAdd:hover {
    border-color:var(--teal)
}

#compAdd i {margin-right:3px;}

#compInside {height:0;max-height:max-content;overflow: hidden;transition:all .5s ease}

#add-comp-button {display:none;}
.pop {
    z-index:2;
    background: white;
    box-shadow: 0 0 300px rgba(0,0,0,0.5);
    border-radius: 3px;
    display:flex;
    padding-left: 1em;
}

.pop #add-comp-button {
    display:block;
}

.pop #date {
    display: none;
}

.form-parent {display:none;}
.form-parent:first-child {display:block;}
.form-parent-floatbar:first-child {display:inline-flex;}

#subhead p {
    margin:0;
}
#subhead select-block {
    float:right;
    display:inline-flex;
    margin: 1em .5em 1em;
}

#subhead label {
    display:none;
}

#subhead select {
    padding: 3px 10px;
    margin-top: 0em;
    box-shadow: none;
}

.comp-names > span::after {
    content: ", ";
}

.comp-names > span:last-child::after {
    content: "";
}

.viz, .report, .story-card {
    margin:100px 0;
    border: 0px solid #eee;
    border-radius: 10px;
  box-shadow: 1px 3px 8px 0px rgba(0,0,0,0.1);
    padding:2em;
    background: white;
}

.story-card {
    padding: 1em;
    margin: 1em 0;
}

.story-card .highlight {
    font-size: inherit;
    background: #00737e09;
    padding: 10px 15px;
    border-radius: 10px;
    margin-top:1em;
    border: 1px solid #00737e20;
    line-height: 1.6em;
    width:100%;
    box-sizing: border-box;
}

.story-card .highlight canvas {
    height: 300px;
    box-sizing: border-box;
}

.story-card .highlight .title {
    font-weight: 700;
}

.random {
    border-top-width: 2px;
    border-top-style: solid;
    padding-top:1em;
    margin: 1em 0;
}

.random-viz {
    height:300px;
}

.report {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
}

.report button.select-report-link {
    margin-top: auto;
}

#brief-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 3em;
}

#brief-wrapper .report {
    margin-bottom: 0;
}

.brief-report {clear:both;}

.report.brief {
    background: var(--blue-trans);
}

.domain-header {
    margin-top: 100px;
    border-top: 4px solid;
    padding-top: 20px;
    font-size: 1.5em;
    clear:both;
}

.viz_title, .report-title {
    font-size:x-large;
    font-weight: bold;
    margin-block-end: .5em;
    margin-block-start: 0em;
}

.report a, button, #add-comparison {
    margin:1em 1em 0 0;
    display: inline-block;
    padding: 14px 28px;
    font-size: 1em;
    color: white;
    background: linear-gradient(to bottom, #3498db, #004b8b);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

button:not(.dropbtn):not(.actions-btn):not(.geo-btn):hover, #add-comparison:hover/*, button:active, #add-comparison:active*/ {
    background: linear-gradient(to bottom, #5faee3, #0066b3); /* Lightens both colors */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3); /* Slightly stronger shadow */
    transform: scale(1.02); /* Tiny pop effect */
}

button:not(.dropbtn):not(.actions-btn):not(.geo-btn):active, #add-comparison:active{
    background: linear-gradient(to bottom, #297fbf, #003366); /* Slightly darker */
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.5); /* Creates "pressed" effect */
    transform: scale(0.98); /* Slightly compressed */
}

a.button-secondary, .button-secondary {
    display: inline-block;
    padding: 8px 10px;
    font-size: 1em;
    color: #0077b6;
    background: linear-gradient(to bottom, #3498db20, #004b8b40);
    border: 1px solid #3498db;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    text-align: center;
    text-decoration: none;
}

.disabled {
    pointer-events: none;
    background: #eeeeee!important;
    border: #dddddd 1px solid !important;
    color: #777 !important;
}

.button-secondary > a {
    text-decoration: none;
    color: #0077b6;
}

.button-secondary:hover {
    background: linear-gradient(to bottom, #3498db30, #004b8b60) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) !important;
}

.button-secondary:active {
    background: linear-gradient(to bottom, #3498db50, #004b8b70) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3) !important; /* Creates "pressed" effect */
}



.actions {
  margin-left: auto;
    display:none;
}

.actions-btn {
  font-size: 20px;
  box-shadow: none;
    background: transparent;
    color: #333;
}
.actions-btn:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    transform: none;
}

.actions-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-width: 160px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.actions-menu a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
}

.actions-menu a:hover {
  background: #f0f0f0;
}

.actions.show .actions-menu {
  display: block;
}

.data-table {
    table-layout: fixed;
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    margin-bottom: 100px;
}

.data-table td {
    padding: 5px;
    border-right: 1px solid silver;
    border-bottom: 1px solid silver;
}

td.center {
    text-align: center;
}

.data-table button {
    padding: 5px;
    width: 100%;
}

.story-card a.action {
    margin-top: 1em;
    display: inline-block;
    color: var(--teal);
    font-weight: 500;
    text-decoration: none;
    padding: 2px 4px;
    margin-left: -4px;
    border-radius: 10px;
}

.story-card a.action:hover {
    background: #00737e09;
}

.story-card a.title-link, .story-card a.title-link:visited {
    color: var(--teal);
    text-decoration: none;
}



/* Works in most browsers */
.no-scrollbar, #nav {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

.no-scrollbar::-webkit-scrollbar, #nav::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Opera */
}

.header button {
    background: transparent;border: none;box-shadow: none;
}

#add-comparison.open:hover {
    background: var(--teal-trans);
    color: var(--teal);
}

#subhead button {
    margin-top:0em;
    padding: 5px 10px;
}

#subhead button i, .header button i {
    margin-right:5px;
}

.viz_subtitle {
    font-size:large;
    font-weight: normal;
    margin-block-start:.5em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1.67em;
}

.viz_details {
    font-size:x-small;
    color: #777;
}

.viz-holder, .canvas-holder {
    height:45vh;
    max-height:400px;
}

.brief-report .viz-holder, .brief-report .canvas-holder {
    height:30vh;
    max-height:400px;
}

.domain-tag {
    text-transform: uppercase; font-weight: bold; opacity: 0.6;
    margin:0;
    font-size: 0.8em;
}

.brief-report .domain {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-template-rows: masonry;
    grid-gap: 1em;
}

.brief-report .viz {
    margin:0;
    padding: 2em;
}

.brief-report .viz_title, .brief-report .viz_subtitle {
    font-size: 1em;
}

.print-holder {
    display: inline-block;
    width:100%
}

.blurb {
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 2em;
}

.statwrapper {
    margin-right:1em;
    padding: .5em 1em;
    margin-bottom:2em;
    border-left: 3px solid;
    width: calc(33% - 3.33em);
    min-width:auto;
}

.hide-print .statwrapper, .onepager .statwrapper{
border-left:0;
    padding:7px;
    width: 100%;
background: #f5f5f5;
padding: 7px;
border-radius: 7px;
}

.statwrapper:last-child {
    margin-right:0;
    border-right:0;
}


.statlabel {
}

.stat {
    font-size: x-large;
    font-weight:700;
}

.expected {
    font-size: .8em;
    padding-right: 1em;
}

.export {
    margin-right:.5em;
    text-decoration: none;
    cursor: pointer;
    font-size: 1em;
    padding: .6em .8em .6em .6em;
    border-radius: 3px;
    color: #9aa3aa;
/* Removes the default <select> styling */
-webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-top: 2em;
    display:inline-block;
    border: 1px solid #eeeeee;
    box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.1);
    transition:all .2s ease-out;
}
a.export:visited {
    color: #9aa3aa;
}
.export:hover {
    border: 1px solid #aaaaaa;
    box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.2);
    color: var(--teal);
}

.hide-print {display:block;}
.for-print {display:none;}

/* slide styles */
.viz_only {background:white;}
.viz_only #main {margin:0; width:100%; max-width:100%;}
.viz_only .viz {margin:0; box-shadow: none;}
.viz_only .statwrapper {width: calc(30% - 3.33em)}

.for-mobile {
    display: none;
}



#comparison-select-block {
    padding-left: 3em;
    border-left: 2px dotted var(--teal-semitrans);
    width: 300px;
}

#view-report-select-block {
    width: 300px;
}

.footer {
    background-color: var(--blue);
    color: #fff;
    padding: 2em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1em;
    margin-top:8em;
    clear:both;
    position: absolute;
width: 100%;
box-sizing: border-box;
}
.footer .column p {
    line-height: 1.6;
}

.footer a {
    color: white;
}

.popup-list {
    margin-block-start: 0;
    margin-left:0;
    padding-inline-start:0;
    list-style-type: none;
}

#map {
    height: calc(100vh - 63px);
    top:0;
}

#map-loader-text {
    color:#bbbbbb;
}

#map-loader {
    position: absolute;
    left: 50%;
    top: calc(50% + 100px);
    transform: translate(-50%, -50%);
    z-index: 500;
}

#subhead.map-tools {
    top: 65px;
    z-index: 400;
    background: #ffffffaa;
    margin: 1em 1em;
    width: calc(100% - 2em);
}

#legend {
    padding: 1em;
    margin-right: 3%;
    right: 0;
    bottom: 20px;
    background: #ffffffaa;
    border-radius: 5px;
    position: fixed;
    z-index: 500;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.03),
    0 4px 2px rgba(0, 0, 0, 0.03),
    0 8px 4px rgba(0, 0, 0, 0.03),
    0 16px 8px rgba(0, 0, 0, 0.01),
    0 32px 16px rgba(0, 0, 0, 0.01),
    -32px 32px 132px #004b8b15,
    32px 32px 132px #95215e10;
}

#legendBar {
    height: 20px;
    margin-top:10px;
}
.legendSlice {
    height: 20px;
    width: 2px;
    display: inline-block;
}
.legendLabel {
    font-size:small;
    width:31.5%;
    display: inline-block;
}
#legendLabelMid {
    text-align: center;
}
#legendLabelHi {
    text-align: right;
}
#legendTitle, #legendSubtitle {
    font-size: small;
    display:inline-block;
}
#legendSubtitle {
    color:gray;
}
#nav .mobile-nav-open {
    display: none;
}
body.map .footer {display: none;}

#more-options {
    float:right;
}


.map-tools .fa-ellipsis {
    float:right;cursor:pointer;margin-top:6px;color:gray;display: none;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    column-gap: 3em;
    row-gap: 1em;
}


.lessongrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, auto));
    column-gap: 1em;
    row-gap: 1em;
    margin-bottom: 3em;
}
.lesson {
    border-style: dotted;
    border-width: 1px;
    cursor: pointer;
    box-sizing: border-box;
    margin:0!important;
}
.lesson:hover {
    border-style: solid;
}

.lesson img.gif {
    display: none;
}

.lesson:hover img {
    mix-blend-mode: normal;
}
/*
.lesson:hover img.png {
    display: none;
}

.lesson:hover img.gif {
    display: inline-block;
}
 */

.lesson img {
    mix-blend-mode: multiply;
}
.lesson p {
    margin-top:0;
    margin-bottom: .5em;
}
.lesson p:nth-child(2) {
    font-weight: 700;
}
.lessontag {
    font-size: small;
    opacity: 0.7;
    display: inline;
}

table.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-family: system-ui, sans-serif;
}

table.blog-table th {
  background-color: var(--teal-trans);
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
}

table.blog-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}

table.blog-table th:first-child {
  text-align: left;
}

table.blog-table td:not(:first-child) {
  text-align: center;
}

table.blog-table tr:hover {
  background-color: var(--teal-trans);
}

@media only screen and (max-width: 1000px) {
    .lessongrid {
        grid-template-columns: repeat(2, minmax(250px, auto));
    }
    .header-buttons {display:flex;gap:1em;}
    .header-buttons .button-secondary {margin:1em 0 0 0;flex:1;font-size:14px;}
    .header-buttons i {display:block;}
}
/*print styles*/
@media print {
    .footer{display:none;}
    body{background:none;}
    .center, .header {width:calc(100% - 90px);margin:0;}
    #nav, select-block, #spacer, .sidebar {display:none;}
    .for-print {display:block;}
    .hide-print {display:none;}
    #print-logo {width:50px;float:right;}
    .header h1 {font-size:1.1em; font-weight:normal}
    .header h2 {font-size:small; font-weight: 700}
    .viz {border:none;box-shadow:none;padding:0;margin:1em 0;}
    .viz_title {font-size:1em;}
    .viz_subtitle {font-size:small}
    .viz img {margin-right:30px;margin-bottom:1.5em;}
    .viz p {font-size:small;margin-bottom: 0;}
    .viz_details p {font-size:7px;}
    .viz {page-break-inside:avoid;clear:both;}
    /*.domain {page-break-before: always;}
    .domain:first-child {page-break-before: avoid;}
    .domain {page-break-inside:avoid;}*/
    .viz-holder, .canvas-holder, canvas {height:auto!important;}
    #subhead.map-tools {
        position: absolute;
        padding: 1em 1em 0 1em;
        background: white;
        max-width: 600px;
        width:auto;
        top: 35px;
        margin-left: 15px;
        font-size: 1.1em;
    }
    #subhead.map-tools select {
        background:none;
        border:none;
        width:auto;
        padding:0 2px 0 7px;
        font-weight:bold;
    }
    #more-options {
        display: none;
    }
    #legend {background:white;box-shadow:none;}
    .leaflet-control-zoom {display:none;}
    #map {width:100vw;height:100vh}
    #mapDataDownload {display:none;}


    #subhead {
        opacity:1.0!important;
        display:block!important;
        position:relative;
        box-shadow: none;
        padding:0;
        margin: -1em 45px 2em;
        margin-block-end: 2em;
        font-size:small;
        font-weight: bold;
        top:0;
    }
    #summary {font-size: small;}

    .summary-box {
        background: none;
        padding:0;
    }
    .summary-box h4 {
        display:none;
    }
    #subhead p {
        margin-block-end: 1em;}
    #subhead select-block {
        display:none!important;
    }
    body:not(.viz_only) .statwrapper {
        clear:both;
        margin-bottom: .5em;
        width:100%;
        margin-right: 0;
        padding: .2em 1em;
    }
    .statlabel, .expected {font-size:xx-small;}
    .stat {font-size:small;}
    .print-holder { display:flex; gap:1em;}
    /* fixme: width of chart for print */
    /*.viz-holder {flex-basis: 60%;}*/
    /*.stat-holder {flex-basis: 40%;}*/
    .domain-header {margin-top:0; font-size:1em;}

    .viz-holder, .canvas-holder, canvas {
        max-width: 500px;
        max-height: 180px;
    }
    .viz-holder {margin-bottom: 1em;}
    .stat-wrapper {
        min-width: 40%;
    }
    .brief-report .viz_title, .brief-report .viz_subtitle {
        border: none;
        margin-bottom: 0;
        padding:0;
    }
    .brief-report .viz {
        border-top: 1px solid silver;
        border-radius: 0;
        padding: .5em 0;
    }
    #subhead p { float:none; }
    .brief-report .viz-holder {}
    .brief-report .viz-holder, .brief-report .canvas-holder, .brief-report canvas {
        max-width: 500px;
        max-height: 200px;
    }

    body[data-report_id="10"] #subhead {
        margin-block-end: 0px;
    }
    body[data-report_id="10"] .viz {
        margin:0;
    }
    body[data-report_id="10"] .viz_title {
        font-size: small;
    }
    body[data-report_id="10"] .viz-holder {
        margin-bottom: 30px;
    }
    body[data-report_id="10"] .domain-header {
        border-top:none;
        border-left:4px solid;
        padding-top:0;
        padding-left:10px;
    }
    body[data-report_id="10"] .domain:first-child .viz-holder,
    body[data-report_id="10"] .domain:first-child .canvas-holder,
    body[data-report_id="10"] .domain:first-child canvas {
        max-height: 150px;
    }

    body[data-report_id="10"] .viz {
        margin: 2em 0;
    }
    body[data-report_id="10"] .domain:first-child :nth-child(-n+3 of div.viz) {
        margin: 0;
    }
    .domain {
        page-break-before: always;
    }
    .domain:first-child {
        page-break-before: avoid;
    }
    body[data-report_id="10"] .viz_subtitle {
        padding-bottom:.5em;
        margin-block-end: .5em;
    }
    .brief-report .viz_title {font-size:small}
    .brief-report .viz_subtitle {font-size:small; margin:0 0 .5em 0;}
    .brief-report .viz p {font-size:small;}
    .brief-report .viz_details p {font-size:small;}
    .brief-report .viz .domain-tag {font-size:x-small;margin-top:5px;}
    .brief-report .statlabel, .brief-report .expected {font-size:small;}
    .brief-report .stat {font-size:small;}
    .brief-report .viz_details p {font-size:x-small;}
}
@media only screen and (min-width: 1000px) {
    #subhead-buttons {
    }
}
@media only screen and (max-width: 1000px) {
    .mobile {display: initial;}
    .nomobile {display: none!important;}
    #subhead {
        margin: 1em 2%;
        width: 96%;
        top: 0px;
    }

    #brief-wrapper {
        grid-template-columns: 1fr;
        grid-gap: 0;
    }

    #nav {
        z-index: 2000;
        height: 95vh;
        width: auto;
        position: absolute;
        top: 0;
        transform: translate(-100%) scale(.95);
        transform-origin: top right;
        transition: transform .2s cubic-bezier(.22,1,.36,1);

    }
    #spacer {display: none;}
    #nav.open {
        overflow-y: scroll;
        overflow-x: hidden;
        transform: translate(0%);
        box-shadow: 1px 3px 8px 1px rgba(0,0,0,0.2);
        margin: 1em;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 1);
    }

    #nav .mobile-nav-open {
        display: block;
        cursor: pointer;
        position: absolute;
        right: 0;
        top: 12px;
        transform: translate(26px);
    }

    #nav .mobile-nav-open .open {
        display:block;
    }

    #nav .mobile-nav-open .close {
        display:none;
    }

    #nav.open .mobile-nav-open .open {
        display:none;
    }

    #nav.open .mobile-nav-open .close {
        display:block;
    }

    #logo {
        width: 100%;
        max-width: 50px
    }

    #nav a {
        display: block;
        width: 100%;
        text-decoration: underline !important;
        color: var(--teal) !important;
        box-sizing: border-box;
    }


    #nav.open .mobile-nav-open {
        transform: translate(-10px);
    }

    #nav * {
        clear:both;
        float:none !important;
    }

    #nav ul {
        margin:0;
    }
    #nav a:nth-child(2) {
        margin-top: 1em!important;
    }

    .center, .header {
        margin-top: 2em;
        padding: 0 15px;
    }

    select-block {
        margin: 0em 3em 1em 0;
    }

    #comparison-select-block {
        padding-left: 0;
        border-left: none;
        padding-top: 1.2em;
        margin-top: 1.2em;
        border-top: 2px dotted var(--teal-semitrans);
    }

    #comparison-select-block, #view-report-select-block, #comp-link {
        width: 100%!important;
    }

    .pop {
        display: table;
    }

    .header h1 {
        font-size: 2em;
    }

    .header h2 {
        font-size: 1.2em;
    }

    .domain-header {
        margin-top: 2em;
        padding-top: 1em;
    }

    .viz {
        margin: 1em 0;
        padding: 1.3em;
    }



    .export {
        margin-top: 1em;
        font-size: .8em;
        padding: 8px 11px;
    }

    .viz-details {
        font-size: xx-small;
    }

    #subhead p {
        float: none;
    }

    #subhead button:not(.actions-btn) {
        float: left;
        margin-right: 1em;
        margin-left: 0;
        margin-bottom: 0.8em;
    }

    .story img, .story iframe {
        margin-left: calc(10vw * -1);
        width: 100vw;
    }

    .story .caption, .story iframe, .story .narrow, .story h1, .story h2, .story h3, .story h4, .story h5, .story h6, .story p, .story ul, .story-meta {
        margin-left: auto;
        width: calc(100% - 0px);
        max-width: 600px;
    }

    .story .big-banner + h2 {
        font-size: 3em;
    }

    .story p, .story ul {
        font-size:1.125em;
        line-height:1.75em;
    }

    #subhead.map-tools {
        top: 24px;
        width: calc(100% - 24px);
        font-size: x-small;
    }

    .map-tools .fa-ellipsis {
        display: inline-block;
        font-size: small;
    }

    .leaflet-control-zoom {
        display:none;
    }

    #legend {
        margin-left: 3%;
        margin-right:auto;
        left: 0;
        right: initial;
    }

    #legend, #legenTitle, #legendSubtitle, .legendLabel {
        font-size: x-small;
    }

    #map {
        height: 100vh;
    }

    #more-options {
        float:none;
        max-height: 0;
        overflow:hidden;
    }

    #more-options.open {
        max-height: 100000px;
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(1, minmax(300px, 1fr));
    }

}
@media only screen and (max-width: 600px) {

    .lessongrid {
        grid-template-columns: repeat(1, minmax(auto, auto));
    }

    #subhead {
        font-size: 0.8em;
    }

    .for-mobile {
        display: block;
    }

    .hide-mobile {
        display: none;
    }

    .hide-print .statwrapper {
        clear: both;
        width: 100%;
        border-right: 0;
        margin-right: 5px;
        margin-bottom: 1em;
        font-size: 1em;
        padding: 7px;
        border-radius: 7px;
        background: #f5f5f5;
    }

    .viz_title, report-title {
        font-size: medium;
    }

    .viz_subtitle {
        font-size: small;
    }

    .stat {
        font-size: medium;
    }

    .statlabel, .expected {
        font-size: x-small;
    }

    row { display: block!important; }

    button.latest-reports {
        font-size: small;
        padding: 10px;
    }

    #bubble-legend-wrapper {
        right: 15px!important;
    }

    .stories.feed {
        padding: 0;
    }

    .story-card {
        margin: 1em 0;
    }

    #map-loader-text {
        display:none!important;
    }

}

@media only screen and (min-width: 800px) {
    .stories.center {
        display: grid;
        grid-template-columns: minmax(100px, 1.2fr) minmax(200px, 2fr) minmax(100px, 1fr);
        column-gap: 50px;
    }
    .stories.feed, .stories.side {
        /*display:inline-grid;*/
    }

    .stories.feed {
        max-width: calc(1200px - 455px);
    }

    .stories.side {
        display: block;
    }
}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
    translate: -50%;
    margin-left:50%;
}
.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--teal-semitrans);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

.lds-grid {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-grid div {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  animation: lds-grid 1.2s linear infinite;
}
.lds-grid div:nth-child(1) {
  top: 8px;
  left: 8px;
  animation-delay: 0s;
}
.lds-grid div:nth-child(2) {
  top: 8px;
  left: 32px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(3) {
  top: 8px;
  left: 56px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(4) {
  top: 32px;
  left: 8px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(5) {
  top: 32px;
  left: 32px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(6) {
  top: 32px;
  left: 56px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(7) {
  top: 56px;
  left: 8px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(8) {
  top: 56px;
  left: 32px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(9) {
  top: 56px;
  left: 56px;
  animation-delay: -1.6s;
}
@keyframes lds-grid {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
