/* Shared styles for MongoTrader /learn content pages.
   Matches the landing brand system (dark + purple, Grift variable font). */

@font-face {
  font-family: 'Grift';
  src: url('/GriftVariable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --border: #1a1a1a;
  --border-hover: #2a2a2a;
  --text: #ededed;
  --text-secondary: #9a9a9a;
  --text-dim: #6a6a6a;
  --purple: #a855f7;
  --purple-soft: #c084fc;
  --purple-dim: rgba(168, 85, 247, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Grift', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--purple-soft); text-decoration: none; }
a:hover { color: var(--purple); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.01em;
}
.header-actions { display: flex; gap: 0.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-soft); }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1.05rem; }

/* Article */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-secondary); }
.article h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.article .lede {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}
.article h2 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 1rem;
}
.article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.6rem;
}
.article p { margin-bottom: 1.1rem; color: var(--text); }
.article ul, .article ol { margin: 0 0 1.3rem 1.3rem; }
.article li { margin-bottom: 0.5rem; }
.article strong { color: #fff; }

/* Callout / CTA box */
.cta-box {
  margin: 3rem 0 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--purple-dim), transparent);
  text-align: center;
}
.cta-box h2 { margin: 0 0 0.5rem; }
.cta-box p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* FAQ */
.faq { margin-top: 1rem; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--purple); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0.8rem 0 0; color: var(--text-secondary); }

/* Related links */
.related { margin-top: 3rem; }
.related ul { list-style: none; margin-left: 0; }
.related li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin-bottom: 1rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; }
