/* ---------- Карточка справа ---------- */
.bl-card,
.bl-sheet {
    border-radius: 24px;
    background: var(--surface-primary);
}

.bl-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 108px);
    overflow: hidden;
}

.bl-sec {
    padding: 20px;
    border-top: 1px solid var(--bl-line);
}

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

.bl-sec-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
}

.bl-toc {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bl-toc-toggle {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: default;
}

.bl-toc-toggle small,
.bl-toc-toggle .bl-go {
    display: none;
}

.bl-read {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.bl-read::before {
    content: "прочитано ";
}

.bl-toc-word {
    display: contents;
}

/* Текущий раздел в строке содержания: виден только в закреплённой строке на телефоне */
.bl-now {
    display: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bl-now i {
    margin-right: 8px;
    color: var(--text-muted);
    font-style: normal;
    font-variant-numeric: tabular-nums;
}

.bl-progress {
    height: 2px;
    margin-top: 12px;
    border-radius: 2px;
    background: var(--bl-line);
    overflow: hidden;
}

.bl-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 2px;
    background: var(--bl-accent);
    transition: width 0.2s ease;
}

.bl-toc-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    margin: 12px -8px -8px;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: thin;
}

.bl-toc-list a {
    display: flex;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: 1.35;
    letter-spacing: var(--ls-14);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.bl-toc-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bl-toc-list i {
    flex: none;
    width: 18px;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    opacity: 0.6;
}

.bl-toc-list a:hover {
    color: var(--text-color);
}

.bl-toc-list a.is-on {
    background: var(--surface-secondary);
    color: var(--text-color);
}

/* Популярное: заголовки статей переносятся, а не обрезаются */
.bl-pop .bl-toc-list span {
    white-space: normal;
}

.bl-pop .bl-toc-list a {
    color: var(--text-color);
}

.bl-pop .bl-toc-list a:hover {
    color: var(--bl-accent);
}

.bl-action {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 8px;
}

.bl-action b {
    color: var(--text-color);
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
}

.bl-wide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 8px;
    box-sizing: border-box;
    text-decoration: none;
}

.bl-go {
    flex: none;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}
