html {
  width: 100vw;
  max-width: 100%;
}

body {
  color: #333;
  background: white;
  font-family: "Open Sans", sans-serif;
  max-width: 100vw;
  margin: 0;
  line-height: 1.6;
}

.nav {
  background: linear-gradient(135deg, #003865 0%, #004b88 60%, #005ca8 100%);
  display: flex;
  justify-content: space-between;
  border-bottom: 4px solid #78be21;
}

.nav img {
  height: 3rem;
  margin: auto 0 auto 2rem;
}

.nav .links {
  display: flex;
  justify-content: right;

  ul#links-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    column-gap: 0.5rem;
    margin-right: 3rem;
    padding-inline-start: 0;
    padding-inline-end: 0;

    > li > a {
      color: white;
      text-decoration: none;
      font-size: 16px;
      padding: 12px;
      border-radius: 0.5em;
      display: inline-block;
      transition: background-color 0.2s;

      &:hover {
        background-color: rgba(255, 255, 255, 0.1);
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .nav {
    flex-direction: column;
    justify-content: center;

    img {
      width: 40%;
      margin: 0.5rem auto 0 auto !important;
    }

    .links {
      justify-content: center !important;
    }
  }

  li.dropdown {

    ul.dropdown-content {
      left: 50%;
      transform: translateX(-50%);
    }
  }

  .footer-column {
    flex: 0 !important;
  }

  .subscription-input {
    flex: 0 !important;
    margin: auto !important;
    width: 90% !important;
  }
}

@media screen and (max-width: 461px) {
  .nav img {
    width: 70%;
  }

  nav.links {
    flex-direction: column;
    margin: auto;

    ul#links-list {
      margin-right: 0 !important;
    }

    .header-search {
      margin: 0 auto 1rem auto;
    }
  }
}

@media screen and (max-width: 375px) {
  .nav img {
    width: 80%;
  }
}

@media screen and (max-width: 320px) {
  .nav img {
    width: 95%;
  }

  .layout-shell {
    padding: 0 !important;

    h2.section-title, div.category-columns, div.dataset-columns {
      margin-left: 0.5rem !important;
      margin-right: 0.5rem !important;
    }
  }
}

















































.header-search {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
}

.header-search-form {
  display: flex;
  align-items: stretch;
}

.header-search-input {
  padding: 0.5rem 1rem;
  font-size: 14px;
  border: none;
  border-radius: 6px 0 0 6px;
  outline: none;
  width: 180px;
  font-family: "Open Sans", sans-serif;

  &::placeholder {
    color: #999;
  }

  &:focus {
    box-shadow: 0 0 0 2px rgba(120, 190, 33, 0.5);
  }
}

.header-search-btn {
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-weight: 600;
  background-color: #408600;
  color: white;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
  transition: background-color 0.2s ease;

  &:hover {
    background-color: darken(#408600, 10%);
  }

  &:focus {
    outline: 2px solid white;
    outline-offset: 2px;
  }
}


.page-header {
  background-color: #003865;
  display: flex;
  align-content: center;
  justify-content: center;
  color: white;
  padding: 2rem 4rem;

  .logo img {
    width: 10rem;
    height: auto;
  }

  h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 600;
  }

  .description {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
  }
}


.statistics {
  background: #f8f9fa;
  padding: 2rem 4rem;
  border-bottom: 1px solid #dee2e6;

  h2 {
    color: #003865;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;

    .stat-item {
      text-align: center;
      padding: 1rem;
      background: white;
      border-radius: 4px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);

      .stat-number {
        display: block;
        font-size: 2.5rem;
        font-weight: 700;
        color: #003865;
        line-height: 1;
      }

      .stat-label {
        display: block;
        margin-top: 0.5rem;
        color: #666;
        font-size: 1rem;
      }
    }
  }
}


.breadcrumb {
  background: #f8f9fa;
  padding: 1rem 2rem;
  border-bottom: 1px solid #dee2e6;

  ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;

    li {
      display: flex;
      align-items: center;

      &:not(:last-child)::after {
        content: "›";
        margin: 0 0.5rem;
        color: #666;
      }

      a {
        color: #003865;
        text-decoration: none;

        &:hover {
          text-decoration: underline;
        }
      }

      span {
        color: #666;
      }
    }
  }
}


