/* Release 286: unified, softer pill buttons across hero link areas. */
:root{
  --gp286-hero-primary:var(--gp-action-green);
  --gp286-hero-primary-hover:var(--gp-action-green-dark);
  --gp286-hero-primary-border:var(--gp-action-green);
  --gp286-hero-soft-bg:rgba(255,255,255,.94);
  --gp286-hero-soft-border:#d7e4de;
  --gp286-hero-soft-ink:#2b5e49;
  --gp286-hero-soft-bg-hover:#f0f7f2;
  --gp286-hero-soft-border-hover:#d2e2d8;
}

:where(.gp-knowledge-hero__links,.gp-product-catalog-hero__links){
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.72rem !important;
  margin-top:1.35rem;
}

:where(.gp-knowledge-hero__links,.gp-product-catalog-hero__links) a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:3rem;
  padding:.7rem 1.24rem !important;
  border:1px solid var(--gp286-hero-soft-border) !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfb 100%) !important;
  color:var(--gp286-hero-soft-ink) !important;
  font-size:.8rem;
  font-weight:820;
  line-height:1.2;
  text-decoration:none;
  box-shadow:0 .5rem 1.15rem rgba(31,54,47,.06) !important;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease,color .18s ease;
}

:where(.gp-knowledge-hero__links,.gp-product-catalog-hero__links) a:first-child{
  border-color:var(--gp286-hero-primary-border) !important;
  background:linear-gradient(180deg,var(--gp286-hero-primary) 0%,var(--gp286-hero-primary-hover) 100%) !important;
  color:var(--gp-action-on) !important;
  box-shadow:0 .25rem .65rem rgba(32,86,60,.09) !important;
}

:where(.gp-knowledge-hero__links,.gp-product-catalog-hero__links) a:not(:first-child):is(:hover,:focus-visible){
  background:var(--gp286-hero-soft-bg-hover) !important;
  border-color:var(--gp286-hero-soft-border-hover) !important;
  color:var(--gp286-hero-primary-hover) !important;
  box-shadow:none !important;
  transform:none;
  outline:none;
}

:where(.gp-knowledge-hero__links,.gp-product-catalog-hero__links) a:first-child:is(:hover,:focus-visible){
  background:var(--gp-action-green-dark) !important;
  border-color:var(--gp-action-green-dark) !important;
  color:var(--gp-action-on) !important;
  box-shadow:0 .28rem .8rem rgba(32,86,60,.12) !important;
  transform:none;
  outline:none;
}

/* Product archive previously had text-link overrides; force the shared button system here. */
.gp-product-archive .gp-product-catalog-hero__links a{
  min-height:3rem !important;
  padding:.7rem 1.24rem !important;
  border-radius:999px !important;
}

@media (max-width:48rem){
  :where(.gp-knowledge-hero__links,.gp-product-catalog-hero__links){
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  :where(.gp-knowledge-hero__links,.gp-product-catalog-hero__links) a{
    width:100%;
  }
}
