/**
 * Evabiz — /cong-dong directory (redesign v8)
 * 1-column · spacious cover/name · cream/plum/coral
 * Shell width aligned with site header (~1180) / home (1280)
 */

:root {
  --eb-comm-ink: #1c1410;
  --eb-comm-muted: #7a7068;
  --eb-comm-faint: #a39a90;
  --eb-comm-line: rgba(28, 20, 16, 0.09);
  --eb-comm-cream: #f3eee6;
  --eb-comm-cream-deep: #ebe3d8;
  --eb-comm-surface: #ffffff;
  --eb-comm-plum: #3d2a32;
  --eb-comm-plum-deep: #2a1c22;
  --eb-comm-coral: #e07a5f;
  --eb-comm-coral-hot: #d4654a;
  --eb-comm-shadow: 0 1px 2px rgba(28, 20, 16, 0.04), 0 10px 32px rgba(28, 20, 16, 0.07);
  --eb-comm-shadow-hover: 0 6px 16px rgba(28, 20, 16, 0.07), 0 20px 48px rgba(61, 42, 50, 0.12);
  --eb-comm-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --eb-comm-radius: 18px;
  --eb-comm-radius-sm: 12px;
  /* Match shared site rail (header / hashtag / entity / CMS) */
  --eb-comm-max: var(--eb-site-rail, 1180px);
  --eb-comm-gutter: 1rem;
}

body.eb-site-shell.eb-comm-shell,
body.eb-comm-shell {
  background:
    radial-gradient(ellipse 90% 45% at 50% -8%, rgba(224, 122, 95, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 100% 40%, rgba(61, 42, 50, 0.04) 0%, transparent 50%),
    var(--eb-comm-cream) !important;
}

/* ── Shell — same content rail as header / site desktop ── */
.eb-comm {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--eb-comm-max);
  margin: 0 auto;
  padding: 0.85rem var(--eb-comm-gutter) 5.5rem;
  font-family: var(--eb-comm-font);
  color: var(--eb-comm-ink);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 768px) {
  .eb-comm {
    --eb-comm-gutter: 1.5rem;
    padding: 1.5rem var(--eb-comm-gutter) 4rem;
  }
}

@media (min-width: 1024px) {
  .eb-comm {
    --eb-comm-gutter: 1.75rem;
    padding-top: 1.75rem;
  }
}

/* Full desktop: edge-align with header inner (1180) */
@media (min-width: 1200px) {
  .eb-comm {
    --eb-comm-gutter: 1rem;
    max-width: var(--eb-comm-max);
  }
}

/* ── Hero ────────────────────────────────────────────── */
.eb-comm-hero {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 1.75rem;
  padding: 1.65rem 1.25rem 1.5rem;
  border-radius: 22px;
  background:
    linear-gradient(145deg, #1a1216 0%, #3d2a32 42%, #5c3a42 78%, #6b4540 100%);
  color: #fff;
  box-shadow: var(--eb-comm-shadow);
  overflow: hidden;
}

.eb-comm-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(224, 122, 95, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(224, 122, 95, 0.15) 0%, transparent 40%);
}

.eb-comm-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
}

@media (min-width: 720px) {
  .eb-comm-hero {
    margin-bottom: 2rem;
    padding: 2.35rem 2.35rem 2.1rem;
    border-radius: 26px;
  }
  .eb-comm-hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(200px, 0.7fr);
    gap: 2rem;
    align-items: center;
  }
}

.eb-comm-hero-copy {
  min-width: 0;
}

.eb-comm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.eb-comm-badge i {
  color: var(--eb-comm-coral);
  font-size: 0.7rem;
}

.eb-comm-title {
  display: block !important;
  visibility: visible !important;
  margin: 0 0 0.65rem !important;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em;
  color: #fff !important;
  text-indent: 0 !important;
  clip: auto !important;
  overflow: visible !important;
  word-break: break-word;
}

