.forum-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px max(20px, calc((100vw - 1120px)/2));
  border-bottom:1px solid rgba(255,255,255,.12);
  background:#111318;
  position:sticky;
  top:0;
  z-index:20;
}

.forum-topbar nav {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.forum-topbar a {
  color:inherit;
  text-decoration:none;
}

.forum-brand {
  font-weight:800;
  font-size:1.25rem;
}

.forum-container {
  max-width:1120px;
  margin:0 auto;
  padding:36px 20px 60px;
}

.forum-hero {
  margin-bottom:30px;
}

.forum-muted {
  opacity:.72;
}

.forum-section {
  margin:34px 0;
}

.forum-list {
  display:grid;
  gap:12px;
}

.forum-card,
.forum-post,
.forum-reply {
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:18px;
  background:rgba(255,255,255,.035);
}

.forum-card {
  display:block;
  color:inherit;
  text-decoration:none;
}

.forum-card:hover {
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.25);
}

.forum-card h3 {
  margin:0 0 8px;
}

.forum-meta {
  opacity:.68;
  font-size:.92rem;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.forum-tags {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:10px;
}

.forum-tag {
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  font-size:.8rem;
}

.forum-post-head,
.forum-reply-head {
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.forum-content {
  line-height:1.65;
  overflow-wrap:anywhere;
}

.forum-content pre {
  overflow:auto;
  padding:12px;
  border-radius:8px;
  background:#0b0c10;
}

.forum-content code {
  background:rgba(255,255,255,.08);
  padding:2px 5px;
  border-radius:5px;
}

.forum-attachment img {
  max-width:100%;
  height:auto;
  border-radius:10px;
}

.forum-replies {
  display:grid;
  gap:12px;
  margin-top:20px;
}

.forum-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:22px 0;
}

.forum-button {
  display:inline-block;
  text-decoration:none;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  color:inherit;
}

.forum-footer {
  text-align:center;
  opacity:.65;
  padding:25px 20px 45px;
}

@media (max-width:700px) {
  .forum-topbar {
    align-items:flex-start;
    flex-direction:column;
  }
}
