/* Community page scoped styles */
.edc-community {
  --edc-surface-1: var(--edc-community-surface-1);
  --edc-surface-2: var(--edc-community-surface-2);
  --edc-surface-3: var(--edc-community-surface-3);
  position: relative;
  z-index: 1;
}

.edc-community-hero {
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 2;
}

.edc-community-title {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}

.edc-community-titleWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.edc-community-titleMesh {
  position: absolute;
  left: -18px;
  right: -18px;
  top: -10px;
  bottom: -10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 50%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(circle at 78% 52%, rgba(59, 130, 246, 0.15), transparent 62%);
  filter: blur(24px);
  opacity: 0.65;
  pointer-events: none;
}

.edc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  row-gap: 0.2rem;
  max-width: 100%;
  line-height: 1.35;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.88);
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.edc-breadcrumb-segment {
  color: rgba(148, 163, 184, 0.9);
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
}

.edc-breadcrumb-segment:not(.is-current) {
  opacity: 0.7;
}

.edc-breadcrumb-segment.is-current {
  color: rgba(34, 211, 238, 0.98);
  font-weight: 700;
}

.edc-breadcrumb-chevron {
  width: 0.72rem;
  height: 0.72rem;
  color: rgba(148, 163, 184, 0.7);
}

.edc-community-subtitle {
  margin-top: 0.45rem;
  color: rgba(241, 245, 249, 0.72);
}

.edc-community-actions {
  margin-top: 1rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.edc-community-actionBtn {
  will-change: transform;
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.edc-community-actionBtn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.edc-community-btn {
  min-height: 48px;
  border-radius: 1rem;
}

.edc-community-filterBar {
  margin-top: 0.95rem;
}

.edc-community-filterSticky {
  position: sticky;
  top: 6rem;
  z-index: 24;
  border: 1px solid var(--edc-glass-border);
  border-radius: 1rem;
  background: var(--edc-void-720);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem;
  transition: box-shadow 0.25s ease;
}

.edc-community-filterSticky.is-scrolled {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.14);
}

.edc-community-filterChip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: rgba(241, 245, 249, 0.85);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.edc-community-filterChip:hover {
  color: rgba(103, 232, 249, 0.95);
  border-color: rgba(34, 211, 238, 0.35);
}

.edc-community-filterChip.is-active {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.22);
}

.edc-community-createTrigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  color: #020617;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.edc-community-createTrigger:hover {
  box-shadow:
    0 0 35px rgba(34, 211, 238, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.5);
}

.edc-community-createPlus {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #0e7490;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: edcPlusPulse 2.2s ease-in-out infinite;
}

.edc-community-createLabel {
  line-height: 1;
}

@keyframes edcPlusPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.08);
  }
}

