.rf-community-topics {
  background: #f3f5f7;
}

.rf-community-forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
  align-items: start;
}

.rf-community-topic-list {
  display: grid;
  gap: 14px;
  border-top: 0;
}

.rf-community-topic {
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px;
  border: 1px solid #e4e7ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(18, 25, 33, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rf-community-topic:hover,
.rf-community-topic:focus-visible {
  border-color: rgba(255, 130, 0, .42);
  background: #fff;
  box-shadow: 0 16px 38px rgba(18, 25, 33, .09);
  transform: translateY(-2px);
}

.rf-community-topic > div {
  gap: 10px;
}

.rf-community-topic > div > strong {
  font-size: clamp(19px, 2vw, 23px);
}

.rf-community-topic > em {
  align-self: end;
  padding-bottom: 2px;
}

.rf-community-post-author {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 3px;
}

.rf-community-post-author > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.rf-community-post-author b {
  overflow: hidden;
  color: #25282c;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rf-community-post-author small {
  color: #8a8f95;
  font-size: 12px;
  line-height: 1.4;
}

.rf-community-post-author i {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #9a4c00;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  background: #fff0dd;
}

.rf-community-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 0 1px #e0e3e6;
}

.rf-community-avatar-orange { background: linear-gradient(135deg, #ff9d32, #ef6500); }
.rf-community-avatar-dark { background: linear-gradient(135deg, #424a54, #14171b); }
.rf-community-avatar-slate { background: linear-gradient(135deg, #75808c, #39414a); }
.rf-community-avatar-support { background: linear-gradient(135deg, #ff8200, #1d2024); }

.rf-community-editorial-note {
  margin-bottom: 0;
  background: #fff8ef;
}

.rf-community-forum-sidebar {
  position: sticky;
  top: calc(var(--rf-header-height, 72px) + 18px);
  display: grid;
  gap: 14px;
}

.rf-community-forum-sidebar section {
  padding: 22px;
  border: 1px solid #e4e7ea;
  border-radius: 18px;
  background: #fff;
}

.rf-community-forum-sidebar h3 {
  margin: 0 0 15px;
  color: #22262a;
  font-size: 17px;
}

.rf-community-forum-sidebar p,
.rf-community-forum-sidebar li {
  color: #6c737a;
  font-size: 14px;
  line-height: 1.75;
}

.rf-community-forum-sidebar p { margin: 0; }
.rf-community-forum-sidebar ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; }

.rf-community-forum-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #eef0f2;
  color: #333 !important;
  text-decoration: none !important;
}

.rf-community-forum-sidebar a:first-of-type { border-top: 0; }
.rf-community-forum-sidebar a:hover { color: #e96f00 !important; }
.rf-community-forum-sidebar a span { color: #ff8200; font-size: 12px; font-weight: 800; }

@media (max-width: 980px) {
  .rf-community-forum-layout { grid-template-columns: 1fr; }
  .rf-community-forum-sidebar { position: static; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .rf-community-topic {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .rf-community-topic > em { grid-column: 1; }
  .rf-community-topic-mark { width: max-content; }
  .rf-community-forum-sidebar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rf-community-topic { transition: none; }
}
