/* Premium digital collection — scoped to the E-book promo and product artwork. */
#ebook.ebook-collection { background: #faf9f4; padding: 76px 0; }
.ebook-collection__intro { max-width: 820px; margin: 0 auto 38px; text-align: center; }
.ebook-collection__intro .eyebrow-mono { color: #176779; font-size: 12px; letter-spacing: .08em; }
.ebook-collection__intro h2 { margin: 16px 0; color: var(--ink); font: 600 clamp(26px, 3vw, 36px)/1.5 var(--font-serif); text-wrap: balance; }
.ebook-collection__intro p { margin: 0; color: var(--body); font: 400 16px/1.85 var(--font-sans); }
.ebook-collection__gallery { margin: 0; }
.ebook-collection__art-heading { margin: 0 0 22px; text-align: center; color: #365965; font: 400 16px/1.7 var(--font-sans); }
.ebook-collection__art-heading strong { display: block; margin-bottom: 5px; color: #176779; font-size: 12px; letter-spacing: .12em; }
.ebook-collection__books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.ebook-volume { min-width: 0; padding: 24px 24px 28px; border: 1px solid #dce6e3; border-radius: 18px; background: #fffefa; }
.ebook-volume:nth-child(1) { background: #F0F9FE; border-color: #B8DEED; --book-halo: #b9e3f4; --book-label: #126381; }
.ebook-volume:nth-child(2) { background: #F0FBF8; border-color: #B8E3DB; --book-halo: #b7e8dd; --book-label: #17695C; }
.ebook-volume:nth-child(3) { background: #FFF9EC; border-color: #E9D6AA; --book-halo: #f0dfb6; --book-label: #805A1E; }
/* A real cover in a fitted acrylic rim, sitting on a visible display ledge. */
.ebook-display { --book-cover-height: clamp(200px, 22vw, 290px); --book-cover-ratio: 1600 / 2000; height: calc(var(--book-cover-height) + 64px); display: flex; align-items: flex-end; justify-content: center; padding: 24px 14px 32px; margin: 0 -6px 20px; box-sizing: border-box; position: relative; isolation: isolate; border-radius: 18px; background: linear-gradient(150deg,#ffffffb3,#ffffff00 72%); }
.ebook-volume:nth-child(2) .ebook-display { --book-cover-ratio: 1600 / 2264; }
.ebook-volume:nth-child(3) .ebook-display { --book-cover-ratio: 1414 / 2000; }
.ebook-display:before { content: ""; position: absolute; inset: 12px -8px 24px; z-index: -1; background: radial-gradient(ellipse at 50% 48%,var(--book-halo) 0%,var(--book-halo) 22%,transparent 72%); filter: blur(12px); opacity: .85; pointer-events: none; }
.ebook-display:after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 11px; height: 18px; z-index: 0; background: radial-gradient(ellipse,#153c4c36 0%,#153c4c12 42%,transparent 73%); filter: blur(3px); pointer-events: none; }
.ebook-display picture { display: block; flex: none; height: var(--book-cover-height); width: auto; aspect-ratio: var(--book-cover-ratio); margin: 0; padding: 4px; position: relative; z-index: 1; border: 1px solid #b8d5df; border-top-color: #fff; border-radius: 5px; background: linear-gradient(135deg,#fff,#dcecf2); box-shadow: inset 0 1px 1px #fff,4px 6px 0 #b9d0d51c,0 8px 16px #123c4b1c; box-sizing: content-box; }
.ebook-display picture:before { content: ""; position: absolute; left: 1px; right: 1px; bottom: -8px; height: 9px; z-index: -1; background: #173e5140; filter: blur(3px); pointer-events: none; }
.ebook-display picture:after { content: ""; position: absolute; left: -13px; right: -13px; bottom: -11px; height: 10px; border: 1px solid #b2ced8; border-top-color: #fff; border-radius: 4px 4px 6px 6px; background: linear-gradient(180deg,#fff 0%,#f5fbfc 38%,#d0e4ed 70%,#eef8fa 100%); box-shadow: inset 0 2px 1px #fff,0 3px 0 #aec9d333,0 6px 9px #123c4b1a; pointer-events: none; }
.ebook-volume:nth-child(3) .ebook-display picture { border-color: #dccba5; border-top-color: #fff; background: linear-gradient(135deg,#fff,#f0e7d3); }
.ebook-volume:nth-child(3) .ebook-display picture:after { border-color: #d8c69e; border-top-color: #fff; background: linear-gradient(180deg,#fff 0%,#fff9ec 38%,#e8d9b9 70%,#faf4e6 100%); }
.ebook-volume img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.ebook-volume h3 { margin: 0 0 10px; color: #164b5c; font: 600 19px/1.6 var(--font-sans); }
.ebook-volume p { margin: 0; color: #4d626b; font: 400 15px/1.85 var(--font-sans); }
.ebook-collection__gallery figcaption { margin: 25px 0; text-align: center; color: #586b70; font: 400 12px/1.8 var(--font-sans); }
.ebook-collection__gallery figcaption span { display: block; }
.ebook-collection__closing { max-width: 820px; margin: 32px auto 0; text-align: center; }
.ebook-collection__closing > p { color: #244651; font: 400 17px/1.85 var(--font-sans); margin: 0 0 12px; }
.ebook-collection__closing .ebook-format { color: #586b70; font-size: 14px; }
#ebook.ebook-collection .ebook-cta { justify-content: center; margin-top: 25px; gap: 16px 28px; }
#ebook.ebook-collection .ebook-btn { white-space: normal; text-align: center; line-height: 1.6; }
#ebook.ebook-collection .ebook-btn:focus-visible { outline: 3px solid #176779; outline-offset: 5px; }
.ebook-product-art { margin: 24px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid #dce6e3; background: #faf9f4; }
.ebook-product-art img { display: block; width: 100%; height: auto; }
.ebook-product-art figcaption { padding: 0 15px 16px; color: #48626c; text-align: center; font-size: 13px; }
@media (max-width: 900px) {
  .ebook-collection__books { gap: 16px; }
  .ebook-volume { padding: 16px; }
  .ebook-volume h3 { font-size: 17px; }
}
@media (max-width: 600px) {
  #ebook.ebook-collection { padding: 48px 0; }
  .ebook-collection__intro { margin-bottom: 26px; text-align: left; }
  .ebook-collection__intro h2 { font-size: 27px; }
  .ebook-collection__intro p { font-size: 15px; }
  .ebook-collection__books { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ebook-volume { padding: 18px 22px 24px; }
  .ebook-volume .ebook-display { --book-cover-height: 230px; margin-inline: 0; }
  .ebook-volume h3 { font-size: 19px; }
  .ebook-collection__closing { text-align: left; margin-top: 25px; }
  .ebook-collection__closing > p { font-size: 16px; }
}

/* E5.3: coordinated real-cover frames and canonical storytelling. */
.ebook-volume .ebook-volume__label { color: var(--book-label); font: 600 12px/1.7 var(--font-sans); letter-spacing: .04em; margin: 0 0 10px; }
.ebook-volume h3 { font-family: var(--font-serif); text-wrap: balance; }
.ebook-volume__story p + p { margin-top: 14px; }
.ebook-volume__story details { margin-top: 14px; color: #4d626b; }
.ebook-volume__story summary { cursor: pointer; width: fit-content; padding: 9px 5px; min-height: 44px; box-sizing: border-box; color: var(--teal-deep); font-weight: 600; }
.ebook-volume__story summary:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 5px; }
.ebook-volume__story details[open] summary { margin-bottom: 8px; }
