/* Khaemenes Academy · Global Landing Header
   Mirrors the Verve N Veda public-gateway architecture while preserving
   page-specific navigation and actions. */
:root{
  --khae-ticker-height:33px;
  --khae-header-height:88px;
  --khae-sticky-stack:calc(var(--khae-ticker-height) + var(--khae-header-height));
  --khae-paper:#f4f0e7;
  --khae-paper-bright:#fbf9f4;
  --khae-ink:#111915;
  --khae-forest:#233e34;
  --khae-gold:#b48b45;
  --khae-gold-pale:#ead9b8;
  --khae-navy:#102b43;
  --khae-line:rgba(17,25,21,.18);
  --khae-radius:7px;
  --khae-serif:Cinzel,Aboreto,"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --khae-sans:"Brandon Grotesque","Avenir Next",Avenir,Montserrat,"Segoe UI",Arial,sans-serif;
}
.khae-network-ticker{
  position:sticky;
  top:0;
  z-index:2147481000;
  height:var(--khae-ticker-height);
  display:grid;
  grid-template-columns:minmax(0,1fr) 44px;
  overflow:hidden;
  color:#f4ead1;
  background:linear-gradient(90deg,#07101d,#10243b 48%,#07101d);
  border-bottom:1px solid rgba(255,255,255,.13);
  font-family:var(--khae-sans);
}
.khae-network-ticker-viewport{min-width:0;overflow:hidden}
.khae-network-ticker-track{
  width:max-content;
  height:100%;
  display:flex;
  align-items:center;
  white-space:nowrap;
  animation:khaeNetworkTickerMove 20s linear infinite;
  will-change:transform;
}
.khae-network-ticker:hover .khae-network-ticker-track,
.khae-network-ticker:focus-within .khae-network-ticker-track,
.khae-network-ticker[data-paused="true"] .khae-network-ticker-track{animation-play-state:paused}
.khae-network-ticker-set{
  height:100%;
  display:flex;
  align-items:center;
  gap:14px;
  padding-inline:11px;
}
.khae-network-ticker-label{
  color:var(--khae-gold-pale);
  font-family:var(--khae-serif);
  font-size:10px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.khae-network-ticker-app,
.khae-network-ticker-call{
  color:#eef3f6!important;
  text-decoration:none!important;
  font-size:10px!important;
  font-weight:400!important;
  letter-spacing:.075em!important;
  text-transform:uppercase!important;
}
.khae-network-ticker-app::before{content:"·";margin-right:12px;color:rgba(255,255,255,.38)}
.khae-network-ticker-app:hover,
.khae-network-ticker-call:hover{color:#fff!important}
.khae-network-ticker-call{color:var(--khae-gold-pale)!important}
.khae-ticker-control{
  width:44px;
  height:var(--khae-ticker-height);
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-left:1px solid rgba(255,255,255,.13);
  border-radius:0;
  color:#f4ead1;
  background:rgba(0,0,0,.08);
  font:400 11px/1 var(--khae-sans);
  cursor:pointer;
}
.khae-ticker-control:hover{background:rgba(255,255,255,.09)}
@keyframes khaeNetworkTickerMove{to{transform:translateX(-33.333333%)}}

[data-khae-header]{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  position:sticky!important;
  top:var(--khae-ticker-height)!important;
  z-index:2147480000!important;
  min-height:var(--khae-header-height)!important;
  padding:0!important;
  border-bottom:1px solid var(--khae-line)!important;
  color:var(--khae-ink)!important;
  background:rgba(244,240,231,.96)!important;
  backdrop-filter:blur(18px);
  overflow:visible!important;
}
[data-khae-header] [data-khae-header-inner]{
  width:min(calc(100% - 56px),1222px);
  min-height:var(--khae-header-height);
  margin-inline:auto;
  display:grid!important;
  grid-template-columns:minmax(230px,280px) minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:18px!important;
  padding:0!important;
}
[data-khae-header] [data-khae-brand]{
  min-width:0;
  justify-self:start;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  color:var(--khae-ink)!important;
  text-decoration:none!important;
  text-align:left!important;
}
[data-khae-header] [data-khae-brand-mark]{
  width:52px!important;
  height:52px!important;
  flex:0 0 52px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid var(--khae-ink)!important;
  border-radius:var(--khae-radius)!important;
  color:#fff!important;
  background:var(--khae-ink)!important;
  box-shadow:none!important;
  font:600 14px/1 var(--khae-serif)!important;
  letter-spacing:.05em!important;
}
[data-khae-header] [data-khae-brand-name]{
  display:block!important;
  color:var(--khae-ink)!important;
  font:600 15.5px/1.14 var(--khae-serif)!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
}
[data-khae-header] [data-khae-brand-sub]{
  display:block!important;
  margin-top:5px!important;
  color:#65706a!important;
  font:400 8.5px/1.3 var(--khae-sans)!important;
  letter-spacing:.085em!important;
  text-transform:uppercase!important;
}
[data-khae-header] [data-khae-nav]{
  min-width:0;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  flex-wrap:nowrap!important;
}
[data-khae-header] [data-khae-nav] a,
[data-khae-header] [data-khae-nav] button{
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:8px 10px!important;
  border:1px solid rgba(17,25,21,.22)!important;
  border-radius:var(--khae-radius)!important;
  color:#2c3933!important;
  background:rgba(255,255,255,.54)!important;
  box-shadow:none!important;
  font:400 9px/1.15 var(--khae-sans)!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
[data-khae-header] [data-khae-nav] a:hover,
[data-khae-header] [data-khae-nav] button:hover,
[data-khae-header] [data-khae-nav] a:focus-visible,
[data-khae-header] [data-khae-nav] button:focus-visible{background:#fff!important;border-color:rgba(17,25,21,.42)!important}
[data-khae-header] [data-khae-actions]{
  min-width:0;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
  flex-wrap:nowrap!important;
}
[data-khae-header] [data-khae-actions] a,
[data-khae-header] [data-khae-actions] button{
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:6px 9px!important;
  border:1px solid rgba(17,25,21,.25)!important;
  border-radius:var(--khae-radius)!important;
  color:#fff!important;
  background:var(--khae-navy)!important;
  box-shadow:none!important;
  font:500 9.5px/1.15 var(--khae-sans)!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
[data-khae-header] [data-khae-actions] .secondary,
[data-khae-header] [data-khae-actions] [data-khae-secondary]{
  color:var(--khae-forest)!important;
  background:#fff!important;
}
[data-khae-header] [data-vnv-ecosystem-slot]{
  justify-self:end!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
[data-khae-header] #vnvEcosystemMenuButton{
  width:39px!important;
  height:39px!important;
  min-height:39px!important;
  padding:0!important;
  border-radius:var(--khae-radius)!important;
  box-shadow:none!important;
}
[data-khae-header] #vnvEcosystemMenuButton .vnv-eco-label{display:none!important}
[data-khae-header] #vnvEcosystemMenuButton .vnv-eco-lines{width:17px!important;height:12px!important}

@media(max-width:1230px){
  [data-khae-header] [data-khae-nav]{display:none!important}
  [data-khae-header] [data-khae-actions] a:nth-child(n+4),
  [data-khae-header] [data-khae-actions] button:nth-child(n+4){display:none!important}
  [data-khae-header] [data-khae-header-inner]{grid-template-columns:minmax(230px,1fr) auto 39px!important;gap:16px!important}
}
@media(max-width:760px){
  [data-khae-header] [data-khae-actions] a:nth-child(n+3),
  [data-khae-header] [data-khae-actions] button:nth-child(n+3){display:none!important}
}
@media(max-width:560px){
   :root{--khae-ticker-height:32px;--khae-header-height:72px}
  .khae-network-ticker{grid-template-columns:minmax(0,1fr) 36px}
  .khae-network-ticker-track{animation-duration:18s}
  .khae-network-ticker-set{gap:12px;padding-inline:7px}
  .khae-network-ticker-label{font-size:9px}
  .khae-network-ticker-app,.khae-network-ticker-call{font-size:9px!important}
  .khae-ticker-control{width:36px}
  [data-khae-header] [data-khae-header-inner]{
    width:min(calc(100% - 20px),1222px);
    grid-template-columns:minmax(0,1fr) auto 39px!important;
    gap:8px!important;
  }
  [data-khae-header] [data-khae-brand-mark]{width:44px!important;height:44px!important;flex-basis:44px!important;font-size:12px!important}
  [data-khae-header] [data-khae-brand-name]{font-size:13px!important}
  [data-khae-header] [data-khae-brand-sub]{display:none!important}
  [data-khae-header] [data-khae-actions] a:nth-child(n+2),
  [data-khae-header] [data-khae-actions] button:nth-child(n+2){display:none!important}
}
@media(prefers-reduced-motion:reduce){
  .khae-network-ticker-track{animation:none!important;transform:none!important}
}
@media print{
  .khae-network-ticker,[data-khae-header] [data-vnv-ecosystem-slot]{display:none!important}
  [data-khae-header]{position:static!important;top:auto!important}
}

/* Shared campus header action contrast: readable in every Academy grade. */
[data-khae-header] [data-khae-actions] a:not([data-khae-secondary]),
[data-khae-header] [data-khae-actions] button:not([data-khae-secondary]){
  color:#fffaf0!important;background:#102b43!important;
  font-size:11px!important;line-height:1.3!important;
  text-shadow:none!important;opacity:1!important
}
[data-khae-header] [data-khae-actions] [data-khae-secondary]{
  color:#203e32!important;background:#fffdf8!important;font-size:11px!important
}

/* Academy learner toolbar v1: shared cross-repository readable labels.
   Scoped to the learner toolbar ID; never applies to lesson navigation. */
body #khaemenesLearnerUtilityToolbar{
  box-sizing:border-box!important;
  max-width:calc(100vw - 20px)!important;
  gap:5px!important;
}
body #khaemenesLearnerUtilityToolbar > :is(a,button){
  box-sizing:border-box!important;
  flex:0 1 auto!important;
  width:auto!important;min-width:87px!important;max-width:140px!important;
  height:auto!important;min-height:46px!important;max-height:none!important;
  padding:7px 8px!important;
  font-size:11px!important;font-weight:500!important;line-height:1.25!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  overflow-wrap:anywhere!important;text-align:center!important;
}
@media(max-width:580px){
  body #khaemenesLearnerUtilityToolbar{width:calc(100vw - 16px)!important;gap:3px!important}
  body #khaemenesLearnerUtilityToolbar > :is(a,button){
    flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;
    font-size:10px!important;padding:6px 3px!important
  }
}


/* Shared Academy portal header · gateway-aligned, October 27, 2026.
   Scoped off the front desk, which has its own approved layout.
   Leaves all existing page-specific links, navigation and handlers intact. */
body:not(#top) header[data-khae-header]{
  min-height:58px!important;height:auto!important;
  position:sticky!important;top:var(--khae-ticker-height,33px)!important;
  overflow:visible!important
}
body:not(#top) header[data-khae-header] [data-khae-header-inner]{
  display:grid!important;
  grid-template-columns:minmax(170px,auto) minmax(0,1fr) minmax(0,auto) 42px!important;
  grid-template-rows:minmax(58px,auto)!important;
  width:calc(100% - 24px)!important;max-width:none!important;
  min-height:58px!important;margin:0 12px!important;
  padding:4px 0!important;gap:8px!important;align-items:center!important
}
body:not(#top) header[data-khae-header] [data-khae-brand]{
  grid-column:1!important;grid-row:1!important;
  display:flex!important;align-items:center!important;gap:9px!important;
  justify-self:start!important;min-width:0!important
}
body:not(#top) header[data-khae-header] [data-khae-brand-mark]{
  width:34px!important;height:34px!important;flex:0 0 34px!important;
  font:400 11px/1 var(--khae-serif)!important
}
body:not(#top) header[data-khae-header] [data-khae-brand-name]{
  font:400 14px/1.18 var(--khae-serif)!important;
  letter-spacing:.025em!important;white-space:nowrap!important
}
body:not(#top) header[data-khae-header] [data-khae-brand-sub]{
  display:block!important;margin-top:2px!important;
  font:400 9px/1.2 var(--khae-sans)!important;
  letter-spacing:0!important;text-transform:none!important
}
body:not(#top) header[data-khae-header] [data-khae-nav]{
  grid-column:2!important;grid-row:1!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-wrap:nowrap!important;min-width:0!important;width:100%!important;
  gap:5px!important;padding:0!important;overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:thin
}
body:not(#top) header[data-khae-header] [data-khae-nav] a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;min-height:30px!important;
  padding:5px 8px!important;font:400 10px/1.2 var(--khae-sans)!important;
  letter-spacing:.015em!important;text-transform:none!important;
  white-space:nowrap!important;border:0!important;background:transparent!important;
  box-shadow:none!important
}
body:not(#top) header[data-khae-header] [data-khae-actions]{
  grid-column:3!important;grid-row:1!important;justify-self:end!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:5px!important;flex-wrap:nowrap!important;width:auto!important;min-width:0!important
}
body:not(#top) header[data-khae-header] [data-khae-actions][hidden]{display:none!important}
body:not(#top) header[data-khae-header] [data-khae-actions] :is(a,button){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;min-height:30px!important;
  padding:5px 8px!important;font:400 10px/1.2 var(--khae-sans)!important;
  text-transform:none!important;letter-spacing:0!important;
  border-radius:7px!important;white-space:nowrap!important;box-shadow:none!important
}
body:not(#top) header[data-khae-header] [data-vnv-ecosystem-slot]{
  grid-column:4!important;grid-row:1!important;justify-self:end!important;
  display:grid!important;place-items:center!important;width:40px!important;
  min-width:40px!important;height:40px!important
}
body:not(#top) #vnvBetaProgramLink:not(#khaemenesHomeUtilityDock #vnvBetaProgramLink):not(#khaemenesLearnerUtilityToolbar #vnvBetaProgramLink){
  min-height:32px!important;padding:6px 10px!important;
  font:400 10px/1.25 var(--khae-sans)!important;
  letter-spacing:0!important;border-radius:7px!important;box-shadow:0 4px 12px rgba(0,0,0,.12)!important
}
@media(max-width:980px){
  body:not(#top) header[data-khae-header] [data-khae-header-inner]{
    grid-template-columns:minmax(0,1fr) minmax(0,auto) 40px!important;
    grid-template-rows:49px minmax(34px,auto)!important;gap:0 6px!important
  }
  body:not(#top) header[data-khae-header] [data-khae-brand]{grid-column:1!important;grid-row:1!important}
  body:not(#top) header[data-khae-header] [data-vnv-ecosystem-slot]{grid-column:3!important;grid-row:1!important}
  body:not(#top) header[data-khae-header] [data-khae-actions]{
    grid-column:2!important;grid-row:1!important;max-width:min(48vw,320px)!important;overflow-x:auto!important
  }
  body:not(#top) header[data-khae-header] [data-khae-nav]{
    grid-column:1/-1!important;grid-row:2!important;justify-content:flex-start!important;
    border-top:1px solid var(--khae-line)!important;padding:3px 0!important
  }
}
@media(max-width:500px){
  body:not(#top) header[data-khae-header] [data-khae-header-inner]{
    width:calc(100% - 16px)!important;margin:0 8px!important
  }
  body:not(#top) header[data-khae-header] [data-khae-brand-name]{font-size:12px!important}
  body:not(#top) header[data-khae-header] [data-khae-brand-sub]{font-size:8px!important}
  body:not(#top) header[data-khae-header] [data-khae-actions] :is(a,button){font-size:9px!important;padding:5px!important}
}

/* Compact learner utility toolbar · October 27, 2026
   No grade, enrollment, student data, or lesson controls are affected. */
body #khaemenesLearnerUtilityToolbar{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:flex-end!important;width:max-content!important;
  max-width:calc(100vw - 16px)!important;box-sizing:border-box!important;
  gap:3px!important;padding:3px!important;border-radius:7px!important
}
body #khaemenesLearnerUtilityToolbar > :is(a,button){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;flex:0 0 auto!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  padding:4px 6px!important;gap:4px!important;border-radius:7px!important;
  font:400 9px/1.15 "Brandon Grotesque","Avenir Next","Segoe UI",Arial,sans-serif!important;
  letter-spacing:0!important;text-transform:none!important;white-space:nowrap!important;
  overflow:visible!important;overflow-wrap:normal!important;word-break:keep-all!important;
  text-overflow:clip!important;text-align:center!important
}
body #khaemenesLearnerUtilityToolbar > #vnvBetaProgramLink .vnv-beta-mark{
  font-size:12px!important;line-height:1!important;flex:0 0 auto!important
}
/* Two compact rows on narrow phones: whole words stay intact, not clipped. */
@media(max-width:540px){
  body #khaemenesLearnerUtilityToolbar{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:min(315px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;
    right:max(8px,env(safe-area-inset-right))!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    gap:3px!important;padding:3px!important
  }
  body #khaemenesLearnerUtilityToolbar > :is(a,button){
    flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
    height:auto!important;min-height:34px!important;max-height:none!important;
    padding:4px 3px!important;gap:3px!important;font-size:9px!important;
    line-height:1.2!important;white-space:normal!important;
    overflow-wrap:normal!important;word-break:keep-all!important;overflow:visible!important
  }
}
@media(max-width:320px){
  body #khaemenesLearnerUtilityToolbar > :is(a,button){
    font-size:8.5px!important;padding:4px 2px!important
  }
}
