.tools-mega { font-size:16px; margin:4px 0 16px; }
.tools-mega summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:8px; font-weight:700; }
.tools-mega summary::after { content:'+'; font-size:1.2em; }
.tools-mega[open]>summary::after,.tools-mega-group[open]>summary::after { content:'−'; }
.tools-mega-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:8px 0 22px; max-width:960px; }
.apc-menu-links .tools-mega-group a { display:block; font-size:15px; line-height:1.4; padding:8px 0; font-weight:500; }
.tools-mega-group summary {font-size:16px; color:#fff;}
.tools-heading { margin:0 0 24px; }
.tools-controls { display:flex; gap:16px; align-items:end; margin-bottom:36px; }
.tools-controls label { display:grid; gap:8px; font-size:14px; font-weight:700; }
.tools-search-label {flex:1;}
.tools-controls input,.tools-controls select {min-height:48px; width:100%; padding:11px 14px; border:1px solid #b9afc4; border-radius:12px; font:inherit; background:#fff; color:#21182b; }
.tools-category { margin:0 0 42px; }.tools-category h3 {font-size:clamp(24px,3vw,34px);margin:0 0 16px;}
.tools-card-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.tools-card {display:flex; flex-direction:column;gap:10px;min-height:120px;padding:22px;border-radius:20px;background:#eee8f5;color:#251c30;text-decoration:none;}
.tools-card strong {font-size:18px;}.tools-card span {font-size:14px;line-height:1.5;}.tools-card:hover {background:#e3d5f1;}
[data-theme=dark] .tools-card {background:#31263c;color:#fff;} [data-theme=dark] .tools-card:hover {background:#483459;}
.tools-card:focus-visible,.tools-controls :focus-visible,.tools-mega summary:focus-visible {outline:3px solid #a669dc;outline-offset:3px;}
.tools-empty {padding:20px 0;}
@media(max-width:767px){.tools-mega-grid{grid-template-columns:1fr;gap:0}.tools-controls{flex-direction:column;align-items:stretch}.tools-card-grid{grid-template-columns:1fr}.tools-card{min-height:0}.tools-category{margin-bottom:32px}}
.apc-menu-content:has(.tools-mega[open]) {justify-content:flex-start;}
body:has(.tools-controls:focus-within) .apc-whatsapp {visibility:hidden;}
/* Text social links need their own width, not the circular icon dimensions. */
.apci-mini-tools .footer-socials{display:flex;flex-wrap:wrap;gap:16px}
.apci-mini-tools .footer-socials a{width:auto;height:auto;min-height:44px;padding:0;background:transparent!important;font-size:14px;display:inline-flex;align-items:center;white-space:nowrap}

.mt-hub .mt-tool-grid[hidden]{display:none!important}
/* Keep scrolling content legible under the existing fixed navigation. */
body.apci-mini-tools .apc-shell::before{content:"";position:fixed;z-index:-1;top:0;left:0;right:0;height:80px;background:#fcfbff;pointer-events:none}
html[data-theme=dark] body.apci-mini-tools .apc-shell::before{background:#171322}
body.admin-bar.apci-mini-tools .apc-shell::before{height:112px}
/* Keep site navigation below the WordPress admin toolbar when logged in. */
body.admin-bar .apc-shell{top:48px}
@media(max-width:782px){body.admin-bar .apc-shell{top:62px}}
@media(max-width:600px){body.admin-bar .apc-shell{top:56px}}
