/* ============================================================
   AndesRush — styles
   ============================================================ */

:root {
  /* palette */
  --primary: #174a68;
  --primary-ink: #103750;   /* primary, a step darker: hover/pressed */
  --secondary: #2f7898;
  --sky: #e7f1f4;
  --bg: #ffffff;
  --tint: #f4f8fa;          /* the light blue, much paler: alternate sections */
  --paper: #ffffff;
  --ink: #202923;
  --muted: #64747d;
  --text-muted: var(--muted);
  --line: #e2e6e4;
  --line-strong: #cbd7dc;
  --accent: #e5a04b;        /* only behind photos while they load */
  --accent-ink: #d28b33;    /* accent, a step darker: hover */
  --good: #2f7d5b;
  --good-ink: #23634a;
  --good-bg: rgba(47, 125, 91, 0.1);
  --danger: #b3261e;
  --warn-ink: #8a5513;
  --warn-bg: #fdf3e3;
  --warn-line: #f1d5a8;

  --shadow-sm: 0 1px 2px rgba(23, 74, 104, 0.05), 0 2px 8px rgba(23, 74, 104, 0.04);
  --shadow-md: 0 12px 32px rgba(23, 74, 104, 0.08);
  --shadow-lg: 0 22px 48px rgba(23, 74, 104, 0.13);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-img: 4px;
  --pill: 999px;

  --maxw: 1360px;
  --gutter: 40px;
  --nav-h: 72px;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (max-width: 720px) { :root { --gutter: 20px; } }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--sky); color: var(--ink); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
  color: inherit;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-img);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ============================================================
   Navbar
   ============================================================ */

#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
body:not([data-page="home"]) #site-header,
body.scrolled #site-header,
body.nav-open #site-header { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 0;
  transition: color 0.15s ease;
}
.nav-link:hover,
.nav-link.is-active { color: var(--ink); }

/* ---------- language menu (only on sites with 2+ languages) ---------- */

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.15s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  padding: 6px 0;
  min-width: 168px;
  display: none;
}
.lang-menu.open { display: block; }
.lang-option {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.lang-option:hover,
.lang-option[aria-current="true"] { color: var(--ink); }

/* ---------- WhatsApp, manage-booking + cart icons ---------- */

.nav-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: -10px;
}
.chat-btn,
.booking-btn,
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.chat-btn:hover,
.booking-btn:hover,
.booking-btn.is-active,
.cart-btn:hover { color: var(--ink); }
.cart-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--pill);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* ---------- phone menu: a disclosure under the bar ---------- */

.nav-toggle {
  display: none;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle-close,
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    /* hidden (and out of the tab order) until the button opens it */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }
  body.nav-open .nav-links {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease;
  }
  .nav-link {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-link:hover,
  .nav-link.is-active { color: var(--secondary); }
  .lang-switch { margin-top: 12px; }
  .lang-menu { left: 0; right: auto; }
  .nav-icons { margin: 4px 0 0 -10px; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .nav-links, body.nav-open .nav-links { transition: none; }
}

/* ============================================================
   Forms (contact, manage booking, checkout, tour booking card)
   Mono labels, 52px controls with small corners, a hairline border that
   turns ink on focus.
   ============================================================ */

.form {
  display: grid;
  gap: 20px;
  max-width: 560px;
}
.field { display: grid; gap: 8px; }
.field label,
.field legend,
.field .field-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px; /* 16px stops iPhones zooming in on focus */
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-img);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364747d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 20px center / 10px 6px no-repeat;
}
.field textarea {
  padding: 15px 22px;
  resize: vertical;
  line-height: 1.5;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.field ::placeholder { color: var(--muted); opacity: 0.7; }
.form .btn { justify-self: start; }

/* Phone: country-code select + number input on one row */
.phone-row {
  display: grid;
  grid-template-columns: minmax(112px, min(11rem, 40%)) minmax(0, 1fr);
  gap: 8px;
}
.phone-row select {
  min-width: 0;
  padding: 0 36px 0 18px;
  background-position: right 16px center;
  text-overflow: ellipsis;
}

/* Contact page: name, email and phone on the left, the message filling the
   right, then Send with the direct email and WhatsApp beside it. */
.g-section.contact-section { margin-top: 48px; }
.gallery > .contact-section:last-child { margin-bottom: 72px; }   /* just a little room before the footer */
.contact-form {
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
  max-width: none;
  align-items: stretch;
}
.contact-col { display: grid; gap: 20px; align-content: start; }
.contact-msg { grid-template-rows: auto 1fr; }
.contact-msg textarea { min-height: 160px; height: 100%; }
.contact-foot,
.contact-form .form-status { grid-column: 1 / -1; }
.contact-page .g-page-head .g-lede { max-width: none; }   /* the short lede stays on one line */
.contact-foot {
  margin-top: 27px;   /* with the 20px row gap, the same 47px as between the boxes (label + gap) */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.contact-direct { margin: 0; font-size: 15px; color: var(--text-muted); }
.contact-direct a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-direct a:hover { color: var(--secondary); }
@media (max-width: 860px) { .contact-form { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g-section.contact-section { margin-top: 40px; } }

/* Honeypot: kept in the layout (some bots skip display:none) but off-screen. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 14px;
  margin: 4px 0 0;
}
.form-status.is-pending { color: var(--muted); }
.form-status.is-success { color: var(--good-ink); }
.form-status.is-error   { color: var(--danger); }

/* ============================================================
   Footer
   ============================================================ */

#site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--ink);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 44ch;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
}
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 0;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--ink); }
.footer-links .footer-contact { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.footer-links .footer-contact:hover { color: var(--secondary); }
.footer-bottom {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 40px auto 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: inherit; transition: color 0.15s ease; }
.footer-legal a:hover { color: var(--ink); }
@media (max-width: 620px) {
  #site-footer { padding: 36px 0 20px; }
  .footer-links { gap: 0 20px; }
  .footer-bottom { margin-top: 24px; }
}

/* ============================================================
   Tour list (/en/tours, /en/tours/<type>)
   The cards are the home page's expedition cards (.g-journeys).
   ============================================================ */

/* type filter: one row of chips, scrolling sideways on small screens */
.tour-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-img);
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.chip-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.is-active .chip-count { color: rgba(255, 255, 255, 0.65); }
@media (max-width: 640px) {
  .tour-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(-1 * var(--gutter)) 32px;
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .tour-filter::-webkit-scrollbar { display: none; }
}

.tour-list { margin-top: 0; }
.tour-card[hidden] { display: none; }

/* the featured tour: a spread, its photo on the left page and its title
   and facts on the right, level with the photo's foot */
.tl-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1px minmax(0, 1fr);
  column-gap: 48px;
  margin-bottom: 72px;
}

/* the heading over the other tours: a full-width line, the label and the
   count; gone with the featured tour */
.tl-more {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.tl-more span:first-child { color: var(--ink); }
.tl-lead[hidden] + .tl-more { display: none; }
.tl-lead-photo .g-photo { aspect-ratio: 4 / 3; height: auto; transition: opacity 0.15s ease; }
.tl-lead-photo:hover .g-photo { opacity: 0.92; }
.tl-lead-text { display: flex; flex-direction: column; gap: 24px; align-self: end; min-width: 0; }
.tl-lead-kicker {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tl-lead-kicker span:first-child { color: var(--ink); }
.tl-lead-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.tl-lead-title a { transition: color 0.15s ease; }
.tl-lead-title a:hover { color: var(--secondary); }
.tl-lead-summary { font-size: 18px; line-height: 1.5; color: var(--ink); }
.tl-lead-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; }
.tl-lead-facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.tl-lead-facts dt { color: var(--muted); }
.tl-lead-facts dd { margin: 4px 0 0; color: var(--ink); }
.tl-lead-facts .g-per { color: var(--muted); }
.tl-lead .hero-ask { align-self: flex-start; }

/* the other tours, two to a row */
.tl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 72px;
}
.tl-grid .g-journey .g-photo { aspect-ratio: 3 / 2; height: auto; }
.tl-grid .g-title { font-size: 24px; }

