:root {
  --ultra-blue: #1154d0;
  --neutral-100: #000;
  --neutral-90: #292929;
  --neutral-80: #413f3f;
  --neutral-70: #5b5b5b;
  --neutral-60: #7d7c7c;
  --light-grey: #eaeae6;
  --tan: #faf7f5;
  --card-grey: #e6e3e2;
  --white: #fff;
  --shadow: 0 1px 1px rgba(26,26,26,0), 0 2px 2px rgba(26,26,26,.01), 0 4px 4px rgba(26,26,26,.03), 0 6px 6px rgba(26,26,26,.03);
  --header-h: 84px;
  --panel-w: clamp(389px, 34vw, 460px); /* scales with the screen so long location names wrap less */
  --font-body: "Geist", system-ui, sans-serif;
  --font-display: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--neutral-90);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--ultra-blue); outline-offset: 2px; }

/* Header */
.site-header {
  position: relative; z-index: 3; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 16px 24px 16px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
}
.brand-cluster { display: flex; align-items: center; gap: 4px; }
.brand img { display: block; height: 40px; width: auto; }
/* "VOTING TOOL" tag: Figma's blue shape with live hand-drawn text, both tilted about 7 degrees. */
.tool-badge { display: grid; place-items: center; width: 92px; height: 34px; margin-top: -6px; text-decoration: none; }
.tool-badge img { grid-area: 1 / 1; display: block; width: 89.47px; height: 23.1px; transform: rotate(-7.03deg); }
.tool-badge span {
  grid-area: 1 / 1; transform: rotate(-7.05deg) translateY(1px); white-space: nowrap; text-transform: uppercase;
  font: 400 14px/1 "Delicious Handrawn", cursive; letter-spacing: -.14px; color: var(--white);
}

