/* templates/marketplace/guide/{pillar,detail}.twig — Phase 3b SEO
 *
 * Phase 5 elite editorial polish (2026-05-24). Editorial pillar + four
 * deep-dive guide pages, lifted to coherent editorial language across
 * the entire surface — hero, intro, TOC, body, table, cards, howto,
 * FAQ, related, closing CTA.
 *
 * Layout: max-width content column for readability (650-720px body
 * width for prose). Hero sits at the top, full-width on mobile, two-
 * column on desktop (copy left, art right). All blocks collapse to a
 * single column at <=767px per the mobile-first rule.
 *
 * Visual language (shared with marketplace-browse-seo + listing-seo):
 *   - Soft indigo (--color-primary-soft) as the one accent moment
 *   - Display font (Plus Jakarta Sans) on headings, tight letter-spacing
 *   - Uppercase eyebrow labels (10-11px, 0.1em tracking) for rhythm
 *   - Two-layer shadow recipe (hairline + soft drop) on cards
 *   - ZERO side-stripe border accents
 */

/* ── Shell ── */
.mp-guide {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}
@media (min-width: 768px) {
  .mp-guide {
    padding: 28px 24px 72px;
  }
}

/* ── Breadcrumb ── */
.mp-guide-breadcrumb {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  margin-bottom: 20px;
  letter-spacing: 0.005em;
}
.mp-guide-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mp-guide-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mp-guide-breadcrumb a {
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color 150ms ease;
}
.mp-guide-breadcrumb a:hover {
  color: var(--color-primary);
}
.mp-guide-breadcrumb [aria-current="page"] {
  color: var(--color-gray-800);
  font-weight: 600;
}
.mp-guide-breadcrumb__sep {
  color: var(--color-gray-300);
  font-size: 0.75rem;
}

/* ── Hero block ──────────────────────────────────────────────────
 * Editorial-magazine hero. Eyebrow above the H1 (placed via ::before),
 * massive tight-tracked display heading, refined byline as a chip
 * strip, hero art with layered shadow + 1px hairline border. */
.mp-guide-hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
}
.mp-guide-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mp-guide-hero__copy::before {
  content: 'CollabPals Guide';
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.mp-guide-hero__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-gray-900);
  margin: 0;
  letter-spacing: -0.025em;
}
.mp-guide-hero__sub {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-gray-600);
  margin: 0;
}
.mp-guide-hero__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  margin-top: 6px;
  letter-spacing: 0.005em;
}
.mp-guide-hero__author {
  color: var(--color-gray-700);
}
.mp-guide-hero__author a {
  color: var(--color-gray-900);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.mp-guide-hero__author a:hover {
  color: var(--color-primary);
}
.mp-guide-hero__dot {
  width: 3px;
  height: 3px;
  background: var(--color-gray-300);
  border-radius: 50%;
  font-size: 0;
}
.mp-guide-hero__updated {
  color: var(--color-gray-500);
  font-weight: 500;
}
.mp-guide-hero__readtime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--color-primary-soft);
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.mp-guide-hero__readtime::before {
  content: '\f017';
  font-family: 'Font Awesome 5 Free';
  font-weight: 400;
  font-size: 0.6875rem;
}
.mp-guide-hero__art {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-gray-100);
  aspect-ratio: 16 / 9;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.04);
}
.mp-guide-hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .mp-guide-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 36px;
  }
  .mp-guide-hero__title {
    font-size: 2.5rem;
    line-height: 1.08;
  }
  .mp-guide-hero__sub {
    font-size: 1.125rem;
  }
}
@media (min-width: 1024px) {
  .mp-guide-hero__title {
    font-size: 3rem;
    letter-spacing: -0.028em;
  }
}

/* ── Intro lede ───────────────────────────────────────────────────
 * Soft indigo surface with refined typography. No border-left stripe.
 * Subtle radial gradient overlay gives the surface depth without going
 * directional. */
.mp-guide-intro {
  position: relative;
  margin-bottom: 32px;
  padding: 22px 24px 24px;
  background: var(--color-primary-soft);
  border-radius: 16px;
  overflow: hidden;
}
.mp-guide-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.08), transparent 55%);
  pointer-events: none;
}
.mp-guide-intro__lede {
  position: relative;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-gray-800);
  margin: 0;
  letter-spacing: -0.005em;
}
@media (min-width: 768px) {
  .mp-guide-intro {
    padding: 26px 30px 28px;
  }
  .mp-guide-intro__lede {
    font-size: 1.125rem;
    line-height: 1.7;
  }
}

/* ── Table of contents ────────────────────────────────────────────
 * Refined white card with eyebrow + two-column body. Bullets removed,
 * numbered links via counter for editorial feel. */
