/* JavaScript API documentation-specific overrides.
   Load after documentation.shared.css. */

/* The JavaScript explorer presents API references as inline links rather than pills. */
.type-link {
    border: 0;
    background: transparent;
    color: var(--brand);
    padding: 0;
    margin-left: 7px;
    border-radius: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 650;
}

    .type-link:hover {
        background: transparent;
        color: var(--brand);
        text-decoration: underline;
    }

/* Keep the API navigation visible beside content on narrower desktop/tablet widths. */
@media(max-width:900px) {
    .layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .sidebar {
        position: sticky;
        top: 64px;
        height: calc(100vh - 64px);
        min-height: calc(100vh - 64px);
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    main {
        padding: 28px 24px 60px;
    }
}
