/* One physical LTR header on every surface, with the approved homepage mark. */
[data-site-header].site-header{box-sizing:border-box;position:relative;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;width:100%;max-width:1240px;min-height:110px;height:auto;gap:12px;margin:0 auto;padding:16px 44px!important;direction:ltr;border:0;line-height:1.2;font-family:'Trebuchet MS',Arial,sans-serif;color:#293d67;z-index:90}
[data-site-header] [data-header-brand]{display:flex!important;align-items:center;gap:10px;min-width:0;flex-shrink:1;font:800 23px/1.2 'Trebuchet MS',Arial,sans-serif!important;letter-spacing:-1px;text-decoration:none;white-space:nowrap;color:inherit}
[data-site-header] [data-header-brand] img{width:52px!important;height:52px!important;object-fit:contain;flex-shrink:0}
[data-site-header] [data-header-controls]{display:flex!important;align-items:center;justify-content:flex-end;flex-wrap:nowrap!important;gap:4px!important;margin:0 0 0 auto;padding:0!important;min-height:48px;direction:ltr;position:relative}
[data-site-header] .lesson-tag,[data-site-header] .navlinks>a{display:none!important}
[data-site-header] [data-header-language]{appearance:none!important;-webkit-appearance:none!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;color:inherit;font:700 16px/1.2 'Trebuchet MS',Arial,sans-serif!important;text-align:center;width:48px!important;min-width:48px!important;max-width:48px!important;height:48px;padding:8px 4px!important;cursor:pointer}
[data-site-header] [data-header-menu-toggle]{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:48px!important;min-width:48px;height:48px!important;min-height:48px;padding:12px!important;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none;cursor:pointer}
[data-site-header] [data-header-menu-toggle] svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
[data-site-header] [data-header-menu]{position:absolute!important;top:100%!important;right:0!important;left:auto!important;width:max-content;min-width:220px;max-width:min(340px,calc(100vw - 32px));max-height:calc(100dvh - 110px);overflow:auto;display:flex!important;flex-direction:column;gap:4px!important;margin:0!important;padding:8px!important;border:1px solid #d9cce8;border-radius:16px;background:white;box-shadow:0 8px 28px #293d6726;color:#293d67;direction:ltr;z-index:100}
[data-site-header] [data-header-menu][hidden]{display:none!important}
[data-site-header] [data-header-menu] a,[data-site-header] [data-header-menu] button{display:flex!important;align-items:center;width:100%;min-height:48px;box-sizing:border-box;padding:10px 12px!important;margin:0;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;font:17px/1.35 'Trebuchet MS',Arial,sans-serif!important;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
[data-site-header] [data-header-menu] a:focus-visible,[data-site-header] [data-header-menu] button:focus-visible,[data-site-header] [data-header-menu-toggle]:focus-visible{outline:2px solid #615298;outline-offset:2px}
@media(max-width:760px){[data-site-header].site-header{min-height:84px;padding:16px!important;gap:4px}[data-site-header] [data-header-brand]{font-size:20px!important;gap:7px}[data-site-header] [data-header-brand] img{width:48px!important;height:48px!important}}
@media(max-width:360px){[data-site-header].site-header{padding:12px!important}[data-site-header] [data-header-brand]{font-size:17px!important;gap:5px}[data-site-header] [data-header-brand] img{width:44px!important;height:44px!important}}

/* The notebook overlay must receive close/trace input above the shared header. */
body.writing-open [data-site-header].site-header{z-index:0}
