.dropdown {
    position: relative;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 1.75rem;
    white-space: nowrap;
    cursor: pointer;
}

.dropdown:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

.dropdown > .content {
    position: absolute;
    right: 0rem;
    background-color: white;
    z-index: 1;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.dropdown > .content.hidden {
    display: none;
}

.dropdown > .content a {
    margin: 1rem;
    display: block;
    white-space: nowrap;
    color: black;
}

.dropdown > .content > .section {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.dropdown > .content > .section:first-child {
    border-top: none;
}

.dropdown > .content > .section > .title {
    margin: 1rem;
    white-space: nowrap;
    font-weight: bold;
}

.dropdown::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    width: 0.25rem;
    height: 0.25rem;
    border-left: 1px solid black;
    border-bottom: 1px solid black;
    transform: translateY(120%) rotate(-45deg);
}

@container (min-width: 40rem) {
    .dropdown > .content {
        right: 0;
        left: revert;
    }
}
