:root {
  --ink: #1d3732;
  --muted: #526e64;
  --paper: #fcfbf2;
  --rule: #748d7e49;
  --accent: #e77042;
  font:
    16px "Source Sans 3",
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100dvh;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  background: #f6f7ef;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
#viewport:focus-visible {
  outline: 3px solid #cf6938;
  outline-offset: 2px;
}
button {
  border: 0;
  background: none;
}
button:hover {
  background-color: #dce7dc;
}
svg {
  width: 20px;
  height: 20px;
  display: block;
}
i {
  display: inline-flex;
  font-style: normal;
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 6;
  background: #f8f8ef;
}
header {
  height: 70px;
  flex: none;
  padding: 0 3.1%;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: "STIX Two Text", Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: -0.7px;
}
.stamp {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #22483b;
  color: #f9f8e9;
  border-radius: 50%;
}
.stamp svg {
  width: 30px;
  height: 30px;
}
nav {
  margin-left: auto;
  display: flex;
  background: #e8ede3;
  padding: 4px;
  border-radius: 30px;
  gap: 3px;
}
.tab {
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
}
.tab svg {
  width: 17px;
  height: 17px;
}
.tab.active {
  background: #294c3d;
  color: white;
}
.info {
  margin-left: 18px;
  border-left: 1px solid var(--rule);
  padding: 8px 0 8px 22px;
}
.info:hover {
  background: transparent;
  color: #ba613c;
}
#stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(
      ellipse at 58% 26%,
      #f0f2df 0%,
      #e4ecdb 28%,
      transparent 65%
    ),
    linear-gradient(150deg, #e6ebdc, #c2ded6 64%, #a5cbc4);
}
#stage:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(#8ba59b 0.75px, transparent 0.85px);
  background-size: 13px 13px;
  mask-image: linear-gradient(
    110deg,
    black,
    transparent 42%,
    transparent 70%,
    black
  );
}
#viewport,
#mapLabels {
  position: absolute;
  inset: 0;
}
#viewport {
  touch-action: none;
  cursor: grab;
}
#viewport:active {
  cursor: grabbing;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
