/* Book Page v2. Book-specific information design; shared primitives remain Design System-owned. */
.rs-book-page{margin:0 auto;padding:var(--rs-space-5,1.5rem) var(--rs-space-4,1rem) var(--rs-space-6,2rem);}
.book-hero{display:grid;border-radius:var(--rs-radius-lg);}
.book-cover{margin:0;position:relative;}.book-cover img{display:block;width:100%;height:auto;}
.book-identity-copy{min-width:0;}.book-series,.book-authors,.book-subtitle{margin:.4rem 0;}.book-series{font-weight:var(--rs-weight-semibold);}.book-series span{color:var(--rs-text-secondary);}
.book-subtitle{font-size:var(--rs-text-lg);color:var(--rs-text-secondary);}.book-authors{font-weight:var(--rs-weight-semibold);}.book-contributor-role{font-size:.85em;color:var(--rs-text-muted);font-weight:var(--rs-weight-medium);}
.book-genres{display:flex;flex-wrap:wrap;}.book-genre{display:inline-flex;align-items:center;border:1px solid var(--rs-border-default);border-radius:var(--rs-radius-pill);font-size:var(--rs-text-sm);font-weight:var(--rs-weight-semibold);text-decoration:none;transition:border-color var(--rs-transition-normal),box-shadow var(--rs-transition-normal),transform var(--rs-transition-normal);}.book-genre:hover{border-color:var(--rs-border-strong);box-shadow:var(--rs-glow-interactive);transform:translateY(-1px);}
.book-facts{margin:1.5rem 0 0;border-top:1px solid var(--rs-border-subtle);}.book-facts>div{display:grid;gap:1rem;}.book-facts dt{font-weight:var(--rs-weight-medium);}.book-facts dd{margin:0;min-width:0;}
.book-series-navigation{display:grid;grid-template-columns:1fr 1fr;}.book-series-navigation>a{display:flex;flex-direction:column;justify-content:center;border:1px solid var(--rs-border-subtle);border-radius:var(--rs-radius-md);text-decoration:none;}.book-series-navigation>a:last-child{text-align:right;}.book-series-navigation span{font-size:var(--rs-text-xs);color:var(--rs-text-muted);}.book-series-navigation strong{font-size:var(--rs-text-sm);font-weight:var(--rs-weight-semibold);}
.book-description-content>:first-child{margin-top:0;}.book-description-content>:last-child{margin-bottom:0;}
@media(max-width:760px){.rs-book-page{padding-inline:var(--rs-space-3,.75rem);}.book-authors{font-size:var(--rs-text-md);}.book-facts>div{display:block;}.book-facts dd{margin-top:.12rem;}.book-series-navigation{grid-template-columns:1fr;}.book-series-navigation>a:last-child{text-align:left;}.book-description{margin-top:2rem;}}
@media(max-width:480px){.book-hero{grid-template-columns:1fr;}.book-cover{width:min(68vw,240px);margin:0 auto;}.book-identity-copy{text-align:left;}.book-genres{margin-block:1rem;}}

/* 0.6 Reading context. Community signal is public; personal state is owner-only. */
.book-community-rating{display:flex;width:max-content;max-width:100%;border-radius:var(--rs-radius-md);}
.book-community-rating>strong{line-height:1;letter-spacing:-.02em;}.book-community-rating>strong span{font-size:.7em;color:var(--rs-text-secondary);font-weight:var(--rs-weight-medium);}.book-community-rating>div{display:flex;flex-direction:column;line-height:1.25;}.book-community-rating>div>span{font-weight:var(--rs-weight-semibold);}.book-community-rating small{color:var(--rs-text-muted);}
.book-reading{border:1px solid var(--rs-border-subtle);}.book-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;}.book-section-heading h2{margin:0;font-size:clamp(1.35rem,2.5vw,1.75rem);}.book-section-heading p{margin:0;color:var(--rs-text-secondary);}.book-reading-statuses{display:flex;flex-wrap:wrap;gap:.5rem;}.book-reading-statuses span{display:inline-flex;align-items:center;border:1px solid var(--rs-border-subtle);border-radius:var(--rs-radius-pill);font-size:var(--rs-text-sm);font-weight:var(--rs-weight-medium);}.book-reading-progress{height:.45rem;overflow:hidden;border-radius:999px;background:var(--rs-surface-2);}.book-reading-progress span{display:block;height:100%;border-radius:inherit;background:currentColor;}
@media(max-width:560px){.book-section-heading{display:block;}.book-section-heading p{margin-top:.35rem;}}

/* 0.7 discovery and entity context. Horizontal rows preserve cover art as the visual language. */
.book-context-section{max-width:var(--rs-content-max,1100px);margin:clamp(2.75rem,7vw,5rem) auto 0;}.book-context-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;}.book-context-heading span{display:block;color:var(--rs-text-muted);font-size:var(--rs-text-xs);font-weight:var(--rs-weight-semibold);text-transform:uppercase;letter-spacing:.08em;}.book-context-heading h2{margin:0;}.book-context-heading>a{font-size:var(--rs-text-sm);font-weight:var(--rs-weight-semibold);text-decoration:none;}.book-cover-row{display:grid;grid-auto-flow:column;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;}.book-cover-card{min-width:0;text-decoration:none;scroll-snap-align:start;}.book-cover-card img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;box-shadow:0 10px 28px rgba(0,0,0,.2);transition:transform var(--rs-transition-normal),box-shadow var(--rs-transition-normal);}.book-cover-card:hover img{transform:translateY(-2px);box-shadow:0 15px 34px rgba(0,0,0,.28);}.book-cover-card-copy{display:flex;flex-direction:column;gap:.18rem;line-height:1.25;}.book-cover-card-copy strong{overflow-wrap:anywhere;}.book-cover-card-copy small,.book-cover-card-copy em{color:var(--rs-text-muted);font-size:var(--rs-text-xs);font-style:normal;}.book-cover-card.is-current img{outline:2px solid currentColor;}.book-cover-card.is-current .book-cover-card-copy small{font-weight:var(--rs-weight-semibold);color:var(--rs-text-primary);}.book-author-description p:first-child{margin-top:0;}.book-author-context h3{margin:1.75rem 0 .85rem;font-size:var(--rs-text-lg);}
@media(max-width:600px){.book-author-books{grid-auto-columns:minmax(100px,34vw);}}

/* 0.8 reader voice. Reviews are Reading-owned content presented in Book context. */
.book-reader-reviews .book-context-heading{margin-bottom:.35rem;}.book-reader-reviews .book-context-heading p{margin:0;color:var(--rs-text-muted);font-size:var(--rs-text-sm);}.book-reviews-intro{margin:.25rem 0 1.25rem;color:var(--rs-text-secondary);}.book-review-header>div{display:flex;flex-direction:column;gap:.12rem;min-width:0;}.book-review-user{font-weight:var(--rs-weight-semibold);text-decoration:none;}.book-review-header time{font-size:var(--rs-text-xs);color:var(--rs-text-muted);}.book-review-rating{white-space:nowrap;}.book-review-rating span{font-size:.75em;color:var(--rs-text-secondary);font-weight:var(--rs-weight-medium);}.book-review-body>:first-child{margin-top:0;}.book-review-body>:last-child{margin-bottom:0;}.book-review footer{color:var(--rs-text-muted);font-size:var(--rs-text-xs);}.book-review-spoiler{border:0;}.book-review-spoiler summary{cursor:pointer;min-height:var(--rs-touch-target);display:flex;align-items:center;font-weight:var(--rs-weight-semibold);color:var(--rs-text-secondary);}.book-review-spoiler[open] summary{margin-bottom:.75rem;}.book-review .bookshelf-inline-spoiler{max-width:100%;}
@media(max-width:560px){.book-review{padding:.85rem;}.book-review-header{gap:.65rem;}}

/* 0.9 Book Experience pass. The page now behaves as one reading surface instead of a stack of feature boxes. */
.rs-book-page{padding-top:clamp(1rem,2.5vw,1.75rem);padding-bottom:clamp(3rem,8vw,6rem);}
.book-hero{isolation:isolate;overflow:hidden;gap:clamp(1.6rem,4.5vw,4rem);border-color:color-mix(in srgb,var(--rs-border-subtle) 72%,transparent);}
.book-hero::after{content:"";position:absolute;z-index:-1;inset:auto -10% -45% 38%;height:75%;pointer-events:none;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--rs-text-primary) 5%,transparent),transparent 68%);}

.book-identity-copy{align-self:center;padding-block:.15rem;}.book-series{margin:0 0 .65rem;}.book-series a{text-decoration:none;}.book-identity-copy h1{margin:.25rem 0 .75rem;}.book-authors{margin:.15rem 0 0;}
.book-community-rating{gap:.7rem;margin:1rem 0 .25rem;border-color:var(--rs-border-default);}.book-community-rating>strong{font-size:1.55rem;}.book-community-rating>div>span{font-size:var(--rs-text-xs);text-transform:uppercase;letter-spacing:.045em;}.book-community-rating small{font-size:var(--rs-text-xs);}
.book-genres{margin:1.05rem 0 1.15rem;}.book-genre{min-height:var(--rs-touch-target);padding:.35rem .78rem;background:transparent;}.book-facts{padding-top:.85rem;}.book-facts>div{grid-template-columns:minmax(7.5rem,9rem) minmax(0,1fr);}.book-facts dt{font-size:var(--rs-text-sm);}
.book-series-navigation{gap:.65rem;margin-top:1.15rem;}.book-series-navigation>a{min-height:3.5rem;padding:.65rem .8rem;border-color:color-mix(in srgb,var(--rs-border-subtle) 78%,transparent);background:color-mix(in srgb,var(--rs-surface-1) 68%,transparent);transition:border-color var(--rs-transition-normal),background var(--rs-transition-normal),transform var(--rs-transition-normal);}.book-series-navigation>a:hover{border-color:var(--rs-border-default);background:var(--rs-surface-2);transform:translateY(-1px);}

.book-reading{margin:clamp(1rem,2.5vw,1.5rem) auto 0;border-color:color-mix(in srgb,var(--rs-border-subtle) 72%,transparent);}.book-reading .book-section-heading h2{font-size:var(--rs-text-lg);}.book-reading-statuses{margin-top:.65rem;}.book-reading-statuses span{min-height:var(--rs-touch-target);padding:.25rem .7rem;background:var(--rs-surface-1);}.book-reading-progress{max-width:32rem;margin-top:.75rem;}

.book-description{margin-top:clamp(2.75rem,6vw,5rem);}.book-description h2{letter-spacing:-.018em;}.book-description-content p{margin-block:0 1.15em;}

.book-context-heading{margin-bottom:1.2rem;}.book-context-heading span{margin-bottom:.3rem;}.book-context-heading h2{letter-spacing:-.018em;}.book-context-heading>a{min-height:var(--rs-touch-target);display:inline-flex;align-items:center;}
.book-cover-row{padding:.35rem .2rem 1rem;scrollbar-color:var(--rs-border-default) transparent;}.book-cover-row::-webkit-scrollbar{height:7px;}.book-cover-row::-webkit-scrollbar-track{background:transparent;}.book-cover-row::-webkit-scrollbar-thumb{background:var(--rs-border-default);border-radius:999px;}.book-cover-card{border-radius:var(--rs-radius-md);}.book-cover-card:focus-visible{outline:2px solid currentColor;outline-offset:5px;}.book-cover-card-copy{margin-top:.65rem;}.book-cover-card-copy strong{line-height:1.28;}.book-cover-card.is-current img{outline-offset:4px;}.book-cover-card.is-current .book-cover-card-copy strong{font-weight:var(--rs-weight-semibold);}
.book-author-description{max-width:52rem;margin-bottom:0;line-height:1.72;color:var(--rs-text-secondary);}.book-author-context h3{margin-top:2rem;}.book-author-books{grid-auto-columns:minmax(108px,138px);}

.book-reviews-intro{max-width:42rem;margin-bottom:1.5rem;}.book-review{border-color:color-mix(in srgb,var(--rs-border-subtle) 76%,transparent);}.book-review-header{padding-bottom:.75rem;margin-bottom:1rem;border-bottom:1px solid var(--rs-border-subtle);}.book-review-user{font-size:1.02rem;}.book-review-rating{font-size:1.2rem;}.book-review-body p{margin-block:0 1em;}.book-review footer{margin-top:1rem;}

@media(max-width:760px){.book-hero{grid-template-columns:minmax(120px,32vw) minmax(0,1fr);gap:1.1rem;padding:.9rem;}.book-identity-copy{align-self:start;}.book-identity-copy h1{font-size:clamp(1.75rem,7vw,2.5rem);}.book-community-rating{margin-top:.8rem;}.book-genres{gap:.4rem;}.book-genre{min-height:2.65rem;}.book-reading{margin-top:.75rem;}.book-context-section{margin-top:3.75rem;}}
@media(max-width:520px){.book-hero{grid-template-columns:1fr;padding:1rem;}.book-cover{width:min(64vw,230px);margin:0 auto;}.book-identity-copy h1{max-width:none;}.book-community-rating{width:100%;justify-content:flex-start;}.book-facts>div{display:grid;grid-template-columns:minmax(7rem,8rem) minmax(0,1fr);gap:.75rem;}.book-series-navigation{grid-template-columns:1fr 1fr;}.book-series-navigation>a:last-child{text-align:right;}.book-cover-row{grid-auto-columns:minmax(108px,38vw);}.book-review-header{align-items:center;}}
@media(prefers-reduced-motion:reduce){.book-genre,.book-series-navigation>a,.book-cover-card img{transition:none;}.book-genre:hover,.book-series-navigation>a:hover,.book-cover-card:hover img{transform:none;}}

/* Book v2 1.0.1: Reading action information design. Interactive control visuals remain Design System owned. */
.book-section-kicker{display:block;margin-bottom:.2rem;font-size:.68rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--rs-text-muted);}
.book-reading-actions{margin-top:.85rem;}.book-reading-toggle{margin:0;}
.book-reading-edit-grid{display:grid;border-top:1px solid var(--rs-border-subtle);}
.book-reading-form{min-width:0;}.book-reading-form>div{display:flex;align-items:end;gap:.55rem;min-width:0;}.book-reading-form .rs-select,.book-reading-form .rs-input{min-height:44px;}.book-rating-form .rs-select,.book-reading-form>div>.rs-input{min-width:0;flex:1;}.book-reading-form>div>.rs-button{flex:0 0 auto;min-height:44px;}
.book-progress-title{display:block;margin-bottom:.55rem;}.book-progress-fields{justify-content:start;}.book-progress-fields .rs-field{gap:.35rem;}.book-progress-separator{align-self:end;display:flex;align-items:center;min-height:44px;padding-bottom:.55rem;color:var(--rs-text-muted);}.book-progress-save{margin-left:.15rem;}
.book-reading-error{margin:.8rem 0 0;padding:.7rem .85rem;border:1px solid var(--rs-border-default);border-radius:var(--rs-radius-md);}.book-reading-review-state{margin:.85rem 0 0;color:var(--rs-text-muted);font-size:.85rem;}
@media(max-width:720px){.book-reading-edit-grid{grid-template-columns:1fr;}.book-progress-form{grid-column:auto;}.book-reading-form>div{flex-wrap:wrap;}.book-rating-form .rs-select,.book-reading-form>div>.rs-input{flex:1 1 10rem;}.book-progress-fields{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;}.book-progress-save{grid-column:1/-1;margin-left:0;width:100%;}.book-reading-form .rs-button{min-height:44px;}}

/* Book v2 1.1.0: canonical Reading review editor hosted by Book. */
.book-own-review-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.65rem;}.book-own-review-head strong{font-size:1.05rem;}.book-review-editor>summary{list-style:none;width:max-content;cursor:pointer;}.book-review-editor>summary::-webkit-details-marker{display:none;}.book-review-editor[open]>summary{margin-bottom:1rem;}.book-review-editor-form{display:grid;gap:.7rem;}.bookshelf-rich-review{border:1px solid var(--rs-border-default);border-radius:var(--rs-radius-md);overflow:hidden;background:var(--rs-surface-1);}.bookshelf-rich-review-mode,.bookshelf-rich-review-toolbar{display:flex;align-items:center;gap:.35rem;padding:.45rem .55rem;border-bottom:1px solid var(--rs-border-subtle);}.bookshelf-rich-review-mode{justify-content:space-between;}.bookshelf-rich-review-mode-switch{display:flex;gap:.25rem;}.bookshelf-rich-review-mode button,.bookshelf-rich-review-toolbar button{min-height:36px;padding:.3rem .55rem;border:1px solid var(--rs-border-subtle);border-radius:var(--rs-radius-sm);background:transparent;color:var(--rs-text-primary);cursor:pointer;}.bookshelf-rich-review-mode button.is-active{background:var(--rs-surface-2);}.bookshelf-rich-review-toolbar-separator{width:1px;height:1.5rem;background:var(--rs-border-subtle);}.bookshelf-rich-review-area,.bookshelf-rich-review-preview{min-height:12rem;padding:1rem;line-height:1.65;outline:none;}.bookshelf-rich-review-area:focus{box-shadow:inset 0 0 0 2px var(--rs-border-strong);}.book-review-editor-meta{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;}.book-review-editor-meta .rs-field{max-width:14rem;}.book-review-legacy-spoiler{min-height:44px;display:flex;align-items:center;gap:.45rem;}.book-review-editor-actions{display:flex;justify-content:flex-end;gap:.55rem;}.book-review-delete{margin-top:.6rem;}.book-review-rating-required{margin:.4rem 0 0;color:var(--rs-text-muted);}.book-review-editor-fullscreen{position:fixed;z-index:1000;inset:1rem;display:flex;flex-direction:column;background:var(--rs-bg-page);box-shadow:0 20px 80px rgba(0,0,0,.55);}.book-review-editor-fullscreen .bookshelf-rich-review-area,.book-review-editor-fullscreen .bookshelf-rich-review-preview{flex:1;min-height:0;overflow:auto;}
@media(max-width:560px){.bookshelf-rich-review-mode{align-items:flex-start;gap:.5rem;}.bookshelf-rich-review-mode-switch{flex-wrap:wrap;}.bookshelf-rich-review-area,.bookshelf-rich-review-preview{min-height:10rem;}.book-review-editor-meta .rs-field{max-width:none;width:100%;}.book-review-editor-actions .rs-button,.book-review-delete .rs-button{width:100%;}}

