.station-intro h1 {
  font-size: clamp(2rem, 7.5vw, 4.5rem);
  overflow-wrap: anywhere;
}

.station-section,
.station-detail {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.station-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

.station-heading h2 {
  margin: 0;
}

.station-heading > p {
  max-width: 34rem;
  color: var(--text-muted);
}

.station-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
}

.station-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  text-align: left;
}

.station-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.station-table th,
.station-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.station-table tbody tr:last-child th,
.station-table tbody tr:last-child td {
  border-bottom: 0;
}

.station-table thead {
  background: var(--surface-strong);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.station-table tbody a {
  color: var(--accent);
}

.station-source {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.station-section > .text-link {
  display: inline-block;
  margin-top: 0.65rem;
}

.station-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
}

.station-detail .content-card {
  min-width: 0;
}

.station-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 1.2rem;
  margin-top: 1.5rem;
}

.station-facts dt {
  color: var(--text-muted);
}

.station-facts dd {
  margin: 0;
  font-weight: 650;
}

.station-back {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

@media (max-width: 48rem) {
  .station-heading,
  .station-detail {
    display: block;
  }

  .station-heading > p {
    margin-top: 1rem;
  }

  .station-detail .content-card + .content-card {
    margin-top: 1.25rem;
  }

  .station-table {
    display: block;
    min-width: 0;
  }

  .station-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .station-table tbody,
  .station-table tr,
  .station-table th,
  .station-table td {
    display: block;
  }

  .station-table tr {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .station-table tbody tr:last-child {
    border-bottom: 0;
  }

  .station-table th,
  .station-table td {
    padding: 0.2rem 0;
    border: 0;
  }

  .station-table th {
    margin-bottom: 0.35rem;
  }

  .station-table td::before {
    content: attr(data-label) ': ';
    color: var(--text-muted);
  }
}
