/* Shared brand header only. Does not style .wrap, page content or the lesson reader. */
.brand-header{--brand-shell-max:1240px;--brand-gutter:22px;--brand-height:72px;--brand-logo-size:21px;--brand-accent:#67821b;--brand-border:#d9dacf;--brand-surface:#f5f4ee;box-sizing:border-box;position:sticky;top:0;z-index:25;background:var(--brand-surface);border-bottom:1px solid var(--brand-border);color:#242720;font-family:'DM Sans','Segoe UI',Arial,sans-serif;line-height:1.5}
.brand-header--light{--brand-surface:#fff;background:var(--brand-surface);--brand-border:#e4e8f3}
.brand-header--violet{--brand-accent:#7141dd}
.brand-header--green{--brand-accent:#216342;--brand-border:#dce8e0}
.brand-header.brand-header--dark{--brand-surface:#0f1623;--brand-border:#394252;--brand-accent:#00d4ff;color:#f1f5f9}
.brand-header.brand-header--dark .brand-links .brand-action{background:#f1f5f9;color:#080c14;border-color:#f1f5f9}
.brand-header .brand-shell{box-sizing:border-box;width:100%;max-width:var(--brand-shell-max);margin-inline:auto;padding-inline:var(--brand-gutter);min-height:calc(var(--brand-height) - 1px);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 20px}
.brand-header .brand-logo{display:inline-flex;align-items:baseline;flex:none;font-family:'Space Grotesk','Segoe UI',Arial,sans-serif;font-size:var(--brand-logo-size);font-weight:700;line-height:1.2;letter-spacing:-1.1px;white-space:nowrap;color:inherit;text-decoration:none;padding-block:12px}
.brand-header .brand-logo span{font-weight:400}.brand-header .brand-logo b{color:var(--brand-accent)}
.brand-header .brand-toggle{display:none;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:9px 14px;border:1px solid var(--brand-border);border-radius:7px;background:transparent;color:inherit;font:600 14px/1.5 'DM Sans','Segoe UI',Arial,sans-serif;cursor:pointer;touch-action:manipulation}
.brand-header .brand-menu-icon{display:block;flex:none}.brand-header .brand-icon-close{display:none}.brand-header [aria-expanded="true"] .brand-icon-open{display:none}.brand-header [aria-expanded="true"] .brand-icon-close{display:block}
.brand-header .brand-navigation{width:100%;padding-bottom:16px}
.brand-header .brand-menu{display:flex;flex-direction:column;gap:12px}
.brand-header .brand-links{display:flex;align-items:center;gap:4px 18px;flex-wrap:wrap}
.brand-header .brand-links--ecosystem{padding-bottom:10px;border-bottom:1px solid var(--brand-border)}
.brand-header .brand-links a{display:inline-flex;align-items:center;justify-content:flex-start;min-height:44px;padding:8px 0;font-size:14px;font-weight:600;line-height:1.5;color:inherit;text-decoration:none;touch-action:manipulation}
.brand-header .brand-links a[aria-current=page]{color:var(--brand-accent);text-decoration:underline;text-underline-offset:5px}
.brand-header .brand-links .brand-action{border:1px solid #242720;border-radius:7px;padding:9px 14px;background:#242720;color:#fff}
.brand-backdrop{position:fixed;inset:0;z-index:24;background:rgb(0 0 0 / 24%);touch-action:manipulation}
.brand-backdrop[hidden]{display:none}
.brand-header :is(a,button):focus-visible{outline:3px solid var(--brand-accent);outline-offset:4px}
.brand-header.is-enhanced .brand-toggle{display:inline-flex}
.brand-header .brand-navigation[hidden]{display:none}
/* Mobile disclosure: a vertical panel below the header, without moving the page. */
@media(max-width:1099px){
 .brand-header .brand-links{flex-direction:column;align-items:stretch;gap:0;flex-wrap:nowrap}
 .brand-header .brand-links a{box-sizing:border-box;width:100%;min-height:48px;padding:12px 14px;border-radius:7px}
 .brand-header .brand-links a:active{background:var(--brand-border)}
 .brand-header .brand-links .brand-action:active{background:#424b2f}
 .brand-header.brand-header--dark .brand-links .brand-action:active{background:#dce4ef}
 .brand-header.is-enhanced .brand-navigation{box-sizing:border-box;position:absolute;inset:100% 0 auto;padding:12px var(--brand-gutter) 20px;background:var(--brand-surface);z-index:1;border-bottom:1px solid var(--brand-border);box-shadow:0 12px 20px #24272014;max-height:calc(100vh - var(--brand-height));max-height:calc(100dvh - var(--brand-height));overflow-y:auto;overscroll-behavior:contain}
 .brand-header .brand-links--ecosystem{padding-bottom:10px}
 .brand-header .brand-links .brand-action{margin-top:8px}
 .brand-header .brand-menu--services-first .brand-links--ecosystem{border-bottom:0;border-top:1px solid var(--brand-border);padding-top:10px;padding-bottom:0}
}
@media(min-width:621px){.brand-header{--brand-gutter:32px}}
@media(min-width:851px){.brand-header{--brand-height:88px}}
@media(min-width:1051px){.brand-header{--brand-gutter:48px;--brand-logo-size:23px}}
@media(min-width:1100px){
 .brand-header .brand-shell{flex-wrap:nowrap;gap:24px}
 .brand-header.is-enhanced .brand-toggle{display:none}
 .brand-header .brand-navigation{width:auto;padding:0;min-width:0}
 .brand-header .brand-menu{flex-direction:row;align-items:center;gap:18px}
 .brand-header .brand-links{gap:16px}
 .brand-header .brand-links--ecosystem{padding:0 18px 0 0;border-bottom:0;border-right:1px solid var(--brand-border)}
 .brand-header .brand-links:only-child{padding:0;border:0}
 .brand-header .brand-links a{font-size:13px}
 .brand-header .brand-menu--services-first .brand-links--ecosystem{border:0;border-left:1px solid var(--brand-border);padding:0 0 0 18px}
}
@media(hover:hover) and (pointer:fine){.brand-header .brand-links a:hover{text-decoration:underline;text-underline-offset:5px}}
