/* Layout correction: board listing always gets the full available width.
   Resource cards follow the boards rather than competing for column space. */
.forum-body .forum-shell{
  display:block;
  width:100%;
  max-width:1320px;
  margin:0 auto;
  padding-left:clamp(16px,4vw,55px);
  padding-right:clamp(16px,4vw,55px);
  box-sizing:border-box;
}
.forum-body .forum-columns{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  width:100%;
  gap:30px;
  grid-template-columns:none;
}
.forum-body .forum-primary,
.forum-body .forum-sidebar{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
}
.forum-body .forum-primary>.forum-section,
.forum-body .forum-primary>.forum-detail,
.forum-body .forum-primary>.forum-toolbar{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.forum-body .forum-boards{width:100%;min-width:0}
.forum-body .forum-board.board-button{
  display:grid;
  width:100%;
  min-width:0;
  grid-template-columns:52px minmax(0,1fr) 138px;
  align-items:center;
  gap:15px;
  text-align:left;
  box-sizing:border-box;
}
.forum-body .board-main{min-width:0;overflow-wrap:anywhere}
.forum-body .board-cta{white-space:normal}
.forum-body .forum-sidebar{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.forum-body .forum-sidebar .side-card{width:100%;min-width:0;max-width:100%;margin:0;box-sizing:border-box}
.forum-body .forum-toolbar{flex-wrap:wrap}
.forum-body .forum-search{min-width:min(245px,100%);max-width:100%}
.forum-body .forum-search input{min-width:0}
.forum-body .forum-detail{overflow-wrap:anywhere}
@media(max-width:720px){
  .forum-body .forum-sidebar{grid-template-columns:1fr}
  .forum-body .forum-toolbar{display:flex;flex-direction:column;align-items:stretch}
  .forum-body .forum-search{width:100%;margin-top:4px}
  .forum-body .forum-board.board-button{grid-template-columns:42px minmax(0,1fr);gap:10px;padding:16px 12px}
  .forum-body .board-cta{grid-column:2;text-align:left}
  .forum-body .forum-stat-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .forum-body .forum-stat-bar>div{min-width:0}
}
