.schedule-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: #ffffff;
  color: #111827;
}

.schedule-page {
  --brand-blue: #009bd6;
  --brand-blue-text: #075aaf;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: clip;
  background: #ffffff;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.schedule-page > * {
  min-width: 0;
}

.schedule-page * {
  box-sizing: border-box;
}

.schedule-page a {
  color: inherit;
  text-decoration: none;
}

.schedule-container {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 2.75rem);
}

.schedule-page--board {
  background:
    radial-gradient(circle at 50% 0, #ffffff 0, #f7f9fc 34rem, #f2f4f7 100%);
}

.schedule-page--error {
  background: #f6f7f9;
}

.schedule-hero {
  background: linear-gradient(180deg, #f4f5f7 0%, #ffffff 100%);
  border-bottom: 1px solid #d9dde5;
}

.schedule-hero__inner {
  min-height: 11.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-information-banner {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid;
  border-radius: 0.65rem;
  overflow: hidden;
}

.schedule-information-banner__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 1.2rem;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  line-height: 1.35;
  white-space: nowrap;
}

.schedule-information-banner__inner i {
  flex: 0 0 auto;
}

.schedule-information-banner__viewport {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
}

.schedule-information-banner__message {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.schedule-information-banner__viewport--scrolling {
  display: flex;
  gap: 4rem;
}

.schedule-information-banner__viewport--scrolling .schedule-information-banner__message {
  flex: 0 0 auto;
  animation: information-banner-marquee var(--information-banner-scroll-duration) linear 2s infinite;
}

@keyframes information-banner-marquee {
  to {
    transform: translateX(calc(-1 * var(--information-banner-scroll-distance)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-information-banner__viewport--scrolling .schedule-information-banner__message {
    animation: none;
  }
}

.schedule-information-banner--information { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.schedule-information-banner--warning { background: #fef9c3; border-color: #fde047; color: #854d0e; }
.schedule-information-banner--disruption { background: #ffedd5; border-color: #fdba74; color: #9a3412; }
.schedule-information-banner--alert { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.schedule-information-banner--success { background: #dcfce7; border-color: #86efac; color: #166534; }

.schedule-brand-card {
  width: min(100%, 46rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 5vw, 2.75rem);
  padding: clamp(1.45rem, 4vw, 2.25rem);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.75rem 2.2rem rgba(15, 23, 42, 0.08);
}

.schedule-brand-card__crest {
  width: clamp(5.25rem, 16vw, 7rem);
  height: clamp(5.25rem, 16vw, 7rem);
  object-fit: contain;
  flex: 0 0 auto;
}

.schedule-brand-card__name {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.schedule-brand-card__subtitle {
  margin-top: 0.45rem;
  color: #6b7280;
  font-size: clamp(1.25rem, 4vw, 2rem);
}

.schedule-header {
  background: #ffffff;
  border-bottom: 1px solid #d9dde5;
}

.schedule-header__inner {
  min-height: 6.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.schedule-brand,
.schedule-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.schedule-brand__crest {
  width: 4.6rem;
  height: 4.6rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.schedule-brand__name {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.schedule-brand__subtitle {
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 1.05rem;
}

.schedule-official-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #075aaf;
  font-size: 1rem;
  white-space: nowrap;
}

.schedule-official-link:hover,
.schedule-footer__link:hover {
  text-decoration: underline;
}

.schedule-main {
  flex: 1 0 auto;
  padding-top: 2rem;
  padding-bottom: 1.15rem;
}

.schedule-error-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-error-card {
  width: min(100%, 42rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid #d9dde5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 0.75rem 2.2rem rgba(15, 23, 42, 0.08);
  text-align: center;
}

.schedule-error-card__code {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(4rem, 10vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
}

.schedule-error-card h1 {
  margin: 1rem 0 0;
  color: #111827;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.15;
}

.schedule-error-card__message {
  margin: 0.75rem 0 0;
  color: #374151;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.schedule-error-card__request-id {
  margin: 1rem 0 0;
  color: #6b7280;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.schedule-error-card__button {
  margin-top: 1.75rem;
  background: #075aaf;
  color: #ffffff;
}

.schedule-error-card__button:hover {
  background: #064f9b;
}

.schedule-page--board .schedule-main {
  padding-top: 1.9rem;
}

.schedule-board-toolbar {
  min-width: 0;
}

.schedule-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}

.schedule-board-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.schedule-board-title i {
  flex: 0 0 auto;
}

.schedule-board-title span {
  min-width: 0;
}

.schedule-board-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  line-height: 1;
  white-space: nowrap;
}

.schedule-board-clock__date {
  color: #64748b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 700;
}

.schedule-report-action { display: flex; justify-content: flex-end; padding-block: 0.5rem 0; }
.report-action-link { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 10px 18px; border: 1px solid var(--brand-border, #d8e2e8); border-radius: 24px; background: var(--brand-surface, #fff); color: var(--brand-text, #233545); box-shadow: 0 3px 14px #0002; font-size: 14px; font-weight: 700; }
.report-action-link:focus-visible { outline: 3px solid var(--brand-accent-text); outline-offset: 3px; }
.report-main { max-width: 800px; padding-block: 24px 48px; }
.report-main h1 { margin: 12px 0; font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 800; line-height: 1.2; }
.report-main > p { margin: 10px 0; line-height: 1.5; }
.report-back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.report-form { display: grid; gap: 12px; padding: 22px; background: var(--brand-surface); border: 1px solid var(--brand-border); border-radius: 10px; }
.report-form input:not([type="hidden"]):not([type="checkbox"]), .report-form textarea, .report-form select { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--brand-border); border-radius: 6px; background: var(--brand-surface); color: var(--brand-text); }
.report-form input:focus-visible, .report-form textarea:focus-visible, .report-form select:focus-visible { outline: 3px solid var(--brand-accent-text); outline-offset: 2px; }
.report-form label { font-weight: 700; }
.report-checkbox { display: flex; gap: 8px; align-items: center; }
.report-checkbox input { width: 18px; height: 18px; flex-shrink: 0; }
.report-form small, .report-hint { color: var(--brand-muted); font-size: 13px; }
.report-privacy-note { display: block; margin: 0.75rem 0 0; padding-inline: 0.25rem; color: var(--brand-muted); font-size: 12px; line-height: 1.4; }
.report-errors { color: #a11938; }
.report-errors.validation-summary-valid { display: none; }
.report-form textarea { height: 7rem; min-height: 7rem; resize: vertical; }
.report-photo-picker { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; width: 100%; min-width: 0; }
.report-form input[type="file"].report-photo-picker__input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.report-photo-picker__button { min-height: 2.75rem; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.55rem 0.9rem; border: 1px solid var(--brand-border); border-radius: 6px; background: var(--brand-surface); color: var(--brand-text); cursor: pointer; font-weight: 700; }
.report-photo-picker__button:hover { border-color: var(--brand-accent-text); background: var(--brand-accent); color: var(--brand-accent-text); }
.report-form input.report-photo-picker__input:focus-visible + .report-photo-picker__button { outline: 3px solid var(--brand-accent-text); outline-offset: 2px; }
.report-form input.report-photo-picker__input:disabled + .report-photo-picker__button { cursor: not-allowed; border-color: var(--brand-border); background: var(--brand-background); color: var(--brand-muted); }
.report-photo-picker__filename { display: block; flex: 1 1 9rem; min-width: 0; overflow: hidden; color: var(--brand-muted); text-overflow: ellipsis; white-space: nowrap; }
.report-photo-info { color: var(--brand-muted); font-size: 13px; line-height: 1.4; }
.report-photo-info summary { width: fit-content; color: var(--brand-accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 0.15em; }
.report-photo-info summary:focus-visible { outline: 3px solid var(--brand-accent-text); outline-offset: 2px; }
.report-photo-info p { margin: 0.5rem 0 0; }
.schedule-page .report-form .report-submit-button { width: 100%; min-width: 0; min-height: 2.875rem; justify-self: stretch; justify-content: center; border: 1px solid var(--brand-border); border-radius: 6px; background: var(--brand-surface); color: var(--brand-text); font-weight: 600; }
.schedule-page .report-form .report-submit-button:hover:not(:disabled) { transform: none; border-color: var(--brand-border); background: var(--brand-background); color: var(--brand-text); box-shadow: none; }
.schedule-page .report-form .report-submit-button:focus-visible { outline: 3px solid var(--brand-accent-text); outline-offset: 3px; }
.schedule-page .report-form .report-submit-button:disabled { cursor: wait; background: var(--brand-background); color: var(--brand-muted); border-color: var(--brand-border); }
.report-form[data-submitting="true"] .report-submit-button { cursor: wait; }
@media print { .schedule-report-action { display: none; } }

.stop-weather {
  container-name: stop-weather;
  container-type: inline-size;
  margin: 1rem 0 0;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--brand-border, #d8e2e8);
  border-radius: 0.65rem;
  background: var(--brand-surface, #fff);
  color: var(--brand-text, #233545);
}
.stop-weather[hidden] { display: none; }
.stop-weather__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.stop-weather__toggle:focus-visible { outline: 3px solid var(--brand-accent-text); outline-offset: 3px; }
.stop-weather__values { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 0; font-size: 1rem; line-height: 1.25; }
.stop-weather__toggle-indicator { flex: 0 0 auto; color: var(--brand-muted, #536b7b); transition: transform 150ms ease; }
.stop-weather__toggle[aria-expanded="true"] .stop-weather__toggle-indicator { transform: rotate(180deg); }
.stop-weather__details { margin-top: 0.55rem; padding-top: 0.5rem; border-top: 1px solid var(--brand-border, #d8e2e8); color: var(--brand-muted, #536b7b); font-size: 0.8rem; line-height: 1.4; overflow-wrap: anywhere; }
.stop-weather__details[hidden] { display: none; }
.stop-weather__details p { margin: 0; }
.stop-weather__details p + p { margin-top: 0.3rem; }
.stop-weather__details time { white-space: nowrap; }
.stop-weather__values > span { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; white-space: nowrap; }
.stop-weather__values > span:not([hidden]) ~ span:not([hidden]) { padding-inline-start: 0.75rem; border-inline-start: 1px solid var(--brand-border, #d8e2e8); }
.stop-weather__values > [hidden] { display: none; }
.stop-weather__values i { color: var(--brand-accent-text, #233545); }
.stop-weather__description { margin: 0.25rem 0 0; color: var(--brand-muted, #536b7b); font-size: 0.8rem; line-height: 1.25; overflow-wrap: anywhere; }
.schedule-page .stop-weather__description a { text-decoration: underline; }
.stop-weather__description a:focus-visible { outline: 3px solid var(--brand-accent-text); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .stop-weather__toggle-indicator { transition: none; }
}

@container stop-weather (max-width: 425px) {
  .stop-weather__values { justify-content: space-between; gap: 0.25rem; font-size: 0.875rem; }
  .stop-weather__values > span { flex: 0 1 auto; gap: 0.25rem; }
  .stop-weather__values > span:not([hidden]) ~ span:not([hidden]) { padding-inline-start: 0.35rem; }
  .stop-weather--air-readings .stop-weather__values > [data-weather-air-quality] { display: none; }
  .stop-weather--air-readings .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > [data-weather-air-quality] { display: inline-flex; }

  .stop-weather__toggle[aria-expanded="true"] { align-items: flex-start; }
  .stop-weather__toggle[aria-expanded="true"] .stop-weather__toggle-indicator { margin-top: 0.1rem; }
  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0; }
  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > span:not([hidden]) { justify-content: flex-start; padding-inline-start: 0; border-inline-start: 0; }
  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > span:nth-child(2),
  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > span[data-weather-pm10-slot] { padding-inline-start: 0.5rem; border-inline-start: 1px solid var(--brand-border, #d8e2e8); }
  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > [data-weather-pm25-slot] { grid-column: 1; grid-row: 2; }
  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > [data-weather-pm10-slot] { grid-column: 2; grid-row: 2; }
  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > [data-weather-air-quality] { grid-column: 1 / -1; grid-row: 3; }
}

@container stop-weather (max-width: 380px) {
  .stop-weather__values > [data-weather-pm10-slot] { display: none; }

  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > [data-weather-pm10-slot] { display: inline-flex; }
}

@container stop-weather (max-width: 300px) {
  .stop-weather__toggle { gap: 0.35rem; }
  .stop-weather__values { gap: 0.25rem; font-size: 0.875rem; }
  .stop-weather__values > span { gap: 0.2rem; }

  .stop-weather--air-readings .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > [data-weather-pm25-slot],
  .stop-weather--air-readings .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > [data-weather-pm10-slot] { flex-wrap: wrap; row-gap: 0.1rem; }
  .stop-weather--air-readings .stop-weather__toggle[aria-expanded="true"] [data-weather-pm25],
  .stop-weather--air-readings .stop-weather__toggle[aria-expanded="true"] [data-weather-pm10] { flex-basis: 100%; }
}

@container stop-weather (max-width: 220px) {
  .stop-weather__values > [data-weather-air-quality],
  .stop-weather__values > [data-weather-pm25-slot],
  .stop-weather__values > [data-weather-pm10-slot] { display: none; }

  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > [data-weather-air-quality],
  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > [data-weather-pm25-slot],
  .stop-weather__toggle[aria-expanded="true"] .stop-weather__values > [data-weather-pm10-slot] { display: inline-flex; }
}

.schedule-board-subtitle {
  margin: 0 0 1.35rem;
  color: #111827;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
}

.schedule-empty-state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #475569;
  font-size: 1.1rem;
}

.schedule-empty-state i {
  color: var(--brand-blue);
  font-size: 1.5rem;
}

.schedule-empty-state p {
  margin: 0;
}

.schedule-title {
  margin: 0 0 1.15rem;
  font-size: clamp(2rem, 3.1vw, 2.6rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 0;
}

.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  margin-bottom: 1.2rem;
  color: #111827;
  font-size: 1rem;
}

.schedule-meta strong {
  font-weight: 800;
}

.schedule-meta__separator {
  color: #6b7280;
}

.schedule-description {
  margin: 0 0 1.25rem;
  color: #1f2937;
  font-size: 1rem;
}

.schedule-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.schedule-controls--board {
  margin-bottom: 1.25rem;
}

.schedule-controls--board .schedule-action-button { min-height: 3.125rem; }

.schedule-field {
  display: grid;
  gap: 0.5rem;
}

.schedule-field__label {
  font-size: 1rem;
  font-weight: 800;
}

.schedule-select {
  width: min(21.5rem, calc(100vw - 2rem));
  min-height: 3.125rem;
  padding: 0.58rem 2.5rem 0.58rem 1.15rem;
  border: 2px solid #bfc6d1;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
}

.schedule-select:focus-visible { outline: 3px solid var(--brand-accent-text); outline-offset: 2px; }

.schedule-print-button,
.schedule-action-button {
  min-height: 2.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.55rem 1.35rem;
  border: 1px solid #1f65b7;
  border-radius: 4px;
  background: #ffffff;
  color: #075aaf;
  font-size: 1rem;
  cursor: pointer;
}

.schedule-print-button:hover,
.schedule-action-button:hover {
  background: #eff6ff;
}

.schedule-clock {
  margin-left: auto;
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
}

.schedule-table-frame {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
}

.schedule-table {
  width: 100%;
  min-width: 54rem;
  border-collapse: collapse;
  color: #111827;
  font-size: 1rem;
}

.schedule-table th,
.schedule-table td {
  padding: 0.52rem 1rem;
  border-right: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  vertical-align: middle;
}

.schedule-table th:last-child,
.schedule-table td:last-child {
  border-right: 0;
}

.schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.schedule-table thead th {
  background: #f8fafc;
  text-align: center;
  font-weight: 800;
}

.schedule-table tbody tr:hover {
  background: #f9fafb;
}

.schedule-table__time {
  width: 7rem;
}

.schedule-table__route {
  width: clamp(12rem, 28vw, 26rem);
}

.schedule-table__days {
  width: 8.5rem;
}

.schedule-table__notes {
  width: 4.5rem;
}

.schedule-table--without-notes .schedule-table__notes {
  display: none;
}

.schedule-table__journey,
.schedule-table__journey-header,
.departures-board__journey,
.departures-board__journey-header {
  display: none;
}

.schedule-table__journey-operator,
.schedule-mobile-only {
  display: none;
}

.schedule-page--timetable .schedule-table {
  table-layout: fixed;
}

.schedule-page--timetable .schedule-table tbody td {
  text-align: center;
}

.schedule-page--timetable .schedule-table__operator {
  width: clamp(9rem, 13vw, 13rem);
  max-width: clamp(9rem, 13vw, 13rem);
  overflow: hidden;
}

.schedule-table__operator .schedule-responsive-label__tooltip {
  display: none !important;
}

.schedule-responsive-label {
  width: 100%;
  min-width: 0;
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
}

.schedule-responsive-label[data-label-display="short"] {
  cursor: pointer;
}

.schedule-responsive-label__full,
.schedule-responsive-label__short {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-responsive-label__short {
  display: none;
}

.schedule-responsive-label[data-label-display="short"] .schedule-responsive-label__full {
  display: none;
}

.schedule-responsive-label[data-label-display="short"] .schedule-responsive-label__short {
  display: block;
}

.schedule-responsive-label__tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  inset-block-start: auto;
  inset-block-end: calc(100% + 0.35rem);
  inset-inline-start: 0;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.45rem 0.6rem;
  border-radius: 0.3rem;
  background: #111827;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 0.35rem 0.8rem rgba(15, 23, 42, 0.25);
}

.schedule-responsive-label[data-label-display="short"].is-expanded .schedule-responsive-label__tooltip,
.schedule-responsive-label[data-label-display="short"]:focus-visible .schedule-responsive-label__tooltip {
  display: block;
}

@media (hover: hover) {
  .schedule-responsive-label[data-label-display="short"]:hover .schedule-responsive-label__tooltip {
    display: block;
  }
}

.schedule-table__cell--center {
  text-align: center;
}

.schedule-table__cell--nowrap {
  white-space: nowrap;
}

.schedule-table__empty {
  padding: 1rem;
  color: #475569;
  text-align: center;
}

.departures-board-frame {
  width: 100%;
  overflow: visible;
  border: 1px solid #d9dde5;
  border-radius: 0.65rem 0.65rem 0 0;
  background: #ffffff;
  box-shadow: 0 0.7rem 1.7rem rgba(15, 23, 42, 0.06);
}

.departures-board {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  color: #111827;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
}

.departures-board th,
.departures-board td {
  padding: 1rem 1.45rem;
  border-bottom: 1px solid #d9dde5;
  vertical-align: middle;
}

.departures-board thead th {
  background: #f8fafc;
  color: #6b7280;
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  font-weight: 800;
  text-align: left;
}

.departures-board tbody tr:nth-child(even) {
  background: #f7f8fa;
}

.departures-board tbody tr:hover {
  background: #eaf4ff;
}

.departures-board tbody tr.departures-board__row--next {
  background: #eff7ff;
}

.departures-board tbody tr.departures-board__row--next td:first-child {
  border-left: 4px solid var(--brand-blue);
}

.departures-board tbody tr.departures-board__row--next:hover {
  background: #e3f1ff;
}

.departures-board__vehicle,
.departures-board__vehicle-header {
  width: 4.75rem;
  text-align: center;
}

.departures-board__status,
.departures-board__status-header {
  width: 12rem;
  text-align: center;
}

.departures-board__status {
  padding-inline: 0.5rem;
}

.departures-board__vehicle {
  color: #4b5563;
  font-size: 1.75rem;
}

.departures-board__route,
.departures-board__route-header {
  width: 42%;
  display: none;
}

.departures-board__route {
  color: var(--brand-blue-text);
  font-size: 0.92em;
  font-weight: 700;
}

.departures-board__headsign,
.departures-board__headsign-header {
  min-width: 14rem;
  display: none;
}

.departures-board__journey,
.departures-board__journey-header {
  display: table-cell;
}

.departures-board__journey {
  min-width: 0;
  width: auto;
}

.departures-board__journey-line {
  color: var(--brand-blue-text);
  font-weight: 800;
}

.departures-board__journey-headsign {
  margin-top: 0.14rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.departures-board__journey-operator {
  margin-top: 0.28rem;
  color: #475569;
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.departures-board__departure,
.departures-board__departure-header {
  width: 9rem;
}

.departures-board__departure {
  font-weight: 800;
  white-space: nowrap;
}

.departures-board__status {
  font-size: 1rem;
}

.departures-board__status-badge {
  max-width: 100%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.departures-board__status-badge i,
.departures-board__status-label {
  flex: 0 1 auto;
  min-width: 0;
}

.departures-board__status--ok {
  color: #166534;
}

.departures-board__status--ok .departures-board__status-badge {
  background: #dcfce7;
}

.departures-board__status--static {
  color: #64748b;
}

.departures-board__status--static .departures-board__status-badge {
  background: #e5e7eb;
}

.departures-board__status--warning {
  color: #9a3412;
}

.departures-board__status--warning .departures-board__status-badge {
  background: #ffedd5;
}

.departures-board__empty {
  padding: 1.5rem;
  color: #475569;
  text-align: center;
}

.departures-board-legend {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0;
  padding: 0.7rem 1rem;
  border: 1px solid #d9dde5;
  border-top: 0;
  border-radius: 0 0 0.65rem 0.65rem;
  background: #ffffff;
  color: #475569;
  font-size: 0.85rem;
}

.departures-board-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

.departures-board-legend__item--ok {
  color: #166534;
}

.departures-board-legend__item--static {
  color: #64748b;
}

.departures-board-legend__item--warning {
  color: #9a3412;
}

.schedule-footer--board {
  margin-top: 1.5rem;
  border-top: 1px solid #d9dde5;
  background: #e9edf3;
}

.schedule-footer__simple {
  min-height: 4.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  color: #526176;
  font-size: clamp(0.7rem, 1.5vw, 0.82rem);
  line-height: 1.2;
  text-align: center;
}

.schedule-footer__note {
  font: inherit;
  line-height: inherit;
}

.schedule-footer__simple span + span::before {
  content: "•";
  margin-right: 0.35rem;
  color: #94a3b8;
}

.schedule-legend {
  margin-top: 1.15rem;
  font-size: 1rem;
}

.schedule-legend h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}

.schedule-legend__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 2rem;
}

.schedule-legend__grid > div {
  white-space: nowrap;
}

.schedule-exception-notes {
  margin-top: 0.9rem;
}

.schedule-exception-notes h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.schedule-exception-notes__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
}

.schedule-exception-marker {
  position: relative;
  margin: 0;
  padding: 0 0.08rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: help;
}

.schedule-exception-marker sup {
  color: #0758a3;
  font-weight: 800;
}

.schedule-exception-marker__tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  inset-block-end: calc(100% + 0.35rem);
  inset-inline-end: 0;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.45rem 0.6rem;
  border-radius: 0.3rem;
  background: #111827;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 0.35rem 0.8rem rgba(15, 23, 42, 0.25);
}

.schedule-exception-marker:focus .schedule-exception-marker__tooltip,
.schedule-exception-marker:focus-visible .schedule-exception-marker__tooltip {
  display: block;
}

@media (hover: hover) {
  .schedule-exception-marker:hover .schedule-exception-marker__tooltip {
    display: block;
  }
}

.schedule-info {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid #3b82d6;
  border-radius: 4px;
  background: #ffffff;
  color: #1f2937;
  font-size: 1rem;
}

.schedule-info i {
  margin-top: 0.1rem;
  color: #0b63ce;
  font-size: 1.25rem;
}

.schedule-info p {
  margin: 0;
}

.schedule-footer {
  flex: 0 0 auto;
  border-top: 1px solid #d9dde5;
  background: #ffffff;
}

.schedule-footer__inner {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  color: #6b7280;
  font-size: 1rem;
}

.schedule-footer__crest {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.schedule-footer__brand strong {
  color: #111827;
}

.schedule-footer__label {
  text-align: center;
}

.schedule-footer__link {
  justify-self: end;
}

.schedule-header--compact {
  background: #ffffff;
  overflow: hidden;
}

.schedule-timetable-toolbar {
  min-height: 5.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.schedule-icon-button {
  width: 2.875rem;
  height: 2.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #075aaf;
  font-size: 1.1rem;
}

.schedule-icon-button:hover {
  background: #eff6ff;
}

.schedule-timetable-heading {
  min-width: 0;
}

.schedule-timetable-heading h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.schedule-timetable-heading p {
  margin: 0.25rem 0 0;
  color: #6b7280;
}

.schedule-action-button--print {
  background: #075aaf;
  color: #ffffff;
}

.schedule-action-button--print:hover {
  background: #064f9b;
}

@media (min-width: 1024px) {
  .schedule-hero__inner {
    min-height: 8.25rem;
  }

  .schedule-brand-card {
    width: min(100%, 40rem);
    gap: 1.35rem;
    padding: 1rem 1.5rem;
  }

  .schedule-brand-card__crest {
    width: 5rem;
    height: 5rem;
  }

  .schedule-brand-card__name {
    font-size: 2.45rem;
  }

  .schedule-brand-card__subtitle {
    margin-top: 0.2rem;
    font-size: 1.35rem;
  }

  .schedule-board-toolbar {
    display: block;
    margin-bottom: 1.5rem;
  }

  .schedule-board-heading {
    display: flex;
    margin-bottom: 1rem;
  }

  .schedule-board-title {
    font-size: 2.35rem;
  }

  .schedule-controls--board {
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin: 0;
  }

  .schedule-controls--board .schedule-select {
    width: 18rem;
  }

  .schedule-controls--board .schedule-field__label {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .schedule-board-clock {
    font-size: 1.85rem;
  }

  .schedule-board-clock__date {
    font-size: 0.95rem;
  }

  .schedule-page--timetable .schedule-table {
    table-layout: fixed;
  }

  .schedule-page--timetable .schedule-table__time {
    width: 9%;
  }

  .schedule-page--timetable .schedule-table__route {
    width: 26%;
  }

  .schedule-page--timetable .schedule-table__headsign {
    width: 18%;
  }

  .schedule-page--timetable .schedule-table__operator {
    width: 25%;
    max-width: none;
  }

  .schedule-page--timetable .schedule-table__days {
    width: 10%;
  }

  .schedule-page--timetable .schedule-table__notes {
    width: 12%;
  }

  .schedule-page--timetable .schedule-table--without-notes .schedule-table__time {
    width: 10%;
  }

  .schedule-page--timetable .schedule-table--without-notes .schedule-table__route {
    width: 30%;
  }

  .schedule-page--timetable .schedule-table--without-notes .schedule-table__headsign {
    width: 21%;
  }

  .schedule-page--timetable .schedule-table--without-notes .schedule-table__operator {
    width: 28%;
  }

  .schedule-page--timetable .schedule-table--without-notes .schedule-table__days {
    width: 11%;
  }

  .departures-board__status-badge {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    font-size: 0.85rem;
  }

  .schedule-footer--board {
    flex-direction: row;
    gap: 0.9rem;
    font-size: 0.82rem;
  }

  .schedule-footer__simple span + span::before {
    margin-right: 0.9rem;
  }
}

@media (max-width: 760px) {
  .schedule-responsive-label__tooltip {
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: min(15rem, calc(100vw - 2rem));
  }

  .schedule-table__operator .schedule-responsive-label__tooltip {
    inset-inline-start: auto;
    inset-inline-end: 0;
  }

  .schedule-header__inner,
  .schedule-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-official-link,
  .schedule-clock {
    margin-left: 0;
  }

  .schedule-legend__grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-footer__inner {
    grid-template-columns: 1fr;
  }

  .schedule-footer__label {
    text-align: left;
  }

  .schedule-footer__link {
    justify-self: start;
  }

  .schedule-page--board .schedule-main {
    padding-top: 1.25rem;
  }

  .schedule-hero__inner {
    min-height: 9.2rem;
    padding-block: 1rem;
  }

  .schedule-brand-card {
    justify-content: center;
    gap: 1.15rem;
    padding: 1rem 1.15rem;
    text-align: left;
  }

  .schedule-brand-card__crest {
    width: 4.35rem;
    height: 4.35rem;
  }

  .schedule-brand-card__name {
    max-width: 9rem;
    font-size: 1.8rem;
    line-height: 1.02;
  }

  .schedule-brand-card__subtitle {
    margin-top: 0.35rem;
    font-size: 1.05rem;
  }

  .schedule-board-heading {
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .schedule-board-title {
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 1.4rem;
  }

  .schedule-board-title i {
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
    font-size: 1.2rem;
    line-height: 1;
  }

  .schedule-board-title span {
    display: block;
    line-height: 1.24;
    overflow-wrap: anywhere;
  }

  .schedule-controls--board .schedule-field__label {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .schedule-board-clock {
    padding-top: 0.35rem;
    font-size: 1.3rem;
  }

  .schedule-controls--board {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
  }

  .schedule-controls--board .schedule-field {
    width: 100%;
    min-width: 0;
    gap: 0.45rem;
  }

  .schedule-controls--board .schedule-select {
    width: 100%;
    min-height: 3.25rem;
  }

  .schedule-controls--board .schedule-action-button {
    width: 3rem;
    height: 3.25rem;
    min-height: 3.25rem;
    align-self: end;
    padding: 0;
  }

  .schedule-controls--board .schedule-action-button__label {
    display: none;
  }

  .schedule-empty-state {
    margin-top: 0;
    padding: 1rem 1.1rem;
  }

  .schedule-board-subtitle {
    margin-bottom: 0.8rem;
    font-size: 1.28rem;
  }

  .departures-board-frame {
    overflow-x: hidden;
  }

  .departures-board {
    min-width: 0;
    table-layout: fixed;
    font-size: 1rem;
  }

  .departures-board th,
  .departures-board td {
    padding: 0.58rem 0.4rem;
  }

  .departures-board thead th {
    font-size: 1rem;
  }

  .departures-board__vehicle,
  .departures-board__vehicle-header {
    display: table-cell;
    width: 2.1rem;
    padding-inline: 0.25rem;
  }

  .departures-board__status,
  .departures-board__status-header {
    width: 2.35rem;
  }

  .departures-board__vehicle,
  .departures-board__status {
    font-size: 1.25rem;
  }

  .departures-board__status-badge {
    width: 1.75rem;
    height: 1.75rem;
    min-height: 0;
    padding: 0;
    font-size: 0.85rem;
  }

  .departures-board__status-label {
    display: none;
  }

  .departures-board__status-header-label {
    display: none;
  }

  .departures-board__route,
  .departures-board__route-header {
    display: none;
  }

  .departures-board__headsign,
  .departures-board__headsign-header {
    display: none;
  }

  .departures-board__journey,
  .departures-board__journey-header {
    display: table-cell;
  }

  .departures-board__journey {
    min-width: 0;
    width: auto;
  }

  .departures-board__journey-line {
    font-weight: 800;
    color: var(--brand-blue-text);
  }

  .departures-board__journey-headsign {
    margin-top: 0.1rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .departures-board__departure,
  .departures-board__departure-header {
    width: 4.15rem;
  }

  .departures-board__departure {
    font-weight: 700;
  }

  .departures-board-legend {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .schedule-timetable-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding-block: 0.75rem;
    padding-inline: 1rem;
  }

  .schedule-page--timetable {
    overflow-x: hidden;
  }

  .schedule-page--timetable .schedule-container {
    width: 100%;
    max-width: 100%;
    padding-inline: 1rem;
  }

  .schedule-page--timetable .schedule-main {
    padding-top: 1rem;
  }

  .schedule-page--timetable .schedule-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.92rem;
  }

  .schedule-page--timetable .schedule-table th,
  .schedule-page--timetable .schedule-table td {
    min-width: 0;
    padding: 0.48rem 0.35rem;
  }

  .schedule-page--timetable .schedule-table th {
    font-size: 0.78rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .schedule-page--timetable .schedule-table-frame {
    overflow-x: hidden;
    overflow-x: clip;
  }

  .schedule-page--timetable .schedule-table__time {
    width: 3.65rem;
  }

  .schedule-page--timetable .schedule-table__route,
  .schedule-page--timetable .schedule-table__headsign {
    display: none;
  }

  .schedule-page--timetable .schedule-table__journey,
  .schedule-page--timetable .schedule-table__journey-header {
    display: table-cell;
    min-width: 0;
  }

  .schedule-page--timetable .schedule-table__journey-line {
    color: var(--brand-blue-text);
    font-weight: 800;
  }

  .schedule-page--timetable .schedule-table__journey-headsign {
    margin-top: 0.18rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .schedule-page--timetable .schedule-table__journey-operator {
    display: block;
    margin-top: 0.24rem;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .schedule-page--timetable .schedule-table__operator {
    display: none;
  }

  .schedule-page--timetable .schedule-table__days {
    width: 3.6rem;
    font-size: 0.78rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .schedule-page--timetable .schedule-desktop-only {
    display: none;
  }

  .schedule-page--timetable .schedule-mobile-only {
    display: inline;
  }

  .schedule-page--timetable .schedule-table__notes {
    display: none;
  }

  .schedule-timetable-heading h1 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.25rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .schedule-action-button--print {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (max-width: 480px) {
  .stop-weather {
    padding: 0.375rem 0.625rem;
  }

  .stop-weather__values {
    justify-content: space-between;
    gap: 0.25rem;
  }

  .stop-weather__values > span {
    min-width: 0;
    flex-wrap: nowrap;
  }

  .stop-weather__description {
    margin-top: 0.25rem;
  }

  .schedule-board-heading {
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .schedule-board-title {
    flex: 1 1 12rem;
  }

  .schedule-board-clock {
    margin-inline-start: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    padding-top: 0;
    font-size: 1.25rem;
  }

  .schedule-footer__simple {
    flex-direction: column;
    gap: 0.2rem;
  }

  .schedule-footer__simple span + span::before {
    display: none;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  .schedule-official-link,
  .schedule-controls,
  .schedule-clock,
  .schedule-icon-button,
  .schedule-action-button {
    display: none;
  }

  .schedule-body,
  .schedule-page {
    background: #ffffff;
  }

  .schedule-container {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  .schedule-page--timetable .schedule-table {
    width: 100%;
    table-layout: fixed;
    font-size: 9pt;
  }

  .schedule-page--timetable .schedule-table th,
  .schedule-page--timetable .schedule-table td {
    padding: 2.5mm 2mm;
    vertical-align: middle;
  }

  .schedule-page--timetable .schedule-table__route,
  .schedule-page--timetable .schedule-table__headsign {
    display: table-cell !important;
  }

  .schedule-page--timetable .schedule-table__journey,
  .schedule-page--timetable .schedule-table__journey-header {
    display: none !important;
  }

  .schedule-page--timetable .schedule-table__time {
    width: 9%;
  }

  .schedule-page--timetable .schedule-table__route {
    width: 26%;
  }

  .schedule-page--timetable .schedule-table__headsign {
    width: 18%;
  }

  .schedule-page--timetable .schedule-table__operator {
    width: 25%;
    max-width: none;
  }

  .schedule-page--timetable .schedule-table__days {
    width: 10%;
  }

  .schedule-page--timetable .schedule-table__notes {
    width: 12%;
  }

  .schedule-page--timetable .schedule-table--without-notes .schedule-table__time {
    width: 10%;
  }

  .schedule-page--timetable .schedule-table--without-notes .schedule-table__route {
    width: 30%;
  }

  .schedule-page--timetable .schedule-table--without-notes .schedule-table__headsign {
    width: 21%;
  }

  .schedule-page--timetable .schedule-table--without-notes .schedule-table__operator {
    width: 28%;
  }

  .schedule-page--timetable .schedule-table--without-notes .schedule-table__days {
    width: 11%;
  }

  .schedule-responsive-label__full {
    display: block !important;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .schedule-responsive-label__short,
  .schedule-responsive-label__tooltip {
    display: none !important;
  }
}