/* 1.2.2 Reading Experience: direct 10-star rating; one star equals one Risingshadow point. */
.book-star-fieldset{margin:0;padding:0;border:0;}.book-star-rating{display:inline-flex;align-items:center;}.book-star-rating input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none;}.book-star-rating label{display:grid;place-items:center;margin:0;color:var(--rs-text-muted);line-height:1;cursor:pointer;border-radius:var(--rs-radius-sm);transition:color var(--rs-transition-fast),transform var(--rs-transition-fast),background var(--rs-transition-fast);}.book-star-rating label:hover{transform:translateY(-1px);}.book-star-rating label.is-preview{color:#d6a928;}.book-star-rating input:focus-visible+label{outline:2px solid var(--rs-border-strong);outline-offset:2px;background:var(--rs-surface-2);}.book-star-rating-meta{display:flex!important;align-items:center!important;gap:.75rem!important;}.book-star-rating-meta output{color:var(--rs-text-secondary);font-weight:var(--rs-weight-semibold);}
.book-reading-collections{border-top:1px solid var(--rs-border-subtle);}.book-reading-collections>summary{display:flex;align-items:center;gap:.5rem;width:max-content;min-height:44px;cursor:pointer;font-weight:var(--rs-weight-semibold);list-style:none;}.book-reading-collections>summary::-webkit-details-marker{display:none;}.book-reading-collections>summary:after{content:"›";transform:rotate(90deg);transition:transform .15s ease;}.book-reading-collections[open]>summary:after{transform:rotate(-90deg);}.book-reading-collections>summary small{display:inline-grid;place-items:center;min-width:1.4rem;height:1.4rem;border-radius:999px;background:var(--rs-surface-2);color:var(--rs-text-secondary);}.book-reading-collection-list{display:flex;flex-wrap:wrap;gap:.5rem;padding:.5rem 0 .15rem;}.book-reading-collection-list form{margin:0;}.book-reading-collection-list .rs-button{min-height:40px;}.rs-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
@media(max-width:560px){.book-star-rating-meta{align-items:stretch!important;flex-wrap:wrap;}.book-star-rating-meta .rs-button{width:100%;}}

/* 1.3.0 Book Experience concept pass: information hierarchy first, implementation second. */
.rs-book-page{max-width:1180px;}.book-hero{border:0;box-shadow:none;}.book-cover{justify-self:center;}.book-identity-copy h1{max-width:15ch;}.book-authors a,.book-series a{color:inherit;}.book-community-rating{border:0;background:color-mix(in srgb,var(--rs-surface-2) 82%,transparent);box-shadow:inset 0 0 0 1px var(--rs-border-subtle);}

.book-reading{display:grid;grid-template-columns:minmax(0,1fr);max-width:100%;margin-top:1rem;padding:1.15rem 1.25rem;border-radius:1rem;background:linear-gradient(135deg,color-mix(in srgb,var(--rs-surface-1) 92%,transparent),color-mix(in srgb,var(--rs-surface-2) 48%,transparent));}.book-reading .book-section-heading{align-items:center;}.book-reading-toggle .rs-button{min-height:40px;padding:.35rem .75rem;}.book-reading-edit-grid{gap:1rem 2rem;}.book-rating-form{grid-column:auto;}.book-star-rating{gap:.08rem;}.book-star-rating-meta{margin-top:.15rem!important;}.book-star-rating-meta small{color:var(--rs-text-muted);font-size:.75rem;}.book-progress-form{grid-column:1/-1;}.book-progress-fields{grid-template-columns:minmax(6rem,8rem) auto minmax(6rem,8rem) auto;}.book-reading-collections{margin-top:.75rem;padding-top:.75rem;}
.book-description{margin-left:0;margin-right:0;padding-left:clamp(.25rem,2vw,1rem);}.book-description-content{color:color-mix(in srgb,var(--rs-text-primary) 90%,var(--rs-text-secondary));}
.book-community-pulse{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(3,minmax(105px,.55fr));gap:.75rem;align-items:stretch;margin:clamp(3rem,7vw,5rem) 0 0;border-radius:1.1rem;}.book-pulse-copy{padding:.45rem .55rem;}.book-pulse-copy>strong{display:block;}.book-pulse-copy p{max-width:34rem;margin:.3rem 0 0;color:var(--rs-text-secondary);font-size:.9rem;}.book-pulse-stat{display:flex;flex-wrap:wrap;align-content:center;align-items:baseline;justify-content:center;gap:.2rem;padding:.8rem;text-align:center;}.book-pulse-stat strong{letter-spacing:-.03em;}.book-pulse-stat>span{color:var(--rs-text-secondary);font-weight:700;}.book-pulse-stat small{flex-basis:100%;color:var(--rs-text-muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;}
.book-cover-row{grid-auto-columns:minmax(135px,175px);gap:1.2rem;}.book-cover-card img{border-radius:.65rem;}.book-cover-card-copy strong{font-size:.95rem;}.book-series-journey .book-cover-card.is-current{padding:.35rem;border-radius:.8rem;background:color-mix(in srgb,var(--rs-surface-2) 55%,transparent);}.book-series-journey .book-cover-card.is-current img{outline:none;}.book-author-context{max-width:100%;}.book-author-description{font-size:1.05rem;}.book-review-list{display:grid;grid-template-columns:1fr;align-items:start;}.book-review-body{font-size:.98rem;line-height:1.72;}
@media(max-width:800px){.book-community-pulse{grid-template-columns:repeat(3,1fr);}.book-pulse-copy{grid-column:1/-1;}.book-review-list{grid-template-columns:1fr;}.book-reading-edit-grid{grid-template-columns:1fr;}.book-rating-form{grid-column:1/-1;}}
@media(max-width:560px){.book-hero{padding:1rem;}.book-community-pulse{grid-template-columns:1fr 1fr;}.book-pulse-copy{grid-column:1/-1;}.book-pulse-stat:first-of-type{grid-column:1/-1;}.book-star-rating{gap:0;}.book-star-rating label{width:1.65rem;height:1.9rem;font-size:1.48rem;}.book-reading{padding:1rem;}.book-progress-fields{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;}.book-context-section{margin-top:4.5rem;}}

/* Book Experience 1.4: guest-first editorial prototype */
.book-hero{grid-template-columns:minmax(210px,280px) minmax(0,1fr);align-items:center;min-height:470px;padding:clamp(1.5rem,4vw,3.6rem);background:radial-gradient(circle at 15% 35%,color-mix(in srgb,var(--rs-surface-2) 92%,transparent),transparent 34%),linear-gradient(135deg,color-mix(in srgb,var(--rs-surface-1) 80%,transparent),transparent 72%);}
.book-cover{max-width:270px;}.book-cover img{border-radius:.7rem;box-shadow:0 34px 90px rgba(0,0,0,.48);}
.book-series{margin-bottom:.75rem;text-transform:uppercase;letter-spacing:.055em;font-size:.78rem;}.book-identity-copy h1{margin-bottom:.55rem;font-size:clamp(2.8rem,6.5vw,4.8rem);line-height:.98;letter-spacing:-.045em;}.book-authors{margin-bottom:1.15rem;font-size:1.12rem;}.book-community-rating{margin-top:.2rem;}.book-facts{max-width:34rem;margin-top:1.25rem;}.book-facts>div{padding:.6rem 0;}.book-facts dt{color:var(--rs-text-muted);}

.book-overview-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:clamp(2rem,6vw,5.5rem);align-items:start;margin-top:clamp(2.5rem,6vw,5rem);}
.book-overview-main,.book-overview-side{min-width:0;}.book-description{max-width:760px;margin:0;padding:0;}.book-description .book-section-kicker{display:block;margin-bottom:.4rem;}.book-description h2{margin:0 0 1.25rem;font-size:clamp(2rem,4vw,2.75rem);line-height:1.05;}.book-description-content{font-size:clamp(1.02rem,1.55vw,1.12rem);line-height:1.84;}
.book-overview-side{position:sticky;top:5.25rem;}.book-reading,.book-guest-reading{margin:0;padding:1.25rem;border:1px solid var(--rs-border-subtle);border-radius:1.1rem;background:linear-gradient(145deg,color-mix(in srgb,var(--rs-surface-1) 88%,transparent),color-mix(in srgb,var(--rs-surface-2) 42%,transparent));box-shadow:0 18px 55px rgba(0,0,0,.09);}
.book-reading .book-section-heading{margin-bottom:.8rem;}.book-reading-actions{gap:.4rem;}.book-reading-actions .rs-button{min-height:38px;padding:.42rem .68rem;font-size:.84rem;}.book-reading-edit-grid{margin-top:1rem;padding-top:1rem;}.book-star-rating label{height:1.9rem;font-size:1.45rem;}.book-star-rating-meta{margin-top:.25rem;}.book-progress-fields{gap:.4rem;}
.book-guest-reading .book-section-kicker{display:block;margin-bottom:.35rem;}.book-guest-reading h2{margin:.1rem 0 .65rem;font-size:1.55rem;line-height:1.12;}.book-guest-reading>p{margin:.4rem 0;color:var(--rs-text-secondary);line-height:1.55;}.book-guest-stars{margin:1.1rem 0 .2rem;color:var(--rs-text-secondary);font-size:clamp(1.45rem,2.7vw,1.8rem);letter-spacing:.04em;white-space:nowrap;}.book-guest-intent{font-weight:650;color:var(--rs-text-primary)!important;}.book-guest-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem;}.book-guest-reading>small{display:block;margin-top:.8rem;color:var(--rs-text-muted);line-height:1.45;}
.book-community-pulse{margin-top:clamp(4rem,9vw,7rem);padding:clamp(1.15rem,3vw,1.6rem);border:0;background:linear-gradient(120deg,color-mix(in srgb,var(--rs-surface-1) 72%,transparent),color-mix(in srgb,var(--rs-surface-2) 28%,transparent));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rs-border-subtle) 75%,transparent);}.book-pulse-copy>strong{font-size:1.4rem;}.book-pulse-stat{background:transparent;border-left:1px solid var(--rs-border-subtle);border-radius:0;}.book-pulse-stat strong{font-size:2rem;}
.book-series-sequence{display:grid;grid-template-columns:1fr minmax(180px,.85fr) 1fr;gap:.75rem;margin:0 0 1.4rem;}.book-series-sequence>a,.book-series-sequence>div{display:flex;flex-direction:column;justify-content:center;min-height:74px;padding:.8rem 1rem;border-radius:.8rem;background:color-mix(in srgb,var(--rs-surface-1) 52%,transparent);text-decoration:none;}.book-series-sequence>div{text-align:center;background:color-mix(in srgb,var(--rs-surface-2) 65%,transparent);}.book-series-sequence>a:last-child{text-align:right;}.book-series-sequence small{margin-bottom:.2rem;color:var(--rs-text-muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.045em;}.book-series-sequence strong{font-size:.9rem;line-height:1.3;}
.book-context-heading{border-bottom:0;padding-bottom:.2rem;}.book-context-heading h2{font-size:clamp(1.9rem,4vw,2.65rem);}.book-cover-row{padding-top:.35rem;}
@media(max-width:900px){.book-overview-layout{grid-template-columns:1fr;gap:2.5rem;}.book-overview-side{position:static;}.book-reading,.book-guest-reading{max-width:none;}.book-community-pulse{grid-template-columns:repeat(3,1fr);}.book-pulse-copy{grid-column:1/-1;}.book-series-sequence{grid-template-columns:1fr 1fr;}.book-series-sequence>div{grid-column:1/-1;grid-row:1;}.book-hero{grid-template-columns:minmax(150px,30vw) minmax(0,1fr);min-height:0;}}
@media(max-width:600px){.book-pulse-stat:first-of-type{grid-column:1/-1;}.book-pulse-stat{border-left:0;border-top:1px solid var(--rs-border-subtle);}.book-series-sequence{grid-template-columns:1fr;}.book-series-sequence>div{grid-column:auto;}.book-series-sequence>a:last-child{text-align:left;}}

/* Book Experience 1.5: landing-page actions, commerce hierarchy and mobile-first exploration. */
.book-get{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(0,1.5fr);gap:clamp(1rem,3vw,2.5rem);align-items:center;margin-top:1rem;padding:1rem 1.15rem;border-block:1px solid var(--rs-border-subtle);}
.book-get-copy{display:flex;flex-direction:column;gap:.18rem;}.book-get-copy>strong{font-size:1.05rem;}.book-get-copy>small{color:var(--rs-text-muted);line-height:1.35;}.book-get-options{display:flex;align-items:stretch;justify-content:flex-end;gap:.55rem;min-width:0;}.book-get-option,.book-get-more{display:flex;flex-direction:column;justify-content:center;min-width:118px;min-height:54px;padding:.55rem .8rem;border:1px solid var(--rs-border-default);border-radius:.75rem;background:color-mix(in srgb,var(--rs-surface-1) 72%,transparent);color:var(--rs-text-primary);text-decoration:none;text-align:left;}.book-get-option>span{font-weight:700;}.book-get-option small{margin-top:.08rem;color:var(--rs-text-muted);font-size:.72rem;}.book-get-option[href]:hover{border-color:var(--rs-border-strong);background:var(--rs-surface-2);transform:translateY(-1px);}.book-get-option.is-prototype{opacity:.86;}.book-get-more{min-width:auto;flex-direction:row;align-items:center;gap:.45rem;color:var(--rs-text-secondary);font-weight:650;}.book-get-more:disabled{opacity:.78;cursor:default;}
.book-community-next{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;margin-top:.75rem;padding:.85rem 1rem;border-bottom:1px solid var(--rs-border-subtle);}.book-community-next>div:first-child{display:flex;flex-direction:column;gap:.15rem;}.book-community-next>div:first-child span{color:var(--rs-text-secondary);font-size:.88rem;}.book-community-next-actions{display:flex;align-items:center;justify-content:flex-end;gap:.6rem;flex-wrap:wrap;}.book-community-discussion-placeholder{color:var(--rs-text-muted);font-size:.8rem;font-style:italic;}

.book-cover-row{scrollbar-width:thin;scroll-padding-inline:.1rem;}.book-cover-row::after{content:"";width:.1px;}.book-cover-card{transition:opacity var(--rs-transition-normal);}
@media(max-width:900px){.book-get{grid-template-columns:1fr;}.book-get-options{justify-content:flex-start;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:.25rem;}.book-get-option,.book-get-more{flex:0 0 auto;scroll-snap-align:start;}.book-community-next{align-items:flex-start;}.book-community-next-actions{justify-content:flex-start;}}
@media(max-width:600px){.book-series{margin-top:.2rem;}.book-community-rating{margin-bottom:.85rem;}.book-genres{overflow-x:auto;padding-bottom:.25rem;scrollbar-width:none;}.book-genres::-webkit-scrollbar{display:none;}.book-get{margin-inline:-.15rem;padding-inline:.15rem;border-top:0;}.book-get-copy>small{max-width:26rem;}.book-get-options{padding-inline:.15rem;}.book-get-option{min-width:132px;}.book-overview-side{margin-inline:-.1rem;}.book-community-pulse{margin-inline:-.1rem;}.book-community-next{display:grid;padding-inline:.2rem;}.book-community-next-actions{justify-content:flex-start;}.book-author-context{margin-inline:-.15rem;padding-inline:.95rem;}.book-review-list{gap:.7rem;}}
@media(max-width:390px){.book-get-option{min-width:122px;}.book-reading-actions .rs-button{padding-inline:.58rem;}}

/* 1.6.0 Responsive & edge-case pass: preserve identity and exploration on narrow screens. */
.book-overview-layout.is-single{grid-template-columns:minmax(0,1fr);}
.book-overview-layout.is-single .book-overview-side{max-width:420px;}
.book-identity-copy,.book-authors,.book-series,.book-facts dd{min-width:0;overflow-wrap:anywhere;}
.book-context-heading>div{min-width:0;}.book-context-heading h2,.book-context-heading a{overflow-wrap:anywhere;}
.book-series-sequence>a,.book-series-sequence>div{min-width:0;}.book-series-sequence strong{overflow-wrap:anywhere;}
.book-cover-card-copy{min-width:0;}.book-cover-card-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
@media(max-width:600px){
  
  .book-hero{align-items:start;}
  
  .book-cover img{border-radius:.55rem;box-shadow:0 16px 38px rgba(0,0,0,.36);}
  .book-identity-copy{padding-top:0;}
  .book-series{text-transform:uppercase;letter-spacing:.035em;}
  
  
  
  .book-community-rating>strong{font-size:1.2rem;}.book-community-rating>div>span{font-size:.72rem;}.book-community-rating small{font-size:.68rem;}
  
  .book-facts{margin-top:.65rem;}
  .book-get{padding-top:.75rem;padding-bottom:.85rem;}
  
  
  
  .book-description{padding-left:0;}
  
  .book-community-next{margin-top:.45rem;}
  
  .book-context-heading>a{flex:0 0 auto;max-width:45%;text-align:right;}
  .book-series-sequence{display:flex;overflow-x:auto;gap:.55rem;padding-bottom:.25rem;scroll-snap-type:x mandatory;scrollbar-width:none;}
  .book-series-sequence::-webkit-scrollbar{display:none;}
  .book-series-sequence>a,.book-series-sequence>div{flex:0 0 min(78vw,290px);scroll-snap-align:start;}
  .book-series-sequence>div{order:-1;}
  
  .book-author-context{padding-block:1.2rem;}
  .book-review-body{line-height:1.65;}
}
@media(max-width:390px){
  
  
  .book-community-rating>div>span{display:none;}
  .book-community-rating{gap:.35rem;}
  
}

/* 1.7.0 Mobile experience refinement: density, hierarchy and intentional discovery. */
.book-author-more{display:inline-flex;align-items:center;min-height:var(--rs-touch-target);margin-top:.25rem;font-weight:700;text-decoration:none;}
@media(max-width:600px){
  /* Keep cover + identity together, but let secondary metadata use the full viewport width. */
  
  
  
  .book-series,.book-identity-copy h1,.book-subtitle,.book-authors,.book-community-rating{grid-column:2;margin-left:0;margin-right:0;}
  .book-series{margin-bottom:0;}
  
  
  
  .book-genres,.book-facts{grid-column:1/-1;}
  
  
  
  
  

  /* Commerce is an action strip, not another discovery rail. */
  .book-get{gap:.7rem;margin-top:.35rem;padding:.75rem .15rem .85rem;}
  .book-get-copy{gap:.1rem;}.book-get-copy>strong{font-size:1rem;}.book-get-copy>small{font-size:.78rem;}
  .book-get-options{gap:.45rem;margin-inline:0;padding:0 .75rem 0 0;}
  .book-get-option,.book-get-more{min-width:108px;min-height:46px;padding:.42rem .62rem;border-radius:.65rem;}
  .book-get-option>span{font-size:.86rem;}.book-get-option small{font-size:.66rem;}

  /* Clearly scrollable page navigation without pretending to be tabs. */
  
  

  /* Mobile reading copy should read like a book page, not a desktop editorial spread. */
  
  
  
  

  /* Community evidence stays visible but no longer consumes a viewport. */
  .book-community-pulse{display:grid;}
  
  
  
  
  
  .book-community-next{gap:.7rem;padding:.7rem .15rem .85rem;}.book-community-next>div:first-child span{font-size:.82rem;}

  /* Current context is already obvious; keep series navigation compact and let covers lead. */
  .book-series-sequence{margin-bottom:.9rem;}
  .book-series-sequence>a,.book-series-sequence>div{flex-basis:min(68vw,235px);min-height:58px;padding:.55rem .7rem;}
  .book-series-sequence>div{display:none;}
  .book-series-sequence small{font-size:.62rem;}.book-series-sequence strong{font-size:.78rem;}

  /* Author is a teaser on Book; the Author page owns the biography. */
  
  .book-author-context .book-context-heading{margin-bottom:.65rem;}
  .book-author-context .book-context-heading h2{font-size:clamp(1.7rem,8vw,2.15rem);}
  .book-author-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;margin:.35rem 0 0;font-size:.95rem;line-height:1.55;}
  .book-author-more{min-height:38px;margin-top:.15rem;font-size:.86rem;}
  .book-author-context h3{margin:1.15rem 0 .65rem;font-size:1.1rem;}
}
@media(max-width:390px){
  .book-hero{grid-template-columns:minmax(94px,30vw) minmax(0,1fr);gap:.7rem .8rem;}
  .book-cover{max-width:145px;}
  
  .book-community-rating>strong{font-size:1.05rem;}
  
  .book-get-option,.book-get-more{min-width:102px;}
}

/* 1.8.0 Personal context refinement: Book remains the primary mobile experience. */
.book-reading-mobile-summary{display:none;}
@media(max-width:900px){
  .book-overview-side{order:initial;}
}
@media(max-width:600px){
  
  .book-reading-mobile-summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1.35rem;padding:.7rem .8rem;border:1px solid color-mix(in srgb,var(--rs-border-subtle) 82%,transparent);background:color-mix(in srgb,var(--rs-surface-1) 56%,transparent);color:var(--rs-text-primary);text-decoration:none;}
  .book-reading-mobile-copy{display:flex;flex-direction:column;min-width:0;gap:.1rem;}.book-reading-mobile-copy small{color:var(--rs-text-muted);font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;}.book-reading-mobile-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem;}
  .book-reading-mobile-signal{display:grid;place-items:center;flex:0 0 auto;min-width:3rem;min-height:2rem;padding:.2rem .5rem;border-radius:.55rem;background:var(--rs-surface-2);font-size:.8rem;}
  .book-overview-side{margin-top:.25rem;}
  .book-reading{padding:.9rem .85rem;}
  .book-reading .book-section-heading h2{font-size:1.2rem;}.book-reading .book-section-kicker{font-size:.62rem;}
  .book-reading-actions{margin-top:.55rem;}.book-reading-actions .rs-button{padding:.3rem .55rem;font-size:.76rem;}
  
  .book-star-rating label{height:1.7rem;}.book-star-rating-meta{gap:.5rem!important;}.book-star-rating-meta output{min-width:5.2rem;font-size:.8rem;}.book-star-rating-meta small{font-size:.68rem;}
  .book-progress-form .rs-label{font-size:.78rem;}.book-progress-fields{gap:.35rem!important;}.book-progress-fields label>span{font-size:.7rem;}.book-progress-fields .rs-input{min-height:40px;padding:.4rem .55rem;}.book-progress-save{grid-column:1/-1;min-height:40px!important;margin-top:.15rem;}
  .book-reading-progress{height:.35rem;margin-top:.65rem;}.book-reading>small{font-size:.7rem;}
  .book-own-review{margin-top:.75rem;padding-top:.75rem;}.book-own-review-head strong{font-size:.95rem;}.book-own-review .book-section-kicker{font-size:.6rem;}
}
@media(max-width:390px){
  .book-star-rating label{width:1.38rem;font-size:1.22rem;}
}


/* 1.9 Reviews: shared Rating/Date presentation, calmer single-column reading flow. */
.book-reader-reviews{max-width:58rem;}

.book-review-score{flex:0 0 auto;white-space:nowrap;}
.book-review-score .rs-rating{margin:0;}
@media(max-width:560px){
  .book-review-header{align-items:flex-start;}
  .book-review-score{margin-top:.05rem;}
}

/* Book Page v2 2.0.0: entity-local navigation and focused views. */




.book-rating-distribution-bars{display:grid;}
.book-rating-distribution-row{display:grid;align-items:center;}
.book-rating-distribution-row>span,.book-rating-distribution-row>strong{font-variant-numeric:tabular-nums;}
.book-rating-distribution-row>div{height:.65rem;overflow:hidden;border-radius:999px;background:var(--rs-surface-2);}
.book-rating-distribution-row i{display:block;height:100%;border-radius:inherit;background:var(--rs-accent);}
.book-empty-view{min-height:18rem;display:flex;flex-direction:column;justify-content:center;}


/* Book Page v2 2.2.0: deep Book-context views for Series and Author. */
.book-entity-detail{max-width:72rem;}
.book-entity-detail>h2{margin:.2rem 0 .65rem;font-size:clamp(2rem,4vw,3rem);line-height:1.05;}
.book-entity-original{margin:.2rem 0;color:var(--rs-text-muted);font-size:.9rem;}
.book-entity-description{max-width:62rem;margin-top:1.25rem;font-size:1rem;line-height:1.72;}
.book-entity-description>p:first-child{font-size:1.08rem;}
.book-entity-stats{display:flex;flex-wrap:wrap;gap:.65rem;margin:1.5rem 0 0;}
.book-entity-stats>div{min-width:9rem;padding:.75rem .9rem;border:1px solid var(--rs-border-subtle);border-radius:.75rem;background:var(--rs-surface-1);}
.book-entity-stats dt{color:var(--rs-text-muted);font-size:.68rem;font-weight:750;letter-spacing:.055em;text-transform:uppercase;}
.book-entity-stats dd{margin:.18rem 0 0;font-size:1.15rem;font-weight:750;}
.book-author-detail+.book-author-detail{margin-top:2rem;}

.book-author-series h3,.book-author-bibliography h3{margin:0 0 .9rem;}
.book-entity-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.65rem;}
.book-entity-link-grid>a{display:flex;flex-direction:column;justify-content:center;min-height:4.5rem;padding:.75rem .9rem;border:1px solid var(--rs-border-subtle);border-radius:.75rem;background:var(--rs-surface-1);color:var(--rs-text-primary);text-decoration:none;}
.book-entity-link-grid>a:hover{background:var(--rs-surface-2);}
.book-entity-link-grid small{margin-top:.18rem;color:var(--rs-text-muted);}
.book-author-interview{margin-top:1.5rem;}
@media(max-width:600px){
  .book-entity-detail{padding-inline:.85rem;}
  .book-entity-detail>h2{font-size:2rem;}
  .book-entity-description{font-size:.96rem;line-height:1.62;}
  .book-entity-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .book-entity-stats>div{min-width:0;}
  .book-entity-link-grid{grid-template-columns:1fr;}
}

/* 2.3.0: Reader feedback clarity, visible distribution bars and compact Overview review teaser. */


.book-rating-distribution-row{grid-template-columns:2rem minmax(0,1fr) 2.5rem;gap:.8rem;}
.book-rating-distribution-row>span{color:var(--rs-text-secondary);font-weight:600;}
.book-rating-distribution-row>strong{color:var(--rs-text-primary);font-weight:650;}
.book-rating-distribution-row>.book-rating-distribution-track{overflow:hidden;border-radius:999px;background:var(--rs-surface-2);box-shadow:inset 0 0 0 1px var(--rs-border-subtle);}
.book-rating-distribution-row>.book-rating-distribution-track>i{display:block;min-width:0;height:100%;border-radius:inherit;}
.book-rating-distribution-row>.book-rating-distribution-track>i[style*="width:0.00%"]{min-width:0;}

.book-reader-reviews.is-teaser{max-width:64rem;}

.book-review-teaser-head{display:flex;gap:1rem;border-bottom:1px solid var(--rs-border-subtle);}
.book-review-teaser-head>div{display:grid;gap:.2rem;min-width:0;}.book-review-teaser-head time{display:block;color:var(--rs-text-muted);font-size:.76rem;}
.book-review-teaser-excerpt{max-width:78ch;color:var(--rs-text-secondary);font-size:1rem;line-height:1.65;}
.book-review-teaser-spoiler{margin:1rem 0 .7rem;color:var(--rs-text-muted);font-size:.9rem;}
.book-review-teaser-read{display:inline-flex;font-size:.82rem;font-weight:650;text-decoration:none;}
.book-review-teaser-read:hover,.book-review-teaser-read:focus-visible{text-decoration:none;}

.book-review-staff-signal{flex-wrap:wrap;line-height:1.4;}

.book-review-staff-signal b{color:var(--rs-text-primary);font-weight:700;}

@media(max-width:600px){
  .book-rating-distribution-row{grid-template-columns:1.6rem minmax(0,1fr) 2rem;gap:.55rem;}
  .book-review-teaser{padding:1rem;}
  
  .book-review-teaser-excerpt{font-size:.94rem;}
}