/* Centered voting-period note on a torn strip that fades to white. */
.header-banner {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px; width: 433px; height: 51px; padding: 0 16px 0 14px;
  background: linear-gradient(90deg, #e4e1e0 0%, #fcfcfc 100%); color: var(--neutral-80);
}
.header-banner .bell { position: relative; flex: none; width: 20px; height: 20px; }
.header-banner .bell img { position: absolute; inset: 0.01% 6.37% -0.12% 6.57%; width: auto; height: auto; max-width: none; }
.banner-text p { margin: 0; font: 400 12px/1.3 var(--font-body); letter-spacing: -.12px; }
.banner-text .banner-title { font-weight: 600; }
.banner-text .banner-sub:empty { display: none; }
.more-info {
  display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  font: 600 14px/20px var(--font-body); letter-spacing: -.14px; color: var(--neutral-90);
}
.more-info span { text-decoration: underline; text-underline-position: from-font; }
.more-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
.more-icon img { display: block; width: 16px; height: 16px; }
.more-icon svg { display: block; width: 100% !important; height: 100% !important; }
.mode-toggle {
  display: flex; gap: 4px; align-items: center; flex: none;
  padding: 4px; background: var(--tan);
  border: 1px solid var(--light-grey); border-radius: 32px;
}
.mode-toggle button {
  flex: 1 1 0; min-width: 0; border: 0; background: none; border-radius: 32px;
  padding: 10px 20px; white-space: nowrap;
  font: 700 14px/1 var(--font-display); letter-spacing: -.14px; text-transform: uppercase;
  color: var(--neutral-70);
}
.mode-toggle button[aria-selected="true"] { background: var(--neutral-90); color: var(--white); }
.mode-toggle button:not([aria-selected="true"]):hover { color: var(--neutral-100); }

/* The tool fills the viewport. */
.screen-tool {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  background: var(--tan); /* shows in the finder's rounded bottom corners */
}

/* Finder */
.finder {
  position: relative; z-index: 2;
  display: flex; flex: 1; min-height: 0;
  background: var(--white);
  border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
}
[hidden] { display: none !important; }
.panel {
  flex: 0 0 var(--panel-w); width: var(--panel-w);
  display: flex; flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--light-grey);
  min-height: 0; position: relative; z-index: 1;
  filter: drop-shadow(0 1px .5px rgba(26,26,26,0)) drop-shadow(0 4px 2px rgba(26,26,26,.03));
}
.list-view { display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; padding: 18px 20px; }
.search {
  display: flex; align-items: center; gap: 12px; flex: none;
  height: 52px; padding: 0 12px;
  border: 1px solid var(--light-grey); background: var(--white);
}
.search:focus-within { border-color: var(--neutral-90); }
.icon-disc {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; background: var(--neutral-100); border-radius: 40px;
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font: 400 16px/1.3 var(--font-body); letter-spacing: -.16px;
}
.search input::placeholder { color: var(--neutral-60); opacity: 1; }
/* Our own clear (x) button replaces the browser's. */
.search input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.search input { color: var(--neutral-100); }
.search-clear { flex: none; display: grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; background: none; }
.search-clear img { display: block; width: 16px; height: 16px; }
.search-status { margin: -8px 0 0; min-height: 0; font-size: 13px; color: var(--neutral-70); }
.search-status:empty { display: none; }
.search-status.error { color: #b3261e; }

.list-bar {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  font: 600 12px/1.3 var(--font-display); letter-spacing: -.12px; text-transform: uppercase;
  color: var(--neutral-80);
}
.sort-btn { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: flex; align-items: center; gap: 8px; }
.sort-btn:disabled { opacity: .5; cursor: default; }

.cards {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1; min-height: 0; overflow-y: auto;
}
.card {
  display: flex; align-items: stretch; justify-content: space-between; gap: 12px;
  padding: 13px 16px; background: var(--white); border: 1px solid var(--light-grey);
  position: relative;
}
.card[data-selected="true"] { border-color: var(--neutral-100); }
.card-main {
  all: unset; box-sizing: border-box; flex: 1; min-width: 0; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
}
.card-main:focus-visible { outline: 2px solid var(--ultra-blue); outline-offset: 4px; }
.card-name { font: 700 16px/1.3 var(--font-body); letter-spacing: -.16px; color: var(--neutral-90); }
.card-name .nowrap { white-space: nowrap; }
.card-name .bus { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; }
.card-line { font: 400 13px/1.3 var(--font-body); letter-spacing: -.13px; color: var(--neutral-60); }
.card-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.card-side .chip { margin-top: 1px; }
.gd-link {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; margin-top: auto;
  border-bottom: 1px solid var(--neutral-80); color: var(--neutral-80); text-decoration: none; white-space: nowrap;
  font: 500 12px/1.3 var(--font-body); letter-spacing: -.12px;
}
.gd-link img { display: block; width: 12px; height: 12px; }
.gd-link:hover, .gd-link:focus-visible { color: var(--neutral-100); border-color: var(--neutral-100); }
.empty { padding: 24px 8px; text-align: center; font-size: 14px; color: var(--neutral-70); }

.cards .more { flex: none; height: 1px; list-style: none; }

.tooltip {
  position: fixed; z-index: 20; pointer-events: none;
  padding: 6px 10px; border-radius: 6px; white-space: nowrap;
  background: var(--neutral-90); color: var(--white);
  font: 600 12px/1.3 var(--font-body); letter-spacing: -.12px;
  transform: translate(-50%, -100%); opacity: 0; transition: opacity .12s;
}
.tooltip::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px;
  background: inherit; transform: translateX(-50%) rotate(45deg);
}
.tooltip.show { opacity: 1; }

