/* retoor <retoor@molodetz.nl> */

.sidebar-card {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.sidebar-card .sidebar-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.sidebar-card .sidebar-tier {
    margin-top: 1.4rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.sidebar-card .sidebar-tier:first-of-type {
    margin-top: 0.85rem;
}

.sidebar-card .sidebar-subheading {
    margin-top: 0.6rem;
    margin-bottom: 0.4rem;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8rem;
    color: var(--accent);
}

.sidebar-link-nested {
    padding-left: 1.75rem;
}

.sidebar-section {
    margin-bottom: 1rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sidebar-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-link.active,
.sidebar-link.active:hover {
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .sidebar-card {
        display: none;
    }
}