/* 2.4.0 Book navigation + shared visual language refinement. */
.book-hero{scroll-margin-top:4.75rem;}
.book-hero-series-nav{grid-column:1/-1;padding-bottom:.85rem;border-bottom:1px solid var(--rs-border-subtle);}
.book-hero-series-nav>a{display:flex;flex-direction:column;min-width:0;color:var(--rs-text-secondary);text-decoration:none;}
.book-hero-series-nav>a.is-next{text-align:right;align-items:flex-end;}.book-hero-series-nav small{color:var(--rs-text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.055em;}.book-hero-series-nav strong{max-width:28ch;margin-top:.18rem;color:var(--rs-text-primary);line-height:1.25;overflow-wrap:anywhere;}.book-hero-series-nav span{margin-top:.1rem;color:var(--rs-text-muted);}
.book-hero-series-nav>a:hover strong,.book-hero-series-nav>a:focus-visible strong{text-decoration:underline;}
.book-view-anchor{height:1px;scroll-margin-top:4.5rem;}

.book-community-rating{align-items:center;border:0;background:transparent;box-shadow:none;}.book-community-rating>.rs-rating{font-size:1rem;}.book-community-rating>.rs-rating .rs-rating__stars{font-size:1.12rem;}.book-community-rating>.rs-rating .rs-rating__value{font-size:.9rem;}
.book-rating-distribution-row>.book-rating-distribution-track>i{background:linear-gradient(90deg,rgba(79,129,181,.72),rgba(112,177,235,.92));box-shadow:0 0 12px rgba(90,157,220,.08);}

.book-review-teaser{max-width:64rem;padding:1.1rem 0 1.1rem 1.35rem;border:0;border-left:3px solid var(--rs-border-strong);border-radius:0;background:transparent;}.book-review-teaser-head{padding-bottom:.45rem;border:0;}.book-review-teaser-excerpt{margin:.65rem 0 .45rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}.book-review-teaser-read{min-height:2.25rem;align-items:center;}
.book-series-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;}.book-series-card{display:block;min-width:0;overflow:hidden;border:1px solid var(--rs-border-default);border-radius:var(--rs-radius-lg);background:var(--rs-surface-1);color:inherit;text-decoration:none;}.book-series-card:hover,.book-series-card:focus-visible{border-color:var(--rs-border-strong);text-decoration:none;}.book-series-card-covers{display:grid;grid-template-columns:repeat(4,1fr);height:112px;overflow:hidden;background:var(--rs-surface-2);}.book-series-card-covers img,.book-series-card-covers i{display:block;width:100%;height:100%;object-fit:cover;background:linear-gradient(145deg,var(--rs-surface-2),var(--rs-bg-page));}.book-series-card-copy{display:flex;flex-direction:column;padding:.9rem 1rem 1rem;}.book-series-card-copy>small{color:var(--rs-text-muted);font-size:.66rem;font-weight:650;letter-spacing:.09em;text-transform:uppercase;}.book-series-card-copy>strong{margin:.28rem 0 .4rem;font-size:1rem;line-height:1.3;}.book-series-card-copy>span{color:var(--rs-text-muted);font-size:.78rem;}
@media(max-width:800px){.book-series-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.book-hero{scroll-margin-top:4rem;}.book-hero-series-nav{padding-bottom:.7rem;}.book-series-card-grid{grid-template-columns:1fr;}.book-series-card-covers{height:100px;}.book-community-rating>.rs-rating{font-size:.88rem;}}
.book-pulse-rating>.rs-rating{flex-direction:column;gap:.4rem;}.book-pulse-rating .rs-rating__stars{font-size:1.05rem;}.book-pulse-rating .rs-rating__value{font-size:.9rem;}.book-pulse-rating>small{flex-basis:auto;}

/* Book v2 2.5.0: calmer reader stream, compact author teaser, canonical series browse. */
.book-review-list{gap:0;}
.book-review{padding:1.55rem 0;border:0;border-top:1px solid var(--rs-border-subtle);border-radius:0;background:transparent;}

.book-review-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:0;background:transparent;border:0;}
.book-review-byline{display:grid;gap:.18rem;min-width:0;}.book-review-byline time{color:var(--rs-text-muted);font-size:.76rem;}
.book-review-body{max-width:82ch;margin-top:1rem;color:var(--rs-text-secondary);}
.book-review-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.65rem 1rem;margin-top:1rem;padding-top:.8rem;border-top:1px solid color-mix(in srgb,var(--rs-border-subtle) 65%,transparent);}

.book-review-vote-button{display:inline-grid;place-items:center;width:2.25rem;height:2.25rem;min-width:2.25rem;padding:0;border-radius:999px;font:700 1.05rem/1 inherit;cursor:pointer;}

.book-review-vote-login{display:inline-flex;align-items:center;min-height:2.25rem;color:var(--rs-text-muted);font-size:.74rem;font-weight:650;text-decoration:none;}
.book-review-staff-signal strong{border-radius:.35rem;}.book-review-staff-signal span{color:var(--rs-text-muted);}
.book-author-context{display:grid;gap:1.25rem;align-items:start;padding:1.35rem 0;background:transparent;border:0;border-top:1px solid var(--rs-border-subtle);border-bottom:1px solid var(--rs-border-subtle);border-radius:0;}
.book-author-teaser-media{width:104px;aspect-ratio:1/1;overflow:hidden;border-radius:var(--rs-radius-lg);background:var(--rs-surface-2);}.book-author-teaser-media img{width:100%;height:100%;object-fit:cover;}
.book-author-teaser-copy{min-width:0;}.book-author-teaser-copy h2{margin:.2rem 0 .35rem;font-size:clamp(1.45rem,3vw,2rem);}.book-author-teaser-copy .book-author-description{max-width:72ch;margin:.25rem 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}.book-author-teaser-copy .book-author-more{margin-top:.35rem;}
.book-series-journey.is-teaser .book-series-sequence{display:none;}
@media(max-width:600px){.book-review{padding:1.2rem 0;}.book-review-header{gap:.65rem;}.book-review-footer{align-items:flex-start;flex-direction:column;}.book-review-vote-button{width:2.5rem;height:2.5rem;}.book-author-context{gap:.9rem;padding:1.1rem 0;}.book-author-teaser-media{width:76px;}.book-author-teaser-copy .book-author-description{-webkit-line-clamp:4;}}


/* Book v2 2.6.0: interaction + visual consolidation */
.book-hero{position:relative;}
.book-hero-series-nav{position:absolute;z-index:2;top:1rem;left:1.25rem;right:1.25rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;margin:0;padding:0;border:0;pointer-events:none;}
.book-hero-series-nav>a{pointer-events:auto;width:max-content;max-width:min(28ch,42%);padding:.25rem .1rem;background:transparent;}
.book-hero-series-nav>a.is-next{justify-self:end;}.book-hero-series-nav small{font-size:.64rem;}.book-hero-series-nav strong{font-size:.82rem;}.book-hero-series-nav span{font-size:.65rem;}
.book-genres{gap:.4rem;}.book-genre.rs-genre{min-height:0;padding:.28rem .62rem;border-radius:999px;font-size:.76rem;font-weight:650;}
.book-reading [data-book-reading-ajax].has-error{outline-offset:3px;}
.book-read-date-form>div{display:block;}.book-read-date-form .rs-input{max-width:12rem;}
.book-review-edit-link{display:inline-flex;align-items:center;min-height:2.25rem;padding:0;border:0;background:transparent;color:var(--rs-link);font:inherit;font-size:.82rem;font-weight:650;cursor:pointer;list-style:none;}.book-review-edit-link::-webkit-details-marker{display:none;}
.book-review-person,.book-review-byline{display:flex;gap:.7rem;min-width:0;}.book-review-person>span,.book-review-byline>span{display:grid;min-width:0;}
.book-review-avatar{width:2.35rem;height:2.35rem;flex:0 0 2.35rem;border-radius:50%;object-fit:cover;background:var(--rs-surface-2);}
.book-review{border-bottom:1px solid var(--rs-border-subtle);}.book-review:last-child{border-bottom:0;}
.book-review-teaser{border-left-width:2px;}
@media(max-width:600px){.book-genre.rs-genre{padding:.22rem .52rem;font-size:.72rem;}.book-review-avatar{width:2rem;height:2rem;flex-basis:2rem;}}

/* Book v2 2.7.0: commerce v2, calmer Reading Card, modal reviews, series cleanup. */
.book-purchase{grid-template-columns:minmax(220px,.8fr) minmax(0,2fr);gap:2rem;align-items:start;border-top:1px solid var(--rs-border-subtle);border-bottom:1px solid var(--rs-border-subtle);}
.book-purchase-intro{flex-direction:column;gap:.28rem;}.book-purchase-intro>small{line-height:1.45;}
.book-purchase-group{display:grid;}

.book-reading .book-section-heading>p{display:none;}.book-reading-edit-grid{grid-template-columns:1fr;}.book-rating-form,.book-read-date-form,.book-progress-form{min-width:0;}.book-star-fieldset{min-width:0;}.book-star-rating{max-width:100%;}.book-star-rating label{width:1.42rem;}.book-read-date-form{display:grid;grid-template-columns:1fr;gap:.35rem;}.book-read-date-form .rs-input{width:100%;box-sizing:border-box;}
.book-own-review{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--rs-border-subtle);}.book-review-modal-open{margin-top:.45rem;padding:0;border:0;background:none;color:var(--rs-text-link,var(--rs-accent));font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;}.book-review-modal-open:hover{text-decoration:underline;}
.book-review-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-width:760px;margin:auto;padding:0!important;border:1px solid var(--rs-border-strong);border-radius:14px;background:var(--rs-surface-raised);color:var(--rs-text-primary);overflow:hidden;}.book-review-dialog::backdrop{background:rgba(0,0,0,.7);backdrop-filter:blur(2px);}.book-review-dialog-shell{max-height:min(88vh,900px);overflow:auto;}.book-review-dialog-head{display:flex;justify-content:space-between;gap:1rem;padding:18px 20px 16px;border-bottom:1px solid var(--rs-border-default);}.book-review-dialog-head h2{margin:.2rem 0 0;font-size:1.15rem;}.book-review-dialog-head p{margin:.2rem 0 0;color:var(--rs-text-muted);font-size:.8rem;}.book-review-dialog-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--rs-border-default);border-radius:.55rem;background:transparent;color:var(--rs-text-primary);font-size:1.2rem;cursor:pointer;}.book-review-dialog-form{display:grid;gap:1rem;padding:18px 20px 20px;}.book-review-dialog-editor .bookshelf-rich-review-area{min-height:300px;}.book-review-dialog-options{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap;}.book-review-dialog-actions{display:flex;align-items:center;gap:.5rem;padding-top:1rem;border-top:1px solid var(--rs-border-subtle);}.book-review-dialog-actions>span{flex:1;}body.book-review-dialog-open{overflow:hidden;}
.book-series-detail .book-entity-stats{flex-wrap:wrap;padding:0;border:0;background:none;}.book-series-detail .book-entity-stats>div{align-items:baseline;}.book-series-journey:not(.is-teaser) .book-series-sequence{display:none!important;}.book-cover-card.is-current{outline:1px solid var(--rs-border-strong);outline-offset:3px;}.book-cover-card-copy em{font-style:normal;}
.book-recommendation-row .book-cover-card-copy small{color:var(--rs-text-muted);font-size:.72rem;line-height:1.3;}
@media(max-width:800px){.book-purchase{grid-template-columns:1fr;gap:1rem;}.book-purchase-group{grid-template-columns:5.5rem minmax(0,1fr);}}
@media(max-width:600px){.book-purchase{padding-inline:.15rem;}.book-purchase-format{padding-top:0;}.book-purchase-links{overflow-x:auto;scrollbar-width:none;}.book-purchase-links::-webkit-scrollbar{display:none;}.book-review-dialog-actions{flex-wrap:wrap;}.book-star-rating label{width:1.3rem;font-size:1.25rem;}}

