/* Industries master/detail — scoped to #magtek-home */



#magtek-home .hp-industries {

  padding-top: 60px;

  padding-bottom: 60px;

}



#magtek-home .hp-industries__intro {

  max-width: 608px;

  margin-bottom: 28px;

}



#magtek-home .hp-industries__shell {

  display: grid;

  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);

  gap: 28px 32px;

  align-items: stretch;

  min-height: 380px;

}



#magtek-home .hp-industries__nav {

  margin: 0;

  padding: 0;

  list-style: none;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 8px 12px;

  align-content: start;

}



#magtek-home .hp-industries__tab {

  display: block;

  width: 100%;

  margin: 0;

  padding: 12px 14px;

  text-align: left;

  font-family: inherit;

  font-size: 15px;

  font-weight: 700;

  line-height: 1.35;

  color: var(--hp-ink, #263c50);

  background: #fff;

  border: 1px solid rgb(38 60 80 / 0.14);

  border-left: 3px solid transparent;

  border-radius: 6px;

  cursor: pointer;

  transition: border-color 0.15s, background 0.15s, color 0.15s;

}



#magtek-home .hp-industries__tab:hover {

  border-color: rgb(38 60 80 / 0.28);

  background: rgb(244 246 248 / 0.9);

}



#magtek-home .hp-industries__tab:focus-visible {

  outline: 2px solid #0b5cab;

  outline-offset: 2px;

}



#magtek-home .hp-industries__tab[aria-selected="true"] {

  border-left-color: var(--hp-red, #d21242);

  background: rgb(210 18 66 / 0.06);

  color: var(--hp-ink, #263c50);

}

#magtek-home .hp-industries__tab-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#magtek-home .hp-industries__tab-inner i {
  flex-shrink: 0;
  width: 1.25em;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1;
  color: #64748b;
  text-align: center;
}

#magtek-home .hp-industries__tab[aria-selected="true"] .hp-industries__tab-inner i {
  color: var(--hp-red, #d21242);
}

#magtek-home .hp-industries__tab-label {
  flex: 1;
  min-width: 0;
}



#magtek-home .hp-industries__panel-wrap {

  position: relative;

  min-height: 360px;

  background: #fff;

  border: 1px solid rgb(38 60 80 / 0.1);

  border-radius: 12px;

  box-shadow: 0 8px 28px rgb(15 23 42 / 0.06);

  overflow: hidden;

}



#magtek-home .hp-industries__panel {

  display: none;

  height: 100%;

}



#magtek-home .hp-industries__panel.is-active {

  display: grid;

  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);

  min-height: 360px;

}



#magtek-home .hp-industries__panel-copy {

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 28px 24px 28px 28px;

}



#magtek-home .hp-industries__panel-copy h3 {

  margin: 0 0 12px;

  font-size: 25px;

  font-weight: 700;

  line-height: 1.25;

  color: var(--hp-ink, #263c50);

}



#magtek-home .hp-industries__panel-copy p {

  margin: 0 0 20px;

  font-size: 18px;

  line-height: 1.65;

  color: var(--hp-ink-muted, #4a5568);

  font-weight: 400;

}



#magtek-home .hp-industries__media {

  position: relative;

  min-height: 200px;

  background: #f4f6f8;

}



#magtek-home .hp-industries__media img {

  display: block;

  width: 100%;

  height: 100%;

  min-height: 360px;

  object-fit: cover;

  object-position: center;

}



#magtek-home .hp-industries__footer {

  margin-top: 24px;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 16px 24px;

}



@media (max-width: 991px) {

  #magtek-home .hp-industries__shell {

    grid-template-columns: 1fr;

    min-height: 0;

  }



  #magtek-home .hp-industries__panel.is-active {

    grid-template-columns: 1fr;

  }



  #magtek-home .hp-industries__media {

    order: -1;

  }



  #magtek-home .hp-industries__media img {

    min-height: 220px;

    max-height: 280px;

  }



  #magtek-home .hp-industries__panel-wrap {

    min-height: 0;

  }

}



@media (max-width: 575px) {

  #magtek-home .hp-industries__nav {

    grid-template-columns: 1fr;

  }



  #magtek-home .hp-industries__tab {

    font-size: 16px;

    padding: 14px 16px;

  }

}



/* Industries selector: stretch the 2x4 tab grid to match the detail card height */
/* Draft: balance the industry selector with the detail card */
#magtek-home .hp-industries__nav {
  align-content: stretch;
  grid-auto-rows: 1fr;
}
#magtek-home .hp-industries__tab {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  font-size: 16px;
}
#magtek-home .hp-industries__tab-inner {
  align-items: center;
  gap: 12px;
}