#mapLabels {
  pointer-events: none;
  overflow: hidden;
}
.map-label {
  position: absolute;
  white-space: nowrap;
  border-radius: 4px;
  background: #f9fbeced;
  border: 1px solid #758b786b;
  color: #243e32;
  box-shadow: 0 2px 5px #173b2819;
  font-size: 12px;
  font-weight: 650;
  padding: 3px 7px;
  transform: translate(-50%, calc(-100% - 10px));
}
.map-label:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  height: 10px;
  width: 1px;
  background: #546c55;
}
.map-label:before {
  content: "";
  position: absolute;
  top: calc(100% + 8px);
  left: calc(50% - 2px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #334e40;
}
.intro {
  position: absolute;
  left: 3.4%;
  top: 6%;
  pointer-events: none;
  width: max-content;
  max-width: 36vw;
}
.region {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2.2px;
  font-weight: 750;
}
.region span {
  background: #bd653e;
  width: 29px;
  height: 2px;
}
.region b {
  color: #97a697;
  font-weight: 500;
}
h1 {
  margin: 10px 0 4px;
  font:
    normal clamp(52px, 5.7vw, 94px) / 1 "STIX Two Text",
    Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.06em;
}
h1 span {
  color: #c86e47;
}
.intro p {
  color: #4a6558;
  font-size: 15px;
  margin: 12px 0 20px;
}
.facts {
  display: flex;
  gap: 20px;
  align-items: center;
}
.facts > div {
  display: grid;
  gap: 1px;
}
.facts > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}
.facts strong {
  font-family: "STIX Two Text", Georgia, serif;
  font-size: 25px;
  line-height: 1.05;
  font-weight: normal;
}
.facts small {
  font:
    14px "STIX Two Text",
    Georgia,
    serif;
}
.facts span {
  font-size: 12px;
  color: var(--muted);
}
.panel,
.tools,
.orbit button {
  background: #fcfcf1ee;
  border: 1px solid #7a8c7657;
  box-shadow: 0 4px 16px #28453012;
  backdrop-filter: blur(12px);
}
.legend {
  position: absolute;
  left: 3.4%;
  bottom: 5%;
  width: 192px;
  border-radius: 12px;
  padding: 16px 16px 11px;
}
.legend h2,
.panelhead h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.3px;
}
.legend h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.grade,
.layer {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 9px;
  padding: 5px 2px;
  border-radius: 4px;
  font-size: 14px;
}
.line {
  width: 18px;
  height: 4px;
  border-radius: 3px;
  background: var(--color);
  flex: none;
}
.grade .tick {
  margin-left: auto;
  font-size: 12px;
  color: #4c6a56;
}
.grade[aria-pressed="false"] {
  opacity: 0.44;
}
.grade[aria-pressed="false"] .tick {
  visibility: hidden;
}
.tools {
  position: absolute;
  right: 3.1%;
  top: 5%;
  border-radius: 23px;
  display: grid;
  justify-items: center;
  padding: 5px;
}
.tools button,
.close {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.tools span {
  width: 19px;
  height: 1px;
  background: var(--rule);
  margin: 3px;
}
.tools button:hover,
.close:hover {
  background: #dae5d7;
}
.compass {
  position: absolute;
  right: 3.55%;
  bottom: 5%;
  height: 57px;
  width: 45px;
  display: grid;
  justify-items: center;
  align-content: start;
  pointer-events: none;
}
.compass b {
  font: 700 11px Arial;
  letter-spacing: 1px;
}
.compass span {
  display: block;
  width: 36px;
  height: 36px;
  position: relative;
  border: 1px solid #77978983;
  border-radius: 50%;
  background: #f2f7e795;
  margin-top: 4px;
}
.compass span:after,
.compass span:before {
  content: "";
  position: absolute;
  left: 13px;
  top: 3px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 14px solid #b56142;
}
.compass span:after {
  transform: rotate(180deg);
  top: 17px;
  border-bottom-color: #537064;
}
.orbit {
  position: absolute;
  left: 50%;
  bottom: 4.3%;
  transform: translateX(-50%);
}
.orbit button {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
}
.orbit svg {
  width: 16px;
  height: 16px;
}
.orbit button[aria-pressed="true"] {
  background: #284c3d;
  color: white;
}
.drawer,
.popup {
  position: absolute;
  border-radius: 14px;
  padding: 18px;
  right: calc(3.1% + 58px);
  top: 5%;
  width: min(330px, 80vw);
  max-height: 85%;
  overflow: auto;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.close {
  width: 28px;
  height: 28px;
}
.close svg {
  width: 16px;
}
.drawer input {
  width: 100%;
  border-radius: 8px;
  padding: 9px 12px;
  border: 1px solid #a4b5a3;
  margin: 13px 0 6px;
  background: #fffef9;
}
#runList {
  max-height: 49vh;
  overflow: auto;
}
.run-row {
  display: flex;
  text-align: left;
  width: 100%;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
  padding: 9px 4px;
  font-size: 14px;
}
.run-row small {
  margin-left: auto;
  color: var(--muted);
}
.drawer h2:not(.panelhead h2),
dialog h2 {
  font:
    normal 32px/1.1 "STIX Two Text",
    Georgia,
    serif;
  margin: 10px 0;
  letter-spacing: -1px;
}
.drawer small,
dialog > small {
  font-size: 12px;
  color: var(--muted);
}
.detail-stats {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  flex-wrap: wrap;
}
.detail-stats span {
  display: grid;
  font-size: 12px;
  color: var(--muted);
}
.detail-stats b {
  font-size: 16px;
  color: var(--ink);
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 10px 0;
}
.layer {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.layer input {
  margin-left: auto;
  accent-color: #346550;
}
.popup {
  width: 215px;
}
.notice {
  position: absolute;
  bottom: 19%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 10px;
  background: #fffced;
  font-size: 14px;
}
footer {
  height: 40px;
  flex: none;
  padding: 0 3.2%;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
}
footer span,
footer button {
  display: flex;
  align-items: center;
  gap: 6px;
}
footer b {
  font-weight: 600;
}
footer em {
  font-style: normal;
  margin: 0 5px;
}
footer svg {
  width: 14px;
  height: 14px;
}
footer button {
  border-radius: 4px;
  padding: 4px 0;
}
dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 15px;
  padding: 26px;
  max-width: min(520px, 90vw);
  line-height: 1.5;
}
dialog form {
  float: right;
}
dialog::backdrop {
  background: #163d3659;
}
dialog a {
  color: #326747;
}
dialog p {
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 770px) {
  header {
    height: 56px;
  }
  .brand {
    font-size: 17px;
    gap: 6px;
  }
  .stamp {
    width: 30px;
    height: 30px;
  }
  .stamp svg {
    width: 24px;
  }
  .tab {
    padding: 6px 9px;
    font-size: 12px;
  }
  .info {
    margin-left: 6px;
    padding-left: 8px;
  }
  .intro {
    max-width: 70vw;
    top: 4%;
  }
  .intro p {
    font-size: 13px;
    margin: 6px 0 10px;
  }
  .facts strong {
    font-size: 19px;
  }
  .legend {
    width: 150px;
    padding: 10px;
    bottom: 3%;
  }
  .legend h2 {
    font-size: 13px;
  }
  .grade {
    font-size: 12px;
    padding: 3px 1px;
  }
  .orbit {
    left: auto;
    right: 3%;
    bottom: 3%;
    transform: none;
  }
  .compass {
    bottom: 13%;
  }
  .tools {
    top: 3%;
  }
  footer {
    height: 32px;
  }
  footer span {
    font-size: 0;
    gap: 3px;
  }
  footer b {
    font-size: 11px;
  }
  .drawer,
  .popup {
    z-index: 4;
  }
  .region {
    font-size: 10px;
  }
}
.hotel-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #8b5031;
  border: 2px solid #fff7df;
  color: white;
  border-radius: 9px 9px 9px 2px;
  padding: 3px;
  pointer-events: auto;
  box-shadow: 0 2px 5px #233c3866;
}
.hotel-pin svg {
  width: 15px;
  height: 15px;
}
.hotel-pin:hover,
.hotel-pin.selected {
  background: #c06337;
  z-index: 2;
}
.coordinates {
  font-size: 13px;
  color: var(--muted);
}
#detailBody a {
  color: #326747;
  font-size: 14px;
}
.hotel-row {
  display: grid;
  gap: 2px;
}
.hotel-row small {
  margin: 0;
}
.hotel-row:hover {
  background: #e4edde;
}
.drawer input:focus {
  outline: 2px solid #698772;
  outline-offset: 0;
}
@media (max-width: 520px) {
  .brand {
    font-size: 0;
  }
  .tab svg {
    width: 15px;
    height: 15px;
  }
  .intro p {
    max-width: 220px;
  }
  .orbit span {
    font-size: 11px;
  }
}
.profile {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.profile figcaption,
.map-note {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 6px;
}
.profile svg {
  width: 100%;
  height: 68px;
}
.map-note {
  margin-top: 12px;
}
.summit {
  background: #314d44e8;
  color: #fffae7;
  border-color: #314d44;
  font-size: 11px;
  letter-spacing: 0.15px;
}
.summit:before {
  background: #ce7449;
}
.summit:after {
  background: #485e53;
}
.mapscale {
  position: absolute;
  bottom: 5.4%;
  right: calc(3.6% + 67px);
  display: grid;
  justify-items: center;
  color: #36584d;
  pointer-events: none;
  gap: 3px;
}
.mapscale b {
  font: 600 11px Arial;
  letter-spacing: 0.3px;
}
.mapscale i {
  height: 5px;
  border: 1px solid #4e7365;
  border-top: 0;
}
.road-label {
  font:
    italic 12px "STIX Two Text",
    Georgia,
    serif;
  color: #574c3d;
  background: #faf5e6dd;
  box-shadow: none;
  padding: 1px 5px;
  border: 0;
}
.road-label:after,
.road-label:before {
  display: none;
}
.source-link {
  display: inline-block;
  font-size: 13px;
  margin: 0 9px 5px 0;
}
dialog {
  max-height: 82vh;
  overflow: auto;
}
@media (max-width: 770px) {
  .mapscale {
    right: 4%;
    bottom: 24%;
  }
}
.intro {
  transition: opacity 0.24s ease;
}
.closeup .intro {
  opacity: 0;
}
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.detail-stats b {
  font-variant-numeric: tabular-nums;
}
button:disabled {
  cursor: default;
}
@media (prefers-reduced-motion: reduce) {
  .intro {
    transition: none;
  }
}
.finder {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: clamp(230px, 27vw, 415px);
  margin-left: auto;
  margin-right: clamp(14px, 3.4vw, 50px);
  padding: 5px 11px;
  background: #eef1e8;
  border: 1px solid #a3b39e88;
  border-radius: 9px;
}
.finder:focus-within {
  border-color: #63866c;
  box-shadow: 0 0 0 2px #8da68b33;
}
.finder > i svg {
  width: 17px;
  height: 17px;
}
.finder input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 15px;
  background: none;
  height: 25px;
  color: var(--ink);
}
.finder input:focus-visible {
  outline: none;
}
.finder input::placeholder {
  color: #617667;
}
.finder kbd {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0 5px;
  color: #687d6d;
  font-size: 12px;
}
.finder + nav {
  margin-left: 0;
}
#searchResults {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fcfcf5;
  border: 1px solid var(--rule);
  border-radius: 10px;
  width: max(100%, 290px);
  max-width: 89vw;
  max-height: min(50vh, 410px);
  overflow: auto;
  box-shadow: 0 10px 30px #263e3129;
  padding: 5px;
}
#searchResults p {
  font-size: 14px;
  margin: 8px;
}
.search-option {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
}
.search-option:hover,
.search-option[aria-selected="true"] {
  background: #e5eddf;
}
.search-option > span {
  display: grid;
}
.search-option b {
  font-size: 15px;
  font-weight: 650;
}
.search-option small {
  font-size: 12px;
  color: var(--muted);
}
.bed-icon svg {
  height: 17px;
  width: 17px;
  color: #975d37;
}
@media (max-width: 770px) {
  .finder {
    width: auto;
    flex: 1;
    margin: 0 8px;
  }
  .finder kbd {
    display: none;
  }
  .finder input {
    font-size: 13px;
  }
  .brand {
    font-size: 0;
  }
  .tab {
    padding: 6px;
  }
  .tab i {
    display: none;
  }
}
@media (max-width: 520px) {
  .finder {
    padding: 3px 6px;
    gap: 3px;
  }
  .info {
    display: none;
  }
  .tab {
    font-size: 12px;
  }
  .brand {
    gap: 0;
  }
}
#flowToggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 7px;
  padding: 9px 1px 1px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  text-align: left;
  color: var(--muted);
}
#flowToggle i,
#flowToggle svg {
  width: 18px;
  height: 18px;
}
.watch-skier {
  margin: 0 0 12px;
  background: #e4ece1;
  font-weight: 600;
}
.watch-skier[aria-pressed="true"] {
  color: #fff;
  background: #355947;
}
#flowToggle[aria-pressed="false"] {
  opacity: 0.52;
}
#mapHover {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 13px;
  background: #fcfcf4f5;
  border: 1px solid #7b948582;
  border-radius: 10px;
  box-shadow: 0 3px 15px #1d3b3530;
  max-width: min(300px, 85vw);
}
#mapHover span,
.lift-row > span,
.lift-identity > div {
  display: grid;
  gap: 2px;
}
#mapHover b,
.lift-row b {
  font-size: 15px;
  font-weight: 650;
}
#mapHover small,
.lift-row small,
.lift-identity small {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.hover-icon,
.lift-icon {
  color: #3b5b61;
  display: grid;
  place-items: center;
  flex: none;
}
.hover-icon svg,
.lift-icon svg {
  width: 21px;
  height: 21px;
}
.grade-swatch {
  width: 18px;
  height: 4px;
  border-radius: 4px;
}
#liftFilter {
  display: flex;
  gap: 4px;
  padding: 3px 0 8px;
}
#liftFilter button {
  font-size: 13px;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 15px;
}
#liftFilter button[aria-pressed="true"] {
  background: #365947;
  color: #fff;
}
.lift-row {
  gap: 10px;
}
.lift-row .lift-icon {
  background: #e9eee5;
  border-radius: 7px;
  width: 31px;
  height: 31px;
}
.lift-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px 0 14px;
}
.lift-identity i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #314e55;
  background: #e5ece6;
  border: 1px solid #9baea078;
  border-radius: 11px;
}
.lift-identity i svg {
  width: 35px;
  height: 35px;
}
.lift-identity.chairs i {
  background: #ebe6e8;
  color: #594957;
}
.lift-identity b {
  font-size: 16px;
  line-height: 1.15;
}
.lift-sources {
  margin-top: 8px;
}
.station-focus {
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 6px 10px;
  margin-top: 12px;
  font-size: 14px;
}
.lift-pin {
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -100%);
  background: #354e54;
  color: #fffdf2;
  border: 1px solid #fffdf2;
  border-radius: 7px;
  padding: 3px 5px;
  box-shadow: 0 2px 5px #233c3855;
}
.lift-pin svg {
  width: 17px;
  height: 17px;
}
.lift-pin span {
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 920px) {
  .tab {
    padding: 6px 9px;
  }
  .finder {
    margin-left: 10px;
    margin-right: 10px;
  }
}
@media (max-width: 570px) {
  header {
    height: 88px;
    flex-wrap: wrap;
    align-content: center;
    gap: 4px;
  }
  .finder {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
  }
  .finder + nav {
    margin-left: auto;
  }
}
.mode-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #e8eee4;
  margin-bottom: 5px;
}
.mode-switch button {
  flex: 1;
  padding: 5px 3px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 6px;
}
.mode-switch button[aria-pressed="true"] {
  background: #365947;
  color: #fff;
}
.slope-band {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 1px;
  font-size: 14px;
}
#slopeKey > small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 5px;
}
.lift-identity.chairs i,
.lift-identity.cabins i {
  width: 87px;
  height: 64px;
}
.lift-identity.chairs i svg,
.lift-identity.cabins i svg {
  width: 81px;
  height: 56px;
}

