/* Public /guides/ pages (hub + detail). Page-scoped `guide-*` classes on the
   shared design tokens, same visual language as /methodology/ and the reports. */

.guide { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; }

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-decoration: none;
}
.guide-back:hover { color: var(--text-secondary); }

.guide-head { margin-bottom: 34px; }
.guide-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}
.guide-h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.14;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.guide-answer {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--text-secondary);
}
.guide-method-link {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.guide-method-link a, .guide-p a, .guide-table a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.guide-method-link a:hover, .guide-p a:hover, .guide-table a:hover { border-bottom-color: var(--accent); }

.guide-sec { margin-top: 38px; }
.guide-h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.guide-p {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-secondary);
}
.guide-note {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* comparison table */
.guide-table-wrap { overflow-x: auto; margin: 16px 0 6px; }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.guide-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 14px 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.guide-table td {
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.guide-table td:first-child { font-family: var(--font-display); white-space: normal; }
.guide-table td.is-up { color: var(--accent); }

/* closing CTA */
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding: 24px 26px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}
.guide-cta-copy { flex: 1; min-width: 240px; }
.guide-cta-h {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.guide-cta-p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.guide-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--surface-base, #050807);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: filter 120ms ease;
}
.guide-cta-btn:hover { filter: brightness(1.08); }
/* wizard promo variant: accent-framed so the in-app path reads as the
   headline act, while the plain reading CTA stays quiet below it */
.guide-cta.is-wizard {
  border-color: rgba(46, 224, 138, 0.28);
  box-shadow: 0 4px 24px rgba(45, 220, 140, 0.10);
}
.guide-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* practical takeaways */
.guide-takeaways {
  margin: 4px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-takeaways li {
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-secondary);
}
.guide-takeaways li::marker { color: var(--accent); }

/* visible FAQ (mirrors the JSON-LD) */
.guide-faqs { display: flex; flex-direction: column; gap: 22px; }
.guide-faq-q {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.guide-faq-a {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-secondary);
}

/* hub list */
.guide-list { display: flex; flex-direction: column; gap: 12px; }
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 22px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 120ms ease;
}
.guide-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border-subtle)); }
.guide-card-q {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}
.guide-card-d { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
/* series card on the hub: same card, accent-tinted so the reading path reads as
   a destination rather than one more one-off answer */
.guide-card.is-series { border-color: var(--border-accent); }
.guide-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- series: hub chapter list --- */
.guide-chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-chapter-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 120ms ease;
}
.guide-chapter-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border-subtle)); }
.guide-chapter-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  padding-top: 3px;
  min-width: 16px;
}
.guide-chapter-body { display: flex; flex-direction: column; gap: 6px; }
.guide-chapter-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
.guide-chapter-desc { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* --- series: chapters still being written (quiet, deliberately not links) --- */
.guide-planned-h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.guide-planned {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-planned-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--border-subtle);
}
.guide-planned-title { font-size: 14.5px; color: var(--text-secondary); }
.guide-planned-blurb { font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* --- series: prev/next on a chapter page --- */
.guide-chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}
.guide-chapter-link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 120ms ease;
}
a.guide-chapter-link:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border-subtle)); }
.guide-chapter-link.is-next { grid-column: 2; text-align: right; }
.guide-chapter-link.is-end { background: transparent; }
.guide-chapter-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.guide-chapter-q {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.guide-chapter-link.is-end .guide-chapter-q a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

/* --- busted receipt block (chapters quote the live receipt) --- */
.guide-receipt {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.guide-receipt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.guide-receipt-head a {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.guide-receipt-head a:hover { border-bottom-color: var(--accent); }
.guide-receipt-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--warn);
  white-space: nowrap;
}
.guide-receipt-p { font-size: 14.5px; line-height: 1.62; color: var(--text-secondary); }

@media (max-width: 640px) {
  .guide-h1 { font-size: 26px; }
  .guide-chapter-nav { grid-template-columns: 1fr; }
  .guide-chapter-link.is-next { grid-column: 1; text-align: left; }
}
