h4 {
  letter-spacing: .1rem; }
.container {
  max-width: 800px; }
.header {
  margin-top: 60px;
  margin-bottom: 60px; 
  text-align: left; }
.main-description h1 {
  margin-bottom: 0px; }
.main-description p {
  margin-bottom: 0px; }
.main-description .chinese-name {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 2.0em;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  /* margin-top: 0.2rem; */
  /* margin-bottom: 0.2rem; */
}
/* Indent content below names */
.main-description p:not(.chinese-name) {
  margin-left: 0.2rem;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
}
.social-links a {
  color: #222;
  text-decoration: none;
}
.social-links a:hover {
  color: #33C3F0;
}
.social-links .fa-brands,
.social-links .ai {
  font-size: 22px;
}
.paper {
  margin-bottom: 20px }
/* .paper .title { text-transform: uppercase; } */
.paper p {
  margin-bottom: 2px }
.paper-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.paper-badge {
  display: inline-block;
  margin-left: 2px;
  padding: 0 3px 1px;
  background: linear-gradient(
    transparent 55%,
    rgba(196, 167, 96, 0.28) 55%
  );
  color: rgba(0, 0, 0, 0.82);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1rem;
  line-height: 1.4;
  text-transform: uppercase;
}
.paper-buttons {
  margin-top: 5px }
.paper .button {
  display: inline-block;
  height: 25px;
  padding: 0 25px;
  font-weight: 100;
  line-height: 25px;
  text-transform: none; }
.service-heading {
  margin-top: 15px;
  margin-bottom: 8px;
  font-size: 1.25em;
}
.service-item {
  margin-bottom: 15px;
}
.service-group-title,
.service-line,
.service-list li {
  margin-bottom: 6px;
}
.service-line {
  color: #000000;
}
.service-period {
  font-weight: bold;
  margin-right: 6px;
}
.service-description {
  margin-bottom: 6px;
  margin-left: 10px;
  color: #000000;
  font-size: 0.9em;
}
.service-list {
  list-style: none;
  padding-left: 0;
}
.section-header {
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: .2rem;
  font-weight: 600; }
.docs-section {
  border-top: 1px solid #eee;
  padding: 4rem 0;
  margin-bottom: 0;}
.footer {
  text-align: center;
  color: rgba(0, 0, 0, 0.4);
  border-top: 1px solid #eee;
  padding: 15px 0 40px 0;
  margin-bottom: 0;}
.navbar {
  display: none; }
.title-subtitle h3 {
  margin-bottom: 0px; }
.title-subtitle h5 {
  color: rgba(0, 0, 0, 0.60); }
.image {
  text-align: center; }

/*  ================ Project styling  ================ */
.project-container {
  margin-bottom: 30px;
}
.project-image-container {
  border: 1px solid rgba(0,0,0,0.2);
  padding: 3px;
  transition: 0.3s;
}
.project-image-container:hover {
  transition: 0.3s;
}
.project-image-container:hover img {
  opacity: 0.4;
}
.project-caption {
  padding: 3px;
}

/* Larger than phone */
@media (min-width: 550px) {
  .header {
    margin-top: 5rem; }
}

