/* Journey Plan — public guide page (/guides/:slug).
   Loaded after destination.css, which supplies the tokens, header, footer,
   buttons, breadcrumbs and the CTA band. Design of record:
   docs/content/ux/guides-mockup.html (v2). The page is English and
   left-to-right by decision; nothing here needs to mirror. */

.guide-page { padding-bottom: 0; }
.g-updated, .g-cta-sub, .g-day-meta, .g-credits { color: var(--ink-2); }

/* ── Hero ─────────────────────────────────────────────────────── */
.g-hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
  padding: 10px 0 30px; align-items: start;
}
.g-hero h1 {
  font-family: 'Spectral', Georgia, serif; font-size: 46px; line-height: 1.06;
  font-weight: 600; margin: 10px 0 18px; text-wrap: balance;
}
.g-cta-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.g-cta-row .btn { font-size: 16px; padding: 14px 24px; min-height: 48px; justify-content: center; }
.g-cta-sub { font-size: 13px; flex-basis: 100%; }
.guide-intro { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 600px; }
.g-updated { font-size: 12.5px; margin-top: 12px; }
.g-share-status { font-size: 13px; color: var(--green); font-weight: 600; }

/* photos: every figure reserves its box, so text never jumps when an image arrives */
.guide-hero-photo, .guide-day-photo, .guide-stop-photo {
  position: relative; margin: 0; overflow: hidden; border-radius: 8px; background: #e9e3d7;
}
.guide-hero-photo { height: 400px; }
.guide-day-photo { height: 220px; margin-bottom: 14px; }
.guide-stop-photo { height: 96px; }
.guide-hero-photo img, .guide-day-photo img, .guide-stop-photo img { width: 100%; height: 100%; object-fit: cover; }
.guide-hero-photo figcaption, .guide-day-photo figcaption, .guide-stop-photo figcaption {
  position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px);
  font-size: 10.5px; line-height: 1.2; color: #fff; background: rgba(20,24,34,.62);
  padding: 3px 7px; border-radius: 4px;
}
.guide-hero-photo figcaption a, .guide-day-photo figcaption a, .guide-stop-photo figcaption a {
  text-decoration: underline; text-underline-offset: 2px;
}

/* ── Advisory ─────────────────────────────────────────────────── */
.guide-advisory {
  background: #f6efe0; border: 1px solid #d9c7a0; border-radius: 8px;
  padding: 10px 14px; font-size: 13.5px; line-height: 1.5; margin: 0 0 14px;
}

