.rh {
  --rh-bg: #f5f5f7;
  --rh-panel: #fff;
  --rh-text: #202027;
  --rh-muted: #676772;
  --rh-border: #dedee5;
  color: var(--rh-text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
.dark .rh {
  --rh-bg: #101014;
  --rh-panel: #19191f;
  --rh-text: #f4f4f7;
  --rh-muted: #aaaab7;
  --rh-border: #303039;
}
.rh-page {
  background: var(--rh-bg);
  min-height: 80vh;
  padding: 48px 20px 80px;
}
.rh-wrap {
  max-width: 1160px;
  margin: auto;
}
.rh h1,
.rh :is(h2,.rh-label-h2),
.rh :is(h3,.rh-label-h3) {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 800;
  line-height: 1.15;
}
.rh h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin: 8px 0 20px;
}
.rh :is(h2,.rh-label-h2) {
  font-size: 1.5rem;
  margin: 0 0 20px;
}
.rh-author-identity .rh-author-name {
  display: block;
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}
.rh :is(h3,.rh-label-h3) {
  font-size: 1.15rem;
  margin: 0 0 12px;
}
.rh p {
  margin: 0 0 16px;
}
.rh-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #e53946;
}
.rh-muted {
  color: var(--rh-muted);
  font-size: 0.88rem;
}
.rh-card {
  padding: 26px;
  border: 1px solid var(--rh-border);
  background: var(--rh-panel);
  border-radius: 18px;
}
.rh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rh-stack {
  display: grid;
  gap: 22px;
}
.rh-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.rh-between {
  justify-content: space-between;
}
.rh button,
.rh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--rh-border);
  background: var(--rh-panel);
  color: var(--rh-text);
  cursor: pointer;
  text-decoration: none;
  gap: 8px;
}
.rh .rh-primary {
  background: #d92334;
  border-color: #d92334;
  color: #fff;
}
.rh button:hover,
.rh-btn:hover {
  filter: brightness(0.94);
}
.rh button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.rh :focus-visible {
  outline: 3px solid #e53946;
  outline-offset: 3px;
}
.rh label {
  display: block;
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 16px;
}
.rh input:not([type="checkbox"]):not([type="radio"]),
.rh textarea,
.rh select {
  display: block;
  width: 100%;
  border: 1px solid var(--rh-border);
  border-radius: 9px;
  background: var(--rh-bg);
  color: var(--rh-text);
  padding: 11px 13px;
  margin-top: 7px;
  font: inherit;
}
.rh textarea {
  min-height: 110px;
  resize: vertical;
}
.rh input[type="checkbox"] {
  margin-right: 8px;
}
.rh-status {
  white-space: pre-line;
  font-size: 14px;
  color: var(--rh-muted);
  min-height: 24px;
  margin-top: 14px !important;
}
.rh-error {
  color: #d92334 !important;
}
.rh [hidden] {
  display: none !important;
}
.rh-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.rh-chip {
  background: var(--rh-bg);
  border: 1px solid var(--rh-border);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}