/* Larger than tablet */
@media (min-width: 750px) {
  /* Navbar */
  .navbar + .docs-section {
    border-top-width: 0; }
  .navbar,
  .navbar-spacer {
    display: block;
    width: 100%;
    height: 6.5rem;
    background: #fff;
    z-index: 99;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee; }
  .navbar-spacer {
    display: none; }
  /* Ensure anchored sections are fully visible below fixed navbar */
  .docs-section {
    scroll-margin-top: calc(6.5rem);
  }
  .navbar > .container {
    width: 100%; }
  .navbar-list {
    list-style: none;
    margin-bottom: 0; }
  .navbar-item {
    position: relative;
    float: left;
    margin-bottom: 0; }
  .navbar-link {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2rem;
    margin-right: 35px;
    text-decoration: none;
    line-height: 6.5rem;
    color: #222; }
  .navbar-link.active {
    color: #33C3F0; }
  .navbar-link.navbar-subsite {
    color: #222; }
  .navbar-link.navbar-subsite:hover {
    color: #33C3F0; }
  .has-docked-nav .navbar {
    position: fixed;
    top: 0;
    left: 0; }
  .has-docked-nav .navbar-spacer {
    display: block; }
  /* Re-overiding the width 100% declaration to match size of % based container */
  .has-docked-nav .navbar > .container {
    width: 80%; }

}

/* Misc page: remove top border and add card styling */
#misc.docs-section {
  border-top: 0;
  padding-top: 2rem;
}

/* Misc: PDF acknowledgement modal */
.misc-pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.misc-pdf-modal.open {
  display: flex;
}
.misc-pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(95, 121, 160, 0.2), transparent 30%),
    rgba(7, 12, 20, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.misc-pdf-modal-dialog {
  position: relative;
  width: min(1120px, calc(100vw - 32px));
  height: min(90vh, calc(100vh - 32px));
  max-height: 900px;
  background: #f5f7fb;
  border-radius: 24px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.misc-pdf-modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}
.misc-pdf-modal-heading {
  min-width: 0;
}
.misc-pdf-modal-eyebrow {
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7a90;
}
.misc-pdf-modal-title {
  font-weight: 700;
  font-size: 2rem;
  color: #162033;
  letter-spacing: -0.02em;
}
.misc-pdf-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.misc-pdf-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(38, 63, 104, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
  font-weight: 600;
  color: #264069;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.misc-pdf-modal-link:hover {
  text-decoration: none;
  background: #ffffff;
  border-color: rgba(38, 63, 104, 0.22);
  transform: translateY(-1px);
}
.misc-pdf-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.misc-pdf-modal-close:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}
.misc-pdf-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(232, 237, 245, 0.9) 0%, rgba(219, 226, 236, 0.9) 100%);
}
.misc-pdf-modal-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #1f2937;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 44px rgba(15, 23, 42, 0.18);
}
.misc-pdf-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #374151;
}

@media (max-width: 749px) {
  .misc-pdf-modal {
    padding: 10px;
  }
  .misc-pdf-modal-dialog {
    width: 100%;
    height: min(92vh, calc(100vh - 20px));
    border-radius: 20px;
  }
  .misc-pdf-modal-header {
    align-items: flex-start;
    padding: 16px;
  }
  .misc-pdf-modal-toolbar {
    width: 100%;
    justify-content: flex-start;
  }
  .misc-pdf-modal-link {
    flex: 1 1 auto;
  }
  .misc-pdf-modal-body {
    padding: 12px;
  }
}
/* Footprint page: remove top border to match Misc */
#footprint.docs-section {
  border-top: 0;
  padding-top: 2rem;
}

/* Fixed topbar (always visible on all devices) */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5rem;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #eee;
  z-index: 1000;
}
.topbar-spacer {
  height: 3.5rem;
}
.topbar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar-item {
  float: left;
}
.topbar-link {
  display: block;
  padding: 0 16px;
  line-height: 3.5rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2rem;
  color: #222;
}
.topbar-link:hover { color: #33C3F0; }
/* Clear floats inside container */
.topbar .container::after { content: ""; display: table; clear: both; }

/* Back-to-top button (mobile: in topbar) */
.topbar-backtotop-link {
  padding: 0 16px; /* keep spacing consistent with other topbar links */
  height: 3.5rem;
  display: inline-flex;
  align-items: center; /* equal top/bottom spacing */
}
.topbar-backtotop-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.55);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  vertical-align: middle;
}
.topbar-backtotop-link:hover .topbar-backtotop-square {
  color: rgba(0,0,0,0.75);
  border-color: rgba(0,0,0,0.16);
}

/* Hide topbar on desktop, keep only on mobile */
@media (min-width: 750px) {
  .topbar,
  .topbar-spacer {
    display: none;
  }
}

/* Back-to-top floating action button (desktop only, Footprint page via layout) */
.back-to-top-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.55);
  text-decoration: none;
  display: none; /* enabled on desktop */
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
}
.back-to-top-fab:hover {
  color: rgba(0,0,0,0.78);
  border-color: rgba(0,0,0,0.16);
  transform: translateY(-1px);
}
.back-to-top-fab:active {
  transform: translateY(0);
}
@media (min-width: 750px) {
  .back-to-top-fab { display: inline-flex; }
}

