:root {
  --background: #ffffff;
  
  --font-size-scale-up-01: 14px;
  --font-size-scale-up-02: 14px;
  --font-size-scale-up-03: 17px;
  --font-size-scale-up-04: 20px;
  --font-size-scale-up-05: 24px;
  --font-size-scale-up-06: 29px;
  --font-size-scale-up-07: 35px;
  --font-size-scale-up-08: 42px;
  --font-size-scale-up-09: 50px;
  --font-size-scale-up-10: 60px;
  --font-size-scale-up-11: 72px;

  --font-body: 'Rawline', 'Raleway', sans-serif;
}

html, body {
  font-family: 'Rawline', 'Raleway', sans-serif !important;
}

/* Garante que o fundo principal use a variável */
html, body, .main-content, #content, .block {
  background: var(--background);
}

.br-header {
  position: fixed !important;
  top: 0;
  width: 100%;
  background: #fff;
  transition: all 0.3s ease;
  z-index: 9999;
}

/* Links de acesso rápido */
.small-links a.br-button {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  margin-right: 0.25rem;
}

/* Quando o HEADER estiver compacto */
/* HEADER NORMAL */
.header-title {
  display: block;
  font-size: 1.25rem;
}

.header-subtitle {
  display: block;
  font-size: 1.1rem;
  font-weight: normal;
}

/* HEADER COMPACTO */
.br-header.compact .header-title {
  display: none !important;
}

.br-header.compact .header-subtitle {
  display: block !important;
  margin: 0;
}

.compact {
  height: min-content;
}

/* Dark Mode */
html.dark-mode .header-subtitle {
  color: #fff;
}


/* Ajustes para o botão da pesquisa aparecer */
.br-header .search-toggle-button {
  display: none;
}

.br-header.compact .search-toggle-button {
  display: inline-block !important;
}

/* Esconde a barra de pesquisa normal no modo compacto */
.br-header.compact .header-search form {
  display: none;
}

.br-header.compact .header-search .search-close {
  display: none;
}

/* Para manter o espaçamento geral ao ter o header fixo */
body {
  padding-top: 150px; /* ajuste conforme a altura real do seu header */
}

/* AJUSTE PARA A COR DO BACKGROUND QUANDO DER SCROLL DOWN TAMBÉM SER BRANCA */
/* Força o body a ter fundo branco no modo claro */
body {
  background-color: #ffffff;
}

/* Mas, no dark mode, respeita a cor escura */
html.dark-mode body {
  background-color: #111;
}

/* Deixa o bloco principal também branco */
.block {
  background-color: #ffffff;
}

/* AJUSTE PARA O MENU DROPDOWN DO USUÁRIO, DO HEADER, NÃO FICAR ATRÁS DO INPUT DE PESQUISA E NAO ESTOURAR A TELA */
/* Garante que o menu dropdown do usuário apareça corretamente sempre */
.header-login .br-list {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 200px;
  z-index: 10000; /* Mais alto que qualquer outro */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

/* Garante que a busca fique atrás do menu */
.header-search {
  position: relative;
  z-index: 1 !important;
}

.header-login {
  position: relative;
  z-index: 10001; /* Acima da busca */
}

/* Ajuste no estilo do header compacto */
@media screen and (max-width: 1000px) {
    header .header-links {
        z-index: 0 !important ;
        position: inherit !important ;
        box-shadow: none !important ;;
        margin-top: 0px !important ;
        padding: 0 0 !important ;
    }
}