.v-guide-toc {
    min-width: 0;
    margin-block-end: 1.25rem;
    color: #202722;
}

.v-guide-toc details {
    border: 1px solid #cfccc1;
    border-radius: 7px;
    background: #fffdf9;
}

.v-guide-toc summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: .55rem .75rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.v-guide-toc summary::-webkit-details-marker {
    display: none;
}

.v-guide-toc summary span::before {
    content: '+';
}

.v-guide-toc details[open] summary span::before {
    content: '-';
}

.v-guide-toc-list {
    padding: 0 .4rem .5rem;
}

.v-guide-toc-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.v-guide-toc-list a {
    display: block;
    padding: 5px;
    border-radius: 4px;
    color: inherit;
    font-size: .875rem;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.v-guide-toc-sub a {
    margin-inline-start: .75rem;
}

.v-guide-toc-list a:hover,
.v-guide-toc-list a[aria-current] {
    background: #f2ebe3;
    color: #71361f;
}

.v-guide-toc :focus-visible,
.v-guide-related :focus-visible {
    outline: 2px solid #a64c2c;
    outline-offset: -2px;
}

.v-guide-layout {
    --guide-anchor: 7rem;
}

.v-guide-layout > .v-document {
    width: 100%;
    min-width: 0;
}

.v-guide-layout :is(h2, h3)[id] {
    scroll-margin-top: var(--guide-scroll-margin, 12px);
}

.v-guide-related {
    margin-block: clamp(2rem, 5vw, 4rem);
}

.v-guide-related h2 {
    margin-bottom: 1rem;
}

.v-guide-related .v-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
    .v-guide-layout {
        --guide-scroll-margin: 7rem;
    }

    .v-guide-layout:has(.v-guide-toc) {
        display: grid;
        grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
        gap: clamp(1.25rem, 3vw, 3rem);
        align-items: start;
    }

    .v-guide-toc {
        position: sticky;
        top: var(--guide-anchor);
    }

    .v-guide-toc-list {
        max-height: calc(100dvh - var(--guide-anchor) - 4rem);
        overflow: auto;
        scrollbar-width: none;
    }

    .v-guide-toc-list a {
        font-size: .8125rem;
    }
}

@media (max-width: 620px) {
    .v-guide-related .v-blog-grid {
        grid-template-columns: 1fr;
    }
}
