.abz-art { --art-ink: var(--abz-ink, #10202f); --art-line: #e3ecf2; --art-soft: #f5f9fc; --art-accent: #2a6fa8; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.abz-art--compact { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.abz-art__body { display: grid; gap: 16px; min-width: 0; }
.abz-art > .abz-art__body:only-child { grid-column: 1 / -1; }

.abz-art__toc { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; padding: 18px; border: 1px solid var(--art-line); border-radius: 18px; background: #fff; }
.abz-art__toc strong { display: block; margin-bottom: 8px; color: var(--art-ink); font-size: 14px; }
.abz-art__toc ul { margin: 0; padding: 0; list-style: none; }
.abz-art__toc li { margin: 0; }
.abz-art__toc a { display: block; padding: 7px 10px; border-radius: 9px; color: #4a5d6e; font-size: 13px; line-height: 1.8; text-decoration: none; }
.abz-art__toc a:hover, .abz-art__toc a:focus-visible { background: var(--art-soft); color: var(--art-accent); }
.abz-art--compact .abz-art__toc { position: static; max-height: none; }
.abz-art--compact .abz-art__toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
.abz-art--compact .abz-art__toc a { border: 1px solid var(--art-line); border-radius: 30px; }

.abz-art__lead { padding: 22px 24px; border-radius: 18px; background: linear-gradient(135deg, #eef6fb, #f8fbfd); }
.abz-art__card { scroll-margin-top: 110px; padding: 22px 24px; border: 1px solid var(--art-line); border-radius: 18px; background: #fff; min-width: 0; }
body.abz-shell .abz-art .abz-art__body h2 { margin: 0 0 14px; padding: 0; color: var(--art-ink); font-size: 20px; font-weight: 800; line-height: 1.7; }
body.abz-shell .abz-art .abz-art__body h2::before { content: none; }
body.abz-shell .abz-art h3 { margin: 0; color: var(--art-ink); font-size: 15px; font-weight: 700; line-height: 1.9; }
.abz-art p, .abz-art li { color: #3f5365; font-size: 14.5px; line-height: 2.2; }
.abz-art p { margin: 0 0 10px; }
.abz-art__card > :last-child, .abz-art__lead > :last-child { margin-bottom: 0; }
.abz-art a { color: var(--art-accent); text-underline-offset: 4px; }

.abz-art ul:not([class]) , .abz-art ol { margin: 0 0 10px; padding: 0; list-style: none; }
.abz-art__card ul li { position: relative; margin-bottom: 4px; padding-inline-start: 24px; }
.abz-art__card ul li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--art-accent); font-weight: 700; }
.abz-art__card ol { counter-reset: step; }
.abz-art__card ol li { counter-increment: step; position: relative; margin-bottom: 10px; padding-inline-start: 42px; }
.abz-art__card ol li::before { content: counter(step, persian); position: absolute; inset-inline-start: 0; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--art-accent); color: #fff; font-size: 13px; line-height: 28px; text-align: center; }

.abz-art__card--warn { border-color: #f3dcc0; background: #fffaf3; }
.abz-art__card--warn ul li::before { content: "!"; color: #c26a10; }
.abz-art__card--buy { border-color: #cfe3f1; background: var(--art-soft); }
.abz-art__card--links ul { display: flex; flex-wrap: wrap; gap: 8px; }
.abz-art__card--links ul li { margin: 0; padding: 4px 14px; border: 1px solid var(--art-line); border-radius: 30px; font-size: 13px; }
.abz-art__card--links ul li::before { content: none; }

.abz-art__table { overflow-x: auto; margin-bottom: 10px; border: 1px solid var(--art-line); border-radius: 12px; }
.abz-art table { width: 100%; border-collapse: collapse; }
.abz-art th, .abz-art td { padding: 10px 14px; border-bottom: 1px solid var(--art-line); color: #3f5365; font-size: 13.5px; line-height: 1.9; text-align: right; vertical-align: top; }
.abz-art th { color: var(--art-ink); font-weight: 700; background: var(--art-soft); }
.abz-art tr:last-child > * { border-bottom: 0; }
.abz-art tr:nth-child(even) td { background: #fbfdfe; }
.abz-art tr > :first-child { width: 30%; }

.abz-art__chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; }
.abz-art__chips bdi { padding: 1px 10px; border: 1px solid var(--art-line); border-radius: 8px; background: #fff; font-size: 12.5px; white-space: nowrap; }

.abz-art__faq { border: 1px solid var(--art-line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.abz-art__faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.abz-art__faq summary::-webkit-details-marker { display: none; }
.abz-art__faq summary::after { content: "+"; flex: none; color: var(--art-accent); font-size: 22px; line-height: 1; }
.abz-art__faq[open] summary::after { content: "−"; }
.abz-art__faq[open] summary { border-bottom: 1px solid var(--art-line); background: var(--art-soft); border-radius: 12px 12px 0 0; }
.abz-art__faq p { margin: 0; padding: 12px 16px; }

@media (max-width: 991px) {
    .abz-art { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .abz-art__toc { position: static; max-height: none; min-width: 0; padding: 14px; }
    .abz-art__toc ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
    .abz-art__toc a { white-space: nowrap; border: 1px solid var(--art-line); border-radius: 30px; }
    .abz-art__card, .abz-art__lead { padding: 18px 16px; }
    body.abz-shell .abz-art .abz-art__body h2 { font-size: 18px; }
    .abz-art th, .abz-art td { padding: 8px 10px; }
}
