/* =====================================================================
   Mexico City Private Driver — "Editorial Mexico Premium"
   privatedrivermexicocity.com
   ---------------------------------------------------------------------
   Art direction: travel-magazine editorial with a warm, terracotta
   Mexican palette. Serif display headlines (system serif stack) carry the
   distinctive, non-AI character; refined system sans for body/UI.
   ---------------------------------------------------------------------
   Hard constraints (low cost of retrieval / SEO Koray):
     - No @import, no web fonts, no CDNs, no libraries.
     - No heavy blur / glassmorphism.
     - Everything self-contained; SVG textures/icons inline as data-URIs.
   ---------------------------------------------------------------------
   Styles the REAL classes used across all 15 pages (they diverge), plus
   the runtime markup site.js injects (quoter__*, veh-option__*, lang-*).
   Accessible: AA contrast in light + dark, visible :focus-visible, honors
   prefers-reduced-motion. Full doc: /design-system/ART-DIRECTION.md
   ===================================================================== */

/* ------------------------------------------------------------------ *
 * 1. DESIGN TOKENS
 * ------------------------------------------------------------------ */
:root {
  /* --- Surfaces & ink (light) --- */
  --paper:      #FAF7F1;   /* warm paper page background */
  --surface:    #FFFFFF;   /* cards / raised surfaces */
  --surface-2:  #F4EEE4;   /* muted fill (price readouts, wells) */
  --ink:        #1A1613;   /* near-black warm — primary text */
  --ink-2:      #5A5148;   /* secondary text (AA on paper) */
  --ink-3:      #6E6459;   /* muted labels — AA (4.5:1) on --paper at 13px */
  --line:       #E7E0D5;   /* warm hairline borders */
  --line-2:     #D8CFC0;   /* stronger control borders */

  /* --- Brand accents --- */
  --clay:       #A94A22;   /* terracotta — AA on both --paper (5.32) and --clay-tint (4.65) */
  --clay-deep:  #8F3D1C;   /* hover / pressed clay */
  --clay-tint:  #F3E6DC;   /* soft section wash */
  --gold:       #C08A2D;   /* secondary accent — ratings, fine detail */
  --gold-deep:  #8A6119;   /* AA (4.5:1) on --paper */

  /* --- Booking / pay (GREEN, reserved for reserve+pay actions) --- */
  --book:       #1C6B4A;   /* deep emerald — text/ok accent + CTA fill */
  --book-deep:  #155238;   /* CTA hover */
  --ok:         #1C6B4A;
  --danger:     #B23B2E;

  /* CTA fill stays this deep emerald in both themes so white text is AA */
  /* Brightened from #1C6B4A: that green measured 3.04:1 against the near-black
     header, so the main CTA sat back instead of coming forward. #177A52 lifts
     the pop to 3.68:1 and still carries white at 5.33:1 — a real AA margin,
     unlike #12855A (4.64) whose tenth of a point antialiasing would eat. */
  --cta:        #177A52;
  --cta-deep:   #0F5C3E;
  --on-cta:     #FFFFFF;

  /* --- Inverted surface (footer): FIXED in both themes ---
     The footer is dark by art direction, not by theme. Using --ink/--paper
     here flipped it to a bright cream slab in dark mode, so it owns tokens
     that never invert (same trick as --cta above). --clay-on-ink is the
     accent that stays AA against that permanently dark surface. */
  --footer-bg:   #1A1613;
  --footer-ink:  #FAF7F1;
  --clay-on-ink: #E0895F;

  /* --- Night cover (home hero): FIXED in both themes ---
     Second inverted surface, same contract as --footer-* above: the home
     hero is dark because a photograph sits under it, not because the OS
     asked for dark mode. So it owns tokens that are byte-identical in
     :root and in the dark block — the scrim is measured ONCE and the
     ratios come out the same in both themes.

     --night-2 is deliberately 1.23:1 lighter than --night (measured, not
     eyeballed). At the 1.10:1 first tried, the quoter read as a hole cut
     in the photo instead of a plate resting on it; the panel needs a real
     luminance step plus its hairline and shadow to sit above the image.
     Every ink below clears 6:1 on --night-2, so text stays AA even where
     the photograph is at its brightest under the scrim. */
  --night:        #0E0B09;   /* cover base — the black the photo fades into */
  --night-2:      #28201A;   /* elevated plate: the quoter */
  --night-3:      #342A22;   /* wells inside the plate (inputs) */
  --night-ink:    #FAF7F1;   /* 16.5:1 on --night-2 */
  --night-ink-2:  #D6CBBB;   /* 10.0:1 — deck / body on the cover */
  --night-ink-3:  #B5A996;   /*  6.9:1 — labels, units, fine print */
  --night-line:   rgba(250, 247, 241, .14);
  --night-line-2: rgba(250, 247, 241, .26);
  --gold-on-ink:  #D9AE5E;   /*  7.8:1 on --night-2 — rules, eyebrows */
  --night-rgb:    14, 11, 9; /* --night as channels, for the scrim gradients */

  --ring:       #B4532A;   /* focus ring color */

  /* --- Elevation (warm-tinted shadows) --- */
  --shadow-sm:  0 1px 2px rgba(26,22,19,.05);
  --shadow-md:  0 6px 22px -6px rgba(26,22,19,.14), 0 2px 6px -2px rgba(26,22,19,.08);
  --shadow-lg:  0 22px 48px -16px rgba(26,22,19,.24), 0 6px 16px -8px rgba(26,22,19,.12);

  /* --- Geometry --- */
  --maxw:       1120px;
  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  20px;
  --radius-pill:999px;

  /* --- Spacing rhythm (4/8 base; section tiers 16/24/40/64/96) --- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --gutter:  clamp(16px, 4vw, 28px);

  /* --- Type --- */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino,
                "Book Antiqua", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI",
                "Helvetica Neue", Arial, sans-serif;

  /* Modular scale: 13 / 15 / 17 / 20 / 26 / 34 / 46 / 62 */
  --fs-xs:  0.7647rem;   /* 13 */
  --fs-sm:  0.8824rem;   /* 15 */
  --fs-base:1rem;        /* 17 */
  --fs-md:  1.1765rem;   /* 20 */
  --fs-lg:  1.5294rem;   /* 26 */
  --fs-xl:  2rem;        /* 34 */
  --fs-2xl: 2.7059rem;   /* 46 */
  --fs-3xl: 3.6471rem;   /* 62 */
}

/* --- Dark theme: desaturated tonal variants (auto via OS preference) --- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #171310;
    --surface:    #211B16;
    --surface-2:  #2A2019;
    --ink:        #F2EBE0;
    --ink-2:      #B9AE9E;
    --ink-3:      #A2988A;
    --line:       #342B22;
    --line-2:     #443A2E;

    --clay:       #E0895F;
    --clay-deep:  #EFA985;
    --clay-tint:  #2A211A;
    --gold:       #D9AE5E;
    --gold-deep:  #E7C079;

    --book:       #3FA277;   /* lighter emerald for text/ok on dark surfaces */
    --book-deep:  #57B58C;
    --ok:         #3FA277;
    --danger:     #E58A7C;

    /* CTA fill is byte-identical to :root on purpose — the button must read the
       same on both themes, and white stays AA (5.33:1) on this green. */
    --cta:        #177A52;
    --cta-deep:   #0F5C3E;
    --on-cta:     #FFFFFF;

    /* Footer surface does NOT invert — same values as :root on purpose */
    --footer-bg:   #1A1613;
    --footer-ink:  #FAF7F1;
    --clay-on-ink: #E0895F;

    /* Night cover does NOT invert either — identical to :root on purpose.
       This is what makes the hero's measured contrast valid in both
       themes: one scrim, one set of ratios, no second audit. */
    --night:        #0E0B09;
    --night-2:      #28201A;
    --night-3:      #342A22;
    --night-ink:    #FAF7F1;
    --night-ink-2:  #D6CBBB;
    --night-ink-3:  #B5A996;
    --night-line:   rgba(250, 247, 241, .14);
    --night-line-2: rgba(250, 247, 241, .26);
    --gold-on-ink:  #D9AE5E;
    --night-rgb:    14, 11, 9;

    --ring:       #E0895F;

    --shadow-sm:  0 1px 2px rgba(0,0,0,.5);
    --shadow-md:  0 8px 24px -8px rgba(0,0,0,.6), 0 2px 6px -2px rgba(0,0,0,.5);
    --shadow-lg:  0 24px 52px -18px rgba(0,0,0,.7), 0 8px 18px -10px rgba(0,0,0,.55);
  }
}

/* ------------------------------------------------------------------ *
 * 2. BASE / RESET
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 17px;                 /* base of the modular scale */
  scroll-padding-top: 84px;        /* sticky header offset for #anchors */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- Serif display headings = the anti-AI signature --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 1.1rem + 4.6vw, var(--fs-3xl));
  line-height: 1.05;
  letter-spacing: -0.021em;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.55rem, 1.05rem + 2.1vw, var(--fs-xl));
  line-height: 1.14;
  letter-spacing: -0.015em;
}
h3 {
  font-size: clamp(1.2rem, 1.02rem + 0.8vw, var(--fs-md));
  line-height: 1.22;
  letter-spacing: -0.008em;
}
h4 { font-size: 1.06rem; line-height: 1.3; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--clay) 45%, transparent);
  transition: color .16s ease, text-decoration-color .16s ease;
}
a:hover {
  color: var(--clay-deep);
  text-decoration-color: currentColor;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin: 0.3rem 0; }

strong, b { font-weight: 700; color: inherit; }
small { font-size: var(--fs-sm); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-4) 0; }

/* Tabular figures everywhere numbers must align */
.price-table, .quoter, [class*="price"], [class*="total"], time, td, th {
  font-variant-numeric: tabular-nums;
}

/* Visible, consistent keyboard focus (both themes) */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Screen-reader-only helpers (both spellings used in the HTML) */
.sr-only, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link — hidden until focused */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ------------------------------------------------------------------ *
 * 3. LAYOUT
 * ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 6vw, 76px);
}
.section + .section { padding-top: clamp(8px, 2vw, 24px); }

/* Optional section washes for editorial rhythm */
.section--soft, .supplementary { background: var(--surface); }
.section--tint { background: var(--clay-tint); }

/* Constrain long prose columns inside otherwise-full sections */
.section > .container > p,
.section > .container > h2,
.section > .container > h3 { max-width: 68ch; }

/* ------------------------------------------------------------------ *
 * 4. HEADER + NAV
 * ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
          backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

/* Row layout for whichever element directly holds brand + nav */
.site-header > .container,
.site-header > .header-inner,
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  min-height: 66px;
}
/* When brand/nav are direct children of <header> (no wrapper) → header is the row */
.site-header:not(:has(> .container)):not(:has(> .header-inner)) {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  min-height: 66px;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}

/* Brand wordmark */
.brand, .nf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.brand:hover, .nf-brand:hover { text-decoration: none; color: var(--ink); }
.brand-icon, .brand svg, .nf-brand svg {
  width: 34px; height: auto; flex: 0 0 auto;
  color: var(--clay);
}
.brand-text, .nf-brand span { font-family: var(--font-serif); }
.brand-accent, .brand-mark, .nf-accent, .footer-mark { color: var(--clay); }

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}
.nav a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 1px;
  white-space: nowrap;
}
.nav a:not(.btn):not(.btn-book)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}
.nav a:not(.btn):not(.btn-book):hover { color: var(--ink); }
.nav a:not(.btn):not(.btn-book):hover::after,
.nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
/* .nav a (0,1,1) outranked .btn-book (0,1,0) and repainted the CTA label
   with --ink-2 over the green fill → 1.20:1. Specificity restored here. */
.nav .btn { margin-left: 4px; color: var(--on-cta); font-weight: 600; }
.nav .btn-book { margin-left: 4px; color: var(--on-cta); font-weight: 700; }

/* Hamburger toggle (3 spans → X, pure CSS) */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Fallback hamburger for markup that ships an empty toggle */
.nav-toggle:not(:has(span))::before {
  content: "";
  width: 22px; height: 2px; background: currentColor;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

/* Mobile: collapse nav into a dropdown anchored to the sticky header */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 6px 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 13px max(var(--gutter), calc((100% - var(--maxw)) / 2));
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a:not(.btn):not(.btn-book)::after { display: none; }
  .nav a:last-child { border-bottom: 0; }
  .nav .btn, .nav .btn-book {
    margin: 10px max(var(--gutter), calc((100% - var(--maxw)) / 2));
    justify-content: center;
  }
}

/* ------------------------------------------------------------------ *
 * 5. BUTTONS
 * ------------------------------------------------------------------ */
.btn, .btn-book, .btn-secondary, .nf-btn, .hero-cta > a, .cta-block .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.btn:active, .btn-book:active, .btn-secondary:active, .nf-btn:active {
  transform: scale(0.98);
}

/* Primary = terracotta (navigation / general CTAs) */
.btn, .nf-btn {
  background: var(--clay);
  color: #fff;
  border-color: var(--clay);
}
.btn:hover, .nf-btn:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  color: #fff;
  text-decoration: none;
}

/* Secondary = ink outline */
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

/* BOOK / PAY = deep emerald — reserved strictly for reserve+pay actions */
.btn-book {
  /* Top-lit gradient: the LIGHTEST stop is --cta itself, so the label never
     drops below 5.33:1 no matter where it sits. The darker foot and the inset
     hairline give the button an edge instead of leaving it a flat rectangle. */
  background: linear-gradient(180deg, var(--cta) 0%, var(--cta-deep) 100%);
  border-color: color-mix(in srgb, var(--cta) 70%, #000000);
  color: var(--on-cta);
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow:
    0 8px 20px -6px color-mix(in srgb, var(--cta) 70%, transparent),
    0 2px 5px -2px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-book:hover {
  /* the lift comes from raising the FOOT of the gradient, never the lit top
     edge — so it reads brighter without costing a point of label contrast */
  background: linear-gradient(180deg, var(--cta) 0%, #126846 100%);
  border-color: color-mix(in srgb, var(--cta) 85%, #000000);
  color: var(--on-cta);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px -8px color-mix(in srgb, var(--cta) 85%, transparent),
    0 3px 8px -3px rgba(0,0,0,.50),
    inset 0 1px 0 rgba(255,255,255,.26);
}
.btn-book:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    0 3px 10px -4px color-mix(in srgb, var(--cta) 70%, transparent),
    inset 0 2px 4px rgba(0,0,0,.28);
}
.btn-book:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cta) 55%, #FFFFFF);
  outline-offset: 3px;
}
/* An ARROW, not a checkmark. A tick reads "done"; this button's job is "go". */
.btn-book::after {
  content: "";
  width: 16px; height: 16px; flex: 0 0 auto;
  background: currentColor;
  transition: transform .18s ease;
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.6 4.6 20 12l-7.4 7.4-1.45-1.45L16.1 13H4v-2h12.1l-4.95-4.95z'/%3E%3C/svg%3E");
          mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.6 4.6 20 12l-7.4 7.4-1.45-1.45L16.1 13H4v-2h12.1l-4.95-4.95z'/%3E%3C/svg%3E");
}
.btn-book:hover::after,
.btn-book:focus-visible::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .btn-book, .btn-book::after { transition: none; }
  .btn-book:hover { transform: none; }
}

.btn-block, .btn--block { width: 100%; }
.btn--lg { padding: 15px 28px; min-height: 52px; font-size: 1.05rem; }

