/* Статьи programmator.net (Bootstrap 6 + apps.css) */
.art-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.art-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-9); background: var(--bs-bg-body); overflow: hidden; transition: box-shadow .15s; }
.art-card:hover { box-shadow: var(--bs-box-shadow); }
.art-card-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--bs-bg-1); }
.art-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.art-card-title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--bs-fg-body); text-decoration: none; }
.art-card-title::after { content: ""; position: absolute; inset: 0; }
.art-card-text { color: var(--bs-fg-3); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { color: var(--bs-fg-3); font-size: .8125rem; display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; margin-top: auto; }

.art-hero-img { width: 100%; border-radius: var(--bs-radius-9); margin-bottom: 1.5rem; }
.art-content { font-size: 1.0625rem; max-width: 46rem; }
.art-content h2, .art-content h3, .art-content h4 { font-weight: 700; margin-top: 2rem; }
.art-content h2 { font-size: 1.5rem; }
.art-content h3 { font-size: 1.25rem; }
.art-content p, .art-content li { color: var(--bs-fg-1); line-height: 1.7; }
.art-content ul, .art-content ol { padding-inline-start: 1.25rem; }
.art-content li { margin-bottom: .35rem; }
.art-content pre { background: var(--bs-bg-1); padding: .75rem 1rem; border-radius: var(--bs-radius-5); overflow: auto; }
.art-content table td, .art-content table th { vertical-align: middle; }
.art-figure { margin: 1.75rem 0; text-align: center; }
.art-figure img { border-radius: var(--bs-radius-7); max-height: 44rem; object-fit: contain; }
.art-figure.is-border img { border: 1px solid var(--bs-border-color); }
.art-figure.is-bg { background: var(--bs-bg-1); padding: 1rem; border-radius: var(--bs-radius-7); }
.art-figure figcaption { color: var(--bs-fg-3); font-size: .875rem; margin-top: .5rem; }

.art-shop { display: flex; gap: .75rem; align-items: center; padding: .6rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-7); position: relative; background: var(--bs-bg-body); }
.art-shop:hover { background: var(--bs-bg-1); }
.art-shop img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--bs-radius-5); background: #fff; flex: none; }
.art-shop-name { font-weight: 600; line-height: 1.3; font-size: .9375rem; color: var(--bs-fg-body); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-shop-name::after { content: ""; position: absolute; inset: 0; }
.art-price { font-weight: 700; }

/* Редактор */
.art-editor { background: var(--bs-bg-body); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-9); padding: 1.25rem 1.5rem 1.25rem 4.25rem; min-height: 28rem; }
@media (width < 650px) { .art-editor { padding-left: 1rem; } }
.art-editor .ce-block__content, .art-editor .ce-toolbar__content { max-width: none; }
.art-editor .codex-editor__redactor { padding-bottom: 8rem !important; }
.art-title-input { font-size: 1.75rem; font-weight: 700; border: 0; padding: .25rem 0; background: transparent; width: 100%; outline: none; }
.art-links .badge { min-width: 5.5rem; justify-content: center; }
.art-result { cursor: pointer; }
.art-counter.is-bad { color: var(--bs-danger, #c00); }

/* Комментарии */