.edc-community-categories {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.edc-community-category {
  background: var(--edc-glass-bg);
  border: 1px solid var(--edc-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
}

.edc-community-categoryHead {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.edc-community-categoryTitle {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  background: linear-gradient(180deg, #ffffff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 14px rgba(148, 163, 184, 0.12);
}

.edc-community-categoryDesc {
  margin-top: 0.45rem;
  max-width: 62ch;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.7);
}

.edc-community-categoryOpen {
  min-width: 76px;
  justify-content: center;
}

.edc-community-meta {
  margin-top: 0.95rem;
}

.edc-community-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.24);
}

.edc-community-boardWrap {
  margin-top: 1rem;
}

.edc-community-boardListHead {
  margin-bottom: 0.7rem;
}

.edc-community-boardListTitle {
  letter-spacing: 0.08em;
}

.edc-community-boardList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.edc-community-board {
  background: var(--edc-glass-bg);
  border: 1px solid var(--edc-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.edc-community-boardFooter {
  display: flex;
}

.edc-community-board:hover {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.edc-community-boardHead {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: start;
}

.edc-community-board-icon-panel,
.edc-community-boardIconWrap {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(34, 211, 238, 0.72);
  background: linear-gradient(145deg, rgba(8, 47, 73, 0.72), rgba(30, 58, 138, 0.5));
  clip-path: polygon(50% 2%, 96% 26%, 96% 74%, 50% 98%, 4% 74%, 4% 26%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 20px rgba(34, 211, 238, 0.22),
    0 0 0 1px rgba(34, 211, 238, 0.3),
    0 8px 22px rgba(6, 182, 212, 0.22),
    0 0 18px rgba(6, 182, 212, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.edc-community-boardIcon {
  width: 2.5rem;
  height: 2.5rem;
  color: #cffafe;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.45));
}

.edc-community-boardTitle {
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

.edc-community-boardHeading {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.edc-community-boardText {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.edc-community-boardDesc {
  margin-top: 0.45rem;
  max-width: 62ch;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgb(148 163 184);
  border-left: 2px solid rgba(6, 182, 212, 0.3);
  padding-left: 0.65rem;
}

.edc-community-boardLatest {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.35rem;
}

.edc-community-boardLatestLink {
  position: relative;
  display: block;
  padding-left: 0.75rem;
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.edc-community-boardLatestLink::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.88);
  transform: translateY(-50%);
}

.edc-community-boardLatestLink:hover {
  color: rgba(103, 232, 249, 0.95);
  transform: translateX(4px);
}

.edc-community-boardLatestEmpty {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.48);
}

.edc-community-boardCta {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #020617;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  will-change: transform;
}

.edc-community-boardCta:hover {
  box-shadow:
    0 0 35px rgba(34, 211, 238, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.edc-community-boardGhostStats {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(226, 232, 240, 0.68);
  white-space: nowrap;
  flex-wrap: nowrap;
  width: fit-content;
}

.edc-community-boardGhostStats span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
}

.edc-community-boardGhostStats span::before {
  content: "";
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.85);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6);
}

.edc-community-boardGhostStats.is-active span::before {
  background: rgba(74, 222, 128, 0.98);
}

.edc-community-boardGhostStats.is-quiet span::before {
  background: rgba(148, 163, 184, 0.95);
}

.edc-community-pill-topics {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.38);
  color: #cffafe;
}

.edc-community-pill-views {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.38);
  color: #dbeafe;
}

.edc-community-pill-subs {
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(165, 180, 252, 0.38);
  color: #e0e7ff;
}

.edc-community-subTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.edc-community-subTag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.edc-community-subTag:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: rgba(103, 232, 249, 0.95);
  background: rgba(34, 211, 238, 0.1);
}

.edc-community-subboards {
  background: rgba(5, 10, 21, 0.52);
  border-color: rgba(148, 163, 184, 0.24);
}

.edc-community-subboardsSummary {
  user-select: none;
  font-size: 0.82rem;
}

.edc-community-subboardsSummary:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.75);
  outline-offset: 3px;
  border-radius: 0.75rem;
}

.edc-community-subboards[open] {
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(7, 13, 27, 0.76);
}

.edc-community-subgrid {
  gap: 0.55rem;
}

.edc-community-subcard {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.edc-community-subcard:hover {
  border-color: rgba(34, 211, 238, 0.38);
}

/* ─── Selected board — unified hero, no duplicate titles/stats ───────────── */
.edc-community-selectedBoard {
  margin-top: 1rem;
}

.edc-boardSurface {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  padding: 1.15rem 1.15rem 1.25rem;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(34, 211, 238, 0.09), transparent 52%),
    radial-gradient(ellipse 70% 50% at 100% 10%, rgba(99, 102, 241, 0.1), transparent 48%),
    linear-gradient(168deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.82));
  border: 1px solid rgba(103, 232, 249, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.edc-boardSurface::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), rgba(129, 140, 248, 0.5), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.edc-board-hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "lead"
    "cta"
    "meta";
  gap: 0.85rem 1.25rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.edc-board-heroLeading {
  grid-area: lead;
  min-width: 0;
}

.edc-board-heroCta {
  grid-area: cta;
}

.edc-board-heroMeta {
  grid-area: meta;
  min-width: 0;
}

.edc-board-kicker {
  margin: 0 0 0.28rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(103, 232, 249, 0.75);
}

.edc-board-title {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #f8fafc;
}

.edc-board-statRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.15rem;
}

.edc-board-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.65rem 0.32rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.edc-board-statIcon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: rgba(103, 232, 249, 0.85);
}

