/*
Theme Name: AITooling.io Knowledge Hub Stable
Theme URI: https://aitooling.io/
Author: You
Author URI: https://aitooling.io/
Description: Production AITooling.io Knowledge Hub theme with forced homepage template routing and isolated theme identity to avoid active-version confusion.
Version: 1.0.26-discovery-hubs-advisor-spacing
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aitoolingio-knowledge-hub-stable
*/
:root{
  --blue:#1D4ED8; --sky:#60A5FA; --off:#F9FAFB; --charcoal:#111827; --gray:#6B7280;
  --radius:1.25rem;
}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--off);color:var(--charcoal);}
a{color:var(--blue);text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 1rem}
.btn{display:inline-block;background:linear-gradient(135deg,var(--blue),var(--sky));color:white;padding:.75rem 1rem;border-radius:calc(var(--radius) - .25rem);box-shadow:0 10px 30px rgba(29,78,216,.25)}
.card{background:white;border-radius:var(--radius);box-shadow:0 8px 24px rgba(17,24,39,.08);padding:1rem}
.badge{display:inline-block;background:#EEF2FF;color:#3730A3;padding:.25rem .5rem;border-radius:.75rem;font-size:.75rem;margin-right:.25rem}
.grid{display:grid;gap:1rem}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hero{padding:4rem 0;background:radial-gradient(1200px 600px at 80% -10%,rgba(29,78,216,.25),transparent),radial-gradient(1200px 600px at 20% -10%,rgba(96,165,250,.25),transparent)}
.footer{margin-top:3rem;padding:2rem 0;color:#374151}
input[type="search"], input[type="text"], select{border:1px solid #E5E7EB;border-radius:.75rem;padding:.6rem .8rem;width:100%}
.table{width:100%;border-collapse:separate;border-spacing:0}
.table th,.table td{padding:.75rem;border-bottom:1px solid #E5E7EB;text-align:left}
.alert{background:#F0F9FF;border:1px solid #BAE6FD;padding:1rem;border-radius:.75rem}
.sr{position:absolute;left:-9999px}


/* v1.0.4: Mobile outline + homepage discovery improvements */
.site-header{background:rgba(249,250,251,.96);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid #E5E7EB;position:sticky;top:0;z-index:50}
.site-header .menu{display:flex;align-items:center;gap:1rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.site-header .menu a{display:block;padding:.45rem .15rem;color:#111827;font-weight:600}
.site-main{min-width:0}.site-main img,.site-main table{max-width:100%}.site-main table{display:block;overflow-x:auto;white-space:nowrap}.card{min-width:0}.card p,.card h2,.card h3{overflow-wrap:anywhere}.btn{font-weight:700}.btn:hover,.card:hover{transform:translateY(-1px)}
.ait-home-section{margin:2.5rem 0}.ait-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.ait-muted{color:#6B7280}.ait-pill-grid{display:flex;flex-wrap:wrap;gap:.65rem}.ait-pill{display:inline-flex;align-items:center;padding:.55rem .75rem;background:#fff;border:1px solid #E5E7EB;border-radius:999px;font-weight:650;color:#111827}.ait-pill:hover{border-color:#93C5FD;box-shadow:0 8px 22px rgba(29,78,216,.10)}.ait-post-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.ait-post-card{display:block;background:#fff;border:1px solid #E5E7EB;border-radius:1rem;padding:1rem;color:#111827;box-shadow:0 8px 24px rgba(17,24,39,.06)}.ait-post-card span{display:block;color:#6B7280;font-size:.9rem;margin-top:.35rem}.ait-nav-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.ait-nav-card{background:#fff;border:1px solid #E5E7EB;border-radius:1rem;padding:1rem;color:#111827}.ait-nav-card strong{display:block;margin-bottom:.25rem}.ait-home-hero-actions{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1rem}.ait-mobile-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}

@media (max-width: 900px){
  .container{padding:0 .9rem}.grid-3,.grid-2,.ait-post-list,.ait-nav-grid{grid-template-columns:1fr!important}.hero{padding:2.25rem 0}.hero h1{font-size:2rem!important}.site-header .container{align-items:flex-start!important}.site-nav{width:100%;justify-content:flex-start!important;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:.25rem}.site-header .menu{flex-wrap:nowrap;white-space:nowrap;gap:.85rem}.site-header-widgets{display:none!important}.btn{width:auto;max-width:100%;text-align:center}.table th,.table td{padding:.65rem;min-width:130px}body{overflow-x:hidden}.site-main{padding-top:.25rem}
}
@media (max-width: 560px){
  .hero h1{font-size:1.75rem!important;line-height:1.15!important}.hero p{font-size:1rem!important}.card{padding:.9rem}.ait-section-head{align-items:flex-start}.ait-section-head .btn{width:100%}.ait-home-hero-actions .btn{width:100%}.site-logo img,.custom-logo{max-width:180px;height:auto}.site-header .container{gap:.7rem!important;padding-top:.75rem!important;padding-bottom:.75rem!important}.site-header .menu a{padding:.35rem 0;font-size:.95rem}.ait-pill{width:100%;justify-content:space-between;border-radius:.85rem}.ait-post-card,.ait-nav-card{padding:.9rem}
}


/* v1.0.5 production responsive hardening */
*,*::before,*::after{box-sizing:border-box}html{overflow-x:hidden;-webkit-text-size-adjust:100%}body{margin:0;overflow-x:hidden}img,svg,video,canvas,iframe{max-width:100%;height:auto}iframe{display:block}pre,code,kbd,samp{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}p,li,dd,figcaption,blockquote,h1,h2,h3,h4,h5,h6,a,span,strong,td,th{overflow-wrap:anywhere}figure{margin-left:0;margin-right:0;max-width:100%}.site-main{width:100%;max-width:1200px;margin-inline:auto}.site-main>main{margin-left:calc(-1 * min(1rem, 4vw));margin-right:calc(-1 * min(1rem, 4vw))}.site-main>main>.container{max-width:1200px;margin-inline:auto;padding-inline:1rem}.single-layout,.tool-layout,.comparison-layout,.archive-layout{min-width:0}.single-main,.single-sidebar,article,.entry-content,.single-content,.tool-content,.comparison-content{min-width:0;max-width:100%}.single-content table,.entry-content table,.tool-content table,.comparison-content table,.feature-matrix,.evidence-table,.comparison-table{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-collapse:separate;white-space:normal}.single-content th,.single-content td,.entry-content th,.entry-content td,.tool-content th,.tool-content td,.comparison-content th,.comparison-content td{min-width:140px;vertical-align:top}.btn,button,input[type="submit"],.button{min-height:44px;touch-action:manipulation;display:inline-flex;align-items:center;justify-content:center;white-space:normal;line-height:1.2}.site-header{overflow-x:clip}.site-branding,.site-nav,.site-header .menu{min-width:0}.site-nav{max-width:100%}.site-header .menu a{white-space:nowrap}.card,.ait-post-card,.ait-nav-card{overflow:hidden}.sticky,.is-sticky,[style*="position:sticky"]{max-width:100%}

@media (max-width:1024px){.single-layout,[style*="grid-template-columns:minmax(0,3fr)"],[style*="grid-template-columns: minmax(0,3fr)"]{grid-template-columns:1fr!important}.single-sidebar{order:2}.container{max-width:100%}.site-main{padding-inline:.9rem}.site-main>main{margin-inline:-.9rem}.site-main>main>.container{padding-inline:.9rem}}
@media (max-width:768px){h1{font-size:clamp(1.75rem,8vw,2.35rem)!important;line-height:1.12!important}h2{font-size:clamp(1.35rem,6vw,1.8rem)!important;line-height:1.18!important}h3{font-size:clamp(1.05rem,4.8vw,1.35rem)!important}.hero{padding:2rem 0!important}.footer .grid,.grid-3,.grid-2{grid-template-columns:1fr!important}.site-header .container{padding-inline:.9rem!important}.site-nav{overflow-x:auto;scrollbar-width:none}.site-nav::-webkit-scrollbar{display:none}.table th,.table td,td,th{font-size:.95rem}.single-post,[class*="card"]{border-radius:.9rem!important}}
@media (max-width:480px){.container,.site-main{padding-inline:.75rem}.site-main>main{margin-inline:-.75rem}.site-main>main>.container{padding-inline:.75rem}.card,.single-post{padding:1rem!important}.btn,button,input[type="submit"],.button{width:100%;max-width:100%;padding:.8rem .9rem}.ait-section-head .btn{width:100%}.footer-bottom{align-items:flex-start!important}.site-logo img,.custom-logo{max-width:160px}.site-header .menu{gap:.75rem}.site-header .menu a{font-size:.92rem}.hero form{max-width:100%!important}}
@media (max-width:360px){.container,.site-main{padding-inline:.65rem}.site-main>main{margin-inline:-.65rem}.site-main>main>.container{padding-inline:.65rem}body{font-size:15px}.card,.single-post{padding:.85rem!important}.badge{margin-bottom:.25rem}.table th,.table td,td,th{min-width:120px;padding:.55rem!important}}

/* v1.0.6: homepage knowledge-graph and small-mobile tool-page polish */
.ait-home-section .ait-nav-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ait-home-section .ait-nav-card{display:block;min-height:100%;transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}
.ait-home-section .ait-nav-card:hover{border-color:#93C5FD;box-shadow:0 14px 30px rgba(29,78,216,.12);transform:translateY(-1px)}
.ait-home-section .ait-nav-card span{display:block;line-height:1.45}
.ait-home-section .ait-post-card{min-height:100%;line-height:1.35}
.ait-home-section .ait-pill{line-height:1.25}
.ai-tool{isolation:isolate}
.ai-tool .ai-card{overflow:clip}
.ai-tool .ai-video-wrap{max-width:100%}
.ai-tool .ai-table-wrap{max-width:100%}

@media (max-width:900px){
  .ait-home-section .ait-nav-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:640px){
  .ait-home-section .ait-nav-grid{grid-template-columns:1fr!important}
  .ait-home-section{margin:2rem 0}
  .ait-home-section .ait-post-list{gap:.85rem}
  .ait-home-section .ait-nav-card,.ait-home-section .ait-post-card{border-radius:.95rem}
  .search-form input[type="search"]{font-size:16px}
}
@media (max-width:380px){
  .ait-home-section .ait-pill{font-size:.92rem;padding:.55rem .65rem}
}

/* v1.0.7: Homepage Knowledge Hub + mobile UX hardening */
.ait-kg-home{max-width:none}.ait-kg-home .container{max-width:1200px}.ait-kg-eyebrow{display:inline-flex;align-items:center;gap:.35rem;font-size:.82rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:#1D4ED8;background:#EEF2FF;border:1px solid #DBEAFE;border-radius:999px;padding:.35rem .65rem;margin-bottom:.85rem}.ait-kg-hero{padding:3.5rem 0 2.25rem!important}.ait-kg-hero-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.55fr);gap:1.5rem;align-items:center}.ait-kg-hero h1{font-size:clamp(2.1rem,5vw,4.25rem)!important;line-height:1.02!important;letter-spacing:-.045em;max-width:920px;margin:0 0 .9rem}.ait-kg-lead{font-size:clamp(1rem,2vw,1.18rem);color:#374151;max-width:820px;line-height:1.62;margin:0 0 1.1rem}.ait-kg-search{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem;max-width:800px}.ait-kg-search input[type="search"]{min-height:54px;background:#fff;border-color:#D1D5DB;font-size:1rem;padding:0 1rem}.ait-kg-search .btn{border:0;cursor:pointer}.ait-btn-secondary{background:#fff;color:#1D4ED8;border:1px solid #BFDBFE;box-shadow:0 8px 24px rgba(17,24,39,.06)}.ait-kg-popular{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin-top:.75rem;color:#6B7280;font-size:.93rem}.ait-kg-popular a{display:inline-flex;background:#fff;border:1px solid #E5E7EB;border-radius:999px;padding:.35rem .55rem;color:#111827;font-weight:650}.ait-kg-suggest{display:none;position:absolute;z-index:30;top:calc(100% + .35rem);left:0;right:92px;background:#fff;border:1px solid #E5E7EB;border-radius:1rem;box-shadow:0 20px 45px rgba(17,24,39,.16);overflow:hidden}.ait-kg-suggest.is-active{display:block}.ait-kg-suggest a{display:flex;justify-content:space-between;gap:.75rem;padding:.7rem .85rem;color:#111827;border-bottom:1px solid #F3F4F6}.ait-kg-suggest a:last-child{border-bottom:0}.ait-kg-suggest small{color:#6B7280;white-space:nowrap}.ait-kg-snapshot{background:rgba(255,255,255,.86);border:1px solid #DBEAFE;border-radius:1.35rem;padding:1rem;box-shadow:0 18px 50px rgba(29,78,216,.12);display:grid;gap:.75rem}.ait-kg-snapshot strong{font-size:1.05rem}.ait-kg-snapshot div,.ait-kg-snapshot a{display:flex;justify-content:space-between;align-items:center;gap:.75rem;background:#fff;border:1px solid #EEF2FF;border-radius:.9rem;padding:.7rem .8rem;text-decoration:none;color:inherit;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.ait-kg-snapshot span{font-size:1.25rem;font-weight:900;color:#111827}.ait-kg-snapshot small{color:#6B7280;font-weight:700;text-align:right}.ait-kg-snapshot a:hover{border-color:#93C5FD;box-shadow:0 10px 24px rgba(29,78,216,.10);transform:translateY(-1px)}.ait-kg-update-strip{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;background:#fff;border:1px solid #E5E7EB;border-radius:1rem;padding:.85rem 1rem;box-shadow:0 8px 24px rgba(17,24,39,.05)}.ait-kg-update-strip strong{margin-right:auto}.ait-kg-update-strip span,.ait-kg-update-strip a.ait-metric-link{display:inline-flex;border:1px solid #E5E7EB;border-radius:999px;padding:.35rem .6rem;color:#374151;background:#F9FAFB;font-weight:650;text-decoration:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease}.ait-kg-grid{display:grid;gap:1rem}.ait-kg-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.ait-kg-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ait-kg-card{display:flex;flex-direction:column;gap:.45rem;min-width:0;min-height:100%;background:#fff;border:1px solid #E5E7EB;border-radius:1rem;padding:1rem;color:#111827;box-shadow:0 8px 24px rgba(17,24,39,.055);transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}.ait-kg-card:hover,.ait-kg-collection:hover,.ait-kg-post-card:hover{border-color:#93C5FD;box-shadow:0 16px 36px rgba(29,78,216,.12);transform:translateY(-1px)}.ait-kg-icon{display:inline-flex;align-items:center;justify-content:center;width:2.35rem;height:2.35rem;border-radius:.8rem;background:#EEF2FF;color:#1D4ED8}.ait-kg-icon svg{width:1.15rem;height:1.15rem}.ait-kg-card-title{font-size:1.05rem;font-weight:900;line-height:1.25}.ait-kg-card-kicker{font-size:.78rem;font-weight:800;color:#1D4ED8;text-transform:uppercase;letter-spacing:.025em}.ait-kg-card-desc{color:#6B7280;line-height:1.45;font-size:.94rem}.ait-kg-meta{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:auto;padding-top:.35rem}.ait-kg-meta span{font-size:.78rem;font-weight:750;color:#374151;background:#F9FAFB;border:1px solid #E5E7EB;border-radius:999px;padding:.28rem .45rem}.ait-kg-collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.ait-kg-collection{display:block;background:#fff;border:1px solid #E5E7EB;border-radius:1rem;padding:1rem;color:#111827;box-shadow:0 8px 24px rgba(17,24,39,.055)}.ait-kg-collection span,.ait-kg-collection small{display:block;color:#6B7280}.ait-kg-collection strong{display:block;font-size:1.1rem;margin:.2rem 0}.ait-kg-tabs-grid{display:grid;grid-template-columns:1fr;gap:1.25rem}.ait-kg-tabs-grid>div{min-width:0}.ait-kg-tabs-grid h3{margin:.2rem 0 .75rem}.ait-kg-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.ait-kg-post-card{display:flex;flex-direction:column;gap:.35rem;min-width:0;background:#fff;border:1px solid #E5E7EB;border-radius:1rem;padding:1rem;color:#111827;box-shadow:0 8px 24px rgba(17,24,39,.055)}.ait-kg-post-card strong{line-height:1.3}.ait-kg-post-card span:last-child{color:#6B7280;line-height:1.45;font-size:.92rem}.ait-kg-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.ait-kg-two-col .ait-kg-post-grid{grid-template-columns:1fr}.ait-kg-advisor-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:linear-gradient(135deg,#fff,#EFF6FF);border:1px solid #BFDBFE;border-radius:1.25rem;padding:1.25rem;box-shadow:0 18px 50px rgba(29,78,216,.10)}.ait-kg-advisor-card h2{margin:.2rem 0 .35rem}.ait-kg-graph{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.ait-kg-graph span{position:relative;display:inline-flex;align-items:center;background:#fff;border:1px solid #DBEAFE;color:#111827;border-radius:999px;padding:.65rem .85rem;font-weight:850;box-shadow:0 8px 24px rgba(17,24,39,.05)}.ait-kg-graph span:not(:last-child)::after{content:'→';position:relative;margin-left:.75rem;color:#60A5FA}.ait-kg-text-block{max-width:920px;background:#fff;border:1px solid #E5E7EB;border-radius:1rem;padding:1.2rem;line-height:1.65;color:#4B5563}.ait-kg-text-block h2{color:#111827;margin-top:0}.ait-kg-home .tools-grid,.ait-kg-home [class*="tools-grid"]{min-width:0}.ait-kg-home [class*="tool-card"],.ait-kg-home .card{min-width:0}.ait-kg-home a:focus-visible,.site-main a:focus-visible,.site-main button:focus-visible,.site-main input:focus-visible{outline:3px solid #93C5FD;outline-offset:3px}.ai-tool,.single-tool,.tool-content{overflow-x:clip}.ai-tool .ai-card,.ai-tool section,.single-tool .card,.tool-content .card{min-width:0}.ai-tool .ai-card *,.tool-content *{max-width:100%}.ai-video-wrap{position:relative;aspect-ratio:16/9;width:100%;overflow:hidden;border-radius:1rem;background:#111827}.ai-video-wrap iframe{position:absolute;inset:0;width:100%;height:100%}.ai-table-wrap, .tool-content table, .ai-tool table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:normal}.ai-tool .badge,.ai-tool .chip,.ai-tool [class*="chip"],.ai-tool [class*="tag"]{white-space:normal;overflow-wrap:anywhere}.ai-tool .btn,.single-tool .btn{max-width:100%;white-space:normal}.ai-tool pre,.ai-tool code{max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}
@media (max-width:1100px){.ait-kg-grid-4,.ait-kg-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ait-kg-hero-grid{grid-template-columns:1fr}.ait-kg-snapshot{grid-template-columns:repeat(2,minmax(0,1fr))}.ait-kg-snapshot strong{grid-column:1/-1}}
@media (max-width:900px){.ait-kg-grid-4,.ait-kg-grid-3,.ait-kg-collection-grid,.ait-kg-post-grid,.ait-kg-two-col{grid-template-columns:1fr 1fr}.ait-kg-advisor-card{align-items:flex-start;flex-direction:column}.ait-kg-advisor-card .btn{width:auto}.ait-kg-suggest{right:0}.ait-kg-search{grid-template-columns:1fr}}
@media (max-width:640px){.ait-kg-hero{padding:2rem 0 1.25rem!important}.ait-kg-grid-4,.ait-kg-grid-3,.ait-kg-collection-grid,.ait-kg-post-grid,.ait-kg-two-col,.ait-kg-snapshot{grid-template-columns:1fr}.ait-kg-card,.ait-kg-post-card,.ait-kg-collection{padding:.9rem;border-radius:.95rem}.ait-kg-search{gap:.5rem}.ait-kg-search .btn{width:100%}.ait-kg-suggest{position:static;margin-top:.5rem}.ait-kg-update-strip{align-items:flex-start;flex-direction:column}.ait-kg-update-strip strong{margin-right:0}.ait-kg-update-strip span,.ait-kg-update-strip a.ait-metric-link{width:100%;justify-content:space-between}.ait-kg-graph{display:grid;grid-template-columns:1fr;gap:.5rem}.ait-kg-graph span{justify-content:center;border-radius:.85rem}.ait-kg-graph span:not(:last-child)::after{content:'↓';margin-left:.5rem}.ait-kg-home .ait-section-head .btn,.ait-kg-advisor-card .btn{width:100%}}
@media (max-width:380px){.ait-kg-hero h1{font-size:1.9rem!important}.ait-kg-card-title{font-size:1rem}.ait-kg-meta span{font-size:.74rem}.ait-kg-popular a{width:100%;justify-content:space-between}.ait-kg-snapshot div,.ait-kg-snapshot a{padding:.65rem}.ait-kg-icon{width:2.1rem;height:2.1rem}.ait-kg-text-block{padding:.95rem}}


/* v1.0.9: homepage CTA order + small-screen tool page visibility hardening */
.ait-section-footer{display:flex;justify-content:flex-start;margin-top:1rem}
.ait-section-footer .btn{max-width:100%}
.single-tool .site-main,.post-type-tool .site-main,.ai-tool{max-width:100%;overflow-x:clip}
.ai-tool{contain:layout paint;min-width:0}
.ai-tool .ai-grid,.ai-tool .ai-grid-2,.ai-tool .ai-card,.ai-tool section{min-width:0;max-width:100%}
.ai-tool h1,.ai-tool h2,.ai-tool h3,.ai-tool p,.ai-tool li,.ai-tool a,.ai-tool span,.ai-tool strong{overflow-wrap:anywhere;word-break:normal}
.ai-tool img,.ai-tool svg,.ai-tool iframe,.ai-tool video{max-width:100%;height:auto}
.ai-tool .ai-inline,.ai-tool .ai-toc,.ai-tool .ai-comparison-card-list{max-width:100%;min-width:0}
.ai-tool .ai-chip,.ai-tool [class*="chip"],.ai-tool [class*="tag"],.ai-tool .badge{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.ai-tool .ai-btn,.ai-tool .ai-btn2,.ai-tool .ai-btn3,.ai-tool .btn{min-width:0;max-width:100%;white-space:normal;text-align:center}
.ai-tool table,.ai-tool .ai-table,.ai-tool .table{width:100%;max-width:100%}
.ai-tool .ai-table-wrap,.ai-tool .table-wrap,.ai-tool [class*="table"]{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.ai-tool pre,.ai-tool code{max-width:100%;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.ai-tool .ai-video-wrap{width:100%;max-width:100%;aspect-ratio:16/9;padding-bottom:0;height:auto}
.ai-tool .ai-video-wrap iframe{position:absolute;inset:0;width:100%;height:100%}
@media (max-width:640px){
  .ait-section-footer .btn{width:100%}
  .ai-tool{padding-left:max(.625rem,env(safe-area-inset-left));padding-right:max(.625rem,env(safe-area-inset-right));margin-left:auto;margin-right:auto}
  .ai-tool .ai-grid{gap:.85rem}
  .ai-tool .ai-card{padding:.9rem;border-radius:.95rem}
  .ai-tool .ai-h1{font-size:clamp(1.45rem,7.5vw,1.85rem)!important;line-height:1.1!important}
  .ai-tool .ai-sub{font-size:.98rem;line-height:1.45}
  .ai-tool .ai-logo{max-width:100%;width:100%}
  .ai-tool .ai-inline{display:grid;grid-template-columns:1fr;gap:.45rem}
  .ai-tool .ai-chip{width:100%;justify-content:flex-start}
  .ai-tool .ai-comparison-card{display:block;width:100%}
  .ai-tool .ai-table,.ai-tool table{min-width:0!important}
}
@media (max-width:360px){
  .ai-tool{padding-left:.5rem;padding-right:.5rem}
  .ai-tool .ai-card{padding:.8rem}
  .ai-tool .ai-h1{font-size:1.38rem!important}
  .ai-tool .ai-btn,.ai-tool .ai-btn2,.ai-tool .ai-btn3{width:100%;padding:.68rem .75rem;font-size:.92rem}
}


/* v1.0.10: restore floating Visit Website CTA on mobile tool pages */
@media (max-width:980px){
  .single-tool .ai-fab,.post-type-tool .ai-fab,.ai-tool .ai-fab{display:flex;position:fixed;z-index:9999}
}
@media (max-width:640px){
  .single-tool .ai-fab,.post-type-tool .ai-fab,.ai-tool .ai-fab{left:.75rem;right:.75rem;bottom:calc(.75rem + env(safe-area-inset-bottom));max-width:none}
  .single-tool .ai-fab .ai-btn,.single-tool .ai-fab .ai-btn2,.single-tool .ai-fab .ai-btn3{width:100%;box-shadow:0 8px 22px rgba(17,24,39,.18)}
  body.single-tool{padding-bottom:6rem}
}


/* v1.0.12: production mobile CTA portal + clickable homepage metric links */
@media (max-width:980px){
  body.single-tool .ai-fab,
  body.post-type-tool .ai-fab,
  body .ai-fab.ait-mobile-fab{
    display:flex!important;
    position:fixed!important;
    z-index:2147483000!important;
    left:max(.75rem,env(safe-area-inset-left))!important;
    right:max(.75rem,env(safe-area-inset-right))!important;
    bottom:calc(.75rem + env(safe-area-inset-bottom))!important;
    max-width:none!important;
    width:auto!important;
    flex-direction:column;
    gap:.5rem;
    pointer-events:auto;
    transform:none!important;
    contain:none!important;
    clip-path:none!important;
    overflow:visible!important;
  }
  body.single-tool .ai-fab .ai-btn,
  body.single-tool .ai-fab .ai-btn2,
  body.single-tool .ai-fab .ai-btn3,
  body .ai-fab.ait-mobile-fab .ai-btn,
  body .ai-fab.ait-mobile-fab .ai-btn2,
  body .ai-fab.ait-mobile-fab .ai-btn3{
    width:100%!important;
    min-height:48px;
    justify-content:center;
    box-shadow:0 12px 28px rgba(17,24,39,.22);
  }
  body.ait-has-mobile-tool-cta{
    padding-bottom:calc(6.25rem + env(safe-area-inset-bottom));
  }
}
@media (min-width:981px){
  body .ai-fab.ait-mobile-fab{display:none!important}
}
@media (max-width:360px){
  body .ai-fab.ait-mobile-fab{left:max(.5rem,env(safe-area-inset-left))!important;right:max(.5rem,env(safe-area-inset-right))!important}
}
.ait-kg-update-strip a.ait-metric-link:hover{border-color:#93C5FD;background:#EFF6FF;color:#1D4ED8;box-shadow:0 8px 20px rgba(29,78,216,.10)}
.ait-kg-update-strip a.ait-metric-link:focus-visible,.ait-kg-snapshot a:focus-visible{outline:3px solid #93C5FD;outline-offset:3px}



/* v1.0.13: iPhone homepage card layout hardening
   Keeps homepage metric links clickable, but prevents linked cards from collapsing into inline blue text on mobile. */
.ait-kg-home .ait-kg-grid,
.ait-kg-home .ait-kg-collection-grid,
.ait-kg-home .ait-kg-post-grid{
  display:grid!important;
  width:100%!important;
  min-width:0!important;
}
.ait-kg-home .ait-kg-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.ait-kg-home .ait-kg-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.ait-kg-home .ait-kg-card,
.ait-kg-home a.ait-kg-card{
  display:flex!important;
  flex-direction:column!important;
  gap:.45rem!important;
  width:100%!important;
  min-width:0!important;
  min-height:100%!important;
  background:#fff!important;
  border:1px solid #E5E7EB!important;
  border-radius:1rem!important;
  padding:1rem!important;
  color:#111827!important;
  text-decoration:none!important;
  box-shadow:0 8px 24px rgba(17,24,39,.055)!important;
  overflow:hidden!important;
}
.ait-kg-home .ait-kg-card *{max-width:100%!important}
.ait-kg-home .ait-kg-icon{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  width:2.35rem!important;
  height:2.35rem!important;
  border-radius:.8rem!important;
  background:#EEF2FF!important;
  color:#1D4ED8!important;
}
.ait-kg-home .ait-kg-icon svg{width:1.15rem!important;height:1.15rem!important}
.ait-kg-home .ait-kg-card-title{
  display:block!important;
  color:#111827!important;
  font-size:1.05rem!important;
  font-weight:900!important;
  line-height:1.25!important;
}
.ait-kg-home .ait-kg-card-desc{
  display:block!important;
  color:#6B7280!important;
  font-size:.94rem!important;
  line-height:1.45!important;
}
.ait-kg-home .ait-kg-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:.35rem!important;
  margin-top:auto!important;
  padding-top:.35rem!important;
}
.ait-kg-home .ait-kg-meta span{
  display:inline-flex!important;
  width:auto!important;
  color:#374151!important;
  background:#F9FAFB!important;
  border:1px solid #E5E7EB!important;
  border-radius:999px!important;
  padding:.28rem .45rem!important;
  font-size:.78rem!important;
  font-weight:750!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
@media (max-width:1100px){
  .ait-kg-home .ait-kg-grid-4{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .ait-kg-home .ait-kg-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:900px){
  .ait-kg-home .ait-kg-grid-4,
  .ait-kg-home .ait-kg-grid-3,
  .ait-kg-home .ait-kg-collection-grid,
  .ait-kg-home .ait-kg-post-grid,
  .ait-kg-home .ait-kg-two-col{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:640px){
  .ait-kg-home .ait-kg-grid-4,
  .ait-kg-home .ait-kg-grid-3,
  .ait-kg-home .ait-kg-collection-grid,
  .ait-kg-home .ait-kg-post-grid,
  .ait-kg-home .ait-kg-two-col{grid-template-columns:1fr!important}
  .ait-kg-home .ait-kg-grid{gap:.85rem!important}
  .ait-kg-home .ait-kg-card,
  .ait-kg-home a.ait-kg-card{padding:.9rem!important;border-radius:.95rem!important}
  .ait-kg-home .ait-kg-meta span{font-size:.76rem!important;white-space:normal!important}
}
@media (max-width:380px){
  .ait-kg-home .ait-kg-card-title{font-size:1rem!important}
  .ait-kg-home .ait-kg-icon{width:2.1rem!important;height:2.1rem!important}
}


/* v1.0.14: production homepage card structure fix
   The homepage metrics remain clickable, while problem cards are forced back into isolated
   card blocks on desktop, tablet and mobile. This also bumps the enqueue version in
   functions.php so browsers do not keep stale homepage CSS. */
.ait-kg-home .ait-kg-grid-4{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:1rem!important;
  align-items:stretch!important;
}
.ait-kg-home a.ait-kg-card{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:.45rem!important;
  min-width:0!important;
  min-height:100%!important;
  width:100%!important;
  overflow:hidden!important;
  text-decoration:none!important;
  color:#111827!important;
}
.ait-kg-home a.ait-kg-card > .ait-kg-icon,
.ait-kg-home a.ait-kg-card > .ait-kg-card-title,
.ait-kg-home a.ait-kg-card > .ait-kg-card-desc,
.ait-kg-home a.ait-kg-card > .ait-kg-meta{
  position:relative!important;
  float:none!important;
  clear:none!important;
}
.ait-kg-home a.ait-kg-card > .ait-kg-card-title,
.ait-kg-home a.ait-kg-card > .ait-kg-card-desc{
  display:block!important;
  width:100%!important;
}
.ait-kg-home a.ait-kg-card > .ait-kg-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:.35rem!important;
  width:100%!important;
  margin-top:auto!important;
}
.ait-kg-home a.ait-kg-card > .ait-kg-meta > span{
  display:inline-flex!important;
  flex:0 1 auto!important;
  width:auto!important;
  margin:0!important;
  white-space:nowrap!important;
}
.ait-kg-home .ait-kg-update-strip a.ait-metric-link,
.ait-kg-home .ait-kg-snapshot a{
  cursor:pointer;
}
@media (max-width:1100px){
  .ait-kg-home .ait-kg-grid-4{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:900px){
  .ait-kg-home .ait-kg-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:640px){
  .ait-kg-home .ait-kg-grid-4{grid-template-columns:1fr!important}
  .ait-kg-home a.ait-kg-card > .ait-kg-meta > span{white-space:normal!important}
}

/* v1.0.18: Simplified business-problem cards
   Use a simple anchor card structure and rely on the base .ait-kg-card styling.
   Define a responsive grid for the business problem section. */
.ait-kg-home .ait-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}
@media (max-width: 1100px) {
  .ait-kg-home .ait-problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ait-kg-home .ait-problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ait-kg-home .ait-problem-grid { grid-template-columns: 1fr; gap: .85rem; }
}

/* v1.0.19: Additional mobile breakpoints for very small screens (<360px). These rules
   ensure the business-problem cards remain legible and do not overflow on
   extremely small devices. We stack the metadata tags vertically and reduce
   padding and gaps on cards. */
@media (max-width: 360px) {
  .ait-kg-home .ait-kg-card {
    padding: 0.8rem;
    gap: 0.35rem;
  }
  .ait-kg-home .ait-kg-card-title {
    font-size: 0.9rem;
  }
  .ait-kg-home .ait-kg-card-desc {
    font-size: 0.82rem;
  }
  /* Ensure metadata badges stack on very small screens */
  .ait-kg-home .ait-kg-meta span,
  .ait-kg-home .ait-kg-meta a {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
  }
}

/* v1.0.20: Business problem card structure with separate links
   These rules style the <article.ait-problem-card> container and its internal
   <a.ait-problem-card-link> and metric links. The entire card remains styled
   like the other .ait-kg-card elements but avoids nested <a> tags. */
.ait-kg-home .ait-problem-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  min-height: 100%;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  padding: 1rem;
  color: #111827;
  box-shadow: 0 8px 24px rgba(17,24,39,.055);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.ait-kg-home .ait-problem-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 16px 36px rgba(29,78,216,.12);
  transform: translateY(-1px);
}
.ait-kg-home .ait-problem-card-link {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  text-decoration: none;
  color: inherit;
}
.ait-kg-home .ait-problem-card .ait-kg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: auto;
}
.ait-kg-home .ait-problem-card .ait-kg-meta a {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 750;
  color: #374151;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  padding: .28rem .45rem;
  text-decoration: none;
}
.ait-kg-home .ait-problem-card .ait-kg-meta a:hover {
  border-color: #93C5FD;
  box-shadow: 0 8px 20px rgba(29,78,216,.08);
}

/*
 * Homepage Knowledge Hub layout hardening (v1.0.21)
 *
 * A number of WordPress themes and page builders (including Elementor) apply
 * global display and alignment rules that can override our intended grid and
 * card layout on the homepage. This section uses high specificity selectors
 * and !important flags to enforce the correct Knowledge Hub layout across
 * desktop, tablet and mobile screen sizes. Without these rules, the
 * directory snapshot, update metrics, problem cards and taxonomy grids may
 * collapse into inline text or lose their grid structure.  These overrides
 * are scoped to `.ait-kg-home` so they do not affect other templates.
 */

/* Ensure all Knowledge Hub grids use CSS Grid and have consistent spacing */
.ait-kg-home .ait-kg-grid,
.ait-kg-home .ait-problem-grid,
.ait-kg-home .ait-kg-post-grid,
.ait-kg-home .ait-kg-collection-grid {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 1rem !important;
}

/* Base column counts for desktop */
.ait-kg-home .ait-kg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.ait-kg-home .ait-kg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.ait-kg-home .ait-problem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* Tablet breakpoints */
@media (max-width: 1100px) {
  .ait-kg-home .ait-kg-grid-4,
  .ait-kg-home .ait-problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  .ait-kg-home .ait-kg-grid-4,
  .ait-kg-home .ait-kg-grid-3,
  .ait-kg-home .ait-problem-grid,
  .ait-kg-home .ait-kg-post-grid,
  .ait-kg-home .ait-kg-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .ait-kg-home .ait-kg-grid-4,
  .ait-kg-home .ait-kg-grid-3,
  .ait-kg-home .ait-problem-grid,
  .ait-kg-home .ait-kg-post-grid,
  .ait-kg-home .ait-kg-collection-grid {
    grid-template-columns: 1fr !important;
    gap: .85rem !important;
  }
}

/* Card layout enforcement for general cards and business-problem cards */
.ait-kg-home .ait-kg-card,
.ait-kg-home a.ait-kg-card,
.ait-kg-home .ait-problem-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100% !important;
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 1rem !important;
  padding: 1rem !important;
  color: #111827 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(17,24,39,.055) !important;
  gap: .45rem !important;
  overflow: hidden !important;
}

/* Ensure the internal link within business-problem cards lays out its children vertically.
   Without this, Elementor or global CSS may force anchors to be inline, causing the
   icon, title and description to run together. */
.ait-kg-home .ait-problem-card-link {
  display: flex !important;
  flex-direction: column !important;
  gap: .45rem !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* Hover behaviour for cards */
.ait-kg-home .ait-kg-card:hover,
.ait-kg-home a.ait-kg-card:hover,
.ait-kg-home .ait-problem-card:hover {
  border-color: #93C5FD !important;
  box-shadow: 0 16px 36px rgba(29,78,216,.12) !important;
  transform: translateY(-1px) !important;
}

/* Icon sizing and colours */
.ait-kg-home .ait-kg-icon {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
  border-radius: .8rem !important;
  background: #EEF2FF !important;
  color: #1D4ED8 !important;
}

/* Title and description typography */
.ait-kg-home .ait-kg-card-title,
.ait-kg-home .ait-problem-card .ait-kg-card-title {
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  color: #111827 !important;
}
.ait-kg-home .ait-kg-card-desc,
.ait-kg-home .ait-problem-card .ait-kg-card-desc {
  color: #6B7280 !important;
  font-size: .94rem !important;
  line-height: 1.45 !important;
}

/* Metadata wrapper */
.ait-kg-home .ait-kg-meta,
.ait-kg-home .ait-problem-card .ait-kg-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .35rem !important;
  margin-top: auto !important;
  padding-top: .35rem !important;
}

/* Metadata badges and metric links */
.ait-kg-home .ait-kg-meta span,
.ait-kg-home .ait-kg-meta a,
.ait-kg-home .ait-problem-card .ait-kg-meta span,
.ait-kg-home .ait-problem-card .ait-kg-meta a {
  display: inline-flex !important;
  align-items: center !important;
  font-size: .78rem !important;
  font-weight: 750 !important;
  background: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 999px !important;
  padding: .28rem .45rem !important;
  color: #374151 !important;
  width: auto !important;
  margin: 0 !important;
}
.ait-kg-home .ait-problem-card .ait-kg-meta a {
  text-decoration: none !important;
}

/* Card adjustments for very small screens (<360px) */
@media (max-width: 360px) {
  .ait-kg-home .ait-kg-card,
  .ait-kg-home .ait-problem-card {
    padding: 0.8rem !important;
    gap: 0.35rem !important;
  }
  .ait-kg-home .ait-kg-card-title,
  .ait-kg-home .ait-problem-card .ait-kg-card-title {
    font-size: 0.9rem !important;
  }
  .ait-kg-home .ait-kg-card-desc,
  .ait-kg-home .ait-problem-card .ait-kg-card-desc {
    font-size: 0.82rem !important;
  }
  .ait-kg-home .ait-kg-meta span,
  .ait-kg-home .ait-kg-meta a,
  .ait-kg-home .ait-problem-card .ait-kg-meta span,
  .ait-kg-home .ait-problem-card .ait-kg-meta a {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Directory snapshot layout enforcement */
.ait-kg-home .ait-kg-snapshot {
  display: grid !important;
  gap: .75rem !important;
  background: rgba(255,255,255,.86) !important;
  border: 1px solid #DBEAFE !important;
  border-radius: 1.35rem !important;
  padding: 1rem !important;
  box-shadow: 0 18px 50px rgba(29,78,216,.12) !important;
}
.ait-kg-home .ait-kg-snapshot strong {
  font-size: 1.05rem !important;
}
.ait-kg-home .ait-kg-snapshot div,
.ait-kg-home .ait-kg-snapshot a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: .75rem !important;
  background: #fff !important;
  border: 1px solid #EEF2FF !important;
  border-radius: .9rem !important;
  padding: .7rem .8rem !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}
.ait-kg-home .ait-kg-snapshot span {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #111827 !important;
}
.ait-kg-home .ait-kg-snapshot small {
  color: #6B7280 !important;
  font-weight: 700 !important;
  text-align: right !important;
}
.ait-kg-home .ait-kg-snapshot a:hover {
  border-color: #93C5FD !important;
  box-shadow: 0 10px 24px rgba(29,78,216,.10) !important;
  transform: translateY(-1px) !important;
}

/* Update strip layout enforcement */
.ait-kg-home .ait-kg-update-strip {
  display: flex !important;
  align-items: center !important;
  gap: .65rem !important;
  flex-wrap: wrap !important;
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 1rem !important;
  padding: .85rem 1rem !important;
  box-shadow: 0 8px 24px rgba(17,24,39,.05) !important;
}
.ait-kg-home .ait-kg-update-strip strong {
  margin-right: auto !important;
}
.ait-kg-home .ait-kg-update-strip span,
.ait-kg-home .ait-kg-update-strip a.ait-metric-link {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 999px !important;
  padding: .35rem .6rem !important;
  color: #374151 !important;
  background: #F9FAFB !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease !important;
}
.ait-kg-home .ait-kg-update-strip a.ait-metric-link:hover {
  border-color: #93C5FD !important;
  background: #EFF6FF !important;
  color: #1D4ED8 !important;
  box-shadow: 0 8px 20px rgba(29,78,216,.10) !important;
}


/* v1.0.25: mobile card overlap fix
   The Knowledge Hub cards intentionally collapse to one column earlier on mobile/tablet widths.
   This prevents long titles, metric badges and Elementor/global anchor styles from visually overlapping neighbouring cards. */
@media (max-width: 820px) {
  .ait-kg-home .ait-kg-grid,
  .ait-kg-home .ait-problem-grid,
  .ait-kg-home .ait-kg-post-grid,
  .ait-kg-home .ait-kg-collection-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap: .9rem !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  .ait-kg-home .ait-kg-card,
  .ait-kg-home a.ait-kg-card,
  .ait-kg-home .ait-problem-card {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .ait-kg-home .ait-kg-card:hover,
  .ait-kg-home a.ait-kg-card:hover,
  .ait-kg-home .ait-problem-card:hover {
    transform: none !important;
  }

  .ait-kg-home .ait-problem-card-link,
  .ait-kg-home .ait-kg-card > *,
  .ait-kg-home .ait-problem-card > *,
  .ait-kg-home .ait-problem-card-link > * {
    position: static !important;
    float: none !important;
    clear: none !important;
    max-width: 100% !important;
  }

  .ait-kg-home .ait-kg-card-title,
  .ait-kg-home .ait-problem-card .ait-kg-card-title,
  .ait-kg-home .ait-kg-card-desc,
  .ait-kg-home .ait-problem-card .ait-kg-card-desc {
    display: block !important;
    width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .ait-kg-home .ait-kg-meta,
  .ait-kg-home .ait-problem-card .ait-kg-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: .4rem !important;
    width: 100% !important;
    margin-top: .65rem !important;
    padding-top: 0 !important;
  }

  .ait-kg-home .ait-kg-meta a,
  .ait-kg-home .ait-kg-meta span,
  .ait-kg-home .ait-problem-card .ait-kg-meta a,
  .ait-kg-home .ait-problem-card .ait-kg-meta span {
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }

  .ait-kg-home .ait-count-value {
    display: inline !important;
    width: auto !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: 900 !important;
  }
}

@media (max-width: 480px) {
  .ait-kg-home .container {
    padding-inline: .85rem !important;
  }

  .ait-kg-home .ait-kg-card,
  .ait-kg-home a.ait-kg-card,
  .ait-kg-home .ait-problem-card {
    padding: .9rem !important;
    border-radius: .95rem !important;
  }

  .ait-kg-home .ait-kg-snapshot {
    grid-template-columns: 1fr !important;
  }
}

/* v1.0.26: homepage button spacing, discovery hubs, advisor and mobile collection cards */
.ait-kg-home .ait-home-hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.15rem;align-items:center}
.ait-kg-home .btn{margin-block:.25rem;white-space:normal;text-align:center}
.ait-kg-home .ait-section-footer{display:flex;flex-direction:column;align-items:flex-start;gap:.65rem;margin-top:1.15rem;padding-top:.25rem}
.ait-kg-home .ait-section-footer .ait-muted{margin:0;max-width:760px}
.ait-kg-home .ait-section-head{gap:1rem;margin-bottom:1rem}
.ait-kg-home .ait-kg-collection-grid{align-items:stretch!important}
.ait-kg-home .ait-kg-collection{min-width:0;min-height:100%;display:flex!important;flex-direction:column;gap:.25rem;overflow-wrap:anywhere;word-break:normal}
.ait-kg-home .ait-kg-collection strong,.ait-kg-home .ait-kg-collection small,.ait-kg-home .ait-kg-collection span{max-width:100%;overflow-wrap:anywhere;word-break:normal}
@media(max-width:820px){.ait-kg-home .ait-kg-collection-grid{grid-template-columns:1fr!important;gap:.9rem!important}.ait-kg-home .ait-kg-collection{height:auto!important;min-height:0!important;transform:none!important;overflow:visible!important}.ait-kg-home .ait-kg-collection:hover{transform:none!important}}
@media(max-width:640px){.ait-kg-home .btn{width:100%;justify-content:center;margin-block:.15rem}.ait-kg-home .ait-home-hero-actions{gap:.65rem}.ait-kg-home .ait-section-footer{margin-top:1rem}.ait-kg-home .ait-home-section{padding-block:1.65rem}.ait-kg-home .ait-kg-snapshot a,.ait-kg-home .ait-kg-snapshot div{align-items:flex-start;flex-direction:column}.ait-kg-home .ait-kg-snapshot small{text-align:left}}

.ait-hub-page,.ait-advisor-page{background:#F9FAFB;padding:0 0 4rem}
.ait-hub-page .container,.ait-advisor-page .container{max-width:1180px;margin:0 auto;padding:2rem 1rem 0}
.ait-hub-hero,.ait-advisor-hero{max-width:920px;margin:0 0 1.5rem;padding:1.25rem 0}
.ait-hub-hero h1,.ait-advisor-hero h1{font-size:clamp(2rem,5vw,3.45rem);line-height:1.05;margin:.35rem 0 .8rem;color:#111827}
.ait-hub-hero p,.ait-advisor-hero p{font-size:1.05rem;line-height:1.65;color:#4B5563;margin:0}
.ait-hub-grid{display:grid;gap:1rem;align-items:stretch}.ait-hub-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ait-hub-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ait-hub-card{background:#fff;border:1px solid #E5E7EB;border-radius:1rem;padding:1rem;box-shadow:0 8px 24px rgba(17,24,39,.055);min-width:0;color:#111827}.ait-hub-card h2,.ait-hub-card h3{margin:.1rem 0 .5rem;line-height:1.25}.ait-hub-card p{color:#4B5563;line-height:1.55}.ait-hub-card-link{display:flex;flex-direction:column;gap:.35rem;text-decoration:none;color:inherit}.ait-hub-card-link strong{font-size:1.08rem}.ait-hub-card-link span{font-weight:800;color:#1D4ED8}.ait-hub-card-link small{color:#6B7280;line-height:1.45}
.ait-hub-chip-list{display:flex;flex-wrap:wrap;gap:.45rem;margin:.75rem 0}.ait-hub-chip-list a,.ait-hub-chip-list span{display:inline-flex;border:1px solid #E5E7EB;background:#F9FAFB;border-radius:999px;padding:.32rem .55rem;color:#374151;font-weight:700;font-size:.86rem;text-decoration:none}.ait-hub-chip-list a:hover{border-color:#93C5FD;background:#EFF6FF;color:#1D4ED8}
.ait-hub-alpha-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-top:.75rem}.ait-hub-alpha-list a{display:flex;justify-content:space-between;gap:.75rem;background:#fff;border:1px solid #E5E7EB;border-radius:.85rem;padding:.65rem .75rem;text-decoration:none;color:#111827}.ait-hub-alpha-list small{color:#6B7280;font-weight:800}.ait-hub-featured,.ait-hub-all-terms{margin-top:2rem}.ait-hub-pagination{margin:1.5rem 0;display:flex;gap:.4rem;flex-wrap:wrap}.ait-hub-pagination a,.ait-hub-pagination span{border:1px solid #E5E7EB;border-radius:.6rem;padding:.45rem .65rem;background:#fff;text-decoration:none}
.ait-text-link{font-weight:800;color:#1D4ED8}.breadcrumbs{font-size:.92rem;margin-bottom:1rem;color:#6B7280}.breadcrumbs a{color:#374151;text-decoration:none}
.ait-advisor-card{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:1rem;align-items:start;background:#fff;border:1px solid #DBEAFE;border-radius:1.25rem;padding:1.2rem;box-shadow:0 18px 50px rgba(29,78,216,.10);margin-bottom:1.5rem}.ait-advisor-form{display:flex;flex-direction:column;gap:.75rem}.ait-advisor-form textarea{width:100%;min-height:130px;border:1px solid #D1D5DB;border-radius:1rem;padding:.9rem;font:inherit;resize:vertical}.ait-advisor-results-wrap{margin-top:1.5rem}.ait-advisor-seo-copy{margin-top:2rem}.alert{background:#FEF3C7;border:1px solid #FDE68A;border-radius:1rem;padding:1rem;color:#92400E}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.ait-hub-grid-3,.ait-hub-grid-2,.ait-hub-alpha-list,.ait-advisor-card{grid-template-columns:1fr}.ait-hub-page .container,.ait-advisor-page .container{padding-inline:1rem}.ait-advisor-card .btn{width:100%;justify-content:center}}
@media(max-width:480px){.ait-hub-card,.ait-advisor-card{padding:.9rem;border-radius:.95rem}.ait-hub-alpha-list a{flex-direction:column;gap:.25rem}.ait-hub-hero,.ait-advisor-hero{padding-top:.75rem}}