@media (max-width: 900px) {
  .tl-lead { grid-template-columns: minmax(0, 1fr); row-gap: 28px; margin-bottom: 56px; }
  .tl-lead .g-rule { display: none; }
  .tl-lead-summary { font-size: 16px; }
  .tl-grid { gap: 64px 32px; }
}
@media (max-width: 720px) {
  .tl-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
.g-journey .g-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 14px;
  color: var(--muted);
}
.g-journey .g-facts + .g-price { margin-top: 6px; }
.g-journey .g-per { color: var(--muted); text-transform: none; letter-spacing: 0; }

/* types without tours yet, under the list */
.tour-soon {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   Tour detail (/en/tours/<type>/<id>)
   Opens like an article: the title, summary, price and Reserve left, the
   cover right. Then a row of photos and the facts (the article facts,
   smaller), and the text beside the booking card, which stays in view on
   wide screens. Phones get the price and Reserve in a bar at the bottom.
   ============================================================ */

.tour-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 56px;
  padding-top: calc(var(--nav-h) + 32px);
}
.tour-spread-text { display: flex; flex-direction: column; min-width: 0; }
.tour-detail-back { align-self: start; display: inline-block; padding: 12px 0; margin: -12px 0 0; color: var(--muted); }
.tour-detail-back:hover { color: var(--ink); }
.tour-spread .g-page-title { margin-top: 28px; font-size: clamp(48px, 7vw, 104px); }
.tour-spread .g-lede { margin-top: 24px; max-width: 440px; }
.tour-spread-buy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--line);
}
.tour-spread-buy .btn { padding: 0 40px; }

/* "from $396 per team": in the spread, the booking card and the bar */
.tour-price { display: grid; gap: 6px; }
.tour-price .amt {
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tour-price .per { color: var(--muted); font-size: 13px; }

.tour-cover { position: relative; margin: 0; min-width: 0; }
.tour-cover picture { display: block; height: 100%; }
.tour-cover .g-photo { height: 100%; max-height: 640px; aspect-ratio: 4 / 3; }
.tour-cover-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: none;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-img);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
}

/* the row of photos under the spread; the last shows "+N" when there are
   more (clicks pass through to the photo) */
.tour-glance { margin-top: 8px; }
.tour-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tour-strip picture { display: block; }
.tour-strip .g-photo { aspect-ratio: 3 / 2; height: auto; }
[data-photo-index] { cursor: pointer; }
.tour-cover .g-photo, .tour-strip .g-photo { transition: opacity 0.15s ease; }
.tour-cover .g-photo:hover, .tour-strip .g-photo:hover { opacity: 0.92; }
.tour-gallery-more { position: relative; }
.tour-gallery-more-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-img);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  pointer-events: none;
  transition: background 0.15s ease;
}
.tour-gallery-more:hover .tour-gallery-more-count { background: rgba(0, 0, 0, 0.4); }

/* the article facts, a size smaller */
.tour-facts.article-facts { margin-top: 40px; }
.tour-facts.article-facts div { padding-top: 12px; }
.tour-facts.article-facts dd { margin-top: 6px; font-size: clamp(20px, 1.7vw, 26px); }
@media (max-width: 600px) { .tour-facts.article-facts { margin-top: 32px; } }
/* narrower screens: see .article-facts under the articles */

.tour-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 48px 64px;
  align-items: start;
  margin-top: 72px;
}

/* About / itinerary / included / safety / good to know / guides: a mono
   label beside the text on wide screens, above it on narrow ones */
.tour-detail-block {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px 32px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tour-detail-main > .tour-detail-block:first-child { margin-top: 0; }
.tour-detail-block h2 { font-weight: 400; line-height: 1.6; }
.tour-detail-block .g-text { margin-top: 0; }
.tour-more-text[hidden] { display: none; }
.tour-text-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tour-detail-block .tour-text-link { margin-top: 12px; }

/* the itinerary: a list of steps per day, the time beside each */
.tour-days { display: grid; gap: 32px; }
.tour-day h3 { color: var(--ink); line-height: 1.6; margin-bottom: 8px; }
.tour-steps { list-style: none; margin: 0; padding: 0; }
.tour-steps li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.tour-step-time { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--muted); }
.tour-steps b { display: block; font-weight: 500; }
.tour-steps span:not(.tour-step-time) { display: block; color: var(--muted); font-size: 15px; }
.tour-steps .is-highlight b { color: var(--primary); }

/* included and not included side by side */
.tour-included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.tour-included .g-label { margin-bottom: 8px; }
.tour-checks { list-style: none; margin: 0; padding: 0; }
.tour-checks li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tour-checks li::before { content: "✓"; flex: none; width: 12px; font-family: var(--font-mono); color: var(--good); }
.tour-checks.is-not li { color: var(--muted); }
.tour-checks.is-not li::before { content: "✕"; color: var(--danger); }

.g-list { list-style: none; margin: 0; padding: 0; }
.g-list li { padding: 12px 0; font-size: 16px; color: var(--ink); }
.g-list li:first-child { padding-top: 0; }
.g-list li + li { border-top: 1px solid var(--line); }
.g-list-muted li { color: var(--muted); }
/* A tour's "Read before you go" links */
.tour-guides a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* phones: the photos in a row to swipe through */
.tour-swipe { display: none; }

/* ---------- the booking card: no box, just hairlines ---------- */

.tour-booking {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  max-height: calc(100vh - var(--nav-h) - 48px);   /* short windows: the card scrolls on its own */
  overflow-y: auto;
  scrollbar-width: thin;
  /* Room for the scrollbar on the right (overlay scrollbars, as on macOS,
     would sit on top of the fields) and for the fields' focus rings on the
     left, which the scrolling box would clip. The negative margins keep the
     card's edges in line with the rest of the page. */
  padding: 0 14px 0 4px;
  margin: 0 -14px 0 -4px;
}
.tour-booking-card .tour-price { margin-bottom: 24px; }
.tour-booking-card .tour-price .amt { font-size: 52px; }
/* the type's note under it (rope teams): close under the price, not 24px below */
.tour-booking-card .tour-price:has(+ .tour-price-note) { margin-bottom: 8px; }
.tour-booking-card .tour-price-note { margin: 0 0 24px; }
.tour-booking-card .field { margin-bottom: 18px; }
.tour-booking-card .field input { width: 100%; min-height: 46px; }
.field-hint { margin: -2px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.field input.is-invalid { border-color: var(--danger); }
.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

/* travelers: the number with − and + */
.tour-stepper { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px;
  padding-right: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-img); background: var(--paper); }
.tour-stepper:hover { border-color: var(--muted); }
.tour-stepper:focus-within { border-color: var(--ink); }
.tour-booking-card .tour-stepper input { min-height: 44px; min-width: 0; border: 0; background: none; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.tour-stepper input::-webkit-inner-spin-button,
.tour-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tour-stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-img);
  background: var(--tint);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.tour-stepper button:hover { background: var(--sky); }
.tour-stepper button:disabled { opacity: 0.35; cursor: default; }

/* the add-ons, named here and picked after Reserve */
.tour-extras-note { margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.tour-extras-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; font-weight: 500; }
.tour-extras-head .g-mono { color: var(--primary); }
.tour-extras-names { margin-top: 10px; font-size: 14px; line-height: 1.6; }
/* English names in title case, as a list of products; Spanish keeps sentence case */
:lang(en) .tour-extras-names { text-transform: capitalize; }
.tour-extras-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }

