/* IsItCrowded homepage — quick-path ("Where to next?") cards, popular
   park rows, method/accuracy link cards, and the mobile hero About
   collapse. Loaded only by the homepage (css/home.css). Rides the site
   theme variables from styles.css, so light and dark themes both work.
   Every card/control declares background AND color. */

.router { margin-top: 0.5rem; }
.router__title { margin: 0; }
.router__sub { margin: 0.35rem 0 0; }

.router-paths {
  display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-top: 1rem;
}
@media (min-width: 640px) { .router-paths { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .router-paths { grid-template-columns: repeat(4, 1fr); } }

.router-path {
  position: relative;
  display: block;
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 11px;
  padding: 0.9rem 2.2rem 0.95rem 1rem;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.router-path:hover { color: var(--ink); border-color: var(--border-strong); border-top-color: var(--accent-hover); }
.router-path__title { display: block; font-weight: 700; font-size: 1.08rem; color: var(--accent-ink); }
.router-path__sub { display: block; margin-top: 0.2rem; font-size: 0.92rem; color: var(--ink-muted); }
.router-path__arrow {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; color: var(--accent); font-weight: 700;
}

.router__parks-title { margin: 1.4rem 0 0; font-size: 1.15rem; }

.router-parks {
  display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin-top: 0.8rem;
}
@media (min-width: 700px) { .router-parks { grid-template-columns: 1fr 1fr; } }

.router-park {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.router-park:hover { color: var(--ink); border-color: var(--border-strong); }
.router-park__img {
  width: 56px; height: 56px; flex: none;
  object-fit: cover; border-radius: 8px;
}
.router-park__main { display: block; min-width: 0; flex: 1 1 auto; }
.router-park__name { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.router-park__loc {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 700; margin-top: 0.15rem;
}
.router-park__now { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.router-park__now .pill { font-size: 0.88rem; padding: 0.24rem 0.6rem; }
.router-park__idx { font-weight: 700; }

.router__note { margin: 0.8rem 0 0; }

/* Split router: quick paths sit between hero and Today band,
   park rows stay below the band. The parks title used to get its 1.4rem top
   margin from following the paths grid; as its section's first child it
   would double the gap under the band, so zero it in the split section. */
.router--parks .router__parks-title { margin-top: 0; }

/* Mobile "About this site" collapse for the hero copy.
   Desktop (>880px, the site's hero breakpoint): toggle never renders and
   .hero-about is a plain block, so the paragraphs show exactly as before.
   Mobile (<=880px): the two hero paragraphs hide behind the toggle.
   The hero is the same dark teal in light and dark themes, so the toggle
   uses white on translucent white and declares background AND color. */
.hero-about-toggle { display: none; }
.hero-about-toggle__chev {
  flex: none;
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.hero-about-toggle[aria-expanded="true"] .hero-about-toggle__chev { transform: rotate(225deg); }

@media (max-width: 880px) {
  .hero-about-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    width: 100%; text-align: left; cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.3;
  }
  .hero-about-toggle:hover { background: rgba(255, 255, 255, 0.22); color: #ffffff; }
  .hero-about { display: none; margin-top: 0.75rem; }
  .hero-about.is-open { display: block; }
}

/* Compact replacements for the old tab panels (method / accuracy). */
.router-method {
  display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-top: 1.25rem;
}
@media (min-width: 760px) { .router-method { grid-template-columns: 1fr 1fr; } }
.router-method__card { background: var(--bg-elevated); color: var(--ink); }
.router-method__card h2 { margin-top: 0; }