.markdown-content {
  display: flex;
  justify-content: space-between;
  line-height: 1.8;
  margin: 2rem auto;
  padding-right: 2rem;

  h1, h2, h3, h4, h5, h6 {
    color: #003865;
    margin-top: 0 !important;
    margin-bottom: 1rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  p {
    margin-bottom: 1rem;
  }

  a {
    color: #005ca8;

    &:hover {
      text-decoration: none;
      color: #003865;
    }
  }

  ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
  }

  li {
    margin-bottom: 0.5rem;
  }
}


.metadata {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);

  span {
    display: flex;
    align-items: center;
  }

  .category {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
  }
}


.page-footer {
  background: #495057;
  color: white;
  padding: 2rem 4rem;
  margin-top: 4rem;

  p {
    margin: 0.5rem 0;
    opacity: 0.9;
  }
}


a {
  color: #3D792A;
  transition: all 0.2s;
}


@media (max-width: 768px) {
  .page-header {
    padding: 1.5rem 1rem;

    h1 {
      font-size: 1.65rem;
    }
  }

  .content {
    padding: 0 1rem;
  }

  .statistics {
    padding: 1.5rem 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header-search {
    margin-right: 0.5rem;
  }

  .header-search-input {
    width: 120px;
    padding: 0.4rem 0.75rem;
    font-size: 13px;
  }

  .header-search-btn {
    padding: 0.4rem 0.75rem;
    font-size: 13px;
  }
}

.divider {
  width: 1px;
  background-color: #e8e8e9;
}

button.accordion, button.about-accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: solid 1px;
  border-radius: 4px;
  transition: .4s;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 1rem;
}

button.accordion + div.panel {
  display: none;
}
button.about-accordion + div.panel {
  display: none;
}

.dropdown {
  position: relative;
  display: inline-block;
  color: white;

  ul {
    min-width: 15em;
    filter: drop-shadow(0.25rem 0.25rem 0.75rem grey);
    z-index: 2;
  }
}

.county-reports {

}

.dropbtn {
  background-color: transparent;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 0.5em;
  transition: background-color 0.2s;
  line-height: 1.6;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0; /* Align to the right of the parent */
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background-color: white;
  min-width: 350px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 1000;
  padding: 1rem;
  list-style: none;
  max-height: 80vh;
  overflow-y: auto;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border: 1px solid #d9e3f0;
  background: #f8fbff;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #eaf1ff;
  border-color: #003865;
  transform: translateX(4px);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown.active .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: rgba(255, 255, 255, 0.1);
}