#widthKey {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}
#widthKey i {
  width: 18px;
  border-top: 2px dashed currentColor;
}

.skier-playback {
  margin: 0 0 12px 6px;
}

.slope-ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
}
.slope-ramp {
  height: 9px;
  border-radius: 4px;
  margin: 4px 0 0;
  border: 1px solid #546c572b;
}
.slope-ticks {
  position: relative;
  height: 20px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.slope-ticks span {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
}
.slope-ticks span:first-child {
  transform: none;
}
.slope-ticks span:last-child {
  transform: translateX(-100%);
}

.building-photo {
  margin: 12px 0;
}
.building-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.building-photo figcaption {
  font-size: 12px;
  margin-top: 4px;
  color: var(--muted);
}
.building-gallery {
  display: inline-block;
  margin: 0 0 6px;
}
.outline-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}

.facade-focus {
  display: block;
  margin: 10px 0 5px;
}

.lodging-sources {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.parking-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  border: 2px solid #fffdf0;
  border-radius: 6px;
  background: #385d7c;
  color: white;
  padding: 2px;
  box-shadow: 0 2px 5px #20393440;
}
.parking-pin svg,
.parking-icon svg {
  width: 18px;
  height: 18px;
}
.parking-icon {
  color: #385d7c;
}
#panPad {
  position: absolute;
  right: 3.1%;
  bottom: 4%;
  display: grid;
  grid-template-columns: repeat(3, 30px);
  grid-template-rows: repeat(3, 30px);
  align-items: center;
  justify-items: center;
  border: 1px solid #81978064;
  border-radius: 50%;
  background: #f9fbefe8;
  box-shadow: 0 3px 12px #24403412;
  touch-action: none;
  user-select: none;
}
#panPad button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 50%;
  touch-action: none;
}
#panPad button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}
#panPad button.held {
  background: #355947;
  color: white;
}
#panPad [data-pan="forward"] {
  grid-area: 1/2;
}
#panPad [data-pan="left"] {
  grid-area: 2/1;
  transform: rotate(-90deg);
}
#panPad [data-pan="right"] {
  grid-area: 2/3;
  transform: rotate(90deg);
}
#panPad [data-pan="back"] {
  grid-area: 3/2;
  transform: rotate(180deg);
}
#panPad .compass {
  grid-area: 2/2;
  position: relative;
  inset: auto;
  width: 30px;
  height: 30px;
  align-content: center;
}
#panPad .compass b {
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 9px;
  color: var(--muted);
}
#panPad .compass span {
  width: 25px;
  height: 25px;
  margin: 0;
  background: none;
  border: 0;
}
#panPad .compass span:before,
#panPad .compass span:after {
  left: 9px;
  top: 1px;
  border-left-width: 3.5px;
  border-right-width: 3.5px;
  border-bottom-width: 11px;
}
#panPad .compass span:after {
  top: 12px;
}
.mapscale {
  right: calc(3.1% + 110px);
}
@media (max-width: 770px) {
  #panPad {
    right: 3%;
    bottom: 13%;
  }
  .mapscale {
    right: calc(3% + 105px);
    bottom: 15%;
  }
  footer em,
  footer span b:last-child {
    display: none;
  }
}
.junction-list {
  border-top: 1px solid var(--rule);
  margin-top: 12px;
  padding-top: 9px;
}
.junction-list summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
}
.junction-item,
.trip-choice {
  width: 100%;
  display: block;
  text-align: left;
  padding: 6px 7px;
  margin: 2px 0;
  border-radius: 5px;
  font-size: 14px;
}
.junction-item:hover,
.trip-choice:hover {
  background: #dde8d9;
}
.trip-choice {
  background: #e6eee1;
  font-weight: 650;
  margin-top: 7px;
}
.trip-steps {
  padding-left: 23px;
  margin: 10px 0;
  font-size: 14px;
}
.trip-steps li {
  padding: 3px 0 5px 2px;
  border-bottom: 1px solid var(--rule);
}
.trip-steps button {
  margin: 0;
  padding: 0;
  font-weight: 650;
}
.trip-steps small {
  display: block;
  color: var(--muted);
}
.trip-alternatives {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.trip-alternatives button {
  width: auto;
  border: 1px solid var(--rule);
  line-height: 1.2;
}
.trip-alternatives [aria-pressed="true"] {
  color: white;
  background: #345844;
}
.junction-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #325646;
  color: white;
  border: 2px solid #f8f7ea;
  pointer-events: auto;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 17px;
}
.trip-count {
  font-size: 14px;
  font-weight: 650;
  margin: 9px 0;
}
.current-step {
  background: #e4ecdf;
  border-radius: 5px;
}
.trip-steps {
  max-height: 36vh;
  overflow: auto;
}
.trip-steps .junction-item:hover {
  text-decoration: underline;
}
.sun-panel {
  width: 265px;
}
.sun-panel > label:not(.layer) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 13px;
  font-size: 14px;
  font-weight: 600;
}
.sun-panel output {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sun-panel input[type="range"] {
  width: 100%;
  height: 25px;
  accent-color: #436f54;
  cursor: pointer;
}
.sun-panel .station-focus {
  margin-top: 10px;
}
.tools button[aria-expanded="true"] {
  color: white;
  background: #365947;
}

#sunDate {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 5px 8px;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid #b9c8bd;
  border-radius: 6px;
}
.sun-hours {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
#sunStatus { font-size: 13px; }

#legendToggle, footer .touch-help { display: none; }
@media (max-width: 570px), (pointer: coarse) and (max-height: 520px) {
  body { min-height: 0; }
  header { flex-shrink: 0; }
  #legendToggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 44px; padding: 0 12px; gap: 12px; font-weight: 650;
  }
  #legendToggle[aria-expanded="true"] span { transform: rotate(180deg); }
  #legendToggle[aria-expanded="false"] + #legendBody { display: none; }
  .legend { width: auto; padding: 0; bottom: 12px; left: 12px; }
  #legendBody { width: 174px; padding: 0 12px 10px; max-height: 40dvh; overflow: auto; }
  #panPad { display: none; }
  .orbit { right: 12px; left: auto; bottom: 12px; transform: none; }
  .orbit button { min-height: 44px; }
  .mapscale { right: 14px; bottom: 66px; }
  #searchResults { width: 100%; max-width: 100%; }
  .finder input, .drawer input { font-size: 16px; }
  .tools button, .close { width: 44px; height: 44px; }
  footer > span:first-child { display: none; }
  footer .touch-help { display: inline; font-size: 11px; }
  .drawer, .popup { overscroll-behavior: contain; }
}
@media (max-width: 570px) {
  header { height: auto; padding: 4px 12px 7px; }
  nav .tab { min-height: 44px; padding: 4px 9px; }
  .finder { min-height: 40px; }
  .intro { top: 3%; }
  .drawer, .popup {
    top: auto; left: 8px; right: 8px; bottom: 6px;
    width: auto; max-height: 51%; padding: 10px 14px;
  }
  .drawer .panelhead, .popup .panelhead {
    position: sticky; top: -10px; z-index: 1; background: var(--paper);
  }
}
@media (pointer: coarse) and (max-height: 520px) {
  .intro .facts, .intro p { display: none; }
  .tools { top: 6px; right: 8px; }
  .drawer, .popup { top: 5px; bottom: auto; max-height: calc(100% - 10px); }
}

a.brand { color: inherit; text-decoration: none; }
