/* VirtualWorks Learn / Electric brand layer.
   Loaded only by the Electric pages. Every rule is scoped to body.electric so the
   learning hub, account page and demo keep their own look from styles.css.
   No external fonts or images: system and locally installed faces only. */

/* ---------- Tokens. Remapping the hub variables lets older shared components follow the palette. ---------- */
body.electric{
  --e-paper:#f7f5ee;--e-surface:#fffdf9;--e-sunken:#efede2;
  --e-line:#d8d5c6;--e-line-strong:#8a8977;
  --e-ink:#1b2620;--e-ink-soft:#44514a;
  --e-forest:#1f4a37;--e-forest-deep:#12301f;
  --e-leaf:#44691f;--e-lime:#d9f286;--e-lime-soft:#eef5d3;
  --e-focus:#154f9c;
  --e-warn:#7a4b00;--e-warn-bg:#fff4d6;
  --e-bad:#8f2d1f;--e-bad-bg:#fdefe9;
  --e-measure:68ch;
  --e-font:"DM Sans","Avenir Next","Segoe UI",system-ui,-apple-system,sans-serif;
  --e-display:Manrope,"Avenir Next","Segoe UI",system-ui,-apple-system,sans-serif;
  --bg:var(--e-paper);--ink:var(--e-ink);--muted:var(--e-ink-soft);--line:var(--e-line);--green:var(--e-forest);--lime:var(--e-lime);
  background:var(--e-paper);color:var(--e-ink);font:17px/1.7 var(--e-font);
  -webkit-text-size-adjust:100%;overflow-wrap:break-word;
}
body.electric [hidden]{display:none!important}
:where(body.electric) h1,:where(body.electric) h2,:where(body.electric) h3,:where(body.electric) h4{font-family:var(--e-display);color:var(--e-ink)}
:where(body.electric) p{margin:0 0 1em}
:where(body.electric) a{text-underline-offset:3px}

/* ---------- Focus, skip link, motion ---------- */
body.electric :focus-visible{outline:3px solid var(--e-focus);outline-offset:3px;border-radius:4px}
body.electric .e-dark :focus-visible{outline-color:var(--e-lime)}
.skip-link{position:absolute;left:16px;top:-80px;z-index:20;background:#fff;color:var(--e-ink,#1b2620);padding:14px 18px;border:2px solid var(--e-focus,#154f9c);border-radius:8px;font-weight:700}
.skip-link:focus{top:12px}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.electric *,body.electric *::before,body.electric *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

/* ---------- Header and brand hierarchy: VirtualWorks Learn / Electric ---------- */
body.electric>header.e-header{max-width:1240px;margin:0 auto;padding:14px 5%;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;border-bottom:1px solid var(--e-line)}
.e-brand{display:flex;align-items:center;gap:12px;min-width:0}
body.electric .logo{display:inline-flex;align-items:center;gap:10px;font:800 22px/1.1 var(--e-display);letter-spacing:-.02em;min-height:44px;color:var(--e-ink)}
body.electric .logo .learn{font-weight:500}
body.electric .mark{background:var(--e-forest);color:var(--e-lime);font:800 26px/1 var(--e-display);width:36px;height:36px;flex:none}
.e-sep{color:var(--e-line-strong);font-size:26px;font-weight:300;line-height:1}
.e-branch{display:inline-flex;flex-direction:column;justify-content:center;min-height:44px;font:700 18px/1.15 var(--e-display);color:var(--e-ink)}
.e-branch small{font:500 13px/1.3 var(--e-font);color:var(--e-ink-soft);letter-spacing:0}
body.electric header nav{display:flex;flex-wrap:wrap;align-items:center;gap:2px;font-size:15px;margin-left:auto}
body.electric header nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;font-weight:600;color:var(--e-ink-soft)}
body.electric header nav a:hover{background:var(--e-sunken);color:var(--e-ink)}
body.electric header nav a[aria-current=page]{color:var(--e-ink);box-shadow:inset 0 -3px 0 var(--e-leaf);border-radius:8px 8px 0 0}
body.electric header nav .e-nav-return{border:1.5px solid var(--e-line-strong);color:var(--e-ink);margin-left:6px}
body.electric header nav .e-nav-return::after{content:"\2192";content:"\2192"/"";margin-left:8px}
.e-header-cta{flex:none}

