/* /css/wd-theme.css - S367 Gold glow: the content of every public page in the WolfDen style (built by build_s367.py:
   the site keeps its own colours, the mono type is DM Sans, and the cards / buttons / chips / labels the
   build MEASURED on every page get the WolfDen shapes). Loaded after /css/wd-nav.css. Not on /dashboard (member area) or WolfDen. */
/* S368: the site's own colours (no zinc grey) - only shapes, type and spacing change */
/* type: only what the site draws in the mono (typewriter) font becomes DM Sans - measured per element below; Bebas Neue
   (titles, THE HUNT / THE BOOK, ...) and DM Sans text keep exactly what they are */
body>:not(nav):not(footer):not(.trs) table{border-radius:14px;border-collapse:separate;border-spacing:0}
body>:not(nav):not(footer):not(.trs) th{font-weight:700!important;letter-spacing:.06em!important}
/* ===== WolfDen base (zinc palette, DM Sans, 14px cards, dot labels) - the top nav and the ticker are NOT touched ===== */
body{background:var(--wd-bg)!important}
section{background:var(--wd-bg)!important}
/* labels: WolfDen dot labels instead of gold mono caps */
section .eyebrow,section .stag,section .hc2-lab,section .k,section .plabel,section .ps-tag,section .ptag,section .hc2-tag,section .sec-tag,section .frk,section .pc-live,section .pcard-h,section .cta-note,section .tag-d,section .tag-e,section .tag-r,section .lk{font-family:var(--wd-sans)!important;font-weight:700!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--wd-m)!important}
section .eyebrow::before,section .hc2-tag::before,section .ps-tag::before,section .sec-tag::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#f0b429;margin-right:8px;vertical-align:1px}
/* cards */
section .hc2,section .pcard,section .step,section .plan,section .tile,section .faq-item,section .tp,section .qclus,section .freerow,section .email-wrap,#learn .lmods a,#more .l4 a,section .partner-grid>a{border:1px solid var(--wd-b)!important;border-radius:14px!important;box-shadow:none!important}
section .hc2-row,section .ps-r{border-color:var(--wd-b)!important}
section .hc2-val,section .v{color:var(--wd-t)!important;font-family:var(--wd-sans)!important}
section p,section .ssub,section .sdesc,section .hero-desc,section .pnote{color:var(--wd-m)!important}
/* buttons */
section .btn,section .pbtn,section .hcbtn,section .lbtn,section .frbtn{font-family:var(--wd-sans)!important;font-weight:600!important;letter-spacing:normal!important;text-transform:none!important;border-radius:10px!important;min-height:42px;padding:11px 18px!important;box-shadow:none!important}
section .btn-gold,section .pbtn-solid{background:#f0b429!important;border-color:#f0b429!important;color:#0b0b0d!important}
section .btn-ghost{background:rgba(255,255,255,.035)!important;border:1px solid var(--wd-b2)!important;color:var(--wd-t)!important}
/* section headers: WolfDen page titles (no gold bar) */
section .sec-h,section .lh,section .ltb{border-left:0!important;padding-left:0!important;background-image:none!important;box-shadow:none!important}
section .sec-h::before,section .lh::before{display:none!important}
section .sec-n{display:none!important}
section .faq-q{font-family:var(--wd-sans)!important;font-weight:600!important}
section .lbtn{border-radius:10px!important;font-family:var(--wd-sans)!important;font-weight:600!important;text-transform:none!important;letter-spacing:normal!important}
section .lbtn.lg{background:#f0b429!important;border-color:#f0b429!important;color:#0b0b0d!important}
section .lk::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#f0b429;margin-right:8px;vertical-align:1px}
/* one background for the whole page: no two-tone bands, no lines between sections (beats the page's own !important rules) */
html body>section:not(#hero):not(#zz1):not(#zz2),html body>footer:not(#zz1):not(#zz2){background:var(--wd-bg)!important;border-top:0!important;border-bottom:0!important;box-shadow:none!important}
html body>section#hero:not(#zz1){border:0!important;box-shadow:none!important}
/* card spacing: every card grid gets the same WolfDen gap, and space before the buttons under it */
section .lmods,section .l4,section .l3,section .plans,section .steps-grid,section .partner-grid,section .qclus-grid{gap:14px!important}
@media(max-width:420px){section .lmods,section .l4,section .l3{gap:8px!important}}   /* small phones: the 3 lesson tiles per row still fit */
section .hc2wrap{gap:16px!important}
section .lmods a,section .l4 a{margin:0!important}
section .lrow{margin-top:22px!important;gap:12px!important;display:flex;flex-wrap:wrap}
section .freerow,section .haq{margin-top:16px!important}
section .lh{margin-bottom:22px!important}
/* V4 Gold glow: WolfDen cards + the Wolf Family gold light on the FVG card and the Full Pack, blue light on Quant */
#hero{background:radial-gradient(900px 420px at 18% 10%,rgba(240,180,41,.10),transparent 60%),radial-gradient(700px 380px at 85% 30%,rgba(59,158,255,.07),transparent 60%),var(--wd-bg)!important}
/* S368: a card grid is no longer a frame around its cards - no border round them, no colour showing in the gaps */
section :is(.hc2wrap,.steps-grid,.lmods,.l4,.l3,.plans,.partner-grid,.qclus-grid){border:0!important;overflow:visible!important;background:none!important}
section .hc2:first-child{border-color:rgba(240,180,41,.45)!important}
section .hc2:nth-child(2){border-color:rgba(59,158,255,.4)!important}
#pricing .plan:nth-child(3){border-color:rgba(240,180,41,.55)!important}
section .btn-gold{box-shadow:0 6px 22px rgba(240,180,41,.25)!important}

/* S367: every heading and every Bebas Neue text keeps the site's own style - only the mono font, the colours and the shapes change */
/* small phones (320 px): the Backtest Research tabs scroll inside their row instead of pushing the page sideways */
@media(max-width:420px){.bt-tabs{overflow-x:auto;scrollbar-width:none}.bt-tabs::-webkit-scrollbar{display:none}.bt-tab{padding:12px 12px 10px!important;flex-shrink:0}}
/* S368 spacing: nothing touches a card's edge */
section .pslide{border:0!important;border-radius:0!important}   /* the hero carousel slide sits inside its card: no second box */
section .pcard-n{margin-top:14px!important}
#email .email-wrap{padding:34px 32px 26px!important;box-sizing:border-box}
@media(max-width:640px){#email .email-wrap{padding:26px 18px 20px!important}}
.wrap>.tj-xls{margin-bottom:18px!important}   /* /trading-journal: the Telegram line no longer sits on the card */
.wrap>code{display:inline-block;margin:4px 0 12px}   /* lessons: a formula on its own line keeps clear of the text under it */
/* S368 RULE (Gino, 30 Nov): page content never sits outside the nav's content range (the logo's left edge .. the Free button's
   right edge = --wrap 1180 minus --wrap-pad each side). Checked on every page by align.py.
   1. section columns (the S359 left-align rule) start and end where the nav content does */
html body>section:not(.cta-box):not([style*="text-align:center"])>*{margin-left:max(0px,calc((100% - var(--wrap,1180px))/2 + var(--wrap-pad,26px)))!important;margin-right:max(0px,calc((100% - var(--wrap,1180px))/2 + var(--wrap-pad,26px)))!important}
/* 2. the 1180 px page wrappers use the nav's own side padding */
@media(min-width:769px){body>.wrap,.pv-wrap,body>.contact-wrap,footer .pf,body>.hero>*{padding-left:max(24px,var(--wrap-pad,26px))!important;padding-right:max(24px,var(--wrap-pad,26px))!important}}
/* Hunt / Book: the coloured top line follows the card's rounded corners (it was a straight bar sticking out at the corners) */
section .hc2 .hc2-rule{display:none!important}
section .hc2:first-child{border-top:2px solid var(--gold,#f0b429)!important}
section .hc2:nth-child(2){border-top:2px solid var(--blue,#3b9eff)!important}
/* S368 RULE (Gino, 30 Nov): every button has the nav buttons' rounded corners (10 px). Checked on every page by btnaudit.py.
   Buttons that sat joined in a row (tabs, filters, toggles, jump links) get a small gap so each one is its own rounded button. */
html body :is(a.btn,button.btn,.submit-btn,.jump a,.cf button,.ctoggle button,.ltb button,a.link-gold,.cunit,p>button){border-radius:10px!important}
html body :is(.jump,.cf,.ctoggle,.ltb){gap:6px!important}
/* S368 RULE: every Apex VIP FVG button looks like the Apex VIP FVG nav button (gold text, gold-tinted, gold edge, soft glow) */
html body :is(a,button):is(.btn,.pv-btn2,.f):is([href^="/vip-signals"],[onclick*="'fvg_"],[href="/signal-preview"],[href="#book-fvg"]),
html body a.btn[href="https://t.me/tradetothetop"]+a.btn[href="/#pricing"],
html body .ltb button[data-t="how"].on{color:#ffd166!important;background:rgba(240,180,41,.12)!important;border:1px solid rgba(240,180,41,.45)!important;box-shadow:0 0 8px rgba(240,180,41,.14)!important;border-radius:10px!important;text-shadow:none!important}
html body :is(a,button):is(.btn,.pv-btn2,.f):is([href^="/vip-signals"],[onclick*="'fvg_"],[href="/signal-preview"],[href="#book-fvg"]):hover,
html body a.btn[href="https://t.me/tradetothetop"]+a.btn[href="/#pricing"]:hover{background:rgba(240,180,41,.2)!important}
html body #hero :is(.hcta,.hc2-cta,.hc2) .btn{border-radius:10px!important}   /* the home hero's own rule made these square */
/* the nav content range on the rest: research disclaimers, the member-area login (its two panels), its risk strip and legal line */
html body>div[style*="border-radius:10px"]{margin-left:max(var(--wrap-pad,26px),calc((100% - var(--wrap,1180px))/2 + var(--wrap-pad,26px)))!important;margin-right:max(var(--wrap-pad,26px),calc((100% - var(--wrap,1180px))/2 + var(--wrap-pad,26px)))!important}
/* no text cut off: wide lesson tables scroll sideways on phones instead of being clipped; long codes wrap; chart labels may use the chart's edge */
html body :is(.compare-table,.slip-types,.pair-table,.chart-block){overflow-x:auto!important;-webkit-overflow-scrolling:touch}
html body .rc-grid *{overflow-wrap:anywhere}
html body .chart-block svg{overflow:visible}
html body .waterfall svg{overflow:visible;max-width:82%;display:block;margin-left:0!important;margin-right:auto!important}   /* the margin-call labels are drawn past the chart's right edge: room for them inside the box */
html body .ltb{border:0!important;background:none!important}   /* the tab row is not a frame round its two rounded tabs */

/* ---- measured on every page (build_s367.py from votes.json) ---- */
/* card: 136 */
body>:not(nav):not(footer):not(.trs) :is(a.cl-card,a.mcard,a.rel,details.faq-details,details.faq-i,div.acct-panel,div.af-card,div.af-panel,div.allin,div.allin-scale-card,div.allin-stack,div.author-block,div.box,div.broker-table,div.calbox,div.calcard,div.cdone,div.chart-block,div.cheat,div.cheat-item,div.check,div.checklist,div.cinput,div.cl-card,div.cmp-card,div.cmp-wrap,div.comm-table,div.compare-table,div.confluence-box,div.cost-curve,div.cost-legend-card,div.cout,div.cpanel,div.crec,div.cstrip,div.cx-state,div.disc,div.dl-card,div.dl-code,div.dl-nocode,div.eap-box,div.eap-card,div.eap-mini,div.eap-plain,div.f,div.fails,div.faq-item,div.feat-card,div.form-card,div.formula-block,div.freerow,div.gterm,div.gtools,div.hc2wrap,div.ki-card,div.kpi,div.kpi-box,div.kt-cap,div.kt-it,div.lev-compare,div.lifecycle,div.liq-order,div.liq-row,div.mistake,div.ml-scale,div.mt5-panel,div.mt5-spec,div.n1,div.nbp,div.next,div.notice,div.p,div.pair-card,div.pair-table,div.pcard,div.pip-diagram,div.pipette-compare,div.plan,div.prereq,div.pv-card,div.pv-msg,div.pv-note,div.pv-phone,div.qprog,div.quick-answer,div.quickref,div.quiz,div.rc-grid,div.rc-verdict,div.reg-table,div.res-book,div.res-kpi,div.res-panel,div.review-card,div.risk-compare,div.risk-ladder,div.rules,div.session-block,div.sig-preview,div.slip-diagram,div.slip-stats,div.slip-types,div.slip-waterfall,div.spread-diagram,div.steps-grid,div.stop-col,div.stop-visual,div.streak,div.swap-rules,div.takeaways,div.tiered,div.tj-card,div.tj-curve,div.tj-rt,div.tj-savebar,div.tj-stat,div.tj-tw,div.tj-wk,div.tj-xls,div.tl-content,div.toc,div.toolbox,div.touches-table,div.tp-step,div.tt-disc,div.tt-live,div.verdict,div.vocab-card,div.vocab-search,div.vocab-toolbar,div.warn,div.waterfall,div.why-box,div.worked,div.wr-col,div.wrong-right){border-radius:14px!important;box-shadow:none!important}
/* btn: 26 */
body>:not(nav):not(footer):not(.trs) :is(a.af-btn,a.btn,a.btn-404,a.dl-go,a.dl-rev,a.f,a.lbtn,a.lcard,a.link-purple,a.pbtn,a.pv-btn2,a.q,a.ql-pill,a.vocab-jump,button.btn,button.cadv,button.ccopy,button.csel-btn,button.cshare,button.kt-btn,button.kt-chip,button.lbtn,button.opt,button.pv-more,button.res-cards-more,button.tj-wkb){border-radius:10px!important;font-family:var(--wd-sans)!important;font-weight:600!important;letter-spacing:normal!important;text-transform:none!important}
/* chip: 11 */
body>:not(nav):not(footer):not(.trs) :is(a.gjump,a.tp,div.cl-expect-ico,div.pv-tag,span.dl-tag,span.lv,span.precmk,span.rc-tag,span.sec-tag,span.sig-dir,span.tp){border-radius:999px!important;font-family:var(--wd-sans)!important;font-weight:700!important;letter-spacing:.05em!important}
/* lab: 229 */
body>:not(nav):not(footer):not(.trs) :is(a.cstrip-m,a.eap-go,a.gterm-l,a.link-gold,a.pc-go,a.plink,a.vocab-link,button.creset,div.af-k,div.allin-budget-k,div.allin-budget-text,div.allin-head-k,div.allin-head-sub,div.allin-scale-cost,div.allin-scale-cost-lbl,div.allin-scale-k,div.allin-scale-lot-lbl,div.allin-stack-legend,div.allin-stacked-k,div.badge,div.cbig-l,div.cdone-k,div.ceyebrow,div.chart-sub,div.cheat-k,div.check-box,div.check-k,div.check-pts,div.checklist-k,div.cl-email-label,div.cl-expect-h,div.cl-resp-txt,div.cmp-hint,div.cmp-tag,div.cnote,div.confluence-k,div.cost-curve-sub,div.cost-legend-desc,div.cpanel-k,div.crec-k,div.cta-note,div.eap-job,div.eap-note,div.eap-tag,div.eyebrow,div.fails-k,div.faq-k,div.field-label,div.form-msg,div.formula-block-k,div.formula-line,div.formula-note,div.frk,div.frx,div.hc2-lab,div.hc2-tag,div.hc2-val,div.k,div.kpi-lbl,div.leg,div.lev-ratio-lbl,div.lev-row,div.lifecycle-sub,div.liq-order-k,div.liq-tag,div.mcard-meta,div.mcard-p,div.mchip,div.mhead-k,div.mistake-k,div.ml-scale-sub,div.mnav,div.nbp-k,div.next-k,div.pair-arrow,div.pair-name,div.pair-note,div.pcard-h,div.pcard-n,div.pipette-label,div.pipette-note,div.pipette-price,div.plabel,div.pnote,div.ps-tag,div.psave,div.pv-eye,div.pv-meta,div.pv-when,div.q-n,div.ql-label,div.quick-answer-k,div.quickref-k,div.quiz-sub,div.r,div.rc-stat-lbl,div.rc-stat-val,div.rc-verdict-title,div.rel-k,div.related-h,div.res-def,div.res-kpi-l,div.risk-calc,div.risk-head,div.risk-label,div.risk-ladder-k,div.risk-ladder-note,div.rules-k,div.session-foot,div.session-k,div.session-label,div.session-value,div.sig-row,div.slip-stat-label,div.slip-stat-value,div.slip-stats-k,div.slip-sub,div.slip-waterfall-sub,div.spread-foot,div.spread-head,div.spread-sub,div.stop-col-label,div.stop-col-pips,div.stop-visual-foot,div.stop-visual-head,div.stop-visual-sub,div.streak-bal,div.streak-k,div.streak-rec,div.streak-sub,div.swap-rules-k,div.takeaways-k,div.tiered-foot,div.tiered-k,div.tiered-lev,div.tiered-range,div.tj-curve-n,div.tj-curve-t,div.tj-h,div.tj-sl,div.tk,div.tl-time,div.toc-k,div.tp-rr,div.tradingview-widget-copyright,div.tt-how,div.updated,div.v,div.verdict-title,div.vocab-cat-count,div.vocab-count,div.vocab-term,div.waterfall-cap,div.waterfall-head,div.waterfall-sub,div.why-box-k,div.worked-k,div.worked-row-k,div.worked-row-v,div.wr-k,div.wr-row,figcaption.chart-sub,i.blue,i.gold,i.purple,label.tj-l,p.cx-note,p.edisc,p.ki-h,p.pv-small,p.tf-note,span.allin-label,span.allin-pct,span.allin-sub,span.block-n,span.blue-text,span.caltz,span.cost-legend-title,span.cpost,span.cpre,span.csel-cav,span.csel-dot,span.csel-fl,span.csel-lab,span.cstrip-i,span.cstrip-st,span.dim,span.dot,span.dots,span.faq-arrow,span.gcount,span.gold,span.grn,span.gterm-c,span.lcard-n,span.lcard-st,span.legdot,span.lev-row-k,span.lev-row-v,span.lk,span.mcard-n,span.mchip,span.ml-n,span.ml-r,span.ml-st,span.mlogo,span.notice-h,span.of,span.opt-tick,span.pc-live,span.pip-hl,span.pipette-hl,span.prereq-k,span.pv-chip,span.pv-ex,span.sec-n,span.sig-pair,span.stag,span.stop-col-lots-lbl,span.tj-loghint,span.tj-saved,span.tk-mark,span.toc-n,span.tps,span.tpv,span.vocab-cat-sub,span.wr-result-lbl,span.wr-row-k,span.wr-row-v){font-family:var(--wd-sans)!important;letter-spacing:.06em!important}
/* mono -> DM Sans: 364 (only elements the site draws in the mono font) */
body>:not(nav):not(footer):not(.trs) :is(a.btn,a.cstrip-m,a.dl-go,a.dl-rev,a.eap-go,a.f>small,a.gjump,a.gterm-l,a.gterm-l>span,a.link-gold,a.link-purple,a.pc-go,a.plink,a.q>small,a.top,a.tp>span,a.vocab-jump,a.vocab-link,a.vocab-link>span,button.btn,button.cadv,button.ccopy,button.creset,button.cshare,button.cunit,button.on,button.pv-more,button.res-cards-more,div.acct-foot,div.acct-foot>strong,div.acct-titlebar>span,div.af-k,div.allin-budget-k,div.allin-budget-text>span,div.allin-head-k,div.allin-head-sub,div.allin-scale-cost,div.allin-scale-cost-lbl,div.allin-scale-k,div.allin-scale-lot-lbl,div.allin-stack-legend>span,div.allin-stack-seg,div.allin-stacked-k,div.badge,div.cbig-l,div.cdone-k,div.ceyebrow,div.cf>span,div.cfoot,div.chart-foot,div.chart-foot>strong,div.chart-head,div.chart-sub,div.cheat-item>b,div.cheat-item>span,div.cheat-k,div.check-box,div.check-k,div.check-pts,div.check-total,div.checklist-k,div.cl-email-label,div.cl-expect-h,div.cl-resp-txt,div.cmp-hint>span,div.cmp-tag,div.cnote,div.cnote>b,div.confluence-k,div.cost-curve-cap,div.cost-curve-cap>strong,div.cost-curve-head,div.cost-curve-sub,div.cost-legend-desc,div.cost-legend-desc>strong,div.cout-h>span,div.cpanel-k,div.cr>b,div.crec-k,div.cta-note,div.dl-code,div.dl-code>small,div.dl-nocode,div.eap-job,div.eap-mini>span,div.eap-note,div.eap-tag,div.eyebrow,div.fails-k,div.faq-k,div.field-label,div.foot,div.foot>strong,div.form-msg,div.formula-block-k,div.formula-eq,div.formula-example,div.formula-example>b,div.formula-k,div.formula-line,div.formula-note,div.formula-note>span,div.frk,div.frx,div.hc2-lab,div.hc2-tag,div.hc2-val,div.hc2-val>em,div.hub-stat>span,div.jump>a,div.k,div.kpi-lbl,div.kt-cap>b,div.kt-it>small,div.leg,div.lev-foot,div.lev-foot>strong,div.lev-head,div.lev-ratio-lbl,div.lifecycle-foot,div.lifecycle-foot>strong,div.lifecycle-head,div.lifecycle-sub,div.liq-desc,div.liq-desc>span,div.liq-foot,div.liq-order-k,div.liq-tag,div.mcard-meta,div.mcard-p,div.mchip,div.mhead-k>span,div.mistake-k,div.ml-scale-foot,div.ml-scale-head,div.ml-scale-sub,div.mnav>a,div.mt5-foot,div.mt5-foot>strong,div.mt5-titlebar>span,div.nbp-k,div.next-k,div.next-k>span,div.pair-arrow,div.pair-name,div.pair-note,div.pair-note>strong,div.pair-price,div.pcard-h>span,div.pcard-n,div.pip-diagram-cap,div.pipette-label,div.pipette-note,div.pipette-note>strong,div.pipette-price,div.plabel>span,div.pnote,div.ps-tag,div.psave,div.pv-eye,div.pv-meta>span,div.pv-note>i,div.pv-tag,div.pv-when,div.q-n,div.ql-label,div.qprog>span,div.quick-answer-k,div.quickref-k,div.quiz-sub,div.r,div.r>b,div.rc-stat-lbl,div.rc-stat-val,div.rc-verdict-title,div.rel-k,div.rel-k>span,div.related-h,div.res-def,div.res-empty,div.res-kpi-l,div.risk-calc,div.risk-head,div.risk-label,div.risk-label>strong,div.risk-ladder-k,div.risk-ladder-note,div.risk-ladder-note>strong,div.rules-body>em,div.rules-k,div.session-foot,div.session-k,div.session-label,div.session-value,div.sig-row>span,div.slip-foot,div.slip-foot>strong,div.slip-head,div.slip-stat-label,div.slip-stat-value,div.slip-stats-foot,div.slip-stats-k,div.slip-sub,div.slip-waterfall-cap,div.slip-waterfall-cap>strong,div.slip-waterfall-head,div.slip-waterfall-sub,div.spread-foot,div.spread-foot>strong,div.spread-head,div.spread-sub,div.stop-col-label,div.stop-col-pips,div.stop-visual-foot,div.stop-visual-head,div.stop-visual-sub,div.streak-bal,div.streak-foot,div.streak-foot>strong,div.streak-k,div.streak-rec,div.streak-rec>strong,div.streak-sub,div.swap-rules-k,div.takeaways-k,div.tiered-foot,div.tiered-k,div.tiered-lev,div.tiered-range,div.titlebar>span,div.tj-curve-n,div.tj-curve-t,div.tj-h,div.tj-sl,div.tj-wkbar>b,div.tk,div.tl-time,div.toc-k,div.tp-rr,div.tt-how,div.updated,div.v,div.verdict-title,div.vocab-cat-count,div.vocab-count,div.vocab-count>b,div.vocab-ex,div.vocab-ex>b,div.vocab-term,div.waterfall-cap,div.waterfall-cap>strong,div.waterfall-head,div.waterfall-sub,div.why-box-k,div.why-box-k>span,div.worked-k,div.worked-math,div.worked-math>b,div.worked-math>em,div.worked-math>strong,div.worked-row-k,div.worked-row-v,div.wr-k,div.wrap>a,figcaption.chart-sub,h2.h2brand,i.blue,i.gold,i.purple,input.gfilter,label.tj-l,p.cx-note,p.cx-note>em,p.edisc,p.fact>strong,p.ki-h,p.pv-small,p.pv-small>a,p.tf-note,span.allin-label,span.allin-pct,span.allin-sub,span.block-n,span.blue-text,span.caltz,span.cost-legend-title,span.cpost,span.cpre,span.csel-cav,span.csel-lab,span.cstrip-i,span.cstrip-st,span.dim,span.dim>span,span.dl-tag,span.dot,span.dots>i,span.faq-arrow,span.gcount,span.gold,span.grn,span.gterm-c,span.lcard-n>span,span.lcard-st,span.legdot,span.lev-row-k,span.lev-row-v,span.lk,span.lv,span.mcard-n,span.mchip,span.mchip>span,span.ml-n,span.ml-r,span.ml-st,span.notice-h,span.of,span.of>span,span.opt-tick,span.pc-live>i,span.pc-live>span,span.pip,span.pip-hl,span.pipette-hl,span.precmk,span.prereq-k,span.pv-chip,span.pv-chip>b,span.pv-ex,span.rc-tag,span.sec-n,span.sec-tag,span.sig-dir,span.sig-pair,span.sr-only,span.stag,span.stop-col-lots-lbl,span.tj-loghint,span.tj-loghint>b,span.tj-saved,span.tk-mark,span.toc-n,span.tp>span,span.tps,span.tps>i,span.tpv,span.vocab-cat-sub,span.wr-result-lbl,span.wr-row-k,span.wr-row-v,td.bad,td.bad>strong,td.blue,td.gold,td.good,td.good>span,td.good>strong,td.green,td.mid,td.neg,td.pos,td.red,td.verdict,td.zero){font-family:var(--wd-sans)!important}
/* F3 text minimum 11 px: 210 */
body>:not(nav):not(footer) :is(a.dl-go,a.dl-rev,a.f>small:not([class]),a.gterm-l,a.gterm-l>span:not([class]),a.plink,a.q>small:not([class]),a.top,a.vocab-link,a.vocab-link>span:not([class]),button.cadv,button.ccopy,button.creset,button.cshare,button.cunit,button.pv-more,button.res-cards-more,details.hc2-more>summary:not([class]),div.acct-foot,div.acct-foot>strong:not([class]),div.acct-titlebar,div.acct-titlebar>span:not([class]),div.af-k,div.allin-budget-k,div.allin-head-k,div.allin-scale-cost-lbl,div.allin-scale-k,div.allin-scale-lot-lbl,div.allin-stacked-k,div.badge,div.cdone-k,div.ceyebrow,div.cf>span:not([class]),div.cfield>label:not([class]),div.cfield>label:not([class])>span:not([class]),div.cfoot,div.cheat-k,div.check-k,div.cl-email-label,div.cl-expect-h,div.cmp-card>div:not([class]),div.cmp-hint,div.cmp-hint>span:not([class]),div.cmp-tag,div.cmp-wrap>p:not([class]),div.cname>label:not([class]),div.cnote>b:not([class]),div.confluence-k,div.cout-h,div.cout-h>span:not([class]),div.cpanel-k,div.crec-k,div.ctoggle>button:not([class]),div.dl-code>small:not([class]),div.eap-note,div.eap-tag,div.eyebrow,div.fade>div:not([class])>a:not([class]),div.faq-k,div.field-label,div.foot,div.foot>strong:not([class]),div.formula-block-k,div.frk,div.frx,div.hc2-lab,div.hc2-tag,div.hero-cnt>div:not([class])>span:not([class]),div.hub-stat>span:not([class]),div.jump>a:not([class]),div.kpi-lbl,div.kt-cap>b:not([class]),div.kt-it>small:not([class]),div.leg,div.lev-head,div.lev-ratio-lbl,div.liq-foot,div.liq-order-k,div.liq-tag,div.lmods>a:not([class])>b:not([class]),div.mcard-meta,div.mcard-p,div.mchip,div.mistake-k,div.mt5-foot,div.mt5-foot>strong:not([class]),div.mt5-titlebar,div.mt5-titlebar>span:not([class]),div.nbp-k,div.next-k,div.next-k>span:not([class]),div.pcard-h,div.pcard-h>span:not([class]),div.pcard-n,div.pip-diagram-cap,div.plabel,div.plabel>span:not([class]),div.ps-tag,div.psave,div.pv-eye,div.pv-meta,div.pv-meta>span:not([class]),div.pv-note>i:not([class]),div.pv-tag,div.pv-top>span:not([class])>small:not([class]),div.pv-when,div.q-n,div.ql-label,div.qprog>span:not([class]),div.quick-answer-k,div.quickref-k,div.quiz-sub,div.rc-stat-lbl,div.rc-verdict-title,div.rel-k,div.rel-k>span:not([class]),div.related-h,div.res-book>div:not([class])>div:not([class]),div.res-book>div:not([class])>div:not([class])>strong:not([class]),div.res-book>div:not([class])>h3:not([class])>span:not([class]),div.res-def,div.res-kpi-l,div.risk-head,div.risk-ladder-k,div.rules-k,div.sechead>p:not([class]),div.session-foot,div.session-k,div.slip-stats-foot,div.slip-stats-k,div.spread-foot,div.spread-foot>strong:not([class]),div.spread-head,div.stop-col-label,div.stop-visual-foot,div.stop-visual-head,div.streak-foot,div.streak-foot>strong:not([class]),div.streak-k,div.swap-rules-k,div.takeaways-k,div.tiered-foot,div.tiered-k,div.titlebar,div.titlebar>span:not([class]),div.tj-curve-n,div.tj-curve-t,div.tj-h,div.tj-rt>h4:not([class]),div.tj-sl,div.tk,div.tl-time,div.toc-k,div.tradingview-widget-copyright,div.tradingview-widget-copyright>a:not([class]),div.verdict-title,div.vocab-cat-count,div.waterfall-cap,div.waterfall-cap>strong:not([class]),div.waterfall-head,div.why-box-k,div.why-box-k>span:not([class]),div.worked-k,div.wr-k,label.tj-l,p.cx-note,p.cx-note>em:not([class]),p.edisc,p.pv-small,p.pv-small>a:not([class]),section.cta-box>div:not([class]),span.blue-text,span.caltz,span.dl-tag,span.dots,span.dots>i:not([class]),span.gcount,span.gterm-c,span.lcard-st,span.legdot,span.lk,span.lv,span.mcard-n,span.mchip,span.mchip>span:not([class]),span.ml-r,span.ml-st,span.mlogo,span.mlogo>img:not([class]),span.notice-h,span.pc-live,span.pc-live>i:not([class]),span.pc-live>span:not([class]),span.precmk,span.prereq-k,span.pv-chip,span.pv-chip>b:not([class]),span.pv-ex,span.rc-tag,span.sec-tag,span.sig-dir,span.sr-only,span.stag,span.stop-col-lots-lbl,span.tj-loghint,span.tj-loghint>b:not([class]),span.trs-go,span.vocab-cat-sub,span.wr-result-lbl,table.tj-tbl>thead:not([class])>tr:not([class])>th:not([class])){font-size:11px!important}
/* F4 phone tap targets 32 px: 6 inline + 7 block */
@media(max-width:640px){body>:not(nav):not(footer):not(.trs) :is(a.eap-go,a.gterm-l,div.author-meta>a,div.faq-a>a,div.notice>a,div.prereq>a){display:inline-block;padding:5px 0;min-height:32px}body>:not(nav):not(footer):not(.trs) :is(a.cstrip-m,a.pc-go,a.plink,div.kt-code>a,div.kt-it>a,div.mnav>a,nav.series-nav>a){display:flex;align-items:center;min-height:32px}}

/* S369 legal wording: the footer risk warning at body size (MiFID II Delegated Reg. 2017/565 art. 44(2)(c)) and the
   past-performance box; neither may be smaller than the main text around it */
html body .pf-bot .risk-strip p{font-size:16px!important;line-height:1.6!important;color:var(--text,#e8eaf0)!important}
html body .pf-bot .risk-strip a{color:var(--gold,#f0b429)!important;text-decoration:underline!important;text-underline-offset:3px}
html body .pp-warn{font-size:inherit!important;line-height:1.65!important;color:var(--text,#e8eaf0)!important;background:rgba(240,180,41,.07)!important;border:1px solid rgba(240,180,41,.35)!important;border-radius:10px!important;padding:14px 18px!important;margin:14px 0 18px!important;max-width:900px}
/* S375: (1) the free-account card stays centred - the left-align rule above is for full-width content, not this centred card */
html body > section#email > .email-wrap{margin-left:auto!important;margin-right:auto!important}
/* S375: (2) a coloured header inside a rounded card follows the card's corner (card radius minus its border) */
.cout > .cout-h{border-radius:13px 13px 0 0!important}
#calBox > .calhead{border-radius:12px 12px 0 0!important}

/* S378 (2 Dec 2026) lesson audit: readable small text on phones, contrast to WCAG AA, glossary links, keyboard focus on
   scrollable charts and tables, the lesson top on phones. */
.fdisc{color:#9aa3b2!important}.pf-tag{color:#9aa3b2!important}
td.bad,.bad{color:#ff8a8a}td.good{color:#5fd38d}td.mid{color:#e9c46a}
th{color:#c3cad6}
a.gl{color:inherit;text-decoration:underline dotted;text-decoration-thickness:1px;text-underline-offset:3px;cursor:help}
a.gl:hover,a.gl:focus-visible{color:var(--gold,#f0b429);text-decoration-style:solid}
p a:not(.btn):not(.gl):not([class*="btn"]),.pv-small a,.kt-p a{text-decoration:underline;text-underline-offset:3px}
[role="region"][tabindex="0"]:focus-visible{outline:2px solid #f0b429;outline-offset:2px}
@media(max-width:640px){
  table td,table th{font-size:14px!important}
  .rel-d,.next-d{font-size:14px!important}
  .series-nav .cur{display:none}
  .series-nav{display:flex;justify-content:space-between;gap:14px}
}

/* S381: the lesson-template boxes in the shared theme (zero specificity, so a lesson's own styles still win) */
:where(.why-box){background:var(--surface2);border:1px solid var(--border2);border-left:3px solid var(--blue);padding:22px 26px;margin:26px 0;}
:where(.why-box-k){font-family:'JetBrains Mono',monospace;font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--blue);margin-bottom:12px;}
:where(.why-box p){font-size:14.5px;line-height:1.85;color:var(--muted2);margin-bottom:10px;}
:where(.why-box p:last-child){margin-bottom:0;}
:where(.why-box strong){color:var(--text);font-weight:500;}
:where(.author-block){display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;border:1px solid var(--border);background:var(--surface2);padding:16px 20px;margin-bottom:28px;}
:where(.author-avatar){width:44px;height:44px;background:rgba(240,180,41,.12);border:1px solid rgba(240,180,41,.35);display:flex;align-items:center;justify-content:center;font-family:'Bebas Neue',sans-serif;font-size:20px;color:var(--gold);}
:where(.author-meta){font-size:12.5px;color:var(--muted2);line-height:1.65;}
:where(.author-meta b){color:var(--text);font-weight:500;}
:where(.author-meta .sep){color:var(--muted);padding:0 6px;}
:where(.worked){background:var(--surface2);border:1px solid var(--border2);border-left:3px solid var(--blue);padding:26px 30px;margin:28px 0;}
:where(.worked-k){font-family:'JetBrains Mono',monospace;font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--blue);margin-bottom:18px;}
:where(.worked-grid){display:grid;grid-template-columns:auto 1fr;gap:10px 24px;margin-bottom:22px;}
:where(.worked-row-k){font-family:'JetBrains Mono',monospace;font-size:12px;color:var(--muted);padding-top:1px;}
:where(.worked-row-v){font-family:'JetBrains Mono',monospace;font-size:14px;color:var(--text);font-weight:600;}
:where(.worked-row-v .dim){color:var(--muted2);font-weight:400;}
:where(.worked-math){border-top:1px solid var(--border);padding-top:18px;font-family:'JetBrains Mono',monospace;font-size:15px;color:var(--text);line-height:1.9;}
:where(.worked-math .gold){color:var(--gold);font-weight:700;}
:where(.worked-math .result){font-family:'Bebas Neue',sans-serif;font-size:32px;letter-spacing:.5px;color:var(--gold);display:block;margin-top:6px;}
:where(.rules){background:var(--surface2);border:1px solid var(--border);padding:26px 30px;margin:28px 0;}
:where(.rules-k){font-family:'JetBrains Mono',monospace;font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--gold);margin-bottom:22px;}
:where(.rules-row){display:grid;grid-template-columns:56px 1fr;gap:20px;align-items:flex-start;margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--border);}
:where(.rules-row:last-child){margin-bottom:0;padding-bottom:0;border-bottom:none;}
:where(.rules-num){font-family:'Bebas Neue',sans-serif;font-size:34px;line-height:1;color:var(--gold);letter-spacing:.5px;}
:where(.rules-body){font-size:14.5px;line-height:1.75;color:var(--muted2);}
:where(.rules-body b){color:var(--text);font-weight:600;display:block;margin-bottom:4px;font-size:15px;}
:where(.rules-body em){color:var(--gold);font-style:normal;font-family:'JetBrains Mono',monospace;font-size:12.5px;}
:where(.mistake){background:rgba(240,180,41,.05);border:1px solid rgba(240,180,41,.3);border-left:3px solid var(--gold);padding:18px 22px;margin:28px 0;}
:where(.mistake-k){font-family:'JetBrains Mono',monospace;font-size:10.5px;font-weight:700;letter-spacing:2.2px;text-transform:uppercase;color:var(--gold);margin-bottom:10px;}
:where(.mistake p){font-size:14.5px;color:var(--muted2);line-height:1.85;}
:where(.mistake p:last-child){margin-bottom:0;}
:where(.mistake strong){color:var(--text);font-weight:500;}
:where(.fails){background:rgba(229,62,62,.05);border:1px solid rgba(229,62,62,.28);border-left:3px solid var(--red);padding:24px 28px;margin:44px 0;}
:where(.fails-k){font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:700;letter-spacing:2.2px;text-transform:uppercase;color:var(--red);margin-bottom:14px;}
:where(.fails p){color:var(--muted2);font-size:14.5px;line-height:1.85;}
:where(.fails p:last-child){margin-bottom:0;}
:where(.fails strong){color:var(--text);font-weight:500;}
:where(.fails ol){margin:12px 0 18px 24px;font-size:14.5px;color:var(--muted2);line-height:1.85;}
:where(.fails ol li){margin-bottom:12px;}
:where(.fails ol li strong){color:var(--text);font-weight:500;}
:where(.toolbox){background:linear-gradient(135deg,rgba(240,180,41,.08),rgba(240,180,41,.02));border:1px solid rgba(240,180,41,.35);border-left:3px solid var(--gold);padding:22px 26px;margin:38px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;}
:where(.toolbox-txt){font-size:14.5px;color:var(--muted2);line-height:1.75;max-width:720px;}
:where(.toolbox-txt strong){color:var(--text);font-weight:500;}
@media(max-width:640px){:where(.worked-grid){grid-template-columns:1fr;gap:4px;}:where(.rules-row){grid-template-columns:1fr;gap:8px;}}

/* S381: reference-page links are 40 px tap targets on phones */
@media(max-width:640px){a.vocab-link{display:inline-block;padding:10px 0;min-height:40px}}
/* S382 editable boxes */
/* ===== S382: one style for every editable box in WolfDen (zero specificity: a component's own style still wins) ===== */
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=hidden]),select,textarea){
  background:#0e1219;color:var(--text,#e8eaf0);border:1px solid var(--border2,#2a2f3a);border-radius:8px;padding:6px 10px;min-height:34px;
  font:inherit;font-size:13px;line-height:1.3;color-scheme:dark;box-sizing:border-box;transition:border-color .15s,box-shadow .15s,background .15s}
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),select,textarea):hover{border-color:#3a4252}
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),select,textarea):focus{
  outline:none;border-color:var(--gold,#f0b429);box-shadow:0 0 0 3px rgba(240,180,41,.16);background:#121722}
:where(input,textarea)::placeholder{color:#6f788a;opacity:1}
:where(input:disabled,select:disabled,textarea:disabled){opacity:.55;cursor:not-allowed}
:where(input[type=number]){font-variant-numeric:tabular-nums}
:where(select){cursor:pointer}
:where(select) option{background:#0e1219;color:#e8eaf0}
:where(input[type=checkbox],input[type=radio]){accent-color:var(--gold,#f0b429);width:15px;height:15px;cursor:pointer}
:where(input[type=date],input[type=time],input[type=datetime-local])::-webkit-calendar-picker-indicator{filter:invert(.75);cursor:pointer}

/* S384: the top of a lesson on a phone. The lesson number was shown three times before the title (previous/next box, the big
   number, the module strip): previous/next is now one line of two short links, the big number stays alone and smaller. */
@media(max-width:640px){
  nav.series-nav{flex-wrap:nowrap;padding:8px 12px;margin-bottom:12px;gap:10px}
  nav.series-nav>a{flex:1 1 0;min-width:0;display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:32px}
  nav.series-nav>a:last-child{text-align:right}
  .lesson-num{margin-bottom:4px}
  .lesson-num .n{font-size:30px}
  .lesson-num .of{display:none}
}

/* S387 (build_s387.py): rounded content buttons the site scan found square */
html body ol.mlist li>a{border-radius:12px!important;}
html body a.vocab-link{border-radius:8px!important;}