/* "When will you vote?" modal */
.when-modal {
  padding: 0; border: 1px solid var(--light-grey); background: var(--white); color: var(--neutral-90);
  width: min(325px, calc(100vw - 32px)); margin: auto;
  filter: drop-shadow(0 1px .5px rgba(26,26,26,0)) drop-shadow(0 2px 1px rgba(26,26,26,.01)) drop-shadow(0 4px 2px rgba(26,26,26,.03)) drop-shadow(0 6px 3px rgba(26,26,26,.03));
}
.when-modal:focus { outline: none; }
.when-modal::backdrop { background: rgba(41, 41, 41, .5); }
.when-modal[open] { animation: when-in .38s cubic-bezier(.16, 1, .3, 1) both; }
.when-modal[open]::backdrop { animation: when-fade-in .38s ease both; }
.when-modal.closing { animation: when-out .26s cubic-bezier(.4, 0, 1, 1) both; }
.when-modal.closing::backdrop { animation: when-fade-out .26s ease both; }
@keyframes when-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes when-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes when-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes when-fade-out { from { opacity: 1; } to { opacity: 0; } }
.when-card { display: flex; flex-direction: column; align-items: center; padding: 18px 18px 25px; }
.when-icon { display: block; width: 23px; height: auto; margin-bottom: 2px; }
.when-card h2 {
  margin: 0 0 21px; text-align: center;
  font: 700 17px/1.1 var(--font-body); letter-spacing: -.17px; padding-top: 20px;
}
.pill {
  width: 100%; margin-top: 11px; padding: 12px 16px; border-radius: 76px;
  background: var(--white); color: var(--neutral-100); border: 1px solid var(--neutral-100);
  font: 700 14px/20px var(--font-body); letter-spacing: -.14px;
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}
.pill:first-of-type { margin-top: 0; }
/* Design's emphasized state: double ring. "Vote Early" wears it until another button is in play. */
.pill-primary, .pill:hover, .pill:focus-visible {
  border-width: 2px; padding: 11px 15px; outline: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--neutral-100);
}
/* Hover/focus fills solid so the choice is unmistakable. */
.pill:hover, .pill:focus-visible { background: var(--neutral-100); color: var(--white); transform: translateY(-1px); }
.when-card:has(.pill:hover) .pill-primary:not(:hover),
.when-card:has(.pill:focus-visible) .pill-primary:not(:focus-visible) {
  border-width: 1px; padding: 12px 16px; box-shadow: 0 0 0 0 var(--white), 0 0 0 0 var(--neutral-100);
  background: var(--white); color: var(--neutral-100); transform: none;
}
.pill:active { transform: translateY(0) scale(.985); }
@media (prefers-reduced-motion: reduce) {
  .when-modal[open], .when-modal[open]::backdrop, .when-modal.closing, .when-modal.closing::backdrop { animation: none; }
  .pill { transition: none; }
}

/* Panel view transitions (desktop): the drill-down slides in from the left edge, over the top of the
   list, which stays put underneath. Going back slides it out the same way to uncover the list. */
