/* Shared styles for /tools/ pages only. Requires the site's existing style.css first. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tools-breadcrumbs{display:flex;align-items:center;gap:9px;padding-top:20px;font-size:.86rem;color:var(--muted)}
.tools-breadcrumbs a:hover{color:#087453}.tools-hero{padding-top:46px}.tools-hero h1{max-width:1050px}.tools-hero p{max-width:760px;font-size:1.08rem}
.tools-main-section{padding-top:44px}.tools-hub-section{padding-top:46px}.tools-hub-intro{max-width:790px;margin-bottom:56px}.tools-hub-intro h2{font-size:clamp(2rem,4.5vw,4rem);margin:10px 0 18px}
.tools-category{padding:44px 0;border-top:1px solid var(--line)}.tools-category-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:24px}.tools-category-head h2{font-size:clamp(1.8rem,3.5vw,3rem);margin-top:7px}.tools-category-head p{max-width:470px;margin:0}.tools-kicker{display:block;font-weight:850;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:#1a7356}
.tools-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tools-card-grid-one{grid-template-columns:minmax(0,1fr)}.tools-card{display:block;background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:0 14px 38px rgba(15,35,27,.05);transition:.2s ease}.tools-card:hover{transform:translateY(-3px);border-color:#b5c8bf;box-shadow:0 18px 46px rgba(15,35,27,.08)}.tools-card h3{font-size:1.45rem;margin:18px 0 10px}.tools-card p{max-width:680px}.tools-icon{display:inline-grid;place-items:center;min-width:46px;height:46px;padding:0 10px;border-radius:13px;background:var(--deep);color:#fff;font-weight:900;font-size:.75rem;letter-spacing:.04em}.tools-link{display:inline-block;margin-top:7px;color:#087453;font-weight:850}.tools-seo-block{display:grid;grid-template-columns:.8fr 1.2fr;gap:50px;border-top:1px solid var(--line);padding-top:60px;margin-top:16px}.tools-seo-block h2{font-size:clamp(2rem,4vw,3.7rem);margin-top:10px}
.tools-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:28px;align-items:start}.tools-panel,.tools-side,.tools-related{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 16px 45px rgba(15,35,27,.06)}.tools-panel-wide{width:100%}.tools-side{position:sticky;top:100px}.tools-side h2,.tools-related h2{font-size:1.5rem;line-height:1.15;letter-spacing:-.025em;margin:8px 0 16px}.tools-side small{display:block;color:var(--muted);margin-top:12px}.tools-source{display:inline-flex;margin-top:8px;color:#087453;font-weight:850;text-decoration:underline;text-underline-offset:3px}
.tools-panel-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.tools-panel-head h2{font-size:1.65rem;margin:6px 0 6px}.tools-panel-head p{margin:0}.tools-add-wrap{display:flex;gap:10px;flex-wrap:wrap}.tools-add-wrap select{min-width:220px}
.tools-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.tools-form-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.tools-field{display:flex;flex-direction:column;gap:8px;min-width:0}.tools-field-full{grid-column:1/-1}.tools-field label{font-weight:850;color:var(--ink)}.tools-field small{color:var(--muted);line-height:1.4}.tools-field input:not([type=range]),.tools-field select,.tools-add-wrap select,.tools-table input{width:100%;min-height:48px;padding:11px 12px;border:1px solid #ccd7d1;border-radius:12px;background:#fff;color:var(--ink);font:inherit;outline:none}.tools-field input:focus,.tools-field select:focus,.tools-add-wrap select:focus,.tools-table input:focus{border-color:#35a77c;box-shadow:0 0 0 3px rgba(53,211,153,.13)}.tools-field input[type=range]{width:100%;accent-color:#087453}.tools-input-prefix,.tools-input-suffix{display:flex;align-items:center;border:1px solid #ccd7d1;border-radius:12px;background:#fff;overflow:hidden}.tools-input-prefix:focus-within,.tools-input-suffix:focus-within{border-color:#35a77c;box-shadow:0 0 0 3px rgba(53,211,153,.13)}.tools-input-prefix span,.tools-input-suffix span{padding:0 12px;color:#4f5e58;font-weight:750;white-space:nowrap}.tools-input-prefix input,.tools-input-suffix input{border:0!important;border-radius:0!important;box-shadow:none!important;min-width:0}.tools-input-prefix input{border-left:1px solid var(--line)!important}.tools-input-suffix input{border-right:1px solid var(--line)!important}
.tools-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.tools-status{margin:16px 0 0;color:#52605a}.tools-status.error{color:#9f2f2f}.tools-status.success{color:#087453}.tools-divider{height:1px;background:var(--line);margin:30px 0}.tools-results{display:grid;gap:12px;margin-top:24px}.tools-results-three{grid-template-columns:repeat(3,1fr)}.tools-results-four{grid-template-columns:repeat(4,1fr)}.tools-results-five{grid-template-columns:repeat(5,1fr)}.tools-result-card{background:#f3f7f5;border:1px solid #dfe7e2;border-radius:18px;padding:20px;text-align:center;min-width:0}.tools-result-card.featured{background:#e7f8f0;border-color:#b6e7d2}.tools-result-card strong{display:block;font-size:clamp(1.35rem,2.6vw,2rem);line-height:1.05;color:#087453;overflow-wrap:anywhere}.tools-result-card span{display:block;margin-top:8px;font-size:.84rem;font-weight:750;color:#52605a;line-height:1.35}.tools-result-note{margin-top:14px;padding:14px 16px;border-radius:14px;background:#f7f9f8;border:1px solid var(--line);color:#41504a}.tools-result-note strong{color:var(--ink)}
.tools-preview{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}.tools-preview img{display:block;max-width:100%;max-height:440px;margin:auto;border-radius:16px;object-fit:contain;background:#f4f6f5}.tools-file-meta{margin-top:12px;font-size:.92rem;color:#52605a}.tools-download{margin-top:18px}.tools-mini-list{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.tools-mini-list span{background:#f1f5f3;border:1px solid var(--line);padding:6px 9px;border-radius:10px;font-weight:800;font-size:.82rem}
.tools-content-section{padding-top:18px}.tools-content{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:36px;align-items:start}.tools-copy{max-width:800px}.tools-copy h2{font-size:clamp(1.8rem,3vw,2.7rem);margin:0 0 18px}.tools-copy h3{font-size:1.3rem;margin:30px 0 10px;letter-spacing:-.02em}.tools-copy a{color:#087453;font-weight:800;text-decoration:underline;text-underline-offset:3px}.tools-related{box-shadow:none}.tools-related a{display:block;padding:11px 0;border-top:1px solid var(--line);font-weight:780;color:#26312d}.tools-related a:hover{color:#087453}
.tools-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px}.tools-table{width:100%;border-collapse:collapse;min-width:760px;background:#fff}.tools-table th,.tools-table td{padding:11px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.tools-table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#52605a;background:#f5f7f6}.tools-table td:last-child,.tools-table th:last-child{text-align:center;width:54px}.tools-table tr:last-child td{border-bottom:0}.tools-table input{min-height:40px;padding:8px 9px}.tools-table .tools-appliance-name{min-width:180px}.tools-remove{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:10px;cursor:pointer;font-size:1.1rem}.tools-remove:hover{border-color:#aa4c4c;color:#922}.tools-energy-cell{white-space:nowrap;font-weight:800;color:#087453}.tools-weight-strip{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 4px}.tools-weight-strip span{background:#f3f7f5;border:1px solid var(--line);border-radius:12px;padding:8px 11px;font-size:.9rem}.tools-weight-strip strong{color:#087453}
@media(max-width:980px){.tools-layout,.tools-content,.tools-seo-block{grid-template-columns:1fr}.tools-side{position:static}.tools-form-grid-three{grid-template-columns:repeat(2,minmax(0,1fr))}.tools-results-five{grid-template-columns:repeat(3,1fr)}.tools-results-four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.tools-category-head,.tools-panel-head{align-items:flex-start;flex-direction:column}.tools-card-grid,.tools-form-grid,.tools-form-grid-three{grid-template-columns:1fr}.tools-field-full{grid-column:auto}.tools-results-three,.tools-results-four,.tools-results-five{grid-template-columns:repeat(2,1fr)}.tools-panel,.tools-side,.tools-related{padding:20px}.tools-main-section{padding-top:30px}.tools-category{padding:34px 0}.tools-add-wrap{width:100%}.tools-add-wrap select,.tools-add-wrap .btn{width:100%}}
@media(max-width:460px){.tools-results-three,.tools-results-four,.tools-results-five{grid-template-columns:1fr}.tools-actions .btn{width:100%}.tools-breadcrumbs{font-size:.78rem;overflow:hidden}.tools-hero{padding-top:34px}.tools-card{padding:21px}}

/* =========================================================
   TOOLS INDEX ENHANCEMENTS + SEARCH
   Paste at the END of assets/css/tools.css
========================================================= */

