@font-face {
  font-family: "Hammersmith One";
  src: url("vendor/fonts/HammersmithOne-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  font-family: "Hammersmith One", "Gill Sans", ui-sans-serif, system-ui, sans-serif;
  color: #142747;
  background: #fffdf2;
  font-size: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 20px;
  border-bottom: 1px solid #cbd2dc;
  background: #fffdf2;
  z-index: 2;
}
select {
  width: 260px;
  min-width: 0;
  border: 1px solid #aab6c6;
  border-radius: 0;
  background: #fffdf2;
  padding: 10px 8px;
  font: inherit;
  color: inherit;
}
.morph { width: 320px; min-width: 0; }
.morph-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
output { font-variant-numeric: tabular-nums; }
input[type="range"] {
  display: block;
  width: 100%;
  accent-color: #d42132;
  margin: 8px 0 0;
}
select:focus-visible, input:focus-visible {
  outline: 2px solid #245bb2;
  outline-offset: 3px;
}
#map {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #fffdf2;
  touch-action: none;
}
canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
#overlay { cursor: grab; }
#stationLines {
  position: absolute;
  top: 16px;
  left: 20px;
  max-width: min(280px, calc(100% - 40px));
  padding: 10px 12px;
  border: 1px solid #aab6c6;
  border-top: 3px solid #142747;
  background: #fffdf2f2;
  font-size: 11px;
  pointer-events: none;
}
#stationLines strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
  font-size: 14px;
}
.serving-lines { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.serving-line { white-space: nowrap; }
.line-chip {
  display: inline-block;
  width: 16px;
  height: 3px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: middle;
}
#status {
  position: absolute;
  bottom: 44px;
  left: 20px;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 8px 12px;
  background: #fffdf2f2;
  color: #52677e;
  font-size: 12px;
  pointer-events: none;
}
#attribution {
  position: absolute;
  right: 8px;
  bottom: 7px;
  background: #fffdf2ed;
  padding: 3px 6px;
  font-size: 9px;
  color: #52677e;
  text-decoration: none;
}
#scale {
  position: absolute;
  left: 20px;
  bottom: 16px;
  white-space: nowrap;
  border-top: 2px solid #142747;
  padding: 5px 4px 2px;
  background: #fffdf2ed;
  text-align: center;
  font-size: 11px;
  pointer-events: none;
}
@media (max-width: 600px) {
  header { padding: 10px 12px; gap: 16px; }
  select { flex: 1; width: 0; font-size: 12px; }
  .morph { flex: 1.2; width: 0; }
  .morph-label { font-size: 10px; }
  #stationLines { top: 12px; left: 12px; }
}
