/* Figma node: 5453:24344 — Iceberg accordion cards */

.iceberg-av {
  --iav-transition-duration: 320ms;
  --iceberg-av-card-fill: rgba(212, 212, 212, 0.1);
  --iceberg-av-card-border: linear-gradient(131deg, rgba(189, 189, 189, 0.5) 0%, rgba(255, 255, 255, 0.1) 53%);
  --iceberg-av-card-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  --iceberg-av-layout-gap: 24px;
  --iceberg-av-card-gap: 16px;
  --iceberg-av-card-radius: 12px;
  --iceberg-av-visual-radius: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  position: relative;
}

.iceberg-av__list {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Figma: 12px padding, 12px radius, Elevation 2, glassmorphic fill */
.iceberg-av__item {
  width: 100%;
  position: relative;
  border: 1px solid rgba(189, 189, 189, 0.35);
  border-radius: var(--iceberg-av-card-radius);
  backdrop-filter: blur(17.5px);
  -webkit-backdrop-filter: blur(17.5px);
  background: var(--iceberg-av-card-fill);
  box-shadow: var(--iceberg-av-card-shadow);
  overflow: hidden;
  padding: 12px;
}

/* Figma: Stroke glass light — 131deg, 3px gradient border */
.iceberg-av__item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--iceberg-av-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.iceberg-av__trigger {
  cursor: pointer;
  transition: background 0.25s ease;
  border-radius: 8px;
}

.iceberg-av__trigger:hover,
.iceberg-av__trigger:focus-within {
  background: rgba(255, 255, 255, 0.15);
}

body.ds-2025 .iceberg-av .iceberg-av__heading {
  margin: 0 0 0 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Figma: row, space-between, title + toggle */
.iceberg-av__question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  text-align: left;
  cursor: pointer;
}

.iceberg-av__question:focus-visible {
  outline: 2px solid #29c8ff;
  outline-offset: 2px;
}

/* Figma: Heading 5/Default — Inter 500 20px/1.4, #252432 */
.iceberg-av__label {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
  color: #252432;
}

/* Figma: +/− text toggle, Inter 500 24px */
.iceberg-av__icon {
  flex-shrink: 0;
  width: 24px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  color: #4A5565;
  user-select: none;
}

.iceberg-av__icon::before {
  content: '+';
}

.iceberg-av__item.is-active .iceberg-av__icon {
  color: #384250;
}

.iceberg-av__item.is-active .iceberg-av__icon::before {
  content: '\2212'; /* − minus sign */
}

/* Figma: body text Inter 400 14px/1.4, Gray 700 #384250 */
.iceberg-av__answer {
  font-family: 'Inter', sans-serif;
  color: #384250;
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--iav-transition-duration) ease;
}

.iceberg-av__answer-inner {
  padding-top: 12px;
  display: grid;
  row-gap: var(--iceberg-av-card-gap);
}

.iceberg-av__answer-inner > * {
  margin: 0;
}

body.ds-2025 .iceberg-av__answer-inner p,
.iceberg-av__answer-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #384250;
}

.iceberg-av__cta {
  margin: 0;
}

/* Figma: Button Link/Large/Light — #00585A Teal 800 */
.iceberg-av__cta .btn {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-teal-800, #00585A);
  height: auto;
  padding: 0;
}

.iceberg-av__cta .btn span[aria-hidden='true'] {
  display: inline-block;
  margin-left: 8px;
}

.iceberg-av__visuals {
  position: relative;
  min-width: 0;
  aspect-ratio: 39 / 38;
}

.iceberg-av__visual {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--iceberg-av-visual-radius);
  box-shadow: var(--iceberg-av-card-shadow);
  background: var(--color-white, #FFFFFF);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  will-change: opacity;
}

.iceberg-av__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iceberg-av__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iceberg-av__custom-html {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iceberg-av__custom-html > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.iceberg-av.has-visual .iceberg-av__visual.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .iceberg-av__question {
    align-items: center;
  }

  .iceberg-av__label {
    font-size: 16px;
    line-height: 1.4;
  }

  .iceberg-av__icon {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iceberg-av__answer {
    transition: none;
  }
}
