/* ═══ Articles Page CSS ═══ */

.articles-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
}

.articles-hero {
  text-align: center;
  padding: 40px 0 32px;
}
.articles-hero h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.3;
}
.articles-hero p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* TOC */
.articles-toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.articles-toc h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
}
.articles-toc ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.articles-toc li {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.articles-toc li a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  flex: 1;
  padding: 4px 0;
}
.articles-toc li a:hover { color: var(--blue); }
.articles-toc li span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

/* Full article */
.full-article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  background: var(--panel);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.full-article .article-date {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.full-article h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.35;
}
.full-article h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 24px 0 8px;
  color: var(--ink);
}
.full-article .article-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
  font-weight: 500;
}
.full-article p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 14px;
}
.full-article strong {
  font-weight: 800;
  color: var(--ink);
}
.full-article ul, .full-article ol {
  margin: 0 0 14px;
  padding-left: 20px;
}
.full-article li {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: var(--ink);
}
.full-article .article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0;
}
.full-article .article-table th {
  background: #f4f6f8;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  font-size: 12px;
}
.full-article .article-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-disclaimer {
  font-size: 11px !important;
  color: var(--muted) !important;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  margin-top: 16px !important;
}
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.article-footer .patreon-link {
  color: #f1460b;
  font-weight: 700;
  text-decoration: none;
}
.article-footer .back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
.article-footer .patreon-link:hover,
.article-footer .back-link:hover { text-decoration: underline; }

/* Articles CTA */
.articles-cta {
  text-align: center;
  padding: 40px 32px;
  margin: 32px 0;
  background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
  border: 1px solid #f5c6cb;
  border-radius: 16px;
}
.articles-cta h2 { font-size: 22px; font-weight: 900; margin: 0 0 8px; }
.articles-cta p { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.articles-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.articles-cta .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.35); }

/* Category sections */
.cat-section { margin-bottom: 48px; }
.cat-title { font-size: 20px; font-weight: 900; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
.cat-badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.cat-badge.gold { background: #fff7df; color: #946200; }
.cat-badge.purple { background: #f5f0ff; color: #7c3aed; }
.cat-badge.green { background: #e8f6ef; color: #12805c; }
.cat-badge.blue { background: #eff6ff; color: #2563eb; }
.cat-badge.cyan { background: #ecfeff; color: #0891b2; }
.cat-badge.amber { background: #fff7df; color: #d97706; }
.cat-badge.red { background: #fff0ee; color: #dc2626; }
.cat-desc { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.more-articles { text-align: center; padding: 16px; background: #f4f6f8; border-radius: 8px; margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.more-articles a { color: var(--blue); font-weight: 700; text-decoration: none; }

/* TOC grid */
.toc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.toc-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; background: #f8fafc; border: 1px solid var(--line); transition: all 0.2s; }
.toc-item:hover { border-color: var(--blue); background: #eff6ff; }
.toc-num { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--blue); color: #fff; white-space: nowrap; }

@media (max-width: 700px) {
  .articles-container { padding: 16px; }
  .full-article { padding: 20px; }
  .articles-toc { padding: 16px; }
  .articles-toc li { font-size: 13px; }
  .toc-grid { grid-template-columns: 1fr; }
}
