.tabs-container .tabs {
  display: flex;
  position: relative;
  margin: 0 0 40px 0;
  overflow-x: scroll;
  width: 100%;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.tabs-container .tabs::-webkit-scrollbar {
  display: none;
}

.tabs-container .tabs::after {
  content: '';
  border-bottom: 3px solid var(--light-gray);
  position: absolute;
  width: var(--tabs-width);
  bottom: 0;
  min-width: 100vw;
}

.bg-green .tabs-container .tabs::after {
  border-bottom-color:var(--under-the-elms);
}

.bg-trillium .tabs-container .tabs::after {
  border-bottom-color:var(--white);
}

.tabs-container .tabs button {
  font-family: var(--text-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  vertical-align: middle;
  padding: 20px;
  background: none;
  border-bottom: 3px solid var(--light-gray);
  position: relative;
  transition:var(--transition-default);
}

div.layout:has(section.tabs-container) {
  width: 100%;
  padding: 60px 0;
}

.tabs-container .tabs button:first-of-type {
  scroll-snap-align: start;
  margin-left: 60px;
}

.tabs-container .tabs button:last-of-type {
  scroll-snap-align: end;
  margin-right: 60px;
}

.tabs-container .tab-content .content-details {
  display: none;
  border: none;
  background-color: var(--trillium);
  margin: 0;
}

.bg-trillium .tabs-container .tab-content .content-details {
  background-color:var(--white);
}

.tabs-container .tab-content .content-details summary {
  list-style: none;
  padding: 22px 20px;
  border-bottom: 3px solid var(--trillium);
}

.bg-trillium .tabs-container .tab-content .content-details summary {
  border-bottom-color:var(--white);
}

.tabs-container .tab-content.program-expanders > div {
  display: flex;
  flex-direction: column;
  row-gap: 30px;
  margin: 0 15px;
}

.tabs-container .tabs button:not(.active) {
  color: var(--putnam);
}

.bg-green .tabs-container .tabs button:not(.active) {
  color:var(--sycamore);
}

.bg-moss .tabs-container .tabs button:not(.active) {
  color:var(--cutler);
}

.tabs-container .tabs button.active {
  border-bottom: 3px solid var(--marigold);
  z-index: 100;
}

.bg-green .tabs-container .tabs button.active {
  border-bottom-color:var(--moss);
}

.bg-moss .tabs-container .tabs button.active {
  border-bottom-color:var(--cutler);
}

.tabs-container .tab-content .content-details summary i {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  color: var(--marigold);
}

.bg-green .tabs-container .tab-content .content-details summary i,
.bg-moss .tabs-container .tab-content .content-details summary i {
  color:var(--cutler);
}

.tabs-container .tab-content .content-details.active {
  display: block;
}

.tabs-container .tab-content .content-details .details-body {
  background-color: var(--light-gray);
  padding: 15px 20px 20px;
}

.tabs-container .tab-content .content-details .details-body *:not(a, button) {
  color:var(--black);
}

.tabs-container .tab-content .content-details .details-body a {
  color:var(--cutler);
}

.tabs-container .tabs button:not(.active):hover,
.tabs-container .tabs button:not(.active):focus {
  background-color: var(--light-gray);
}

.bg-green .tabs-container .tabs button:not(.active):hover,
.bg-green .tabs-container .tabs button:not(.active):focus {
  background-color:var(--under-the-elms);
}

.bg-trillium .tabs-container .tabs button:not(.active):hover,
.bg-trillium .tabs-container .tabs button:not(.active):focus {
  background-color:var(--white);
}

.tabs-container .tab-content.content-text-editor > div.active {
  margin: 0 30px 30px;
}

.tabs-container .tab-content.content-text-editor > div:not(.active) {
  display: none;
}

.tabs-container .tab-content .content-details summary::-webkit-details-marker {
  display: none;
}

.tabs-container .tab-content .content-details summary .content-label {
  display: flex;
  justify-content: space-between;
  color: var(--under-the-elms);
  font-family: var(--text-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 100%;
}

.tabs-container .tab-content .content-details:hover summary,
.tabs-container .tab-content .content-details.expanded summary {
  background-color: var(--under-the-elms);
  border-bottom: 3px solid var(--web-marigold);
}

.bg-green .tabs-container .tab-content .content-details:hover summary,
.bg-green .tabs-container .tab-content .content-details.expanded summary {
  border-bottom-color:var(--moss);
}

.bg-moss .tabs-container .tab-content .content-details:hover summary,
.bg-moss .tabs-container .tab-content .content-details.expanded summary {
  border-bottom-color:var(--teal);
}

.tabs-container .tab-content .content-details .details-body h1,
.tabs-container .tab-content .content-details .details-body h2,
.tabs-container .tab-content .content-details .details-body h3,
.tabs-container .tab-content .content-details .details-body h4,
.tabs-container .tab-content .content-details .details-body h5,
.tabs-container .tab-content .content-details .details-body h6 {
  color: var(--black);
}

.tabs-container .tab-content .content-details:hover summary i,
.tabs-container .tab-content .content-details.expanded summary i {
  color: var(--web-marigold);
}

.bg-green .tabs-container .tab-content .content-details:hover summary i,
.bg-green .tabs-container .tab-content .content-details.expanded summary i {
  color:var(--moss);
}

.bg-moss .tabs-container .tab-content .content-details:hover summary i,
.bg-moss .tabs-container .tab-content .content-details.expanded summary i {
  color:var(--teal);
}

.tabs-container .tab-content .content-details summary .content-label span {
  color: var(--under-the-elms);
  font-family: var(--text-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 100%;
  margin-right: 20px;
}

.tabs-container .tab-content .content-details .details-body:first-child {
  padding-top: 0;
  margin-top: 0;
}

.tabs-container .tab-content .content-details:hover summary .content-label span,
.tabs-container .tab-content .content-details.expanded summary .content-label span {
  color: var(--white);
}

@media only screen and (min-width: 768px) {
  .tabs-container .tabs::after {
    width: 100%;
  }

  div.layout:has(section.tabs-container) {
    width: unset;
    padding: 60px 30px;
  }

  .tabs-container .tabs button:first-of-type {
    margin-left: 0;
  }

  .tabs-container .tabs button:last-of-type {
    margin-right: 0;
  }

  .tabs-container .tab-content.program-expanders > div {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 30px;
    margin: 0;
  }

  .tabs-container .tab-content.program-expanders .content-details.active {
    width: calc(50% - 15px);
    align-self: flex-start;
  }
}

@media only screen and (min-width: 1140px) {
  .tabs-container .tab-content.program-expanders .content-details.active {
    width: calc(33.333% - 15px);
  }

  .tabs-container .tab-content.program-expanders .content-details.active:nth-of-type(3n + 2) {
    width: calc(33.333% - 30px);
  }
}