/* HERO */

.toolshub-hero{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(circle at 12% 10%,rgba(53,211,153,.18),transparent 29%),
    radial-gradient(circle at 88% 12%,rgba(112,146,255,.16),transparent 30%),
    linear-gradient(180deg,#f4f5f1,#eef2ee);
  border-bottom:1px solid var(--line);
}

.toolshub-hero-bg{
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.24;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(12,17,16,.025) 0,
      rgba(12,17,16,.025) 1px,
      transparent 1px,
      transparent 4px
    );
}

.toolshub-hero-grid{
  min-height:650px;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);
  gap:clamp(44px,7vw,100px);
  align-items:center;
  padding:68px 0 72px;
}

.toolshub-hero-copy h1{
  max-width:850px;
  margin:14px 0 0;
  font-size:clamp(4rem,7.5vw,7.4rem);
  line-height:.86;
  letter-spacing:-.078em;
}

.toolshub-hero-copy h1 span{
  display:block;
  color:#087453;
}

.toolshub-hero-copy > p{
  max-width:720px;
  margin:28px 0 0;
  font-size:clamp(1rem,1.35vw,1.16rem);
  line-height:1.8;
}

.toolshub-hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:28px;
}

.toolshub-proof-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:30px;
}

.toolshub-proof-row span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:34px;
  padding:0 11px;
  border:1px solid rgba(12,17,16,.13);
  border-radius:999px;
  background:rgba(255,255,255,.58);
  color:#67706c;
  font-size:.7rem;
  font-weight:800;
  backdrop-filter:blur(10px);
}

