.sidebar-scrollbox {
    margin-top: 3em;
}

.unidoc-header {
    display: flex ;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid gray;
    position: sticky;
    top: 0;
    z-index: 102;
    background: var(--sidebar-bg);
}

.unidoc-logo {
    width: 100px;
    height: 30px;
}

/* SBOM download cards — supply-chain page.
   Colors come from mdBook theme variables so the cards track light/rust/coal/navy/ayu. */

.sbom-downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 1.75em 0;
}

@media (max-width: 600px) {
    .sbom-downloads {
        grid-template-columns: minmax(0, 1fr);
    }
}

.sbom-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    background: var(--quote-bg);
}

.sbom-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--table-border-color);
}

.sbom-card-title {
    font-size: 1.1em;
    font-weight: 700;
}

.sbom-card-badge {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
    white-space: nowrap;
}

.sbom-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--table-border-color);
    border-radius: 6px;
    background: var(--bg);
    color: var(--fg);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.sbom-btn:hover {
    border-color: var(--links);
    color: var(--links);
    text-decoration: none;
}

.sbom-btn-icon {
    font-weight: 700;
}

.sbom-btn-label {
    font-weight: 600;
}

.sbom-btn-ext {
    margin-left: auto;
    font-size: 0.8em;
    opacity: 0.65;
}

.sbom-card-foot {
    margin: 0;
    font-size: 0.85em;
    opacity: 0.8;
}

/* Product whose SBOM assets aren't published yet. */

.sbom-card--pending {
    opacity: 0.6;
}

.sbom-btn--disabled {
    border-style: dashed;
    cursor: not-allowed;
}

.sbom-btn--disabled:hover {
    border-color: var(--table-border-color);
    color: var(--fg);
}
