.sws-section-switch {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 6px 16px;
  overflow: visible;
  transform: translateY(-28px);
  border: 1px solid rgba(28, 55, 66, .14);
  border-radius: 19px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 34px rgba(16, 47, 59, .07);
  box-sizing: border-box;
}

.sws-section-switch--wide {
  width: min(940px, calc(100% - 40px));
}

.sws-section-switch--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1040px, 100%);
}

.sws-section-switch--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sws-section-switch--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.sws-section-switch--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: min(1180px, calc(100% - 40px));
}

.sws-section-switch--six a {
  padding-right: 10px;
  padding-left: 10px;
  font-size: 14px;
  white-space: nowrap;
}

.sws-section-switch a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #708087;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -.012em;
  line-height: 1.22;
  text-align: center;
  text-decoration: none;
}

.sws-section-switch a::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 2px;
  opacity: 0;
  transform: scaleX(.35);
  border-radius: 2px;
  background: linear-gradient(90deg, #d39a28, #655092);
  transition: opacity .2s ease, transform .2s ease;
}

.sws-section-switch a:hover { color: #655092; }

.sws-section-switch a:is(.is-active, .is-current, [aria-current="page"]) {
  color: #182d36;
}

.sws-section-switch a:is(.is-active, .is-current, [aria-current="page"])::after {
  opacity: 1;
  transform: scaleX(1);
}

.sws-section-switch a span {
  margin-left: 8px;
  color: #655092;
  font-size: 17px;
  font-weight: 400;
}

@media (max-width: 700px) {
  .sws-section-switch {
    width: calc(100% - 26px);
    margin-bottom: 0;
    padding: 5px 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    border-radius: 15px;
  }

  .sws-section-switch--three,
  .sws-section-switch--four,
  .sws-section-switch--five,
  .sws-section-switch--six {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 26px);
    padding: 5px 7px;
    overflow: visible;
  }

  .sws-section-switch--three a,
  .sws-section-switch--four a,
  .sws-section-switch--five a,
  .sws-section-switch--six a {
    min-height: 52px;
    font-size: 13px;
    white-space: normal;
  }

  .sws-section-switch--three a:last-child,
  .sws-section-switch--five a:last-child { grid-column: 1 / -1; }

  .sws-section-switch a {
    min-height: 66px;
    padding: 10px 7px;
    font-size: 13.5px;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
  }

  .sws-section-switch a::after {
    right: 9px;
    left: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sws-section-switch a::after { transition: none; }
}

@media (max-width: 700px) {
  .sws-section-switch--three,
  .sws-section-switch--four,
  .sws-section-switch--five,
  .sws-section-switch--six {
    position: relative;
    display: flex;
    width: calc(100% - 26px);
    padding: 5px 45px 5px 7px;
    overflow-x: auto;
    overflow-y: hidden;
    grid-template-columns: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 45px 0 7px;
  }

  .sws-section-switch--three::-webkit-scrollbar,
  .sws-section-switch--four::-webkit-scrollbar,
  .sws-section-switch--five::-webkit-scrollbar,
  .sws-section-switch--six::-webkit-scrollbar { display: none; }

  .sws-section-switch--three::after,
  .sws-section-switch--four::after,
  .sws-section-switch--five::after,
  .sws-section-switch--six::after {
    content: "→";
    position: sticky;
    z-index: 4;
    right: -38px;
    display: flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 9px -37px 9px 3px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(103, 80, 146, .25);
    border-radius: 50%;
    color: #675092;
    background: rgba(255, 255, 255, .96);
    box-shadow: -10px 0 20px rgba(255, 255, 255, .98);
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
  }

  .sws-section-switch--three.is-at-end::after,
  .sws-section-switch--four.is-at-end::after,
  .sws-section-switch--five.is-at-end::after,
  .sws-section-switch--six.is-at-end::after { content: "←"; }

  .sws-section-switch--three a,
  .sws-section-switch--four a,
  .sws-section-switch--five a,
  .sws-section-switch--six a {
    flex: 0 0 min(64vw, 230px);
    min-width: 0;
    min-height: 52px;
    padding: 10px 12px;
    scroll-snap-align: start;
    white-space: normal;
  }

  .sws-section-switch--three a:last-child,
  .sws-section-switch--five a:last-child { grid-column: auto; }
}
