/* Direct Forum access stays outside the collapsible navigation and session controls. */
.site-header.v24-header[data-header-forum] {
  flex-wrap: wrap;
}

.site-header.v24-header[data-header-forum] > .header-forum-link {
  --nav-forum-paper: #FFFAF0;
  --nav-forum-copper: #855333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-inline-size: 44px;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: 8px 12px;
  border: 1px solid var(--nav-forum-paper);
  border-radius: 8px;
  background: var(--nav-forum-copper);
  color: var(--nav-forum-paper);
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-header.v24-header[data-header-forum] > .header-forum-link:focus-visible {
  outline: 3px solid var(--nav-forum-paper);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .site-header.v24-header[data-header-forum] > .header-forum-link {
    flex-basis: 100%;
    inline-size: 100%;
    /* Keep DOM order: brand, Forum, then controls with order 0/2; nav has order 3. */
    order: 0;
  }
}