/* ------------------------------------------------------------------ *
 * 6. HERO  (light editorial band; hosts the quoter LCP)
 * ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% -20%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 55%),
    var(--clay-tint);
  border-bottom: 1px solid var(--line);
  /* El cotizador es el center-piece y el LCP: en portátiles de 800–900px de
     alto no cabía entero por encima del pliegue (medido: 591px de alto contra
     un hero que empezaba en 400px). Se recorta el aire vertical del hero en
     pantallas cortas y se mantiene el generoso en las altas. */
  padding-block: clamp(22px, 4vw, 68px);
  overflow: hidden;
}
@media (max-height: 920px) and (min-width: 900px) {
  .hero { padding-block: clamp(18px, 2.2vw, 34px); }
  .hero h1 { margin-bottom: 10px; }
}

/* Subtle topographic contour texture (self-contained SVG) */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'%3E%3Cg fill='none' stroke='%23B4532A' stroke-width='1'%3E%3Cpath d='M-20 30 Q 60 6 120 30 T 260 30'/%3E%3Cpath d='M-20 62 Q 60 38 120 62 T 260 62'/%3E%3Cpath d='M-20 94 Q 60 70 120 94 T 260 94'/%3E%3Cpath d='M-20 126 Q 60 102 120 126 T 260 126'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 480px auto;
  opacity: .06;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) { .hero::before { opacity: .09; } }

/* Two-column magazine hero when copy + quoter/photo sit together */
.hero-inner { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 920px) {
  .hero-inner:has(.quoter),
  .hero-inner:has(.hero-photo) {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    align-items: center;
  }
}

.hero h1 { margin-bottom: 0.35em; }
.hero .year { color: var(--ink-3); font-weight: 400; }
.hero-eyebrow, .hero .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}
.tagline, .hero-tagline, .hero-sub, .hero-answer, .hero .lede, .hero-copy > p {
  font-family: var(--font-sans);
  color: var(--ink-2);
  font-size: clamp(1.05rem, 0.98rem + 0.6vw, 1.24rem);
  line-height: 1.5;
  max-width: 48ch;
}
.tagline, .hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clay-deep);
}
.dateline, .page-meta, .byline {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-top: 0.4rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Container-less heroes (airport, is-it-safe): gutter + center direct children */
.hero > :where(h1, h2, p, .hero-cta, .city-spots, .trust-badges, .quoter, .callout, .table-wrap, .price-table, .btn, .btn-book) {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* ------------------------------------------------------------------ *
 * 6B. NIGHT COVER  —  the home hero
 *     ---------------------------------------------------------------
 *     A travel-magazine cover, not a service banner: the airport-curb
 *     photograph runs full bleed, "Mexico City" is set at poster scale
 *     in the same Iowan Old Style the rest of the site uses, and the
 *     quoter sits on top as an elevated plate. The drama is scale,
 *     weight, tracking and negative space — no web font is loaded, so
 *     this costs zero extra requests.
 *
 *     Reading the photograph decided the layout. Its brightest region
 *     by far is the lit terminal glass on the LEFT; its darkest, calmest
 *     region is the wet asphalt along the BOTTOM. So on desktop the
 *     headline is bottom-aligned over the asphalt and the terminal glow
 *     is left visible ABOVE it. That is why the scrim here peaks at .94
 *     only in the bottom band and drops to .10 across the middle: the
 *     SUV, the open tailgate and the loaded suitcases — the moment the
 *     business actually sells — stay legible instead of being flattened
 *     under a uniform 50% wash.
 *
 *     Surface contract: --night-* are FIXED in both themes (see §1), so
 *     everything below is measured once and holds in light and dark.
 * ------------------------------------------------------------------ */
.hero--night {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
  border-bottom: 0;
  padding-block: 0;

  /* TOKEN REMAP — the thing that makes an inverted surface safe.
     --ink-3, --line, --clay & co. DO flip with the theme. On a surface
     that never flips they would resolve to paper-mode values in light
     mode: .quoter__price-sub landed at #6E6459 over the dark plate,
     3.27:1, measured. That is the footer bug of ART-DIRECTION §2 all
     over again on a new surface. Remapping inside this scope immunises
     every descendant, including the markup site.js injects at runtime
     and any markup it may inject in future.
     --cta/--cta-deep/--on-cta are deliberately NOT remapped: the book
     button stays green (rule of gold, §1). */
  --ink:       var(--night-ink);
  --ink-2:     var(--night-ink-2);
  --ink-3:     var(--night-ink-3);
  --line:      var(--night-line);
  --line-2:    var(--night-line-2);
  --paper:     var(--night);
  --surface:   var(--night-2);
  --surface-2: var(--night-3);
  --clay:      var(--clay-on-ink);
  --clay-deep: #EFA985;
  --clay-tint: rgba(224, 137, 95, .14);
  --gold:      var(--gold-on-ink);
  --gold-deep: var(--gold-on-ink);
  --book:      var(--gold-on-ink);   /* reassurance ticks go gold, not green */
  --ok:        var(--gold-on-ink);
  --ring:      var(--gold-on-ink);
}
/* The contour texture belongs to the paper hero. Here the photo is the texture. */
.hero--night::before { content: none; }

/* The seam. Night ends against warm paper on a gold-to-clay filet — the
   hard cut is the gesture, so it gets a drawn edge rather than a fade. */
.hero--night::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  z-index: 4;
  background: linear-gradient(90deg,
    var(--clay-on-ink) 0%,
    var(--gold-on-ink) 38%,
    rgba(217, 174, 94, .35) 66%,
    transparent 94%);
}

/* --- The photograph (LCP) ------------------------------------------ */
.hero-media { position: relative; z-index: 0; margin: 0; background: var(--night); }
.hero-media img {
  display: block;
  width: 100%;
  height: clamp(232px, 58vw, 310px);
  object-fit: cover;
  object-position: 52% 42%;
}
.hero-scrim { position: absolute; inset: 0; display: block; pointer-events: none; }

/* Mobile: the photo is a real band you can actually read — terminal,
   SUV, suitcases, trolley — and only its bottom third is darkened, where
   the kicker and the headline ride onto it. */
/* The stops are placed against MEASURED positions, not by eye: the gold
   kicker lands at ~60% of the band's height and gold at 13px is the most
   expensive ink on the page (it needs the backdrop under 0.071 relative
   luminance), while the 51px white headline below it needs barely a
   third of that. Hence the steep step between 46% and 68%: everything
   above it stays photograph — terminal, SUV, tailgate, people, trolley —
   and only the strip the small type actually occupies goes dark. */
.hero-scrim {
  background: linear-gradient(to bottom,
    rgba(var(--night-rgb), .48) 0%,
    rgba(var(--night-rgb), .12) 16%,
    rgba(var(--night-rgb), .24) 34%,
    rgba(var(--night-rgb), .56) 46%,
    rgba(var(--night-rgb), .86) 58%,
    rgba(var(--night-rgb), .95) 68%,
    rgba(var(--night-rgb), .99) 84%,
    var(--night) 100%);
}

@media (min-width: 900px) {
  .hero--night { padding-block: clamp(26px, 3vw, 54px) clamp(30px, 3.4vw, 60px); }
  .hero-media { position: absolute; inset: 0; z-index: 0; }
  .hero-media img { width: 100%; height: 100%; object-position: 54% 44%; }

  /* Two measured layers, and the split is the whole point: this is not
     an overlay set to "50% and hope".

     HORIZONTAL carries the legibility. The lit terminal glass is by far
     the brightest thing in frame and it lives in the left third, exactly
     under the headline — measured, the gold kicker came out at 3.74:1
     there, a real AA failure. So the left band is taken to .84 and eases
     to .14 by the middle. That middle window is where the SUV, the open
     tailgate and the loaded suitcases sit, and they stay at near-full
     strength: the one image that proves the service is not flattened to
     pay for the type.

     VERTICAL only seats the frame — a touch at the top for the sky, a
     stronger foot at the bottom so the photograph dies into the seam
     instead of stopping at it. */
  .hero-scrim {
    background:
      linear-gradient(99deg,
        rgba(var(--night-rgb), .93) 0%,
        rgba(var(--night-rgb), .91) 34%,
        rgba(var(--night-rgb), .52) 41%,
        rgba(var(--night-rgb), .14) 47%,
        rgba(var(--night-rgb), .08) 60%,
        rgba(var(--night-rgb), .16) 72%,
        rgba(var(--night-rgb), .34) 86%,
        rgba(var(--night-rgb), .54) 100%),
      linear-gradient(to top,
        rgba(var(--night-rgb), .66) 0%,
        rgba(var(--night-rgb), .24) 14%,
        rgba(var(--night-rgb), .04) 36%,
        rgba(var(--night-rgb), .03) 66%,
        rgba(var(--night-rgb), .30) 100%);
  }
}

/* --- Grid ----------------------------------------------------------- */
.hero--night > .container { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: clamp(24px, 3.4vw, 38px); }

@media (max-width: 899px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    /* The headline rides the bottom third of the photo band. */
    margin-top: clamp(-104px, -25vw, -78px);
    padding-bottom: clamp(30px, 6vw, 46px);
    gap: 18px;
  }
  /* PHONE FOLD BUDGET. Measured on a 390x844 iPhone: with the rhythm the
     desktop uses, the live $160 landed at y868 — 24px under the fold, so
     the one number the visitor came for was invisible without scrolling.
     These are not arbitrary tightenings; each line below was costed
     against that measurement (band -36px, overlap -16, grid gap -6,
     rule -9, plate gaps -10) to bring the figure fully above it. */
  .hero-rule { margin: 12px 0 10px; }
  .hero--night .quoter { padding: 16px; }
  .hero--night .quoter__form, .hero--night .quoter-static { gap: 12px; }
  .hero--night .quoter__price { padding-top: 11px; }
  /* FOLD ORDER (mobile). The lead paragraph is six lines of body copy —
     131px measured — sitting between the headline and the money. Leaving
     it there pushed the green button 372px below the fold on a 390x844
     phone, which is "Heavy text" reintroduced on the one device this
     audience actually books from. The paragraph is not deleted, it is
     re-ordered below the plate: the citable first sentence still renders
     in the same DOM position for crawlers and LLMs, it simply is not the
     thing standing between a visitor and the price. */
  .hero-column   { display: contents; }
  .hero-kicker   { order: 1; }
  .hero-title    { order: 2; }
  .hero-rule     { order: 3; }
  .hero-panel    { order: 4; }
  .hero-lead     { order: 5; margin-top: clamp(20px, 3.6vw, 28px); }
  .hero-marks    { order: 6; }
  .hero--night .city-spots { order: 7; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(348px, 392px);
    column-gap: clamp(30px, 3.6vw, 60px);
    align-items: center;
  }
  /* THE COLUMN IS CAPPED, and the cap is a contrast decision, not a
     taste one. Everything in it must sit inside the washed left band, so
     the band can stay narrow and the photograph can keep its subject.
     Left unbounded, the column ran to 780px (54% of a 1440 viewport) and
     dragged the 13px gold kicker, the trust marks and the language label
     out over the lit terminal glass — measured at 2.6-3.7:1, real AA
     failures. Capping the measure is what let the scrim release the SUV,
     the open tailgate and the suitcases at ~88% of full strength instead
     of flattening them to buy legibility. */
  .hero-column { grid-column: 1; max-width: 452px; }
  .hero-panel  { grid-column: 2; }
  .hero--night .hero-lead { max-width: 36ch; }

  /* HEIGHT IS AN ART-DIRECTION CONTROL HERE, not an afterthought. The
     photograph is 1600x893 (1.79:1). Let the hero grow to 1075px, as it
     did while the language pills were stacked under the plate, and
     `cover` has to scale a 1.79 image into a 1.34 box — the frame zooms
     ~34% and all that survives is a close-up of a tailgate: no terminal,
     no trolley, no context, i.e. the photograph stops doing the job it
     was chosen for. Holding the hero near the image's own ratio keeps
     the crop close to nil and the whole scene readable. */
  .hero--night { max-height: none; }
}

/* --- Display typography --------------------------------------------
   One family, two extremes: a 13px overline tracked to +.26em against a
   ~112px word tracked to -.052em. That 9x jump inside a single <h1> is
   the whole gesture, and it is the move a generic template never makes.
   ------------------------------------------------------------------ */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(14px, 1.8vw, 22px);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-on-ink);
}
.hero-kicker::before {
  content: "";
  width: clamp(24px, 4vw, 50px);
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold-on-ink);
}

.hero--night .hero-title {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--night-ink);
  text-wrap: initial;
}
.ht-lead {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--night-ink-2);
  margin-bottom: clamp(8px, 1.1vw, 13px);
}
.ht-city {
  display: block;
  font-size: clamp(3rem, 12.4vw, 4.4rem);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.052em;
  color: var(--night-ink);
  text-indent: -.02em;        /* optical: kills the capital M's sidebearing */
}
/* Sized to FILL the capped column and stop there. At 7.6vw the word ran
   to 563px and sprawled across the middle of the frame, which is where
   the vehicle and the luggage are; at 5.4vw it measures ~476px, fills
   its 500px measure edge to edge — that tension against the cap is half
   the effect — and leaves the subject alone. */
@media (min-width: 900px) { .ht-city { font-size: clamp(3.5rem, 5.4vw, 5.2rem); } }
.ht-tail {
  display: block;
  margin-top: clamp(10px, 1.3vw, 15px);
  font-size: clamp(1.1rem, .95rem + .8vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.16;
  letter-spacing: -.012em;
  color: var(--clay-on-ink);
}
.ht-tail em { font-style: normal; color: var(--night-ink); }

.hero-rule {
  height: 1px;
  border: 0;
  margin: clamp(16px, 1.9vw, 24px) 0 clamp(15px, 1.7vw, 20px);
  background: linear-gradient(90deg,
    var(--night-line-2) 0%, var(--night-line) 46%, transparent 100%);
}

/* The citable first sentence. Same words, same <strong> figures. */
.hero--night .hero-lead {
  margin: 0;
  max-width: 44ch;
  font-family: var(--font-sans);
  font-size: clamp(.97rem, .93rem + .22vw, 1.06rem);
  line-height: 1.55;
  color: var(--night-ink-2);
}
.hero--night .hero-lead strong {
  color: var(--night-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Trust marks as an editorial rule, not as form pills. */
.hero-marks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 0;
  margin: clamp(16px, 2vw, 24px) 0 0;
  padding: 0;
  max-width: none;
}
.hero--night .hero-marks li {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  /* One step UP the ink ramp from the --night-ink-3 these would take on a
     flat surface. At 13px over a photograph, ink-3 needs the background
     held under 0.056 relative luminance; ink-2 tolerates 0.099, nearly
     double. Measured at 1280x720 these two labels sat at 4.43:1 — the
     honest fix was a brighter grey, not another 10% of scrim over the
     one part of the picture that shows the vehicle. */
  color: var(--night-ink-2);
  white-space: nowrap;
}
/* The diamond LEADS each mark after the first, it does not trail them.
   As a trailing ::after it survived only while all three fitted on one
   line; the moment the measure got capped the row wrapped and left a
   gold diamond dangling off the end of line one. Leading separators wrap
   cleanly — worst case a line simply begins with its own diamond. */
.hero--night .hero-marks li:not(:first-child)::before {
  content: "\25C6";
  display: inline-block;
  margin: 0 clamp(9px, 1.1vw, 13px);
  font-size: .58em;
  vertical-align: .22em;
  letter-spacing: 0;
  color: var(--gold-on-ink);
}
@media (max-width: 899px) {
  .hero-marks { display: grid; gap: 8px; }
  .hero--night .hero-marks li { white-space: normal; }
  .hero--night .hero-marks li::before,
  .hero--night .hero-marks li:not(:first-child)::before {
    content: "\25C6";
    display: inline-block;
    margin: 0 10px 0 0;
    font-size: .58em;
    vertical-align: .22em;
    letter-spacing: 0;
    color: var(--gold-on-ink);
  }
}

/* ------------------------------------------------------------------ *
 * 6C. THE PLATE — the quoter on the night cover
 *     Same component, same ids, same JS. What changes is the register:
 *     a mounted plate with a gold edge instead of a rounded widget, a
 *     dateline instead of a form header, and money set in serif.
 *     Only classes site.js really emits are targeted here (quoter__*,
 *     veh-option__*) plus the static fallback's own.
 * ------------------------------------------------------------------ */
.hero-panel { position: relative; }

.hero--night .quoter {
  background: linear-gradient(180deg, var(--night-2) 0%, #1B1512 100%);
  color: var(--night-ink);
  border: 1px solid var(--night-line-2);
  border-top: 2px solid var(--gold-on-ink);
  border-radius: 2px 2px var(--radius) var(--radius);
  box-shadow:
    0 46px 88px -34px rgba(0, 0, 0, .92),
    0 10px 26px -12px rgba(0, 0, 0, .72);
  padding: clamp(18px, 2vw, 26px);
}
.hero--night .quoter__form,
.hero--night .quoter-static { display: grid; gap: clamp(14px, 1.6vw, 19px); margin: 0; }

/* Dateline, not widget chrome */
.hero--night .quoter__head,
.hero--night .quoter-head { display: grid; gap: 5px; }
.hero--night .quoter__eyebrow,
.hero--night .quoter-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-on-ink);
}
.hero--night .quoter__eyebrow::before,
.hero--night .quoter-eyebrow::before { background: var(--gold-on-ink); }
.hero--night .quoter__title,
.hero--night .quoter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.36rem, 1.18rem + .7vw, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.022em;
  color: var(--night-ink);
  margin: 0;
}

