.forum-page {
  width: min(100% - 32px, 880px);
  padding-block: clamp(24px, 4vw, 46px) 64px;
}

.forum-header {
  gap: 14px 20px;
  align-items: center;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.forum-heading-copy h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 7px;
}

.forum-search input:focus { outline: none; }
.forum-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#forumGiftInventory { color: var(--text-soft); font-size: 13px; }
#forumBackToFeed[hidden], .forum-mention-matches[hidden] { display: none; }
.forum-inline-form .forum-mention-matches { grid-column: 1 / -1; grid-row: 2; }
.forum-mention-matches { display: flex; flex-wrap: wrap; gap: 0.35rem; max-height: 8rem; overflow-y: auto; }
.forum-mention-matches .btn { overflow-wrap: anywhere; min-width: 0; text-align: left; }
.forum-mention-link { color: var(--action-text, #a58cf0); text-decoration: underline; }
.forum-linked-item { outline: 2px solid var(--action-border, #9b83d8); outline-offset: 3px; scroll-margin-top: 5rem; }
.forum-gift-button .forum-action-icon-fallback { font-size: 1.05rem; line-height: 1; }
.forum-gift-sent { opacity: 0.65; }
.forum-search:focus-within {
  outline: 2px solid var(--action-border);
  outline-offset: 2px;
}
.forum-status { margin: 12px 0; min-height: 0; }
.forum-status:empty { display: none; }
.forum-feed { margin-block-start: 16px; }
.forum-post, .forum-empty { box-shadow: none; }
.forum-post h2 { line-height: 1.2; font-size: clamp(21px, 3vw, 28px); }
.forum-post-body, .forum-comment-body { max-width: 75ch; }
.forum-comment-body { color: var(--text-soft); }
.forum-empty h2 { margin: 0 0 5px; font-size: 20px; }
.forum-empty > p { margin: 0; color: var(--muted); }

@media (max-width: 560px) {
  .forum-header { grid-template-columns: minmax(0, 1fr); }
  .forum-header > .btn { justify-self: start; width: auto; }
}
