:root {
    --cream: #faf5ef;
    --ink: #332a28;
    --ink-soft: #6b5f5a;
    --teal: #2f5c57;
    --teal-light: #3d6b66;
    --teal-soft: #e4eeec;
    --teal-soft-2: #d6e6e3;
    --clay: #c77b58;
    --clay-light: #d68a63;
    --clay-soft: #f5e3d8;
    --border-color: rgba(51, 42, 40, 0.1);
    --shadow-soft: 0 8px 24px -10px rgba(51, 42, 40, 0.14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.9;
}
a { color: var(--teal); }

.top-bar {
    background: rgba(250, 245, 239, 0.9);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky; top: 0; z-index: 100;
}
.top-bar-inner { max-width: 800px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.top-logo { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.top-back { font-size: 0.88rem; font-weight: 700; text-decoration: none; color: var(--teal); display: flex; align-items: center; gap: 0.4rem; }

.article-wrap { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.article-tag-top {
    display: inline-block; background: var(--clay-soft); color: var(--clay);
    font-size: 0.78rem; font-weight: 800; padding: 0.3rem 1rem; border-radius: 50px;
    margin-bottom: 1.2rem;
}
.article-h1 { font-size: 2rem; font-weight: 800; line-height: 1.42; margin-bottom: 1rem; color: var(--ink); letter-spacing: -0.5px; }
.article-meta {
    color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 2.4rem;
    display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center;
    border-bottom: 1px solid var(--border-color); padding-bottom: 1.4rem;
}
.article-body h2 { font-size: 1.42rem; font-weight: 800; margin: 2.5rem 0 1rem; color: var(--teal); }
.article-body h3 { font-size: 1.1rem; font-weight: 800; margin: 1.7rem 0 0.8rem; color: var(--ink); }
.article-body p { margin-bottom: 1.15rem; font-size: 1.03rem; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 0; padding-right: 1.4rem; }
.article-body li { margin-bottom: 0.55rem; font-size: 1rem; }
.article-body table { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }

.callout {
    background: var(--clay-soft);
    border-right: 4px solid var(--clay);
    border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.7rem 0;
}
.callout strong { color: var(--clay); }

.cta-box {
    background: var(--teal); color: white; border-radius: 20px; padding: 2.1rem; margin: 3rem 0; text-align: center;
}
.cta-box h3 { color: white; font-size: 1.25rem; margin-bottom: 0.6rem; }
.cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 1.2rem; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: white; color: var(--teal); font-weight: 800;
    padding: 0.78rem 1.7rem; border-radius: 50px; text-decoration: none;
}

.mini-faq { margin-top: 3rem; }
.mini-faq-item {
    margin-bottom: 1.3rem; background: #fff;
    border: 1px solid var(--border-color); border-radius: 12px; padding: 1.15rem 1.35rem;
}
.mini-faq-item h3 { color: var(--teal); margin-top: 0; }

.related-links { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.related-links h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.related-links ul { list-style: none; padding: 0; }
.related-links li { margin-bottom: 0.6rem; }
.related-links a { font-weight: 700; text-decoration: none; }

.author-box {
    display: flex; gap: 1rem; align-items: center;
    background: var(--teal-soft); border-radius: 16px; padding: 1.25rem; margin-top: 3rem;
    border: 1px solid var(--teal-soft-2);
}
.author-box img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 15%; flex-shrink: 0; }
.author-box h4 { font-size: 0.98rem; color: var(--ink); }
.author-box p { font-size: 0.84rem; color: var(--ink-soft); margin: 0; }

.site-footer-mini {
    text-align: center; padding: 2.4rem 1.5rem; color: var(--ink-soft);
    font-size: 0.84rem; border-top: 1px solid var(--border-color); margin-top: 2rem;
}
.site-footer-mini a { font-weight: 700; text-decoration: none; color: var(--teal); }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
@media (max-width: 600px) {
    .article-h1 { font-size: 1.55rem; }
}
