/* The atlas's shared navigation, landing page and water profiles. */
:root {
  --atlas-panel: #fffdf6;
  --atlas-fern: #235747;
  --atlas-moss-line: #cbd8c8;
}

.site-header {
  min-height: 80px;
  gap: 20px 34px;
  padding-block: 17px;
}

.site-header .site-brand {
  display: inline-grid;
  grid-template-columns: 39px auto;
  gap: 2px 11px;
  align-items: center;
}

.site-header .brand-mark {
  display: grid;
  grid-row: 1 / span 2;
  width: 39px;
  height: 39px;
  margin: 0;
  place-items: center;
  border-radius: 12px;
  background: #dce9dc;
  font: 20px/1 Inter, Arial, sans-serif;
  letter-spacing: normal;
}

.site-header .brand-title {
  color: var(--ink);
  margin: 0;
  font: 24px/1.08 'PT Serif', Georgia, serif;
  letter-spacing: -.35px;
  text-transform: none;
}

.site-header .brand-subtitle {
  margin: 0;
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.site-header .site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
}

.site-header .site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 5px 10px;
  font-weight: 600;
}

.site-header .site-nav a:hover {
  background: #e6ecdf;
}

.site-header .site-nav a:first-child {
  border: 1px solid var(--atlas-moss-line);
}

.atlas-hero {
  display: grid;
  align-items: center;
  min-height: 490px;
  border-radius: 19px;
}

.atlas-hero > img {
  inset: 0;
}

.atlas-hero::after {
  background: linear-gradient(92deg, #102f28f7 4%, #123529cc 43%, #183d301c 78%);
}

.atlas-hero .hero-content {
  padding: clamp(42px, 6vw, 88px) clamp(24px, 6vw, 88px);
}

.atlas-hero .eyebrow {
  margin-bottom: 17px;
  color: #e0ead7;
  font-size: 11px;
  letter-spacing: 1.35px;
}

.atlas-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: #fffdf6;
  font-size: clamp(40px, 6vw, 75px);
  line-height: 1.02;
}

.atlas-hero h1 em {
  display: block;
  color: #e1edae;
}

.atlas-hero .hero-description {
  max-width: 410px;
  margin: 20px 0 25px;
  font-size: 15px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.hero-actions .primary {
  margin: 0;
}

.hero-actions .primary:hover {
  background: #eff5c8;
}

.hero-actions .secondary {
  border-color: #cfdfc9a6;
  background: #173e31a8;
  color: #fffdf6;
}

.hero-actions .secondary:hover {
  background: #275044;
}

.atlas-hero .hero-caption {
  padding: 3px 7px;
  border-radius: 4px;
  color: #f4f6ef;
  background: #102f28c9;
}

.stats {
  gap: 9px;
  padding-block: 16px 24px;
}

.stats > div,
.stats > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--atlas-panel);
}

.stats strong {
  color: var(--atlas-fern);
  margin-right: 0;
}

.atlas-filter-section .filters {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--atlas-panel);
}

.atlas-filter-section .filters :is(select, input, button) {
  min-height: 41px;
  background: #fff;
  border-radius: 8px;
}

.atlas-filter-section .water {
  border-radius: 10px;
}

.atlas-filter-section .map-wrap {
  padding: 6px;
  border: 1px solid var(--atlas-moss-line);
  border-radius: 12px;
  background: var(--atlas-panel);
}

.atlas-filter-section .map-caption,
.atlas-filter-section #map-error {
  margin: 9px 9px 4px;
}

.water-page .water-profile {
  padding: clamp(18px, 4vw, 42px);
  margin-bottom: 22px;
  border: 1px solid var(--atlas-moss-line);
  border-radius: 15px;
  background: linear-gradient(115deg, #e3ebde, #f5f7eb);
}

.water-profile .eyebrow {
  color: var(--atlas-fern);
}

.water-profile h1 {
  margin: 9px 0 12px;
  overflow-wrap: anywhere;
}

.water-profile .detail-facts {
  margin-bottom: 0;
}

.water-profile .detail-facts > span {
  background: var(--atlas-panel);
  border-radius: 20px;
}

.water-page .page-panel {
  border-radius: 12px;
}

.fish-table tbody tr:nth-child(odd) {
  background: #f2f5ec;
}

@media (max-width: 850px) {
  .stats > div,
  .stats > div:first-child {
    padding: 9px 11px;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px 12px;
  }

  .site-header .site-nav {
    gap: 4px;
  }

  .site-header .site-nav a {
    font-size: 11px;
    padding-inline: 7px;
  }

  .atlas-hero {
    min-height: 410px;
    margin: 10px;
    border-radius: 12px;
  }

  .atlas-hero::after {
    background: linear-gradient(95deg, #102f28f7, #123529ab 72%, #163d3157);
  }

  .atlas-hero .hero-content {
    padding: 35px 22px 53px;
  }

  .atlas-hero .hero-description {
    margin: 16px 0 20px;
    font-size: 14px;
  }

  .stats {
    gap: 7px;
    padding-block: 10px 16px;
  }

  .stats > div,
  .stats > div:first-child {
    gap: 7px;
  }

  .stats span {
    max-width: none;
  }

  .atlas-filter-section .filters {
    padding: 10px;
  }
}
