:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #1f2933;
  background: #f5f7f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7f9;
}

main {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

header {
  margin-bottom: 2rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
}

h2 {
  margin-bottom: 0.75rem;
}

.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.area-links a {
  padding: 0.25rem 0.6rem;
  border: 1px solid #cbd5df;
  border-radius: 999px;
  color: #1f2933;
  background: #ffffff;
  font-size: 0.875rem;
  text-decoration: none;
}

.area-links a:hover {
  border-color: #16813d;
  background: #e7f5eb;
}

.station-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid #d8dee4;
  border-radius: 0.75rem;
  background: #ffffff;
}

.station-row {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) minmax(15rem, 1.3fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e5e9ed;
}

.station-row:last-child {
  border-bottom: 0;
}

.area-heading {
  padding: 0.45rem 1rem;
  border-top: 1px solid #d8dee4;
  border-bottom: 1px solid #d8dee4;
  background: #edf1f4;
}

.area-heading:first-child {
  border-top: 0;
}

.area-heading h3 {
  margin: 0;
  scroll-margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.station-green {
  border-left: 0.3rem solid #16813d;
  background: #e7f5eb;
}

.station-identity {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.brand-icon {
  display: inline-grid;
  flex: 0 0 2.8rem;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.6rem;
  color: #ffffff;
  background: #66737f;
  font-size: 0.7rem;
  font-weight: 800;
}

.brand-gp {
  background: #0875be;
}

.brand-rn,
.brand-tb {
  color: #1f2933;
  background: #ffd400;
  box-shadow: inset 0 -0.3rem #d9232e;
}

.brand-luk {
  background: #d81e2b;
}

.brand-logo {
  padding: 0.2rem;
  border: 1px solid #cbd5df;
  color: inherit;
  background: #ffffff;
  box-shadow: none;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-opti {
  background: #ef7d00;
}

.brand-triada {
  background: #16813d;
}

.brand-mars {
  background: #4b5563;
}

.station-name,
.address {
  display: block;
}

.address,
.station-row time,
.muted {
  color: #52606d;
}

.address,
.station-row time {
  display: block;
  font-size: 0.875rem;
}

.confirmed {
  color: #116329;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

@media (max-width: 48rem) {
  .station-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
