/* =========================================================================
   Single-station page
   ========================================================================= */

/* Match the page background to the card so the card's bottom edge is never
   visible regardless of viewport height vs. content height. */
body.page-station {
  background: var(--bg-card);
}

.page-station main.page {
  padding: 1.5rem 1rem 0;
}

#station-detail {
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 0 1.75rem;
}

.station-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.station-head h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
}

.station-shortcode {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  background: color-mix(in srgb, var(--accent-orange) 12%, transparent);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.station-address {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 0.85rem;
}

#station-detail .station-tags {
  margin-top: 0;
  margin-bottom: 0;
}

#station-detail .station-response {
  margin-top: 1.5rem;
}

/* Slightly larger priority cards on the dedicated page than in the sidebar */
#station-detail .priority {
  padding: 0.8rem 0.7rem;
  gap: 0.5rem;
}

#station-detail .priority-count {
  font-size: 1.2rem;
}

#station-detail .priority-time {
  font-size: 0.8rem;
}

#station-detail .station-shifts {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

#station-detail .shifts-title {
  font-size: 1.05rem;
}

/* =========================================================================
   Mobile
   ========================================================================= */

@media (max-width: 540px) {
  #station-detail {
    padding: 0.25rem 0 1.25rem;
  }

  .station-head h1 {
    font-size: 1.35rem;
  }
}