/* --- The destination select, set as a HEADLINE ---------------------
   The single highest-leverage line in this file. A native <select> with
   its box, its grey fill and its stock chevron is the one element that
   makes any booking widget read as an administrative form. Stripping the
   box and setting the value in serif at 1.42rem over a 2px clay rule
   keeps the affordance (the label above says "Where to?", the chevron
   still points down, keyboard behaviour is untouched — it is still a
   real <select>) while changing the register completely. Portable to any
   quoter on the site without touching a line of JS. ---------------- */
.hero--night .quoter__field { display: grid; gap: 4px; }
.hero--night .quoter__field > label,
.hero--night .quoter__legend {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--night-ink-3);
}
.hero--night .quoter__select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-serif);
  font-size: clamp(1.24rem, 1.1rem + .5vw, 1.42rem);
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--night-ink);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E0895F' d='M12 15.5 5.5 9h13z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 18px 18px;
  border: 0;
  border-bottom: 2px solid var(--clay-on-ink);
  border-radius: 0;
  padding: 4px 26px 7px 0;
  min-height: 0;
}
/* Native option lists inherit the control's background: without this the
   open menu paints cream-on-cream in some engines. */
.hero--night .quoter__select option { background: #1B1512; color: #FAF7F1; }

.hero--night .quoter__input {
  font-family: var(--font-sans);
  color: var(--night-ink);
  background: rgba(250, 247, 241, .05);
  border: 0;
  border-bottom: 1.5px solid var(--night-line-2);
  border-radius: 0;
  padding: 9px 10px;
  min-height: 44px;
}
.hero--night ::placeholder { color: var(--night-ink-3); opacity: 1; }

/* Focus. The base sheet sets `outline:none` on :focus for these controls
   at (0,3,0); a bare `:focus-visible` rule at (0,2,0) loses that fight
   and the keyboard ring silently disappears. Matched specificity here,
   so tabbing through the plate really does draw a ring. */
.hero--night .quoter__select:focus-visible,
.hero--night .quoter__input:focus-visible,
.hero--night .btn:focus-visible,
.hero--night .quoter-options a:focus-visible,
.hero--night .hero-rail a:focus-visible,
.hero--night .city-spot:focus-visible {
  outline: 2px solid var(--gold-on-ink);
  outline-offset: 3px;
}
.hero--night .quoter__select:focus,
.hero--night .quoter__input:focus {
  border-bottom-color: var(--clay-deep);
  box-shadow: 0 2px 0 0 var(--clay-deep);
}
.hero--night .veh-option:has(input:focus-visible) {
  outline: 2px solid var(--gold-on-ink);
  outline-offset: 2px;
}

/* --- Vehicle rows --------------------------------------------------
   See §7 for why the grid became rows fleet-wide. On the plate they are
   further flattened into ledger lines: name and capacity left, price in
   serif right. Both tiers' prices are therefore on screen at once,
   before any interaction — the upsell delta ($160 -> $190) is visible
   rather than hidden behind a click. */
.hero--night .quoter__vehicles .quoter__legend { margin-bottom: 7px; }
.hero--night .veh-grid { gap: 0; border-top: 1px solid var(--night-line); }
.hero--night .veh-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1px clamp(10px, 1.6vw, 16px);
  border: 0;
  border-bottom: 1px solid var(--night-line);
  border-radius: 0;
  background: transparent;
  padding: 11px 10px 11px 12px;
  box-shadow: inset 3px 0 0 transparent;
}
.hero--night .veh-option:hover { border-color: var(--night-line); background: rgba(250, 247, 241, .04); }
.hero--night .veh-option__name {
  grid-column: 1; grid-row: 1;
  font-family: var(--font-sans);
  /* Fluid, and the floor is the load-bearing end: at a flat .92rem the
     real catalogue string "Van · JAC Sunray or Ford Transit" wrapped to
     two lines on a 390px screen, costing 20px of fold and throwing the
     two fares out of alignment in the one row built for comparing them.
     .86rem measures ~230px against 256px of column — one line. */
  font-size: clamp(.86rem, .8rem + .2vw, .92rem);
  font-weight: 700;
  letter-spacing: -.004em;
  line-height: 1.25;
  color: var(--night-ink);
}
.hero--night .veh-option__meta {
  grid-column: 1; grid-row: 2;
  margin-top: 1px;
  font-size: var(--fs-xs);
  color: var(--night-ink-3);
}
.hero--night .veh-option__price {
  grid-column: 2; grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--clay-on-ink);
}
.hero--night .veh-option:has(input:checked),
.hero--night .veh-option.is-selected {
  background: rgba(224, 137, 95, .11);
  border-color: var(--night-line);
  box-shadow: inset 3px 0 0 var(--clay-on-ink);
}

/* --- The receipt line ----------------------------------------------
   No grey well, no border-radius: a rule, a label in gold small caps,
   and the figure in serif at 2.6rem with tabular numerals. The number is
   the largest object on the plate because the number is the product. */
.hero--night .quoter__price {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--night-line-2);
  border-radius: 0;
  padding: 15px 0 0;
  gap: 4px 10px;
}
.hero--night .quoter__price-label {
  color: var(--gold-on-ink);
  letter-spacing: .18em;
  font-size: var(--fs-xs);
}
.hero--night .quoter__price-value {
  color: var(--night-ink);
  font-size: clamp(2.2rem, 1.7rem + 1.7vw, 2.75rem);
  letter-spacing: -.035em;
}
.hero--night .quoter__price-unit { color: var(--night-ink-3); }
.hero--night .quoter__price-sub  { color: var(--night-ink-3); }
/* Rule of gold: green belongs to the pay button alone, so the
   per-person proof and the reassurance ticks move to gold here. */
.hero--night .quoter__perperson { color: var(--gold-on-ink); font-weight: 600; }
.hero--night .quoter__reassure span::before { background: var(--gold-on-ink); }
.hero--night .quoter__reassure { color: var(--night-ink-3); }

/* The one green thing on the cover. */
.hero--night .quoter .btn-book {
  width: 100%;
  min-height: 52px;
  font-size: 1.03rem;
  box-shadow: 0 10px 26px -10px rgba(28, 107, 74, .85);
}

/* --- Static fallback: the departures board -------------------------
   Zero-JS state. Destination in serif left, fare in serif clay right,
   PER VEHICLE in 11px small caps beneath it, hairlines between: a menu,
   not a list of inputs. Four fares visible at once with no interaction,
   each linking to its own booking page. */
.hero--night .quoter-options { display: block; border-top: 1px solid var(--night-line); }
.hero--night .quoter-options li { margin: 0; border-bottom: 1px solid var(--night-line); }
.hero--night .quoter-options a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px clamp(12px, 2vw, 18px);
  padding: clamp(11px, 1.3vw, 15px) 0;
  color: var(--night-ink);
  transition: background-color .16s ease, padding-inline .16s ease;
}
.hero--night .quoter-options a:hover {
  background: rgba(250, 247, 241, .05);
  padding-inline: 9px;
  box-shadow: -9px 0 0 rgba(250, 247, 241, .05), 9px 0 0 rgba(250, 247, 241, .05);
}
.hero--night .q-dest {
  grid-column: 1; grid-row: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.04rem, 1rem + .26vw, 1.14rem);
  font-weight: 600;
  letter-spacing: -.014em;
  line-height: 1.2;
  color: var(--night-ink);
}
.hero--night .q-meta {
  grid-column: 1; grid-row: 2;
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: var(--night-ink-3);
}
.hero--night .q-price {
  grid-column: 2; grid-row: 1;
  justify-self: end;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.028em;
  font-variant-numeric: tabular-nums;
  color: var(--clay-on-ink);
}
.hero--night .q-unit {
  grid-column: 2; grid-row: 2;
  justify-self: end;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--night-ink-3);
}
.hero--night .quoter-fineprint {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: var(--night-ink-3);
  text-align: center;
}

/* --- Price rail ----------------------------------------------------
   Lives OUTSIDE .quoter on purpose, so it survives hydration (site.js
   empties the quoter's children). The live plate opens on day trips at
   $160; without this rail the $50 airport fare — the cheapest way in and
   the highest-volume query on the site — would exist only in the lead
   sentence and inside a <select>. Two links, two fares, always on
   screen, in both the static and the hydrated state. */
.hero-rail {
  list-style: none;
  display: grid;
  gap: 1px;
  margin: clamp(12px, 1.5vw, 16px) 0 0;
  padding: 0;
}
.hero--night .hero-rail li { margin: 0; padding: 0; }
.hero--night .hero-rail a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 2px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  color: var(--night-ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--night-line);
}
.hero--night .hero-rail a:hover { color: var(--night-ink); }
.hero--night .hero-rail a:hover .hr-price { color: var(--clay-deep); }
.hero--night .hr-price {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--clay-on-ink);
  white-space: nowrap;
}

/* --- City spots on the cover -----------------------------------------
   This slot used to hold the driver-language selector. It was deleted on
   2026-07-21: the operator's drivers speak English only, so French /
   German / Japanese was a published promise nobody could keep.

   What replaces it earns the slot on measured demand rather than on a
   guess — the city's most-searched names (Xochimilco and its trajineras,
   lucha libre at the arena, the taco tour, Coyoacan, "things to do at
   night"). Note the register is deliberately the same as .hero-marks and
   the old label: a small uppercase gold-sans caption over a photograph,
   then the row. It reads as another line of the masthead, not as a
   second widget competing with the plate on the right.

   Everything ink-side inherits the .hero--night token remap (§6B), so
   these overrides only handle the surface: a barely-there fill and a
   hairline that survive over the brightest part of the photograph.
   ------------------------------------------------------------------- */
.hero--night .city-spots { margin-top: clamp(12px, 1.5vw, 17px); }
.hero--night .city-spots__label {
  color: var(--night-ink-2);   /* over a photograph — see .hero-marks li */
}
/* CAP THE MEASURE — same mechanism, same reason as .hero--night .hero-lead.
   Measured at 1440x900 with the glyph-diff method: uncapped, the note ran
   the full 452px column and its last ~100px crossed onto the lit terminal
   glass, bottoming out at 3.51:1 against a (112,102,89) background. Every
   failing pixel sat past offset 350. Capping the line to the same measure
   the lead already uses keeps the text inside the washed band instead of
   buying legibility with more scrim over the one part of the photograph
   that shows the vehicle. Re-measured after: 10.8:1 worst. */
.hero--night .city-spots__note {
  color: var(--night-ink-2);
  max-width: 44ch;
}
.hero--night .city-spots__note b { color: var(--clay-on-ink); }

/* THE CHIP CARRIES ITS OWN SURFACE, and that is the point. The first pass
   used the language pills' rgba(250,247,241,.05) — a 5% cream veil, which
   over a photograph is not a surface at all: it leaves the composite to
   whatever the picture is doing underneath, and the chips measured 4.96:1,
   a pass that belongs to this photograph rather than to the component.
   Tinting with the cover's own black instead pulls the composite toward
   --night wherever the chip lands, so the ratio holds if the hero image is
   ever swapped. */
.hero--night .city-spot {
  background: rgba(var(--night-rgb), .55);
  border-color: var(--night-line-2);
  color: var(--night-ink-2);
}
/* Hover/focus lifts to full night ink: 16.5:1, and the clay edge is the
   same one the vehicle rows use when selected. */
.hero--night .city-spot:hover {
  background: rgba(224, 137, 95, .2);
  border-color: var(--clay-on-ink);
  color: var(--night-ink);
}
/* NOTE: no edge-fade gradient here on purpose. A fade over a photograph
   has to be painted in the cover's own black or it reads as fog, which
   means a second hand-tuned color per theme. The base component gets its
   "there is more" affordance from a chip cut by the viewport edge
   instead (see §8), which is colorless and therefore free here. */

/* --- The masthead over the cover ------------------------------------
   The sticky header is cream. Parked on top of a black photographic
   cover it read as an unfinished theme — a bright slab amputating the
   composition — which was the loudest complaint against this direction.
   Scoped with :has() to the one page that owns a night hero, the header
   joins the cover instead of fighting it and behaves like a magazine
   masthead. No scroll listener, no library: when the page scrolls on
   past the hero, a dark sticky bar simply rhymes with the dark footer,
   which is already a fixed inverted surface in this system. */
body:has(.hero--night) .site-header {
  background: color-mix(in srgb, var(--night) 88%, transparent);
  border-bottom-color: var(--night-line);
}
body:has(.hero--night) .site-header .brand,
body:has(.hero--night) .site-header .brand:hover { color: var(--night-ink); }
body:has(.hero--night) .site-header .brand-accent,
body:has(.hero--night) .site-header .brand-icon { color: var(--clay-on-ink); }
body:has(.hero--night) .site-header .nav a:not(.btn):not(.btn-book) { color: var(--night-ink-2); }
body:has(.hero--night) .site-header .nav a:not(.btn):not(.btn-book):hover,
body:has(.hero--night) .site-header .nav a[aria-current="page"]:not(.btn) { color: var(--night-ink); }
body:has(.hero--night) .site-header .nav a:not(.btn):not(.btn-book)::after { background: var(--clay-on-ink); }
body:has(.hero--night) .site-header .nav-toggle {
  background: rgba(250, 247, 241, .06);
  border-color: var(--night-line-2);
  color: var(--night-ink);
}
body:has(.hero--night) .site-header .nav.is-open {
  background: var(--night);
  border-color: var(--night-line);
}

/* --- Desktop: a compact plate ----------------------------------------
   The plate's height is what sets the hero's height, and the hero's
   height is what decides how badly the photograph gets cropped (see the
   note on the grid above). So on desktop the quoter is deliberately
   tight — it is a hero plate, not a settings page. This also keeps the
   pay button above the fold on a real laptop rather than only on a
   1440x900 mock. */
@media (min-width: 900px) {
  /* Matches .hero--night .hero-lead's own desktop cap, for the same
     contrast reason — see the note on .city-spots__note above. */
  .hero--night .city-spots__note { max-width: 36ch; }
  .hero--night .quoter { padding: 17px 19px; }
  .hero--night .quoter__form, .hero--night .quoter-static { gap: 13px; }
  .hero--night .veh-option { padding-block: 9px; }
  .hero--night .quoter__price { padding-top: 12px; }
  .hero--night .quoter__price-value { font-size: 2.25rem; }
  .hero--night .quoter .btn-book { min-height: 50px; }
  .hero--night .hero-rail a { padding-block: 6px; }
}