.viz-container {
  margin: 1.5rem 0;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 4px;
  padding: 0.5rem 0.75rem 0.75rem 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.viz-frame {
  width: 100%;
  border: 0;
  display: block;
  background: #fafafa;
}

.viz-section {
  margin-top: 2rem;
}

.viz-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e6ea;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.viz-tab-btn {
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px 4px 0 0;
  color: #003865;
  transition: background .2s, color .2s;

  &.active {
    background: white;
    border-color: #dee2e6 #dee2e6 white #dee2e6;
    color: #003865;
  }

  &:hover { background: white; }
}

.viz-tab-panels-wrapper { border: 1px solid #dee2e6; border-top: 0; background: #fff; }

.viz-tab-panels { display: none; &.active { display: block; } }

.viz-flex { display: flex; gap: 1.5rem; align-items: flex-start; }

.viz-sidebar { width: 240px; border-right: 1px solid #f1f3f5; padding: 1rem 0.5rem 1rem 0; }

.viz-sidebar h3 { margin-top: 0; font-size: 1.1rem; font-weight: 700; color: #003865; }

.viz-list { list-style: none; margin: 0; padding: 0; }
.viz-list li { padding: 0.5rem 0.75rem; margin: 0 0 0.25rem 0; border-radius: 4px; cursor: pointer; font-size: .9rem; line-height: 1.2; background: #f8f9fa; border: 1px solid #e9ecef; }
.viz-list li:hover { background: #e9ecef; }
.viz-list li.active { background: #003865; color: white; font-weight: 600; border-color: #003865; }

.viz-display { flex: 1; padding: 1rem 0 1rem 0; }

.viz-wrapper { display: none; }
.viz-wrapper.active { display: block; animation: fadeIn .25s ease-in; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }

.viz-inline-title { margin: 0 0 .5rem 0; font-size: 0.95rem; color: #003865; }

button.accordion.open { background: #003865; color: white; }
button.accordion.open + div.panel { display: block !important; }
button.about-accordion.open {
  background: #003865; color: white;
}
button.about-accordion.open + div.panel {
  display: block !important;
}

.page-body { min-height: 100vh; display: flex; flex-direction: column; }
.page-footer { margin-top: auto; }

/* Dataset Page Specific Styles */
.topic-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;

  .about {
    .topic-about h3 {
      color: #003865;
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }

    p {
      margin: 0.5rem 0;
      line-height: 1.7;
    }
  }
}

.topic-heading {
  color: #003865;
  font-size: 2rem;
  margin: 1.5rem 0 1rem 0;
}

.dataset-selector {
  margin: 1rem 0;

  h2 {
    font-size: 1rem;
    color: black;
    margin-right: 0.5rem;
  }

  select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    color: #003865;
    font-weight: 600;

    &:hover {
      border-color: #003865;
    }

    &:focus {
      outline: none;
      border-color: #003865;
      box-shadow: 0 0 0 3px rgba(0, 56, 101, 0.1);
    }
  }
}

.tabs {
  display: flex;
  gap: 0.25rem;
  margin: 1rem 0 0 0;
}

.tablink {
  background: #f1f3f5;
  border: 2px solid #dee2e6;
  border-bottom: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #003865;
  transition: background 0.2s, color 0.2s;
  border-radius: 4px 4px 0 0;

  i {
    margin-right: 0.5rem;
  }

  &:hover {
    background: #e9ecef;
  }

  &.active {
    background: white;
    border-color: #e1e8ed #e1e8ed transparent #e1e8ed;
    color: black;
  }
}

.tabbedcontent {
  display: none;
  padding: 1rem;
  background: white;

  &.active {
    display: block;
    
  }
}

.dataVizContainer {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.chart-select {
  h3 {
    font-size: 1rem;
    color: #003865;
    font-weight: 700;
  }
}

.data-visualization-select-options {
  list-style: none;
  padding: 0;
  margin: 0;

  .innerLi {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0 1rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #97999b;
    transition: all 0.2s;
    font-size: 1rem;

    &:hover {
      background: #e9ecef;
    }

    &.selected {
      background: #e2e8ed;
      color: black;
      font-weight: 600;
      border-color: #e1e8ed;
      box-shadow: 5px 5px 10px rgb(171, 187, 201);
    }
  }
}

.viz {
  display: none;

  &.show {
    display: block;
  }

  .headerClass {
    color: #003865;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .viz-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;

    @media (max-width: 992px) {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;

      .controls {
        margin-top: 0.5rem;
      }
    }

    @media (max-width: 576px) {
      gap: 0.75rem;

      .controls {
        margin-top: 0.4rem;
      }
    }

    .headerClass {
      flex: 1;
      min-width: 0;
      margin-bottom: 0;
      word-break: break-word;
    }

    .controls {
      flex-shrink: 0;
      margin-top: 0.25rem;
    }
  }

  .subtitle {
    background: #e2e8ed;
    padding: 0.75rem 1rem;
    border-left: 4px solid #003865;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;

    p {
      margin: 0;
      color: #333;
    }
  }

  .plot {
    width: 100%;
    min-height: 520px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: white;
  }

  .footnote {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-left: 3px solid #ffc107;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;

    p {
      margin: 0;
    }
  }
}

.controls {
  .dataControls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;

    @media (max-width: 576px) {
      gap: 0.4rem;
    }
  }

  .dataControl-member {
    background: #e1e8ed;
    color: #003865;
    border: 2px solid #003865;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    white-space: nowrap;

    @media (max-width: 768px) {
      padding: 0.4rem 0.8rem;
      font-size: 0.85rem;
    }

    @media (max-width: 576px) {
      padding: 0.35rem 0.7rem;
      font-size: 0.8rem;
    }

    &:disabled {
      opacity: 0.5;
      cursor: default;
    }

    &:hover {
      background: darken(#003865, 10%);
    }

    i {
      margin-left: 0.25rem;
    }
  }

  .data-table {
    margin-top: 1rem;
    overflow-x: auto;

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.9rem;

      th, td {
        padding: 0.75rem;
        text-align: left;
        border: 1px solid #dee2e6;
      }

      th {
        background: #f8f9fa;
        font-weight: 600;
        color: #003865;
      }

      tr:hover {
        background: #f8f9fa;
      }
    }
  }
}

#query {
  #Query-Header {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .query-table {
    overflow-x: auto;
  }
}

.last-updated {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
  color: #6c757d;
  font-size: 0.9rem;

  hr {
    display: none;
  }
}

/* CSV Tables Styling */
.csv-table-container {
  margin: 1rem 0;
  overflow-x: auto;
}

.csv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;

  thead {
    background: #f8f9fa;

    th {
      padding: 0.75rem;
      text-align: left;
      border: 1px solid #dee2e6;
      font-weight: 600;
      color: #003865;
    }
  }

  tbody {
    tr {
      &:hover {
        background: #f8f9fa;
      }

      td {
        padding: 0.75rem;
        
        
      }
    }
  }
}

.dataVizContainer {
  .chart-select, .map-select {
    min-width: calc(30% - 29px);
    max-width: calc(30% - 29px);
    margin-left: 0.5rem;
  }

  .visualization-display {
    min-width: calc(70% - 29px);
    max-width: calc(70% - 29px);
    margin-right: 0.5rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dataVizContainer {
    flex-direction: column;

    .chart-select, .map-select {
      width: 100% !important;
      padding-right: 0 !important;

      .data-visualization-select-options {
        height: auto !important;
        max-height: 300px;
      }
    }

    > div[style*="width: 75%"] {
      width: 100% !important;
    }
  }

  .tabs {
    flex-wrap: wrap;
  }

  .topic-heading {
    font-size: 1.65rem;
  }

  .visualization-display {
    width: 90% !important;
    margin: 0 auto 0.5rem auto !important;
  }
}

@media (max-width: 992px) {
  .dataVizContainer {
    flex-direction: column;

    .chart-select, .map-select, .visualization-display {
      width: 100% !important;
      min-width: 0;
      max-width: none;
      margin: 0 !important;
    }

    .visualization-display {
      margin-top: 0.5rem !important;
    }

    .chart-select, .map-select {
      margin-bottom: 0.5rem;
      padding: 0.5rem !important;
    }

    .data-visualization-select-options {
      height: auto !important;
      max-height: 250px;
      padding: 0.5rem !important;
    }

    .data-visualization-select-options .innerLi {
      margin: 0.25rem 0.5rem 0.5rem 0.5rem;
      padding: 0.6rem 0.75rem;
    }
  }

  .viz-sidebar {
    width: 100%;
    border-right: none;
    padding: 0.5rem 0 0 0;
  }

  .viz .viz-header-container {
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
  }

  .viz .viz-header-container .headerClass {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .dataVizContainer .chart-select,
  .dataVizContainer .map-select {
    width: 100% !important;
    padding: 0.75rem !important;
    margin-bottom: 1rem;
  }

  .data-visualization-select-options {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
  }

  .data-visualization-select-options .innerLi {
    margin: 0.35rem 0.25rem 0.5rem 0.25rem;
    padding: 0.75rem;
    font-size: 0.95rem;
  }


  .viz .viz-header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .viz .viz-header-container .headerClass {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .viz .viz-header-container .controls {
    margin-top: 0.5rem;
  }

  .controls .dataControls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .controls .dataControl-member {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
    justify-content: center;
  }

  .main-content-container {
    margin-top: 0.5rem !important;
  }

  .topic-heading {
    margin-top: 0.75rem;
  }

  .tabbedcontent > .dataVizContainer > div[style*="min-height: 100%"] {
    display: none;
  }
}

@media (max-width: 576px) {
  .dataVizContainer .chart-select,
  .dataVizContainer .map-select {
    padding: 0.5rem !important;
  }

  .data-visualization-select-options {
    max-height: 180px;
  }

  .data-visualization-select-options .innerLi {
    padding: 0.65rem 0.6rem;
    font-size: 0.9rem;
    margin: 0.25rem 0.15rem 0.4rem 0.15rem;
  }

  .viz .viz-header-container {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .controls .dataControls {
    flex-direction: column;
    width: 100%;
  }

  .controls .dataControl-member {
    width: 100%;
    min-width: unset;
    padding: 0.5rem 0.75rem;
  }

  .main-content-container {
    margin-top: 0.25rem !important;
  }

  .topic-heading {
    margin-top: 0.5rem;
    font-size: 1.5rem;
  }

  .internal-nav-links {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .internal-nav-link {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
  }

  button.internal-nav-btn {
    font-size: 1rem;
    padding: 0.35rem;
  }
}

ul.undecorated {
  list-style: none;
  padding-left: 0 !important;
}

.topics {
  width: 50%;
  margin: 2rem auto;
}

#index-header {
  margin: 0 2rem;

  h1 {
    margin-bottom: 0;
  }

  p {
    margin: 0;
  }
}

div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-start {
  margin-right: 0;
}

div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-end:has(.dt-search) {
  margin-left: 0;
  width: 25%;
}

div.dt-container .dt-search {
  width: 100%;
}

div.dt-container .dt-search input {
  width: 75%;
  padding: 0.5rem;
}

div.dt-container select.dt-input {
  padding: 0.5rem;
}

div.dt-container .dt-paging .dt-paging-button.current {
  background: #9bcbeb !important;
  color: black !important;
}

div.dt-container .dt-paging .dt-paging-button:not(.current):not(.disabled):hover {
  background: #003865 !important;
  color: white !important;
}

div.dt-container .dt-paging div.dt-container .dt-paging .dt-paging-button.current:hover {
  color: white !important;
}

table#dataTable thead th {
  position: relative;
  background-image: none !important;
}

.data-control-member {
  background: #003865;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.data-control-member {
  background: #325f83;
}

li.outerLi {
  list-style: none;
  margin-right: 0.85rem;
}


.outerLi button {
  width: 100%;
  margin: 0 0 0.25rem 0;
  cursor: pointer;
  border-radius: 4px;
  background: #f8f9fa;
  border: 1px solid #97999b;
  transition: all 0.2s;
  font-size: 1rem;
  text-align: left;
  position: relative;
  padding: 1rem 2.5rem 1rem 1.25rem;
}

.outerLi button::after {
  content: "▼";
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  font-size: 0.8rem;
  color: #666;
}

.outerLi button:not(.active):hover {
  background: #e9ecef;
}

.outerLi button.active {
  background: #e3e5e7;
  font-weight: 600;
}


.outerLi button.active::after {
  transform: translateY(-50%) rotate(180deg);
}

ul.unstyled-list {
  list-style-type: none;
  padding-left: 0;
}

#chartSelect > li.innerLi,
#mapSelect > li.innerLi {
  margin: 0.25rem 0.85rem 1rem 0;
}


li.outerLi ul li.innerLi {
  font-size: 0.9rem;

  &:not(.selected):hover {
    background: #e9ecef;
  }
}

a#county-reports-link {
  color: white !important;
}


.site-footer {
  background: linear-gradient(135deg, #003865 0%, #004b88 60%, #005ca8 100%);
  color: #fff;
  padding: 3rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.15), transparent 60%),
  radial-gradient(circle at 85% 70%, rgba(255,255,255,0.1), transparent 65%);
  pointer-events: none;
}
.site-footer a { color: #cfe8ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-bottom: 2rem; }
.footer-column { flex: 1 1 220px; min-width: 200px; }
.footer-heading { font-size: 0.95rem; letter-spacing: .5px; margin: 0 0 .75rem; text-transform: uppercase; font-weight: 600; position: relative; }
.footer-heading::after { content: ""; display: block; width: 40px; height: 3px; background: #78be21; margin-top: .35rem; border-radius: 3px; }
.footer-links-list { list-style: none; margin: 0; padding: 0; }
.footer-links-list li { margin: .4rem 0; }
.footer-links-list li a { display: inline-flex; align-items: center; gap: .4rem; }
.footer-links-list li a::before { content: "\f105"; font-family: "Font Awesome 6 Free", "Arial", sans-serif; font-weight: 900; font-size: .7rem; opacity: .6; }
.footer-aside { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.accessibility-note { margin: 0; font-size: .85rem; opacity: .85; }
.subscription-form { display: flex; flex-direction: column; gap: .75rem; }
.subscription-fieldset { border: 1px solid rgba(255,255,255,0.25); padding: 1rem 1.25rem 1.25rem; border-radius: 6px; backdrop-filter: blur(2px); }
.subscription-legend { font-size: .9rem; font-weight: 600; padding: 0 .5rem; }
.subscription-fields { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
.subscription-input { flex: 1 1 320px; padding: .6rem .75rem; border-radius: 4px; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.15); color: #fff; }
.subscription-input:focus { outline: 2px solid #78be21; }
.subscription-button { flex: 0 0 auto; padding: .6rem 1rem; background: #78be21; color: #003865; font-weight: 600; border: none; border-radius: 4px; cursor: pointer; transition: background .2s; }
.subscription-button:hover { background: lighten(#78be21, 8%); }
.footer-bottom { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); text-align: center; }
@media (max-width: 768px) {
  .footer-columns { flex-direction: column; gap: 1.75rem; }
  .subscription-fields { flex-direction: column; align-items: stretch; }
  .subscription-button { width: 100%; }
}


.first-load-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 9999; }
.first-load-modal { background: #fff; width: min(92vw, 680px); max-height: 80vh; overflow-y: auto; border-radius: 10px; box-shadow: 0 8px 28px -6px rgba(0,0,0,0.35); position: relative; display: flex; flex-direction: column; }
.first-load-modal-header { padding: 1.25rem 1.5rem .75rem; border-bottom: 1px solid #e5e5e5; }
.first-load-modal-header h2 { margin: 0; font-size: 1.25rem; color: #003865; }
.first-load-modal-body { padding: 1rem 1.5rem 1.25rem; line-height: 1.55; font-size: .95rem; }
.first-load-modal-body p { margin: 0 0 .9rem; }
.first-load-modal-actions { padding: .75rem 1.5rem 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.modal-btn { background: #003865; color: #fff; border: none; padding: .65rem 1.1rem; border-radius: 5px; font-size: .9rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; }
.modal-btn.secondary { background: #6c757d; }
.modal-btn:hover { filter: brightness(1.12); }
.modal-close-x { position: absolute; top: .6rem; right: .6rem; background: transparent; border: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: #555; }
.modal-close-x:hover { color: #000; }
@media (prefers-reduced-motion: reduce) { .first-load-modal, .first-load-modal-overlay { transition: none; } }
@media (max-width: 640px) { .first-load-modal { width: 96vw; } }

/* =========================================
   MODERN INDEX PAGE STYLES (Add to bottom of style.scss)
   ========================================= */

/* Page Background reset for Index only */
.page-body.index-page {
  background: #fff;
  font-family: "Open Sans", sans-serif;
  color: #0f172a;
}

/* --- HERO SECTION --- */
.hero-gradient {
  background: linear-gradient(135deg, #003865 0%, #004b88 60%, #005ca8 100%);
}

.index-hero {
  padding-bottom: 2.5rem;
}

.hero-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0 1.5rem;
}

.hero-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 55px rgba(6, 24, 44, 0.18);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

/* Tablet/Desktop adjustments for Hero */
@media (min-width: 768px) {
  .hero-card {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
    padding: 2.5rem;
  }
}

.hero-card__logo {
  flex: 0 0 auto;
}

.hero-card__logo img {
  max-width: 200px;
  width: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.hero-card__content {
  flex: 1;
}

.hero-content h1 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #003865;
  font-weight: 700;
  margin-top: 0;
}

.hero-content p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 0;
}

/* --- MAIN LAYOUT --- */
.layout-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.index-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 4rem;
}

.section-title {
  border-bottom: 4px solid #003865;
  padding-bottom: 0.5rem;
  margin: 0 0 2rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #003865;
  display: inline-block;
  min-width: 300px;
}

/* --- 3-COLUMN LAYOUT --- */
.category-columns {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
}

.category-column {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .category-columns {
    flex-direction: column;
  }
  .category-column {
    width: 100%;
    flex: none;
  }
}

/* --- CATEGORY CARDS --- */
.category-card {
  background: #f8fbff;
  border: 1px solid #d9e3f0;
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: none;
}

.category-card:hover {
  background: #eaf1ff;
  border-color: #003865;
  transform: translateX(4px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.category-card.expanded {
  background: #fff;
  border-color: #003865;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.category-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
}

.category-card__icon {
  color: #64748b;
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

/* --- ACCORDION TOPICS LIST --- */
.category-topics {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.category-topics.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-topics ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-topics li {
  margin-bottom: 0.5rem;
}

.category-topic-link {
  color: #005ca8;
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.category-topic-link::after {
  content: '\f105';
  font-family: 'Font Awesome 6 Free', Arial, sans-serif;
  font-weight: 900;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
}

.category-topic-link:hover {
  color: #003865;
  text-decoration: none;
}

.category-topic-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.category-topic-link--disabled {
  color: #9aa5b5;
  cursor: default;
}

/* --- DATASETS A-Z LIST (UPDATED) --- */
.dataset-columns {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  /* Prevent wrapping on desktop to maintain strict 3-column grid */
  flex-wrap: nowrap;
}

.dataset-column {
  /* Force equal width (basis 0) so columns align perfectly regardless of text length */
  flex: 1 1 0;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dataset-link {
  display: block;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  border: 1px solid #d9e3f0;
  background: #f8fbff;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dataset-link:hover {
  background: #eaf1ff;
  border-color: #003865;
  transform: translateX(4px);
}

/* Responsive Stacking for Datasets (Matches Categories) */
@media (max-width: 900px) {
  .dataset-columns {
    flex-direction: column;
  }
  .dataset-column {
    width: 100%;
    flex: none;
  }
}

/* --- MODERN FOOTER --- */
.site-footer {
  background: linear-gradient(135deg, #003865 0%, #004b88 60%, #005ca8 100%);
  color: #fff;
  padding: 3rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.site-footer a {
  color: #cfe8ff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 200px;
}

.footer-heading {
  font-size: 0.95rem;
  margin: 0 0 .75rem;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
}

.footer-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #78BE21; /* MN Green */
  margin-top: .35rem;
  border-radius: 3px;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-list li {
  margin: .4rem 0;
}

.footer-links-list li a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.footer-links-list li a::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free", "Arial", sans-serif;
  font-weight: 900;
  font-size: .7rem;
  opacity: .6;
}

.footer-aside {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.subscription-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.subscription-fieldset {
  border: 1px solid rgba(255,255,255,0.25);
  padding: 1rem 1.25rem 1.25rem;
  border-radius: 6px;
}

.subscription-fields {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
}

.subscription-input {
  flex: 1 1 320px;
  padding: .6rem .75rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.subscription-button {
  flex: 0 0 auto;
  padding: .6rem 1rem;
  background: #78BE21;
  color: #003865;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.dtsb-button:focus-visible {
  border: 2px solid #005ca8 !important;
}

.dt-input:focus-visible {
  border: 2px solid #005ca8 !important;
  outline: none;
}

#aboutTheDataContainer.about-the-topic {

  h2 {
    font-size: 1.65rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  h5 {
    font-size: 1rem;
  }
}


.skip-link {
  position: absolute;
  top: -60px;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 4px 0;

  &:focus {
    position: static;
    outline: 2px solid #78be21;
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.1);
  }
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.single-dataset {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  background: white;
  color: #003865;
  font-weight: 600;
}

table.dataTable th.dt-type-numeric div.dt-column-header,
table.dataTable th.dt-type-numeric div.dt-column-footer,
table.dataTable th.dt-type-date div.dt-column-header,
table.dataTable th.dt-type-date div.dt-column-footer,
table.dataTable td.dt-type-numeric div.dt-column-header,
table.dataTable td.dt-type-numeric div.dt-column-footer,
table.dataTable td.dt-type-date div.dt-column-header,
table.dataTable td.dt-type-date div.dt-column-footer {
  flex-direction: row !important;
}

