@font-face {
  font-family: 'Inca Map Instrument Serif';
  src: url('instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.gitm-dialog {
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 25px 100px #12211855;
  background: #f8f7f0;
  color: #273c31;
  margin: auto;
  width: min(calc(100% - 44px), 1340px);
  max-width: none;
  max-height: calc(100% - 44px);
  max-height: calc(100dvh - 44px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.gitm-dialog:not([open]) { display: none; }
.gitm-dialog::backdrop { background: #17241ddd; }
html.gitm-dialog-open { overflow: hidden; }

.gitm {
  --gitm-forest: #2e4737;
  --gitm-forest-dark: #253c30;
  --gitm-ink: #26372f;
  --gitm-muted: #526257;
  --gitm-terracotta: #a64e33;
  --gitm-trail: #af4d2f;
  --gitm-cream: #f8f7f0;
  --gitm-line: #dddccf;
  --gitm-paper: #fcfbf5;
  --gitm-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gitm-serif: 'Inca Map Instrument Serif', Georgia, serif;
  box-sizing: border-box;
  background: var(--gitm-cream);
  color: var(--gitm-ink);
  isolation: isolate;
  text-align: left;
  font: 400 1rem/1.5 var(--gitm-sans);
  margin: 0;
}

.gitm *, .gitm *::before, .gitm *::after { box-sizing: border-box; }
.gitm [hidden] { display: none !important; }
.gitm h2, .gitm h3, .gitm p, .gitm dl, .gitm dd { margin: 0; }
.gitm button {
  appearance: none;
  margin: 0;
  min-width: 0;
  background-image: none;
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
}

.gitm button:focus-visible, .gitm a:focus-visible, .gitm-dialog > .gitm-dialog-close:focus-visible, .gitm-viewport:focus-visible {
  outline: 2px solid #a64e33;
  outline-offset: 3px;
}

.gitm-dialog > .gitm-dialog-close {
  appearance: none;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  position: sticky;
  z-index: 2;
  top: 20px;
  margin: 20px 20px -62px auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #b8c8a875;
  border-radius: 50%;
  box-shadow: none;
  color: #fcfbf4;
  background: #2b4234;
  cursor: pointer;
}

.gitm-dialog > .gitm-dialog-close:hover { background: #3d5a46; color: #fcfbf4; }
.gitm-dialog > .gitm-dialog-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.gitm .gitm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
  min-height: 141px;
  padding: 27px 34px 28px;
  background: var(--gitm-forest);
  color: #fcfbf4;
}

.gitm-dialog .gitm-header { padding-right: 82px; }
.gitm .gitm-title { min-width: 0; overflow-wrap: anywhere; }
.gitm .gitm-kicker {
  font: 650 0.6875rem/1.45 var(--gitm-sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gitm-terracotta);
}
.gitm .gitm-header .gitm-kicker { color: #d0dac3; margin-bottom: 6px; }
.gitm #gitm-map-heading {
  margin: 0;
  font: 400 clamp(2.65rem, 4.35vw, 4.1rem)/.99 var(--gitm-serif);
  letter-spacing: -.015em;
  color: #fcfbf4;
  text-transform: none;
  text-wrap: balance;
}
.gitm :is(.gitm-guide-heading, .gitm-day-inner, .gitm-chart-title) h3 {
  color: var(--gitm-forest-dark);
  font: 400 clamp(1.95rem, 3vw, 2.45rem)/1.03 var(--gitm-serif);
  text-transform: none;
  letter-spacing: 0;
}

.gitm .gitm-stats { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(16px, 2.5vw, 31px); flex-shrink: 0; }
.gitm-stats > div { border-left: 1px solid #b2c1a561; padding-left: clamp(13px, 1.65vw, 23px); }
.gitm-stats dt { font: 550 0.75rem/1.35 var(--gitm-sans); color: #d9e0cf; margin: 0 0 4px; white-space: nowrap; }
.gitm-stats dd { font: 400 clamp(1.7rem, 2.4vw, 2.3rem)/1 var(--gitm-serif); letter-spacing: .01em; white-space: nowrap; color: #fcfbf4; }
.gitm-stats dd span { display: block; font: 400 .75rem/1.35 var(--gitm-sans); letter-spacing: .01em; color: #d9e0cf; margin-top: 5px; }

.gitm-toolbar { padding: 16px 26px 15px; }
.gitm .gitm-days { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.gitm .gitm-days button {
  color: #405447;
  background: transparent;
  font-family: var(--gitm-sans);
  font-size: .875rem;
  font-weight: 620;
  line-height: 1.2;
  padding: 10px 21px;
  min-height: 43px;
  border: 1px solid #d8dbcd;
  border-radius: 5px;
  white-space: nowrap;
}
.gitm .gitm-days button:hover { background: #ebece1; }
.gitm .gitm-days button[aria-pressed='true'] { background: var(--gitm-forest-dark); border-color: var(--gitm-forest-dark); color: #fcfbf4; }

.gitm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(305px, 30%); gap: 19px; align-items: start; padding: 0 26px 18px; }
.gitm-atlas { min-width: 0; }
.gitm .gitm-viewport {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(440px, 39vw, 552px);
  border: 1px solid #d8ddca;
  border-radius: 6px;
  background: #e1e4d0;
  overflow: clip;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
.gitm .gitm-viewport.is-panning { cursor: grabbing; }
.gitm-plane, .gitm-markers { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.gitm-plane { display: block; user-select: none; max-width: none; }
.gitm-river { stroke: #779795; stroke-width: 2.05; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: .78; fill: none; }
.gitm-trail-halo { stroke: #fbf6e8; stroke-width: 6.25; }
.gitm-trail-line { stroke: var(--gitm-trail); stroke-width: 3.8; }
.gitm-trail-halo, .gitm-trail-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.gitm-trail-halo.is-dimmed { stroke-opacity: .43; }
.gitm-trail-line.is-dimmed { stroke: #5d6b57; stroke-width: 2.2; stroke-opacity: .52; }
.gitm-town { font: 600 17px var(--gitm-sans); letter-spacing: .045em; fill: #425849; paint-order: stroke; stroke: #edf0dc; stroke-width: 4px; stroke-linejoin: round; }
.gitm-river-name { font: italic 600 15px var(--gitm-sans); letter-spacing: .14em; fill: #405e5d; paint-order: stroke; stroke: #e8eddc; stroke-width: 3.4px; stroke-linejoin: round; }

.gitm .gitm-compass {
  pointer-events: none;
  position: absolute;
  top: 15px;
  left: 17px;
  width: 32px;
  display: grid;
  place-items: center;
  color: #263c30;
  font: 750 .75rem/1 var(--gitm-sans);
  text-shadow: 0 0 5px #f8f7ee;
  user-select: none;
}
.gitm-compass svg { display: block; width: 30px; height: 38px; filter: drop-shadow(0 1px 1px #f8f7ee); }
.gitm-tools { position: absolute; display: grid; top: 13px; right: 13px; gap: 5px; }
.gitm .gitm-map-tool {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #44554332;
  border-radius: 5px;
  background: #fcfbf4;
  color: #263d31;
  padding: 0;
  box-shadow: 0 1px 3px #263c2817;
}
.gitm .gitm-map-tool:hover { background: #e9eee0; }
.gitm .gitm-map-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gitm-scale { position: absolute; left: 16px; bottom: 13px; display: grid; justify-items: start; gap: 3px; color: #233a30; font: 700 .75rem/1.1 var(--gitm-sans); pointer-events: none; }
.gitm-scale span { background: #f7f6eacc; padding: 3px 4px; border-radius: 2px; }
.gitm-scale i { display: block; height: 6px; border: solid #263d31; border-width: 0 1px 2px; }

.gitm .gitm-marker {
  position: absolute;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  color: var(--gitm-forest-dark);
  -webkit-tap-highlight-color: transparent;
}
.gitm .gitm-marker:focus-visible { outline-offset: -2px; }
.gitm .gitm-marker.is-selected, .gitm .gitm-marker:hover, .gitm .gitm-marker:focus-visible { z-index: 3; }
.gitm-marker-symbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fcfbf4;
  border-radius: 50%;
  background: var(--gitm-forest);
  color: #fcfbf4;
  box-shadow: 0 1px 5px #263a2d55;
}
.gitm-marker-symbol svg { width: 16px; height: 16px; color: inherit; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gitm-marker[data-kind='start'] .gitm-marker-symbol, .gitm-marker[data-kind='finish'] .gitm-marker-symbol { background: var(--gitm-terracotta); }
.gitm-marker[data-kind='site'] .gitm-marker-symbol { background: #f8f6ec; color: #2f4c3e; border-color: #6a7e64; width: 27px; height: 27px; }
.gitm-marker[data-kind='stop'] .gitm-marker-symbol { width: 15px; height: 15px; background: #a34d34; }
.gitm-marker.is-selected .gitm-marker-symbol, .gitm-marker:hover .gitm-marker-symbol { outline: 2px solid #a64e33; outline-offset: 2px; }
.gitm-marker-label {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 4px;
  padding: 5px 8px;
  color: #263c30;
  background: #fcfbf1f5;
  border: 1px solid #d9dcc9;
  box-shadow: 0 2px 4px #36473215;
  font: 675 .8125rem/1.13 var(--gitm-sans);
  white-space: nowrap;
  text-align: left;
  visibility: hidden;
}
.gitm-marker-label small { display: block; color: #4c6052; font: 500 .6875rem/1.25 var(--gitm-sans); margin-top: 2px; }
.gitm-marker-label.is-positioned { visibility: visible; }
.gitm-marker[data-kind='finish'] .gitm-marker-label { background: #fcfbf3; color: #8b3c27; }

.gitm .gitm-map-key { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 13px; padding: 10px 0 3px; }
.gitm .gitm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; padding: 0; margin: 0; list-style: none; }
.gitm-legend li { display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; color: #43574a; white-space: nowrap; font: 560 .75rem/1.2 var(--gitm-sans); }
.gitm-legend svg, .gitm .gitm-elevation-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gitm-key-route { width: 19px; height: 3px; background: var(--gitm-trail); border-radius: 3px; }
.gitm .gitm-elevation-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  min-height: 36px;
  border: 1px solid #cbd3c2;
  border-radius: 4px;
  color: #345441;
  background: var(--gitm-paper);
  font: 630 .8rem/1.2 var(--gitm-sans);
}
.gitm .gitm-elevation-button:hover, .gitm .gitm-elevation-button[aria-expanded='true'] { background: #e9ede2; }
.gitm .gitm-credits { font: 450 .6875rem/1.4 var(--gitm-sans); color: #56645a; margin: 5px 0 0; }
.gitm .gitm-credits a { color: #3d5949; text-decoration: underline; text-underline-offset: 2px; }

.gitm-guide { background: var(--gitm-paper); border: 1px solid var(--gitm-line); border-radius: 6px; overflow: clip; }
.gitm-overview { padding: 24px 21px 17px; }
.gitm-guide-heading { padding: 1px 3px 19px; }
.gitm-guide-heading h3 { margin: 5px 0 9px; }
.gitm-guide-heading > p:last-child { font: 450 .9rem/1.56 var(--gitm-sans); color: var(--gitm-muted); }
.gitm .gitm-stage-list { margin: 0; padding: 0; list-style: none; }
.gitm-stage-list li { margin: 0; padding: 0; border-top: 1px solid #e2e2d6; }
.gitm-stage-list li:last-child { border-bottom: 1px solid #e2e2d6; }
.gitm .gitm-stage-list button {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  width: 100%;
  min-height: 69px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 3px;
  border-radius: 4px;
}
.gitm .gitm-stage-list button:hover { background: #edf0e5; }
.gitm-stage-number { display: grid; place-items: center; width: 33px; height: 33px; font: 680 .75rem/1 var(--gitm-sans); color: #82402d; border: 1px solid #e4d1c3; border-radius: 50%; background: #f5ece1; }
.gitm-stage-list strong { display: block; color: #294236; font: 675 .95rem/1.28 var(--gitm-sans); }
.gitm-stage-list small { display: block; color: var(--gitm-muted); font: 450 .79rem/1.32 var(--gitm-sans); margin-top: 2px; }
.gitm-stage-distance { color: #405749; font: 650 .8rem/1.25 var(--gitm-sans); white-space: nowrap; }
.gitm .gitm-guide-note { font: 450 .75rem/1.48 var(--gitm-sans); color: var(--gitm-muted); margin: 14px 3px 0; }

.gitm-day-card { margin: 0; }
.gitm img.gitm-day-image { display: block; width: 100%; height: clamp(133px, 13vw, 176px); padding: 0; margin: 0; border: 0; object-fit: cover; object-position: center 59%; background: #d9dfd1; }
.gitm img.gitm-day-image-finale { object-position: center 54%; }
.gitm-day-inner { padding: 18px 21px 19px; }
.gitm .gitm-day-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 7px; color: var(--gitm-terracotta); font: 700 .75rem/1.25 var(--gitm-sans); }
.gitm-day-meta span:first-child { letter-spacing: .12em; text-transform: uppercase; }
.gitm-day-meta span:last-child { color: #4b6153; }
.gitm-day-inner h3 { margin: 0 0 11px; }
.gitm .gitm-stops { display: grid; margin: 0; padding: 0; list-style: none; }
.gitm-stops li { margin: 0; padding: 0; border-bottom: 1px solid #e7e7d9; }
.gitm-stops li:last-child { border-bottom: 0; }
.gitm .gitm-stops button {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 9px;
  min-height: 38px;
  width: 100%;
  text-align: left;
  padding: 7px 4px 7px 18px;
  border: 0;
  border-radius: 4px;
  color: var(--gitm-forest-dark);
  background: transparent;
  font: 630 .875rem/1.25 var(--gitm-sans);
}
.gitm-stops button::before { position: absolute; left: 4px; content: ''; width: 6px; height: 6px; border: 1.5px solid #aa533a; border-radius: 50%; }
.gitm .gitm-stops button:hover, .gitm .gitm-stops button.is-selected { background: #edf0e5; }
.gitm-stops button.is-selected::before { background: #aa533a; }
.gitm-stops small { font: 500 .71rem/1.3 var(--gitm-sans); color: var(--gitm-muted); }
.gitm .gitm-transfer { border-top: 1px solid #e2e2d6; margin: 10px 0 0; padding: 10px 2px 0; font: 450 .795rem/1.47 var(--gitm-sans); color: var(--gitm-muted); }
.gitm-transfer strong { display: block; color: var(--gitm-forest-dark); margin-bottom: 3px; }

.gitm .gitm-elevation { background: var(--gitm-paper); border: 1px solid var(--gitm-line); border-radius: 6px; padding: 17px 16px 13px; margin: 8px 0 10px; }
.gitm .gitm-chart-title h3 { font-size: 1.75rem; }
.gitm-chart-title p, .gitm .gitm-chart-peak { color: var(--gitm-muted); font: 500 .75rem/1.45 var(--gitm-sans); margin: 5px 0 0; }
.gitm-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; margin-top: 13px; }
.gitm-chart-axis { position: relative; min-width: 50px; height: 118px; color: var(--gitm-muted); font: 550 .6875rem/1 var(--gitm-sans); }
.gitm-chart-axis span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.gitm-chart-axis span:nth-child(1) { top: 13.16%; }
.gitm-chart-axis span:nth-child(2) { top: 52.63%; }
.gitm-chart-axis span:nth-child(3) { top: 92.11%; }
.gitm-chart-plot { display: block; width: 100%; height: 118px; }
.gitm-chart-days { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; color: var(--gitm-muted); margin: 5px 0 0; font: 600 .75rem/1.3 var(--gitm-sans); }
.gitm-chart-days .is-selected { color: var(--gitm-terracotta); }
.gitm-chart-peak { padding-left: 1px; }

.gitm .gitm-sr { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; margin: -1px; border: 0; }

@media (max-width: 920px) {
  .gitm .gitm-header { padding: 24px 22px; gap: 19px; }
  .gitm-dialog .gitm-header { padding-right: 66px; }
  .gitm-dialog > .gitm-dialog-close { top: 13px; margin: 13px 13px -55px auto; }
  .gitm-toolbar { padding: 14px 16px; }
  .gitm-layout { grid-template-columns: minmax(0, 1fr) minmax(254px, 33%); gap: 13px; padding: 0 16px 14px; }
  .gitm-overview { padding: 18px 13px 14px; }
  .gitm-day-inner { padding: 15px 13px; }
  .gitm-stage-number { width: 28px; height: 28px; }
  .gitm .gitm-stage-list button { gap: 8px; min-height: 65px; }
  .gitm-stage-list strong { font-size: .875rem; }
}

@media (max-width: 700px) {
  .gitm-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
  .gitm .gitm-header { align-items: flex-start; flex-direction: column; padding: 20px 15px 17px; gap: 14px; min-height: 0; }
  .gitm-dialog .gitm-title { padding-right: 38px; }
  .gitm #gitm-map-heading { font-size: clamp(2.3rem, 8.5vw, 3.35rem); text-wrap: initial; }
  .gitm .gitm-header .gitm-kicker { font-size: .625rem; margin-bottom: 7px; }
  .gitm .gitm-stats { width: 100%; grid-template-columns: 1fr 1fr 1.1fr; gap: 8px; }
  .gitm-stats > div { padding-left: 8px; }
  .gitm-stats dt { font-size: .6875rem; }
  .gitm-stats dd { font-size: 1.58rem; }
  .gitm-stats dd span { font-size: .688rem; margin-top: 3px; }
  .gitm-dialog > .gitm-dialog-close { width: 38px; height: 38px; top: 13px; margin: 13px 12px -51px auto; }
  .gitm-toolbar { padding: 9px 9px 9px; }
  .gitm .gitm-days { gap: 4px; display: grid; grid-template-columns: 1.47fr repeat(4, 1fr); }
  .gitm .gitm-days button { min-height: 44px; font-size: .8rem; padding: 7px 3px; text-align: center; }
  .gitm-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 9px 13px; }
  .gitm .gitm-viewport { height: clamp(320px, 92vw, 470px); }
  .gitm-tools { top: 8px; right: 8px; }
  .gitm .gitm-map-tool { width: 38px; height: 38px; }
  .gitm .gitm-compass { top: 10px; left: 9px; }
  .gitm-scale { left: 10px; bottom: 10px; }
  .gitm-marker-label { font-size: .73rem; padding: 3px 5px; }
  .gitm-marker-label small { font-size: .625rem; }
  .gitm-marker[data-kind='pass'] .gitm-marker-label { width: max-content; max-width: 104px; white-space: normal; }
  .gitm-marker[data-kind='pass'] .gitm-marker-label small { display: none; }
  .gitm-river-name { display: none; }
  .gitm-marker-symbol { width: 25px; height: 25px; }
  .gitm-marker-symbol svg { width: 14px; height: 14px; }
  .gitm-marker[data-kind='site'] .gitm-marker-symbol { width: 23px; height: 23px; }
  .gitm .gitm-map-key { gap: 7px; padding-top: 8px; }
  .gitm .gitm-legend { gap: 7px 9px; }
  .gitm-legend li { gap: 4px; font-size: .68rem; }
  .gitm-legend svg { width: 14px; height: 14px; }
  .gitm-key-route { width: 13px; }
  .gitm .gitm-elevation-button { min-height: 42px; }
  .gitm-overview { padding: 19px 15px 14px; }
  .gitm .gitm-stage-list button { min-height: 58px; }
  .gitm .gitm-stops button { min-height: 44px; }
  .gitm img.gitm-day-image { height: clamp(140px, 42vw, 226px); }
  .gitm-day-inner { padding: 15px; }
}

@media (max-width: 350px) {
  .gitm .gitm-header { padding-inline: 11px; }
  .gitm .gitm-days button { font-size: .72rem; }
  .gitm-stats dd { font-size: 1.43rem; }
  .gitm-marker-label small { display: none; }
}

.gitm [aria-disabled='true'].gitm-map-tool { opacity: .6; cursor: default; }
.gitm-profile-fill { fill: #b86a4d33; }
.gitm-profile-line { fill: none; stroke: #a64e33; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gitm-profile-stage.is-dimmed .gitm-profile-fill { fill: #8b9c8240; }
.gitm-profile-stage.is-dimmed .gitm-profile-line { stroke: #66795f; stroke-width: 1.5; }