.eb-comm-lead {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: clamp(0.92rem, 1.5vw, 1.06rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.eb-comm-lead strong {
  color: #fff;
  font-weight: 650;
}

/* Search */
.eb-comm-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  padding: 0.35rem 0.4rem 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 0;
  backdrop-filter: blur(10px);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.eb-comm-search:focus-within {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.25);
}

.eb-comm-search i {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.eb-comm-search input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  padding: 0.45rem 0 !important;
  font-family: inherit !important;
}

.eb-comm-search input::placeholder {
  color: rgba(255, 255, 255, 0.42) !important;
}

.eb-comm-search button {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  background: var(--eb-comm-coral);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, transform 0.1s ease;
}

.eb-comm-search button:hover {
  background: var(--eb-comm-coral-hot);
}

.eb-comm-search button:active {
  transform: scale(0.98);
}

/* Hero stats */
.eb-comm-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.eb-comm-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.eb-comm-stat-card--wide {
  grid-column: 1 / -1;
}

.eb-comm-stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.eb-comm-stat-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

@media (min-width: 720px) {
  .eb-comm-hero-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .eb-comm-stat-card--wide {
    grid-column: auto;
  }
  .eb-comm-stat-num {
    font-size: 1.75rem;
  }
}

/* ── Body ────────────────────────────────────────────── */
.eb-comm-body {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  min-width: 0;
}

/* Tabs */
.eb-comm-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1.35rem;
  padding: 0.35rem;
  background: var(--eb-comm-surface);
  border: 1px solid var(--eb-comm-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(28, 20, 16, 0.04);
  max-width: 420px;
}

.eb-comm-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--eb-comm-muted) !important;
  text-decoration: none !important;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.eb-comm-tab i {
  font-size: 0.85rem;
  opacity: 0.85;
}

.eb-comm-tab:hover {
  background: var(--eb-comm-cream);
  color: var(--eb-comm-plum) !important;
}

.eb-comm-tab.is-active {
  background: var(--eb-comm-plum);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(61, 42, 50, 0.25);
}

.eb-comm-tab.is-active i {
  color: var(--eb-comm-coral);
  opacity: 1;
}

.eb-comm-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(28, 20, 16, 0.08);
  color: inherit;
}

.eb-comm-tab.is-active .eb-comm-tab-count {
  background: rgba(255, 255, 255, 0.18);
}

/* Following chips */
.eb-comm-section-label {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eb-comm-muted);
}

.eb-comm-following {
  margin-bottom: 1.4rem;
}

.eb-comm-following-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
}

.eb-comm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  max-width: 12rem;
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: var(--eb-comm-surface);
  border: 1px solid var(--eb-comm-line);
  box-shadow: 0 1px 2px rgba(28, 20, 16, 0.04);
  color: var(--eb-comm-plum) !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.eb-comm-chip img,
.eb-comm-chip-letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.eb-comm-chip-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eb-comm-cream-deep);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--eb-comm-plum);
}

.eb-comm-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eb-comm-chip:hover {
  border-color: var(--eb-comm-coral);
  box-shadow: 0 2px 10px rgba(224, 122, 95, 0.15);
}

/* Toolbar */
.eb-comm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 1.35rem;
  padding: 0.15rem 0;
}

.eb-comm-count {
  margin: 0;
  font-size: 0.95rem;
  color: var(--eb-comm-muted);
}

.eb-comm-count strong {
  color: var(--eb-comm-ink);
  font-weight: 750;
  font-size: 1.05em;
}

.eb-comm-sort {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding: 0.15rem;
}

.eb-comm-sort-item {
  flex-shrink: 0;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--eb-comm-muted) !important;
  text-decoration: none !important;
  background: var(--eb-comm-surface);
  border: 1px solid var(--eb-comm-line);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.eb-comm-sort-item:hover {
  background: var(--eb-comm-cream);
  color: var(--eb-comm-plum) !important;
  border-color: rgba(61, 42, 50, 0.15);
}

.eb-comm-sort-item.is-active {
  background: var(--eb-comm-plum);
  color: #fff !important;
  border-color: var(--eb-comm-plum);
}

/* ══════════════════════════════════════════════════════
   LIST — always 1 column, spacious
   ══════════════════════════════════════════════════════ */
.eb-comm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* Card shell */
.eb-comm-card {
  display: flex;
  flex-direction: column;
  background: var(--eb-comm-surface);
  border-radius: var(--eb-comm-radius);
  border: 1px solid var(--eb-comm-line);
  box-shadow: var(--eb-comm-shadow);
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.2s ease, border-color 0.2s ease;
  min-width: 0;
}