.toolshub-proof-row b{
  color:#0c1110;
}


/* HERO VISUAL */

.toolshub-visual{
  position:relative;
  width:min(100%,500px);
  aspect-ratio:1/1;
  justify-self:end;
  perspective:1000px;
}

.toolshub-visual::before{
  content:"";
  position:absolute;
  inset:10%;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 28%,#fff,rgba(220,245,234,.9) 40%,rgba(53,211,153,.12) 68%,transparent 69%);
  filter:drop-shadow(0 30px 55px rgba(17,65,49,.14));
}

.toolshub-core{
  position:absolute;
  z-index:5;
  left:50%;
  top:50%;
  width:180px;
  height:180px;
  transform:translate(-50%,-50%);
  border:1px solid rgba(12,17,16,.12);
  border-radius:32px;
  background:rgba(255,255,255,.82);
  box-shadow:0 24px 60px rgba(12,17,16,.11);
  backdrop-filter:blur(14px);
  display:grid;
  align-content:center;
  justify-items:center;
  text-align:center;
}

.toolshub-core small{
  color:#6c7671;
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.13em;
}

.toolshub-core strong{
  margin:7px 0 2px;
  font-size:4.5rem;
  line-height:.82;
  letter-spacing:-.1em;
}

.toolshub-core > span{
  color:#087453;
  font-size:.7rem;
  font-weight:950;
  letter-spacing:.12em;
}

.toolshub-ring{
  position:absolute;
  left:50%;
  top:50%;
  border:1px solid rgba(12,17,16,.18);
  border-radius:50%;
}

.toolshub-ring::before{
  content:"";
  position:absolute;
  width:10px;
  height:10px;
  top:-5px;
  left:50%;
  border-radius:50%;
  background:#087453;
  box-shadow:0 0 0 7px rgba(53,211,153,.13);
}

.toolshub-ring.ring-one{
  width:76%;
  height:76%;
  margin:-38% 0 0 -38%;
  animation:toolshubOrbit 18s linear infinite;
}

.toolshub-ring.ring-two{
  width:94%;
  height:58%;
  margin:-29% 0 0 -47%;
  transform:rotate(55deg);
  animation:toolshubOrbitTwo 23s linear infinite reverse;
}

@keyframes toolshubOrbit{
  to{transform:rotate(360deg)}
}

@keyframes toolshubOrbitTwo{
  to{transform:rotate(415deg)}
}

.toolshub-chip{
  position:absolute;
  z-index:7;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  min-height:34px;
  padding:0 10px;
  border:1px solid rgba(12,17,16,.13);
  border-radius:999px;
  background:rgba(255,255,255,.9);
  box-shadow:0 12px 30px rgba(12,17,16,.08);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.07em;
}

.chip-img{left:4%;top:27%}
.chip-solar{right:0;top:20%}
.chip-tax{right:7%;bottom:18%}
.chip-edu{left:12%;bottom:14%}


/* SEARCH */

.toolsearch-shell{
  position:relative;
  z-index:40;
  margin-top:-40px;
}

.toolsearch-box{
  padding:18px;
  border:1px solid rgba(12,17,16,.12);
  border-radius:27px;
  background:rgba(255,255,255,.95);
  box-shadow:0 25px 65px rgba(15,35,27,.12);
  backdrop-filter:blur(18px);
}

.toolsearch-main{
  position:relative;
}

.toolsearch-main > label{
  display:block;
  margin:0 0 8px 4px;
  color:#636d68;
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.toolsearch-input-wrap{
  position:relative;
  display:flex;
  align-items:center;
}

.toolsearch-icon{
  position:absolute;
  left:18px;
  width:22px;
  height:22px;
  color:#66706b;
  pointer-events:none;
}

#tool-search-input{
  width:100%;
  min-height:64px;
  padding:0 90px 0 54px;
  border:1px solid #d7ded9;
  border-radius:18px;
  outline:none;
  background:#f8faf7;
  color:#0c1110;
  font-size:1rem;
  transition:.18s ease;
}

#tool-search-input::placeholder{
  color:#969e9a;
}

#tool-search-input:focus{
  border-color:#087453;
  background:#fff;
  box-shadow:0 0 0 4px rgba(53,211,153,.11);
}

.toolsearch-shortcut{
  position:absolute;
  right:18px;
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid #d9dfdb;
  border-radius:8px;
  background:#fff;
  color:#737b77;
  font-size:.72rem;
  font-weight:900;
  pointer-events:none;
}

.toolsearch-clear{
  position:absolute;
  right:54px;
  width:32px;
  height:32px;
  border:0;
  border-radius:50%;
  background:#e9eeeb;
  color:#34413b;
  cursor:pointer;
  font-size:1.3rem;
}

