/* Epic Trip per-trip page styles. SOURCE OF TRUTH for the 32 generated
   per-trip pages (scripts/build-epic-trips.mjs links this file instead of
   inlining ~27 KB of identical CSS into every page). Edit here. */
    .ept-page { background: var(--cream); }

    /* ─── Hero with map background ──────────────────────────────────── */
    .ept-hero {
      position: relative; min-height: 540px; overflow: hidden;
      background: #0d3d3a;
      /* Flex centers the overlay card vertically within the 540px-tall
         hero. The map is absolutely positioned so it's out of flow; the
         overlay is the only flex item and lands in the vertical middle. */
      display: flex; align-items: center;
      /* Light hairline at the bottom of the map. Because the map itself
         renders dark/medium colors, a low-alpha *white* line is what
         actually reads as a separator — a low-alpha black disappears. */
      border-bottom: 1px solid rgba(255,255,255,.18);
    }
    .ept-hero__map {
      position: absolute; inset: 0; z-index: 1;
      filter: saturate(.85);
    }
    .ept-hero__map.is-loading::after {
      content: 'Loading map…'; position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,.4); font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
    }
    .ept-hero__overlay {
      position: relative; z-index: 2;
      /* width:100% pins the overlay to its 580px cap regardless of content.
         As the lone flex item of .ept-hero it would otherwise shrink to its
         content width, so shorter trips rendered a narrower card and the
         prev/next arrows (anchored to the card's right edge) shifted left per
         trip. Stays fluid below 580px so mobile doesn't overflow. */
      width: 100%; max-width: 580px; margin: 0;
      padding: 48px 36px 40px;
      color: #fff;
      pointer-events: none;
    }
    .ept-hero__overlay > * { pointer-events: auto; }
    .ept-hero__card {
      position: relative;
      background: rgba(13, 36, 34, 0.85);
      backdrop-filter: blur(14px) saturate(140%);
      -webkit-backdrop-filter: blur(14px) saturate(140%);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 18px;
      padding: 28px 32px 26px;
      box-shadow: 0 24px 64px rgba(0,0,0,.5);
    }

    /* Prev / next trip arrows — top-right of the overlay card */
    .ept-hero__nav {
      position: absolute; top: 16px; right: 16px;
      display: flex; gap: 6px;
    }
    .ept-hero__nav-btn {
      display: inline-flex; align-items: center; justify-content: center;
      width: 30px; height: 30px;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.15);
      color: rgba(255,255,255,0.75);
      text-decoration: none;
      transition: background .15s ease, color .15s ease, border-color .15s ease;
    }
    .ept-hero__nav-btn:hover {
      background: rgba(255,255,255,0.14);
      color: #fff;
      border-color: rgba(255,255,255,0.30);
    }
    .ept-hero__num { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #F56437; margin-bottom: 12px; }
    /* H1, aka, and tagline each reserve TWO lines of height (min-height =
       2 × line-height, in em so it tracks the responsive font sizes). The
       card height is therefore identical on every trip page regardless of
       how many lines each actually uses — which keeps the prev/next arrows
       (anchored to the card's top-right corner) in the exact same spot. */
    .ept-hero__h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 6px; color: #fff; min-height: 2.1em; }
    .ept-hero__aka { font-size: 0.92rem; line-height: 1.4; color: rgba(255,255,255,0.65); margin: 0 0 14px; min-height: 2.8em; }
    .ept-hero__tagline { font-size: 1.05rem; line-height: 1.5; color: #EDEBE8; font-style: italic; margin: 0 0 18px; min-height: 3em; }
    .ept-hero__route {
      font-size: 0.95rem; color: rgba(255,255,255,0.9); margin-bottom: 14px; font-weight: 600;
      display: inline-flex; align-items: center;
    }
    .ept-hero__route .arrow { color: #F56437; margin: 0 6px; }

    /* Reverse direction control — two variants share state via the
       .ept-reverse-btn class, kept in sync by toggleReverse(). Clicking
       either button flips both, plus the polyline / start-end markers /
       From → To labels, and appends &reverse=1 to the action-card CTAs
       (planner-side support is a follow-up). */
    .ept-reverse-btn {
      appearance: none; cursor: pointer; padding: 0;
      background: transparent; border: 1px solid transparent;
      font: inherit;
      display: inline-flex; align-items: center; justify-content: center;
      transition: background .15s ease, color .15s ease, border-color .15s ease;
    }
    /* Hero variant — icon-only chip sitting inline with the route line. */
    .ept-reverse-btn--icon {
      width: 28px; height: 28px;
      margin-left: 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.14);
      color: rgba(255,255,255,0.85);
    }
    .ept-reverse-btn--icon:hover { background: rgba(255,255,255,0.16); color: #fff; }
    .ept-reverse-btn--icon.is-active {
      background: #F56437; border-color: #F56437; color: #fff;
    }
    .ept-reverse-btn--icon svg { width: 14px; height: 14px; }
    /* Action-bar variant — labeled pill on the cream-dk action bar,
       matched to the .ept-flavor pill style so the two toggles read as a
       pair. */
    .ept-reverse-btn--bar {
      gap: 6px;
      background: rgba(0,0,0,0.05);
      border-color: rgba(0,0,0,0.08);
      color: var(--gray-700);
      font-size: 12px; font-weight: 600; letter-spacing: .3px;
      padding: 6px 14px;
      border-radius: 999px;
    }
    .ept-reverse-btn--bar:hover { color: var(--black); }
    .ept-reverse-btn--bar.is-active {
      background: #F56437; border-color: #F56437; color: #fff;
    }
    .ept-reverse-btn--bar svg { width: 14px; height: 14px; }

    /* Row that holds the flavor + reverse toggles in the action bar.
       Both controls flex-wrap onto their own row on narrow viewports. */
    .ept-action-bar__toggles {
      display: flex; flex-wrap: wrap; gap: 10px;
      justify-content: center; align-items: center;
    }

    /* Metric cards — 4-up grid of small pills with big number + label */
    .ept-meta {
      display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px; margin-bottom: 18px;
    }
    .ept-meta__card {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 10px;
      padding: 10px 8px;
      text-align: center;
      min-width: 0;
    }
    .ept-meta__val {
      font-size: 1.15rem; font-weight: 800; color: #fff;
      line-height: 1.1; letter-spacing: -.01em;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .ept-meta__lbl {
      margin-top: 3px;
      font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.55);
      letter-spacing: .9px; text-transform: uppercase;
    }
    @media (max-width: 560px) {
      .ept-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    /* Flavor toggle — shown only when both mototripp + roadtripp plans are
       baked. Lives inside the cream-backgrounded action bar below the
       hero, so the palette is light-on-light rather than the hero's
       white-on-dark. */
    .ept-flavor {
      display: inline-flex; gap: 4px;
      background: rgba(0,0,0,0.05);
      border: 1px solid rgba(0,0,0,0.08);
      border-radius: 999px;
      padding: 3px;
    }
    .ept-flavor__btn {
      appearance: none; border: 0; cursor: pointer;
      background: transparent;
      color: var(--gray-700);
      font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .3px;
      padding: 6px 14px;
      border-radius: 999px;
      transition: background .15s ease, color .15s ease;
    }
    .ept-flavor__btn:hover { color: var(--black); }
    .ept-flavor__btn.is-active {
      background: #F56437;
      color: #fff;
    }
    .ept-flavor__btn span { margin-right: 4px; }

    /* Reserve two rows of pills so a 1-line vs 2-line tag set doesn't change
       the card height (and thus the arrow position). */
    .ept-hero__tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 45px; align-content: flex-start; }
    .ept-pill { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 3px 11px; font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: rgba(255,255,255,0.85); }
    /* Mobile-only static map image — pre-baked PNG of the route polyline
       drawn over Google's standard map style. Replaces the interactive
       map at narrow widths where pan/zoom controls aren't useful. */
    .ept-hero__mobile-map { display: none; }

    @media (max-width: 820px) {
      /* Hide the entire interactive Google Map on mobile — the panning/zoom
         controls don't add value at this width and the map draws bandwidth +
         battery. Background flips to Google Maps default water color and a
         static map image renders below the hero card. */
      .ept-hero { min-height: auto; background: #c4eed5; }
      .ept-hero__map { display: none; }
      .ept-hero__overlay { padding: 24px 16px 16px; }
      .ept-hero__card { padding: 22px 22px 20px; }
      .ept-hero__mobile-map {
        display: block;
        width: 100%;
        height: auto;
        margin: 18px 0 0;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,.12);
        box-shadow: 0 6px 18px rgba(0,0,0,.18);
      }
    }

    /* ─── Action bar below the hero ─────────────────────────────────── */
    .ept-action-bar {
      /* Use the palette's darker cream tone so this band sits a step
         deeper than the cream page body below it — gives a subtle
         separation between this CTA strip and the article content. */
      background: var(--cream-dk);
      border-bottom: 1px solid rgba(0,0,0,.06);
      position: relative;
    }
    .ept-action-bar__inner {
      display: flex; flex-direction: column; align-items: center; gap: 22px;
      padding: 52px 24px 60px;
      max-width: 980px;
    }
    .ept-action-bar__head { text-align: center; max-width: 620px; }
    .ept-action-bar__eyebrow {
      font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
      color: var(--gray-700); margin: 0 0 10px;
    }
    .ept-action-bar__title {
      font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -.02em;
      color: var(--black); line-height: 1.15;
      margin: 0 0 10px;
    }
    .ept-action-bar__sub {
      font-size: 1rem; color: var(--gray-700); line-height: 1.55;
      margin: 0;
    }
    .ept-action-bar__cards {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
      width: 100%; margin-top: 4px;
    }

    /* Individual action card — clickable area, icon at top, title +
       description in the middle, CTA link at the bottom. Whole card is
       the link target; the CTA span is just visual affordance. */
    .ept-action-card {
      display: flex; flex-direction: column; gap: 10px;
      background: #fff;
      /* Slightly darker than the action bar's --cream-dk background so
         the card edge actually reads — using --cream-dk directly made
         the border the same color as the surrounding panel. */
      border: 1px solid rgba(0,0,0,.10);
      border-radius: 14px;
      padding: 22px 20px 20px;
      text-decoration: none;
      color: inherit;
      position: relative;
      transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
    }
    .ept-action-card:hover {
      transform: translateY(-3px);
      border-color: rgba(237,125,50,.45);
      box-shadow: 0 14px 26px -12px rgba(0,0,0,.15);
    }
    .ept-action-card__icon {
      width: 30px; height: 30px;
      color: #F56437;
      flex-shrink: 0;
    }
    .ept-action-card__title {
      font-size: 1.05rem; font-weight: 800; color: var(--black);
      letter-spacing: -.01em;
    }
    .ept-action-card__desc {
      font-size: .85rem; color: var(--gray-700); line-height: 1.55;
      flex-grow: 1;
    }
    .ept-action-card__cta {
      font-size: .82rem; font-weight: 700; color: #F56437;
      margin-top: 6px;
      display: inline-flex; align-items: center; gap: 5px;
    }
    /* Primary card — the "Open this trip" path. Subtle warm tint +
       slightly orange border to set it apart from the secondary cards
       without using a heavy filled button. */
    .ept-action-card--primary {
      background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
      border-color: rgba(237,125,50,.35);
    }

    @media (max-width: 760px) {
      .ept-action-bar__cards { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .ept-action-bar__inner { padding: 40px 16px 44px; gap: 18px; }
      .ept-action-card { padding: 18px 16px; }
    }

    /* Day-color legend strip at the bottom of the map (only when baked + multi-day).
       Each chip is a button — tap to isolate that day on the map (dimming
       all others), tap again to clear. */
    .ept-day-legend {
      position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
      z-index: 2;
      display: flex; gap: 4px;
      background: rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      padding: 5px 6px; border-radius: 999px;
      font-size: 11px; color: #fff; letter-spacing: .3px;
    }
    .ept-day-legend__item {
      appearance: none; border: 0; background: transparent; color: inherit;
      font: inherit; font-size: 11px; letter-spacing: .3px;
      display: inline-flex; align-items: center; gap: 5px;
      padding: 4px 10px; border-radius: 999px;
      cursor: pointer;
      transition: background .15s ease, opacity .15s ease;
      opacity: .75;
    }
    .ept-day-legend__item:hover { background: rgba(255,255,255,.1); opacity: 1; }
    .ept-day-legend__item.is-active { background: rgba(255,255,255,.18); opacity: 1; }
    .ept-day-legend__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
    @media (max-width: 820px) { .ept-day-legend { display: none; } }

    /* Seasonal-closure warning chip — bottom-right of the hero map for
       trips whose road closes seasonally (Beartooth, Going-to-the-Sun,
       Million Dollar Highway, etc.). Amber pill that sits over the map
       background, with a tooltip showing the typical open window. The
       chip is informational only — it doesn't block anything. Hidden
       on mobile where the map itself is hidden (the trip's "When to Go"
       sidebar carries the same info on smaller screens). */
    .ept-seasonal-warn {
      position: absolute; right: 16px; top: 16px;
      z-index: 3;
      display: inline-flex; align-items: center; gap: 6px;
      padding: 7px 13px 7px 11px;
      background: rgba(120, 81, 6, 0.92);
      color: #fff;
      border: 1px solid rgba(255, 215, 130, 0.35);
      border-radius: 999px;
      font-size: 12px; font-weight: 600; letter-spacing: 0.15px;
      cursor: help;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      box-shadow: 0 4px 14px rgba(0,0,0,0.28);
      pointer-events: auto;
    }
    .ept-seasonal-warn svg { width: 14px; height: 14px; flex-shrink: 0; color: #ffd782; }
    @media (max-width: 820px) { .ept-seasonal-warn { display: none; } }

    /* ─── Content section ──────────────────────────────────────────── */
    .ept-content { padding: 56px 0 96px; }
    .ept-content__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
    @media (max-width: 880px) { .ept-content__grid { grid-template-columns: 1fr; gap: 32px; } }

    /* ─── Article photo (representative photo of the actual place) ─── */
    .ept-photo { margin: 0 0 28px; }
    .ept-photo__img {
      display: block; width: 100%; height: auto;
      aspect-ratio: 16 / 9; object-fit: cover;
      border-radius: 12px;
      background: var(--cream-dk);
      border: 1px solid rgba(0,0,0,0.10);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
    }
    .ept-photo__cap {
      margin: 8px 2px 0; font-size: 0.78rem; color: var(--gray-500);
      line-height: 1.45; font-style: italic;
    }
    .ept-photo__cap a { color: var(--gray-500); text-decoration: underline; text-underline-offset: 2px; }
    .ept-photo__cap a:hover { color: var(--teal); }

    .ept-article h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; color: var(--black); }
    .ept-article h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; margin: 28px 0 10px; color: var(--black); }
    /* Section headings (itinerary / by-the-numbers / weather / signature stops)
       are now <h2> for SEO/outline, but keep the compact section look of the
       former <h3>. */
    .ept-article h2.ept-sec-h { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; margin: 28px 0 10px; }
    /* The narrative's evocative headline — the article's feature title. */
    .ept-article h2.ept-narrative__h { font-size: 1.7rem; margin: 0 0 14px; }
    /* Optional in-prose subheads (authored as "## " in narrative bodies). */
    .ept-article h2.ept-body-h { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; margin: 26px 0 10px; }
    .ept-article p  { font-size: 1.02rem; line-height: 1.7; color: var(--gray-700); margin: 0 0 16px; }
    .ept-article ul { padding-left: 20px; margin: 0 0 16px; }
    .ept-article ul li { font-size: 1.02rem; line-height: 1.75; color: var(--gray-700); margin-bottom: 6px; }
    .ept-article .note-block { background: #FDFCF9; border-left: 3px solid var(--teal); padding: 14px 18px; border-radius: 4px; margin: 0 0 20px; font-size: 0.96rem; color: var(--gray-700); line-height: 1.6; }
    .ept-article .note-block strong { color: var(--black); }

    /* Lede paragraph — the trip's directionNote, sits between the photo and
       the narrative as a one-line context-setter. */
    .ept-lede {
      font-size: 1.12rem; line-height: 1.6; color: var(--gray-700);
      font-style: italic;
      margin: 0 0 22px;
      padding-left: 14px;
      border-left: 3px solid var(--cream-dk);
    }

    /* Narrative — the hand-curated travel-blog body. Slightly larger leading
       than the rest of the article body so it reads like the main feature. */
    .ept-narrative { margin: 28px 0; }
    .ept-narrative h2 {
      font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em;
      margin: 0 0 18px; color: var(--black);
    }
    .ept-narrative p {
      font-size: 1.05rem; line-height: 1.75; color: var(--gray-700);
      margin: 0 0 18px;
    }
    .ept-narrative p strong { color: var(--black); font-weight: 700; }

    /* Sidebar layout tweaks for the new card density. */
    .ept-sidebar__card h4 { margin-bottom: 10px; }
    .ept-sidebar__card p { font-size: 13px; color: var(--gray-700); line-height: 1.55; margin: 0 0 8px; }
    .ept-sidebar__card p:last-child { margin-bottom: 0; }
    .ept-sidebar__card .ept-sidebar__detail {
      font-size: 12.5px; color: var(--gray-500); font-style: italic; line-height: 1.5;
    }
    .ept-sidebar__card ul li { font-size: 13px; line-height: 1.55; }

    .ept-sidebar { font-size: 14px; }
    .ept-sidebar__card { background: #FDFCF9; border: 1px solid var(--cream-dk); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
    .ept-sidebar h4 { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
    .ept-sidebar ul { list-style: none; padding: 0; margin: 0; }
    .ept-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--cream-dk); }
    .ept-sidebar li:last-child { border-bottom: none; }
    .ept-sidebar a { color: var(--black); font-weight: 600; text-decoration: none; }
    .ept-sidebar a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
    .ept-sidebar .related-meta { color: var(--gray-500); font-weight: 500; font-size: 12px; }
    .ept-sidebar .related-empty { color: var(--gray-500); font-style: italic; padding: 8px 0; }

    /* ===== V17 hero — floating card + photo⇄map gallery + black metric strip (2026-06-14) ===== */
    .ept-hero { position: relative; min-height: 60vh; display: flex; align-items: center; overflow: hidden; background: #2a3a2f; }
    .ept-hero__map { position: absolute; inset: 0; }
    .ept-hero__photo { position: absolute; inset: 0; background-size: cover; background-position: center bottom; z-index: 1; opacity: 1; transition: opacity .55s ease; }
    .ept-hero.show-map .ept-hero__photo { opacity: 0; pointer-events: none; }
    .ept-hero__view { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(13,13,13,.5); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(3px); transition: background .15s; }
    .ept-hero__view:hover { background: rgba(13,13,13,.78); }
    .ept-hero__view svg { width: 22px; height: 22px; }
    /* Day 1/2/3 legend only shows on the map view (hidden over the photo). */
    .ept-hero:not(.show-map) .ept-day-legend { display: none !important; }
    .ept-hero__overlay { position: relative; z-index: 2; width: 100%; max-width: none; padding: 28px 40px; margin: 0; display: flex; justify-content: flex-start; }
    /* FIXED height (not min-height) so every page's card is identical — the
       prev/next arrows must not drift between trips. Title + tagline are
       clamped to 2 lines so longer-name trips can't push the card taller. */
    .ept-hero__card { position: relative; width: min(490px, 100%); height: 440px; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(13,13,13,.9), rgba(13,13,13,.8)); color: #fff; padding: 30px 32px; border-radius: 24px; box-shadow: 0 26px 64px rgba(0,0,0,.42); backdrop-filter: blur(2px); }
    .ept-hero__nav { position: absolute; top: 22px; right: 24px; display: flex; gap: 8px; margin: 0; }
    .ept-hero__nav-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; text-decoration: none; transition: all .15s; }
    .ept-hero__nav-btn:hover { background: #fff; color: #0d0d0d; border-color: #fff; }
    .ept-hero__num { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 8px; }
    .ept-hero__hash { color: #cbc8c2; }
    .ept-hero__h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 8px; color: #fff; min-height: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .ept-hero__tagline { font-size: 1.05rem; line-height: 1.45; color: rgba(255,255,255,.85); font-style: italic; margin: 0 0 14px; min-height: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .ept-hero__route { font-weight: 700; color: #fff; margin: 0; }
    .ept-hero__route .arrow { color: #F56437; margin: 0 6px; }
    .ept-hero__spacer { flex: 1 1 auto; min-height: 18px; }
    .ept-hero__open-ttl { font-weight: 800; font-size: 1.1rem; }
    .ept-hero__open-sub { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 2px; }
    .ept-hero__modes { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
    .ept-mode { flex: 1; display: flex; align-items: center; justify-content: center; padding: 13px 8px; border-radius: 12px; background: #F56437; border: 0; color: #fff; text-decoration: none; font-weight: 700; font-size: .86rem; white-space: nowrap; transition: all .15s; position: relative; }
    .ept-mode:hover { background: #d84e23; transform: translateY(-2px); }
    .ept-mode--soon { opacity: .82; }
    /* "Open this trip" primary + "Customize" secondary, sized to content and
       left-aligned (replaces the old full-width 3 vehicle buttons). */
    .ept-mode--open { flex: 0 0 auto; align-self: flex-start; padding: 14px 30px; font-size: 1rem; letter-spacing: .01em; }
    .ept-mode--ghost { flex: 0 0 auto; align-self: flex-start; padding: 14px 24px; font-size: 1rem; letter-spacing: .01em;
      background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
    .ept-mode--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
    .ept-mode__soon { position: absolute; top: -7px; right: -6px; background: #F56437; color: #fff; font-size: .55rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; border: 1px solid #fff; }
    .ept-hero__links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
    .ept-hero__tlink { color: #00897b; font-weight: 400; text-decoration: underline; font-size: .9rem; }
    .ept-hero__tlink:hover { opacity: .82; }
    .ept-hero__show { display: flex; align-items: center; gap: 9px; margin-top: 18px; }
    .ept-hero__show-lbl { color: rgba(255,255,255,.5); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .62rem; }
    .ept-hero__show-seg { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
    .ept-hero__show-seg button { border: 0; background: transparent; color: rgba(255,255,255,.7); font-family: inherit; font-weight: 700; font-size: .74rem; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all .15s; }
    .ept-hero__show-seg button.is-on { background: #fff; color: #0d0d0d; }
    .ept-reverse-btn--icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); cursor: pointer; vertical-align: middle; margin-left: 10px; padding: 0; transition: all .15s; }
    .ept-reverse-btn--icon:hover { background: rgba(255,255,255,.2); color: #fff; }
    .ept-reverse-btn--icon.is-active { background: #F56437; border-color: #F56437; color: #fff; }
    .ept-reverse-btn--icon svg { width: 14px; height: 14px; }
    .ept-strip { background: #0d0d0d; }
    .ept-strip__in { display: flex; flex-wrap: wrap; gap: 14px; padding: 18px 24px; }
    .ept-strip__s { flex: 1; min-width: 92px; text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
    .ept-strip__s small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 800; margin-bottom: 3px; }
    .ept-strip__s span { font-size: 1.18rem; font-weight: 900; color: #fff; }
    .ept-hero__credit { position: absolute; left: 40px; bottom: 12px; z-index: 1; font-size: 10px; color: rgba(255,255,255,.6); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
    .ept-hero__credit a { color: rgba(255,255,255,.8); }
    .ept-hero.show-map .ept-hero__credit { display: none; }
    @media (max-width: 820px) {
      .ept-hero { min-height: auto; align-items: stretch; background: #c4eed5; }
      .ept-hero__map, .ept-hero__photo, .ept-hero__view, .ept-hero__credit { display: none; }
      .ept-hero__overlay { padding: 20px 16px; }
      /* Reset the desktop 32px side padding too — otherwise the three vehicle
         buttons (white-space:nowrap) overflow the card on narrow phones. */
      .ept-hero__card { width: 100%; height: auto; min-height: auto; padding: 22px 18px; }
      .ept-hero__modes { gap: 8px; }
      .ept-mode { padding: 12px 4px; font-size: .8rem; min-width: 0; }
      .ept-mode--open { padding: 13px 24px; font-size: .92rem; }
      .ept-hero__mobile-map { display: block; width: 100%; border-radius: 12px; margin-top: 14px; }
      .ept-hero__show { display: none; }
    }

    /* ===== Rich article components (pilot: tail-of-the-dragon) ===== */
    .ept-lead { font-size: 1.45rem; font-weight: 800; line-height: 1.32; letter-spacing: -.02em; color: var(--black); margin: 0 0 20px; }

    /* Callout — the "hold it loosely" spirit beat. Authored per trip. */
    .ept-callout { display: flex; gap: 15px; align-items: flex-start; background: #e9f3f0; border: 1px solid #c8e2db; border-radius: 14px; padding: 18px 22px; margin: 26px 0; }
    .ept-callout svg { flex: none; width: 26px; height: 26px; color: var(--teal); margin-top: 2px; }
    .ept-callout p { margin: 0; font-size: 1.06rem; line-height: 1.62; color: #234; }
    .ept-callout strong { color: var(--black); }

    /* Itinerary — evenly-spaced numbered stops on a timeline; fuel/charge cues
       live in the left gutter, absolutely positioned (never shift the rhythm). */
    .ept-itin { position: relative; margin: 22px 0 8px; padding: 0; }
    .ept-itin::before { content: ''; position: absolute; left: 138px; top: 14px; bottom: 14px; width: 2px; background: var(--cream-dk); }
    .ept-itin__row { position: relative; padding: 15px 0 15px 164px; }
    .ept-itin__num { position: absolute; left: 125px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); color: var(--teal); font-weight: 800; font-size: .78rem; display: flex; align-items: center; justify-content: center; z-index: 1; }
    .ept-itin__k { font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; color: var(--teal); }
    .ept-itin__n { font-weight: 700; color: var(--black); }
    .ept-itin__a { color: var(--gray-500); font-size: .85rem; }
    .ept-cue { position: absolute; top: -13px; left: 0; width: 130px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
    .ept-cue__lbl { font-size: .66rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
    .ept-cue__lbl svg { width: 15px; height: 15px; flex: none; }
    .ept-cue__arr { color: #cabfac; font-weight: 800; font-size: 1rem; line-height: 1; }
    .ept-cue--moto .ept-cue__lbl { background: #dcefe8; color: #00887A; }
    .ept-cue--car  .ept-cue__lbl { background: #fde7da; color: #c2571f; }
    .ept-cue--ev   .ept-cue__lbl { background: #dff3e4; color: #2e9e4f; }

    /* By the numbers — varied per trip (here: hero figures + a table) */
    .ept-bytn { background: #FDFCF9; border: 1px solid var(--cream-dk); border-radius: 16px; padding: 22px 24px; margin: 10px 0 4px; }
    .ept-bytn__heroes { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 18px; }
    .ept-bytn__hero b { display: block; font-size: 2.1rem; font-weight: 900; letter-spacing: -.03em; color: var(--teal); line-height: 1; }
    .ept-bytn__hero small { color: var(--gray-700); font-size: .8rem; }
    .ept-bytn table { width: 100%; border-collapse: collapse; font-size: .92rem; }
    .ept-bytn td { padding: 7px 0; border-top: 1px solid var(--cream-dk); }
    .ept-bytn td:first-child { color: var(--gray-700); }
    .ept-bytn td:last-child { text-align: right; font-weight: 700; color: var(--black); }

    /* Seasonal weather — wide article block */
    .ept-wx { background: #FDFCF9; border: 1px solid var(--cream-dk); border-radius: 14px; padding: 16px 20px; margin-bottom: 14px; }
    .ept-wx__city { font-weight: 800; font-size: 1rem; margin: 0 0 4px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
    .ept-wx__where { color: var(--gray-500); font-weight: 600; font-size: .78rem; }
    .ept-wx__now { color: var(--teal); font-weight: 800; font-size: .85rem; }
    .ept-wx__now a { color: var(--teal); font-weight: 700; text-decoration: none; }
    .ept-wx__legend { display: flex; gap: 16px; font-size: .74rem; color: var(--gray-700); margin: 8px 0 0; flex-wrap: wrap; }
    .ept-wx__legend span { display: inline-flex; align-items: center; gap: 5px; }
    .ept-wx__legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }

    /* Season chips (When to Go) */
    .ept-seasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .ept-season { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e0efec; color: #00887A; }
    .ept-season svg { width: 13px; height: 13px; }
    .ept-season--avoid { background: #f3efe7; color: #9a8f7d; font-weight: 600; }

    /* mobile fixes */
    @media (max-width: 820px) {
      /* static map: a milder 16:9 crop instead of the wide 2:1 squash (no skew) */
      .ept-hero__mobile-map { aspect-ratio: 16 / 9; object-fit: cover; object-position: center; height: auto; }
      /* rich article: collapse the itinerary gutter so cues sit inline-left */
      .ept-itin::before { left: 14px; }
      .ept-itin__row { padding-left: 40px; }
      .ept-itin__num { left: 1px; }
      .ept-cue { position: static; width: auto; justify-content: flex-start; margin: 0 0 2px 40px; }
      .ept-cue__arr { display: none; }
    }
    @media (max-width: 560px) {
      /* balance the metric strip: center the rows instead of stretching the last */
      .ept-strip__in { justify-content: center; gap: 18px 22px; padding: 16px; }
      .ept-strip__s { flex: 0 1 80px; min-width: 78px; }
    }

    .ept-itin-note { color: var(--gray-500); font-size: .95rem; margin: 0 0 16px; line-height: 1.55; max-width: 560px; }

    /* Full-width article block (below the narrative/sidebar grid) */
    .ept-full { margin-top: 8px; }
    .ept-itin-layout { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
    .ept-itin-map { position: sticky; top: 24px; margin-top: 34px; }
    .ept-itin-map img { width: 100%; border-radius: 14px; border: 1px solid var(--cream-dk); display: block; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
    .ept-itin-map__cap { font-size: .78rem; color: var(--gray-500); margin: 9px 2px 0; line-height: 1.45; }

    /* "Open this trip" CTA — teal gradient, matches the catalog closing band */
    .ept-cta { margin: 40px 0 0; padding: 40px 28px; text-align: center; background: linear-gradient(135deg,#0f4c3a 0%,#00897b 100%); border-radius: 18px; color: #fff; }
    .ept-cta h2 { margin: 0 0 10px; font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 900; letter-spacing: -.02em; color: #fff; }
    .ept-cta p { margin: 0 auto 22px; max-width: 560px; color: rgba(255,255,255,.9); font-size: 1rem; line-height: 1.6; }
    .ept-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .ept-cta .btn--outline { border-color: rgba(255,255,255,.65); color: #fff; }
    .ept-cta .btn--outline:hover { background: rgba(255,255,255,.14); }

    @media (max-width: 820px) {
      /* Match the itinerary rows' own mobile breakpoint (820px) — otherwise the
         761–820px band keeps the 2-col layout and squeezes the text column. */
      .ept-itin-layout { grid-template-columns: 1fr; }
      .ept-itin-map { position: static; margin: 18px auto 0; max-width: 380px; }
    }

    /* CTA buttons with a stacked sub-label (Open in MotoTripp, etc.) */
    .ept-cta__btn { flex-direction: column; gap: 1px; line-height: 1.12; }
    .ept-cta__btn small { font-size: .68rem; font-weight: 600; letter-spacing: .01em; text-transform: none; opacity: .92; }
