/*
 * Componentes usados pelo HTML gerado no PHP dentro das páginas dos protótipos.
 * O app.css só carrega no layout de fallback; estas regras valem para as páginas com Tailwind compilado.
 */

.progress-meter {
    display: block;
    width: 100%;
    height: 10px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    appearance: none;
    background: #c8d0dd;
    color: #c5a065;
}

.progress-meter::-webkit-progress-bar {
    background: #c8d0dd;
}

.progress-meter::-webkit-progress-value {
    border-radius: 999px;
    background: currentColor;
}

.progress-meter::-moz-progress-bar {
    border-radius: 999px;
    background: currentColor;
}

.progress-meter--navy {
    color: #1b365d;
}

.progress-meter--gold {
    color: #c5a065;
}

.progress-meter--muted {
    color: #95a2b6;
}

.progress-track {
    position: relative;
}

.progress-dot {
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c5a065;
    box-shadow: 0 0 0 2px #fff;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Seletor de idioma no cabeçalho */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 6px;
}

.lang-switch-link {
    padding: 6px 7px;
    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.lang-switch-link:hover {
    color: #ffffff;
}

.lang-switch-link[aria-current="true"] {
    color: #c5a065;
    border-bottom-color: #c5a065;
}

/* Aviso de página ainda não traduzida */
.i18n-notice {
    padding: 12px clamp(16px, 5vw, 72px);
    background: #f4ead7;
    border-bottom: 1px solid #c5a065;
    color: #10223d;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* Logo do cabeçalho */
.standard-brand-logo {
    display: block;
    width: auto;
    height: 48px;
}

.standard-brand small {
    margin-top: 0;
}

@media (max-width: 960px) {
    .standard-brand-logo {
        height: 40px;
    }
}

/* Hebraico: fontes com letras hebraicas e ajustes da leitura da direita para a esquerda */
html[lang="he"] body,
html[lang="he"] body *:not([class*="material-symbols"]) {
    font-family: "Assistant", "Lato", Arial, sans-serif !important;
}

html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] h4,
html[lang="he"] .font-serif,
html[lang="he"] .font-display,
html[lang="he"] [class*="font-serif"],
html[lang="he"] [class*="font-display"] {
    font-family: "Frank Ruhl Libre", "Times New Roman", serif !important;
    letter-spacing: 0 !important;
}

html[lang="he"] .tracking-widest,
html[lang="he"] .tracking-wider,
html[lang="he"] .uppercase {
    letter-spacing: 0 !important;
}

html[dir="rtl"] .text-left {
    text-align: right;
}

html[dir="rtl"] .lang-switch {
    margin-right: 0;
    margin-left: 6px;
}

/* O seletor de idioma e endereços em latim ficam sempre da esquerda para a direita */
html[dir="rtl"] .lang-switch-link,
html[dir="rtl"] a[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Dados bancários longos (página de contribuição) quebram no celular em vez de estourar a tela */
@media (max-width: 640px) {
    span.font-mono.whitespace-nowrap {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
