/* ChromeThemer hybrid bookshelf – scoped styles */
.bookshelf{max-width:1560px;margin:0 auto 48px;padding:0 16px;font-family:Lato,Arial,sans-serif;color:#29213a}.bookshelf *{box-sizing:border-box}.bookshelf-layout{display:grid;grid-template-columns:minmax(185px,230px) minmax(0,1fr) minmax(190px,245px);gap:20px;align-items:start}.bs-sidebar,.bs-main,.bs-feature,.bs-tip{background:#fff;border:1px solid #ebe5f1;border-radius:18px;box-shadow:0 8px 28px rgba(62,36,80,.055)}.bs-sidebar{padding:20px;position:sticky;top:15px}.bs-sidebar h2{font-size:19px;line-height:1.3;margin:0 0 8px;font-weight:800}.bs-sidebar p{font-size:13px;color:#71677d;line-height:1.5;margin:0 0 17px}.bs-sidebar h3{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin:24px 0 11px}.bs-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#f3eff8;padding:5px;border-radius:12px}.bs-switch a{text-align:center;font-size:12px;font-weight:800;color:#695a7a;padding:11px 4px;border-radius:9px}.bs-switch a.active{background:#752b91;color:#fff;box-shadow:0 3px 10px #752b9133}.bs-audience{display:flex;gap:5px}.bs-audience button,.bs-categories button,.bs-reset{font-family:inherit;cursor:pointer}.bs-audience button{flex:1;border:1px solid #e5ddec;background:#fff;border-radius:9px;padding:10px 3px;color:#635870;font-size:12px;font-weight:700}.bs-audience button.selected,.bs-categories button.selected{background:#f1e4f7;color:#6b2289;border-color:#b982ce}.bs-categories{display:grid;gap:4px}.bs-categories button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;border:1px solid transparent;border-radius:9px;background:transparent;color:#4c4257;padding:9px 11px;font-size:13px}.bs-categories button:hover{background:#f7f3fa}.bs-categories em{font-style:normal;font-size:11px;color:#9a8ca5}.bs-reset{margin-top:16px;border:0;background:none;color:#7a2a98;text-decoration:underline;padding:8px;font-weight:700}.bs-main{padding:22px;min-width:0}.bs-hero{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(125deg,#f8f0fd,#f3eaf9 60%,#eee3fa);padding:25px;border-radius:15px;gap:12px}.bs-eyebrow{font-size:10px;font-weight:900;letter-spacing:.13em;color:#7d3b9d}.bs-hero h1{font-size:clamp(23px,2.5vw,33px);line-height:1.15;margin:9px 0 11px;color:#30213c;font-weight:900}.bs-hero p{font-size:14px;line-height:1.55;color:#665771;max-width:560px;margin:0}.bs-hero-mark{font-size:65px;color:#ae75c8;opacity:.55}.bs-toolbar{display:flex;gap:10px;margin:20px 0;align-items:center}.bs-search{display:flex;align-items:center;flex:1;min-width:0;border:1px solid #e4dce9;border-radius:11px;padding:0 12px;background:#fff;height:43px}.bs-search span{font-size:24px;color:#9d8baa}.bookshelf .bs-search input{height:39px!important;min-width:0;width:100%;border:0!important;box-shadow:none!important;margin:0!important;padding:0 8px!important;font-size:13px!important;outline:none!important}.bookshelf .bs-toolbar select{display:block;width:150px;height:43px;padding:0 10px;border:1px solid #e4dce9;border-radius:11px;background:#fff;color:#51465c;font-size:12px}.bs-results{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 15px}.bs-results h2{font-size:19px;font-weight:900;margin:0}.bs-results span{font-size:12px;color:#887a93}.bs-shelf{margin:0 0 27px}.bs-shelf-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.bs-shelf-head h3{font-size:14px;margin:0;font-weight:800}.bs-shelf-head span{font-size:11px;color:#92839c}.bs-books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 13px;padding:8px 7px 17px;position:relative}.bs-books:after{content:"";position:absolute;bottom:2px;left:0;right:0;height:12px;background:linear-gradient(#e7d9ee,#c9b3d5 48%,#b89ac9);border-radius:3px 3px 9px 9px;box-shadow:0 6px 9px #3b204526}.bs-book{text-decoration:none!important;min-width:0;display:block;color:#33243f!important;transition:transform .18s}.bs-book:hover{transform:translateY(-5px)}.bs-cover{aspect-ratio: .71;position:relative;overflow:hidden;border-radius:5px 9px 7px 5px;background:var(--cover-color,#a977c1);box-shadow:inset 5px 0 7px #1b0a2530,5px 6px 11px #33213b33;border-left:5px solid #ffffff55;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:12% 8%;text-align:center;color:#fff}.bs-cover:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 35%,#ffffff42,transparent 55%);pointer-events:none}.bs-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.bs-cover .bs-cover-title,.bs-cover .bs-cover-art,.bs-cover .bs-cover-bottom{position:relative;z-index:1;text-shadow:0 1px 3px #25152a66}.bs-cover-title{font-size:clamp(12px,1.35vw,18px);line-height:1.15;font-weight:900}.bs-cover-art{font-size:clamp(30px,4vw,55px);line-height:1}.bs-cover-bottom{font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:900}.bs-book-title{font-size:12px;line-height:1.35;font-weight:800;margin:11px 0 3px}.bs-book-meta{font-size:11px;color:#8c7c98}.bs-empty{padding:30px;text-align:center;background:#faf7fc;border-radius:12px;color:#776681}.bs-right{display:grid;gap:16px}.bs-feature{padding:19px;text-align:center}.bs-feature-cover{max-width:175px;margin:15px auto}.bs-feature h2{font-size:18px;font-weight:900;margin:14px 0 8px}.bs-feature p,.bs-tip p{font-size:13px;line-height:1.6;color:#756781}.bs-feature a{display:block;background:#752b91;color:#fff!important;border-radius:10px;padding:13px 8px;font-size:12px;font-weight:800;margin-top:15px}.bs-tip{padding:18px}.bs-tip strong{font-size:14px}.bs-tip p{margin:7px 0 0}@media(max-width:1150px){.bookshelf-layout{grid-template-columns:190px minmax(0,1fr)}.bs-right{grid-column:2;grid-row:2;grid-template-columns:1fr 1fr}.bs-feature-cover{max-width:130px}.bs-books{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.bookshelf{padding:0 10px}.bookshelf-layout{display:block}.bs-sidebar{position:static;margin-bottom:14px;padding:16px}.bs-sidebar h3{margin:14px 0 8px}.bs-categories{display:flex;overflow-x:auto;gap:6px;padding-bottom:5px}.bs-categories button{width:auto;flex:0 0 auto;white-space:nowrap;border-color:#ece5f0}.bs-categories em{margin-left:8px}.bs-main{padding:13px}.bs-hero{padding:19px}.bs-hero-mark{display:none}.bs-toolbar{flex-wrap:wrap}.bs-toolbar select{width:100%!important}.bs-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.bs-cover-title{font-size:clamp(13px,4vw,19px)}.bs-cover-art{font-size:clamp(38px,10vw,65px)}.bs-right{display:grid;grid-template-columns:1fr;margin-top:14px}.bs-feature-cover{max-width:150px}}@media(min-width:761px) and (max-width:950px){.bs-books{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.bs-book{transition:none}}

/* Hide placeholder artwork when a real cover has loaded successfully. */
.bs-cover--has-image .bs-cover-title,
.bs-cover--has-image .bs-cover-art,
.bs-cover--has-image .bs-cover-bottom{display:none!important}

/* Independent desktop sidebar scrolling: categories remain accessible
   without needing to reach the bottom of the central bookshelf. */
@media (min-width: 761px) {
  .bookshelf .bs-sidebar {
    position: sticky;
    top: 15px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c7afd5 transparent;
  }
  .bookshelf .bs-sidebar::-webkit-scrollbar { width: 7px; }
  .bookshelf .bs-sidebar::-webkit-scrollbar-thumb {
    background: #c7afd5;
    border-radius: 10px;
  }
}
@media (max-width: 760px) {
  .bookshelf .bs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* Wider left category column — desktop only. */
@media (min-width: 1151px) {
  .bookshelf .bookshelf-layout {
    grid-template-columns: minmax(245px, 300px) minmax(0, 1fr) minmax(190px, 245px);
  }
}
@media (min-width: 761px) and (max-width: 1150px) {
  .bookshelf .bookshelf-layout {
    grid-template-columns: 225px minmax(0, 1fr);
  }
}





/* ==========================================
   CHROMETHEMER - BOOKS / BOOKSHELF TOGGLE
   Shared styling for both page types
========================================== */

.bookshelf .bs-view-toggle,
.ct-colorbook__nav .ct-book-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;

    width: 100%;
    height: auto;
    min-height: 0;
    padding: 5px;
    margin: 0 0 18px;

    background: #f3eff8;
    border: 1px solid #e7ddeb;
    border-radius: 12px;
    box-shadow: none;
    line-height: normal;
}

.bookshelf .bs-view-toggle a,
.ct-colorbook__nav .ct-book-switch__link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 40px;
    height: auto;
    padding: 10px 6px;

    border: 0;
    border-radius: 9px;

    background: transparent;
    color: #695a7a;

    font-family: Lato, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    transition: background .2s ease,
                color .2s ease,
                box-shadow .2s ease;
}

