/* Sacralib V2.9 — owner's HOME preview only. Assets are real RGBA art from user's ZIP.
   Existing articles, admin UI and public site remain unchanged. */
body.codex-site-v2-home.codex-site-v2-current {
  --sv28-icon-bed: var(--sv28-panel, #f5eddf);
}
body.codex-site-v2-home :is(.sv2-quick-item > img.sv23-art-icon,
  .sv2-category-header > img.sv23-art-icon,
  .sv2-image-fallback > img.sv23-art-icon) {
  background: transparent !important;
  background-image: none !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 1px 1px rgba(59,40,20,.14)) !important;
  border: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
}
body.codex-site-v2-home .sv2-quick-item {
  background: var(--sv28-panel,#f5eddf) !important;
}
body.codex-site-v2-home .sv2-quick-item:is(:hover,:focus-visible) {
  background: #eee2d0 !important;
}
/* The small heading icons were already real transparent SVGs in V2.8. */

/* Two library-feed ornaments use the uploaded image only when explicitly set.
   Their original CSS pseudo-icons remain intact for empty/default settings. */
body.codex-site-v2-home .sv2-section-header h2.sv2-has-custom-icon::before{
  content:none!important;display:none!important;background:none!important;
}
body.codex-site-v2-home .sv2-section-header .sv2-custom-heading-icon{
  display:inline-block;vertical-align:middle;width:27px;height:29px;
  max-width:27px;object-fit:contain;margin-right:10px;
  background:none;filter:drop-shadow(0 1px 1px rgba(59,40,20,.14));
}

/* Small per-icon adjustments never change the grid track or hit target.
   Clamp scale in the settings validator, then scale only the artwork. */
body.codex-site-v2-home :is(
  .sv2-quick-item > img.sv23-art-icon,
  .sv2-category-header > img.sv23-art-icon,
  .sv2-section-header h2::before,
  .sv2-section-header .sv2-custom-heading-icon) {
  transform:scale(var(--sv2-icon-scale,1))!important;
  transform-origin:center center!important;
}
