/* ─────────────────────────────────────────────────────────────────────────────
   Nakasendo sales-page extras — shared across the four regular Ghost pages/posts
   (field guide, GPX, accommodation, free preview), loaded only on those slugs.
   Text colours reuse the SITE's own tokens (--color-font-one, --color-two,
   --color-three, --color-body), which already flip correctly for .dark-mode and
   .auto-dark-mode via screen.css — so this file doesn't need its own dark-mode
   block, it just has to avoid hardcoding literal colours for anything that sits
   on the page background. --nk-amber/--nk-amber-ink are the one exception: a
   fixed brand accent that doesn't change with light/dark, same as the rest of
   the Nakasendo pages.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --nk-amber: #e3a53f;
  --nk-amber-ink: #241a08;
}

/* ── Look inside strip ── */
.nk-look-inside { margin: 40px 0; text-align: center; }
.post-content .nk-look-inside-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-font-one); opacity: .55; margin: 0 0 20px; }
.nk-look-inside-strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  max-width: 100%; margin: 0; padding-bottom: 6px;
}
.nk-look-inside-item { flex: 0 0 150px; scroll-snap-align: start; text-align: left; }
.nk-look-inside-item img { width: 100%; height: auto; display: block; box-shadow: 0 6px 18px -6px rgba(0,0,0,.3); border: 1px solid var(--color-two); cursor: zoom-in; margin: 0; }
.nk-look-inside-caption { display: block; font-size: 11.5px; color: var(--color-font-one); opacity: .7; margin-top: 8px; line-height: 1.4; }
@media (min-width: 700px) { .nk-look-inside-strip { justify-content: center; } .nk-look-inside-item { flex-basis: 180px; } }

/* Full-page-image overlay: sizes by max-height against the real fixed-position viewport,
   so it works correctly with mobile browser toolbars — same fix as the /nakasendo/ hero.
   Deliberately NOT theme-adaptive: it's a full-screen dark backdrop regardless of site mode. */
.nk-zoom {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,24,32,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.nk-zoom[hidden] { display: none; }
.nk-zoom img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 20px 60px -10px rgba(0,0,0,.6); }
.nk-zoom-close {
  position: absolute; top: env(safe-area-inset-top, 16px); right: 20px;
  background: none; border: none; color: #fff; font-size: 32px; line-height: 1;
  cursor: pointer; padding: 8px;
}

/* ── "Not sure yet? Read the free preview" ── */
.post-content .nk-preview-link { text-align: center; font-size: 14px; color: var(--color-font-one); opacity: .7; margin: 24px 0; }
.nk-preview-link a { color: var(--color-font-one); opacity: 1; text-decoration: underline; text-underline-offset: 2px; }