/* ── Facts ────────────────────────────────────────────────────── */
.guide-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); list-style: none;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); margin: 0 0 6px;
}
.guide-facts li { padding: 12px 14px; border-left: 1px dashed var(--line); min-width: 0; }
.guide-facts li:first-child { border-left: 0; }
.g-fact-k {
  display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.g-fact-v { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; margin-top: 3px; }
.g-fact-d { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }

/* ── Route cities + days at a glance ──────────────────────────── */
.guide-route-cities { font-size: 14px; font-weight: 600; margin: 18px 0 0; }
.g-glance { display: flex; gap: 10px; margin: 16px 0 6px; list-style: none; }
.g-glance li { flex: 1; min-width: 0; }
.g-glance a {
  display: block; height: 100%; padding: 12px 14px; border: 1.5px solid var(--ink);
  border-radius: 8px; background: var(--paper-2);
}
.g-glance a:hover { box-shadow: 2px 2px 0 rgba(34,41,58,.14); }
.g-glance-n, .g-day-n { font-family: 'Caveat', cursive; font-weight: 600; color: var(--red); line-height: 1; }
.g-glance-n { display: block; font-size: 20px; }
.g-glance-t { display: block; font-weight: 700; font-size: 16px; }
.g-glance-m { display: block; font-size: 12.5px; color: var(--ink-2); }

/* ── Route map (spec docs/superpowers/specs/2026-10-19-guide-maps.md §6) ──
   The <img> carries width/height, so its box is reserved before it loads. The
   chip matches the day badge drawn in the image: same colour, same number. */
.g-map { margin: 22px 0 6px; }
.g-map img {
  display: block; width: 100%; max-width: 900px; height: auto;
  border: 1.5px solid var(--ink); border-radius: 8px; background: #f3f0e8;
}
.g-map-legend {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 16px; list-style: none; margin: 12px 0 0; padding: 0; max-width: 900px;
}
.g-map-legend a { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.g-map-chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 4px; font-size: 13px; font-weight: 700;
  box-shadow: 0 0 0 1px #1a1a1a;
  font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1;
}
/* The same chip on the glance cards and day tabs, when the guide has a map. */
.g-glance-n .g-map-chip { margin-right: 8px; vertical-align: 2px; }
.g-daytabs .g-map-chip { margin-right: 7px; }
.g-map-area { font-weight: 400; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-map-key, .g-map-credit { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; }

/* ── Body: days + sticky aside ────────────────────────────────── */
.g-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 20px 0 40px; }
.g-aside { position: sticky; top: 84px; align-self: start; }
.g-ctacard {
  background: var(--card); border: 1px solid rgba(34,41,58,.14); border-radius: 8px;
  box-shadow: 2px 3px 0 rgba(34,41,58,.05); padding: 18px;
}
.g-ctacard h2 { font-family: 'Spectral', Georgia, serif; font-size: 21px; font-weight: 600; }
.g-ctacard ul { margin: 10px 0 14px; list-style: none; display: grid; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.g-ctacard li::before { content: "\2713"; color: var(--green); font-weight: 700; margin-right: 7px; }
.g-ctacard .btn { width: 100%; justify-content: center; min-height: 46px; }
.g-ctacard p { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 8px; }

.g-daytabs { display: none; }

.guide-day { padding: 6px 0 34px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.guide-day:first-of-type { border-top: 0; }
.g-day-head { margin: 22px 0 14px; }
.g-day-n { font-size: 26px; }
.guide-day h2 { font-family: 'Spectral', Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.1; margin-top: 4px; }
.g-day-meta { font-size: 13px; margin-top: 6px; }
.guide-day-logic {
  background: var(--paper-2); border-left: 3px solid var(--rule);
  padding: 10px 14px 12px; margin: 0 0 14px; border-radius: 0 6px 6px 0;
  font-size: 14.5px; line-height: 1.6;
}
.g-why { display: block; font-family: 'Caveat', cursive; font-weight: 600; font-size: 22px; color: var(--red); line-height: 1.1; margin-bottom: 2px; }
.guide-day-getting {
  font-size: 13.5px; background: var(--paper-2); border: 1px dashed rgba(34,41,58,.25);
  border-radius: 6px; padding: 8px 12px; margin: 0 0 14px;
}
.guide-day-swap {
  margin-top: 14px; border: 1.5px dashed rgba(34,41,58,.3); border-radius: 8px;
  padding: 10px 14px; font-size: 14px; background: rgba(255,253,248,.6);
}

/* ── Stops ────────────────────────────────────────────────────── */
.g-stops { list-style: none; display: grid; gap: 12px; }
.g-stop-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; position: relative; }
.g-stop-row:not(:last-child)::before {
  content: ""; position: absolute; left: 16px; top: 34px; bottom: -14px;
  border-left: 2px dotted var(--ink-3);
}
.g-stop-n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 18px; transform: rotate(-4deg);
}
.guide-stop {
  background: var(--card); border: 1px solid rgba(34,41,58,.14); border-radius: 8px;
  box-shadow: 2px 3px 0 rgba(34,41,58,.05); padding: 12px;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px;
}
.guide-stop.has-photo { grid-template-columns: 128px minmax(0, 1fr); }
.g-stop-ico {
  height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px dashed rgba(34,41,58,.22); border-radius: 8px; color: var(--ink-2);
}
.guide-stop-category {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; background: var(--ink); color: var(--paper);
}
.guide-stop h3 { font-size: 16.5px; font-weight: 700; line-height: 1.25; margin: 6px 0 1px; }
.guide-stop p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-top: 6px; }
.g-stop-foot { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.g-stop-foot a { display: inline-flex; align-items: center; min-height: 28px; }
.g-stop-foot a:hover { color: var(--red); }

/* ── Notes, FAQ, links, credits ───────────────────────────────── */
.g-sec { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.g-sec > h2 { font-family: 'Spectral', Georgia, serif; font-size: 28px; font-weight: 600; margin-bottom: 16px; }
.g-notes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guide-note {
  background: var(--card); border: 1px solid rgba(34,41,58,.14); border-radius: 8px;
  box-shadow: 2px 3px 0 rgba(34,41,58,.05); padding: 14px 16px;
}
.guide-note h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.guide-note p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.guide-faq-item { border-top: 1px dashed rgba(34,41,58,.2); padding: 14px 0; }
.guide-faq-item summary {
  font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; min-height: 28px;
}
.guide-faq-item summary::-webkit-details-marker { display: none; }
.guide-faq-item summary::after { content: "+"; font-weight: 500; font-size: 20px; line-height: 1; color: var(--ink-2); }
.guide-faq-item[open] summary::after { content: "\2013"; }
.guide-faq-item p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.guide-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 7px 16px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper-2);
  font-size: 13.5px; font-weight: 600; box-shadow: 1px 1px 0 rgba(34,41,58,.1);
}
.guide-chip:hover { box-shadow: 2px 2px 0 rgba(34,41,58,.16); }
.g-credits { font-size: 12.5px; line-height: 1.7; }
.g-credits ul { list-style: none; }
.g-credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Closing band + mobile sticky bar ─────────────────────────── */
.g-band { padding: 46px 0; text-align: center; }
.g-band h2 { font-family: 'Spectral', Georgia, serif; font-size: 32px; font-weight: 600; position: relative; }
.g-band p { color: rgba(250,247,242,.78); margin: 8px auto 20px; max-width: 560px; position: relative; }
.g-band .btn { font-size: 16px; padding: 14px 24px; position: relative; }
.g-sticky { display: none; }

