/* Dake digital editions: title pages, the Books page and /digital-purchases/. Loaded only on those pages; uses site.css tokens. */
.detail__subhead { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 2.25rem 0 .5rem; }
.detail__subhead-note { display: block; margin-top: .2rem; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .9rem; color: var(--muted); }
.detail__subhead + .detail__actions { margin-top: .75rem; }
.digital-edition { margin-top: 2.25rem; padding: 1.25rem 1.25rem 1.4rem; background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--gold-soft); border-radius: var(--radius); }
.digital-edition .detail__subhead { margin-top: 0; }
.digital-edition__formats { font-family: var(--sans); font-weight: 600; color: var(--ink); margin: 0; }
.digital-edition__note { font-size: 1rem; color: var(--muted); margin: .4rem 0 0; }
.digital-edition__state { font-family: var(--sans); font-size: 1rem; color: var(--ink); margin: .9rem 0 0; }
.digital-edition__actions { margin: .85rem 0 0; }
.digital-edition__actions:empty { display: none; }
.digital-edition__actions .btn { min-height: 44px; }
.digital-edition__fine, .digital-edition__rights { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: .75rem 0 0; }
.digital-edition a:focus-visible, .digital-shelf a:focus-visible, .jump-links a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Books page: digital editions first, then print */
.section--digital { padding-top: clamp(1.75rem, 4vw, 3rem); }
.jump-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; font-family: var(--sans); }
.jump-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--navy); font-size: .9rem; font-weight: 600; text-decoration: none; }
.jump-links a:hover { border-color: var(--gold-soft); }
#digital-books, #print-editions, #group-coming { scroll-margin-top: 1rem; }
.digital-shelf > p { max-width: 46rem; }
.digital-shelf__list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.digital-shelf__list .digital-edition { margin-top: 0; }
.digital-edition--compact { padding: .9rem 1rem 1rem; }
.digital-edition--compact .digital-edition__state { margin-top: .45rem; font-size: .95rem; color: var(--muted); }
.digital-edition--compact .digital-edition__actions { margin-top: .6rem; }
.digital-edition__title { font-size: 1.15rem; margin: 0 0 .25rem; overflow-wrap: anywhere; }
.digital-edition__title a { text-underline-offset: .2em; }
.print-intro { margin-bottom: 1.75rem; }
.print-intro p { max-width: 46rem; color: var(--muted); margin-top: .5rem; }

/* /digital-purchases/ */
.policy__updated { font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.policy h2 { font-size: 1.5rem; margin-top: 2em; scroll-margin-top: 1rem; }
.policy__formats { padding-left: 1.25rem; }
.policy__formats li { margin-bottom: .6em; }

/* One book, one primary action; print is an alternate format. */
.book-hero .detail { max-width: 65rem; margin-inline: auto; grid-template-columns: minmax(10rem, 16rem) minmax(0,1fr); gap: clamp(2rem,5vw,4rem); align-items: center; }
.book-hero .detail__cover { padding: 0; background: none; border: 0; }
.book-hero .detail__cover img { display: block; max-height: 24rem; width: auto; max-width: 100%; margin: auto; object-fit: contain; box-shadow: 0 6px 18px #19294026; }
.book-hero .detail__body h1 { font-size: clamp(2rem,4vw,3.6rem); line-height: 1.08; margin: 0; text-wrap: balance; }
.book-hero .detail__author { margin: .55rem 0 0; }
.book-hero .detail__lead { max-width: 52ch; margin: 1rem 0 1.25rem; line-height: 1.48; font-size: 1.12rem; }
.book-buy { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.5rem; }
.book-offer { padding: 0; background: none; border: 0; margin: 0; }
.book-offer .digital-edition__actions { margin: 0; }
.book-buy .print-link { display: inline-flex; min-height: 44px; align-items: center; gap: .3rem; }
.book-foot, .print-link, .digital-edition__note { font-family: var(--sans); font-size: .9rem; }
.book-foot { margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid var(--rule); color: var(--muted); }
.book-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.book-foot span { margin: 0 .4rem; }
.digital-edition--compact { display: flex; flex-direction: column; align-items: start; border-left-width: 1px; }
.digital-edition--compact .digital-edition__title { margin-bottom: auto; }
@media(max-width: 640px) {
 .book-hero .detail { grid-template-columns: 5rem minmax(0,1fr); gap: .35rem 1rem; align-items: center; }
 .book-hero .detail__body { display: contents; }
 .book-hero .detail__cover { grid-column: 1; grid-row: 1 / 3; }
 .book-hero .detail__body h1 { grid-column: 2; grid-row: 1; align-self: end; }
 .book-hero .detail__author { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
 .book-hero .detail__body { display: contents; }
 .book-hero .detail__cover { grid-column: 1; grid-row: 1 / 3; }
 .book-hero .detail h1 { grid-column: 2; align-self: end; font-size: clamp(1.65rem,7.2vw,2.4rem); }
 .book-hero .detail__author { grid-column: 2; align-self: start; font-size: 1rem; margin: 0; }
 .book-hero .detail__lead,.book-hero .book-buy,.book-hero .book-foot,.book-hero .detail__format { grid-column: 1/-1; }
 .book-hero .book-buy { flex-direction: column; gap: .2rem; }
 .book-hero .book-foot { margin: .5rem 0 0; }
}
