/* Stock direction selectors: the same surface, icon treatment and spacing
   as .about-stats. Kept local to this section; filtering hooks stay intact. */
.catalog-process-panel.home-directions-panel .stock-category-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-process-panel.home-directions-panel .stock-category-tab {
  container-type: normal;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas: "icon heading";
  grid-template-rows: auto;
  align-content: center;
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
  min-width: 0;
  min-height: 112px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface, #fff);
  box-shadow: 0 10px 28px rgba(35, 53, 84, .06);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.catalog-process-panel.home-directions-panel .stock-category-tab::before,
.catalog-process-panel.home-directions-panel .stock-category-tab::after {
  content: none;
}

.catalog-process-panel.home-directions-panel .stock-category-heading {
  display: contents;
}

.catalog-process-panel.home-directions-panel .stock-category-icon {
  grid-area: icon;
  align-self: center;
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  padding: 9.5px;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 9%, #fff);
  color: var(--blue-deep);
  box-shadow: none;
  stroke-width: 1.8;
  transform: none;
}

.catalog-process-panel.home-directions-panel .stock-category-tab strong {
  grid-area: heading;
  align-self: center;
  min-width: 0;
  margin: 0;
  color: var(--blue-deep);
  font-size: 1.125rem;
  line-height: 1.25;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

.catalog-process-panel.home-directions-panel .stock-category-tab:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  box-shadow: 0 12px 28px rgba(25, 80, 125, .09);
}

.catalog-process-panel.home-directions-panel .stock-category-tab.active {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  box-shadow: 0 0 0 1px var(--blue), 0 10px 28px rgba(35, 53, 84, .06);
}

.catalog-process-panel.home-directions-panel .stock-category-tab:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 4px;
}

[data-theme="dark"] .catalog-process-panel.home-directions-panel .stock-category-tab {
  border-color: var(--line);
  background: var(--surface-2);
}

[data-theme="dark"] .catalog-process-panel.home-directions-panel .stock-category-icon {
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
  background: var(--surface-3);
  color: #8fd2ff;
}

[data-theme="dark"] .catalog-process-panel.home-directions-panel .stock-category-tab strong {
  color: #b9e5ff;
}

[data-theme="dark"] .catalog-process-panel.home-directions-panel .stock-category-tab.active {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, var(--surface-2));
}

/* Long direction names need more room than the short numbers in About. */
@media (max-width: 1180px) {
  .catalog-process-panel.home-directions-panel .stock-category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .catalog-process-panel.home-directions-panel .stock-category-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-process-panel.home-directions-panel .stock-category-tab {
    min-height: 96px;
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-process-panel.home-directions-panel .stock-category-tab {
    transition: none;
  }

  .catalog-process-panel.home-directions-panel .stock-category-tab:hover {
    transform: none;
  }
}

.catalog-process-panel.home-directions-panel .stock-category-tabs {
  display: grid;
  margin: 0 0 20px;
}
.catalog-process-panel.home-directions-panel .stock-category-tab {
  font-family: inherit;
}

/* Full-frame photos only: keep both consumables thumbnails filled without
   changing frame sizes or the contain treatment of equipment cutouts. */
.home-directions-panel .process-card--photo img {
  object-fit: cover;
  object-position: center;
}