.edc-board-statVal {
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
}

.edc-board-statLab {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: lowercase;
  color: rgba(148, 163, 184, 0.95);
}

.edc-board-statGap {
  width: 1px;
  height: 1.1rem;
  background: rgba(148, 163, 184, 0.22);
  display: none;
}

.edc-board-desc {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(186, 198, 214, 0.92);
  max-width: 40rem;
}

.edc-board-heroCta {
  display: flex;
  justify-content: stretch;
}

.edc-board-createBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.55rem 1.15rem;
  border-radius: 0.95rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #020617;
  text-decoration: none;
  background: linear-gradient(115deg, #22d3ee, #818cf8 55%, #6366f1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.edc-board-createBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 0 32px rgba(34, 211, 238, 0.32),
    0 10px 26px rgba(0, 0, 0, 0.4);
}

.edc-board-createIcon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #0e7490;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.edc-board-createIcon svg {
  width: 0.72rem;
  height: 0.72rem;
}

@media (min-width: 640px) {
  .edc-board-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "lead cta"
      "meta meta";
    align-items: center;
    gap: 0.55rem 1.35rem;
  }

  .edc-board-heroCta {
    justify-content: flex-end;
    align-self: center;
  }

  .edc-board-createBtn {
    width: auto;
    min-width: 10.75rem;
  }

  .edc-board-statRow {
    margin-top: 0.4rem;
  }

  .edc-board-statGap {
    display: block;
  }
}

.edc-board-subsWrap {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  position: relative;
  z-index: 1;
}

.edc-board-subsLabel {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.edc-board-subsScroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.edc-board-subLink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.92);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.22);
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.edc-board-subLink:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.1);
  color: #ecfeff;
}

.edc-board-jumpNav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.edc-board-jumpLink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.35rem 0.65rem 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.26);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.edc-board-jumpLink:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  transform: translateY(-1px);
}

.edc-board-jumpLinkText {
  letter-spacing: -0.01em;
}

.edc-board-jumpCount {
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.95);
  background: linear-gradient(135deg, #67e8f9, #a5b4fc);
}

.edc-board-stack {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  position: relative;
  z-index: 1;
}

.edc-board-cluster {
  scroll-margin-top: 6.25rem;
  padding: 0.85rem 0.85rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.38));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.edc-board-cluster--solo {
  padding: 0.15rem 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.edc-board-clusterHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.edc-board-clusterIntro {
  min-width: 0;
}

.edc-board-clusterTitle {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e2e8f0;
}

.edc-board-clusterDesc {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.9);
}

