.text-tabs-section {
  background-color: #f6efdf;
  padding: 48px 24px;
}

.text-tabs-section__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

/* ── Tab card ── */
.text-tabs-section__tab {
  color: #ffffff;
  min-height: 261.7px;
  overflow: hidden;
  padding: 48px;
  position: relative;
}

/* ── Title ── */
.text-tabs-section__title {
  font-family: 'Outfit', 'Arial Narrow', sans-serif;
  font-size: clamp(2rem, 3.33vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.873;
  margin: 0;
  padding-right: 48px;
  text-transform: uppercase;
}

/* ── Expand panel ── */
.text-tabs-section__panel {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows 320ms ease, margin-top 320ms ease, opacity 260ms ease;
}

.text-tabs-section__panelInner {
  min-height: 0;
  overflow: hidden;
  padding-bottom: 60px;
}

.text-tabs-section__tab.is-open .text-tabs-section__panel {
  grid-template-rows: 1fr;
  margin-top: 40px;
  opacity: 1;
}

/* ── WYSIWYG description ── */
.text-tabs-section__description {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 1.53vw, 1.375rem);
  font-weight: 400;
  line-height: 1.2;
}

.text-tabs-section__description p {
  margin: 0 0 16px;
}

.text-tabs-section__description p:last-child {
  margin-bottom: 0;
}

.text-tabs-section__description strong,
.text-tabs-section__description b {
  font-weight: 700;
}

/* ── Plus/minus icon ── */
.text-tabs-section__icon {
  bottom: 48px;
  display: inline-block;
  height: 33px;
  left: 48px;
  pointer-events: none;
  position: absolute;
  width: 33px;
}

.text-tabs-section__iconLine {
  background-color: #ffffff;
  border-radius: 34px;
  left: 0;
  position: absolute;
  top: calc(50% - 2px);
  transform-origin: center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.text-tabs-section__iconLine--horizontal {
  height: 4px;
  width: 33px;
}

.text-tabs-section__iconLine--vertical {
  height: 4px;
  transform: rotate(90deg);
  width: 33px;
}

.text-tabs-section__tab.is-open .text-tabs-section__iconLine--vertical {
  opacity: 0;
}

/* ── Trigger (full-card click area) ── */
.text-tabs-section__trigger {
  background: transparent;
  border: 0;
  cursor: pointer;
  inset: 0;
  position: absolute;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.text-tabs-section__trigger:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}

.text-tabs-section__srOnly {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ══════════════════════════════════════════
   Mobile (≤ 768px)
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .text-tabs-section {
    padding: 16px 12px;
  }

  .text-tabs-section__grid {
    gap: 4px;
    grid-template-columns: 1fr;
  }

  .text-tabs-section__tab {
    min-height: auto;
    padding: 32px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .text-tabs-section__title {
    flex: 1;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    padding-right: 16px;
    order: 1;
  }

  .text-tabs-section__icon {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    flex-shrink: 0;
    order: 2;
    width: 49px;
    height: 49px;
  }

  .text-tabs-section__panel {
    width: 100%;
    order: 3;
  }

  .text-tabs-section__tab.is-open .text-tabs-section__panel {
    margin-top: 24px;
  }

  .text-tabs-section__panelInner {
    padding-bottom: 0;
  }

  .text-tabs-section__description {
    font-size: 16px;
    line-height: 1.2;
  }
}
