/* ═══════════════════════════════════════════
   CONTENT PAGES — m-session
   Shared styles for About, Contribute,
   FAQ, Privacy pages
   ═══════════════════════════════════════════ */

/* Page hero — clears fixed header */
.page-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-title {
  margin-bottom: 16px;
}
.page-hero .section-body {
  max-width: 620px;
}

/* ═══════════════════════════════════════════
   PROSE — long-form content
   ═══════════════════════════════════════════ */
.prose {
  max-width: 720px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--text-primary);
  margin: 72px 0 20px;
  letter-spacing: -0.01em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 40px 0 12px;
}
.prose p {
  margin-bottom: 20px;
}
.prose ul,
.prose ol {
  margin: 16px 0 20px 24px;
}
.prose li {
  margin-bottom: 8px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-dim);
  transition: text-decoration-color 0.3s;
}
.prose a:hover {
  text-decoration-color: var(--accent);
}
.prose strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   CALLOUT — info/warning box
   ═══════════════════════════════════════════ */
.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 28px 32px;
  margin: 32px 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.callout-warn {
  border-left-color: var(--warm);
}
.callout p {
  margin-bottom: 16px;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout ul {
  margin: 12px 0 16px 20px;
}
.callout li {
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════
   GRID CARDS — reusable card grid
   ═══════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.card {
  background: var(--bg);
  padding: 36px;
  transition: background 0.3s;
}
.card:hover {
  background: var(--bg-elevated);
}
.card-icon {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
}
.card-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.card-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Two-column card grid variant */
.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */
.faq-list {
  margin-top: 48px;
  max-width: 720px;
}
.faq-section-label {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--accent);
  padding: 56px 0 12px;
}
.faq-section-label:first-child {
  padding-top: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  padding: 24px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: color 0.3s;
}
.faq-question:hover {
  color: var(--accent);
}
.faq-chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}
.faq-chevron line {
  stroke: var(--text-tertiary);
  stroke-width: 2;
  stroke-linecap: round;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.85;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 24px;
}

/* ═══════════════════════════════════════════
   FRAMEWORK LIST — for About page
   ═══════════════════════════════════════════ */
.framework-list {
  margin-top: 48px;
}
.framework-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.framework-item:first-child {
  padding-top: 0;
}
.framework-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.framework-tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0.8;
}
.framework-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
}

/* ═══════════════════════════════════════════
   PAGE CTA — bottom call-to-action
   ═══════════════════════════════════════════ */
.page-cta {
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.page-cta .section-body {
  margin: 0 auto 36px;
  text-align: center;
}
.page-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — content pages
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .page-hero {
    padding-top: 120px;
    padding-bottom: 56px;
  }
  .card-grid,
  .card-grid-2 {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .card {
    padding: 28px 24px;
  }
  .prose h2 {
    margin-top: 56px;
  }
  .page-cta {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  .callout {
    padding: 20px 20px;
  }
  .card {
    padding: 24px 20px;
  }
  .faq-question {
    padding: 20px 0;
  }
  .framework-item {
    padding: 24px 0;
  }
  .page-cta {
    padding: 56px 0;
  }
}
