details {

    summary {
        @apply relative flex items-center cursor-pointer list-none h-8 font-semibold z-0;

        &::-webkit-details-marker {
            @apply hidden;
        }

        &::before {
            @apply block absolute top-0 left-0 -ml-3 -mt-1 bg-transparent rounded-md;
            content: '';
            height: calc(100% + 0.5rem);
            transition: background-color 100ms ease-in-out;
            width: calc(100% + 1.5rem);
            z-index: -1;
        }

        &::after {
            @apply block w-8 h-8 absolute right-0 top-0 bg-no-repeat bg-center;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
            content: '';
            transition: rotate 100ms ease-in-out;
        }

        &:hover {
            &::before {
                @apply bg-gray-100;
            }
        }
    }

    &[open] {
        summary::after {
            @apply rotate-180;
        }
    }

    > .content {
        @apply mt-2;
    }

    > ul.content {
        @apply flex flex-col gap-2;
    }
}