/* --- Short viewports -------------------------------------------------
   At 1280x720 — an ordinary laptop — the pay button used to finish 7px
   below the fold. These are the 7px, and then some. */
@media (min-width: 900px) and (max-height: 820px) {
  .hero--night { padding-block: 18px 24px; }
  .ht-city { font-size: clamp(3.5rem, 6vw, 5rem); }
  .hero-kicker { margin-bottom: 11px; }
  .hero-rule { margin: 12px 0; }
  .hero-marks { margin-top: 12px; }
  .hero--night .hero-lead { font-size: .94rem; line-height: 1.47; }
  .hero--night .city-spots { margin-top: 11px; }
  .hero--night .quoter { padding: 15px 17px; }
  .hero--night .quoter__form, .hero--night .quoter-static { gap: 11px; }
  .hero--night .veh-option { padding-block: 7px; }
  .hero--night .quoter__price { padding-top: 10px; }
  .hero--night .quoter__price-value { font-size: 2rem; }
  .hero--night .quoter .btn-book { min-height: 46px; }
  .hero--night .hero-rail a { padding-block: 4px; }
}

/* The paper resumes, and the size jump is what makes the cut land. */
.hero--night + .breadcrumb { padding-top: clamp(16px, 2.2vw, 26px); }
.hero--night ~ .intro .lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1rem + .85vw, 1.5rem);
  line-height: 1.44;
  letter-spacing: -.012em;
  color: var(--ink);
  max-width: 42ch;
}

/* ------------------------------------------------------------------ *
 * 7. QUOTER  (premium booking card)
 *    Styles BOTH the runtime markup site.js builds (quoter__*, veh-option__*)
 *    and the static/no-JS fallback (quoter-*, plus veh- / vehicle- / qv-).
 *
 *    ⚠️ Do NOT write a star followed by a slash in these comments. This
 *    line used to read "veh-*" + "/vehicle-*" + "/qv-*", and the first
 *    star-slash pair CLOSED THE COMMENT four lines early. Everything up
 *    to the real terminator was then parsed as a broken selector, and
 *    CSS error recovery swallowed the very next rule — the `.quoter`
 *    base card. Measured 2026-07-21 on /day-trips-from-mexico-city/:
 *    background transparent, border 0, padding 0, box-shadow none,
 *    radius 0. The card was invisible on all 19 interior pages; only the
 *    home escaped it, because `.hero--night .quoter` re-supplies the
 *    surface and hid the bug in the one place anyone was looking.
 * ------------------------------------------------------------------ */
.quoter {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 2.6vw, 28px);
}
.quoter__form,
.quoter-form,
.quoter-fallback { display: grid; gap: 16px; margin: 0; }

/* Header */
.quoter__head, .quoter-head { display: grid; gap: 4px; }
.quoter__eyebrow, .quoter-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-3);
}
.quoter__eyebrow::before, .quoter-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
.quoter__title, .quoter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 1.1rem + 0.9vw, 1.5rem);
  font-weight: 600; line-height: 1.15; margin: 0;
  letter-spacing: -0.01em; color: var(--ink);
}
.quoter-sub, .quoter-lede, .quoter-fallback__lead { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }

/* Fields */
.quoter__field, .quoter-field { display: grid; gap: 6px; }
.quoter__field > label, .quoter-field > label, .quoter__legend, .quoter-legend, .field > label {
  font-family: var(--font-sans);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
}
.quoter__input, .quoter__select, .quoter-input, .quoter-select, .field input, .field select {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.quoter__input:focus, .quoter__select:focus,
.quoter-input:focus, .quoter-select:focus,
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 26%, transparent);
}
.quoter__row, .quoter-row { display: grid; gap: 12px; }
@media (min-width: 480px) {
  .quoter__row--2, .quoter-row--2 { grid-template-columns: 1fr 1fr; }
}

/* Vehicle picker — accessible radio cards (both class families) */
.quoter__vehicles, .quoter-vehicles, .veh-picker { border: 0; padding: 0; margin: 0; }
.quoter__vehicles .quoter__legend,
.quoter-vehicles .quoter-legend { display: block; margin-bottom: 8px; }
/* The fleet has TWO tiers, not three. This grid still declared
   `repeat(3, 1fr)` from when a third vehicle existed, so the two real
   cards were being squeezed into a third of the width each: measured,
   "Van · JAC Sunray or Ford Transit" broke over four lines and the two
   prices ended up 60px apart vertically, in the one component whose job
   is to let you compare them. Rows fix it at the source and read better
   anyway — name and capacity left, fare right, prices stacked in a
   single column your eye can run down. */
.veh-grid, .veh-picker, .quoter-vehicles {
  display: grid; gap: 10px;
}

.veh-option, .vehicle-opt, .quoter-vehicle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.veh-option:hover, .vehicle-opt:hover, .quoter-vehicle:hover { border-color: var(--clay); }
.veh-option input, .vehicle-opt input, .quoter-vehicle input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.veh-option__name, .veh-name, .vehicle-name, .qv-name {
  grid-column: 1; grid-row: 1;
  /* Fluid so the real catalogue string ("Van · JAC Sunray or Ford
     Transit") holds one line on a 390px phone instead of wrapping. */
  font-weight: 700; font-size: clamp(.88rem, .82rem + .2vw, .95rem);
  display: block; color: var(--ink); line-height: 1.25;
}
.veh-option__meta, .veh-max, .vehicle-cap, .qv-cap {
  grid-column: 1; grid-row: 2;
  color: var(--ink-3); font-size: var(--fs-xs); display: block; margin-top: 2px;
}
.veh-option__price, .veh-price, .vehicle-price, .qv-price {
  grid-column: 2; grid-row: 1 / span 2;
  align-self: center; justify-self: end;
  font-weight: 700; color: var(--clay); font-size: 1.06rem;
  display: block; margin: 0; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Selected state (:has for modern browsers + .is-selected JS fallback) */
.veh-option:has(input:checked),
.vehicle-opt:has(input:checked),
.quoter-vehicle:has(input:checked),
.veh-option.is-selected,
.vehicle-opt.is-selected,
.quoter-vehicle.is-selected {
  border-color: var(--clay);
  background: var(--clay-tint);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 20%, transparent);
}
.veh-option:has(input:focus-visible),
.vehicle-opt:has(input:focus-visible) {
  outline: 2px solid var(--ring); outline-offset: 2px;
}

/* Price readout */
.quoter__price, .quoter-price, .quoter-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.quoter__price-label, .quoter-total-label {
  font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); width: 100%;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.quoter__price-value, .quoter-total-value, .quoter-total-amount {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.7rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.quoter__price-unit, .quoter-total-unit {
  font-size: 0.92rem; font-weight: 600; color: var(--ink-3);
}
.quoter__price-sub, .quoter-note, .quoter-fineprint, .quoter-fallback__note {
  width: 100%; font-size: var(--fs-sm); color: var(--ink-3); margin: 0;
}
.quoter__perperson {
  width: 100%; font-size: var(--fs-sm); color: var(--book); font-weight: 600;
}

/* Static fallback price list (quoter-prices: li · span + strong) */
.quoter-prices, .quoter-options {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 2px;
}
.quoter-prices li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 9px 2px;
  border-bottom: 1px solid var(--line);
}
.quoter-prices li:last-child { border-bottom: 0; }
.quoter-prices li strong, .quoter-prices li .price {
  font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.quoter-options li { border-bottom: 1px solid var(--line); }
.quoter-options li:last-child { border-bottom: 0; }
.quoter-options a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 2px; text-decoration: none;
}
.quoter-options a:hover { text-decoration: none; }
.q-dest { font-weight: 700; color: var(--ink); }
.q-meta { font-size: var(--fs-sm); color: var(--ink-3); }

.quoter__reassure, .quoter-reassure {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: var(--fs-sm); color: var(--ink-3); margin: 0;
}
.quoter__reassure span, .quoter-reassure span { display: inline-flex; align-items: center; gap: 5px; }
.quoter__reassure span::before, .quoter-reassure span::before {
  content: ""; width: 14px; height: 14px; flex: 0 0 auto;
  background: var(--book);
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
          mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ *
 * 8. CITY SPOTS  —  the most-searched places, as a row of links
 *    (replaces the LANG-DRIVER selector, deleted 2026-07-21)
 * ------------------------------------------------------------------
 * WHY THIS EXISTS
 * The slot this occupies used to sell drivers who spoke French, German
 * and Japanese. They do not exist — the operator's drivers speak English
 * only — so the whole selector went the way of the 3-seat car: deleted,
 * not softened. `.lang-driver` / `.lang-pill` no longer exist in this
 * sheet and site.js no longer emits or reads them.
 *
 * What takes the slot is demand that was actually measured in
 * autocomplete: xochimilco (+ trajineras, boats), lucha libre (+ tickets,
 * arena mexico), taco tour, coyoacan (+ market), "things to do at night".
 *
 * THE PRODUCT RULE — READ BEFORE WRITING ANY MARKUP
 * These are points INSIDE the city, so they are NOT day-trips and they do
 * NOT have prices of their own. There is no "taco tour" fare. Every spot
 * here is served by ONE product: hire a driver for the day (8h,
 * hire_for_day in data/pricing.json), which is why each chip links to
 * /hire-a-driver-for-the-day-mexico-city and why the row carries at most
 * ONE price — that product's, cited once in .city-spots__note. Putting a
 * figure on an individual chip would be inventing a tariff. Don't.
 *
 * WHY LINKS AND NOT BUTTONS
 * The thing it replaced was a stateful control (aria-pressed, a value
 * that rode to checkout). This is navigation: real <a>s in a <ul>, so
 * they are crawlable internal links, they work with JS off, and site.js
 * has nothing to hydrate. No JS owns this component at all.
 *
 * HTML SNIPPET — copy this verbatim, page authors.
 * Sits in .hero-column AFTER .hero-marks (never inside .quoter — the
 * quoter's children are wiped on hydration). Swap the spots per page;
 * keep the <nav> label, keep the link target, keep the note.
 *
 *   <nav class="city-spots" aria-label="Most-searched places in Mexico City">
 *     <span class="city-spots__label">Most asked for</span>
 *     <ul class="city-spots__row">
 *       <li><a class="city-spot" href="/hire-a-driver-for-the-day-mexico-city">Xochimilco trajineras</a></li>
 *       <li><a class="city-spot" href="/hire-a-driver-for-the-day-mexico-city">Lucha libre</a></li>
 *       <li><a class="city-spot" href="/hire-a-driver-for-the-day-mexico-city">Taco tour</a></li>
 *       <li><a class="city-spot" href="/hire-a-driver-for-the-day-mexico-city">Coyoacan market</a></li>
 *       <li><a class="city-spot" href="/hire-a-driver-for-the-day-mexico-city">The city at night</a></li>
 *     </ul>
 *     <p class="city-spots__note">One driver, <b>8 hours</b>, as many stops as you like — from $180 per vehicle.</p>
 *   </nav>
 *
 * ($180 is hire_for_day.suv in data/pricing.json. If that file changes,
 * this number changes with it — it is the only price this block may say.)
 * ------------------------------------------------------------------ */

/* min-width:0 is load-bearing, not defensive tidying. This block is a
   grid item (on phones .hero-column is `display:contents`, so it becomes
   a direct child of .hero-grid). A grid item's default min-width:auto is
   its CONTENT's width, so a 5-chip row would size the whole hero track
   to the un-scrolled row and push the page into horizontal scroll — the
   overflow is silent, because the inner scroller looks like it is doing
   its job. On desktop the .hero-grid track is already minmax(0, 1fr),
   which fixes it there; this line is what covers the phone case. */
/* The other two lines are the same story from the other direction, and
   both were found by measurement rather than added on principle.

   Dropped into a parent that squeezes its children — .nf-wrap on the 404
   computes to a flex row, so a block placed beside .nf-card gets crushed
   to the leftover space (19px, measured) — min-width:0 lets this block
   collapse as asked, and the nowrap row then escaped it for 14px of page
   overflow at 390. max-width:100% is what stops the row outrunning a
   parent that has collapsed, where min-width:0 stops it inflating one
   that has not.

   grid-template-columns:minmax(0,1fr) is the piece that actually closes
   it. A grid's implicit column is max-content, so even with the block
   clipped to 19px the TRACK stayed as wide as the row's content — and the
   row's max-width:100% resolves against that track, not against the
   block, so it sat 54px wide and still hung out of the page. Pinning the
   track to the block's own width leaves no wider box anywhere for a child
   to resolve a percentage against. All three together hold in flex, grid
   and flow. */
.city-spots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 4px;
  min-width: 0;
  max-width: 100%;
}

.city-spots__label {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* THE ROW. Scrolls sideways inside its own box; the page never does.
   A chip cut by the box's right edge is what tells you the row continues
   — no gradient, no arrows, nothing to theme.

   NO NEGATIVE MARGIN HERE, and that is deliberate. The first pass bled
   the row to the viewport edge with margin-inline:calc(var(--gutter)*-1)
   plus matching padding, which is the usual full-bleed trick. It assumes
   the parent is padded by EXACTLY --gutter, and the moment it is not, the
   row hangs outside the page and the whole document scrolls sideways.
   Measured across all 20 pages: page overflow of exactly 16px at 390 and
   exactly 28px at 768 — the gutter, to the pixel — as soon as the block
   was placed anywhere but inside .container. Since page authors are going
   to drop this component in several different wrappers, the flourish is
   not worth a silent horizontal scroll on phones. The row now bleeds
   nothing and cannot overflow its parent whatever it is nested in. */
.city-spots__row {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 2px 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;   /* no back-swipe navigation mid-row */
  scroll-snap-type: x proximity;
  scrollbar-width: none;            /* the cut chip is the affordance */
}
.city-spots__row::-webkit-scrollbar { display: none; }
.city-spots__row > li { margin: 0; padding: 0; flex: 0 0 auto; scroll-snap-align: start; }

/* THE CHIP. Same pill idiom the language pills used (that part was fine:
   pill radius, 1.5px control border, clay on hover) — but sized to the
   44px touch minimum rather than the 40px they shipped with. */
.city-spot {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.city-spot:hover {
  border-color: var(--clay);
  background: var(--clay-tint);
  color: var(--ink);
}
/* Explicit, and inside the scroller on purpose: an outline drawn on a
   flex child of an overflow-x box gets clipped at the box edge unless
   the box can scroll it into view, which scroll-margin guarantees. */
.city-spot:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.city-spots__row > li { scroll-margin-inline: 4px; }

.city-spots__note {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin: 2px 0 0;
}
.city-spots__note b { color: var(--clay); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .city-spot { transition: none; }
}

/* ------------------------------------------------------------------ *
 * 9. PRICE TABLE  (magazine editorial)
 * ------------------------------------------------------------------ */
.table-wrap, .price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 540px;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}
/* When not inside a wrap, give the table its own frame */
.price-table:only-child,
:not(.table-wrap):not(.price-table-wrap) > .price-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-3);
  padding: 0 2px 12px;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table thead th {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--clay);
  white-space: nowrap;
}
.price-table tbody tr { transition: background-color .12s ease; }
.price-table tbody tr:hover { background: color-mix(in srgb, var(--clay-tint) 55%, transparent); }
.price-table tbody tr:last-child td,
.price-table tbody tr:last-child th { border-bottom: 0; }
.price-table tbody th[scope="row"] { font-weight: 700; color: var(--ink); }
.price-table td { color: var(--ink-2); }
.price-table td.price-table__flat, .price-table td .price, .price-table .price {
  font-weight: 700; color: var(--ink); white-space: nowrap;
}
.price-table td.price-table__pp { color: var(--ink-3); white-space: nowrap; }
.price-table .veh-name, .price-table .vehicle-name { font-weight: 700; color: var(--ink); }
.price-table .veh-max, .price-table .vehicle-cap {
  color: var(--ink-3); font-size: var(--fs-xs); display: block; font-weight: 400;
}
.row-highlight, .price-table tr.row-highlight {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}
.row-highlight th, .row-highlight td { border-bottom-color: color-mix(in srgb, var(--gold) 30%, var(--line)); }
.table-foot, .table-note, .table-foot__note {
  font-size: var(--fs-sm); color: var(--ink-3); margin-top: 10px;
}

