/* ═══════════════════════════════════════════════════════════
   BRIDE GUIDE — hub (/guide), topic pages (/guide/<slug>),
   and role bundles (/guide/officiant|music-lead|vendors|photographer)
   ═══════════════════════════════════════════════════════════ */

/* ── Theme variables ──
   Guide-only: this file loads on guide pages alone, so these :root
   overrides never touch the marketing pages. Light is the default;
   dark applies when the device prefers it (no explicit choice) or
   when the reader picks it with the toggle (html[data-theme="dark"],
   remembered in localStorage by the inline script in
   partials/guide-head.njk). The two dark blocks must stay identical. */
:root {
  --g-bg:          var(--color-cream);
  --g-bg-alt:      var(--color-ivory);
  --g-surface:     var(--color-white);
  --g-text:        var(--color-charcoal);
  --g-text-muted:  var(--color-mid);
  --g-border:      var(--color-border);
  --g-link:        var(--color-sage-dark);
  --g-header-shadow: var(--shadow-header);
  --g-card-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  --g-logo-dark:   block;   /* header logo variant on guide pages */
  --g-logo-light:  none;
  --g-icon-moon:   block;   /* theme toggle shows the action, not the state */
  --g-icon-sun:    none;
  --g-scheme:      light;
}
html[data-theme="dark"] {
  --g-bg:          #1b1816;
  --g-bg-alt:      #221e1b;
  --g-surface:     #2a2522;
  --g-text:        #efe9df;
  --g-text-muted:  #b3a99b;
  --g-border:      #3b342e;
  --g-link:        #a9bb9f;
  --g-header-shadow: 0 1px 0 #3b342e, 0 2px 16px rgba(0, 0, 0, 0.5);
  --g-card-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  --g-logo-dark:   none;
  --g-logo-light:  block;
  --g-icon-moon:   none;
  --g-icon-sun:    block;
  --g-scheme:      dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --g-bg:          #1b1816;
    --g-bg-alt:      #221e1b;
    --g-surface:     #2a2522;
    --g-text:        #efe9df;
    --g-text-muted:  #b3a99b;
    --g-border:      #3b342e;
    --g-link:        #a9bb9f;
    --g-header-shadow: 0 1px 0 #3b342e, 0 2px 16px rgba(0, 0, 0, 0.5);
    --g-card-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    --g-logo-dark:   none;
    --g-logo-light:  block;
    --g-icon-moon:   none;
    --g-icon-sun:    block;
    --g-scheme:      dark;
  }
}

/* Page + shared header follow the theme (footer and mobile menu are
   already dark and need nothing). */
html { color-scheme: var(--g-scheme); }
body { background-color: var(--g-bg); color: var(--g-text); }
.site-header.header--page { background-color: var(--g-bg); box-shadow: var(--g-header-shadow); }
.site-header.header--page:not(.menu-open) .logo-dark  { display: var(--g-logo-dark); }
.site-header.header--page:not(.menu-open) .logo-light { display: var(--g-logo-light); opacity: 1; }
.site-header.header--page:not(.menu-open) .header-nav a,
.site-header.header--page:not(.menu-open) .nav-link { color: var(--g-text); }
.site-header.header--page:not(.menu-open) .menu-toggle__bar { background-color: var(--g-text); }
.guide-search__box input::placeholder { color: var(--g-text-muted); opacity: 1; }

/* ── Theme toggle (top-right of the page hero) ── */
.page-hero .container { position: relative; }
.guide-theme {
  position: absolute;
  top: -8px;
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--g-text-muted);
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: color var(--duration-fast) var(--ease-smooth), border-color var(--duration-fast) var(--ease-smooth);
}
.guide-theme:hover,
.guide-theme:focus-visible { color: var(--color-gold); border-color: var(--color-gold); outline: none; }
.guide-theme svg { width: 18px; height: 18px; }
.guide-theme__moon { display: var(--g-icon-moon); }
.guide-theme__sun  { display: var(--g-icon-sun); }
@media (min-width: 768px) { .guide-theme { right: var(--space-lg); } }

