/* Grouped All Tools directory; category detail pages retain their own catalog. */
.directory-hero { background: radial-gradient(ellipse at 87% 40%,#c0e6ff,transparent 48%),linear-gradient(115deg,#f0f9ff,#e6f5ff); border-bottom: 1px solid #dceeff; }
.directory-hero-inner { display: grid; grid-template-columns: minmax(0,1fr) 350px; align-items: center; gap: 40px; min-height: 205px; padding-block: 20px; }
.directory-hero-label { display: inline-flex; padding: 6px 12px; border: 1px solid #cce5ff; border-radius: 99px; color: #0066e9; background: #dcefff; font-size: .69rem; font-weight: 600; }
.directory-hero h1 { margin: 10px 0; color: #081344; font: 700 clamp(1.9rem,3vw,2.8rem)/1.12 var(--font-sans); letter-spacing: -.045em; }
.directory-hero h1 span { color: #0067ff; }
.directory-hero p { max-width: 740px; margin: 0; color: #344d77; font-size: .94rem; line-height: 1.6; }
.directory-hero img { width: 100%; height: 175px; object-fit: contain; }
.directory-page { padding: 14px 0 26px; background: linear-gradient(#fff,#fcfeff); }
.directory-category-tabs { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 0 0 16px; scrollbar-width: thin; }
.directory-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 0 auto; padding: 9px 13px; border: 1px solid #e6effb; border-radius: 99px; color: #334d7c; background: #f5f9ff; font-size: .73rem; font-weight: 500; white-space: nowrap; transition: background .15s,border-color .15s; }
.directory-tab > span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 5px; color: #0875ff; background: #e5f0ff; }
.directory-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.directory-tab:hover { border-color: #b1d4ff; background: #eaf4ff; }
.directory-tab.is-active { color: #fff; background: #066aff; border-color: #066aff; box-shadow: 0 3px 8px #0875ff1a; }
.directory-tab.is-active > span { color: #fff; background: transparent; }
.directory-columns { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 22px; }
.directory-content { min-width: 0; }
.directory-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.directory-results-toolbar > p { margin: 0; color: #526687; font-size: .8rem; }
.directory-search { display: flex; align-items: center; gap: 8px; width: 340px; padding: 5px 5px 5px 11px; border: 1px solid #dbe9fc; border-radius: 8px; background: #fff; }
.directory-search > svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: #0875ff; stroke-width: 1.8; }
.directory-search input { flex: 1; width: 0; min-width: 0; border: 0; padding: 5px 0; color: #081344; background: transparent; font-size: .8rem; }
.directory-search input::placeholder { color: #526687; }
.directory-search button { padding: 7px 11px; border: 0; border-radius: 5px; color: #fff; background: #0875ff; font-size: .75rem; font-weight: 500; }
.directory-search:focus-within { border-color: #0875ff; box-shadow: 0 0 0 3px #0875ff15; }
.directory-group { margin-bottom: 24px; scroll-margin-top: 90px; border: 1px solid #d9e6f7; border-radius: 12px; background: #f8fbff; overflow: hidden; }
.directory-group:last-child { margin-bottom: 0; }
.directory-group-header { display: flex; align-items: center; gap: 11px; margin: 0; padding: 12px 14px; border-bottom: 1px solid #d9e6f7; background: #eaf3ff; }
.directory-group-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; color: #0064d9; background: #d6e8ff; }
.directory-group-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.directory-group-header > div { min-width: 0; }
.directory-group-header h2 { margin: 0; color: #081344; font: 700 1.2rem/1.3 var(--font-sans); letter-spacing: -.02em; }
.directory-group-header p { margin: 3px 0 0; color: #526687; font-size: .76rem; line-height: 1.45; }
.directory-group-header > a { display: flex; gap: 9px; align-items: center; flex-shrink: 0; margin-left: auto; padding: 7px 10px; border: 1px solid #cbdffb; border-radius: 6px; color: #0060d9; background: #fff; font-size: .72rem; font-weight: 600; }
.directory-group-header > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.directory-group-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 12px; }
.directory-tool { display: grid; grid-template-columns: 43px minmax(0,1fr) 23px; align-items: center; gap: 10px; min-width: 0; padding: 12px 10px; border: 1px solid #dfeafb; border-radius: 10px; color: #081344; background: #fff; box-shadow: 0 3px 10px #3862a004; transition: border-color .15s,box-shadow .15s; }
.directory-tool:hover { border-color: #8dbdff; box-shadow: 0 5px 14px #0875ff12; }
.directory-tool-icon { display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 46px; border-radius: 9px; color: #fff; background: linear-gradient(135deg,#ff6e7e,#ff244f); box-shadow: inset 1px 1px 2px #ffffff60; }
.directory-tool-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.directory-tool-copy { min-width: 0; }
.directory-tool h3 { margin: 0 0 5px; color: #081344; font: 600 .84rem/1.35 var(--font-sans); letter-spacing: -.015em; }
.directory-tool p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: #526687; font-size: .75rem; line-height: 1.45; }
.directory-tool-arrow { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #0875ff; background: #edf5ff; font-size: 1rem; }
.directory-tool:nth-child(6n+2) .directory-tool-icon { background: linear-gradient(135deg,#35c5ff,#0066ff); }
.directory-tool:nth-child(6n+3) .directory-tool-icon { background: linear-gradient(135deg,#ba78ff,#7c25fa); }
.directory-tool:nth-child(6n+4) .directory-tool-icon { background: linear-gradient(135deg,#ff76cb,#ff168f); }
.directory-tool:nth-child(6n+5) .directory-tool-icon { background: linear-gradient(135deg,#00e79e,#00a779); }
.directory-tool:nth-child(6n+6) .directory-tool-icon { background: linear-gradient(135deg,#ffb455,#ff7019); }


.directory-right-sidebar { display: grid; gap: 14px; }
.directory-right-sidebar h2 { margin: 0; color: #081344; font: 600 .94rem/1.4 var(--font-sans); letter-spacing: -.015em; }
.directory-why { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px; border: 1px solid #d5e8ff; border-radius: 12px; background: radial-gradient(ellipse at 110% 100%,#c1d9ff,transparent 40%),linear-gradient(120deg,#e5f3ff,#f0f8ff); }
.directory-why-icon { display: grid; place-items: center; flex-shrink: 0; width: 33px; height: 35px; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#5bbcff,#1765ff); }
.directory-why-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.directory-why ul { display: grid; gap: 8px; padding: 0; margin: 13px 0 10px; list-style: none; }
.directory-why li { display: flex; gap: 9px; color: #294873; font-size: .79rem; }
.directory-why li::before { content: "✓"; color: #0875ff; font-weight: 700; }
.directory-why p { margin: 0; color: #526687; font-size: .72rem; line-height: 1.5; }
.directory-popular { padding: 12px 14px 5px; border: 1px solid #dbe9fc; border-radius: 11px; background: #fff; }
.directory-popular h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.directory-popular h2 > span { color: #0875ff; font-size: 1.2rem; }
.directory-popular > a { display: grid; grid-template-columns: 31px minmax(0,1fr) 10px; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #eaf1fb; }
.directory-popular > a:hover strong { color: #0875ff; }
.directory-mini-icon { display: grid; place-items: center; width: 31px; height: 33px; border-radius: 7px; color: #fff; background: linear-gradient(135deg,#ff637e,#ff254d); }
.directory-mini-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.directory-popular a:nth-of-type(2) .directory-mini-icon { background: linear-gradient(135deg,#b67bff,#7926f6); }
.directory-popular a:nth-of-type(3) .directory-mini-icon { background: linear-gradient(135deg,#00e79e,#00a779); }
.directory-popular a:nth-of-type(4) .directory-mini-icon { background: linear-gradient(135deg,#ffb455,#ff7019); }
.directory-popular a:nth-of-type(5) .directory-mini-icon { background: linear-gradient(135deg,#35c5ff,#0066ff); }
.directory-popular strong { display: block; color: #142a52; font-size: .77rem; font-weight: 500; line-height: 1.4; }
.directory-popular small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; color: #526687; font-size: .7rem; line-height: 1.5; }
.directory-popular b { color: #0875ff; font-size: 1.2rem; font-weight: 400; }
.directory-help { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px; border-radius: 11px; background: linear-gradient(120deg,#00a4ff,#3674ff); }
.directory-help-spark { display: grid; place-items: center; flex-shrink: 0; width: 33px; height: 35px; border-radius: 50%; background: #55d66c; color: #fff; font-size: 1.7rem; }
.directory-help h2 { color: #fff; font-size: .9rem; }
.directory-help p { margin: 8px 0 14px; color: #fff; font-size: .76rem; line-height: 1.6; }
.directory-help a { display: inline-flex; align-items: center; gap: 14px; padding: 9px 12px; border: 1px solid #a9d4ff; border-radius: 99px; color: #fff; font-size: .72rem; font-weight: 500; }
.directory-help a:hover { background: #ffffff20; }
.directory-no-results { padding: 30px; border: 1px dashed #c8ddfa; border-radius: 12px; background: #f7fbff; }
.directory-no-results h2 { margin: 0 0 9px; color: #081344; font-size: 1.1rem; }
.directory-no-results p { color: #526687; font-size: .9rem; }.directory-no-results a { color: #0066eb; font-size: .85rem; }
@media (max-width:1250px) { .directory-columns { grid-template-columns: minmax(0,1fr) 270px; gap: 18px; }.directory-group-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.directory-hero-inner { grid-template-columns: minmax(0,1fr) 280px; }.directory-hero p { font-size: .88rem; } }
@media (max-width:1000px) { .directory-group-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.directory-results-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }.directory-search { width: 100%; }.directory-columns { grid-template-columns: minmax(0,1fr) 250px; gap: 16px; }.directory-hero-inner { gap: 20px; }.directory-hero h1 { font-size: 2rem; } }
@media (max-width:760px) { .directory-hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-block: 24px; }.directory-hero img { display: none; }.directory-hero h1 { font-size: clamp(1.8rem,5.5vw,2.2rem); }.directory-hero p { font-size: .85rem; }.directory-hero p br { display: none; }.directory-columns { grid-template-columns: 1fr; }.directory-right-sidebar { grid-template-columns: 1fr 1fr; margin-top: 6px; }.directory-help { grid-column: 1 / -1; }.directory-tab { padding: 8px 12px; }.directory-group-header p { font-size: .74rem; }.directory-group-header > a { font-size: .69rem; }.directory-group-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:480px) { .directory-group-grid,.directory-right-sidebar { grid-template-columns: 1fr; }.directory-tool { grid-template-columns: 43px minmax(0,1fr) 26px; padding: 12px; }.directory-tool h3 { font-size: .9rem; }.directory-tool p { font-size: .8rem; }.directory-group-header { gap: 9px; }.directory-group-header h2 { font-size: 1.08rem; }.directory-group-header p { max-width: 240px; }.directory-group-header > a { gap: 4px; }.directory-why li { font-size: .85rem; } }
@media (prefers-reduced-motion:reduce) { .directory-tool,.directory-tab { transition: none; } }