.toolsearch-clear:hover{
  background:#111;
  color:#fff;
}


/* SUGGESTIONS */

.toolsearch-suggestions{
  position:absolute;
  z-index:120;
  top:calc(100% + 8px);
  left:0;
  right:0;
  max-height:430px;
  overflow:auto;
  padding:8px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 26px 65px rgba(15,35,27,.17);
}

.toolsearch-suggestion{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 22px;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:13px;
  transition:.14s ease;
}

.toolsearch-suggestion:hover,
.toolsearch-suggestion.selected{
  background:#eef7f2;
}

.toolsearch-suggestion-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:#e7f6ef;
  color:#087453;
  font-size:.62rem;
  font-weight:950;
}

.toolsearch-suggestion-copy{
  display:grid;
  gap:2px;
  min-width:0;
}

.toolsearch-suggestion-copy small{
  color:#087453;
  font-size:.59rem;
  font-style:normal;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.toolsearch-suggestion-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.9rem;
}

.toolsearch-suggestion-copy em{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#7a837f;
  font-size:.7rem;
  font-style:normal;
}

.toolsearch-suggestion > b{
  justify-self:end;
  font-size:1rem;
}

.toolsearch-suggestion-empty{
  padding:16px;
  color:#737c77;
  text-align:center;
  font-size:.82rem;
}

.toolsearch-suggestions mark,
.toolsearch-result-card mark{
  padding:0 .08em;
  border-radius:3px;
  background:#c8f4de;
  color:inherit;
}


/* SEARCH FILTERS */

.toolsearch-filters{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:13px;
}

.toolsearch-filters button{
  min-height:34px;
  padding:0 12px;
  border:1px solid #dde3df;
  border-radius:999px;
  background:#fff;
  color:#5d6762;
  font-size:.7rem;
  font-weight:850;
  cursor:pointer;
}

.toolsearch-filters button:hover,
.toolsearch-filters button.active{
  border-color:#111;
  background:#111;
  color:#fff;
}

.toolsearch-popular{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #edf0ee;
}

.toolsearch-popular > span{
  color:#8b938f;
  font-size:.66rem;
  font-weight:850;
}

.toolsearch-popular button{
  padding:0;
  border:0;
  background:transparent;
  color:#087453;
  font-size:.68rem;
  font-weight:800;
  cursor:pointer;
}

.toolsearch-popular button:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}


/* SEARCH RESULTS */

.toolsearch-results{
  scroll-margin-top:130px;
  padding:76px 0 88px;
  background:#fff;
}

.toolsearch-results-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:28px;
}

.toolsearch-results-head h2{
  max-width:850px;
  margin:9px 0 0;
  font-size:clamp(2.3rem,5vw,4.5rem);
  line-height:.95;
  letter-spacing:-.055em;
}

.toolsearch-results-head > p{
  margin:0;
  color:#69736e;
  font-size:.84rem;
  font-weight:800;
}

.toolsearch-results-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.toolsearch-result-card{
  min-width:0;
  min-height:320px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:24px;
  background:#f8f9f6;
  display:flex;
  flex-direction:column;
  transition:.2s ease;
}

.toolsearch-result-card:hover{
  transform:translateY(-5px);
  border-color:#cbd6cf;
  box-shadow:0 20px 48px rgba(15,35,27,.09);
}

.toolsearch-result-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#707975;
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.toolsearch-result-icon{
  display:inline-grid;
  place-items:center;
  min-width:44px;
  height:44px;
  padding:0 8px;
  border-radius:12px;
  background:#e4f5ec;
  color:#087453;
}

.toolsearch-result-card h3{
  margin:28px 0 13px;
  font-size:1.55rem;
  line-height:1.08;
  overflow-wrap:anywhere;
}

.toolsearch-result-card p{
  margin:0 0 24px;
  color:#66706b;
  font-size:.9rem;
  line-height:1.7;
}

.toolsearch-result-open{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid #e1e6e3;
  color:#087453;
  font-size:.82rem;
  font-weight:900;
}

.toolsearch-result-open b{
  transition:.18s ease;
}

.toolsearch-result-card:hover .toolsearch-result-open b{
  transform:translate(3px,-3px);
}

.toolsearch-empty{
  padding:60px 24px;
  border:1px dashed #cfd7d2;
  border-radius:24px;
  background:#f8faf7;
  text-align:center;
}

.toolsearch-empty > span{
  color:#087453;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.14em;
}

.toolsearch-empty h3{
  margin:10px 0;
  font-size:clamp(1.7rem,3vw,2.5rem);
}

.toolsearch-empty p{
  margin:0 auto 22px;
}


/* SHARED TOOLS SECTIONS */

.toolshub-featured,
.toolshub-library,
.toolshub-needs,
.toolshub-about,
.toolshub-final{
  padding:92px 0;
}

.toolshub-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:34px;
  margin-bottom:38px;
}

.toolshub-section-head h2{
  max-width:820px;
  margin:10px 0 0;
  font-size:clamp(2.3rem,5vw,4.7rem);
  line-height:.96;
  letter-spacing:-.055em;
}

