/* Keep site refinements separate from the guide regenerated by the render job. */
.studio-footer {
    padding-top: 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font: 12px var(--mono);
}

.cli-hero { margin: 28px 0; }
.hero-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.hero-grid figure { position: relative; margin: 0; min-width: 0; }
.hero-grid video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.hero-grid figcaption { margin: 0; padding: 5px 7px; font-size: 11px; line-height: 1.4; color: var(--muted); }
@media (max-width: 760px) { .hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.command .code-comment {
    color: #91b59a;
}

.animation-profile-note {
    color: #7c2bc0;
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0 24px;
}

.animation-profile-note code {
    color: inherit;
    overflow-wrap: anywhere;
}

#reference table {
    table-layout: fixed;
    width: 100%;
}

#reference th:first-child {
    width: 30%;
}

#reference th:nth-child(2) {
    width: 40%;
}

#reference th:last-child {
    width: 30%;
}

#reference .animation-sources th:first-child {
    width: 40%;
}

#reference .animation-sources th:last-child {
    width: 60%;
}

#reference td {
    overflow-wrap: anywhere;
}

.content .command,
.content pre {
    width: 100%;
    max-width: 48rem;
}

.toc-disclosure {
    align-self: start;
    min-width: 0;
    padding: 0;
    border: 0;
}

.toc-disclosure > summary {
    display: none;
}

@media (min-width: 1101px) {
    .toc-disclosure {
        position: sticky;
        top: 78px;
    }

    .toc-disclosure .toc {
        position: static;
    }
}

.example-browser {
    padding: 24px 0;
}

.example-browser label {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.example-browser p {
    margin: 8px 0 14px;
    color: var(--muted);
}

.example-browser select {
    width: 100%;
    max-width: 520px;
    min-height: 44px;
}

#example-count {
    font-size: 13px;
    margin-bottom: 0;
}

.nav {
    align-items: center;
}

.nav .home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
}

.home-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

@media (max-width: 760px) {
    .toc-disclosure {
        margin-bottom: 28px;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .toc-disclosure > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        padding: 12px 0;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        list-style: none;
    }

    .toc-disclosure > summary::-webkit-details-marker {
        display: none;
    }

    .toc-disclosure > summary::after {
        content: '+';
        font-size: 22px;
        font-weight: 400;
    }

    .toc-disclosure[open] > summary::after {
        content: '−';
    }

    .toc-disclosure .toc {
        margin: 0;
        padding: 0 0 8px;
        border: 0;
    }

    .toc-disclosure .toc strong {
        display: none;
    }

    .toc {
        display: block;
        max-height: none;
        overflow: visible;
    }

    .toc strong {
        display: block;
        margin-bottom: 12px;
    }

    .toc a {
        display: flex;
        align-items: center;
        min-height: 44px;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
        line-height: 1.4;
    }

    .toc a:last-child {
        border-bottom: 0;
    }
}
