/* IMN English bibliography guide: one permanent card per existing review. */
#pagebody.imn-english-guide-cards .imn-english-guide-card {
  box-sizing:border-box;
  margin:1.1rem 0 1.6rem;
  padding:1.2rem clamp(.9rem,3vw,1.6rem);
  border:1px solid transparent;
  border-radius:10px;
  background:linear-gradient(#18191b,#18191b) padding-box,
    linear-gradient(135deg,#654811 0%,#c69a35 20%,#e1cb83 40%,#84601f 65%,#bc8b32 100%) border-box;
  color:#e8e5de;
  scroll-margin-top:5.5rem;
  overflow-wrap:anywhere;
}
#pagebody.imn-english-guide-cards .imn-english-guide-card h3 {
  margin:0 0 1rem!important;
  padding:0 0 .75rem!important;
  border:0!important;
  border-bottom:1px solid #6b6048!important;
  background:none!important;
  color:#e6d9ba!important;
  text-align:center;
  font-family:"Noto Serif JP","Yu Mincho",serif;
  line-height:1.5;
  overflow-wrap:anywhere;
}
#pagebody.imn-english-guide-cards .imn-english-guide-card h3::before,
#pagebody.imn-english-guide-cards .imn-english-guide-card h3::after{content:none!important;display:none!important;}
#pagebody.imn-english-guide-cards .imn-english-guide-card .center {margin:.75rem auto 1rem;text-align:center;}
#pagebody.imn-english-guide-cards .imn-english-guide-card .center img {max-width:100%;height:auto;}
#pagebody.imn-english-guide-cards .imn-english-guide-card p {line-height:1.85;}
#pagebody.imn-english-guide-cards .imn-english-guide-card > :last-child {margin-bottom:0;}
@media(max-width:600px){#pagebody.imn-english-guide-cards .imn-english-guide-card{padding:1rem .85rem;}}

/* A title link to #ebiblioNNN opens only that book's existing review. */
#pagebody.imn-english-guide-cards.imn-guide-filter-active > h2 {display:none!important;}
#pagebody.imn-english-guide-cards.imn-guide-filter-active .imn-english-guide-card:not(.imn-guide-selected) {display:none!important;}

/* Shared heading override: mirror the Japanese bibliography's strong scoped
   h3 rules. Higher specificity + !important neutralize category-imn.css and
   site article styles regardless of stylesheet order. */
body.category-mysticism.page-type-article #pagebody.imn-content.imn-english-guide-cards .imn-english-guide-card h3[id^="ebiblio"] {
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  margin:.45rem 0!important;
  padding:0!important;
  border:0!important;
  border-left:0!important;
  border-inline-start:0!important;
  border-right:0!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:#e9e5db!important;
  text-align:center!important;
  text-indent:0!important;
  font-family:"Noto Serif JP","Yu Mincho",serif!important;
  font-weight:600!important;
  letter-spacing:.025em!important;
  line-height:1.65!important;
  overflow-wrap:anywhere;
}
body.category-mysticism.page-type-article #pagebody.imn-content.imn-english-guide-cards .imn-english-guide-card h3[id^="ebiblio"]::before,
body.category-mysticism.page-type-article #pagebody.imn-content.imn-english-guide-cards .imn-english-guide-card h3[id^="ebiblio"]::after {
  content:none!important;
  display:none!important;
  border:0!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
}

/* Only the selected card gets its return navigation. */
#pagebody.imn-english-guide-cards .imn-guide-card-return{margin-top:1.35rem;padding:.9rem .2rem .15rem;border-top:1px solid #5b5547;text-align:center;}
#pagebody.imn-english-guide-cards .imn-guide-return-link{display:inline-block;padding:.45rem .5rem;color:#ead8af!important;text-decoration:underline!important;text-underline-offset:.25em;background:none!important;border:0!important;}
#pagebody.imn-english-guide-cards .imn-guide-return-link:focus-visible{outline:2px solid #d7c089;outline-offset:3px;}
