/* Easy English - shared navigation, guidance and polish layer.
   Keeps the existing brand: cream background, ink text, coral actions, Outfit + DM Sans. */
:root{
  --ux-bg:#fbf7f0; --ux-card:#fff; --ux-ink:#1d1b2e; --ux-muted:#5f5b74; --ux-line:#e8e1d5; --ux-soft:#f4eee4;
  --ux-coral:#f0595b; --ux-coral-d:#d84446; --ux-purple:#4b3fd1; --ux-green:#1f9d63;
  --ux-ring:0 0 0 3px #fff, 0 0 0 5px #4b3fd1;
}

/* ---------- Quality floor for every page ---------- */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:none;box-shadow:var(--ux-ring);border-radius:10px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Bigger, easier buttons on the portal pages */
body .btn{min-height:44px;padding:11px 20px;font-size:15px}
body .btn.small{min-height:38px;padding:8px 14px;font-size:14px}
/* Things that are replaced by the shared header / not for students */
body.eeux-on #root header.border-b,
body.eeux-on header.snav,
body.eeux-on #ee-account,
body.eeux-on > div[style*="bottom:16px"][style*="position:fixed"],
nav[aria-label="Demo switcher"]{display:none!important}

/* ---------- Header ---------- */
#eeux-bar{background:var(--ux-card);border-bottom:1px solid var(--ux-line);font:500 15px/1.4 "DM Sans",system-ui,sans-serif;color:var(--ux-ink);position:relative;z-index:60}
#eeux-bar .in{max-width:1180px;margin:0 auto;padding:0 20px;height:64px;display:flex;align-items:center;gap:8px}
#eeux-bar .logo{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ux-ink);font:800 19px Outfit,system-ui,sans-serif;margin-right:18px;white-space:nowrap}
#eeux-bar .logo img{width:28px;height:28px}
#eeux-bar nav.main{display:flex;align-items:center;gap:2px;flex:1}
#eeux-bar .lnk{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 14px;border-radius:999px;border:0;background:none;color:var(--ux-ink);font:600 15px "DM Sans",sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}
#eeux-bar .lnk:hover{background:var(--ux-soft)}
#eeux-bar .lnk[aria-current="page"]{background:var(--ux-ink);color:#fff}
#eeux-bar .lnk.journey{color:var(--ux-coral-d)}
#eeux-bar .lnk.journey[aria-current="page"]{background:var(--ux-coral);color:#fff}
#eeux-bar .caret{width:10px;height:10px;transition:transform .15s}
#eeux-bar [aria-expanded="true"] .caret{transform:rotate(180deg)}
#eeux-bar .dd{position:relative}
#eeux-bar .menu{position:absolute;top:calc(100% + 8px);left:0;min-width:300px;background:#fff;border:1px solid var(--ux-line);border-radius:16px;box-shadow:0 18px 40px rgba(29,27,46,.14);padding:8px;display:none}
#eeux-bar .menu.right{left:auto;right:0;min-width:230px}
#eeux-bar .menu.open{display:block}
#eeux-bar .menu a,#eeux-bar .menu button{display:flex;gap:12px;align-items:center;width:100%;padding:10px 12px;border-radius:11px;text-decoration:none;color:var(--ux-ink);background:none;border:0;font:600 15px "DM Sans",sans-serif;text-align:left;cursor:pointer}
#eeux-bar .menu a:hover,#eeux-bar .menu button:hover{background:var(--ux-soft)}
#eeux-bar .menu small{display:block;font-weight:400;color:var(--ux-muted);font-size:13px}
#eeux-bar .ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;font:800 15px Outfit,sans-serif}
#eeux-bar .acct{margin-left:auto;display:flex;align-items:center;gap:6px}
#eeux-bar .who{display:inline-flex;align-items:center;gap:8px}
#eeux-bar .av{width:30px;height:30px;border-radius:50%;background:var(--ux-ink);color:#fff;display:grid;place-items:center;font:700 13px Outfit,sans-serif}
#eeux-bar .login{background:var(--ux-coral);color:#fff}
#eeux-bar .login:hover{background:var(--ux-coral-d)}
#eeux-bar .burger{display:none;margin-left:auto;width:44px;height:44px;border-radius:12px;border:1px solid var(--ux-line);background:#fff;cursor:pointer;align-items:center;justify-content:center}
#eeux-sheet{display:none}