.tour-booking-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0 12px;
  margin: 0 0 12px;
  padding: 10px 0 8px;
  border-top: 1px solid var(--ink);
  font-size: 15px;
}
.tour-booking-total .amt { font-size: 28px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tour-booking-calc { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }
.tour-booking-calc:empty { display: none; }

.tour-reserve { width: 100%; font-size: 16px; }
.tour-assure { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.tour-assure li { display: flex; gap: 8px; }
.tour-assure li::before { content: "✓"; color: var(--good); }
.tour-booking-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tour-booking-links .tour-text-link { font-size: 14px; }

/* the add-ons step (a dialog), a sheet from the bottom on phones */
.tour-extras {
  width: min(520px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.tour-extras::backdrop { background: rgba(13, 38, 54, 0.35); }
.tour-extras-inner { padding: 28px; }
.tour-extras h2 { font-size: 32px; font-weight: 300; letter-spacing: -0.03em; }
.tour-extras-lede { margin: 8px 0 12px; font-size: 14px; color: var(--muted); }
.tour-extra {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-img);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tour-extra:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.tour-extra input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.tour-extra .addon-label { display: block; font-size: 15px; }
.tour-extra-text { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.tour-extra-price { font-family: var(--font-mono); font-size: 13px; text-align: right; white-space: nowrap; }
.tour-extra-price small { display: block; font-family: var(--font-sans); font-size: 11px; color: var(--muted); }
.tour-extras .tour-booking-total { margin-top: 16px; }
.tour-extras .btn { width: 100%; }
.tour-extras-skip {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.tour-extras-skip:hover { color: var(--ink); }

/* phones: the price and Reserve at the bottom, out of the way while the
   booking card (or the spread's Reserve) is in view */
.tour-bar { display: none; }

@media (max-width: 960px) {
  .tour-spread { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: calc(var(--nav-h) + 20px); }
  .tour-cover { order: -1; margin: 0 calc(-1 * var(--gutter)); }
  .tour-cover .g-photo { border-radius: 0; max-height: none; }
  .tour-cover-count { display: block; }
  .tour-spread .g-page-title { margin-top: 12px; font-size: clamp(44px, 12vw, 72px); }
  .tour-spread .g-lede { margin-top: 16px; font-size: 17px; }
  .tour-spread-buy { padding-top: 24px; }
  .tour-strip { display: none; }
  .tour-glance { margin-top: 0; }
  .tour-detail-layout { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .tour-booking { position: static; max-height: none; overflow: visible; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--ink); }
  .tour-swipe {
    display: flex;
    gap: 8px;
    margin: 48px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .tour-swipe::-webkit-scrollbar { display: none; }
  .tour-swipe picture { flex: 0 0 72%; scroll-snap-align: start; }
  .tour-swipe .g-photo { aspect-ratio: 4 / 3; height: auto; }
  .tour-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
    transition: transform 0.2s ease;
  }
  .tour-bar.is-hidden { transform: translateY(110%); }
  .tour-bar-price .amt { display: block; font-size: 24px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
  .tour-bar-price .per { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
  .tour-bar .btn { min-height: 48px; padding: 0 32px; }
  body:has(.tour-bar) #site-footer { padding-bottom: 80px; }
  .tour-extras { width: 100%; max-width: none; max-height: 88dvh; margin: auto 0 0; border-radius: 12px 12px 0 0; }
  .tour-extras-inner { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) {
  .tour-detail-block { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
}
@media (max-width: 560px) {
  .tour-included { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tour-steps li { grid-template-columns: 80px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tour-bar { transition: none; }
}

.photo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 38, 54, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.photo-modal-overlay[hidden] { display: none; }
.photo-modal {
  position: relative;
  max-width: min(900px, 100%);
  max-height: 100%;
}

/* The photo viewer: a near-black backdrop with the close button, the
   arrows and the counter at the window's edges, clear of the photo. */
.photo-lightbox {
  background: rgba(15, 20, 18, 0.94);
  padding: 72px 96px;
  animation: photo-lightbox-in 0.18s ease;
}
@keyframes photo-lightbox-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .photo-lightbox { animation: none; } }
.photo-lightbox .photo-modal { max-width: min(1360px, 100%); }
.photo-modal-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 144px);
  border-radius: var(--radius-img);
  object-fit: contain;
}

.photo-modal-btn {
  position: absolute;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}
.photo-modal-btn:hover { border-color: #fff; }
.photo-modal-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.photo-modal-btn svg { width: 20px; height: 20px; }
.photo-modal-btn[hidden] { display: none; }

.photo-modal-close { top: 16px; right: 20px; }
.photo-modal-arrow { top: 50%; transform: translateY(-50%); }
.photo-modal-prev { left: 24px; }
.photo-modal-next { right: 24px; }

.photo-modal-count:empty { display: none; }
.photo-modal-count {
  position: absolute;
  top: 28px;
  left: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

/* Phones: the photo takes the full width, the arrows sit below it */
@media (max-width: 640px) {
  .photo-lightbox { padding: 72px 0 96px; }
  .photo-modal-img { border-radius: 0; max-height: calc(100vh - 168px); }
  .photo-modal-arrow { top: auto; bottom: 28px; transform: none; }
  .photo-modal-prev { left: calc(50% - 56px); }
  .photo-modal-next { right: calc(50% - 56px); }
}

/* The manage-booking message pop-up (manage-booking.js): a plain white
   sheet on a dimmed page, no shadow; sections are split by hairlines. The
   checkout page (below) uses the same trip summary, actions and booking
   reference. */
#message-modal { background: rgba(16, 55, 80, 0.45); }
.checkout-modal {
  position: relative;
  width: min(580px, 100%);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border-radius: var(--radius-img);
  background: var(--bg);
}
.checkout-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: none;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.checkout-modal-close:hover { color: var(--ink); }
.checkout-modal-close svg { width: 20px; height: 20px; }

.checkout-form {
  display: grid;
  gap: 20px;
  padding: 40px 40px 36px;
}
.checkout-head { padding-right: 40px; }
.checkout-head h2 {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.checkout-intro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.checkout-trip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.checkout-trip-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout-trip-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 14px;
}
.checkout-trip-list li {
  display: grid;
  gap: 3px;
}
.checkout-trip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.checkout-trip-row > :last-child {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
}
.checkout-trip-row.checkout-trip-tour {
  margin: 8px 0 2px;
  color: var(--ink);
  font-size: 16px;
}
.checkout-trip-list .checkout-trip-row.checkout-trip-tour { margin-top: 0; }
.checkout-trip-tour > :last-child { color: var(--muted); }
.checkout-trip-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.checkout-trip-total > :last-child { font-family: var(--font-mono); font-size: 15px; }

/* Two short fields side by side (sex + age, nationality + passport). */
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: end; }
.field-pair .field { min-width: 0; }
.field-pair :is(input, select) { min-width: 0; width: 100%; }
.field-pair select { text-overflow: ellipsis; }
@media (max-width: 520px) {
  .field-pair { grid-template-columns: minmax(0, 1fr); }
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.checkout-done {
  display: grid;
  gap: 20px;
  padding: 40px 40px 36px;
}
/* display: grid would otherwise override [hidden] */
.checkout-form[hidden],
.checkout-done[hidden] { display: none; }
.checkout-ref {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.checkout-ref-code {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--ink);
  user-select: all; /* one click selects the whole code for copying */
}
.checkout-ref-note {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 600px) {
  #message-modal { padding: 12px; }
  .checkout-modal { max-height: calc(100vh - 24px); }
  .checkout-form,
  .checkout-done { padding: 28px 20px 24px; }
  .checkout-head h2 { font-size: 28px; }
  .checkout-actions { flex-direction: column-reverse; }
  .checkout-actions .btn { width: 100%; }
}

/* ============================================================
   Checkout (/checkout): the form beside the trip summary, which
   stays in view on wide screens and comes first on narrow ones
   ============================================================ */

.checkout-page {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  grid-template-areas: "form summary";
  gap: 40px 64px;
  align-items: start;
}
.checkout-page[hidden] { display: none; }
.checkout-page-form { grid-area: form; }
/* one back link: to the cart or to the tour (.btn would show both) */
.checkout-actions .btn[hidden] { display: none; }
/* the section's hairline is already above it */
.checkout-summary {
  grid-area: summary;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-top: 0;
  padding-top: 0;
}
.checkout-summary .checkout-trip-list { margin-top: 16px; }
.checkout-page-done { padding: 0; max-width: 560px; }

/* Card payment (site.yaml card_payments): Kushki puts an iframe in each
   .card-field; the box is ours, drawn like the other inputs, and the
   iframe fills it. Until Kushki is set up the boxes are just empty. */
.checkout-payment {
  display: grid;
  gap: 20px;
  margin: 12px 0 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.checkout-traveler {
  display: grid;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.checkout-section-title,
.checkout-payment-title {
  float: left; /* puts the legend inside the grid instead of on the border */
  width: 100%;
  padding: 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.card-field {
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-img);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.card-field:hover { border-color: var(--muted); }
.card-field:focus-within { border-color: var(--ink); }
.card-field iframe { display: block; width: 100%; min-height: 50px; border: 0; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.card-extra:empty { display: none; }
.checkout-payment-note { font-size: 13px; color: var(--muted); }
.checkout-payment-note a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s ease; }
.checkout-payment-note a:hover { color: var(--secondary); }
.checkout-page-done .checkout-ref { border-top: 0; padding-top: 0; }
.checkout-page-done .checkout-actions { justify-content: flex-start; }
@media (max-width: 860px) {
  .checkout-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "summary" "form";
  }
  .checkout-summary { position: static; }
}

/* ============================================================
   Cart (/cart) — also the booking rows on /manage-booking
   ============================================================ */

/* the total and the checkout button, over a hairline */
.cart-summary-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.cart-summary-bar[hidden] { display: none; }
.cart-summary-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-summary-total {
  display: block;
  margin-top: 10px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cart-checkout-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.cart-summary-bar[hidden] + .cart-checkout-note { display: none; }

.cart-list {
  display: grid;
  margin-top: 48px;
  border-bottom: 1px solid var(--line);
}
.cart-list[hidden] { display: none; }

.cart-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 24px 32px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.cart-item:hover .cart-item-info h3 { color: var(--secondary); }
.cart-item:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 4px;
}

.cart-item-media {
  width: 160px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-img);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}
.cart-item-thumb { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 8px 0 4px;
  transition: color 0.15s ease;
}
.cart-item-info h3 a:hover { color: var(--secondary); }
.cart-item-meta { color: var(--muted); font-size: 14px; }

/* the date (and on /manage-booking the status) above the title */
.tour-date-badge,
.manage-status {
  display: inline-block;
  padding: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-item-addons {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 4px;
  max-width: 360px;
}
.cart-item-addons li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.cart-item-addons li > span:last-child { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }

.cart-item-price {
  display: grid;
  gap: 12px;
  justify-items: end;
  text-align: right;
}
.cart-item-subtotal {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
}
.cart-item-remove {
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.cart-item-remove:hover { color: var(--danger); }

.empty-state { font-size: 18px; line-height: 1.5; }
.empty-state a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s ease; }
.empty-state a:hover { color: var(--secondary); }

@media (max-width: 640px) {
  .cart-item { grid-template-columns: 96px minmax(0, 1fr); gap: 16px 20px; }
  .cart-item-media { width: 96px; }
  .cart-item-price {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* ============================================================
   Manage booking (/manage-booking)
   ============================================================ */

.field input.manage-code-input {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.manage-code-input::placeholder { font-family: var(--font-sans); letter-spacing: normal; text-transform: none; }

.manage-help { display: grid; gap: 12px; justify-items: start; }
.manage-help .btn { margin-top: 12px; }

.manage-results { margin-top: var(--section-gap); scroll-margin-top: calc(var(--nav-h) + 24px); }
.manage-results[hidden] { display: none; }
.manage-results-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.manage-results-code {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.manage-results .cart-list { margin-top: 32px; }

.manage-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.manage-item-badges { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.manage-status::before { content: "· "; }
.manage-status.is-confirmed,
.manage-status.is-paid { color: var(--good-ink); }
.manage-status.is-cancelled { color: var(--danger); }

.manage-item-side {
  display: grid;
  gap: 16px;
  justify-items: end;
}
.manage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.manage-action {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.manage-action:hover:not(:disabled) { border-color: var(--ink); }
.manage-action:disabled { opacity: 0.45; cursor: not-allowed; }

/* the tour in the message modal: the date drops below a long title
   instead of widening the modal */
.manage-msg-tour { flex-wrap: wrap; }

@media (max-width: 640px) {
  .manage-item { grid-template-columns: 1fr; }
  .manage-item-side { justify-items: start; }
  .manage-actions { justify-content: flex-start; }
}

/* ============================================================
   Error page
   ============================================================ */

.error-wrap {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.error-wrap h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 14px; }
.error-wrap p { color: var(--muted); margin-bottom: 26px; }

/* ============================================================
   Home — "gallery" layout
   Photography and type carry it: no shadows, gradients or boxes;
   structure comes from whitespace and 1px hairlines. Geist for the
   voice, Geist Mono for facts (numbering, durations, places, prices).
   ============================================================ */

.gallery { --section-gap: 120px; }
@media (max-width: 720px) { .gallery { --section-gap: 72px; } }

.g-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.g-link { color: var(--ink); transition: color 0.15s ease; }
.g-link:hover { color: var(--secondary); }
.g-label { color: var(--muted); }
.g-lede { font-size: 18px; line-height: 1.5; color: var(--ink); max-width: 420px; }
.g-body { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.g-title { font-size: 20px; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.g-index { color: var(--muted); }

/* photos: the accent shows only while a photo loads (or if it can't) */
.g-photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-img);
  background: var(--accent);
}

/* ---------- hero ---------- */

.g-hero { padding-top: calc(var(--nav-h) + 72px); }
.g-display {
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-left: -0.05em; /* optical: big type looks indented without it */
}
@media (max-width: 480px) { .g-display { font-weight: 400; } }
.g-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.g-hero-row .g-link { padding: 12px 0; margin-bottom: -12px; }
@media (max-width: 720px) {
  .g-hero { padding-top: calc(var(--nav-h) + 40px); }
  .g-hero-row { margin-top: 32px; }
}

.g-plate { margin: 64px auto 0; }
.g-plate .g-photo { height: 620px; }
@media (max-width: 720px) {
  .g-plate { margin-top: 40px; }
  .g-plate .g-photo { height: 420px; }
}
.g-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  color: var(--muted);
}

/* ---------- first screen (home) ----------
   A magazine feature's opening spread: the text on the left page, the
   photo on the right, a hairline down the middle. The links sit at the
   bottom of the left page, level with the photo's caption. It fills the
   window below the menu. */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "text    rule figure"
    "actions rule figure";
  column-gap: 64px;
  height: 100svh;
  min-height: 640px;
  max-height: 1040px;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 40px;
}
.hero-text { grid-area: text; display: flex; flex-direction: column; gap: 28px; min-width: 0; container-type: inline-size; }
.hero-kicker { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
/* as big as the left page allows: 21cqi is 21% of its width, so a line
   up to 4.7 times the font size fits ("unleashed." is 4.5, the longest
   so far). The first value is for browsers without container units. */
.hero-title { margin-top: 8px; font-size: clamp(56px, 7.4vw, 120px); font-size: 21cqi; }
.hero-lede { max-width: 480px; color: var(--text-muted); }
.hero-rule { grid-area: rule; background: var(--line); }

.hero-figure {
  grid-area: figure;
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-figure picture { flex: 1 1 0; min-height: 0; display: block; }
.hero-figure .g-photo { height: 100%; object-position: 35% 50%; }

.hero-actions { grid-area: actions; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.hero-ask {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.hero-ask:hover { color: var(--secondary); }

/* one page: the text, the photo, then the links */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(220px, 1fr) auto;
    grid-template-areas: "text" "figure" "actions";
    row-gap: 24px;
    height: auto;
    min-height: 100svh;
    max-height: none;
    padding-top: calc(var(--nav-h) + 16px);
    padding-bottom: 24px;
  }
  .hero-rule { display: none; }
  .hero-text { gap: 18px; }
  .hero-kicker { padding-bottom: 10px; }
  .hero-title { margin-top: 2px; font-size: clamp(56px, 7.4vw, 120px); }
  .hero-figure { gap: 8px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 58px; }
  .hero-lede { font-size: 16px; }
}

/* ---------- sections ---------- */

.g-section { margin-top: var(--section-gap); }
.gallery > :last-child { margin-bottom: var(--section-gap); }
.g-head { display: grid; gap: 16px; align-content: start; }
.g-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
}
.g-head .g-lede { margin-top: 8px; }
.g-h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18ch;
}
@media (max-width: 720px) { .g-h2 { font-size: 32px; } }

/* a hairline opens every section */
.g-section > :first-child { border-top: 1px solid var(--ink); padding-top: 20px; }

.g-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  align-items: start;
}
.g-prose { display: grid; gap: 16px; max-width: 560px; }
.g-prose .g-lede { max-width: none; }
.g-prose p:not(.g-lede) { font-size: 16px; line-height: 1.65; color: var(--text-muted); }
@media (max-width: 860px) { .g-split { grid-template-columns: 1fr; } }

/* ---------- expeditions ---------- */

.g-journeys {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 24px;
}
@media (max-width: 1000px) { .g-journeys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .g-journeys { grid-template-columns: 1fr; } }
.g-journey { display: flex; flex-direction: column; }
.g-journey .g-photo { aspect-ratio: 4 / 5; height: auto; }
.g-journey .g-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.g-journey .g-title { margin-top: 14px; transition: color 0.15s ease; }
.g-journey .g-body { margin-top: 6px; }
.g-journey .g-price { margin-top: 14px; color: var(--ink); }
.g-journey:hover .g-title { color: var(--secondary); }
@media (max-width: 720px) { .g-journey .g-photo { aspect-ratio: 4 / 3; } }

/* ---------- spreads ----------
   The sections after the first screen are laid out like it: two pages
   with a 1px hairline (.g-rule) between them. Under 900px the pages
   stack and the hairline goes. */

.g-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  column-gap: 64px;
  margin-top: 48px;
}
.g-rule { background: var(--line); }

/* featured expeditions: one large card, two stacked beside it */
.g-lead { grid-template-columns: minmax(0, 1.5fr) 1px minmax(0, 1fr); column-gap: 40px; }
.g-lead:not(:has(.g-lead-side)) { grid-template-columns: minmax(0, 1fr); }
.g-lead-main .g-photo { aspect-ratio: 4 / 3; }
.g-lead-side { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; align-content: start; }
.g-lead-side .g-photo { aspect-ratio: 16 / 9; }

/* our story: the title, a quote and a tour's photo, beside the text */
.g-story-aside { align-self: start; display: grid; gap: 28px; }
@media (min-width: 901px) and (min-height: 820px) {
  .g-story-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.g-quote {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 20ch;
}
.g-story-photo .g-photo { aspect-ratio: 3 / 2; }
.g-story-text .g-prose { max-width: none; }

/* a tour's photo that links to it: a "View expedition" tag in its corner
   says it's a link, and its name and height go under it */
.g-tour-photo { display: flex; flex-direction: column; gap: 14px; }
.g-tour-frame { position: relative; display: block; }
.g-tour-frame picture { display: block; }
.g-tour-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.g-tour-photo .g-label { transition: color 0.15s ease; }
.g-tour-photo:hover .g-tour-tag { background: var(--ink); color: #fff; }
.g-tour-photo:hover .g-label { color: var(--secondary); }

/* the closing spread: the big question and the links on the left page,
   a tour's photo filling the right one */
.g-close-spread { min-height: min(80svh, 760px); }
.g-close-text { display: flex; flex-direction: column; gap: 28px; min-width: 0; container-type: inline-size; }
/* as big as the left page allows, like the first screen's headline */
.g-close-title { margin-top: 8px; font-size: clamp(56px, 7.4vw, 120px); font-size: 19cqi; }
.g-close-text .hero-actions { margin-top: auto; align-self: flex-start; }
.g-close-photo .g-tour-frame { flex: 1 1 0; min-height: 320px; }
.g-close-photo picture, .g-close-photo .g-photo { height: 100%; }

/* featured cards: the price ends the difficulty and group line */
.g-journey .g-facts .g-price { margin: 0 0 0 auto; }
/* the whole line is capitals, "per person" too */
.g-journey .g-facts .g-per { text-transform: uppercase; letter-spacing: inherit; }
/* on phones it wraps to a line of its own: start it at the left */
@media (max-width: 720px) { .g-journey .g-facts .g-price { margin-left: 0; } }

@media (max-width: 900px) {
  .g-spread, .g-lead { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .g-rule { display: none; }
  .g-quote { font-size: 24px; }
  .g-close-spread { min-height: 0; }
  .g-close-title { font-size: clamp(48px, 15cqi, 96px); }
  .g-close-photo .g-tour-frame { flex: none; min-height: 0; }
  .g-close-photo .g-photo { height: auto; aspect-ratio: 3 / 2; }
}

/* ---------- numbered points (story, why Ecuador) ---------- */

/* two to a row, under the story's text on its right page */
.g-points {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.g-points li { border-top: 1px solid var(--line); padding-top: 16px; }
.g-points .g-title { margin-top: 16px; }
.g-points .g-body { margin-top: 8px; max-width: 40ch; }
@media (max-width: 600px) {
  .g-points { grid-template-columns: 1fr; margin-top: 48px; }
  .g-points .g-title { margin-top: 12px; }
}

/* ---------- where to go: the regions beside the map ----------
   An index of the regions on the left, scrolling past the map on the
   right, which stays in view on tall enough windows (home.js lights up
   the region being read, in both). On phones: the map, then the list. */

.g-where { grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.1fr); column-gap: 40px; margin-top: 32px; }
.g-where-index { min-width: 0; }
.g-where-map { display: flex; flex-direction: column; gap: 16px; align-self: start; }
@media (min-width: 901px) and (min-height: 760px) {
  .g-where-map { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.g-where-map .eq-map { max-width: 100%; }

.g-atlas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.g-atlas > li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.g-atlas .g-index { padding-top: 10px; }
.g-atlas-name {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.15s ease;
}
.g-atlas-name span { font-size: 20px; color: var(--muted); }
.g-atlas-name:hover, .g-atlas > li.is-active .g-atlas-name { color: var(--secondary); }
.g-atlas .g-body { margin-top: 8px; }
/* "Expeditions: Antisana · Cotopaxi …", "Guides: …" */
.g-atlas-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.g-atlas-line a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.g-atlas-line a:hover { color: var(--secondary); text-decoration-color: currentColor; }
.g-atlas-sep { color: var(--muted); }
@media (max-width: 900px) {
  .g-where { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .g-where-map { order: -1; }
  .g-atlas-name { font-size: 28px; }
  .g-atlas-line { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

.g-legend-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--muted);
}
.g-legend-key span { display: inline-flex; align-items: center; gap: 8px; }
.g-legend-key i { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.g-key-plane { fill: #000; flex: none; }
/* a small volcano, like the ones on the map */
.g-key-icon { color: var(--secondary); flex: none; }
.g-key-pin { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
             border-bottom: 9px solid var(--secondary); }


/* 667px keeps the mainland at its original size now the viewBox is wider (646 vs 620) */
.eq-map { display: block; width: 100%; max-width: 667px; height: auto; margin-inline: auto; }
.g-map .eq-map .land { fill: var(--tint); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.g-map .eq-map .inset { fill: none; stroke: var(--muted); stroke-width: 1; opacity: 0.6; stroke-dasharray: 2 4; }
.g-map .eq-map .equator { stroke: var(--muted); stroke-width: 1; opacity: 0.6; stroke-dasharray: 2 4; }
.g-map .eq-map .equator-label,
.g-map .eq-map .city-sub { fill: var(--muted); }
.g-map .eq-map .equator-label,
.g-map .eq-map .city-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
}
.g-map .eq-map .equator-label { letter-spacing: 0.06em; text-transform: uppercase; }
.g-map .eq-map .region { fill: var(--primary); }
.g-map .eq-map .region-num { fill: #fff; text-anchor: middle; font-family: var(--font-mono); font-size: 12px; font-weight: 400; }
.g-map .eq-map .entry { fill: #000; }   /* the airports' planes */
/* the tours: a volcano each, linking to the tour */
.g-map .eq-map .g-pin { color: var(--secondary); transition: color 0.15s ease; }
.g-map .eq-map .g-pin > path { fill: currentColor; stroke: var(--bg); stroke-width: 1.5; }
.g-map .eq-map a.g-pin:hover { color: var(--ink); }
/* the region numbers link to their guides */
.g-map .eq-map .g-region-spot circle { transition: fill 0.2s ease, r 0.2s ease; }
.g-map .eq-map .g-region-spot:hover circle,
.g-map .eq-map .g-region-spot.is-active circle { fill: var(--secondary); }
/* the region being read (home.js) grows a little */
.g-map .eq-map .g-region-spot.is-active circle { r: 16px; }
.g-map .eq-map .city { fill: var(--ink); font-family: var(--font-sans); font-size: 15px; font-weight: 500; }
/* a halo in the page colour keeps labels readable where they cross the coastline */
.g-map .eq-map .city,
.g-map .eq-map .city-sub,
.g-map .eq-map .equator-label {
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* a closing line under a section: what's there, and a link to all of it
   (the link alone sits on the right) */
.g-more {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.g-more > :only-child { margin-left: auto; }

/* ---------- closing call to action ---------- */

.g-cta-title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
@media (max-width: 480px) { .g-cta-title { font-weight: 400; } }
.g-cta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.g-cta-actions { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.g-cta-actions .g-link { padding: 14px 0; }
.g-cta-actions .g-link svg { flex: none; }
.g-cta-whatsapp { display: inline-flex; align-items: center; gap: 8px; }

/* the contact band on the tour pages: a smaller heading, closer to the
   content above and the footer below */
.g-cta-compact { margin-top: 88px; }
.g-cta-compact .g-cta-title { font-size: clamp(36px, 4.5vw, 64px); }
.g-cta-compact .g-cta-row { margin-top: 24px; }
.gallery > .g-cta-compact:last-child { margin-bottom: 72px; }
@media (max-width: 720px) {
  .g-cta-compact { margin-top: 64px; }
  .gallery > .g-cta-compact:last-child { margin-bottom: 48px; }
}

/* ---------- discover: a thin index of links under the call to action ---------- */

.g-discover { margin-top: 72px; }
@media (max-width: 720px) { .g-discover { margin-top: 48px; } }
.g-discover-rows { margin: 20px 0 0; }
.g-discover-rows > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.g-discover-rows dd { margin: 0; }
.g-discover-rows ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.g-discover-rows a { font-size: 15px; line-height: 1.5; }
@media (max-width: 620px) {
  .g-discover-rows > div { grid-template-columns: 1fr; }
  .g-discover-rows ul { gap: 4px 18px; }
}

/* ---------- the Discover page (templates/pages/discover.html) ----------
   A guidebook's index: a search box, a "Start here" row of photos, then
   every link A–Z under its first letter, beside a sticky column with the
   section filter and the letters. The search and filter are discover.js's. */

.atlas-head { padding-bottom: 40px; }
.atlas-head .g-page-title {
  font-size: clamp(42px, 7.4vw, 104px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
}
@media (max-width: 480px) { .atlas-head .g-page-title { font-weight: 400; } }   /* like every page title on phones */
.atlas-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
}
.atlas-search[hidden] { display: none; }
.atlas-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.atlas-search:focus-within { border-color: var(--secondary); }
.atlas-search input::placeholder { color: var(--muted); }

.atlas-start {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 64px;
}
.atlas-start-link { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.atlas-start-link .g-photo { width: 96px; height: 96px; transition: opacity 0.15s ease; }
.atlas-start-link > span { display: grid; gap: 2px; }
.atlas-start-link .g-title { font-size: 17px; transition: color 0.15s ease; }
.atlas-start-link:hover .g-title { color: var(--secondary); }
.atlas-start-link:hover .g-photo { opacity: 0.9; }

.atlas {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.atlas-side {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
  display: grid;
  gap: 32px;
}
.atlas-side [hidden] { display: none; }
.atlas-sections { display: grid; gap: 2px; margin-top: 12px; }
.atlas-sections button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
}
.atlas-sections button:hover { color: var(--ink); }
.atlas-sections button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.atlas-letters { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.atlas-letters a, .atlas-letters span { padding: 4px 0; text-align: center; border-radius: 3px; }
.atlas-letters a { color: var(--ink); }
.atlas-letters a:hover { background: var(--sky); }
.atlas-letters span, .atlas-letters a.is-empty { color: var(--line-strong); pointer-events: none; }

.atlas-main { min-width: 0; }
.atlas-count { margin-bottom: 24px; }
.atlas-letter {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.atlas-count + .atlas-letter,
.atlas-letter.is-first { border-top: 0; padding-top: 0; }
.atlas-letter[hidden] { display: none; }
.atlas-initial { font-size: 40px; font-weight: 300; line-height: 1; color: var(--primary); }
.atlas-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}
.atlas-items li[hidden] { display: none; }
.atlas-item { display: grid; gap: 2px; }
.atlas-name { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); transition: color 0.15s ease; }
.atlas-item:hover .atlas-name { color: var(--secondary); }
.atlas-summary {
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.atlas-empty { padding: 24px 0 48px; }
.atlas-empty[hidden] { display: none; }

@media (max-width: 960px) {
  .atlas-start { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atlas-start > p { grid-column: 1 / -1; }
  .atlas { grid-template-columns: 1fr; gap: 32px; }
  .atlas-side { position: static; }
  .atlas-sections { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .atlas-letters { grid-template-columns: repeat(13, 1fr); }
}
@media (max-width: 720px) {
  .atlas-search { margin-top: 32px; }
  .atlas-search input { font-size: 18px; }
  .atlas-start { grid-template-columns: 1fr; gap: 16px; padding-bottom: 48px; }
  .atlas-start-link { grid-template-columns: 72px minmax(0, 1fr); }
  .atlas-start-link .g-photo { width: 72px; height: 72px; }
  .atlas-items { grid-template-columns: 1fr; }
  .atlas-letter { grid-template-columns: 1fr; gap: 12px; }
  .atlas-letters { grid-template-columns: repeat(9, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-name, .atlas-start-link .g-title, .atlas-start-link .g-photo { transition: none; }
}

/* ---------- articles (the Discover pages, templates/article.html) ----------
   A magazine feature. It opens on a two-page spread like the home page:
   the title page left (the title split at its colon, the summary, the date
   and reading time), the cover right, a hairline between. Then the facts
   at a glance and the chapters. The story is one ~66-character column with
   wide margins: chapter numbers hang in the left margin, notes and tours
   sit in the right one, photos break out to the margins or the window.
   Below 1180px the margins fold into the column. */

/* reading progress: a primary hairline along the menu's bottom edge (app.js) */
.article-progress {
  position: fixed;
  top: calc(var(--nav-h) - 1px);
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* the opening spread */
.article-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.15fr);
  grid-template-rows: minmax(0, 1fr);
  column-gap: 64px;
  min-height: min(100svh, 1040px);
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 40px;
}
.article-spread-text { display: flex; flex-direction: column; min-width: 0; container-type: inline-size; }
.article-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.article-kicker b { font-weight: 400; color: var(--ink); }
.article-title { margin-top: 36px; }
/* The size-N class (scripts/build.py, display_title) fits the words to the
   column: N% of its width. A class, not a style="" attribute, which the
   site's Content-Security-Policy blocks. */
.article-title-head {
  display: block;
  font-size: clamp(48px, 8vw, 150px);
  font-size: var(--size, 23cqi);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-left: -0.06em;
}
.article-title-head.size-8 { --size: 8cqi; }
.article-title-head.size-9 { --size: 9cqi; }
.article-title-head.size-10 { --size: 10cqi; }
.article-title-head.size-11 { --size: 11cqi; }
.article-title-head.size-12 { --size: 12cqi; }
.article-title-head.size-13 { --size: 13cqi; }
.article-title-head.size-14 { --size: 14cqi; }
.article-title-head.size-15 { --size: 15cqi; }
.article-title-head.size-16 { --size: 16cqi; }
.article-title-head.size-17 { --size: 17cqi; }
.article-title-head.size-18 { --size: 18cqi; }
.article-title-head.size-19 { --size: 19cqi; }
.article-title-head.size-20 { --size: 20cqi; }
.article-title-head.size-21 { --size: 21cqi; }
.article-title-head.size-22 { --size: 22cqi; }
.article-title-head.size-23 { --size: 23cqi; }
.article-title-deck {
  display: block;
  max-width: 20ch;
  margin-top: 20px;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.article-stand { margin-top: auto; padding-top: 48px; display: grid; gap: 28px; }
.article-stand .g-lede { max-width: 440px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.article-byline dt { color: var(--muted); }
.article-byline dd { margin: 4px 0 0; color: var(--ink); }
.article-spread-rule { background: var(--line); }
.article-cover { margin: 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.article-cover picture { flex: 1 1 0; min-height: 360px; display: block; }
.article-cover .g-photo { height: 100%; }
.article-cover-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; color: var(--muted); }

/* facts at a glance, then the chapters */
.article-glance { margin-top: 24px; }   /* right under the opening spread */
/* one column per fact, however many there are (each fact takes both rows) */
.article-facts {
  display: grid;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--ink);
}
/* label and value on shared rows, so the values line up when a label wraps */
.article-facts div { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-items: end; padding: 14px 24px 0 0; }
.article-facts dt { align-self: start; }
.article-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.article-facts dt { color: var(--muted); }
.article-facts dd {
  margin: 8px 0 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.article-contents { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 64px; }
.article-facts + .article-contents { margin-top: 48px; }
.article-contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
}
.article-contents li { border-top: 1px solid var(--line); }
.article-contents a { display: flex; gap: 12px; padding: 12px 0 14px; font-size: 15px; line-height: 1.35; }
.article-contents .g-index { padding-top: 2px; }

/* the story: margin | column | margin, on named lines */
.article-story {
  --side: 200px;
  --gap: 72px;
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [left-start] var(--side) [left-end] var(--gap)
    [text-start] minmax(0, 660px) [text-end] var(--gap)
    [right-start] var(--side) [right-end]
    minmax(var(--gutter), 1fr) [full-end];
  margin-top: 120px;
}
.article-story > * { grid-column: text; min-width: 0; }
.article-story > * + * { margin-top: 24px; }
/* a row that also uses the margins: a chapter's opening, text with a note */
.article-row { grid-column: full; display: grid; grid-template-columns: subgrid; align-items: start; }
.article-row > * { grid-column: text; }

.article-story p,
.article-story li { font-size: 18px; line-height: 1.72; color: var(--ink); }
.article-text p + p { margin-top: 22px; }
.article-story p a,
.article-story li a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-story p a:hover,
.article-story li a:hover { color: var(--secondary); }
.article-story p.article-intro { font-size: 23px; line-height: 1.55; letter-spacing: -0.01em; }
.article-intro::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 -0.04em;
  font-size: 4.6em;
  font-weight: 300;
  line-height: 0.8;
  color: var(--primary);
}
.article-end::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-left: 8px;
  background: var(--ink);
}

/* a chapter: a hairline across all three columns, the number in the margin */
.article-story > .article-chapter { margin-top: 128px; }
.article-story > .article-chapter:first-child { margin-top: 0; }
.article-chapter::before { content: ""; grid-column: left-start / right-end; border-top: 1px solid var(--ink); }
.article-number { grid-column: left !important; grid-row: 2; padding-top: 18px; }
.article-number span { display: block; }
.article-number span:first-child { font-size: 64px; font-weight: 300; line-height: 0.9; letter-spacing: -0.04em; color: var(--primary); }
.article-number .g-mono { margin-top: 10px; color: var(--muted); }
.article-chapter h2 {
  grid-row: 2;
  padding-top: 20px;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.article-story > .article-chapter + * { margin-top: 36px; }
.article-story > h3 { margin-top: 56px; font-size: 24px; font-weight: 500; letter-spacing: -0.015em; }
.article-story > h3 + * { margin-top: 14px; }
.article-story h2,
.article-story h3 { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* notes in the right margin (or in the column, on their own) */
.article-note { grid-column: right !important; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.article-note.is-alone { grid-column: text !important; max-width: 360px; }
.article-story .article-note p { font-size: 13px; line-height: 1.5; color: var(--muted); }
.article-note-title { margin: 6px 0 8px; color: var(--ink) !important; font-size: 12px !important; }
.article-note-rows { margin: 10px 0 0; }
.article-note-rows div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.article-note-rows dd { margin: 0; color: var(--ink); white-space: nowrap; text-transform: none; letter-spacing: 0.02em; }
.article-note-rows div:first-child dt { color: var(--ink); }
.article-note-rows div:first-child dd { color: var(--primary); }
.article-tour { display: grid; gap: 10px; color: var(--ink); }
.article-tour .g-photo { aspect-ratio: 4 / 3; height: auto; transition: opacity 0.15s ease; }
.article-tour > span { display: grid; gap: 4px; }
.article-tour strong { font-size: 16px; font-weight: 500; transition: color 0.15s ease; }
.article-tour .g-mono { color: var(--muted); }
.article-tour:hover strong { color: var(--secondary); }
.article-tour:hover .g-photo { opacity: 0.9; }

/* pull quote: across the column and the right margin */
.article-quote { grid-column: text-start / right-end !important; position: relative; margin: 80px 0 24px; padding-top: 28px; }
.article-quote::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; border-top: 2px solid var(--primary); }
.article-story .article-quote p { font-size: clamp(28px, 3.2vw, 42px); font-weight: 300; line-height: 1.18; letter-spacing: -0.025em; }
.article-quote cite { display: block; margin-top: 20px; font-style: normal; color: var(--muted); }

/* lists: label | text rows (an itinerary), or numbered */
.article-labels,
.article-numbered { list-style: none; margin-left: 0; margin-right: 0; padding: 0; }
.article-labels { border-top: 1px solid var(--ink); }
.article-labels li { display: grid; grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.article-label { font-weight: 500; }
.article-labels.is-mono li { grid-template-columns: 120px minmax(0, 1fr); }
.article-labels.is-mono .article-label {
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-numbered { counter-reset: item; }
.article-numbered li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.article-numbered li:last-child { border-bottom: 1px solid var(--line); }
.article-numbered li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  flex: none;
  min-width: 20px;
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.article-numbered.is-columns { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.article-numbered.is-columns li { border-bottom: 0; }
.article-story .article-numbered.is-columns li { font-size: 16px; line-height: 1.45; }

/* figures: the column, margin to margin ("wide"), or the window ("full") */
.article-figure { margin: 0; }
.article-story > .article-figure { margin-top: 72px; }
.article-story > .article-figure + *,
.article-story > .article-quote + * { margin-top: 72px; }
.article-figure .g-photo { height: auto; }
.article-caption { display: block; padding-top: 12px; color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
.article-figure.is-wide { grid-column: left-start / right-end; }
.article-figure.is-full { grid-column: full; display: grid; grid-template-columns: subgrid; }
.article-figure.is-full picture { grid-column: full; }
.article-figure.is-full .g-photo { height: min(82vh, 860px); border-radius: 0; }
.article-figure.is-full .article-caption { grid-column: right; }
.article-photos { grid-column: left-start / right-end; display: grid; gap: 16px; align-items: start; }
.article-photos.is-2 { grid-template-columns: 7fr 5fr; }
.article-photos.is-2 .g-photo { aspect-ratio: 4 / 5; }
.article-photos.is-2 picture { grid-row: 1; }
.article-photos.is-2 picture:nth-of-type(2) { grid-column: 2; margin-top: 140px; }
.article-photos.is-2 .article-caption { grid-column: 2; grid-row: 1; align-self: end; padding-top: 0; }   /* level with the large photo's foot */
.article-photos.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-photos.is-3 .g-photo { aspect-ratio: 4 / 5; }
.article-photos.is-3 .article-caption { grid-column: 1 / -1; padding-top: 0; }

/* after the story: the tour, then "Keep reading" */
.article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.article-cta h2 { margin-top: 18px; font-size: clamp(40px, 5vw, 72px); font-weight: 300; line-height: 0.98; letter-spacing: -0.04em; }
.article-cta-text { max-width: 440px; margin-top: 20px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.article-cta .btn { margin-top: 32px; }
.article-cta .g-photo { aspect-ratio: 16 / 10; height: auto; }
.article-more {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.article-more a { display: grid; gap: 12px; }
.article-more .g-photo { aspect-ratio: 4 / 3; height: auto; transition: opacity 0.15s ease; }
.article-more .g-mono { margin-top: 4px; }
.article-more .g-title { transition: color 0.15s ease; }
.article-more a:hover .g-title { color: var(--secondary); }
.article-more a:hover .g-photo { opacity: 0.9; }

/* narrower windows: the margins fold into the column */
@media (max-width: 1180px) {
  .article-story {
    grid-template-columns:
      [full-start] var(--gutter)
      [left-start text-start right-start] minmax(0, 1fr)
      [left-end text-end right-end] var(--gutter) [full-end];
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  .article-figure.is-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .article-figure.is-full .article-caption { padding-left: var(--gutter); padding-right: var(--gutter); }
  .article-number { grid-row: 2; }
  .article-number span { display: inline; }
  .article-number span:first-child { font-size: 40px; }
  .article-number .g-mono { margin-left: 12px; }
  .article-chapter h2 { grid-row: 3; padding-top: 10px; }
  .article-note { grid-column: text !important; margin-top: 28px; }
  .article-note-rows { columns: 2; column-gap: 24px; }
  .article-note-rows div { break-inside: avoid; }
  .article-tour { grid-template-columns: 140px minmax(0, 1fr); align-items: center; }
  .article-photos.is-2 picture:nth-of-type(2) { margin-top: 64px; }
}
@media (max-width: 900px) {
  .article-spread {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(260px, 1fr);
    row-gap: 28px;
    min-height: 0;
  }
  .article-spread-rule { display: none; }
  .article-cover picture { min-height: 260px; }
  .article-glance { margin-top: 16px; }
  /* the facts (articles and tours) stay on one row, a size smaller */
  .article-facts div { padding: 12px 12px 0 0; }
  .article-facts div + div { padding-left: 12px; }
  .article-facts dd,
  .tour-facts.article-facts dd { font-size: 20px; }
  .article-contents { grid-template-columns: minmax(0, 1fr); }
  .article-contents ol { grid-template-columns: 1fr 1fr; }
  .article-story { margin-top: 88px; }
  .article-cta { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article-more { grid-template-columns: minmax(0, 1fr); }
}
/* phones: the facts three to a row, without the lines between them, each
   only as tall as its words */
@media (max-width: 600px) {
  .article-facts { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); row-gap: 16px; }
  .article-facts div,
  .article-facts div + div { display: block; grid-row: auto; padding: 12px 8px 0 0; border: 0; }
  .article-facts dd,
  .tour-facts.article-facts dd { font-size: 19px; line-height: 1.15; }
}
@media (max-width: 560px) {
  .article-title { margin-top: 28px; }
  .article-story p,
  .article-story li { font-size: 17px; }
  .article-story p.article-intro { font-size: 20px; }
  .article-story > .article-chapter { margin-top: 88px; }
  .article-chapter h2 { font-size: 34px; }
  .article-contents ol,
  .article-numbered.is-columns { grid-template-columns: minmax(0, 1fr); }
  .article-labels li,
  .article-labels.is-mono li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .article-photos { gap: 8px; }
  .article-photos.is-2 { grid-template-columns: 1fr 1fr; }
  .article-photos.is-2 picture:nth-of-type(2) { margin-top: 48px; }
  .article-photos.is-2 .article-caption { grid-column: 1 / -1; grid-row: 2; padding-top: 4px; }
  .article-figure.is-full .g-photo { height: 62vh; }
  .article-note-rows { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .article-tour .g-photo, .article-tour strong, .article-more .g-photo, .article-more .g-title { transition: none; }
}

/* ---------- inner pages (safety, operators, contact, cart, booking) ---------- */

.g-page-head { padding-top: calc(var(--nav-h) + 72px); }
.g-page-title {
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 16px 0 0 -0.04em;
}
@media (max-width: 480px) { .g-page-title { font-weight: 400; } }
.g-page-head .g-lede { margin-top: 32px; max-width: 480px; }
@media (max-width: 720px) {
  .g-page-head { padding-top: calc(var(--nav-h) + 40px); }
  .g-page-head .g-lede { margin-top: 24px; }
}

/* numbered rows: index, title, text (FAQ, terms, privacy) */
.g-rows { list-style: none; margin: 0; padding: 0; }
.g-rows li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 18px 0;
}
.g-rows li + li { border-top: 1px solid var(--line); }
.g-rows li:first-child { padding-top: 8px; }
.g-head + .g-rows { margin-top: 40px; }
.g-rows .g-body { font-size: 16px; max-width: 56ch; }
@media (max-width: 860px) {
  .g-rows li { grid-template-columns: 48px minmax(0, 1fr); }
  .g-rows .g-body { grid-column: 2; }
}

/* the numbered legend with larger items (operator requirements) */
.g-legend-lg { margin-top: 0; }
.g-legend li { align-items: baseline; }
.g-legend-lg li { padding: 18px 0; }
.g-legend-lg li:first-child { border-top: 0; padding-top: 0; }

.g-text { margin-top: 32px; max-width: 560px; font-size: 16px; line-height: 1.65; color: var(--text-muted); }
.g-text-cta { margin-top: 32px; }

/* the column beside a form: a short note, an email address, a help link */
.g-aside { display: grid; gap: 12px; align-content: start; justify-items: start; }
.g-aside .g-title { overflow-wrap: anywhere; }
.g-aside .g-aside-next { margin-top: 20px; }   /* a second way to reach us, under the first */

