*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --olive: #6D7954; --olive-dark: #4F5A3D; --olive-deep: #3B422E;
  --sand: #D7C297; --sand-soft: #E8DBBA; --sand-pale: #F1E9D2;
  --cream: #F8F7F4; --cream-warm: #F2EFE6;
  --ink: #3B422E; --ink-muted: #6F745F; --white: #FFFFFF; --line: #E2DDCB;
  --shadow-sm: 0 2px 8px rgba(59,66,46,0.06);
  --shadow-md: 0 8px 28px rgba(59,66,46,0.10);
  --shadow-card: 0 4px 14px rgba(59,66,46,0.08);
}
html { scroll-behavior: smooth; }
body { font-family: 'Assistant', system-ui, sans-serif; font-size: 17px; color: var(--ink); background: var(--cream); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .nav-logo-text { font-family: 'Rubik', system-ui, sans-serif; letter-spacing: -0.01em; color: var(--olive-deep); }
a { color: var(--olive-dark); }
nav.site-nav { background: var(--cream); padding: 0.9rem 2rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-logo-text { font-weight: 800; font-size: 0.92rem; line-height: 1.2; }
.nav-logo-text small { display: block; font-family: 'Assistant', sans-serif; font-weight: 500; font-size: 0.7rem; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.15rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--olive-deep); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.nav-links a:hover { color: var(--olive); }
.btn-nav { background: var(--olive); color: var(--white); padding: 0.6rem 1.2rem; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 0.86rem; }
.btn-nav:hover { background: var(--olive-dark); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.crumbs { font-size: 0.82rem; color: var(--ink-muted); margin: 2rem 0 1rem; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--olive); }
article.post h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 900; line-height: 1.15; margin-bottom: 0.9rem; }
.post-meta { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 2.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
article.post h2 { font-size: 1.45rem; font-weight: 800; margin: 2.4rem 0 0.9rem; }
article.post h3 { font-size: 1.12rem; font-weight: 700; margin: 1.8rem 0 0.6rem; }
article.post p { margin-bottom: 1.05rem; }
article.post ul, article.post ol { margin: 0 0 1.2rem 1.4rem; }
article.post li { margin-bottom: 0.5rem; }
article.post table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: 0.95rem; background: var(--white); box-shadow: var(--shadow-sm); border-radius: 6px; overflow: hidden; }
article.post th { background: var(--olive-deep); color: var(--white); text-align: start; padding: 0.7rem 0.9rem; font-family: 'Rubik', sans-serif; font-size: 0.82rem; }
article.post td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--sand-pale); border-inline-start: 4px solid var(--sand); border-radius: 6px; padding: 1.1rem 1.3rem; margin: 1.4rem 0; font-size: 0.97rem; }
.cta-box { background: var(--olive-deep); color: var(--white); border-radius: 10px; padding: 1.8rem 1.6rem; margin: 2.4rem 0; box-shadow: var(--shadow-md); }
.cta-box h3 { color: var(--white); margin: 0 0 0.5rem; font-size: 1.25rem; }
.cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 1.1rem; }
.cta-box .btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-box a.wa { background: var(--sand); color: var(--olive-deep); padding: 0.8rem 1.4rem; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.cta-box a.more { background: transparent; color: var(--white); border: 2px solid var(--sand); padding: 0.7rem 1.3rem; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.related { margin: 3rem 0 4rem; }
.related h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.related-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem; text-decoration: none; box-shadow: var(--shadow-sm); display: block; }
.related-card:hover { box-shadow: var(--shadow-card); }
.related-card strong { color: var(--olive-deep); font-family: 'Rubik', sans-serif; font-size: 0.98rem; font-weight: 700; line-height: 1.35; display: block; margin-bottom: 0.3rem; }
.related-card span { color: var(--ink-muted); font-size: 0.85rem; }
footer.site-footer { background: var(--olive-deep); color: rgba(255,255,255,0.75); padding: 2.5rem 2rem; margin-top: 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; font-size: 0.9rem; }
footer.site-footer a { color: var(--sand); text-decoration: none; }
.footer-credit { max-width: 1100px; margin: 1.25rem auto 0; text-align: center; font-size: 0.75rem; }
footer.site-footer .footer-credit a { color: rgba(255,255,255,0.45); }
footer.site-footer .footer-credit a:hover { color: var(--sand); }
.post-list { list-style: none; margin: 0 0 4rem; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.6rem 1.7rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm); }
.post-card:hover { box-shadow: var(--shadow-card); }
.post-card a.title { font-family: 'Rubik', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--olive-deep); text-decoration: none; line-height: 1.3; display: block; margin-bottom: 0.4rem; }
.post-card a.title:hover { color: var(--olive); }
.post-card .date { font-size: 0.8rem; color: var(--ink-muted); display: block; margin-bottom: 0.5rem; }
.post-card p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }
.blog-head { margin: 2.5rem 0 2rem; }
.blog-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 900; margin-bottom: 0.6rem; }
.blog-head p { color: var(--ink-muted); max-width: 560px; }
@media (max-width: 720px) {
  nav.site-nav { padding: 0.7rem 1rem; }
  .nav-links { display: none; }
  .related-grid { grid-template-columns: 1fr; }
}

/* Added 2026-10-17 with tools/build_blog.py */
.lede { font-size: 1.12rem; color: var(--ink); margin-bottom: 1.6rem; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.3rem; margin: 0 0 2rem; font-size: 0.95rem; }
.toc strong { font-family: 'Rubik', sans-serif; color: var(--olive-deep); display: block; margin-bottom: 0.4rem; }
.toc ol { margin: 0 0 0 1.2rem; }
[dir="rtl"] .toc ol, [dir="rtl"] article.post ul, [dir="rtl"] article.post ol { margin-left: 0; margin-right: 1.4rem; }
.toc li { margin-bottom: 0.25rem; }
.toc a { text-decoration: none; }
.cta-mini { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--sand-pale); border: 1px solid var(--sand-soft); border-radius: 8px; padding: 1rem 1.2rem; margin: 2rem 0; }
.cta-mini p { margin: 0 !important; font-weight: 600; color: var(--olive-deep); }
.cta-mini a { background: var(--olive); color: var(--white); padding: 0.6rem 1.1rem; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.faq { margin: 2.6rem 0 1rem; }
.faq h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: 1rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; font-family: 'Rubik', sans-serif; font-weight: 700; color: var(--olive-deep); }
.faq details p { margin: 0.6rem 0 0; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; margin: 2.4rem 0 0; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top center; flex: 0 0 auto; }
.author-box strong { font-family: 'Rubik', sans-serif; color: var(--olive-deep); display: block; }
.author-box span { display: block; font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 0.35rem; }
.author-box p { margin: 0; font-size: 0.93rem; }
.post-hero { width: 100%; height: auto; border-radius: 8px; margin: 0 0 1.6rem; display: block; }
.sources { font-size: 0.85rem; color: var(--ink-muted); margin-top: 2rem; }
.sources ul { margin: 0.4rem 0 0 1.2rem; }
[dir="rtl"] .sources ul { margin: 0.4rem 1.2rem 0 0; }
.nav-mob { display: none; }
@media (max-width: 720px) {
  .nav-mob { display: inline-block; color: var(--olive-deep); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
  .author-box { flex-direction: column; }
}
