.r2-qa-main {
  max-width: 980px;
}

.r2-qa-controls {
  margin: 24px 0 18px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(32, 33, 29, 0.14);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(32, 33, 29, 0.05);
}

.r2-qa-search-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b5952;
  margin-bottom: 8px;
}

.r2-qa-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#questionsSearchInput {
  flex: 1 1 280px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(32, 33, 29, 0.22);
  background: #faf8ef;
  color: #20211d;
  font-size: 16px;
  font-weight: 600;
  box-sizing: border-box;
}

#questionsSearchInput:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  background: #ffffff;
}

.r2-qa-count {
  font-size: 13px;
  font-weight: 800;
  color: #44403c;
  white-space: nowrap;
}

.r2-qa-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.r2-topic-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(32, 33, 29, 0.18);
  background: #faf8ef;
  color: #20211d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.r2-topic-pill:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

.r2-topic-pill.is-active {
  background: #20211d;
  border-color: #20211d;
  color: #ffffff;
}

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

.r2-qa-card {
  border: 1px solid rgba(32, 33, 29, 0.14);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.r2-qa-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 800;
  color: #1c1917;
  line-height: 1.35;
}

.r2-qa-card summary::-webkit-details-marker {
  display: none;
}

.r2-qa-tag {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #faf8ef;
  border: 1px solid rgba(32, 33, 29, 0.12);
  color: #57534e;
  white-space: nowrap;
  flex-shrink: 0;
}

.r2-qa-body {
  padding: 0 18px 16px;
  border-top: 1px solid rgba(32, 33, 29, 0.08);
  font-size: 14.5px;
  line-height: 1.65;
  color: #44403c;
}

.r2-qa-body p {
  margin: 12px 0 8px;
}

.r2-qa-body a {
  display: inline-block;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.r2-qa-empty {
  padding: 18px;
  border-radius: 12px;
  background: #fef9c3;
  border: 1px solid rgba(161, 98, 7, 0.25);
  color: #1c1917;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .r2-qa-controls {
    padding: 16px;
  }

  .r2-qa-card summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .r2-qa-body {
    padding: 0 16px 14px;
  }
}