/* ---------- Guide: "what to do on this page" ---------- */
#eeux-guide{background:var(--ux-bg);border-bottom:1px solid var(--ux-line);font:15px/1.45 "DM Sans",system-ui,sans-serif;color:var(--ux-ink)}
#eeux-guide .in{max-width:1180px;margin:0 auto;padding:14px 20px;display:grid;grid-template-columns:minmax(180px,240px) 1fr auto;gap:18px;align-items:center}
#eeux-guide .where{font-size:13px;color:var(--ux-muted)}
#eeux-guide .where a{color:var(--ux-muted)}
#eeux-guide h2{font:700 18px/1.25 Outfit,system-ui,sans-serif;margin:2px 0 0;color:var(--ux-ink)}
#eeux-guide ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;counter-reset:s}
#eeux-guide li{counter-increment:s;display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid var(--ux-line);border-radius:14px;padding:10px 12px;font-size:14px}
#eeux-guide li::before{content:counter(s);flex:none;width:24px;height:24px;border-radius:50%;background:var(--ux-coral);color:#fff;font:700 13px/24px Outfit,sans-serif;text-align:center}
#eeux-guide .note{grid-column:2/3;font-size:13.5px;color:var(--ux-muted);margin-top:-6px}
#eeux-guide .x{border:1px solid var(--ux-line);background:#fff;border-radius:999px;min-height:40px;padding:0 14px;font:600 14px "DM Sans",sans-serif;cursor:pointer;color:var(--ux-ink);white-space:nowrap}
#eeux-guide .x:hover{background:var(--ux-soft)}
#eeux-guide.min .in{grid-template-columns:1fr auto;padding:8px 20px}
#eeux-guide.min ol,#eeux-guide.min .note{display:none}
#eeux-guide.min h2{font-size:15px}

/* ---------- Floating help (test screens) ---------- */
#eeux-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:70;min-height:48px;padding:0 18px;border-radius:999px;border:0;background:var(--ux-ink);color:#fff;font:700 15px "DM Sans",sans-serif;box-shadow:0 10px 30px rgba(29,27,46,.25);cursor:pointer;display:flex;align-items:center;gap:8px}
#eeux-fab:hover{background:#000}

/* ---------- Help panel ---------- */
dialog#eeux-help{border:0;padding:0;margin:0 0 0 auto;height:100%;max-height:100%;width:min(440px,100%);background:#fff;color:var(--ux-ink);font:15px/1.5 "DM Sans",system-ui,sans-serif;box-shadow:-20px 0 60px rgba(29,27,46,.2)}
dialog#eeux-help::backdrop{background:rgba(29,27,46,.4)}
#eeux-help .hd{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--ux-line);position:sticky;top:0;background:#fff}
#eeux-help h2{font:800 21px Outfit,sans-serif;margin:0}
#eeux-help h3{font:700 16px Outfit,sans-serif;margin:22px 0 10px}
#eeux-help .bd{padding:4px 22px 30px}
#eeux-help .close{width:44px;height:44px;border-radius:12px;border:1px solid var(--ux-line);background:#fff;font-size:22px;cursor:pointer;color:var(--ux-ink)}
#eeux-help ol.steps{margin:0;padding:0;list-style:none;counter-reset:s}
#eeux-help ol.steps li{counter-increment:s;display:flex;gap:12px;padding:9px 0}
#eeux-help ol.steps li::before{content:counter(s);flex:none;width:26px;height:26px;border-radius:50%;background:var(--ux-coral);color:#fff;font:700 13px/26px Outfit,sans-serif;text-align:center}
#eeux-help details{border:1px solid var(--ux-line);border-radius:14px;margin-bottom:8px;background:#fff}
#eeux-help summary{cursor:pointer;padding:13px 16px;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:10px}
#eeux-help summary::-webkit-details-marker{display:none}
#eeux-help summary::after{content:"+";font-weight:700;color:var(--ux-muted)}
#eeux-help details[open] summary::after{content:"\2212"}
#eeux-help details p{margin:0;padding:0 16px 14px;color:var(--ux-muted)}
#eeux-help .wa,#eeux-foot .wa{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:999px;background:#1fa855;color:#fff;font:700 15px "DM Sans",sans-serif;text-decoration:none}
#eeux-help .wa:hover,#eeux-foot .wa:hover{background:#178a45}
#eeux-help .wa svg,#eeux-foot .wa svg{width:20px;height:20px}
#eeux-help .tour{margin-top:6px;border:1px solid var(--ux-line);background:#fff;border-radius:999px;min-height:44px;padding:0 18px;font:600 15px "DM Sans",sans-serif;cursor:pointer;color:var(--ux-ink)}

