/* ============================================================
   The Bible banner (one slim band on the home page) and the
   Essays shelf card styles.
   Midnight + gold, echoing the cover, so it stands out from the
   paper shelves without taking over: ~84px tall, one line.
   Self-contained; uses only its own colours so day/night mode
   never affects it. Loaded only by index.html.
   ============================================================ */

.featured-stack {
  max-width: 74rem;
  margin: 1.4rem auto 0;
  padding: 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bible-band {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.bible-banner {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.1rem 0.7rem 0.8rem;
  text-decoration: none;
  color: #efe4c4;
  background:
    radial-gradient(120% 220% at 0% 50%, rgba(233, 196, 106, 0.16), rgba(233, 196, 106, 0) 55%),
    linear-gradient(180deg, #11162a, #1a2040);
  border: 1px solid #8a6f33;
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px #11162a, inset 0 0 0 4px rgba(184, 146, 63, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bible-banner:hover,
.bible-banner:focus-visible {
  border-color: #d9b567;
  outline: none;
}
.bible-banner:focus-visible { box-shadow: 0 0 0 2px #d9b567; }

.bible-cover {
  width: 44px;
  height: 66px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid #8a6f33;
  background: #11162a;
}

.bible-text { display: flex; flex-direction: column; min-width: 0; gap: 0.12rem; }
.bible-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a45a;
}
.bible-title {
  font-family: var(--font-read);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.15;
  color: #f3e7c3;
}
.bible-sub {
  font-family: var(--font-read);
  font-style: italic;
  font-size: 0.86rem;
  color: #b9b2a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bible-open {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #e7c878;
  padding-left: 0.6rem;
}
.bible-banner:hover .bible-open { color: #f6e3a4; }

.bible-share {
  flex-shrink: 0;
  width: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e7c878;
  background: linear-gradient(180deg, #11162a, #1a2040);
  border: 1px solid #8a6f33;
  border-radius: 3px;
  font: inherit;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.bible-share:hover,
.bible-share:focus-visible { border-color: #d9b567; color: #f6e3a4; outline: none; }
.bible-share svg { width: 1.15rem; height: 1.15rem; }
.bible-share-note {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px; height: 1px; overflow: hidden;
}
.bible-share.is-done { color: #9fd3a0; border-color: #6fa271; }

@media (max-width: 640px) {
  .featured-stack { margin-top: 1.1rem; }
  .bible-open { display: none; }
  .bible-title { font-size: 1.12rem; }
  .bible-sub { font-size: 0.8rem; }
  .bible-cover { width: 38px; height: 57px; }
}

/* ---------- Essays shelf (cards reuse the site's normal .spine styles) ---------- */
:root { --g-essay: #6f5f86; }
[data-theme="night"] { --g-essay: #a695bd; }

.spine.is-essay .spine-face.essay-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.7rem;
  padding: 1.1rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(184, 146, 63, 0.10), rgba(184, 146, 63, 0) 40%),
    var(--paper-raised);
  border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 5px var(--paper-raised), inset 0 0 0 6px rgba(184, 146, 63, 0.45);
}
.spine.is-essay .essay-orn {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
}
.spine.is-essay .essay-face .spine-title-wrap {
  position: static;
  background: none;
  padding: 0;
}
.spine.is-essay .essay-face .spine-title {
  font-family: var(--font-read);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink);
  text-shadow: none;
}
.spine.is-essay .essay-face .essay-sub {
  font-family: var(--font-read);
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink-soft);
}
.spine.is-essay .essay-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 640px) {
  .spine.is-essay .essay-face .essay-sub,
  .spine.is-essay .essay-orn { display: none; }
  .spine.is-essay .spine-face.essay-face { gap: 0.5rem; padding: 0.8rem 0.6rem; }
  .spine.is-essay .essay-face .spine-title { font-size: 1.02rem; }
}
