/* 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 [data-forum-theme-toggle] svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
}
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-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: none !important;
  filter: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
body.forum-page .forum-site-header .forum-brand img {
  position: static !important;
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  flex: 0 0 52px;
  overflow: visible !important;
  clip-path: none !important;
  border-radius: 13px;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
}
body.forum-page .forum-site-header .forum-brand .forum-brand-wordmark {
  position: static !important;
  display: inline-flex !important;
  align-items: baseline;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip-path: none !important;
  white-space: nowrap !important;
  font: 900 clamp(20px, 1.85vw, 26px)/1 Arial, Helvetica, sans-serif !important;
  letter-spacing: -.055em;
  transform: translateY(-1px);
  text-shadow: none !important;
}
body.forum-page .forum-site-header .forum-brand-wordmark-light { color: #fff; }
body.forum-page .forum-site-header .forum-brand-wordmark-orange { color: #ff5108; }
body.forum-page:not(.dark-theme) .forum-site-header .forum-brand-wordmark-light { color: #172033; }
@media (min-width: 761px) {
  body.forum-page .forum-site-header .forum-brand-wordmark-dash {
    margin-left: 2px;
    margin-right: 3px;
  }
}
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;
  position: relative;
}
body.forum-page .forum-site-header .forum-header-search .ff-search-brand {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  pointer-events: none;
}
body.forum-page .forum-site-header .forum-header-search .ff-search-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.forum-page .forum-site-header .forum-header-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 8px 11px 8px 46px !important;
}
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-brand { gap: 6px; }
  body.forum-page .forum-site-header .forum-brand img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    flex-basis: 42px;
  }
  body.forum-page .forum-site-header .forum-brand .forum-brand-wordmark {
    font-size: clamp(12px, 3.4vw, 18px) !important;
  }
  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;
  }
}