.eb-comm-card:hover {
  box-shadow: var(--eb-comm-shadow-hover);
  border-color: rgba(61, 42, 50, 0.14);
  transform: translateY(-2px);
}

.eb-comm-card-main {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
  flex: 1;
  min-width: 0;
}

/* Cover — taller banner, never cramped against title */
.eb-comm-card-cover {
  height: 148px;
  background:
    radial-gradient(ellipse 70% 80% at 85% 15%, rgba(224, 122, 95, 0.4) 0%, transparent 55%),
    linear-gradient(135deg, #2a1c22 0%, #3d2a32 45%, #6a4540 100%);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.eb-comm-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.eb-comm-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.eb-comm-card:hover .eb-comm-card-cover img {
  transform: scale(1.035);
}

/* Body: stacked identity — avatar then name with real breathing room */
.eb-comm-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0 1.35rem 0.35rem;
  margin-top: -40px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eb-comm-card-av {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 4px solid #fff;
  background: var(--eb-comm-cream-deep);
  box-shadow: 0 6px 18px rgba(28, 20, 16, 0.16);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--eb-comm-plum);
  margin-bottom: 0.95rem; /* clear space before channel name */
}

.eb-comm-card-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eb-comm-card-meta {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0.15rem;
}

.eb-comm-card-name {
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  font-size: 1.22rem !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  color: var(--eb-comm-ink) !important;
  text-indent: 0 !important;
  clip: auto !important;
  /* 2 lines max — not single-line ellipsis against cover */
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  max-width: 100%;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.eb-comm-card:hover .eb-comm-card-name {
  color: var(--eb-comm-plum) !important;
}

.eb-comm-card-sum {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--eb-comm-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.eb-comm-card-stats {
  margin: 0;
  font-size: 0.84rem;
  color: var(--eb-comm-faint);
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}

.eb-comm-card-stats strong {
  color: var(--eb-comm-ink);
  font-weight: 700;
}

/* Actions */
.eb-comm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem 1.35rem;
  margin-top: auto;
  min-width: 0;
  border-top: 1px solid transparent;
}

/* ── Desktop: horizontal feature card (still 1 column list) ──
   Card is the grid; main link uses display:contents so cover/body
   + sibling actions share one 2-column layout. */
@media (min-width: 720px) {
  .eb-comm-list {
    gap: 1.5rem;
  }

  .eb-comm-card {
    display: grid;
    grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    min-height: 200px;
  }

  .eb-comm-card-main {
    display: contents;
  }

  .eb-comm-card-cover {
    grid-column: 1;
    grid-row: 1 / -1;
    height: 100%;
    min-height: 200px;
    border-radius: 0;
  }

  .eb-comm-card-cover::after {
    background: linear-gradient(90deg, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
  }

  .eb-comm-card-body {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    padding: 1.55rem 1.75rem 0.55rem 1.5rem;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .eb-comm-card-av {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    border-width: 3px;
    margin-bottom: 0;
    margin-top: 0.1rem;
    box-shadow: 0 4px 14px rgba(28, 20, 16, 0.12);
  }

  .eb-comm-card-meta {
    padding-top: 0.05rem;
  }

  .eb-comm-card-name {
    font-size: 1.28rem !important;
    margin-bottom: 0.45rem !important;
  }

  .eb-comm-card-sum {
    -webkit-line-clamp: 3;
    margin-bottom: 0.65rem;
  }

  .eb-comm-card-actions {
    grid-column: 2;
    grid-row: 2;
    padding: 0.3rem 1.75rem 1.45rem 1.5rem;
    /* align CTAs under text, not under avatar */
    padding-left: calc(1.5rem + 68px + 1.2rem);
  }
}

@media (min-width: 1024px) {
  .eb-comm-card {
    grid-template-columns: minmax(300px, 30%) minmax(0, 1fr);
    min-height: 216px;
  }

  .eb-comm-card-cover {
    min-height: 216px;
  }

  .eb-comm-card-body {
    padding: 1.7rem 2rem 0.6rem 1.65rem;
    gap: 1.3rem;
  }

  .eb-comm-card-av {
    width: 72px;
    height: 72px;
  }

  .eb-comm-card-name {
    font-size: 1.34rem !important;
  }

  .eb-comm-card-sum {
    font-size: 0.95rem;
    max-width: 42rem;
  }

  .eb-comm-card-actions {
    padding: 0.35rem 2rem 1.6rem 1.65rem;
    padding-left: calc(1.65rem + 72px + 1.3rem);
  }
}

/* Buttons */
.eb-comm-btn,
a.eb-comm-btn,
button.eb-comm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.12s ease, color 0.12s ease, transform 0.1s ease;
  -webkit-font-smoothing: antialiased;
}

.eb-comm-btn-sm,
a.eb-comm-btn-sm,
button.eb-comm-btn-sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
  flex: 0 1 auto;
}

.eb-comm-btn-primary,
a.eb-comm-btn-primary,
button.eb-comm-btn-primary {
  background: var(--eb-comm-coral) !important;
  color: #ffffff !important;
}

.eb-comm-btn-primary:hover,
a.eb-comm-btn-primary:hover,
button.eb-comm-btn-primary:hover,
.eb-comm-btn-primary:focus,
a.eb-comm-btn-primary:focus {
  background: var(--eb-comm-coral-hot) !important;
  color: #ffffff !important;
}

.eb-comm-btn-primary i,
a.eb-comm-btn-primary i,
button.eb-comm-btn-primary i {
  color: #ffffff !important;
  opacity: 1 !important;
}

.eb-comm-btn-ghost,
a.eb-comm-btn-ghost,
button.eb-comm-btn-ghost {
  background: #f0ebe4 !important;
  color: #2a1c22 !important;
  border: 1px solid rgba(28, 20, 16, 0.12) !important;
}

.eb-comm-btn-ghost:hover,
a.eb-comm-btn-ghost:hover,
button.eb-comm-btn-ghost:hover {
  background: #e5ddd2 !important;
  color: #1c1410 !important;
}

.eb-comm-btn-ghost i,
a.eb-comm-btn-ghost i,
button.eb-comm-btn-ghost i {
  color: #2a1c22 !important;
  opacity: 1 !important;
}

.eb-comm-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Empty / load / end */
.eb-comm-empty {
  text-align: center;
  background: var(--eb-comm-surface);
  border-radius: 20px;
  padding: 3rem 1.5rem;
  border: 1px solid var(--eb-comm-line);
  box-shadow: var(--eb-comm-shadow);
  max-width: 480px;
  margin: 1rem auto;
}

.eb-comm-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--eb-comm-cream) 0%, var(--eb-comm-cream-deep) 100%);
  color: var(--eb-comm-coral);
  font-size: 1.5rem;
}

