/* One approved public header, isolated from guide/tool page styles. */
header.hub-global-header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:28px;width:100%;max-width:none;margin:0;padding:13px max(24px,calc((100% - 1240px)/2));background:#f8f7f3;isolation:isolate;border:0;border-bottom:1px solid #dedfdb;position:relative;top:auto;z-index:40;color:#202d3e;font:600 13px/1.2 'DM Sans',system-ui,sans-serif;letter-spacing:normal}
.hub-global-header *{box-sizing:border-box}.hub-global-header .hub-logo{display:block!important;flex:0 0 330px;width:330px;max-width:100%;margin:0;padding:0;border:0;text-decoration:none;background:none}.hub-global-header .hub-logo img{display:block;width:100%;height:auto;max-width:100%;border:0;border-radius:0;mix-blend-mode:darken}
.hub-global-header>.primary-nav{display:flex!important;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:7px;width:auto;margin:0;padding:0;border:0;background:none}
.hub-global-header>.primary-nav>a,.hub-global-header .calculator-menu>summary{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;min-height:42px;width:auto;margin:0;padding:11px 12px;border:1px solid transparent;border-radius:8px;background:none;box-shadow:none;color:#202d3e;text-decoration:none;font:600 13px/1.2 'DM Sans',system-ui,sans-serif;white-space:nowrap;letter-spacing:normal;cursor:pointer}
.hub-global-header>.primary-nav>a:hover,.hub-global-header .calculator-menu>summary:hover{background:#eceff2;border-color:#dce1e5;color:#1b69d4}.hub-global-header>.primary-nav>.dashboard-nav{background:#edf4fc;color:#1b69d4}.hub-global-header>.primary-nav>.transfer-nav{background:#fff8e7;border-color:#e6d5aa;color:#72531c}
.hub-global-header>.primary-nav>.hub-social{display:inline-flex!important;width:42px;min-width:42px;padding:9px;border:0;border-radius:50%;background:#202d3e;color:#fff}.hub-global-header>.primary-nav>.hub-discord{background:#5865f2}.hub-global-header>.primary-nav>.hub-social:hover{background:#1b69d4;color:white}.hub-global-header .hub-social svg{display:block;width:21px;height:21px;fill:currentColor;flex:none}
.hub-global-header a:focus-visible,.hub-global-header summary:focus-visible{outline:3px solid #c49b42;outline-offset:3px}
.hub-global-header .calculator-menu{position:relative;flex:none;margin:0;padding:0;border:0;background:none}.hub-global-header .calculator-menu>summary{list-style:none}.hub-global-header summary::-webkit-details-marker{display:none}.hub-global-header .calculator-menu-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:50;display:flex;flex-direction:column;gap:0;width:285px;max-width:85vw;max-height:65vh;overflow:auto;padding:12px;border:1px solid #dce1e5;border-radius:10px;background:#fff;box-shadow:0 12px 30px #202d3e20}.hub-global-header .calculator-menu:not([open]) .calculator-menu-panel{display:none}.hub-global-header .calculator-menu-panel a{display:block;padding:10px;color:#202d3e;text-decoration:none;font:600 13px/1.4 system-ui,sans-serif;border-radius:5px}.hub-global-header .calculator-menu-panel a:hover{background:#edf4fc;color:#1b69d4}.hub-global-header .calculator-menu-title{padding:8px 10px;font:700 11px/1.4 system-ui;text-transform:uppercase;color:#826426}.hub-global-header .calculator-menu-all{border-top:1px solid #dedfdb;margin-top:5px}
body:has(>.hub-global-header) .sidebar{top:var(--hub-header-height,150px);height:calc(100vh - var(--hub-header-height,150px))}
@media(min-width:701px) and (max-width:1150px){header.hub-global-header{flex-wrap:wrap;gap:12px}.hub-global-header>.primary-nav{width:100%;justify-content:center;flex-wrap:wrap}.hub-global-header .hub-logo{flex-basis:300px;width:300px}}
@media(max-width:700px){header.hub-global-header{flex-direction:column;align-items:stretch;padding:12px 16px;gap:10px}.hub-global-header .hub-logo{flex:none;width:300px;max-width:100%}.hub-global-header>.primary-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%}.hub-global-header>.primary-nav>a,.hub-global-header .calculator-menu>summary{display:flex!important;width:100%;min-width:0;min-height:36px;padding:7px 3px;font-size:11px;white-space:normal;text-align:center}.hub-global-header>.primary-nav>.hub-social{display:flex!important;visibility:visible!important;width:100%;min-width:0;min-height:36px;border-radius:7px}.hub-global-header .hub-social svg{width:19px;height:19px}.hub-global-header .calculator-menu>summary{gap:4px}.hub-global-header .calculator-menu-panel{left:0}.hub-global-header .hub-logo img{max-height:none}}
@media(max-width:800px){body:has(>.hub-global-header) .sidebar{position:static;height:auto}}
@media(max-width:360px){.hub-global-header .hub-logo{width:280px}}
.hub-global-header .nav-pop-icon{display:none!important}
/* Compact phone/foldable header: branding, visible social logos and a menu. */
.hub-global-header .hub-mobile-controls{display:none}
@media(max-width:1150px){header.hub-global-header{flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:space-between;padding:9px 20px;gap:8px 12px}.hub-global-header .hub-logo{flex:0 1 240px;width:240px;max-width:calc(100% - 138px)}.hub-global-header .hub-mobile-controls{display:flex;align-items:center;gap:7px;flex:none}.hub-global-header .hub-mobile-controls>.hub-social{display:flex!important;visibility:visible!important;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border:0;border-radius:50%;background:#202d3e;color:#fff;text-decoration:none;padding:7px}.hub-global-header .hub-mobile-controls>.hub-discord{background:#5865f2}.hub-global-header .hub-menu-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;margin:0;padding:7px;color:#202d3e;background:#fff;border:1px solid #dce1e5;border-radius:8px;cursor:pointer}.hub-global-header .hub-menu-toggle svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.hub-global-header>.primary-nav{display:none!important;flex:none;width:100%;margin:0;padding:8px 0 0;border-top:1px solid #dedfdb;gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}.hub-global-header.hub-menu-open>.primary-nav{display:grid!important}.hub-global-header>.primary-nav>a,.hub-global-header .calculator-menu>summary{display:flex!important;width:100%;min-height:40px;padding:9px 6px;font-size:12px;white-space:normal}.hub-global-header .calculator-menu-panel{left:0}.hub-global-header .hub-menu-toggle:focus-visible{outline:3px solid #c49b42;outline-offset:3px}}
@media(max-width:700px){header.hub-global-header{padding:8px 14px;gap:7px 8px}.hub-global-header .hub-logo{flex:0 1 210px;width:210px;max-width:calc(100% - 120px)}.hub-global-header .hub-mobile-controls{gap:6px}.hub-global-header .hub-mobile-controls>.hub-social{width:30px;height:30px;padding:6px}.hub-global-header .hub-mobile-controls .hub-social svg{width:18px;height:18px}.hub-global-header .hub-menu-toggle{width:34px;height:34px}.hub-global-header>.primary-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* Category navigation: the same compact, tap-friendly hierarchy on every screen. */
.hub-global-header .calculator-menu-panel{width:300px;padding:8px;max-height:min(70vh,650px);overscroll-behavior:contain}
.hub-global-header .calc-category{display:block;margin:0;padding:0;border:0;border-bottom:1px solid #e4e7e9;border-radius:0;background:none;box-shadow:none}
.hub-global-header .calc-category>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin:0;padding:12px 13px;list-style:none;color:#202d3e;background:none;border:0;border-radius:6px;font:600 14px/1.4 'DM Sans',system-ui,sans-serif;cursor:pointer;text-transform:none;letter-spacing:normal}
.hub-global-header .calc-category>summary:hover,.hub-global-header .calc-category[open]>summary{background:#edf4fc;color:#1b69d4}
.hub-global-header .calc-category-arrow{display:inline-block;font:400 24px/1 system-ui;transition:transform .15s ease}
.hub-global-header .calc-category[open] .calc-category-arrow{transform:rotate(90deg)}
.hub-global-header .calc-category-links{display:grid;padding:2px 3px 9px 12px;border-left:2px solid #d6e4f6;margin:0 9px 8px 15px;gap:2px}
.hub-global-header .calc-category:not([open])>.calc-category-links{display:none}
.hub-global-header .calc-category-links>a{min-height:42px;padding:11px 10px;font-size:13px;font-weight:600;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.hub-global-header .calculator-menu-all{min-height:44px;padding:13px!important;margin:4px 0 0;border-top:0;color:#1b69d4!important}
@media(max-width:1150px){.hub-global-header .calculator-menu{position:static}.hub-global-header .calculator-menu-panel{position:absolute;left:14px;right:14px;top:calc(100% + 1px);width:auto;max-width:none;max-height:65dvh}.hub-global-header .calc-category>summary{font-size:15px;min-height:46px}.hub-global-header .calc-category-links>a{font-size:14px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.hub-global-header .calc-category-arrow{transition:none}}
