/* Permanent public reading contract: artwork stays outside opaque reading surfaces. */
body .site-shell > main.content{
  background:#fbf3e2;
  color:#2c1c13;
  border:1px solid #c9a45e;
  border-radius:12px;
  box-shadow:0 12px 32px #14070438;
}
/* Preserve the established light paper / dark book-header presentation. */
.reading-room-page :is(.reading-room-hero,.ebook-filters,.ebook-card,.ebook-preparation-toggle),
body[data-page="reading-room"] .ebook-reader-page .ebook-reader-head,
body[data-page="reading-room"] .bible-index-page > .ebook-category{
  background:#2c1913;
  color:#fff1d5;
  border-color:#b68c45;
}
.reading-room-page .reading-room-hero{background:linear-gradient(145deg,#57191a,#28150f)}
.reading-room-page .reading-room-hero :is(h1,h2,h3,.copy,.lead,p),
.reading-room-page .ebook-filters :is(label,.ebook-filter-count),
.reading-room-page .ebook-card :is(h3,p,.ebook-original-title,.ebook-card-meta,.ebook-card-desc,.ebook-card-category,.small){
  color:#fff1d5;
}
.reading-room-page .ebook-card :is(.ebook-language,.ebook-card-meta,.ebook-card-category){color:#f5d58e}
.reading-room-page .ebook-card a:not(.btn){color:#ffe1a0;text-decoration-color:#c99b4a}
.reading-room-page .ebook-category-head{color:#4e3021;border-color:#b99452}
.reading-room-page .ebook-category-head h2{color:#681716}
.reading-room-page .ebook-category-head span{color:#68513a}
body[data-page="reading-room"] .bible-index-page > .ebook-category{padding:20px;border:1px solid #b68c45;border-radius:12px}
/* The book's own .ebook-paper and .is-night rules remain authoritative. */
body .site-shell .footer{
  position:relative;
  background:linear-gradient(180deg,#5b0c0d,#300a09);
  color:#f8e9c7;
}
body .site-shell .footer :is(a:link,a:visited){color:#f8e9c7;text-decoration-color:#c99b4a}
body .site-shell .footer a:hover{color:#ffe196}
body:has(> .temple-footer-ornament) .site-shell{margin-bottom:0}
.temple-footer-ornament{
  position:relative;width:100%;height:clamp(16px,4.2vw,81px);
  pointer-events:none;overflow:hidden;
  background:linear-gradient(#140704 calc(100% - 2px),#c99b35 0);
}
.temple-footer-ornament::before{
  content:"";position:absolute;inset:0;
  background:url("/assets/altar-scene.webp") center top/100% auto no-repeat;
  transform:scaleY(-1);
  /* Retain only the ornamental corners, excluding every central icon. */
  mask-image:linear-gradient(90deg,#000 0 29%,transparent 34% 66%,#000 71% 100%);
  -webkit-mask-image:linear-gradient(90deg,#000 0 29%,transparent 34% 66%,#000 71% 100%);
}
/* Keep the original cross in the altar unobstructed. */
body .site-shell .hero-banner:has(.hero-art) .hero-cross,
.hero-banner:has(.hero-art) .hero-brand::before,
.hero-banner:has(.hero-art) .hero-brand::after{display:none}
body .site-shell .hero-banner:has(.hero-art) .hero-brand{top:8px}
.hero-brand .brand-cross-inline{display:inline-block;width:24px;height:32px;object-fit:contain;vertical-align:-8px}

@media(min-width:1537px){
  body .site-shell .hero-banner:has(.hero-art)>a{height:calc(20vw - 90px);min-height:216px}
}
@media(max-width:1279px){
  body .site-shell .hero-banner:has(.hero-art) .hero-brand{top:auto;bottom:0}
}
@media(max-width:700px){
  .temple-scene-backdrop{top:54px}
  body .site-shell > main.content{border-radius:5px}
  .temple-footer-ornament::before{background-image:url("/assets/altar-scene-mobile.webp")}
}

html:is(.a11y-simple,.a11y-contrast) .temple-footer-ornament{display:none}
html.a11y-contrast .reading-room-page :is(.ebook-filters,.ebook-card,.reading-room-hero),
html.a11y-contrast body[data-page="reading-room"] .bible-index-page > .ebook-category{background:#000!important;color:#fff!important}
html.a11y-contrast .reading-room-page .ebook-filters label{color:#fff!important}
