/* Wildlife danger map (server/website/launch/wildlife). Tokens come from /style.css. */
.wl-head { padding-bottom: 18px; }
.wl-head h1 { font-size: clamp(32px, 4vw, 46px); margin: 4px 0 6px; }
.wl-head .sub { font-size: 16px; }
.navlinks a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.wl-wrap { padding-top: 18px; padding-bottom: 28px; }

/* Filters drawer: one button above the map; the month and region chips open over the map, not above it. */
.wl-filters { position: relative; z-index: 5; margin: 0 0 12px; }
.wl-filters-btn {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 16px; border-radius: 14px; background: var(--card-2); color: var(--ink); font-weight: 800;
  width: fit-content; max-width: 100%;
}
.wl-filters-btn::-webkit-details-marker { display: none; }
.wl-filters-btn:hover { background: #34303f; }
.wl-filters-btn:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; }
.wl-filters-btn svg { width: 20px; height: 20px; flex: none; }
.wl-filters-now {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--amber); color: var(--cream-ink); border-radius: 999px; padding: 2px 10px; font-size: 14px;
}
.wl-chev { transition: transform .2s ease; }
.wl-filters[open] .wl-chev { transform: rotate(180deg); }
.wl-panel {
  position: absolute; left: 0; top: calc(100% + 8px); width: min(720px, 100%);
  max-height: min(64svh, 560px); overflow: auto; overscroll-behavior: contain;
  padding: 16px; border-radius: 18px; background: var(--deep); border: 1px solid #2c2936;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
.wl-panel-h {
  font: 800 13px var(--font-sign); letter-spacing: .12em; text-transform: uppercase; color: var(--peach); margin: 0 0 8px;
}
.wl-panel .wl-regions { margin: 0; }
.wl-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.wl-chip, .wl-regions button {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--card-2);
  color: var(--ink-soft); font: 700 14px var(--font-body); cursor: pointer;
}
.wl-chip:hover, .wl-regions button:hover { background: var(--wine); color: #fff; }
.wl-chip[aria-pressed="true"], .wl-regions button[aria-pressed="true"] { background: var(--amber); color: var(--cream-ink); }
.wl-chip:focus-visible, .wl-regions button:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; }
.wl-regions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }

.wl-stage {
  position: relative; border-radius: 22px; overflow: hidden; background: var(--night-2);
  height: clamp(420px, 70svh, 760px);
}
#wl-map { position: absolute; inset: 0; }
.wl-status {
  position: absolute; left: 12px; top: 12px; z-index: 2; margin: 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(13, 12, 17, .82); color: var(--ink-soft); font-size: 14px; font-weight: 700; max-width: calc(100% - 70px);
}
.wl-status:empty { display: none; }
.wl-legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 10px 14px; border-radius: 14px;
  background: rgba(13, 12, 17, .86); color: var(--ink-soft); font-size: 13px;
}
.wl-legend b { display: block; margin-bottom: 4px; color: var(--butter); }
.wl-legend ul { margin: 0; padding: 0; list-style: none; }
.wl-legend li { display: flex; align-items: center; gap: 8px; line-height: 1.7; }
.wl-sw { display: inline-block; width: 26px; height: 6px; border-radius: 3px; }
.wl-s0 { background: #6b7a8f; }
.wl-s1 { background: #f2c230; }
.wl-s2 { background: #ea7a1c; }
.wl-s3 { background: #c8201c; }
.wl-note { color: var(--ink-mute); font-size: 14px; margin: 16px 0 0; max-width: 62em; }

.wl-doc { padding: 40px 0 64px; }
.wl-credits { padding-left: 20px; }
.wl-credits li { margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .wl-chev { transition: none; } }
