/* ─────────────────────────────────────────────────────────────
   Discussions — 2-col layout inside ONE white panel (issue-595 v2)
   ───────────────────────────────────────────────────────────── */

/* The whole panel (thread list + selected thread) is one white card,
   split into two columns by an inner divider. */
.lc-discussions {
  display: grid;
  grid-template-columns: 40% 1fr;
  align-items: stretch;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--r-3);
  overflow: hidden;
  min-height: 640px;
}

/* Left zone — thread list (rows are edge-to-edge; the head + each thread pad
   themselves so dividers span the full column) */
.lc-discussions__list {
  overflow-y: auto;
  border-right: 1px solid var(--color-rule);
}

/* Right zone — selected-thread frame; flex so the composer sits at the bottom */
.lc-discussions__pane {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lc-discussions__pane > turbo-frame {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Empty-selection state (right zone, first load) — fills the zone, centred */
.lc-discussions__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  color: var(--color-ink-muted);
}

.lc-discussions__empty h2 {
  font-size: var(--fs-20);
  margin-bottom: var(--sp-3);
  color: var(--color-ink-muted);
}

.lc-discussions__empty p {
  font-size: var(--fs-15);
  max-width: 32ch;
}

/* Mobile: stack vertically below 640px */
@media (max-width: 640px) {
  .lc-discussions {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lc-discussions__list {
    border-right: none;
    border-bottom: 1px solid var(--color-rule);
  }

  .lc-discussions__pane {
    display: block;
  }
}