.mp-guide-toc {
  margin-bottom: 36px;
  padding: 22px 24px 20px;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 8px rgba(15, 23, 42, 0.04);
}
.mp-guide-toc__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 14px;
}
.mp-guide-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.mp-guide-toc__list li {
  counter-increment: toc;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-gray-700);
  position: relative;
  padding-left: 26px;
}
.mp-guide-toc__list li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-gray-400);
  letter-spacing: 0.02em;
  transition: color 150ms ease;
}
.mp-guide-toc__list li:hover::before {
  color: var(--color-primary);
}
.mp-guide-toc__list a {
  color: var(--color-gray-800);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}
.mp-guide-toc__list a:hover {
  color: var(--color-primary);
}
@media (min-width: 768px) {
  .mp-guide-toc__list {
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }
}

/* ── Body sections (the long-form prose) ──────────────────────────
 * Refined editorial typography. Section heading gets a small indigo
 * accent dot (NOT a side stripe) and tighter display-font tracking. */
.mp-guide-body {
  margin: 0 0 40px;
}
.mp-guide-section {
  margin-bottom: 32px;
  scroll-margin-top: 80px;
}
.mp-guide-section__heading {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-gray-900);
  margin: 0 0 14px;
  letter-spacing: -0.022em;
  position: relative;
  padding-left: 18px;
}
.mp-guide-section__heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}
.mp-guide-section__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-gray-800);
  margin: 0;
}
/* Inline contextual links inside body prose. Refined underline that
 * thickens + darkens on hover. */
.mp-guide-intro__lede a,
.mp-guide-section__body a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 150ms ease,
    text-decoration-color 180ms ease,
    text-decoration-thickness 180ms ease;
}
.mp-guide-intro__lede a:hover,
.mp-guide-section__body a:hover,
.mp-guide-intro__lede a:focus-visible,
.mp-guide-section__body a:focus-visible {
  color: var(--color-primary-dark);
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
}
@media (min-width: 768px) {
  .mp-guide-section {
    margin-bottom: 40px;
  }
  .mp-guide-section__heading {
    font-size: 1.625rem;
    padding-left: 22px;
  }
  .mp-guide-section__heading::before {
    width: 8px;
    height: 8px;
  }
  .mp-guide-section__body {
    font-size: 1.125rem;
  }
}
@media (max-width: 767px) {
  .mp-guide-section__heading {
    font-size: 1.25rem;
    padding-left: 16px;
  }
  .mp-guide-section__body {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* ── Comparison table (pillar-only, AEO win) ──────────────────────
 * Eyebrow + display heading; scrollable horizontal container so the
 * 5-column table never breaks the mobile-first horizontal-scroll rule.
 * Subtle zebra + indigo accent on row headers. */
.mp-guide-table {
  margin: 44px 0 32px;
  scroll-margin-top: 80px;
}
.mp-guide-table__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 16px;
  letter-spacing: -0.022em;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mp-guide-table__heading::before {
  content: 'Side-by-side';
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.mp-guide-table__scroller {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 8px rgba(15, 23, 42, 0.04);
  -webkit-overflow-scrolling: touch;
}
.mp-guide-table__scroller:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.mp-guide-table__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.mp-guide-table__table thead th {
  background: var(--color-gray-50);
  color: var(--color-gray-600);
  font-family: var(--font-body);
  font-weight: 800;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid var(--color-gray-200);
  white-space: nowrap;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mp-guide-table__table tbody th {
  text-align: left;
  vertical-align: top;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-gray-900);
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid var(--color-gray-100);
  white-space: nowrap;
  letter-spacing: -0.012em;
  /* No dot accent — same floating-bullet bug as
   * .mp-compare__table tbody th[scope="row"]::before would have shown
   * here. The dot was vertically centered to the cell, while the text
   * sat at the top because sibling cells wrapped. Removed entirely. */
}
.mp-guide-table__table tbody td {
  padding: 16px 18px;
  color: var(--color-gray-700);
  line-height: 1.55;
  border-bottom: 1px solid var(--color-gray-100);
  vertical-align: top;
}
.mp-guide-table__table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.6);
}
.mp-guide-table__table tbody tr:last-child th,
.mp-guide-table__table tbody tr:last-child td {
  border-bottom: 0;
}
.mp-guide-table .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 767px) {
  .mp-guide-table {
    margin: 32px 0 24px;
  }
  .mp-guide-table__heading {
    font-size: 1.25rem;
  }
  .mp-guide-table__heading::before {
    font-size: 0.625rem;
  }
}