.edc-board-clusterMeta {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.edc-board-clusterMetric {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.edc-board-topicList {
  margin-top: 0.35rem;
}

.edc-board-cluster--solo .edc-board-topicList {
  margin-top: 0;
}

.edc-board-empty {
  border-radius: 0.85rem;
}

.edc-community-topicList {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.edc-community-topicListItem {
  list-style: none;
}

.edc-community-topicCard {
  position: relative;
  border-radius: 14px;
  isolation: isolate;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.edc-community-topicCard--compact {
  margin-bottom: 0;
}

.edc-community-topicCard:has(.edc-topicAdminMenu) .edc-community-topicCardInner {
  padding-bottom: 0.85rem;
}

.edc-community-topicCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(34, 211, 238, 0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  pointer-events: none;
  z-index: 0;
}

.edc-community-topicCard:hover::before {
  transform: translateX(100%);
}

.edc-community-topicCard:hover {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.28);
  background: rgba(15, 23, 42, 0.72);
  transform: translateY(-1px);
}

.edc-community-topicCard:focus-within {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.edc-community-topicLink {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  color: inherit;
  text-decoration: none;
  outline: none;
  min-height: 44px;
}

.edc-community-topicAccent {
  width: 3px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #22d3ee, #6366f1);
  opacity: 0.85;
  border-radius: 14px 0 0 14px;
  align-self: stretch;
}

.edc-community-topicCardInner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem 0.6rem 0.85rem;
}

.edc-community-topicCardTop {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.edc-community-topicAvatar {
  width: 2.05rem;
  height: 2.05rem;
  flex-shrink: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ecfeff;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.35), rgba(99, 102, 241, 0.45));
  border: 1px solid rgba(103, 232, 249, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edc-community-topicCardMain {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.edc-community-topicTitleRow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.edc-community-topicTitle {
  flex: 1;
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #f1f5f9;
  margin: 0;
}

.edc-community-topicBadges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.edc-topicChip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.42rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.edc-topicChip-icon {
  width: 0.72rem;
  height: 0.72rem;
  flex-shrink: 0;
}

.edc-topicChip-text {
  line-height: 1;
}

.edc-topicChip--pin {
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(34, 211, 238, 0.35);
}

.edc-topicChip--lock {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}

.edc-community-topicSnippet {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.edc-community-topicByline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.88);
  margin-top: 0.05rem;
}

.edc-community-topicAuthorName {
  font-weight: 600;
  color: rgba(203, 213, 225, 0.9);
  max-width: 12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edc-community-topicDot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
  flex-shrink: 0;
}

.edc-community-topicTime {
  color: rgba(125, 211, 252, 0.82);
  font-variant-numeric: tabular-nums;
}

.edc-topicCard-chevron {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.1rem;
  margin-left: 0.15rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.03);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.edc-topicCard-chevron svg {
  width: 1rem;
  height: 1rem;
}

.edc-community-topicCard:hover .edc-topicCard-chevron {
  color: rgba(103, 232, 249, 0.95);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
  transform: translateX(2px);
}

.edc-community-topicCardMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin: 0 0.1rem 0 0;
}

/* Legacy stat badges (if used elsewhere) */
.edc-community-topicTelemetry {
  display: none;
}

.edc-topicStatBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 232, 240, 0.92);
  padding: 4px 10px;
  line-height: 1;
  font-size: 0.72rem;
}

.edc-topicStatBadge svg {
  flex-shrink: 0;
  color: rgba(226, 232, 240, 0.88);
  opacity: 1;
}

.edc-community-topicStats {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.95rem;
  width: 100%;
}

.edc-topicStatPill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(203, 213, 225, 0.88);
  padding: 0.22rem 0.5rem;
  line-height: 1.2;
  font-size: 0.68rem;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.edc-community-topicCard:hover .edc-topicStatPill {
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
}

.edc-topicStatPill svg {
  opacity: 0.75;
}

.edc-topicStatSuffix {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: lowercase;
  color: rgba(148, 163, 184, 0.75);
}

.edc-topicStatIcon {
  opacity: 1;
}

.edc-topicStatValue {
  opacity: 0.9;
}

.edc-modMenuWrap {
  position: absolute;
  bottom: 0.45rem;
  right: 0.45rem;
  z-index: 6;
}

.edc-topicAdminMenu {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.88);
  color: rgba(226, 232, 240, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.edc-topicAdminMenu:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: rgba(34, 211, 238, 0.92);
}

.edc-topicAdminMenu:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.75);
  outline-offset: 2px;
}

.edc-community-topicCard.edc-topicCard--modOpen {
  overflow: visible;
  z-index: 14;
}

.edc-modMenu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.4rem);
  min-width: 12.5rem;
  max-width: min(18rem, calc(100vw - 1.75rem));
  padding: 0.4rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(103, 232, 249, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 16px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.edc-modMenu[hidden] {
  display: none !important;
}

.edc-modMenu.is-open {
  display: block !important;
}

.edc-modMenu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.edc-modMenuLink {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.edc-modMenuLink:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.edc-modMenuLinkIcon,
.edc-modMenuBtnIcon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.88;
}

.edc-modMenuForm {
  margin: 0;
  padding: 0;
  border: none;
}

.edc-modMenuBtn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.92);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.edc-modMenuBtn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.edc-modMenuBtn--accent {
  color: #a5f3fc;
}