/* ------------------------------------------------------------------ *
 * 10. CITABILITY  (numbered editorial "key facts" band)
 * ------------------------------------------------------------------ */
section.citability, .citability {
  padding-block: clamp(40px, 6vw, 72px);
  background: var(--clay-tint);
  border-block: 1px solid var(--line);
}
/* Items placed directly in the section (no wrapper) → section becomes the grid */
section.citability:has(> .cite-item),
section.citability:has(> .citability-item) {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
@media (min-width: 640px) {
  section.citability:has(> .cite-item),
  section.citability:has(> .citability-item) { grid-template-columns: 1fr 1fr; }
}
/* Explicit grid wrappers */
.citability-grid, .cite-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  counter-reset: cite;
}
@media (min-width: 640px) {
  .citability-grid, .cite-grid { grid-template-columns: 1fr 1fr; }
}
/* The item card */
.citability-item, .cite-item, .citability > div, .citability-grid > div, .cite-grid > div {
  counter-increment: cite;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
}
.citability-item h2, .citability-item h3,
.cite-item h2, .cite-item h3,
.citability > div > :first-child,
.citability-grid > div > :first-child {
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.14rem;
  color: var(--ink);
  margin: 0 0 8px;
  padding-top: 30px;
}
/* Serif number eyebrow above each heading */
.citability-item h2::before, .citability-item h3::before,
.cite-item h2::before, .cite-item h3::before,
.citability > div > :first-child::before {
  content: counter(cite, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-serif);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--clay);
}
.citability-item h2::after, .cite-item h2::after,
.citability-item h3::after, .cite-item h3::after {
  content: ""; position: absolute; top: 11px; left: 34px;
  width: 22px; height: 1px; background: color-mix(in srgb, var(--clay) 50%, transparent);
}
.citability-item p, .cite-item p, .citability > div p {
  color: var(--ink-2); margin: 0; font-size: 0.96rem;
}

/* ------------------------------------------------------------------ *
 * 11. TRUST BADGES  (SVG-iconed pills; li / span / .trust-badge)
 * ------------------------------------------------------------------ */
.trust-badges {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 12px;
}
.trust-badges > li, .trust-badges > span, .trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 15px 8px 13px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.trust-badges > li::before, .trust-badges > span::before, .trust-badge::before {
  content: ""; width: 15px; height: 15px; flex: 0 0 auto;
  background: var(--clay);
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 1 3 5v6c0 5 3.8 9.4 9 11 5.2-1.6 9-6 9-11V5l-9-4Zm-1 15-4-4 1.4-1.4L11 13.2l4.6-4.6L17 10l-6 6Z'/%3E%3C/svg%3E");
          mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 1 3 5v6c0 5 3.8 9.4 9 11 5.2-1.6 9-6 9-11V5l-9-4Zm-1 15-4-4 1.4-1.4L11 13.2l4.6-4.6L17 10l-6 6Z'/%3E%3C/svg%3E");
}
/* Alternate icons for variety (clock / star / check) */
.trust-badges > :nth-child(2)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 10.4 4 2.3-1 1.7-5-2.9V7h2Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 10.4 4 2.3-1 1.7-5-2.9V7h2Z'/%3E%3C/svg%3E");
}
.trust-badges > :nth-child(3)::before {
  background: var(--gold);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 3 6.3 6.9.9-5 4.8 1.3 6.9L12 18.6 5.8 21.8 7.1 15l-5-4.8 6.9-.9L12 2Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 3 6.3 6.9.9-5 4.8 1.3 6.9L12 18.6 5.8 21.8 7.1 15l-5-4.8 6.9-.9L12 2Z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ *
 * 12. CALLOUT  (terracotta band, thick left rule)
 * ------------------------------------------------------------------ */
.callout {
  background: var(--clay-tint);
  border: 1px solid color-mix(in srgb, var(--clay) 22%, var(--line));
  border-left: 5px solid var(--clay);
  border-radius: var(--radius-sm);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 24px);
  color: var(--ink);
  margin: var(--space-3) 0;
}
.callout p { margin: 0 0 0.6rem; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--clay-deep); }
@media (prefers-color-scheme: dark) { .callout strong { color: var(--clay); } }
.callout-price, .callout.callout-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
}
.callout-price .price, .callout .price {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums;
}
/* Bundle upsell keeps the callout look but with a gold rule */
.bundle, .bundle.callout {
  border-left-color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 26%, var(--line));
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
}

/* ------------------------------------------------------------------ *
 * 13. FAQ  (native <details>, +/- marker, no JS)
 * ------------------------------------------------------------------ */
.faq { display: grid; gap: 10px; }
.faq .container > * + * { margin-top: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--clay) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.faq-item > summary, .faq-title {
  list-style: none;
  cursor: pointer;
  padding: 16px 50px 16px 18px;
  position: relative;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.3;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute; right: 18px; top: 21px;
  width: 15px; height: 15px;
  background: var(--clay);
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E");
          mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E");
  transition: transform .2s ease;
}
.faq-item[open] > summary::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 11h14v2H5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 11h14v2H5z'/%3E%3C/svg%3E");
}
.faq-item > summary:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
.faq-item > div, .faq-body, .faq-answer {
  padding: 0 18px 18px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.faq-item > div :first-child, .faq-body :first-child, .faq-answer :first-child { margin-top: 0; }
/* Gentle open animation (skipped under reduced-motion via §2) */
.faq-item[open] > div, .faq-item[open] > .faq-body, .faq-item[open] > .faq-answer {
  animation: faq-reveal .22s ease-out;
}
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ *
 * 14. DRIVER NOTE  (editorial first-person quote — the AI-can't-fake layer)
 * ------------------------------------------------------------------ */
.driver-note, .driver-note-inline {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 44px) clamp(22px, 3vw, 34px) clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  margin: var(--space-3) 0;
}
.driver-note::before {
  content: "\201C";
  position: absolute; top: 0.06em; left: 0.28em;
  font-family: var(--font-serif);
  font-size: 4.4rem; line-height: 1;
  color: var(--clay);
  opacity: 0.32;
  pointer-events: none;
}
.driver-note p, .driver-note blockquote, .driver-quote, .driver-note > q {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink);
}
.driver-note footer, .driver-note cite, .driver-note-attr, .driver-attr,
.driver-note-by, .driver-note-name, .driver-note-label {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.driver-note cite span, .driver-note-attr span, .driver-note footer span {
  color: var(--ink-3); font-weight: 500;
}
.driver-note-name { color: var(--clay); }
/* Optional circular avatar if a page ships one */
.driver-note .photo-ph, .driver-note img {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--clay); min-height: 0; object-fit: cover;
  float: left; margin: 0 16px 8px 0;
}

/* ------------------------------------------------------------------ *
 * 15. BREADCRUMB
 * ------------------------------------------------------------------ */
.breadcrumb { font-size: var(--fs-sm); padding-block: 12px; }
/* Pre-existing defect, not a regression of the night cover: most pages
   ship the breadcrumb WITHOUT an inner .container, so it rendered hard
   against x=0 while every other block on the page sat on the gutter.
   Only the container-less variants are given the measure, so the pages
   that do wrap their trail keep exactly the layout they had. */
.breadcrumb:not(:has(> .container)) {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0; margin: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.breadcrumb li + li::before, .breadcrumb span[aria-hidden="true"] { content: "/"; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--clay); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink-2); font-weight: 600; }
/* When breadcrumb is a flat run of <a> + <span>/ (teotihuacan/prices) */
.breadcrumb:not(:has(ol)) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumb:not(:has(ol)) span[aria-hidden="true"] { color: var(--ink-3); }

/* ------------------------------------------------------------------ *
 * 16. PHOTO PLACEHOLDER  (elegant, never a broken frame)
 * ------------------------------------------------------------------ */
.photo-ph, .hero-photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: var(--radius);
  color: var(--ink-3);
  text-align: center;
  padding: 24px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(-45deg, transparent 0 16px, color-mix(in srgb, var(--clay) 6%, transparent) 16px 17px),
    linear-gradient(140deg, var(--surface-2), var(--clay-tint));
  overflow: hidden;
}
.photo-ph::before, .hero-photo::before {
  content: "";
  width: 46px; height: 46px; margin-bottom: 10px;
  background: var(--clay);
  opacity: 0.5;
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm0 12h16v-3l-4-4-5 5-3-2-4 4Zm3-6a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/svg%3E");
          mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm0 12h16v-3l-4-4-5 5-3-2-4 4Zm3-6a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/svg%3E");
}
.photo-ph-label, .ph-note { position: relative; z-index: 1; }
.photo-ph--wide { aspect-ratio: 16 / 9; min-height: 0; }
.photo-ph--square { aspect-ratio: 1 / 1; min-height: 0; }

/* ------------------------------------------------------------------ *
 * 16b. PHOTOS  (editorial figure + caption)
 * ------------------------------------------------------------------ */
.photo {
  margin: var(--space-3) 0;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;                 /* respeta el width/height intrínseco: sin CLS */
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);  /* placeholder cálido mientras carga */
}
.photo figcaption {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.55;
  padding-left: 14px;
  border-left: 2px solid var(--clay);
}

/* ------------------------------------------------------------------ *
 * 17. CARDS, LINK GRIDS & RELATED LISTS  (route-cards, link-grid, etc.)
 * ------------------------------------------------------------------ */
.route-cards, .link-grid, .nf-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: clamp(16px, 2.2vw, 24px);
}
@media (min-width: 620px) {
  .route-cards, .link-grid { grid-template-columns: repeat(2, 1fr); }
  .nf-grid { grid-template-columns: repeat(2, 1fr); }
}
.route-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 clamp(16px, 2vw, 22px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.route-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.route-card .photo-ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.route-card h3 { padding-inline: clamp(16px, 2vw, 22px); margin-bottom: 6px; }
.route-card h3 a { text-decoration: none; color: var(--ink); }
.route-card h3 a:hover { color: var(--clay); }
.route-card p { padding-inline: clamp(16px, 2vw, 22px); color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.route-card--featured { border-color: color-mix(in srgb, var(--clay) 30%, var(--line)); }
.route-card--featured .photo-ph { border-bottom-color: color-mix(in srgb, var(--clay) 30%, var(--line)); }

/* Text link lists */
.link-list, .related-links, .related-routes, .route-links, .use-list, .fact-list, .nf-links ul, .nf-grid {
  list-style: none; padding: 0; margin: 0;
}
.related-links, .related-routes, .route-links {
  display: grid; gap: 8px;
}
.related-links li, .related-routes li, .route-links li, .link-list li { margin: 0; }
.related-links a, .related-routes a, .route-links a, .link-list a {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
}
.related-links a::before, .related-routes a::before, .route-links a::before {
  content: ""; width: 9px; height: 9px; flex: 0 0 auto;
  background: var(--clay);
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.6 5.4 15.2 12l-6.6 6.6-1.7-1.7L11.8 12 6.9 7.1z'/%3E%3C/svg%3E");
          mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.6 5.4 15.2 12l-6.6 6.6-1.7-1.7L11.8 12 6.9 7.1z'/%3E%3C/svg%3E");
}
.related-links a:hover, .related-routes a:hover, .route-links a:hover { text-decoration: underline; }
.use-list li, .fact-list li { position: relative; padding-left: 26px; }
.use-list li::before, .fact-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 15px; height: 15px;
  background: var(--book);
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
          mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* Small chips / badges / ratings */
.badge, .rating-line {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
}
.rating-line { color: var(--gold-deep); }
@media (prefers-color-scheme: dark) { .rating-line { color: var(--gold); } }

/* ------------------------------------------------------------------ *
 * 18. LONGFORM  (final data-nosnippet prose)
 * ------------------------------------------------------------------ */
.longform {
  color: var(--ink-2);
  padding-block: clamp(36px, 5vw, 60px);
}
.longform .container { max-width: 74ch; }
.longform h2, .longform h3 { color: var(--ink); }
.longform h2 { margin-top: 0; }
.longform p { margin-bottom: 1.1rem; max-width: 72ch; }
.intro .lead, .lead {
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 62ch;
}
.intro-links, .prices-cta, .routes-cta { color: var(--ink-2); }
.lede { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }

/* Generic two-item feature grids (why-grid / why-item / cta-block) */
.why-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-item h3 { margin-bottom: 6px; }
.why-item p { color: var(--ink-2); margin: 0; }
.cta-block {
  background: var(--clay-tint);
  border: 1px solid color-mix(in srgb, var(--clay) 20%, var(--line));
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  margin: var(--space-3) 0;
}

/* ------------------------------------------------------------------ *
 * 19. FOOTER  (premium dark)
 * ------------------------------------------------------------------ */
.site-footer {
  background: var(--footer-bg);
  color: color-mix(in srgb, var(--footer-ink) 82%, var(--footer-bg));
  padding-block: clamp(40px, 6vw, 64px) 28px;
  font-size: 0.92rem;
  margin-top: clamp(40px, 6vw, 72px);
}
.site-footer .container { display: grid; gap: 28px; }
.footer-cols, .footer-nav {
  display: grid; gap: 22px;
}
@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
.site-footer h2, .site-footer h3, .site-footer h4, .footer-col > strong, .footer-usp {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--footer-ink) 55%, var(--footer-bg));
  margin: 0 0 12px;
  font-weight: 700;
}
.footer-col ul, .footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: color-mix(in srgb, var(--footer-ink) 86%, var(--footer-bg)); text-decoration: none; }
.site-footer a:hover { color: var(--clay-on-ink); text-decoration: underline; }
/* Footer nav that is a flat run of <a> + <span>/ separators */
.footer-nav:not(:has(ul)) {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
}
.footer-nav:not(:has(ul)) span[aria-hidden="true"] { color: color-mix(in srgb, var(--footer-ink) 35%, var(--footer-bg)); }