/* Stars styling */
.stars i { color: #000000; margin-right: 2px; }

/* Footprint map + gallery */
.footprint-map-wrap { margin: 1rem 0 2rem; }
.footprint-map { width: 100%; height: 420px; border: 1px solid #eee; border-radius: 8px; }
@media (max-width: 750px) {
  .footprint-map { height: 320px; }
}

.footprint-trip { margin-top: 2.5rem; }
/* Slightly smaller typography for title/date/rating (all screen sizes) */
.footprint-trip-title { margin-bottom: 0.75rem; font-size: 1.5em; }
.footprint-trip-meta { font-weight: 300; font-size: 0.8em; color: rgba(0,0,0,0.55); }
.footprint-trip-blurb { margin: -0.25rem 0 1rem; color: rgba(0,0,0,0.7); }
.footprint-empty { color: rgba(0,0,0,0.55); }

@media (min-width: 750px) {
  .footprint-trip-blurb { font-size: 1.1em; }
}

.footprint-grid {
  column-count: 3;
  column-gap: 10px;
}
@media (max-width: 750px) {
  /* Mobile gallery: portrait = 2 columns, landscape = full width */
  .footprint-grid {
    column-count: initial;
    column-gap: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    grid-auto-flow: dense;
  }
  .footprint-thumb {
    display: block;
    margin: 0;
  }
  .footprint-thumb.landscape {
    grid-column: 1 / -1;
  }
  .footprint-thumb.full {
    grid-column: 1 / -1;
  }

  .footprint-trip-meta { font-weight: 300; font-size: 0.6em; color: rgba(0,0,0,0.55);}
}
.footprint-thumb {
  display: inline-block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  margin: 0 0 10px 0;
  break-inside: avoid;
}
.footprint-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Generic lazy image placeholder (used when src points to a small placeholder) */
img.lazy {
  background-image: url('../../assets/loading.gif');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 50px 50px;
  min-height: 80px;
}

/* Leaflet popup */
.footprint-popup-title { font-weight: 600; margin-bottom: 2px; font-size: 14px; }
.footprint-popup-sub { font-size: 12px; color: rgba(0,0,0,0.6); margin-bottom: 6px; }
.footprint-popup-img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(0,0,0,0.08); margin: 6px 0; }

.footprint-popup-link {
  display: block;
  margin-top: 8px;
  text-decoration: none;
  font-size: 13px;
}

/* Desktop: larger popup text and image */
@media (min-width: 751px) {
  .footprint-popup-title {
    font-size: 18px;
  }
  .footprint-popup-sub {
    font-size: 14px;
  }
  .footprint-popup-link {
    font-size: 15px;
  }
  .footprint-popup-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Footprint lightbox (prevents getting "stuck" on raw image URLs) */
.footprint-no-scroll { overflow: hidden; }
.footprint-lightbox { display: none; position: fixed; inset: 0; z-index: 2000; }
.footprint-lightbox.open { display: block; }
.footprint-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.footprint-lightbox-content {
  position: fixed;
  inset: 14px;
  margin: auto;
  width: min(1100px, calc(100vw - 28px));
  height: min(94vh, calc(100vh - 28px));
  background: #111;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  overflow: hidden; /* always keep the image fully inside the viewport */
}
.footprint-lightbox-header { color: rgba(255,255,255,0.92); padding: 0 40px 0 6px; }
.footprint-lightbox-title { font-weight: 600; }
.footprint-lightbox-meta { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 2px; }
.footprint-lightbox-stage {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* swipe-only on mobile; do not offset the photo */
  padding: 0;
  box-sizing: border-box;
  min-height: 0; /* important for grid children so it can shrink */
  touch-action: pan-y; /* allow vertical scroll outside, we handle horizontal swipe */
}
.footprint-lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #111;
  border-radius: 8px;
}

/* Desktop arrows (hidden on mobile) */
.footprint-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 28px;
  line-height: 46px;
  padding: 0;
}
.footprint-lightbox-prev { left: 16px; }
.footprint-lightbox-next { right: 16px; }

@media (min-width: 751px) {
  /* reserve side gutters so arrows don't cover the photo */
  .footprint-lightbox-stage { padding: 0 66px; }
}
.footprint-lightbox-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 22px;
  line-height: 32px;
  padding: 0;
}
@media (max-width: 750px) {
  /* Keep a strict viewport-bounded box on mobile too (do NOT use height:auto) */
  .footprint-lightbox-content { inset: 10px; width: auto; height: min(96vh, calc(100vh - 20px)); border-radius: 12px; }
  /* mobile is swipe-only */
  .footprint-lightbox-nav { display: none; }
}

/* Prefer dynamic viewport units when supported (better on mobile address bar) */
@supports (height: 100dvh) {
  .footprint-lightbox-content { height: min(94dvh, calc(100dvh - 28px)); }
  @media (max-width: 750px) {
    .footprint-lightbox-content { height: min(96dvh, calc(100dvh - 20px)); }
  }
}