.toolshub-section-head > p{
  max-width:520px;
  margin:0;
  line-height:1.7;
}


/* FEATURED TOOLS */

.toolshub-featured{
  background:#fff;
  padding-top:110px;
}

.toolshub-feature-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  grid-template-rows:1fr 1fr;
  gap:14px;
}

.toolshub-feature-main,
.toolshub-feature-side{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:28px;
  transition:.22s ease;
}

.toolshub-feature-main:hover,
.toolshub-feature-side:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 50px rgba(15,35,27,.09);
}

.toolshub-feature-main{
  grid-row:1/3;
  min-height:520px;
  padding:32px;
  background:
    radial-gradient(circle at 85% 15%,rgba(53,211,153,.2),transparent 27%),
    #0c1512;
  color:#fff;
  display:flex;
  flex-direction:column;
}

.toolshub-feature-top{
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#7be7bd;
  font-size:.63rem;
  font-weight:900;
  letter-spacing:.1em;
}

.toolshub-feature-copy{
  position:relative;
  z-index:3;
  max-width:650px;
  margin-top:auto;
}

.toolshub-feature-copy .tools-kicker{
  color:#7be7bd;
}

.toolshub-feature-copy h3{
  margin:14px 0;
  font-size:clamp(2.2rem,4.4vw,4rem);
  line-height:.94;
  letter-spacing:-.055em;
}

.toolshub-feature-copy p{
  max-width:600px;
  color:#a8b7b0;
  line-height:1.75;
}

.toolshub-feature-main .toolshub-open{
  color:#7be7bd;
}

.toolshub-feature-art{
  position:absolute;
  right:-35px;
  top:50px;
  width:280px;
  height:280px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:50%;
  display:grid;
  place-items:center;
  opacity:.72;
}

.toolshub-feature-art::before,
.toolshub-feature-art::after{
  content:"";
  position:absolute;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
}

.toolshub-feature-art::before{inset:35px}
.toolshub-feature-art::after{inset:75px}

.toolshub-feature-art strong{
  font-size:3.5rem;
  letter-spacing:-.08em;
}

.toolshub-feature-art i{
  position:absolute;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#7be7bd;
}

.toolshub-feature-art i:nth-of-type(1){top:36px;left:70px}
.toolshub-feature-art i:nth-of-type(2){right:45px;bottom:72px}
.toolshub-feature-art i:nth-of-type(3){left:65px;bottom:38px}

.toolshub-feature-side{
  min-height:250px;
  padding:25px;
  display:flex;
  flex-direction:column;
  background:#f7f8f5;
}

.toolshub-feature-side.feature-tax{
  background:linear-gradient(145deg,#f7efe4,#fff);
}

.toolshub-feature-side.feature-image{
  background:linear-gradient(145deg,#eaf2ff,#fff);
}

.toolshub-feature-side h3{
  margin:12px 0;
  font-size:1.5rem;
  line-height:1.08;
}

.toolshub-feature-side p{
  font-size:.9rem;
  line-height:1.65;
}

.toolshub-open{
  display:inline-flex;
  width:max-content;
  margin-top:auto;
  color:#087453;
  font-size:.82rem;
  font-weight:900;
}


/* LIBRARY */

.toolshub-library{
  background:#f4f5f1;
}

.toolshub-category{
  padding:48px 0;
  border-top:1px solid var(--line);
}

.toolshub-category:first-of-type{
  padding-top:14px;
  border-top:0;
}

.toolshub-category-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.55fr);
  gap:40px;
  align-items:end;
  margin-bottom:24px;
}

.toolshub-index{
  display:block;
  margin-bottom:8px;
  color:#8b938f;
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.12em;
}

.toolshub-category-head h2{
  margin:7px 0 0;
  font-size:clamp(2rem,4vw,3.7rem);
  line-height:.98;
  letter-spacing:-.05em;
}

.toolshub-category-head > p{
  margin:0;
  line-height:1.7;
}

.toolshub-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.toolshub-card{
  position:relative;
  overflow:hidden;
  min-height:340px;
  padding:25px;
  border:1px solid var(--line);
  border-radius:25px;
  background:#fff;
  display:flex;
  flex-direction:column;
  transition:.22s ease;
}

.toolshub-card::after{
  content:"";
  position:absolute;
  right:-55px;
  bottom:-60px;
  width:180px;
  height:180px;
  border:1px solid rgba(12,17,16,.07);
  border-radius:38px;
  transform:rotate(24deg);
}

.toolshub-card:hover{
  transform:translateY(-5px);
  border-color:#cbd6cf;
  box-shadow:0 20px 50px rgba(15,35,27,.09);
}

.toolshub-card-top{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:62px;
}

.toolshub-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:50px;
  height:50px;
  padding:0 9px;
  border-radius:15px;
  background:#e5f5ed;
  color:#087453;
  font-size:.67rem;
  font-weight:950;
  letter-spacing:.05em;
}

.toolshub-badge{
  color:#747d78;
  font-size:.63rem;
  font-weight:850;
}

