/* Local comparison views for the existing Book listing. Records, filters and destinations stay shared. */
.psh-bk-view-options{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin:0 0 25px;padding:0 0 20px;border-bottom:1px solid #ded4ca}
.psh-bk-view-label{font-size:14px;font-weight:700;line-height:1.5}
.psh-bk-view-buttons{display:flex;flex-wrap:wrap;gap:8px}
.psh-bk-view-buttons button{appearance:none;min-height:44px;padding:9px 16px;border:1px solid #c8b9b7;border-radius:999px;background:transparent;color:var(--wp--preset--color--wine,#692f3b);font:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.psh-bk-view-buttons button:hover{background:#efe7e8;border-color:#692f3b}
.psh-bk-view-buttons button[aria-pressed=true]{background:var(--wp--preset--color--wine,#692f3b);border-color:var(--wp--preset--color--wine,#692f3b);color:white}
.psh-bk-view-buttons button:focus-visible{outline:2px solid #692f3b;outline-offset:3px}
.psh-bk-view-options .psh-bk-view-detail{flex-basis:100%;margin:0!important;font-size:14px;line-height:1.5;color:#62585b}

/* Source sizing: a common cover height with complete artwork, aligned to the caption's left edge. */
:root .psh-bk-library[data-book-view=source] .psh-bk-library-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:42px;align-items:start}
:root .psh-bk-library[data-book-view=source] .psh-bk-library-card .psh-tpx-cover{position:relative;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:3/4!important;overflow:hidden}
:root .psh-bk-library[data-book-view=source] .psh-bk-library-card .psh-tpx-cover.has-image{padding:0!important}
:root .psh-bk-library[data-book-view=source] .psh-bk-library-card .psh-tpx-cover-image{position:absolute!important;inset:0;display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:left center!important}

@media(max-width:1000px){:root .psh-bk-library[data-book-view=source] .psh-bk-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 26px}}
@media(max-width:650px){.psh-bk-view-options{gap:10px;margin-bottom:20px}.psh-bk-view-label{flex-basis:100%}.psh-bk-view-buttons{gap:6px}.psh-bk-view-buttons button{padding:9px 12px;font-size:13px}:root .psh-bk-library[data-book-view=source] .psh-bk-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}}
@media(prefers-reduced-motion:reduce){.psh-bk-view-buttons button{transition:none}}
