/* Page-only layout for /tool. Card visuals live in component-tool-card.css. */
.page-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  background:
    linear-gradient(90deg, #000 0%, rgb(0 0 0 / 0.72) 20%, rgb(0 0 0 / 0.12) 62%, rgb(0 0 0 / 0.04) 100%),
    var(--bess-page-hero-image, none) center 52% / cover no-repeat;
  filter: saturate(0.72) brightness(0.8) contrast(1.05);
}
.tool-layout { padding: 0 0 88px; }
.tool-layout .category-sidebar { margin-bottom: 64px; }
.tool-layout .category-icon--stage-badge {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}
.tool-layout .category-icon--stage-group {
  display: inline-flex;
  width: auto;
  height: 32px;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.tool-layout .category-icon__stage-badge {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.tool-section { margin-bottom: 88px; }
.tool-section:last-child { margin-bottom: 0; }
.tool-layout .section-header__icon {
  display: none;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--white);
}
.tool-layout .section-header__icon .material-symbols-outlined { font-size: 27px; }
.tool-layout.is-showing-all .section-header__number { display: none; }
.tool-layout.is-showing-all .section-header__icon { display: grid; }
.tool-layout .section-header.section-header--with-symbol {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}
.tool-layout .section-header__symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 100%);
  border-radius: 9px;
  color: var(--white);
  background: linear-gradient(145deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 3%));
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}
@media (min-width: 768px) {
.tool-layout .section-header__symbol { margin-top: -3px; }
}
.tool-layout.resource-catalog--parent:not(.is-showing-all) .section-header__symbol {
  display: none;
}
.tool-layout.resource-catalog--parent:not(.is-showing-all) .section-header.section-header--with-symbol {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
@media (max-width: 1279px) {
.tool-layout .content-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
.tool-layout .content-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-layout { padding-bottom: 72px; }
.tool-section { margin-bottom: 72px; }
}
@media (max-width: 767px) {
.tool-layout { padding-bottom: var(--space-section); }
.tool-section { margin-bottom: var(--space-section); }
.tool-section > .section-header { padding-block: 12px; }
.tool-layout .category-sidebar { margin-bottom: var(--space-block); }
.tool-layout .category-icon--stage-badge { width: 28px; height: 28px; border-radius: 7px; font-size: 14px; }
.tool-layout .category-icon--stage-group { width: auto; height: 28px; gap: 3px; }
.tool-layout .category-icon__stage-badge { width: 21px; height: 21px; border-radius: 5px; font-size: 11px; }
.tool-layout .section-header.section-header--with-symbol { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.tool-layout.resource-catalog--parent:not(.is-showing-all) .section-header.section-header--with-symbol { grid-template-columns: minmax(0, 1fr); gap: 0; }
.tool-layout .section-header__symbol { width: 34px; height: 34px; border-radius: 8px; font-size: 16px; }
.page-heading::before {
    width: 100%;
    background:
      linear-gradient(180deg, rgb(0 0 0 / 0.42) 0%, rgb(0 0 0 / 0.82) 58%, #000 100%),
      var(--bess-page-hero-image, none) center 52% / cover no-repeat;
  }
}
@media (max-width: 479px) {
.tool-layout .content-grid--4 { grid-template-columns: 1fr; }
}
