html {
    scroll-behavior: smooth;
}

.article-read-time {
    margin-top: 0.35rem;
    margin-bottom: 0;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.article-toc {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.45);
}

.article-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.article-toc__title {
    margin: 0;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 700;
}

.article-toc__toggle {
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(30, 41, 59, 0.7);
    color: #bfdbfe;
    border-radius: 0.5rem;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.article-toc__toggle:hover,
.article-toc__toggle:focus-visible {
    background: rgba(37, 99, 235, 0.28);
    color: #dbeafe;
    outline: none;
}

.article-toc__panel[hidden] {
    display: none;
}

.article-toc__list {
    margin: 0.3rem 0 0;
    padding-left: 1.15rem;
}

.article-toc__item {
    margin-bottom: 0.35rem;
}

.article-toc__link {
    color: #60a5fa;
    text-decoration: none;
    line-height: 1.55;
}

.article-toc__link:hover,
.article-toc__link:focus-visible {
    color: #93c5fd;
    text-decoration: underline;
    outline: none;
}

@media (min-width: 1024px) {
    .article-toc {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
}

@media (max-width: 1023px) {
    .article-toc__list {
        padding-left: 1.25rem;
    }

    .article-toc__item {
        margin-bottom: 0.7rem;
    }

    .article-toc__link {
        line-height: 1.65;
    }
}
