/* ==================================================
   SS TRACKER — SHARED HIKE PAGE

   Global header/navigation remains controlled by style.css.
   This file owns the hike hero, overview, field journals, map,
   elevation chart, and responsive behavior.
   ================================================== */

.ss-tracker-page {
  --tracker-forest: #183522;
  --tracker-forest-dark: #0b2617;
  --tracker-forest-deep: #071c12;
  --tracker-gold: #d0ae5c;
  --tracker-gold-light: #e3ca86;
  --tracker-paper: #f3ead9;
  --tracker-paper-deep: #e8dcc4;
  --tracker-ink: #20251f;
  --tracker-muted: #5d625a;
  --tracker-line: #b7a889;
  --tracker-route: #b53b31;
  --tracker-content: 1120px;
  color: var(--tracker-ink);
}

.ss-tracker-page .site-shell {
  background: var(--tracker-paper);
}

.tracker-global-header {
  min-height: 92px;
}

.tracker-global-header .primary-navigation {
  width: 100%;
  margin-left: auto;
}

/* ==================================================
   HERO
   ================================================== */

.tracker-hero {
  position: relative;
  min-height: 324px;
  overflow: hidden;
  color: #fff;
  background: #132c20;
}

.tracker-hero__art,
.tracker-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tracker-hero__art {
  object-fit: cover;
  object-position: center 57%;
}

.tracker-hero__shade {
  background:
    linear-gradient(90deg, rgba(4, 20, 12, 0.82) 0%, rgba(4, 20, 12, 0.54) 34%, rgba(4, 20, 12, 0.08) 68%, rgba(4, 20, 12, 0.06) 100%),
    linear-gradient(0deg, rgba(7, 24, 15, 0.36), transparent 45%);
}

.tracker-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 324px;
  width: min(calc(100% - 84px), var(--tracker-content));
  margin-inline: auto;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 26px 0 20px;
}

.tracker-hero__eyebrow {
  margin: 0 0 6px;
  color: var(--tracker-gold-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tracker-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 0.96;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.48);
}

.tracker-hero__content > p:last-child {
  margin: 14px 0 0;
  color: #f6ead0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(14px, 1.8vw, 19px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==================================================
   PAPER / BREADCRUMBS / SECTION TABS
   ================================================== */

.tracker-paper {
  position: relative;
  padding: 0 42px 58px;
  background:
    radial-gradient(circle at 14% 18%, rgba(111, 79, 40, 0.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 62%, rgba(111, 79, 40, 0.028) 0 1px, transparent 1.5px),
    linear-gradient(180deg, #f6eddd 0%, var(--tracker-paper) 56%, #eee2cc 100%);
  background-size: 19px 19px, 23px 23px, auto;
}

.tracker-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, var(--tracker-content));
  min-height: 58px;
  margin-inline: auto;
  color: #37453a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.tracker-breadcrumbs a {
  text-decoration: none;
}

.tracker-breadcrumbs a:hover,
.tracker-breadcrumbs a:focus-visible {
  color: #7a5c24;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tracker-breadcrumbs > span[aria-hidden="true"] {
  color: #937f5c;
  font-size: 18px;
}

.tracker-section-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, var(--tracker-content));
  margin: 0 auto 35px;
  overflow: hidden;
  background: rgba(255, 252, 244, 0.48);
  border: 1px solid var(--tracker-line);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(70, 57, 36, 0.07);
}

.tracker-tab {
  appearance: none;
  display: flex;
  min-height: 91px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  color: #243228;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(158, 142, 112, 0.62);
  font-weight: 800;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tracker-tab:last-child {
  border-right: 0;
}

.tracker-tab svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tracker-tab:hover,
.tracker-tab:focus-visible {
  color: #fff;
  background: #294631;
}

.tracker-tab:active {
  transform: translateY(1px);
}

.tracker-tab.is-current {
  color: #fff4d4;
  background: linear-gradient(135deg, #173923, #254d31);
}

/* ==================================================
   OVERVIEW
   ================================================== */

.tracker-overview {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.34fr);
  gap: 34px;
  width: min(100%, var(--tracker-content));
  margin-inline: auto;
}

.tracker-quick-stats,
.tracker-introduction {
  min-width: 0;
}

.tracker-overview h2 {
  position: relative;
  margin: 0 0 23px;
  padding-bottom: 11px;
  color: #243027;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
}

.tracker-overview h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--tracker-gold), rgba(138, 119, 81, 0.26));
}

