/* Utility Platform — shared shell for category pages. Keep component selectors scoped to the shell. */
/* Shared category footer — scoped to category pages. */
.site-header ~ .wrap footer,
.site-header + .wrap footer{margin-top:40px;padding:20px 0 0;border-top:1px solid #d8e5f3;color:#5f7188;font-size:14px;text-align:center}
.site-header ~ .wrap footer a,
.site-header + .wrap footer a{color:#4e6178;text-decoration:none}
.site-header ~ .wrap footer a:hover,
.site-header + .wrap footer a:hover{color:#1667e8;text-decoration:underline}


/* Shared informational-page shell. */
.info-page{max-width:900px;margin:auto;padding:28px 16px 60px}
.info-page h1{font-size:clamp(30px,7vw,44px);line-height:1.15;margin:0 0 10px;color:#0b2347}
.info-page .lead{color:#5f7188;font-size:17px}
.info-page .card{background:#fff;border:1px solid #d8e5f3;border-radius:16px;padding:18px;margin-top:20px;box-shadow:0 8px 28px rgba(15,23,42,.07)}
.info-page .card h2{margin-top:0;color:#0b2347}
.info-page .muted{color:#5f7188}
.info-page footer{margin-top:40px;padding:20px 0 0;border-top:1px solid #d8e5f3;color:#5f7188;font-size:14px;text-align:center}
.info-page footer a{color:#4e6178;text-decoration:none}
.info-page footer a:hover{color:#1667e8;text-decoration:underline}
@media(max-width:650px){.info-page{padding:22px 14px 48px}.info-page .card{padding:17px}}


/* Shared header/search shell repair: keep the master navigation clean on category pages. */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.97);border-bottom:1px solid #dfe6ef;box-shadow:0 5px 22px rgba(15,23,42,.055);backdrop-filter:saturate(160%) blur(10px)}
.site-header .header-inner{max-width:1120px;margin:0 auto;min-height:64px;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.site-header .brand{display:flex;align-items:center;gap:10px;flex-shrink:0;color:#0b1220;font-size:16px;font-weight:850;letter-spacing:-.25px;text-decoration:none;white-space:nowrap}
.site-header .brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;box-shadow:0 7px 18px rgba(37,99,235,.20)}
.site-header .top-nav{display:flex;align-items:center;gap:4px;padding:4px;margin:0;background:#f7f9fc;border:1px solid #e1e7ef;border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.95);flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;min-width:0}
.site-header .top-nav::-webkit-scrollbar{display:none}
.site-header .top-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid transparent;border-radius:10px;color:#475569;text-decoration:none;font-size:12.5px;font-weight:780;white-space:nowrap}
.site-header .top-nav a:hover{background:#fff;color:#0b1220;border-color:#d7e0eb}
.site-header .top-nav a[aria-current="page"]{background:#eaf2ff;color:#1d4ed8;border-color:#cfe0ff}
.site-header .header-actions{display:flex;align-items:center;gap:7px;flex-shrink:0;margin-left:auto}
.site-header .icon-btn{width:40px;height:40px;display:grid;place-items:center;border:1px solid #dbe3ed;border-radius:12px;background:#fff;color:#334155;cursor:pointer;padding:0}
.site-header .icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.site-header .icon-btn:hover{background:#f8fafc;border-color:#bfd0e3}
.site-header .search-panel{display:none;max-width:1120px;margin:0 auto;padding:0 18px 12px}
.site-header .search-panel.open{display:block}
.site-header .header-inner>.search-panel{flex:0 0 100%;max-width:none;margin:0;padding:0 0 2px}
.site-header .search-panel form{display:flex;gap:8px;width:100%}
.site-header .search-panel input{flex:1;min-width:0;min-height:44px;padding:9px 12px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;color:#0b1220;font:inherit}
.site-header .search-panel button{min-height:44px;padding:9px 16px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;color:#111827;font:inherit;cursor:pointer}
.site-header .search-panel button:hover{background:#f8fafc;border-color:#94a3b8}
.site-header .mobile-nav{display:none}
.site-header .mobile-nav.open{display:none}
.site-header .mobile-nav a{display:none}
@media(max-width:820px){
  .site-header .header-inner{max-width:none;padding:9px 12px;gap:8px}
  .site-header .brand{font-size:15.5px}
  .site-header .brand-mark{width:36px;height:36px;border-radius:11px}
  .site-header .top-nav{order:3;flex:1 1 100%;width:100%;min-width:0}
  .site-header .header-actions{order:2}
  .site-header .brand{order:1}
  .site-header .search-panel{padding:0 12px 10px}
  .site-header .header-inner>.search-panel{order:4;padding:0}
  .site-header .mobile-nav{position:absolute;left:12px;right:12px;top:100%;padding:8px;background:#fff;border:1px solid #dfe6ef;border-radius:14px;box-shadow:0 12px 28px rgba(15,23,42,.12)}
  .site-header .mobile-nav.open{display:block}
  .site-header .mobile-nav a{display:block;padding:11px 12px;border-radius:9px;text-decoration:none;color:#334155;font-weight:700}
  .site-header .mobile-nav a:hover,.site-header .mobile-nav a[aria-current="page"]{background:#f1f5f9;color:#1d4ed8}
}
@media(max-width:650px){
  .site-header .top-nav a{min-height:36px;padding:7px 10px;font-size:12px}
  .site-header .icon-btn{width:38px;height:38px}
  .site-header .search-panel form{flex-direction:row}
  .site-header .search-panel button{flex:0 0 auto}
}

/* Final category-header alignment: match the All Tools header width and keep nav/actions on one top row. */
.site-header .header-inner{max-width:1040px!important;min-height:64px!important;padding:10px 16px!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:16px!important}
.site-header .brand{flex:0 0 auto!important}
.site-header .top-nav{flex:1 1 auto!important;min-width:0!important;justify-content:flex-end!important}
.site-header .header-actions{flex:0 0 auto!important;margin-left:0!important}
@media(max-width:1050px) and (min-width:821px){
 .site-header .header-inner{gap:10px!important}
 .site-header .top-nav{overflow-x:auto!important;justify-content:flex-start!important}
 .site-header .top-nav a{padding-left:9px!important;padding-right:9px!important}
}
@media(max-width:820px){
 .site-header .header-inner{max-width:none!important;min-height:auto!important;padding:9px 12px!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 .site-header .brand{order:1!important}
 .site-header .header-actions{order:2!important;margin-left:auto!important}
 .site-header .top-nav{order:3!important;flex:1 1 100%!important;width:100%!important;justify-content:flex-start!important}
}

/* Match All Tools header geometry while keeping category search/menu controls. */
.site-header .header-inner{max-width:1040px!important;margin:auto!important;min-height:64px!important;padding:10px 16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:nowrap!important}
.site-header .brand{flex:0 0 auto!important}
.site-header .top-nav{flex:1 1 auto!important;min-width:0!important;justify-content:center!important;overflow-x:auto!important}
.site-header .header-actions{flex:0 0 auto!important;margin-left:0!important}
@media(max-width:820px){
 .site-header .header-inner{max-width:none!important;min-height:auto!important;padding:9px 12px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:8px!important}
 .site-header .brand{grid-column:1!important;grid-row:1!important}
 .site-header .header-actions{grid-column:2!important;grid-row:1!important;margin-left:0!important}
 .site-header .top-nav{grid-column:1 / -1!important;grid-row:2!important;width:100%!important;min-width:0!important;justify-content:flex-start!important;overflow-x:auto!important}
}