/* ── Card grids (pillar deep-dive + category + facet sections) ────
 * Three different grid variants (default 2-col deep-dive, --two,
 * --four). Each card uses two-layer shadow recipe + animated arrow
 * on hover. */
.mp-guide-cards {
  margin: 44px 0 32px;
  scroll-margin-top: 80px;
}
.mp-guide-cards__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 8px;
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.mp-guide-cards__sub {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-gray-600);
  margin: 0 0 20px;
}
.mp-guide-cards__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.mp-guide-cards__grid--two,
.mp-guide-cards__grid--four {
  grid-template-columns: 1fr;
}
.mp-guide-cards__card {
  display: flex;
}
.mp-guide-cards__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  color: var(--color-gray-800);
  text-decoration: none;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 6px rgba(15, 23, 42, 0.04);
  transition:
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 150ms ease;
}
.mp-guide-cards__link::after {
  /* Arrow at top-right that animates on hover. Replaces the implicit
   * "tap target with no affordance" pattern. */
  content: '\f061';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--color-gray-300);
  position: absolute;
  top: 16px;
  right: 18px;
  transition:
    color 150ms ease,
    transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-guide-cards__link:hover,
.mp-guide-cards__link:focus-visible {
  border-color: rgba(79, 70, 229, 0.25);
  color: var(--color-gray-900);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px rgba(79, 70, 229, 0.1);
}
.mp-guide-cards__link:hover::after,
.mp-guide-cards__link:focus-visible::after {
  color: var(--color-primary);
  transform: translateX(3px);
}
.mp-guide-cards__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.015em;
  line-height: 1.3;
  padding-right: 22px;
  transition: color 150ms ease;
}
.mp-guide-cards__link:hover .mp-guide-cards__title {
  color: var(--color-primary-dark);
}
.mp-guide-cards__blurb {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-gray-600);
}
.mp-guide-cards__card--compact .mp-guide-cards__link {
  padding: 16px 18px;
}
.mp-guide-cards__card--compact .mp-guide-cards__title {
  font-size: 0.9375rem;
}
.mp-guide-cards__card--compact .mp-guide-cards__blurb {
  font-size: 0.8125rem;
}
.mp-guide-cards__card--compact .mp-guide-cards__link::after {
  top: 14px;
  right: 16px;
  font-size: 0.6875rem;
}
@media (min-width: 768px) {
  .mp-guide-cards {
    margin: 52px 0 36px;
  }
  .mp-guide-cards__grid {
    gap: 14px;
  }
  .mp-guide-cards__grid--two {
    grid-template-columns: 1fr 1fr;
  }
  .mp-guide-cards__grid--four {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .mp-guide-cards__grid--four {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 767px) {
  .mp-guide-cards__heading {
    font-size: 1.25rem;
  }
}

/* ── HowTo ordered list (detail pages with howto_steps) ───────────
 * Numbered circles with subtle vertical connector line between steps
 * (replaces the implicit list pattern with explicit sequence). */
.mp-guide-howto {
  margin: 44px 0 36px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 16px rgba(15, 23, 42, 0.04);
  scroll-margin-top: 80px;
}
.mp-guide-howto__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 22px;
  letter-spacing: -0.022em;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mp-guide-howto__heading::before {
  content: 'Step by step';
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.mp-guide-howto__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.mp-guide-howto__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}
/* Vertical connector line between numbered circles. Implemented on the
 * step (not the parent) so the last step naturally has no trailing
 * line. */
.mp-guide-howto__step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: -22px;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-primary-soft), transparent);
}
.mp-guide-howto__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  position: relative;
  z-index: 1;
}
.mp-guide-howto__copy {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.mp-guide-howto__step-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.mp-guide-howto__step-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-gray-700);
  margin: 0;
}
@media (min-width: 768px) {
  .mp-guide-howto {
    padding: 32px 32px;
  }
  .mp-guide-howto__num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .mp-guide-howto__step:not(:last-child)::before {
    left: 18px;
    top: 40px;
  }
  .mp-guide-howto__step-name {
    font-size: 1.125rem;
  }
  .mp-guide-howto__step-body {
    font-size: 1rem;
  }
}