.tracker-quick-stats {
  padding-right: 34px;
  border-right: 1px solid rgba(153, 136, 104, 0.58);
}

.tracker-stat-list {
  display: grid;
  gap: 22px;
  margin: 0;
}

.tracker-stat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding-left: 51px;
}

.tracker-stat dt {
  position: relative;
  color: #26342a;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.28;
  text-transform: uppercase;
}

.tracker-stat dd {
  margin: 2px 0 0;
  color: #353b35;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.46;
}

.tracker-stat__icon {
  position: absolute;
  top: -4px;
  left: -51px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.tracker-stat__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.tracker-stat__note {
  color: #6c706b;
}

.tracker-introduction__figure {
  height: clamp(235px, 31vw, 370px);
  margin: 0 0 24px;
  overflow: hidden;
  background: #c7d2c7;
  border: 1px solid #52705c;
  border-radius: 8px;
  box-shadow: inset 0 0 0 4px rgba(255, 251, 239, 0.42), 0 8px 20px rgba(60, 52, 38, 0.1);
}

.tracker-introduction__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.tracker-introduction > p {
  max-width: 760px;
  color: #323831;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

.tracker-introduction__note {
  padding: 12px 15px;
  background: rgba(205, 183, 130, 0.16);
  border-left: 3px solid var(--tracker-gold);
}

.tracker-action-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  margin-top: 4px;
  padding: 12px 19px;
  color: #fff4d3;
  background: linear-gradient(135deg, #173a24, #234a2e);
  border: 1px solid #0b2917;
  border-radius: 5px;
  box-shadow: 0 4px 0 #0a2315, 0 8px 14px rgba(29, 48, 33, 0.18);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.tracker-action-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tracker-action-button:hover,
.tracker-action-button:focus-visible {
  color: #102919;
  background: var(--tracker-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #967834, 0 10px 17px rgba(29, 48, 33, 0.2);
}

.tracker-action-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #0a2315;
}

/* ==================================================
   SS-REPOSITORY FOOTER
   ================================================== */

.tracker-repository-footer {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 72px;
  place-items: center;
  overflow: hidden;
  color: #dbc27c;
  background-color: #243729;
  background-image:
    linear-gradient(90deg, rgba(20, 45, 29, 0.56), rgba(30, 57, 38, 0.38), rgba(13, 35, 22, 0.62)),
    url("../images/ui/repository/repo_28_topographic_texture_sample.png");
  background-repeat: no-repeat, repeat;
  background-size: auto, 228px 66px;
  border-top: 1px solid rgba(213, 181, 99, 0.22);
}

.tracker-repository-footer img {
  position: absolute;
  right: 12px;
  bottom: 0;
  width: 166px;
  height: auto;
  max-width: none;
  pointer-events: none;
}

.tracker-repository-footer p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 190px 0 40px;
  color: inherit;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

/* ==================================================
   FIELD JOURNAL DIALOGS
   ================================================== */

body.tracker-dialog-open {
  overflow: hidden;
}

.tracker-journal-dialog {
  width: min(760px, calc(100vw - 36px));
  max-width: none;
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--tracker-ink);
  background: transparent;
  border: 0;
}

.tracker-journal-dialog--map {
  width: min(1110px, calc(100vw - 28px));
  max-height: 94vh;
}

.tracker-journal-dialog::backdrop {
  background: rgba(5, 16, 10, 0.78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.tracker-journal-dialog[open] {
  animation: tracker-journal-in 210ms ease-out both;
}

@keyframes tracker-journal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tracker-journal {
  position: relative;
  max-height: min(88vh, 900px);
  padding: 30px 34px 32px;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 9%, rgba(98, 62, 24, 0.04) 0 1px, transparent 1.5px),
    radial-gradient(circle at 77% 60%, rgba(98, 62, 24, 0.035) 0 1px, transparent 1.5px),
    linear-gradient(165deg, #f8efdc, #eee0c7);
  background-size: 20px 20px, 24px 24px, auto;
  border: 1px solid #ae9870;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), inset 0 0 0 5px rgba(255, 253, 243, 0.26);
}

.tracker-journal::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 8px;
  border: 1px solid rgba(134, 108, 68, 0.24);
  border-radius: 4px;
}

.tracker-journal--map {
  max-height: 94vh;
  padding: 26px 28px 25px;
}

.tracker-journal__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.tracker-journal__kicker {
  margin: 0 0 3px;
  color: #785f2e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tracker-journal h2 {
  margin: 0;
  color: #183522;
  font-size: clamp(29px, 4.8vw, 46px);
  line-height: 1;
}

.tracker-journal h3 {
  color: #203829;
}

.tracker-journal > p,
.tracker-journal__scroll > p,
.tracker-journal li,
.tracker-journal__source-note {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.tracker-journal__close {
  position: relative;
  z-index: 2;
  appearance: none;
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  color: #fff2ca;
  background: #183a24;
  border: 1px solid #0f2a19;
  border-radius: 50%;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.tracker-journal__close:hover,
.tracker-journal__close:focus-visible {
  color: #163321;
  background: var(--tracker-gold-light);
  transform: rotate(4deg);
}

.tracker-journal__close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.tracker-journal__rule {
  position: relative;
  z-index: 1;
  height: 13px;
  margin: 14px 0 23px;
  border-top: 1px solid rgba(123, 97, 51, 0.52);
}

.tracker-journal__rule span {
  position: absolute;
  top: -4px;
  left: 0;
  width: 86px;
  height: 7px;
  background: var(--tracker-gold);
  clip-path: polygon(0 40%, 44% 40%, 50% 0, 56% 40%, 100% 40%, 100% 60%, 56% 60%, 50% 100%, 44% 60%, 0 60%);
}

.tracker-journal__scroll {
  position: relative;
  z-index: 1;
}

.tracker-journal__callout {
  position: relative;
  z-index: 1;
  margin-top: 25px;
  padding: 16px 18px;
  color: #2d372f;
  background: rgba(215, 192, 137, 0.2);
  border: 1px solid rgba(145, 116, 63, 0.42);
  border-left: 5px solid #a07b31;
  border-radius: 3px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

.tracker-journal__source-note {
  margin: 24px 0 0;
  padding-top: 16px;
  color: #5a5e58;
  border-top: 1px solid rgba(137, 117, 82, 0.38);
  font-size: 14px;
}

.tracker-journal__source-note a {
  color: #345b3d;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ==================================================
   MAP JOURNAL
   ================================================== */

.tracker-map-summary {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 12px;
}

.tracker-map-summary > span {
  padding: 6px 9px;
  color: #435047;
  background: rgba(255, 253, 246, 0.56);
  border: 1px solid rgba(142, 121, 83, 0.32);
  border-radius: 3px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
}

#trail-hover-readout {
  margin-left: auto;
}

.tracker-map-frame {
  position: relative;
  z-index: 1;
}

#trail-map {
  position: relative;
  width: 100%;
  height: clamp(300px, 46vh, 510px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(43, 77, 54, 0.16), rgba(224, 211, 182, 0.45)),
    #d8ddcf;
  border: 1px solid #526b56;
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px rgba(255, 253, 245, 0.45);
}

.tracker-map-loading {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #294332;
  background: rgba(231, 227, 210, 0.9);
  text-align: center;
}

.tracker-map-loading[hidden] {
  display: none;
}

.tracker-map-loading p {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.tracker-map-loading__mark {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(34, 74, 47, 0.22);
  border-top-color: #245034;
  border-radius: 50%;
  animation: tracker-spin 900ms linear infinite;
}

@keyframes tracker-spin { to { transform: rotate(360deg); } }

.tracker-map-status {
  margin: 9px 0 0;
  padding: 8px 11px;
  color: #5f3b18;
  background: #fff3cf;
  border: 1px solid #d1ae55;
  border-radius: 3px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
}

.tracker-map-status.is-error {
  color: #6a211b;
  background: #f8ded7;
  border-color: #c67567;
}

.tracker-map-marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: #ad3c31;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.tracker-map-marker--start {
  background: #1e6c3a;
}

.tracker-map-marker--end {
  background: #b33b31;
}

.tracker-map-marker--cursor {
  width: 20px;
  height: 20px;
  background: #f3c34b;
  border: 3px solid #173a24;
}

.tracker-profile {
  position: relative;
  z-index: 1;
  margin-top: 13px;
}

.tracker-profile__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
}

.tracker-profile__heading h3 {
  margin: 0;
  font-size: 20px;
  text-transform: uppercase;
}

.tracker-profile__heading p {
  margin: 0;
  color: #60655f;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
}

.tracker-elevation-chart {
  width: 100%;
  height: 205px;
  overflow: hidden;
  background: rgba(255, 254, 249, 0.75);
  border: 1px solid #b6a685;
  border-radius: 4px;
  cursor: crosshair;
  touch-action: none;
}

.tracker-elevation-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tracker-chart-grid {
  stroke: rgba(78, 83, 77, 0.17);
  stroke-width: 1;
}

.tracker-chart-axis-label {
  fill: #596159;
  font: 11px "Helvetica Neue", Arial, sans-serif;
}

.tracker-chart-area {
  fill: rgba(181, 59, 49, 0.3);
}

.tracker-chart-line {
  fill: none;
  stroke: var(--tracker-route);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.tracker-chart-cursor {
  stroke: #163d27;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

.tracker-chart-dot {
  fill: #f1c34f;
  stroke: #153823;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.tracker-map-disclaimer {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #666962;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.4;
}

/* Basic MapLibre control integration with the journal theme. */
.ss-tracker-page .maplibregl-ctrl-group,
.tracker-journal .maplibregl-ctrl-group {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.32);
}

.tracker-journal .maplibregl-ctrl-attrib {
  font-family: Arial, sans-serif;
  font-size: 10px;
}

/* ==================================================
   DOWNLOAD / TIPS / WALKTHROUGH
   ================================================== */

.tracker-download-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 17px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px;
  background: rgba(255, 253, 246, 0.58);
  border: 1px solid rgba(143, 119, 75, 0.42);
  border-radius: 5px;
}

.tracker-download-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #f4e5b5;
  background: #21452c;
  border-radius: 50%;
}

.tracker-download-card__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tracker-download-card h3 {
  margin: 0;
  font-size: 20px;
}

.tracker-download-card p {
  margin: 3px 0 0;
  color: #63675f;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

.tracker-action-button--download {
  margin-top: 10px;
}

.tracker-tip-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tracker-tip;
}

.tracker-tip-list li {
  position: relative;
  min-height: 47px;
  padding: 10px 12px 10px 58px;
  background: rgba(255, 253, 246, 0.46);
  border-bottom: 1px solid rgba(136, 116, 80, 0.28);
  counter-increment: tracker-tip;
  line-height: 1.55;
}

.tracker-tip-list li::before {
  content: counter(tracker-tip);
  position: absolute;
  top: 7px;
  left: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #f5e8bb;
  background: #21442b;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.tracker-walkthrough-lead {
  padding: 13px 16px;
  color: #2d3e32;
  background: rgba(206, 183, 127, 0.19);
  border-left: 4px solid #a27f38;
  font-weight: 700;
}

.tracker-walkthrough {
  display: grid;
  gap: 0;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tracker-step;
}

.tracker-walkthrough li {
  position: relative;
  padding: 0 0 25px 61px;
  counter-increment: tracker-step;
}

.tracker-walkthrough li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 39px;
  bottom: 4px;
  left: 20px;
  width: 1px;
  background: #b09a6e;
}

.tracker-walkthrough li::before {
  content: counter(tracker-step);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  color: #f7e8b6;
  background: #1d4128;
  border: 3px solid #dfc67d;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.tracker-walkthrough h3 {
  margin: 0 0 5px;
  font-size: 19px;
  text-transform: uppercase;
}

.tracker-walkthrough p {
  margin: 0;
  color: #3d423c;
  line-height: 1.62;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 940px) {
  .tracker-global-header .primary-navigation {
    width: auto;
  }

  .tracker-hero,
  .tracker-hero__content {
    min-height: 292px;
  }

  .tracker-hero__content {
    width: min(calc(100% - 64px), var(--tracker-content));
  }

  .tracker-paper {
    padding-inline: 32px;
  }

  .tracker-overview {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: 27px;
  }

  .tracker-quick-stats {
    padding-right: 25px;
  }
}

@media (max-width: 760px) {
  .tracker-global-header {
    min-height: 82px;
  }

  .tracker-hero,
  .tracker-hero__content {
    min-height: 285px;
  }

  .tracker-hero__art {
    object-position: 58% center;
  }

  .tracker-hero__shade {
    background: linear-gradient(90deg, rgba(3, 18, 10, 0.82), rgba(3, 18, 10, 0.48) 62%, rgba(3, 18, 10, 0.12));
  }

  .tracker-hero__content {
    width: calc(100% - 40px);
  }

  .tracker-hero h1 {
    max-width: 86%;
    font-size: clamp(42px, 12vw, 62px);
  }

  .tracker-paper {
    padding: 0 20px 45px;
  }

  .tracker-breadcrumbs {
    min-height: 52px;
    gap: 7px;
    overflow-x: auto;
    font-size: 10px;
    white-space: nowrap;
  }

  .tracker-section-tabs {
    margin-bottom: 29px;
  }

  .tracker-tab {
    min-height: 78px;
    gap: 4px;
    padding: 8px 4px;
    font-size: 11px;
  }

  .tracker-tab svg {
    width: 25px;
    height: 25px;
  }

  .tracker-overview {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .tracker-quick-stats {
    padding-right: 0;
    border-right: 0;
  }

  .tracker-stat-list {
    grid-template-columns: 1fr;
  }

  .tracker-introduction__figure {
    height: min(57vw, 330px);
  }

  .tracker-repository-footer {
    min-height: 84px;
    place-items: center start;
  }

  .tracker-repository-footer p {
    max-width: 68%;
    padding: 0 0 0 22px;
    font-size: 14px;
    text-align: left;
  }

  .tracker-repository-footer img {
    right: -7px;
    width: 148px;
  }

  .tracker-journal-dialog,
  .tracker-journal-dialog--map {
    width: calc(100vw - 18px);
    max-height: 96vh;
  }

  .tracker-journal,
  .tracker-journal--map {
    max-height: 96vh;
    padding: 24px 20px;
  }

  .tracker-journal__header {
    gap: 12px;
  }

  .tracker-journal__close {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .tracker-map-summary {
    gap: 5px;
  }

  #trail-hover-readout {
    width: 100%;
    margin-left: 0;
  }

  #trail-map {
    height: 42vh;
    min-height: 285px;
  }

  .tracker-profile__heading {
    display: block;
  }

  .tracker-profile__heading p {
    margin-top: 3px;
  }

  .tracker-elevation-chart {
    height: 180px;
  }
}

@media (max-width: 500px) {
  .tracker-hero,
  .tracker-hero__content {
    min-height: 260px;
  }

  .tracker-hero__art {
    object-position: 53% center;
  }

  .tracker-hero__eyebrow {
    font-size: 11px;
  }

  .tracker-hero h1 {
    max-width: 94%;
  }

  .tracker-hero__content > p:last-child {
    font-size: 12px;
  }

  .tracker-section-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .tracker-tab {
    border-bottom: 1px solid rgba(158, 142, 112, 0.62);
  }

  .tracker-tab:nth-child(2) {
    border-right: 0;
  }

  .tracker-tab:nth-child(3),
  .tracker-tab:nth-child(4) {
    border-bottom: 0;
  }

  .tracker-stat-list {
    grid-template-columns: 1fr;
  }

  .tracker-introduction__figure {
    height: 225px;
  }

  .tracker-introduction__figure img {
    object-position: 61% center;
  }

  .tracker-action-button {
    width: 100%;
  }

  .tracker-download-card {
    grid-template-columns: 50px 1fr;
    padding: 13px;
  }

  .tracker-download-card__icon {
    width: 48px;
    height: 48px;
  }

  .tracker-tip-list li {
    padding-left: 54px;
  }

  .tracker-walkthrough li {
    padding-left: 52px;
  }

  .tracker-walkthrough li::before {
    width: 36px;
    height: 36px;
  }

  .tracker-walkthrough li:not(:last-child)::after {
    top: 35px;
    left: 18px;
  }
}

@media (max-width: 430px) {
  .tracker-repository-footer p {
    max-width: 62%;
    font-size: 13px;
    line-height: 1.3;
  }

  .tracker-repository-footer img {
    right: -18px;
    width: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tracker-tab,
  .tracker-action-button,
  .tracker-journal-dialog[open],
  .tracker-journal__close,
  .tracker-map-loading__mark {
    animation: none;
    transition: none;
  }
}

@media print {
  .tracker-global-header,
  .tracker-section-tabs,
  .tracker-action-button,
  .tracker-repository-footer,
  .tracker-journal-dialog {
    display: none !important;
  }

  .site-shell {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .tracker-hero,
  .tracker-hero__content {
    min-height: 180px;
  }

  .tracker-overview {
    grid-template-columns: 220px 1fr;
  }
}