/* ── Page hero (mirrors the guests-page pattern) ── */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-lg);
  background: var(--g-bg);
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 400;
  color: var(--g-text);
  margin-bottom: var(--space-sm);
}
.page-hero__sub {
  font-family: var(--font-subhead);
  font-size: var(--text-md);
  color: var(--g-text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}
@media (max-width: 767px) {
  .page-hero {
    padding-top: calc(var(--header-height-mobile) + var(--space-lg));
    padding-bottom: var(--space-md);
  }
}

/* ── Search ── */
.guide-search {
  background: var(--g-bg);
  padding-bottom: var(--space-lg);
}
.guide-search__inner {
  max-width: 560px;
  text-align: center;
}
.guide-search__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g-text);
  margin-bottom: 10px;
}
.guide-search__box {
  position: relative;
}
.guide-search__box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--g-text-muted);
  pointer-events: none;
}
.guide-search__box input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS zoom */
  color: var(--g-text);
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 3px;
  transition: border-color var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-fast) var(--ease-smooth);
}
.guide-search__box input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 154, 94, 0.15);
}
.guide-search__count {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--g-text-muted);
}

/* ── Role chips strip ── */
.guide-roles {
  background: var(--g-surface);
  border-top: 1px solid var(--g-border);
  border-bottom: 1px solid var(--g-border);
  padding: var(--space-md) 0;
  text-align: center;
}
.guide-roles__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}
.guide-roles__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.guide-role-chip {
  display: inline-block;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--g-text);
  text-decoration: none;
  background: var(--g-bg-alt);
  border: 1px solid var(--g-border);
  border-radius: 2px;
  transition: background var(--duration-fast) var(--ease-smooth), border-color var(--duration-fast) var(--ease-smooth);
}
.guide-role-chip:hover,
.guide-role-chip:focus-visible {
  background: var(--g-surface);
  border-color: var(--color-gold);
}

/* ── Ask your AI (hub) ── */
.guide-ai {
  background: var(--g-bg-alt);
  border-bottom: 1px solid var(--g-border);
  padding: var(--space-md) 0;
  text-align: center;
}
.guide-ai__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 8px;
}
.guide-ai__sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--g-text-muted);
  max-width: 560px;
  margin: 0 auto 14px;
}
.guide-ai__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.guide-ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--g-text);
  text-decoration: none;
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-smooth), border-color var(--duration-fast) var(--ease-smooth);
}
.guide-ai-chip:hover,
.guide-ai-chip:focus-visible {
  background: var(--g-bg-alt);
  border-color: var(--color-gold);
}
.guide-ai-chip svg { width: 15px; height: 15px; }
.guide-ai-chip--copy { border-style: dashed; }

/* ── Topic cards (hub) ── */
.guide-topics {
  padding: var(--space-lg) 0 var(--space-xl);
  background: var(--g-bg);
}
.guide-cat { margin-bottom: var(--space-lg); }
.guide-cat__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--g-text);
  margin-bottom: var(--space-sm);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--g-border);
}
.guide-cat__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
@media (min-width: 768px) {
  .guide-cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.guide-card {
  position: relative;
  display: block;
  padding: var(--space-md) var(--space-md);
  padding-right: 52px;
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 3px;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-fast) var(--ease-smooth), border-color var(--duration-fast) var(--ease-smooth);
}
.guide-card:hover,
.guide-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  box-shadow: var(--g-card-shadow);
}
.guide-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--g-text);
  margin-bottom: 6px;
}
.guide-card p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--g-text-muted);
}
.guide-card__arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-md);
  color: var(--color-gold);
  transition: transform var(--duration-fast) var(--ease-smooth);
}
.guide-card:hover .guide-card__arrow { transform: translateY(-50%) translateX(3px); }

.guide-no-results {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  font-family: var(--font-body);
  color: var(--g-text);
}
.guide-no-results p { margin-bottom: 8px; }
.guide-no-results a { color: var(--color-gold); font-weight: 700; }

/* ── Topic page ── */
.guide-topic-hero { text-align: left; padding-bottom: var(--space-md); }
.guide-back {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--g-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-md);
}
.guide-back:hover { color: var(--color-gold); }

.guide-tldr-wrap { background: var(--g-bg); }
.guide-tldr {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-left: 3px solid var(--color-gold);
  border-radius: 3px;
  padding: var(--space-sm) var(--space-md);
}
.guide-tldr__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 6px;
}
.guide-tldr__text {
  font-family: var(--font-subhead);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--g-text);
}

.guide-body {
  background: var(--g-bg);
  padding: var(--space-lg) 0 var(--space-xl);
}

