/* ==========================================================================
   PM FAQ
   Mobile-first: base = stacked, @media (min-width: 960px) = image left / questions right
   ========================================================================== */

.pm-faq {
  background-color: rgb(var(--color-background));
}

.pm-faq__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.pm-faq__image {
  width: 100%;
  height: 320px;
}

.pm-faq__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-faq__image-placeholder {
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.pm-faq__content {
  display: flex;
  flex-direction: column;
  padding: 48px 28px;
}

.pm-faq__heading {
  flex-shrink: 0;
  margin: 0 0 24px;
  font-family: "Fliege Mono", monospace;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgb(var(--color-text));
  font-size: 32px;
  line-height: 1.05;
}

.pm-faq__list {
  display: flex;
  flex-direction: column;
}

.pm-faq__item {
  border-block-start: 1px solid rgba(var(--color-text), 0.25);
}

.pm-faq__item:last-child {
  border-block-end: 1px solid rgba(var(--color-text), 0.25);
}

.pm-faq__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

.pm-faq__summary::-webkit-details-marker {
  display: none;
}

.pm-faq__title {
  flex: 1;
  margin: 0;
  font-family: "Fliege Mono", monospace;
  font-weight: 700;
  color: rgb(var(--color-text));
  font-size: 14px;
  line-height: 1.3;
}

.pm-faq__fold {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(var(--color-text), 0.4);
  border-radius: 50%;
  color: rgb(var(--color-text));
}

.pm-faq__item details .pm-faq__fold--open {
  display: flex;
}

.pm-faq__item .pm-faq__fold--close {
  display: none;
}

.pm-faq__item[open] .pm-faq__fold--open {
  display: none;
}

.pm-faq__item[open] .pm-faq__fold--close {
  display: flex;
}

.pm-faq__answer-grid {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms ease;
}

.pm-faq__item[open] .pm-faq__answer-grid {
  grid-template-rows: 1fr;
}

.pm-faq__answer {
  min-height: 0;
  overflow: hidden;
  padding: 0 0 20px;
  font-family: "Fliege Mono", monospace;
  color: rgb(var(--color-text));
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.pm-faq__item[open] .pm-faq__answer {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 280ms ease 80ms,
    transform 280ms ease 80ms;
}

.pm-faq__answer p {
  margin: 0 0 12px;
}

.pm-faq__answer p:last-child {
  margin-bottom: 0;
}

/* ── Desktop (≥ 960px) ───────────────────────────────────────────────────── */

@media (min-width: 960px) {
  .pm-faq__inner {
    flex-direction: row;
    height: 640px;
  }

  .pm-faq__image {
    width: 50%;
    height: 100%;
  }

  .pm-faq__content {
    width: 50%;
    height: 100%;
    padding: 0px 100px 80px 60px;
    overflow: hidden;
  }

  .pm-faq__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 20px;
    margin-right: -20px;
  }

  .pm-faq__heading {
    font-size: 56px;
  }

  .pm-faq__title {
    font-size: 16px;
  }

  .pm-faq__answer {
    font-size: 14px;
  }
}