/* Leaflet popup styling for footprint (replaces tooltip on desktop to keep it clickable) */
.leaflet-popup.footprint-popup-leaflet .leaflet-popup-content-wrapper {
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  position: relative;
}
.leaflet-popup.footprint-popup-leaflet .leaflet-popup-content {
  margin: 10px 12px;
  max-width: 260px;
}

/* Desktop: larger popup */
@media (min-width: 751px) {
  .leaflet-popup.footprint-popup-leaflet .leaflet-popup-content {
    min-width: 240px;
    max-width: 360px;
  }
}

/* We draw our own arrow so we can flip it up/down/left/right */
.leaflet-popup.footprint-popup-leaflet .leaflet-popup-tip-container {
  display: none;
}

/* Custom cluster marker (no plugin) */
.footprint-cluster-icon {
  background: transparent;
  border: 0;
}
.footprint-cluster-bubble {
  width: 50%;
  height: 50%;
  border-radius: 999px;
  /* Match the original point style: white fill + purple ring */
  background: rgba(255,255,255,0.98);
  border: 3px solid rgba(51, 0, 111, 0.95);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footprint-cluster-bubble span {
  color: rgba(51, 0, 111, 0.95);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}
.footprint-cluster-popup .footprint-popup-title {
  font-size: 18px;
}
.footprint-cluster-popup .footprint-cluster-list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.footprint-cluster-popup .footprint-cluster-list li {
  margin: 4px 0;
  font-size: 16px;
}

/* Base arrow pseudo-elements */
.leaflet-popup.footprint-popup-leaflet .leaflet-popup-content-wrapper::before,
.leaflet-popup.footprint-popup-leaflet .leaflet-popup-content-wrapper::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}

/* UP (default): popup above marker, arrow points down */
.leaflet-popup.footprint-popup-leaflet.footprint-popup-dir-up .leaflet-popup-content-wrapper::before,
.leaflet-popup.footprint-popup-leaflet:not(.footprint-popup-dir-down):not(.footprint-popup-dir-left):not(.footprint-popup-dir-right) .leaflet-popup-content-wrapper::before {
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid rgba(0,0,0,0.12);
}
.leaflet-popup.footprint-popup-leaflet.footprint-popup-dir-up .leaflet-popup-content-wrapper::after,
.leaflet-popup.footprint-popup-leaflet:not(.footprint-popup-dir-down):not(.footprint-popup-dir-left):not(.footprint-popup-dir-right) .leaflet-popup-content-wrapper::after {
  left: 50%;
  transform: translateX(-50%);
  bottom: -11px;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid #fff;
}

/* DOWN: popup below marker, arrow points up */
.leaflet-popup.footprint-popup-leaflet.footprint-popup-dir-down .leaflet-popup-content-wrapper::before {
  left: 50%;
  transform: translateX(-50%);
  top: -12px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid rgba(0,0,0,0.12);
}
.leaflet-popup.footprint-popup-leaflet.footprint-popup-dir-down .leaflet-popup-content-wrapper::after {
  left: 50%;
  transform: translateX(-50%);
  top: -11px;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 11px solid #fff;
}

/* RIGHT: popup right of marker, arrow points left */
.leaflet-popup.footprint-popup-leaflet.footprint-popup-dir-right .leaflet-popup-content-wrapper::before {
  top: 50%;
  transform: translateY(-50%);
  left: -12px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 12px solid rgba(0,0,0,0.12);
}
.leaflet-popup.footprint-popup-leaflet.footprint-popup-dir-right .leaflet-popup-content-wrapper::after {
  top: 50%;
  transform: translateY(-50%);
  left: -11px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 11px solid #fff;
}

/* LEFT: popup left of marker, arrow points right */
.leaflet-popup.footprint-popup-leaflet.footprint-popup-dir-left .leaflet-popup-content-wrapper::before {
  top: 50%;
  transform: translateY(-50%);
  right: -12px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 12px solid rgba(0,0,0,0.12);
}
.leaflet-popup.footprint-popup-leaflet.footprint-popup-dir-left .leaflet-popup-content-wrapper::after {
  top: 50%;
  transform: translateY(-50%);
  right: -11px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 11px solid #fff;
}

/* Anchor offset so "View gallery" shows the title, not just the grid */
#footprint .footprint-trip { scroll-margin-top: calc(3.5rem + 1rem); }
@media (min-width: 750px) {
  #footprint .footprint-trip { scroll-margin-top: calc(6.5rem + 1rem); }
}
