/* meanings-faq.css — FAQ page overrides for tarot-card-meanings-faq.html [FAQ].
   Load after five-card-base.css + five-card-page.css. See AGENTS.md.

   CSS MAP
   [FAQ] FAQ layout, TOC, collapsible items, responsive
*/

/* ==== FAQ layout ==== */
.faq-page #faq-app {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 18px 80px;
}

.faq-page .meanings-seo-static {
  text-align: center;
  margin-bottom: 28px;
}

.faq-page .meanings-seo-static h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 400;
  line-height: 1.2;
}

/* ==== TOC ==== */
.faq-toc {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.faq-toc a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-toc a:hover,
.faq-toc a:focus-visible {
  color: var(--accent-purple);
}

.faq-toc-collapsible {
  display: block;
}

.faq-toc-collapsible summary {
  font-weight: 500;
  cursor: pointer;
  font-size: 15px;
  padding-bottom: 8px;
}

.faq-toc-desktop {
  display: none;
}

@media (min-width: 768px) {
  .faq-toc-collapsible {
    display: none;
  }

  .faq-toc-desktop {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px 18px;
  }

  .faq-toc-desktop li {
    flex: 0 0 auto;
  }
}

/* ==== Intro ==== */
.faq-intro {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 32px;
}

.faq-back {
  margin-top: 40px;
  font-size: 15px;
  opacity: 0.9;
}

/* ==== Sections ==== */
.faq-section {
  margin-bottom: 40px;
}

.faq-section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 400;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==== FAQ items ==== */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.faq-item summary {
  font-family: var(--font-card-name);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
  cursor: pointer;
  padding: 16px 18px;
  list-style: none;
  line-height: 1.45;
}

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

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  text-align: center;
  border-radius: 50%;
  background: rgba(186, 128, 255, 0.14);
  color: var(--accent-purple);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  content: "−";
  background: rgba(186, 128, 255, 0.22);
}

.faq-answer {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  padding: 0 18px 18px;
  margin: 0;
}

.faq-answer a.content-link {
  color: var(--accent-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a.content-link:hover {
  color: #d4a8ff;
}

/* ==== Mobile ==== */
@media (max-width: 767px) {
  .faq-page #faq-app {
    padding: 24px 14px 64px;
  }

  .faq-item summary {
    font-size: 1rem;
    padding: 14px;
  }

  .faq-answer {
    padding: 0 14px 16px;
  }
}
