/* V74: narrow fixes only — unified forum rows, round subforum links, header logo cleanup,
   and hide latest topics everywhere except the main/home view. */

/* Latest topics only on home. */
body:not(.home-view) .kc67-latest-box-wrap{display:none!important}
body.home-view .kc67-latest-box-wrap{display:block!important}

/* Header logo: larger, no card, no border, no shadow. */
.kc73-brand{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  gap:16px!important;
}
.kc73-brand-logo{
  width:84px!important;
  height:84px!important;
  filter:none!important;
  box-shadow:none!important;
}
.kc73-brand-text b{font-size:1.9rem!important}
.kc73-brand-text small{font-size:.82rem!important}

/* Category heading: only the visible title/icon link is clickable. */
#forum-list>.category>.cat-head{cursor:default!important}
#forum-list>.category>.cat-head .cat-title,
#forum-list>.category>.cat-head .kc52-category-link{
  flex:0 1 auto!important;
  width:auto!important;
  max-width:max-content!important;
  cursor:pointer!important;
}
#forum-list>.category>.cat-head .kc65-cat-desc{flex:1 1 auto!important;cursor:default!important}

/* Desktop forum row = one unified row, not a second lower part. */
@media (min-width:721px){
  #forum-list>.category>.cat-body>.forum-row,
  #forum-list>.category>.cat-body>.forum-row.kc52-forum-row,
  #forum-list>.category>.cat-body>.forum-row.kc52-category-row{
    direction:rtl!important;
    grid-template-columns:64px minmax(250px,1fr) 150px minmax(240px,320px)!important;
    grid-template-rows:1fr!important;
    min-height:72px!important;
    gap:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid rgba(122,214,255,.15)!important;
    border-radius:14px!important;
    margin:8px!important;
    width:calc(100% - 16px)!important;
    background:linear-gradient(145deg,rgba(12,77,134,.92),rgba(5,44,81,.96))!important;
    box-shadow:none!important;
  }
  #forum-list .forum-row>.forum-icon{
    grid-column:1!important;
    grid-row:1!important;
    width:64px!important;
    min-width:64px!important;
    height:100%!important;
    min-height:72px!important;
    border:0!important;
    border-inline-end:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #forum-list .forum-row>.forum-name-wrap{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    height:100%!important;
    padding:10px 14px!important;
    border:0!important;
    background:transparent!important;
  }
  #forum-list .forum-row>.counts,
  #forum-list .forum-row>.counts.kc65-counts{
    grid-column:3!important;
    grid-row:1!important;
    min-height:72px!important;
    height:100%!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #forum-list .forum-row>.last,
  #forum-list .forum-row>.last.kc65-last{
    grid-column:4!important;
    grid-row:1!important;
    min-height:72px!important;
    height:100%!important;
    border:0!important;
    border-top:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
}

/* Remove visual vertical cuts inside the row at all sizes. */
#forum-list .forum-row>.forum-icon,
#forum-list .forum-row>.forum-name-wrap,
#forum-list .forum-row>.counts,
#forum-list .forum-row>.last{
  border-inline-start:0!important;
  border-inline-end:0!important;
}

/* Inline subforums: small rounded/circular chips, not rectangular boxes. */
#forum-list .inline-subs,
#forum-list .kc52-inline-subs{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin-top:8px!important;
}
#forum-list .inline-sub,
#forum-list .kc52-inline-sub{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:30px!important;
  padding:3px 10px 3px 5px!important;
  border-radius:999px!important;
  border:1px solid rgba(111,219,255,.18)!important;
  background:rgba(61,195,255,.09)!important;
  color:#d7f5ff!important;
  text-decoration:none!important;
  box-shadow:none!important;
  font-size:11px!important;
}
#forum-list .inline-sub:before,
#forum-list .kc52-inline-sub:before{content:none!important}
#forum-list .inline-sub .ms,
#forum-list .kc52-inline-sub .ms{
  width:22px!important;
  height:22px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(77,206,255,.17)!important;
  border:1px solid rgba(120,225,255,.20)!important;
  color:#9de8ff!important;
  font-size:14px!important;
}
#forum-list .inline-sub:hover,
#forum-list .kc52-inline-sub:hover{
  background:rgba(69,204,255,.16)!important;
  border-color:rgba(119,228,255,.36)!important;
  color:#fff!important;
}

/* Empty row space is ordinary, not a link. */
#forum-list .forum-row{cursor:default!important}
#forum-list .forum-row a,
#forum-list .forum-row button{cursor:pointer!important}

@media (max-width:720px){
  .kc73-brand-logo{width:68px!important;height:68px!important}
  .kc73-brand-text b{font-size:1.45rem!important}
  #forum-list>.category>.cat-body>.forum-row{border-radius:12px!important;margin:7px!important;width:calc(100% - 14px)!important}
}

/* Sub-forums inside a board: compact round pills instead of large rectangular boxes. */
.kc69-sub-panel{box-shadow:none!important}
.kc69-sub-grid,
.kc52-board-subgrid.kc69-sub-grid{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:10px!important;
  padding:12px 14px!important;
}
.kc69-sub-card,
.kc52-board-subcard.kc69-sub-card{
  flex:0 1 auto!important;
  width:auto!important;
  min-width:185px!important;
  min-height:46px!important;
  display:grid!important;
  grid-template-columns:36px minmax(110px,auto) 20px!important;
  align-items:center!important;
  gap:9px!important;
  padding:5px 10px 5px 7px!important;
  border-radius:999px!important;
  background:rgba(47,188,244,.09)!important;
  border:1px solid rgba(112,222,255,.18)!important;
  box-shadow:none!important;
}
.kc69-sub-card:hover,
.kc52-board-subcard.kc69-sub-card:hover{
  background:rgba(50,196,252,.15)!important;
  border-color:rgba(122,226,255,.35)!important;
  transform:none!important;
}
.kc69-sub-hero,
.kc52-sub-hero.kc69-sub-hero{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(68,205,255,.16)!important;
  border:1px solid rgba(120,224,255,.20)!important;
}
.kc69-sub-copy b{font-size:.88rem!important;color:#ecfbff!important}
.kc69-sub-copy small{display:none!important}
.kc69-sub-copy em{display:none!important}
.kc69-sub-arrow{font-size:17px!important;color:#8bdbf8!important}
