/* ===== ARTICLE / CONTENT-PAGE TEMPLATE =====
   Shared classes used across guide/sound/visual/term/vs-* article pages
   (extracted from the misnamed legacy css/about.css — 2026-07-05).
   Split rationale: these classes are used on 220+ pages, not just
   pages/about.html. Page-specific about.html-only rules stayed behind
   in the trimmed css/about.css.
*/

/* TOC */
.toc { max-width: 480px; }
.toc__list {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toc__list li {
  counter-increment: toc;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toc__list li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.72rem;
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.05em;
  min-width: 24px;
}
.toc__list a {
  color: var(--text);
  font-size: 0.88rem;
}
.toc__list a:hover { color: var(--accent); }

/* SECTION (generic marker, no styling of its own) */
.about-section { }

.prose p { margin-bottom: 1rem; font-size: 0.95rem; }

/* ARTICLE GRID (used across guide/article-style pages) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.about-text p { margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.8; }
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* FAQ answer alias */
.faq-a {
  padding: 0 0 1.2rem;
}
.faq-a p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.faq-a p:last-child { margin-bottom: 0; }

/* DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(139, 124, 248, 0.18);
}
.data-table thead th {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(139, 124, 248, 0.3);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(139, 124, 248, 0.04); }

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 130px; }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item summary {
  padding: 1.2rem 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }

.faq-answer {
  padding: 0 0 1.2rem;
}
.faq-answer p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* CTA */
.cta-section {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(139,124,248,0.08), transparent 70%);
  pointer-events: none;
}
