/* Page titles follow the type scale used in the newest registry results. */
@layer pitvu-page-titles {
    @media screen {
        :root {
            --pitvu-page-title-size: clamp(1.75rem, 4vw, 2.625rem);
            --pitvu-page-title-leading: 1.1;
            --pitvu-page-title-tracking: -.035em;
        }
        @media (max-width: 800px) {
            :root {
                --pitvu-page-title-size: clamp(1.75rem, 5vw, 2.25rem);
                --pitvu-page-title-leading: 1.15;
                --pitvu-page-title-tracking: -.03em;
            }
        }
        h1:not(:where(.sr-only, .directory-a11y, dialog h1, [role="dialog"] h1)) {
            /* Some older page templates set these properties with !important. */
            font-size: var(--pitvu-page-title-size) !important;
            line-height: var(--pitvu-page-title-leading) !important;
            letter-spacing: var(--pitvu-page-title-tracking) !important;
            white-space: normal !important;
            overflow-wrap: anywhere;
        }
    }
}

footer .shell-footer-tools.pv-preferences {
    --pv-tile-duration: 235ms;
    --pv-menu-ink: var(--theme-text, #232a28);
    --pv-menu-line: var(--theme-control, #798377);
    --pv-menu-bg: var(--theme-raised, #fffdf8);
    --pv-menu-hover: var(--theme-soft, #e8e2d5);
    --pv-menu-link: var(--theme-link, #28594c);
    --pv-menu-panel: var(--theme-surface, #fbf9f3);
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    width: max-content;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--pv-menu-ink);
}
[data-pitvu-theme="dark"] footer .shell-footer-tools.pv-preferences {
    --pv-menu-ink: var(--theme-text, #f2eee5);
    --pv-menu-line: var(--theme-control, #899e97);
    --pv-menu-bg: var(--theme-raised, #203135);
    --pv-menu-hover: var(--theme-soft, #2b3736);
    --pv-menu-link: var(--theme-link, #b1d8ca);
    --pv-menu-panel: var(--theme-surface, #1b272a);
}
footer .shell-footer-tools.pv-preferences :is(button[data-theme-toggle], summary.pv-language-button) {
    position: relative;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: none;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 !important;
    border: 1px solid var(--pv-menu-line) !important;
    border-radius: 6px;
    background: var(--pv-menu-bg);
    color: var(--pv-menu-ink);
    font-family: inherit;
    font-weight: 600;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
}
@media (hover: hover) {
    footer .shell-footer-tools.pv-preferences button[data-theme-toggle]:hover {
        --pv-tile-duration: 125ms;
        border-color: var(--pv-menu-link) !important;
        background: color-mix(in srgb, var(--pv-menu-bg), white 16%);
        color: var(--pv-menu-link);
    }
    footer .shell-footer-tools.pv-preferences summary.pv-language-button:hover {
        --pv-tile-duration: 125ms;
        border-color: var(--pv-menu-link) !important;
    }
    footer .pv-preferences summary.pv-language-button:hover > img.pv-language-flag {
        filter: saturate(.83) brightness(1.08);
    }
}
footer .shell-footer-tools.pv-preferences details[open] > summary.pv-language-button {
    border-color: var(--pv-menu-link) !important;
}
footer .pv-preferences > button[hidden] { display: none; }
footer .pv-preferences .pv-theme-mark {
    display: block;
    flex: none;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
}
footer .pv-preferences .pv-theme-sun,
[data-pitvu-theme="dark"] footer .pv-preferences .pv-theme-moon { display: none; }
[data-pitvu-theme="dark"] footer .pv-preferences .pv-theme-sun { display: block; }
footer .pv-preferences > details.shell-footer-locale { position: relative; display: block; flex: none; margin: 0; }
footer .pv-preferences summary.pv-language-button { isolation: isolate; overflow: hidden; list-style: none; }
footer .pv-preferences summary::-webkit-details-marker { display: none; }
footer .pv-preferences .pv-language-flag {
    display: inline-block; flex: none; width: 18px; height: 13.5px; max-width: none;
    object-fit: contain; border-radius: 2px; box-shadow: 0 0 0 1px #68796e3d;
}
footer .pv-preferences summary.pv-language-button > img.pv-language-flag {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    filter: saturate(.83);
    pointer-events: none;
}
footer .pv-preferences summary.pv-language-button > .pv-language-code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: inline-block;
    padding: 1px 2px;
    border-radius: 2px;
    background-color: #fff;
    color: #192820;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .025em;
    white-space: nowrap;
    pointer-events: none;
}
footer .pv-preferences summary[data-language="pt-br"] > .pv-language-code { font-size: 9.5px; letter-spacing: 0; }
footer .shell-footer-tools.pv-preferences :is(button, a, summary):focus-visible {
    outline: 2px solid var(--pv-menu-link) !important;
    outline-offset: 2px;
}
footer .pv-preferences .shell-locale-panel {
    position: absolute; z-index: 65; right: 0; left: auto; top: auto; bottom: calc(100% + .65rem);
    width: min(14rem, calc(100vw - 24px)); min-width: 0; max-height: min(25rem,65vh); overflow-y: auto;
    margin: 0; padding: .35rem; box-sizing: border-box; border: 1px solid var(--pv-menu-line);
    border-radius: .85rem; background: var(--pv-menu-panel); color: var(--pv-menu-ink);
    box-shadow: 0 8px 28px #12251a24; transform: translateX(var(--pv-locale-shift,0px));
}
footer .pv-preferences details[open] > .shell-locale-panel { display: grid; grid-template-columns: 1fr; gap: 1px; }
footer .pv-preferences .shell-locale-panel :is(a,button,span.shell-fixed-locale) {
    display: flex; align-items: center; justify-content: flex-start; gap: .65rem;
    box-sizing: border-box; margin: 0; width: 100%; min-height: 42px; padding: .45rem .65rem;
    border: none; border-radius: .5rem; background: transparent; color: inherit;
    font: inherit; font-size: .94rem; line-height: 1.3; text-align: start; text-decoration: none;
}
footer .pv-preferences .shell-locale-panel .pv-language-flag { order: -1; }
footer .pv-preferences .shell-locale-panel :is(a,button):hover,
footer .pv-preferences .shell-locale-panel [aria-current] { background: var(--pv-menu-hover); }
footer .shell-footer-tools.pv-preferences details[open] .shell-locale-panel [aria-current] {
    background-color: var(--pv-menu-hover) !important;
    color: var(--pv-menu-link) !important;
    font-weight: 700 !important;
    box-shadow: inset 0 0 0 1px var(--pv-menu-line);
}
footer .pv-preferences .shell-locale-panel [aria-current]::after {
    content: ""; width: 9px; height: 5px; margin-left: auto; margin-right: 3px; border-left: 2px solid;
    border-bottom: 2px solid; transform: rotate(-45deg);
}
@media (prefers-reduced-motion: no-preference) {
    footer .shell-footer-tools.pv-preferences :is(button[data-theme-toggle], summary.pv-language-button) {
        transition: background-color var(--pv-tile-duration) ease-out, border-color var(--pv-tile-duration) ease-out,
            color var(--pv-tile-duration) ease-out;
    }
    footer .pv-preferences summary.pv-language-button > img.pv-language-flag {
        transition: filter var(--pv-tile-duration) ease-out;
    }
}
@media (prefers-reduced-motion: reduce) {
    footer .shell-footer-tools.pv-preferences :is(button[data-theme-toggle], summary.pv-language-button),
    footer .pv-preferences summary.pv-language-button > img.pv-language-flag { transition: none; }
}
@media (forced-colors: active) {
    footer .pv-preferences summary.pv-language-button > .pv-language-code { color: ButtonText; background: ButtonFace; }
}

/* The desktop navigation has a separate, text-only link. */
:is(#public-mobile-nav, #mobile-navigation, #shop-mobile-menu) a[data-atlas-nav]::before {
    content: "";
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url("/homepage-assets/mobile-analyses-a1b3701dee99f11e.svg") center / contain no-repeat;
    mask: url("/homepage-assets/mobile-analyses-a1b3701dee99f11e.svg") center / contain no-repeat;
}
#shop-mobile-menu a[data-atlas-nav] {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media screen and (forced-colors: none) {
    :root[data-pitvu-theme] header.pitvu-header > nav.pitvu-navigation:not(.mobile-navigation) > a[href] {
        transition-property: border-color, box-shadow;
    }
    :root[data-pitvu-theme] header.pitvu-header > nav.pitvu-navigation:not(.mobile-navigation) > a[href]:is(:hover, :focus-visible) {
        color: #202c25;
        background: #fff linear-gradient(135deg, #fff 25%, #faf8ef);
        border-color: #cdd2c8;
        box-shadow: none;
        text-decoration: none;
    }
}
