/**
 * Small homepage interaction enhancements owned by H5W Core.
 */

body.home .h5w-tool-card {
  position: relative;
}

/*
 * Featured tools are rendered by the dynamic tools grid. Legacy Additional
 * CSS still gives the shared .h5w-tool-card class a fixed 220px width, so the
 * homepage cards must explicitly fill their grid tracks.
 */
body.home .h5w-featured-tool-grid .h5w-tool-card {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

body.home .h5w-tool-card > .kt-inside-inner-col {
  position: static;
}

body.home .h5w-tool-card-link {
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: inherit;
  cursor: pointer;
}

body.home .h5w-tool-card-link:focus-visible {
  outline: 3px solid var(--global-palette-highlight, #2b6cb0);
  outline-offset: 4px;
}