/* ── Prose (rendered markdown) ── */
.guide-prose {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--g-text);
}
.guide-prose h2 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--g-text); /* base.css colours headings charcoal; follow the theme */
  margin: var(--space-md) 0 var(--space-xs);
}
.guide-prose h3 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--g-text);
  margin: var(--space-md) 0 var(--space-xs);
}
.guide-prose h4 { color: var(--g-text); }
.guide-prose p { margin-bottom: var(--space-sm); }
.guide-prose ul,
.guide-prose ol {
  margin: 0 0 var(--space-sm);
  padding-left: 22px;
}
/* The global reset removes list markers; restore them for guide prose */
.guide-prose ul { list-style: disc; }
.guide-prose ol { list-style: decimal; }
.guide-prose li::marker { color: var(--color-gold); font-weight: 700; }
.guide-prose li { margin-bottom: 8px; }
.guide-prose a {
  color: var(--g-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.guide-prose a:hover { color: var(--color-gold); }
.guide-prose strong { font-weight: 700; }
.guide-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: var(--space-sm) 0;
}
.guide-prose hr {
  border: none;
  border-top: 1px solid var(--g-border);
  margin: var(--space-md) 0;
}

.guide-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-sm);
  font-size: var(--text-sm);
}
.guide-prose th,
.guide-prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--g-border);
}
.guide-prose th { font-weight: 700; }

/* Callout (markdown blockquote) — e.g. the "check you're still connected" note */
.guide-prose blockquote {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-left: 3px solid var(--color-gold);
  border-radius: 3px;
  padding: var(--space-sm) var(--space-md);
  margin: 8px 0 var(--space-sm);
}
.guide-prose blockquote p { margin: 0; }
.guide-prose li > blockquote { margin-top: 8px; }

/* Short looping walkthrough clips (phone screen recordings, muted MP4) */
.guide-clip {
  max-width: 280px;
  margin: var(--space-sm) auto var(--space-md);
  text-align: center;
}
.guide-clip video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--g-border);
  background: #000;
}
.guide-clip figcaption {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--g-text-muted);
}

/* Layout diagram figure (Seating topic): full-width image, tap for the 1600px original */
.guide-figure {
  margin: var(--space-sm) 0 var(--space-md);
  text-align: center;
}
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 6px;
  border: 1px solid var(--g-border);
  background: #fff;
}
.guide-figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: var(--space-sm) 0 var(--space-md);
}
.guide-figure-grid .guide-figure { margin: 0; }
.guide-figure--sm figcaption { font-size: var(--text-xs, 0.8rem); line-height: 1.35; }
.guide-figure--tall { max-width: 400px; margin-left: auto; margin-right: auto; }
@media (max-width: 420px) { .guide-figure-grid { gap: 10px; } }
.guide-figure figcaption {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--g-text-muted);
}

/* Promo video: cover photo + play button; js/promo-video.js opens the Stream player in an overlay on tap */
.guide-promo {
  margin: var(--space-sm) 0 var(--space-md);
}
.guide-promo__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--g-border);
  background: #000;
}
.guide-prose .guide-promo__media img,
.guide-promo__media img {
  display: block;
  margin: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-promo figcaption {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--g-text-muted);
  text-align: center;
}

/* Responsive video embeds (future YouTube walkthroughs) */
.guide-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: var(--space-sm) 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--color-charcoal);
}
.guide-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Share row ── */
.guide-share {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--g-border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.guide-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--g-text);
  background: var(--g-surface);
  border: 1.5px solid var(--g-text);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-smooth), color var(--duration-fast) var(--ease-smooth);
}
.guide-share__btn:hover {
  background: var(--g-text);
  color: var(--g-bg);
}
.guide-share__btn svg { width: 16px; height: 16px; }
.guide-share__hint {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--g-text-muted);
}

/* ── "Save this list" (inline in a topic body, after a <ul>) ── */
.guide-prose .guide-savelist {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin: var(--space-sm) 0 var(--space-lg);
}

