:root{--bdf-library-accent:#0f766e;--bdf-ink:#172033;--bdf-muted:#7b8798;--bdf-line:#e3e8ef;--bdf-panel:#fff;--bdf-soft:#f6f8fb}.bdf-book-library-page{background:#fff}.bdf-library-shell{width:min(1440px,calc(100% - 44px));margin:0 auto;padding:34px 0 64px;color:var(--bdf-ink);font-family:inherit}.bdf-library-shell *{box-sizing:border-box}.bdf-library-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:22px;color:#8a95a5;font-size:13px}.bdf-library-breadcrumbs a{color:#5d697a;text-decoration:none}.bdf-library-breadcrumbs a:hover{color:#0f766e}.bdf-library-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,500px);gap:30px;align-items:end;padding:28px 30px;border:1px solid #e8edf3;border-radius:24px;background:linear-gradient(135deg,#fbfdfd 0%,#f7fafc 58%,#f3f8f7 100%);box-shadow:0 16px 46px rgba(15,23,42,.05)}.bdf-library-eyebrow{display:block;margin-bottom:8px;color:#0f766e;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.13em}.bdf-library-hero h1{margin:0;color:#172033;font-size:clamp(32px,4vw,54px);line-height:1.03;letter-spacing:-.045em}.bdf-library-description{max-width:760px;margin-top:13px;color:#667386;font-size:15px;line-height:1.7}.bdf-library-description p{margin:.45em 0}.bdf-library-category-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.bdf-library-category-chips a{display:inline-flex;align-items:center;min-height:34px;padding:0 13px;border:1px solid #dce6e3;border-radius:999px;background:#fff;color:#35645e;text-decoration:none;font-size:12px;font-weight:700}.bdf-library-search{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;min-height:58px;border:1px solid #dfe5ec;border-radius:17px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.06);overflow:hidden}.bdf-library-search-icon{display:grid;place-items:center;color:#6d7888}.bdf-library-search-icon svg{width:20px;height:20px}.bdf-library-search input{min-width:0;height:56px;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#1f2937;font:inherit;font-size:14px;padding:0 6px!important}.bdf-library-search button{align-self:stretch;margin:7px;padding:0 16px;border:0;border-radius:11px;background:#152235;color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.bdf-library-search-clear{position:absolute;right:82px;top:50%;transform:translateY(-50%);color:#8a95a5;font-size:11px;text-decoration:none}.bdf-library-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start;margin-top:28px}.bdf-library-results{min-width:0}.bdf-library-results-bar{display:flex;align-items:baseline;gap:7px;margin:0 4px 16px;color:#7f8a9a;font-size:14px}.bdf-library-results-bar strong{color:#263247;font-size:15px}.bdf-library-results-bar small{margin-left:auto;color:#98a2b0;font-size:11px}.bdf-library-card{overflow:hidden;border:1px solid #e0e6ed;border-radius:22px;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.05);transition:transform .2s ease,box-shadow .2s ease}.bdf-library-card:hover{transform:translateY(-3px);box-shadow:0 20px 42px rgba(15,23,42,.09)}.bdf-library-card-media{position:relative;display:block;aspect-ratio:2/3;margin:18px 18px 0;overflow:hidden;border-radius:18px;background:linear-gradient(145deg,#0f766e,#164e63);text-decoration:none}.bdf-library-card-media:focus-visible{outline:3px solid rgba(15,118,110,.3);outline-offset:3px}.bdf-library-cover{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;object-position:center;transform:scale(1.005);transition:transform .25s ease}.bdf-library-card:hover .bdf-library-cover{transform:scale(1.03)}.bdf-library-cover-fallback{position:absolute;inset:0;background:linear-gradient(145deg,#0f766e,#155e75)}.bdf-accent-1 .bdf-library-cover-fallback{background:linear-gradient(145deg,#2563eb,#3730a3)}.bdf-accent-2 .bdf-library-cover-fallback{background:linear-gradient(145deg,#172033,#334155)}.bdf-accent-3 .bdf-library-cover-fallback{background:linear-gradient(145deg,#7c3aed,#4338ca)}.bdf-accent-4 .bdf-library-cover-fallback{background:linear-gradient(145deg,#b45309,#7c2d12)}.bdf-accent-5 .bdf-library-cover-fallback{background:linear-gradient(145deg,#047857,#115e59)}.bdf-library-cover-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,12,24,.08) 8%,rgba(6,12,24,.16) 42%,rgba(6,12,24,.82) 100%)}.bdf-library-cover-copy{position:absolute;z-index:2;inset:auto 22px 22px;display:flex;flex-direction:column;align-items:flex-start;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.35)}.bdf-library-cover-copy small{margin-bottom:7px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;opacity:.9}.bdf-library-cover-copy strong{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-family:Georgia,"Times New Roman",serif;font-size:28px;line-height:1.08;letter-spacing:-.025em}.bdf-library-cover-copy em{margin-top:14px;padding:7px 10px;border:1px solid rgba(255,255,255,.3);border-radius:999px;background:rgba(255,255,255,.16);backdrop-filter:blur(8px);font-size:11px;font-style:normal;font-weight:800;text-shadow:none}.bdf-library-card-body{padding:17px 20px 18px}.bdf-library-card-category{display:block;margin-bottom:7px;color:#0f766e;font-size:12px;font-weight:800}.bdf-library-card h2{margin:0!important;font-size:20px!important;line-height:1.3!important;letter-spacing:-.025em!important}.bdf-library-card h2 a{color:#182235!important;text-decoration:none!important}.bdf-library-card-author{margin:9px 0 15px!important;color:#8490a0!important;font-size:13px!important}.bdf-library-card-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:13px;border-top:1px solid #e8ecf1;color:#758196;font-size:12px}.bdf-library-card-foot a{color:#354158;text-decoration:none;font-weight:800;white-space:nowrap}.bdf-library-sidebar{position:sticky;top:28px;display:flex;flex-direction:column;gap:18px}.bdf-library-widget{overflow:hidden;border:1px solid #e1e7ed;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.045)}.bdf-library-widget h2{margin:0!important;padding:17px 18px 12px!important;color:#1f2937!important;font-size:15px!important;line-height:1.25!important;letter-spacing:-.015em!important}.bdf-subject-links{display:flex;flex-direction:column;padding:0 9px 10px}.bdf-subject-links a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:0 10px;border-radius:10px;color:#596578;text-decoration:none;font-size:12px;font-weight:700}.bdf-subject-links a:hover{background:#f4f8f7;color:#0f766e}.bdf-subject-links a.is-active{background:#edf7f5;color:#0f766e}.bdf-subject-links small{display:grid;place-items:center;min-width:25px;height:24px;padding:0 6px;border-radius:999px;background:#f2f4f7;color:#98a2b0;font-size:9px}.bdf-library-ad{padding:9px}.bdf-library-ad-live{display:grid;place-items:center;overflow:hidden;min-height:60px}.bdf-library-ad-live iframe,.bdf-library-ad-live img{max-width:100%}.bdf-library-ad-placeholder{display:grid;place-items:center;min-height:250px;border:1px dashed #d8dfe7;border-radius:13px;background:repeating-linear-gradient(135deg,#fafbfc,#fafbfc 11px,#f5f7f9 11px,#f5f7f9 22px);color:#9aa4b1;text-align:center}.bdf-library-ad-placeholder small{font-size:9px;text-transform:uppercase;letter-spacing:.12em}.bdf-library-ad-placeholder strong{margin:7px 0 2px;color:#7f8997;font-size:18px}.bdf-library-ad-placeholder span{font-size:10px}.bdf-library-pagination{margin-top:30px}.bdf-library-pagination .nav-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px}.bdf-library-pagination .page-numbers{display:grid;place-items:center;min-width:38px;height:38px;padding:0 11px;border:1px solid #e0e6ed;border-radius:10px;background:#fff;color:#546174;text-decoration:none;font-size:12px;font-weight:750}.bdf-library-pagination .page-numbers.current{border-color:#0f766e;background:#0f766e;color:#fff}.bdf-library-empty{padding:50px 24px;border:1px dashed #dce3ea;border-radius:20px;background:#fafbfc;text-align:center}.bdf-library-empty strong{display:block;color:#273247;font-size:20px}.bdf-library-empty p{margin:8px 0 0;color:#8490a0}.bdf-single-book-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:30px;align-items:start}.bdf-single-book-main{min-width:0}.bdf-single-book-sidebar{position:sticky;top:28px;display:flex;flex-direction:column;gap:18px}.bdf-related-list{display:flex;flex-direction:column;padding:0 10px 10px}.bdf-related-book{display:grid;grid-template-columns:58px minmax(0,1fr);gap:11px;align-items:center;padding:9px;border-radius:12px;color:#263247;text-decoration:none}.bdf-related-book:hover{background:#f6f8fa}.bdf-related-thumb{display:block;width:58px;aspect-ratio:2/3;overflow:hidden;border-radius:8px;background:#edf2f5}.bdf-related-thumb img{width:100%!important;height:100%!important;object-fit:cover}.bdf-related-fallback{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(145deg,#0f766e,#164e63);color:#fff;font-size:22px;font-weight:800}.bdf-related-copy{min-width:0}.bdf-related-copy strong{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:12px;line-height:1.38}.bdf-related-copy small{display:block;margin-top:5px;color:#919aa7;font-size:10px}.bdf-single-book-main>.bdf-download-module{margin-top:28px}.bdf-single-book-content>.bdf-download-module{margin-top:28px}@media(max-width:1180px){.bdf-library-layout{grid-template-columns:minmax(0,1fr) 320px}}@media(max-width:900px){.bdf-library-shell{width:min(100% - 28px,920px);padding-top:24px}.bdf-library-hero{grid-template-columns:1fr;gap:20px;padding:23px}.bdf-library-layout{grid-template-columns:1fr}.bdf-library-sidebar{position:static;display:grid;grid-template-columns:1fr 320px}.bdf-single-book-layout{grid-template-columns:1fr}.bdf-single-book-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr}.bdf-library-card-media{margin:14px 14px 0}}@media(max-width:640px){.bdf-library-shell{width:min(100% - 18px,640px);padding:18px 0 42px}.bdf-library-breadcrumbs{font-size:11px;margin-bottom:14px}.bdf-library-hero{padding:18px;border-radius:18px}.bdf-library-hero h1{font-size:34px}.bdf-library-search{grid-template-columns:38px minmax(0,1fr) auto;min-height:52px}.bdf-library-search input{height:50px;font-size:13px}.bdf-library-search button{padding:0 11px}.bdf-library-search-clear{display:none}.bdf-library-card{border-radius:18px}.bdf-library-card-media{aspect-ratio:2/3}.bdf-library-cover-copy strong{font-size:25px}.bdf-library-sidebar,.bdf-single-book-sidebar{display:flex;flex-direction:column}.bdf-library-ad-placeholder{min-height:180px}.bdf-library-results-bar small{display:none}}
.bdf-library-shell .screen-reader-text,.bdf-single-book-layout .screen-reader-text{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}

/* v2.0.20 compact Book Library / category archive system */
.bdf-library-layout{grid-template-columns:minmax(0,1fr) 260px;gap:24px;margin-top:24px}
.bdf-library-card{width:100%;overflow:hidden;border:1px solid #e2e7ed;border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.045);transition:transform .18s ease,box-shadow .18s ease}
.bdf-library-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,23,42,.075)}
.bdf-library-card-media{aspect-ratio:2/3;margin:12px 12px 0;border-radius:13px}
.bdf-library-cover-copy{inset:auto 15px 15px}
.bdf-library-cover-copy small{margin-bottom:5px;font-size:8.5px;letter-spacing:.1em}
.bdf-library-cover-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:20px;line-height:1.1;letter-spacing:-.02em}
.bdf-library-cover-copy em{margin-top:9px;padding:5px 8px;font-size:9.5px}
.bdf-library-card-body{padding:13px 15px 14px}
.bdf-library-card-category{margin-bottom:5px;font-size:11px}
.bdf-library-card h2{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0!important;font-size:17px!important;line-height:1.28!important;letter-spacing:-.015em!important}
.bdf-library-card-author{margin:7px 0 11px!important;font-size:12.5px!important}
.bdf-library-card-foot{gap:10px;padding-top:10px;font-size:11.5px}
.bdf-library-sidebar{top:24px;gap:14px}
.bdf-library-widget{border-radius:15px;box-shadow:0 7px 22px rgba(15,23,42,.04)}
.bdf-library-widget h2{padding:14px 15px 9px!important;font-size:15px!important}
.bdf-subject-links{padding:0 8px 9px}
.bdf-subject-links a{min-height:38px;padding:0 9px;border-radius:9px;font-size:11.5px}
.bdf-subject-links small{min-width:23px;height:22px;font-size:8.5px}
.bdf-library-results-bar{margin-bottom:13px;font-size:13px}
.bdf-library-results-bar strong{font-size:14px}
.bdf-library-pagination{margin-top:24px}