/* ---------- Footer ---------- */
#eeux-foot{background:var(--ux-ink);color:#d9d6e8;font:15px/1.5 "DM Sans",system-ui,sans-serif;margin-top:48px}
#eeux-foot .in{max-width:1180px;margin:0 auto;padding:40px 20px 26px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:28px}
#eeux-foot .brand{font:800 20px Outfit,sans-serif;color:#fff;display:flex;gap:9px;align-items:center}
#eeux-foot .brand img{width:26px;height:26px}
#eeux-foot p{margin:10px 0 0;color:#aaa6c2;font-size:14px;max-width:34ch}
#eeux-foot h3{font:700 14px Outfit,sans-serif;color:#fff;margin:0 0 10px}
#eeux-foot ul{list-style:none;margin:0;padding:0}
#eeux-foot li a,#eeux-foot li button{display:inline-block;padding:5px 0;color:#d9d6e8;text-decoration:none;background:none;border:0;font:inherit;cursor:pointer}
#eeux-foot li a:hover,#eeux-foot li button:hover{color:#fff;text-decoration:underline}
#eeux-foot .base{max-width:1180px;margin:0 auto;padding:16px 20px 26px;border-top:1px solid rgba(255,255,255,.1);font-size:13px;color:#8e8aa8}

/* ---------- Login page help ---------- */
.eeux-loginhelp{margin-top:16px;text-align:center;font:14px/1.5 "DM Sans",sans-serif;color:var(--ux-muted)}
.eeux-loginhelp a{color:#178a45;font-weight:700}

/* ---------- Phones and tablets ---------- */
@media (max-width:900px){
  #eeux-bar nav.main,#eeux-bar .acct{display:none}
  #eeux-bar .burger{display:inline-flex}
  #eeux-bar .in{height:58px}
  #eeux-sheet.open{display:block;position:fixed;inset:58px 0 0 0;background:#fff;z-index:80;overflow:auto;padding:12px 16px 40px;border-top:1px solid var(--ux-line);font:16px/1.4 "DM Sans",system-ui,sans-serif}
  #eeux-sheet a,#eeux-sheet button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 12px;border-radius:12px;text-decoration:none;color:var(--ux-ink);background:none;border:0;font:600 16px "DM Sans",sans-serif;text-align:left;cursor:pointer}
  #eeux-sheet a[aria-current="page"]{background:var(--ux-soft)}
  #eeux-sheet .grp{font:600 13px "DM Sans",sans-serif;color:var(--ux-muted);padding:16px 12px 4px}
  #eeux-sheet .ic{flex:none;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:#fff;font:800 14px Outfit,sans-serif}
  #eeux-guide .in{grid-template-columns:1fr auto;gap:10px;padding:12px 16px}
  #eeux-guide ol{grid-column:1/-1;grid-template-columns:1fr;gap:6px}
  #eeux-guide .note{grid-column:1/-1;margin:0}
  #eeux-foot .in{grid-template-columns:1fr 1fr;gap:24px}
  #eeux-foot .in > :first-child,#eeux-foot .in > :last-child{grid-column:1/-1}
  body.eeux-test #eeux-fab{bottom:calc(84px + env(safe-area-inset-bottom))}
}
@media print{#eeux-bar,#eeux-guide,#eeux-foot,#eeux-fab{display:none!important}}
