.forum-page-body {
  min-height: 100%;
  overflow: auto;
  background: #eee7d5;
  color: #3f312c;
}

.forum-page-body .main-nav {
  align-items: flex-start;
}

.forum-page-body .nav-badge {
  text-decoration: none;
}

.forum-page-body [aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.forum-scaffold {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 48px) 0 64px;
}

.forum-scaffold__heading {
  max-width: 760px;
}

.forum-scaffold__heading > p:first-child {
  margin: 0 0 8px;
  color: #9f7f58;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.forum-scaffold__heading h1 {
  margin: 0;
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.forum-session-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 36px 0;
  border: 1px solid #cfc2aa;
  padding: 18px;
}

.forum-session-state p {
  flex: 1;
  margin: 0;
}

.forum-session-state a {
  color: #684941;
  font-weight: 700;
  text-decoration: underline;
}

.forum-session-state button {
  min-height: 42px;
  border: 0;
  background: #ba9e76;
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
}

.forum-session-state button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.forum-scaffold__layout {
  display: grid;
  gap: 28px;
}

.forum-scaffold__layout h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.forum-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.forum-topic-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 15px;
  min-height: 110px;
  border: 1px solid #cfc2aa;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  padding: 18px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.forum-topic-card:hover {
  border-color: #a99373;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.forum-topic-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dfd2bb;
  color: #674b40;
}

.forum-topic-card__icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.forum-topic-card h3 {
  margin: 1px 0 7px;
  font-size: 1rem;
}

.forum-topic-card p {
  margin: 0;
  color: #756a60;
  font-size: 0.79rem;
  line-height: 1.55;
}

.forum-loading-message {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed #b9aa91;
  padding: 24px;
  color: #7f746a;
}

@media (max-width: 760px) {
  .forum-scaffold {
    padding-top: 28px;
  }

  .forum-topic-grid {
    grid-template-columns: 1fr;
  }
}
