/**
 * The FAQ page: the accordion. Everything else comes from base.css.
 */

.cs-faq {
  --plus-bar: 13px;
  --plus-thick: 2px;
}

/* base.css centres the section title's siblings tightly; the FAQ intro wants
   the same breathing room the shop header has. */
.cs-page.cs-faq .sec-title { margin-block: var(--space-2); }

/* ── accordion ──────────────────────────────────────────── */
.cs-faq .acc { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; }

.cs-faq .acc-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cs-faq .acc-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
  padding: var(--space-5);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--color-text);
}

/* Drop the native disclosure triangle; the plus mark replaces it. */
.cs-faq .acc-btn::-webkit-details-marker { display: none; }
.cs-faq .acc-btn::marker { content: ""; }

.cs-faq .acc-btn:hover { background: var(--color-accent-100); }

.cs-faq .acc-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--mark-size);
  height: var(--mark-size);
  flex: none;
  border-radius: 999px;
  background: var(--color-accent-200);
}

.cs-faq .plus-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--plus-bar);
  height: var(--plus-bar);
}

.cs-faq .plus-h {
  width: var(--plus-bar);
  height: var(--plus-thick);
  border-radius: 999px;
  background: var(--color-accent-800);
}

.cs-faq .plus-v {
  width: var(--plus-thick);
  height: var(--plus-bar);
  border-radius: 999px;
  background: var(--color-accent-800);
  margin-left: calc(var(--plus-bar) / -2 - var(--plus-thick) / 2);
  transition: opacity 120ms ease;
}

/* Open panels show a minus. */
.cs-faq .acc-item[open] .plus-v { opacity: 0; }

.cs-faq .acc-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0 var(--space-5) var(--space-5);
  max-width: 66ch;
}

.cs-faq .acc-panel p {
  font-size: var(--fs-body);
  margin: 0;
  color: var(--color-text);
}

.cs-faq .acc-panel a { color: var(--color-accent-700); text-decoration: underline; }

.cs-faq .acc-panel ul,
.cs-faq .acc-panel ol { margin: 0; padding-left: var(--space-5); font-size: var(--fs-body); }

@media (max-width: 560px) {
  .cs-faq .acc-btn { padding: var(--space-4); gap: var(--space-3); }
  .cs-faq .acc-panel { padding: 0 var(--space-4) var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-faq .plus-v { transition: none; }
}