.bookshelf .bs-view-toggle a.is-active,
.ct-colorbook__nav .ct-book-switch__link.is-active {
    background: #752b91;
    color: #fff;
    box-shadow: 0 3px 10px rgba(117,43,145,.2);
}

.bookshelf .bs-view-toggle a:not(.is-active):hover,
.ct-colorbook__nav .ct-book-switch__link:not(.is-active):hover {
    background: #e9ddef;
    color: #752b91;
}

.bookshelf .bs-view-toggle a:focus-visible,
.ct-colorbook__nav .ct-book-switch__link:focus-visible {
    outline: 2px solid #752b91;
    outline-offset: 2px;
}





/* ==========================================
   BOOKSHELF TOGGLE - HOVER EFFECT
========================================== */

/* Smooth transitions */
.bookshelf .bs-view-toggle button,
.bookshelf .bs-view-toggle a {
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Hover effect on unselected toggle */
.bookshelf .bs-view-toggle button:not(.is-active):hover,
.bookshelf .bs-view-toggle a:not(.is-active):hover {
    background-color: #e9ddef;
    color: #752b91;
    box-shadow: 0 2px 8px rgba(117, 43, 145, 0.08);
}

/* Keyboard accessibility */
.bookshelf .bs-view-toggle button:focus-visible,
.bookshelf .bs-view-toggle a:focus-visible {
    outline: 2px solid #752b91;
    outline-offset: 2px;
}







/* ==========================================
   BOOKSHELF TOGGLE - MATCH SINGLE BOOK HOVER
========================================== */

/* Smooth transition for both toggle links */
.bookshelf .bs-switch a {
    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Beautiful lavender hover on unselected button */
.bookshelf .bs-switch a:not(.active):hover {
    background-color: #e9ddef;
    color: #752b91;
    box-shadow: 0 2px 8px rgba(117, 43, 145, 0.08);
}

/* Keep selected button purple */
.bookshelf .bs-switch a.active,
.bookshelf .bs-switch a.active:hover {
    background-color: #752b91;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(117, 43, 145, 0.2);
}

/* Accessible keyboard focus */
.bookshelf .bs-switch a:focus-visible {
    outline: 2px solid #752b91;
    outline-offset: 2px;
}







/* ==========================================
   BOOKSHELF - MATCH SINGLE BOOK PAGE WIDTH
========================================== */

/* Remove extra horizontal space */
.bookshelf {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Match the tighter spacing between columns */
.bookshelf .bookshelf-layout {
    gap: 20px;
}

/* Keep mobile spacing comfortable */
@media (max-width: 760px) {
    .bookshelf {
        padding-left: 0;
        padding-right: 0;
    }
}
