/* Farsi Accounting — standard article layout (v48). Additive: loaded after lang-preview.css, only on article pages. */
.std-article .article-copy{max-width:880px}
.std-article .article-copy h2{font-size:clamp(21px,3vw,30px);line-height:1.55;color:var(--green);margin:0 0 10px}
.std-article .article-copy h3{font-size:18px;line-height:1.6;color:var(--green);margin:18px 0 6px}
.std-article .article-copy table{max-width:100%}
.std-byline{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:0 0 6px;color:var(--muted);font-size:14px}
.std-byline b{color:var(--green)}
.std-byline .sep{opacity:.45}
.std-glance{background:#fff;border:1px solid var(--line);border-inline-start:5px solid var(--gold);border-radius:18px;padding:18px 22px;margin:18px 0 6px}
.std-glance h2{font-size:18px!important;margin:0 0 6px!important}
.std-glance ul{margin:0;padding-inline-start:22px}
.std-toc{background:#f7f3e6;border-radius:18px;padding:16px 22px;margin:14px 0 0}
.std-toc h2{font-size:17px!important;margin:0 0 4px!important}
.std-toc ol{margin:0;padding-inline-start:22px}
.std-toc a{color:var(--green);text-decoration:none}
.std-toc a:hover{text-decoration:underline}
.std-label{display:block;margin-top:12px;color:var(--green);font-weight:700}
.std-example,.std-note{border-radius:16px;padding:16px 20px;margin:16px 0}
.std-example{background:#eef6f3;border:1px solid #cbded8}
.std-note{background:#f7e9bd;border-inline-start:5px solid var(--gold)}
.std-source{font-size:14px;margin-top:10px;padding-top:8px;border-top:1px dashed var(--line)}
.std-source a{color:var(--red)}
.booking{width:100%;border-collapse:collapse;direction:ltr;margin:14px 0;font-size:14px}
.booking th,.booking td{border:1px solid var(--line);padding:9px 11px;text-align:left}
.booking th{background:#f4e7c2;color:var(--green)}
.booking td.amount{text-align:right;white-space:nowrap}
.term-table td[lang=de],.term-table td[lang=en],.term-table th[lang=de],.term-table th[lang=en]{direction:ltr;text-align:left}
.std-related{display:grid;gap:10px;margin:8px 0 0;padding:0;list-style:none}
.std-related a{display:block;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--green);text-decoration:none;font-weight:700}
.std-related a:hover{background:#f3e5bd}
.std-library{margin:18px 0 0;padding:18px 22px;border-radius:18px;background:var(--green);color:#fff}
.std-library a{color:#f3e5bd;font-weight:700}
.std-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
[dir=ltr] .std-article,[dir=ltr] .std-article .article-copy p,[dir=ltr] .std-article .article-copy li{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif}
[dir=ltr] .std-article h1{letter-spacing:-.02em;line-height:1.2}
[dir=ltr] .std-article .term-table td[lang=fa],[dir=ltr] .std-article .term-table th[lang=fa]{direction:rtl;text-align:right;font-family:Vazirmatn,Tahoma,sans-serif}
@media(max-width:620px){
 .std-article h1{font-size:30px!important;line-height:1.5}
 .std-glance,.std-toc,.std-example,.std-note,.std-library{padding:14px 15px}
 .term-table{font-size:13px}
 .term-table thead{display:none}
 .term-table,.term-table tbody,.term-table tr,.term-table td{display:block;width:100%}
 .term-table tr{margin:0 0 12px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
 .term-table td{border:0!important;border-bottom:1px solid var(--line)!important;display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px}
 .term-table td:last-child{border-bottom:0!important}
 .term-table td{direction:inherit!important;text-align:start!important}
 .term-table td::before{content:attr(data-label);font-weight:800;color:var(--green);font-family:Arial,sans-serif}
 .booking thead{display:none}
 .booking,.booking tbody,.booking tr,.booking td{display:block;width:100%}
 .booking tr{margin:0 0 12px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#f7fbf9}
 .booking td{border:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;text-align:left!important}
 .booking td::before{content:attr(data-label);font-weight:800;color:var(--green)}
}

.std-source-head{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;margin:0 0 12px;padding:8px 12px;border-inline-start:3px solid var(--gold,#c8962e);background:rgba(200,150,46,.08);border-radius:6px;font-size:14px;color:var(--muted)}
.std-source-head .lbl{font-weight:700;color:var(--green)}
.std-source-head a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.std-source-head .sep{opacity:.45}
