header li.current-menu-item a.wp-block-navigation-item__content {
    border-color: var(--wp--preset--color--custom-purple);
    color: var(--wp--preset--color--custom-purple) !important;
}

header a.wp-block-navigation-item__content {
    border-top: 1px solid transparent;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    /* display: block; */
    border-color: var(--wp--preset--color--custom-pink);
}

.has-modal-open a.wp-block-navigation-item__content {
    border: none !important;
}

button.wp-block-navigation__responsive-container-open.always-shown {
    padding: 1rem;
    margin-right: -1rem;
}

button.wp-block-navigation__responsive-container-close {
    margin-right: 1rem;
    padding: 1rem;
}

span.activetist {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-color: var(--wp--preset--color--tertiary);
    color: var(--wp--preset--color--primary);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 1;
    margin: 0.5em 0 0 0.5em;
}

span.activetist::after {
    content: "active";
    position: absolute;
    left: 1rem;
    color: #fff;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

span.activetist:hover::after {
    opacity: 1;
    cursor: pointer;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:root #results > :where(.is-layout-flow) > :first-child {
    margin-block-start: var(--wp--preset--spacing--medium-primary);
}

details summary::marker {
    content: '—';
    cursor: pointer;
    text-decoration: none !important;
}

details summary:hover {
    color: var(--wp--preset--color--custom-purple);
}

.yall-tag {
    display: inline-block;
    margin: 0.1em;
    padding: 0.1em 0.3em;
    background: var(--wp--preset--color--custom-gold-dark);
}

.yall-tag-cloud {
    display: table;
}

summary:hover {
    cursor: pointer;
}

.yall-badges .yall-badge {
    display: inline-block;
    font-size: 0.8em;
    padding: 0.1em 0.6em;
    margin: 0.2em 0.2em 0 0;
    background: var(--wp--preset--color--custom-gold-dark);
}

.aibadge a {
    display: inline-block;
    font-size: 0.8em;
    width: 1.5em;
    height: 1.5em;
    border-radius: 1.5em;
    text-align: center;
    background: var(--wp--preset--color--custom-gold-dark);
    color: var(--wp--preset--color--custom-purple) !important;
    text-decoration: none;
    border: 1px solid var(--wp--preset--color--custom-purple);
    line-height: 1.5em;
}

.field-ai:hover {
    cursor: pointer;
}

/* overlay */
#tist-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* popup box */
#tist-popup {
    background: var(--wp--preset--color--custom-gold-dark);
    color: var(--wp--preset--color--secondary);
    max-width: 500px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
}

#tist-popup h2 {
    font-size: 22px;
}

/* close button */
#tist-popup button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--custom-gold-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#tist-popup button:hover {
    opacity: 0.9;
}