/* === Spis treści === */
.post-toc {
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px;
    margin: 48px auto;
    max-width: fit-content;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.post-toc__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

/* Lista */
.post-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Każdy element */
.post-toc__item {
    margin-bottom: 10px;
    transition: transform 0.15s ease;
}

/* Odstęp dla nagłówków h3 */
.post-toc__item--h3 {
    margin-left: 20px;
    font-size: 15px;
    opacity: 0.9;
}

/* Link */
.post-toc__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    gap: 16px;
    color: #111;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

/* Ikona strzałki */
.post-toc__link svg {
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform 0.25s ease, stroke 0.25s ease;
    height: 12px;
    width: auto;
}

.post-toc__link svg path {
    fill: var(--color-main);
    transform: translateX(-3px);
}

/* Hover */
.post-toc__link:hover {
    background-color: var(--color-main);
    color: #111;
    transform: translateX(3px);
}

.post-toc__link:hover svg path {
    fill: #111;
    transform: translateX(0);
}

/* Responsywność */
@media (max-width: 768px) {
    .post-toc {
        padding: 20px;
    }

    .post-toc__title {
        font-size: 20px;
    }

    .post-toc__link {
        font-size: 15px;
    }
}