.edc-modMenuBtn--accent:hover {
  background: rgba(34, 211, 238, 0.12);
  color: #ecfeff;
}

.edc-modMenuBtn--danger {
  color: #fecaca;
}

.edc-modMenuBtn--danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fff;
}

.edc-modMenuForm--move {
  padding: 0.35rem 0.45rem 0.45rem;
  margin-top: 0.15rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.edc-modMenuLabel {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.edc-modMenuSelect {
  width: 100%;
  min-height: 44px;
  margin-bottom: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.edc-modMenuForm--danger {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* ─── Leaderboard — top contributors ───────────────────────────────────── */
.edc-community-leaderboard {
  margin-bottom: 2rem;
}

.edc-lb-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(99, 102, 241, 0.14), transparent 50%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 56px rgba(0, 0, 0, 0.45);
}

.edc-lb-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: edcLbShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes edcLbShimmer {
  0%, 70%, 100% { transform: translateX(-100%); }
  85% { transform: translateX(100%); }
}

.edc-lb-hero {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.35rem;
  position: relative;
  z-index: 1;
}

.edc-lb-heroIcon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #67e8f9;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.edc-lb-heroIcon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.edc-lb-heroText {
  min-width: 0;
}

.edc-lb-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f8fafc;
  background: linear-gradient(to right, #fff 30%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.edc-lb-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.95);
  max-width: 36rem;
}

.edc-lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.edc-lb-row {
  margin: 0;
  padding: 0;
}

.edc-lb-card {
  display: grid;
  grid-template-columns: auto 3.25rem minmax(0, 1fr) auto;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.75rem 0.85rem 0.75rem 0.65rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
}

.edc-lb-card:hover {
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.edc-lb-card[data-lb-podium="1"] {
  padding-block: 0.95rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(2, 6, 23, 0.45));
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.08);
}

.edc-lb-card--gold {
  border-left: 3px solid #eab308;
}

.edc-lb-card--silver {
  border-left: 3px solid #94a3b8;
}

.edc-lb-card--bronze {
  border-left: 3px solid #d97706;
}

.edc-lb-card--standard {
  border-left: 3px solid rgba(34, 211, 238, 0.45);
}

.edc-lb-card--gold .edc-lb-medal {
  color: #facc15;
}

.edc-lb-card--silver .edc-lb-medal {
  color: #cbd5e1;
}

.edc-lb-card--bronze .edc-lb-medal {
  color: #fb923c;
}

.edc-lb-rankCol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 2.5rem;
}

.edc-lb-medal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
}

.edc-lb-medal svg {
  width: 100%;
  height: 100%;
}

.edc-lb-rankPill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(226, 232, 240, 0.85);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.edc-lb-card--gold .edc-lb-rankPill {
  color: #fef08a;
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.12);
}

.edc-lb-card--silver .edc-lb-rankPill {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.1);
}

.edc-lb-card--bronze .edc-lb-rankPill {
  color: #fdba74;
  border-color: rgba(217, 119, 6, 0.45);
  background: rgba(217, 119, 6, 0.12);
}

.edc-lb-avatarWrap {
  position: relative;
}

.edc-lb-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.edc-lb-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #e0f2fe;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.35), rgba(99, 102, 241, 0.42));
  border: 2px solid rgba(103, 232, 249, 0.35);
}

.edc-lb-main {
  min-width: 0;
}

.edc-lb-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edc-lb-spec {
  margin: 0.12rem 0 0.45rem;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edc-lb-barTrack {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.edc-lb-barFill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
  transition: width 0.4s ease;
}

.edc-lb-barLabel {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.9);
}

.edc-lb-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.edc-lb-levelPill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #020617;
  background: linear-gradient(90deg, #22d3ee, #818cf8);
  white-space: nowrap;
}

.edc-lb-xpValue {
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #67e8f9;
}

.edc-lb-xpAbbr {
  text-decoration: none;
  font-weight: 800;
  color: rgba(103, 232, 249, 0.75);
}

