body.theme-zenith {
  background-color: #F0F4F8;
}

:root {
  --zenith-accent-bar: 4px;
}

.theme-zenith .site-header {
  border-block-end: 2px solid #6366F1;
  background-color: #FFFFFF;
}

.theme-zenith .button:not(.button-secondary) {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  border-color: #4F46E5;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

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

/* ==========================================================================
   Header & Modern Hero Panel
   ========================================================================== */
.theme-zenith .site-header {
  border-block-end: 1px solid var(--color-border);
  background-color: var(--color-surface);
  backdrop-filter: blur(8px);
}

.theme-zenith .zenith-hero-panel {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-soft) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding-inline: 2rem;
  padding-block: 2.25rem;
  margin-block: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

.theme-zenith .community-feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 0.5rem;
}

.theme-zenith .community-feed-tabs a {
  padding-inline: 1.15rem;
  padding-block: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.15s ease;
}

.theme-zenith .community-feed-tabs a:hover {
  background-color: var(--color-surface-soft);
  color: var(--color-text);
  border-color: var(--color-primary);
}

.theme-zenith .community-feed-tabs a[aria-current="page"] {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   Feed: Modern Bento Cards with Dynamic Highlight
   ========================================================================== */
.theme-zenith .community-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.theme-zenith .zenith-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.theme-zenith .zenith-card.is-question {
  border-inline-start: var(--zenith-accent-bar) solid var(--color-primary);
}

.theme-zenith .zenith-card.is-discussion {
  border-inline-start: var(--zenith-accent-bar) solid var(--color-secondary);
}

/* Modern Vote & Metrics Column */
.theme-zenith .zenith-metric-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  inline-size: 5rem;
  padding-inline: 0.5rem;
  padding-block: 1rem;
  background-color: var(--color-surface-soft);
  border-inline-end: 1px solid var(--color-border);
  gap: 0.5rem;
  text-align: center;
}

.theme-zenith .zenith-vote-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  padding-block: 0.35rem;
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.theme-zenith .zenith-vote-pill strong {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.theme-zenith .zenith-vote-pill span {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.theme-zenith .zenith-answers-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding-inline: 0.5rem;
  padding-block: 0.2rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
}

.theme-zenith .zenith-answers-badge.has-answers {
  background-color: var(--color-primary);
  color: #ffffff;
}

.theme-zenith .zenith-answers-badge.has-best-answer {
  background-color: var(--color-success);
  color: #ffffff;
}

/* Card Main Area */
.theme-zenith .zenith-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-inline-size: 0;
  padding-inline: 1.5rem;
  padding-block: 1.15rem;
}

.theme-zenith .zenith-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 0.35rem;
  font-size: 0.8125rem;
}

.theme-zenith .zenith-badge-category {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.6rem;
  padding-block: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background-color: rgba(99, 102, 241, 0.08);
  color: var(--color-primary);
  text-decoration: none;
}

.theme-zenith .zenith-badge-category:hover {
  background-color: rgba(99, 102, 241, 0.16);
}

.theme-zenith .zenith-card-title {
  margin: 0 0 0.35rem 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
}

.theme-zenith .zenith-card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.theme-zenith .zenith-card-title a:hover {
  color: var(--color-primary);
}

.theme-zenith .zenith-card-excerpt {
  margin: 0 0 0.75rem 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-zenith .zenith-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-start: auto;
  padding-block-start: 0.5rem;
  border-block-start: 1px solid var(--color-surface-soft);
}

.theme-zenith .zenith-tag-pill {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.45rem;
  padding-block: 0.15rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-soft);
  color: var(--color-text);
  text-decoration: none;
}

.theme-zenith .zenith-tag-pill:hover {
  background-color: var(--color-border);
}

/* ==========================================================================
   Question Detail View: Modern Highlight & Action Bar
   ========================================================================== */
.theme-zenith .zenith-question-wrap {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding-inline: 2rem;
  padding-block: 2rem;
  box-shadow: var(--shadow-sm);
  margin-block-end: 2rem;
}

.theme-zenith .zenith-accepted-card {
  background-color: #f0fdf4;
  border: 2px solid var(--color-success);
  border-radius: var(--radius-lg);
  padding-inline: 1.75rem;
  padding-block: 1.5rem;
  margin-block-end: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.theme-zenith .zenith-accepted-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0.75rem;
  padding-block: 0.35rem;
  background-color: var(--color-success);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-block-end: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 640px) {
  .theme-zenith .zenith-card {
    flex-direction: column;
  }

  .theme-zenith .zenith-metric-col {
    flex-direction: row;
    inline-size: 100%;
    border-inline-end: none;
    border-block-end: 1px solid var(--color-border);
    justify-content: flex-start;
    padding-inline: 1rem;
    padding-block: 0.5rem;
  }

  .theme-zenith .zenith-vote-pill {
    inline-size: auto;
    flex-direction: row;
    gap: 0.35rem;
    padding-inline: 0.5rem;
  }

  .theme-zenith .zenith-card-body {
    padding-inline: 1rem;
    padding-block: 1rem;
  }

  .theme-zenith .zenith-question-wrap {
    padding-inline: 1rem;
    padding-block: 1.25rem;
  }
}