.toolshub-card h3{
  position:relative;
  z-index:2;
  max-width:650px;
  margin:0 0 13px;
  font-size:clamp(1.6rem,2.7vw,2.3rem);
  line-height:1.02;
  letter-spacing:-.04em;
}

.toolshub-card p{
  position:relative;
  z-index:2;
  max-width:650px;
  line-height:1.72;
}

.toolshub-card .toolshub-open{
  position:relative;
  z-index:2;
}

.toolshub-category-dark{
  margin:25px 0;
  padding:42px;
  border:0;
  border-radius:32px;
  background:#0c1512;
  color:#fff;
}

.toolshub-category-dark .toolshub-index{
  color:#74877e;
}

.toolshub-category-dark .tools-kicker{
  color:#7be7bd;
}

.toolshub-category-dark .toolshub-category-head > p{
  color:#9eaca5;
}

.toolshub-category-dark .toolshub-card{
  border-color:#26372f;
  background:#111d19;
  color:#fff;
}

.toolshub-category-dark .toolshub-card p{
  color:#a1afa8;
}

.toolshub-category-dark .toolshub-icon{
  background:#183b2e;
  color:#7be7bd;
}

.toolshub-category-dark .toolshub-open{
  color:#7be7bd;
}

.toolshub-category-dark .toolshub-card::after{
  border-color:rgba(255,255,255,.08);
}

.toolshub-category-education .toolshub-card{
  background:linear-gradient(145deg,#f5f2ff,#fff);
}

.toolshub-grid-single{
  grid-template-columns:1fr;
}

.toolshub-card-wide{
  min-height:auto;
}

.toolshub-card-wide-copy{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:30px;
  align-items:end;
}


/* BROWSE BY NEED */

.toolshub-needs{
  background:#fff;
}

.toolshub-needs-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid var(--line);
}

.toolshub-needs-grid > a{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:8px 16px;
  padding:27px 22px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  transition:.18s ease;
}

.toolshub-needs-grid > a:nth-child(2n){
  border-right:0;
}

.toolshub-needs-grid > a:hover{
  background:#f5f7f3;
}

.toolshub-needs-grid span{
  grid-row:1/3;
  color:#087453;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.1em;
}

.toolshub-needs-grid strong{
  font-size:1.08rem;
  line-height:1.35;
}

.toolshub-needs-grid small{
  color:#717a75;
  font-weight:800;
}


/* WHY THESE TOOLS */

.toolshub-about{
  background:#eef1ec;
}

.toolshub-about-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(40px,8vw,110px);
}

.toolshub-about h2{
  margin:12px 0 0;
  font-size:clamp(2.4rem,5vw,4.8rem);
  line-height:.96;
  letter-spacing:-.055em;
}

.toolshub-about-copy{
  display:grid;
  gap:16px;
}

.toolshub-about-copy p{
  margin:0;
  line-height:1.8;
}

.toolshub-about-copy a{
  color:#087453;
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:4px;
}


/* FINAL CTA */

.toolshub-final{
  background:#fff;
  padding-top:24px;
}

.toolshub-final-card{
  position:relative;
  overflow:hidden;
  padding:clamp(36px,6vw,70px);
  border-radius:36px;
  background:
    radial-gradient(circle at 88% 18%,rgba(53,211,153,.2),transparent 27%),
    #0c1512;
  color:#fff;
}

.toolshub-final-card::after{
  content:"TOOLS";
  position:absolute;
  right:-20px;
  bottom:-55px;
  color:rgba(255,255,255,.035);
  font-size:clamp(8rem,18vw,18rem);
  line-height:.7;
  font-weight:950;
  letter-spacing:-.1em;
}

.toolshub-final-card > *{
  position:relative;
  z-index:2;
}

.toolshub-final-card .eyebrow{
  color:#7be7bd;
}

.toolshub-final-card .eyebrow::before{
  background:#7be7bd;
}

.toolshub-final-card h2{
  max-width:900px;
  margin:15px 0 19px;
  font-size:clamp(2.7rem,5.7vw,5.8rem);
  line-height:.9;
  letter-spacing:-.06em;
}

.toolshub-final-card p{
  max-width:680px;
  color:#aab8b2;
  line-height:1.8;
}

.toolshub-final-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:28px;
}

.toolshub-final-card .btn{
  background:#fff;
  border-color:#fff;
  color:#111;
}

.toolshub-final-card .btn.secondary{
  background:transparent;
  border-color:#3c5047;
  color:#fff;
}


/* ACTIVE SEARCH: focus page on results */

body.tool-search-active .toolshub-featured,
body.tool-search-active .toolshub-library,
body.tool-search-active .toolshub-needs{
  display:none;
}


/* RESPONSIVE */