.footer-brand, .footer-mark {
  font-family: var(--font-serif);
  color: var(--footer-ink);
}
.footer-brand, .footer-brand .brand, .footer-brand .brand-text, .footer-brand .brand-word,
.footer-brand .brand-name, .footer-brand span, .footer-brand strong { color: var(--footer-ink); }
.footer-brand .brand-accent, .footer-mark { color: var(--clay-on-ink); }
.footer-tag, .footer-tagline, .footer-claim, .footer-model, .footer-vehicle-note {
  color: color-mix(in srgb, var(--footer-ink) 72%, var(--footer-bg));
  margin: 10px 0 0;
}
/* "Priced per vehicle, not per person" reads as a pill */
.footer-tagline strong, .footer-claim strong, .footer-tag strong {
  display: inline-block;
  margin-top: 8px;
  background: color-mix(in srgb, var(--clay-on-ink) 26%, transparent);
  color: var(--footer-ink);
  border: 1px solid color-mix(in srgb, var(--clay-on-ink) 45%, transparent);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.footer-contact, .footer-note, .footer-fineprint, .footer-vehicle {
  color: color-mix(in srgb, var(--footer-ink) 60%, var(--footer-bg));
  font-size: var(--fs-sm);
  line-height: 1.7;
  font-style: normal;
}
.footer-contact a { color: var(--clay-on-ink); }
.footer-legal, .footer-fineprint {
  border-top: 1px solid color-mix(in srgb, var(--footer-ink) 16%, var(--footer-bg));
  padding-top: 18px;
  color: color-mix(in srgb, var(--footer-ink) 48%, var(--footer-bg));
  font-size: var(--fs-xs);
}
/* .tagline/.hero-tagline also appear inside the footer on some pages, where
   --clay-deep is dark-on-dark (measured 2.44:1). Repaint on that surface. */
.site-footer .tagline, .site-footer .hero-tagline { color: var(--clay-on-ink); }

.footer-todo, .ph-note, .todo { display: none; }

/* Long CTA labels must wrap on narrow screens instead of stretching the
   document (measured: one 406px button forced a 445px page at 390px). */
@media (max-width: 600px) {
  .btn, .btn-book, .btn-secondary, .nf-btn { white-space: normal; }
}   /* dev TODO notes never render */

/* ------------------------------------------------------------------ *
 * 20. 404  (.nf-*)
 * ------------------------------------------------------------------ */
.nf-wrap {
  min-height: 78vh;
  display: grid; place-items: center;
  padding: clamp(40px, 8vw, 96px) var(--gutter);
}
.nf-card {
  width: 100%; max-width: 560px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 48px);
}
.nf-brand { justify-content: center; margin: 0 0 18px; }
.nf-code {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 700; color: var(--clay); line-height: 1; margin: 0;
  letter-spacing: -0.02em;
}
.nf-title { margin: 6px 0 10px; }
.nf-lede { color: var(--ink-2); max-width: 44ch; margin-inline: auto; }
.nf-cta { margin: 22px 0; }
.nf-links { margin-top: 20px; text-align: left; }
.nf-note { color: var(--ink-3); font-size: var(--fs-sm); margin-top: 18px; }

/* ------------------------------------------------------------------ *
 * 21. UTILITIES
 * ------------------------------------------------------------------ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--clay);
  margin-bottom: 10px;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.stack > * + * { margin-top: var(--space-3); }
.grid-2 { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.year { font-weight: inherit; color: var(--ink-3); }

/* Generic layered content spacing (pages using .layer/.row-group) */
.layer + .layer, .row-group + .row-group { margin-top: var(--space-3); }

/* Portátiles cortos (≈800–900px de alto): el cotizador mide 591px y su CTA
   quedaba bajo el pliegue. Se comprime SOLO aquí — el móvil y los monitores
   altos conservan el aire original. */
@media (max-height: 920px) and (min-width: 900px) {
  .quoter__form { gap: 12px; }
  .quoter__price { padding: 10px 16px; }
  .quoter__price .quoter__amount,
  .quoter__price strong { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
  .quoter__head { margin-bottom: 2px; }
  .quoter__reassure { margin-top: 2px; }
}

/* ==================================================================== *
 * 22. EDITORIAL COMPONENTS  —  the kit the 19 interior pages need
 * ====================================================================
 *
 * WHY THIS SECTION EXISTS
 * The home cover (§6B/§6C) was rebuilt as a magazine cover; the other 19
 * pages stayed 2,500–5,000-word text walls, seven of them without a
 * single image. The owner's note was exact: "solo me gustó el homepage,
 * lo demás puro aburrido texto." A page-by-page redesign would produce
 * 19 dialects. This is the shared vocabulary instead — the SAME night
 * language (bled photography under a measured scrim, monumental serif,
 * italic clay tail, gold filet, elevated dark surfaces for data), sized
 * for an interior page rather than a cover.
 *
 * NOTHING HERE IS AUTOMATIC. Every component is opt-in by class, so the
 * 20 pages that ship today render byte-identical until an author adds
 * the markup. The only rules that touch existing markup are the
 * §22.6 refinements to .price-table and .faq, which are deliberately
 * placed after their §9/§13 base so they win the cascade with no
 * !important and no change to structure or ARIA.
 *
 * --------------------------------------------------------------------
 * USAGE GUIDE — minimum HTML for each component
 * --------------------------------------------------------------------
 *
 * 1) INTERIOR PHOTO HERO  (one per page, replaces .hero on route pages)
 *    The <img> is the LCP: intrinsic width/height, fetchpriority="high",
 *    NO loading="lazy". It is the ONE eager image on the page.
 *
 *    <section class="hero hero--photo" id="book">
 *      <figure class="hero-media">
 *        <img src="/assets/img/teotihuacan-pyramid-of-the-sun.webp"
 *             srcset="/assets/img/teotihuacan-pyramid-of-the-sun-800.webp 800w,
 *                     /assets/img/teotihuacan-pyramid-of-the-sun.webp 1600w"
 *             sizes="100vw" width="1600" height="893"
 *             alt="…" fetchpriority="high" decoding="async">
 *        <span class="hero-scrim" aria-hidden="true"></span>
 *      </figure>
 *      <div class="container">
 *        <nav class="breadcrumb" aria-label="Breadcrumb"> … </nav>
 *        <p class="hero-kicker">Day trip · 50 km</p>
 *        <h1>Private Driver … <span class="year">(2026)</span></h1>
 *        <p class="ht-tail">Flat price <em>per vehicle</em></p>   ← optional
 *        <p class="hero-lead">One citable sentence with <strong>$160</strong>.</p>
 *      </div>
 *    </section>
 *
 *    Photo shape: works with the 1600×893 landscapes AND the 1600×1073
 *    vehicle frames — the media is an absolutely-positioned cover layer,
 *    so the file's own ratio never dictates the band height. If the
 *    subject sits high or low in frame, add .is-focus-top /
 *    .is-focus-bottom on the section.
 *
 * 2) KEYFACT — one number that breaks the text wall
 *    <aside class="keyfact">
 *      <p class="keyfact__num">$160<span class="keyfact__unit">USD</span></p>
 *      <p class="keyfact__label">Round trip … not per person.</p>
 *    </aside>
 *    Add .keyfact--float to let long prose wrap around it (≥1000px only).
 *
 * 3) CALLOUT — the "ojo con esto" (base in §12; variants here)
 *    <aside class="callout callout--tip">
 *      <p class="callout__title">Book the early slot</p>
 *      <p>…</p>
 *    </aside>
 *    Variants: .callout--tip (clay, default) · .callout--warn (danger)
 *              .callout--gold (the existing .bundle look, named)
 *
 * 4) EDITORIAL SPLIT — text beside a half-page photo, stacks on mobile
 *    <div class="editorial-split">
 *      <div class="editorial-split__text"><h2>…</h2><p>…</p></div>
 *      <figure class="editorial-split__media">
 *        <img … width="1600" height="893" loading="lazy" decoding="async">
 *        <figcaption>…</figcaption>
 *      </figure>
 *    </div>
 *    Add .editorial-split--reverse to put the photo first (alternate it
 *    down the page so the eye zig-zags instead of scanning a column).
 *
 * 5) STAT ROW — 2–4 hard numbers in a hairline band
 *    <dl class="stat-row">
 *      <div><dt>From</dt><dd>$160</dd></div>
 *      <div><dt>Duration</dt><dd>7 h <small>round trip</small></dd></div>
 *      <div><dt>Distance</dt><dd>50 km</dd></div>
 *      <div><dt>Capacity</dt><dd>6 <small>SUV</small></dd></div>
 *    </dl>
 *
 * 6) PULL PHOTO — full-width breather between sections.
 *    MUST be a direct child of <main> or <section>, NEVER inside
 *    .container (it bleeds by being full-width, not by negative margins,
 *    so it cannot create the 100vw scrollbar overflow bug).
 *    <figure class="pull-photo">
 *      <img … width="1600" height="893" loading="lazy" decoding="async">
 *      <figcaption>…</figcaption>
 *    </figure>
 *
 * 7) PRICE TABLE + FAQ — no new markup, but ONE thing to do:
 *    §22.7 gives the money cell the display serif, and it hooks on a
 *    class, because CSS cannot see that "$160" is a price and "Fuel,
 *    tolls, parking" is not. Several pages already mark them; the big
 *    table on /private-driver-mexico-city-prices does not, so its
 *    numbers still read as body text. When you touch a price table, add
 *    the hook to the money cells and nothing else:
 *        <td class="price">$160</td>
 *    (.price-table__flat and .price-table__pp work identically.)
 *    Section rows — <tr class="row-group"><th colspan> — and
 *    <tr class="row-highlight"> are styled automatically.
 *    The FAQ needs no changes at all: §22.8 restyles the existing
 *    <details class="faq-item"> in place.
 *
 * RULES THAT STILL APPLY: green (--cta) is reserve/pay only — nothing in
 * this section is green. Every image except the hero is loading="lazy".
 * Every ink below was measured against the composited pixel, not against
 * the CSS value.
 * ------------------------------------------------------------------ */


/* ------------------------------------------------------------------ *
 * 22.1  .hero--photo  —  the interior photo hero
 *
 * PROBLEM: 19 pages open on a flat clay-tint band while the home opens
 * on a photograph. The interior page inherits none of the cover's
 * authority, so the whole site reads as "one good page + 19 documents".
 *
 * WHY IT IS NOT JUST .hero--night REUSED: a cover fills the viewport;
 * an interior page must show that it IS an interior page and hand the
 * reader to the content fast. So the band is capped at ~430px instead
 * of running to the fold, the display type is one step down the scale
 * (the H1 here carries real keywords and runs long — 62px would break
 * it over four lines), and the breadcrumb lives INSIDE the band.
 *
 * SCRIM — and this is the part that had to be rebuilt once, so read it
 * before changing it:
 *
 * The first version ramped a single gradient against the BAND: dark at
 * the bottom, clear by 74% up. It measured 1.09:1 on the gold kicker
 * over the Teotihuacan sky. The reason is the thing that makes an
 * interior hero different from a cover: the content block here (crumb +
 * kicker + a two-line keyword H1 + tail + lead + dateline + badges) runs
 * ~460px, which is taller than the band it sits in. A ramp keyed to the
 * band therefore leaves the TOP of the type — the crumb and the 13px
 * gold kicker, the two most expensive inks on the page — sitting in the
 * band's clear zone, which is exactly where the sky is.
 *
 * Piling on alpha would have "fixed" it at α .95 across the whole frame,
 * which is the failure ART-DIRECTION §5 names: if you need that much
 * scrim, the type is over the wrong part of the photograph.
 *
 * So the scrim is keyed to the CONTENT, not to the band. The section is
 * a two-row grid; row 2 is auto, so its height IS the content block's
 * height, and ::before is placed in row 2 as a grid item. The plate
 * therefore grows and shrinks with whatever copy a page ships — a short
 * hero gets a small plate and a lot of photograph, a long one gets a
 * tall plate — and no page can ever put a glyph outside it. Row 1 (1fr)
 * is pure photograph and takes no scrim beyond the frame vignette.
 *
 * Peak α is .77 — well under the .90 ceiling — and it is only reached
 * where type actually is.
 *
 * That .77 is a measured number, not a taste. Every photograph in
 * /assets/img was ranked by the luminance of the strip the plate lands
 * on; the brightest is private-driver-van-mexico-city (mean L 0.34,
 * p95 0.82), roughly 2.4x brighter there than the Teotihuacan frame.
 * The plate was then measured per-pixel against the five brightest with
 * the glyphs hidden, at 390 and 1440. Worst case in the whole library is
 * the 13px gold kicker over the van at 5.32:1 against a 4.5 requirement
 * — an 18% margin, and that is WITHOUT the --bright modifier below.
 *
 * If you are tempted to raise it: don't, unless a NEW photograph
 * measures worse than the van. Every extra point of alpha is paid for
 * by the photograph, and a dark grey rectangle over an invisible image
 * is the text wall this whole section exists to kill.
 * ------------------------------------------------------------------ */
.hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  /* Row 1 = photograph only (absorbs the slack). Row 2 = the type block,
     auto-sized, which is what the scrim plate is measured against. */
  grid-template-rows: 1fr auto;
  min-height: clamp(300px, 40vw, 430px);
  padding-block: clamp(30px, 4.4vw, 56px) clamp(26px, 3.8vw, 48px);
  background: var(--night);
  color: var(--night-ink);
  border-bottom: 0;

  /* TOKEN REMAP — identical contract to §6B. --ink-3/--line/--clay flip
     with the theme; this surface does not. Without the remap the
     breadcrumb resolved to #6E6459 over a photograph in light mode.
     --cta/--cta-deep/--on-cta stay untouched: the book button is green
     everywhere, including here (rule of gold, §1). */
  --ink:       var(--night-ink);
  --ink-2:     var(--night-ink-2);
  --ink-3:     var(--night-ink-3);
  --line:      var(--night-line);
  --line-2:    var(--night-line-2);
  --paper:     var(--night);
  --surface:   var(--night-2);
  --surface-2: var(--night-3);
  --clay:      var(--clay-on-ink);
  --clay-deep: #EFA985;
  --clay-tint: rgba(224, 137, 95, .14);
  --gold:      var(--gold-on-ink);
  --gold-deep: var(--gold-on-ink);
  --book:      var(--gold-on-ink);
  --ok:        var(--gold-on-ink);
  --ring:      var(--gold-on-ink);
}
/* THE PLATE. §6's .hero::before is the paper hero's contour texture; here
   the photograph is the texture, so the pseudo-element is repurposed
   rather than switched off — every property that rule sets is reset.
   Placed in grid row 2, so it is exactly as tall as the type block.
   The negative margins let it bleed past the section's own padding: up
   into a soft fade tail over the photograph, down over the bottom
   padding to the seam. overflow:hidden on the section clips both. */
.hero--photo::before {
  content: "";
  grid-row: 2;
  grid-column: 1;
  position: static;
  inset: auto;
  z-index: 1;
  opacity: 1;
  background-image: none;
  margin: -132px 0 -140px;
  background: linear-gradient(to bottom,
    rgba(var(--night-rgb), 0)   0px,
    rgba(var(--night-rgb), .16) 46px,
    rgba(var(--night-rgb), .46) 86px,
    rgba(var(--night-rgb), .66) 116px,
    rgba(var(--night-rgb), .74) 146px,
    rgba(var(--night-rgb), .77) 190px,
    rgba(var(--night-rgb), .77) 100%);
  pointer-events: none;
}

/* Same gold→clay filet that closes the night cover: night ends against
   warm paper on a drawn edge, never on a fade. */
.hero--photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  z-index: 4;
  background: linear-gradient(90deg,
    var(--clay-on-ink) 0%,
    var(--gold-on-ink) 38%,
    rgba(217, 174, 94, .35) 66%,
    transparent 94%);
}

/* The photograph: an absolutely-positioned cover layer at every width,
   so a 1600×893 landscape and a 1600×1073 vehicle frame produce exactly
   the same band. object-fit does the cropping; the file never sets the
   height. (The home hero flips between a flow band and a fill layer at
   900px — it needs to, it is the fold. Here one behaviour is both
   simpler and impossible to break at an untested width.) */
.hero--photo > .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  background: var(--night);
}
.hero--photo .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
.hero--photo.is-focus-top    .hero-media img { object-position: 50% 22%; }
.hero--photo.is-focus-bottom .hero-media img { object-position: 50% 74%; }

/* The frame vignette — and ONLY the frame. Legibility is the plate's job
   (above), so this stays light enough that the photograph is still a
   photograph: it seats the top edge under the sticky header and lets the
   image die into the seam instead of stopping at it. Peak .34. */
.hero--photo .hero-scrim {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(var(--night-rgb), .34) 0%,
    rgba(var(--night-rgb), .12) 16%,
    rgba(var(--night-rgb), .04) 42%,
    rgba(var(--night-rgb), .10) 78%,
    rgba(var(--night-rgb), .24) 100%);
}
/* ESCAPE HATCH, not a default. Every photograph currently in the library
   clears AA on the plate above, including the vehicle frames — so do NOT
   reach for this just because a photo "looks bright". Add it only when a
   NEW image measures under ~5:1 on the 13px gold kicker, which is the
   first ink to fail. Still under the .90 ceiling. */