:root { --ease-panel: cubic-bezier(.22, .9, .3, 1); --panel-ms: 650ms; }
@keyframes panel-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes panel-out { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes panel-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 901px) {
  .panel { position: relative; overflow: hidden; }
  .list-view, .detail-view { position: absolute; inset: 0; background: var(--white); }
  .detail-view.is-entering, .detail-view.is-leaving { z-index: 2; box-shadow: 10px 0 18px rgba(26, 26, 26, .06); }
  .detail-view.is-entering { animation: panel-in var(--panel-ms) var(--ease-panel) both; }
  .detail-view.is-leaving { animation: panel-out var(--panel-ms) var(--ease-panel) both; }
}
@media (max-width: 900px) {
  .detail-view.is-entering { animation: panel-fade .3s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  .detail-view.is-entering, .detail-view.is-leaving { animation: none; }
}

/* Location drill-down */
.detail-view { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; }
.dt-hero {
  position: relative; height: 145px; background: #d9d9d9; overflow: hidden;
}
.dt-hero > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dt-back img { display: block; width: 16px; height: 16px; }
.dt-back {
  position: absolute; left: 7px; top: 7px; z-index: 1;
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  background: var(--white); border: 1px solid var(--light-grey); border-radius: 40px;
  filter: drop-shadow(0 1px .5px rgba(26,26,26,0)) drop-shadow(0 2px 1px rgba(26,26,26,.01)) drop-shadow(0 4px 2px rgba(26,26,26,.03)) drop-shadow(0 6px 3px rgba(26,26,26,.03));
}
.dt-back:hover { background: var(--tan); }
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* Shared tag style: location cards and the drill-down panel. */
.chip {
  display: inline-block; padding: 0 6px; height: 20px;
  background: #e4e1e0; color: var(--neutral-90);
  font: 500 12px/20px var(--font-body); letter-spacing: -.12px; white-space: nowrap;
}
.chip-bus { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px 0 5px; }
.chip-bus img { display: block; width: 14px; height: 14px; }
.dt-title { margin: 8px 0 0; font: 700 20px/1.3 var(--font-body); letter-spacing: -.2px; color: var(--neutral-100); }
.dt-title:focus { outline: none; }
.dt-row { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; min-height: 16px; font: 400 14px/16px var(--font-body); letter-spacing: -.14px; color: var(--neutral-80); }
.dt-row > img { flex: none; width: 16px; height: 16px; }
.dt-row > span { line-height: 16px; }
.dt-row b { font: 600 12px/1 var(--font-body); letter-spacing: -.12px; color: #695d59; text-transform: uppercase; }
.dt-row .dot { margin: 0 6px; }
.dt-note { background: linear-gradient(90deg, #e4e1e0 0%, #fcfcfc 100%); color: var(--neutral-80); }
.torn { --torn: polygon(0 3px, 5% 0, 11% 2px, 19% 0, 27% 3px, 35% 1px, 44% 3px, 52% 0, 61% 2px, 70% 0, 78% 3px, 86% 1px, 93% 3px, 100% 0,
                     100% calc(100% - 2px), 94% 100%, 87% calc(100% - 3px), 79% calc(100% - 1px), 70% 100%, 61% calc(100% - 3px), 52% calc(100% - 1px), 43% 100%, 34% calc(100% - 2px), 25% 100%, 16% calc(100% - 3px), 8% calc(100% - 1px), 0 calc(100% - 3px)); clip-path: var(--torn); }
.dt-note { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 12px 16px; font: italic 400 13px/1.35 var(--font-body); letter-spacing: -.13px; }
.dt-note .icon { position: relative; flex: none; width: 16px; height: 16px; }
.dt-note .icon img { position: absolute; inset: 0.01% 6.37% -0.12% 6.57%; width: auto; height: auto; max-width: none; }
.dt-directions {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 12px 16px;
  background: var(--neutral-90); color: var(--white); border-radius: 76px; text-decoration: none;
  font: 700 14px/20px var(--font-body); letter-spacing: -.14px; transition: background-color .15s;
}
.dt-directions:hover, .dt-directions:focus-visible { background: var(--neutral-80); }
.dt-directions img { display: block; width: 16px; height: 16px; }
.dt-id {
  margin-top: 24px; padding: 20px 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px;
  background: var(--white); border: 1px solid var(--light-grey); box-shadow: var(--shadow);
}
.dt-id header { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.dt-id .fp { position: relative; width: 32px; height: 32px; margin-bottom: 12px; }
.dt-id .fp img { position: absolute; left: 3.26%; top: 0.11%; width: 93.54%; height: 99.78%; }
.dt-id h3 { margin: 0 0 8px; font: 600 16px/20px var(--font-body); letter-spacing: -.16px; color: var(--neutral-90); }
.dt-id header p { margin: 0; font: 400 14px/18px var(--font-body); letter-spacing: -.14px; color: var(--neutral-70); }
.dt-id ul { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 304px; display: flex; flex-direction: column; gap: 8px; }
.dt-id li { display: flex; align-items: center; gap: 8px; font: 400 13px/20px var(--font-body); letter-spacing: -.13px; color: var(--neutral-90); }
.dt-id li img { flex: none; width: 16px; height: 16px; }
/* Banners at the foot of the drill-down. The torn, gradient background lives on a pseudo-element so
   the doodle arrow can spill past the edge. */
.dt-banner { --torn: polygon(0 3px, 5% 0, 11% 2px, 19% 0, 27% 3px, 35% 1px, 44% 3px, 52% 0, 61% 2px, 70% 0, 78% 3px, 86% 1px, 93% 3px, 100% 0, 100% calc(100% - 2px), 94% 100%, 87% calc(100% - 3px), 79% calc(100% - 1px), 70% 100%, 61% calc(100% - 3px), 52% calc(100% - 1px), 43% 100%, 34% calc(100% - 2px), 25% 100%, 16% calc(100% - 3px), 8% calc(100% - 1px), 0 calc(100% - 3px));
  position: relative; isolation: isolate; display: block; margin-top: 14px; padding: 18px 17px 18px 51px; text-decoration: none; color: var(--neutral-90); min-height: 75px; }
.dt-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #e4e1e0 0%, #fcfcfc 100%); clip-path: var(--torn); }
.dt-banner .b-icon { position: absolute; left: 17px; top: 18px; width: 20px; height: 20px; }
.dt-banner .b-icon img { position: absolute; inset: -0.01% -0.15% 0.08% 0.18%; width: auto; height: auto; }
.dt-banner .b-icon.plain img { inset: 0; width: 100%; height: 100%; }
.dt-banner strong { display: block; font: 600 14px/1.3 var(--font-body); letter-spacing: -.14px; }
.dt-banner .link { display: inline-block; margin-top: 8px; font: 600 12px/1.3 var(--font-body); letter-spacing: -.12px; text-decoration: underline; text-underline-offset: 2px; }
.dt-help .doodle { position: absolute; right: 62px; top: -3px; width: 131px; height: 131px; display: grid; place-items: center; pointer-events: none; }
.dt-help .doodle img { width: 93px; height: 92px; transform: rotate(112deg) scaleY(-1); } /* tilted up about 23° from the design so it points right-and-up, toward where the overlay slides in from */

/* Map */
.map-wrap { position: relative; flex: 1; min-width: 0; background: var(--tan); }
#map { position: absolute; inset: 0; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* More Info overlay: a full-screen sheet that slides in from the right (where "More Info" lives). */
:root { --torn-lg: polygon(0 6px, 4% 1px, 9% 5px, 15% 0, 22% 6px, 30% 2px, 38% 7px, 46% 1px, 55% 5px, 63% 0, 72% 6px, 80% 2px, 88% 6px, 95% 0, 100% 5px,
  100% calc(100% - 4px), 96% 100%, 90% calc(100% - 6px), 83% calc(100% - 1px), 75% calc(100% - 6px), 67% 100%, 58% calc(100% - 5px), 50% calc(100% - 1px), 41% calc(100% - 6px), 33% 100%, 24% calc(100% - 5px), 16% calc(100% - 1px), 8% calc(100% - 6px), 0 calc(100% - 3px)); }
.overlay {
  position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--tan); color: var(--neutral-90); overflow-y: auto;
}
.overlay::backdrop { background: transparent; }
.overlay:focus { outline: none; }
/* Opening and closing share one duration and curve so they feel like the same motion played forwards and back. */
:root { --overlay-ms: 650ms; --overlay-ease: cubic-bezier(.45, 0, .2, 1); }
.overlay[open] { animation: overlay-in var(--overlay-ms) var(--overlay-ease) both; }
.overlay.closing { animation: overlay-out var(--overlay-ms) var(--overlay-ease) both; }
@keyframes overlay-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes overlay-out { from { transform: none; } to { transform: translateX(100%); } }
.overlay-close {
  position: absolute; top: 22px; right: 20px; z-index: 2;
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  background: var(--white); border: 1px solid var(--light-grey); border-radius: 40px;
}
.overlay-close:hover { background: var(--card-grey); }
.overlay-close img { display: block; width: 16px; height: 16px; }
.overlay-body { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 61px 24px 110px; overflow: hidden; }
.overlay-body > * { position: relative; z-index: 1; }
.overlay-logo img { display: block; height: 40px; width: auto; }
.overlay h2 {
  margin: 35px 0 24px; text-align: center;
  font: 800 36px/.9 var(--font-display); letter-spacing: -1.08px; text-transform: uppercase; color: var(--neutral-90);
}
.overlay-sub { margin: 0; text-align: center; font: 400 16px/20px var(--font-body); letter-spacing: -.16px; color: var(--neutral-60); }
.overlay .torn { --torn: var(--torn-lg); }
.resource-cards { display: flex; gap: 35px; justify-content: center; flex-wrap: wrap; width: 100%; max-width: 963px; margin-top: 62px; }
.resource {
  position: relative; flex: 1 1 380px; max-width: 464px; min-height: 243px; padding: 32px 24px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: rgba(41, 41, 41, .1);
}
.resource img { display: block; width: 32px; height: 32px; margin-bottom: 20px; }
.resource .eyebrow { font: 400 16px/1.3 "Caveat", cursive; letter-spacing: .32px; text-transform: uppercase; color: var(--neutral-100); margin-bottom: 13px; }
.resource-link {
  font: 900 36px/.9 var(--font-display); letter-spacing: -1.08px; text-transform: uppercase; color: var(--neutral-90); margin-bottom: 14px;
  text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font;
}
.resource-link:hover { color: var(--neutral-100); }
.resource .sub { font: 400 14px/20px var(--font-body); letter-spacing: -.14px; color: var(--neutral-70); }
.wide-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; max-width: 964px; min-height: 120px; margin-top: 35px; padding: 30px;
  isolation: isolate;
}
/* Torn background on a pseudo-element so the download menu can extend past the card's edge. */
.wide-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(41, 41, 41, .1); clip-path: var(--torn-lg); }
.resource-cards + .wide-card { margin-top: 35px; }
.wide-text h3 { margin: 0 0 12px; font: 800 24px/.9 var(--font-display); letter-spacing: -.72px; text-transform: uppercase; color: var(--neutral-80); }
.wide-text p { margin: 0; max-width: 472px; font: 400 16px/20px var(--font-body); letter-spacing: -.48px; color: var(--neutral-60); }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex: none;
  padding: 12px 16px 12px 28px; border: 0; border-radius: 34px; background: var(--neutral-90); color: var(--white);
  font: 700 16px/1.3 var(--font-body); letter-spacing: -.16px; text-decoration: none; white-space: nowrap; transition: background-color .15s;
}
.dl-btn:hover, .dl-btn:focus-visible, .dl-btn[aria-expanded="true"] { background: var(--neutral-80); }
.dl-icon { display: grid; place-items: center; width: 28px; height: 28px; background: var(--neutral-100); border-radius: 40px; }
.dl-icon img { display: block; width: 16px; height: 16px; }
.flyout-wrap { position: relative; flex: none; }
/* The card holding an open menu must sit above the card below it, or that card's tint paints over the menu. */
.overlay-body > .wide-card:has(.flyout:not([hidden])) { z-index: 3; }
.flyout {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 100%; padding: 6px;
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--light-grey);
  box-shadow: var(--shadow), 0 10px 28px rgba(26, 26, 26, .14);
  animation: flyout-in .18s ease-out both;
}
@keyframes flyout-in { from { transform: translateY(-6px); } to { transform: none; } } /* slides only: never see-through */
.flyout a { display: block; padding: 11px 16px; text-decoration: none; white-space: nowrap; font: 600 15px/1.3 var(--font-body); letter-spacing: -.15px; color: var(--neutral-90); }
.flyout a:hover, .flyout a:focus-visible { background: var(--tan); }
.footer-wordmark {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); z-index: 0 !important;
  white-space: nowrap; pointer-events: none; user-select: none;
  font: 900 clamp(48px, 10.1vw, 130px)/.9 var(--font-display); letter-spacing: -.04em; text-transform: uppercase;
  color: var(--neutral-90); opacity: .1;
}

