/* Hendler unified tool catalogue, approved /tools visual system.
   Scope: /tools, /free-tools and /paid-tools only; never individual tools.
   One geometry, component structure, colors and navigation for all categories. */
.tools-catalog.catalog-unified{
  box-sizing:border-box!important;
  width:min(1180px,calc(100% - 64px))!important;
  max-width:1180px!important;
  min-height:0!important;
  position:relative!important;
  /* Keep the catalogue under the site header. The old negative margin
     pushed the Back + category tabs under the sticky masthead.
     Preserve the existing title/card vertical positions with 20px less padding. */
  margin:0 auto!important;
  padding:134px 0 86px!important;
  color:var(--text,#f3f5f4)!important;
}

/* Back (left) and categories (right) share a single nav line.
   The audit reference uses a 40px toolbar at top:10px of its main. */
.tools-catalog.catalog-unified .catalog-topbar{
  position:absolute!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  /* Exact approved PWA² navigation coordinate */
  top:10px!important;
  left:0!important;
  right:0!important;
  z-index:20!important;
  width:100%!important;
  max-width:1180px!important;
  height:40px!important;
  min-height:40px!important;
  margin:0 auto!important;
  padding:0!important;
}
.tools-catalog.catalog-unified .catalog-topbar > .tools-catalog-back.site-back-arrow{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  position:static!important;
  flex:0 0 40px!important;
  z-index:5!important;
  margin:0!important;
  padding:0!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  background:transparent!important;
  color:#cbd6d0!important;
  -webkit-text-fill-color:currentColor!important;
  font:500 28px/1 Inter,Arial,sans-serif!important;
  text-decoration:none!important;
  letter-spacing:normal!important;
  transform:none!important;
}
.tools-catalog.catalog-unified .catalog-topbar > .tools-catalog-back.site-back-arrow:hover{
  color:#7ee7ad!important;
  background:rgba(111,198,154,.09)!important;
  border-color:rgba(111,198,154,.24)!important;
}
.tools-catalog.catalog-unified .catalog-kicker{
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:#7ee7ad!important;
  font:800 11px/1.3 Inter,Arial,sans-serif!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
}
.tools-catalog.catalog-unified .catalog-title{
  margin:14px 0 0!important;
  padding:0!important;
  max-width:1000px!important;
  color:#f3f5f4!important;
  font:800 clamp(44px,4.9vw,64px)/.98 Manrope,Inter,Arial,sans-serif!important;
  letter-spacing:-.055em!important;
  text-align:left!important;
}
.tools-catalog.catalog-unified .catalog-intro > .catalog-lead{
  display:block!important;
  box-sizing:border-box!important;
  max-width:790px!important;
  min-height:48px!important;
  margin:20px 0 0!important;
  padding:0!important;
  color:#a9b6ad!important;
  font:400 15px/1.6 Inter,Arial,sans-serif!important;
  text-align:left!important;
}
.tools-catalog.catalog-unified .catalog-controls{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:14px!important;
  margin:32px 0 22px!important;
}
/* Minimal text tabs: consistent with active Tools link in the site header. */
.tools-catalog.catalog-unified .catalog-tabs{
  display:inline-flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:30px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.tools-catalog.catalog-unified .catalog-tab{
  position:relative!important;
  display:inline-flex!important;
  justify-content:center!important;
  align-items:center!important;
  box-sizing:border-box!important;
  min-height:40px!important;
  padding:7px 0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#a7b4ac!important;
  -webkit-text-fill-color:currentColor!important;
  font:600 13px/1.2 Inter,Arial,sans-serif!important;
  text-decoration:none!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  transition:color .2s ease!important;
}
.tools-catalog.catalog-unified .catalog-tab::after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:2px!important;
  border-radius:0!important;
  background:#69c99a!important;
  box-shadow:none!important;
  transform:scaleX(0)!important;
  transform-origin:left center!important;
  transition:transform .23s ease!important;
}
.tools-catalog.catalog-unified .catalog-tab[aria-pressed="true"],
.tools-catalog.catalog-unified .catalog-tab[aria-current="page"]{
  background:transparent!important;
  border:0!important;
  color:#f3f5f4!important;
  -webkit-text-fill-color:currentColor!important;
}
.tools-catalog.catalog-unified .catalog-tab[aria-pressed="true"]::after,
.tools-catalog.catalog-unified .catalog-tab[aria-current="page"]::after{
  transform:scaleX(1)!important;
}
.tools-catalog.catalog-unified .catalog-tab:hover{
  color:#f3f5f4!important;
  background:transparent!important;
  border:0!important;
}
.tools-catalog.catalog-unified .catalog-count{
  font:600 12px/1.4 Inter,Arial,sans-serif!important;
  color:#94a69a!important;
}
.tools-catalog.catalog-unified .catalog-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
.tools-catalog.catalog-unified .catalog-card{
  position:relative!important;
  display:flex!important;
  box-sizing:border-box!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:240px!important;
  margin:0!important;
  padding:28px 28px 24px!important;
  overflow:hidden!important;
  border:1px solid rgba(126,231,173,.23)!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,#102219,#0b1611)!important;
  color:#f3f5f4!important;
  text-decoration:none!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025)!important;
  transition:transform .2s,border-color .2s,box-shadow .2s!important;
}
.tools-catalog.catalog-unified .catalog-card[data-category="paid"]{
  background:linear-gradient(145deg,#141d19,#0e1612)!important;
}
.tools-catalog.catalog-unified .catalog-card:hover{
  transform:translateY(-4px)!important;
  border-color:rgba(126,231,173,.67)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.2),0 0 24px rgba(84,220,145,.045)!important;
}
.tools-catalog.catalog-unified .catalog-card[hidden]{
  display:none!important;
}
.tools-catalog.catalog-unified .catalog-card-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 20px!important;
}
.tools-catalog.catalog-unified .catalog-card-kicker{
  font:900 10px/1.4 Inter,Arial,sans-serif!important;
  letter-spacing:.13em!important;
  color:#6fc69a!important;
  text-transform:uppercase!important;
}
.tools-catalog.catalog-unified .catalog-card-kind{
  font:800 10px/1.25 Inter,Arial,sans-serif!important;
  color:#b4c0b7!important;
  white-space:nowrap!important;
}
.tools-catalog.catalog-unified .catalog-card h2{
  margin:0 0 9px!important;
  padding:0!important;
  color:#f3f5f4!important;
  font:800 clamp(23px,2.35vw,29px)/1.09 Manrope,Inter,Arial,sans-serif!important;
  letter-spacing:-.043em!important;
  text-align:left!important;
}
.tools-catalog.catalog-unified .catalog-card p{
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  color:#aab9b0!important;
  font:400 13px/1.65 Inter,Arial,sans-serif!important;
}
.tools-catalog.catalog-unified .catalog-card-foot{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-top:auto!important;
  padding-top:24px!important;
}
.tools-catalog.catalog-unified .catalog-card-price{
  display:inline-flex!important;
  align-items:baseline!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  font:700 13px/1.4 Inter,Arial,sans-serif!important;
  color:#89d9af!important;
}
.tools-catalog.catalog-unified .catalog-card[data-category="paid"] .catalog-card-price-value{
  color:#f3f5f4!important;
  font:800 20px/1.1 Manrope,Inter,Arial,sans-serif!important;
  letter-spacing:-.035em!important;
}
.tools-catalog.catalog-unified .catalog-card[data-category="free"] .catalog-card-price-value{
  color:#7ee7ad!important;
  font:800 15px/1.2 Inter,Arial,sans-serif!important;
}
.tools-catalog.catalog-unified .catalog-card-price-unit{
  color:#96a69d!important;
  font:500 11px/1.35 Inter,Arial,sans-serif!important;
}
.tools-catalog.catalog-unified .catalog-card-open{
  font:800 12px/1.4 Inter,Arial,sans-serif!important;
  white-space:nowrap!important;
  color:#e4f3e9!important;
}
.tools-catalog.catalog-unified .catalog-card-open span{
  display:inline-block!important;
  margin-left:4px!important;
  color:#7ee7ad!important;
  transition:transform .2s!important;
}
.tools-catalog.catalog-unified .catalog-card:hover .catalog-card-open span{
  transform:translateX(4px)!important;
}
.tools-catalog.catalog-unified .catalog-category-foot{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:14px!important;
  margin:30px 0 0!important;
  padding:18px 0 0!important;
  border-top:1px solid rgba(126,231,173,.17)!important;
}
.tools-catalog.catalog-unified .catalog-category-foot p{
  margin:0!important;
  color:#9dac9f!important;
  font:400 12px/1.6 Inter,Arial,sans-serif!important;
}
.tools-catalog.catalog-unified .catalog-category-foot a{
  color:#7ee7ad!important;
  font:700 12px/1.4 Inter,Arial,sans-serif!important;
  text-decoration:none!important;
}
.tools-catalog.catalog-unified :is(a,button):focus-visible{
  outline:2px solid #7ee7ad!important;
  outline-offset:4px!important;
}
body.light-theme .tools-catalog.catalog-unified .catalog-title{color:#18241d!important}
body.light-theme .tools-catalog.catalog-unified .catalog-kicker{color:#249a62!important}
body.light-theme .tools-catalog.catalog-unified .catalog-lead{color:#61716a!important}
body.light-theme .tools-catalog.catalog-unified .catalog-tabs{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.light-theme .tools-catalog.catalog-unified .catalog-tab{
  background:transparent!important;
  color:#53675c!important;
  -webkit-text-fill-color:currentColor!important;
}
body.light-theme .tools-catalog.catalog-unified .catalog-tab[aria-pressed="true"],
body.light-theme .tools-catalog.catalog-unified .catalog-tab[aria-current="page"]{
  color:#16291d!important;
  -webkit-text-fill-color:currentColor!important;
}
body.light-theme .tools-catalog.catalog-unified .catalog-tab:hover{
  color:#16291d!important;
}
body.light-theme .tools-catalog.catalog-unified .catalog-count,
body.light-theme .tools-catalog.catalog-unified .catalog-category-foot p{color:#68776e!important}
body.light-theme .tools-catalog.catalog-unified .catalog-card,
body.light-theme .tools-catalog.catalog-unified .catalog-card[data-category="paid"]{
  background:#fbfdfb!important;
  border-color:#d8e5dc!important;
  box-shadow:0 8px 24px rgba(15,55,32,.035)!important;
}
body.light-theme .tools-catalog.catalog-unified .catalog-card h2{color:#18241d!important}
body.light-theme .tools-catalog.catalog-unified .catalog-card p{color:#5a6d61!important}
body.light-theme .tools-catalog.catalog-unified .catalog-card-kind{color:#62736a!important}
body.light-theme .tools-catalog.catalog-unified .catalog-card[data-category="paid"] .catalog-card-price-value{color:#18241d!important}
body.light-theme .tools-catalog.catalog-unified .catalog-card[data-category="free"] .catalog-card-price-value{color:#269b66!important}
body.light-theme .tools-catalog.catalog-unified .catalog-card-price-unit{color:#6e7d73!important}
body.light-theme .tools-catalog.catalog-unified .catalog-card-kicker,
body.light-theme .tools-catalog.catalog-unified .catalog-card-price,
body.light-theme .tools-catalog.catalog-unified .catalog-card-open span{color:#269b66!important}
body.light-theme .tools-catalog.catalog-unified .catalog-card-open{color:#243a2c!important}
body.light-theme .tools-catalog.catalog-unified .catalog-topbar > .tools-catalog-back.site-back-arrow{color:#52645a!important}
@media(max-width:700px){
  .tools-catalog.catalog-unified{
    display:flex!important;
    flex-direction:column!important;
    width:calc(100% - 32px)!important;
    margin:0 auto!important;
    padding:38px 0 64px!important;
  }
  /* On narrow screens the single set of tabs moves below the intro
     without duplication, keeping the same filter button event handlers. */
  .tools-catalog.catalog-unified .catalog-topbar{display:contents!important}
  .tools-catalog.catalog-unified .catalog-topbar > .tools-catalog-back.site-back-arrow{
    order:0!important;
    position:static!important;
    margin:0 0 24px!important;
  }
  .tools-catalog.catalog-unified .catalog-intro{order:1!important}
  .tools-catalog.catalog-unified .catalog-topbar > .catalog-tabs{
    order:2!important;
    margin:24px 0 0!important;
  }
  .tools-catalog.catalog-unified .catalog-controls{
    order:3!important;
    margin:12px 0 18px!important;
  }
  .tools-catalog.catalog-unified .catalog-grid{order:4!important}
  .tools-catalog.catalog-unified .catalog-category-foot{order:5!important}
  .tools-catalog.catalog-unified .catalog-title{
    font-size:clamp(36px,10.2vw,52px)!important;
    line-height:1!important;
  }
  .tools-catalog.catalog-unified .catalog-intro > .catalog-lead{
    min-height:0!important;
    font-size:14px!important;
  }
  .tools-catalog.catalog-unified .catalog-controls{
    margin:24px 0 18px!important;
    align-items:flex-start!important;
  }
  .tools-catalog.catalog-unified .catalog-tabs{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
    width:100%!important;
  }
  .tools-catalog.catalog-unified .catalog-tab{
    min-width:0!important;
    min-height:42px!important;
    padding:8px 2px!important;
    font-size:12px!important;
  }
  .tools-catalog.catalog-unified .catalog-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
  }
  .tools-catalog.catalog-unified .catalog-card{
    min-height:205px!important;
    padding:22px 20px!important;
  }
  .tools-catalog.catalog-unified .catalog-card h2{
    font-size:25px!important;
  }
  .tools-catalog.catalog-unified .catalog-count{
    width:100%!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .tools-catalog.catalog-unified .catalog-card,
  .tools-catalog.catalog-unified .catalog-card-open span,
  .tools-catalog.catalog-unified .catalog-tab,
  .tools-catalog.catalog-unified .catalog-tab::after{
    transition:none!important;
  }
}

/* Only the main /tools page uses a single-line headline on desktop.
   Exact category subpage headings retain their approved two-line rhythm.
   Responsive type guarantees the title fits inside the shared 1180px max width. */
@media(min-width:1051px){
  .tools-catalog.catalog-unified[data-catalog-page="all"] .catalog-title{
    max-width:none!important;
    font-size:clamp(33px,3.3vw,53px)!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    letter-spacing:-.055em!important;
  }
}

/* Subtle idle pulse, matching the site's "Work begins" 1.9s rhythm.
   Only inactive Professional tabs pulse; active/focused controls stay clear. */
@keyframes catalogProfessionalTextPulse{
  0%,100%{opacity:.72;text-shadow:none}
  50%{opacity:1;text-shadow:0 0 10px rgba(104,185,147,.10)}
}
.tools-catalog.catalog-unified .catalog-tabs .catalog-tab[data-catalog-filter="paid"]:not([aria-pressed="true"]):not(:hover):not(:focus-visible),
.tools-catalog.catalog-unified .catalog-tabs .catalog-tab[href="/paid-tools"]:not([aria-current="page"]):not(:hover):not(:focus-visible){
  animation:catalogProfessionalTextPulse 1.9s ease-in-out infinite!important;
}
@media(prefers-reduced-motion:reduce){
  .tools-catalog.catalog-unified .catalog-tabs .catalog-tab[data-catalog-filter="paid"],
  .tools-catalog.catalog-unified .catalog-tabs .catalog-tab[href="/paid-tools"]{
    animation:none!important;
    opacity:1!important;
    text-shadow:none!important;
  }
}
