/* ===== v11 Chronicle page refinements ===== */

/* Fix hamburger/menu button overlap */
#hamburgerBtn{
  position:relative!important;
  z-index:100010!important;
  width:46px!important;
  height:46px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#0f1e4a!important;
  flex:0 0 46px!important;
  margin:0!important;
}
#hamburgerBtn i{
  position:static!important;
  transform:none!important;
  margin:0!important;
  line-height:1!important;
  font-size:22px!important;
}
#hamburgerMenu .hamburger-menu-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 46px!important;
  align-items:center!important;
  gap:12px!important;
  padding-right:16px!important;
}
#hamburgerMenu .hamburger-menu-header #hamburgerClose{
  position:static!important;
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  flex:0 0 42px!important;
}
#hamburgerMenu .hamburger-menu-header #hamburgerClose i{
  position:static!important;
  transform:none!important;
  margin:0!important;
}
/* If hamburger trigger was copied inside menu header, hide duplicate trigger there */
#hamburgerMenu #hamburgerBtn{
  display:none!important;
}

/* Sidebar remains old style but without Recent Posts */
.chronicles-sidebar{
  gap:18px!important;
}

/* Latest bar */
.recent-chronicles-bar{
  align-items:center!important;
}
.recent-chronicles-title{
  font-weight:900!important;
  color:#0f1e4a!important;
}
.recent-chronicles-count{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
}

/* Card footer alignment */
.chronicles-page-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}
.chronicles-card-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
}
.chronicles-card-body .chronicles-card-meta{
  margin-top:auto!important;
  padding-top:12px!important;
}
.chronicle-read-more{
  margin-top:12px!important;
  align-self:flex-start!important;
}
.chronicles-page-card h3{
  min-height:3.6em!important;
}
.chronicles-page-card p{
  margin-bottom:0!important;
}

/* Reader order and spacing */
#chroniclePostReader .chronicle-reader-library{
  order:1;
}
#chroniclePostReader .chronicle-reader-title{
  order:2;
}
#chroniclePostReader .chronicle-reader-meta{
  order:3;
}
#chroniclePostReader .chronicle-reader-image-wrap{
  order:4;
}
#chroniclePostReader .chronicle-reader-content{
  order:5;
}
#chroniclePostReader .chronicle-reader-gallery-wrap{
  order:6;
}

/* Make reader structure visually explicit */
.chronicle-reader-head{
  display:flex!important;
  flex-direction:column!important;
}
.chronicle-reader-library{
  margin-bottom:8px!important;
}
.chronicle-reader-title{
  margin-bottom:8px!important;
}
.chronicle-reader-meta{
  margin-bottom:18px!important;
}
.chronicle-reader-image-wrap{
  margin-bottom:22px!important;
}
.chronicle-reader-description{
  margin-bottom:20px!important;
}
