/* Tool-first category hub treatment shared by the dedicated category pages. */
.category-page {
  background: #f8fafc;
}

.category-page .category-tools {
  position: relative;
  z-index: 1;
  margin: -2.5rem auto 0;
  max-width: 76rem;
  padding: 0 1rem 4rem;
}

.category-page .category-tools-inner {
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  background: #f8fafc;
  padding: 1.25rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .12);
}

.category-page .category-tools-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: .25rem .25rem 1.25rem;
}

.category-page .category-tools-heading h2 {
  color: #0f172a;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.category-page .category-tools-heading p {
  color: #64748b;
  font-size: .9rem;
  text-align: right;
}

.category-page .category-tool-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.category-page .category-tool-card {
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  border: 1px solid #cbd5e1;
  border-top: 4px solid #facc15;
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.category-page .category-tool-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 16px 30px rgba(15, 23, 42, .1);
  transform: translateY(-3px);
}

.category-page .category-tool-card:focus-visible {
  outline: 3px solid rgba(250, 204, 21, .55);
  outline-offset: 3px;
}

.category-page .category-tool-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: .8rem;
  background: #fef3c7;
  color: #92400e;
}

.category-page .category-tool-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.category-page .category-tool-card h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.category-page .category-tool-card p {
  margin-top: .5rem;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.55;
}

.category-page .category-tool-card span:last-child {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: 1rem;
  color: #a16207;
  font-size: .85rem;
  font-weight: 800;
}

.category-page .category-tool-card:hover span:last-child {
  color: #854d0e;
}

.category-page .category-copy {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

@media (min-width: 640px) {
  .category-page .category-tools-inner {
    padding: 1.5rem;
  }

  .category-page .category-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .category-page .category-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-page .category-tool-card {
    transition: none;
  }

  .category-page .category-tool-card:hover {
    transform: none;
  }
}