/* V4: shared academic header, matching the original homepage v5 CSS.
   V3 vocabulary retains its light sidebar. Explicit selectors below replace
   only its white header override, even when vocab-light-v3.css loads later.
   No selectors for reference apps, exam controls or application forms. */
.lv-ui-header,.lv-ui-footer{font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#fff;background:#06275b;width:100%;position:relative;z-index:10;margin:0;text-align:left}
.lv-ui-header *, .lv-ui-footer *{box-sizing:border-box}
.lv-ui-header,html body.vocab-light-v3 > .lv-ui-header{
  font:14px/1.5 "Nunito Sans","Be Vietnam Pro",Arial,Helvetica,sans-serif;
  background:linear-gradient(120deg,#073f9e,#0b5bd3);color:#fff;
  border-bottom:0;box-shadow:0 10px 28px rgba(2,6,23,.18);
}
.lv-ui-inner{max-width:1320px;width:100%;margin:0 auto;padding:12px clamp(12px,3vw,32px);display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap}
.lv-ui-header > .lv-ui-inner,html body.vocab-light-v3 > .lv-ui-header > .lv-ui-inner{max-width:1288px;padding:12px 24px;min-height:76px}
.lv-ui-header a,.lv-ui-footer a{color:#fff;text-decoration:none;line-height:1.35;font-weight:600}
.lv-ui-header a{font-family:"Nunito Sans","Be Vietnam Pro",Arial,Helvetica,sans-serif}
.lv-ui-brand{display:flex;align-items:center;gap:13px;min-width:0;max-width:100%;flex:0 1 auto}
.lv-ui-brand>span:last-child{min-width:0}
.lv-ui-brand strong,.lv-ui-brand small{display:block;overflow-wrap:anywhere}
.lv-ui-header .lv-ui-brand strong,html body.vocab-light-v3 > .lv-ui-header .lv-ui-brand strong{font-family:"Be Vietnam Pro","Nunito Sans",Arial,Helvetica,sans-serif;font-size:20px;font-weight:900;line-height:1.15;letter-spacing:-.03em;color:#fff}
.lv-ui-header .lv-ui-brand small,html body.vocab-light-v3 > .lv-ui-header .lv-ui-brand small{font-family:"Nunito Sans","Be Vietnam Pro",Arial,Helvetica,sans-serif;font-size:12.5px;font-weight:700;color:rgba(255,255,255,.80);margin-top:2px}
.lv-ui-header .lv-ui-mark,html body.vocab-light-v3 > .lv-ui-header .lv-ui-mark{flex:0 0 46px;width:46px;height:46px;display:grid;place-items:center;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:14px;color:#fff}
.lv-ui-nav,.lv-ui-local,.lv-ui-account,.lv-ui-footer nav{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-width:0;max-width:100%}
.lv-ui-nav{justify-content:flex-end}
.lv-ui-nav a,.lv-ui-local a,.lv-ui-account a,.lv-ui-footer a{padding:9px 10px;border-radius:9px;display:inline-flex;align-items:center;min-height:36px;white-space:normal}
.lv-ui-header .lv-ui-nav a,html body.vocab-light-v3 > .lv-ui-header .lv-ui-nav a{font-family:"Nunito Sans","Be Vietnam Pro",Arial,Helvetica,sans-serif;font-size:14px;font-weight:800;color:rgba(255,255,255,.92);min-height:42px;padding:10px 12px;border-radius:14px;line-height:1;white-space:nowrap;justify-content:center}
.lv-ui-header a:hover,.lv-ui-footer a:hover,.lv-ui-header a[aria-current="page"]{background:rgba(255,255,255,.14);color:#fff}
.lv-ui-header .lv-ui-brand:hover{background:transparent}
html body.vocab-light-v3 > .lv-ui-header .lv-ui-nav a:hover,html body.vocab-light-v3 > .lv-ui-header .lv-ui-nav a[aria-current="page"]{background:rgba(255,255,255,.14);color:#fff}
.lv-ui-header a:focus-visible,.lv-ui-footer a:focus-visible,html body.vocab-light-v3 > .lv-ui-header a:focus-visible{outline:2px solid #bfdbfe;outline-offset:2px}
.lv-ui-sub{background:#ffffff0b;border-top:1px solid #ffffff21}
.lv-ui-sub .lv-ui-inner{max-width:1288px;padding:4px 24px;gap:4px 12px}
.lv-ui-sub a{font-weight:700}
.lv-ui-account{margin-left:auto;font-size:13px}
.lv-ui-identity{max-width:min(100%,300px);overflow-wrap:anywhere;color:#dbeafe}
.lv-ui-footer{z-index:auto;background:#041735;margin-top:24px;color:#dbeafe}
.lv-ui-footer .lv-ui-inner{display:block;padding-top:15px;padding-bottom:15px}
.lv-ui-footer-intro{padding:6px 0 14px;border-bottom:1px solid #ffffff25;margin-bottom:10px}
.lv-ui-footer-intro strong{color:#fff;font-size:16px}.lv-ui-footer-intro p{margin:6px 0 0;color:#dbeafe}
.lv-ui-footer-line{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;flex-wrap:wrap}
.lv-ui-footer a{font-size:13px;color:#dbeafe;padding:6px 8px}
/* Keep global navigation out of the exam overlay, including keyboard navigation. */
body:has(.oral-exam) .lv-ui-header,body:has(.oral-exam) .lv-ui-footer{display:none!important}
@media(max-width:860px){
 .lv-ui-header > .lv-ui-inner,html body.vocab-light-v3 > .lv-ui-header > .lv-ui-inner{padding:10px 12px;gap:8px 12px;min-height:68px}
 .lv-ui-header .lv-ui-brand strong,html body.vocab-light-v3 > .lv-ui-header .lv-ui-brand strong{font-size:17px}
 .lv-ui-header .lv-ui-brand small,html body.vocab-light-v3 > .lv-ui-header .lv-ui-brand small{font-size:11.5px}
 .lv-ui-header .lv-ui-mark,html body.vocab-light-v3 > .lv-ui-header .lv-ui-mark{width:42px;height:42px;flex-basis:42px;border-radius:13px}
 .lv-ui-nav{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .lv-ui-header .lv-ui-nav a,html body.vocab-light-v3 > .lv-ui-header .lv-ui-nav a{justify-content:center;text-align:center;font-size:12px;padding:8px 4px;min-height:36px;white-space:normal}
 .lv-ui-sub .lv-ui-inner{padding:4px 12px}
 .lv-ui-account{margin-left:0}.lv-ui-local a{font-size:12px}.lv-ui-footer-line{align-items:flex-start;flex-direction:column}
}
