/* Widget: Page Tabs */

.sla-tabs {
  background: #e6e7e8;
}

.sla-tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.sla-tabs__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 6px;
  text-align: center;
  background: #e6e7e8;
}

/* 1px white lines on both outer edges and between the tabs, as on the original site:
   the list shrinks to fit its tabs, has a white background, and leaves 1px gaps for it to show through. */
.sla-tabs__list {
	width: fit-content;
	max-width: 100%;
	gap: 1px;
	padding: 0 1px;
	background: #fff;
}

/* Phones: stack the tabs full width, with 1px white lines above, between and below. */
@media (max-width: 767.98px) {
	.sla-tabs__list {
		flex-direction: column;
		width: 100%;
		padding: 1px 0;
	}
}

.sla-tabs__item.is-active {
  padding-bottom: 19px;
  background: #cce3e3;
  border-bottom: 3px solid #8c959d;
}

.sla-tabs__link {
  padding: 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: #141212;
  white-space: nowrap;
}

.sla-tabs__link:hover,
.sla-tabs__link:focus {
  color: var(--sla-blue);
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .sla-tabs__list {
    flex-direction: column;
  }

  .sla-tabs__item + .sla-tabs__item {
    border-top: 1px solid #fff;
    border-left: 0;
  }

  .sla-tabs__link {
    white-space: normal;
  }
}
