:root {
  --wl2b-paper: var(--yellow, #e1e1e1);
  --wl2b-paper-soft: #d7d7d7;
  --wl2b-ink: var(--black, #161721);
  --wl2b-stamp: #518d43;
  --wl2b-stamp-dark: #315c2b;
  --wl2b-shadow: rgba(0, 0, 0, 0.18);
}

.wl2b-stamp {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 247, 223, 0.82), rgba(255, 247, 223, 0.56));
  border: 2px solid currentColor;
  border-radius: 5px;
  color: var(--wl2b-stamp-dark);
  display: inline-flex;
  font-family: var(--_fonts---font-family--ibm-plex-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.08em;
  line-height: 1;
  max-width: 100%;
  padding: 7px 9px;
  position: relative;
  text-transform: uppercase;
  transform: rotate(-2deg);
  width: max-content;
}

.wl2b-stamp::after {
  border: 1px dashed currentColor;
  border-radius: 3px;
  content: "";
  inset: 3px;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
}

.wl2b-stamp--country {
  color: var(--wl2b-stamp);
}

.wl2b-stamp--subtle {
  background: rgba(255, 247, 223, 0.12);
  color: rgba(255, 247, 223, 0.76);
}

.wl2b-stamp.is-stamped {
  animation: wl2b-stamp-in 360ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes wl2b-stamp-in {
  0% {
    opacity: 0;
    transform: rotate(-5deg) scale(1.16);
  }
  62% {
    opacity: 1;
    transform: rotate(-2deg) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: rotate(-2deg) scale(1);
  }
}

.route-receipt {
  background:
    radial-gradient(circle at 10px 0, transparent 0 5px, var(--wl2b-paper) 5.5px),
    linear-gradient(180deg, var(--wl2b-paper), var(--wl2b-paper-soft));
  border: 1px solid var(--wl2b-ink);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  color: var(--wl2b-ink);
  position: relative;
}

.route-receipt::after {
  background-image: linear-gradient(90deg, var(--wl2b-ink) 0 3px, transparent 3px 8px);
  background-size: 8px 1px;
  bottom: 8px;
  content: "";
  height: 1px;
  left: 12px;
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
  right: 12px;
}

.route-receipt__title,
.route-receipt__label,
.route-receipt__row {
  font-family: var(--_fonts---font-family--ibm-plex-mono, monospace);
}

.route-receipt__title {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-receipt__row {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.route-receipt__label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-receipt__value {
  font-weight: 700;
}

.route-receipt__divider {
  border-top: 1px dashed currentColor;
  opacity: 0.36;
}

.current-location-info__stamp {
  margin-bottom: 10px;
}

.polaroid-stack {
  isolation: isolate;
}

.photo-dump-card .polaroid-stack,
.photo-dump-card__stack.polaroid-stack {
  display: block;
  height: 56px;
  overflow: visible;
  width: 54px;
}

.polaroid-card,
.photo-dump-card__tile.polaroid-card {
  background: #fffdf3;
  border: 3px solid #fffdf3;
  border-bottom-width: 8px;
  border-radius: 2px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.24);
  height: 48px;
  left: 4px;
  overflow: hidden;
  position: absolute;
  top: 4px;
  transform-origin: 50% 90%;
  transition: transform 180ms ease, box-shadow 180ms ease;
  width: 42px;
}

.polaroid-card:nth-child(1) {
  transform: rotate(-8deg) translate(-5px, 2px);
  z-index: 1;
}

.polaroid-card:nth-child(2) {
  transform: rotate(4deg) translate(2px, -1px);
  z-index: 2;
}

.polaroid-card:nth-child(3) {
  transform: rotate(-2deg) translate(7px, 4px);
  z-index: 3;
}

.polaroid-card:nth-child(4) {
  transform: rotate(7deg) translate(10px, 0);
  z-index: 4;
}

.photo-dump-card:hover .polaroid-card:nth-child(1),
.photo-dump-card:focus-visible .polaroid-card:nth-child(1) {
  transform: rotate(-11deg) translate(-8px, 4px);
}

.photo-dump-card:hover .polaroid-card:nth-child(2),
.photo-dump-card:focus-visible .polaroid-card:nth-child(2) {
  transform: rotate(0deg) translate(0, -4px);
}

.photo-dump-card:hover .polaroid-card:nth-child(3),
.photo-dump-card:focus-visible .polaroid-card:nth-child(3) {
  transform: rotate(5deg) translate(8px, 3px);
}

.photo-dump-card:hover .polaroid-card:nth-child(4),
.photo-dump-card:focus-visible .polaroid-card:nth-child(4) {
  transform: rotate(11deg) translate(13px, 0);
}

.polaroid-card__image,
.polaroid-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.polaroid-card__caption {
  color: var(--wl2b-ink);
  font-family: var(--_fonts---font-family--ibm-plex-mono, monospace);
  font-size: 9px;
}

.current-location-marker {
  --current-location-marker-size: 18px;
  --current-location-marker-offset: 7px;
  overflow: visible !important;
}

.current-location-marker__dot,
.current-location-heartbeat {
  height: var(--current-location-marker-size);
  left: 0;
  position: absolute;
  top: var(--current-location-marker-offset);
  width: var(--current-location-marker-size);
}

.current-location-marker__dot {
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(77, 67, 149, 0.34), 0 0 0 1px rgba(77, 67, 149, 0.14);
  z-index: 2;
}

.current-location-heartbeat {
  background: rgba(77, 67, 149, 0.22);
  border-radius: 999px;
  transform-origin: center;
  animation: wl2b-heartbeat 2.6s ease-in-out infinite;
  z-index: 1;
}

.current-location-marker.is-arrived .current-location-heartbeat {
  animation-duration: 1.1s;
}

@keyframes wl2b-heartbeat {
  0%,
  100% {
    opacity: 0.24;
    transform: scale(1);
  }
  45% {
    opacity: 0.04;
    transform: scale(1.85);
  }
}

.route-endpoint-pulse {
  height: 18px;
  pointer-events: none;
  position: relative;
  width: 18px;
}

.route-endpoint-pulse::before,
.route-endpoint-pulse::after {
  border-radius: 999px;
  content: "";
  inset: 0;
  position: absolute;
}

.route-endpoint-pulse::before {
  background: var(--wl2b-stamp);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(49, 92, 43, 0.28);
}

.route-endpoint-pulse::after {
  background: rgba(81, 141, 67, 0.32);
  animation: wl2b-route-end 1.4s ease-out 2;
}

@keyframes wl2b-route-end {
  from {
    opacity: 0.5;
    transform: scale(0.9);
  }
  to {
    opacity: 0;
    transform: scale(2.5);
  }
}

.country-rail,
.countries-jump.country-rail {
  scroll-snap-type: x proximity;
}

.country-rail__chip,
.country-filter__chip.country-rail__chip,
.country-jump-link.country-rail__chip {
  scroll-snap-align: start;
  transform-origin: center;
}

.country-rail__chip.is-active,
.country-filter__chip.country-rail__chip.is-active {
  box-shadow: 0 0 0 2px rgba(22, 23, 33, 0.12);
}

.country-rail__chip.is-snapping {
  animation: wl2b-chip-snap 180ms ease-out both;
}

.country-rail__number {
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  padding: 3px 5px;
}

@keyframes wl2b-chip-snap {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-1px) scale(1.04);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.photo-tile .wl2b-stamp {
  left: 8px;
  position: absolute;
  top: 8px;
  z-index: 3;
}

.field-note-sheet .wl2b-stamp {
  margin-bottom: 14px;
}

.latest-route-story__toggle:has(.latest-route-story__stamp) .latest-route-story__eyebrow {
  display: none;
}

.photo-dump-card:has(.polaroid-stack) {
  grid-template-columns: 66px minmax(0, 1fr);
}

@media screen and (max-width: 767px) {
  .current-location-marker {
    --current-location-marker-size: 14px;
    --current-location-marker-offset: 5px;
  }

  .current-location-marker__dot {
    border-width: 2px;
    box-shadow: 0 2px 6px rgba(77, 67, 149, 0.28), 0 0 0 1px rgba(77, 67, 149, 0.12);
  }

  .photo-dump-card .polaroid-stack,
  .photo-dump-card__stack.polaroid-stack {
    height: 52px;
    width: 50px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .wl2b-stamp.is-stamped,
  .country-rail__chip.is-snapping,
  .current-location-heartbeat,
  .route-endpoint-pulse::after {
    animation: none !important;
  }

  .photo-dump-card:hover .polaroid-card,
  .photo-dump-card:focus-visible .polaroid-card,
  .polaroid-card,
  .value-block.route-receipt:hover {
    transition: none !important;
  }
}
