/* FAQ — a single reading column with the secondary questions in a modal. */
.faq .faq-title-wrap {
  display: block;
  margin-bottom: clamp(34px, 4vw, 52px);
}

.faq .faq-list {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 0 auto;
  border-top: 2px solid var(--ink);
  border-right: 0;
  border-left: 0;
}

.faq .faq-list details {
  padding: 0;
  border-right: 0;
  border-bottom: 1px solid var(--ink);
}

.faq .faq-list summary {
  padding: 22px 62px 22px 0;
  font-size: 17px;
}

.faq .faq-list details p {
  max-width: 820px;
  padding: 0 62px 26px 0;
  color: #62625f;
  font-size: 15px;
  line-height: 1.95;
}

.faq-more-button {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  min-height: 56px;
  margin: 30px auto 0;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-more-button > span {
  font-size: 16px;
  font-weight: 800;
}

.faq-more-button small {
  color: var(--white);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .12em;
}

.faq-more-button i {
  color: var(--accent);
  font: 400 28px/1 var(--display);
}

.faq-more-button:hover,
.faq-more-button:focus-visible {
  background: var(--accent-panel);
}

.faq-more-button:focus-visible,
.faq-modal-close:focus-visible,
.faq-modal-scroll:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

body.faq-modal-open {
  overflow: hidden;
}

.faq-modal {
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}

.faq-modal::backdrop {
  background: rgba(9, 9, 9, .72);
  backdrop-filter: blur(4px);
}

.faq-modal-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100dvh - 48px);
}

.faq-modal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  padding: clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.faq-modal-header .section-label {
  margin-bottom: 18px;
  font-size: 12px;
}

.faq-modal-header h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
}

.faq-modal-header p {
  margin: 16px 0 0;
  color: #62625f;
  font-size: 14px;
}

.faq-modal-close {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.faq-modal-close span {
  font: 400 32px/1 var(--display);
}

.faq-modal-close:hover {
  background: var(--ink);
  color: var(--white);
}

.faq-modal-scroll {
  min-height: 0;
  padding: 0 clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.faq-modal .faq-list--modal {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
}

.faq-modal .faq-list--modal details {
  padding: 0;
  border-right: 0;
  border-bottom: 1px solid var(--ink);
}

.faq-modal .faq-list--modal summary {
  position: relative;
  padding: 22px 62px 22px 0;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-modal .faq-list--modal summary::-webkit-details-marker {
  display: none;
}

.faq-modal .faq-list--modal summary::after {
  position: absolute;
  right: 10px;
  content: "+";
  font: 400 28px/1 monospace;
}

.faq-modal .faq-list--modal details[open] summary::after {
  content: "−";
}

.faq-modal .faq-list--modal details p {
  max-width: 820px;
  margin: 0;
  padding: 0 62px 26px 0;
  color: #62625f;
  font-size: 15px;
  line-height: 1.95;
}

@media (max-width: 760px) {
  .faq .faq-list {
    width: 100%;
  }

  .faq .faq-list summary,
  .faq-modal .faq-list--modal summary {
    padding: 20px 48px 20px 0;
    font-size: 16px;
  }

  .faq .faq-list details p,
  .faq-modal .faq-list--modal details p {
    padding-right: 12px;
    font-size: 15px;
  }

  .faq-modal {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .faq-modal-frame {
    max-height: calc(100dvh - 24px);
  }

  .faq-modal-header {
    gap: 16px;
    padding: 22px 18px;
  }

  .faq-modal-header h2 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .faq-modal-close {
    width: 46px;
    height: 46px;
  }

  .faq-modal-scroll {
    padding: 0 18px 24px;
  }
}