.eb-comm-empty h2 {
  font-size: 1.15rem !important;
  font-weight: 750 !important;
  margin: 0 0 0.45rem !important;
  color: var(--eb-comm-ink) !important;
  text-indent: 0 !important;
}

.eb-comm-empty p {
  margin: 0 auto;
  max-width: 22rem;
  font-size: 0.92rem;
  color: var(--eb-comm-muted);
  line-height: 1.5;
}

.eb-comm-empty a {
  color: var(--eb-comm-coral) !important;
  font-weight: 650;
}

.eb-comm-empty .eb-comm-btn {
  margin-top: 1.2rem;
}

.eb-comm-sentinel {
  height: 1px;
  width: 100%;
  margin: 0.5rem 0;
  pointer-events: none;
}

.eb-comm-load {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--eb-comm-muted);
}

.eb-comm-load[hidden],
.eb-comm-end[hidden] {
  display: none !important;
}

.eb-comm-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--eb-comm-line);
  border-top-color: var(--eb-comm-coral);
  border-radius: 50%;
  animation: eb-comm-spin 0.7s linear infinite;
}

@keyframes eb-comm-spin {
  to { transform: rotate(360deg); }
}

.eb-comm-end {
  text-align: center;
  margin: 0.75rem 0 0;
  padding: 0.85rem;
  font-size: 0.84rem;
  color: var(--eb-comm-faint);
}

@media (prefers-reduced-motion: reduce) {
  .eb-comm-card,
  .eb-comm-card-cover img,
  .eb-comm-spinner {
    transition: none;
    animation: none;
  }
  .eb-comm-card:hover {
    transform: none;
  }
  .eb-comm-card:hover .eb-comm-card-cover img {
    transform: none;
  }
}

/* Force contrast */
body.eb-comm-shell .eb-comm a.eb-comm-card-main {
  color: inherit !important;
  text-decoration: none !important;
}