/* ── Related topics ── */
.guide-related { margin-top: var(--space-lg); }
.guide-related__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}
.guide-related__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Role bundle pages ── */
.guide-toc { border-top: none; }
.guide-role-section { padding-top: var(--space-xs); }
.guide-role-section .eyebrow { margin-bottom: 6px; }
.guide-role-section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--g-text);
  margin-bottom: var(--space-xs);
}
.guide-role-section__tldr {
  font-family: var(--font-subhead);
  font-size: var(--text-md);
  font-style: italic;
  color: var(--g-text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}
.guide-divider {
  border: none;
  border-top: 1px solid var(--g-border);
  margin: var(--space-lg) 0;
}

/* Anchor offset so TOC jumps clear the fixed header */
.guide-role-section[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* ── CTA band (page-local component, mirrors guests page) ── */
.cta-band {
  padding: var(--space-xl) 0;
  background: var(--color-charcoal);
  text-align: center;
}
.cta-band .eyebrow { margin-bottom: 16px; }
.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}
.cta-band p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-md);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ── Search box: Ask button + hint (hub, 2026-10-27) ── */
.guide-search__form { margin: 0; }
.guide-search__box input { padding-right: 84px; }
.guide-search__ask {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-gold);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: filter var(--duration-fast) var(--ease-smooth), opacity var(--duration-fast) var(--ease-smooth);
}
.guide-search__ask:hover,
.guide-search__ask:focus-visible { filter: brightness(0.92); }
.guide-search__ask:focus-visible { outline: 2px solid var(--g-text); outline-offset: 2px; }
.guide-search__ask:disabled { opacity: 0.55; cursor: default; filter: none; }
.guide-search__hint {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--g-text-muted);
}
.guide-search__hint strong { color: var(--g-text); }
/* Turnstile mounts here in interaction-only mode: zero height unless a
   challenge is needed, then the widget drops in under the box. */
.guide-ask__turnstile:empty { display: none; }
.guide-ask__turnstile { margin-top: 10px; display: flex; justify-content: center; }

/* ── Ask answer card (hub) ── */
.guide-ask { margin-top: var(--space-md); text-align: left; }
/* The states below set display:flex/inline-flex, which would beat the
   [hidden] attribute the script toggles — keep hidden meaning hidden. */
.guide-ask [hidden],
.guide-ask[hidden],
.guide-ask__turnstile[hidden] { display: none !important; }
.guide-ask__card {
  background: var(--g-surface);
  border: 1px solid var(--color-gold);
  border-radius: 3px;
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--g-card-shadow);
}
.guide-ask__q {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.guide-ask__a {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--g-text);
  margin: 0 0 12px;
}
.guide-ask__a a,
.guide-ask__text a { color: var(--g-link); font-weight: 700; }
.guide-ask__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--g-text);
  text-decoration: none;
  background: var(--g-bg-alt);
  border: 1px solid var(--g-border);
  border-radius: 2px;
  transition: background var(--duration-fast) var(--ease-smooth), border-color var(--duration-fast) var(--ease-smooth);
}
.guide-ask__open:hover,
.guide-ask__open:focus-visible { background: var(--g-surface); border-color: var(--color-gold); }
.guide-ask__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--g-text);
  margin: 0 0 12px;
}
.guide-ask__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 12px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--g-text-muted);
}
.guide-ask__spinner {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--g-border);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: guide-spin 0.8s linear infinite;
}
@keyframes guide-spin { to { transform: rotate(360deg); } }
.guide-ask__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 10px;
  border-top: 1px solid var(--g-border);
}
.guide-ask__note {
  flex: 1 1 220px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--g-text-muted);
}
.guide-ask__clear {
  min-height: 36px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--g-text-muted);
  background: none;
  border: 1px solid var(--g-border);
  border-radius: 2px;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-smooth), border-color var(--duration-fast) var(--ease-smooth);
}
.guide-ask__clear:hover,
.guide-ask__clear:focus-visible { color: var(--g-text); border-color: var(--color-gold); }

/* ── Search results: ranked order + snippets ── */
/* A live query hides the role-chip strip and the "ask an AI" band so the
   matching cards sit directly under the search box. */
body.guide-searching .guide-roles,
body.guide-searching .guide-ai { display: none; }
/* While a query is live the container becomes a flex column so inline
   `order` on categories (and on cards inside each grid) ranks by hits. */
.guide-topics.is-searching > .container { display: flex; flex-direction: column; }
.guide-topics.is-searching .guide-no-results { order: 999999; }
.guide-card p.guide-card__snip {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--g-border);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--g-text-muted);
  overflow-wrap: anywhere;
}
.guide-card__snip mark {
  background: rgba(184, 154, 94, 0.24);
  color: var(--g-text);
  padding: 0 2px;
  border-radius: 2px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .guide-card,
  .guide-card__arrow,
  .guide-role-chip,
  .guide-ai-chip,
  .guide-ask__open,
  .guide-ask__clear,
  .guide-search__ask,
  .guide-share__btn { transition: none; }
  .guide-card:hover { transform: none; }
  .guide-ask__spinner { animation: none; border-top-color: var(--g-border); }
}

/* ── Bride Guide header (partials/guide-header.njk) ──
   The guide reads as its own small site: logo lockup → hub, guide-only nav,
   no header CTA. Builds on .site-header.header--page (always cream). */