.edc-lb-empty {
  position: relative;
  z-index: 1;
}

@media (max-width: 639px) {
  .edc-lb-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.55rem 0.65rem;
  }

  .edc-lb-rankCol {
    order: 1;
  }

  .edc-lb-avatarWrap {
    order: 2;
  }

  .edc-lb-side {
    order: 3;
    margin-left: auto;
    align-self: center;
  }

  .edc-lb-main {
    order: 4;
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edc-lb-shell::before {
    animation: none;
  }

  .edc-lb-card:hover {
    transform: none;
  }
}

@media (min-width: 768px) {
  .edc-community-categories {
    gap: 1.15rem;
  }
  .edc-community-boardList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edc-community-boardHead {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .edc-community-board {
    padding: 1.1rem 1.1rem 1rem;
  }
}

@media (max-width: 767px) {
  .edc-community-topicCardInner {
    padding: 0.58rem 0.6rem 0.52rem 0.68rem;
  }

  .edc-topicCard-chevron {
    display: none;
  }

  .edc-board-clusterHead {
    flex-direction: column;
    align-items: stretch;
  }

  .edc-board-clusterMeta {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edc-community-topicCard,
  .edc-community-topicCard::before,
  .edc-topicCard-chevron {
    transition: none;
  }

  .edc-community-topicCard:hover {
    transform: none;
  }

  .edc-community-topicCard:hover::before {
    transform: none;
  }

  .edc-community-topicCard:hover .edc-topicCard-chevron {
    transform: none;
  }
}

/* ─── Single topic page (view_post.php) ───────────────────────────────────────
   Tailwind build in style.css omits md:col-span-3 / md:col-span-9; without these,
   the main column and sidebar each default to 1 grid track → ultra-narrow strip. */
.edc-post-page {
  position: relative;
  z-index: 1;
}

.edc-post-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

@media (min-width: 768px) {
  .edc-post-page__layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .edc-post-page__mod {
    grid-column: 1 / -1;
  }

  .edc-post-page__aside {
    grid-column: span 3;
  }

  .edc-post-page__article {
    grid-column: span 9;
    min-width: 0;
    width: 100%;
  }

  .edc-post-page__article--full {
    grid-column: 1 / -1;
  }
}

.edc-post-page__title {
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.22;
}

.edc-post-page__bodyWrap,
.edc-post-page__prose {
  max-width: 100%;
}

.edc-post-page__prose img,
.edc-post-page__prose video {
  height: auto;
}

.edc-post-page__composer textarea {
  resize: vertical;
  max-width: 100%;
}

.edc-post-page__reply {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edc-post-page__reply:hover {
  border-color: rgba(34, 211, 238, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.edc-post-page__back:hover svg {
  transform: translateX(-2px);
  transition: transform 0.2s ease;
}

.edc-post-page__back svg {
  transition: transform 0.2s ease;
}

html[data-theme="light"] .edc-community-categoryTitle {
  background: linear-gradient(180deg, #0f172a 0%, #64748b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

html[data-theme="light"] .edc-community-board-icon-panel,
html[data-theme="light"] .edc-community-boardIconWrap {
  background: linear-gradient(145deg, rgba(207, 250, 254, 0.65), rgba(224, 231, 255, 0.55));
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(15, 23, 42, 0.06),
    inset 0 0 20px rgba(34, 211, 238, 0.1),
    0 0 0 1px rgba(34, 211, 238, 0.22),
    0 8px 22px rgba(6, 182, 212, 0.12),
    0 0 18px rgba(6, 182, 212, 0.14) !important;
}

html[data-theme="light"] .edc-community-boardIcon {
  color: #0e7490;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.12));
}

/* ─── Light theme: community — slate borders & readable text (not in Tailwind bundle) ─── */
html[data-theme="light"] .edc-community .edc-community-createTrigger {
  border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-theme="light"] .edc-community .edc-community-boardCta {
  border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-theme="light"] .edc-community .edc-topicStatBadge {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(15, 23, 42, 0.04) !important;
  color: rgba(15, 23, 42, 0.88) !important;
}

html[data-theme="light"] .edc-community .edc-topicStatBadge svg {
  color: rgba(15, 23, 42, 0.65) !important;
}

html[data-theme="light"] .edc-community .edc-modMenu {
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06) inset,
    0 16px 40px rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .edc-community .edc-lb-avatar {
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .edc-community .edc-lb-barTrack {
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .edc-community .edc-boardSurface {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(34, 211, 238, 0.06), transparent 52%),
    radial-gradient(ellipse 70% 50% at 100% 10%, rgba(99, 102, 241, 0.07), transparent 48%),
    linear-gradient(168deg, color-mix(in srgb, #ffffff 94%, #e2e8f0), #f1f5f9) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.06) inset,
    0 20px 48px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .edc-community .edc-breadcrumb {
  color: rgba(51, 65, 85, 0.9) !important;
}

html[data-theme="light"] .edc-community .edc-breadcrumb-segment {
  color: rgba(51, 65, 85, 0.88) !important;
}

html[data-theme="light"] .edc-community .edc-breadcrumb-segment.is-current {
  color: #0e7490 !important;
}

html[data-theme="light"] .edc-community .edc-breadcrumb-chevron {
  color: rgba(71, 85, 105, 0.65) !important;
}

html[data-theme="light"] .edc-community .edc-community-subtitle {
  color: rgba(51, 65, 85, 0.82) !important;
}

html[data-theme="light"] .edc-community .edc-community-filterChip {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: rgba(15, 23, 42, 0.04) !important;
  color: rgba(15, 23, 42, 0.88) !important;
}

html[data-theme="light"] .edc-community .edc-community-filterChip:hover {
  color: #0e7490 !important;
  border-color: rgba(8, 145, 178, 0.35) !important;
}

html[data-theme="light"] .edc-community .edc-community-filterChip.is-active {
  color: #0e7490 !important;
  border-color: rgba(8, 145, 178, 0.45) !important;
  background: rgba(6, 182, 212, 0.1) !important;
}

html[data-theme="light"] .edc-community .edc-community-categoryDesc {
  color: rgba(51, 65, 85, 0.78) !important;
}

html[data-theme="light"] .edc-community .edc-community-boardLatestLink {
  color: rgba(30, 41, 59, 0.88) !important;
}

html[data-theme="light"] .edc-community .edc-community-boardGhostStats {
  color: rgba(51, 65, 85, 0.75) !important;
}

html[data-theme="light"] .edc-community .edc-community-boardDesc {
  color: rgba(51, 65, 85, 0.82) !important;
}

html[data-theme="light"] .edc-community .edc-community-pill-topics {
  color: #155e75 !important;
  border-color: rgba(8, 145, 178, 0.35) !important;
  background: rgba(6, 182, 212, 0.1) !important;
}

html[data-theme="light"] .edc-community .edc-community-pill-views {
  color: #1e40af !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  background: rgba(59, 130, 246, 0.1) !important;
}

html[data-theme="light"] .edc-community .edc-community-pill-subs {
  color: #4338ca !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  background: rgba(99, 102, 241, 0.1) !important;
}

html[data-theme="light"] .edc-community .edc-community-subTag {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: rgba(15, 23, 42, 0.04) !important;
  color: rgba(15, 23, 42, 0.88) !important;
}

html[data-theme="light"] .edc-community .edc-community-subboards {
  background: rgba(248, 250, 252, 0.92) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .edc-community .edc-community-subboards[open] {
  background: #ffffff !important;
  border-color: rgba(8, 145, 178, 0.28) !important;
}

html[data-theme="light"] .edc-community .edc-community-subcard {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(255, 255, 255, 0.75) !important;
}

html[data-theme="light"] .edc-community .edc-community-topicCard {
  background: color-mix(in srgb, #ffffff 92%, #e2e8f0) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .edc-community .edc-community-topicCard:hover {
  background: #ffffff !important;
  border-color: rgba(8, 145, 178, 0.35) !important;
  box-shadow:
    0 0 0 1px rgba(8, 145, 178, 0.12),
    0 12px 28px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .edc-community .edc-community-topicTitle {
  color: #0f172a !important;
}

html[data-theme="light"] .edc-community .edc-community-topicSnippet {
  color: rgba(51, 65, 85, 0.88) !important;
}

html[data-theme="light"] .edc-community .edc-community-topicByline,
html[data-theme="light"] .edc-community .edc-community-topicAuthorName {
  color: rgba(51, 65, 85, 0.82) !important;
}

html[data-theme="light"] .edc-community .edc-community-topicTime {
  color: rgba(8, 145, 178, 0.92) !important;
}

html[data-theme="light"] .edc-community .edc-topicChip--pin {
  color: #155e75 !important;
}

html[data-theme="light"] .edc-community .edc-topicChip--lock {
  color: #92400e !important;
}

html[data-theme="light"] .edc-community .edc-topicStatPill {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: rgba(15, 23, 42, 0.05) !important;
  color: rgba(15, 23, 42, 0.82) !important;
}

html[data-theme="light"] .edc-community .edc-community-topicCard:hover .edc-topicStatPill {
  border-color: rgba(8, 145, 178, 0.28) !important;
  background: rgba(6, 182, 212, 0.08) !important;
}

html[data-theme="light"] .edc-community .edc-topicStatSuffix {
  color: rgba(71, 85, 105, 0.8) !important;
}

html[data-theme="light"] .edc-community .edc-lb-name {
  color: #0f172a !important;
}

html[data-theme="light"] .edc-community .edc-lb-xpValue {
  color: #0e7490 !important;
}

html[data-theme="light"] .edc-community .edc-lb-xpAbbr {
  color: rgba(8, 145, 178, 0.85) !important;
}

html[data-theme="light"] .edc-community .edc-community-pill {
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .edc-community .edc-lb-shell {
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(34, 211, 238, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(99, 102, 241, 0.1), transparent 50%),
    linear-gradient(165deg, #f8fafc, #e8eef5) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06) inset,
    0 24px 56px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .edc-community .edc-lb-title {
  background: linear-gradient(to right, #0f172a 25%, #0e7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

html[data-theme="light"] .edc-community .edc-lb-subtitle {
  color: rgba(51, 65, 85, 0.88) !important;
}

html[data-theme="light"] .edc-community .edc-lb-card {
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

html[data-theme="light"] .edc-community .edc-lb-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .edc-community .edc-lb-empty {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(15, 23, 42, 0.04) !important;
  color: rgba(15, 23, 42, 0.65) !important;
}

html[data-theme="light"] .edc-community .edc-lb-spec {
  color: rgba(51, 65, 85, 0.78) !important;
}

html[data-theme="light"] .edc-community .edc-board-title {
  color: #0f172a !important;
}

html[data-theme="light"] .edc-community .edc-board-kicker {
  color: rgba(8, 145, 178, 0.9) !important;
}

html[data-theme="light"] .edc-community .edc-board-stat {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .edc-community .edc-board-statIcon {
  color: #0e7490 !important;
}

html[data-theme="light"] .edc-community .edc-board-statVal {
  color: #0f172a !important;
}

html[data-theme="light"] .edc-community .edc-board-statLab {
  color: rgba(51, 65, 85, 0.82) !important;
}

html[data-theme="light"] .edc-community .edc-board-desc {
  color: rgba(51, 65, 85, 0.85) !important;
}

html[data-theme="light"] .edc-community .edc-board-createBtn {
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .edc-community .edc-board-clusterTitle {
  color: #0f172a !important;
}

html[data-theme="light"] .edc-community .edc-board-clusterDesc {
  color: rgba(51, 65, 85, 0.85) !important;
}

html[data-theme="light"] .edc-community .edc-board-clusterMetric {
  color: rgba(15, 23, 42, 0.78) !important;
  background: rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .edc-community .edc-topicCard-chevron {
  background: rgba(15, 23, 42, 0.04) !important;
}
