:root {
    --pitvu-header-identity: url("/homepage-assets/pitvu-logo-light-8de4793ad05c09fe.webp");
}

:root:is([data-pitvu-theme="dark"], [data-mode="dark"]) {
    --pitvu-header-identity: url("/homepage-assets/pitvu-logo-dark-718aca491e6fe142.webp");
}

a.footer-identity,
.mast a.wordmark,
a.pitvu-research-identity {
    display: inline-grid;
    align-items: center;
    flex: none;
    font-size: 0;
    line-height: 0;
}

a:is(.footer-identity, .pitvu-research-identity, .wordmark)::before {
    content: "";
    width: clamp(92px, 18vw, 132px);
    aspect-ratio: 371 / 149;
    background: var(--pitvu-header-identity) center / contain no-repeat;
}

a:is(.footer-identity, .pitvu-research-identity, .wordmark) .wordmark-v {
    display: none;
}

html body .pitvu-header .pitvu-registry-locale {
    position: relative;
    display: inline-flex;
    flex: none;
}

html body .pitvu-header .pitvu-registry-locale > summary {
    cursor: pointer;
    list-style: none;
}

html body .pitvu-header .pitvu-registry-locale > summary::-webkit-details-marker {
    display: none;
}

html body .pitvu-header .pitvu-registry-locale > summary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
}

.pitvu-registry-language-panel {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    min-width: max-content;
    display: grid;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--theme-border, #bccdc2);
    border-radius: 8px;
    background: var(--theme-panel, #fffdf7);
    color: var(--theme-text, #203b32);
    box-shadow: 0 8px 24px #0003;
}

:root[data-pitvu-theme="dark"] .pitvu-registry-language-panel {
    background: #203a34;
    color: #edf5ee;
}

html body .pitvu-header .pitvu-registry-language-panel a {
    padding: 7px 10px;
    text-decoration: none;
    color: inherit;
}

.pitvu-registry-language-panel a:is(:hover, :focus-visible, [aria-current="page"]) {
    outline-offset: -2px;
    box-shadow: inset 0 0 0 1px currentColor;
    border-radius: 4px;
}
