.stop-page-body {
  --stop-accent: #0b4db5;
  --stop-accent-strong: #0a2a66;
  --stop-accent-soft: #eaf3ff;
  --stop-border: rgba(11, 77, 181, 0.16);
  --stop-muted: rgba(10, 42, 102, 0.68);
  --stop-panel: #f7fbff;
  min-height: 100vh;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(234, 243, 255, 0.92) 0%, #ffffff 44%, rgba(230, 238, 248, 0.92) 100%);
}

.stop-page-body--tram {
  --stop-accent: #0078a8;
  --stop-accent-strong: #004f78;
  --stop-accent-soft: #e6f6fb;
  --stop-border: rgba(0, 120, 168, 0.2);
  --stop-muted: rgba(0, 67, 96, 0.7);
  --stop-panel: #f4fbfd;
  background:
    linear-gradient(180deg, #e5f6fb 0%, #ffffff 45%, #eef4f8 100%);
}

.stop-page-body .legal-header {
  padding-top: 18px;
}

.stop-page {
  max-width: 920px;
  border-color: var(--stop-border);
  border-radius: 18px;
}

.stop-page--tram {
  box-shadow: 0 18px 38px rgba(0, 79, 120, 0.14);
}

.stop-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--stop-muted);
  font-size: 0.88rem;
}

.stop-page__breadcrumb a {
  color: var(--stop-accent);
  text-decoration: none;
}

.stop-page__breadcrumb a:hover,
.stop-page__breadcrumb a:focus-visible {
  text-decoration: underline;
}

.stop-page__headline {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.stop-page .stop-page__headline h1 {
  margin-bottom: 0;
}

.stop-page__code {
  margin-top: 8px;
  color: var(--stop-muted);
  font-size: 0.95rem;
  text-align: center;
}

.stop-page__intro {
  max-width: 700px;
  margin: 16px auto 0;
  color: rgba(10, 42, 102, 0.82);
  text-align: center;
}

.stop-page__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.stop-page__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--stop-border);
  border-radius: 999px;
  color: var(--stop-accent-strong);
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.stop-page__actions a:last-child {
  border-color: var(--stop-accent);
  background: var(--stop-accent);
  color: #ffffff;
}

.stop-page section {
  padding-top: 22px;
  border-top: 1px solid rgba(10, 42, 102, 0.08);
}

.stop-page section:first-of-type {
  border-top: 0;
}

.stop-page h2,
.stop-page h3 {
  color: var(--stop-accent-strong);
}

.stop-arrivals {
  min-height: 92px;
  margin: 16px 0 0;
  padding: 15px;
  border: 1px solid var(--stop-border);
  border-radius: 10px;
  background: var(--stop-panel);
}

.stop-arrivals__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.stop-arrivals__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
}

.stop-arrivals__time {
  margin-left: auto;
  font-weight: 800;
}

.stop-arrivals__updated {
  margin-top: 10px;
  color: var(--stop-muted);
  font-size: 0.82rem;
}

.stop-arrivals__status {
  margin: 0;
  color: var(--stop-muted);
}

.stop-arrivals__status--error {
  color: #a72e30;
}

.stop-lines__list,
.stop-nearby__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stop-lines__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stop-lines__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(10, 42, 102, 0.08);
  border-radius: 10px;
  background: #ffffff;
}

.stop-lines__info strong {
  display: block;
  margin-bottom: 2px;
}

.stop-lines__directions {
  margin: 4px 0 6px 18px;
  padding: 0;
  color: rgba(10, 42, 102, 0.78);
}

.stop-nearby__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stop-nearby__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(10, 42, 102, 0.1);
}

.stop-nearby__item a {
  text-decoration: none;
}

.stop-nearby__item a:hover,
.stop-nearby__item a:focus-visible {
  text-decoration: underline;
}

.stop-nearby__distance,
.stop-nearby__code,
.stop-schedule__note {
  color: var(--stop-muted);
}

.stop-schedule__note {
  font-size: 0.88rem;
}

.stop-schedule__line {
  margin-bottom: 18px;
}

.stop-schedule__line h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stop-schedule__line ul {
  margin-left: 0;
  padding-left: 18px;
}

.stop-faq .faq-item {
  margin-bottom: 16px;
}

.stop-page__empty {
  color: var(--stop-muted);
}

.stop-ad {
  margin: 24px 0;
}

.stop-ad__label {
  display: block;
  margin-bottom: 6px;
  color: var(--stop-muted);
  font-size: 0.74rem;
  text-align: center;
  text-transform: uppercase;
}

.stop-page-body--tram .line-badge--tram {
  border-radius: 15%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.stop-page-footer {
  width: min(920px, calc(100% - 28px));
  margin: -36px auto 48px;
  color: var(--stop-muted);
  font-size: 0.9rem;
}

.stop-page-footer__meta {
  padding: 16px 18px;
  border: 1px solid var(--stop-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.stop-page-footer p {
  margin: 4px 0;
}

.stop-page-footer a {
  color: var(--stop-accent);
  font-weight: 700;
  text-decoration: none;
}

.stop-page-footer a:hover,
.stop-page-footer a:focus-visible {
  text-decoration: underline;
}

.stop-page-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-top: 14px;
}

.stop-index__list {
  columns: 2 280px;
}

.stop-index__list li {
  break-inside: avoid;
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .stop-page {
    border-radius: 14px;
  }

  .stop-page__headline {
    justify-content: flex-start;
  }

  .stop-page .stop-page__headline h1,
  .stop-page__code,
  .stop-page__intro {
    text-align: left;
  }

  .stop-page__actions {
    justify-content: flex-start;
  }

  .stop-page__actions a {
    flex: 1 1 170px;
  }

  .stop-lines__item {
    grid-template-columns: 1fr;
  }

  .stop-nearby__item {
    align-items: flex-start;
    flex-direction: column;
  }

  .stop-page-footer {
    margin-top: -24px;
  }
}
