.mp-tabs {
  --mp-radius: 14px;
  --mp-radius-sm: 10px;
  --mp-curve: #0a0a0a;
  position: relative;
  isolation: isolate;
  padding: 2.5rem 0 0;
  background: #fff;
  overflow: hidden;
}
.mp-tabs__shell {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.75rem, 6vw, 4.25rem);
}
.mp-tabs__curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--mp-curve);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mp-tabs__curve-svg {
  display: block;
  width: 100%;
  height: clamp(5rem, 12vw, 8rem);
}
.mp-tabs__curve-band {
  height: clamp(1.5rem, 3.5vw, 2.75rem);
  background: currentColor;
}
.mp-tabs__nav {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.mp-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  box-sizing: border-box;
  width: max-content;
  max-width: 11.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--mp-radius-sm);
  border: 2px solid var(--color-primary, #00a651);
  background: #fff;
  color: #12151a;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1.2;
}
@media (max-width: 699px) {
  .mp-tabs__tab {
    max-width: calc(50% - 0.35rem);
    font-size: 0.6rem;
    padding: 0.35rem 0.5rem;
  }
}
.mp-tabs__tab:hover { background: rgba(var(--color-primary-rgb), 0.08); }
.mp-tabs__tab.is-active {
  background: var(--color-primary, #00a651);
  color: #fff;
  border-color: var(--color-primary, #00a651);
}
.mp-tabs__tab:focus-visible {
  outline: 2px solid var(--color-primary, #00a651);
  outline-offset: 2px;
}
.mp-tabs__card {
  border: 2px solid var(--color-primary, #00a651);
  border-radius: var(--mp-radius);
  background: #fff;
  overflow: visible;
  position: relative;
  z-index: 2;
  box-shadow: none;
}
.mp-tabs__panel { display: none; overflow: visible; }
.mp-tabs__panel.is-active { display: block; }
.mp-tabs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
  overflow: visible;
  align-items: start;
}
@media (min-width: 900px) {
  .mp-tabs__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
  .mp-tabs__grid--solo { grid-template-columns: 1fr; }
}
.mp-tabs__copy {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .mp-tabs__copy { padding: 1.15rem 1.75rem 1.75rem 2rem; }
}
.mp-tabs__title {
  margin: 0 0 0.85rem;
  color: var(--color-primary, #00a651);
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  text-wrap: balance;
}
.mp-tabs__body {
  color: #2a3140;
  font-size: 0.95rem;
  line-height: 1.65;
}
.mp-tabs__body p { margin: 0 0 0.85rem; }
.mp-tabs__body p:last-child { margin-bottom: 0; }
.mp-tabs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}
.mp-tabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: var(--mp-radius-sm);
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  transition: opacity .2s ease, transform .15s ease;
}
.mp-tabs__btn:hover { opacity: 0.92; }
.mp-tabs__btn--primary {
  background: var(--color-primary, #00a651);
  color: #fff !important;
}
.mp-tabs__btn--dark {
  background: #12151a;
  color: #fff !important;
}
.mp-tabs__media {
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  background-image: none;
  min-height: 220px;
  padding: 0 0.5rem 0;
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.mp-tabs__media::before,
.mp-tabs__media::after {
  content: none !important;
  display: none !important;
}
.mp-tabs__img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: bottom center;
  background: transparent;
  mix-blend-mode: normal;
  clip-path: inset(0 0 30px 0);
  margin-bottom: -30px;
}
@media (min-width: 900px) {
  .mp-tabs__media {
    margin-top: calc(-1 * (2.65rem + 0.85rem + 0.85rem));
    min-height: 0;
    padding: 0 0.75rem 0;
    align-self: end;
  }
  .mp-tabs__img {
    max-height: min(460px, 58vh);
    width: auto;
    max-width: 100%;
  }
}
@media (max-width: 899px) {
  .mp-tabs__media {
    margin-top: -1.25rem;
    order: -1;
  }
  .mp-tabs__img {
    max-height: 260px;
  }
}
@media (max-width: 1023px) {
  .mp-tabs__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px;
    margin: -2px -2px calc(0.85rem - 2px);
  }
  .mp-tabs__nav::-webkit-scrollbar { display: none; }
  .mp-tabs__tab {
    flex: 0 0 auto;
    max-width: none;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .mp-tabs__grid { grid-template-columns: 1fr; }
  .mp-tabs__copy {
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
  }
  .mp-tabs__actions { justify-content: center; }
  .mp-tabs__media {
    order: 1;
    margin-top: 0;
    min-height: 0;
    padding: 0 0.5rem;
    align-self: end;
  }
  .mp-tabs__img {
    width: 100%;
    max-width: 440px;
    max-height: 260px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .mp-tabs__img { max-height: 320px; }
}
