/* Love78 Studios Core 0.1 — shared game showcase components.
   Scoped selectors avoid changing unrelated WordPress posts. */
:root { --love78-ink:#281632; --love78-purple:#291631; --love78-gold:#c5a45c; --love78-cream:#f7f0e5; }
/* Historical game showcases: restore a consistent heading hierarchy. */
body:is(.love78-game-showcase,.love78-book-showcase) .entry-content h2.wp-block-heading,
body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-post-content h2.wp-block-heading {
  box-sizing:border-box; background:var(--love78-purple); color:#fff;
  text-align:center; font-size:clamp(1.35rem,2.3vw,1.9rem); font-weight:600;
  line-height:1.3; padding:0.8em 1em; border-radius:10px;
  border-bottom:4px solid var(--love78-gold); margin:2.2rem auto 1.15rem;
}
body:is(.love78-game-showcase,.love78-book-showcase) .entry-content h3.wp-block-heading,
body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-post-content h3.wp-block-heading {
  color:var(--love78-ink); font-size:clamp(1.12rem,1.7vw,1.4rem);
  font-weight:700; text-align:center; margin:1.6rem auto .8rem;
}
/* Restore full-width, centered hero/card and readable summary typography. */
.love78-game-hero {width:100%;max-width:100%;margin:1.5rem auto 2rem!important;}
.love78-game-hero figure,.love78-game-hero img {max-width:100%;width:100%;height:auto;}
body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-group:has(> .love78-game-status),
.love78-game-status {width:100%;max-width:100%;box-sizing:border-box;}
.love78-game-status {padding:clamp(18px,3vw,30px);background:#f4ebdb;border:1px solid #d5bb7e;border-left:6px solid var(--love78-gold);border-radius:10px;}
.love78-game-status h2,.love78-game-status h3 {background:transparent!important;color:var(--love78-ink)!important;border:0!important;padding:0!important;text-align:left!important;margin:0 0 .5rem!important;font-size:1.45rem!important;}
.love78-game-status p {font-size:1rem;line-height:1.75;margin:.45rem 0;}
/* Galleries, tables, and native Details blocks. */
.love78-game-table {max-width:850px;width:100%;margin:1.5rem auto!important;}
.love78-game-table table {width:100%;border-collapse:collapse;}
.love78-game-table th {background:var(--love78-purple);color:white;}
.love78-game-table th,.love78-game-table td {padding:.75rem .9rem;border:1px solid #d9cbb4;vertical-align:top;}
.love78-game-collection,.love78-game-gallery {width:100%;margin-left:auto!important;margin-right:auto!important;}
body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-details {box-sizing:border-box;width:100%;max-width:100%;margin:12px auto;padding:0;border:1px solid #dfcfb5;border-radius:9px;overflow:hidden;}
body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-details>summary {cursor:pointer;padding:14px 18px;background:#eee5d7;color:var(--love78-ink);font-weight:700;}
body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-details[open]>summary {background:var(--love78-purple);color:#fff;}
body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-details>:not(summary) {margin-left:18px;margin-right:18px;}
@media(max-width:640px){.love78-game-table{overflow-x:auto;display:block;}body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-details>:not(summary){margin-left:12px;margin-right:12px;}}

/* v0.2: captions are redundant on designed game showcase artwork and
   can create an extra text column alongside the image. */
body.love78-game-showcase .entry-content figcaption,
body.love78-game-showcase .wp-block-post-content figcaption,
body.love78-game-showcase .entry-content .wp-element-caption,
body.love78-game-showcase .wp-block-post-content .wp-element-caption,
.love78-game-hero figcaption,
.love78-game-hero .wp-element-caption {display:none!important;}

/* Section banners should fill the same content width as article text.
   WordPress constrained layouts may give heading blocks a narrower max-width. */
body:is(.love78-game-showcase,.love78-book-showcase) .entry-content > h2.wp-block-heading,
body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-post-content > h2.wp-block-heading,
body:is(.love78-game-showcase,.love78-book-showcase) .entry-content .is-layout-constrained > h2.wp-block-heading,
body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-post-content .is-layout-constrained > h2.wp-block-heading {
  width:100%!important;max-width:100%!important;
  margin-left:auto!important;margin-right:auto!important;
}

/* Book importer and pre-Core game showcase components. */
body.love78-book-showcase :is(.entry-content,.wp-block-post-content) .love78-book-hero {
  max-width:900px; width:100%; margin:1.5rem auto 2rem!important;
}
body.love78-book-showcase :is(.entry-content,.wp-block-post-content) .love78-book-cover {
  max-width:420px; width:100%; margin:1.5rem auto!important;
}
body.love78-book-showcase :is(.love78-book-hero,.love78-book-cover) :is(figure,figure>a,img) {
  float:none!important; display:block!important; width:100%!important;
  max-width:100%!important; margin-inline:auto!important;
}
body.love78-book-showcase :is(.love78-book-hero,.love78-book-cover) img {
  height:auto!important; object-fit:contain!important;
}
body.love78-book-showcase :is(.love78-book-hero,.love78-book-cover) figcaption {
  float:none!important; position:static!important; width:100%!important;
  background:transparent!important; color:var(--love78-ink)!important;
  font-size:.9rem; padding:.5rem 0; box-sizing:border-box;
}
body:is(.love78-book-showcase,.love78-game-showcase) :is(.entry-content,.wp-block-post-content) details.wp-block-details > summary {
  font-size:1rem; line-height:1.5;
}
body:is(.love78-game-showcase,.love78-book-showcase) :is(.entry-content,.wp-block-post-content)
  :is(.love78-book-table,.l78-fandom-table) {
  display:block; overflow-x:auto; width:100%; max-width:850px; margin:1.5rem auto!important;
}
body:is(.love78-game-showcase,.love78-book-showcase) :is(.love78-book-table,.l78-fandom-table) table {
  width:100%; border-collapse:collapse;
}
body:is(.love78-game-showcase,.love78-book-showcase) :is(.love78-book-table,.l78-fandom-table) :is(th,td) {
  padding:.65rem .8rem; border:1px solid #d9cbb4; vertical-align:top;
}
body:is(.love78-game-showcase,.love78-book-showcase) :is(.love78-book-table,.l78-fandom-table) th {
  background:var(--love78-purple); color:white;
}
body:is(.love78-game-showcase,.love78-book-showcase) .wp-block-gallery:is(.love78-book-gallery,.l78-fandom-gallery,.l78-stargate-gallery,.love78-hallowed-cards) img {
  max-width:100%; height:auto; object-fit:contain;
}

/* Ather Reader chapter bars retain the anchors used by the table of contents. */
body .love78-reader-prose h2.wp-block-heading[id^="chapter-"] {
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  background:var(--love78-purple);
  color:#fff;
  border-bottom:4px solid var(--love78-gold);
  border-radius:10px;
  padding:.65em .85em;
  text-align:center;
}

/* The Stargate importer wrapped its two sections in an extra constrained
   group. Use the Standard Post article width, as on Fandom Rising. */
body.love78-stargate-showcase :is(.entry-content,.wp-block-post-content) > .l78-stargate-feature {
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box;
  padding-inline:0!important;
}
body.love78-stargate-showcase :is(.entry-content,.wp-block-post-content) > .l78-stargate-feature > :not(.l78-fandom-table) {
  max-width:100%!important;
}
body.love78-stargate-showcase :is(.entry-content,.wp-block-post-content) .l78-stargate-feature h2.wp-block-heading {
  font-size:clamp(1.35rem,2.3vw,1.9rem)!important;
  font-weight:600!important;
  line-height:1.3!important;
}
body.love78-stargate-showcase :is(.entry-content,.wp-block-post-content) .l78-stargate-feature h3.wp-block-heading {
  font-size:clamp(1.12rem,1.7vw,1.4rem)!important;
  font-weight:700!important;
  line-height:1.3!important;
}
body.love78-stargate-showcase :is(.entry-content,.wp-block-post-content) .l78-stargate-gallery.wp-block-gallery {
  width:100%!important;
  margin-inline:auto!important;
}

/* Keep the showcase wide while matching the scale of card thumbnails. */
body.love78-stargate-showcase :is(.entry-content,.wp-block-post-content) .l78-stargate-gallery.wp-block-gallery {
  justify-content:center;
}
body.love78-stargate-showcase :is(.entry-content,.wp-block-post-content) .l78-stargate-gallery.wp-block-gallery > figure.wp-block-image {
  max-width:210px!important;
  flex-grow:0!important;
}
body.love78-stargate-showcase :is(.entry-content,.wp-block-post-content) .l78-stargate-gallery.wp-block-gallery > figure.wp-block-image img {
  width:100%!important;
  height:auto!important;
  max-width:210px!important;
  object-fit:contain;
}
body.love78-stargate-showcase .love78-stargate-card-details.wp-block-details {
  width:100%;
  background:#fbf8f1;
  border-color:var(--love78-gold);
}
body.love78-stargate-showcase .love78-stargate-card-details > .l78-stargate-gallery.wp-block-gallery {
  box-sizing:border-box;
  padding:1rem;
  margin:0!important;
}
