/* AblazeFX Design C on WordPress: the few rules v19 didn't need as a single-file mockup. */
:root{--strip:0px}

/* Skip link and hidden spam trap */
.afxc-skip{position:absolute;inset-inline-start:var(--gutter);inset-block-start:-4rem;z-index:20;padding:.6rem 1rem;border-radius:.5rem;background:var(--ember);color:var(--on-ember);font-weight:700}
.afxc-skip:focus{inset-block-start:.75rem}
.afxc-hp{position:absolute!important;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* WordPress toolbar for signed-in staff: keep sticky bars below it */
body.admin-bar .pub-top,body.admin-bar .m-top{inset-block-start:32px}
body.admin-bar .side{inset-block-start:32px;block-size:calc(100dvh - 32px)}
@media (max-width:782px){body.admin-bar .pub-top,body.admin-bar .m-top{inset-block-start:46px}#wpadminbar{position:fixed}}

/* AblazeFX opened from the iPhone Home Screen draws the page under the clock and camera (status bar style
   black-translucent), so the top bars grow by that strip and keep the logo below it. In a normal browser tab the
   strip is 0 and nothing changes. */
@media (max-width:47.99em){.m-top{padding-block-start:env(safe-area-inset-top,0px);min-block-size:calc(4.25rem + env(safe-area-inset-top,0px))}}
@media (min-width:48em){.side{padding-block-start:calc(.6rem + env(safe-area-inset-top,0px))}}
/* Staff with the WordPress toolbar: the toolbar takes that strip instead (it grows by it, and the page, the sticky
   bars and the full-window chat move down with it), so the bars under it need no strip of their own. */
html body #wpadminbar{block-size:calc(32px + env(safe-area-inset-top,0px));padding-block-start:env(safe-area-inset-top,0px)}
html:root:has(#wpadminbar){margin-block-start:calc(32px + env(safe-area-inset-top,0px))!important;--wp-admin--admin-bar--height:calc(32px + env(safe-area-inset-top,0px))}
body.admin-bar .pub-top,body.admin-bar .m-top{inset-block-start:calc(32px + env(safe-area-inset-top,0px))}
body.admin-bar .side{inset-block-start:calc(32px + env(safe-area-inset-top,0px));block-size:calc(100dvh - 32px - env(safe-area-inset-top,0px));padding-block-start:.6rem}
body.admin-bar .m-top{padding-block-start:0;min-block-size:4.25rem}
@media (max-width:782px){
  html body #wpadminbar{block-size:calc(46px + env(safe-area-inset-top,0px))}
  html:root:has(#wpadminbar){margin-block-start:calc(46px + env(safe-area-inset-top,0px))!important;--wp-admin--admin-bar--height:calc(46px + env(safe-area-inset-top,0px))}
  body.admin-bar .pub-top,body.admin-bar .m-top{inset-block-start:calc(46px + env(safe-area-inset-top,0px))}
  body.admin-bar .side{inset-block-start:calc(46px + env(safe-area-inset-top,0px));block-size:calc(100dvh - 46px - env(safe-area-inset-top,0px))}
}

/* Messages from the sign-up and sign-in handlers */
.ap-alert{margin:0 0 var(--sp-4);padding:.75rem 1rem;border-radius:.625rem;background:color-mix(in srgb,var(--down) 14%,var(--panel));color:var(--text)}
.ap-alert.ok{background:color-mix(in srgb,var(--up) 14%,var(--panel))}
.ap-step[hidden]{display:none}
.afxc-remember{margin-block-start:var(--sp-3)}
.afxc-signin .ap-foot a.ap-back{display:inline-flex;align-items:center}

/* Plain pages and articles: text written in the WordPress editor */
.afxc-page{display:grid;gap:var(--sp-4);max-inline-size:52rem}
.afxc-actions{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
.editor-content{color:var(--text);font-size:1.0625rem;line-height:1.7}
.editor-content>*{margin-block:0 1em}
.editor-content h2,.editor-content h3{margin-block:1.6em .5em;line-height:1.25;scroll-margin-block-start:7rem}
.editor-content a{color:var(--ember);text-decoration:underline}
.editor-content img,.editor-content video,.editor-content iframe{max-inline-size:100%;block-size:auto;border-radius:.75rem}
.editor-content ul,.editor-content ol{padding-inline-start:1.25rem}
.editor-content blockquote{margin-inline:0;padding-inline-start:1rem;border-inline-start:3px solid var(--ember);color:var(--muted)}
.b-body{margin-block:var(--sp-4)}

/* Homepage video and announcement set from the AblazeFx admin panel */
.afxc-video video{display:block;inline-size:100%;border-radius:1rem;background:var(--panel)}

/* Members chat (from the parent theme). Visitors see the v19 public site without it; members keep it everywhere. */
html[data-view=visitor] body:not(.logged-in) .az-chat{display:none}
html[data-view=visitor] body:not(.logged-in).az-chat-docked{padding-right:0}
.az-chat{font-family:var(--body)}
.az-chat h2,.az-chat h3{font-family:var(--display)}
.az-chat-room,.az-chat-panel{background:var(--panel)}
.az-chat-composer textarea,.az-chat-composer input[type=text]{background:var(--bg);color:var(--text);border-color:var(--line)}
@media (min-width:1180px){
  html[data-view=member] .az-chat{inset-block-start:0;background:var(--panel);border-inline-start-color:var(--line)}
  body.admin-bar .az-chat{inset-block-start:32px}
  html[data-view=visitor] body.logged-in .az-chat{inset-block-start:5.75rem}
  html[data-view=visitor] body.logged-in.admin-bar .az-chat{inset-block-start:calc(5.75rem + 32px)}
}
/* Phones: keep the chat button above the bottom menu */
@media (max-width:47.99em){html[data-view=member] .az-chat{bottom:calc(4.75rem + env(safe-area-inset-bottom))}}

/* Tabs that join pages v19 shows as one (Academy, Markets) */
.afxc-tabs{display:flex;gap:.15rem;margin-block:0 var(--sp-4);padding:.2rem;inline-size:max-content;max-inline-size:100%;overflow-x:auto;border-radius:.625rem;background:var(--panel)}
.afxc-tabs a{flex:none;display:inline-flex;align-items:center;min-block-size:max(2.25rem,var(--target));padding:.3rem .9rem;border-radius:.45rem;color:var(--muted);font-weight:600}
.afxc-tabs a[aria-current]{background:var(--raise);color:var(--text)}
.afxc-tabs a:hover{color:var(--text)}

/* Landing: the founders under the educators, each linking to their profile on the Team page */
.h-founders{display:grid;gap:var(--sp-3);margin-block-start:var(--sp-5)}
.h-founders h3{margin:0;color:var(--muted);font-size:.9375rem;font-weight:600}
.h-founders ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(11.5rem,1fr));gap:var(--sp-3);margin:0;padding:0;list-style:none}
.h-founders li a{display:flex;align-items:center;gap:var(--sp-3);min-block-size:var(--target);color:var(--text);text-decoration:none;border-radius:var(--r-md)}
.h-founders li a:hover b{color:var(--ember)}
.h-founders .ava{inline-size:3.25rem;block-size:3.25rem;flex:none}
.h-founders span{display:grid;line-height:1.25}
.h-founders b{font-family:var(--display);font-size:1.0625rem;transition:color .2s}
.h-founders small{color:var(--muted);font-size:.875rem}
.h-founders .h-more{justify-self:start}

/* Team page */
#page-team{display:grid;gap:3rem}
#page-team .tm-intro{display:grid;gap:var(--sp-3);max-inline-size:44rem}
#page-team .tm-intro h1{margin:0}
#page-team .tm-intro p{margin:0;color:var(--muted);font-size:1.125rem}
#page-team .tm-sec{display:grid;gap:var(--sp-4)}
#page-team .tm-sec h2{margin:0;font-size:1.5rem}
#page-team .tm-grid{display:grid;gap:var(--sp-5) var(--sp-4);margin:0;padding:0;list-style:none}
#page-team .tm-leaders{grid-template-columns:repeat(auto-fill,minmax(13rem,1fr))}
#page-team .tm-edu{grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr))}
#page-team .tm-card{display:grid;gap:var(--sp-3);align-content:start;scroll-margin-block-start:7rem}
#page-team .tm-photo{display:block;inline-size:100%;block-size:auto;aspect-ratio:4/5;object-fit:cover;object-position:50% 12%;border-radius:1.25rem;background:var(--raise)}
#page-team .tm-ini{display:grid;place-items:center;font-family:var(--display);font-size:2.5rem;color:var(--muted)}
#page-team .tm-edu .tm-photo{aspect-ratio:1;border-radius:50%;object-position:50% 8%}
#page-team .tm-text{display:grid;gap:.15rem}
#page-team .tm-card h3{margin:0;font-family:var(--display);font-size:1.25rem}
#page-team .tm-edu h3{font-size:1.0625rem;text-align:center}
#page-team .tm-role{margin:0;color:var(--ember);font-weight:600;font-size:.9375rem}
#page-team .tm-edu .tm-role{color:var(--muted);font-weight:500;font-size:.8125rem;text-align:center}
#page-team .tm-bio{margin:.35rem 0 0;color:var(--muted)}
#page-team .tm-links{display:flex;flex-wrap:wrap;gap:var(--sp-3);margin:.35rem 0 0}
#page-team .tm-card:target .tm-photo{outline:3px solid var(--ember);outline-offset:3px}
#page-team .tm-join{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-4)}
#page-team .tm-join h2{margin:0 0 var(--sp-1)}
#page-team .tm-join p{margin:0;color:var(--muted)}

/* Role crests (inc/badges.php): Founder, Co-Founder, Coach, Virtual Assistant */
.role-crest{display:inline-flex;align-items:center;gap:.3rem;font-size:.75rem;font-weight:700;line-height:1;white-space:nowrap}
.role-crest svg{inline-size:1.375rem;block-size:1.375rem;flex:none;filter:drop-shadow(0 1px 1px rgb(0 0 0/.35))}
.role-crest.is-founder{color:#ffb35c}.role-crest.is-co-founder{color:#f0995a}.role-crest.is-coach{color:#4fd19a}.role-crest.is-virtual-assistant{color:#c9b4f2}

/* Free Gold Pip and Lot Size Calculator */
#page-calc{display:grid;gap:var(--sp-6)}
#page-calc .pc-intro{display:grid;gap:var(--sp-3);max-inline-size:46rem}
#page-calc .pc-intro h1{margin:0}
#page-calc .pc-intro p{margin:0;color:var(--muted);font-size:1.125rem}
#page-calc .legal{margin-block-start:calc(var(--sp-4) * -1)}
#page-calc .pc-hint{margin:.25rem 0 0;color:var(--muted);font-size:.8125rem}
#page-calc .pc-learn{display:grid;gap:2.5rem;max-inline-size:48rem}
#page-calc .pc-learn h2{margin:0 0 var(--sp-3);font-size:1.375rem}
#page-calc .pc-learn p{margin:0 0 var(--sp-3);color:var(--muted)}
#page-calc .pc-learn p b{color:var(--text)}
#page-calc .pc-formula{padding:var(--sp-4);border-radius:var(--r-md);background:var(--panel);color:var(--text)}
#page-calc .pc-join{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-4)}
#page-calc .pc-join h2{margin:0 0 var(--sp-1)}
#page-calc .pc-join p{margin:0}
#page-calc .x-rkbar{display:none} /* the form is short: the result card sits right below it, so no floating bar over the fields */

/* Caps Lock warning on password fields */
.ap-f .ap-caps{margin:.3rem 0 0;color:var(--wait);font-size:.8125rem;font-weight:600}
.ap-f .ap-caps[hidden]{display:none}
.b-art header .b-share{justify-self:start;margin-block-start:var(--sp-2)}

/* Lesson video: "Continuing from 12:34. Start Over" (site.js videoResume) */
.afx-resume{margin:.5rem 0 0;font-size:.85rem;color:var(--muted,#9aa3ad)}
.afx-resume .link{font-size:inherit;padding:0;margin-left:.25rem}

/* Home H1 topic line: "Forex and Gold Trading Education" above the slogan, so the page's main heading says what it's about. */
.h-copy h1 .h-kick{display:block;margin-block-end:.9rem;font-family:var(--body);font-size:clamp(.8125rem,.75rem + .3cqi,.9375rem);font-weight:600;line-height:1.3;letter-spacing:.14em;text-transform:uppercase;color:var(--ember)}
@media (prefers-reduced-motion:no-preference){.mo .h-copy h1 .h-kick{animation:afx-kick .8s ease .05s backwards}}
@keyframes afx-kick{from{opacity:0;transform:translateY(.4rem)}}
#page-blog>.b-lead{margin-block:calc(var(--sp-2) * -1) var(--sp-4);max-inline-size:60ch}

/* Dropdown lists stay dark with light text. Without this, Windows can open a select's list on white while the text
   stays light, so names like "Cody Anakin D. Pe" in the Signals coach filter can't be read. */
select{color-scheme:dark}
select option,select optgroup{background-color:var(--panel);color:var(--text)}
select option:disabled{color:var(--muted)}

/* Signals: on wider screens the coach filter keeps its place while Manual Entry is open, so the Live / Closed /
   Manual Entry tabs don't jump sideways when switching. Phones still drop it (the toolbar stacks there). */
@media (min-width:48em){
  #page-signals #filterWrap[hidden]{display:flex !important;visibility:hidden}
}

/* Apply and Sign In (wide screens): the phoenix sits right under the heading (and the step list on Apply) instead of
   being pinned to the bottom corner of a tall empty panel, which left a big gap when there was little beside it. */
@container main (inline-size >= 54rem){
  .ap .ap-story{min-block-size:0}
  .ap .ap-mark{position:relative;inset:auto;order:3;justify-self:start;inline-size:min(78%,17rem);margin-block-start:calc(var(--sp-2) * -1);margin-inline-start:-.75rem;z-index:0}
}

/* Articles: members' "Watch the Full Lesson" button under the coach's name */
.b-art header .b-acts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3);margin-block-start:var(--sp-4)}
.b-art header .b-acts:empty{display:none}
.b-art header .b-acts .btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-block-size:2.75rem;margin:0;padding-inline:1.1rem;font-size:.9375rem}
.b-art header .b-watch svg{inline-size:.9rem;block-size:.9rem;fill:currentColor}
@media (max-width:47.99em){.b-art header .b-acts .b-watch{flex:1 1 auto}}

/* Article covers chosen in Manage Content fill the cover box. */
img.b-cover{object-fit:cover}

/* ---- Join page (1.1.30): the coach's invite line, the applicant's progress, the deposit guide ---- */
.ap-invited{margin:0;color:var(--text);font-size:1.0625rem}
.ap-track{display:grid;gap:var(--sp-2);margin:0;padding:0;list-style:none;inline-size:100%;max-inline-size:34rem}
.ap-track li{display:flex;align-items:center;gap:var(--sp-3);color:var(--muted)}
.ap-track i{flex:none;display:grid;place-items:center;inline-size:2rem;block-size:2rem;border-radius:50%;box-shadow:inset 0 0 0 2px var(--line-strong,var(--line));font-style:normal;font-weight:700;font-size:.875rem}
.ap-track li.done{color:var(--text)}
.ap-track li.done i{background:var(--ember);box-shadow:none;color:var(--on-ember,#1a0f08)}
.ap-track li.now{color:var(--text);font-weight:600}
.ap-track li.now i{box-shadow:inset 0 0 0 2px var(--ember);color:var(--ember)}
.ap-guide{inline-size:100%;max-inline-size:34rem;padding:var(--sp-4);border-radius:.75rem;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line)}
.ap-guide h3{margin:0 0 var(--sp-3);font-size:1.0625rem}
.ap-guide ol{display:grid;gap:var(--sp-2);margin:0 0 var(--sp-3);padding-inline-start:1.25rem}
.ap-guide .ap-note{margin:0}
.ap-done .ap-note a{color:var(--ember);font-weight:600}
/* Four steps on the Apply page since 1.1.30: Fund, You, VT Details, Agreement */
/* Phones and tablets: the four steps sit in a row. Wide screens keep v19's vertical list in the left column. */
@container main (inline-size < 54rem){
  .ap-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ap-steps::before,.ap-steps::after{inset-inline:12.5%}
}
.ap-lead{margin:0 0 var(--sp-4);color:var(--text);font-size:1.0625rem;max-inline-size:44rem}
.ap-fund .ap-guide{max-inline-size:none;margin-block-end:var(--sp-4)}
.ap-fund .ap-acks{margin-block-start:0}
