/* FXStrength — "Behind the Move" lesson pages.
   Reuses the design tokens (:root vars) and topbar/capture styles from styles.css;
   this file adds long-form article typography + the lesson components. */

/* header nav on lesson pages */
a.brand { text-decoration: none; color: var(--ink); }
.lesson-nav { gap: 16px; }
.lesson-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; }
.lesson-nav a:hover { color: var(--ink); }

/* ── article shell ───────────────────────────────────── */
main.lesson { max-width: 720px; margin: 0 auto; padding: 20px 20px 40px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin: 6px 0 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; opacity: .6; }

.kicker {
  text-transform: uppercase; letter-spacing: .8px; font-size: 12px;
  font-weight: 800; color: var(--accent); margin: 0 0 10px;
}
main.lesson h1 {
  font-size: clamp(26px, 4.4vw, 38px); line-height: 1.18;
  letter-spacing: -.5px; margin: 0 0 14px;
}
.dek { font-size: 18px; color: #c7d0e2; margin: 0 0 16px; line-height: 1.5; }
[data-theme="light"] .dek { color: #33415a; }
.lesson-meta {
  font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 10px 0; margin: 0 0 28px;
}

/* ── body typography ─────────────────────────────────── */
.lesson-body { font-size: 17px; line-height: 1.7; }
.lesson-body p { margin: 0 0 18px; color: #d4dcec; }
[data-theme="light"] .lesson-body p { color: #2b3852; }
.lesson-body h2 {
  font-size: 22px; line-height: 1.3; margin: 38px 0 12px;
  letter-spacing: -.3px; scroll-margin-top: 70px;
}
.lesson-body h3 { font-size: 17px; margin: 26px 0 8px; }
.lesson-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(245,158,11,.35); }
.lesson-body a:hover { border-bottom-color: var(--accent); }
.lesson-body strong { color: var(--ink); font-weight: 700; }
.lesson-body ul { margin: 0 0 18px; padding-left: 22px; }
.lesson-body li { margin: 0 0 8px; color: #d4dcec; }
[data-theme="light"] .lesson-body li { color: #2b3852; }
.lesson-body code {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px; font-size: .9em;
}

/* ── 📌 Key Insight callout ──────────────────────────── */
.insight {
  margin: 26px 0; padding: 16px 18px;
  background: linear-gradient(180deg, rgba(245,158,11,.10), rgba(245,158,11,.03));
  border: 1px solid rgba(245,158,11,.35); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.insight-tag {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.insight-body p { margin: 0; font-size: 17px; color: var(--ink); }
.insight-body p + p { margin-top: 10px; }

/* ── pull quote ──────────────────────────────────────── */
.pullquote {
  margin: 28px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-size: 21px; line-height: 1.4; font-weight: 600; color: var(--ink);
}
.pullquote p { margin: 0; color: var(--ink); }
.pullquote p + p { margin-top: 8px; }

/* ── cheat-sheet cards (scannable reference grid) ────── */
.cheat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.cheat-card {
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 14px 16px;
}
.cheat-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.cheat-card p { margin: 0 0 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cheat-card ul { margin: 2px 0 10px; padding-left: 18px; }
.cheat-card li { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 3px; }
.cheat-card strong { color: var(--ink); }
.cheat-card a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(245, 158, 11, .35); }
.cheat-card a:hover { border-bottom-color: var(--accent); }
.cheat-more { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 12.5px; border-bottom: 0 !important; }
@media (max-width: 640px) { .cheat-grid { grid-template-columns: 1fr; } }

/* ── homepage announcement bar ───────────────────────── */
.annobar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; padding: 9px 42px 9px 16px; text-align: center; font-size: 13px;
  background: linear-gradient(90deg, rgba(245,158,11,.16), rgba(245,158,11,.07));
  border-bottom: 1px solid var(--line);
}
.annobar-link { color: var(--accent); text-decoration: none; }
.annobar-link:hover { text-decoration: underline; }
.annobar-x {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1;
  cursor: pointer; padding: 0 6px;
}
.annobar-x:hover { color: var(--ink); }
.annobar.hidden { display: none; }
#pp-home { scroll-margin-top: 74px; }

/* ── back-to-top button ──────────────────────────────── */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--accent);
  font-size: 18px; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.to-top.show { display: inline-flex; }
.to-top:hover { border-color: var(--accent); }

/* ── pick-a-pair picker ──────────────────────────────── */
.pp-home { margin: 30px 0; }
.pp-home > h2 { font-size: 18px; margin: 0 0 6px; }
.pp-home > p { color: var(--muted); font-size: 13.5px; max-width: 72ch; margin: 0 0 12px; }
.pp-home > p a { color: var(--accent); text-decoration: none; font-weight: 600; }
.pp-home > p a:hover { color: #fbbf24; }
.pairpicker { margin: 22px 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pp-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pp-lab { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.pp-select { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pp-select:focus { outline: none; border-color: var(--accent); }
.pp-vs { color: var(--muted); font-weight: 700; font-size: 12px; }
.pp-dir { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pp-dir button { background: var(--panel-2); border: 0; color: var(--muted); padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.pp-dir button:hover { color: var(--ink); }
.pp-dir button.active[data-dir="buy"] { background: var(--strong); color: #04210f; }
.pp-dir button.active[data-dir="sell"] { background: var(--weak); color: #2a0a0a; }
.pp-leg { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.pp-leg.long { color: var(--strong); }
.pp-leg.short { color: var(--weak); }
.pp-arrow { font-weight: 800; }
.pp-arrow.up { color: var(--strong); }
.pp-arrow.down { color: var(--weak); }
.pp-shared { color: var(--muted); font-weight: 800; }
.pp-shared-li { color: var(--muted); }
.pp-sens { color: var(--muted); font-size: 11px; }
.pp-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp-result .cheat-card { margin: 0; }
.pp-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pp-note a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(245,158,11,.35); }
.pp-waitlist { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); }
.pp-wl-lead { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink); max-width: 72ch; }
.pp-wl-lead { margin-bottom: 4px; }
.pp-wl-lead em { font-style: italic; color: var(--muted); }
.pp-wl-sub { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink); max-width: 72ch; }
.pp-wl-form { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-wl-form input {
  flex: 1; min-width: 220px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 11px 12px; font-size: 14px;
}
.pp-wl-form input:focus { outline: none; border-color: var(--accent); }
.pp-wl-form button {
  background: var(--accent); color: #1a1200; font-weight: 800; border: 0;
  border-radius: 8px; padding: 11px 20px; font-size: 14px; cursor: pointer;
}
.pp-wl-form button:hover { filter: brightness(1.06); }
.pp-wl-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.pp-wl-fine { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); opacity: .85; max-width: 72ch; }
@media (max-width: 640px) { .pp-result { grid-template-columns: 1fr; } }

/* ── transmission chain (A → B → C) ──────────────────── */
.flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 24px 0; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.flow-step {
  font-weight: 700; font-size: 13.5px; color: var(--ink);
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 11px;
}
.flow-arrow { color: var(--accent); font-weight: 800; }

/* ── captioned figure ────────────────────────────────── */
.lesson-figure { margin: 28px 0; position: relative; }
.lesson-figure img {
  width: 100%; height: auto; display: block; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.lesson-figure::after {
  content: "⤢ Enlarge"; position: absolute; top: 10px; right: 10px;
  background: rgba(11,15,23,.72); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 6px; pointer-events: none;
}
.lesson-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

/* fullscreen zoom overlay */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; cursor: zoom-out;
  background: rgba(0,0,0,.92); display: flex; align-items: center;
  justify-content: center; padding: 16px;
}
.lightbox img {
  max-width: 97vw; max-height: 97vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.5);
}

/* ── end-summary cards ───────────────────────────────── */
.summary-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0;
}
.summary-card {
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 16px;
}
.summary-card h3 { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.summary-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 640px) { .summary-cards { grid-template-columns: 1fr; } }

/* ── soft signup CTA (self-selecting) ────────────────── */
.lesson-cta {
  margin: 34px 0; padding: 22px;
  background: linear-gradient(180deg, #14203a, var(--panel));
  border: 1px solid #24345a; border-radius: var(--radius);
}
[data-theme="light"] .lesson-cta {
  background: linear-gradient(180deg, #eaf1ff, #ffffff); border-color: #cbdcfb;
}
.lesson-cta h2 { margin: 0 0 6px; font-size: 20px; }
.lesson-cta > p { color: #c7d0e2; max-width: 60ch; margin: 0; }
[data-theme="light"] .lesson-cta > p { color: #33415a; }
.lesson-cta .capture-form { margin-top: 14px; }

/* ── related lessons ─────────────────────────────────── */
.related { margin: 40px 0 10px; }
.related h2 { font-size: 18px; margin: 0 0 14px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related-card, .lib-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: border-color .15s ease;
}
.related-card:hover, .lib-card:hover { border-color: var(--accent); }
.related-kicker, .lib-kicker {
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
  font-weight: 800; color: var(--accent);
}
.related-title, .lib-title { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.35; }
.related-dek, .lib-dek { color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* ── library index ───────────────────────────────────── */
main.lesson.lib { max-width: 820px; }
.lib-head { margin-bottom: 26px; }
.lib-head h1 { font-size: clamp(26px, 4.4vw, 36px); margin: 0 0 12px; letter-spacing: -.5px; }
.lib-head .dek { max-width: 65ch; }
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .lib-grid { grid-template-columns: 1fr; } }

/* ── footer extras ───────────────────────────────────── */
.foot-news { color: #c7d0e2; font-size: 14px; margin: 0 0 14px; }
[data-theme="light"] .foot-news { color: #33415a; }
.foot-news a { color: var(--accent); text-decoration: none; }
.foot .src a { color: inherit; text-decoration: none; }
