html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background: #f8f9fa;
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body:has(#content) {
  display: block;
  min-height: auto;
}
#header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  color: #222;
  padding: 0.5em 1.2em;
  height: 56px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
#header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#header-title {
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #222;
  text-wrap: nowrap;
}
#header-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 1.5em;
  row-gap: 0.3em;
  font-size: 1em;
  font-weight: 500;
  color: #444;
  padding: 0.5em 1.2em;
}
.stat-item {
  white-space: nowrap;
}
#header-nav {
  display: flex;
  gap: 1.5em;
  align-items: center;
}
#header-nav a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.2s;
}
#header-nav a.active {
  text-decoration: underline;
  color: #007950;
}
#header-nav a:hover {
  color: #007950;
}
#header-nav #donate-link {
  background: #007950;
  color: #fff;
  text-decoration: none;
  padding: 0.4em 1em;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95em;
  transition: background 0.2s;
  border: none;
}
#header-nav #donate-link:hover {
  background: #009865;
}
main {
  flex: 1;
}
main:not(#content) {
  height: 100%;
}
main#content {
  flex: none;
}
#map {
  flex: 1 1 auto;
  height: 100%;
  width: 100vw;
}
#content {
  max-width: 700px;
  margin: 2.5em auto 2em auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 2.2em 1.7em 2em 1.7em;
}
#content .intro {
  font-size: 1.4em;
  color: #555;
}
#content .credits {
  font-size: 0.9em;
  color: #555;
  margin-top: 2em;
}
h1 {
  font-size: 2em;
  margin-top: 0;
}
h2 {
  font-size: 1.2em;
  margin-top: 2em;
}
p {
  font-size: 1.08em;
  line-height: 1.7;
  color: #222;
}
a {
  color: #007950;
  text-decoration: underline;
  transition: color 0.2s, text-decoration 0.2s;
}
a:hover {
  color: #009865;
  text-decoration: underline;
}
a:visited {
  color: #006640;
}
.info-logo {
  text-align: center;
}
.info-logo img {
  max-width: 500px;
  height: auto;
}
#last-updated {
  position: fixed;
  bottom: 0px;
  left: 0px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.5);
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
  padding: 0.2em 0.5em;
  font-size: 0.9em;
}
#logo-link {
  position: fixed;
  bottom: 17px;
  right: 0px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.5);
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
}
#logo-link:hover {
  background: rgba(255, 255, 255, 1);
}
#footer-logo {
  height: 70px;
  width: auto;
  display: block;
}
.legend {
  position: absolute;
  bottom: 30px;
  left: 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.7em 1em 0.7em 0.8em;
  font-size: 0.98em;
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  z-index: 1000;
  transition: opacity 0.2s;
}
.legend-row .legend-icon {
  opacity: 0.7;
}
.legend-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.3em;
}
.legend-label {
  font-size: 0.97em;
}
.legend-icon {
  margin-right: 0.7em;
}
#legend-toggle {
  display: none;
  position: absolute;
  bottom: 30px;
  left: 20px;
  z-index: 1100;
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.4em 1em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
@media (max-width: 700px) {
  #header-bar {
    flex-direction: column;
    height: auto;
    padding: 0.5em 0.5em;
  }
  #header-title {
    font-size: 1.05em;
  }
  #header-stats {
    font-size: 0.93em;
    padding: 0.3em 0.5em;
    flex-direction: row;
  }
  .stat-item {
    font-size: 0.9em;
  }
  #header-nav {
    gap: 1em;
  }
  #donate-link {
    font-size: 0.9em;
    padding: 0.3em 0.7em;
  }
  #logo-link {
    bottom: 18px;
    right: 0px;
    padding: 0px;
  }
  #footer-logo {
    height: 50px;
  }
}
blockquote {
  font-style: italic;
  color: #444;
  border-left: 4px solid #007950;
  background: #f3f3f3;
  margin: 1.5em 0;
  padding: 0.8em 1.2em 0.8em 1.5em;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
blockquote p {
  margin: 0;
}