/* ── FAQ ── */
.nk-faq { margin: 40px 0; }
.post-content .nk-faq-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-font-one); opacity: .55; margin: 0 0 14px; text-align: center; }
.nk-faq-item { border-bottom: 1px solid var(--color-two); }
.nk-faq-item:first-of-type { border-top: 1px solid var(--color-two); }
.nk-faq-item summary {
  font-weight: 600; color: var(--color-font-one); padding: 16px 4px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.nk-faq-item summary::-webkit-details-marker { display: none; }
.nk-faq-item summary::after { content: '+'; font-size: 20px; color: var(--color-three); margin-left: 12px; flex-shrink: 0; }
.nk-faq-item[open] summary::after { content: '\2212'; }
.nk-faq-item p { padding: 0 4px 16px; color: var(--color-font-one); opacity: .7; font-size: 14.5px; line-height: 1.6; }
.nk-faq-item p a { color: var(--color-font-one); opacity: 1; }
.post-content .nk-faq-contact { text-align: center; font-size: 13px; color: var(--color-font-one); opacity: .7; margin: 18px 0 0; }
.nk-faq-contact a { color: var(--color-font-one); opacity: 1; text-decoration: underline; text-underline-offset: 2px; }

/* ── nk-cta: in-article buy block, filled in by nakasendo-nk-cta.js from one config ──
   Deliberately fixed dark styling (like the /nakasendo/ hero's offer box), not
   theme-adaptive — it's a branded callout, not body content. */
/* :not(.nk-cta--compact) matters — .nk-cta is also the outer wrapper for the
   compact variants (nk-cta.js adds --compact to it so it stays the stable
   query/paste-target selector for both). Without this scoping every compact
   would inherit this dark box/border/padding around its own native-looking
   kg-callout-card markup, double-boxing it — exactly what the compacts are
   meant to avoid. */
.nk-cta:not(.nk-cta--compact) {
  background: #1f2833; border: 1.5px solid var(--nk-amber); padding: 28px 30px; margin: 28px 0;
  text-align: center; font-family: 'DM Sans', -apple-system, sans-serif;
}
/* The source image is ~40% transparent padding around the book, so it's shown
   oversized and absolutely positioned inside a fixed, clipped box — cropping to
   the book alone. Pixel values measured directly from the raw file's alpha
   channel (visible bounds ~969x1240 of 1600x1386), scaled to a 240px-wide crop:
   scale = 240/969 = .2477; image 396x343, offset -48/-30. Sized up from an
   earlier 130px pass — that one was too small to read the "includes GPX" pill. */
.nk-cta-cover { display: block; position: relative; width: 240px; height: 307px; overflow: hidden; margin: 0 auto 18px; }
.nk-cta-cover img { position: absolute; top: -30px; left: -48px; width: 396px; height: 343px; max-width: none; }
.nk-cta-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #ffe9c2; background: rgba(227,165,63,.16); padding: 5px 10px; margin-bottom: 12px;
}
/* flex-wrap: wrap is the overflow safety net for .nk-cta-fx (appended here by
   nakasendo-nk-cta.js) — if "£10  £5  ≈ $6.64 USD" doesn't fit one line at
   narrow widths, the estimate drops to its own centered line within this row
   instead of overflowing or getting clipped. */
.nk-cta-price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 6px; }
.nk-cta-price-was { font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 1.1rem; color: rgba(255,255,255,.4); text-decoration: line-through; }
.nk-cta-price { font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 34px; color: #fff; }
.post-content .nk-cta-note { font-size: 13px; color: #a9b4bd; margin: 0 0 10px; }
.post-content .nk-cta-status { font-size: 13px; color: #d8dee4; margin: 0 0 16px; }
/* Local-currency estimate, appended inline into .nk-cta-price-row by
   nakasendo-nk-cta.js, right after .nk-cta-price. DM Sans/13px here since the
   row is otherwise Shippori Mincho at 34px (the price) and 1.1rem (the
   struck-through was-price) — the estimate reads as a small aside, not
   competing with either. Dimmer than body text, same treatment as
   .hero-offer-fx on /nakasendo/. */
.nk-cta-fx { font-family: 'DM Sans', -apple-system, sans-serif; font-size: 13px; color: rgba(255,255,255,.48); }
/* The white-based .nk-cta-fx above is tuned for the full box's fixed-dark
   background — inside a compact it sits on the site's own adaptive
   background (light in light mode), where white-at-48%-opacity is close to
   invisible. Found by actually looking at the rendered compact, not assumed.
   Same token-based treatment as .members-cta-fx below. */
.nk-cta-compact .nk-cta-fx { color: var(--color-font-one); opacity: .6; }

/* Local-currency estimate in the shared paywall gate (partials/members/cta.hbs)
   — accommodation guide, GPX bundle, field guide. Uses the site's own token
   (like the rest of this file) rather than a literal colour, since .members-cta
   sits on --color-one and needs to flip for dark mode; .members-cta-status/
   -trust in screen.css use opacity:.7, this is slightly dimmer to read as an
   aside within the sentence rather than its own line. */
.post-content .members-cta .members-cta-fx { color: var(--color-font-one); opacity: .6; }
.nk-cta-button {
  display: inline-block; background: var(--nk-amber); color: var(--nk-amber-ink) !important; font-weight: 600;
  font-size: 15px; padding: 13px 28px; text-decoration: none !important;
}
.post-content .nk-cta-trust { font-size: 13px; line-height: 1.5; color: #a9b4bd; margin: 14px 0 0; }