/* Book v2 2.8.0: stable AJAX state feedback and calmer purchase presentation. */
.book-reading [data-book-reading-ajax].is-saving{pointer-events:none;}.book-reading [data-book-reading-ajax].has-error{outline:0;}
.book-reading-ajax-status{min-height:0;margin:.7rem 0 0;color:var(--rs-text-muted);font-size:var(--rs-text-sm);}.book-reading-ajax-status:empty{display:none;}.book-reading-ajax-status.is-error{color:var(--rs-status-danger,#c66);}
.book-reading-collections>summary{color:var(--rs-text-primary);}
.book-purchase{display:block;}.book-purchase-intro>small{max-width:42rem;}.book-purchase-groups{display:grid;}.book-purchase-group{gap:1rem;}
@media(max-width:600px){.book-purchase-links{margin-right:0;padding-right:0;}}

/* Book v2 3.0.0: interactive reader voice. */

.book-review-person,.book-review-byline{align-items:center;}
.book-review-person>span,.book-review-byline>span{gap:.08rem;}
.book-review-person time,.book-review-byline time{line-height:1.25;}
.book-review-vote.is-saving{opacity:.72;}.book-review-vote-button:disabled{cursor:wait;}.book-review-vote-error{margin-left:.35rem;color:var(--rs-danger,#d86b6b);font-size:.72rem;}
.book-rating-distribution-row.is-interactive{width:100%;margin:0;padding:.2rem .35rem;border:0;border-radius:.55rem;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;}
.book-rating-distribution-row.is-interactive:hover,.book-rating-distribution-row.is-interactive:focus-visible,.book-rating-distribution-row.is-interactive[aria-expanded="true"]{background:color-mix(in srgb,var(--rs-accent) 7%,transparent);}
.book-rating-distribution-row.is-interactive:focus-visible{outline:2px solid var(--rs-accent);outline-offset:2px;}
.book-rating-readers{margin:.05rem 0 .45rem 2.35rem;padding:.65rem .8rem;border-left:2px solid color-mix(in srgb,var(--rs-accent) 55%,var(--rs-border-subtle));color:var(--rs-text-muted);font-size:.8rem;}
.book-rating-readers-list{display:flex;flex-wrap:wrap;gap:.45rem .7rem;}
.book-rating-reader{display:inline-flex;align-items:center;gap:.42rem;min-height:2.25rem;padding:.22rem .48rem .22rem .25rem;border-radius:999px;color:var(--rs-text-secondary);font-weight:650;text-decoration:none;}
.book-rating-reader:hover,.book-rating-reader:focus-visible{background:var(--rs-surface-2);color:var(--rs-text-primary);text-decoration:none;}
.book-rating-reader img{width:1.75rem;height:1.75rem;border-radius:50%;object-fit:cover;background:var(--rs-surface-2);}
.book-rating-readers-help{margin:.8rem 0 0;color:var(--rs-text-muted);font-size:.75rem;line-height:1.5;}
@media(max-width:600px){.book-rating-readers{margin-left:1.95rem;padding-left:.65rem;}.book-review-teaser-head{gap:.65rem;}.book-review-person{gap:.55rem;}}

/* Book v2 3.1.0: stronger local navigation, commerce surface and entity community context. */









.book-purchase-intro{margin-bottom:1.15rem;}.book-purchase-intro>small{margin-top:.15rem;color:var(--rs-text-secondary);}
.book-purchase-groups{max-width:none;gap:.75rem;}.book-purchase-group{grid-template-columns:8.5rem minmax(0,1fr);align-items:center;}.book-purchase-format{padding-top:0;}

.book-entity-community{display:flex;align-items:center;gap:1rem;border:1px solid var(--rs-border-subtle);border-radius:.85rem;background:var(--rs-surface-1);}
.book-entity-community-rating{flex:0 0 auto;}.book-entity-community-copy{display:grid;}.book-entity-community-copy>span{color:var(--rs-text-muted);font-size:.68rem;font-weight:750;letter-spacing:.055em;text-transform:uppercase;}.book-entity-community-copy>strong{font-size:1.15rem;}.book-entity-community-copy>small{color:var(--rs-text-secondary);font-size:.78rem;}
.book-cover-community{margin-top:.18rem;color:var(--rs-text-muted);font-size:.7rem;}.book-cover-community b{color:var(--rs-text-secondary);font-weight:750;}

@media(max-width:600px){
  
  
  .book-view-anchor+.book-community-pulse,.book-view-anchor+.book-context-section{margin-top:1.35rem;}
  .book-purchase{margin-inline:-.15rem;}
  .book-entity-community{align-items:flex-start;padding:.85rem;}.book-entity-community-rating{padding-top:.1rem;}
}


/* Book v2 3.2.0 stabilization: compact local nav, reliable Reading Card layout, compact review identity. */



.book-view-anchor+.book-community-pulse,.book-view-anchor+.book-context-section{margin-top:clamp(1.25rem,2.4vw,1.8rem);}

/* The teaser byline is one identity row. A previous generic head > div grid rule
   had enough specificity to turn this back into a vertical stack. */
.book-review-teaser-head>.book-review-person{display:flex!important;align-items:center!important;gap:.7rem!important;min-width:0;}
.book-review-teaser-head>.book-review-person>span{display:grid;min-width:0;}
.book-review-teaser-head{align-items:center;}
.book-review-teaser .book-review-avatar{flex:0 0 auto;}

/* Reading Card: controls must stay inside the card at narrow sidebar widths. */
.book-reading{container-type:inline-size;}
.book-reading-edit-grid{grid-template-columns:minmax(0,1fr)!important;gap:.85rem!important;}
.book-progress-form{min-width:0;}

.book-progress-fields label{display:grid;gap:.3rem;min-width:0;}
.book-progress-fields label>span{font-size:.74rem;line-height:1.25;color:var(--rs-text-secondary);}
.book-progress-fields .rs-input{width:100%;min-width:0;box-sizing:border-box;}
.book-progress-divider{align-self:end;display:grid;place-items:center;min-height:44px;padding-bottom:.05rem;color:var(--rs-text-muted);}
.book-progress-save{grid-column:1/-1;width:100%;min-height:42px!important;margin:.05rem 0 0!important;}
.book-reading-actions{display:flex;flex-wrap:wrap;}
@container (min-width: 430px){
  .book-progress-fields{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(8rem,auto)!important;}
  .book-progress-save{grid-column:auto;width:auto;margin-left:.2rem!important;}
}
@media(max-width:600px){
  
  
  .book-review-teaser-head{align-items:flex-start;flex-direction:row;}
}


/* Book v2 3.3.0 stabilization: rebuild local navigation + compact Reading progress. */






.book-view-anchor{height:0!important;scroll-margin-top:3.5rem!important;}
.book-view-anchor + .book-context-section,.book-view-anchor + .book-community-pulse{margin-top:1.15rem!important;}
.book-view-anchor + .book-context-section.book-author-detail,.book-view-anchor + .book-context-section.book-series-detail{padding-top:0!important;}

.book-progress-form{display:grid!important;gap:.45rem!important;min-width:0!important;}
.book-progress-form[hidden]{display:none!important;}
.book-progress-fields{display:grid!important;grid-template-columns:minmax(0,1fr) 1.25rem minmax(0,1fr)!important;gap:.4rem!important;align-items:end!important;width:100%!important;}
.book-progress-fields label{display:grid!important;grid-template-rows:auto auto!important;gap:.25rem!important;min-width:0!important;}
.book-progress-fields label>span{min-height:0!important;font-size:.72rem!important;line-height:1.25!important;color:var(--rs-text-secondary)!important;}
.book-progress-fields .rs-input{width:100%!important;min-width:0!important;box-sizing:border-box!important;}
.book-progress-divider{display:grid!important;place-items:center!important;min-height:44px!important;padding:0!important;color:var(--rs-text-muted)!important;}
.book-progress-save{display:none!important;}
.book-progress-hint{display:block;margin-top:.05rem;color:var(--rs-text-muted);font-size:.68rem;line-height:1.35;}
.book-reading [data-book-reading-ajax].is-saving{opacity:.78;}

@media(max-width:600px){
  
  
  
  .book-view-anchor + .book-context-section,.book-view-anchor + .book-community-pulse{margin-top:.9rem!important;}
}

/* 3.5.0: Book Page consumes the canonical Bookshelf relationship-state contract. */
.book-reading .bookshelf-owner-states{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:0;}
.book-reading .bookshelf-owner-states form{display:inline-flex;margin:0;}
.book-reading .bookshelf-owner-states .rs-button{gap:.42rem;min-height:40px;padding:.42rem .72rem;font-size:.84rem;}
.book-reading .bookshelf-owner-states button>span[aria-hidden="true"]{display:inline-grid;place-items:center;width:1rem;flex:0 0 1rem;line-height:1;}
.book-reading .bookshelf-owner-states button.is-pending{opacity:.62;cursor:wait;}
.book-reading .book-reading-now{display:inline-flex;margin:0;}.book-reading .book-reading-now .rs-button{min-height:40px;box-sizing:border-box;}

/* Book v2 3.6.4: format-first Purchase Panel + canonical Design System commerce actions.
   3.6.4 removes legacy retailer-anchor visual rules that overrode the shared commerce component.
   Retailer action visuals are owned by rs-button rs-button--commerce (Design System v1.2.7).
   Library owns only Purchase Panel layout, format tabs and responsive composition. */
.book-purchase{margin:1.1rem 0 0;padding:1rem 1.2rem 1.05rem;border:1px solid var(--rs-border-subtle);border-radius:.9rem;background:var(--rs-surface-1);}
.book-purchase-intro{display:block;margin:0 0 .45rem;}
.book-purchase-intro .book-section-kicker{display:block;margin:0 0 .1rem;}
.book-purchase-intro>strong{display:block;font-size:1.12rem;line-height:1.25;}
.book-purchase-formats{display:flex;align-items:flex-end;gap:1.4rem;margin:0 0 .8rem;padding:0;border:0;border-bottom:1px solid var(--rs-border-subtle);overflow-x:auto;scrollbar-width:none;}
.book-purchase-formats::-webkit-scrollbar{display:none;}
.book-purchase-formats button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;padding:.35rem .05rem .6rem;border:0;border-radius:0;background:transparent;color:var(--rs-text-muted);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;box-shadow:none;transition:color .12s ease;}
.book-purchase-formats button::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px 2px 0 0;background:transparent;transition:background .12s ease;}
.book-purchase-formats button:hover{color:var(--rs-text-primary);}
.book-purchase-formats button:focus-visible{outline:2px solid var(--rs-border-focus);outline-offset:2px;}
.book-purchase-formats button[aria-selected="true"]{border:0;background:transparent;color:var(--rs-text-primary);}
.book-purchase-formats button[aria-selected="true"]::after{background:var(--rs-border-focus);}
.book-purchase-panels{min-height:48px;}
.book-purchase-panel{display:block;}
.book-purchase-panel[hidden]{display:none!important;}
.book-purchase-format{padding:0;color:var(--rs-text-muted);font-size:.7rem;font-weight:750;letter-spacing:.055em;text-transform:uppercase;}
.book-purchase-links{display:flex;flex-wrap:wrap;min-width:0;}
/* Deliberately no retailer color/border/background/hover/focus styling here.
   Those semantics belong to the shared .rs-button--commerce component. */
.book-purchase-note{display:block;color:var(--rs-text-muted);font-size:.68rem;line-height:1.35;}
@media(max-width:700px){
  .book-purchase{padding:.9rem;}
  .book-purchase-formats{gap:1.15rem;}
  .book-purchase-formats button{min-height:44px;}
  .book-purchase-links{flex-wrap:wrap;}
}

/* Book v2 3.6.5: landing-page local navigation.
   Library owns the Book-local information architecture; shared tokens own the visual language. */













/* Book v2 3.7.1: persisted personal rating is visible without hover. */

.book-star-rating[data-preview-rating] label.is-saved:not(.is-preview){color:var(--rs-text-muted);}


/* Book v2 3.7.2: canonical Reading corrective pass. */
.book-star-rating label.is-saved{color:var(--rs-rating-accent,#d6a84b);}
.book-review-dialog-shell,.book-review-dialog-head,.book-review-dialog-form{background:var(--rs-surface-1);}
.book-review-dialog-editor .bookshelf-rich-review,.book-review-dialog-editor .bookshelf-rich-review-mode,.book-review-dialog-editor .bookshelf-rich-review-toolbar,.book-review-dialog-editor .bookshelf-rich-review-area,.book-review-dialog-editor .bookshelf-rich-review-preview{background:var(--rs-surface-1);}


/* 3.7.4 Reading action feedback and canonical ReadingReviewEditor state presentation. */
.book-star-rating-meta output{min-width:0;}
.book-star-rating-meta small{margin-left:0;}
[data-book-rating-status].is-success,.book-progress-hint.is-success{color:var(--rs-success,#55b987);}
[data-book-rating-status].is-error,.book-progress-hint.is-error{color:var(--rs-danger,#e06c75);}
body.bookshelf-review-fullscreen-open{overflow:hidden;}
.bookshelf-rich-review.bookshelf-rich-review-is-fullscreen{position:fixed!important;inset:0!important;z-index:2147483000!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;background:var(--rs-surface-1)!important;}
.bookshelf-rich-review.bookshelf-rich-review-is-fullscreen .bookshelf-rich-review-mode,.bookshelf-rich-review.bookshelf-rich-review-is-fullscreen .bookshelf-rich-review-toolbar{flex:0 0 auto;}
.bookshelf-rich-review.bookshelf-rich-review-is-fullscreen [data-review-editor-area],.bookshelf-rich-review.bookshelf-rich-review-is-fullscreen .bookshelf-rich-review-preview{flex:1 1 auto!important;min-height:0!important;max-height:none!important;padding:clamp(14px,2.5vw,32px)!important;overflow:auto!important;}
.bookshelf-rich-review.bookshelf-rich-review-is-preview .bookshelf-rich-review-toolbar{display:none!important;}
.bookshelf-rich-review.bookshelf-rich-review-is-preview .bookshelf-rich-review-preview{display:block!important;background:var(--rs-surface-raised);color:var(--rs-text-secondary)!important;}
@media(max-width:620px){.bookshelf-rich-review.bookshelf-rich-review-is-fullscreen [data-review-editor-area],.bookshelf-rich-review.bookshelf-rich-review-is-fullscreen .bookshelf-rich-review-preview{padding:14px!important;}}

/* 3.8.1: reading-now progress belongs directly to the active reading state. */
.book-reading-now-progress{margin-top:.75rem;padding:.8rem .85rem;border:1px solid color-mix(in srgb,var(--rs-border-subtle) 76%,transparent);border-radius:.8rem;background:color-mix(in srgb,var(--rs-surface-2) 38%,transparent);}
.book-reading-now-progress:has(.book-progress-form[hidden]){display:none;}
.book-reading-now-progress .book-progress-form{margin:0;padding:0;border:0;}
.book-reading-now-progress .book-reading-progress{margin-top:.65rem;}
.book-reading-now-progress>[data-reading-progress-text]{display:block;margin-top:.25rem;color:var(--rs-text-secondary);}

/* 3.8.1: Author identity uses the canonical author image when one exists. */
.book-author-identity{display:grid;align-items:start;}
.book-author-detail-media img{display:block;width:100%;height:auto;object-fit:cover;border-radius:var(--rs-radius-lg);background:var(--rs-surface-2);}
.book-author-detail-main{min-width:0;}
@media(max-width:680px){.book-author-identity{grid-template-columns:96px minmax(0,1fr);gap:1rem;}.book-author-detail-media img{max-height:150px;}.book-author-biography{grid-column:1/-1;}}

/* 3.8.2: Author media is opportunistic. Missing media must never collapse the identity layout. */
.book-author-identity.is-no-image{grid-template-columns:minmax(0,1fr);}
.book-author-context.is-no-image{grid-template-columns:minmax(0,1fr);}

/* 3.9.1: pre-release expectation is intentionally distinct from a published-book rating. */
.book-expectation-form{--rs-rating-accent:var(--rs-info);}
.book-expectation-form .book-star-rating label.is-preview{color:var(--rs-info);}
.book-expectation-intro{margin:.15rem 0 .45rem;color:var(--rs-text-muted);font-size:.78rem;line-height:1.45;}
.book-anticipation-score strong{font-size:1.35rem;color:var(--rs-text-primary);}
.book-anticipation-distribution .rs-bar-list__fill{background:var(--rs-info);}

/* 3.9.3: canonical Reading Expectation parity with Bookshelf. */
.book-expectation-remove-form{margin-top:-.35rem;}
.book-reading-text-action{appearance:none;border:0;background:none;padding:0;color:var(--rs-text-muted);font:inherit;font-size:.78rem;text-decoration:underline;text-underline-offset:.18em;cursor:pointer;}
.book-reading-text-action:hover{color:var(--rs-text-primary);}
.book-reading-text-action:focus-visible{outline:2px solid var(--rs-focus);outline-offset:4px;border-radius:.2rem;}
.book-anticipation-stars{position:relative;display:inline-block;line-height:1;font-size:1.08rem;letter-spacing:.08em;color:var(--rs-text-muted);white-space:nowrap;}
.book-anticipation-stars-fill{position:absolute;inset:0 auto 0 0;display:block;overflow:hidden;color:var(--rs-info);white-space:nowrap;}
.book-anticipation-stars-base{display:block;opacity:.72;}

/* 3.9.4: long hero titles scale without changing the established short-title baseline. */
@media(min-width:601px){
  .book-identity-copy h1.book-title--medium{font-size:clamp(2.55rem,5.35vw,4.05rem);}
  .book-identity-copy h1.book-title--long{font-size:clamp(2.3rem,4.65vw,3.55rem);line-height:1.01;max-width:18ch;}
}

/* Book Page v2 4.3.0: shared Reading semantics and user-tested mobile/overview refinements. */
.book-community-rating-count{display:flex;align-items:center;min-width:0;}
.book-community-rating-count small{white-space:nowrap;}
.book-review-state-symbol{font-weight:400;color:var(--rs-text-secondary);}

/* Purchase follows editorial information on Overview. */
.book-overview-main>.book-purchase{margin-top:clamp(2rem,4vw,3rem);}

/* Canonical Reading state symbols must not inherit action-specific decoration. */
.book-reading-actions button>span[aria-hidden="true"]{display:inline-flex;align-items:center;justify-content:center;min-width:1.05em;font-weight:700;}

@media(max-width:600px){
  /* Series navigation is content, not an overlay. Keep long Next/Previous titles away from the cover. */
  .book-hero-series-nav{left:auto;right:auto;top:auto;}
  
  .book-hero-series-nav strong{overflow-wrap:anywhere;}
  
  .book-community-rating{display:flex;align-items:center;}
  .book-community-rating>.rs-rating{min-width:0;}
  
  
}


/* Book Page v2 4.3.1: review hierarchy, neutral genre identity and tighter Overview rhythm. */
.book-review-teaser-head{justify-content:flex-start;}
.book-review-teaser-head>.book-review-person>span>.book-review-score{display:block;width:max-content;margin-top:.28rem;}
.book-review-teaser-head>.book-review-person>span>.book-review-score .rs-rating{margin:0;}
.book-genres .book-genre.rs-genre{color:var(--rs-text-secondary);border-color:var(--rs-border-subtle);background:transparent;}
.book-genres .book-genre.rs-genre:hover,.book-genres .book-genre.rs-genre:focus-visible{text-decoration:none;color:var(--rs-text-primary);border-color:var(--rs-border-strong);background:var(--rs-surface-2);}
.book-context-section{margin-top:clamp(3.25rem,6.5vw,5.5rem);}
.book-reader-reviews.is-teaser,.book-series-journey.is-teaser,.book-similar-reads.is-teaser{margin-top:3.5rem;}
@media(max-width:600px){
  
  .book-reader-reviews.is-teaser,.book-series-journey.is-teaser,.book-similar-reads.is-teaser{margin-top:2.9rem;}
}

/* Book v2 4.3.10: Design System v1.2.9 commerce integration.
   Library owns Purchase Panel composition only. Commerce button color, border,
   padding, typography, external-indicator treatment, hover and focus are
   exclusively Design System-owned. */
.book-purchase-formats{margin-bottom:1rem;}
.book-purchase-links{gap:.5rem;}
.book-purchase-note{margin-top:.72rem;}
@media(max-width:700px){
  .book-purchase-formats{margin-bottom:.85rem;}
  .book-purchase-links{gap:.5rem;}
}


/* Book v2 4.3.11: high-performing legacy primary-store path restored as a light hero text action.
   This is intentionally distinct from the Purchase Panel and does not override rs-button--commerce. */
.book-hero-commerce{margin:1.05rem 0 0;font-size:.9rem;line-height:1.4;}
.book-commerce-shortcut{display:inline-flex;align-items:center;gap:.32rem;min-height:2.25rem;margin:-.4rem;padding:.4rem;color:var(--rs-text-primary);font-weight:700;text-decoration:none;border-radius:.25rem;}
.book-commerce-shortcut__store{color:var(--rs-text-primary);font-weight:750;}
.book-commerce-shortcut__separator{color:var(--rs-text-secondary);font-weight:500;}
.book-commerce-shortcut__action,.book-commerce-shortcut__external{color:var(--rs-warning);}
.book-commerce-shortcut__external{transition:transform .12s ease;}
.book-commerce-shortcut:hover{text-decoration:none;}
.book-commerce-shortcut:hover .book-commerce-shortcut__action{text-decoration:underline;text-underline-offset:.18em;}
.book-commerce-shortcut:hover .book-commerce-shortcut__external{transform:translate(1px,-1px);}
.book-commerce-shortcut:focus-visible{outline:2px solid var(--rs-focus);outline-offset:2px;}
@media(max-width:600px){.book-hero-commerce{margin-top:.9rem;}}


/* Book v2 4.3.12: hero commerce hover underlines only the action label; the external arrow remains clean.
   Reading relationship symbols are semantic constants. Favorite is always rendered as the filled ★; selected state is aria-pressed only. */

/* Book Page v2 4.4.0: deep-view presentation pass for Readers, Series and Author. */
/* Readers: analytics support the reviews instead of dominating the page. */

.book-rating-distribution .book-context-heading{max-width:44rem;}
.book-rating-distribution .book-reviews-intro{margin-bottom:1rem;}
.book-rating-distribution-bars{max-width:44rem;margin-top:1rem;}
.book-rating-distribution-row,.book-rating-distribution-row.is-interactive{box-sizing:border-box;}
.book-rating-distribution-track{width:100%;min-width:0;}
.book-rating-distribution-row>strong{text-align:right;font-size:.78rem;}
.book-rating-readers{max-width:40rem;margin-left:2.1rem;}
.book-rating-readers-help{max-width:44rem;}



.book-heading-with-count{display:flex;align-items:baseline;gap:.75rem;flex-wrap:wrap;}
.book-heading-with-count h2{margin-right:0;}
.book-section-count{color:var(--rs-text-muted);font-size:.78rem;font-weight:650;white-space:nowrap;}

.book-reader-reviews:not(.is-teaser) .book-review-list{gap:0;}



.book-reader-reviews:not(.is-teaser) .book-review-score{flex:0 0 auto;margin-left:auto;}
.book-reader-reviews:not(.is-teaser) .book-review-body{margin-top:.85rem;}










/* Series: make the tab a compact series snapshot plus an explicit reading order. */
.book-series-detail{max-width:none;}
.book-series-detail>h2{max-width:24ch;}
.book-series-detail .book-entity-description{max-width:none;}
.book-series-detail .book-entity-community{max-width:40rem;margin-top:1.15rem;}
.book-series-detail .book-entity-stats{display:grid;gap:.65rem;max-width:40rem;margin-top:.8rem;}
.book-series-detail .book-entity-stats>div{display:grid;gap:.16rem;padding:.75rem .85rem;border:1px solid var(--rs-border-subtle);border-radius:.7rem;background:color-mix(in srgb,var(--rs-surface-1) 68%,transparent);}
.book-series-detail .book-entity-stats dt{color:var(--rs-text-muted);font-size:.64rem;font-weight:750;letter-spacing:.055em;text-transform:uppercase;}
.book-series-detail .book-entity-stats dd{margin:0;color:var(--rs-text-primary);font-size:1rem;font-weight:750;}
.book-series-detail+.book-series-journey{max-width:72rem;}
.book-series-reading-order-intro{max-width:44rem;margin:.6rem 0 1.2rem;color:var(--rs-text-secondary);font-size:.88rem;}
.book-series-journey:not(.is-teaser) .book-cover-row{grid-auto-columns:minmax(140px,168px);gap:1rem;}
.book-series-journey:not(.is-teaser) .book-cover-card-copy{gap:.14rem;}
.book-series-journey:not(.is-teaser) .book-cover-community{margin-top:.16rem;color:var(--rs-text-muted);font-size:.7rem;line-height:1.35;}

/* Author: stronger identity, compact evidence and clearer bibliography hierarchy. */
.book-author-detail{max-width:none;}
.book-author-identity{grid-template-columns:minmax(120px,170px) minmax(0,1fr);gap:1.5rem;}
.book-author-detail-media img{max-height:245px;}
.book-author-detail-main .book-context-heading{align-items:flex-start;}
.book-author-biography{max-width:none;font-size:.94rem;line-height:1.7;}
.book-author-detail>.book-entity-community{max-width:46rem;margin-top:1.4rem;}
.book-author-detail>.book-entity-stats{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:.7rem;}
.book-author-detail>.book-entity-stats>div{min-width:9rem;padding:.7rem .85rem;border:1px solid var(--rs-border-subtle);border-radius:.7rem;background:color-mix(in srgb,var(--rs-surface-1) 68%,transparent);}
.book-author-detail>.book-entity-stats dt{color:var(--rs-text-muted);font-size:.64rem;font-weight:750;letter-spacing:.055em;text-transform:uppercase;}
.book-author-detail>.book-entity-stats dd{margin:.15rem 0 0;font-size:1rem;font-weight:750;}
.book-author-series,.book-author-bibliography{max-width:64rem;border-top:1px solid var(--rs-border-subtle);}
.book-author-series h3,.book-author-bibliography h3{font-size:1.35rem;}
.book-author-bibliography .book-cover-row{grid-auto-columns:minmax(125px,155px);gap:1rem;}

@media(max-width:700px){
  
  .book-reader-reviews:not(.is-teaser),.book-reviews-heading,.book-reader-reviews:not(.is-teaser) .book-review-list{max-width:none;}
  .book-reader-reviews:not(.is-teaser) .book-review-header{align-items:flex-start;flex-direction:column;}
  
  
  
  .book-series-detail .book-entity-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
  .book-author-identity{grid-template-columns:92px minmax(0,1fr);gap:1rem;}
  .book-author-detail-media img{max-height:145px;}
  .book-author-biography{grid-column:1/-1;}
}
@media(max-width:430px){
  .book-series-detail .book-entity-stats{grid-template-columns:1fr;}
  .book-rating-distribution-row,.book-rating-distribution-row.is-interactive{grid-template-columns:1.35rem minmax(0,1fr) 1.8rem;gap:.4rem;}
  .book-review-vote{flex-wrap:wrap;}
}


/* Book Page v2 4.4.1: deep-view alignment and review composition correction. */
/* Deep views keep one left content axis. Narrow content is constrained on the right, never auto-centred. */
.book-series-detail,
.book-series-detail + .book-series-journey,
.book-author-detail,
.book-reader-reviews:not(.is-teaser),
.book-rating-distribution{margin-left:0;margin-right:0;}
.book-series-detail + .book-series-journey{max-width:68rem;}
.book-series-detail + .book-series-journey .book-context-heading{max-width:68rem;}

/* Community evidence is one rating, not two competing numeric presentations. */
.book-entity-community{justify-content:flex-start;}
.book-entity-community-rating{display:flex;align-items:center;min-width:0;}
.book-entity-community-copy{align-content:center;gap:.18rem;}
.book-entity-community-copy>span{margin:0;}
.book-entity-community-copy>small{line-height:1.35;}

/* Reviews are composed as one readable unit instead of spanning the whole viewport. */

.book-reviews-heading,
.book-reader-reviews:not(.is-teaser) .book-review-list{max-width:54rem;}



.book-reader-reviews:not(.is-teaser) .book-review-byline{min-width:0;}
.book-reader-reviews:not(.is-teaser) .book-review-score{padding-top:.15rem;}


.book-review-vote{padding:0;}
.book-review-vote>span{margin:0 .25rem 0 0;}

/* Staff evidence is metadata, not an action badge. */
.book-review-staff-signal{margin-left:auto;}




/* Distribution is deliberately secondary to reviews. */

.book-rating-distribution .book-context-heading,
.book-rating-distribution-bars,
.book-rating-readers-help{max-width:40rem;}

.book-rating-distribution-row,.book-rating-distribution-row.is-interactive{width:100%;}

@media(max-width:700px){
 .book-series-detail,.book-series-detail + .book-series-journey,.book-author-detail,.book-reader-reviews:not(.is-teaser),.book-rating-distribution{max-width:none;margin-right:0;}
 
 .book-reader-reviews:not(.is-teaser) .book-review-score{padding-top:0;}
 
 .book-review-staff-signal{margin-left:0;}
}

/* Book Page v2 4.5.0: Readers as a community reading surface, not a data stream. */
.book-review-invitation{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1.25rem;max-width:52rem;margin-top:2.6rem;padding:1.25rem 1.35rem;border:1px solid var(--rs-border-subtle);border-radius:1rem;background:color-mix(in srgb,var(--rs-surface-1) 78%,transparent);}
.book-review-invitation-copy{min-width:0;}.book-review-invitation h2{margin:.18rem 0 .35rem;font-size:clamp(1.25rem,2.6vw,1.65rem);}.book-review-invitation p{max-width:58ch;margin:0;color:var(--rs-text-secondary);font-size:.9rem;line-height:1.6;}.book-review-invitation-action{flex:0 0 auto;}.book-review-invitation-action .rs-button{white-space:nowrap;}
.book-reader-reviews:not(.is-teaser){max-width:52rem;margin-left:0;margin-right:0;}.book-reviews-heading{max-width:52rem;}.book-reader-reviews:not(.is-teaser) .book-reviews-intro{max-width:44rem;margin-bottom:1.1rem;}
.book-reader-reviews:not(.is-teaser) .book-review{margin:0;border-top:1px solid var(--rs-border-subtle);border-radius:0;background:transparent;}.book-reader-reviews:not(.is-teaser) .book-review:last-child{border-bottom:1px solid var(--rs-border-subtle);}
.book-reader-reviews:not(.is-teaser) .book-review-byline{gap:.7rem;}.book-reader-reviews:not(.is-teaser) .book-review-avatar{width:2.6rem;height:2.6rem;flex-basis:2.6rem;}.book-reader-reviews:not(.is-teaser) .book-review-user{font-size:1rem;}
.book-reader-reviews:not(.is-teaser) .book-review-body{color:var(--rs-text-primary);}.book-reader-reviews:not(.is-teaser) .book-review-body p{margin-block:0 1em;}
.book-reader-reviews:not(.is-teaser) .book-review-footer{grid-template-columns:minmax(0,1fr) auto;}
.book-review-vote>span{margin-right:.15rem;color:var(--rs-text-muted);font-size:.76rem;}
.book-review-staff-signal{color:var(--rs-text-muted);font-size:.67rem;}.book-review-staff-signal strong{padding:0;border:0;background:none;font-size:.62rem;}.book-review-staff-signal span{font-size:.67rem;}
.book-rating-distribution{max-width:38rem;}.book-rating-distribution .book-context-heading,.book-rating-distribution-bars,.book-rating-readers-help{max-width:36rem;}.book-rating-distribution .book-reviews-intro{max-width:34rem;}.book-rating-distribution-bars{gap:.32rem;}.book-rating-distribution-row,.book-rating-distribution-row.is-interactive{grid-template-columns:1.35rem minmax(0,1fr) 1.7rem;gap:.5rem;min-height:1.55rem;padding:.05rem 0;}.book-rating-distribution-row>.book-rating-distribution-track{height:.56rem;}
/* Series summary avoids presenting the same count twice. */
.book-series-detail .book-entity-stats{grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:700px){.book-review-invitation{grid-template-columns:1fr;gap:.9rem;max-width:none;}.book-review-invitation-action{justify-self:start;}.book-reader-reviews:not(.is-teaser),.book-reader-reviews:not(.is-teaser) .book-review-list{max-width:none;}.book-reader-reviews:not(.is-teaser) .book-review-header{grid-template-columns:1fr;gap:.55rem;}.book-reader-reviews:not(.is-teaser) .book-review-score{justify-self:start;}.book-reader-reviews:not(.is-teaser) .book-review-footer{grid-template-columns:1fr;}.book-review-staff-signal{justify-self:start;}.book-review-vote-button{min-height:2.5rem;padding-inline:.8rem;}.book-rating-distribution,.book-rating-distribution .book-context-heading,.book-rating-distribution-bars,.book-rating-readers-help{max-width:none;}}

/* Book Page v2 4.6.0: Design/UX consolidation across deep views.
   Library owns composition only. Persistent toggle visuals remain Design System-owned. */
.book-view-content > .book-context-section{margin-left:0;margin-right:0;}
.book-view-content > .book-context-section + .book-context-section{margin-top:clamp(2.5rem,5vw,3.5rem);}

/* One compact evidence pattern for Series and Author, without dashboard-like stat cards. */
.book-series-detail,.book-author-detail{margin-left:0;margin-right:0;}
.book-entity-community{box-sizing:border-box;max-width:42rem;margin:1.25rem 0 .8rem;padding:.85rem 1rem;}
.book-entity-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem 0;margin:.75rem 0 0;color:var(--rs-text-secondary);font-size:.82rem;line-height:1.5;}
.book-entity-meta span{display:inline-flex;align-items:baseline;}
.book-entity-meta span+span::before{content:"·";margin:0 .65rem;color:var(--rs-text-muted);}
.book-entity-meta strong{color:var(--rs-text-primary);font-weight:750;}
.book-series-detail+.book-series-journey{margin-top:clamp(2.7rem,5vw,3.5rem);}
.book-author-series,.book-author-bibliography{padding-top:1.5rem;}

/* Reviews use the same left reading axis from identity through body and feedback. */
.book-reader-reviews:not(.is-teaser) .book-review-header{align-items:start;}
.book-reader-reviews:not(.is-teaser) .book-review-byline{justify-self:start;}
.book-reader-reviews:not(.is-teaser) .book-review-body{margin-left:0;}


/* Geometry only. rs-button and Design System [aria-pressed] own color, border, hover, focus and selected state. */
.book-review-vote .book-review-vote-button{width:2.35rem;min-width:2.35rem;height:2.35rem;min-height:2.35rem;padding:0;border-radius:999px;font-size:1rem;}

.book-review-staff-signal strong{text-transform:none;letter-spacing:0;font-weight:650;}
.book-review-staff-signal strong::after{content:" ·";}

@media(max-width:700px){
  .book-view-content > .book-context-section + .book-context-section{margin-top:2.5rem;}
  .book-entity-meta{align-items:flex-start;flex-direction:column;gap:.2rem;}
  .book-entity-meta span+span::before{content:none;margin:0;}
  
  .book-review-vote .book-review-vote-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;}
}

/* 4.6.1 review readability and compact feedback controls. Visual button states remain Design System-owned. */

.book-review-body[data-review-collapsible].is-collapsed{max-height:18rem;overflow:hidden;}
.book-review-body[data-review-collapsible].is-collapsed::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4.5rem;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--rs-page-bg,var(--rs-surface-0)));}
.book-review-body[data-review-collapsible].is-expanded{max-height:none;}
.book-review-more{display:inline-flex;align-items:center;margin-top:.35rem;padding:0;border:0;background:transparent;color:var(--rs-link,var(--rs-accent));font:inherit;font-size:.8rem;font-weight:700;cursor:pointer;}
.book-review-more:hover{text-decoration:underline;}
.book-review-more:focus-visible{outline:var(--rs-focus-width,2px) solid var(--rs-focus,var(--rs-accent));outline-offset:3px;}

.book-review-staff-signal strong{color:var(--rs-private-accent,var(--rs-text-muted));}

/* 4.6.2: JS sets the same collapse height inline so expansion is deterministic even if legacy CSS has competing max-height rules. */

/* 4.6.3 Readers/Series/Author consolidation. */
.book-reader-reviews:not(.is-teaser),
.book-reader-reviews:not(.is-teaser) .book-review-list,
.book-reader-reviews:not(.is-teaser) .book-review,
.book-reader-reviews:not(.is-teaser) .book-review-body,
.book-reader-reviews:not(.is-teaser) .book-review-excerpt{max-width:none;width:100%;}

.book-review-excerpt{margin:.2rem 0 0;color:var(--rs-text-primary);font-size:1rem;line-height:1.75;}
.book-review-body[hidden],.book-review-excerpt[hidden]{display:none!important;}
.book-review-body[data-review-collapsible]{position:static;max-height:none;overflow:visible;}
.book-review-body[data-review-collapsible]::after{content:none!important;}
.book-series-detail .book-series-stats{display:grid;grid-template-columns:repeat(2,minmax(0,11rem));gap:.65rem;max-width:none;margin-top:.8rem;}
.book-series-detail .book-series-stats>div,.book-author-detail>.book-author-stats>div{display:grid;gap:.16rem;padding:.75rem .85rem;border:1px solid var(--rs-border-subtle);border-radius:.7rem;background:color-mix(in srgb,var(--rs-surface-1) 68%,transparent);}
.book-author-detail>.book-author-stats{display:grid;grid-template-columns:repeat(2,minmax(0,11rem));gap:.65rem;margin-top:.7rem;}



/* 4.6.4: review identity and rating share one visual cluster; long-review preview is server-rendered. */

.book-reader-reviews:not(.is-teaser) .book-review-byline{row-gap:.1rem;}

.book-reader-reviews:not(.is-teaser) .book-review-score{justify-self:start;}

@media(max-width:700px){.book-reader-reviews:not(.is-teaser) .book-review-score{margin-left:0;}.book-reader-reviews:not(.is-teaser) .book-review-byline{grid-template-columns:auto 1fr;}.book-reader-reviews:not(.is-teaser) .book-review-score{grid-column:2;}}

/* Book Page v2 4.7.0: production polish.
   Final composition rules for reviews and deep-view summaries. Shared control states remain Design System-owned. */

/* Long reviews use native disclosure semantics, so reading never depends on JavaScript. */

.book-review-expand>summary{display:block;list-style:none;cursor:pointer;}
.book-review-expand>summary::-webkit-details-marker{display:none;}
.book-review-expand>summary::marker{content:"";}


.book-review-expand .book-review-more-close{display:none;}
.book-review-expand[open]>summary .book-review-excerpt,.book-review-expand[open]>summary .book-review-more-open{display:none;}
.book-review-expand[open]>summary .book-review-more-close{display:inline;}
.book-review-expand[open]>summary{margin-bottom:.55rem;}
.book-review-expand>summary:hover .book-review-more{text-decoration:underline;}
.book-review-expand>summary:focus-visible{outline:var(--rs-focus-width,2px) solid var(--rs-focus,var(--rs-accent));outline-offset:4px;border-radius:.2rem;}

/* Reviewer identity, score and prose form one deliberate reading sequence. */
.book-reader-reviews:not(.is-teaser) .book-review-header{margin-bottom:.85rem;}

.book-reader-reviews:not(.is-teaser) .book-review-identity{gap:.08rem;}
.book-reader-reviews:not(.is-teaser) .book-review-rating-line{margin-left:3.35rem;}
.book-reader-reviews:not(.is-teaser) .book-review-score{position:static;margin:0;padding:0;font-size:1.08rem;}

.book-reader-reviews:not(.is-teaser) .book-review-body{max-width:76ch;width:100%;margin:.2rem 0 0;font-size:1rem;line-height:1.75;}

/* Feedback belongs to the review content, not to opposite edges of the page. */
.book-reader-reviews:not(.is-teaser) .book-review-footer{margin-top:1.15rem;padding-top:.9rem;}
.book-review-vote{display:flex;align-items:center;justify-self:auto;flex-wrap:wrap;gap:.45rem;margin:0;}
.book-review-staff-signal{display:flex;align-items:baseline;justify-self:auto;gap:.32rem;margin:0;padding:0;border:0;border-radius:0;background:none;opacity:.82;}
.book-review-staff-signal span{white-space:normal;}

/* Featured review shares the stronger score hierarchy without becoming a full review card. */
.book-review-teaser .book-review-score .book-rating-stars{font-size:1.18rem;letter-spacing:.025em;}

/* Deep views use the same evidence geometry. */
.book-series-detail .book-entity-community,.book-author-detail>.book-entity-community{max-width:42rem;}
.book-series-detail .book-series-stats,.book-author-detail>.book-author-stats{grid-template-columns:repeat(2,minmax(0,11rem));max-width:22.65rem;}

/* Long landing pages need a consistent editorial rhythm rather than isolated oversized gaps. */
.book-view-content>.book-context-section+.book-context-section{margin-top:clamp(2.75rem,5.5vw,4rem);}
.book-author-series,.book-author-bibliography{margin-top:clamp(2.65rem,5vw,3.5rem);}

@media(max-width:700px){
 
 .book-reader-reviews:not(.is-teaser) .book-review-footer{max-width:none;}
 .book-review-staff-signal{max-width:100%;flex-wrap:wrap;}
 .book-series-detail .book-series-stats,.book-author-detail>.book-author-stats{max-width:none;}
}
@media(max-width:520px){
 
 .book-series-detail .book-series-stats,.book-author-detail>.book-author-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* Book Page v2 4.7.1: production validation follow-up.
   Long reviews expand once into the canonical full review. Review prose and feedback use the full Book Page content axis. */
.book-review-expand{margin:0;border:0;}
.book-review-expand .book-review-excerpt{display:block;width:100%;margin:.2rem 0 0;color:var(--rs-text-primary);font-size:1rem;line-height:1.75;}
.book-review-expand .book-review-more{display:inline-flex;align-items:center;margin-top:.35rem;padding:0;border:0;background:transparent;color:var(--rs-link,var(--rs-accent));font:inherit;font-size:.8rem;font-weight:700;cursor:pointer;}
.book-review-expand .book-review-more:hover{text-decoration:underline;}
.book-review-expand .book-review-more:focus-visible{outline:var(--rs-focus-width,2px) solid var(--rs-focus,var(--rs-accent));outline-offset:4px;border-radius:.2rem;}
.book-review-expand .book-review-more[hidden]{display:none!important;}
.book-reader-reviews:not(.is-teaser) .book-review-body,
.book-reader-reviews:not(.is-teaser) .book-review-excerpt{max-width:none;width:100%;}


/* Book Page v2 4.7.2: production review composition correction.
   Keep every review on the Book Page content axis. Identity, rating and prose are a vertical reading sequence. */
.book-reader-reviews:not(.is-teaser) .book-review-list{width:100%;max-width:none;}
.book-reader-reviews:not(.is-teaser) .book-review{box-sizing:border-box;width:100%;padding:1.45rem 0 1.55rem;border:0;border-bottom:1px solid var(--rs-border-subtle);}
.book-reader-reviews:not(.is-teaser) .book-review:first-child{border-top:0;}
.book-reader-reviews:not(.is-teaser) .book-review-header{display:grid;grid-template-columns:minmax(0,1fr);gap:.5rem;width:100%;max-width:none;margin:0 0 .9rem;padding:0;border:0;}
.book-reader-reviews:not(.is-teaser) .book-review-byline{display:grid;grid-template-columns:auto minmax(0,1fr);justify-content:start;column-gap:.75rem;width:100%;max-width:none;}
.book-reader-reviews:not(.is-teaser) .book-review-rating-line{display:block;width:auto;margin:0 0 0 3.35rem;padding:0;justify-self:start;}
.book-reader-reviews:not(.is-teaser) .book-review-score{display:inline-flex;justify-self:start!important;align-self:auto;margin:0!important;padding:0!important;white-space:nowrap;}
.book-reader-reviews:not(.is-teaser) .book-review-score .book-rating-stars{font-size:1.32rem;letter-spacing:.035em;}
.book-reader-reviews:not(.is-teaser) .book-review-expand,
.book-reader-reviews:not(.is-teaser) .book-review-excerpt,
.book-reader-reviews:not(.is-teaser) .book-review-body{box-sizing:border-box;width:100%;max-width:none;margin-left:0;margin-right:0;}
.book-reader-reviews:not(.is-teaser) .book-review-footer{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.65rem 1.35rem;width:100%;max-width:none;margin:1.15rem 0 0;padding:.9rem 0 0;border-top:1px solid color-mix(in srgb,var(--rs-border-subtle) 68%,transparent);}
@media(max-width:700px){
 .book-reader-reviews:not(.is-teaser) .book-review-rating-line{margin-left:3.35rem;}
 .book-reader-reviews:not(.is-teaser) .book-review-footer{align-items:flex-start;flex-direction:column;gap:.75rem;}
}
@media(max-width:520px){
 .book-reader-reviews:not(.is-teaser) .book-review-rating-line{margin-left:2.75rem;}
 .book-reader-reviews:not(.is-teaser) .book-review-score .book-rating-stars{font-size:1.24rem;}
}

/* Book Page v2 4.7.3: final review interaction polish.
   Profile links have content-sized hit areas, the avatar is a first-class profile link, and vote glyphs are geometrically centered. */
.book-reader-reviews:not(.is-teaser) .book-review-byline{align-items:center;}
.book-reader-reviews:not(.is-teaser) .book-review-avatar-link{display:block;align-self:center;justify-self:start;width:2.6rem;height:2.6rem;border-radius:50%;line-height:0;}
.book-reader-reviews:not(.is-teaser) .book-review-avatar-link .book-review-avatar{display:block;width:100%;height:100%;}
.book-reader-reviews:not(.is-teaser) .book-review-avatar-link:focus-visible{outline:var(--rs-focus-width,2px) solid var(--rs-focus,var(--rs-accent));outline-offset:3px;}
.book-reader-reviews:not(.is-teaser) .book-review-identity{display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;justify-self:start;width:auto;min-width:0;}
.book-reader-reviews:not(.is-teaser) .book-review-user{display:inline-block;align-self:flex-start;width:auto;max-width:100%;}
.book-review-vote .book-review-vote-button{display:inline-grid;place-items:center;}
.book-review-vote .book-review-vote-button>span{display:grid;place-items:center;width:1em;height:1em;margin:0;padding:0;line-height:1;text-align:center;}
.book-review-vote .book-review-vote-button[value="-1"]>span{transform:translateY(-.035em);}
@media(max-width:600px){
 .book-reader-reviews:not(.is-teaser) .book-review-avatar-link{width:2rem;height:2rem;}
}

/* Book Page v2 4.7.6: adaptive hero title scale.
   Preserve impact for short titles while reducing long titles before wrapping becomes awkward. */
.book-identity-copy h1{overflow-wrap:break-word;word-break:normal;}
.book-identity-copy h1.book-title--medium{font-size:clamp(2.5rem,5.25vw,4rem);line-height:1;}
.book-identity-copy h1.book-title--long{font-size:clamp(2.2rem,4.55vw,3.45rem);line-height:1.01;max-width:18ch;}
.book-identity-copy h1.book-title--long-word{font-size:clamp(2.15rem,4.35vw,3.35rem);line-height:1.01;max-width:none;}
@media(max-width:760px){
 .book-identity-copy h1.book-title--medium{font-size:clamp(1.7rem,7.6vw,2.35rem);}
 .book-identity-copy h1.book-title--long{font-size:clamp(1.55rem,7vw,2.15rem);max-width:none;}
 .book-identity-copy h1.book-title--long-word{font-size:clamp(1.5rem,6.8vw,2.05rem);max-width:none;}
}
@media(max-width:520px){
 .book-identity-copy h1.book-title--medium{font-size:clamp(1.75rem,9.6vw,2.4rem);}
 .book-identity-copy h1.book-title--long{font-size:clamp(1.6rem,8.8vw,2.15rem);}
 .book-identity-copy h1.book-title--long-word{font-size:clamp(1.55rem,8.5vw,2.05rem);}
}

/* Book Page v2 4.7.7: Readers community + personal contribution composition.
   Desktop pairs community evidence with the viewer's next meaningful Reading action.
   Reading owns rating/review state and writes; Library owns this presentation only. */
.book-reader-community-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(18rem,1fr);
  align-items:start;
  gap:clamp(2rem,4vw,4rem);
  width:100%;
  margin-top:clamp(2.5rem,5vw,3.5rem);
}
.book-reader-community-grid.has-no-distribution{grid-template-columns:minmax(0,42rem);}
.book-reader-community-grid>.book-context-section{margin:0;min-width:0;}
.book-reader-community-grid .book-rating-distribution,
.book-reader-community-grid .book-rating-distribution .book-context-heading,
.book-reader-community-grid .book-rating-distribution .book-reviews-intro,
.book-reader-community-grid .book-rating-distribution-bars,
.book-reader-community-grid .book-rating-readers-help{max-width:none;width:100%;}
.book-reader-community-grid .book-rating-distribution-bars{margin-top:1rem;}
.book-reader-community-grid .book-review-invitation{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:1.15rem;
  max-width:none;
  margin:0;
  padding:1.45rem 1.5rem;
}
.book-reader-community-grid .book-review-invitation-copy{display:grid;gap:.45rem;}
.book-reader-community-grid .book-review-invitation h2{margin:0;font-size:clamp(1.3rem,2.2vw,1.75rem);line-height:1.15;}
.book-reader-community-grid .book-review-invitation p{max-width:46ch;margin:0;}
.book-reader-community-grid .book-review-invitation-action{justify-self:auto;margin-top:auto;padding-top:.15rem;}
.book-reader-community-grid .book-review-invitation-action .rs-button{white-space:normal;}
.book-review-invitation-rating{display:flex;align-items:center;min-height:1.8rem;margin:.05rem 0 .15rem;}
.book-review-invitation-rating .book-rating-stars{font-size:1.08rem;}
.book-review-invitation.is-first-review-opportunity{background:color-mix(in srgb,var(--rs-surface-1) 84%,transparent);}
.book-reader-community-grid + .book-reader-reviews:not(.is-teaser){margin-top:clamp(1.8rem,3.5vw,2.6rem);}
.book-reader-community-grid + .book-reader-reviews:not(.is-teaser) .book-reviews-intro{margin-bottom:.75rem;}

@media(max-width:900px){
  .book-reader-community-grid{grid-template-columns:1fr;gap:1.75rem;}
  .book-reader-community-grid.has-no-distribution{grid-template-columns:1fr;}
  .book-reader-community-grid .book-review-invitation{max-width:none;}
}
@media(max-width:700px){
  .book-reader-community-grid{margin-top:2.25rem;gap:1.5rem;}
  .book-reader-community-grid .book-review-invitation{padding:1.15rem 1.1rem;}
  .book-reader-community-grid + .book-reader-reviews:not(.is-teaser){margin-top:2rem;}
}


/* Book Page v2 4.7.8: Readers completion pass.
   Upcoming anticipation uses the same community composition as published ratings.
   Review CTAs on Readers open the canonical Reading-owned editor in place. */
.book-anticipation-own-rating{gap:.6rem;}
.book-anticipation-own-rating .book-anticipation-stars{font-size:1.05rem;letter-spacing:.06em;}
.book-review-invitation-action>[data-book-review-action]{display:contents;}

/* 4.7.11: Book review editor uses the full editing canvas. Reading-view prose width rules must not leak into contenteditable. */
.book-review-dialog-editor [data-review-editor-area]{box-sizing:border-box;width:100%;max-width:none;}
.book-review-dialog-editor [data-review-editor-area]>*{max-width:none!important;width:auto;}
.book-review-dialog-editor [data-review-editor-area] p,.book-review-dialog-editor [data-review-editor-area] div{max-width:none!important;}
.book-review-dialog-editor [data-review-rich-editor] [data-review-fullscreen]{display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap;}


/* 4.7.16: member-only legacy Book links, kept compact even when historical records are link-heavy. */
.book-external-links{margin-top:.9rem;display:flex;flex-wrap:wrap;align-items:baseline;gap:.45rem .8rem;color:var(--rs-text-secondary);font-size:.86rem;}
.book-external-links__label{font-weight:700;color:var(--rs-text-primary);}
.book-external-links__items{display:flex;flex-wrap:wrap;gap:.35rem .75rem;}
.book-external-links__items a{text-decoration:none;}
.book-external-links__items a:hover{text-decoration:underline;text-underline-offset:.18em;}
.book-external-links__more{flex-basis:100%;margin-left:0;}
.book-external-links__more summary{width:max-content;cursor:pointer;color:var(--rs-text-secondary);font-weight:650;}
.book-external-links__more[open] .book-external-links__items{margin-top:.45rem;}

/* Book Page v2 4.7.18: deep Details view for contributor and bibliographic context. */
.book-fact-people{display:flex;flex-wrap:wrap;gap:.15rem .4rem;align-items:baseline;}
.book-details-intro{max-width:62rem;color:var(--rs-text-secondary);margin:.5rem 0 2rem;}
.book-details-groups{display:grid;gap:2rem;}
.book-details-group{padding-top:1.5rem;border-top:1px solid var(--rs-border-subtle);}
.book-details-group:first-child{padding-top:0;border-top:0;}
.book-details-group>h3,.book-details-links>h3{margin:0 0 1rem;font-size:1.15rem;}
.book-details-contributors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem;}
.book-contributor-detail{min-width:0;padding:1rem 1.05rem;border:1px solid var(--rs-border-subtle);border-radius:var(--rs-radius-md);background:var(--rs-surface-1);}
.book-contributor-detail h4{margin:0;font-size:1rem;}
.book-contributor-detail h4 a{text-decoration:none;}
.book-contributor-detail h4 a:hover{text-decoration:underline;text-underline-offset:.18em;}
.book-contributor-context{margin:.7rem 0 .35rem;color:var(--rs-text-secondary);font-size:.85rem;}
.book-contributor-books{margin:0;padding-left:1.1rem;display:grid;gap:.25rem;font-size:.9rem;}
.book-contributor-books span{color:var(--rs-text-secondary);}
.book-details-links{margin-top:2.25rem;padding-top:1.5rem;border-top:1px solid var(--rs-border-subtle);}
.book-details-links .book-external-links__items{gap:.5rem .9rem;}
.book-details-links .book-external-links__more{margin-top:.75rem;}
@media(max-width:700px){.book-details-contributors{grid-template-columns:1fr;}.book-details-intro{margin-bottom:1.5rem;}}


/* Book Page v2 4.7.19: contributor presentation tiers in Details. */
.book-details-group>h3{display:flex;align-items:center;gap:.5rem;}
.book-details-count{display:inline-grid;place-items:center;min-width:1.65rem;height:1.65rem;padding:0 .45rem;border:1px solid var(--rs-border-subtle);border-radius:999px;background:var(--rs-surface-1);color:var(--rs-text-secondary);font-size:.78rem;font-weight:var(--rs-weight-semibold);}
.book-contributor-compact-list{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .8rem;line-height:1.55;}
.book-contributor-compact-list a{font-weight:var(--rs-weight-semibold);text-decoration:none;}
.book-contributor-compact-list a:hover{text-decoration:underline;text-underline-offset:.18em;}
.book-contributor-compact-list a:not(:last-child)::after{content:"·";display:inline-block;margin-left:.8rem;color:var(--rs-text-muted);font-weight:var(--rs-weight-regular);pointer-events:none;}
.book-contributor-compact-more{margin-top:.75rem;}
.book-contributor-compact-more>summary{width:max-content;max-width:100%;cursor:pointer;color:var(--rs-link);font-weight:var(--rs-weight-semibold);}
.book-contributor-compact-more[open]>summary{margin-bottom:.75rem;}

/* Book Details finishing: content-sized enriched cards, provenance and admin link maintenance. */
.book-details-contributors{align-items:start;}
.book-contributor-detail{align-self:start;}
.book-details-section-heading{display:flex;align-items:center;gap:.75rem;margin:0 0 1rem;}
.book-details-section-heading h3{margin:0;}
.book-details-admin-label,.book-details-count{display:inline-flex;align-items:center;min-height:1.55rem;padding:0 .55rem;border:1px solid var(--rs-border-subtle);border-radius:999px;color:var(--rs-text-secondary);font-size:.78rem;font-weight:600;}
.book-details-notice{margin:.5rem 0 1rem;color:var(--rs-text-secondary);}
.book-details-notice.is-error{color:var(--rs-danger-text,var(--rs-text-primary));}
.book-link-admin{margin-top:1.25rem;border-top:1px solid var(--rs-border-subtle);padding-top:1rem;}
.book-link-admin>summary{cursor:pointer;font-weight:650;color:var(--rs-text-primary);}





.book-details-record{margin-top:2.25rem;padding-top:1.5rem;border-top:1px solid var(--rs-border-subtle);}
.book-details-record h3{margin:0 0 .65rem;font-size:1.15rem;}
.book-details-record p{margin:0;color:var(--rs-text-secondary);}
.book-details-record a{font-weight:650;text-decoration:none;}
.book-details-record a:hover{text-decoration:underline;text-underline-offset:.18em;}


/* Book Page v2 4.7.21: richer contributor context + quiet contextual link administration. */
.book-contributor-detail.has-image{display:grid;grid-template-columns:4.5rem minmax(0,1fr);gap:.9rem;align-items:start;}
.book-contributor-detail__image{display:block;width:4.5rem;aspect-ratio:3/4;border-radius:var(--rs-radius-sm);overflow:hidden;background:var(--rs-surface-2);}
.book-contributor-detail__image img{display:block;width:100%;height:100%;object-fit:cover;}
.book-contributor-detail__content{min-width:0;}
.book-contributor-intro{margin:.55rem 0 0;color:var(--rs-text-secondary);font-size:.9rem;line-height:1.5;}
.book-details-section-heading{justify-content:flex-start;}
.book-link-admin--inline{margin:0;padding:0;border:0;}
.book-link-admin--inline>summary{list-style:none;cursor:pointer;color:var(--rs-text-secondary);font-size:.85rem;font-weight:600;padding:.2rem .35rem;border-radius:var(--rs-radius-sm);}
.book-link-admin--inline>summary::-webkit-details-marker{display:none;}
.book-link-admin--inline>summary:hover{color:var(--rs-text-primary);}
.book-link-admin--inline>summary:focus-visible{outline:2px solid var(--rs-focus-ring);outline-offset:2px;}
.book-link-admin--inline[open]{flex-basis:100%;}
.book-link-admin--inline[open]>summary{width:max-content;margin-bottom:.8rem;}
.book-link-admin__body{margin-top:0;}
.book-link-admin__row{border-color:var(--rs-border-subtle);}



.book-link-admin__save{padding:.35rem .7rem;}
.book-link-admin__delete{display:inline-grid;place-items:center;width:2.25rem;height:2.25rem;border:0;border-radius:var(--rs-radius-sm);background:transparent;color:var(--rs-text-muted);font-size:1.25rem;cursor:pointer;}
.book-link-admin__delete:hover{background:var(--rs-surface-2);color:var(--rs-text-primary);}
.book-link-admin__delete:focus-visible{outline:2px solid var(--rs-focus-ring);outline-offset:2px;}



@media(max-width:700px){.book-contributor-detail.has-image{grid-template-columns:3.75rem minmax(0,1fr);}.book-contributor-detail__image{width:3.75rem;}.book-link-admin__row{grid-template-columns:1fr;}.book-link-admin__actions{justify-content:flex-start;}}
/* Book Page v2 4.7.22: Details link maintenance follows the Book Management form language. */
.book-link-admin__body{display:grid;gap:.75rem;}
.book-link-admin__row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.85rem;align-items:end;padding:1rem;border:1px solid var(--rs-border-subtle);border-radius:var(--rs-radius-md);background:var(--rs-surface-1);}
.book-link-admin__fields{display:grid;grid-template-columns:minmax(10rem,.55fr) minmax(16rem,1.45fr);gap:.75rem;min-width:0;}
.book-link-admin__row label{display:grid;gap:.4rem;min-width:0;color:var(--rs-text-secondary);font-size:.82rem;font-weight:600;}
.book-link-admin__row input{box-sizing:border-box;width:100%;min-width:0;min-height:2.75rem;padding:.65rem .8rem;border:1px solid var(--rs-border-strong,var(--rs-border-subtle));border-radius:var(--rs-radius-sm);background:var(--rs-surface-2);color:var(--rs-text-primary);font:inherit;}
.book-link-admin__row input::placeholder{color:var(--rs-text-muted);}
.book-link-admin__row input:focus{outline:2px solid var(--rs-focus-ring);outline-offset:1px;border-color:transparent;}
.book-link-admin__actions{display:flex;gap:.55rem;align-items:center;min-height:2.75rem;}
.book-link-admin__save{min-height:2.75rem;}
.book-link-admin__remove{border:0;background:transparent;color:var(--rs-text-secondary);font:inherit;font-weight:600;cursor:pointer;padding:.55rem .4rem;border-radius:var(--rs-radius-sm);}
.book-link-admin__remove:hover{color:var(--rs-text-primary);text-decoration:underline;text-underline-offset:.18em;}
.book-link-admin__remove:focus-visible{outline:2px solid var(--rs-focus-ring);outline-offset:2px;}
.book-link-admin__add{margin-top:.1rem;}
.book-link-admin__add>summary{width:max-content;cursor:pointer;color:var(--rs-text-secondary);font-size:.85rem;font-weight:650;padding:.3rem 0;}
.book-link-admin__add>summary:hover{color:var(--rs-text-primary);}
.book-link-admin__add[open]>summary{margin-bottom:.45rem;}
@media(max-width:800px){.book-link-admin__row{grid-template-columns:1fr;}.book-link-admin__fields{grid-template-columns:1fr;}.book-link-admin__actions{justify-content:flex-start;}}


/* Book Page v2 4.7.23: stable desktop cover alignment + publisher context in Details. */
@media(min-width:601px){.book-cover{align-self:start;}}
.book-details-publisher{margin-top:2.25rem;padding-top:1.5rem;border-top:1px solid var(--rs-border-subtle);}
.book-details-publisher>h3{margin:0 0 1rem;font-size:1.15rem;}
.book-publisher-context{max-width:52rem;padding:1rem 1.05rem;border:1px solid var(--rs-border-subtle);border-radius:var(--rs-radius-md);background:var(--rs-surface-1);}
.book-publisher-context h4{margin:0;font-size:1rem;}
.book-publisher-summary{margin:.55rem 0 0;color:var(--rs-text-secondary);line-height:1.5;}
.book-publisher-context-label{margin:.8rem 0 .35rem;color:var(--rs-text-secondary);font-size:.85rem;}
.book-publisher-books{margin:0;padding-left:1.1rem;display:grid;gap:.25rem;font-size:.9rem;}
.book-publisher-books span{color:var(--rs-text-secondary);}

/* Book Page v2 4.7.24: align the desktop cover with the book identity, not the hero/navigation edge. */
@media(min-width:601px){
  .book-cover,.book-identity-copy{align-self:start;}
}

/* Book Page v2 4.7.25: final mobile production pass.
   Mobile is a deliberate single-column reading surface. Shared Design System
   components keep ownership of their visual states; Library owns layout only. */
@media(max-width:600px){
  .rs-book-page{width:100%;padding:0 .85rem 3.5rem;}

  /* Hero: keep the book identity contiguous. Series context leads, cover follows,
     then title/author/community/meta. Previous/Next is secondary navigation after it. */
  .book-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:0;min-height:0;margin:0 -.2rem;}
  .book-identity-copy{display:contents;}
  .book-series{grid-column:1;align-self:auto;font-size:.72rem;line-height:1.35;text-align:left;}
  .book-cover{grid-column:1;grid-row:auto;max-width:225px;margin:0 auto 1.15rem;justify-self:center;align-self:start;}
  .book-cover img{width:100%;height:auto;}
  .book-identity-copy h1{grid-column:1;order:3;max-width:none;margin:0 0 .45rem;letter-spacing:-.035em;text-align:left;overflow-wrap:break-word;word-break:normal;}
  
  .book-identity-copy h1.book-title--long{font-size:clamp(1.7rem,8.9vw,2.4rem);max-width:none;}
  .book-identity-copy h1.book-title--long-word{font-size:clamp(1.65rem,8.6vw,2.3rem);max-width:none;}
  .book-subtitle{grid-column:1;order:4;margin:0 0 .45rem;font-size:1rem;line-height:1.4;}
  .book-authors{grid-column:1;order:5;margin:0 0 .85rem;font-size:1rem;line-height:1.45;}
  .book-community-rating{grid-column:1;order:6;margin:0 0 .85rem;gap:.35rem .55rem;flex-wrap:wrap;}
  .book-community-rating-count{flex-basis:auto;padding-left:0;}
  .book-community-rating-count small{font-size:.72rem;line-height:1.2;white-space:normal;}
  .book-genres{grid-column:1;order:7;display:flex;flex-wrap:wrap;overflow:visible;gap:.45rem;margin:0 0 1rem;padding:0;}
  .book-genre{flex:0 0 auto;min-height:2.1rem;padding:.22rem .62rem;font-size:.76rem;}
  .book-facts{grid-column:1;order:8;width:100%;margin:0;padding-top:.75rem;border-top:1px solid var(--rs-border-subtle);}
  .book-facts>div{padding:.38rem 0;}
  .book-facts dt{min-width:0;font-size:.9rem;line-height:1.45;}
  .book-facts dd{min-width:0;margin:0;font-size:.95rem;line-height:1.45;text-align:left;overflow-wrap:anywhere;word-break:normal;}
  .book-fact-people{display:flex;flex-wrap:wrap;gap:.1rem .35rem;}
  .book-hero-commerce{grid-column:1;order:9;min-width:0;margin:.9rem 0 0;font-size:.9rem;line-height:1.35;}
  .book-commerce-shortcut{display:inline-flex;align-items:center;max-width:100%;min-height:2.5rem;margin:-.35rem;padding:.35rem;gap:.3rem;white-space:nowrap;overflow-wrap:normal;word-break:normal;}
  .book-commerce-shortcut__store,.book-commerce-shortcut__separator,.book-commerce-shortcut__action,.book-commerce-shortcut__external{display:inline-block;white-space:nowrap;word-break:normal;overflow-wrap:normal;}
  .book-hero-series-nav{position:static;grid-column:1;grid-row:auto;border-bottom:0;pointer-events:auto;}
  
  
  .book-hero-series-nav small{font-size:.62rem;}.book-hero-series-nav span{display:none;}

  /* Shared section navigation remains visually Design System-owned. Only ensure the
     consumer cannot squeeze it into the viewport. */
  .rs-section-nav{max-width:100%;}
  .rs-section-nav__scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
  .rs-section-nav__scroll::-webkit-scrollbar{display:none;}
  .rs-section-nav__list{width:max-content;min-width:100%;}
  .rs-section-nav__link{white-space:nowrap;}
  .book-view-anchor{scroll-margin-top:4rem;}

  /* Overview becomes a natural reading sequence. */
  .book-overview-layout{display:flex;flex-direction:column;}
  .book-overview-main,.book-overview-side{width:100%;min-width:0;}
  .book-overview-side{position:static;order:0;margin:0;}
  .book-description{width:100%;max-width:none;margin:0;padding:0;}
  .book-description h2{margin-bottom:.8rem;font-size:clamp(1.7rem,8vw,2.15rem);line-height:1.08;}
  .book-description-content{font-size:1rem;line-height:1.68;}
  .book-description-content>p:first-child{font-size:1rem;line-height:1.68;font-weight:inherit;}
  .book-description-content p{margin-block:0 1rem;}

  /* Reading card: no desktop two-column assumptions. */
  .book-reading,.book-guest-reading{width:100%;max-width:none;margin:0;border-radius:.9rem;}
  .book-reading .book-section-heading{display:block;margin-bottom:.75rem;}
  .book-reading .book-section-heading p{margin-top:.3rem;}
  .book-reading-actions{display:flex;flex-wrap:wrap;gap:.45rem;}
  .book-reading-actions .rs-button{min-height:44px;padding-inline:.65rem;}
  .book-reading-edit-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;margin-top:1rem;padding-top:1rem;}
  .book-rating-form{grid-column:1;}
  .book-progress-fields{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:.4rem;}
  .book-reading-collection-list{max-width:100%;}

  /* Purchase panel and all store actions stay usable without horizontal page overflow. */
  .book-purchase{grid-template-columns:minmax(0,1fr);gap:1rem;width:100%;margin:2rem 0 0;}
  .book-purchase-formats{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;}
  .book-purchase-formats::-webkit-scrollbar{display:none;}
  .book-purchase-formats [role="tab"]{white-space:nowrap;}
  .book-purchase-group{grid-template-columns:1fr;gap:.35rem;}
  .book-purchase-links{max-width:100%;flex-wrap:wrap;overflow:visible;margin:0;padding:0;}
  .book-purchase-links a{flex:0 1 auto;max-width:100%;}
  

  /* Community and Readers: evidence first, then contribution/reviews. */
  .book-community-pulse{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-radius:.9rem;}
  .book-pulse-copy{grid-column:1/-1;padding:0 0 .65rem;}
  .book-pulse-copy>strong{font-size:1.08rem;}.book-pulse-copy p{display:none;}
  .book-pulse-stat,.book-pulse-stat:first-of-type{grid-column:auto;min-width:0;padding:.55rem .25rem;border-top:1px solid var(--rs-border-subtle);border-left:0;}
  .book-pulse-stat+.book-pulse-stat{border-left:1px solid var(--rs-border-subtle);}
  .book-pulse-stat strong{font-size:clamp(1.15rem,6vw,1.45rem);}.book-pulse-stat>span{font-size:.72rem;}.book-pulse-stat small{font-size:.56rem;line-height:1.2;letter-spacing:.02em;}
  .book-reader-community-grid{grid-template-columns:minmax(0,1fr);gap:1rem;}
  .book-reader-community-grid .book-rating-distribution,.book-reader-community-grid .book-review-invitation{width:100%;max-width:none;}
  .book-rating-distribution-row,.book-rating-distribution-row.is-interactive{padding-inline:0;}
  .book-reader-reviews:not(.is-teaser) .book-review{padding:1.1rem 0 1.25rem;}
  .book-reader-reviews:not(.is-teaser) .book-review-byline{grid-template-columns:auto minmax(0,1fr);gap:.6rem;}
  .book-reader-reviews:not(.is-teaser) .book-review-score{grid-column:2;margin:0;}
  .book-review-vote{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;}
  .book-review-staff-signal{max-width:100%;overflow-wrap:anywhere;}

  /* Series and Author deep views use one content axis. */
  .book-series-detail,.book-author-detail,.book-series-journey,.book-author-series,.book-author-bibliography{width:100%;max-width:none;}
  
  .book-author-detail-media img{max-height:120px;}
  .book-author-biography{width:100%;max-width:none;}
  .book-series-detail .book-series-stats,.book-author-detail>.book-author-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;}
  .book-entity-community{width:100%;max-width:none;}
  .book-entity-meta{align-items:flex-start;flex-direction:column;gap:.2rem;}
  .book-entity-meta span+span::before{content:none;margin:0;}

  /* Details: cards, contributor media, publisher and link editor must never force width. */
  .book-details-intro{margin-bottom:1.4rem;}
  .book-details-groups{gap:1.5rem;}
  .book-details-group{padding-top:1.25rem;}
  .book-details-contributors{grid-template-columns:minmax(0,1fr);gap:.75rem;}
  .book-contributor-detail,.book-publisher-context,.book-link-admin__row{max-width:100%;min-width:0;}
  .book-contributor-detail.has-image{grid-template-columns:3.5rem minmax(0,1fr);gap:.75rem;}
  .book-contributor-detail__image{width:3.5rem;}
  .book-contributor-detail__body,.book-contributor-detail__body *{min-width:0;}
  .book-details-compact-people{line-height:1.7;}
  .book-link-admin__row,.book-link-admin__fields{grid-template-columns:minmax(0,1fr);gap:.65rem;}
  .book-link-admin__actions{justify-content:flex-start;flex-wrap:wrap;}
  .book-link-admin__row input{width:100%;min-width:0;}
  .book-details-links,.book-details-publisher,.book-details-record{margin-top:1.75rem;padding-top:1.25rem;}

  /* Horizontal discovery rails intentionally continue beyond the viewport. */
  .book-cover-row{grid-auto-columns:minmax(118px,40vw);gap:.8rem;scroll-snap-type:x mandatory;}
  .book-cover-card{scroll-snap-align:start;}
  .book-carousel-arrow{display:none!important;}

  /* Review editor is a viewport-safe sheet on phones. */
  .book-review-dialog{width:calc(100vw - 12px);max-width:none;max-height:calc(100dvh - 12px);margin:auto;border-radius:10px;}
  .book-review-dialog-shell{max-height:calc(100dvh - 14px);}
  .book-review-dialog-head,.book-review-dialog-form{padding:14px;}
  .book-review-dialog-editor .bookshelf-rich-review-area{min-height:38dvh;}
  .book-review-dialog-options{align-items:stretch;flex-direction:column;}
  .book-review-dialog-actions{align-items:stretch;flex-direction:column;}
  .book-review-dialog-actions .rs-button{width:100%;min-height:44px;}
  .book-review-dialog-actions>span{display:none;}
}

