/* ---------- Блоки под статьёй ---------- */
.bl-block {
    margin-top: 72px;
}

.bl-h2 {
    margin-bottom: 24px;
    color: var(--text-color);
    font-size: var(--fs-32);
    font-weight: var(--fw-semibold);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.bl-row-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-top: 1px solid var(--bl-line);
    color: var(--text-color);
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    text-decoration: none;
    transition: color 0.2s ease;
}

.bl-row-link:first-child {
    border-top: 0;
}

.bl-row-link:hover {
    color: var(--bl-accent);
}

/* ---------- Главная блога ---------- */
/* Чипы рубрик — одна строка шириной с левую колонку; лишние прокручиваются, край с продолжением затухает */
.bl-chips {
    --bl-chips-fade: 40px;
    max-width: calc(100% - var(--sidebar-width) - 32px);
    margin-top: 20px;
}

.bl-chips .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.bl-chips .filter-chips::-webkit-scrollbar {
    display: none;
}

.bl-chips .filter-chip {
    flex: none;
}

/* Чипы лежат на фоне страницы, а не на карточке: цвет как у карточек ниже. html — чтобы перекрыть правило тёмной темы */
html .bl-chips .filter-chip:not(.active, :hover) {
    background-color: var(--surface-primary);
}

.bl-chips.has-right .filter-chips {
    mask-image: linear-gradient(to left, transparent, #000 var(--bl-chips-fade));
}

.bl-chips.has-left .filter-chips {
    mask-image: linear-gradient(to right, transparent, #000 var(--bl-chips-fade));
}

.bl-chips.has-left.has-right .filter-chips {
    mask-image: linear-gradient(to right, transparent, #000 var(--bl-chips-fade), #000 calc(100% - var(--bl-chips-fade)), transparent);
}

.bl-feats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.bl-feat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 196px;
    padding: 20px;
    border-radius: 24px;
    box-sizing: border-box;
    background: var(--surface-primary);
    color: var(--text-color);
    text-decoration: none;
}

.bl-feat-cat,
.bl-feat-meta {
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
}

.bl-feat b {
    font-size: var(--fs-20, 20px);
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-wrap: balance;
    transition: color 0.2s ease;
}

.bl-feat:hover b {
    color: var(--bl-accent);
}

.bl-feat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.bl-list-head,
.bl-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 88px 56px;
    column-gap: 16px;
    align-items: baseline;
    padding: 16px 20px;
}

.bl-list-head {
    padding-bottom: 12px;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
}

.bl-list-head span:nth-child(n+3),
.bl-row-meta,
.bl-row-date {
    text-align: right;
}

.bl-row {
    border-top: 1px solid var(--bl-line);
    color: var(--text-color);
    text-decoration: none;
}

.bl-list > .bl-row:first-child {
    border-top: 0;
}

.bl-row-cat,
.bl-row-meta,
.bl-row-date {
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bl-row-meta i {
    display: none;
    font-style: normal;
}

.bl-row-title {
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
    line-height: 1.35;
    letter-spacing: var(--ls-16);
    transition: color 0.2s ease;
}

.bl-row:hover .bl-row-title {
    color: var(--bl-accent);
}

.bl-new {
    display: inline-block;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bl-accent) 14%, transparent);
    color: var(--bl-accent);
    font-size: var(--fs-12);
    font-style: normal;
    font-weight: var(--fw-medium);
    line-height: 18px;
    vertical-align: 2px;
}

.bl-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 32px 20px;
    border-radius: 24px;
    background: var(--surface-primary);
}

.bl-empty b {
    font-size: var(--fs-20, 20px);
    font-weight: var(--fw-semibold);
}

.bl-empty p {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.bl-empty .btn {
    text-decoration: none;
}

/* Строки списка лежат в .articles-rows: это контейнер бесконечной прокрутки */
.bl-list .articles-rows {
    display: block;
    width: auto;
    margin: 0;
}

.bl-list .articles-rows > .bl-row:first-child {
    border-top: 0;
}

.bl-list-head + .articles-rows > .bl-row:first-child {
    border-top: 1px solid var(--bl-line);
}

.bl-row .card-articles-title {
    display: inline;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}

/* H1 — только слово «блог»; приписка рядом тем же кеглем, серым */
.bl-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: var(--fs-32);
    font-weight: var(--fw-semibold);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.bl-title .bl-h1 {
    margin-top: 0;
    text-transform: lowercase;
}
