.library-author-header .library-author-topics {
    position: relative;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.library-author-topic-links {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: inherit;
    overflow-wrap: anywhere;
}

.library-author-topics-toggle {
    position: absolute;
    flex: 0 0 36px;
    border: 0;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

.library-author-topics.has-overflow .library-author-topics-toggle {
    position: static;
}

.library-author-topics:has([aria-expanded="true"]) {
    flex-wrap: wrap;
}
.library-author-topics:has([aria-expanded="true"]) .library-author-topic-links {
    display: contents;
}
.library-author-topics .library-author-topics-toggle:is(:hover, :focus) {
    background: var(--violet-soft);
    color: var(--violet-dark);
    box-shadow: none;
    transform: none;
}
.library-author-topics-toggle:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 2px;
}

.library-author-topics [hidden] {
    display: none;
}

@media (width > 760px) {
    .library-works[data-poet-reader] > .library-section-heading > [data-poet-count] {
        align-self: flex-end;
    }
}
