/* Article page styles — uses CSS variables from the pomo theme system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0a;
  --surface:     #141414;
  --surface-2:   #1a1a1a;
  --border:      rgba(255,255,255,0.06);
  --text:        #ececec;
  --text-2:      rgba(255,255,255,0.5);
  --text-3:      rgba(255,255,255,0.25);
  --accent:      #ffffff;
  --accent-dim:  rgba(255,255,255,0.12);
}

[data-theme="violet"] { --accent: #a78bfa; --accent-dim: rgba(167,139,250,0.12); }
[data-theme="blue"]   { --accent: #60a5fa; --accent-dim: rgba(96,165,250,0.12); }
[data-theme="green"]  { --accent: #4ade80; --accent-dim: rgba(74,222,128,0.12); }
[data-theme="orange"] { --accent: #fb923c; --accent-dim: rgba(251,146,60,0.12); }

[data-appearance="light"] {
  --bg:          #f5f5f5;
  --surface:     #ffffff;
  --surface-2:   #ebebeb;
  --border:      rgba(0,0,0,0.08);
  --text:        #1a1a1a;
  --text-2:      rgba(0,0,0,0.55);
  --text-3:      rgba(0,0,0,0.3);
  --accent:      #1a1a1a;
  --accent-dim:  rgba(0,0,0,0.08);
}

[data-appearance="light"][data-theme="white"] {
  --accent: #1a1a1a; --accent-dim: rgba(0,0,0,0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

.article { max-width: 720px; margin: 0 auto; padding: 80px 24px 120px; }

.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-3);
  text-decoration: none; margin-bottom: 40px; transition: color 0.2s;
}
.article-back:hover { color: var(--text-2); }

.article h1 {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.2; margin-bottom: 16px; color: var(--text);
}

.article-meta { font-size: 0.8rem; color: var(--text-3); margin-bottom: 48px; }

.article h2 {
  font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em;
  margin-top: 48px; margin-bottom: 16px; color: var(--text);
}

.article h3 {
  font-size: 1.05rem; font-weight: 600;
  margin-top: 32px; margin-bottom: 12px; color: var(--text);
}

.article p { font-size: 0.95rem; color: var(--text-2); margin-bottom: 20px; }
.article strong { color: var(--text); }

.article ul, .article ol {
  padding-left: 24px; margin-bottom: 20px; color: var(--text-2); font-size: 0.95rem;
}
.article li { margin-bottom: 8px; }

.article a {
  color: var(--text-2); text-decoration: underline;
  text-decoration-color: var(--border); text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.article a:hover { text-decoration-color: var(--text-2); }

.cta-box {
  margin-top: 48px; padding: 32px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; text-align: center;
}
.cta-box p { color: var(--text-2); margin-bottom: 16px; }

.cta-btn {
  display: inline-block; padding: 12px 32px;
  background: var(--accent); color: var(--bg);
  font-weight: 600; font-size: 0.9rem; border-radius: 8px;
  text-decoration: none; transition: opacity 0.2s;
}
.article .cta-btn { color: var(--bg); text-decoration: none; }
.cta-btn:hover { opacity: 0.85; }

@media (max-width: 640px) {
  .article { padding: 60px 16px 80px; }
  .article h1 { font-size: 1.5rem; }
}

/* === Social Proof Bar === */
.social-proof-bar {
  position: sticky; top: 0; z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.social-proof-bar strong { color: var(--text); }

/* === Inline CTA Box === */
.cta-box--inline {
  margin-top: 32px; margin-bottom: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

/* === CTA Sub-text === */
.cta-sub {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* === Article FAQ Section === */
.article-faq { margin-top: 16px; margin-bottom: 32px; }

.article-faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.article-faq-item:hover { border-color: var(--border-hi, var(--border)); }

.article-faq-item summary {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.article-faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.article-faq-item[open] summary::after {
  content: '−';
}
.article-faq-item summary::-webkit-details-marker { display: none; }

.article-faq-item p {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 0;
}