/* ── Not found ────────────────────────────────────────────────── */
.g-state { max-width: 620px; margin: 0 auto; text-align: center; padding: 70px 0 60px; }
.g-state-n { font-family: 'Caveat', cursive; font-weight: 600; font-size: 64px; color: var(--red); line-height: 1; display: inline-block; transform: rotate(-3deg); }
.g-state h1 { font-family: 'Spectral', Georgia, serif; font-size: 36px; font-weight: 600; margin: 14px 0 10px; }
.g-state p { color: var(--ink-2); font-size: 16px; }
.g-state .btn { margin-top: 22px; }

/* ── "Use this plan" sheet (plan 4.2) — above the header's z-index: 50 ── */
.g-sheet-scrim {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(34,41,58,.45); padding: 20px;
}
.g-sheet-scrim[hidden] { display: none; }
.g-sheet {
  position: relative; background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 14px;
  max-width: 420px; width: 100%; padding: 28px 26px; box-shadow: 4px 4px 0 rgba(34,41,58,.18);
}
.g-sheet h2 { font-family: 'Spectral', Georgia, serif; font-size: 22px; font-weight: 600; margin-top: 4px; }
.g-sheet-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 22px;
  line-height: 1; cursor: pointer; color: var(--ink-2); min-height: 44px; min-width: 44px;
}
.g-sheet-sum { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.g-sheet-sum img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.g-sheet ul { margin: 14px 0; padding-inline-start: 20px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.g-sheet-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  border: 1.5px solid var(--ink); border-radius: 10px; font-weight: 600; font-size: 15px;
  background: var(--paper); text-decoration: none; color: var(--ink); margin-top: 6px;
}
.g-sheet-google:hover { box-shadow: 2px 2px 0 rgba(34,41,58,.16); }
.g-sheet-gdot {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 50%; background: #4285F4; color: #fff; font-size: 12px; font-weight: 700;
}
.g-sheet-clickwrap { font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 12px; }
.g-sheet-clickwrap a { text-decoration: underline; }
.g-sheet-later {
  display: block; width: 100%; text-align: center; background: none; border: none; margin-top: 10px;
  font-size: 13.5px; color: var(--ink-2); text-decoration: underline; cursor: pointer; min-height: 44px;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .g-map-legend { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  /* 44px tap rows, as the day tabs; the area wraps under its day instead of truncating. */
  .g-map-legend a { min-height: 44px; flex-wrap: wrap; align-content: center; row-gap: 0; }
  .g-map-area { flex-basis: 100%; padding-left: 30px; white-space: normal; font-size: 13px; }
  .site .wrap { height: 56px; }
  .brand .sub, .nav-right .btn { display: none; }
  .g-hero { grid-template-columns: 1fr; gap: 0; padding: 0 0 18px; }
  .g-hero .guide-hero-photo { order: -1; margin: 0 -20px 14px; height: 220px; border-radius: 0; }
  .g-hero h1 { font-size: 31px; margin: 6px 0 12px; }
  .g-cta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .g-cta-sub, .g-share-status { grid-column: 1 / -1; }
  .guide-intro { font-size: 15.5px; }
  .guide-facts { grid-template-columns: 1fr; }
  .guide-facts li { border-left: 0; border-top: 1px dashed var(--line); }
  .guide-facts li:first-child { border-top: 0; }
  .g-glance { flex-direction: column; }
  .g-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .g-aside { display: none; }
  .g-daytabs {
    display: flex; gap: 6px; position: sticky; top: 56px; z-index: 30; list-style: none;
    background: rgba(250,247,242,.96); padding: 10px 20px; margin: 0 -20px;
    border-bottom: 1px solid var(--line); overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .g-daytabs a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; white-space: nowrap;
    border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper-2);
    font-size: 13px; font-weight: 600;
  }
  .guide-day, .g-sec { scroll-margin-top: 126px; }
  .guide-day h2 { font-size: 25px; }
  .g-stop-row { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .g-stop-row:not(:last-child)::before { left: 13px; top: 28px; }
  .g-stop-n { width: 28px; height: 28px; font-size: 16px; }
  .guide-stop, .guide-stop.has-photo { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .g-stop-ico { display: none; }
  .guide-stop-photo { height: 140px; }
  .g-stop-foot a { min-height: 44px; }
  .g-notes-grid { grid-template-columns: 1fr; }
  .g-sec > h2 { font-size: 24px; }
  .g-band { padding-bottom: 96px; }
  .g-band h2 { font-size: 26px; }
  .g-sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--paper-2); border-top: 1px solid var(--line);
    padding: 10px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 12px; align-items: center; box-shadow: 0 -6px 18px rgba(34,41,58,.08);
  }
  .g-sticky-t { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); flex: 1; min-width: 0; }
  .g-sticky-t b { color: var(--ink); display: block; font-size: 13.5px; }
  .g-sticky .btn { min-height: 46px; }
  footer.site { padding-bottom: 96px; }
  .g-state { padding: 50px 0 40px; }
  .g-state h1 { font-size: 28px; }
}
