.header-inner{max-width:1880px;gap:24px;padding:14px 26px;flex-wrap:nowrap}.header-inner #category-nav{gap:8px;scrollbar-width:none}.header-inner #category-nav::-webkit-scrollbar{display:none}
.nav-category{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;white-space:nowrap;font:600 14px var(--font-sans);line-height:1.4;padding:12px 10px;border:0;border-radius:9px;background:transparent;color:#263b5b;cursor:pointer;transition:background .15s,color .15s}.nav-category svg{transition:transform .15s;flex-shrink:0}.nav-category:hover,.nav-category[aria-expanded=true]{background:#f0f5ff;color:#165dff}.nav-category.active{background:#eaf2ff;color:#165dff}.nav-category[aria-expanded=true] svg{transform:rotate(180deg)}.nav-category:focus-visible{outline:2px solid #165dff;outline-offset:-2px}
.category-dropdown{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:min(920px,calc(100% - 36px));border:1px solid #e5ecf8;border-radius:16px;background:#fff;box-shadow:0 20px 65px #172b5a22,0 3px 10px #172b5a08;color:#17213c;isolation:isolate;z-index:120}.category-dropdown:before{content:'';position:absolute;top:-7px;left:calc(var(--menu-pointer,50%) - 7px);width:13px;height:13px;background:white;border-left:1px solid #e5ecf8;border-top:1px solid #e5ecf8;transform:rotate(45deg);z-index:-1}.dropdown-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:25px;gap:24px;max-height:min(65vh,600px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c6d3eb transparent}.category-dropdown[data-columns="2"]{width:min(700px,calc(100% - 36px))}.category-dropdown[data-columns="2"] .dropdown-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}.category-dropdown[data-columns="1"]{width:min(600px,calc(100% - 36px))}.category-dropdown[data-columns="1"] .dropdown-content{grid-template-columns:1fr}.category-dropdown[data-columns="1"] .dropdown-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}.dropdown-group h2{margin:3px 0 14px 7px;font-size:12px;font-weight:700;line-height:1.5;letter-spacing:.5px;text-transform:uppercase;color:#788198}.dropdown-links{display:grid;gap:3px}.dropdown-tool{display:flex;align-items:center;gap:11px;padding:8px 7px;min-height:44px;border-radius:9px;font-size:13px;line-height:1.4;font-weight:600;transition:background .15s,color .15s}.dropdown-tool:hover,.dropdown-tool:focus-visible{background:#f0f5ff;color:#165dff;outline:0}.dropdown-tool>img.icon,.dropdown-tool>img.tool-icon{width:29px;height:29px;margin:0;padding:0;background:transparent;object-fit:contain;flex-shrink:0;border-radius:0}.dropdown-tool>span{min-width:0}.dropdown-tool small{display:block;font-size:10px;font-weight:400;color:#7a859c;margin-top:3px}.dropdown-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #eaf0fa;background:#f8fbff;border-radius:0 0 16px 16px;padding:15px 25px;font-size:11px;color:#75829c}.dropdown-footer>a{display:flex;align-items:center;gap:10px;color:#165dff;font-weight:700;font-size:12px;padding:5px}.dropdown-footer>a:hover{text-decoration:underline}.dropdown-footer>a:focus-visible{outline:2px solid #165dff;outline-offset:3px;border-radius:3px}

/* navigation.js adds .nav-stacked when the brand, the nav and the buttons cannot share a
   row. It is measured rather than guessed from a width, because how wide the nav wants to
   be depends on how many categories the build actually has. */
.header-inner.nav-stacked{flex-wrap:wrap;justify-content:space-between;gap:12px;padding:13px 22px}
.header-inner.nav-stacked #category-nav{order:3;flex-basis:100%;justify-content:center;flex-wrap:wrap;gap:6px 12px;overflow:visible}
@media(max-width:1800px){.nav-category{font-size:14px;padding:11px 10px;gap:7px}}
@media(max-width:780px){.header-inner{gap:10px;padding:12px 16px}.header-inner #category-nav{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;gap:8px}.nav-category{font-size:14px;padding:11px 10px}.category-dropdown,.category-dropdown[data-columns]{width:calc(100% - 24px);top:calc(100% + 5px)}.dropdown-content,.category-dropdown[data-columns="2"] .dropdown-content{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px;gap:22px 12px;max-height:calc(100dvh - 230px)}.category-dropdown[data-columns="3"] .dropdown-group:last-child{grid-column:1/-1}.category-dropdown[data-columns="3"] .dropdown-group:last-child .dropdown-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px}.dropdown-tool{font-size:12px;gap:7px;padding:8px 3px;min-height:46px}.dropdown-tool>img.icon,.dropdown-tool>img.tool-icon{width:26px;height:26px}.dropdown-group h2{font-size:11px;letter-spacing:.2px;margin-left:3px}.dropdown-footer{padding:12px 18px}.dropdown-footer>span{display:none}.dropdown-footer>a{margin-left:auto;font-size:13px}}
@media(max-width:420px){.dropdown-content,.category-dropdown[data-columns="2"] .dropdown-content{padding:16px 12px;gap:18px 8px}.dropdown-tool{font-size:11px}.dropdown-tool>img.icon,.dropdown-tool>img.tool-icon{width:23px;height:23px}}

/* Wordmark: the logo is live text, so it stays sharp and matches the palette (ink #0b1230 + primary #165dff). */
.brand{display:inline-flex;align-items:center;gap:9px;flex-shrink:0}
.brand-mark{display:block;width:40px;height:40px;flex-shrink:0}
.brand-word{font-family:var(--font-sans);font-size:27px;font-weight:800;line-height:1;letter-spacing:-1.1px;color:#0b1230;white-space:nowrap}
.brand-word span{color:#165dff}
.brand:focus-visible{outline:3px solid #9cbaff;outline-offset:4px;border-radius:6px}
.footer-brand{color:#0b1230;letter-spacing:-.2px}.footer-brand span{color:#165dff}
@media(max-width:780px){.brand{gap:7px}.brand-mark{width:34px;height:34px}.brand-word{font-size:23px;letter-spacing:-.9px}}
@media(max-width:420px){.brand{gap:6px}.brand-mark{width:29px;height:29px}.brand-word{font-size:19px;letter-spacing:-.7px}.header-inner{padding:10px 12px;gap:8px}}





.header-actions{gap:12px}.header-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;min-height:44px;font-size:13px;line-height:1.4}.header-button>img{display:block;width:22px;height:22px;object-fit:contain;flex-shrink:0}
@media(max-width:780px){.header-actions{gap:8px}.header-button{gap:6px;padding:10px 9px;font-size:11px}.header-button>img{width:19px;height:19px}}
@media(max-width:420px){.header-actions{gap:6px}.header-button{gap:5px;padding:10px 8px;font-size:10px}.header-button>img{width:17px;height:17px}}


/* A header button's label can carry a second, smaller line under the first. The button keeps its
   height, so the row does not grow: the two lines are tight enough to sit inside it. */
.header-button-label{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;line-height:1.05}
.header-button-label b{font-weight:700}
.header-button-label small{font-size:.78em;font-weight:600;opacity:.82}


/* Giving way in steps, so the header stays on one row for as long as it reasonably can.
   navigation.js adds these one at a time and stops at the first that fits. */
.nav-short{display:none}
.header-inner.fit-short .nav-full{display:none}
.header-inner.fit-short .nav-short{display:inline}

.header-inner.fit-tight{gap:12px;padding:12px 16px}
.header-inner.fit-tight .nav-category{font-size:12.5px;padding:9px 7px;gap:5px}
.header-inner.fit-tight #category-nav{gap:2px}
.header-inner.fit-tight .header-button{padding:9px 11px;gap:6px}

.header-inner.fit-mark .brand-word{display:none}
.header-inner.fit-mark .brand{gap:0}
