.qa-list-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 0 28px;
}

.qa-list-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  color: #111827;
}

.qa-list-head p {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 15px;
}

.qa-list-actions {
  margin-top: 12px;
}

.qa-list-ask-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111827;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
}

.qa-list-tabs {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qa-list-tabs a {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #374151;
  background: #ffffff;
}

.qa-list-tabs a.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.qa-list-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.qa-list-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-list-pagination {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qa-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.qa-page-link.is-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.qa-card {
  display: flex;
  gap: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
}

.qa-card-solved {
  border-left: 4px solid #059669;
}

.qa-card-empty {
  display: block;
  text-align: center;
}

.qa-card-empty h2 {
  margin: 0;
  font-size: 20px;
}

.qa-card-empty p {
  margin: 8px 0 0;
  color: #6b7280;
}

.qa-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: #f3f4f6;
  color: #1f2937;
  flex: 0 0 44px;
}

.qa-card-main {
  min-width: 0;
  width: 100%;
}

.qa-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.qa-card-top h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.qa-card-top h2 a {
  color: #111827;
  text-decoration: none;
}

.qa-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 8px;
}

.qa-badge-solved {
  background: #047857;
}

.qa-card-excerpt {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.qa-card-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: #6b7280;
}

.qa-list-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-widget {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.qa-widget h3 {
  margin: 0;
  font-size: 15px;
}

.qa-widget ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.qa-widget li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.qa-widget li:last-child {
  border-bottom: 0;
}

.qa-widget li span {
  color: #4b5563;
}

.qa-widget li strong {
  color: #111827;
}

.qa-top-members li {
  display: block;
}

.qa-member-name {
  display: block;
  color: #111827;
  font-weight: 700;
}

.qa-top-members small {
  color: #6b7280;
  font-size: 12px;
}

.qa-widget-empty {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 980px) {
  .qa-list-layout {
    grid-template-columns: 1fr;
  }
}
