.hc-prof-list {
    display: block;
}

.hc-prof-list__title {
    margin: 0 0 0.6em;
    color: var(--wp--preset--color--white);
    font-size: clamp(16.834px, 1.052rem + ((1vw - 3.2px) * 0.935), 26px);
    font-style: normal;
    font-weight: 500;
    text-transform: capitalize;
}

.hc-prof-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}

.hc-prof-list__items > li > a {
    display: inline-block;
    color: var(--wp--preset--color--white);
    text-decoration: underline;
}

.hc-prof-list__items > li > a:hover,
.hc-prof-list__items > li > a:focus-visible {
    color: var(--wp--preset--color--secondary);
    text-decoration: underline;
}

.hc-prof-list__more {
    position: relative;
}

.hc-prof-list__more details {
    display: block;
}

.hc-prof-list__more summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: var(--wp--preset--color--white);
    text-decoration: underline;
}

.hc-prof-list__more summary::-webkit-details-marker {
    display: none;
}

.hc-prof-list__more summary::after {
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-0.1em);
    transition: transform 0.15s ease;
}

.hc-prof-list__more details[open] > summary::after {
    transform: rotate(-135deg) translateY(0.1em);
}

.hc-prof-list__more summary:hover,
.hc-prof-list__more summary:focus-visible {
    color: var(--wp--preset--color--secondary);
    text-decoration: underline;
}

.hc-prof-list__overflow {
    list-style: none;
    margin: 0.6em 0 0;
    padding: 0.6em 0.8em;
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid currentColor;
    border-radius: 4px;
}

.hc-prof-list__overflow > li > a {
    display: inline-block;
    color: var(--wp--preset--color--white);
    text-decoration: underline;
}

.hc-prof-list__overflow > li > a:hover,
.hc-prof-list__overflow > li > a:focus-visible {
    color: var(--wp--preset--color--secondary);
    text-decoration: underline;
}

/* On desktop the submenu pops above the trigger so it doesn't push neighbouring
   footer columns downward when expanded. */
@media (min-width: 768px) {
    .hc-prof-list__more details[open] .hc-prof-list__overflow {
        position: absolute;
        left: 0;
        bottom: calc(100% + 0.4em);
        min-width: 100%;
        z-index: 5;
        background: currentColor;
    }

    .hc-prof-list__more details[open] .hc-prof-list__overflow > li {
        color: #fff;
        mix-blend-mode: difference;
    }
}
