/* Tabs container — ported from CMS11 _tabs.scss for career pages */

body.career-template .tabs__list {
  display: flex;
  overflow-x: auto;
  padding: 0.5rem 0;
}

@media screen and (min-width: 48em) {
  body.career-template .tabs__list {
    padding: 0.5rem 2rem;
  }
}

@media screen and (min-width: 64em) {
  body.career-template .tabs__list {
    padding: 0.5rem 2rem;
  }

  body.career-template .tabs__list.-align-center {
    justify-content: center;
  }

  body.career-template .tabs__list.-align-right {
    justify-content: flex-end;
  }
}

body.career-template .tabs .tab {
  display: block;
  text-decoration: none;
  padding: 0.5rem 0;
  margin: 0 1.5rem;
  white-space: nowrap;
  color: #121212;
  position: relative;
}

body.career-template .tabs .tab:first-child {
  padding-left: 0;
  margin-left: 0;
}

body.career-template .tabs .tab:hover::after,
body.career-template .tabs .tab[aria-selected='true']::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #083a70;
  position: absolute;
  left: 0;
  bottom: 0.25rem;
}

body.career-template .tabs .tab[aria-selected='true'] {
  font-weight: bold;
}

@media screen and (min-width: 48em) {
  body.career-template .tabs {
    padding: 2rem 0;
  }
}

body.career-template .tabs .list-grid__header {
  padding: 0 1.25rem;
  margin-bottom: 0;
}

@media screen and (min-width: 64em) {
  body.career-template .tabs .list-grid__header {
    padding: 0 2rem;
  }
}

@media screen and (max-width: 47.9375em) {
  body.career-template .tabs.-withAccordion .tabs__list {
    display: none;
  }
}

body.career-template .tabs .panel__trigger {
  appearance: none;
  border: 0;
  background: rgba(6, 46, 88, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: bold;
  padding: 1.5rem 1.25rem 1.5rem 1.25rem;
  position: relative;
  cursor: pointer;
}

body.career-template .tabs .panel__trigger svg {
  flex-shrink: 0;
}

body.career-template .tabs .panel__trigger::after {
  content: '';
  display: block;
  width: calc(100% - 2.5rem);
  height: 1px;
  background: #ffffff;
  position: absolute;
  bottom: 0;
  left: 1.25rem;
}

@media screen and (min-width: 48em) {
  body.career-template .tabs .panel__trigger {
    display: none;
  }
}

body.career-template .tabs .panel:last-child .panel__trigger::after,
body.career-template .tabs .panel:not([hidden]) .panel__trigger::after {
  display: none;
}

body.career-template .tabs .panel__content > div {
  padding: 2rem 1.25rem;
}

body.career-template .tabs .panel__content .wysiwyg {
  padding: 0;
}

@media screen and (min-width: 48em) {
  body.career-template .tabs .panel__content > div {
    padding: 2rem;
  }
}

@media screen and (min-width: 64em) {
  body.career-template .tabs .panel__content > div {
    padding: 2rem 2rem;
  }
}

@media screen and (max-width: 47.9375em) {
  body.career-template .tabs.-withAccordion .panel__content {
    max-height: fit-content;
    transition: max-height 0.3s;
    overflow: hidden;
  }

  body.career-template .tabs.-withAccordion .panel__trigger svg {
    transform: rotate(180deg);
  }

  body.career-template .tabs.-withAccordion .panel[hidden] {
    display: block;
  }

  body.career-template .tabs.-withAccordion .panel[hidden] .panel__content {
    max-height: 0;
    overflow: hidden;
  }

  body.career-template .tabs.-withAccordion .panel[hidden] .panel__trigger svg {
    transform: none;
  }
}

body.career-template .tabs .disclaimer {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  padding-left: 2rem;
}
