html[data-rl-navigation="true"] { --rl-header-height: 80px; scroll-padding-top: var(--rl-header-height); }
html[data-rl-navigation="true"] [data-rl-header-offset] { top: var(--rl-header-height) !important; }
header.rl-public-navigation {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px !important;
  padding: 0 32px !important;
  height: 80px !important;
  background: var(--rl-language-surface) !important;
  border-bottom: 1px solid var(--rl-language-border) !important;
}
.rl-public-navigation > a:first-child { min-width: 0; }
.rl-public-navigation > a:first-child img { width: 148px !important; height: auto !important; }
.rl-public-navigation [data-r="nav"] {
  display: flex !important;
  justify-content: center;
  min-width: 0;
  margin: 0 !important;
  gap: 18px !important;
}
.rl-public-navigation [data-r="nav"] a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--rl-language-ink) !important;
  font: 500 13px/1.4 Inter, sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.rl-public-navigation [data-r="nav"] a:hover,
.rl-public-navigation [data-r="nav"] a[aria-current="page"] {
  border-bottom-color: var(--rl-language-accent);
}
.rl-public-navigation [data-r="lang"] { margin: 0 !important; }
.rl-public-navigation [data-r="cta-header"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--rl-language-accent) !important;
  color: var(--rl-language-ink) !important;
  font: 700 12px/1.4 Archivo, sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}
header.rl-public-navigation [data-r="burger"] { display: none !important; }
.rl-public-navigation a:focus-visible,
.rl-public-navigation button:focus-visible,
.rl-mobile-navigation a:focus-visible,
.rl-mobile-navigation button:focus-visible {
  outline: 3px solid var(--rl-language-accent);
  outline-offset: 3px;
}
.rl-mobile-navigation { display: none !important; }
.rl-mobile-navigation[data-rl-open="true"] {
  display: flex !important;
  inset: 0 !important;
  padding: 20px !important;
  gap: 20px !important;
  justify-content: flex-start !important;
  background: var(--rl-language-surface) !important;
  color: var(--rl-language-ink) !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  height: 100dvh;
  animation: rl-navigation-enter 160ms ease-out;
}
.rl-mobile-navigation > div:first-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rl-language-border);
}
.rl-mobile-navigation > div:first-child img { width: 148px !important; height: auto !important; }
.rl-mobile-navigation > div:first-child button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px !important;
  color: var(--rl-language-ink) !important;
  font: 500 13px/1.4 Inter, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.rl-mobile-navigation nav { order: 1; flex: 0 0 auto; }
.rl-mobile-navigation nav a {
  min-height: 48px;
  display: flex !important;
  align-items: center;
  padding: 12px 0 !important;
  border: 0 !important;
  font: 500 18px/1.35 Inter, sans-serif !important;
  color: var(--rl-language-ink) !important;
  letter-spacing: 0 !important;
}
.rl-mobile-navigation nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--rl-language-accent);
  padding-left: 12px !important;
}
.rl-mobile-navigation [data-r="lang"] {
  order: 2;
  align-self: flex-start;
  margin: 0 !important;
  flex-shrink: 0;
  border-color: var(--rl-language-border) !important;
  border-radius: 8px;
}
.rl-mobile-navigation > a:last-child {
  order: 3;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 52px;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 16px !important;
  color: var(--rl-language-ink) !important;
  background: var(--rl-language-accent) !important;
  font: 700 14px/1.4 Archivo, sans-serif !important;
  letter-spacing: 0 !important;
}
html[data-rl-menu-open="true"] { overflow: hidden; }
@media (min-width: 768px) and (max-width: 1199px) {
  html[data-rl-navigation="true"] { --rl-header-height: 112px; }
  header.rl-public-navigation {
    height: 112px !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 62px 50px;
    gap: 0 20px !important;
  }
  .rl-public-navigation [data-r="nav"] {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 28px !important;
    border-top: 1px solid var(--rl-language-border);
  }
}
@media (max-width: 767px) {
  html[data-rl-navigation="true"] { --rl-header-height: 72px; }
  header.rl-public-navigation {
    height: 72px !important;
    padding: 0 20px !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px !important;
  }
  header.rl-public-navigation [data-r="nav"],
  header.rl-public-navigation [data-r="cta-header"] { display: none !important; }
  header.rl-public-navigation [data-r="burger"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: row !important;
    gap: 8px !important;
    min-height: 44px;
    width: auto !important;
    padding: 8px 0 8px 8px !important;
    margin: 0 !important;
    color: var(--rl-language-ink) !important;
    font: 500 13px/1.4 Inter, sans-serif !important;
    letter-spacing: 0 !important;
  }
  .rl-public-navigation [data-r="burger"] svg { width: 22px; height: 22px; flex-shrink: 0; }
}
@media (max-width: 479px) {
  html[data-rl-navigation="true"] { --rl-header-height: 108px; }
  header.rl-public-navigation {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 56px 48px;
    height: 108px !important;
    gap: 0 12px !important;
  }
  .rl-public-navigation [data-r="burger"] { grid-column: 2; grid-row: 1; }
  .rl-public-navigation [data-r="lang"] {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    min-height: 40px;
    border-color: var(--rl-language-border) !important;
  }
  .rl-public-navigation [data-r="lang"] [data-lang="pt"],
  .rl-mobile-navigation [data-r="lang"] [data-lang="pt"] { font-size: 13px !important; }
  .rl-public-navigation [data-r="lang"] [data-lang="pt"]::after,
  .rl-mobile-navigation [data-r="lang"] [data-lang="pt"]::after { content: none; }
}
@keyframes rl-navigation-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .rl-mobile-navigation { animation: none !important; } }