/* Educator Hub: shown when the header toggle is on Educators (html[data-mode="edu"]).
   Loaded by /index.html. Uses the Hub's shared tokens and base classes (.wrap, .pill, .label, .soon-pill,
   .course-band, .skills-intro, .arrival, .saved-sec), so it doesn't repeat them. */

/* which side is showing: student sections are hidden with CSS, so the student code's own show/hide state is left alone */
html:not([data-mode="edu"]) [data-for="edu"]{display:none!important}
html[data-mode="edu"] :is(#arrival,#missionTools,#skillView,#skillTools,#hero,#crew,#skills,#myhub,.nav a[data-nav],.tabbar:not([data-for="edu"])){display:none!important}
html[data-mode="edu"] footer{background:var(--purple)}

/* mode toggle */
.top-r{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mode{display:inline-flex;gap:2px;padding:4px;border-radius:999px;background:var(--bg)}
.mode button{min-height:40px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:14px;font-weight:600;cursor:pointer}
.mode button[aria-pressed="true"]{background:var(--purple);color:var(--white)}

/* educator side */
/* Educator side reads white-forward: white surfaces, ink type, purple only as solid accents carrying white text (tag, buttons, toggle, footer) */
.edu-hero{background:var(--white);color:var(--ink)}
.edu-hero .wrap{align-items:center;padding-block:48px 0}
.edu-hero .arrival-copy{padding-bottom:8px}
.edu-hero .tag{background:var(--purple);color:var(--white)}
.edu-hero h1{font-size:clamp(52px,8vw,96px);line-height:.95;letter-spacing:-1px;color:var(--ink)}
.edu-hero h1 span{color:var(--purple)}
.edu-hero p{color:var(--muted)}
.edu-hero .sub{color:var(--ink)}
.edu-hero .acts{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.edu-hero .acts a.lnk{color:var(--purple);font-weight:600;min-height:44px;display:inline-flex;align-items:center}
.edu-art{flex:1 1 360px;min-width:0;display:flex;justify-content:center}
.edu-art svg{display:block;width:100%;max-width:470px;height:auto}
html[data-mode="edu"] .saved-item,html[data-mode="edu"] .saved-empty{border:1px solid var(--line)}
.saved-empty svg{flex:0 0 auto}
.types .wrap{display:flex;flex-direction:column;gap:20px;padding-block:20px 40px}
.types h2,.promo h2,.modules h2{font-size:clamp(28px,4vw,38px)}
.type-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.start{background:var(--white)}
.start .wrap,.webinars .wrap{display:flex;flex-direction:column;gap:22px;padding-block:44px 52px}
.start h2,.webinars h2{font-size:clamp(28px,4vw,38px)}
.signup .hint{display:block;color:var(--muted);font-size:15px}
.copy-row{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.copy-row input{flex:1 1 220px;min-width:0;font:inherit;font-size:15px;padding:10px 16px;border:1px solid var(--line-2);border-radius:999px;color:var(--ink);background:var(--white)}
.role-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.role{display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:16px;background:var(--bg)}
.role b{font-size:19px}
.role > span{color:var(--muted);font-size:15px}
.role ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column}
.role li a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;border-top:1px solid var(--line-2);font-weight:600;font-size:15px;text-decoration:none}
.tl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tl-item{position:relative;display:grid;grid-template-columns:170px minmax(0,1fr);gap:20px;padding:0 0 24px 32px}
.tl-item::before{content:"";position:absolute;left:7px;top:8px;bottom:-8px;width:2px;background:var(--line-2)}
.tl-item:last-child::before{display:none}
.tl-dot{position:absolute;left:0;top:3px;width:16px;height:16px;border-radius:999px;background:var(--white);border:3px solid var(--line-2)}
.tl-item.ev .tl-dot{border-color:var(--purple)}
.tl-item.is-now .tl-dot{background:var(--purple);border-color:var(--purple)}
.tl-item.is-done .tl-when,.tl-item.is-done .tl-card{opacity:.6}
.tl-when{display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:15px;font-weight:600;line-height:1.3}
.now{font-size:11px;letter-spacing:1px;text-transform:uppercase;padding:3px 9px;border-radius:999px;background:var(--purple);color:var(--white)}
.tl-card{display:flex;flex-direction:column;gap:8px;min-width:0}
.tl-item.ev .tl-card{padding:16px 18px;border-radius:16px;background:var(--white);border:1px solid var(--line)}
.tl-card .row{display:flex;align-items:center;gap:10px}
.tl-card .row .ic{width:36px;height:36px;border-radius:10px}
.tl-card .kind{font-size:11px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--soft)}
.tl-card b{font-size:19px;line-height:1.25}
.tl-card p{margin:0;font-size:15px;color:var(--muted)}
.tl-card .meta{display:flex;flex-wrap:wrap;gap:6px}
.tl-card .meta span{font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--bg);color:var(--ink)}
.tl-card .meta span.tbc{background:var(--yel-t);color:#5C5200}
.tl-card .acts{display:flex;flex-wrap:wrap;gap:8px}
.tl-card a.more{align-self:flex-start;font-weight:600;font-size:15px}
.type-box{text-decoration:none}
.type-box{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px;border-radius:18px;border:2px solid transparent;background:var(--white);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:transform .15s ease,border-color .15s ease}
.type-box:hover{transform:translateY(-3px);border-color:var(--purple)}
.type-box b{font-size:19px;line-height:1.2}
.type-box p{margin:0;font-size:15px;color:var(--muted)}
.type-box .foot{margin-top:auto;display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--purple)}
.ic{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;flex:0 0 auto}
.promo{background:var(--white)}
.promo .wrap,.modules .wrap{display:flex;flex-direction:column;gap:22px;padding-block:44px 52px}
.kit{display:flex;flex-wrap:wrap;align-items:center;gap:24px;padding:24px 26px;border-radius:22px;background:var(--white);border:1px solid var(--line-2);box-shadow:0 12px 30px -24px rgba(40,0,90,.45)}
.kit .txt{flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:10px}
.kit .txt .label{color:var(--purple)}
.kit .q{font-size:24px;font-weight:600;line-height:1.2}
.kit .why{color:var(--muted);font-size:17px;max-width:560px}
.inside{display:flex;flex-wrap:wrap;gap:8px}
.inside span{font-size:14px;font-weight:600;padding:6px 12px;border-radius:999px;background:var(--bg);color:var(--ink)}
.kit .acts,.res .acts{display:flex;gap:8px;flex-wrap:wrap}
.kit-art{flex:0 1 280px;min-width:0}
.kit .jump{display:flex;flex-wrap:wrap;gap:4px 18px}
.kit .jump a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:600;font-size:15px;text-decoration:none}
.kit-art svg{display:block;width:100%;height:auto}
.note{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:16px 18px;border-radius:16px;border:2px dashed var(--line-2);color:var(--muted)}
.note b{color:var(--ink)}
.filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.filters > span{font-size:14px;font-weight:600;margin-right:4px}
.filters button{min-height:44px;padding:0 16px;border:1px solid var(--line-2);border-radius:999px;background:var(--white);color:var(--ink);font-size:14px;font-weight:600;cursor:pointer}
.filters button[aria-pressed="true"]{background:var(--purple);border-color:var(--purple);color:var(--white)}
.module{display:flex;flex-direction:column;gap:14px;padding:20px;border-radius:20px;background:var(--white)}
.module-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.module-head .t{display:flex;flex-direction:column;gap:2px;min-width:0}
.module-head .t .label{color:var(--purple)}
.module-head b{font-size:22px;line-height:1.2}
.module-head .sk{font-size:11px;font-weight:600;letter-spacing:1px;text-transform:uppercase;padding:4px 10px;border-radius:999px;background:var(--green);color:var(--green-ink)}
.module.tbc{background:transparent;border:2px dashed var(--line-2)}
.module.tbc .module-head b{color:var(--soft)}
.module.tbc .inside span{background:var(--white);color:var(--soft)}
.res-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.res{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:14px;background:var(--bg)}
.res .row{display:flex;align-items:center;gap:10px}
.res .row .ic{width:36px;height:36px;border-radius:10px}
.res .kind{font-size:11px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--soft)}
.res b{font-size:18px;line-height:1.25}
.res p{margin:0;font-size:15px;color:var(--muted)}
.res .acts{margin-top:auto;padding-top:4px}
.empty-filter{padding:16px 18px;border-radius:16px;background:var(--white);color:var(--muted)}

@media (max-width: 760px){
  .top-r{width:100%;justify-content:space-between}
  .edu-hero .wrap{padding-block:28px 0;gap:8px}
  .edu-art svg{max-width:340px}
  .kit{padding:18px}
  .kit .q{font-size:20px}
  .kit-art{flex-basis:100%;max-width:260px}
  .module{padding:16px}
  .tl-item{grid-template-columns:minmax(0,1fr);gap:8px;padding-left:28px}
}
@media (prefers-reduced-motion: reduce){ .type-box{transition:none} }
