@font-face {
  font-family: "Manjari Print";
  src: url("/fonts/Manjari-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Manjari Print";
  src: url("/fonts/Manjari-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: block;
}

.route-gift[open]:has(.gift-actions) { z-index: 1; }
.gift-contents.gift-actions {
  width: min(100%, 17rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  padding: .85rem;
  pointer-events: auto;
}
.gift-actions .button {
  /* Balance Manjari’s visible glyphs within its line box. */
  padding-inline: .75rem;
}
.route-view-page { margin-block: 1.5rem; }
.route-view-page > .button { margin-bottom: .75rem; }
.route-reveal {
  padding: clamp(1rem, 3vw, 2rem);
  background: #fff8e8;
  border: 2px solid #19283d;
  border-radius: 1rem;
  color: #19283d;
  transform-origin: top center;
  animation: reveal-route .4s ease-out both;
}
@keyframes reveal-route {
  from { opacity: 0; transform: translateY(-2rem) scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
  .route-reveal { animation: none; }
}
.route-reveal h2 { margin: 0 0 1rem; }
.route-reveal .public-route-date { margin: 0 0 .25rem; }
.public-route-map { height: clamp(20rem, 58vw, 34rem); background: #eaf0e8; border-radius: .7rem; overflow: hidden; }
.public-map-attribution { font-size: .75rem; margin-block: .25rem 1rem; }
.public-stop-marker {
  border: 1px solid #19283d;
  border-radius: .5rem;
  background: #19283d;
  color: white;
  cursor: pointer;
}
.public-stop-marker { border: 2px solid white; border-radius: 50%; width: 2rem; height: 2rem; padding: 0; }
.public-route-print { font: inherit; font-weight: 700; border: 0; margin-inline: 1rem; cursor: pointer; }
.route-reveal .public-route-directions { max-width: none; margin: 1rem 0 0; }
.public-route-directions summary { cursor: pointer; font-weight: 700; }
.route-directions-list li { margin-block: .5rem; }
.route-step { display: inline-flex; align-items: center; gap: .55rem; vertical-align: middle; }
.route-step-sign { flex: none; width: 1.85rem; height: 1.85rem; }
.route-step-sign svg { display: block; width: 100%; height: 100%; }
.route-reveal .public-route-notice,
.route-print-sheet .public-route-notice {
  margin: 0 auto 1rem;
  padding: .75rem 1rem;
  border: 1px solid #bd1931;
  border-radius: .5rem;
  background: #f8ead0;
  text-align: center;
  font-weight: 700;
}
.route-directions-list { font-family: Manjari, Helvetica, Verdana, sans-serif; }
.route-stop-step { font-weight: 700; }
.route-print-sheet { display: none; }

@media print {
  body:has(> .route-print-sheet) {
    display: block;
    min-height: 0;
    background: white;
    color: black;
  }
  body:has(> .route-print-sheet) > :not(.route-print-sheet) { display: none !important; }
  @page santa-route {
    size: letter portrait;
    margin: 24mm 12mm;
    @bottom-left {
      content: "Folsom Santa Tracker | FolsomSantaTracker.com";
      font: 12pt "Manjari Print";
    }
    @bottom-right {
      content: "Page " counter(page) " of " counter(pages);
      font: 12pt "Manjari Print";
    }
  }
  /* A zero first-page top margin suppresses Chromium's automatic print header. */
  @page santa-route:first { margin-top: 0; }
  .route-print-sheet { page: santa-route; display: block; font: 400 12pt/1.6 "Manjari Print"; }
  .route-print-header { padding-top: 24mm; text-align: center; break-inside: avoid; }
  .route-print-header h1 { font-size: 20pt; padding-block: 0; }
  .route-print-header h2 { font-size: 15pt; margin-top: .3rem; }
  .route-print-header .public-route-date { margin: .4rem 0 .75rem; }
  .route-print-header .public-route-notice { width: fit-content; max-width: 100%; }
  .route-print-qr-callout { margin: 4mm 0 0; text-align: center; break-inside: avoid; }
  .route-print-qr { display: block; width: 24mm; height: 24mm; margin-inline: auto; }
  .route-print-qr-callout figcaption { margin-top: 1mm; }
  .route-print-sheet ol { margin-block: 0; }
  .route-print-sheet li { break-inside: avoid; margin-block: .2rem; }
  .route-print-sheet .route-step-sign { width: 1.25rem; height: 1.25rem; }
  .route-print-sheet .route-step-sign,
  .route-print-header .public-route-notice { print-color-adjust: exact; }
}
