.bc {
    --bc-ink: #142447;
    --bc-blue: var(--buck-primary, #2b55dd);
    --bc-paper: #f7f8fc;
    --bc-line: #dce2f0;
    color: var(--bc-ink);
    background: var(--bc-paper);
    font-family: 'DM Sans', sans-serif;
    padding-bottom: 70px;
}
.bc * { box-sizing: border-box; }
.bc [hidden] { display: none !important; }
.bc-width { width: min(1440px, calc(100% - 112px)); margin-inline: auto; }
.bc button, .bc input, .bc select { font: inherit; }
.bc button, .bc a, .bc select { -webkit-tap-highlight-color: transparent; }
.bc a { color: inherit; text-decoration: none; }
.bc button { cursor: pointer; }
.bc :focus-visible { outline: 3px solid #4777ff; outline-offset: 4px; }
.bc-hero { overflow: hidden; color: white; background: radial-gradient(ellipse at 85% 45%, #3559b0 0, #172e68 48%, #101d43 100%); }
.bc-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6%; padding-block: 68px 55px; }
.bc-eyebrow { margin: 0 0 15px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.bc-hero .bc-eyebrow { color: #b7caff; }
.bc h1, .bc h2, .bc h3, .bc p { overflow-wrap: anywhere; }
.bc h1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(42px, 5.1vw, 82px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 23px; color: white; }
.bc h1 em { color: #bdceff; font-weight: 400; }
.bc-intro { max-width: 37ch; font-size: 16px; color: #d9e2fc; line-height: 1.65; margin-bottom: 27px; }
.bc-explore { display: inline-flex; align-items: center; gap: 27px; padding: 13px 20px; border-radius: 6px; background: white; color: #172e68 !important; font-size: 13px; font-weight: 700; }
.bc-explore span { font-size: 22px; }
.bc-metrics { display: flex; gap: clamp(18px, 3vw, 48px); padding-top: 30px; margin: 25px 0 0; border-top: 1px solid #ffffff30; }
.bc-metrics div { display: flex; flex-direction: column-reverse; gap: 3px; }
.bc-metrics dt { font-size: 11px; color: #b7caff; }
.bc-metrics dd { font-size: clamp(22px, 2.5vw, 33px); margin: 0; font-variant-numeric: tabular-nums; }
.bc-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; transform: rotate(-5deg); padding: 15px 0; }
.bc-showcase a { display: block; min-width: 0; filter: drop-shadow(10px 15px 12px #07132b80); transition: transform .25s ease; }
.bc-showcase a:nth-child(3n + 2) { transform: translateY(-20px); }
.bc-showcase a:hover { transform: translateY(-8px) rotate(3deg); }
.bc-showcase img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; display: block; max-height: 240px; }
.bc-hero-bottom { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #ffffff25; padding-block: 18px; font-size: 10px; color: #b7caff; letter-spacing: .1em; text-transform: uppercase; }
.bc-collection { padding-top: 52px; scroll-margin-top: 180px; }
.bc-collection-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 25px; }
.bc-collection .bc-eyebrow { color: #52668f; margin-bottom: 8px; }
.bc h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(30px, 3.3vw, 47px); line-height: 1.1; font-weight: 400; letter-spacing: -.025em; margin: 0; }
.bc-tools { display: flex; flex-wrap: wrap; gap: 9px; }
.bc-tools button, .bc-clear { border: 1px solid var(--bc-line); padding: 10px 13px; border-radius: 6px; background: white; color: var(--bc-ink); font-size: 12px; }
.bc-tools button:hover, .bc-clear:hover { border-color: var(--bc-blue); }
.bc-filters { display: grid; grid-template-columns: 2.2fr 1fr 1fr .9fr auto; gap: 10px; padding: 15px; background: white; border: 1px solid var(--bc-line); border-radius: 10px; align-items: end; }
.bc-filters label { min-width: 0; display: grid; gap: 5px; font-size: 11px; font-weight: 600; color: #566585; }
.bc-filters :is(input, select) { width: 100%; min-width: 0; border: 1px solid var(--bc-line); border-radius: 5px; height: 42px; padding: 8px 10px; background: #f9faff; color: var(--bc-ink); font-size: 13px; }
.bc-clear { height: 42px; }
.bc-results-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 16px; border-bottom: 1px solid var(--bc-line); font-size: 11px; color: #566585; }
.bc-results-head p { margin: 0; }
.bc-letter-group { padding-top: 30px; scroll-margin-top: 180px; }
.bc-letter-heading { display: flex; align-items: baseline; gap: 15px; margin: 0 0 16px; }
.bc-letter-heading h3 { color: var(--bc-blue); font-family: 'Instrument Serif', Georgia, serif; font-size: 48px; font-weight: 400; line-height: 1; margin: 0; }
.bc-letter-heading span { color: #63718e; font-size: 11px; }
.bc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 23px 19px; }
.bc-book { min-width: 0; }
.bc-book-link { display: flex; height: 100%; flex-direction: column; border-radius: 7px; }
.bc-book-art { display: grid; place-items: center; padding: 15px; aspect-ratio: 3 / 4; background: #e9eef8; border: 1px solid #e1e6f1; border-radius: 7px; overflow: hidden; transition: background .2s ease; }
.bc-book:nth-child(3n+2) .bc-book-art { background: #e8edf2; }
.bc-book:nth-child(3n) .bc-book-art { background: #f0ebf5; }
.bc-book-art img { height: 100%; max-width: 100%; min-height: 0; object-fit: contain; display: block; filter: drop-shadow(5px 8px 6px #14244726); transition: transform .2s ease; }
.bc-book-art { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.bc-book-link:hover .bc-book-art img { transform: translateY(-4px) rotate(-2deg); }
.bc-book-copy { padding-top: 11px; display: flex; flex: 1; flex-direction: column; gap: 5px; }
.bc-book-copy h4 { font-size: 13px; font-weight: 600; line-height: 1.45; margin: 0; color: var(--bc-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-book-author { font-size: 11px; color: #566585; line-height: 1.4; margin: 0; }
.bc-book-isbn { border-top: 1px solid var(--bc-line); margin-top: auto; padding-top: 8px; font-size: 9px; line-height: 1.6; color: #566585; font-variant-numeric: tabular-nums; }
.bc-book-isbn span { display: block; overflow-wrap: anywhere; }
.bc-cover-fallback { width: 76%; height: 96%; display: flex; flex-direction: column; justify-content: space-between; padding: 15px; background: #1c387d; color: white; box-shadow: 5px 8px 12px #14244720; font-family: 'Instrument Serif', Georgia, serif; font-size: 16px; }
.bc-cover-fallback small { font-family: 'DM Sans', sans-serif; font-size: 8px; letter-spacing: .12em; }
.bc-load-more { display: block; margin: 18px auto 0; padding: 9px 15px; color: var(--bc-blue); border: 1px solid var(--bc-line); background: white; border-radius: 5px; font-size: 11px; }
.bc-alphabet { position: fixed; z-index: 90; right: 6px; top: 56%; transform: translateY(-42%); display: flex; flex-direction: column; max-height: 64vh; overflow-y: auto; padding: 6px 3px; border-radius: 18px; background: #ffffffed; border: 1px solid var(--bc-line); box-shadow: 0 4px 20px #1424470d; scrollbar-width: none; touch-action: none; }
.bc-alphabet button { min-height: 15px; min-width: 24px; padding: 1px 2px; font-size: 10px; font-weight: 600; line-height: 1.2; color: #426098; background: transparent; border: 0; border-radius: 12px; }
.bc-alphabet button:disabled { color: #b0bacf; cursor: default; }
.bc-alphabet button[aria-current="true"] { background: var(--bc-blue); color: white; }
.bc-letter-preview { position: fixed; z-index: 95; right: 52px; top: 50%; transform: translateY(-50%); padding: 15px; border-radius: 13px; min-width: 65px; text-align: center; font-size: 32px; font-weight: 600; background: #1b3b93ed; color: white; pointer-events: none; }
.bc-empty { padding: 70px 20px; text-align: center; }
.bc-empty h3 { font: 400 32px 'Instrument Serif', Georgia, serif; margin-bottom: 10px; }
.bc-empty button, .bc-empty a { display: inline-block; padding: 10px 17px; border: 1px solid var(--bc-line); border-radius: 6px; background: white; margin: 7px; font-size: 13px; }
.bc-share-status { color: var(--bc-blue); font-size: 12px; padding-top: 15px; }
.bc-partner { margin-top: 55px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 25px; border-radius: 12px; background: #e8eefb; border: 1px solid #dbe4f7; }
.bc-partner .bc-eyebrow { color: #52668f; }
.bc-partner a { padding-bottom: 9px; border-bottom: 1px solid #8098cd; font-size: 13px; font-weight: 600; }
@media(max-width:1150px) {
    .bc-width { width: calc(100% - 88px); }
    .bc-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .bc-hero-grid { gap: 4%; }
    .bc-showcase { gap: 14px; }
    .bc-filters { grid-template-columns: 2fr 1fr 1fr; }
    .bc-search { grid-column: span 2; }
}
@media(max-width:700px) {
    .bc-width { width: calc(100% - 58px); margin-left: 18px; margin-right: 40px; }
    .bc-hero-grid { grid-template-columns: 1fr; padding-block: 38px 30px; gap: 32px; }
    .bc h1 { font-size: clamp(43px,9vw,64px); }
    .bc-intro { font-size: 14px; margin-block: 15px 20px; }
    .bc-metrics { padding-top: 18px; margin-top: 20px; }
    .bc-showcase { max-width: 400px; gap: 15px; transform: rotate(-4deg); margin: 5px auto 10px; width: 100%; }
    .bc-showcase img { max-height: 150px; }
    .bc-hero-bottom { font-size: 8px; }
    .bc-collection { padding-top: 33px; }
    .bc-tools { gap: 6px; }
    .bc-tools button { padding: 9px; font-size: 10px; }
    .bc-filters { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 10px; gap: 8px; }
    .bc-search { grid-column: 1 / -1; }
    .bc-clear { margin-top: auto; }
    .bc-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 21px 12px; }
    .bc-book-art { padding: 10px; }
    .bc-book-copy h4 { font-size: 12px; }
    .bc-alphabet { right: 3px; padding-inline: 1px; }
    .bc-alphabet button { min-width: 22px; font-size: 9px; }
    .bc-partner { padding: 22px 18px; }
}
@media(prefers-reduced-motion:reduce) {
    .bc-showcase a, .bc-book-art img { transition: none; }
}
@media print {
    .buck-catalogue-page .buck-site-shell > header,
    .buck-catalogue-page .buck-site-shell > footer,
    .buck-catalogue-page #wpadminbar,
    .bc-hero, .bc-filters, .bc-alphabet, .bc-tools, .bc-partner,
    .bc-load-more, .bc-share-status, .bc-letter-preview { display: none !important; }
    .bc, .bc-collection { padding: 0; background: white; }
    .bc-width { width: 100%; margin: 0; }
    .bc-collection-heading { margin-bottom: 10px; }
    .bc-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
    .bc-book { break-inside: avoid; }
    .bc-book-art { height: 150px; aspect-ratio: auto; background: white !important; }
    .bc-book-art img { filter: none; }
    .bc-letter-heading { break-after: avoid; }
    .bc-letter-group { padding-top: 15px; }
    .bc-results-head { font-size: 9px; }
}

.bc-collection, .bc-letter-group { scroll-margin-top: var(--bc-scroll-offset, 180px); }
.bc-alphabet button {
    min-height: 0;
    height: clamp(10px, 1.8vh, 18px);
    flex: 0 0 auto;
    padding: 0 2px;
    font-size: clamp(8px, 1.1vh, 10px);
}
@media(max-width:650px) {
    .bc-width { width: calc(100% - 64px); margin-left: 20px; margin-right: 44px; }
}
