/* One header for the homepage and all Halo content pages. */
.portal-header{--nav-bg:#fffefa;--nav-ink:#272431;--nav-muted:#68636f;--nav-line:#dedade;--nav-accent:#512b62;display:block;position:relative;z-index:30;background:var(--nav-bg);color:var(--nav-ink);font-family:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;font-size:15px;line-height:1.7;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--nav-line)}
.portal-header .language-switch{width:36px;height:36px;border:1px solid var(--nav-line);display:grid;place-items:center;font-size:12px;font-weight:700;line-height:1;color:var(--nav-ink);flex-shrink:0}
.dark .portal-header{--nav-bg:#17151c;--nav-ink:#f0edf3;--nav-muted:#b9b2c3;--nav-line:#46404e;--nav-accent:#d1a8e9}
.portal-header *{box-sizing:border-box}.portal-header a{color:inherit;text-decoration:none;transition:color .18s}.portal-header a:hover{color:var(--nav-accent)}.portal-header a:focus-visible,.portal-header button:focus-visible{outline:3px solid var(--nav-accent);outline-offset:5px}.portal-header button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.portal-header [hidden]{display:none!important}
.portal-header .portal-header-inner{width:min(1232px,calc(100% - 96px));margin-inline:auto;min-height:97px;display:flex;align-items:center;gap:28px}.portal-header .portal-brand{display:inline-flex;align-items:center;gap:12px;flex-shrink:0}.portal-header .portal-brand img{display:block;width:48px;height:48px;max-width:100%}.portal-header .portal-brand strong{display:block;font-size:20px;letter-spacing:.015em;line-height:1.5;font-weight:700}.portal-header .portal-brand small{display:block;font-size:9px;letter-spacing:.2em;color:var(--nav-muted);margin-top:3px}.portal-header .desktop-nav{display:flex;gap:24px;margin-left:auto;font-weight:600;font-size:14px}.portal-header .desktop-nav a{white-space:nowrap;padding-block:12px}.portal-header a[aria-current=page]{color:var(--nav-accent);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:8px}.portal-header .portal-header-actions{display:flex;align-items:center;gap:15px}.portal-header .theme-button{padding:0;border:1px solid var(--nav-line);border-radius:50%;width:36px;height:36px;background:none;color:var(--nav-ink);display:grid;place-items:center;flex-shrink:0}.portal-header .theme-button svg{display:block;width:18px;height:18px}.portal-header .menu-toggle{display:none;background:none;border:0;color:var(--nav-ink);width:38px;height:38px;padding:8px}.portal-header .menu-toggle span{display:block;background:currentColor;height:2px;margin:6px 0}.portal-header .mobile-nav{padding:12px 24px 22px;border-top:1px solid var(--nav-line)}.portal-header .mobile-nav a{display:block;padding:10px 0;font-size:14px;font-weight:600}
@media(max-width:1200px){.portal-header .portal-header-inner{width:calc(100% - 64px);gap:20px}.portal-header .portal-brand strong{font-size:17px}.portal-header .desktop-nav{gap:18px;font-size:13px}}
@media(max-width:900px){.portal-header .portal-header-inner{width:calc(100% - 48px)}.portal-header .desktop-nav{display:none}.portal-header .portal-header-actions{margin-left:auto}.portal-header .menu-toggle{display:block}}
@media(max-width:600px){.portal-header .portal-header-inner{width:calc(100% - 40px);min-height:78px;gap:10px}.portal-header .portal-brand{gap:8px}.portal-header .portal-brand img{width:36px;height:36px}.portal-header .portal-brand strong{font-size:14px;letter-spacing:0}.portal-header .portal-brand small{font-size:7px;letter-spacing:.12em}.portal-header .portal-header-actions{gap:7px}.portal-header .theme-button{width:31px;height:31px}.portal-header .menu-toggle{width:29px;padding:5px}}
@media(prefers-reduced-motion:reduce){.portal-header *{transition:none!important}}
/* Set brand colors explicitly so theme-wide strong/link rules cannot hide it. */
.portal-header .portal-brand,.portal-header .portal-brand strong{color:var(--nav-ink)}
/* Six entries fit beside the platform name at intermediate widths. */
@media(min-width:901px) and (max-width:1100px){.portal-header .portal-header-inner{gap:16px}.portal-header .portal-brand strong{font-size:15px}.portal-header .portal-brand img{width:40px;height:40px}.portal-header .portal-brand small{font-size:8px}.portal-header .desktop-nav{gap:14px;font-size:12px}.portal-header .portal-header-actions{gap:8px}}
