/* Long-form reading pages (guides, blog, newsletter) — let the page scroll
   naturally. The promo banner pinned to the top and the sticky nav got in
   the way of long-form navigation, so we override both back to static. The
   `:has()` selector scopes this strictly to pages that mount `main.guide-wrap`,
   so the marketing site keeps its sticky banner everywhere else. */
body:has(main.guide-wrap) {
  padding-top: 0;
}
body:has(main.guide-wrap) .promo-banner {
  position: static;
}
body:has(main.guide-wrap) nav {
  position: static;
  top: auto;
}

.guide-wrap {
  max-width: 760px; margin: 40px auto 80px; padding: 0 24px;
}
.guide-wrap h1 {
  font-size: clamp(32px, 5vw, 48px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 12px;
}
.guide-subtitle {
  color: var(--text-muted); font-size: 16px; font-weight: 500;
  margin-bottom: 40px;
}
.breadcrumbs {
  font-size: 13px; color: var(--text-muted); margin-bottom: 16px;
}
.breadcrumbs a { color: var(--primary-light); text-decoration: none; }
.breadcrumbs span { color: var(--text-muted); }

.guide-article {
  color: var(--text-secondary); font-size: 17px; line-height: 1.8;
}
.guide-article h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  color: var(--text-main); margin: 40px 0 16px; letter-spacing: -0.4px;
}
.guide-article p, .guide-article ul, .guide-article ol { margin-bottom: 18px; }
.guide-article ul, .guide-article ol { padding-left: 24px; }
.guide-article li { margin-bottom: 8px; }
.guide-article strong { color: var(--text-main); }
.guide-article code {
  background: rgba(255,255,255,0.7); border: 1px solid rgba(10, 37, 64,0.1);
  padding: 2px 8px; border-radius: 4px; font-size: 15px; color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.guide-article a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
.guide-article a:hover { color: var(--accent); }
.guide-article em { color: var(--text-secondary); }

.guide-cta {
  margin: 56px 0 0; padding: 40px 32px;
  background: var(--bg-card); border: var(--glass-border);
  border-radius: var(--radius-lg); backdrop-filter: blur(12px);
  text-align: center;
}
.guide-cta h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  margin-bottom: 10px;
}
.guide-cta p { color: var(--text-secondary); margin-bottom: 20px; }

.guides-grid {
  display: grid; gap: 20px; margin-top: 24px;
}
.guide-card {
  background: var(--bg-card); border: var(--glass-border);
  border-radius: var(--radius-md); padding: 28px 28px;
  backdrop-filter: blur(12px); transition: .2s;
}
.guide-card:hover {
  background: var(--bg-card-hover); transform: translateY(-2px);
}
.guide-cat {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--primary-light);
  margin-bottom: 10px;
}
.guide-card h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  line-height: 1.3; margin-bottom: 10px;
}
.guide-card h2 a { color: var(--text-main); text-decoration: none; }
.guide-card h2 a:hover { color: var(--primary-light); }
.guide-desc { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.guide-meta { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ── MOBILE ─────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .guide-wrap { margin: 28px auto 60px; padding: 0 18px; }
  .guide-wrap h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.18; }
  .guide-subtitle { font-size: 15px; margin-bottom: 28px; }
  .guide-article { font-size: 16px; line-height: 1.72; }
  .guide-article h2 { font-size: 21px; margin: 32px 0 12px; }
  .guide-article code { font-size: 14px; }
  .guide-cta { margin: 40px 0 0; padding: 32px 22px; }
  .guide-cta h3 { font-size: 21px; }
  .guide-cta .btn { width: 100%; justify-content: center; }
  .guide-card { padding: 22px 20px; }
  .guide-card h2 { font-size: 20px; line-height: 1.3; }
  .guide-desc { font-size: 14px; }
  .breadcrumbs { font-size: 12px; }
  .breadcrumbs a { display: inline-block; padding: 2px 0; }
}
