:root{
  --up-bg:#f4f7fb;--up-surface:#ffffff;--up-surface-soft:#f8fafc;--up-text:#0b1220;--up-muted:#5f6b7a;--up-line:#dfe6ef;--up-primary:#2563eb;--up-primary-dark:#1d4ed8;--up-primary-soft:#eff6ff;--up-shadow:0 8px 24px rgba(15,23,42,.055);--up-shadow-lg:0 16px 36px rgba(15,23,42,.09);--up-radius:18px;
}
html{scroll-behavior:smooth}
body{background:var(--up-bg)!important;color:var(--up-text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;-webkit-font-smoothing:antialiased}a{color:inherit}
.site-header,.top,body>header{position:sticky!important;top:0;z-index:1000;background:rgba(255,255,255,.97)!important;border-bottom:1px solid rgba(223,230,239,.95)!important;box-shadow:0 5px 22px rgba(15,23,42,.055);backdrop-filter:saturate(160%) blur(10px)}
.site-header .header-inner,.top>.wrap,body>header>.nav{max-width:1120px!important;margin:0 auto!important}.site-header .header-inner{min-height:64px;padding:10px 18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important}.top>.wrap{padding:9px 18px!important}body>header>.nav{padding:9px 16px!important}
.brand,.logo{flex-shrink:0!important}.site-header .brand,.top .brand,.logo{display:flex!important;align-items:center!important;gap:10px!important;color:var(--up-text)!important;font-size:16px!important;font-weight:850!important;letter-spacing:-.25px;text-decoration:none!important;white-space:nowrap}.site-header .brand-mark,.top .brand-mark{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border-radius:12px!important;background:linear-gradient(135deg,#2563eb,#0ea5e9)!important;color:#fff!important;box-shadow:0 7px 18px rgba(37,99,235,.20)}
.site-header .top-nav,.top nav,.top .navlinks,body>header nav[aria-label="Primary"]{display:flex!important;align-items:center!important;gap:4px!important;padding:4px!important;margin:0!important;background:#f7f9fc!important;border:1px solid #e1e7ef!important;border-radius:14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95);flex-wrap:nowrap!important}.site-header .top-nav a,.top nav a,.top .navlinks a,body>header nav[aria-label="Primary"] a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px;padding:8px 12px!important;border:1px solid transparent!important;border-radius:10px!important;color:#475569!important;text-decoration:none!important;font-size:12.5px!important;font-weight:780!important;white-space:nowrap!important;transition:background .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease}.site-header .top-nav a:hover,.top nav a:hover,.top .navlinks a:hover,body>header nav[aria-label="Primary"] a:hover{background:#fff!important;color:var(--up-text)!important;border-color:#d7e0eb!important;box-shadow:0 2px 8px rgba(15,23,42,.05)}.site-header .top-nav a[aria-current="page"],.top nav a[aria-current="page"],.top .navlinks a[aria-current="page"],body>header nav[aria-label="Primary"] a[aria-current="page"]{background:#eaf2ff!important;color:#1d4ed8!important;border-color:#cfe0ff!important;box-shadow:none!important}.site-header .top-nav a:focus-visible,.top nav a:focus-visible,.top .navlinks a:focus-visible,body>header nav[aria-label="Primary"] a:focus-visible{outline:3px solid rgba(37,99,235,.16)!important;outline-offset:1px}
body>main.wrap>.nav{position:static!important;margin:0 0 28px!important;padding:4px!important;background:#f7f9fc!important;border:1px solid #e1e7ef!important;border-radius:14px!important;box-shadow:none!important;display:flex!important;gap:4px!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none}body>main.wrap>.nav::-webkit-scrollbar{display:none}body>main.wrap>.nav a{padding:8px 12px!important;min-height:38px;border:1px solid transparent!important;border-radius:10px!important;text-decoration:none!important;color:#475569!important;background:transparent!important;font-weight:780!important;font-size:12.5px!important;white-space:nowrap!important}body>main.wrap>.nav a:hover{background:#fff!important;border-color:#d7e0eb!important;color:var(--up-text)!important}
main,.wrap{max-width:1120px!important}main{padding-top:34px!important}.wrap{padding-top:28px!important}h1,h2,h3{color:var(--up-text)}h1{letter-spacing:-.045em!important}h2{letter-spacing:-.025em}.lead,.muted,.sub,.hero p,.section-intro,.panel-intro{color:var(--up-muted)!important}
.hero{position:relative}.hero::before{content:"";position:absolute;left:5%;right:5%;top:-18px;height:170px;background:radial-gradient(circle at 50% 5%,rgba(37,99,235,.13),transparent 68%);pointer-events:none;z-index:-1}.site-header + #main-content{padding-top:42px!important}.site-header + #main-content .hero{padding:36px 0 40px!important}.site-header + #main-content .hero h1{max-width:780px;margin-left:auto;margin-right:auto}.site-header + #main-content .hero p{max-width:740px}
.card,.panel,.output,.callout{border-color:var(--up-line)!important;box-shadow:var(--up-shadow)!important}.card,.panel{border-radius:var(--up-radius)!important}.card{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.card:hover{transform:translateY(-2px);box-shadow:var(--up-shadow-lg)!important}
.button,.btn,.primary,.btn-primary{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:44px!important;padding:11px 17px!important;background:linear-gradient(135deg,#2563eb,#0ea5e9)!important;color:#fff!important;border:1px solid transparent!important;border-radius:999px!important;box-shadow:0 7px 18px rgba(37,99,235,.18);font-weight:750!important;line-height:1.2!important;text-decoration:none!important;transition:transform .14s ease,background .14s ease,box-shadow .14s ease}.button:hover,.btn:hover,.primary:hover,.btn-primary:hover{background:linear-gradient(135deg,#1d4ed8,#0284c7)!important;transform:translateY(-1px);box-shadow:0 10px 22px rgba(37,99,235,.22)}.button:active,.btn:active,.primary:active,.btn-primary:active{transform:translateY(0);box-shadow:0 5px 12px rgba(37,99,235,.16)}.primary{width:100%!important;cursor:pointer}.secondary,.ghost,.btn-secondary{background:#fff!important;color:#334155!important;border:1px solid #cbd5e1!important;box-shadow:none!important}.secondary:hover,.ghost:hover,.btn-secondary:hover{background:#f8fafc!important;border-color:#94a3b8!important}
body:has(.crumb a[href="math-science.html"]) .actions button:not(.secondary){background:linear-gradient(135deg,#2563eb,#0ea5e9)!important;color:#fff!important;border:1px solid transparent!important;border-radius:999px!important;min-height:44px;padding:11px 17px!important;box-shadow:0 7px 18px rgba(37,99,235,.18)}body:has(.crumb a[href="math-science.html"]) .actions button:not(.secondary):hover{background:linear-gradient(135deg,#1d4ed8,#0284c7)!important;transform:translateY(-1px);box-shadow:0 10px 22px rgba(37,99,235,.22)}
input,select,textarea{font:inherit}input,select,textarea,.field input,.field select,.field textarea,.search input{border-color:#cbd5e1!important;border-radius:11px!important;background:#fff!important;color:var(--up-text)!important;box-shadow:0 1px 2px rgba(15,23,42,.03)}input:focus,select:focus,textarea:focus,.field input:focus,.field select:focus,.field textarea:focus,.search input:focus{outline:3px solid rgba(37,99,235,.13)!important;border-color:var(--up-primary)!important}
.search{position:relative}.search::before{content:"⌕";position:absolute;left:16px;top:50%;transform:translateY(-51%);color:#94a3b8;font-size:20px;pointer-events:none;z-index:1}.search input{padding-left:44px!important;min-height:56px!important;box-shadow:0 8px 22px rgba(15,23,42,.06)!important}.tool-grid,.grid{gap:18px!important}#main-content .card{padding:22px!important}.badge{color:var(--up-primary)!important;background:var(--up-primary-soft);display:inline-flex;padding:5px 8px;border-radius:999px;letter-spacing:.35px}#main-content .card h3{font-size:20px}#main-content .card p{font-size:14px;line-height:1.65}
.crumbs,.crumb{color:#64748b!important;border-bottom:1px solid var(--up-line);padding-bottom:14px!important;margin-bottom:12px}.crumbs a,.crumb a{color:#475569;text-decoration:none}.crumbs a:hover,.crumb a:hover{color:var(--up-primary);text-decoration:underline}.output{background:linear-gradient(180deg,#f8fbff,#eff6ff)!important;border-color:#bfdbfe!important}.callout{border-left-color:var(--up-primary)!important;background:#f8fbff!important}.stat{border-color:#dbeafe!important}
footer{background:#fff!important;border-top:1px solid var(--up-line)!important;text-align:center!important}footer a{text-decoration:none}footer a:hover{color:var(--up-primary)}footer .foot{justify-content:center!important;text-align:center!important}.skip-link{position:fixed;left:12px;top:-60px;z-index:9999;background:#111827;color:#fff;padding:10px 14px;border-radius:9px;font-weight:700}.skip-link:focus{top:12px}
@media (max-width:820px){.site-header .header-inner{flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-height:auto}.site-header .brand{padding:1px 2px}.site-header .top-nav,.top nav,.top .navlinks,body>header nav[aria-label="Primary"]{justify-content:flex-start!important;width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;scrollbar-width:none}.site-header .top-nav::-webkit-scrollbar,.top nav::-webkit-scrollbar,.top .navlinks::-webkit-scrollbar,body>header nav[aria-label="Primary"]::-webkit-scrollbar{display:none}}
@media (max-width:600px){.site-header .header-inner,.top>.wrap,body>header>.nav{padding:9px 12px!important}.site-header .brand,.top .brand,.logo{font-size:15.5px!important}.site-header .brand-mark,.top .brand-mark{width:36px!important;height:36px!important;border-radius:11px!important}.site-header .top-nav a,.top nav a,.top .navlinks a,body>header nav[aria-label="Primary"] a{min-height:36px;padding:7px 10px!important;font-size:12px!important}.site-header .top-nav,.top nav,.top .navlinks,body>header nav[aria-label="Primary"]{border-radius:12px!important}main,#main-content{padding-left:14px!important;padding-right:14px!important}.site-header + #main-content .hero{padding-top:28px!important}.card,.panel{border-radius:16px!important}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.search-status{min-height:1.35em;margin:8px auto 0;max-width:650px;color:var(--up-muted);font-size:13px;text-align:left}
.info-page{max-width:900px!important;padding-bottom:60px!important}.info-page>.lead{font-size:18px;line-height:1.7;max-width:760px}.info-page .card{margin-top:18px}.info-page .card p,.info-page .card li{line-height:1.7}.info-page footer{margin-top:38px;padding:22px 0 0;border-top:1px solid var(--up-line);color:var(--up-muted);display:flex;align-items:center;justify-content:center!important;gap:18px;flex-wrap:wrap;text-align:center!important}.info-page footer .footer-links{display:flex;gap:14px;flex-wrap:wrap;justify-content:center!important}.info-page footer a{color:#475569;text-decoration:none}.info-page footer a:hover{text-decoration:underline;color:var(--up-primary)}.info-page a:focus-visible{outline:3px solid rgba(37,99,235,.16);outline-offset:2px;border-radius:4px}@media(max-width:700px){.info-page footer{align-items:center!important;flex-direction:column}}
body>header:not(.site-header) .header-inner{max-width:1120px!important;margin:0 auto!important;padding:10px 18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;min-height:64px!important}body>header:not(.site-header) .brand{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;font-size:16px!important;font-weight:850!important;white-space:nowrap!important;color:var(--up-text)!important}body>header:not(.site-header) .brand-mark{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border-radius:12px!important;background:linear-gradient(135deg,#2563eb,#0ea5e9)!important;color:#fff!important;font-weight:800!important;box-shadow:0 7px 18px rgba(37,99,235,.20)}body>header:not(.site-header) .nav{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;margin:0!important;padding:4px!important;background:#f7f9fc!important;border:1px solid #e1e7ef!important;border-radius:14px!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none}body>header:not(.site-header) .nav::-webkit-scrollbar{display:none}body>header:not(.site-header) .nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;padding:8px 12px!important;margin:0!important;border:1px solid transparent!important;border-radius:10px!important;color:#475569!important;text-decoration:none!important;font-size:12.5px!important;font-weight:780!important;white-space:nowrap!important}body>header:not(.site-header) .nav a:hover{background:#fff!important;border-color:#d7e0eb!important;color:var(--up-text)!important}
body:has(.crumb a[href="math-science.html"]) main{position:relative!important;isolation:isolate;background-color:var(--up-bg)!important;background-image:radial-gradient(circle at 50% 4%,rgba(37,99,235,.20),transparent 68%)!important;background-repeat:no-repeat!important;background-position:center top!important;background-size:100% 360px!important}body:has(.crumb a[href="math-science.html"]) main::before{display:none!important}
body:has(.crumb a[href="math-science.html"]) footer,body:has(.crumbs a[href="digital-developer.html"]) footer{display:flex!important;align-items:center!important;justify-content:center!important;gap:14px!important;flex-wrap:wrap!important;flex-direction:row!important;text-align:center!important}body:has(.crumb a[href="math-science.html"]) footer .foot,body:has(.crumbs a[href="digital-developer.html"]) footer .foot{justify-content:center!important;text-align:center!important}body:has(.crumbs a[href="digital-developer.html"]) footer span:first-child{order:0!important}body:has(.crumbs a[href="digital-developer.html"]) footer span:last-child{white-space:nowrap!important}
@media(max-width:820px){body>header:not(.site-header) .header-inner{padding:9px 12px!important;min-height:64px!important}body>header:not(.site-header) .nav{justify-content:flex-start!important;width:100%!important;max-width:100%!important}}@media(max-width:600px){body>header:not(.site-header) .header-inner{flex-direction:column!important;align-items:stretch!important;gap:8px!important}body>header:not(.site-header) .brand{justify-content:flex-start!important;font-size:15.5px!important}body>header:not(.site-header) .brand-mark{width:36px!important;height:36px!important;border-radius:11px!important}body>header:not(.site-header) .nav a{min-height:36px!important;padding:7px 10px!important;font-size:12px!important}main>section.card:last-of-type p:has(> a:nth-of-type(2)){grid-template-columns:1fr!important}}

/* Final tool-page alignment: same centered title + description treatment as the first tool. */
main.wrap:has(> .crumbs) > .hero{text-align:center!important}
main.wrap:has(> .crumbs) > .hero h1{margin-left:auto!important;margin-right:auto!important}
main.wrap:has(> .crumbs) > .hero p{margin-left:auto!important;margin-right:auto!important;max-width:760px!important}
main:has(> .crumb) > h1{text-align:center!important}
main:has(> .crumb) > .lead{margin-left:auto!important;margin-right:auto!important;max-width:760px!important;text-align:center!important}

/* Final Related Tools visual repair - all tool pages */
.related{display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;margin-top:16px!important}.related > h2{margin:0 0 14px!important}.related > .related-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;margin:0!important}.related > .related-item,.related > a{position:relative!important;width:100%!important;min-width:0!important;min-height:68px!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 18px!important;align-items:center!important;column-gap:11px!important;padding:9px 12px!important;margin:0!important;border:1px solid #dbe3ed!important;border-radius:14px!important;background:#fff!important;color:var(--up-text)!important;text-decoration:none!important;box-shadow:0 4px 14px rgba(15,23,42,.045)!important;overflow:hidden!important}.related > .related-item strong{grid-column:2!important;grid-row:1!important;margin:0!important;min-width:0!important;font-size:14px!important;line-height:1.25!important;overflow-wrap:anywhere!important}.related > .related-item span{grid-column:2!important;grid-row:2!important;min-width:0!important;font-size:12px!important;line-height:1.3!important;color:#64748b!important;overflow-wrap:anywhere!important}.related > .related-item::before,.related > a::before{grid-column:1!important;grid-row:1 / span 2!important;width:42px!important;height:42px!important;display:grid!important;place-items:center!important;border-radius:12px!important;font-size:20px!important;line-height:1!important;font-weight:700!important;box-sizing:border-box!important;color:#1d4ed8!important;background:#eff6ff!important}.related > .related-item::after,.related > a::after{content:"›"!important;grid-column:3!important;grid-row:1 / span 2!important;align-self:center!important;justify-self:end!important;font-size:25px!important;line-height:1!important;color:#0f172a!important}.related > .related-item:nth-child(1)::before,.related > a:nth-child(1)::before{content:"▦"!important}.related > .related-item:nth-child(2)::before,.related > a:nth-child(2)::before{content:"⚖"!important;color:#15803d!important;background:#ecfdf5!important}.related > .related-item:nth-child(3)::before,.related > a:nth-child(3)::before{content:"▤"!important;color:#7c3aed!important;background:#f5f3ff!important}.related > .related-item:nth-child(4)::before,.related > a:nth-child(4)::before{content:"◷"!important;color:#0891b2!important;background:#ecfeff!important}.related > .related-item:nth-child(5)::before,.related > a:nth-child(5)::before{content:"⌁"!important;color:#c2410c!important;background:#fff7ed!important}
main>section.card:last-of-type p:has(> a:nth-of-type(2)){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0!important}main>section.card:last-of-type p:has(> a:nth-of-type(2))>a,main>section.card:last-of-type p>a:only-child{position:relative!important;width:100%!important;min-width:0!important;min-height:68px!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 18px!important;align-items:center!important;column-gap:11px!important;margin:0!important;padding:9px 12px 9px 64px!important;border:1px solid #dbe3ed!important;border-radius:14px!important;background:#fff!important;color:var(--up-text)!important;text-decoration:none!important;font-size:14px!important;line-height:1.3!important;box-shadow:0 4px 14px rgba(15,23,42,.045)!important;overflow:hidden!important}main>section.card:last-of-type p:has(> a:nth-of-type(2))>a::before,main>section.card:last-of-type p>a:only-child::before{position:absolute!important;left:11px!important;top:50%!important;transform:translateY(-50%)!important;width:42px!important;height:42px!important;display:grid!important;place-items:center!important;border-radius:12px!important;font-size:20px!important;line-height:1!important;font-weight:700!important;box-sizing:border-box!important;color:#1d4ed8!important;background:#eff6ff!important}main>section.card:last-of-type p:has(> a:nth-of-type(2))>a::after,main>section.card:last-of-type p>a:only-child::after{content:"›"!important;position:absolute!important;right:11px!important;top:50%!important;transform:translateY(-52%)!important;font-size:25px!important;line-height:1!important;color:#0f172a!important}main>section.card:last-of-type p:has(> a:nth-of-type(2))>a:nth-child(1)::before,main>section.card:last-of-type p>a:only-child::before{content:"▦"!important}main>section.card:last-of-type p:has(> a:nth-of-type(2))>a:nth-child(2)::before{content:"⌁"!important;color:#c2410c!important;background:#fff7ed!important}
@media(max-width:700px){.related > .related-grid{grid-template-columns:1fr!important;gap:10px!important}.related > .related-item,.related > a{min-height:64px!important;grid-template-columns:40px minmax(0,1fr) 18px!important;padding:8px 10px!important;column-gap:10px!important;border-radius:13px!important}.related > .related-item::before,.related > a::before{width:40px!important;height:40px!important;border-radius:11px!important;font-size:19px!important}main>section.card:last-of-type p:has(> a:nth-of-type(2)){grid-template-columns:1fr!important;gap:10px!important}main>section.card:last-of-type p:has(> a:nth-of-type(2))>a,main>section.card:last-of-type p>a:only-child{min-height:64px!important;padding:8px 10px 8px 61px!important;grid-template-columns:40px minmax(0,1fr) 18px!important;border-radius:13px!important}main>section.card:last-of-type p:has(> a:nth-of-type(2))>a::before,main>section.card:last-of-type p>a:only-child::before{left:10px!important;width:40px!important;height:40px!important;border-radius:11px!important;font-size:19px!important}}


/* Category header hardening: these rules live in the global design layer so they cannot be lost on category pages. */
.site-header .header-actions{display:flex!important;align-items:center!important;gap:7px!important;flex-shrink:0!important;margin-left:auto!important}
.site-header .icon-btn{width:40px!important;height:40px!important;display:grid!important;place-items:center!important;padding:0!important;border:1px solid #dbe3ed!important;border-radius:12px!important;background:#fff!important;color:#334155!important;cursor:pointer!important}
.site-header .icon-btn svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.site-header .search-panel{display:none!important}
.site-header .search-panel.open{display:block!important}
.site-header .header-inner>.search-panel{flex:0 0 100%!important;max-width:none!important;margin:0!important;padding:0 0 2px!important}
.site-header .search-panel form{display:flex!important;gap:8px!important;width:100%!important}
.site-header .search-panel input{flex:1!important;min-width:0!important;min-height:44px!important;padding:9px 12px!important;border:1px solid #cbd5e1!important;border-radius:11px!important;background:#fff!important}
.site-header .search-panel button{min-height:44px!important;padding:9px 16px!important;border:1px solid #cbd5e1!important;border-radius:11px!important;background:#fff!important;color:#111827!important;font:inherit!important;cursor:pointer!important}
.site-header .mobile-nav{display:none!important}
.site-header .mobile-nav.open{display:none!important}
.site-header .mobile-nav a{display:none!important}
@media(max-width:820px){
 .site-header .header-inner{position:relative!important;flex-wrap:wrap!important}
 .site-header .top-nav{order:3!important;flex:1 1 100%!important;width:100%!important;min-width:0!important}
 .site-header .brand{order:1!important}
 .site-header .header-actions{order:2!important}
 .site-header .header-inner>.search-panel{order:4!important}
 .site-header .mobile-nav.open{display:block!important;position:absolute!important;left:12px!important;right:12px!important;top:100%!important;padding:8px!important;background:#fff!important;border:1px solid #dfe6ef!important;border-radius:14px!important;box-shadow:0 12px 28px rgba(15,23,42,.12)!important;z-index:1001!important}
 .site-header .mobile-nav.open a{display:block!important;padding:11px 12px!important;border-radius:9px!important;text-decoration:none!important;color:#334155!important;font-weight:700!important}
}
@media(max-width:650px){
 .site-header .icon-btn{width:38px!important;height:38px!important}
 .site-header .search-panel form{flex-direction:row!important}
}


/* FINAL CATEGORY HEADER MOBILE GEOMETRY — override global column stack. */
@media(max-width:820px){
  .category-page .site-header .header-inner,
  .site-header .header-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    flex-direction:initial!important;
    flex-wrap:initial!important;
    align-items:center!important;
    justify-content:initial!important;
    gap:8px!important;
    min-height:0!important;
    padding:9px 12px!important;
  }
  .category-page .site-header .brand,
  .site-header .brand{
    grid-column:1!important;
    grid-row:1!important;
    order:initial!important;
    min-width:0!important;
  }
  .category-page .site-header .header-actions,
  .site-header .header-actions{
    grid-column:2!important;
    grid-row:1!important;
    order:initial!important;
    margin-left:0!important;
  }
  .category-page .site-header .top-nav,
  .site-header .top-nav{
    grid-column:1 / -1!important;
    grid-row:2!important;
    order:initial!important;
    width:100%!important;
    min-width:0!important;
    flex:none!important;
    justify-content:flex-start!important;
    overflow-x:auto!important;
  }
}


/* ZEMTOOLS LOGO — visual-only replacement; preserve existing header structure. */
.site-header .brand{display:flex!important;align-items:center!important;text-decoration:none!important;min-width:0!important;}
.site-header .brand .brand-mark,
.site-header .brand > div:last-child{display:none!important;}
.site-header .brand::before{content:"";display:block;width:190px;height:48px;background:url('zemtools-logo.webp') center/contain no-repeat;background-repeat:no-repeat;flex:0 0 auto;}
@media(max-width:650px){.site-header .brand::before{width:158px;height:42px;}}
