/*
 * Catrawarta metadata alignment — v5.13.11
 * Presentation-only layer. Metadata stays near the lower edge of card/list
 * content instead of moving upward when a headline is shorter.
 */

/* Editor's Pick: the Editorial A track uses an 18px gap. The legacy item
   formula still assumed 14px, which made edge cards partially clip. */
@media (min-width:992px){
  body.catra-home-editorial-a .catra-editorial-a-picks .catra-editors-only.catra-picks-cols-2 .mc-ep-item{
    flex:0 0 calc((100% - 18px)/2)!important;
  }
  body.catra-home-editorial-a .catra-editorial-a-picks .catra-editors-only.catra-picks-cols-3 .mc-ep-item{
    flex:0 0 calc((100% - 36px)/3)!important;
  }
  body.catra-home-editorial-a .catra-editorial-a-picks .catra-editors-only.catra-picks-cols-4 .mc-ep-item{
    flex:0 0 calc((100% - 54px)/4)!important;
  }
}
@media (min-width:641px) and (max-width:991px){
  body.catra-home-editorial-a .catra-editorial-a-picks .catra-editors-only.catra-picks-cols-2 .mc-ep-item,
  body.catra-home-editorial-a .catra-editorial-a-picks .catra-editors-only.catra-picks-cols-3 .mc-ep-item,
  body.catra-home-editorial-a .catra-editorial-a-picks .catra-editors-only.catra-picks-cols-4 .mc-ep-item{
    flex:0 0 calc((100% - 18px)/2)!important;
  }
}

/* Homepage: Editor's Pick metadata acts as the card footer. */
body.catra-home-editorial-a .catra-editorial-a-picks .mc-ep-card,
body.catra-home-editorial-a .catra-editorial-a-picks .mc-ep-content{
  min-width:0!important;
}
body.catra-home-editorial-a .catra-editorial-a-picks .mc-ep-content{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
}
body.catra-home-editorial-a .catra-editorial-a-picks .mc-ep-meta{
  width:100%!important;
  min-width:0!important;
  margin-top:auto!important;
  padding-top:10px!important;
  box-sizing:border-box!important;
}

/* Homepage hero secondary cards. */
body.catra-home-editorial-a .cea-top-best-item,
body.catra-home-editorial-a .cea-top-headline-item{
  display:flex;
  flex-direction:column;
}
body.catra-home-editorial-a .cea-top-best-item .cea-top-meta,
body.catra-home-editorial-a .cea-top-headline-item .cea-top-meta{
  margin-top:auto!important;
  padding-top:7px;
}
body.catra-home-editorial-a .cea-top-headline-item{
  min-height:88px;
}

/* v5.13.12 — Headlines category badge must keep its compact pre-v5.13.11 width. */
body.catra-home-editorial-a .cea-top-headline-item .cea-top-category{
  align-self:flex-start!important;
  width:auto!important;
  max-width:100%;
}

/* Homepage Flash News cards. */
body.catra-home-editorial-a .cea-flash-card{
  display:flex;
  height:100%;
  flex-direction:column;
}
body.catra-home-editorial-a .cea-flash-card-copy{
  display:flex;
  flex:1 1 auto;
  min-width:0;
  flex-direction:column;
}
body.catra-home-editorial-a .cea-flash-card .cea-flash-meta{
  margin-top:auto!important;
  padding-top:8px;
}

/* Homepage Flash sidebar Populer. */
body.catra-home-editorial-a .cea-flash-popular-item{
  display:flex;
  min-height:88px;
  flex-direction:column;
}
body.catra-home-editorial-a .cea-flash-popular-item .cea-flash-popular-meta{
  margin-top:auto!important;
  padding-top:6px;
}

/* Homepage All Stories already uses flexible bodies; keep the footer stable. */
body.catra-home-editorial-a .catra-editorial-a-stories .catra-story-body{
  display:flex;
  min-width:0;
  flex-direction:column;
}
body.catra-home-editorial-a .catra-editorial-a-stories .catra-story-meta{
  margin-top:auto!important;
  padding-top:7px;
}

/* TAG editorial rows: byline remains at the lower edge of the text column. */
body.tag .catra-tag-story__content{
  display:flex!important;
  flex-direction:column!important;
}
body.tag .catra-tag-story__author{
  margin-top:auto!important;
  padding-top:7px!important;
}

/* Category / Search / static-page sidebar article lists. */
body.category .thesidebar .list-featured li > span,
body.search .thesidebar .list-featured li > span,
body.tag .thesidebar .list-featured li > span,
body.page:not(.home) .thesidebar .list-featured li > span{
  display:flex;
  min-height:72px;
  flex-direction:column;
}
body.category .thesidebar .list-featured li > span > .text-muted,
body.search .thesidebar .list-featured li > span > .text-muted,
body.tag .thesidebar .list-featured li > span > .text-muted,
body.page:not(.home) .thesidebar .list-featured li > span > .text-muted{
  margin-top:auto!important;
  padding-top:6px;
}

/* Single post: Berita Terkait metadata is independent from title length. */
.single-post.catra-single-novo .catra-single-related-card{
  display:flex!important;
  height:100%;
  flex-direction:column!important;
}
.single-post.catra-single-novo .catra-single-related-body{
  display:flex!important;
  flex:1 1 auto!important;
  min-width:0;
  flex-direction:column!important;
}
.single-post.catra-single-novo .catra-single-related-meta{
  margin-top:auto!important;
  padding-top:10px;
}

/* Single post Flash cards already use flex; normalize the footer spacing. */
.single-post.catra-single-novo .catra-single-flash-body{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
}
.single-post.catra-single-novo .catra-single-flash-meta{
  margin-top:auto!important;
  padding-top:10px!important;
}

/* Single post Populer list. */
.single-post.catra-single-novo .catra-novo-popular-copy{
  display:flex!important;
  min-height:72px!important;
  flex-direction:column!important;
}
.single-post.catra-single-novo .catra-novo-popular-meta{
  margin-top:auto!important;
  padding-top:6px!important;
}

/* Mobile: keep the same alignment without making rows unnecessarily tall. */
@media (max-width:767px){
  body.catra-home-editorial-a .cea-top-headline-item,
  body.catra-home-editorial-a .cea-flash-popular-item{
    min-height:82px;
  }
  body.category .thesidebar .list-featured li > span,
  body.search .thesidebar .list-featured li > span,
  body.tag .thesidebar .list-featured li > span,
  body.page:not(.home) .thesidebar .list-featured li > span,
  .single-post.catra-single-novo .catra-novo-popular-copy{
    min-height:68px!important;
  }
}
