/*
  UNBOND · FAQ chat refinement · 05.10.2026
  Scope: #faq only. Existing native details, keyboard behavior and tracking remain untouched.
  Fonts: existing Space Grotesk and Space Mono; no new font or global token.
*/

html body #faq .faq-layout {
  width: 100%;
  max-width: var(--page);
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

html body #faq .faq-heading {
  position: static;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

html body #faq .faq-heading h2 {
  margin-inline: auto;
}

html body #faq .faq-list {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html body #faq .faq-list details {
  overflow: visible;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #faq .faq-list details:last-child {
  border-bottom: 0 !important;
}

/* Question: a technical, right-aligned chat prompt. */
html body #faq .faq-list summary {
  position: relative;
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) 28px;
  grid-template-areas: "number copy chevron";
  gap: 10px;
  width: min(72%, 580px);
  min-height: 62px !important;
  margin-left: auto;
  padding: 14px 14px 14px 16px !important;
  border: 1px solid rgba(233, 233, 228, .20);
  border-radius: 5px !important;
  background: #1b2026 !important;
  box-shadow: none !important;
  color: #f4f1ea;
  cursor: pointer;
  list-style: none;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

html body #faq .faq-list summary::-webkit-details-marker {
  display: none;
}

html body #faq .faq-list summary:hover,
html body #faq .faq-list details[open] summary {
  border-color: rgba(125, 38, 63, .90) !important;
  background: #20242c !important;
}

html body #faq .faq-list summary:focus-visible {
  outline: 3px solid var(--unbond-teal);
  outline-offset: 3px;
  scroll-margin-top: 100px;
}

html body #faq .faq-number {
  display: inline-flex;
  grid-area: number;
  align-items: start;
  justify-content: flex-start;
  padding-top: 2px;
  color: var(--unbond-teal) !important;
  font-family: "Space Mono", ui-monospace, monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  line-height: 1.2;
}

html body #faq .faq-copy {
  display: grid;
  grid-area: copy;
  gap: 5px;
  min-width: 0;
}

html body #faq .faq-kicker {
  color: #aeb5c0 !important;
  font-family: "Space Mono", ui-monospace, monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .055em !important;
  line-height: 1.2;
}

html body #faq .faq-kicker::before {
  content: "DU FRAGST · ";
  color: var(--unbond-teal);
}

html body #faq .faq-question {
  min-height: 0 !important;
  padding: 0 !important;
  color: #f4f1ea !important;
  font-family: "Space Grotesk", Poppins, system-ui, sans-serif !important;
  font-size: .96rem !important;
  font-weight: 500 !important;
  line-height: 1.38 !important;
}

html body #faq .faq-chevron {
  grid-area: chevron;
  width: 28px;
  height: 28px;
  align-self: center;
  border: 1px solid rgba(233, 233, 228, .26) !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #faq .faq-chevron::before,
html body #faq .faq-chevron::after {
  width: 10px;
  background: #f4f1ea !important;
  transition: transform 160ms ease-out;
}

html body #faq .faq-list details[open] .faq-chevron {
  border-color: var(--unbond-teal) !important;
  background: rgba(21, 154, 130, .10) !important;
}

html body #faq .faq-list details[open] .faq-chevron::before,
html body #faq .faq-list details[open] .faq-chevron::after {
  background: var(--unbond-teal) !important;
}

/* Answer: broader, left-aligned and quietly revealed by native details state. */
html body #faq .faq-answer {
  display: grid !important;
  grid-template-rows: 0fr;
  width: min(88%, 700px);
  margin: 0 auto 0 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  background: transparent !important;
  opacity: 0;
  transition: grid-template-rows 190ms ease-out, opacity 160ms ease-out, margin-top 160ms ease-out;
}

html body #faq .faq-answer-inner {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: hidden;
  padding: 0 16px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 5px;
  background: #111821;
}

html body #faq .faq-list details[open] .faq-answer {
  grid-template-rows: 1fr;
  margin-top: 8px !important;
  opacity: 1;
}

html body #faq .faq-list details[open] .faq-answer-inner {
  padding: 15px 16px 16px;
  border-color: rgba(21, 154, 130, .46);
  border-left-color: var(--unbond-teal);
}

html body #faq .faq-answer-label {
  color: var(--unbond-teal);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.2;
}

html body #faq .faq-answer p {
  margin: 0 !important;
  color: #e4e6e9 !important;
  font-size: .96rem !important;
  line-height: 1.62 !important;
}

html body #faq .faq-answer a {
  color: var(--unbond-teal) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

html body #faq .faq-answer a:focus-visible {
  outline: 2px solid var(--unbond-teal);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  html body #faq .faq-layout {
    gap: 24px;
  }

  html body #faq .faq-heading {
    max-width: none;
  }

  html body #faq .faq-heading h2 {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  html body #faq .faq-list {
    gap: 12px;
  }

  html body #faq .faq-list summary {
    width: 84%;
    min-height: 58px !important;
    padding: 13px 12px 13px 13px !important;
  }

  html body #faq .faq-answer {
    width: 100%;
  }

  html body #faq .faq-answer-inner {
    padding-inline: 14px;
  }

  html body #faq .faq-list details[open] .faq-answer-inner {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #faq .faq-list summary,
  html body #faq .faq-answer,
  html body #faq .faq-chevron::before,
  html body #faq .faq-chevron::after {
    transition: none !important;
  }
}