.hero--photo--bright::before {
  background: linear-gradient(to bottom,
    rgba(var(--night-rgb), 0)   0px,
    rgba(var(--night-rgb), .24) 46px,
    rgba(var(--night-rgb), .58) 86px,
    rgba(var(--night-rgb), .76) 116px,
    rgba(var(--night-rgb), .83) 146px,
    rgba(var(--night-rgb), .86) 190px,
    rgba(var(--night-rgb), .86) 100%);
}

/* The type block. Shares row 2 with the plate, so the two are the same
   height by construction — there is no number to keep in sync. */
.hero--photo > .container {
  position: relative;
  grid-row: 2;
  grid-column: 1;
  z-index: 2;
}

/* GUARD. Everything above assumes ONE .container child — that is what
   makes row 2 equal to the content block. But §6 deliberately supports a
   container-less .hero (the airport and is-it-safe pages ship h1/p as
   direct children), and if someone builds .hero--photo that way the
   children auto-place into rows 1, 3, 4… and land OUTSIDE the plate,
   i.e. straight onto the photograph. That failure is invisible in review
   and only shows up as unreadable type on one page.
   So: when there is no .container, the content-sized plate is switched
   off and the frame vignette becomes a full-band scrim instead. It costs
   the photograph — which is exactly why .container is the documented
   form — but it can never be illegible. */
.hero--photo:not(:has(> .container))::before { display: none; }
.hero--photo:not(:has(> .container)) .hero-scrim {
  background: linear-gradient(to top,
    rgba(var(--night-rgb), .88) 0%,
    rgba(var(--night-rgb), .86) 30%,
    rgba(var(--night-rgb), .80) 52%,
    rgba(var(--night-rgb), .68) 70%,
    rgba(var(--night-rgb), .52) 86%,
    rgba(var(--night-rgb), .46) 100%);
}
.hero--photo:not(:has(> .container)) > :where(h1, h2, p, nav, div, ul, .hero-cta) {
  position: relative;
  z-index: 2;
}
.hero--photo > .container > * { max-width: 46ch; }

/* Breadcrumb ON the photograph. It keeps §15's markup and ARIA; only the
   ink changes. --ink-3 remaps to --night-ink-3 (#B5A996) which is the
   thinnest ink in the set — at 15px over a photograph it is the first
   thing to fail, so the trail is lifted one step to --night-ink-2 and
   the current page to full --night-ink. */
.hero--photo .breadcrumb {
  max-width: none;
  padding: 0;
  margin: 0 0 clamp(14px, 2vw, 20px);
  width: auto;
}
.hero--photo .breadcrumb a { color: var(--night-ink-2); }
.hero--photo .breadcrumb a:hover { color: var(--gold-on-ink); }
.hero--photo .breadcrumb [aria-current="page"] { color: var(--night-ink); }
.hero--photo .breadcrumb li + li::before,
.hero--photo .breadcrumb span[aria-hidden="true"] { color: var(--night-ink-3); }

/* Kicker: §6B's rule-and-caps overline, reused verbatim so the two hero
   families are visibly the same system. */
.hero--photo .hero-kicker { margin-bottom: clamp(12px, 1.6vw, 18px); }

/* The H1. Monumental for an interior page = one step under the cover.
   These headlines carry the keyword ("Private Driver from Mexico City to
   Teotihuacan (2026)"), so the ceiling is set by how it breaks, not by
   how big it can go: at --fs-3xl the Teotihuacan H1 ran to four lines
   and pushed the lead under the band. */
.hero--photo h1,
.hero--photo .hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 1.25rem + 2.9vw, 3.15rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--night-ink);
  text-wrap: balance;
}
.hero--photo h1 .year { color: var(--night-ink-3); font-weight: 400; }

/* The italic clay remate that breaks the symmetry (§6B's .ht-tail). */
.hero--photo .ht-tail {
  display: block;
  margin: clamp(10px, 1.3vw, 15px) 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, .92rem + .7vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--clay-on-ink);
}
.hero--photo .ht-tail em { font-style: normal; color: var(--night-ink); }

.hero--photo .hero-rule {
  height: 1px;
  border: 0;
  margin: clamp(15px, 1.8vw, 22px) 0 clamp(14px, 1.6vw, 18px);
  background: linear-gradient(90deg,
    var(--night-line-2) 0%, var(--night-line) 46%, transparent 100%);
}

/* The citable first sentence. */
.hero--photo .hero-lead,
.hero--photo .hero-sub,
.hero--photo .tagline,
.hero--photo .hero-tagline {
  margin: clamp(12px, 1.6vw, 18px) 0 0;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: clamp(.97rem, .93rem + .22vw, 1.06rem);
  line-height: 1.55;
  color: var(--night-ink-2);
  max-width: 46ch;
}
.hero--photo .hero-lead strong,
.hero--photo .hero-sub strong {
  color: var(--night-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hero--photo .dateline,
.hero--photo .page-meta,
.hero--photo .byline { color: var(--night-ink-3); }

/* Trust badges become the cover's editorial marks, not form pills, so a
   page that already ships .trust-badges upgrades for free. */
.hero--photo .trust-badges { gap: 8px 10px; margin-top: clamp(16px, 2vw, 22px); max-width: none; }
.hero--photo .trust-badges > li,
.hero--photo .trust-badges > span,
.hero--photo .trust-badge {
  background: rgba(250, 247, 241, .07);
  border-color: var(--night-line-2);
  color: var(--night-ink-2);
  box-shadow: none;
}
.hero--photo .trust-badges > li::before,
.hero--photo .trust-badges > span::before,
.hero--photo .trust-badge::before { background: var(--gold-on-ink); }

/* .hero-cta on the photograph: the green book button is untouched; the
   secondary button needs a light outline to exist over an image. */
.hero--photo .btn-secondary {
  border-color: var(--night-line-2);
  color: var(--night-ink);
  background: rgba(250, 247, 241, .06);
}
.hero--photo .btn-secondary:hover { border-color: var(--gold-on-ink); color: var(--night-ink); }

/* Short phones: the band must not eat the fold. */
@media (max-width: 480px) {
  .hero--photo { min-height: 286px; }
  .hero--photo > .container > * { max-width: none; }
}


/* ------------------------------------------------------------------ *
 * 22.2  .keyfact  —  the numeric pull-quote
 *
 * PROBLEM: the money ($160), the distance (50 km) and the deadline (24 h)
 * are the three things a reader actually came for, and on these pages
 * they are buried mid-paragraph in body copy at 17px. A pull-quote is
 * the magazine answer: lift the number OUT of the column, set it in the
 * display serif, and let it be the thing the eye lands on when it skims.
 *
 * The gold top filet (not clay) is deliberate: clay is the link/accent
 * colour and is already doing work in the prose; gold is the site's
 * "fine detail" token and reads as a data mark rather than a link.
 * ------------------------------------------------------------------ */
.keyfact {
  display: grid;
  gap: 8px;
  margin: var(--space-3) 0;
  padding: clamp(18px, 2.2vw, 24px) clamp(18px, 2.4vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.keyfact__num {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 1.6rem + 3.2vw, 3.5rem);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -0.032em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* The unit rides the number's baseline without competing with it. */
.keyfact__unit {
  font-family: var(--font-sans);
  font-size: .3em;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: .34em;
  vertical-align: .5em;
}
.keyfact__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.keyfact__label strong { color: var(--ink); }
/* Optional eyebrow above the number when the label alone is ambiguous. */
.keyfact__key {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
}
/* Float variant: only where a 68ch column has room to wrap around it.
   Capped in both ch and % so it can never widen the document. */
@media (min-width: 1000px) {
  .keyfact--float {
    float: right;
    width: min(300px, 34%);
    margin: 4px 0 22px 30px;
  }
}


/* ------------------------------------------------------------------ *
 * 22.3  .callout  —  variants for the "ojo con esto"
 *
 * PROBLEM: §12 already gives a clay-ruled band, but every warning on the
 * site uses the same one, so a friendly tip and a hard restriction look
 * identical — and neither has a title, so the reader has to read the
 * paragraph to find out whether it matters.
 *
 * Base .callout is untouched; these are additive. .callout--tip is a
 * naming alias for the default so authors can be explicit.
 * ------------------------------------------------------------------ */
.callout__title {
  margin: 0 0 .5rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay-deep);
  display: flex;
  align-items: center;
  gap: 9px;
}
@media (prefers-color-scheme: dark) { .callout__title { color: var(--clay); } }
.callout__title::before {
  content: "";
  width: 15px; height: 15px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 21c0 .6.4 1 1 1h4c.6 0 1-.4 1-1v-1H9v1Zm3-19A7 7 0 0 0 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-2.3c1.8-1.2 3-3.3 3-5.7a7 7 0 0 0-7-7Z'/%3E%3C/svg%3E");
          mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 21c0 .6.4 1 1 1h4c.6 0 1-.4 1-1v-1H9v1Zm3-19A7 7 0 0 0 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-2.3c1.8-1.2 3-3.3 3-5.7a7 7 0 0 0-7-7Z'/%3E%3C/svg%3E");
}

/* WARN — a real restriction, not advice. Uses --danger, which is AA on
   paper in both themes (5.35:1 light / 7.18:1 dark, measured). */
.callout--warn {
  background: color-mix(in srgb, var(--danger) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--danger) 26%, var(--line));
  border-left-color: var(--danger);
}
.callout--warn .callout__title { color: var(--danger); }
.callout--warn .callout__title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 1 21h22L12 2Zm1 15h-2v-2h2v2Zm0-4h-2V9h2v4Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 1 21h22L12 2Zm1 15h-2v-2h2v2Zm0-4h-2V9h2v4Z'/%3E%3C/svg%3E");
}
.callout--warn strong { color: var(--danger); }

/* GOLD — the .bundle look, given a name so upsells stop borrowing a
   class that means something else. */
.callout--gold {
  border-left-color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 26%, var(--line));
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
}
.callout--gold .callout__title { color: var(--gold-deep); }
.callout--gold .callout__title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 3 6.3 6.9.9-5 4.8 1.3 6.9L12 18.6 5.8 21.8 7.1 15l-5-4.8 6.9-.9L12 2Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 3 6.3 6.9.9-5 4.8 1.3 6.9L12 18.6 5.8 21.8 7.1 15l-5-4.8 6.9-.9L12 2Z'/%3E%3C/svg%3E");
}
.callout--gold strong { color: var(--gold-deep); }


/* ------------------------------------------------------------------ *
 * 22.4  .editorial-split  —  text beside a half-page photo
 *
 * PROBLEM: a full-bleed photo every 400 words is a slideshow, and a
 * caption-width thumbnail is a stock-photo tic. The magazine move in
 * between is the split: the picture sits AT the reading level, holds
 * half the measure, and the paragraph beside it stays a paragraph.
 *
 * minmax(0, 1fr) on both tracks, not 1fr: a long unbroken token (a URL,
 * "Teotihuacán-Otumba") in the text column would otherwise set the
 * track's min-content width and push the row past the viewport.
 * ------------------------------------------------------------------ */
.editorial-split {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin: var(--space-4) 0;
}
@media (min-width: 860px) {
  .editorial-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .editorial-split--wide-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  /* Alternate down the page so the eye zig-zags instead of scanning. */
  .editorial-split--reverse > .editorial-split__media { order: -1; }
}
.editorial-split__text > :first-child { margin-top: 0; }
.editorial-split__text > :last-child { margin-bottom: 0; }
.editorial-split__text p { color: var(--ink-2); }
.editorial-split__text h2,
.editorial-split__text h3 { color: var(--ink); }
.editorial-split__media { margin: 0; min-width: 0; }
.editorial-split__media img {
  width: 100%;
  height: auto;                    /* honours the intrinsic ratio: no CLS */
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);    /* warm placeholder while it loads */
}
.editorial-split__media figcaption {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-2);
  padding-left: 14px;
  border-left: 2px solid var(--clay);
}


/* ------------------------------------------------------------------ *
 * 22.5  .stat-row  —  2–4 hard numbers in one hairline band
 *
 * PROBLEM: "from $160, about 7 hours, 50 km each way, up to 6 people"
 * is the whole offer, and on these pages it is a sentence. As a band it
 * is scannable in one fixation, quotable by an AI answer engine, and it
 * gives the page a horizontal beat between two vertical text blocks.
 *
 * <dl> with a wrapping <div> per pair is the accessible structure (a
 * name/value group); the 1px gap over a --line background draws the
 * hairline grid without a border on every cell, so no double rules and
 * no sub-pixel seams.
 * ------------------------------------------------------------------ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: var(--space-3) 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
}
/* An odd last cell would leave a hole in the 2-up phone grid. */
@media (max-width: 719px) {
  .stat-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.stat-row > div,
.stat-row > .stat {
  margin: 0;
  padding: clamp(14px, 1.8vw, 20px) clamp(14px, 2vw, 22px);
  background: var(--surface);
  min-width: 0;
}
.stat-row dt {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.3;
}
.stat-row dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;   /* the figures must column up */
}
.stat-row dd small,
.stat-row .stat__note {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}
/* On a dark editorial band (inside .hero--photo) the remap in §22.1
   already carries this component; nothing extra is needed. */


/* ------------------------------------------------------------------ *
 * 22.6  .pull-photo  —  the full-width breather
 *
 * PROBLEM: 3,000 words with no visual pause. One wide photograph
 * between sections resets the reader's eye and re-states what is being
 * sold, without pretending to be a hero.
 *
 * IT DOES NOT USE 100vw. The classic full-bleed trick
 * (width:100vw; margin-left:calc(50% - 50vw)) counts the scrollbar as
 * viewport, so on any platform with a classic scrollbar it produces
 * exactly the horizontal overflow this codebase forbids. Instead the
 * figure is placed OUTSIDE .container and is simply width:100% — the
 * bleed comes from where it sits in the DOM, which cannot overflow.
 * The caption re-enters the measure on its own gutter.
 * ------------------------------------------------------------------ */
.pull-photo {
  position: relative;
  margin: clamp(36px, 5vw, 64px) 0;
  background: var(--surface-2);
}
.pull-photo img {
  width: 100%;
  height: clamp(210px, 32vw, 400px);
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  border: 0;
  border-radius: 0;
}
.pull-photo.is-focus-top img    { object-position: 50% 22%; }
.pull-photo.is-focus-bottom img { object-position: 50% 76%; }
/* The gold filet marks it as a deliberate cut, matching the hero seam. */
.pull-photo::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg,
    var(--clay) 0%,
    var(--gold) 38%,
    color-mix(in srgb, var(--gold) 35%, transparent) 66%,
    transparent 94%);
}
.pull-photo figcaption {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--gutter) 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-3);
}
.pull-photo figcaption strong { color: var(--ink-2); }
/* Shallower variant for a pure rhythm break between two short sections. */
.pull-photo--slim img { height: clamp(150px, 20vw, 250px); }


/* ------------------------------------------------------------------ *
 * 22.7  .price-table refinement  (base in §9)
 *
 * PROBLEM: the table is correct and grey. Every row weighs the same, so
 * the price — the one cell anyone reads — has no more presence than the
 * vehicle's seat count, and the header does not read as a header.
 *
 * Placed after §9 so it wins on source order: no !important, no change
 * to .table-wrap, <caption>, scope="row" or any other structure the
 * accessibility of this table depends on.
 * ------------------------------------------------------------------ */
.price-table caption {
  font-weight: 600;
  color: var(--ink-2);
  padding-bottom: 14px;
}
.price-table thead th {
  background: var(--surface-2);
  letter-spacing: .085em;
  padding-block: 12px;
}
/* Row rhythm. Zebra makes a 12-row price list scannable across; it must
   not repaint .row-highlight (a deliberate gold emphasis) nor .row-group
   (a section heading, not data — see below). */