/* ---------- Shared controls ---------- */
body.electric .button{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:48px;padding:12px 24px;border:2px solid var(--e-forest);border-radius:10px;background:var(--e-forest);color:#fff;font:700 16px/1.3 var(--e-font);text-align:center;transition:background-color .15s,box-shadow .15s}
body.electric .button:hover{background:var(--e-forest-deep);border-color:var(--e-forest-deep)}
body.electric .button.small{min-height:44px;padding:8px 18px;font-size:15px}
body.electric .button:disabled{background:var(--e-sunken);border-color:var(--e-line-strong);color:var(--e-ink-soft);cursor:not-allowed}
body.electric .textlink{display:inline-flex;align-items:center;min-height:44px;font-size:16px;font-weight:700;color:var(--e-forest);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
body.electric .textlink:hover{color:var(--e-forest-deep)}
body.electric select{display:block;width:100%;max-width:100%;min-height:48px;padding:10px 14px;border:2px solid var(--e-line-strong);border-radius:10px;background-color:#fff;color:var(--e-ink);font-size:17px}
body.electric .fine{font-size:15px;line-height:1.6;color:var(--e-ink-soft);max-width:var(--e-measure)}
body.electric .eyebrow{font:700 13px/1.4 var(--e-font);letter-spacing:.12em;color:var(--e-ink-soft);margin:0}
body.electric .notice{display:flex;width:fit-content;max-width:100%;align-items:center;gap:10px;margin:22px 0 0;padding:6px 14px;background:var(--e-lime-soft);border:1px solid #c5d68f;border-radius:999px;font-size:14px;line-height:1.4;color:var(--e-ink)}
body.electric .dot{background:var(--e-leaf);flex:none}
.e-noscript{padding:14px 18px;background:var(--e-warn-bg);border-left:6px solid var(--e-warn);border-radius:0 10px 10px 0;margin:20px 0}

/* Status pills always carry text and a shape, never color alone: filled dot, half dot, open dot. */
body.electric .pill{display:inline-flex;align-items:center;gap:8px;padding:4px 12px;border:1.5px solid var(--e-line-strong);border-radius:999px;background:var(--e-surface);color:var(--e-ink);font:700 13px/1.35 var(--e-font);letter-spacing:0;white-space:normal}
body.electric .pill::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;border:1.5px solid currentColor}
body.electric .pill.light{background:var(--e-sunken)}
body.electric .pill.light::before{display:none}
body.electric .pill.status-now{background:var(--e-forest);border-color:var(--e-forest);color:#fff}
body.electric .pill.status-now::before{background:var(--e-lime);border-color:var(--e-lime)}
body.electric .pill.status-dev{background:var(--e-warn-bg);border-color:var(--e-warn);color:#5c3900}
body.electric .pill.status-dev::before{background:linear-gradient(90deg,currentColor 50%,transparent 50%)}
body.electric .pill.status-later{background:transparent;border-style:dashed;color:var(--e-ink-soft)}

/* ---------- Marketing page ---------- */
body.electric main{max-width:1240px;padding:0 5%}
:where(body.electric) h1{font-size:clamp(38px,5.2vw,68px);font-weight:700;letter-spacing:-.03em;line-height:1.05;margin:14px 0 22px}
:where(body.electric) h1 em{font-style:normal;color:var(--e-leaf)}
:where(body.electric) h2{font-size:clamp(28px,3.4vw,42px);font-weight:700;letter-spacing:-.025em;line-height:1.12;margin:10px 0 14px}
:where(body.electric) h3{font-size:20px;font-weight:700;letter-spacing:-.01em;line-height:1.3;margin:0 0 8px}
body.electric .lead{font-size:19px;line-height:1.65;color:var(--e-ink-soft);max-width:56ch}
body.electric .actions{display:flex;flex-wrap:wrap;gap:8px 28px;align-items:center;margin:28px 0 8px}
.e-reassure{font-size:16px;color:var(--e-ink-soft);margin:6px 0 18px}
body.electric .hero-note{font-size:15px;line-height:1.6;color:var(--e-ink-soft);max-width:56ch;padding-top:16px;border-top:1px solid var(--e-line)}

.e-hero{margin-bottom:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:56px;align-items:center;padding:48px 0 72px}
.e-route{position:relative;background:var(--e-surface);border:1px solid var(--e-line);border-radius:20px;padding:28px 28px 24px}
.e-route h2{font-size:28px;margin:8px 0 22px}
.e-trace{display:block;width:100%;height:auto;max-height:96px;margin:0 0 18px}
.e-trace .t-line{fill:none;stroke:var(--e-leaf);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.e-trace .t-dash{stroke:var(--e-line-strong);stroke-dasharray:1 9}
.e-trace .t-on{fill:var(--e-forest)}
.e-trace .t-mid{fill:var(--e-surface);stroke:var(--e-forest);stroke-width:3}
.e-trace .t-off{fill:var(--e-surface);stroke:var(--e-line-strong);stroke-width:2.5;stroke-dasharray:3 3}
.e-stops{list-style:none;margin:0 0 8px;padding:0;counter-reset:stop}
.e-stops li{position:relative;counter-increment:stop;display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:16px;padding-bottom:22px}
.e-stops li:last-child{padding-bottom:6px}
.e-stops li::before{content:counter(stop);grid-row:1/4;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font:700 17px/1 var(--e-display);border:2px solid var(--e-forest);background:var(--e-surface);color:var(--e-forest)}
.e-stops li::after{content:"";position:absolute;left:19px;top:44px;bottom:4px;border-left:2px solid var(--e-forest)}
.e-stops li:last-child::after{display:none}
.e-stops li.is-now::before{background:var(--e-forest);color:#fff}
.e-stops li.is-later::before{border:2px dashed var(--e-line-strong);color:var(--e-ink-soft)}
.e-stops li.is-dev::after,.e-stops li.is-later::after{border-left:2px dotted var(--e-line-strong)}
.e-stops h3{margin:0;font-size:19px}
.e-stops p{margin:2px 0 8px;font-size:16px;line-height:1.5;color:var(--e-ink-soft)}
.e-stops .pill{justify-self:start}

.e-section{margin-bottom:96px!important}
.e-head{max-width:760px;margin:0 0 30px}
.e-head h2{margin-bottom:12px}
.e-intro{font-size:18px;line-height:1.65;color:var(--e-ink-soft);max-width:var(--e-measure);margin:0}
body.electric .e-head-row{display:flex;max-width:none;align-items:flex-end;justify-content:space-between;gap:24px 40px;flex-wrap:wrap}
.e-head-row>div{max-width:760px;flex:1 1 420px}
.e-head-row .button{flex:none}

/* Study stages: a ruled list, not a card grid. */
.e-stages{list-style:none;margin:0 0 36px;padding:0;border-bottom:1px solid var(--e-line)}
.e-stage{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:8px 24px;align-items:start;padding:26px 0;border-top:1px solid var(--e-line)}
.e-stage-no{font:700 40px/1 var(--e-display);letter-spacing:-.03em;color:var(--e-leaf)}
.e-stage.is-later .e-stage-no{color:var(--e-ink-soft)}
.e-stage h3{font-size:22px;margin-bottom:6px}
.e-stage p{margin:0;max-width:60ch;color:var(--e-ink-soft)}
.e-stage .pill{margin-top:4px}
.e-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 28px}
.e-split>div{border-radius:16px;padding:24px 28px}
.e-today{background:var(--e-lime-soft);border:1px solid #c5d68f}
.e-later{border:2px dashed var(--e-line-strong)}
.e-split h3{font-size:20px}
.e-split ul{list-style:none;margin:12px 0 0;padding:0}
.e-split li{position:relative;padding-left:32px;margin:12px 0;line-height:1.55}
.e-split li::before{position:absolute;left:0;top:0;font-weight:800;color:var(--e-forest);content:"\2713";content:"\2713"/""}
.e-later li::before{content:"\25CB";content:"\25CB"/"";color:var(--e-ink-soft)}

/* Course status generated by electric-coverage.js */
#electricCoverage{background:var(--e-surface);border:1px solid var(--e-line);border-radius:16px;padding:28px 32px}
#electricCoverage h3{font-size:24px;margin-bottom:12px}
#electricCoverage p{max-width:var(--e-measure)}
#electricCoverage details{margin:14px 0 0;padding-top:6px;border-top:1px solid var(--e-line)}
#electricCoverage summary{display:flex;align-items:center;min-height:52px;font-size:18px;font-weight:700;cursor:pointer}
.coverage-category{padding:14px 0;border-bottom:1px solid var(--e-line)}
.coverage-category:last-child{border-bottom:0}
.coverage-category h3{font-size:18px}
.coverage-category p{margin:0 0 6px}
body.electric .coverage-category ul{font-size:16px;line-height:1.6;padding-left:22px;margin:8px 0}

/* Foundation lessons generated by electric.js: one calm reading column beside the heading. */
.e-lessons{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:start}
.e-lessons .e-head{position:sticky;top:24px;margin:0}
body.electric .lesson-grid{display:block}
body.electric .lesson-grid details{background:var(--e-surface);border:1px solid var(--e-line);border-radius:14px;padding:0 24px 4px;margin:0 0 12px}
body.electric .lesson-grid summary{display:flex;align-items:center;min-height:60px;font:700 19px/1.35 var(--e-display);cursor:pointer}
body.electric .lesson-grid p,body.electric .lesson-grid li{font-size:17px;line-height:1.7;color:var(--e-ink-soft);max-width:var(--e-measure)}
body.electric .lesson-grid .worked-example{background:var(--e-lime-soft);border-left:5px solid var(--e-leaf);border-radius:0 10px 10px 0;padding:14px 18px;color:var(--e-ink)}
body.electric .lesson-grid h3{font-size:18px;margin-top:20px}
body.electric .lesson-grid .button{margin:8px 0 20px}

/* Warm-up workspace */
body.electric .workspace-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:24px;align-items:start}
body.electric .practice-card,body.electric .progress-card{background:var(--e-surface);border:1px solid var(--e-line);border-radius:16px;padding:30px;min-width:0}
body.electric .card-label{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;font:700 13px/1.4 var(--e-font);letter-spacing:.12em;color:var(--e-ink-soft);margin-bottom:20px}
body.electric .practice-card label{display:block;font-size:16px;font-weight:700;margin:0 0 8px}
#electricPractice{margin-top:26px}
#electricPractice h3{font-size:24px;font-weight:600;line-height:1.4;max-width:34em;margin:6px 0 18px}
#electricPractice p{max-width:var(--e-measure);color:var(--e-ink-soft)}
body.electric .electric-choices{display:grid;gap:10px;margin:20px 0 14px}
body.electric .electric-choices .button{width:100%;justify-content:flex-start;text-align:left;min-height:56px;padding:14px 18px;background:#fff;color:var(--e-ink);border:2px solid var(--e-line-strong);font-weight:500;font-size:17px;line-height:1.45}
body.electric .electric-choices .button:hover{background:var(--e-lime-soft);border-color:var(--e-forest)}
body.electric .electric-choices .button:disabled{opacity:1;background:var(--e-sunken);border-color:var(--e-line);color:var(--e-ink-soft);cursor:default}
body.electric .quiet{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:2px solid var(--e-line-strong);border-radius:10px;background:#fff;color:var(--e-ink);font:600 16px/1.3 var(--e-font)}
body.electric .quiet:hover{border-color:var(--e-forest)}
body.electric .quiet:disabled{background:var(--e-sunken);border-color:var(--e-line);color:var(--e-ink-soft);cursor:default}
body.electric .session-review details{background:var(--e-surface);border:1px solid var(--e-line);border-radius:10px;padding:4px 16px;margin:12px 0}
body.electric .session-review summary{display:flex;align-items:center;min-height:48px;font-weight:700;cursor:pointer}
body.electric .session-review p{font-size:16px}
body.electric #electricStats{font-size:16px;line-height:1.6;padding:14px 0;border-block:1px solid var(--e-line);margin:14px 0}
body.electric .progress-card h3{margin-top:10px}

/* Before enrollment: the one dark panel on the page */
body.electric .method{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:56px;background:var(--e-forest-deep);color:#eef3e6;border-radius:22px;padding:52px}
body.electric .method h2{color:#fff}
body.electric .method .eyebrow{color:var(--e-lime)}
body.electric .method p{color:#d6e2d3;font-size:17px}
body.electric .method ol{list-style:none;margin:0;padding:0}
body.electric .method li{padding:18px 0;border-bottom:1px solid rgba(255,255,255,.22)}
body.electric .method li:first-child{padding-top:0}
body.electric .method li:last-child{border-bottom:0;padding-bottom:0}
body.electric .method li b{display:block;font:700 19px/1.3 var(--e-display);color:#fff;margin-bottom:6px}
body.electric .method li p{margin:0;font-size:16px}

.e-closing{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 40px;margin:0 0 72px;padding-top:40px}
.e-closing h2{font-size:clamp(26px,3vw,34px);margin-top:0}
.e-closing p{max-width:52ch;color:var(--e-ink-soft);margin:0}
.e-closing .actions{margin:12px 0 0}
body.electric>footer.e-footer{max-width:1240px;margin:0 auto;padding:28px 5% 48px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 32px;border-top:1px solid var(--e-line)}
.e-footer a:not(.logo){display:inline-flex;align-items:center;min-height:44px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.e-footer span{font-size:14px;color:var(--e-ink-soft)}

/* ---------- Narrow screens and zoom. Navigation always stays visible. ---------- */
@media (max-width:950px){
  .e-hero{grid-template-columns:minmax(0,1fr);gap:40px;padding:32px 0 56px}
  .e-lessons,body.electric .workspace-grid,body.electric .method{grid-template-columns:minmax(0,1fr)}
  .e-lessons{gap:24px}
  .e-lessons .e-head{position:static}
  body.electric .method{gap:32px;padding:36px}
  body.electric header nav{display:flex}
}
@media (max-width:760px){
  body.electric{font-size:17px}
  body.electric>header.e-header{padding:10px 5%}
  body.electric header nav{width:calc(100% + 12px);margin:0 0 0 -12px}
  body.electric header nav .e-nav-return{margin-left:0}
  .e-header-cta{display:none}
  .e-branch small{display:none}
  .e-split{grid-template-columns:minmax(0,1fr)}
  .e-stage{grid-template-columns:48px minmax(0,1fr);gap:6px 16px}
  .e-stage .pill{grid-column:2;justify-self:start}
  .e-stage-no{font-size:30px}
  .e-section{margin-bottom:64px!important}
  body.electric .practice-card,body.electric .progress-card,#electricCoverage{padding:20px}
  body.electric .method{padding:26px 22px}
  body.electric .actions{flex-direction:column;align-items:flex-start}
  body.electric .actions .button{width:100%}
  body.electric .e-head-row .button{width:100%}
  body.electric .lesson-grid details{padding:0 16px 4px}
}

@media (forced-colors:active){
  body.electric .button,body.electric .pill,.e-route,.e-stage,body.electric .practice-card{border:1px solid CanvasText}
  .e-trace .t-line,.e-trace .t-mid,.e-trace .t-off{stroke:CanvasText}
  .e-trace .t-on{fill:CanvasText}
}

/* Local three-question foundations sample. Existing palette and visible focus remain. */
.demo-choices{border:0;padding:0;margin:24px 0;min-width:0}.demo-choices legend{font-weight:700;margin-bottom:12px}.demo-choice{display:flex;align-items:flex-start;gap:12px;padding:14px;margin:10px 0;border:1px solid var(--e-line-strong);border-radius:10px;min-height:48px;background:var(--e-surface)}.demo-choice input{margin-top:6px;flex:none;accent-color:var(--e-forest)}.demo-choice:focus-within{outline:3px solid var(--e-focus);outline-offset:3px}.demo-secondary{font:inherit;font-weight:700;min-height:48px;padding:10px 18px;border:2px solid var(--e-forest);border-radius:10px;background:var(--e-surface);color:var(--e-forest);cursor:pointer}.demo-secondary:disabled{opacity:.65;cursor:default}#electricalDemoQuestion fieldset:disabled{opacity:.8}#electricalDemoQuestion figure{margin:24px 0}#electricalDemoQuestion img{display:block;width:100%;max-width:720px}#electricalDemoQuestion [aria-live]{overflow-wrap:anywhere}