/* Map pin popup-less hover cursor */
.maplibregl-canvas { outline: none; }

/* Tablet / phone: stack map above list */
@media (min-width: 901px) {
  .cards, .detail-view { overscroll-behavior: contain; }
}

@media (max-width: 900px) {
  .screen-tool { height: auto; }
  .finder { flex: none; flex-direction: column-reverse; height: auto; min-height: 0; }
  .site-header { height: auto; flex-wrap: wrap; gap: 12px; padding: 12px 20px; border-bottom: 0; }
  .brand img { height: 34px; }
  .header-banner { position: static; transform: none; order: 3; width: 100%; height: auto; min-height: 51px; padding: 10px 14px; }
  /* The map is inset 20px on each side so it lines up with the header and the panel content around it. */
  .map-wrap { flex: none; height: 46vh; min-height: 300px; background: var(--white); }
  #map { inset: 0 20px; border: 1px solid var(--light-grey); border-top: 0; border-bottom: 0; }
  .panel { flex: none; width: 100%; border-right: 0; border-top: 0; filter: none; }
  .cards { overflow: visible; }
  .overlay-body { padding: 72px 16px 130px; }
  .overlay h2 { font-size: 26px; }
  .resource-cards { margin-top: 36px; gap: 20px; }
  .resource { flex-basis: 100%; }
  .wide-card { flex-direction: column; align-items: flex-start; margin-top: 20px; }
  .wide-card .dl-btn, .flyout-wrap { align-self: stretch; }
  .wide-card .dl-btn { justify-content: space-between; }
  .flyout-wrap .dl-btn { width: 100%; justify-content: space-between; }
  .flyout { left: 0; right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .mode-toggle button { transition: background-color .15s, border-color .15s, color .15s; }
  .card { transition: border-color .08s ease-out, background-color .15s; }
}
@media (prefers-reduced-motion: reduce) {
  .overlay[open], .overlay.closing, .flyout { animation: none; }
}
