/* 123 English common site header — shared across every published page */
#site-header-root{display:block;position:relative;z-index:200}
.global-header{position:relative;z-index:200;box-sizing:border-box;background:#fff;border-radius:0;box-shadow:0 5px 20px #284f9412;color:#101f43;font-family:Nunito,"Noto Sans Thai",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.45}
.global-header *,.global-header *::before,.global-header *::after{box-sizing:border-box}
.global-header a{text-decoration:none;color:inherit}
.global-header button{font:inherit;cursor:pointer}
.global-header a:focus-visible,.global-header button:focus-visible,.global-header summary:focus-visible{outline:3px solid #176df5;outline-offset:3px}
.global-header .global-nav-shell{width:min(1512px,calc(100% - 96px));height:74px;margin:auto;display:flex;align-items:center;gap:56px}
.global-header .global-wordmark{font-size:38px;line-height:1;font-weight:850;letter-spacing:-1.9px;white-space:nowrap;color:#101f43}
.global-header .global-wordmark b{color:#126bff}
.global-header .global-nav{display:flex;align-items:center;gap:10px;min-width:0}
.global-header .global-nav-item,.global-header .global-grammar-menu>summary{display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:10px 17px;font-size:18px;white-space:nowrap;border-radius:19px;font-weight:500}
.global-header a.global-nav-item:hover{color:#0757f8;background:#edf5ff}
.global-header .global-nav-disabled{color:#73809b;opacity:.65;cursor:default}
.global-header .global-grammar-menu{position:relative}
.global-header .global-grammar-menu>summary{list-style:none;cursor:pointer;color:#0757f8;background:linear-gradient(#eaf5ff,#deedff);box-shadow:0 3px 15px #5a8ec312;border:1px solid #e4efff}
.global-header .global-grammar-menu>summary::-webkit-details-marker{display:none}
.global-header .global-chevron{display:block;width:10px;height:10px;border-bottom:2px solid #0862d7;border-right:2px solid #0862d7;transform:rotate(45deg) translateY(-3px);margin-left:1px}
.global-header .global-grammar-menu[open] .global-chevron{transform:rotate(225deg);margin-top:4px}
.global-header .global-dropdown{position:absolute;top:calc(100% + 7px);left:0;width:340px;padding:10px;background:#fff;border:1px solid #e6edfa;border-radius:18px;box-shadow:0 12px 28px #183a7830;z-index:210}
.global-header .global-step-link,.global-header .global-step-inactive{display:flex;align-items:center;min-height:43px;padding:10px 12px;border-radius:10px;font-size:15px;line-height:1.35;white-space:normal}
.global-header .global-step-link{color:#064cff;background:#e7f2ff;font-weight:600}
.global-header .global-step-link:hover{background:#dcecff}
.global-header .global-step-inactive{color:#939dad;cursor:not-allowed}
.global-header .global-lesson-links{display:flex;gap:5px;align-items:center;padding:6px 7px 9px;margin-bottom:4px;border-bottom:1px solid #e9eef8}
.global-header .global-lesson-links a{font-size:12px;font-weight:650;padding:6px 8px;color:#375f9d;border-radius:8px;background:#f3f7ff}
.global-header .global-lesson-links a:hover,.global-header .global-lesson-links a[aria-current="page"]{color:#0d64ef;background:#e0edff}
.global-header .global-lang-toggle{display:flex;align-items:center;gap:3px;padding:4px;background:#e9f2ff;border:1px solid #e4eeff;border-radius:18px;margin-left:auto;flex-shrink:0}
.global-header .global-lang-toggle button{min-width:43px;min-height:38px;padding:7px 11px;border:0;border-radius:13px;color:#5c709d;background:transparent;font-size:14px;font-weight:650}
.global-header .global-lang-toggle button[aria-pressed="true"]{color:#0866f7;background:#fff;box-shadow:0 3px 9px #3568bb15}
.global-header .lang-th{display:none}
html[data-lang="th"] .global-header .lang-ru{display:none}
html[data-lang="th"] .global-header .lang-th{display:initial}
html[data-lang="ru"] .global-header .lang-th{display:none}
html[data-lang="ru"] .global-header .lang-ru{display:initial}
@media(max-width:1450px){
.global-header .global-nav-shell{gap:33px;width:calc(100% - 80px)}
.global-header .global-wordmark{font-size:32px}
.global-header .global-nav{gap:6px}
.global-header .global-nav-item,.global-header .global-grammar-menu>summary{font-size:16px;padding:10px 15px}
}
@media(max-width:1100px){
.global-header .global-nav-shell{gap:20px;width:calc(100% - 40px)}
.global-header .global-wordmark{font-size:28px}
.global-header .global-nav{gap:1px}
.global-header .global-nav-item,.global-header .global-grammar-menu>summary{padding:10px 11px;font-size:14px}
}
@media(max-width:760px){
.global-header .global-nav-shell{width:calc(100% - 32px);height:auto;min-height:112px;flex-wrap:wrap;gap:10px;padding:14px 0 10px}
.global-header .global-wordmark{font-size:29px}
.global-header .global-lang-toggle{order:1}
.global-header .global-lang-toggle button{font-size:13px;min-height:34px;min-width:39px;padding:7px 9px}
.global-header .global-nav{order:2;flex:0 0 100%;justify-content:space-between;gap:0;overflow:visible}
.global-header .global-nav-item,.global-header .global-grammar-menu>summary{min-height:44px;padding:9px 10px;font-size:13px;border-radius:13px;gap:8px}
.global-header .global-dropdown{width:min(340px,calc(100vw - 32px));top:calc(100% + 5px)}
}
@media(max-width:600px){
.global-header .global-nav-item,.global-header .global-grammar-menu>summary{font-size:12px;padding:8px 7px}
.global-header .global-nav-shell{width:calc(100% - 28px)}
.global-header .global-chevron{width:8px;height:8px}
}
@media(max-width:359px){
.global-header .global-wordmark{font-size:25px}
.global-header .global-lang-toggle button{padding:6px;min-width:32px}
.global-header .global-nav-item,.global-header .global-grammar-menu>summary{font-size:11px;padding:8px 5px;gap:6px}
}

/* Compact brand-only header: logo and language selection on all pages. */
.global-header .global-wordmark{display:flex;align-items:center;flex:0 0 auto;width:260px;min-width:0;line-height:0;letter-spacing:normal}
.global-header .global-logo{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:760px){
 .global-header .global-nav-shell{height:78px;min-height:0;flex-wrap:nowrap;gap:12px;padding:8px 0}
 .global-header .global-wordmark{width:min(240px,calc(100vw - 152px))}
}
@media(max-width:359px){
 .global-header .global-wordmark{width:min(195px,calc(100vw - 145px))}
}

/* Desktop only: add 5px of breathing room below the brand without moving it. */
@media(min-width:761px){
 .global-header .global-nav-shell{height:79px;padding-bottom:5px}
}


/* Account link — preserves original logo, language switch and header heights. */
.global-header .global-account-link{margin-left:auto;display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:8px 14px;border-radius:14px;white-space:nowrap;color:#101f43;font-weight:800;flex-shrink:0}
.global-header .global-account-link svg{width:23px;height:23px;flex:none}
.global-header .global-account-link:hover,.global-header .global-account-link[aria-current="page"]{background:#e9f2ff;color:#0866f7}
.global-header .global-lang-toggle{margin-left:0}
@media(max-width:760px){.global-header .global-nav-shell{gap:8px}.global-header .global-wordmark{flex:0 1 auto;width:min(240px,calc(100vw - 183px))}.global-header .global-account-link{padding:8px;width:44px;min-width:44px}.global-header .global-account-text{display:none}}
@media(max-width:359px){.global-header .global-wordmark{width:min(195px,calc(100vw - 165px))}}