.price-table tbody tr:nth-child(even):not(.row-highlight):not(.row-group) {
  background: color-mix(in srgb, var(--surface-2) 45%, transparent);
}
/* SECTION ROWS. /private-driver-mexico-city-prices ships a 20-row table
   split by <tr class="row-group"><th colspan> into "Private day trips",
   "Airport transfers", "Hire a driver for the day". Those rows were
   inheriting the data-row treatment and the zebra, so the table read as
   one undifferentiated block — which is precisely the wall of grey this
   section is here to fix. They are headings, so they are set like the
   thead: caps, tracked, clay, on a tinted band. */
.price-table tbody tr.row-group th,
.price-table tbody tr:has(> th[colspan]) th {
  background: var(--clay-tint);
  color: var(--clay-deep);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-block: 11px;
  border-bottom: 1px solid color-mix(in srgb, var(--clay) 28%, var(--line));
}
@media (prefers-color-scheme: dark) {
  .price-table tbody tr.row-group th,
  .price-table tbody tr:has(> th[colspan]) th { color: var(--clay); }
}
.price-table tbody tr.row-group:hover,
.price-table tbody tr:has(> th[colspan]):hover { background: transparent; }
.price-table tbody th,
.price-table tbody td { padding-block: 15px; }
.price-table tbody th[scope="row"] { color: var(--ink); }
/* The price is the point: display serif, one size up, never wrapped. */
.price-table td.price-table__flat,
.price-table td .price,
.price-table .price {
  font-family: var(--font-serif);
  font-size: 1.16em;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* The per-person figure is supporting evidence for the flat price, so it
   sits directly under it in the muted ink rather than competing. */
.price-table td.price-table__pp { font-variant-numeric: tabular-nums; }
.price-table tbody tr:hover { background: color-mix(in srgb, var(--clay-tint) 70%, transparent); }
/* The wrap is the horizontal scroller (§9) — give it a visible edge so a
   phone user knows the table continues, without any JS. */
.table-wrap, .price-table-wrap { box-shadow: var(--shadow-sm); }


/* ------------------------------------------------------------------ *
 * 22.8  .faq refinement  (base in §13)
 *
 * PROBLEM: eight identical grey rectangles. Nothing tells the eye which
 * one is open, the question is set at nearly body weight, and the answer
 * floats free of its question once several are expanded.
 *
 * Fixes: the question gets display weight and room; the open item gets a
 * clay spine drawn as a positioned ::before (a real border-left would
 * shift the text 3px on every toggle); the answer gets a hairline that
 * ties it to its question. Native <details>, no JS, marker and
 * :focus-visible from §13 untouched.
 * ------------------------------------------------------------------ */
.faq-item { position: relative; }
.faq-item > summary,
.faq-item > .faq-title {
  padding: 17px 52px 17px 22px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color .15s ease, background-color .15s ease;
}
.faq-item > summary:hover { color: var(--clay); background: color-mix(in srgb, var(--clay-tint) 40%, transparent); }
.faq-item[open] > summary { color: var(--ink); }
/* The spine. Drawn, not bordered — see the note above. */
.faq-item[open]::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--clay);
  z-index: 1;
}
.faq-item > div,
.faq-item > .faq-body,
.faq-item > .faq-answer {
  padding: 0 22px 20px 22px;
  line-height: 1.62;
}
/* Tie the answer to its question with the same hairline the site uses
   for figure captions. */
.faq-item[open] > div,
.faq-item[open] > .faq-body,
.faq-item[open] > .faq-answer {
  margin: 0 22px 0 22px;
  padding: 2px 0 20px 16px;
  border-left: 1px solid var(--line);
}
.faq-item[open] > div > :last-child,
.faq-item[open] > .faq-body > :last-child,
.faq-item[open] > .faq-answer > :last-child { margin-bottom: 0; }
/* A FAQ block is a list of questions, so give it a section rhythm rather
   than the 10px gap of §13 when it carries more than a handful. */
.faq { gap: 12px; }

/* ================================================================== *
 * §20. FOOTER — "El Colofón" (Andén Nocturno, editorial + CTA)
 * Dark surface FIXED in both themes: paints only from --footer-bg /
 * --footer-ink / --clay-on-ink / --gold-on-ink / --cta. Never --ink/--paper.
 * All new classes are prefixed .ftr2-*; base overrides scoped .site-footer.ftr2.
 * Small text uses mixes >= 60% of --footer-ink -> AA 4.5:1.
 * ------------------------------------------------------------------ */

.site-footer.ftr2 {
  --ftr-line:      color-mix(in srgb, var(--footer-ink) 16%, var(--footer-bg));
  --ftr-line-soft: color-mix(in srgb, var(--footer-ink) 10%, var(--footer-bg));
  --ftr-ink-body:  color-mix(in srgb, var(--footer-ink) 86%, var(--footer-bg));
  --ftr-ink-mut:   color-mix(in srgb, var(--footer-ink) 68%, var(--footer-bg));
  --ftr-ink-fine:  color-mix(in srgb, var(--footer-ink) 62%, var(--footer-bg));
  padding-block: clamp(48px, 7vw, 80px) clamp(28px, 4vw, 40px);
  font-size: 0.92rem;
}

/* override base `.site-footer .container { display:grid; gap:28px }` */
.site-footer.ftr2 .ftr2-inner { display: block; }

/* ---- hairline rules (the editorial rule system) ---- */
.ftr2 .ftr2-rule { height: 1px; border: 0; background: var(--ftr-line); margin-block: clamp(28px, 4vw, 44px); }
.ftr2 .ftr2-rule--gold {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--gold-on-ink) 60%, transparent) 0,
    color-mix(in srgb, var(--gold-on-ink) 60%, transparent) 96px,
    var(--ftr-line) 96px, var(--ftr-line) 100%);
  margin-top: clamp(26px, 4vw, 40px);
}

/* ============================ MASTHEAD ============================ */
.ftr2 .ftr2-masthead {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: clamp(24px, 4vw, 48px);
}
.ftr2 .ftr2-brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.ftr2 .ftr2-seal {
  display: grid; place-items: center;
  width: clamp(52px, 7vw, 66px); height: clamp(52px, 7vw, 66px);
  flex: none; color: var(--gold-on-ink);
}
.ftr2 .ftr2-seal svg { width: 100%; height: 100%; }
.ftr2 .ftr2-word { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-serif); color: var(--footer-ink); }
.ftr2 .ftr2-word-1 { font-size: clamp(0.92rem, 1.4vw, 1.02rem); letter-spacing: .04em; color: var(--ftr-ink-mut); font-weight: 500; }
.ftr2 .ftr2-word-2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.01em; margin-top: 4px; }
.ftr2 .ftr2-accent { color: var(--clay-on-ink); }

/* right side of masthead: declaration + booking CTA */
.ftr2 .ftr2-mast-right { display: flex; flex-direction: column; align-items: flex-end; gap: clamp(14px, 1.8vw, 20px); }
.ftr2 .ftr2-decl {
  margin: 0; font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.55rem); line-height: 1.04;
  letter-spacing: -.015em; color: var(--footer-ink); text-align: right; max-width: 15ch;
}
.ftr2 .ftr2-decl-1 { display: block; }
.ftr2 .ftr2-decl-2 { display: block; font-style: italic; color: var(--clay-on-ink); }

/* grafted emerald CTA — the system's reserve/pay green, AA white on it */
.site-footer.ftr2 .ftr2-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; background: var(--cta); color: var(--on-cta);
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; letter-spacing: .01em;
  border-radius: var(--radius-pill, 999px); text-decoration: none;
  transition: background .18s ease;
}
.site-footer.ftr2 .ftr2-cta:hover, .site-footer.ftr2 .ftr2-cta:focus-visible { background: var(--cta-deep); }
.ftr2 .ftr2-cta-arrow { transition: transform .18s ease; }
.site-footer.ftr2 .ftr2-cta:hover .ftr2-cta-arrow, .site-footer.ftr2 .ftr2-cta:focus-visible .ftr2-cta-arrow { transform: translateX(3px); }

/* ============================ DIRECTORY ============================ */
.ftr2 .ftr2-directory { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 56px); }
.ftr2 .ftr2-col { min-width: 0; }
.ftr2 .ftr2-head {
  margin: 0 0 16px; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-on-ink);
}
.ftr2 .ftr2-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ftr2 .ftr2-list--split { grid-template-columns: 1fr; }
.site-footer.ftr2 .ftr2-list a {
  font-family: var(--font-sans); font-size: 0.94rem; line-height: 1.35;
  color: var(--ftr-ink-body); text-decoration: none; text-underline-offset: 3px; transition: color .18s ease;
}
.site-footer.ftr2 .ftr2-list a:hover, .site-footer.ftr2 .ftr2-list a:focus-visible {
  color: var(--clay-on-ink); text-decoration: underline; text-decoration-thickness: 1px;
}

/* ===================== WHAT'S INCLUDED (trust) ===================== */
.ftr2 .ftr2-trust {
  list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 2.4vw, 28px);
  font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: .01em; color: var(--ftr-ink-mut);
}
.ftr2 .ftr2-trust li { position: relative; padding-left: 15px; }
.ftr2 .ftr2-trust li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px;
  transform: rotate(45deg); background: var(--gold-on-ink);
}

/* ===================== CONTACT + PAYMENT band ===================== */
.ftr2 .ftr2-band { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: clamp(20px, 3vw, 40px); }
.ftr2 .ftr2-eyebrow {
  display: block; font-family: var(--font-sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-on-ink); margin-bottom: 10px;
}
.ftr2 .ftr2-contact { font-style: normal; font-family: var(--font-sans); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ftr2 .ftr2-contact-lines { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 0.98rem; }
.site-footer.ftr2 .ftr2-contact a { color: var(--clay-on-ink); text-decoration: none; text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-footer.ftr2 .ftr2-contact a:hover, .site-footer.ftr2 .ftr2-contact a:focus-visible { text-decoration: underline; }
.ftr2 .ftr2-dot { color: var(--ftr-ink-fine); }
.ftr2 .ftr2-serving { font-size: 0.82rem; color: var(--ftr-ink-fine); }

/* honest payment: a lock + the real methods (Stripe card + PayPal). No fake logos. */
.ftr2 .ftr2-pay { text-align: right; }
.ftr2 .ftr2-pay .ftr2-eyebrow { text-align: left; }
.ftr2 .ftr2-pay-line { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-sans); font-size: 0.92rem; color: var(--ftr-ink-mut); }
.ftr2 .ftr2-pay-text b { color: var(--ftr-ink-body); font-weight: 700; }
.ftr2 .ftr2-lock { width: 18px; height: 18px; color: var(--gold-on-ink); flex: none; }

/* ============================== LEGAL ============================== */
.site-footer.ftr2 .ftr2-legal {
  margin: 0; font-family: var(--font-sans); font-size: 0.78rem; line-height: 1.6;
  color: var(--ftr-ink-fine); max-width: 92ch;
}

/* ============================ RESPONSIVE ============================ */
@media (min-width: 680px) {
  .ftr2 .ftr2-directory { grid-template-columns: 1fr 1.9fr 1fr; align-items: start; }
  .ftr2 .ftr2-list--split {
    grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto);
    grid-auto-flow: column; gap: 11px clamp(20px, 3vw, 40px);
  }
}
@media (max-width: 679.98px) {
  .ftr2 .ftr2-masthead { align-items: flex-start; }
  .ftr2 .ftr2-mast-right { align-items: flex-start; }
  .ftr2 .ftr2-decl { text-align: left; font-size: clamp(1.6rem, 8vw, 2.1rem); max-width: none; }
  .ftr2 .ftr2-pay, .ftr2 .ftr2-pay .ftr2-eyebrow { text-align: left; }
  /* stack the contact/payment band so long lines get the full width and wrap
     instead of taking their max-content width and running off the right edge */
  .ftr2 .ftr2-band { flex-direction: column; flex-wrap: nowrap; }
  .ftr2 .ftr2-contact, .ftr2 .ftr2-pay { width: 100%; }
  .ftr2 .ftr2-serving { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .ftr2 .ftr2-cta, .ftr2 .ftr2-cta-arrow, .site-footer.ftr2 .ftr2-list a { transition: none; }
}


/* ================================================================== *
 * §21. HEADER CTA — the site's primary action
 * It used to live inside <nav>, so it disappeared with the collapsed menu
 * at <=880px: the main call to action was invisible to most of the traffic.
 * It is now a direct child of the header row and sized to actually read as
 * the primary action instead of a nav item that happens to be green.
 * ------------------------------------------------------------------ */
.site-header > .container,
.site-header > .header-inner,
.header-inner,
.site-header:not(:has(> .container)):not(:has(> .header-inner)) { min-height: 74px; }

.site-header .header-cta {
  order: 2;                       /* after the links, before the toggle (3) */
  margin-left: clamp(6px, 1.4vw, 18px);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .015em;
  padding: 16px 34px;
  min-height: 56px;
  /* Brighter than the shared --cta: this label is 17px/800, and at that size
     4.64:1 is comfortable. The button has to win the header, not blend in. */
  background: linear-gradient(180deg, #12855A 0%, #0E6446 100%);
  border-color: #0B5238;
  box-shadow:
    0 10px 26px -8px rgba(18,133,90,.75),
    0 2px 6px -2px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.22);
}
.site-header .header-cta:hover {
  background: linear-gradient(180deg, #12855A 0%, #127352 100%);
  border-color: #0E6446;
  box-shadow:
    0 18px 34px -10px rgba(18,133,90,.9),
    0 3px 9px -3px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.site-header .header-cta::after { width: 18px; height: 18px; }

/* ≤880px: the menu collapses, but the CTA stays in the bar */
@media (max-width: 880px) {
  .site-header > .container,
  .site-header > .header-inner,
  .header-inner,
  .site-header:not(:has(> .container)):not(:has(> .header-inner)) { min-height: 64px; }
  .site-header .header-cta {
    order: 2;
    margin-left: auto;
    margin-right: 10px;
    font-size: .97rem;
    padding: 12px 20px;
    min-height: 48px;
  }
}
/* ≤540px: stack the wordmark and tighten the CTA so brand + CTA + toggle all
   fit on one bar. Measured at 390: brand ~134 + CTA ~106 + toggle 40 = 280 of
   the ~358 available, so the hamburger never gets pushed off the edge. */
@media (max-width: 540px) {
  .site-header .brand { font-size: .92rem; white-space: normal; line-height: 1.1; gap: 7px; }
  .site-header .brand-accent { display: block; }
  .site-header .brand-icon { width: 26px; }
  .site-header .header-cta {
    font-size: .82rem;
    letter-spacing: 0;
    padding: 10px 13px;
    min-height: 44px;
    margin-left: 6px;
    margin-right: 4px;
    gap: 5px;
  }
  .site-header .header-cta::after { width: 14px; height: 14px; }
}
/* ≤400px: small phones. Measured minimum at 540px rules was ~347px against
   ~355px of content area — too close. This buys real headroom. */
@media (max-width: 400px) {
  .site-header > .container,
  .site-header:not(:has(> .container)):not(:has(> .header-inner)) { gap: 8px; }
  .site-header .brand { font-size: .84rem; }
  .site-header .brand-icon { width: 23px; }
  .site-header .header-cta {
    font-size: .78rem;
    padding: 9px 11px;
    gap: 4px;
    margin-left: 4px;
    margin-right: 2px;
  }
  .site-header .header-cta::after { width: 13px; height: 13px; }
}
/* Keep the two labels whole even at 320px: the CTA on one line, and the
   wordmark's second line unsplit ("Private Driver", never "Private/Driver"). */
.site-header .header-cta { white-space: nowrap; }
.site-header .brand-accent { white-space: nowrap; }
