/* Live directory cards and detail/listing pages (Phases B–D). */
.hero-mark{border-radius:10px}.tool-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.tool-card{min-width:0;min-height:72px;display:flex;align-items:center;gap:6px;padding:9px 10px;border:1px solid #eceef4;border-radius:10px;background:#fff;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.tool-card:hover{transform:translateY(-2px);border-color:#ded9ff;box-shadow:0 8px 20px rgba(32,36,58,.07)}.tool-card-main{min-width:0;flex:1;display:flex;align-items:center;gap:9px}.tool-icon{width:38px;height:38px;flex:none;border-radius:11px;object-fit:cover}.tool-card-copy{display:block;min-width:0}.tool-card-copy strong,.tool-card-copy small{display:block;overflow:hidden;text-overflow:ellipsis}.tool-card-copy strong{color:#32364c;font-size:11px;line-height:1.25;white-space:nowrap}.tool-card-copy small{margin-top:4px;color:#858a9b;font-size:9px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal}.tool-card-arrow{width:22px;height:22px;flex:none;display:grid;place-items:center;border-radius:7px;color:#8975df;background:#f4f1ff;font-size:12px}.category-preview{scroll-margin-top:82px}
.promo-placement{min-width:0;min-height:83px;position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:14px;padding:13px 16px;border-radius:11px;color:#fff;background:linear-gradient(105deg,#5149c7,#9a6be7 61%,#e5a4d8)}.promo-two{background:linear-gradient(105deg,#267e9a,#39b1a9 58%,#9bcf9d)}.promo-placement:after{content:"";position:absolute;z-index:-1;width:155px;height:155px;right:90px;top:-92px;border:1px solid rgba(255,255,255,.3);border-radius:50%;box-shadow:0 0 0 16px rgba(255,255,255,.07),0 0 0 32px rgba(255,255,255,.05)}.promo-label{position:absolute;top:8px;left:12px;padding:2px 5px;border-radius:4px;color:rgba(255,255,255,.9);background:rgba(27,25,71,.22);font-size:7px;font-weight:800;letter-spacing:.7px}.promo-art{width:38px;height:38px;flex:none;margin-top:8px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.4);border-radius:12px;background:rgba(255,255,255,.16);font-size:21px}.promo-copy{min-width:0;flex:1;margin-top:8px}.promo-copy strong,.promo-copy small{display:block}.promo-copy strong{font-size:12px}.promo-copy small{margin-top:3px;color:rgba(255,255,255,.82);font-size:9px}.promo-cta{margin-top:8px;padding:6px 9px;border:1px solid rgba(255,255,255,.45);border-radius:7px;font-size:9px;white-space:nowrap}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:9px;padding:18px 2px 14px;color:#9296a7;font-size:10px}.breadcrumbs a{color:#6b5bd1}.breadcrumbs span:last-child{color:#555b6e}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px;align-items:start}.tool-detail,.detail-sidebar{min-width:0}.detail-hero,.detail-panel,.detail-ad-wrap,.cross-promos{padding:19px;border:1px solid #eceef4;border-radius:13px;background:#fff}.detail-hero{display:flex;align-items:center;gap:15px}.detail-icon{width:70px;height:70px;flex:none;border-radius:18px}.detail-heading{min-width:0;flex:1}.detail-category{color:#7560d9;font-size:10px;font-weight:700}.detail-heading h1{margin:3px 0;color:#262a42;font-size:23px;letter-spacing:-.6px}.detail-heading p{margin:0;color:#858a9b;font-size:11px}.detail-visit{display:inline-flex;align-items:center;gap:12px;flex:none;padding:11px 14px;border-radius:9px;color:#fff;background:linear-gradient(110deg,#775ce8,#5279ee);font-size:10px;font-weight:700}.detail-visit span{font-size:14px}.affiliate-disclosure{margin:10px 0 0;padding:10px 12px;border:1px solid #f0dfbd;border-radius:8px;color:#795e2d;background:#fffaf0;font-size:10px}.detail-panel{margin-top:13px}.detail-panel h2,.cross-promos h2{margin:0 0 11px;color:#30344a;font-size:16px}.detail-prose{color:#666c80;font-size:12px;line-height:1.8}.detail-prose p{margin:0 0 12px}.detail-prose p:last-child{margin-bottom:0}.detail-prose ul{padding-left:19px}.detail-facts dl{margin:0}.detail-facts dl>div{display:grid;grid-template-columns:140px minmax(0,1fr);padding:9px 0;border-top:1px solid #f0f1f5;font-size:11px}.detail-facts dt{color:#898ea0}.detail-facts dd{min-width:0;margin:0;color:#41465d;overflow-wrap:anywhere}.detail-facts dd a{color:#6b55d8}
.detail-sidebar{display:grid;gap:13px}.detail-ad-wrap{padding:12px}.side-label{display:block;margin:0 0 9px 4px;color:#9398a9;font-size:8px;font-weight:800;letter-spacing:.7px}.detail-ad{min-height:170px;align-items:flex-end;flex-wrap:wrap;gap:7px;padding:16px;background:linear-gradient(145deg,#4547a8,#8b63d9 65%,#c887c8)}.detail-ad .promo-art{margin-top:22px}.detail-ad .promo-copy{flex-basis:calc(100% - 55px)}.detail-ad .promo-cta{margin:0 0 0 45px}.detail-ad .promo-copy small{line-height:1.5}.cross-promos{padding:15px}.cross-promos h2{font-size:14px}.cross-promo{display:grid;gap:4px;padding:11px 0;border-top:1px solid #f0f1f5}.cross-promo>span{color:#8371dc;font-size:7px;font-weight:800;letter-spacing:.6px}.cross-promo strong{color:#454a60;font-size:10px}.cross-promo small{color:#8a8fa0;font-size:9px;line-height:1.5}.cross-promo b{color:#6d56d7;font-size:9px}
.listing-heading{padding:31px 15px 24px;text-align:center;background:radial-gradient(ellipse at 50% 15%,rgba(127,101,245,.12),transparent 60%)}.listing-heading h1{margin:13px 0 5px;color:#262a42;font-size:30px;letter-spacing:-.8px}.listing-heading p{margin:0;color:#858a9b;font-size:12px}.archive-grid{padding:8px 0 24px}.pagination{padding:20px 0 30px;text-align:center;font-size:11px}.pagination .nav-links{display:flex;justify-content:center;gap:13px;align-items:center}.pagination a{color:#6853d3}.pagination .current{font-weight:700}.empty-state{color:#898ea0;font-size:11px}
@media(max-width:1250px){.tool-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:950px){.detail-layout{grid-template-columns:minmax(0,1fr) 240px;gap:12px}.detail-hero{flex-wrap:wrap}.detail-visit{margin-left:85px}}@media(max-width:700px){.tool-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tool-card{min-height:65px;padding:7px;gap:4px}.tool-icon{width:31px;height:31px;border-radius:9px}.tool-card-main{gap:7px}.tool-card-copy strong{font-size:10px}.tool-card-copy small{font-size:8px}.tool-card-arrow{width:19px;height:19px}.detail-layout{grid-template-columns:1fr}.detail-sidebar{grid-template-columns:1fr 1fr;align-items:start}.detail-hero{gap:11px;padding:14px}.detail-icon{width:54px;height:54px;border-radius:14px}.detail-heading h1{font-size:20px}.detail-heading p{font-size:10px}.detail-visit{margin-left:65px;padding:9px 11px}.detail-panel{padding:15px}.detail-ad-wrap,.cross-promos{padding:11px}.detail-ad{min-height:150px}.listing-heading{padding:25px 6px 20px}.listing-heading h1{font-size:25px}.archive-grid{padding-top:2px}.breadcrumbs{padding-top:12px}}@media(max-width:420px){.tool-card-grid{grid-template-columns:1fr}.tool-card{min-height:63px}.tool-card-copy small{-webkit-line-clamp:1}.detail-sidebar{grid-template-columns:1fr}.detail-hero{display:grid;grid-template-columns:55px 1fr}.detail-icon{grid-row:1}.detail-heading{grid-column:2;grid-row:1}.detail-visit{grid-column:1/-1;margin:0;justify-content:center}.promo-placement{gap:8px;padding:11px}.promo-copy strong{font-size:10px}.promo-copy small{font-size:8px}.promo-cta{font-size:8px;padding:5px 6px}}

/* The homepage follows the compact directory rhythm at each viewport. */
body.home .tool-card-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
@media(max-width:1250px){body.home .tool-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}}
@media(max-width:950px){body.home .tool-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}}
@media(max-width:620px){body.home .tool-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}}
@media(max-width:420px){body.home .tool-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep the left rail collapsible on desktop and dismissible on mobile. */
body.sidebar-collapsed{--sidebar-width:0px}
body.sidebar-collapsed .sidebar{width:220px;transform:translateX(-100%);visibility:hidden;pointer-events:none}
@media(max-width:950px){body.sidebar-open:before{content:"";position:fixed;inset:0;z-index:25;background:rgba(25,28,45,.32)}}
/* Structured archive V4 detail content */
.detail-site-preview{margin:22px 0;overflow:hidden;border:1px solid var(--line,#e7e9f2);border-radius:16px;background:#f8f9fd}
.detail-site-preview img{display:block;width:100%;max-height:420px;object-fit:cover;object-position:top}
.aih-v4-content-image{margin:24px 0;text-align:center}
.aih-v4-content-image img{max-width:100%;height:auto;border:1px solid var(--line,#e7e9f2);border-radius:12px}
.aih-v4-content-image figcaption{margin-top:8px;color:#737d98;font-size:.88rem}
.aih-v4-table-wrap{max-width:100%;overflow:auto;margin:18px 0}
.aih-v4-table-wrap table{width:100%;border-collapse:collapse;background:#fff}
.aih-v4-table-wrap td,.aih-v4-table-wrap th{padding:10px 12px;border:1px solid #e7e9f2;text-align:left;vertical-align:top}
.aih-v4-table-wrap tr:first-child{background:#f5f6fb;font-weight:650}
.aih-v4-faq{margin:12px 0;padding:14px 16px;border:1px solid #e7e9f2;border-radius:12px;background:#fff}
.aih-v4-faq summary{font-weight:650;cursor:pointer}
.aih-v4-faq div{padding-top:10px;color:#5e6884}
.detail-prose pre{max-width:100%;overflow:auto;padding:16px;border-radius:12px;background:#151a2b;color:#f4f5fa}
.detail-prose blockquote{margin:18px 0;padding:12px 18px;border-left:3px solid #7660f3;background:#f6f4ff;color:#4d5570}
.detail-prose hr{margin:24px 0;border:0;border-top:1px solid #e7e9f2}
.detail-visit.is-unverified{opacity:.7;cursor:default}

/* Category archive: keep the four-column desktop density while preserving readable tablet and phone layouts. */
body.tax-ai_tool_category .listing-heading{padding:18px 15px 14px}
body.tax-ai_tool_category .listing-heading h1{margin:9px 0 4px;font-size:28px}
body.tax-ai_tool_category .listing-heading p{max-width:780px;margin:0 auto;font-size:13px;line-height:1.5}
body.tax-ai_tool_category .tool-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
body.tax-ai_tool_category .tool-card{min-height:76px;gap:7px;padding:10px 12px}
body.tax-ai_tool_category .tool-card-main{gap:9px}
body.tax-ai_tool_category .tool-icon{width:36px;height:36px}
body.tax-ai_tool_category .tool-card-copy strong{font-size:13px;line-height:1.3}
body.tax-ai_tool_category .tool-card-copy small{margin-top:3px;font-size:11px;line-height:1.4}
@media(max-width:950px){body.tax-ai_tool_category .tool-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:951px) and (max-width:1100px){body.tax-ai_tool_category .tool-card{gap:5px;padding:8px}body.tax-ai_tool_category .tool-card-main{gap:7px}body.tax-ai_tool_category .tool-icon{width:32px;height:32px}body.tax-ai_tool_category .tool-card-copy strong{display:-webkit-box;font-size:12px;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical}body.tax-ai_tool_category .tool-card-copy small{font-size:10px}body.tax-ai_tool_category .tool-card-arrow{width:20px;height:20px}}
@media(max-width:700px){body.tax-ai_tool_category .listing-heading{padding:19px 6px 14px}body.tax-ai_tool_category .listing-heading h1{font-size:25px}body.tax-ai_tool_category .tool-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.tax-ai_tool_category .tool-card{min-height:70px;padding:9px}body.tax-ai_tool_category .tool-icon{width:33px;height:33px}body.tax-ai_tool_category .tool-card-copy strong{font-size:12px}body.tax-ai_tool_category .tool-card-copy small{font-size:10px}}
@media(max-width:420px){body.tax-ai_tool_category .tool-card-grid{grid-template-columns:1fr}body.tax-ai_tool_category .tool-card{min-height:68px;padding:10px 12px}body.tax-ai_tool_category .tool-icon{width:36px;height:36px}body.tax-ai_tool_category .tool-card-copy strong{font-size:14px}body.tax-ai_tool_category .tool-card-copy small{font-size:11px;-webkit-line-clamp:2}}

/* English tool detail refresh: authentic vendor captures, clear facts, responsive reading flow. */
.detail-content{max-width:1500px}
.detail-layout{grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.tool-detail{display:grid;gap:16px}
.detail-hero,.detail-panel,.detail-sidebar-card,.cross-promos{border:1px solid #e6e9f1;border-radius:16px;background:#fff;box-shadow:0 3px 14px rgba(33,41,75,.035)}
.detail-hero{min-height:128px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px}
.detail-identity{display:flex;align-items:center;gap:17px;min-width:0}
.detail-icon-wrap{width:72px;height:72px;display:grid;place-items:center;flex:none;border:1px solid #edf0f5;border-radius:18px;background:#fff}
.detail-icon{width:54px;height:54px;object-fit:contain;border-radius:12px}
.detail-category{display:inline-flex;align-items:center;min-height:22px;padding:3px 9px;border-radius:999px;background:#f0edff;color:#6e57d8;font-size:11px;font-weight:700;letter-spacing:.01em}
.detail-heading h1{margin:6px 0 5px;color:#22263b;font-size:30px;line-height:1.12;letter-spacing:-.8px}
.detail-heading p{max-width:700px;color:#6f7588;font-size:14px;line-height:1.55}
.detail-visit,.sidebar-visit{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:0 18px;border-radius:10px;color:#fff;background:linear-gradient(110deg,#7658e8,#5278ee);font-size:13px;font-weight:750;white-space:nowrap;box-shadow:0 5px 13px rgba(104,83,220,.18);transition:transform .16s ease,box-shadow .16s ease}
.detail-visit:hover,.sidebar-visit:hover{color:#fff;transform:translateY(-1px);box-shadow:0 8px 18px rgba(104,83,220,.24)}
.detail-visit span,.sidebar-visit span{font-size:16px}
.detail-visit.is-unverified{min-height:42px;color:#74798a;background:#f2f3f7;box-shadow:none;white-space:normal;text-align:center;cursor:default}
.affiliate-disclosure{margin:0;padding:12px 14px;border:1px solid #f0dfbd;border-radius:10px;color:#795e2d;background:#fffaf0;font-size:12px;line-height:1.55}
.product-preview-panel{overflow:hidden;border:1px solid #e6e9f1;border-radius:16px;background:#fff;box-shadow:0 3px 14px rgba(33,41,75,.035)}
.preview-section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;padding:18px 20px 14px}
.preview-kicker,.detail-panel-eyebrow{display:block;margin-bottom:5px;color:#7865d4;font-size:10px;font-weight:800;letter-spacing:.1em}
.preview-section-heading h2,.detail-panel h2,.sidebar-card-heading h2{margin:0;color:#292e44;font-size:19px;line-height:1.3;letter-spacing:-.25px}
.preview-source-link{display:inline-flex;gap:6px;align-items:center;flex:none;color:#6755d2;font-size:12px;font-weight:700}
.detail-site-preview{margin:0;overflow:hidden;border:0;border-top:1px solid #eff0f5;border-radius:0;background:#f5f6fb}
.preview-browser-bar{height:37px;display:flex;align-items:center;gap:14px;padding:0 13px;border-bottom:1px solid #e7e9f0;background:#fbfbfd}
.preview-browser-dots{display:flex;gap:5px;flex:none}
.preview-browser-dots i{width:8px;height:8px;border-radius:50%;background:#d8dbe4}
.preview-browser-dots i:first-child{background:#f28f8b}.preview-browser-dots i:nth-child(2){background:#f1c76d}.preview-browser-dots i:nth-child(3){background:#79c99d}
.preview-browser-address{min-width:0;max-width:68%;display:flex;align-items:center;gap:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 auto;padding:5px 12px;border:1px solid #e8eaf0;border-radius:7px;background:#fff;color:#626a7e;font-size:10px}
.preview-lock{color:#39a47c;font-size:11px;font-weight:800}
.preview-browser-label{flex:none;color:#9297a7;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.detail-site-preview img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:top center;background:#fff}
.detail-site-preview figcaption{display:flex;justify-content:space-between;gap:12px;padding:9px 13px;border-top:1px solid #eaecf2;background:#fbfbfd;color:#818698;font-size:10px;line-height:1.4}
.preview-unavailable{min-height:190px;display:flex;align-items:center;gap:16px;padding:25px;background:radial-gradient(ellipse at 10% 10%,rgba(121,99,225,.12),transparent 52%),#f8f8fc}
.preview-unavailable-icon{width:56px;height:56px;display:grid;place-items:center;flex:none;border-radius:15px;background:#fff;box-shadow:0 2px 10px rgba(33,41,75,.08)}
.preview-unavailable-icon img{width:36px;height:36px;object-fit:contain}
.preview-unavailable strong{color:#30354b;font-size:14px}
.preview-unavailable p{max-width:510px;margin:5px 0 0;color:#747a8d;font-size:12px;line-height:1.55}
.preview-unavailable>a{margin-left:auto;color:#6755d2;font-size:12px;font-weight:700;white-space:nowrap}
.detail-panel{margin:0;padding:22px 24px}
.detail-about h2{margin-bottom:13px}
.detail-prose{color:#596176;font-size:14px;line-height:1.8}
.detail-prose p{margin:0 0 14px}
.detail-prose p:last-child{margin-bottom:0}
.detail-prose h2,.detail-prose h3,.detail-prose h4{margin:22px 0 9px;color:#30354b;line-height:1.35}
.detail-prose h2{font-size:20px}.detail-prose h3{font-size:17px}.detail-prose h4{font-size:15px}
.detail-prose ul,.detail-prose ol{padding-left:22px;margin:8px 0 16px}
.detail-prose li{padding-left:3px;margin:5px 0}
.detail-prose a{color:#6755d2;text-decoration:underline;text-underline-offset:2px}
.detail-prose img{max-width:100%;height:auto}
.detail-prose table{font-size:12px}
.detail-panel .section-heading{align-items:end;margin-bottom:14px}
.detail-panel .section-heading p{margin:4px 0 0;color:#818698;font-size:12px}
.detail-related .tool-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.detail-sidebar{position:sticky;top:94px;display:grid;gap:14px;min-width:0}
.detail-sidebar-card{padding:19px}
.sidebar-card-heading{margin-bottom:14px}
.detail-facts-list{margin:0}
.detail-facts-list>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;padding:11px 0;border-top:1px solid #eff0f4;font-size:12px;line-height:1.45}
.detail-facts-list dt{color:#858a9a}
.detail-facts-list dd{min-width:0;margin:0;color:#41475d;font-weight:600;overflow-wrap:anywhere}
.detail-facts-list dd a{color:#6755d2}
.sidebar-visit{width:100%;margin-top:15px;font-size:12px}
.sidebar-review-note{margin-top:13px;padding:10px;border-radius:9px;background:#f6f5fc;color:#73788c;font-size:11px;line-height:1.5}
.cross-promos{padding:17px}
.cross-promos h2{margin:0 0 10px;color:#30354b;font-size:16px}
.cross-promo{gap:5px;padding:13px 0;border-top:1px solid #eff0f4}
.cross-promo>span{font-size:9px}.cross-promo strong{font-size:12px}.cross-promo small{font-size:11px;line-height:1.5}.cross-promo b{font-size:11px}
@media(max-width:1150px){.detail-layout{grid-template-columns:minmax(0,1fr)}.detail-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.detail-content{max-width:100%}}
@media(max-width:700px){.tool-detail{gap:12px}.detail-hero{align-items:flex-start;padding:16px}.detail-identity{gap:12px}.detail-icon-wrap{width:58px;height:58px;border-radius:15px}.detail-icon{width:42px;height:42px}.detail-heading h1{font-size:24px}.detail-heading p{font-size:12px}.detail-visit{min-height:42px;padding:0 12px;font-size:11px}.preview-section-heading{align-items:flex-start;padding:15px 14px 12px}.preview-section-heading h2,.detail-panel h2{font-size:17px}.preview-source-link{font-size:11px}.preview-browser-bar{height:32px;gap:9px;padding:0 9px}.preview-browser-address{max-width:70%;font-size:9px}.preview-browser-label{font-size:8px}.detail-site-preview figcaption{flex-direction:column;gap:3px;padding:8px 10px}.detail-panel{padding:17px}.detail-prose{font-size:13px}.detail-related .tool-card-grid{grid-template-columns:1fr}.detail-sidebar-card{padding:16px}.cross-promos{padding:15px}}
@media(max-width:480px){.detail-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.detail-identity{align-items:flex-start}.detail-icon-wrap{width:54px;height:54px}.detail-heading h1{font-size:23px}.detail-visit{width:100%;margin:0}.detail-sidebar{grid-template-columns:1fr}.preview-unavailable{align-items:flex-start;flex-wrap:wrap;padding:17px}.preview-unavailable>a{margin:0 0 0 72px}.detail-facts-list>div{grid-template-columns:90px minmax(0,1fr)}.breadcrumbs{font-size:11px}}

.tool-detail{grid-template-columns:minmax(0,1fr)}.tool-detail>*{min-width:0}
