/* Alpha.8.3 — preserve compact discussion rows with inline prefixes. */
/* The old design placed prefixes in a separate block above titles, adding a row.
   Every list uses one clamped heading, where prefix chips and title text share lines. */
.ce321-topic-heading{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  word-break:normal;
  text-overflow:ellipsis;
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  margin:0;
  line-height:1.48;
  font-weight:760;
}
.ce321-topic-heading .ce304-prefix{
  display:inline-flex!important;
  max-width:min(100%,170px);
  min-height:0;
  align-items:center;
  vertical-align:baseline;
  margin:0 5px 1px 0;
  padding:2px 7px;
  font-size:.68rem;
  line-height:1.25;
  border-radius:7px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ce321-topic-heading .ce304-prefix::before{width:6px;height:6px;}
.ce321-title-copy{display:inline!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;}
.ce321-topic-heading .ce321-inline-pin,.ce321-topic-heading .ce321-featured{
  display:inline-flex;align-items:center;vertical-align:baseline;margin:0 6px 1px 0;
  font-size:.66rem;line-height:1.25;
}
/* Homepage: two-line title, fixed reply stats; no extra badge row. */
a.ce-home-topic.ce321-home-topic{
  display:grid;grid-template-columns:38px minmax(0,1fr) 84px;
  align-items:center;gap:12px;min-width:0;padding:12px 14px;
}
a.ce-home-topic.ce321-home-topic>.ce321-topic-content{
  display:flex;flex-direction:column;gap:4px;
  align-items:stretch;justify-content:center;
  min-width:0;overflow:visible;
}
a.ce-home-topic.ce321-home-topic .ce321-compact-heading{
  display:-webkit-box!important;-webkit-line-clamp:2;line-clamp:2;
  color:var(--ink,#ecf7ff);font-size:.83rem;line-height:1.47;
}
a.ce-home-topic.ce321-home-topic .ce321-topic-content>small{
  display:block;min-width:0;max-width:100%;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;line-height:1.45;
}
a.ce-home-topic.ce321-home-topic>.ce320-topic-aside{
  display:flex;align-items:center;justify-content:flex-end;gap:9px;
  width:84px;min-width:0;max-width:84px;
}
/* Forum/search/profile: up to 3 title lines, not a dedicated prefix row. */
a.thread-item.ce321-thread-item{
  display:grid;grid-template-columns:44px minmax(0,1fr) 82px;
  align-items:center;gap:13px;min-width:0;padding:14px 16px;
}
a.thread-item.ce321-thread-item>.ce321-topic-content{min-width:0;overflow:visible;}
a.thread-item.ce321-thread-item .ce321-forum-heading{
  display:-webkit-box!important;-webkit-line-clamp:3;line-clamp:3;
  color:var(--ink,#ecf7ff);font-size:.89rem;line-height:1.48;
}
a.thread-item.ce321-thread-item .ce321-topic-content>p{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;
  white-space:normal;overflow:hidden;text-overflow:ellipsis;
  margin:5px 0 3px;
}
a.thread-item.ce321-thread-item .ce321-topic-content>small{
  display:block;min-width:0;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;line-height:1.5;
}
a.thread-item.ce321-thread-item>.ce320-thread-side{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-end;
  width:82px;min-width:0;gap:10px;
}
/* Rail: truncate entire title+badge block, not the title alone. */
.ce-rail-compact a.ce-rail-row.ce321-rail-topic{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;}
.ce321-rail-topic .ce321-rail-heading{
  display:-webkit-box!important;-webkit-line-clamp:3;line-clamp:3;
  color:var(--ink,#ecf7ff);font-size:.76rem;line-height:1.5;
}
.ce321-rail-topic .ce304-prefix{max-width:140px;font-size:.64rem;}
@media(max-width:760px){
  a.ce-home-topic.ce321-home-topic{grid-template-columns:34px minmax(0,1fr) 60px;gap:10px;}
  a.ce-home-topic.ce321-home-topic>.ce320-topic-aside{width:60px;max-width:60px;gap:5px;}
  a.thread-item.ce321-thread-item{grid-template-columns:40px minmax(0,1fr) 65px;gap:10px;}
  a.thread-item.ce321-thread-item>.ce320-thread-side{width:65px;max-width:65px;}
}
@media(max-width:480px){
  a.ce-home-topic.ce321-home-topic{grid-template-columns:31px minmax(0,1fr) 32px;gap:8px;padding:11px 10px;}
  a.ce-home-topic.ce321-home-topic>.ce320-topic-aside{width:32px;max-width:32px;gap:0;}
  a.ce-home-topic.ce321-home-topic .ce321-compact-heading{font-size:.8rem;-webkit-line-clamp:3;line-clamp:3;}
  a.thread-item.ce321-thread-item{grid-template-columns:34px minmax(0,1fr) 43px;gap:8px;padding:12px 10px;}
  a.thread-item.ce321-thread-item>.ce320-thread-side{width:43px;max-width:43px;}
  .ce321-topic-heading .ce304-prefix{max-width:min(100%,128px);font-size:.65rem;padding:2px 6px;}
}
