@font-face {
  font-family: "DM Sans";
  src: url("../vendor/fonts/font-0.ttf");
  font-display: swap;
}
:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: #fff6e5;
  color-scheme: dark;
  background: #142727;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button,
select,
.primary-link {
  cursor: pointer;
}
button {
  min-height: 44px;
  padding: 10px 16px;
  color: inherit;
  background: #203a38;
  border: 1px solid #637c70;
  border-radius: 6px;
}
button:hover {
  background: #2b4a43;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
:focus-visible {
  outline: 3px solid #ffd75e;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: -70px;
  left: 20px;
  z-index: 10;
  padding: 15px;
  background: #142727;
}
.skip-link:focus {
  top: 0;
}
.bus-header {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 25px max(24px, calc((100vw - 1152px) / 2));
  border-bottom: 1px solid #ffffff24;
}
.wordmark {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.3px;
  text-decoration: none;
}
.wordmark span,
h1 em {
  color: #ffd75e;
}
main {
  max-width: 1200px;
  padding: 0 24px 60px;
  margin: auto;
}
.bus-intro {
  padding: 36px 0 30px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #c1cebe;
  letter-spacing: 0.16em;
}
h1 {
  margin: 20px 0;
  font-size: clamp(46px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
}
h1 em {
  font-style: normal;
}
.bus-intro > p:not(.eyebrow, .source-note) {
  font-size: 19px;
}
.source-note {
  font-size: 13px;
  line-height: 1.65;
  color: #c1cebe;
}
.bus-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}
.bus-quick-links strong {
  color: #ffd75e;
}
.bus-quick-links a {
  padding: 12px 0;
  font-size: 13px;
}
#routes {
  scroll-margin-top: 20px;
}
.route-filters {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  padding: 24px;
  background: #203a38;
  border-radius: 10px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: #fff6e5;
  background: #142727;
  border: 1px solid #789084;
  border-radius: 5px;
}
input::placeholder {
  color: #b3c4b8;
}
.result-heading,
.route-pages {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
  font-size: 13px;
}
.route-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.route-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 112px;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 20px 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ffffff24;
  border-radius: 0;
}
.service-badge {
  display: grid;
  place-items: center;
  min-height: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #142727;
  background: #ffd75e;
  border-radius: 5px;
}
.route-description {
  line-height: 1.55;
}
.route-action {
  font-size: 12px;
  color: #ffd75e;
  text-align: right;
}
.about-data {
  max-width: 800px;
  padding-top: 24px;
  margin-top: 50px;
  font-size: 14px;
  line-height: 1.7;
  color: #c1cebe;
  border-top: 1px solid #ffffff24;
}
:where(.about-data) h2 {
  font-size: 22px;
  color: #fff6e5;
}
dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 32px;
  overflow: auto;
  color: #fff6e5;
  background: #142727;
  border: 1px solid #789084;
  border-radius: 12px;
}
dialog::backdrop {
  background: #061510bb;
}
dialog h2 {
  margin-right: 25px;
  font-size: clamp(23px, 4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
dialog h3 {
  margin-top: 30px;
}
dialog p,
dialog li {
  line-height: 1.7;
}
.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  padding: 0;
  font-size: 25px;
  background: transparent;
  border: 0;
}
.primary-link {
  display: inline-block;
  padding: 14px 18px;
  font-weight: 700;
  color: #142727;
  text-decoration: none;
  background: #ffd75e;
  border-radius: 6px;
}
#bus-frequency-list {
  padding-left: 22px;
  font-variant-numeric: tabular-nums;
}
dialog :where(#bus-frequency-list) li {
  margin: 12px 0;
}
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
.route-sequence {
  padding: 0 0 0 10px;
  list-style: none;
}
.route-sequence li {
  position: relative;
  padding: 0 0 14px 22px;
  border-left: 2px solid #ffd75e;
}
.route-sequence li::before {
  position: absolute;
  top: 8px;
  left: -6px;
  width: 10px;
  height: 10px;
  content: "";
  background: #ffd75e;
  border-radius: 50%;
}
.route-sequence li:last-child {
  border-color: transparent;
}
details {
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid #ffffff24;
}
summary {
  line-height: 1.5;
  cursor: pointer;
}
#bus-trip-stops {
  padding-left: 24px;
}
#bus-trip-stops li {
  padding: 7px 0;
}
#bus-trip-stops li span:last-child {
  display: block;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #ffd75e;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .bus-header {
    padding: 20px;
  }
  .bus-header > a:last-child {
    font-size: 12px;
  }
  main {
    padding: 0 18px 40px;
  }
  .bus-intro {
    padding: 42px 0 30px;
  }
  .route-filters {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }
  .route-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }
  .route-action {
    grid-column: 2;
    text-align: left;
  }
  .route-description {
    font-size: 14px;
  }
  dialog {
    padding: 28px 20px;
  }
  .bus-quick-links {
    flex-direction: column;
    align-items: stretch;
  }
}
