.root {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.root[data-scheme='light'] {
    background-color: var(--color-bg-neutral-light);
    color: var(--color-text-primary);
}

.root[data-scheme='dark'] {
    background-color: var(--color-bg-base-dark);
    color: var(--color-text-primary-inverted);
}

.container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 120px;
    max-width: var(--content-max-width);
}

.root[data-size='lg'] .container {
    padding: 120px;
}

.root[data-size='md'] .container {
    padding: 64px;
}

.header {
    margin-bottom: var(--spacing-64);
}

.content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: var(--spacing-16);
    padding: 0 60px;
    justify-content: space-between;
    align-items: stretch;
}

.contentLimited {
    position: relative;
    max-height: calc(35px * 7 + var(--spacing-16) * 6);
    overflow: hidden;
}

.contentLimited::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.root[data-scheme='light'] .contentLimited::before {
    background: linear-gradient(180deg, rgba(247, 247, 247, 0) 50%, rgba(247, 247, 247, 0.9) 100%);
}

.root[data-scheme='dark'] .contentLimited::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.9) 100%);
}

.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-40);
}

.item {
    min-width: 0;
    cursor: default;
    opacity: 0.2;
    transition:
        opacity 0.3s ease,
        color 0.3s ease;
}

.item:hover {
    opacity: 1;
    z-index: 2;
}

.itemTitle {
    position: relative;
    display: inline-block;
}

.itemTitle::before,
.itemTitle::after {
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    top: 0;
    font-weight: inherit;
    color: inherit;
    pointer-events: none;
}

.itemTitle::before {
    content: '(';
    left: -0.3em;
}

.itemTitle::after {
    content: ')';
    right: -0.3em;
}

.item:hover .itemTitle::before,
.item:hover .itemTitle::after {
    opacity: 1;
}

.root[data-scheme='light'] .item:hover {
    color: var(--color-text-primary);
}

.root[data-scheme='dark'] .item:hover {
    color: var(--color-text-primary-brand-solar);
}

.popover {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.popoverContent {
    width: 100%;
    max-width: 100%;
    border-radius: var(--border-radius-none);
    border-width: 0;
}

.mobile {
    display: none;
}

@media screen and (width <= 768px) {
    .root[data-size='lg'] .container {
        padding: 64px 20px;
    }

    .root[data-size='md'] .container {
        padding: 64px 0;
    }

    .header {
        margin-bottom: var(--spacing-40);
        padding: 0 var(--spacing-20);
    }

    .content {
        padding: 0 var(--spacing-20);
    }

    .actions {
        margin-top: var(--spacing-28);
    }

    .contentLimited {
        max-height: calc(20px * 7 + var(--spacing-16) * 6);
    }

    .root[data-scheme='dark'] .item:not(.selectedItem):hover,
    .root[data-scheme='light'] .item:not(.selectedItem):hover {
        color: inherit;
        opacity: 0.2;
    }

    .selectedItem {
        color: var(--color-text-primary-brand-solar);
        opacity: 1;
        z-index: 2;
    }


    .selectedItem .itemTitle::before,
    .selectedItem .itemTitle::after {
        opacity: 1;
    }

    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }
}
