/* Shared Windows 95/98-inspired typography and controls. */
:root,
html,
body,
button,
input,
select,
textarea {
    font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Geneva, Arial, sans-serif !important;
}

h1,
h2,
h3,
p,
a,
span,
label,
strong,
small {
    font-family: inherit;
}

.hero h1 {
    font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Geneva, Arial, sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 1px 1px 0 #fff;
}

.subtitle {
    font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Geneva, Arial, sans-serif !important;
}

.toolbar--centered {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.toolbar-balance {
    grid-column: 1;
}

.toolbar-nav {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}

.toolbar-nav > span::first-letter,
.toolbar-menu-link::first-letter {
    text-decoration: underline;
}

.toolbar-menu-link {
    color: inherit;
    text-decoration: none;
}

.toolbar-menu-link:hover,
.toolbar-menu-link:focus-visible,
.toolbar-menu-link--active {
    color: #a23f76;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.toolbar-actions {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.language-picker {
    display: inline-flex;
    align-items: center;
}

.language-select,
.toolbar-login {
    min-height: 26px;
    border: 2px solid;
    border-color: #fff #9f8c9a #9f8c9a #fff;
    background: #f7ddeb;
    color: var(--ink, #51475d);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 1px 1px 0 rgba(81, 71, 93, 0.14);
}

.language-select {
    min-width: 92px;
    padding: 2px 24px 2px 7px;
    cursor: pointer;
}

.toolbar-login {
    display: inline-flex;
    min-width: 68px;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.language-select:hover,
.language-select:focus-visible,
.toolbar-login:hover,
.toolbar-login:focus-visible {
    background: #eaf6ff;
    outline: 1px dotted #51475d;
    outline-offset: -4px;
}

.toolbar-login:active {
    border-color: #9f8c9a #fff #fff #9f8c9a;
    transform: translate(1px, 1px);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hero-mascot {
    object-fit: contain;
}

.login-window .titlebar > span:first-child,
.admin-shell > .titlebar > span:first-child {
    font-size: 0;
}

.login-window .titlebar > span:first-child::after,
.admin-shell > .titlebar > span:first-child::after {
    content: "♡ rafa & bru control panel";
    font-size: 0.9rem;
    font-weight: 700;
}

html[lang="pt-BR"] .login-window .titlebar > span:first-child::after,
html[lang="pt-BR"] .admin-shell > .titlebar > span:first-child::after {
    content: "♡ painel de controle rafa & bru";
}

@media (max-width: 520px) {
    .toolbar {
        align-items: center;
        gap: 6px;
    }

    .toolbar--centered {
        grid-template-columns: 1fr;
    }

    .toolbar-balance {
        display: none;
    }

    .toolbar-nav {
        grid-column: 1;
        grid-row: 1;
        gap: 12px;
    }

    .toolbar-actions {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        gap: 4px;
    }

    .language-select {
        min-width: 86px;
        min-height: 34px;
    }

    .toolbar-login {
        min-width: 62px;
        min-height: 34px;
        padding-inline: 8px;
    }

    .hero h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }
}