@media(max-width:390px){
  .rs-book-page{padding-inline:.7rem;}
  .book-hero{margin-inline:-.1rem;padding-inline:.7rem;}
  .book-cover{width:min(62vw,210px);}
  .book-identity-copy h1{font-size:clamp(1.85rem,10vw,2.55rem);}
  .book-identity-copy h1.book-title--medium{font-size:clamp(1.72rem,9.4vw,2.35rem);}
  .book-identity-copy h1.book-title--long,.book-identity-copy h1.book-title--long-word{font-size:clamp(1.58rem,8.7vw,2.15rem);}
  .book-facts>div{grid-template-columns:minmax(6.5rem,34%) minmax(0,1fr);gap:.55rem;}
  .book-commerce-shortcut{font-size:.86rem;gap:.25rem;}
  .book-community-pulse{padding-inline:.55rem;}
  .book-pulse-stat{padding-inline:.15rem;}
  .book-pulse-stat strong{font-size:1.15rem;}
  .book-cover-row{grid-auto-columns:minmax(112px,43vw);}
}

@media(max-width:340px){
  .book-facts>div{grid-template-columns:1fr;gap:.08rem;padding:.4rem 0;}
  .book-facts dd{margin-top:0;}
  .book-commerce-shortcut{white-space:normal;flex-wrap:wrap;row-gap:.08rem;}
  .book-commerce-shortcut__store,.book-commerce-shortcut__separator,.book-commerce-shortcut__action,.book-commerce-shortcut__external{white-space:nowrap;}
  .book-community-pulse{grid-template-columns:1fr;}
  .book-pulse-stat,.book-pulse-stat:first-of-type{grid-column:1;border-left:0!important;}
  .book-pulse-stat+.book-pulse-stat{border-top:1px solid var(--rs-border-subtle);}
}