@media(max-width:1180px){
  .bdf-library-layout{grid-template-columns:minmax(0,1fr) 250px;gap:22px}
}
@media(max-width:900px){
  .bdf-library-layout{grid-template-columns:1fr;gap:22px}
  .bdf-library-sidebar{position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;width:100%}
}
@media(max-width:640px){
  .bdf-library-shell{width:min(100% - 24px,640px)}
  .bdf-library-card{border-radius:16px}
  .bdf-library-card-media{margin:11px 11px 0;border-radius:12px}
  .bdf-library-cover-copy{inset:auto 14px 14px}
  .bdf-library-cover-copy strong{font-size:19px}
  .bdf-library-card-body{padding:12px 14px 13px}
  .bdf-library-card h2{font-size:16.5px!important}
  .bdf-library-sidebar{display:grid;grid-template-columns:1fr}
}


/* v2.0.19 single-book design system — one canonical responsive block */
.bdf-book-page-shell{
  --bdf-book-accent:#0f766e;
  --bdf-book-border:#e2e8ec;
  --bdf-book-soft:#f6faf9;
  --bdf-book-muted:#718078;
  --bdf-book-rail:224px;
  --bdf-book-gap:32px;
  --bdf-book-rail-offset:56px;
  --bdf-book-radius-sm:10px;
  --bdf-book-radius-md:14px;
  --bdf-book-radius-lg:18px;
  width:min(1280px,calc(100% - 88px));
  margin:0 auto;
  padding:32px 0 72px;
  color:inherit;
}
.bdf-book-page-shell *{box-sizing:border-box}
.bdf-book-breadcrumbs{display:flex;align-items:center;gap:8px;min-width:0;margin:0 0 24px;color:#7f8a98;font-size:12px;line-height:1.45;white-space:nowrap;overflow:hidden}
.bdf-book-breadcrumbs a{color:inherit;text-decoration:none}.bdf-book-breadcrumbs a:hover{text-decoration:underline}
.bdf-book-breadcrumbs span[aria-current=page]{min-width:0;overflow:hidden;text-overflow:ellipsis}
.bdf-book-breadcrumbs .bdf-breadcrumb-category{font-weight:600}
.bdf-book-breadcrumbs .bdf-breadcrumb-category.is-current-category{color:var(--bdf-book-accent);font-weight:800;text-decoration:none;box-shadow:inset 0 -2px 0 rgba(15,118,110,.24)}
.bdf-book-breadcrumbs .bdf-breadcrumb-category.is-current-category:hover{color:#0b625c;box-shadow:inset 0 -2px 0 rgba(15,118,110,.5)}

.bdf-book-page-grid{display:grid;grid-template-columns:var(--bdf-book-rail) minmax(0,1fr) var(--bdf-book-rail);gap:var(--bdf-book-gap);align-items:start}
.bdf-book-page-shell--no-sidebar .bdf-book-page-grid{grid-template-columns:var(--bdf-book-rail) minmax(0,820px);justify-content:center}
.bdf-book-page-main{min-width:0}
.bdf-book-cover-column,.bdf-book-page-sidebar{position:sticky;top:92px;margin-top:var(--bdf-book-rail-offset);width:100%;max-width:var(--bdf-book-rail);min-width:0}
.bdf-book-cover-column{display:flex;justify-content:center;justify-self:start;padding:0 0 32px}
.bdf-book-page-sidebar{display:grid;gap:12px;justify-self:end}

/* Book mockup: compact premium object, sized independently from content typography. */
.bdf-book-mockup{--bdf-cover-w:200px;--bdf-cover-h:300px;--bdf-page-w:24px;position:relative;width:224px;height:326px;flex:0 0 224px;isolation:isolate;perspective:1200px;transform-style:preserve-3d}
.bdf-book-mockup-shadow{position:absolute;z-index:0;left:17px;bottom:-13px;width:197px;height:32px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(15,23,42,.22) 0%,rgba(15,23,42,.09) 50%,transparent 78%);filter:blur(8px);transform:rotate(-2deg)}
.bdf-book-mockup-back{position:absolute;z-index:1;top:10px;left:15px;width:var(--bdf-cover-w);height:var(--bdf-cover-h);border:1px solid #cfd8dd;border-radius:9px 14px 14px 9px;background:linear-gradient(180deg,#eef3f5 0%,#dfe7eb 100%);box-shadow:9px 16px 26px rgba(15,23,42,.12);transform:translateZ(-10px) rotateY(-3deg)}
.bdf-book-mockup-pages{position:absolute;z-index:2;top:14px;left:calc(var(--bdf-cover-w) - 5px);width:var(--bdf-page-w);height:calc(var(--bdf-cover-h) - 25px);border:1px solid #d9ddd8;border-left:0;border-radius:0 10px 10px 0;background:repeating-linear-gradient(90deg,#fffdf7 0,#fffdf7 2px,#dedbd1 2px,#dedbd1 3px);box-shadow:5px 7px 12px rgba(15,23,42,.10);transform:skewY(-1.5deg)}
.bdf-book-mockup-top{position:absolute;z-index:2;top:6px;left:20px;width:calc(var(--bdf-cover-w) - 28px);height:11px;border:1px solid #d9ddd8;border-bottom:0;border-radius:6px 8px 0 0;background:repeating-linear-gradient(90deg,#fffdf7 0,#fffdf7 3px,#dedbd1 3px,#dedbd1 4px);transform:skewX(-12deg);transform-origin:left bottom}
.bdf-book-cover-frame{position:absolute;z-index:4;top:0;left:0;width:var(--bdf-cover-w);height:var(--bdf-cover-h);overflow:hidden;border:1px solid rgba(15,23,42,.14);border-radius:10px 7px 7px 10px;background:#fff;box-shadow:0 20px 38px rgba(15,23,42,.17),inset -9px 0 13px rgba(0,0,0,.06);transform:perspective(900px) rotateY(-9deg) rotateZ(-.28deg);transform-origin:left center;backface-visibility:hidden}
.bdf-book-cover-frame:before{content:"";position:absolute;z-index:5;left:0;top:0;bottom:0;width:13px;background:linear-gradient(90deg,rgba(0,0,0,.23),rgba(255,255,255,.09) 38%,rgba(0,0,0,.06) 65%,transparent);pointer-events:none}
.bdf-book-cover-frame:after{content:"";position:absolute;z-index:5;left:0;right:0;bottom:0;height:9px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.08));pointer-events:none}
.bdf-book-cover-image{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;object-fit:cover!important;object-position:center!important}
.bdf-book-cover-fallback{display:flex!important;width:100%!important;height:100%!important;padding:24px;flex-direction:column;justify-content:flex-end;background:linear-gradient(155deg,#0f766e 0%,#164e63 55%,#0f172a 100%);color:#fff}
.bdf-book-cover-fallback span{margin-bottom:auto;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.76}.bdf-book-cover-fallback strong{font:inherit;font-weight:700;line-height:1.2}

/* Typography: font family/color come from the active theme; plugin controls only scale/spacing. */
.bdf-book-page-header{margin:0 0 24px;padding:0 0 22px;border-bottom:1px solid #e7ecef}
.bdf-book-page-header .entry-title{display:block!important;width:auto!important;max-width:none!important;margin:0!important;font-size:clamp(38px,3.2vw,50px)!important;line-height:1.10!important;letter-spacing:-.02em!important;white-space:normal!important;text-wrap:wrap!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
.bdf-book-page-excerpt{margin-top:12px;color:inherit;opacity:.78}.bdf-book-page-excerpt p{margin:0}
.bdf-book-editor-content{color:inherit}.bdf-book-editor-content>:first-child{margin-top:0}.bdf-book-editor-content>:last-child{margin-bottom:0}.bdf-book-editor-content img{max-width:100%;height:auto}
.bdf-book-download-area{margin-top:24px}.bdf-book-download-area .bdf-download-module{width:100%;max-width:none;margin:0}

/* Book details: same visual scale as other plugin sections, while keeping theme heading font. */
.bdf-book-page-shell .bdf-book-info{border-color:var(--bdf-book-border);border-radius:var(--bdf-book-radius-lg);box-shadow:0 10px 30px rgba(15,23,42,.05)}
.bdf-book-page-shell .bdf-book-info-head{gap:12px;padding:16px 20px}
.bdf-book-page-shell .bdf-book-info-title{font-size:18px!important;line-height:1.3!important;letter-spacing:0!important}
.bdf-book-page-shell .bdf-book-info-head small{font-size:12px;line-height:1.45}
.bdf-book-page-shell .bdf-book-table th,.bdf-book-page-shell .bdf-book-table td{padding:13px 18px!important;font-size:13px!important;line-height:1.45!important}
.bdf-book-page-shell .bdf-book-actions{padding:14px 18px}

/* Right rail: same width as left rail; compact, readable, consistent. */
.bdf-book-page-sidebar .bdf-library-widget{margin:0;overflow:hidden;border:1px solid var(--bdf-book-border);border-radius:var(--bdf-book-radius-md);background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.045)}
.bdf-book-page-sidebar .bdf-widget-heading{margin:0!important;padding:16px 16px 10px!important;font-size:18px!important;line-height:1.3!important;letter-spacing:0!important;text-transform:none!important}
.bdf-book-page-sidebar .bdf-subject-links{padding:0 10px 12px}
.bdf-book-page-sidebar .bdf-subject-links a{min-height:42px;padding:0 12px;border-radius:10px;font-size:14px;font-weight:650}
.bdf-book-page-sidebar .bdf-subject-links a.is-active{position:relative;background:#eef8f5}
.bdf-book-page-sidebar .bdf-subject-links a.is-active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:var(--bdf-book-accent)}
.bdf-book-page-sidebar .bdf-subject-links small{min-width:24px;height:22px;font-size:10px}
.bdf-book-page-sidebar .bdf-related-list{padding:0 10px 12px}
.bdf-book-page-sidebar .bdf-related-book{grid-template-columns:50px minmax(0,1fr);gap:10px;padding:8px;border-radius:10px}
.bdf-book-page-sidebar .bdf-related-thumb{width:50px;aspect-ratio:2/3;border-radius:8px}
.bdf-book-page-sidebar .bdf-related-copy strong{font-size:13px;line-height:1.4}.bdf-book-page-sidebar .bdf-related-copy small{font-size:10px}

/* Large tablet / narrow desktop: still three columns, proportionally reduced rails. */
@media(max-width:1180px){
  .bdf-book-page-shell{--bdf-book-rail:200px;--bdf-book-gap:24px;--bdf-book-rail-offset:48px;width:min(1120px,calc(100% - 56px))}
  .bdf-book-page-shell--no-sidebar .bdf-book-page-grid{grid-template-columns:var(--bdf-book-rail) minmax(0,760px)}
  .bdf-book-cover-column,.bdf-book-page-sidebar{position:static;top:auto}
  .bdf-book-mockup{--bdf-cover-w:180px;--bdf-cover-h:270px;--bdf-page-w:21px;width:200px;height:292px;flex-basis:200px}
  .bdf-book-mockup-shadow{left:14px;width:176px;bottom:-10px;height:27px;filter:blur(6px)}
  .bdf-book-mockup-back{top:8px;left:12px}.bdf-book-mockup-pages{top:11px;height:calc(var(--bdf-cover-h) - 20px)}.bdf-book-mockup-top{top:5px;left:17px;height:9px}
}

/* Tablet: book + main content; sidebar becomes a full-width section below main. */
@media(max-width:920px){
  .bdf-book-page-shell{--bdf-book-rail:184px;--bdf-book-gap:24px;width:min(860px,calc(100% - 40px));padding-top:24px}
  .bdf-book-page-grid,.bdf-book-page-shell--no-sidebar .bdf-book-page-grid{grid-template-columns:var(--bdf-book-rail) minmax(0,1fr);gap:24px 28px;justify-content:stretch}
  .bdf-book-cover-column{grid-column:1;grid-row:1;align-self:start;margin-top:40px;padding-bottom:12px}
  .bdf-book-page-main{grid-column:2;grid-row:1;min-width:0}
  .bdf-book-page-sidebar{grid-column:2;grid-row:2;position:static;margin-top:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px;width:100%;max-width:none;justify-self:stretch}
  .bdf-book-page-sidebar .bdf-library-widget{width:100%;min-width:0}
  .bdf-book-mockup{--bdf-cover-w:164px;--bdf-cover-h:246px;--bdf-page-w:20px;width:184px;height:268px;flex-basis:184px}
  .bdf-book-page-header .entry-title{font-size:clamp(34px,4.8vw,44px)!important}
}

/* Phone / small tablet: one column, compact cover and controlled vertical rhythm. */
@media(max-width:680px){
  .bdf-book-page-shell{width:calc(100% - 32px);padding:20px 0 48px}
  .bdf-book-breadcrumbs{margin-bottom:16px;font-size:11px}
  .bdf-book-page-grid,.bdf-book-page-shell--no-sidebar .bdf-book-page-grid{grid-template-columns:1fr;gap:20px}
  .bdf-book-cover-column,.bdf-book-page-main,.bdf-book-page-sidebar{grid-column:1;grid-row:auto}
  .bdf-book-cover-column{position:static;width:100%;max-width:none;margin:0;justify-content:center;padding:0 0 4px}
  .bdf-book-mockup{--bdf-cover-w:156px;--bdf-cover-h:234px;--bdf-page-w:19px;width:176px;height:256px;flex-basis:176px}
  .bdf-book-page-main{width:100%;min-width:0}
  .bdf-book-page-header{margin:0 0 20px;padding:0 0 20px}
  .bdf-book-page-header .entry-title{font-size:32px!important;line-height:1.14!important;letter-spacing:-.015em!important}
  .bdf-book-download-area{margin-top:20px}
  .bdf-book-page-sidebar{position:static;margin:0;display:grid;grid-template-columns:1fr;gap:12px;width:100%;max-width:none;justify-self:stretch}
  .bdf-book-page-sidebar .bdf-library-widget{width:100%;border-radius:var(--bdf-book-radius-md)}
  .bdf-book-page-sidebar .bdf-widget-heading{padding:15px 15px 9px!important;font-size:17px!important}
  .bdf-book-page-sidebar .bdf-subject-links{padding:0 9px 10px}
  .bdf-book-page-sidebar .bdf-subject-links a{min-height:40px;font-size:13.5px}
  .bdf-book-page-shell .bdf-book-info{border-radius:16px}
  .bdf-book-page-shell .bdf-book-info-head{padding:14px 16px}
  .bdf-book-page-shell .bdf-book-info-title{font-size:17px!important}
  .bdf-book-page-shell .bdf-book-info-head small{font-size:11.5px}
  .bdf-book-page-shell .bdf-book-table th,.bdf-book-page-shell .bdf-book-table td{padding:11px 12px!important;font-size:12.5px!important}
  .bdf-book-page-shell .bdf-book-actions{padding:12px}
}

@media(max-width:420px){
  .bdf-book-page-shell{width:calc(100% - 28px);padding-top:18px}
  .bdf-book-page-grid,.bdf-book-page-shell--no-sidebar .bdf-book-page-grid{gap:18px}
  .bdf-book-page-header .entry-title{font-size:30px!important;line-height:1.15!important}
  .bdf-book-mockup{--bdf-cover-w:148px;--bdf-cover-h:222px;--bdf-page-w:18px;width:167px;height:244px;flex-basis:167px}
  .bdf-book-page-sidebar{gap:10px}
}

/* v2.0.21 compact library/category archive */
.bdf-library-shell{width:min(1360px,calc(100% - 56px));padding:26px 0 56px}
.bdf-library-breadcrumbs{margin-bottom:16px;font-size:12px}
.bdf-library-hero{grid-template-columns:minmax(0,1fr) minmax(300px,520px);gap:24px;align-items:center;padding:18px 22px;border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.045)}
.bdf-library-eyebrow{margin-bottom:5px;font-size:10px;letter-spacing:.11em}
.bdf-library-hero h1{font-size:clamp(30px,3vw,42px);line-height:1.05;letter-spacing:-.03em}
.bdf-library-description{margin-top:8px;font-size:14px;line-height:1.6}
.bdf-library-category-chips{gap:6px;margin-top:12px}
.bdf-library-category-chips a{min-height:30px;padding:0 11px;font-size:11px}
.bdf-library-search{grid-template-columns:38px minmax(0,1fr) auto;min-height:50px;border-radius:14px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.bdf-library-search input{height:48px;font-size:13px}
.bdf-library-search button{margin:6px;padding:0 14px;border-radius:10px;font-size:11.5px}
.bdf-library-search-clear{right:74px}
.bdf-library-layout{grid-template-columns:minmax(0,1fr) 240px;gap:24px;margin-top:22px}
.bdf-library-results-bar{margin:0 2px 12px;font-size:13px}
.bdf-library-results-bar strong{font-size:14px}
.bdf-library-card{border-radius:16px;box-shadow:0 8px 22px rgba(15,23,42,.045)}
.bdf-library-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,23,42,.075)}
.bdf-library-card-media{margin:12px 12px 0;border-radius:13px}
.bdf-library-cover-copy{inset:auto 14px 14px}
.bdf-library-cover-copy small{margin-bottom:5px;font-size:8.5px;letter-spacing:.10em}
.bdf-library-cover-copy strong{-webkit-line-clamp:2;font-size:10px;line-height:1.2;letter-spacing:0}
.bdf-library-cover-copy em{margin-top:9px;padding:5px 8px;font-size:9.5px}
.bdf-library-card-body{padding:11px 13px 13px}
.bdf-library-card h2{margin:0!important;font-size:15px!important;line-height:1.3!important;letter-spacing:-.01em!important}
.bdf-library-card h2 a{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}
/* Retired duplicate/meta rows stay hidden for backward-safe markup. */
.bdf-library-card-category,.bdf-library-card-author,.bdf-library-card-foot{display:none!important}
.bdf-library-sidebar{gap:14px}
.bdf-library-sidebar .bdf-library-widget{border-radius:14px;box-shadow:0 7px 20px rgba(15,23,42,.04)}
.bdf-library-sidebar .bdf-widget-heading,.bdf-library-sidebar .bdf-library-widget h2{padding:13px 14px 8px!important;font-size:15px!important}
.bdf-library-sidebar .bdf-subject-links{padding:0 8px 9px}
.bdf-library-sidebar .bdf-subject-links a{min-height:38px;padding:0 9px;font-size:12.5px}
.bdf-library-sidebar .bdf-subject-links small{min-width:22px;height:21px;font-size:9px}

@media(max-width:1020px){
  .bdf-library-shell{width:min(960px,calc(100% - 40px))}
  .bdf-library-layout{grid-template-columns:minmax(0,1fr) 220px;gap:20px}
}
@media(max-width:820px){
  .bdf-library-hero{grid-template-columns:1fr;gap:14px;padding:16px 18px}
  .bdf-library-layout{grid-template-columns:1fr}
  .bdf-library-sidebar{position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));width:100%}
}
@media(max-width:520px){
  .bdf-library-shell{width:calc(100% - 28px);padding:18px 0 42px}
  .bdf-library-breadcrumbs{margin-bottom:12px;font-size:11px}
  .bdf-library-hero{padding:14px;border-radius:15px}
  .bdf-library-hero h1{font-size:30px}
  .bdf-library-search{min-height:48px}
  .bdf-library-search input{height:46px;font-size:12.5px}
  .bdf-library-card-media{margin:11px 11px 0}
  .bdf-library-card-body{padding:10px 12px 12px}
  .bdf-library-card h2{font-size:14.5px!important}
  .bdf-library-sidebar{grid-template-columns:1fr}
}



/* v2.0.25 archive count inside hero + smaller cover title */
.bdf-library-hero-count{display:inline-flex;align-items:center;gap:6px;width:max-content;margin-top:12px;padding:7px 11px;border:1px solid #dce6e3;border-radius:999px;background:rgba(255,255,255,.82);color:#6f7c8e;font-size:11.5px;line-height:1;box-shadow:0 4px 14px rgba(15,23,42,.035)}
.bdf-library-hero-count strong{color:#172033;font-size:13px;font-weight:800}
.bdf-library-hero-count span{font-weight:650}
.bdf-library-results-bar{display:none!important}
@media(max-width:520px){.bdf-library-cover-copy strong{font-size:10px}.bdf-library-hero-count{margin-top:10px;padding:6px 10px;font-size:11px}.bdf-library-hero-count strong{font-size:12px}}


/* v2.0.27 archive search + subject-sidebar polish */
.bdf-library-search{grid-template-columns:38px minmax(0,1fr) auto auto;column-gap:2px;overflow:visible}
.bdf-library-search-clear{position:static;right:auto;top:auto;transform:none;display:grid;place-items:center;width:32px;height:32px;margin:0 1px;border:1px solid #dce5ea;border-radius:50%;background:#f8fbfb;color:#617082;text-decoration:none!important;box-shadow:none;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.bdf-library-search-clear svg{width:15px;height:15px}
.bdf-library-search-clear:hover{border-color:#bddbd4;background:#eef8f5;color:#0f766e;transform:scale(1.03)}
.bdf-library-search-clear:focus-visible{outline:3px solid rgba(15,118,110,.18);outline-offset:2px}
.bdf-library-search button{white-space:nowrap}

.bdf-library-sidebar .bdf-subject-widget--archive{position:relative;overflow:hidden;border:1px solid #dde7e5;border-radius:17px;background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%);box-shadow:0 12px 30px rgba(15,23,42,.055)}
.bdf-library-sidebar .bdf-subject-widget--archive:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#0f766e,#55b9a9 62%,transparent)}
.bdf-subject-widget-head{display:flex;align-items:center;gap:11px;padding:16px 14px 12px;border-bottom:1px solid #edf1f2;background:linear-gradient(135deg,#fbfefd 0%,#f6faf9 100%)}
.bdf-subject-widget-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #cfe4df;border-radius:10px;background:#eef8f5;color:#0f766e;box-shadow:0 4px 12px rgba(15,118,110,.06)}
.bdf-subject-widget-icon svg{width:19px;height:19px}
.bdf-subject-widget-copy{min-width:0}
.bdf-library-sidebar .bdf-subject-widget-copy .bdf-widget-heading{margin:0!important;padding:0!important;font-size:15px!important;line-height:1.25!important}
.bdf-subject-widget-copy p{margin:3px 0 0;color:#83909f;font-size:10.5px;line-height:1.3}
.bdf-library-sidebar .bdf-subject-widget--archive .bdf-subject-links{gap:5px;padding:9px}
.bdf-library-sidebar .bdf-subject-widget--archive .bdf-subject-links a{position:relative;min-height:43px;padding:0 38px 0 11px;border:1px solid transparent;border-radius:11px;background:transparent;color:#3f4d5e;font-size:12.5px;font-weight:700;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.bdf-library-sidebar .bdf-subject-widget--archive .bdf-subject-links a:hover{border-color:#dce9e6;background:#f3faf8;color:#0f766e;transform:translateX(2px)}
.bdf-library-sidebar .bdf-subject-widget--archive .bdf-subject-links a.is-active{border-color:#d5e9e4;background:linear-gradient(90deg,#eaf7f4 0%,#f6fbfa 100%);color:#0f766e}
.bdf-library-sidebar .bdf-subject-widget--archive .bdf-subject-links a.is-active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 4px 4px 0;background:#0f766e}
.bdf-library-sidebar .bdf-subject-widget--archive .bdf-subject-links a:after{content:"›";position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#9aa5b1;font-size:16px;font-weight:600;line-height:1;transition:color .16s ease,transform .16s ease}
.bdf-library-sidebar .bdf-subject-widget--archive .bdf-subject-links a:hover:after{color:#0f766e;transform:translate(2px,-50%)}
.bdf-library-sidebar .bdf-subject-widget--archive .bdf-subject-links small{position:absolute;right:28px;min-width:22px;height:22px;padding:0 6px;border:1px solid #e6ebef;background:#fff;color:#7e8997;font-size:9px;box-shadow:0 2px 6px rgba(15,23,42,.025)}
@media(max-width:640px){
  .bdf-library-search{grid-template-columns:34px minmax(0,1fr) auto auto;column-gap:1px}
  .bdf-library-search-clear{display:grid;width:30px;height:30px;margin:0}
  .bdf-library-search-clear svg{width:14px;height:14px}
  .bdf-subject-widget-head{padding:14px 12px 10px}
  .bdf-subject-widget-icon{width:32px;height:32px;flex-basis:32px}
}

/* v2.0.42 canonical archive grid — single source of truth.
 * Column count is based only on the actual results-container width, not the viewport.
 * Cards stay compact (max 230px) and move 4 → 3 → 2 columns as usable space changes.
 */
.bdf-library-results{container-type:inline-size}
.bdf-library-grid{
  --bdf-archive-gap:14px;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:var(--bdf-archive-gap)!important;
  width:100%!important;
  max-width:474px!important; /* 2 × 230 + 14 */
  justify-content:start!important;
  align-items:start!important;
}
.bdf-library-grid>.bdf-library-card{
  width:100%!important;
  max-width:230px!important;
  min-width:0!important;
}

/* Enough room for three genuinely compact cards. */
@container (min-width:505px){
  .bdf-library-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    max-width:718px!important; /* 3 × 230 + 2 × 14 */
  }
}

/* Fill the common desktop/tablet results width with four cards. */
@container (min-width:690px){
  .bdf-library-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    max-width:962px!important; /* 4 × 230 + 3 × 14 */
  }
}

/* Small phones keep two columns, but never overflow. */
@container (max-width:359px){
  .bdf-library-grid{gap:10px!important;max-width:none!important}
  .bdf-library-card-media{margin:8px 8px 0!important}
  .bdf-library-card-body{padding:8px 9px 10px!important}
  .bdf-library-card h2{font-size:13px!important}
}


/* v2.0.33 compact premium Book Library hero — main archive only */
.bdf-library-hero--archive{
  position:relative;
  overflow:hidden;
  grid-template-columns:minmax(0,1fr) minmax(360px,560px);
  gap:28px;
  align-items:center;
  min-height:0;
  padding:20px 24px;
  border-color:#e3ebe9;
  border-radius:20px;
  background:
    radial-gradient(circle at 88% -40%,rgba(15,118,110,.09),transparent 42%),
    linear-gradient(135deg,#fcfefe 0%,#f8fbfb 56%,#f4f9f8 100%);
  box-shadow:0 12px 34px rgba(15,23,42,.045);
}
.bdf-library-hero--archive:before{
  content:"";
  position:absolute;
  left:0;
  top:18px;
  bottom:18px;
  width:3px;
  border-radius:0 3px 3px 0;
  background:linear-gradient(180deg,#0f766e,#66b8a9);
}
.bdf-library-hero--archive .bdf-library-hero-copy{min-width:0;padding-left:4px}
.bdf-library-hero--archive .bdf-library-eyebrow{margin-bottom:5px;font-size:10px;letter-spacing:.15em}
.bdf-library-hero--archive h1{font-size:clamp(34px,3.2vw,46px);line-height:1;letter-spacing:-.042em}
.bdf-library-hero--archive .bdf-library-hero-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin-top:13px}
.bdf-library-hero--archive .bdf-library-category-chips{gap:6px;margin-top:0}
.bdf-library-hero--archive .bdf-library-category-chips a{min-height:30px;padding:0 11px;border-color:#d8e4e1;background:rgba(255,255,255,.86);font-size:11px;box-shadow:0 2px 8px rgba(15,23,42,.025)}
.bdf-library-hero--archive .bdf-library-hero-count{min-height:30px;margin-top:0;padding:6px 10px;border-color:#d8e4e1;background:rgba(255,255,255,.72);box-shadow:none;font-size:10.5px}
.bdf-library-hero--archive .bdf-library-hero-count strong{font-size:12px}
.bdf-library-hero--archive .bdf-library-search{width:100%;min-height:50px;border-radius:14px;box-shadow:0 9px 24px rgba(15,23,42,.055)}
.bdf-library-hero--archive .bdf-library-search input{height:48px;font-size:13px}
.bdf-library-hero--archive .bdf-library-search button{margin:5px;padding:0 15px;border-radius:10px;font-size:11.5px}
.bdf-library-hero--archive .bdf-library-search-clear{width:30px;height:30px}

@media(max-width:900px){
  .bdf-library-hero--archive{grid-template-columns:1fr;gap:14px;padding:18px 20px}
  .bdf-library-hero--archive .bdf-library-search{max-width:none}
}
@media(max-width:520px){
  .bdf-library-hero--archive{gap:12px;padding:15px 14px 14px;border-radius:16px}
  .bdf-library-hero--archive:before{top:14px;bottom:14px}
  .bdf-library-hero--archive h1{font-size:31px}
  .bdf-library-hero--archive .bdf-library-hero-meta{margin-top:10px;gap:6px}
  .bdf-library-hero--archive .bdf-library-category-chips a,.bdf-library-hero--archive .bdf-library-hero-count{min-height:28px}
  .bdf-library-hero--archive .bdf-library-search{min-height:46px}
  .bdf-library-hero--archive .bdf-library-search input{height:44px;font-size:12.5px}
  .bdf-library-hero--archive .bdf-library-search button{margin:4px;padding:0 13px}
}

/* v2.0.35 unified Book Category widget — archive + single book sidebar */
.bdf-book-page-sidebar .bdf-subject-widget--archive{
  position:relative;
  overflow:hidden;
  border:1px solid #dde7e5;
  border-radius:17px;
  background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%);
  box-shadow:0 12px 30px rgba(15,23,42,.055);
}
.bdf-book-page-sidebar .bdf-subject-widget--archive:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,#0f766e,#55b9a9 62%,transparent);
}
.bdf-book-page-sidebar .bdf-subject-widget-head{
  display:flex;
  align-items:center;
  gap:11px;
  padding:16px 14px 12px;
  border-bottom:1px solid #edf1f2;
  background:linear-gradient(135deg,#fbfefd 0%,#f6faf9 100%);
}
.bdf-book-page-sidebar .bdf-subject-widget-icon{
  display:grid;
  place-items:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border:1px solid #cfe4df;
  border-radius:10px;
  background:#eef8f5;
  color:#0f766e;
  box-shadow:0 4px 12px rgba(15,118,110,.06);
}
.bdf-book-page-sidebar .bdf-subject-widget-icon svg{width:19px;height:19px}
.bdf-book-page-sidebar .bdf-subject-widget-copy{min-width:0}
.bdf-book-page-sidebar .bdf-subject-widget-copy .bdf-widget-heading{
  margin:0!important;
  padding:0!important;
  font-size:15px!important;
  line-height:1.25!important;
  letter-spacing:-.015em!important;
}
.bdf-book-page-sidebar .bdf-subject-widget-copy p{margin:3px 0 0;color:#83909f;font-size:10.5px;line-height:1.3}
.bdf-book-page-sidebar .bdf-subject-widget--archive .bdf-subject-links{gap:5px;padding:9px}
.bdf-book-page-sidebar .bdf-subject-widget--archive .bdf-subject-links a{
  position:relative;
  min-height:43px;
  padding:0 38px 0 11px;
  border:1px solid transparent;
  border-radius:11px;
  background:transparent;
  color:#3f4d5e;
  font-size:12.5px;
  font-weight:700;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
.bdf-book-page-sidebar .bdf-subject-widget--archive .bdf-subject-links a:hover{border-color:#dce9e6;background:#f3faf8;color:#0f766e;transform:translateX(2px)}
.bdf-book-page-sidebar .bdf-subject-widget--archive .bdf-subject-links a.is-active{border-color:#d5e9e4;background:linear-gradient(90deg,#eaf7f4 0%,#f6fbfa 100%);color:#0f766e}
.bdf-book-page-sidebar .bdf-subject-widget--archive .bdf-subject-links a.is-active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 4px 4px 0;background:#0f766e}
.bdf-book-page-sidebar .bdf-subject-widget--archive .bdf-subject-links a:after{content:"›";position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#9aa5b1;font-size:16px;font-weight:600;line-height:1;transition:color .16s ease,transform .16s ease}
.bdf-book-page-sidebar .bdf-subject-widget--archive .bdf-subject-links a:hover:after{color:#0f766e;transform:translate(2px,-50%)}
.bdf-book-page-sidebar .bdf-subject-widget--archive .bdf-subject-links small{position:absolute;right:28px;min-width:22px;height:22px;padding:0 6px;border:1px solid #e6ebef;background:#fff;color:#7e8997;font-size:9px;box-shadow:0 2px 6px rgba(15,23,42,.025)}

@media(max-width:680px){
  .bdf-book-page-sidebar .bdf-subject-widget-head{padding:14px 12px 10px}
  .bdf-book-page-sidebar .bdf-subject-widget-icon{width:32px;height:32px;flex-basis:32px}
}

/* v2.0.37 archive card meta + edge glass title
 * Keep cover artwork clean: edition/category live in a compact top-right stack,
 * while the visible title sits on a frosted shelf centered across the cover edge.
 */
.bdf-library-grid .bdf-library-cover-overlay{
  background:linear-gradient(180deg,rgba(6,12,24,.02) 0%,rgba(6,12,24,.05) 58%,rgba(6,12,24,.18) 100%)
}
.bdf-library-grid .bdf-library-cover-copy{
  top:12px!important;
  right:12px!important;
  bottom:auto!important;
  left:auto!important;
  width:auto;
  max-width:calc(100% - 24px);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  color:#fff;
  text-shadow:none;
  pointer-events:none
}
.bdf-library-grid .bdf-library-cover-copy em{
  order:1;
  margin:0!important;
  padding:5px 8px!important;
  border:1px solid rgba(255,255,255,.34)!important;
  border-radius:999px!important;
  background:rgba(20,29,43,.48)!important;
  -webkit-backdrop-filter:blur(10px) saturate(135%);
  backdrop-filter:blur(10px) saturate(135%);
  box-shadow:0 5px 14px rgba(4,10,20,.13);
  color:#fff!important;
  font-size:9.5px!important;
  line-height:1.1!important;
  font-style:normal!important;
  font-weight:800!important;
  white-space:nowrap
}
.bdf-library-grid .bdf-library-cover-copy small{
  order:2;
  margin:0!important;
  padding:3px 6px!important;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(20,29,43,.34);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  color:rgba(255,255,255,.96)!important;
  font-size:7.5px!important;
  line-height:1.1!important;
  font-weight:800!important;
  letter-spacing:.09em!important;
  text-transform:uppercase;
  white-space:nowrap
}
.bdf-library-grid .bdf-library-cover-copy strong{display:none!important}

/* v2.0.39 full-width three-line title glass shelf.
 * Roughly one title line remains over the cover while the next two lines
 * continue below the image edge, keeping the card compact but more readable. */
.bdf-library-grid .bdf-library-card-body{
  position:relative;
  z-index:4;
  width:100%;
  min-height:68px;
  margin:-22px 0 0!important;
  padding:8px 16px 9px!important;
  display:flex;
  align-items:flex-start;
  border:0;
  border-top:1px solid rgba(255,255,255,.26);
  background:rgba(22,32,49,.50);
  -webkit-backdrop-filter:blur(9px) saturate(125%);
  backdrop-filter:blur(9px) saturate(125%);
  box-shadow:0 -3px 15px rgba(15,23,42,.08),0 7px 18px rgba(15,23,42,.10);
}
.bdf-library-grid .bdf-library-card h2{
  width:100%;
  margin:0!important;
  font-size:13.5px!important;
  line-height:1.24!important;
  letter-spacing:-.01em!important;
}
.bdf-library-grid .bdf-library-card h2 a{
  display:-webkit-box!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  color:#fff!important;
  text-decoration:none!important;
  text-shadow:0 1px 8px rgba(0,0,0,.18)
}

@container (max-width:520px){
  .bdf-library-grid .bdf-library-cover-copy{top:9px!important;right:9px!important;gap:4px}
  .bdf-library-grid .bdf-library-cover-copy em{padding:4px 7px!important;font-size:8.5px!important}
  .bdf-library-grid .bdf-library-cover-copy small{padding:3px 5px!important;font-size:7px!important}
  .bdf-library-grid .bdf-library-card-body{
    width:100%;
    min-height:62px;
    margin:-19px 0 0!important;
    padding:7px 11px 8px!important;
    background:rgba(22,32,49,.50);
    -webkit-backdrop-filter:blur(8px) saturate(122%);
    backdrop-filter:blur(8px) saturate(122%)
  }
  .bdf-library-grid .bdf-library-card h2{font-size:12.5px!important;line-height:1.22!important}
}

/* v2.0.40 plain white archive title area.
 * Keep the top-right edition/category badges, but return the title treatment
 * to the cleaner white card body instead of the frosted overlap shelf. */
.bdf-library-grid .bdf-library-card-body{
  position:relative;
  z-index:1;
  width:100%;
  min-height:60px;
  margin:0!important;
  padding:10px 12px 12px!important;
  display:block;
  border:0;
  background:#fff;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  box-shadow:none
}
.bdf-library-grid .bdf-library-card h2{
  width:100%;
  margin:0!important;
  font-size:13.5px!important;
  line-height:1.24!important;
  letter-spacing:-.01em!important
}
.bdf-library-grid .bdf-library-card h2 a{
  display:-webkit-box!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  color:#182235!important;
  text-decoration:none!important;
  text-shadow:none!important
}

/* v2.0.41 equal-height archive cards + split top badges.
 * Reserve exactly three title lines on every card. Shorter titles sit at the
 * bottom of that slot, leaving any unused line space above so card bottoms align.
 * Edition sits top-left; category sits top-right. */
.bdf-library-grid .bdf-library-card-body{
  height:74px;
  min-height:74px;
  padding:10px 12px 12px!important;
  display:flex;
  align-items:flex-end;
}
.bdf-library-grid .bdf-library-card h2{
  width:100%;
  margin:0!important;
}
.bdf-library-grid .bdf-library-card h2 a{
  display:-webkit-box!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
}
.bdf-library-grid .bdf-library-cover-copy{
  top:12px!important;
  right:12px!important;
  bottom:auto!important;
  left:12px!important;
  width:auto!important;
  max-width:none!important;
  height:26px;
  display:block!important;
  pointer-events:none;
}
.bdf-library-grid .bdf-library-cover-copy em,
.bdf-library-grid .bdf-library-cover-copy small{
  position:absolute;
  top:0;
  margin:0!important;
  max-width:46%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bdf-library-grid .bdf-library-cover-copy em{
  left:0;
  right:auto;
}
.bdf-library-grid .bdf-library-cover-copy small{
  left:auto;
  right:0;
}
@container (max-width:520px){
  .bdf-library-grid .bdf-library-card-body{
    height:74px;
    min-height:74px;
    padding:10px 11px 11px!important;
  }
  .bdf-library-grid .bdf-library-cover-copy{
    top:9px!important;
    right:9px!important;
    left:9px!important;
    height:24px;
  }
  .bdf-library-grid .bdf-library-cover-copy em,
  .bdf-library-grid .bdf-library-cover-copy small{max-width:47%}
}