/* ── FAQ (matches .mp-faq shape on browse pages) ──────────────────── */
.mp-guide-faq {
  margin: 44px 0 36px;
  scroll-margin-top: 80px;
}
.mp-guide-faq__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 20px;
  letter-spacing: -0.022em;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mp-guide-faq__heading::before {
  content: 'Common questions';
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.mp-guide-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mp-guide-faq__item {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  overflow: hidden;
  transition:
    border-color 150ms ease,
    box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-guide-faq__item:hover {
  border-color: var(--color-gray-300);
}
.mp-guide-faq__item[open] {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}
.mp-guide-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-gray-900);
  cursor: pointer;
  list-style: none;
  user-select: none;
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color 150ms ease;
}
.mp-guide-faq__q::-webkit-details-marker { display: none; }
.mp-guide-faq__q:hover {
  color: var(--color-primary);
}
.mp-guide-faq__item[open] .mp-guide-faq__q {
  color: var(--color-primary-dark);
  padding-bottom: 14px;
}
.mp-guide-faq__chevron {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  border-radius: 50%;
  font-size: 0.8125rem;
  transition:
    transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
    background 150ms ease,
    color 150ms ease;
  flex-shrink: 0;
}
.mp-guide-faq__q:hover .mp-guide-faq__chevron {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.mp-guide-faq__item[open] .mp-guide-faq__chevron {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: #fff;
}
.mp-guide-faq__a {
  padding: 0 22px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-700);
}
@media (max-width: 767px) {
  .mp-guide-faq {
    margin: 32px 0 28px;
  }
  .mp-guide-faq__heading {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }
  .mp-guide-faq__heading::before {
    font-size: 0.625rem;
  }
  .mp-guide-faq__q {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }
  .mp-guide-faq__item[open] .mp-guide-faq__q {
    padding-bottom: 12px;
  }
  .mp-guide-faq__chevron {
    width: 26px;
    height: 26px;
    font-size: 0.6875rem;
  }
  .mp-guide-faq__a {
    padding: 0 18px 18px;
    font-size: 0.9375rem;
  }
}

/* ── Related links (deep-dive pages only) ────────────────────────
 * Refined link rows with arrow that animates on hover. Same surface
 * tint as the marketplace-browse mp-links-mesh for visual coherence. */
.mp-guide-related {
  margin: 44px 0 32px;
  padding: 24px 24px 22px;
  background: linear-gradient(180deg, var(--color-gray-50), #fff);
  border: 1px solid var(--color-gray-100);
  border-radius: 18px;
}
.mp-guide-related__heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 16px;
  letter-spacing: -0.018em;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mp-guide-related__heading::before {
  content: 'Keep reading';
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.mp-guide-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-guide-related__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: 12px;
  color: var(--color-gray-800);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.35;
  transition: all 150ms ease;
}
.mp-guide-related__link:hover,
.mp-guide-related__link:focus-visible {
  border-color: rgba(79, 70, 229, 0.2);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}
.mp-guide-related__arrow {
  font-size: 0.75rem;
  color: var(--color-gray-300);
  transition:
    color 150ms ease,
    transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-guide-related__link:hover .mp-guide-related__arrow {
  color: var(--color-primary);
  transform: translateX(3px);
}
@media (max-width: 767px) {
  .mp-guide-related {
    margin: 32px 0 24px;
    padding: 20px 16px 18px;
    border-radius: 14px;
  }
  .mp-guide-related__heading {
    font-size: 1.125rem;
    margin-bottom: 14px;
  }
  .mp-guide-related__heading::before {
    font-size: 0.625rem;
  }
}

/* ── Closing CTA ─────────────────────────────────────────────────
 * Soft indigo gradient surface with refined hierarchy. The CTA
 * itself is the page's single conversion-priority moment. */
.mp-guide-cta {
  margin: 48px 0 20px;
  padding: 32px 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 70, 229, 0.10), transparent 55%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(79, 70, 229, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mp-guide-cta__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 10px;
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.mp-guide-cta__body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0 0 22px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.mp-guide-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
}
.mp-guide-cta__actions .button {
  width: 100%;
}
@media (min-width: 568px) {
  .mp-guide-cta__actions {
    flex-direction: row;
    align-items: center;
  }
  .mp-guide-cta__actions .button {
    width: auto;
  }
}
@media (min-width: 768px) {
  .mp-guide-cta {
    margin: 56px 0 24px;
    padding: 40px 32px;
  }
  .mp-guide-cta__heading {
    font-size: 1.875rem;
  }
  .mp-guide-cta__body {
    font-size: 1.125rem;
    margin-bottom: 24px;
  }
}
@media (max-width: 767px) {
  .mp-guide-cta {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .mp-guide-cta__heading {
    font-size: 1.25rem;
  }
  .mp-guide-cta__body {
    font-size: 0.9375rem;
    margin-bottom: 18px;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mp-guide-cards__link,
  .mp-guide-related__link,
  .mp-guide-cards__link::after,
  .mp-guide-related__arrow,
  .mp-guide-faq__chevron,
  .mp-guide-faq__item,
  .mp-guide-toc__list a {
    transition: none !important;
    animation: none !important;
  }
  .mp-guide-cards__link:hover,
  .mp-guide-related__link:hover {
    transform: none !important;
  }
}
