/* The route selector is printed as a single pass over the live street scene. */
.intro {
  --pass-ink: #133c32;
  --pass-paper: #f4eddb;
  --pass-orange: #fa7046;
  align-items: center;
  background: linear-gradient(90deg, rgb(8 38 32 / 77%), rgb(8 38 32 / 44%) 27%, transparent 61%);
}

.intro .intro-inner {
  width: clamp(345px, 38%, 430px);
  max-width: calc(100% - 36px);
  margin: 0 0 0 clamp(20px, 3.6vw, 48px);
  padding: 0;
}

.intro h1 { margin: 0 0 clamp(14px, 2.2vw, 26px); }
.intro #title-art { display: block; width: clamp(226px, 25vw, 340px); }
.boarding-pass {
  background: var(--pass-paper);
  color: var(--pass-ink);
  box-shadow: 0 6px 16px rgb(8 27 22 / 30%);
}

.intro #opening-prompt {
  margin: 0;
  max-width: none;
  padding: 9px 14px;
  background: var(--pass-ink);
  color: var(--pass-paper);
  font: 550 13px/1.28 var(--body, sans-serif);
  text-shadow: none;
}

.boarding-pass .ride-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.boarding-pass .ride-choice {
  align-content: start;
  min-height: 0;
  gap: 6px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: var(--pass-paper);
  color: var(--pass-ink);
  box-shadow: none;
  transition: background-color 120ms ease;
}

.boarding-pass .ride-choice.north { border-left: 1px solid #afb4a2; }

.boarding-pass .ride-choice strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font: 800 clamp(21px, 2vw, 27px)/0.98 var(--display, "Arial Narrow", sans-serif);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.boarding-pass .ride-choice span {
  color: inherit;
  font: 500 13px/1.3 var(--body, sans-serif);
  text-wrap: pretty;
}

.route-arrow {
  --arrow-paper: var(--pass-paper);
  position: relative;
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pass-ink);
}
.route-arrow::before, .route-arrow::after {
  position: absolute;
  content: "";
  left: 50%;
}
.route-arrow::before {
  top: 4px;
  width: 2px;
  height: 10px;
  margin-left: -1px;
  background: var(--arrow-paper);
}
.route-arrow::after {
  top: 8px;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--arrow-paper);
  border-bottom: 2px solid var(--arrow-paper);
  transform: translateX(-50%) rotate(45deg);
}
.north .route-arrow { transform: rotate(180deg); }

.boarding-pass .commute-choice {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 56px;
  border-top: 1px dashed var(--pass-ink);
  background: var(--pass-orange);
  color: #17332b;
}
.boarding-pass .commute-stub {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  border-right: 1px dashed #8d4f38;
}
.boarding-pass .commute-stub .symbol { width: 24px; height: 24px; }
.boarding-pass .commute-copy { display: grid; min-width: 0; gap: 4px; padding: 9px 12px; }
.boarding-pass #commute-label { display: block; font-size: clamp(20px, 1.8vw, 24px); }
.boarding-pass #commute-subtitle { font-size: 12px; }

.boarding-pass .ride-choice:focus-visible,
.boarding-pass .commute-current:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--pass-ink);
  outline-offset: -4px;
}
.boarding-pass .ride-choice:active { transform: none; background: #dcd3b8; }
.boarding-pass .commute-choice:active { background: #f49664; }
.boarding-pass .commute-current {
  margin: 0;
  padding: 8px 14px;
  width: 100%;
  border-top: 1px solid var(--pass-ink);
  border-radius: 0;
  background: var(--pass-paper);
  color: var(--pass-ink);
  text-align: left;
  font: 650 13px/1.25 var(--body, sans-serif);
}
@media (hover: hover) {
  .boarding-pass .ride-choice:hover { background: #e4ddc7; }
  .boarding-pass .commute-choice:hover { background: #ff936a; }
  .boarding-pass .commute-current:hover { background: #e4ddc7; }
}
@media (max-width: 620px) {
  .intro {
    align-items: stretch;
    background: linear-gradient(135deg, rgb(12 48 39 / 57%), transparent 49%);
  }
  .intro .intro-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 15px 12px 12px;
  }
  .intro h1 { margin: 0 0 8px; }
  .intro #title-art { width: clamp(175px, 47vw, 250px); }
  .boarding-pass { width: min(100%, 405px); }
  .intro #opening-prompt { padding: 7px 10px; font-size: 12px; }
  .boarding-pass .ride-choice { padding: 9px 10px; gap: 4px; }
  .boarding-pass .ride-choice strong { gap: 5px; font-size: 21px; }
  .boarding-pass .ride-choice span { font-size: 12px; line-height: 1.24; }
  .boarding-pass .commute-choice { min-height: 47px; padding: 0; gap: 0; }
  .boarding-pass .commute-stub { flex-basis: 36px; }
  .boarding-pass .commute-stub .symbol { width: 21px; height: 21px; }
  .boarding-pass .commute-copy { padding: 7px 9px; }
  .boarding-pass #commute-label { font-size: 20px; }
  .boarding-pass #commute-subtitle { font-size: 11px; }
}
@media (max-width: 360px) {
  .intro .intro-inner { padding: 11px 8px 8px; }
  .boarding-pass .ride-choice strong { font-size: 19px; }
  .boarding-pass .ride-choice:not(.commute-choice) { padding-inline: 8px; }
  .route-arrow { width: 18px; height: 18px; }
  .route-arrow::before, .route-arrow::after { margin-top: -1px; }
}
@media (min-width: 621px) and (max-height: 530px) {
  .intro h1 { margin-bottom: 8px; }
  .intro #title-art { width: 205px; }
  .boarding-pass .ride-choice:not(.commute-choice) { padding-block: 8px; }
  .boarding-pass .commute-choice { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .boarding-pass .ride-choice { transition: none; }
}
