.bato-toc {
    padding-block: 60px 100px;
}

.bato-toc__inner {
    display: flex;
    align-items: flex-start;
    gap: var(--gutter);
}

.bato-toc__sidebar {
    flex-shrink: 0;
    width: 305px;
    position: sticky;
    top: 160px;
}

.bato-toc__sidebar-title {
    text-transform: uppercase;
    margin-bottom: 20px;
}

.bato-toc__sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bato-toc__sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    font-size: 15px;
    color: var(--color-gray-middle);
}

.bato-toc__sidebar-list a.active {
    font-weight: 600;
    font-size: 17px;
    color: var(--color-black);
}

.bato-toc__sidebar-list a span {
    flex: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.bato-toc__sidebar-list a::after {
    flex: 0 0 auto;
    content: "";
    display: block;
    aspect-ratio: 1;
    width: 24px;
    background: url(../img/anchor-arrow.svg) center center no-repeat;
    background-size: 100%;
    opacity: 0;
    translate: -10px 0;
    transition: 0.3s;
}

.bato-toc__sidebar-list a:hover {
    color: var(--color-black);
}

.bato-toc__sidebar-list a:hover::after{
    opacity: 1;
    translate: 0;
}

.bato-toc__content.text > * + h2 {
    margin-top: 60px;
}