body.eb-comm-shell .eb-comm .eb-comm-card-name {
  color: #1c1410 !important;
}

body.eb-comm-shell .eb-comm a.eb-comm-btn-primary,
body.eb-comm-shell .eb-comm button.eb-comm-btn-primary,
body.eb-comm-shell .eb-comm .eb-comm-btn-primary {
  color: #ffffff !important;
}

body.eb-comm-shell .eb-comm a.eb-comm-btn-primary i,
body.eb-comm-shell .eb-comm button.eb-comm-btn-primary i {
  color: #ffffff !important;
}

body.eb-comm-shell .eb-comm a.eb-comm-btn-ghost,
body.eb-comm-shell .eb-comm button.eb-comm-btn-ghost,
body.eb-comm-shell .eb-comm .eb-comm-btn-ghost {
  color: #2a1c22 !important;
}

body.eb-comm-shell .eb-comm a.eb-comm-btn-ghost i,
body.eb-comm-shell .eb-comm button.eb-comm-btn-ghost i {
  color: #2a1c22 !important;
}

body.eb-comm-shell .eb-comm .eb-comm-tab.is-active,
body.eb-comm-shell .eb-comm a.eb-comm-tab.is-active {
  color: #ffffff !important;
}

body.eb-comm-shell .eb-comm .eb-comm-tab:not(.is-active),
body.eb-comm-shell .eb-comm a.eb-comm-tab:not(.is-active) {
  color: #5c524a !important;
}

body.eb-comm-shell .eb-comm .eb-comm-sort-item.is-active,
body.eb-comm-shell .eb-comm a.eb-comm-sort-item.is-active {
  color: #ffffff !important;
}

body.eb-comm-shell .eb-comm .eb-comm-sort-item:not(.is-active),
body.eb-comm-shell .eb-comm a.eb-comm-sort-item:not(.is-active) {
  color: #5c524a !important;
}

/* ════════ Mobile — stacked, extra air under cover ════════ */
@media (max-width: 719.98px) {
  .eb-comm {
    --eb-comm-gutter: 0.85rem;
    padding-top: 0.55rem;
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  .eb-comm-hero {
    margin-bottom: 1.15rem;
    padding: 1.35rem 1.1rem 1.25rem;
    border-radius: 18px;
  }

  .eb-comm-title {
    font-size: 1.5rem !important;
  }

  .eb-comm-lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .eb-comm-search {
    max-width: none;
  }

  .eb-comm-search button {
    padding: 0.48rem 0.9rem;
    font-size: 0.82rem;
  }

  .eb-comm-stat-num {
    font-size: 1.35rem;
  }

  .eb-comm-tabs {
    max-width: none;
    margin-bottom: 1.05rem;
  }

  .eb-comm-tab {
    min-height: 42px;
    font-size: 0.84rem;
    padding: 0.4rem 0.5rem;
  }

  .eb-comm-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
  }

  .eb-comm-list {
    gap: 1.15rem;
  }

  .eb-comm-card-cover {
    height: 132px;
  }

  .eb-comm-card-body {
    margin-top: -36px;
    padding: 0 1.15rem 0.25rem;
  }

  .eb-comm-card-av {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border-width: 3px;
    margin-bottom: 0.85rem;
  }

  .eb-comm-card-name {
    font-size: 1.12rem !important;
    margin-bottom: 0.4rem !important;
  }

  .eb-comm-card-sum {
    font-size: 0.86rem;
    margin-bottom: 0.45rem;
  }

  .eb-comm-card-actions {
    padding: 0.7rem 1.15rem 1.15rem;
    gap: 0.45rem;
  }

  .eb-comm-card-actions .eb-comm-btn {
    min-height: 42px;
    flex: 1 1 auto;
  }

  .eb-comm-card:hover {
    transform: none;
  }
}

@media (max-width: 374px) {
  .eb-comm {
    --eb-comm-gutter: 0.7rem;
  }
  .eb-comm-tab i {
    display: none;
  }
  .eb-comm-stat-card {
    padding: 0.7rem 0.75rem;
  }
  .eb-comm-card-cover {
    height: 118px;
  }
  .eb-comm-card-av {
    width: 58px;
    height: 58px;
    margin-bottom: 0.75rem;
  }
}
