body, .navbar { font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
#quarto-content { padding-top: 0; }
main.content { 
    margin-top: 0; 
    padding: 0; 
    grid-column: screen-start-inset / screen-end-inset !important;
}
.navbar-nav .nav-link { font-size: 0.95rem; }

/* Map page controls */
/* Map page controls */
.controls {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.controls > .cell,
.controls > div {
  flex: 0 0 auto;
  width: auto !important;
  margin: 0;
}
.controls form {
  margin: 0;
  width: auto !important;
  max-width: none;
}
.controls form label {
  width: auto !important;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Region page */
.region-picker { display: flex; justify-content: center; margin: 10px auto; }
#region-scores table { margin: 0 auto; width: auto; min-width: 22rem; }
#region-scores th, #region-scores td { text-align: center; }
#region-scores td:first-child { text-align: right; font-weight: bold; }
#region-scores tr.overall { border-top: 1px solid rgba(0,0,0,.1); border-bottom: 1px solid rgba(0,0,0,.1); }
.responses { max-width: 900px; margin: 1rem auto; }
.responses > div { padding: 0.25rem 0 0.25rem 0.6rem; margin-bottom: 0.4rem; }
.responses .question { display: block; font-weight: 600; }
.responses .scale { margin: 0 0 0 3em; font-style: italic; color: gray; }
.responses .response { margin: 0 0 0 3em; }
.CommunityInclusion { border-left: 6px solid #2a8aa9; }
.Education { border-left: 6px solid #30a92a; }
.Healthcare { border-left: 6px solid #d07c31; }
.Independence { border-left: 6px solid #c1231e; }
.SocialandPolicyIssues { border-left: 6px solid #b437af; }
.characteristics { max-width: 900px; margin: 1.5rem auto; }

/* Static pages ported from the Shiny app */
h5 { margin-top: 1rem; }
.subtitle { margin-top: 0; }

/* Bottom toolbar */
.nav-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 0;
  padding: 0.4rem 1.25rem;
  align-items: center;
  font-size: 0.85rem;
}

/* Keep the copyright on one line */
.nav-footer .nav-footer-left,
.nav-footer .nav-footer-right {
  flex: 0 0 auto;
  white-space: nowrap;
}
.nav-footer .nav-footer-center {
  display: none;
}
.nav-footer {
  justify-content: space-between;
}

.contact-btn {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border: 1px solid white;
  border-radius: 4px;
  color: white !important;
  text-decoration: none !important;
  font-weight: 600;
}
.contact-btn:hover { background: white; color: #0000cc !important; }

/* Keep page content from being hidden behind the fixed toolbar */
body { padding-bottom: 3rem; }

/* Allow wrapping again on small screens, where one line won't fit */
@media (max-width: 576px) {
  .nav-footer .nav-footer-left,
  .nav-footer .nav-footer-right {
    white-space: normal;
  }
}