/* Any AI? — /tools adopts the homepage header and footer directly.
   This file changes spacing around directory content only; no other routes. */
body.page-tools-home-shell-r1 .aiai-tools-directory-v2{
  padding-top:40px;
  padding-bottom:42px;
}
body.page-tools-home-shell-r1 .lh-footer{
  margin-top:0;
}
body.page-tools-home-shell-r1 .lh-header,
body.page-tools-home-shell-r1 .lh-footer{
  position:relative;
  z-index:1;
}
@media (max-width:767px){
  body.page-tools-home-shell-r1 .aiai-tools-directory-v2{
    padding:34px 24px 35px;
  }
}
@media (max-width:350px){
  body.page-tools-home-shell-r1 .aiai-tools-directory-v2{
    padding-right:16px;
    padding-left:16px;
  }
}
@media (min-width:1024px){
  body.page-tools-home-shell-r1 .aiai-tools-directory-v2{
    padding-top:48px;
    padding-bottom:45px;
  }
}

/* Keep the generic tool-logo fallback behavior without importing the old shell. */
body.page-tools-home-shell-r1 .aiai-tools-directory-v2__logo .tool-logo-fallback {
  display:inline-grid;
  place-items:center;
  font:600 11px/1.3 "IBM Plex Sans Arabic",sans-serif;
  font-style:normal;
  color:#416350;
}
body.page-tools-home-shell-r1 .aiai-tools-directory-v2__logo .tool-logo-image + .tool-logo-fallback {
  display:none;
}
body.page-tools-home-shell-r1 .aiai-tools-directory-v2__logo .tool-logo-image.is-shell-logo-failed {
  display:none;
}
body.page-tools-home-shell-r1 .aiai-tools-directory-v2__logo .tool-logo-image.is-shell-logo-failed + .tool-logo-fallback {
  display:inline-grid;
}
