:root {
  --article-accent: #e53935;
  --article-accent-dark: #c62828;
  --article-accent-soft: #fdecea;
  --article-text: #1f2937;
  --article-muted: #6b7280;
  --article-border: #e5e7eb;
  --article-surface: #f8f9fa;
  --article-card: #ffffff;
}

body {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f5f5f5;
  line-height: 1.7;
  color: var(--article-text);
}

article.article-container {
  background: var(--article-card);
  border-radius: 12px;
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
}

.article-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--article-border);
}

.article-title {
  font-size: 2.2rem;
  color: var(--article-text);
  margin-bottom: 10px;
  font-weight: 700;
}

.article-date {
  color: var(--article-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.article-content {
  font-size: 1.05rem;
}

.article-content h2 {
  color: var(--article-accent);
  margin-top: 28px;
  font-size: 1.5rem;
  font-weight: 600;
}

.article-content p,
.article-content ul {
  margin-bottom: 16px;
}

.article-content li {
  margin-bottom: 8px;
}

.summary {
  background: #eaf7ee;
  border: 1px solid #cfe9d6;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  color: #155724;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

th,
td {
  border: 1px solid var(--article-border);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--article-accent);
  color: #fff;
  font-weight: 700;
}

.ok {
  color: #2e7d32;
  font-weight: 600;
}

.warn {
  color: #ef6c00;
  font-weight: 600;
}

.bad {
  color: #c62828;
  font-weight: 600;
}

.example {
  background: var(--article-surface);
  border: 1px solid var(--article-border);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}

.label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.before {
  background: #ffeaea;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}

.after {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.muted {
  color: var(--article-muted);
}

.ad-top-banner {
  text-align: center;
  margin: 16px 0;
}

[dir="rtl"] table th,
[dir="rtl"] table td {
  text-align: right;
}

@media (max-width: 768px) {
  article.article-container {
    padding: 24px 18px;
  }

  .article-title {
    font-size: 1.85rem;
  }
}
