/* Cabeçalho do fórum: acompanha somente a paleta ativa do próprio fórum. */
body.forum-page:not(.dark-theme) .forum-site-header {
  background: #fff !important;
  color: #172033 !important;
  border-bottom: 1px solid #d3dbe4 !important;
  box-shadow: 0 3px 12px #1720330d !important;
}
body.forum-page.dark-theme .forum-site-header {
  background: #091423 !important;
  color: #f3f6fb !important;
  border-bottom: 1px solid #34475b !important;
}
body.forum-page .forum-site-header .main-nav a,
body.forum-page .forum-site-header .forum-header-profile,
body.forum-page .forum-site-header .forum-header-login {
  color: inherit !important;
}
body.forum-page .forum-site-header .main-nav a:hover,
body.forum-page .forum-site-header .main-nav a[aria-current="page"] {
  background: var(--ff-feed-pill) !important;
  color: var(--ff-feed-text) !important;
}
body.forum-page:not(.dark-theme) .forum-site-header .icon-button,
body.forum-page:not(.dark-theme) .forum-site-header .menu-button,
body.forum-page:not(.dark-theme) .forum-site-header .ff-mobile-menu-button,
body.forum-page:not(.dark-theme) .forum-site-header .forum-header-login {
  background: #f4f6f8 !important;
  border-color: #cbd5df !important;
  color: #172033 !important;
}
body.forum-page:not(.dark-theme) .forum-site-header .forum-header-profile .forum-avatar {
  border-color: #cbd5df !important;
}
body.forum-page .forum-site-header .header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
body.forum-page .forum-site-header .header-row:not(:has(> .forum-header-search)) {
  grid-template-columns: minmax(0, 1fr) auto;
}
body.forum-page .forum-site-header .forum-header-primary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
body.forum-page .forum-site-header .forum-header-primary .main-nav {
  width: auto;
  flex: 0 0 auto;
  justify-content: flex-start;
}
body.forum-page .forum-site-header .forum-header-actions {
  justify-self: end;
}
body.forum-page .forum-site-header .forum-header-search {
  min-width: 0;
  width: 100%;
  max-width: 380px;
  justify-self: center;
  margin: 0 !important;
  padding: 0 !important;
}
body.forum-page .forum-site-header .forum-header-search > div {
  display: flex;
  gap: 7px;
  min-width: 0;
}
body.forum-page .forum-site-header .forum-header-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 8px 11px;
}
body.forum-page .forum-site-header .forum-header-search button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
}
@media (max-width: 1149px) {
  body.forum-page .forum-site-header .header-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-block: 8px;
  }
  body.forum-page .forum-site-header .forum-header-search {
    order: 4;
    flex: 1 0 100%;
    max-width: none;
  }
  body.forum-page .forum-site-header .forum-header-primary {
    flex: 0 1 auto;
  }
  body.forum-page .forum-site-header .forum-header-actions {
    margin-left: auto;
  }
}
@media (max-width: 760px) {
  body.forum-page .forum-site-header .forum-header-primary {
    flex: 1 1 auto;
  }
  body.forum-page .forum-site-header .forum-brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  body.forum-page .forum-site-header .forum-header-search {
    flex-basis: 100%;
  }
}
@media (max-width: 860px) {
  body.forum-page:not(.dark-theme) .forum-site-header .main-nav.is-open {
    background: #fff !important;
    border-color: #d3dbe4 !important;
  }
}