@media(max-width:1000px){
  .toolshub-hero-grid{
    grid-template-columns:minmax(0,1fr) minmax(330px,.72fr);
  }

  .toolsearch-results-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:820px){
  .toolshub-hero-grid,
  .toolshub-about-grid{
    grid-template-columns:1fr;
  }

  .toolshub-hero-grid{
    min-height:auto;
    padding:54px 0 64px;
  }

  .toolshub-visual{
    justify-self:center;
    width:min(470px,90vw);
  }

  .toolshub-section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .toolshub-feature-grid{
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto auto;
  }

  .toolshub-feature-main{
    grid-column:1/-1;
    grid-row:auto;
    min-height:440px;
  }

  .toolshub-category-head{
    grid-template-columns:1fr;
    gap:16px;
  }

  .toolsearch-results-head{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
}

@media(max-width:640px){
  .toolshub-hero-copy h1{
    font-size:clamp(3.3rem,15vw,5rem);
  }

  .toolshub-hero-copy > p{
    font-size:.96rem;
  }

  .toolshub-visual{
    width:100%;
  }

  .toolshub-core{
    width:145px;
    height:145px;
    border-radius:25px;
  }

  .toolshub-core strong{
    font-size:3.5rem;
  }

  .toolshub-chip{
    min-height:28px;
    min-width:50px;
    font-size:.55rem;
  }

  .toolsearch-shell{
    margin-top:-28px;
  }

  .toolsearch-box{
    padding:12px;
    border-radius:20px;
  }

  #tool-search-input{
    min-height:56px;
    padding-left:48px;
    padding-right:54px;
    border-radius:15px;
    font-size:.9rem;
  }

  .toolsearch-icon{
    left:15px;
    width:20px;
    height:20px;
  }

  .toolsearch-shortcut{
    display:none;
  }

  .toolsearch-clear{
    right:13px;
  }

  .toolsearch-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:none;
  }

  .toolsearch-filters::-webkit-scrollbar{
    display:none;
  }

  .toolsearch-filters button{
    flex:0 0 auto;
  }

  .toolsearch-suggestions{
    max-height:55vh;
  }

  .toolsearch-results{
    padding:58px 0 66px;
  }

  .toolsearch-results-grid,
  .toolshub-feature-grid,
  .toolshub-grid,
  .toolshub-needs-grid{
    grid-template-columns:1fr;
  }

  .toolsearch-result-card{
    min-height:auto;
  }

  .toolshub-featured,
  .toolshub-library,
  .toolshub-needs,
  .toolshub-about,
  .toolshub-final{
    padding:66px 0;
  }

  .toolshub-feature-main,
  .toolshub-feature-side{
    min-height:auto;
  }

  .toolshub-feature-main{
    min-height:430px;
    padding:24px;
  }

  .toolshub-feature-art{
    width:210px;
    height:210px;
  }

  .toolshub-category-dark{
    margin:18px 0;
    padding:24px 18px;
    border-radius:24px;
  }

  .toolshub-card{
    min-height:auto;
    padding:22px;
  }

  .toolshub-card-top{
    margin-bottom:40px;
  }

  .toolshub-card-wide-copy{
    grid-template-columns:1fr;
    gap:16px;
  }

  .toolshub-needs-grid > a,
  .toolshub-needs-grid > a:nth-child(2n){
    border-right:0;
  }

  .toolshub-final-card{
    border-radius:26px;
  }

  .toolshub-final-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .toolshub-final-actions .btn{
    width:100%;
  }
}

@media(prefers-reduced-motion:reduce){
  .toolshub-ring.ring-one,
  .toolshub-ring.ring-two{
    animation:none!important;
  }

  .toolshub-feature-main,
  .toolshub-feature-side,
  .toolshub-card,
  .toolsearch-result-card,
  .toolsearch-result-open b{
    transition:none!important;
  }
}


/* NEW FINANCE TOOLS MOBILE PASS */
body[data-tool="salary-tax-calculator-pakistan"],
body[data-tool="zakat-calculator-pakistan"]{
  overflow-x:hidden;
}

body[data-tool="salary-tax-calculator-pakistan"] .tools-panel,
body[data-tool="salary-tax-calculator-pakistan"] .tools-side,
body[data-tool="salary-tax-calculator-pakistan"] .tools-related,
body[data-tool="zakat-calculator-pakistan"] .tools-panel,
body[data-tool="zakat-calculator-pakistan"] .tools-side,
body[data-tool="zakat-calculator-pakistan"] .tools-related{
  min-width:0;
}