/* Book Page v2 4.8.0: canonical mobile-first architecture pass.
   Mobile keeps the complete capability while prioritising the immediate reading flow.
   Desktop remains enriched and unchanged unless a shared rule is explicitly required. */
.book-series-nav-part{font:inherit;color:inherit;}
.book-description-more{display:none;}

@media(max-width:600px){
  /* The series navigator is a purpose-built touch control on mobile, not a compressed
     desktop Previous/Next treatment. It remains ordinary canonical book links. */
  .book-hero-series-nav{border-top:1px solid var(--rs-border-subtle);}
  .book-hero-series-nav>a{justify-content:center;}
  .book-hero-series-nav>a.is-previous{align-items:flex-start;}
  .book-hero-series-nav>a.is-next{align-items:flex-end;}
  
  .book-hero-series-nav strong{display:-webkit-box;width:100%;max-width:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-weight:var(--rs-weight-semibold);}
  .book-hero-series-nav .book-series-nav-part{font-weight:800;color:var(--rs-text-secondary);}
  .book-hero-series-nav .book-series-nav-context{display:none;}
  .book-hero-series-nav .book-series-nav-empty{display:block;min-width:0;}
  .book-hero-series-nav:not(:has(.is-previous)) .is-next{grid-column:2;}
  .book-hero-series-nav:not(:has(.is-next)) .is-previous{grid-column:1;}

  /* Long descriptions stay fully present in the document but are progressively
     disclosed on small screens. JS only changes presentation, never fetches content. */
  .book-description-disclosure{position:relative;}
  .book-description-content{position:relative;max-height:21rem;overflow:hidden;}
  .book-description-disclosure:not(.is-expanded) .book-description-content::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5.25rem;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--rs-bg-page));}
  .book-description-disclosure.is-expanded .book-description-content{max-height:none;overflow:visible;}
  .book-description-disclosure.is-expanded .book-description-content::after{display:none;}
  .book-description-more{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;margin:.35rem 0 0;padding:.35rem 0;border:0;background:transparent;color:var(--rs-link,var(--rs-text-primary));font:inherit;font-weight:var(--rs-weight-semibold);cursor:pointer;}
  .book-description-more[hidden]{display:none;}

  /* Keep primary actions easy to hit. Secondary prose is allowed to wrap naturally. */
  
  .book-external-links__items a{display:inline-flex;align-items:center;min-height:40px;margin-right:.7rem;}
  .book-details-section-heading{align-items:center;gap:.65rem;}
  .book-link-admin>summary,.book-link-admin__add>summary{min-height:44px;display:flex;align-items:center;}

  /* Deep-view headings should not force actions off-screen. */
  .book-context-heading{align-items:flex-start;flex-wrap:wrap;}
  .book-context-heading>a{display:inline-flex;align-items:center;padding-top:0;}
}

@media(max-width:360px){
  .book-hero-series-nav{gap:.45rem;}
  
  .book-hero-series-nav .book-series-nav-empty{display:none;}
  .book-hero-series-nav>a{min-height:58px;}
}

/* Book Page v2 4.8.1: mobile real-data validation corrections.
   Fixes discovered on a production-size iPhone viewport: prevent page-level horizontal
   drift, keep Author/Series prose compact, and turn large author collections into
   intentional touch rails instead of very long desktop stacks. */
@media(max-width:600px){
  
  .book-context-section,.book-entity-detail,.book-author-identity,.book-author-detail-main,.book-entity-description{min-width:0;max-width:100%;}

  /* Series/author biographies are secondary context on phones. Keep the canonical
     HTML present, but disclose long prose just like the Book description. */
  .book-entity-description-disclosure{position:relative;}
  .book-entity-description-disclosure .book-entity-description-content{position:relative;max-height:18rem;overflow:hidden;}
  .book-entity-description-disclosure:not(.is-expanded) .book-entity-description-content::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4.75rem;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--rs-bg-page));}
  .book-entity-description-disclosure.is-expanded .book-entity-description-content{max-height:none;overflow:visible;}
  .book-entity-description-disclosure.is-expanded .book-entity-description-content::after{display:none;}
  .book-entity-description-content,.book-entity-description-content p{max-width:100%;overflow-wrap:break-word;word-break:normal;}

  /* Author identity: image and identity form the compact header; biography owns a
     full-width row below it. This removes the narrow text column seen in real data. */
  .book-author-identity{align-items:start;}
  .book-author-detail-main{min-width:0;}
  .book-author-detail-main .book-context-heading{display:block;min-width:0;}
  .book-author-detail-main .book-context-heading h2{max-width:100%;margin-top:.15rem;overflow-wrap:break-word;}
  
  .book-author-biography{grid-column:1/-1;}

  /* Large author series collections are exploration rails on mobile. A single huge
     stacked card per series made prolific authors unnecessarily many screens long. */
  .book-author-series{overflow:visible;}
  .book-author-series .book-series-card-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;gap:.75rem;padding:0 .85rem .35rem 0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;scrollbar-width:none;}
  .book-author-series .book-series-card-grid::-webkit-scrollbar{display:none;}
  .book-author-series .book-series-card{scroll-snap-align:start;}
  .book-author-series .book-series-card-covers{height:92px;}
  .book-author-series .book-series-card-copy{padding:.75rem .85rem .85rem;}

  /* Keep long section headings/actions inside the viewport. */
  .book-series-detail>h2,.book-series-journey h2,.book-author-series h3,.book-author-bibliography h3{max-width:100%;overflow-wrap:break-word;}
  

  /* Purchase remains complete, but store buttons should not dominate the viewport. */
  .book-purchase-links .rs-button{justify-content:space-between;min-width:0;padding-inline:.85rem;}
}

