/* Open Library Theme — 2026-08-29 v53
 * - give BCM a proper branded placeholder cover on the portal card
 * - restore Archives into a neat 2-column grid layout
 */
:root{
  --ol53-red:#dc2626;
  --ol53-red-deep:#b91c1c;
  --ol53-red-soft:#feecee;
  --ol53-line:#e5e7eb;
  --ol53-text:#172133;
  --ol53-muted:#667085;
  --ol53-surface:#ffffff;
}

/* ---------- BCM placeholder cover ---------- */
html body.openlib-site-index .openlib_journal_card[data-journal-path="bcm"] .openlib_journal_media{
  align-self:flex-start!important;
}
html body.openlib-site-index .openlib_journal_card[data-journal-path="bcm"] .openlib_journal_placeholder{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  width:118px!important;
  height:158px!important;
  border:1px solid rgba(220,38,38,.18)!important;
  border-radius:14px!important;
  background:
    linear-gradient(145deg,#ef4444 0%,#dc2626 42%,#b91c1c 100%)!important;
  box-shadow:0 10px 28px rgba(185,28,28,.22)!important;
  color:#fff!important;
}
html body.openlib-site-index .openlib_journal_card[data-journal-path="bcm"] .openlib_journal_placeholder::before{
  content:"Bandung Creative Movement"!important;
  position:absolute!important;
  inset:10px 10px auto 10px!important;
  z-index:1!important;
  color:rgba(255,255,255,.92)!important;
  font-size:8px!important;
  line-height:1.35!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
html body.openlib-site-index .openlib_journal_card[data-journal-path="bcm"] .openlib_journal_placeholder::after{
  content:""!important;
  position:absolute!important;
  inset:auto -10px -10px auto!important;
  width:92px!important;
  height:92px!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.03))!important;
  transform:rotate(16deg)!important;
  z-index:0!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)!important;
}
html body.openlib-site-index .openlib_journal_card[data-journal-path="bcm"] .openlib_journal_placeholder strong{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:30px 12px 18px!important;
  color:#fff!important;
  font-size:30px!important;
  font-weight:900!important;
  letter-spacing:-.02em!important;
  text-shadow:0 4px 14px rgba(0,0,0,.16)!important;
}
html[data-openlib-color-mode="dark"] body.openlib-site-index .openlib_journal_card[data-journal-path="bcm"] .openlib_journal_placeholder{
  border-color:rgba(255,255,255,.08)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.34)!important;
}

/* ---------- Archive page: 2 cards per row ---------- */
html body.openlib-journal-page .page_issue_archive.openlib_issue_archive_page{
  overflow:visible!important;
}
html body.openlib-journal-page .issues_archive.openlib_issue_archive_grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html body.openlib-journal-page .issues_archive.openlib_issue_archive_grid>li{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
html body.openlib-journal-page .openlib_issue_archive_card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:116px minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
  min-height:174px!important;
  height:100%!important;
  padding:16px!important;
  overflow:hidden!important;
  border:1px solid var(--ol53-line)!important;
  border-top:3px solid var(--ol53-red)!important;
  border-left:1px solid var(--ol53-line)!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#fff 0%,#fffafb 100%)!important;
  box-shadow:0 8px 24px rgba(17,24,39,.05)!important;
}
html body.openlib-journal-page .openlib_issue_archive_card:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 14px 30px rgba(17,24,39,.08)!important;
  border-color:#f3c7cc!important;
  border-top-color:var(--ol53-red)!important;
}
html body.openlib-journal-page .openlib_issue_archive_card .cover{
  float:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:116px!important;
  max-width:116px!important;
  height:150px!important;
  margin:0!important;
  overflow:hidden!important;
  border:1px solid #e4e7ec!important;
  border-radius:12px!important;
  background:#f8fafc!important;
}
html body.openlib-journal-page .openlib_issue_archive_card .cover img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  object-fit:contain!important;
  background:#fff!important;
}
html body.openlib-journal-page .openlib_issue_archive_content{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  min-width:0!important;
  padding:2px 0!important;
}
html body.openlib-journal-page .openlib_issue_archive_card h2,
html body.openlib-journal-page .openlib_issue_archive_card .title{
  color:var(--ol53-text)!important;
}
html body.openlib-journal-page .openlib_issue_archive_card .description,
html body.openlib-journal-page .openlib_issue_archive_card .series{
  color:var(--ol53-muted)!important;
}
html body.openlib-journal-page .openlib_issue_archive_kicker{
  display:inline-flex!important;
  align-items:center!important;
  min-height:26px!important;
  margin:0 0 8px!important;
  padding:0 9px!important;
  border:1px solid #f2c7cc!important;
  border-radius:999px!important;
  background:var(--ol53-red-soft)!important;
  color:var(--ol53-red-deep)!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
html body.openlib-journal-page .openlib_issue_archive_cta{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:36px!important;
  margin-top:auto!important;
  padding:0 12px!important;
  border:1px solid #efc4c8!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--ol53-red-deep)!important;
  font-size:12px!important;
  font-weight:850!important;
}
html body.openlib-journal-page .openlib_issue_archive_cta:hover{
  background:var(--ol53-red)!important;
  border-color:var(--ol53-red)!important;
  color:#fff!important;
}

/* mobile fallback */
@media (max-width: 991px){
  html body.openlib-journal-page .issues_archive.openlib_issue_archive_grid{
    grid-template-columns:1fr!important;
  }
}
@media (max-width: 640px){
  html body.openlib-journal-page .openlib_issue_archive_card{
    grid-template-columns:88px minmax(0,1fr)!important;
    gap:12px!important;
    min-height:0!important;
    padding:12px!important;
  }
  html body.openlib-journal-page .openlib_issue_archive_card .cover{
    width:88px!important;
    max-width:88px!important;
    height:118px!important;
  }
  html body.openlib-site-index .openlib_journal_card[data-journal-path="bcm"] .openlib_journal_placeholder{
    width:96px!important;
    height:132px!important;
  }
  html body.openlib-site-index .openlib_journal_card[data-journal-path="bcm"] .openlib_journal_placeholder strong{
    font-size:24px!important;
  }
  html body.openlib-site-index .openlib_journal_card[data-journal-path="bcm"] .openlib_journal_placeholder::before{
    font-size:7px!important;
  }
}

/* dark mode */
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_issue_archive_card{
  border-color:#334155!important;
  border-top-color:#ef4444!important;
  background:linear-gradient(180deg,#151c27 0%,#121823 100%)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.24)!important;
}
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_issue_archive_card:hover{
  border-color:#475569!important;
  border-top-color:#ef4444!important;
}
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_issue_archive_card .cover{
  border-color:#334155!important;
  background:#0f1723!important;
}
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_issue_archive_card h2,
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_issue_archive_card .title{
  color:#f8fafc!important;
}
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_issue_archive_card .description,
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_issue_archive_card .series{
  color:#aab4c2!important;
}
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_issue_archive_kicker{
  border-color:#5b2c33!important;
  background:#281c21!important;
  color:#ff9da5!important;
}
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_issue_archive_cta{
  border-color:#5d3036!important;
  background:#23171c!important;
  color:#ff9aa1!important;
}
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_issue_archive_cta:hover{
  background:#ef4444!important;
  border-color:#ef4444!important;
  color:#fff!important;
}
