body.theme-orbit {
  background-color: #EAEDF1;
}

.theme-orbit .site-header {
  background-color: #FFFFFF;
  border-block-end: 1px solid #D3D6DA;
}

.theme-orbit .button:not(.button-secondary) {
  background-color: #C83200;
  border-color: #C83200;
  color: #FFFFFF;
}

.theme-orbit :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   Feed Card: Reddit-Style Vote Rail + Post Header
   ========================================================================== */
.theme-orbit .community-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme-orbit .orbit-card {
  display: flex;
  align-items: stretch;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.theme-orbit .orbit-card:hover {
  border-color: #898989;
}

/* Reddit-Style Vertical Vote Rail */
.theme-orbit .orbit-vote-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  inline-size: 2.75rem;
  padding-block: 0.75rem;
  background-color: var(--color-surface-soft);
  gap: 0.25rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.8125rem;
}

.theme-orbit .orbit-vote-rail .vote-icon {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1;
}

.theme-orbit .orbit-vote-rail strong {
  font-size: 0.875rem;
  line-height: 1.2;
}

/* Post Content Container */
.theme-orbit .orbit-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-inline-size: 0;
  padding-inline: 1rem;
  padding-block: 0.75rem;
}

.theme-orbit .orbit-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-block-end: 0.35rem;
}

.theme-orbit .orbit-sub-badge {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.theme-orbit .orbit-sub-badge:hover {
  text-decoration: underline;
}

.theme-orbit .orbit-flair {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.4rem;
  padding-block: 0.1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  background-color: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.theme-orbit .orbit-flair.is-best {
  background-color: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

.theme-orbit .orbit-post-title {
  margin: 0 0 0.4rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.theme-orbit .orbit-post-title a {
  color: var(--color-text);
  text-decoration: none;
}

.theme-orbit .orbit-post-title a:hover {
  text-decoration: underline;
}

.theme-orbit .orbit-post-excerpt {
  margin: 0 0 0.6rem 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reddit-Style Bottom Action Pills */
.theme-orbit .orbit-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-block-start: auto;
}

.theme-orbit .orbit-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-inline: 0.6rem;
  padding-block: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.theme-orbit .orbit-pill-btn:hover {
  background-color: var(--color-surface-soft);
  color: var(--color-text);
}

/* ==========================================================================
   Question / Topic Detail: Thread Indentation Guides
   ========================================================================== */
.theme-orbit .orbit-detail-wrap {
  display: flex;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-block-end: 1.5rem;
}

.theme-orbit .orbit-detail-body {
  flex: 1 1 auto;
  min-inline-size: 0;
  padding-inline: 1.5rem;
  padding-block: 1.25rem;
}

.theme-orbit .orbit-thread-comment {
  border-inline-start: 2px solid var(--color-border);
  padding-inline-start: 1rem;
  margin-block: 0.75rem;
  transition: border-color 0.15s ease;
}

.theme-orbit .orbit-thread-comment:hover {
  border-inline-start-color: var(--color-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 640px) {
  .theme-orbit .orbit-vote-rail {
    inline-size: 2.25rem;
    padding-block: 0.5rem;
  }

  .theme-orbit .orbit-card-content {
    padding-inline: 0.75rem;
    padding-block: 0.6rem;
  }

  .theme-orbit .orbit-detail-body {
    padding-inline: 0.875rem;
    padding-block: 1rem;
  }
}