@media(max-width:380px){
  .book-author-series .book-series-card-grid{grid-auto-columns:minmax(215px,84vw);}
  .book-author-identity{grid-template-columns:64px minmax(0,1fr);gap:.7rem;}
  .book-author-detail-media img{max-height:104px;}
  .book-author-detail-main .book-context-heading h2{font-size:clamp(1.7rem,8.5vw,2.15rem);}
}

/* Book Page v2 4.9.0: mobile real-device UX consolidation.
   One coherent phone pass based on full-page production captures. The goal is to
   reduce oversized desktop carry-over, contain intentional rails, and keep the
   page on one stable vertical axis without changing canonical data or desktop. */
@media(max-width:600px){
  .rs-book-page,.rs-book-page *,.rs-book-page *::before,.rs-book-page *::after{box-sizing:border-box;}
  .rs-book-page{max-width:100%;padding-inline:.75rem;overflow-x:hidden;}
  .book-hero{margin-inline:0;padding:1rem .1rem 1.15rem;border-radius:0;background:transparent;overflow:visible;}
  .book-cover{width:min(54vw,210px);margin-bottom:1rem;}
  .book-identity-copy h1{font-size:clamp(1.9rem,9.5vw,2.65rem);line-height:1.03;}
  .book-identity-copy h1.book-title--medium{font-size:clamp(1.8rem,9vw,2.45rem);}
  .book-identity-copy h1.book-title--long,.book-identity-copy h1.book-title--long-word{font-size:clamp(1.65rem,8.4vw,2.2rem);}
  .book-community-rating{width:auto;max-width:max-content;}

  /* Mobile Series Navigator: compact adjacent-book navigation rather than two
     large desktop-style cards. The book name is the primary target. */
  .book-hero-series-nav{margin-top:.9rem;padding-top:.75rem;}
  .book-hero-series-nav>a{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:.42rem;align-content:center;}
  .book-hero-series-nav>a.is-next{grid-template-columns:minmax(0,1fr) auto;}
  .book-hero-series-nav .book-series-nav-direction{grid-column:1/-1;}
  .book-hero-series-nav strong{grid-column:1/-1;font-size:.75rem;line-height:1.24;}
  

  /* Shared tab bar stays horizontally scrollable but no longer feels detached
     from the content that follows it. */
  .rs-section-nav{margin-top:.05rem;margin-inline:-.75rem;padding-inline:.75rem;}
  .book-overview-layout{margin-top:1.4rem;gap:1.3rem;}

  /* Reading summary and cards use quieter mobile density. */
  .book-reading-mobile-summary{border-radius:.75rem;}
  .book-reading,.book-guest-reading{padding:.9rem .85rem;}
  .book-reading-actions,.book-reading .bookshelf-owner-states{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem;}
  .book-reading-actions form,.book-reading .bookshelf-owner-states form,.book-reading .book-reading-now{display:block;width:100%;}
  .book-reading-actions .rs-button,.book-reading .bookshelf-owner-states .rs-button,.book-reading .book-reading-now .rs-button{width:100%;justify-content:flex-start;}
  .book-star-rating{max-width:100%;justify-content:flex-start;}

  /* Purchase remains complete but becomes a compact 2x2 store matrix instead of
     four oversized independent cards. */
  .book-purchase{padding:.9rem .85rem 1rem;border-radius:.8rem;}
  .book-purchase-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;}
  .book-purchase-links .rs-button{width:100%;min-height:48px;padding:.55rem .65rem;font-size:.9rem;}
  .book-purchase-note{font-size:.65rem;line-height:1.42;}

  /* Community evidence should fit a phone at a glance. */
  .book-community-pulse{margin-top:1.6rem;padding:.72rem .6rem;}
  .book-pulse-stat,.book-pulse-stat:first-of-type{min-height:58px;}
  .book-rating-distribution{max-width:100%;overflow:hidden;}
  .book-rating-distribution-bars{max-width:100%;}
  .book-rating-distribution-row,.book-rating-distribution-row.is-interactive{grid-template-columns:1.35rem minmax(0,1fr) 1.75rem;gap:.38rem;}
  .book-review-invitation{padding:1rem!important;}

  /* Deep views: force all prose and evidence to the same content axis. The prior
     clip hid overflow but could still let wide descendants paint beyond the page. */
  .book-context-section{width:100%;max-width:100%;margin-top:2.75rem;overflow:visible;}
  .book-entity-detail,.book-series-detail,.book-author-detail,.book-author-identity,.book-author-detail-main,.book-entity-description,.book-entity-description-content,.book-entity-description-content>*{width:auto;min-width:0;max-width:100%;}
  .book-entity-description-content{overflow-wrap:anywhere;}
  .book-entity-description-content img,.book-entity-description-content iframe,.book-entity-description-content table{max-width:100%;height:auto;}
  .book-series-detail>h2{max-width:100%;font-size:clamp(1.95rem,9vw,2.55rem);line-height:1.04;}
  .book-series-detail .book-entity-community,.book-author-detail .book-entity-community{max-width:100%;padding:.85rem .9rem;}
  .book-entity-community{grid-template-columns:minmax(0,1fr);gap:.55rem;}
  .book-entity-community-copy{min-width:0;}
  .book-series-detail .book-series-stats,.book-author-detail>.book-author-stats{max-width:100%;}

  /* Author header: photo + identity remain compact; CTA stays on one line instead
     of dropping its arrow to a separate visual row. */
  .book-author-identity{grid-template-columns:68px minmax(0,1fr);gap:.75rem;}
  .book-author-detail-main .book-context-heading h2{font-size:clamp(1.75rem,8.2vw,2.2rem);line-height:1.02;}
  .book-author-detail-main .book-context-heading>a{display:inline-flex;width:auto;min-height:36px;margin-top:.35rem;padding:0;white-space:nowrap;font-size:.78rem;}
  .book-author-biography{margin-top:.65rem;}

  /* Every discovery collection owns its overflow. Nothing may widen the page. */
  .book-cover-scroller,.book-series-journey,.book-similar-reads,.book-author-series,.book-author-bibliography{width:100%;max-width:100%;min-width:0;overflow:hidden;}
  .book-cover-row{width:100%;max-width:100%;margin-right:0;padding-right:.35rem;overflow-x:auto;overflow-y:hidden;}
  .book-series-journey:not(.is-teaser) .book-cover-row{grid-auto-columns:minmax(132px,42vw);gap:.75rem;}
  .book-author-series .book-series-card-grid{width:100%;max-width:100%;margin-right:0;padding-right:.35rem;grid-auto-columns:minmax(215px,76vw);}
  .book-author-bibliography .book-cover-row,.book-recommendation-row{grid-auto-columns:minmax(118px,38vw);}
  .book-context-heading{gap:.4rem .65rem;margin-bottom:.85rem;}
  .book-context-heading h2{font-size:clamp(1.75rem,8vw,2.25rem);line-height:1.06;}
  .book-context-heading>a{min-height:36px;font-size:.78rem;white-space:nowrap;}

  /* Details/admin controls inherit the same stable width contract. */
  .book-details-group,.book-contributor-detail,.book-publisher-context,.book-link-admin,.book-link-admin__row,.book-link-admin__fields{width:100%;max-width:100%;min-width:0;}
  .book-link-admin input,.book-link-admin select,.book-link-admin textarea{max-width:100%;}
}

@media(max-width:360px){
  .rs-book-page{padding-inline:.65rem;}
  .rs-section-nav{margin-inline:-.65rem;padding-inline:.65rem;}
  .book-cover{width:min(58vw,195px);}
  .book-purchase-links{grid-template-columns:1fr;}
  .book-reading-actions,.book-reading .bookshelf-owner-states{grid-template-columns:1fr;}
  .book-hero-series-nav{grid-template-columns:1fr 1fr;}
  .book-hero-series-nav>a.is-previous,.book-hero-series-nav>a.is-next{grid-column:auto;align-items:stretch;text-align:inherit;}
  .book-hero-series-nav>a.is-next{text-align:right;}
  .book-series-journey:not(.is-teaser) .book-cover-row,.book-author-bibliography .book-cover-row,.book-recommendation-row{grid-auto-columns:minmax(112px,42vw);}
}

/* Book Page v2 4.10.0: mobile series navigation experiment.
   Desktop keeps the richer adjacent-book treatment. Phones use intentionally
   lightweight Previous/Next links; swipe is progressive enhancement only. */
@media(max-width:600px){
  .book-hero-series-nav{
    order:10;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:center;
    gap:1rem;
    width:100%;
    margin:.8rem 0 0;
    padding:.3rem 0 0;
    border:0;
  }
  .book-hero-series-nav>a{
    display:flex;
    align-items:center;
    width:auto;
    max-width:none;
    min-width:0;
    min-height:48px;
    padding:.35rem 0;
    border:0;
    border-radius:0;
    background:transparent;
    color:var(--rs-text-secondary);
    text-decoration:none;
    touch-action:manipulation;
  }
  .book-hero-series-nav>a.is-previous{grid-column:1;justify-self:start;text-align:left;}
  .book-hero-series-nav>a.is-next{grid-column:2;justify-self:end;text-align:right;}
  .book-hero-series-nav .book-series-nav-direction{
    display:block;
    width:auto;
    margin:0;
    color:var(--rs-text-secondary);
    font-size:.82rem;
    font-weight:650;
    line-height:1.2;
    letter-spacing:0;
    text-transform:none;
    white-space:nowrap;
  }
  .book-hero-series-nav strong,
  .book-hero-series-nav .book-series-nav-context,
  .book-hero-series-nav .book-series-nav-empty{display:none;}
  .book-hero-series-nav>a:hover .book-series-nav-direction,
  .book-hero-series-nav>a:focus-visible .book-series-nav-direction{text-decoration:underline;text-underline-offset:.2em;}
  .book-hero-series-nav>a:active{background:transparent;opacity:.7;}
}


/* Book Page v2 4.10.2: mobile cover-edge series navigation.
   Real-device validation rejected page-level swipe: it conflicts conceptually with
   browser gestures and the Book Page's own horizontal rails. Mobile therefore uses
   ordinary adjacent-book anchors beside the cover; desktop keeps its richer labels. */
.book-cover-series-nav{display:none;}

/* Desktop adjacent-book hover is directional rather than legacy underlining. */
@media(min-width:601px){
  .book-hero-series-nav>a{transition:transform 170ms ease,color 170ms ease,opacity 170ms ease;}
  .book-hero-series-nav>a:hover strong,.book-hero-series-nav>a:focus-visible strong{text-decoration:none;}
  .book-hero-series-nav>a.is-previous:hover{transform:translateX(-3px);}
  .book-hero-series-nav>a.is-next:hover{transform:translateX(3px);}
  .book-hero-series-nav>a:hover small{color:var(--rs-text-secondary);}
  .book-hero-series-nav>a:focus-visible{outline:2px solid currentColor;outline-offset:5px;border-radius:.2rem;}
}

@media(max-width:600px){
  /* The desktop Previous/Next row is intentionally absent on phones. */
  .book-hero>.book-hero-series-nav{display:none;}

  /* Cover remains centered independently of which adjacent links exist. The nav
     overlays a symmetric coordinate space and missing directions simply do not render. */
  .book-cover{position:relative;isolation:isolate;}
  .book-cover-series-nav{display:block;position:absolute;z-index:3;inset:0;pointer-events:none;}
  .book-cover-series-nav>a{
    position:absolute;top:50%;display:grid;place-items:center;
    border:0;border-radius:999px;background:transparent;
    text-decoration:none;pointer-events:auto;touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;}
  
  
  .book-cover-series-chevron{display:block;border-top:3px solid currentColor;border-right:3px solid currentColor;}
  .book-cover-series-nav .is-previous .book-cover-series-chevron{transform:rotate(-135deg);}
  .book-cover-series-nav .is-next .book-cover-series-chevron{transform:rotate(45deg);}
  
  .book-cover-series-nav>a:focus-visible{outline:2px solid currentColor;outline-offset:2px;background:color-mix(in srgb,var(--rs-surface-2) 70%,transparent);}
}




/* Book Page v2 4.10.3: real-device cover-navigation polish.
   Keep the cover as the fixed visual anchor while making adjacent-series controls
   easier to discover and tap without turning them into button chrome. */
@media(max-width:600px){
  .book-cover-series-nav>a{
    
    
    
    
    transition:color 160ms ease,background-color 160ms ease,transform 160ms ease,opacity 160ms ease;
  }
  
  
  
  .book-cover-series-nav>a:active{
    color:var(--rs-text-primary);
    
  }
  .book-cover-series-nav>a.is-previous:active{transform:translateX(-3px);}
  .book-cover-series-nav>a.is-next:active{transform:translateX(3px);}
}



@media(prefers-reduced-motion:reduce){
  .book-cover-series-nav>a{transition:none;}
  .book-cover-series-nav>a.is-previous:active,.book-cover-series-nav>a.is-next:active{transform:none;}
}

/* Book Page v2 4.11.0: Library-owned Book Series Mobile Browser validation.
   Mobile position uses canonical primary-series totals only; uncertain totals keep #part. */
@media(max-width:600px){
  .book-series-position{white-space:nowrap;}
  .book-cover-series-nav>a{
    min-width:44px;min-height:44px;width:50px;height:72px;margin-top:-36px;
    color:color-mix(in srgb,var(--rs-text-primary) 78%,var(--rs-text-muted));
  }
  .book-cover-series-nav>a.is-previous{right:calc(100% - 4px);}
  .book-cover-series-nav>a.is-next{left:calc(100% - 4px);}
  .book-cover-series-chevron{border-top-width:2.5px;border-right-width:2.5px;}
  .book-cover-series-nav>a:active{opacity:.68;background:color-mix(in srgb,var(--rs-surface-2) 42%,transparent);}
}
@media(max-width:340px){
  .book-cover-series-nav>a{width:46px;height:66px;margin-top:-33px;}
  .book-cover-series-nav>a.is-previous{right:calc(100% - 7px);}
  .book-cover-series-nav>a.is-next{left:calc(100% - 7px);}
  
}

/* Book Page v2 4.11.1: real-device series-browser + desktop hero rhythm polish. */
@media(max-width:600px){
  /* Give the separator deliberate breathing room; keep the position compact. */
  .book-series-position>span[aria-hidden="true"]{display:inline-block;margin:0 .28em 0 .18em;}

  /* Real-device pass: the position indicator now carries more navigation context,
     so the chevron can be quieter while retaining the same generous touch target. */
  .book-cover-series-chevron{width:20px;height:20px;}
}
@media(max-width:340px){
  .book-cover-series-chevron{width:18px;height:18px;}
}

@media(min-width:601px){
  /* Keep Previous/Next airy but visually attached to the hero identity. */
  

  /* Directional movement is the desktop hover cue; avoid legacy link underlines. */
  .book-hero-series-nav>a:hover strong,
  .book-hero-series-nav>a:focus-visible strong,
  .book-hero-series-nav>a:hover .book-series-nav-direction,
  .book-hero-series-nav>a:focus-visible .book-series-nav-direction{text-decoration:none;}
}

/* 4.12.0 Library publication administration + confirmed series completion */
.book-series-complete{white-space:nowrap;color:var(--rs-text-muted);font-weight:650;}
.book-series-complete>span[aria-hidden="true"]{display:inline-block;margin:0 .28em 0 .18em;}
.book-publication-row dd{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;}
.book-publication-admin{display:inline-block;position:relative;}
.book-publication-admin>summary{cursor:pointer;list-style:none;font-size:.78rem;font-weight:700;color:var(--rs-link);text-decoration:none;}
.book-publication-admin>summary::-webkit-details-marker{display:none;}
.book-publication-admin>summary:hover{filter:brightness(1.12);}
.book-publication-admin__panel{margin-top:.65rem;border:1px solid var(--rs-border-subtle);border-radius:var(--rs-radius-lg);background:var(--rs-surface-raised);box-shadow:var(--rs-shadow-md);}
.book-publication-admin__date{display:grid;}
.book-publication-admin__date label{display:grid;gap:.28rem;}
.book-publication-admin__date label span{font-size:.72rem;font-weight:750;color:var(--rs-text-muted);text-transform:uppercase;letter-spacing:.04em;}
.book-publication-admin__date input{width:100%;border:1px solid var(--rs-border-subtle);border-radius:var(--rs-radius-md);background:var(--rs-surface);color:var(--rs-text-primary);}
.book-publication-admin__actions{display:flex;flex-wrap:wrap;}
.book-publication-admin__actions form{margin:0;}
.book-publication-admin__actions button{border:0;background:none;color:var(--rs-link);font:inherit;font-weight:700;cursor:pointer;padding:.35rem .15rem;}
.book-publication-admin__scheduled{font-size:.82rem;font-weight:750;color:var(--rs-text-secondary);}
.book-publication-admin__notice{margin:0 0 .75rem;padding:.55rem .7rem;border-radius:var(--rs-radius-md);font-size:.82rem;}

.book-details-record__actions{margin-top:.9rem!important;}
.book-details-record__actions .rs-button{text-decoration:none!important;}
@media (max-width:640px){
  .book-publication-row dd{display:block;}
  .book-publication-admin{display:block;margin-top:.45rem;}
  .book-publication-admin__panel{width:100%;}
  
  .book-publication-admin__date .rs-button{grid-column:1/-1;width:100%;}
}

/* 4.12.1 — publication administration state feedback */
.book-publication-admin__form{display:grid;gap:.75rem;}
.book-publication-admin__actions button:disabled{cursor:not-allowed;filter:none;transform:none;}
.book-publication-admin__actions button:not(:disabled):active{transform:translateY(1px);}
.book-publication-admin__quiet{color:var(--rs-text-muted)!important;}


/* 4.12.2 — upcoming-only publication quick editor + compact responsive layout */
.book-publication-admin{max-width:100%;}
.book-publication-admin__panel{box-sizing:border-box;width:min(31rem,100%);max-width:100%;padding:.8rem .85rem;overflow:hidden;}
.book-publication-admin__date{gap:.5rem;align-items:end;}
.book-publication-admin__date input{min-height:2.5rem;padding:.48rem .55rem;}
.book-publication-admin__date-actions{grid-column:1/-1;display:flex;align-items:center;gap:.65rem;margin-top:.1rem;}
.book-publication-admin__date-actions .rs-button{min-height:2.35rem;padding:.45rem .8rem;}
.book-publication-admin__cancel{min-height:2.35rem;padding:.35rem .15rem;border:0;background:none;color:var(--rs-text-muted);font:inherit;font-weight:700;cursor:pointer;}
.book-publication-admin__cancel:hover{color:var(--rs-text-primary);}

.book-publication-admin__actions button{min-height:2.35rem;}
.book-publication-admin__actions button:disabled{opacity:.48;}
.book-publication-admin__hint{max-width:100%;overflow-wrap:anywhere;}
@media (min-width:641px){
  .book-publication-row dd{min-width:0;}
  .book-publication-admin{flex:1 1 100%;width:100%;}
}
@media (max-width:640px){
  .book-publication-admin__panel{padding:.75rem;}
  .book-publication-admin__date{grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr) minmax(0,.9fr);}
  .book-publication-admin__date-actions{display:grid;grid-template-columns:1fr auto;}
  .book-publication-admin__date-actions .rs-button{width:100%;}
}


/* 4.12.3 Publication readiness + date grid polish */
.book-publication-admin__date{grid-template-columns:minmax(5.25rem,1.15fr) minmax(4.5rem,.85fr) minmax(4.5rem,.85fr);column-gap:.6rem;row-gap:.55rem;}
.book-publication-admin__date label{min-width:0;}
.book-publication-admin__date input{box-sizing:border-box;min-width:0;}
.book-publication-admin__date-actions{padding-top:.05rem;}
@media(max-width:380px){.book-publication-admin__date{grid-template-columns:1fr 1fr;}.book-publication-admin__date label:first-child{grid-column:1/-1;}}

/* 4.12.4 — publication admin action hierarchy + confirmed upcoming date */
.book-publication-confirmed-date{color:var(--rs-success);font-weight:var(--rs-weight-semibold);}
.book-publication-publisher{color:inherit;}
.book-publication-admin__status-heading{margin-top:.1rem;padding-top:.8rem;border-top:1px solid var(--rs-border-subtle);color:var(--rs-text-secondary);font-size:var(--rs-text-xs);font-weight:var(--rs-weight-bold);letter-spacing:.08em;text-transform:uppercase;}
.book-publication-admin__actions{margin-top:0;padding-top:0;border-top:0;gap:.6rem;}

