/* OceanofTools Image Tools — category-local shared CSS.
   Tool-specific function/layout CSS stays in each page CSS file. */

/* Old page-level search boxes are redundant because the universal header has search. */
html body.oot-modern .search-container{
  display:none!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}
html body.oot-modern .hero + br,
html body.oot-modern .search-container + br,
html body.oot-modern .search-container + br + br{
  display:none!important;
}

/* One compact hero style for standalone Image Tools. */
html body.oot-modern > .hero,
html body.oot-modern main > .hero,
html body.oot-modern .container1 > .hero{
  width:min(1380px,calc(100% - 24px))!important;
  max-width:1380px!important;
  min-height:0!important;
  margin:14px auto 8px!important;
  padding:16px 22px!important;
  display:block!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:20px!important;
  background:linear-gradient(105deg,#10203f 0%,#163158 58%,#18446c 100%)!important;
  box-shadow:0 18px 44px rgba(7,20,38,.14)!important;
  color:#fff!important;
  text-align:left!important;
  overflow:hidden!important;
}
html body.oot-modern .container1 > .hero{
  width:100%!important;
  margin:0 0 8px!important;
}
html body.oot-modern .hero > .hero-icon,
html body.oot-modern .hero > .filter-hero-icon,
html body.oot-modern .hero > [class*="hero-icon"]{
  display:none!important;
}
html body.oot-modern .hero h1,
html body.oot-modern .hero h1 *{
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  font-size:clamp(1.62rem,2.7vw,2.28rem)!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
  font-weight:900!important;
  text-align:left!important;
}
html body.oot-modern .hero p{
  max-width:1040px!important;
  margin:5px 0 0!important;
  color:#d5dfed!important;
  opacity:1!important;
  font-size:.9rem!important;
  line-height:1.45!important;
  text-align:left!important;
}

/* Pull the first tool/workspace card closer to the hero. */
html body.oot-modern > .container1,
html body.oot-modern > .app-wrapper,
html body.oot-modern > .settings-section,
html body.oot-modern > .settings-container,
html body.oot-modern > .mode-selector,
html body.oot-modern > .tool-container,
html body.oot-modern > .main-container{
  margin-top:8px!important;
}

/* Template-rendered Image Tools (Duotone, Glitch, Color Picker, etc.). */
html body.image-suite-page main > section.is-hero.oot-image-hero-card{
  width:min(1380px,calc(100% - 24px))!important;
  max-width:1380px!important;
  min-height:0!important;
  margin:14px auto 8px!important;
  padding:16px 22px!important;
  border-radius:20px!important;
  text-align:left!important;
}
html body.image-suite-page .oot-image-hero-card .oot-hero-head{
  display:block!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  margin:0!important;
}
html body.image-suite-page .oot-image-hero-card .is-hero-icon{
  display:none!important;
}
html body.image-suite-page .oot-image-hero-card h1{
  margin:0!important;
  font-size:clamp(1.62rem,2.7vw,2.28rem)!important;
  line-height:1.08!important;
}
html body.image-suite-page .oot-image-hero-card > p:not(.is-eyebrow){
  margin:5px 0 0!important;
  max-width:1040px!important;
  font-size:.9rem!important;
  line-height:1.45!important;
}
html body.image-suite-page .is-breadcrumb{
  margin:5px auto 0!important;
}
html body.image-suite-page .is-app-shell{
  margin:9px auto 24px!important;
}
html body.image-suite-page .is-app-heading{
  padding:12px 18px!important;
}
html body.image-suite-page .is-tool-app{
  padding-top:12px!important;
}

/* Ultimate Photo Filter Studio uses its own hero class, but follows the same compact rule. */
html body.ultimate-filter-page section.filter-studio-hero{
  width:min(1380px,calc(100% - 24px))!important;
  max-width:1380px!important;
  min-height:0!important;
  margin:14px auto 8px!important;
  padding:16px 22px!important;
  display:block!important;
  grid-template-columns:1fr!important;
  border-radius:20px!important;
}
html body.ultimate-filter-page .filter-studio-hero .filter-hero-icon{
  display:none!important;
}
html body.ultimate-filter-page .filter-studio-hero h1{
  margin:0!important;
  font-size:clamp(1.62rem,2.7vw,2.28rem)!important;
  line-height:1.08!important;
}
html body.ultimate-filter-page .filter-studio-hero p{
  margin:5px 0 0!important;
  font-size:.9rem!important;
  line-height:1.45!important;
}

@media(max-width:720px){
  html body.oot-modern > .hero,
  html body.oot-modern main > .hero,
  html body.oot-modern .container1 > .hero,
  html body.image-suite-page main > section.is-hero.oot-image-hero-card,
  html body.ultimate-filter-page section.filter-studio-hero{
    width:calc(100% - 14px)!important;
    margin:8px auto 6px!important;
    padding:13px 15px!important;
    border-radius:16px!important;
  }
  html body.oot-modern .hero h1,
  html body.oot-modern .hero h1 *,
  html body.image-suite-page .oot-image-hero-card h1,
  html body.ultimate-filter-page .filter-studio-hero h1{
    font-size:clamp(1.28rem,6.2vw,1.65rem)!important;
    line-height:1.1!important;
  }
  html body.oot-modern .hero p,
  html body.image-suite-page .oot-image-hero-card > p:not(.is-eyebrow),
  html body.ultimate-filter-page .filter-studio-hero p{
    margin-top:4px!important;
    font-size:.76rem!important;
    line-height:1.38!important;
  }
  html body.image-suite-page .is-breadcrumb{
    margin-top:3px!important;
  }
  html body.image-suite-page .is-app-shell{
    margin-top:6px!important;
  }
}
