[aria-label="Pick a type"] {
    background-color: var(--color-warning-tint);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

[aria-label="Pick a type"][aria-haspopup="true"]:after {
    content: "Click for variants of the schema";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 180px;
    transform: translateY(-50%);
    background-color: var(--color-warning-darker);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    margin-left: 16px;
}

[aria-label="Pick a type"][aria-haspopup="true"]:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent var(--color-warning-darker) transparent transparent;
    z-index: 999;
}

[aria-label="Example"] {
    background-color: var(--color-primary-tint);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    white-space: normal;
}

[aria-label="Example"]:after {
    content: "Click for more examples";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 180px;
    transform: translateX(-50%);
    background-color: var(--color-primary-darker);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    margin-bottom: 16px;
    line-height: 1.5;
}

[aria-label="Example"]:before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--color-primary-darker) transparent transparent transparent;
    z-index: 999;
}

a.ElementsTableOfContentsItem:has([title$=":"]) {
    pointer-events: none;
    margin-top: 10px;
    font-weight: bold;
    color: var(--color-text-muted);
}

a.ElementsTableOfContentsItem:has([title$=":"]):first-of-type {
    margin-top: 0;
}

a.ElementsTableOfContentsItem:has([title$=":"]) svg {
    display: none;
}