
/* Scoped book detail presentation; shared public navigation remains unchanged. */
.book-detail { --book-navy:#0f2a5e; --book-muted:#657184; background:#f8f7f4; color:#18243a; padding:0 0 64px; }
.book-detail__container { max-width:1240px; margin:auto; padding:0 32px; }
.book-detail__breadcrumb { display:flex; align-items:center; gap:12px; padding:24px 0 32px; font-size:12px; color:var(--book-muted); min-width:0; }
.book-detail__breadcrumb a { flex-shrink:0; display:inline-flex; align-items:center; min-height:44px; }
.book-detail__breadcrumb [aria-current] { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.book-detail a { text-underline-offset:4px; }
.book-detail a:hover { color:var(--book-navy); }
.book-detail :is(a,button,summary):focus-visible, #reader-modal :is(a,button):focus-visible { outline:3px solid #4664a0; outline-offset:4px; }
.book-detail__layout { display:grid; grid-template-columns:minmax(0,1fr) 328px; grid-template-areas:"hero options" "content options"; gap:36px 44px; align-items:start; }
.book-detail__hero { grid-area:hero; display:grid; grid-template-columns:200px minmax(0,1fr); column-gap:28px; align-items:center; min-width:0; }
.book-detail__intro { grid-column:2; grid-row:1; min-width:0; }
.book-detail__eyebrow { margin:0 0 12px; color:#64708a; font-size:10px; font-weight:700; line-height:1.8; letter-spacing:.14em; text-transform:uppercase; }
.book-detail h1 { margin:0; color:var(--book-navy); font-family:var(--font-interface); font-size:clamp(27px,2.5vw,38px); font-weight:700; line-height:1.2; overflow-wrap:anywhere; }
.book-detail__subtitle { color:var(--book-muted); margin:14px 0 0; font-size:16px; line-height:1.65; }
.book-detail__author { margin:18px 0 0; font-size:13px; line-height:1.8; color:var(--book-muted); }
.book-detail__author a { color:var(--book-navy); font-weight:600; text-decoration:underline; }
.book-detail__badges { display:flex; flex-wrap:wrap; gap:7px; margin-top:20px; }
.book-detail__badge { background:#eaeef3; color:#4c5d74; border-radius:6px; padding:5px 9px; font-size:11px; font-weight:500; }
.book-detail__badge--green { background:#e4f3e9; color:#236341; }
.book-detail__section-links { display:flex; flex-wrap:wrap; gap:6px 20px; margin-top:16px; font-size:12px; }
.book-detail__section-links a { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; color:var(--book-navy); }
.book-detail__cover { grid-column:1; grid-row:1; display:flex; align-items:center; flex-direction:column; gap:20px; background:#eae8e1; border:1px solid #e4e2d9; border-radius:16px; padding:26px 22px 18px; }
.book-detail__cover img { display:block; width:100%; height:auto; max-height:280px; aspect-ratio:2/3; object-fit:contain; filter:drop-shadow(5px 10px 8px rgb(31 36 53 / .18)); }
.book-detail__cover span { color:#697064; font-size:9px; letter-spacing:.05em; text-align:center; }
.book-detail__options { grid-area:options; position:sticky; top:24px; border:1px solid #e1e4e9; border-radius:18px; background:white; box-shadow:0 8px 30px rgb(15 42 94 / .05); overflow:hidden; }
.book-detail__options-heading { padding:24px 24px 20px; border-bottom:1px solid #edf0f3; }
.book-detail__options-heading .book-detail__eyebrow { margin-bottom:5px; }
.book-detail h2 { font-size:20px; line-height:1.4; font-weight:650; color:var(--book-navy); margin:0; letter-spacing:-.02em; }
.book-detail__options-heading > p:last-child { margin:7px 0 0; font-size:12px; line-height:1.7; color:var(--book-muted); }
.book-detail__edition { padding:22px 24px; }
.book-detail__edition--print { border-top:1px solid #edf0f3; background:#fbfcfe; }
.book-detail__edition-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.book-detail h3 { margin:0; font-size:14px; font-weight:650; }
.book-detail__edition-tag { font-size:10px; color:var(--book-muted); }
.book-detail__price { font-size:27px; letter-spacing:-.035em; font-weight:700; margin:12px 0 18px; line-height:1.3; color:var(--book-navy); }
.book-detail__price span { display:block; margin-top:5px; font-size:11px; letter-spacing:0; font-weight:400; color:var(--book-muted); }
.book-detail__access { margin:16px 0; color:#236341; background:#edf8f1; border-radius:8px; padding:10px; font-size:12px; font-weight:600; }
.book-detail__actions { display:grid; gap:10px; }
.book-detail__button { display:flex; width:100%; min-height:46px; align-items:center; justify-content:center; gap:14px; border-radius:10px; padding:11px 14px; border:1px solid transparent; font:600 13px/1.5 Inter,system-ui,sans-serif; text-decoration:none; cursor:pointer; transition:background-color .15s,border-color .15s; text-align:center; }
.book-detail__button--primary { color:#fff; background:var(--book-navy); }
.book-detail__button--primary:hover, .book-detail a.book-detail__button--primary:hover { color:white; background:#1a3a7a; }
.book-detail__button--outline { color:var(--book-navy); border-color:#cdd6e3; background:white; }
.book-detail__button--outline:hover { background:#f0f4f9; border-color:#8d9eb9; }
.book-detail__hint { font-size:11px; line-height:1.8; color:var(--book-muted); margin:12px 0 0; }
.book-detail__note { margin:0; padding:10px 12px; border-radius:8px; background:#f4f6fa; color:#4c5d74; font-size:12px; line-height:1.7; }
.book-detail__review { display:grid; gap:4px; padding:12px 14px; border-radius:10px; background:#edf3ff; border:1px solid #c7d7f5; color:#1f3a6d; font-size:12px; line-height:1.7; }
.book-detail__review strong { font-size:13px; }
.book-detail__review--rejected { background:#fdf2f2; border-color:#f0c4c4; color:#7a2a2a; }
.book-detail__inline-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; justify-content:center; color:var(--book-navy); font-size:12px; font-weight:600; text-decoration:underline; }
.book-detail__notice { display:flex; align-items:flex-start; gap:14px; margin:0 0 28px; padding:16px 18px; border-radius:14px; border:1px solid; font-size:13px; line-height:1.7; }
.book-detail__notice--success { background:#edf8f1; border-color:#bfe3cc; color:#1d4d32; }
.book-detail__notice--info { background:#edf3ff; border-color:#c7d7f5; color:#1f3a6d; }
.book-detail__notice--error { background:#fdf2f2; border-color:#f0c4c4; color:#7a2a2a; }
.book-detail__notice-icon { display:grid; place-items:center; flex-shrink:0; width:34px; height:34px; border-radius:10px; background:rgb(255 255 255 / .7); }
.book-detail__notice-icon svg { width:18px; height:18px; }
.book-detail__notice-title { margin:0; font-weight:700; font-size:14px; }
.book-detail__notice-text { margin:4px 0 0; }
.book-detail__help { font-size:11px; line-height:1.8; margin:0; padding:14px 22px; border-top:1px solid #edf0f3; text-align:center; color:var(--book-muted); }
.book-detail__help a { font-weight:600; color:var(--book-navy); text-decoration:underline; display:inline-block; padding:6px 0; }
.book-detail__content { grid-area:content; min-width:0; }
.book-detail__section { scroll-margin-top:116px; padding:28px 0; border-top:1px solid #dedfdc; }
.book-detail__section .book-detail__eyebrow { margin-bottom:5px; }
.book-detail__description { margin-top:18px; font-size:14px; line-height:1.95; color:#526074; white-space:pre-line; overflow-wrap:anywhere; }
.book-detail__facts { display:grid; grid-template-columns:1fr 1fr; margin-top:16px; gap:0 28px; }
.book-detail__facts > div { min-width:0; border-bottom:1px solid #e5e6e3; padding:14px 0; }
.book-detail__facts dt { font-size:11px; color:var(--book-muted); margin-bottom:5px; }
.book-detail__facts dd { margin:0; font-size:13px; line-height:1.7; font-weight:500; overflow-wrap:anywhere; }
.book-detail__facts a { color:var(--book-navy); text-decoration:underline; }
.book-detail__fact-wide { grid-column:1/-1; }
.book-detail__doi-status { display:block; color:var(--book-muted); font-size:11px; font-weight:400; margin-top:4px; }
.book-detail__extras { border:1px solid #e1e4e9; border-radius:12px; background:#fff; margin-top:8px; padding:0 16px; }
.book-detail__extras summary { cursor:pointer; padding:16px 0; font-size:12px; font-weight:600; color:#526074; }
.book-detail__extras > div { box-shadow:none; border:0; padding:12px 0 24px; }
.book-detail__footer-note { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; margin-top:28px; font-size:12px; line-height:1.8; color:var(--book-muted); }
.book-detail__footer-note p { margin:0; }
.book-detail__footer-note a { color:var(--book-navy); text-decoration:underline; }
#reader-modal { z-index:10050; }
#reader-modal button, #reader-modal a { min-height:44px; }
#reader-modal [data-reader-title] { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(min-width:1024px) and (max-height:820px) { .book-detail__options { position:static; } }
@media(max-width:1100px) {
 .book-detail__container { padding:0 24px; }
 .book-detail__layout { grid-template-columns:minmax(0,1fr) 300px; column-gap:28px; }
 .book-detail__hero { grid-template-columns:150px minmax(0,1fr); column-gap:20px; }
 .book-detail__cover { padding:20px 16px 16px; }
}
@media(max-width:900px) {
 .book-detail__layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"hero" "options" "content"; gap:28px; }
 .book-detail__hero { grid-template-columns:210px minmax(0,1fr); gap:28px; }
 .book-detail__options { position:static; display:grid; grid-template-columns:1fr 1fr; }
 .book-detail__options-heading, .book-detail__help { grid-column:1/-1; }
 .book-detail__edition--print { border-top:0; border-left:1px solid #edf0f3; }
 .book-detail__options:not(:has(.book-detail__edition--print)) .book-detail__edition { grid-column:1/-1; }
}
@media(max-width:540px) {
 .book-detail { padding-bottom:40px; }
 .book-detail__container { padding:0 20px; }
 .book-detail__breadcrumb { padding:16px 0; gap:8px; font-size:11px; }
 .book-detail__notice { padding:14px; gap:12px; margin-bottom:20px; }
 .book-detail__hero { grid-template-columns:90px minmax(0,1fr); align-items:start; gap:16px; }
 .book-detail__intro { order:0; }
 .book-detail h1 { font-size:26px; }
 .book-detail__subtitle { font-size:15px; margin-top:10px; }
 .book-detail__author { margin-top:12px; }
 .book-detail__badges { margin-top:14px; }
 .book-detail__section-links { margin-top:10px; }
 .book-detail__cover { order:1; padding:12px 10px; gap:0; border-radius:10px; }
 .book-detail__cover img { width:100%; max-height:150px; } .book-detail__cover span { display:none; }
 .book-detail__options { display:block; }
 .book-detail__options-heading, .book-detail__edition { padding:20px; }
 .book-detail__edition--print { border-left:0; border-top:1px solid #edf0f3; }
 .book-detail__facts { gap:0 18px; }
 .book-detail__section { padding:24px 0; }
 .book-detail__footer-note { display:block; }
 .book-detail__footer-note a { display:inline-flex; align-items:center; min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { .book-detail__button { transition:none; } }
