/*
 * The Trader Sid — shared stylesheet for Trading Foundations gate pages
 * (Strategy, Entry, Exit, Risk Management, Psychology, Journaling).
 *
 * This is the .vg- component system, extracted from the inline
 * <style> blocks that used to be duplicated on every single gate
 * page. Enqueue this once via functions.php (see
 * tradersid_enqueue_foundations_assets() below) rather than pasting
 * it into each page template — the browser then caches it once and
 * reuses it across every page in the sequence, instead of
 * re-downloading and re-parsing an identical ~150 lines of CSS on
 * every single page load.
 *
 * File location: /wp-content/themes/<your-theme>/foundations.css
 * (theme root, alongside functions.php and style.css — no separate
 * css/ subfolder needed)
 */

.vg-page { background: #FFFFFF; color: #16302A; }
html { scroll-behavior: smooth; }
.vg-wrap { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }
.vg-sans { font-family: 'DM Sans', -apple-system, sans-serif; }
.vg-serif { font-family: 'Fraunces', serif; }

.vg-crumbs { display: flex; align-items: center; gap: 8px; padding: 1.75rem 0 0; font-size: 13px; color: #8A8780; }
.vg-crumbs a { color: #8A8780; text-decoration: none; }
.vg-crumbs a:hover { color: #2D6A4F; }

.vg-hero { padding: 1.5rem 0 2.5rem; border-bottom: 1px solid #E4E2DC; }
.vg-gate-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #2D6A4F; font-weight: 700; margin: 0 0 16px; }
.vg-gate-tag .num { width: 20px; height: 20px; border-radius: 50%; background: #2D6A4F; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.vg-h1 { font-size: 36px; font-weight: 600; line-height: 1.15; margin: 0 0 16px; color: #16302A; }
.vg-lede { font-size: 16px; color: #5B5749; line-height: 1.7; margin: 0; max-width: 560px; }

.vg-toc { padding: 2rem 0 0; }
.vg-toc-card { border: 1px solid #E4E2DC; border-radius: 12px; overflow: hidden; }
.vg-toc-head { padding: 1rem 1.25rem; background: #F7F5F0; border-bottom: 1px solid #E4E2DC; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #2D6A4F; }
.vg-toc-list { max-height: 420px; overflow-y: auto; }
.vg-toc-row { display: flex; align-items: center; gap: 12px; padding: 0.7rem 1.25rem; border-top: 1px solid #E4E2DC; text-decoration: none; }
.vg-toc-row:first-child { border-top: none; }
.vg-toc-row:hover { background: #F7F5F0; }
.vg-toc-num { width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; border: 1px solid #DAD6C8; color: #8A8780; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vg-toc-row.proof .vg-toc-num { background: #E9F3EC; border-color: #2D6A4F; color: #2D6A4F; }
.vg-toc-title { font-size: 13.5px; color: #16302A; font-weight: 500; line-height: 1.4; }

.vg-section { padding: 2.5rem 0; border-bottom: 1px solid #E4E2DC; scroll-margin-top: 24px; }
.vg-section:last-of-type { border-bottom: none; }
.vg-eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #2D6A4F; font-weight: 600; margin: 0 0 12px; }
.vg-h2 { font-size: 24px; font-weight: 600; margin: 0 0 14px; color: #16302A; }
.vg-body { font-size: 15px; color: #5B5749; line-height: 1.75; margin: 0 0 14px; }

.vg-pullquote { font-size: 19px; font-family: 'Fraunces', serif; font-weight: 500; color: #16302A; line-height: 1.5; background: #F7F5F0; border-radius: 12px; padding: 1.5rem 1.75rem; margin: 1.5rem 0; }

.vg-crit-list { display: flex; flex-direction: column; gap: 0; }
.vg-crit-row { display: flex; gap: 16px; padding: 1.1rem 0; border-top: 1px solid #E4E2DC; }
.vg-crit-row:first-child { border-top: none; }
.vg-crit-icon { width: 26px; height: 26px; border-radius: 50%; background: #E9F3EC; color: #2D6A4F; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.vg-crit-label { font-size: 15px; font-weight: 700; color: #16302A; margin: 0 0 4px; }
.vg-crit-detail { font-size: 13.5px; color: #8A8780; line-height: 1.6; margin: 0; }

.vg-formula-box { background: #F7F5F0; border: 1px solid #E4E2DC; border-radius: 12px; padding: 1.5rem 1.75rem; margin: 1.5rem 0 0; text-align: center; }
.vg-formula-text { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; color: #16302A; margin: 0; }
.vg-formula-sub { font-family: 'DM Sans', sans-serif; font-size: 12.5px; color: #8A8780; margin: 8px 0 0; }

.vg-fails { background: #FBF3EF; border: 1px solid #E9D5CA; border-radius: 12px; padding: 1.5rem 1.6rem; }
.vg-fails-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #B5654F; margin: 0 0 14px; }
.vg-fail-item { display: flex; gap: 10px; font-size: 13.5px; color: #7A5445; line-height: 1.6; margin-bottom: 10px; }
.vg-fail-item:last-child { margin-bottom: 0; }
.vg-fail-icon { color: #B5654F; flex-shrink: 0; margin-top: 3px; }

.vg-diagram { background: #F7F5F0; border: 1px solid #E4E2DC; border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; }

.vg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.5rem 0 0; }
.vg-compare-card { border: 1px solid #E4E2DC; border-radius: 12px; padding: 1.25rem 1.4rem; }
.vg-compare-title { font-size: 13px; font-weight: 700; color: #16302A; margin: 0 0 8px; }
.vg-compare-text { font-size: 13px; color: #8A8780; line-height: 1.6; margin: 0; }

.vg-tool-cta { background: #F7F5F0; border: 1px solid #E4E2DC; border-radius: 12px; padding: 1.5rem 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.vg-tool-text { font-size: 14.5px; color: #5B5749; max-width: 380px; margin: 0; }
.vg-tool-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #FFFFFF; background: #2D6A4F; padding: 12px 18px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.vg-tool-link:hover { background: #1F4A38; }

.vg-articles { display: flex; flex-direction: column; gap: 0; }
.vg-article-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid #E4E2DC; text-decoration: none; }
.vg-article-row:first-child { border-top: none; }
.vg-article-title { font-size: 14.5px; font-weight: 600; color: #16302A; }
.vg-article-time { font-size: 12.5px; color: #8A8780; white-space: nowrap; }

.vg-proof { border-radius: 12px; padding: 1.6rem 1.75rem; margin: 0.5rem 0; }
.vg-proof.loss { background: #FBF3EF; border: 1px solid #E9D5CA; }
.vg-proof.win { background: #E9F3EC; border: 1px solid #C9E2D2; }
.vg-proof-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: #FFFFFF; margin-bottom: 12px; }
.vg-proof.loss .vg-proof-tag { color: #B5654F; }
.vg-proof.win .vg-proof-tag { color: #2D6A4F; }
.vg-proof-title { font-size: 19px; font-weight: 700; color: #16302A; margin: 0 0 12px; }
.vg-proof-stats { display: flex; gap: 1.75rem; margin-bottom: 12px; flex-wrap: wrap; }
.vg-proof-stat-label { font-size: 11px; color: #8A8780; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 2px; }
.vg-proof-stat-val { font-size: 14px; font-weight: 700; color: #16302A; }
.vg-proof-body { font-size: 14px; color: #5B5749; line-height: 1.65; margin: 0 0 10px; }
.vg-proof-link { font-size: 13px; font-weight: 700; color: #16302A; text-decoration: none; border-bottom: 1px solid #16302A; }

.vg-checklist { border: 1px solid #E4E2DC; border-radius: 12px; overflow: hidden; }
.vg-check-row { display: flex; gap: 12px; align-items: flex-start; padding: 1rem 1.25rem; border-top: 1px solid #E4E2DC; font-size: 14.5px; color: #16302A; }
.vg-check-row:first-child { border-top: none; }
.vg-check-box { width: 18px; height: 18px; border: 1.5px solid #DAD6C8; border-radius: 5px; flex-shrink: 0; margin-top: 2px; }

.vg-newsletter { background: #F7F5F0; border-radius: 12px; padding: 1.75rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.vg-newsletter-title { font-size: 19px; font-weight: 600; color: #16302A; margin: 0 0 6px; max-width: 380px; }
.vg-newsletter-desc { font-size: 13.5px; color: #8A8780; margin: 0; max-width: 380px; line-height: 1.6; }
.vg-beehiiv-form { min-width: 260px; max-width: 100%; flex-shrink: 0; overflow: hidden; }
.vg-beehiiv-form iframe { max-width: 100% !important; width: 100% !important; }

.vg-nav { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 0 3.5rem; gap: 1rem; flex-wrap: wrap; }
.vg-nav-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; padding: 12px 18px; border-radius: 8px; }
.vg-nav-back { color: #5B5749; border: 1px solid #DAD6C8; }
.vg-nav-back:hover { border-color: #16302A; color: #16302A; }
.vg-nav-next { color: #FFFFFF; background: #2D6A4F; }
.vg-nav-next:hover { background: #1F4A38; }

@media (max-width: 600px) {
    .vg-h1 { font-size: 26px; }
    .vg-nav { flex-direction: column-reverse; align-items: stretch; }
    .vg-nav-link { justify-content: center; }
    .vg-newsletter { flex-direction: column; align-items: stretch; padding: 1.5rem; }
    .vg-beehiiv-form { min-width: 0; width: 100%; }
}