.rh-banner {
  height: 210px;
  object-fit: cover;
  width: 100%;
  border-radius: 18px 18px 0 0;
  background:
    radial-gradient(ellipse at 80% 10%, #8c203a, transparent 60%),
    linear-gradient(120deg, #171723, #312144);
}
.rh-profile-head {
  margin-top: -44px;
  position: relative;
  padding: 0 30px 25px;
}
.rh-avatar {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  object-fit: cover;
  border: 5px solid var(--rh-panel);
  background: #d92334;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 40px;
  font-weight: 800;
}
.rh-profile-columns {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 24px;
  margin-top: 24px;
}
.rh-stat {
  flex: 1;
  padding: 16px;
  background: var(--rh-bg);
  border-radius: 12px;
}
.rh-stat strong {
  display: block;
  font-size: 26px;
}
.rh-stat span {
  color: var(--rh-muted);
  font-size: 12px;
}
.rh dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  font-size: 14px;
}
.rh dt {
  color: var(--rh-muted);
}
.rh dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.rh-post-body {
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.rh-post-body p {
  white-space: pre-wrap;
}
.rh-post-body blockquote {
  border-left: 3px solid #d92334;
  padding: 12px 24px;
  margin: 24px 0;
  background: var(--rh-bg);
}
.rh figure {
  margin: 24px 0;
}
.rh figure img {
  max-width: 100%;
  border-radius: 12px;
}
.rh figcaption {
  color: var(--rh-muted);
  font-size: 12px;
  margin-top: 8px;
}
.rh a:not(.rh-btn) {
  text-underline-offset: 3px;
}
.rh-comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--rh-border);
  overflow-wrap: anywhere;
}
.rh-comment p {
  white-space: pre-wrap;
  margin: 8px 0;
}
.rh-discussion {
  margin: 32px 0;
}
.rh-block {
  border: 1px solid var(--rh-border);
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
}
.rh-auth {
  max-width: 500px;
  margin: 30px auto;
}
.rh-progress {
  height: 6px;
  background: var(--rh-border);
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0;
}
.rh-progress span {
  display: block;
  height: 100%;
  background: #d92334;
}
.rh-post-list a {
  font-size: 1.15rem;
  font-weight: 800;
}
.rh-score {
  font-size: 28px;
  color: #e53946;
  font-weight: 900;
}
.rh-note {
  padding: 14px;
  border-left: 3px solid #e53946;
  background: var(--rh-bg);
  font-size: 13px;
}
.rh-danger {
  color: #d92334 !important;
}
.rh hr {
  border: 0;
  border-top: 1px solid var(--rh-border);
  margin: 24px 0;
}
@media (max-width: 760px) {
  .rh-grid,
  .rh-profile-columns {
    grid-template-columns: 1fr;
  }
  .rh-page {
    padding: 25px 14px 50px;
  }
  .rh-card {
    padding: 20px;
  }
  .rh-banner {
    height: 150px;
  }
  .rh-profile-head {
    padding: 0 20px 20px;
  }
  .rh-stat {
    padding: 12px;
  }
  .rh-stat strong {
    font-size: 22px;
  }
}

/* Clear entry points for the three community activities. */
.rh-account-actions,.rh-community-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 32px}.rh-account-actions>a,.rh-community-paths>a{display:flex;flex-direction:column;gap:10px;padding:24px;border:1px solid #8883;border-radius:14px;text-decoration:none;background:var(--rh-card,transparent)}.rh-account-actions strong,.rh-community-paths strong{font-size:20px}.rh-account-actions span,.rh-community-paths span{font-size:14px;line-height:1.6;opacity:.8}.rh-account-actions>a:hover,.rh-community-paths>a:hover{border-color:#ef4444}.rh-account-actions>a:focus-visible,.rh-community-paths>a:focus-visible{outline:3px solid #ef4444;outline-offset:3px}@media(max-width:760px){.rh-account-actions,.rh-community-paths{grid-template-columns:1fr}}

/* Keep public profile panels within their own grid track. */
.rh-profile-columns{grid-template-columns:minmax(0,330px) minmax(0,1fr)}
.rh-profile-columns>*{min-width:0}
@media(max-width:800px){.rh-profile-columns{grid-template-columns:minmax(0,1fr)}}
.rh-profile-head{display:flex;gap:18px;align-items:center;margin-top:18px}
.rh-avatar{margin-top:-54px}
.rh-profile-head h1{margin:4px 0}
.rh-profile-handle{color:var(--rh-muted);margin:0}
.rh-xp{margin-left:auto;font-size:1.35rem}
.rh-avatar img,.rh-avatar .avatar{width:100%;height:100%;object-fit:cover;border-radius:16px}
.rh-stats{display:flex;gap:12px;margin:16px 0}
.rh-stars{color:#d88911;letter-spacing:2px;font-size:22px;margin:0 0 12px}
.rh-badges{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.rh-badges li{padding:12px 14px;border:1px solid var(--rh-border);border-radius:12px;background:var(--rh-panel)}
.rh-badges strong,.rh-badges span{display:block}
.rh-badges span{color:var(--rh-muted);font-size:13px}
.rh-profile-posts{margin-top:36px}
.rh-chips{display:flex;flex-wrap:wrap;gap:8px}
.rh-hub-pager{display:flex;gap:12px;margin-top:8px}
