/* =========================================================
   Catrawarta v5.6.4 — All Stories + Sidebar + Kolom Catra
   Component owner untuk area setelah Populer.
   ========================================================= */

.catra-home-editorial .catra-stories-categories-row{
  --catra-stories-navy:#00293e;
  --catra-stories-ink:#0b0b0b;
  --catra-stories-muted:rgba(0,41,62,.62);
  --catra-stories-divider:rgba(0,41,62,.12);
  margin-top:44px!important;
  align-items:stretch;
}

/* Section title: sama ritme dengan Pilihan Editor / Flash, tanpa garis panjang. */
.catra-home-editorial .catra-stories-main > h2.spanborder{
  display:flex;
  align-items:center;
  margin:0 0 20px!important;
  padding:0!important;
  border:0!important;
  background:none!important;
}
.catra-home-editorial .catra-stories-main > h2.spanborder > span.catra-home-ornament-title{
  display:inline-flex;
  align-items:center;
  min-height:52px;
  margin:0!important;
  padding:10px 12px 10px 14px!important;
  border:0!important;
  color:var(--catra-home-title-navy,var(--catra-header-bg,#00293e))!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
  font-size:24px!important;
  line-height:1.08!important;
  font-weight:750!important;
  letter-spacing:-.025em!important;
}
.catra-home-editorial .catra-stories-main > h2.spanborder::after,
.catra-home-editorial .catra-stories-main > h2.spanborder > span::after{display:none!important;content:none!important;}

/* All Stories cards: pertahankan layout existing, samakan identitas komponen. */
.catra-home-editorial .catra-story-card{
  border-color:var(--catra-stories-divider)!important;
  box-shadow:none!important;
  transition:none!important;
}
.catra-home-editorial .catra-story-media{
  overflow:hidden;
  border-radius:var(--catra-home-media-radius,3px)!important;
}
.catra-home-editorial .catra-story-media img{
  transform:none!important;
  transition:none!important;
}
.catra-home-editorial .catra-story-body{
  min-width:0;
}
.catra-home-editorial .catra-story-badge,
.catra-home-editorial .catra-story-badge--body{
  position:static!important;
  display:inline-flex!important;
  align-items:center;
  align-self:flex-start;
  width:auto!important;
  max-width:100%;
  margin:0 0 7px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--catra-stories-navy)!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
  font-size:9.75px!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:.065em!important;
  text-transform:uppercase!important;
  text-decoration:none!important;
  opacity:.82;
}
.catra-home-editorial .catra-story-title{
  margin-top:0!important;
  color:var(--catra-stories-ink)!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
}
.catra-home-editorial .catra-story-title a{
  color:var(--catra-stories-ink)!important;
  background:none!important;
  text-decoration:none!important;
  transition:color .18s ease!important;
}
.catra-home-editorial .catra-story-title a:hover,
.catra-home-editorial .catra-story-title a:focus-visible{
  color:var(--catra-stories-navy)!important;
  background:none!important;
  text-decoration:none!important;
  outline:none;
}
.catra-home-editorial .catra-story-excerpt{color:var(--catra-stories-muted)!important;}
.catra-home-editorial .catra-story-meta{
  color:var(--catra-stories-muted)!important;
}
.catra-home-editorial .catra-story-author,
.catra-home-editorial .catra-story-date,
.catra-home-editorial .catra-story-meta-dot{color:var(--catra-stories-muted)!important;}

/* Matikan efek hover card/image legacy; title navy adalah interaksi visual utama. */
.catra-home-editorial .catra-stories-categories-row .catra-story-card:hover,
.catra-home-editorial .catra-stories-categories-row .catra-story-card:focus-within{
  transform:none!important;
  box-shadow:none!important;
  border-color:var(--catra-stories-divider)!important;
}
.catra-home-editorial .catra-stories-categories-row .catra-story-card:hover .catra-story-media img,
.catra-home-editorial .catra-stories-categories-row .catra-story-card:focus-within .catra-story-media img{
  transform:none!important;
  filter:none!important;
}

/* Sidebar plugin: fungsi/markup plugin tetap utuh. Slot 1 diberi skin Catrawarta hanya di homepage. */
.catra-home-editorial .catra-stories-sidebar{
  min-width:0;
  align-self:stretch;
}
.catra-home-editorial .catra-stories-sidebar-stack{
  position:relative;
  min-height:0;
  height:auto;
}
.catra-home-editorial .catra-category-shortcodes--stories-sidebar{
  display:block!important;
  min-height:0;
  height:auto;
  margin:0!important;
  padding:0!important;
}
.catra-home-editorial .catra-category-shortcodes--stories-sidebar > .catra-shortcode-slot + .catra-shortcode-slot{
  margin-top:18px;
}


/* Topik Hangat visual skin moved to assets/css/catra-topic-shortcode.css (v5.6.2). */

/* =========================================================
   Kolom Catra — homepage categories refresh (v5.7.5).
   Section mandiri di bawah All Stories. Visual only:
   compact, clean, informative, responsive. Tidak ikut sticky.
   ========================================================= */
.catra-home-editorial .catra-categories-below-stories{
  margin-top:44px;
  margin-bottom:54px;
}
.catra-home-editorial .catra-categories-below-stories .catra-categories-section{
  margin:0!important;
  padding:0!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-section-heading{
  margin:0 0 14px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
/* Heading system stays aligned with the rest of homepage. */
.catra-home-editorial .catra-categories-below-stories .catra-section-heading h2{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin:0!important;
  padding:8px 8px 8px 12px!important;
  border:0!important;
  background:transparent!important;
  color:var(--catra-header-bg,#00293e)!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
  font-size:24px!important;
  line-height:1.08!important;
  font-weight:750!important;
  letter-spacing:-.02em!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-section-heading h2::after{
  display:none!important;
  content:none!important;
}

/* Force the intended compact grid and neutralise legacy min-height rules. */
.catra-home-editorial .catra-categories-below-stories .catra-categories-grid,
.catra-home-editorial .catra-categories-below-stories .catra-categories-cols-1 .catra-categories-grid,
.catra-home-editorial .catra-categories-below-stories .catra-categories-cols-2 .catra-categories-grid,
.catra-home-editorial .catra-categories-below-stories .catra-categories-cols-3 .catra-categories-grid,
.catra-home-editorial .catra-categories-below-stories .catra-categories-cols-4 .catra-categories-grid,
.catra-home-editorial .catra-categories-below-stories .catra-categories-cols-5 .catra-categories-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-card{
  min-width:0;
  margin:0!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-card-link{
  position:relative;
  display:block;
  min-height:0!important;
  height:116px!important;
  overflow:hidden;
  border:1px solid rgba(0,41,62,.10)!important;
  border-radius:var(--catra-home-card-radius,4px)!important;
  background:var(--catra-header-bg,#00293e)!important;
  box-shadow:none!important;
  text-decoration:none!important;
  transform:none!important;
  transition:border-color .18s ease, box-shadow .18s ease!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-media,
.catra-home-editorial .catra-categories-below-stories .catra-category-media img,
.catra-home-editorial .catra-categories-below-stories .catra-category-placeholder,
.catra-home-editorial .catra-categories-below-stories .catra-category-shade{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-media{
  border-radius:inherit!important;
  overflow:hidden;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-media img{
  object-fit:cover;
  border-radius:0!important;
  filter:saturate(.90) contrast(.98);
  transform:none!important;
  transition:filter .18s ease!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-placeholder{
  background:linear-gradient(135deg,var(--catra-header-bg,#00293e),#0a4058)!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-shade{
  background:linear-gradient(0deg,rgba(0,41,62,.90) 0%,rgba(0,41,62,.60) 42%,rgba(0,41,62,.14) 100%)!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-copy{
  position:absolute;
  z-index:2;
  left:12px;
  right:12px;
  bottom:10px;
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
  padding:0!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-copy strong{
  display:block;
  overflow:hidden;
  color:#fff!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
  font-size:12px!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:.02em!important;
  text-transform:uppercase!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-copy strong::after{
  display:none!important;
  content:none!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-copy small{
  display:block;
  color:rgba(255,255,255,.76)!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
  font-size:9.5px!important;
  line-height:1.15!important;
  font-weight:500!important;
  letter-spacing:0!important;
}
/* Restrained interaction: no image zoom; only clearer border and image contrast. */
.catra-home-editorial .catra-categories-below-stories .catra-category-card-link:hover,
.catra-home-editorial .catra-categories-below-stories .catra-category-card-link:focus-visible{
  border-color:rgba(223,187,111,.72)!important;
  box-shadow:0 5px 16px rgba(0,41,62,.07)!important;
  transform:none!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-card-link:hover .catra-category-media img,
.catra-home-editorial .catra-categories-below-stories .catra-category-card-link:focus-visible .catra-category-media img{
  transform:none!important;
  filter:saturate(1) contrast(1)!important;
}
.catra-home-editorial .catra-categories-below-stories .catra-category-card-link:focus-visible{
  outline:2px solid var(--catra-gold,#dfbb6f);
  outline-offset:2px;
}

@media (max-width:991px){
  .catra-home-editorial .catra-categories-below-stories{
    margin-top:38px;
    margin-bottom:46px;
  }
  .catra-home-editorial .catra-categories-below-stories .catra-categories-grid,
  .catra-home-editorial .catra-categories-below-stories .catra-categories-cols-1 .catra-categories-grid,
  .catra-home-editorial .catra-categories-below-stories .catra-categories-cols-2 .catra-categories-grid,
  .catra-home-editorial .catra-categories-below-stories .catra-categories-cols-3 .catra-categories-grid,
  .catra-home-editorial .catra-categories-below-stories .catra-categories-cols-4 .catra-categories-grid,
  .catra-home-editorial .catra-categories-below-stories .catra-categories-cols-5 .catra-categories-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .catra-home-editorial .catra-categories-below-stories .catra-category-card-link{
    min-height:0!important;
    height:104px!important;
  }
}
@media (max-width:767px){
  .catra-home-editorial .catra-categories-below-stories{
    margin-top:32px;
    margin-bottom:40px;
  }
  .catra-home-editorial .catra-categories-below-stories .catra-section-heading{
    margin-bottom:11px!important;
  }
  .catra-home-editorial .catra-categories-below-stories .catra-section-heading h2{
    min-height:42px;
    padding:7px 7px 7px 10px!important;
    font-size:21px!important;
  }
  .catra-home-editorial .catra-categories-below-stories .catra-categories-grid,
  .catra-home-editorial .catra-categories-below-stories .catra-categories-cols-1 .catra-categories-grid,
  .catra-home-editorial .catra-categories-below-stories .catra-categories-cols-2 .catra-categories-grid,
  .catra-home-editorial .catra-categories-below-stories .catra-categories-cols-3 .catra-categories-grid,
  .catra-home-editorial .catra-categories-below-stories .catra-categories-cols-4 .catra-categories-grid,
  .catra-home-editorial .catra-categories-below-stories .catra-categories-cols-5 .catra-categories-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .catra-home-editorial .catra-categories-below-stories .catra-category-card-link{
    min-height:0!important;
    height:92px!important;
  }
  .catra-home-editorial .catra-categories-below-stories .catra-category-copy{
    left:9px;
    right:9px;
    bottom:8px;
    gap:2px;
  }
  .catra-home-editorial .catra-categories-below-stories .catra-category-copy strong{
    font-size:10.5px!important;
    letter-spacing:.015em!important;
  }
  .catra-home-editorial .catra-categories-below-stories .catra-category-copy small{
    font-size:8.5px!important;
  }
}
@media (max-width:380px){
  .catra-home-editorial .catra-categories-below-stories .catra-category-card-link{
    height:86px!important;
  }
  .catra-home-editorial .catra-categories-below-stories .catra-category-copy strong{
    font-size:10px!important;
  }
}

/* Sidebar All Stories v5.6.4: sticky hanya untuk shortcode/widget di sidebar. */
@media (min-width:992px){
  .catra-home-editorial .catra-stories-sidebar-stack.is-sticky{
    position:sticky;
    top:calc(var(--catra-sticky-offset,94px) + var(--catra-stories-sidebar-gap,12px));
    max-height:calc(100vh - var(--catra-sticky-offset,94px) - var(--catra-stories-sidebar-gap,12px) - 18px);
    overflow-y:auto;
    overscroll-behavior-y:auto;
    scrollbar-width:none;
  }
  .catra-home-editorial .catra-stories-sidebar-stack.is-sticky::-webkit-scrollbar{display:none;}
  .catra-header-not-sticky.catra-home-editorial .catra-stories-sidebar-stack.is-sticky{
    top:var(--catra-stories-sidebar-gap,12px);
    max-height:calc(100vh - var(--catra-stories-sidebar-gap,12px) - 18px);
  }
  body.admin-bar.catra-home-editorial .catra-stories-sidebar-stack.is-sticky{
    top:calc(var(--catra-sticky-offset,94px) + var(--catra-stories-sidebar-gap,12px) + 32px);
    max-height:calc(100vh - var(--catra-sticky-offset,94px) - var(--catra-stories-sidebar-gap,12px) - 50px);
  }
}

@media (max-width:991px){
  .catra-home-editorial .catra-stories-categories-row > .catra-stories-main,
  .catra-home-editorial .catra-stories-categories-row > .catra-stories-sidebar{
    width:100%;
    max-width:100%;
    flex:0 0 100%;
  }
  .catra-home-editorial .catra-stories-sidebar{margin-top:26px;}
  .catra-home-editorial .catra-category-shortcodes--stories-sidebar,
  .catra-home-editorial .catra-stories-sidebar-stack{height:auto;min-height:0;}
  .catra-home-editorial .catra-stories-sidebar-stack.is-sticky{position:static;top:auto;max-height:none;overflow:visible;}
  .catra-home-editorial .catra-category-shortcodes--stories-sidebar > .catra-shortcode-slot{position:static!important;top:auto!important;}
  .catra-home-editorial .catra-popular-showcase + .catra-category-shortcodes-mobile-host{
    margin-top:36px;
  }
}

@media (max-width:767px){
  .catra-home-editorial .catra-stories-categories-row{margin-top:34px!important;}
  .catra-home-editorial .catra-stories-main > h2.spanborder{margin-bottom:15px!important;}
  /* All Stories title mengikuti ukuran title section homepage mobile.
     Jangan digabung dengan badge artikel; rule v5.6.4 sebelumnya membuat title ikut 9.5px. */
  .catra-home-editorial .catra-stories-main > h2.spanborder > span.catra-home-ornament-title{
    font-size:21px!important;
    line-height:1.1!important;
  }
  .catra-home-editorial .catra-story-badge,
  .catra-home-editorial .catra-story-badge--body{font-size:9.5px!important;}
  .catra-home-editorial .catra-popular-showcase + .catra-category-shortcodes-mobile-host{
    margin-top:32px;
    margin-bottom:28px;
  }
}


/* v5.5.9 — mobile relocation fix.
   JS memindahkan slot shortcode ke mobile host, jadi skin harus menarget host tersebut juga. */
@media (max-width:991px){
  .catra-home-editorial [data-catra-shortcode-mobile-host]{
    display:block;
    width:100%;
  }
  .catra-home-editorial [data-catra-shortcode-mobile-host] > .catra-shortcode-slot{
    position:static!important;
    top:auto!important;
    width:100%;
    max-width:100%;
  }
}

@media (prefers-reduced-motion:reduce){
  .catra-home-editorial .catra-story-title a,
  .catra-home-editorial .catra-categories-below-stories .catra-category-media img{transition:none!important;}
}


/* =========================================================
   v5.14.11 — All Stories shortcode sidebar cleanup only
   Desktop/laptop: keep sticky, remove internal scrolling.
   Mobile: explicitly surface shortcode slot 2 (Cabinet Simulation).
   ========================================================= */
@media (min-width:992px){
  .catra-home-editorial .catra-stories-sidebar-stack.is-sticky{
    position:sticky!important;
    top:calc(var(--catra-sticky-offset,94px) + var(--catra-stories-sidebar-gap,12px))!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-y:visible!important;
    scrollbar-width:auto!important;
  }
  .catra-header-not-sticky.catra-home-editorial .catra-stories-sidebar-stack.is-sticky{
    top:var(--catra-stories-sidebar-gap,12px)!important;
    max-height:none!important;
  }
  body.admin-bar.catra-home-editorial .catra-stories-sidebar-stack.is-sticky{
    top:calc(var(--catra-sticky-offset,94px) + var(--catra-stories-sidebar-gap,12px) + 32px)!important;
    max-height:none!important;
  }
  .catra-home-editorial .catra-stories-sidebar-stack.is-sticky::-webkit-scrollbar{
    display:none!important;
  }
  .catra-home-editorial .catra-category-shortcodes--stories-sidebar,
  .catra-home-editorial .catra-category-shortcodes--stories-sidebar > .catra-shortcode-slot{
    max-height:none!important;
    overflow:visible!important;
  }
}

@media (max-width:991px){
  .catra-home-editorial [data-catra-shortcode-mobile-host] > .catra-shortcode-slot[data-catra-shortcode-slot="2"]{
    display:block!important;
    position:static!important;
    top:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  .catra-home-editorial [data-catra-shortcode-mobile-host] > .catra-shortcode-slot[data-catra-shortcode-slot="2"] > *{
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}