body[data-tool="salary-tax-calculator-pakistan"] .tools-table-wrap,
body[data-tool="zakat-calculator-pakistan"] .tools-table-wrap{
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

body[data-tool="salary-tax-calculator-pakistan"] .tools-table,
body[data-tool="zakat-calculator-pakistan"] .tools-table{
  min-width:0;
  table-layout:fixed;
}

body[data-tool="salary-tax-calculator-pakistan"] .tools-table th,
body[data-tool="salary-tax-calculator-pakistan"] .tools-table td,
body[data-tool="zakat-calculator-pakistan"] .tools-table th,
body[data-tool="zakat-calculator-pakistan"] .tools-table td{
  overflow-wrap:anywhere;
  word-break:normal;
}

body[data-tool="salary-tax-calculator-pakistan"] .tools-field input,
body[data-tool="salary-tax-calculator-pakistan"] .tools-field select,
body[data-tool="zakat-calculator-pakistan"] .tools-field input,
body[data-tool="zakat-calculator-pakistan"] .tools-field select{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

body[data-tool="salary-tax-calculator-pakistan"] .tools-result-card strong,
body[data-tool="zakat-calculator-pakistan"] .tools-result-card strong{
  overflow-wrap:anywhere;
  word-break:break-word;
}

body[data-tool="salary-tax-calculator-pakistan"] .tools-status,
body[data-tool="salary-tax-calculator-pakistan"] .tools-result-note,
body[data-tool="salary-tax-calculator-pakistan"] .tools-source,
body[data-tool="zakat-calculator-pakistan"] .tools-status,
body[data-tool="zakat-calculator-pakistan"] .tools-result-note,
body[data-tool="zakat-calculator-pakistan"] .tools-source{
  overflow-wrap:anywhere;
}

body[data-tool="salary-tax-calculator-pakistan"] .adsterra-banner,
body[data-tool="zakat-calculator-pakistan"] .adsterra-banner{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}

@media(max-width:720px){
  body[data-tool="salary-tax-calculator-pakistan"] .tools-hero,
  body[data-tool="zakat-calculator-pakistan"] .tools-hero{
    padding-top:30px;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-hero h1,
  body[data-tool="zakat-calculator-pakistan"] .tools-hero h1{
    font-size:clamp(2.15rem,10vw,3.15rem);
    line-height:1;
    letter-spacing:-.045em;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-hero p,
  body[data-tool="zakat-calculator-pakistan"] .tools-hero p{
    font-size:.98rem;
    line-height:1.65;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-panel,
  body[data-tool="salary-tax-calculator-pakistan"] .tools-side,
  body[data-tool="salary-tax-calculator-pakistan"] .tools-related,
  body[data-tool="zakat-calculator-pakistan"] .tools-panel,
  body[data-tool="zakat-calculator-pakistan"] .tools-side,
  body[data-tool="zakat-calculator-pakistan"] .tools-related{
    padding:18px;
    border-radius:18px;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-panel-head h2,
  body[data-tool="zakat-calculator-pakistan"] .tools-panel-head h2{
    font-size:1.42rem;
    line-height:1.15;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-field input,
  body[data-tool="salary-tax-calculator-pakistan"] .tools-field select,
  body[data-tool="zakat-calculator-pakistan"] .tools-field input,
  body[data-tool="zakat-calculator-pakistan"] .tools-field select{
    font-size:16px;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-input-prefix span,
  body[data-tool="zakat-calculator-pakistan"] .tools-input-prefix span{
    padding:0 10px;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-results-five,
  body[data-tool="zakat-calculator-pakistan"] .tools-results-five{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-result-card,
  body[data-tool="zakat-calculator-pakistan"] .tools-result-card{
    padding:16px 12px;
    border-radius:14px;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-result-card strong,
  body[data-tool="zakat-calculator-pakistan"] .tools-result-card strong{
    font-size:clamp(1.08rem,5vw,1.55rem);
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-table,
  body[data-tool="zakat-calculator-pakistan"] .tools-table{
    width:100%;
    min-width:0;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-table th,
  body[data-tool="salary-tax-calculator-pakistan"] .tools-table td,
  body[data-tool="zakat-calculator-pakistan"] .tools-table th,
  body[data-tool="zakat-calculator-pakistan"] .tools-table td{
    padding:10px 8px;
    font-size:.82rem;
    line-height:1.45;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-content,
  body[data-tool="zakat-calculator-pakistan"] .tools-content{
    gap:22px;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-copy h2,
  body[data-tool="zakat-calculator-pakistan"] .tools-copy h2{
    font-size:clamp(1.65rem,8vw,2.2rem);
    line-height:1.08;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-breadcrumbs,
  body[data-tool="zakat-calculator-pakistan"] .tools-breadcrumbs{
    flex-wrap:wrap;
    overflow:visible;
    line-height:1.4;
  }
}

@media(max-width:520px){
  body[data-tool="salary-tax-calculator-pakistan"] .tools-results-five,
  body[data-tool="zakat-calculator-pakistan"] .tools-results-five{
    grid-template-columns:1fr;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-actions,
  body[data-tool="zakat-calculator-pakistan"] .tools-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-actions .btn,
  body[data-tool="zakat-calculator-pakistan"] .tools-actions .btn{
    width:100%;
    min-height:48px;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-table th,
  body[data-tool="salary-tax-calculator-pakistan"] .tools-table td,
  body[data-tool="zakat-calculator-pakistan"] .tools-table th,
  body[data-tool="zakat-calculator-pakistan"] .tools-table td{
    padding:9px 7px;
    font-size:.78rem;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .tools-divider,
  body[data-tool="zakat-calculator-pakistan"] .tools-divider{
    margin:24px 0;
  }

  body[data-tool="salary-tax-calculator-pakistan"] .adsterra-banner,
  body[data-tool="zakat-calculator-pakistan"] .adsterra-banner{
    margin:24px auto!important;
    min-height:300px;
  }
}


/* FINANCE CATEGORY WIDE CARD */
#finance-tools .toolshub-card-wide{
  grid-column:1/-1;
}

@media(max-width:640px){
  #finance-tools .toolshub-card-wide{
    grid-column:auto;
  }
}
