/* SimilarBooks.org · Editorial Discovery Design
   Visual layer only: does not modify database, queries or server handlers.
   Original legacy CSS and Bootstrap 3 remain available to older pages. */
:root { --sb-forest:#214b32; --sb-forest-deep:#113b28; --sb-forest-light:#e9f0e6; --sb-cream:#faf7f0; --sb-paper:#fffdf8; --sb-ink:#26291f; --sb-muted:#6d7169; --sb-line:#e7dfd2; --sb-amber:#b67d2c; --sb-radius:15px; --sb-shadow:0 12px 38px rgba(39,42,29,.055); }
html { scroll-behavior:smooth; }
body.sb-site { margin:0; padding:0; min-width:320px; background:var(--sb-cream); color:var(--sb-ink); font-family: 'Segoe UI', Arial, sans-serif; font-size:16px; line-height:1.58; }
body.sb-site *,body.sb-site *:before,body.sb-site *:after { box-sizing:border-box; }
body.sb-site a { color:var(--sb-forest); text-decoration:none; }
body.sb-site a:hover { color:#2d7b4e; text-decoration:none; }
body.sb-site h1,body.sb-site h2,body.sb-site h3,body.sb-site h4 { color:var(--sb-ink); font-family: Georgia,'Times New Roman',serif; letter-spacing:-.025em; font-weight:700; }
body.sb-site p { margin:0 0 12px; }
body.sb-site .sb-main { max-width:1312px; padding:0 26px 70px; margin:0 auto; min-height:55vh; }
body.sb-site .sb-site-header { position:relative; background:rgba(255,253,248,.98); border-bottom:1px solid var(--sb-line); box-shadow:0 2px 15px rgba(0,0,0,.025); z-index:100; }
.sb-site-header-inner { display:flex; gap:32px; align-items:center; max-width:1312px; margin:auto; min-height:80px; padding:8px 26px; }
body.sb-site a.sb-brand { white-space:nowrap; display:flex; align-items:center; gap:10px; color:var(--sb-forest-deep); font:bold 26px Georgia,'Times New Roman',serif; letter-spacing:-.055em; }
.sb-brand-mark { display:grid; place-items:center; font-size:30px; line-height:1; color:#8a542a; }
.sb-brand-dot { font-size:.68em; font-weight:400; letter-spacing:-.025em; }
.sb-primary-nav { display:flex; align-items:center; gap:24px; white-space:nowrap; }
.sb-primary-nav > a,.sb-genres-menu > summary { font-size:14px; font-weight:600; color:#3b453a; cursor:pointer; }
.sb-primary-nav > a:hover,.sb-genres-menu summary:hover { color:var(--sb-forest); }
.sb-genres-menu { position:relative; }
.sb-genres-menu summary { list-style:none; }
.sb-genres-menu summary::-webkit-details-marker { display:none; }
.sb-genres-menu[open] summary { color:var(--sb-forest); }
.sb-genres-dropdown { position:absolute; top:calc(100% + 22px); left:-35px; width:min(680px,90vw); max-height:70vh; overflow:auto; padding:22px; border:1px solid var(--sb-line); border-radius:16px; background:var(--sb-paper); box-shadow:0 20px 65px rgba(34,55,32,.16); }
.sb-genres-dropdown > p { font-family:Georgia,serif; font-size:18px; font-weight:bold; margin-bottom:14px!important; }
.sb-genres-dropdown-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px 14px; }
.sb-genres-dropdown-grid a { display:block; padding:7px; font-size:13px; border-radius:5px; }
.sb-genres-dropdown-grid a:hover { background:var(--sb-forest-light); }
.sb-header-search { display:flex; align-items:center; height:39px; border:1px solid #e4e0d7; background:white; border-radius:10px; flex:1; min-width:130px; max-width:290px; margin-left:auto; }
.sb-header-search > span { font-size:23px; padding-left:10px; }
.sb-header-search input { border:0; background:transparent; outline:0; min-width:0; flex:1; font-size:12px; padding:0 5px; width:65px; }
.sb-header-search button { border:0; background:var(--sb-forest); color:white; border-radius:0 9px 9px 0; padding:0 12px; height:100%; font-size:12px; }
.sb-header-search button:hover { background:#317349; }
.sb-account-actions { flex-shrink:0; font-size:13px; font-weight:650; white-space:nowrap; }
.sb-account-actions a { border:1px solid #d1ddcf; border-radius:9px; padding:9px 13px; }
.sb-content-wrap { max-width:1250px; margin:0 auto; }
.sb-eyebrow { color:var(--sb-amber); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.14em; margin-bottom:8px!important; }
.sb-home-hero { margin:26px 0 0; overflow:hidden; border-radius:22px; background:linear-gradient(108deg,#f5ead7 0%,#fbf4e7 47%,#e9dcc3 100%); border:1px solid #e9decb; box-shadow:var(--sb-shadow); }
.sb-home-hero-inner { display:grid; grid-template-columns:60% 40%; min-height:390px; }
.sb-hero-copy { padding:55px 26px 44px 55px; position:relative; z-index:1; }
.sb-hero-copy h1 { margin:0 0 14px; max-width:630px; color:var(--sb-forest-deep)!important; font-size:clamp(38px,4.2vw,61px); line-height:1.04; }
.sb-hero-copy h1 em { font-weight:400; }
.sb-hero-subtitle { color:#4e5548; max-width:550px; font-size:17px; line-height:1.55; margin-bottom:20px!important; }
.sb-hero-benefits { display:flex; flex-wrap:wrap; gap:13px 24px; margin-top:22px; color:#555a4e; font-size:12px; font-weight:600; }
.sb-hero-art { position:relative; overflow:hidden; background:radial-gradient(circle at 68% 24%,#fff9dd 0 9%,transparent 26%),linear-gradient(120deg,#e9dfc4,#bfc9a5); }
.sb-sun { position:absolute; width:240px;height:240px;right:33px;top:10px;border-radius:50%;background:#fff8de;filter:blur(27px);opacity:.78; }
.sb-book-spines { position:absolute; left:8%; right:8%; bottom:50px; height:125px; display:flex; align-items:end; justify-content:center; transform:rotate(-5deg); filter:drop-shadow(0 16px 12px rgba(47,42,30,.18)); }
.sb-book-spines i { display:block; height:110px; width:22%; margin-right:3%; background:#5f734f; border:4px solid rgba(69,56,33,.17); border-radius:6px 6px 2px 2px; box-shadow:inset 10px 0 0 rgba(255,255,255,.12),inset -5px 0 0 rgba(0,0,0,.13); }
.sb-book-spines i:nth-child(2) { background:#9c5d39; height:145px; }
.sb-book-spines i:nth-child(3) { background:#e2b97b; height:125px; }
.sb-book-spines i:nth-child(4) { background:#395e46; height:155px; }
.sb-hero-teacup { position:absolute; font-size:66px; bottom:168px; right:9%; text-shadow:0 10px 9px rgba(43,45,31,.12); }
.sb-leaf { position:absolute; background:#547e51; width:150px; height:90px; opacity:.25; border-radius:100% 0; transform:rotate(26deg); }
.sb-leaf-one { top:15px; right:-45px; }.sb-leaf-two { top:75px; right:3px; transform:rotate(105deg); }
.sb-art-caption { position:absolute; bottom:18px; left:20px; right:20px; font:italic 16px Georgia,serif; text-align:center; color:#586445; }
.sb-home-content { padding:0 12px; }
.sb-section { margin:43px 0 0; }
.sb-section-title { display:flex; justify-content:space-between; align-items:end; gap:18px; margin-bottom:20px; }
.sb-section-title h2 { margin:0 0 5px; font-size:clamp(26px,2.9vw,34px); line-height:1.14; }
.sb-section-title p:not(.sb-eyebrow) { color:var(--sb-muted); font-size:14px; margin:0; }
.sb-section-title > a,.sb-section-title > span.sb-section-count { flex-shrink:0; font-size:13px; font-weight:700; margin-bottom:5px; }
.sb-section-title > a span { font-size:19px; margin-left:5px; }
.sb-cover-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:18px; }
.sb-cover-card { min-width:0; }
.sb-cover-link { display:block; position:relative; width:100%; aspect-ratio:3/4.35; background:#e5e2d7; overflow:hidden; border-radius:9px; box-shadow:0 4px 14px rgba(35,39,33,.10); }
.sb-cover-link img { width:100%; height:100%; object-fit:cover; transition:transform .28s ease; }
.sb-cover-link:hover img { transform:scale(1.035); }
.sb-cover-card h3 { font:700 15px/1.22 Georgia,serif; margin:12px 0 3px; overflow-wrap:anywhere; }
.sb-cover-card h3 a { color:var(--sb-ink)!important; }
.sb-card-author { font-size:12px; color:var(--sb-muted); line-height:1.4; margin:0 0 4px!important; }
.sb-card-rating { color:#4f574a; font-size:13px; font-weight:700; margin:5px 0!important; }
.sb-card-rating > span,.sb-card-rating:first-letter { color:#bd861e; }.sb-card-rating small { font-weight:400; color:var(--sb-muted); font-size:11px; }
.sb-genre-section { padding:26px 30px 29px; background:#fffcf7; border:1px solid var(--sb-line); border-radius:16px; }
.sb-genre-pills { display:flex; flex-wrap:wrap; gap:11px; }.sb-genre-pills a { padding:11px 19px; background:#f7f4ed; border-radius:40px; border:1px solid #ddd5c8; font-size:13px; font-weight:700; color:var(--sb-forest-deep)!important; }
.sb-genre-pills a:hover { background:#e9f0e4; border-color:#b7ceb6; }
.sb-discovery-banner { display:flex; gap:23px; align-items:center; margin-top:43px; padding:25px 30px; border-radius:16px; background:linear-gradient(110deg,#eae8d9,#f8f3e4); border:1px solid #dfdbc8; }
.sb-discovery-banner h2 { font-size:28px; margin:0 0 6px; }.sb-discovery-banner p:not(.sb-eyebrow) { margin:0; font-size:13px; color:var(--sb-muted); }.sb-banner-icon { font-size:55px; }
.sb-button { display:inline-flex; align-items:center; justify-content:center; gap:12px; border-radius:9px; padding:12px 17px; min-height:45px; font-size:14px; font-weight:700; border:1px solid var(--sb-forest); white-space:nowrap; cursor:pointer; }
body.sb-site a.sb-button-primary { background:var(--sb-forest); color:white; box-shadow:0 3px 10px rgba(22,65,37,.12); }body.sb-site a.sb-button-primary:hover { background:#346a45; color:white; }
body.sb-site a.sb-button-outline { background:transparent; color:var(--sb-forest); }body.sb-site a.sb-button-outline:hover { background:var(--sb-forest-light); }
.sb-discovery-banner .sb-button { margin-left:auto; }
.sb-about-panel { margin-top:46px; padding:32px 40px; border:1px solid var(--sb-line); border-radius:var(--sb-radius); background:#fffdf8; }
.sb-about-panel h2 { font-size:26px; margin:0 0 10px; }.sb-about-panel p { max-width:960px; color:var(--sb-muted); font-size:14px; }
.sb-about-links { display:flex;gap:22px;flex-wrap:wrap;margin-top:16px;font-size:13px;font-weight:bold; }
/* Site search: preserve original partial's working autocomplete and handlers. */
.sb-hero-copy .searchHeader { width:100%; margin:0; padding:0; max-width:620px; }
.sb-hero-copy .searchHeader .row,.sb-hero-copy .searchHeader .col-md-12 { margin:0;padding:0; }
.sb-hero-copy .searchHeader .input-group { display:flex; flex-wrap:nowrap; background:white; min-height:55px; border-radius:12px; border:1px solid #e3d9c7; box-shadow:0 6px 22px rgba(44,54,37,.12); overflow:hidden; width:100%; }
.sb-hero-copy .searchHeader .input-group-addon { flex:0 0 93px; width:93px!important; border:0; background:#fcfaf6; padding:0!important; display:flex; }
.sb-hero-copy .searchHeader select { font-size:13px; border:0; color:var(--sb-forest); background:transparent; padding:4px 10px; width:93px; height:55px!important; }
.sb-hero-copy .searchHeader input.form-control { border:0; height:55px!important; min-width:0; width:0; flex:1 1 auto; box-shadow:none!important; color:var(--sb-ink); background:transparent; padding:0 14px; font-size:14px; }
.sb-hero-copy .searchHeader .input-group-btn { flex:0 0 auto; width:auto; display:flex; }
.sb-hero-copy .searchHeader .input-group-btn button { border:0; border-radius:8px; margin:6px; padding:0 17px; background:var(--sb-forest); height:43px; color:white; font-weight:700; font-size:12px; }
/* Inner-page layouts */
.sb-breadcrumbs { display:flex; gap:12px; flex-wrap:wrap; align-items:center; padding:24px 0 20px; font-size:12px; color:#899083; }
.sb-breadcrumbs a { color:var(--sb-muted)!important; }.sb-breadcrumbs span:last-child { color:#445344; }
.sb-book-hero { display:grid; grid-template-columns:215px minmax(0,1fr) 245px; gap:30px; background:#fffdf9; border:1px solid var(--sb-line); padding:29px; border-radius:17px; box-shadow:var(--sb-shadow); }
.sb-book-cover img { display:block; width:100%; height:auto; max-height:325px; object-fit:contain; object-position:top; border-radius:8px; background:#ebe6dc; box-shadow:0 8px 24px rgba(35,32,22,.13); }
.sb-book-information h1 { font-size:clamp(30px,3vw,45px); line-height:1.1; margin:0 0 7px; }.sb-book-information h1 em { font-weight:500; }
.sb-book-byline { font-size:15px; color:var(--sb-muted); }.sb-book-byline strong { color:var(--sb-ink); }
.sb-book-information .sb-description { font-size:14px; line-height:1.75; margin-top:15px; max-width:720px; white-space:pre-line; }
.sb-book-rating { margin-top:13px; }.sb-book-rating .star { font-size:24px; }.sb-book-rating #starContainer { display:flex;align-items:center;flex-wrap:wrap;gap:2px; }.sb-book-rating .text-muted { margin-left:12px; font-size:12px; }
.sb-book-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }.sb-book-badges span { background:#f1eee5; border:1px solid #e6dfd2; border-radius:30px; font-size:12px; padding:5px 11px; color:#615b4a; }
.sb-book-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }.sb-book-author-link { margin-top:16px; font-size:12px; }.sb-book-author-link a { font-weight:700; }
.sb-book-aside { align-self:start; padding:23px; background:linear-gradient(140deg,#f1f4e9,#e9efe3); border-radius:13px; border:1px solid #dce6d3; }.sb-book-aside h2 { font-size:21px; margin:0 0 9px; }.sb-book-aside p { color:#556255; font-size:13px; line-height:1.55; }.sb-book-aside .sb-big-number { font:bold 45px Georgia,serif; color:var(--sb-forest); line-height:1.3; }.sb-book-aside > span { color:#516453; font-size:12px; }.sb-book-aside hr { border-color:#d3ddcb; margin:17px 0; }.sb-book-aside a { font-size:13px; font-weight:800; }
.sb-similar-section { margin-top:40px; }.sb-section-count { background:var(--sb-forest-light); color:var(--sb-forest); padding:9px 14px; border-radius:35px; }
.sb-recommendation-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.sb-recommendation-card { background:var(--sb-paper); border:1px solid var(--sb-line); border-radius:13px; padding:18px; display:flex; flex-direction:column; min-width:0; box-shadow:0 3px 15px rgba(43,34,16,.035); }
.sb-recommendation-cover { display:block; align-self:center; width:75%; height:235px; margin-bottom:15px; }
.sb-recommendation-cover img { width:100%; height:100%; object-fit:cover; border-radius:8px; background:#eee; box-shadow:0 5px 15px rgba(30,30,30,.12); }
.sb-recommendation-card h3 { font-size:17px; line-height:1.22; margin:0 0 6px; }
.sb-recommendation-card h3 a { color:var(--sb-ink)!important; }
.sb-recommendation-card .sb-card-author { margin-bottom:5px!important; }.sb-recommendation-desc { color:var(--sb-muted); font-size:12px; line-height:1.5; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; margin:8px 0!important; }
.sb-vote-controls { margin-top:auto; padding-top:14px; }.sb-vote-caption { display:block; font-size:12px; font-weight:700; margin-bottom:8px; }.sb-vote-controls > div { display:flex; gap:8px; flex-wrap:wrap; }
.sb-vote-controls button { flex:1; font-size:12px; font-weight:700; border:1px solid #d6e0cc; background:#eaf3e4; color:#245437; padding:8px 5px; border-radius:8px; }.sb-vote-controls button.sb-vote-no { color:#8b5241; background:#fbf2ef; border-color:#ead8d0; }.sb-vote-controls button span { opacity:.7; margin-left:2px; }.sb-vote-controls button:hover { filter:brightness(.95); }
.sb-how-panel { display:grid; grid-template-columns:1fr 1fr; gap:25px; border:1px solid var(--sb-line); border-radius:15px; background:#f2f0e6; margin:37px 0; padding:27px; }.sb-how-panel > div+div { border-left:1px solid #d9ddcf; padding-left:28px; }.sb-how-panel h2 { font-size:23px; margin:0 0 10px; }.sb-how-panel p { font-size:13px; color:var(--sb-muted); }
.sb-fellowship { padding:22px; margin:25px 0; border:1px solid var(--sb-line); background:var(--sb-paper); border-radius:13px; }
.sb-community-block .rowP,.sb-suggest .panel,.sb-legacy-more { background:var(--sb-paper); border-color:var(--sb-line); border-radius:12px; }.sb-suggest,.sb-community-block { margin-top:38px; }.sb-community-block h2,.sb-suggest h2,.sb-legacy-more h2 { font-size:25px; }
.sb-book-bottom-share { margin:34px 0; }.sb-notfound { padding:60px; min-height:50vh; text-align:center; }
/* Author pages */
.sb-author-hero { display:grid; grid-template-columns:205px minmax(0,1fr); align-items:center; gap:31px; padding:30px; border:1px solid var(--sb-line); border-radius:17px; background:radial-gradient(circle at 94% 20%,#e7eee0,transparent 37%),linear-gradient(110deg,#fffdf8,#f6f1e4); }
.sb-author-image img,.sb-author-placeholder { width:205px; height:240px; object-fit:cover; border-radius:11px; box-shadow:0 5px 20px rgba(36,47,34,.11); background:#dedfd4; }
.sb-author-placeholder { display:grid; place-items:center; font-size:98px; color:#79917d; }
.sb-author-intro h1 { font-size:clamp(35px,4vw,51px); color:var(--sb-forest-deep)!important; margin:0 0 8px; }.sb-author-quick-facts { display:flex; flex-wrap:wrap; gap:10px 22px; margin-bottom:15px; font-size:13px; color:#6f6f61; font-weight:650; }.sb-author-biography { max-width:830px; font-size:14px; line-height:1.8; white-space:pre-line; }
.sb-author-featured { grid-template-columns:repeat(6,minmax(0,1fr)); }
.sb-author-columns { display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:26px; margin-top:10px; align-items:start; }.sb-author-bibliography { margin-top:28px; }.sb-author-sidebar { padding-top:27px; }
.sb-bibliography-scroller { overflow-x:auto; border:1px solid var(--sb-line); border-radius:12px; background:#fffdf8; }.sb-bibliography { min-width:590px; width:100%; border-collapse:collapse; }.sb-bibliography th { background:#f1eee4; color:#545950; font-size:12px; text-align:left; padding:12px 15px; white-space:nowrap; }.sb-bibliography td { border-top:1px solid #ece7df; padding:11px 15px; font-size:13px; vertical-align:middle; }.sb-bibliography tr:hover td { background:#f8f9f4; }.sb-bibliography td:nth-child(2) a { font-weight:700; color:var(--sb-ink); }.sb-bibliography td:first-child { color:var(--sb-muted); }
.sb-sidebar-card { padding:19px 18px; background:#fffdf8; border-radius:12px; border:1px solid var(--sb-line); margin-bottom:17px; }.sb-sidebar-card h2 { font-size:21px; margin:0 0 15px; }.sb-sidebar-card > p { color:#62695d; font-size:13px; }.sb-sidebar-card > p:has(strong) { display:flex; justify-content:space-between; gap:15px; padding-bottom:8px; border-bottom:1px solid #efebe2; }.sb-sidebar-card strong { color:#374739; }.sb-sidebar-card a { font-size:13px; font-weight:700; }.sb-muted { color:#999; }
.sb-empty { padding:25px; border:1px dashed #dbd5c6; border-radius:10px; font-size:14px; color:var(--sb-muted); background:var(--sb-paper); }
/* Site footer */
.sb-site-footer { background:#173f2a; color:#d5e2d4; padding:47px 26px 20px; }
.sb-footer-inner { display:grid; grid-template-columns:minmax(0,2fr) 1fr 1fr; gap:50px; max-width:1250px; margin:auto; }.sb-footer-inner p { margin-top:12px!important; max-width:370px; font-size:13px; color:#bfcebf; }.sb-footer-inner nav { display:flex; flex-direction:column; gap:9px; font-size:13px; }.sb-footer-inner nav strong { color:white; font-size:14px; margin-bottom:5px; }
body.sb-site .sb-footer-inner a { color:#d5e2d4; }body.sb-site a.sb-footer-brand { color:white!important; font:26px Georgia,serif; }.sb-footer-bottom { max-width:1250px; margin:35px auto 0; border-top:1px solid rgba(255,255,255,.13); padding-top:18px; font-size:12px; color:#a7baa9; }
body.sb-site .sb-back-to-top { display:none; z-index:100; position:fixed; bottom:24px; right:21px; background:var(--sb-forest); border:0; border-radius:50%; width:42px; height:42px; color:white; font-size:20px; box-shadow:0 5px 18px rgba(0,0,0,.18); }
/* Legacy page styling. Avoid affecting administrator layout or JS modal behaviour. */
body.sb-site .sb-main > .row { margin-top:25px; }
body.sb-site .sb-main .panel.panel-default { border-color:var(--sb-line); box-shadow:none; }
body.sb-site .sb-main .btn-primary { background:var(--sb-forest); border-color:var(--sb-forest); }
body.sb-site .sb-main h1.BookDetailTitleBig,body.sb-site .sb-main h1.BookDetailAuthorNameBig { color:var(--sb-forest-deep); }
body.sb-site .sb-main .rowP { background:#fffdf8; }
body.sb-site .sb-main .separator { border-bottom:1px solid var(--sb-line); }
body.sb-site .modal.show { background:rgba(0,0,0,.45); overflow:auto; }
body.sb-site .modal .modal-content { border-radius:12px; }
@media(max-width:1150px) {
  .sb-site-header-inner { gap:18px; }.sb-primary-nav { gap:13px; }.sb-primary-nav > a,.sb-genres-menu > summary { font-size:13px; }
  .sb-cover-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }.sb-book-hero { grid-template-columns:180px minmax(0,1fr); }.sb-book-aside { display:none; }
  .sb-recommendation-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:850px) {
  .sb-site-header-inner { flex-wrap:wrap; padding:11px 19px; gap:11px 20px; }.sb-primary-nav { order:3; width:100%; justify-content:flex-start; border-top:1px solid var(--sb-line); padding:10px 0 2px; }.sb-header-search { max-width:none; }.sb-genres-dropdown { left:-170px; }
  body.sb-site .sb-main { padding:0 15px 40px; }.sb-home-hero-inner { grid-template-columns:1fr; }.sb-hero-copy { padding:37px 31px; }.sb-hero-art { display:none; }
  .sb-cover-grid,.sb-author-featured { grid-template-columns:repeat(4,minmax(0,1fr)); }.sb-author-columns { grid-template-columns:1fr; }.sb-author-sidebar { padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:15px; }.sb-sidebar-card { margin:0; }
  .sb-book-hero { gap:23px; }.sb-recommendation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:570px) {
  body.sb-site .sb-main { padding:0 10px 30px; }.sb-brand { font-size:22px!important; }.sb-account-actions { margin-left:auto; }.sb-header-search { order:3; flex-basis:100%; max-width:none; margin:0; }.sb-primary-nav { order:4; gap:17px; overflow-x:auto; padding-bottom:9px; }.sb-genres-dropdown { left:-120px; width:88vw; }.sb-genres-dropdown-grid { grid-template-columns:repeat(2,1fr); }
  .sb-home-hero { margin-top:12px; border-radius:14px; }.sb-hero-copy { padding:32px 18px 25px; }.sb-hero-copy h1 { font-size:38px; }.sb-hero-subtitle { font-size:14px; }.sb-hero-benefits { font-size:11px; }.sb-home-content { padding:0 3px; }
  .sb-hero-copy .searchHeader .input-group-addon { flex-basis:77px; width:77px!important; }.sb-hero-copy .searchHeader select { width:77px; padding:2px 5px; }.sb-hero-copy .searchHeader .input-group-btn button { padding:0 9px; }
  .sb-section { margin-top:29px; }.sb-section-title { align-items:start; }.sb-section-title h2 { font-size:25px; }.sb-section-title > a { max-width:95px; text-align:right; font-size:11px; }.sb-section-title p:not(.sb-eyebrow) { font-size:12px; }
  .sb-cover-grid,.sb-author-featured { grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }.sb-cover-card h3 { font-size:13px; }.sb-card-author { font-size:11px; }.sb-genre-section { padding:20px 12px; }.sb-genre-pills { gap:7px; }.sb-genre-pills a { padding:8px 11px; font-size:11px; }
  .sb-discovery-banner { flex-wrap:wrap; padding:23px; }.sb-discovery-banner h2 { font-size:24px; }.sb-discovery-banner .sb-button { margin:0; }.sb-banner-icon { font-size:35px; }.sb-about-panel { padding:24px; }
  .sb-breadcrumbs { font-size:11px; padding:15px 2px; }.sb-book-hero { display:block; padding:18px; }.sb-book-cover { float:left; max-width:115px; margin:0 15px 10px 0; }.sb-book-cover img { max-height:180px; }.sb-book-information h1 { font-size:29px; }.sb-book-byline { font-size:13px; }.sb-book-rating { clear:both; padding-top:8px; }.sb-book-actions { gap:7px; }.sb-button { font-size:12px; min-height:42px; padding:10px 12px; }
  .sb-recommendation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.sb-recommendation-card { padding:10px; }.sb-recommendation-cover { height:172px; width:85%; }.sb-recommendation-card h3 { font-size:14px; }.sb-recommendation-desc { font-size:11px; }.sb-vote-controls button { padding:7px 3px; font-size:11px; }.sb-how-panel { grid-template-columns:1fr; padding:19px; }.sb-how-panel > div+div { border:0; border-top:1px solid #d9ddcf; padding:15px 0 0; }
  .sb-author-hero { display:block; padding:21px; }.sb-author-image { float:left; margin:0 17px 10px 0; }.sb-author-image img,.sb-author-placeholder { width:110px; height:140px; }.sb-author-placeholder { font-size:52px; }.sb-author-intro h1 { font-size:31px; }.sb-author-intro .sb-book-actions { clear:both; }.sb-author-biography { clear:both; padding-top:14px; }.sb-author-sidebar { grid-template-columns:1fr; }.sb-footer-inner { grid-template-columns:1fr 1fr; gap:30px; }.sb-footer-inner > div { grid-column:span 2; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }.sb-cover-link img { transition:none; } }

/* Optional configured AdSense placement: no empty ad box when disabled. */
.sb-ad-unit { clear:both; margin:28px auto; width:100%; max-width:1040px; min-height:90px; text-align:center; }
.sb-ad-unit .sb-ad-label { display:block; font-size:10px; text-transform:uppercase; color:#8f958e; letter-spacing:.15em; margin-bottom:8px; }

.sb-book-topics { margin-top:30px; padding:21px 26px; border:1px solid var(--sb-line); border-radius:12px; background:#fffdf9; }
.sb-book-topics h2 { font-size:21px; margin:0 0 8px; }.sb-book-topics p { color:var(--sb-muted); font-size:13px; }
