/* ───────────────────────────────────────────────────────────────
   GYMEX — Guides / editorial layer
   Base chrome (nav, footer, buttons) mirrors the inline styles used
   on the main pages so /theme.css can override it identically.
   Load order on each guide page: guides.css → theme.css (last wins).
   ─────────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; line-height: 1.7; -webkit-font-smoothing: antialiased; }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 999; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--ink); text-decoration: none; font-weight: 700; }
.skip-link:focus { left: 12px; }

/* ── Nav (mirrors main pages) ── */
nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1100px; margin: 0 auto; padding: 20px 24px; position: sticky; top: 0; z-index: 100; }
.nav-bg { position: absolute; inset: 0; background: rgba(5,8,16,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: -1; }
.logo { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.5px; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: center; padding: 5px; border: 1px solid var(--border-highlight); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 1px solid transparent; transition: all 0.2s ease; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--border); }
.nav-link.active { color: var(--text); background: var(--accent-dim); border-color: rgba(159,216,255,0.35); }

/* ── Article shell ── */
.guide-wrap { position: relative; z-index: 10; max-width: 760px; margin: 0 auto; padding: 48px 24px 40px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border-highlight); }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(159,216,255,0.25); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.guide-wrap h1 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(30px, 5vw, 50px); line-height: 1.08; letter-spacing: -1.2px; margin-bottom: 16px; }
.guide-lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.guide-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }

/* ── Prose ── */
.prose h2 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.6px; margin: 44px 0 14px; }
.prose h3 { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 19px; margin: 30px 0 10px; color: var(--text); }
.prose p { margin-bottom: 18px; color: #d7e2f0; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(159,216,255,0.3); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: #d7e2f0; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: var(--glass); border-radius: 0 12px 12px 0; color: var(--text); font-size: 17px; }

/* Callout */
.callout { margin: 26px 0; padding: 20px 22px; border: 1px solid var(--border-highlight); border-radius: 16px; background: linear-gradient(135deg, rgba(159,216,255,0.06), rgba(138,166,201,0.03)); }
.callout strong { color: var(--accent); }

/* Comparison table */
.guide-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.guide-table th, .guide-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.guide-table th { font-family: 'Outfit', sans-serif; color: var(--text); font-weight: 600; }
.guide-table td { color: var(--text-muted); }
.guide-table tr td:first-child { color: var(--text); font-weight: 600; }

/* FAQ */
.faq { margin-top: 12px; }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: 17px; margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--text-muted); }

/* ── Hub grid ── */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.guide-card { display: block; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); text-decoration: none; transition: all 0.25s ease; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--border-highlight); background: var(--surface-hover); }
.guide-card .tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.guide-card h2 { font-family: 'Outfit', sans-serif; font-size: 19px; font-weight: 700; color: var(--text); margin: 10px 0 8px; letter-spacing: -0.4px; }
.guide-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ── CTA + buttons (mirror main pages) ── */
.guide-cta { max-width: 760px; margin: 40px auto 0; padding: 0 24px; }
.cta-box { padding: 44px 32px; background: linear-gradient(135deg, rgba(159,216,255,0.07), rgba(138,166,201,0.04)); border: 1px solid rgba(159,216,255,0.14); border-radius: 24px; text-align: center; position: relative; overflow: hidden; }
.cta-box h2 { font-family: 'Outfit', sans-serif; font-size: clamp(22px,3.2vw,32px); font-weight: 700; letter-spacing: -0.8px; margin-bottom: 10px; }
.cta-box p { color: var(--text-muted); font-size: 15px; max-width: 440px; margin: 0 auto 22px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 15px; border: 1px solid transparent; transition: all 0.3s ease; }
.btn-primary { color: #050810; background: linear-gradient(135deg, var(--accent), #7cc4f8); box-shadow: 0 4px 24px rgba(159,216,255,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(159,216,255,0.4); }
.btn-secondary { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--border-highlight); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ── Footer (mirrors main pages) ── */
footer { text-align: center; padding: 48px 24px; color: var(--text-muted); font-size: 13px; position: relative; z-index: 10; border-top: 1px solid var(--border); max-width: 1100px; margin: 56px auto 0; }
footer span { color: var(--accent); }
.footer-links { margin-top: 10px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 720px) {
  nav { flex-direction: column; padding: 14px 16px; }
  .nav-links { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; white-space: nowrap; }
  .guide-wrap { padding: 32px 18px; }
}