.site-header--guide .header-nav { gap: 26px; }
.guide-logo { gap: 12px; text-decoration: none; }
.guide-logo__divider {
  width: 1px;
  height: 28px;
  background: var(--color-gold);
  opacity: 0.7;
  flex-shrink: 0;
}
.guide-logo__name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--g-text);
  white-space: nowrap;
  transition: color var(--duration-base) var(--ease-smooth);
}
.site-header.menu-open .guide-logo__name { color: var(--color-white); }
.site-header.menu-open .guide-logo__divider { background: var(--color-white); opacity: 0.5; }
@media (max-width: 767px) {
  .guide-logo { gap: 8px; }
  .guide-logo img { width: 96px; }
  .guide-logo__divider { height: 20px; }
  .guide-logo__name { font-size: 14px; }
}
@media (max-width: 359px) {
  .guide-logo__divider, .guide-logo__name { display: none; }
}
@media (max-width: 767px) {
  .site-header--guide .header-inner { gap: 8px; }
  .site-header--guide .menu-toggle { padding: 8px 0 8px 4px; width: 36px; }
}

/* Hub sections the header links to — clear the fixed header on jump */
#topics, #roles, #ask, .guide-cat[id] { scroll-margin-top: calc(var(--header-height) + 12px); }
@media (max-width: 767px) {
  #topics, #roles, #ask, .guide-cat[id] { scroll-margin-top: calc(var(--header-height-mobile) + 12px); }
}

/* Guide mobile menu: category sub-links sit a touch tighter */
.mobile-menu--guide .mobile-menu-nav a.mobile-nav-link--sub { padding-bottom: 2px; }
.mobile-menu--guide .mobile-menu-nav a.mobile-nav-link--sub:last-of-type { padding-bottom: var(--space-xs); }

/* "Your Portal" links render hidden until js/portal-code.js knows the code
   (.btn / flex display rules would otherwise beat the UA [hidden] style) */
[data-portal-link][hidden] { display: none !important; }

/* ── /guide/all: every page on one scroll (src/guide-all.njk) ──
   Same feature as chapelatgruene.com/guide/all. Wide screens: sticky
   contents sidebar that follows the scroll. Phones: a floating "Contents"
   pill opens the same list as a bottom sheet. */
.guide-all-head__lead { font-family: var(--font-subhead); font-size: var(--text-md); color: var(--g-text-muted); max-width: 60ch; margin: 8px 0 0; }
.guide-all-progress { position: fixed; top: var(--header-height-mobile); left: 0; right: 0; height: 2px; z-index: 999; pointer-events: none; }
@media (min-width: 768px) { .guide-all-progress { top: var(--header-height); } }
.guide-all-progress span { display: block; height: 100%; background: var(--color-gold); transform: scaleX(0); transform-origin: left; }
.guide-all { padding-top: var(--space-md); }
.guide-all [id] { scroll-margin-top: calc(var(--header-height-mobile) + 16px); }
@media (min-width: 768px) { .guide-all [id] { scroll-margin-top: calc(var(--header-height) + 16px); } }
.guide-all__content { max-width: 780px; min-width: 0; }
.guide-all__cat {
  margin: var(--space-xl) 0 0; padding-top: 14px; border-top: 2px solid var(--color-gold);
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-gold);
}
.guide-all__cat:first-child { margin-top: 0; }
.guide-all__topic { padding-top: var(--space-md); }
.guide-all__topic + .guide-all__topic { margin-top: var(--space-lg); border-top: 1px solid var(--g-border); }
.guide-all__title { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 600; color: var(--g-text); margin: 0 0 var(--space-sm); line-height: 1.2; }
.guide-all__topic > .guide-prose { margin-top: var(--space-md); }
.guide-all__own { margin: var(--space-sm) 0 0; font-family: var(--font-body); font-size: var(--text-sm); }
.guide-all__own a { color: var(--g-text-muted); text-decoration: underline; text-decoration-color: var(--g-border); text-underline-offset: 3px; }
.guide-all__own a:hover { color: var(--color-gold); }

