/* ─── Wrapper ─── */
.tp-faq {
  padding: 80px 0;
}
.tp-faq .container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Header ─── */
.tp-faq__header {
  text-align: center;
  margin-bottom: 56px;
}
.tp-faq__label {
  font-family: var(--wp--preset--font-family--fw-mono, 'JetBrains Mono', monospace);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--theme-palette-color-1, #C8922A);
  text-transform: uppercase;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tp-faq__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--theme-palette-color-1, #C8922A);
}
.tp-faq h2 {
  font-family: var(--wp--preset--font-family--fw-serif, 'Lora', serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 16px;
}
.tp-faq h2 em {
  font-style: italic;
  color: var(--theme-palette-color-1, #C8922A);
}
.tp-faq .section-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Layout ─── */
.tp-faq .faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

/* ============ LIGHT THEME (default) ============ */
.tp-faq.is-theme-light {
  background: var(--theme-palette-color-7, #FAF9F6);
  color: var(--theme-palette-color-3, #2D2D2D);
}
.tp-faq.is-theme-light h2 {
  color: var(--theme-palette-color-3, #2D2D2D);
}
.tp-faq.is-theme-light .section-subtitle {
  color: var(--theme-palette-color-4, #555555);
}

.tp-faq.is-theme-light .faq-container {
  gap: 16px;
}
.tp-faq.is-theme-light .faq-item {
  background: var(--theme-palette-color-8, #FFFFFF);
  border: 1px solid var(--theme-palette-color-5, #E8E4DE);
  border-radius: 12px;
  padding: 30px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tp-faq.is-theme-light .faq-item:hover {
  border-color: var(--theme-palette-color-1, #C8922A);
  box-shadow: 0 4px 16px rgba(200, 146, 42, 0.08);
}
.tp-faq.is-theme-light .faq-item h3 {
  font-family: var(--wp--preset--font-family--fw-serif, 'Lora', serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--theme-palette-color-3, #2D2D2D);
}
.tp-faq.is-theme-light .faq-answer {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--theme-palette-color-4, #555555);
}

/* Accordion (light) */
.tp-faq.is-theme-light .is-accordion .faq-item {
  padding: 0;
  overflow: hidden;
}
.tp-faq.is-theme-light .faq-summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--fw-serif, 'Lora', serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--theme-palette-color-3, #2D2D2D);
  padding: 22px 56px 22px 28px;
  position: relative;
  user-select: none;
  transition: background 0.2s;
}
.tp-faq.is-theme-light .faq-summary::-webkit-details-marker { display: none; }
.tp-faq.is-theme-light .faq-summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--wp--preset--font-family--fw-mono, 'JetBrains Mono', monospace);
  font-size: 1.4rem;
  color: var(--theme-palette-color-1, #C8922A);
  line-height: 1;
  transition: transform 0.2s ease;
}
.tp-faq.is-theme-light .faq-item[open] .faq-summary::after { content: '−'; }
.tp-faq.is-theme-light .faq-summary:hover { background: var(--theme-palette-color-6, #F5EEDD); }
.tp-faq.is-theme-light .is-accordion .faq-answer {
  padding: 0 28px 24px 28px;
  border-top: 1px solid var(--theme-palette-color-5, #E8E4DE);
  padding-top: 18px;
}

/* ============ DARK THEME ============ */
.tp-faq.is-theme-dark {
  background: var(--theme-palette-color-3, #2D2D2D);
  color: var(--theme-palette-color-7, #FAF9F6);
}
.tp-faq.is-theme-dark h2 {
  color: var(--theme-palette-color-7, #FAF9F6);
}
.tp-faq.is-theme-dark .section-subtitle {
  color: rgba(250, 249, 246, 0.7);
}

.tp-faq.is-theme-dark .faq-container { gap: 0; }
.tp-faq.is-theme-dark .faq-item {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 22px 0;
}
.tp-faq.is-theme-dark .faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-faq.is-theme-dark .faq-item h3 {
  font-family: var(--wp--preset--font-family--fw-serif, 'Lora', serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: var(--theme-palette-color-7, #FAF9F6);
}
.tp-faq.is-theme-dark .faq-answer {
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(250, 249, 246, 0.78);
}

/* Accordion (dark) */
.tp-faq.is-theme-dark .is-accordion .faq-item {
  padding: 22px 0;
}
.tp-faq.is-theme-dark .faq-summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--fw-serif, 'Lora', serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--theme-palette-color-7, #FAF9F6);
  padding: 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  transition: color 0.2s;
  user-select: none;
}
.tp-faq.is-theme-dark .faq-summary::-webkit-details-marker { display: none; }
.tp-faq.is-theme-dark .faq-summary::after {
  content: '+';
  font-family: var(--wp--preset--font-family--fw-mono, 'JetBrains Mono', monospace);
  font-size: 1.4rem;
  color: var(--theme-palette-color-1, #C8922A);
  font-weight: 400;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.tp-faq.is-theme-dark .faq-item[open] .faq-summary::after { content: '−'; }
.tp-faq.is-theme-dark .faq-item[open] .faq-summary,
.tp-faq.is-theme-dark .faq-summary:hover { color: var(--theme-palette-color-1, #C8922A); }
.tp-faq.is-theme-dark .is-accordion .faq-answer {
  padding-top: 18px;
  border-top: none;
  max-width: 95%;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .tp-faq { padding: 64px 0; }
  .tp-faq .container { padding: 0 22px; }
  .tp-faq h2 { font-size: 1.6rem; }
  .tp-faq.is-theme-light .faq-summary,
  .tp-faq.is-theme-light .faq-item h3 { font-size: 1rem; }
  .tp-faq.is-theme-dark .faq-summary,
  .tp-faq.is-theme-dark .faq-item h3 { font-size: 1rem; }
}
