.schedule-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: #ffffff;
  color: #111827;
}

.schedule-page {
  --brand-blue: #009bd6;
  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-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-board-subtitle {
  margin: 0 0 1.35rem;
  color: #111827;
  font-size: clamp(1.35rem, 4vw, 2rem);
  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.6rem;
}

.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: 2.875rem;
  padding: 0.58rem 2.5rem 0.58rem 1.15rem;
  border: 1px solid #bfc6d1;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
}

.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);
  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);
  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.7rem;
  }

  .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: 2.9rem;
  }

  .schedule-controls--board .schedule-action-button {
    width: 3rem;
    height: 2.9rem;
    min-height: 2.9rem;
    align-self: end;
    padding: 0;
  }

  .schedule-controls--board .schedule-action-button__label {
    display: none;
  }

  .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);
  }

  .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);
    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 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;
  }
}