.guide-all__toc { font-family: var(--font-body); }
.guide-all__toc ul { list-style: none; margin: 0; padding: 0; }
.guide-all__toc-title { margin: 0; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--g-text-muted); }
.guide-all__filter { margin: 12px 0 6px; }
.guide-all__filter input {
  width: 100%; padding: 9px 12px; font-family: var(--font-body); font-size: 16px; color: var(--g-text);
  background: var(--g-surface); border: 1px solid var(--g-border); border-radius: 3px;
}
.guide-all__filter input:focus { outline: none; border-color: var(--color-gold); }
.guide-all__toc-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 16px 0; }
.guide-all__toc-group + .guide-all__toc-group { margin-top: 14px; }
.guide-all__toc-cat { margin: 10px 0 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-gold); }
.guide-all__toc li > a {
  display: block; padding: 5px 12px; font-size: 0.88rem; line-height: 1.4; color: var(--g-text-muted); text-decoration: none;
  border-left: 2px solid var(--g-border); transition: color 0.15s ease, border-color 0.15s ease;
}
.guide-all__toc li > a:hover { color: var(--g-text); }
.guide-all__toc li.is-active > a { color: var(--g-text); font-weight: 700; border-left-color: var(--color-gold); }
.guide-all__toc-sub { margin: 2px 0 6px; }
.guide-all__toc .guide-all__toc-sub a { padding: 3px 12px 3px 24px; font-size: 0.78rem; font-weight: 400; }
.guide-all__toc .guide-all__toc-sub a.is-active { color: var(--g-link); border-left-color: var(--color-gold); }
.guide-all__sheet-head { display: flex; align-items: center; justify-content: space-between; }
.guide-all__close {
  display: none; width: 36px; height: 36px; padding: 0; font-size: 1.5rem; line-height: 1; color: var(--g-text-muted);
  background: none; border: 1px solid var(--g-border); border-radius: 50%; cursor: pointer;
}

@media (min-width: 1024px) {
  .guide-all__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
  .guide-all__toc {
    position: sticky; top: calc(var(--header-height) + 24px); display: flex; flex-direction: column;
    max-height: calc(100vh - var(--header-height) - 48px);
  }
  .guide-all__pill, .guide-all__backdrop { display: none !important; }
}
@media (max-width: 1023.98px) {
  .guide-all__toc {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1110; display: flex; flex-direction: column;
    max-height: min(80vh, 680px); padding: 16px 20px 0; padding-bottom: env(safe-area-inset-bottom);
    background: var(--g-bg); border-top: 1px solid var(--g-border); border-radius: 14px 14px 0 0;
    box-shadow: 0 -18px 50px -18px rgba(0, 0, 0, 0.45);
    transform: translateY(105%); visibility: hidden; transition: transform 0.28s ease, visibility 0s linear 0.28s;
  }
  .guide-all__toc.is-open { transform: none; visibility: visible; transition: transform 0.28s ease; }
  .guide-all__close { display: inline-flex; align-items: center; justify-content: center; }
  .guide-all__toc li > a { padding-top: 8px; padding-bottom: 8px; font-size: 0.98rem; }
  .guide-all__backdrop { position: fixed; inset: 0; z-index: 1105; background: rgba(0, 0, 0, 0.42); }
  .guide-all__pill {
    position: fixed; z-index: 990; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px);
    padding: 11px 18px; font-family: var(--font-body); font-size: 0.85rem; color: var(--g-bg);
    background: var(--g-text); border: none; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    cursor: pointer; transform: translate(-50%, 160%); transition: transform 0.25s ease;
  }
  .guide-all__pill.is-shown { transform: translate(-50%, 0); }
  .guide-all__pill svg { flex: none; width: 17px; height: 17px; }
  .guide-all__pill-label { flex: none; font-weight: 700; letter-spacing: 0.04em; }
  .guide-all__pill-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.75; }
  .guide-all__pill-current:not(:empty)::before { content: "· "; }
  .guide-all__content { padding-bottom: 48px; }
  html.guide-all-locked { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .guide-all__toc, .guide-all__pill { transition: none; } }
@media print {
  .site-header, .guide-all__toc, .guide-all__pill, .guide-all__backdrop, .guide-all-progress, .cta-band, .guide-theme, .guide-all__own { display: none !important; }
  .guide-all__layout { display: block; }
}

/* "Read it all on one page" links (hub + bottom of each topic page) */
.guide-onepage { margin: 14px 0 0; font-family: var(--font-body); font-size: var(--text-sm); color: var(--g-text-muted); }
.guide-onepage a { color: var(--g-link); font-weight: 700; text-decoration: underline; text-decoration-color: var(--g-border); text-underline-offset: 3px; }
.guide-onepage a:hover { color: var(--color-gold); }
.guide-onepage--topic { margin-top: var(--space-lg); text-align: center; }
