/* EDT hub v2: self-contained home styling; does not touch legacy tool layouts. */
.edt-home .edt-home-directory{min-width:0}
.edt-home .edt-home-search{background:#fff;border:1px solid #d8e6ec;box-shadow:0 8px 26px rgba(7,28,44,.055);border-radius:20px;padding:26px 29px;margin:0 0 22px}
.edt-home-search h2{margin:0 0 3px;font-size:22px;font-weight:850;color:#0a2a40;letter-spacing:-.025em}
.edt-home-search p{margin:0 0 19px;color:#647e8a;font-size:14px}
.edt-home .search-row{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}
.edt-home .search-input{flex:1 1 360px;min-width:0;min-height:48px;border:1px solid #b7d1dc;border-radius:12px;background:#fbfdfe;padding:11px 15px;font:inherit;color:#12394d}
.edt-home .search-input:focus{outline:3px solid #bde8ee;border-color:#087da8}
.edt-home .search-btn,.edt-home .clear-btn{padding:11px 19px;border:1px solid #087da8;border-radius:11px;background:linear-gradient(135deg,#087da8,#056487);font:inherit;font-size:14px;font-weight:800;line-height:1.3;color:white;cursor:pointer}
.edt-home .clear-btn{background:#fff;color:#18516a;border-color:#c4d8e1}
.edt-home .search-btn:hover{background:#075e82}
.edt-home .clear-btn:hover{background:#eaf6fa}
.edt-home .search-status{display:none;margin:17px 0 0;color:#264e62;font-weight:750}
.edt-home .search-empty{display:none;margin:15px 0 0;color:#7b4050;font-weight:750}
.edt-home .tool-section{margin:0 0 21px;background:#fff;border:1px solid #d8e6ec;border-radius:20px;box-shadow:0 8px 25px rgba(7,28,44,.05);padding:25px 28px;min-width:0}
.edt-home .section-title{font-size:22px;color:#092b3f;font-weight:850;letter-spacing:-.025em;margin:0 0 4px;line-height:1.3}
.edt-home .section-sub{margin:0 0 19px;font-size:14px;color:#657d8a}
.edt-home .tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.edt-home .tool-card{display:flex;align-items:flex-start;gap:11px;min-width:0;padding:16px 13px;border:1px solid #d6e7ed;border-radius:13px;background:linear-gradient(150deg,#fbfdfe,#f2f9fc);color:#12364d;text-decoration:none!important;transition:border-color .15s,background .15s,transform .15s,box-shadow .15s}
.edt-home .tool-card:hover{transform:translateY(-2px);border-color:#91bed0;background:#eef8fb;box-shadow:0 6px 18px rgba(7,28,44,.06)}
.edt-home .tool-ico{width:25px;height:25px;flex:0 0 25px;object-fit:contain;border-radius:6px;margin-top:0}
.edt-home .tool-meta{min-width:0}
.edt-home .tool-name{font-size:14px;font-weight:850;color:#123b53;line-height:1.35}
.edt-home .tool-desc{font-size:12.5px;margin-top:6px;color:#5e7986;line-height:1.54}
.edt-home .section-popular{padding-left:19px;color:#375368}
.edt-home .edt-leaderboard-promo{display:flex;justify-content:center;align-items:center;max-width:100%;width:min(728px,100%);height:90px;margin:20px auto 28px;overflow:hidden;border-radius:18px}
.edt-home .content{border:1px solid #d8e6ec;box-shadow:0 8px 25px rgba(7,28,44,.05);background:#fff;border-radius:20px;padding:25px 28px;margin:8px 0 0}
.edt-home .faq-item{margin:0 0 18px}
.edt-home .faq-item h2{font-size:20px;font-weight:850;margin:0 0 8px;line-height:1.3;color:#123b50}
.edt-home .faq-item p{margin:0;line-height:1.7;color:#4b6674;font-size:15px}
.edt-home .navigation{margin:28px 0 0}
.edt-home .is-hidden-by-search{display:none!important}
@media(max-width:940px){.edt-home .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Normal leaderboards remain on mobile; fixed-size creatives are scaled inside their wrappers. */
@media(max-width:600px){.edt-home .edt-home-search,.edt-home .tool-section,.edt-home .content{padding:20px 17px;border-radius:15px}.edt-home .tool-grid{grid-template-columns:1fr}.edt-home .search-row{flex-direction:column}.edt-home .search-input,.edt-home .search-btn,.edt-home .clear-btn{width:100%;flex:auto}.edt-home .section-title{font-size:21px}}

/* Keep the directory accessible while searching, including zero-match searches.
   Only ads, promos and homepage explanatory content are hidden during filtering. */
.edt-home.is-searching .edt-home-directory > :not(.edt-home-search):not(.tool-section):not(.edt-home-network-directory){display:none!important}
.edt-home.is-searching .edt-home-directory > .tool-section.is-hidden-by-search{display:none!important}
.edt-home .edt-leaderboard-promo.edt-ad-728{width:min(728px,100%);max-width:100%;height:90px;border-radius:18px}
@media(max-width:600px){.edt-home .search-row{flex-direction:row}.edt-home .search-input{flex:1 1 180px;width:auto}.edt-home .clear-btn{flex:0 0 auto;width:auto}}

/* The footer should end the viewport even with zero search results, never float
   over an exposed strip of empty page background. Long pages still scroll normally. */
body.edt-modern-page.edt-home{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.edt-home main.edt-modern-shell{flex:1 0 auto}
.edt-home > .footer{flex-shrink:0;margin-top:0}
.edt-home.is-searching .edt-home-network-directory{display:block!important}

/* Search keeps the shared EDT directory AND its 728x90 leaderboard visible.
   Separate between-tool ads remain hidden by the existing home filter above. */
