/* Transit lines behind a page (transit-lines.js) and the Transbay logo in the corner. */

.transit-lines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
}

.transit-track {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transit-station {
  fill: #0d1117;
  stroke-width: 4;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Where two lines meet: one station both lines share. */
.transit-station.is-transfer {
  stroke: #f5f7fa;
  stroke-width: 5;
}

.transit-station.is-shown {
  transform: scale(1);
}

.corner-mark {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f5f7fa;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.corner-mark img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.corner-mark:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .transit-track {
    stroke-width: 7;
  }
  .transit-station {
    stroke-width: 3;
  }
  .transit-station.is-transfer {
    stroke-width: 4;
  }
  .corner-mark {
    top: 16px;
    left: 16px;
    font-size: 0.75rem;
  }
  .corner-mark img {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transit-station {
    transition: none;
  }
}