.book-publication-admin__publish{color:#fff;background:var(--rs-success);border:1px solid var(--rs-success);border-radius:var(--rs-radius-md);font:inherit;font-weight:var(--rs-weight-semibold);transition:filter var(--rs-transition-normal),box-shadow var(--rs-transition-normal),transform 80ms;}
.book-publication-admin__publish:hover:not(:disabled){filter:brightness(1.1);}
.book-publication-admin__publish:focus-visible{outline:2px solid var(--rs-border-focus);outline-offset:2px;box-shadow:var(--rs-glow-focus);}
.book-publication-admin__publish:disabled{color:var(--rs-text-muted);background:var(--rs-surface-2);border-color:var(--rs-border-default);opacity:.58;cursor:not-allowed;}
.book-publication-admin__feedback{display:grid;gap:.35rem;margin-top:.1rem;padding:.7rem .8rem;border:1px solid var(--rs-border-default);border-left-width:3px;border-radius:var(--rs-radius-md);background:var(--rs-surface-2);}
.book-publication-admin__feedback.is-info{border-left-color:var(--rs-info);}
.book-publication-admin__feedback.is-success{border-left-color:var(--rs-success);}
.book-publication-admin__feedback.is-warning{border-left-color:var(--rs-warning);}
.book-publication-admin__feedback.is-danger{border-left-color:var(--rs-danger);}
.book-publication-admin__hint{min-height:0;margin:0;color:var(--rs-text-secondary);font-size:.8rem;line-height:1.45;}
.book-publication-admin__notice{border:1px solid var(--rs-border-default);border-left:3px solid var(--rs-success);background:var(--rs-surface-2);color:var(--rs-text-primary);}
.book-publication-admin__notice.is-error{border-left-color:var(--rs-danger);color:var(--rs-text-primary);}
@media(max-width:600px){.book-publication-admin__actions .rs-button,.book-publication-admin__publish{flex:1 1 100%;width:100%;}}


/* 4.12.5 — Publication action hierarchy + staff book control */
.book-publication-admin__actions{align-items:stretch;}
.book-publication-admin__actions .rs-button{min-height:var(--rs-touch-target,44px);padding:.55rem .85rem;border:1px solid transparent;border-radius:var(--rs-radius-md);font:inherit;font-weight:750;cursor:pointer;}
.book-publication-admin__actions .rs-button--primary:not(:disabled){background:var(--rs-action);color:var(--rs-text-on-action,#fff);border-color:var(--rs-action);}
.book-publication-admin__actions .book-publication-admin__publish:not(:disabled){background:var(--rs-success);color:#07130d;border-color:var(--rs-success);}
.book-publication-admin__actions .rs-button:disabled{background:var(--rs-surface);border-color:var(--rs-border-subtle);color:var(--rs-text-muted);opacity:.52;cursor:not-allowed;box-shadow:none;transform:none;}
.book-publication-admin__actions .rs-button:not(:disabled):hover{filter:brightness(1.08);text-decoration:none;}
.book-publication-admin__actions .rs-button:not(:disabled):active{transform:translateY(1px);}
.book-admin-control{display:flex;align-items:center;gap:.7rem 1rem;flex-wrap:wrap;margin:.85rem 0 1.1rem;padding:.7rem .8rem;border:1px solid var(--rs-border-subtle);border-radius:var(--rs-radius-lg);background:var(--rs-surface-raised);}
.book-admin-control__label{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--rs-text-muted);}
.book-admin-control__actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;}
.book-admin-control__actions .rs-button{min-height:2.35rem;padding:.42rem .72rem;}
.book-admin-control__note{flex:1 1 100%;margin:0;color:var(--rs-text-muted);font-size:.75rem;line-height:1.45;}
@media(max-width:600px){.book-publication-admin__actions{display:grid;grid-template-columns:1fr;}.book-publication-admin__actions .rs-button{width:100%;}.book-admin-control{align-items:stretch;}.book-admin-control__actions{display:grid;grid-template-columns:1fr 1fr;}.book-admin-control__actions .rs-button:first-child{grid-column:1/-1;}.book-admin-control__actions .rs-button{justify-content:center;}}

/* 4.12.7 — staff Book Management card aligned with Your Reading */
.book-admin-card{display:grid;grid-template-columns:minmax(0,1fr);max-width:100%;margin:0 0 1rem;border:1px solid color-mix(in srgb,var(--rs-private-accent,#8b5cf6) 62%,var(--rs-border-subtle));border-radius:1rem;background:linear-gradient(135deg,color-mix(in srgb,var(--rs-surface-1) 92%,transparent),color-mix(in srgb,var(--rs-surface-2) 48%,transparent));box-shadow:inset 3px 0 0 color-mix(in srgb,var(--rs-private-accent,#8b5cf6) 82%,transparent);}
.book-admin-card .book-section-heading{align-items:center;margin-bottom:.8rem;}
.book-admin-card .book-section-heading h2{margin:0;font-size:var(--rs-text-lg);}
.book-admin-card .book-section-kicker{color:var(--rs-private-accent,#a78bfa);}
.book-admin-card__actions,.book-admin-card__research-links{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;}
.book-admin-card__actions .rs-button,.book-admin-card__research-links .rs-button{min-height:40px;padding:.42rem .72rem;font-size:.84rem;text-decoration:none;}
.book-admin-card__research{display:grid;gap:.55rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--rs-border-subtle);}
.book-admin-card__research-label{color:var(--rs-text-secondary);font-size:.78rem;font-weight:var(--rs-weight-semibold);}
.book-admin-card__research-links .rs-button{justify-content:flex-start;}
@media(max-width:600px){.book-admin-card{padding:1.15rem 1.25rem;}.book-admin-card__actions .rs-button,.book-admin-card__research-links .rs-button{min-height:44px;}}
@media(max-width:390px){.book-admin-card__research-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}.book-admin-card__research-links .rs-button{width:100%;}}

/* 4.13.0 — canonical Book Management editor */
.book-management-page{width:min(100% - 2rem,72rem);margin:2rem auto 4rem;}.book-management-header{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin-bottom:1.5rem;}.book-management-header h1{margin:.2rem 0 .35rem;font-size:clamp(2rem,4vw,3.4rem);line-height:1;}.book-management-header p{margin:0;color:var(--rs-text-muted);}.book-management-form{display:grid;gap:1rem;}.book-management-card{padding:1.25rem;border:1px solid var(--rs-border-default);border-radius:var(--rs-radius-lg);background:var(--rs-surface-1);}.book-management-card__head{margin-bottom:1rem;}.book-management-card__head h2{margin:.18rem 0 0;font-size:1.3rem;}.book-management-card__head p{margin:.35rem 0 0;color:var(--rs-text-muted);font-size:.9rem;}.book-management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}.book-management-span-2{grid-column:1/-1;}.book-management-date-grid{display:grid;grid-template-columns:repeat(3,minmax(7rem,10rem));gap:.75rem;}.book-management-choice-row{display:flex;flex-wrap:wrap;gap:.65rem 1.25rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--rs-border-subtle);}.book-management-choice-row label{display:flex;align-items:center;gap:.45rem;min-height:44px;}.book-management-readonly{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .75rem;margin-top:1rem;padding:.8rem 1rem;border-radius:var(--rs-radius-md);background:var(--rs-surface-2);color:var(--rs-text-muted);}.book-management-readonly>span{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;}.book-management-readonly strong{color:var(--rs-text-primary);font-size:.9rem;}.book-management-readonly small{flex-basis:100%;}.book-management-textarea{width:100%;min-height:18rem;resize:vertical;font:inherit;line-height:1.55;}.book-management-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:.6rem;padding:1rem 0;background:linear-gradient(to bottom,transparent,var(--rs-bg-page) 30%);}
@media(max-width:700px){.book-management-page{width:min(100% - 1rem,72rem);margin-top:1rem;}.book-management-header{align-items:flex-start;flex-direction:column;}.book-management-grid{grid-template-columns:1fr;}.book-management-span-2{grid-column:auto;}.book-management-date-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.book-management-card{padding:1rem;}.book-management-actions{display:grid;grid-template-columns:1fr 1fr;}.book-management-actions .rs-button{width:100%;}}

/* 4.13.4 — staff action regression guard + author media only when canonical image exists */
.book-admin-card__actions .book-admin-card__edit{width:auto!important;min-width:0!important;min-height:30px!important;padding:.25rem .58rem!important;font-size:.82rem!important;line-height:1.2!important;}
.book-author-context:not(:has(.book-author-teaser-media)){grid-template-columns:minmax(0,1fr);}
.book-author-identity:not(:has(.book-author-detail-media)){grid-template-columns:minmax(0,1fr);}
@media(max-width:600px){.book-admin-card__actions .book-admin-card__edit{min-height:44px!important;}}

/* 4.13.5 — compact staff provenance. */
.book-admin-card__provenance{margin:-.25rem 0 .8rem;color:var(--rs-text-secondary);font-size:.78rem;line-height:1.45;}
.book-admin-card__provenance a{color:inherit;font-weight:var(--rs-weight-semibold);text-decoration:none;}
.book-admin-card__provenance a:hover{text-decoration:underline;}


/* 4.14.3 — editorial review polish */
.book-editorial-review{position:relative;max-width:760px;margin-top:clamp(1.6rem,4vw,2.6rem);padding:clamp(1.15rem,2.5vw,1.55rem);overflow:hidden;border:1px solid color-mix(in srgb,var(--rs-accent) 34%,var(--rs-border-subtle));border-radius:1rem;background:linear-gradient(145deg,color-mix(in srgb,var(--rs-surface-1) 93%,var(--rs-accent) 7%),var(--rs-surface-1));box-shadow:0 14px 40px rgba(0,0,0,.07);}
.book-editorial-review:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:color-mix(in srgb,var(--rs-accent) 78%,transparent);opacity:.8;}.book-editorial-review .book-section-kicker{display:block;margin-bottom:.4rem;color:color-mix(in srgb,var(--rs-accent) 72%,var(--rs-text-secondary));}.book-editorial-review h2{margin:0;font-size:clamp(1.28rem,2.5vw,1.62rem);line-height:1.18;}.book-editorial-review h2 a{color:var(--rs-text-primary);text-decoration:none;}.book-editorial-review h2 a:hover{text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;}.book-editorial-review__teaser{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:.8rem 0 0;color:var(--rs-text-secondary);font-size:.98rem;line-height:1.62;}.book-editorial-review__footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding-top:.9rem;border-top:1px solid var(--rs-border-subtle);}.book-editorial-review__byline{display:flex;align-items:center;gap:.55rem;min-width:0;color:var(--rs-text-secondary);font-size:.88rem;}.book-editorial-review__writer{display:inline-flex;align-items:center;gap:.55rem;min-width:0;color:var(--rs-text-primary);text-decoration:none;}.book-editorial-review__writer:hover strong{text-decoration:underline;text-underline-offset:.14em;}.book-editorial-review__writer strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.book-editorial-review__byline time:before{content:"·";margin-right:.55rem;}.book-editorial-review__avatar{display:block;width:2.5rem;height:2.5rem;flex:0 0 2.5rem;border:1px solid color-mix(in srgb,var(--rs-accent) 24%,var(--rs-border-subtle));border-radius:50%;object-fit:cover;background:var(--rs-surface-2);}.book-editorial-review__cta{flex:0 0 auto;font-weight:700;text-decoration:none;}.book-editorial-review__cta:hover{text-decoration:underline;text-underline-offset:.15em;}
@media(max-width:600px){.book-editorial-review{margin-top:1.35rem;padding:1rem;border-radius:.9rem;}.book-editorial-review__teaser{-webkit-line-clamp:4;}.book-editorial-review__footer{align-items:flex-start;flex-direction:column;gap:.75rem;}.book-editorial-review__cta{min-height:44px;display:inline-flex;align-items:center;}.book-editorial-review__avatar{width:2.25rem;height:2.25rem;flex-basis:2.25rem;}}

.book-admin-card__external{display:grid;border-top:1px solid var(--rs-border-subtle);}
.book-admin-card__amazon-check{min-height:30px!important;padding:.25rem .58rem!important;}.book-admin-card__external-status{display:flex;align-items:flex-start;color:var(--rs-text-secondary);}.book-admin-card__external-status strong{color:var(--rs-text-primary);}.book-admin-card__external-meta{margin-top:.08rem;color:var(--rs-text-secondary);}.book-admin-card__external-dot{width:.5rem;height:.5rem;flex:0 0 .5rem;margin-top:.32rem;border-radius:50%;background:var(--rs-text-secondary);}.book-admin-card__external-dot.is-up_to_date{background:var(--rs-success,#4ade80);}.book-admin-card__external-dot.is-changes,.book-admin-card__external-dot.is-match_review{background:var(--rs-warning,#fbbf24);}.book-admin-card__external-dot.is-error{background:var(--rs-danger,#fb7185);}.book-admin-card__external-review{width:max-content;color:var(--rs-private-accent,#a78bfa);font-weight:var(--rs-weight-semibold);text-decoration:none;}.book-admin-card__external-review:hover{text-decoration:underline;}.book-admin-card__external.is-checking .book-admin-card__amazon-check{opacity:.7;cursor:wait;}

/* Staff-only book tools: compact operational UI. */
.book-admin-card{padding:1.15rem 1.2rem;}
.book-admin-card .rs-button,.book-admin-card__research a{min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;width:auto!important;display:inline!important;font-size:.82rem!important;font-weight:var(--rs-weight-semibold)!important;color:var(--rs-text-secondary)!important;text-decoration:none!important;}
.book-admin-card .rs-button:hover,.book-admin-card__research a:hover,.book-admin-card__external-review:hover{color:var(--rs-text-primary)!important;text-decoration:underline!important;}
.book-admin-card__research{display:block!important;margin-top:.85rem!important;padding-top:.8rem!important;}
.book-admin-card__research-label{display:block;margin-bottom:.35rem;}
.book-admin-card__research-links{display:flex!important;flex-wrap:wrap;gap:.35rem .55rem!important;}
.book-admin-card__research-links a+a::before{content:"·";margin-right:.55rem;color:var(--rs-text-tertiary);}
.book-admin-card__external{gap:.3rem;margin-top:.75rem;padding-top:.7rem;}
.book-admin-card__external-head{display:flex;justify-content:flex-start;gap:.55rem;align-items:baseline;}
.book-admin-card__external-head .book-admin-card__research-label{margin:0;}
.book-admin-card__amazon-check{font-size:.75rem!important;}
.book-admin-card__amazon-check::before{content:"· ";color:var(--rs-text-tertiary);}
.book-admin-card__external-status{gap:.4rem;font-size:.76rem;line-height:1.3;}
.book-admin-card__external-status strong{display:inline;font-size:.78rem;}
.book-admin-card__external-meta{display:inline;margin:0 0 0 .35rem;font-size:.72rem;}
.book-admin-card__external-meta:not(:empty)::before{content:"· ";color:var(--rs-text-tertiary);}
.book-admin-card__external-review{font-size:.75rem;}
@media(max-width:600px){.book-admin-card__external-head{flex-direction:row;align-items:baseline;}.book-admin-card__amazon-check{min-height:0!important;}}

/* A successful recent Amazon check with no match is a healthy state. */
.book-admin-card__external-meta.is-fresh{color:var(--rs-success-text, #69e6a6)!important;}

.book-admin-card__external-cover-resolution{font-size:.76rem;color:var(--rs-text-muted,#aeb8d0);font-variant-numeric:tabular-nums;}

/* BP-012: Author biography always spans the complete identity grid. */
.book-author-identity > .book-author-biography{grid-column:1 / -1;min-width:0;width:100%;}

/* BP-013: Flow biography beside the portrait, then full width below it.
   Scoped to Author tab; preserve all other identity layouts. */
.book-author-identity--flow{display:flow-root;min-width:0;}
.book-author-identity--flow .book-author-detail-media{float:left;width:clamp(120px,12vw,170px);margin:0 1.5rem .9rem 0;}
.book-author-identity--flow .book-author-detail-main{display:block;min-width:0;}
.book-author-identity--flow .book-author-biography{display:block;grid-column:auto;width:auto;max-width:none;margin-top:1rem;min-width:0;}
@media(max-width:680px){
  .book-author-identity--flow .book-author-detail-media{width:92px;margin:0 1rem .7rem 0;}
}
@media(max-width:380px){
  .book-author-identity--flow .book-author-detail-media{width:72px;margin-right:.8rem;}
}

/* Book Page v2 release: progressive disclosure only for actually overflowing text. */
@media(max-width:600px){
 .book-description-disclosure:not(.is-clamped) .book-description-content,
 .book-entity-description-disclosure:not(.is-clamped) [data-book-description-content]{max-height:none;overflow:visible;}
 .book-description-disclosure:not(.is-clamped) .book-description-content::after,
 .book-entity-description-disclosure:not(.is-clamped) [data-book-description-content]::after{display:none;}
 .book-description-disclosure.is-clamped:not(.is-expanded) .book-description-content{max-height:21rem;overflow:hidden;}
 .book-description-disclosure.is-clamped:not(.is-expanded) .book-description-content::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5.25rem;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--rs-bg-page));}
 .book-cover-series-hint{display:block;position:absolute;top:100%;left:0;right:0;text-align:center;color:var(--rs-text-muted);font-size:.73rem;line-height:1.35;margin-top:.4rem;}
 .book-cover:has(.book-cover-series-hint){margin-bottom:1.5rem;}
 /* Publication editor must escape the narrow value column on mobile. */
 .book-publication-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);align-items:start;}
 .book-publication-row>dd{display:contents;}
 
 .book-publication-row .book-publication-admin{min-width:0;box-sizing:border-box;}
 .book-publication-admin__panel,.book-publication-admin__form{min-width:0;max-width:100%;box-sizing:border-box;}
 .book-publication-admin__date{grid-template-columns:repeat(3,minmax(0,1fr));min-width:0;}
 .book-publication-admin__date input{width:100%;min-width:0;box-sizing:border-box;}
 .book-publication-admin__date-actions{grid-column:1/-1;}
 .book-publication-admin__actions .rs-button{max-width:100%;white-space:normal;overflow-wrap:anywhere;}
}
@media(max-width:360px){.book-publication-admin__date{grid-template-columns:repeat(2,minmax(0,1fr));}.book-publication-admin__date label:first-child{grid-column:1/-1;}}
@media(min-width:601px){.book-cover-series-hint{display:none;}}

/* BP-018 / 4.16.1: On phones, keep the series identity directly above the
   book title. The cover and its navigation hint remain a single unit. */
@media(max-width:600px){
  .book-cover{order:1;}
  .book-series{order:2;margin:.15rem 0 .55rem;}
}

/* Book Page v2 4.17.0: BP-019..023 consolidated presentation pass. */
@media(max-width:600px){
  /* Keep all publication metadata in the same value column. */
  .book-facts>div{display:grid;grid-template-columns:minmax(6.5rem,34%) minmax(0,1fr);gap:.55rem;align-items:start;}
  .book-facts>div>dd{display:block;min-width:0;grid-column:2;margin:0;overflow-wrap:anywhere;}
  .book-publication-row>dd{display:block!important;grid-column:2;min-width:0;}
  .book-publication-row .book-publication-value{display:inline;min-width:0;grid-column:auto;}
  .book-publication-row .book-publication-admin{grid-column:auto;width:100%;max-width:100%;margin-top:.55rem;}
  .book-publication-publisher{display:inline;white-space:normal;}
  .book-fact-people{overflow-wrap:anywhere;}
}
.book-review-teaser-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem .45rem;min-width:0;}
.book-review-teaser-meta .book-review-score{display:inline-flex!important;width:auto!important;margin:0!important;align-items:center;}
.book-review-teaser-meta .book-review-score .rs-rating{margin:0;}
.book-review-teaser-dot{color:var(--rs-text-muted);}
.book-review-teaser-head>.book-review-person>span{gap:.15rem;}
.book-review-teaser-excerpt{margin-top:.9rem;}
.book-author-context{grid-template-columns:104px minmax(0,1fr);}
.book-author-teaser-heading{grid-column:1/-1;display:block;margin:0 0 -.3rem;}
.book-author-teaser-media{grid-column:1;}
.book-author-teaser-copy{grid-column:2;}
.book-author-context.is-no-image .book-author-teaser-copy,.book-author-context:not(:has(.book-author-teaser-media)) .book-author-teaser-copy{grid-column:1/-1;}
.book-author-teaser-copy h2{margin-top:0;line-height:1.15}
@media(max-width:600px){.book-author-context{grid-template-columns:76px minmax(0,1fr);}.book-review-teaser-meta{gap:.2rem .35rem;}}
@media(min-width:601px){
  /* Reserve identical, smaller navigation clearance for all book heroes. */
  .book-hero{min-height:0;}
  .book-cover,.book-identity-copy{margin-top:clamp(1.5rem,2.5vw,2.2rem);}
  .book-hero-series-nav{top:.7rem;}
}

/* BP-027: Waiting/anticipation ratings are visually distinct from real ratings. */
.book-community-rating--waiting{flex-wrap:wrap;gap:.35rem .7rem}
.book-community-rating--waiting>.book-anticipation-stars{font-size:1.2rem}
.book-community-rating--waiting>strong{font-size:1rem;color:var(--rs-text-primary);white-space:nowrap}
.book-community-rating--waiting .book-community-rating-count small{color:var(--rs-text-muted)}

/* BP-029: unobtrusive, staff-only book actions in hero; same interaction at all widths. */
.book-identity-copy{position:relative}
.book-staff-menu{position:relative;z-index:12;width:max-content;max-width:100%;margin:.25rem 0 .65rem}
.book-staff-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:40px;height:40px;border:1px solid var(--rs-border-subtle);border-radius:.7rem;background:var(--rs-surface-1);color:var(--rs-text-secondary);cursor:pointer}
.book-staff-menu>summary::-webkit-details-marker{display:none}
.book-staff-menu>summary:hover,.book-staff-menu[open]>summary{color:var(--rs-text-primary);border-color:var(--rs-border-strong)}
.book-staff-menu>summary:focus-visible{outline:2px solid var(--rs-private-accent,#a78bfa);outline-offset:3px}
.book-staff-menu__content{position:absolute;left:0;top:calc(100% + .35rem);width:min(350px,calc(100vw - 2rem));max-height:min(70vh,550px);overflow-y:auto;padding:.85rem 1rem;border:1px solid var(--rs-border-default);border-radius:.85rem;background:var(--rs-surface-1);box-shadow:0 12px 36px rgba(0,0,0,.35);font-size:.84rem}
.book-staff-menu__actions{display:grid;gap:.2rem}
.book-staff-menu__actions a{display:flex;align-items:center;gap:.55rem;padding:.6rem .5rem;border-radius:.45rem;color:var(--rs-text-primary);text-decoration:none;font-weight:650}
.book-staff-menu__actions a:hover,.book-staff-menu__actions a:focus-visible{background:var(--rs-surface-2)}
.book-staff-menu__content .book-admin-card__provenance{margin:.6rem 0 0;padding-top:.65rem;border-top:1px solid var(--rs-border-subtle);color:var(--rs-text-secondary);font-size:.75rem}
.book-staff-menu__content .book-admin-card__external,.book-staff-menu__content .book-admin-card__research{margin-top:.75rem}
@media(min-width:901px){.book-staff-menu{position:absolute;right:0;top:0;margin:0}.book-identity-copy h1{padding-right:3.25rem}.book-staff-menu__content{left:auto;right:0}}
@media(max-width:900px){.book-staff-menu{grid-column:1;order:4;margin:-.25rem 0 .55rem}.book-staff-menu__content{left:0}}

/* BP-029 v1.2: mobile staff control beside series label, no added flow row. */
@media(max-width:900px){
  .book-identity-copy>.book-staff-menu{position:absolute;right:0;top:0;left:auto;z-index:30;width:max-content;margin:0;grid-column:auto;order:initial}
  .book-identity-copy>.book-series{padding-right:3.25rem;min-height:40px;display:flex;align-items:center;flex-wrap:wrap;column-gap:.3rem}
  .book-identity-copy:not(:has(>.book-series))>h1{padding-right:3.25rem}
  .book-staff-menu__content{left:auto;right:0;width:min(320px,calc(100vw - 2rem));max-width:calc(100vw - 2rem)}
}


/* BP-029 v1.3: anchor staff gear to the series/identity row, never the cover.
   On phones .book-identity-copy is display:contents, so positioning against
   that element incorrectly anchors the gear at the top of the hero. */
.book-series-staff-row{position:relative;min-width:0}
.book-series-staff-row>.book-staff-menu{position:absolute;right:0;top:0;left:auto;z-index:30;margin:0;grid-column:auto;order:initial}
.book-series-staff-row>.book-staff-menu .book-staff-menu__content{left:auto;right:0}
.book-series-staff-row>.book-series{padding-right:3.25rem;min-height:40px;display:flex;align-items:center;flex-wrap:wrap;column-gap:.3rem}
@media(max-width:600px){
  .book-series-staff-row{grid-column:1;order:2;align-self:start;width:100%;margin:.15rem 0 .55rem}
  .book-series-staff-row>.book-series{margin:0;min-height:40px}
  .book-series-staff-row>.book-staff-menu{position:absolute;right:0;top:0}
  .book-series-staff-row .book-staff-menu__content{width:min(320px,calc(100vw - 2rem));max-width:calc(100vw - 2rem)}
}
@media(min-width:601px){
  .book-series-staff-row{margin:0 0 .65rem}
  .book-series-staff-row>.book-series{margin:0}
}
