.mxmb-bookshelf {
  --mxmb-accent: #e5092b;
  --mxmb-ink: #171719;
  --mxmb-paper: #f3f1eb;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  padding: clamp(20px, 3.5vw, 42px);
  background: var(--mxmb-paper);
  color: var(--mxmb-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}
.mxmb-bookshelf *, .mxmb-bookshelf *::before, .mxmb-bookshelf *::after { box-sizing: border-box; }
.mxmb-bookshelf [hidden] { display: none !important; }
.mxmb-bookshelf .mxmb-heading { margin: 0 0 25px; padding: 0 0 15px; border-bottom: 2px solid var(--mxmb-ink); }
.mxmb-bookshelf .mxmb-heading h2 { margin: 0; color: var(--mxmb-ink); font-family: inherit; font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: break-word; }
.mxmb-bookshelf .mxmb-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; width: 100%; max-width: none; margin: 0 0 15px; padding: 0; }
.mxmb-bookshelf .mxmb-filters .mxmb-field { flex: 1 1 145px; min-width: 0; }
.mxmb-bookshelf .mxmb-filters .mxmb-search-field { flex-basis: 240px; }
.mxmb-bookshelf .mxmb-filters .mxmb-field label { display: block; margin: 0 0 6px; color: var(--mxmb-ink); font-size: 13px; font-weight: 700; line-height: 1.3; }
.mxmb-bookshelf .mxmb-filters .mxmb-field input,
.mxmb-bookshelf .mxmb-filters .mxmb-field select { width: 100%; max-width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid #86827d; border-radius: 0; background: #fffefa; color: var(--mxmb-ink); box-shadow: none; font: inherit; font-size: 16px; line-height: 1.35; }
.mxmb-bookshelf .mxmb-filters .mxmb-field input[type="search"] { background: #fffefa !important; color: var(--mxmb-ink) !important; }
.mxmb-bookshelf .mxmb-filters .mxmb-field input::placeholder { color: #66615d; opacity: 1; }
.mxmb-bookshelf .mxmb-filters .mxmb-filter-submit { flex: 0 0 auto; min-height: 46px; margin: 0; padding: 10px 20px; border: 1px solid var(--mxmb-ink); border-radius: 0; background: var(--mxmb-ink); color: #fffefa; box-shadow: none; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.35; cursor: pointer; }
.mxmb-bookshelf .mxmb-filters .mxmb-filter-submit:hover { background: #373338; color: #fffefa; }
.mxmb-bookshelf .mxmb-result-count { margin: 0 0 28px; color: #57524e; font-size: 13px; line-height: 1.5; }
.mxmb-bookshelf .mxmb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 34px; width: 100%; min-width: 0; }
.mxmb-bookshelf .mxmb-card { display: grid; grid-template-columns: minmax(95px, 36%) minmax(0, 1fr); align-items: start; gap: 20px; min-width: 0; margin: 0; padding: 0 0 25px; border: 0; border-bottom: 1px solid #cbc6bd; border-radius: 0; background: transparent; color: var(--mxmb-ink); box-shadow: none; }
.mxmb-bookshelf .mxmb-cover-link { display: block; min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; text-decoration: none; }
.mxmb-bookshelf .mxmb-cover-image { display: block; width: 100%; height: auto; max-height: 310px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain; object-position: top center; }
.mxmb-bookshelf .mxmb-cover-empty { display: block; padding: 0 0 10px; color: #66615d; font-size: 13px; font-style: italic; }
.mxmb-bookshelf .mxmb-book-copy { min-width: 0; }
.mxmb-bookshelf .mxmb-card .mxmb-title { margin: 0 0 7px; color: var(--mxmb-ink); font-family: inherit; font-size: clamp(19px, 2vw, 25px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; text-transform: none; overflow-wrap: break-word; }
.mxmb-bookshelf .mxmb-card .mxmb-title a { color: var(--mxmb-ink); text-decoration: none; }
.mxmb-bookshelf .mxmb-card .mxmb-title a:hover { color: var(--mxmb-ink); text-decoration: underline; text-decoration-color: var(--mxmb-accent); text-underline-offset: 4px; }
.mxmb-bookshelf .mxmb-author { margin: 0 0 15px; color: #4f4a45; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.mxmb-bookshelf p.mxmb-author a { color: #302c28; text-decoration: underline; text-decoration-color: var(--mxmb-accent); text-underline-offset: 3px; }
.mxmb-bookshelf .mxmb-description { margin: 0 0 17px; color: #3a3531; font-size: 14px; line-height: 1.6; overflow-wrap: break-word; }
.mxmb-bookshelf .mxmb-store-links { display: flex; flex-wrap: wrap; gap: 7px; max-width: none; margin: 0 0 12px; padding: 0; list-style: none; }
.mxmb-bookshelf .mxmb-store-links li { display: block; min-width: 0; margin: 0; padding: 0; list-style: none; }
.mxmb-bookshelf .mxmb-store-links .mxmb-store-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; max-width: 100%; padding: 7px 12px; border: 1px solid var(--mxmb-accent); border-radius: 0; background: transparent; color: var(--mxmb-ink); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.mxmb-bookshelf .mxmb-store-links .mxmb-store-link:hover { background: var(--mxmb-ink); color: #fffefa; border-color: var(--mxmb-ink); }
.mxmb-bookshelf .mxmb-book-copy .mxmb-detail-link { display: inline-block; margin: 3px 0 0; color: #332e2a; font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--mxmb-accent); text-underline-offset: 4px; }
.mxmb-bookshelf .mxmb-book-copy .mxmb-detail-link:hover, .mxmb-bookshelf p.mxmb-author a:hover { color: #000; }
.mxmb-bookshelf .mxmb-empty, .mxmb-bookshelf .mxmb-no-results { margin: 0; padding: 12px 0; color: #46413c; font-size: 16px; }
.mxmb-bookshelf .mxmb-disclosure { max-width: 85ch; margin: 25px 0 0; padding: 15px 0 0; border-top: 1px solid #cbc6bd; color: #625b54; font-size: 12px; line-height: 1.6; }
.mxmb-bookshelf .mxmb-detail-layout { display: grid; grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); align-items: start; gap: clamp(25px, 4vw, 55px); min-width: 0; }
.mxmb-bookshelf .mxmb-detail-cover { min-width: 0; }
.mxmb-bookshelf .mxmb-detail-cover .mxmb-cover-image { max-height: 530px; }
.mxmb-bookshelf .mxmb-detail-copy { min-width: 0; }
.mxmb-bookshelf .mxmb-detail-copy .mxmb-author { margin-bottom: 24px; font-size: 16px; }
.mxmb-bookshelf .mxmb-detail-description { margin-bottom: 25px; color: #302c28; font-size: 16px; line-height: 1.75; overflow-wrap: break-word; }
.mxmb-bookshelf .mxmb-detail-description :is(h2, h3, h4, p, li, blockquote) { color: #302c28; }
.mxmb-book-detail .mxmb-detail-copy .mxmb-detail-description a { color: #302c28; text-decoration: underline; text-decoration-color: var(--mxmb-accent); }
.mxmb-bookshelf .mxmb-detail-description img, .mxmb-bookshelf .mxmb-detail-description iframe { max-width: 100%; }
.mxmb-bookshelf .mxmb-isbn { color: #625b54; font-size: 13px; }
.mxmb-bookshelf :is(a, button, input, select):focus-visible { outline: 3px solid var(--mxmb-ink); outline-offset: 4px; }
.mxmb-bookshelf .mxmb-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 850px) {
  .mxmb-bookshelf .mxmb-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mxmb-bookshelf .mxmb-card { grid-template-columns: minmax(110px, 29%) minmax(0, 1fr); gap: 24px; }
  .mxmb-bookshelf .mxmb-cover-image { max-height: 275px; }
}
@media (max-width: 520px) {
  .mxmb-bookshelf { padding: 20px 17px; }
  .mxmb-bookshelf .mxmb-heading { margin-bottom: 20px; }
  .mxmb-bookshelf .mxmb-filters { gap: 12px; }
  .mxmb-bookshelf .mxmb-filters .mxmb-field { flex-basis: calc(50% - 6px); }
  .mxmb-bookshelf .mxmb-filters .mxmb-search-field { flex-basis: 100%; }
  .mxmb-bookshelf .mxmb-filters .mxmb-filter-submit { flex: 1 1 100%; }
  .mxmb-bookshelf .mxmb-result-count { margin-bottom: 22px; }
  .mxmb-bookshelf .mxmb-card { grid-template-columns: minmax(0, 33%) minmax(0, 1fr); gap: 15px; padding-bottom: 22px; }
  .mxmb-bookshelf .mxmb-card .mxmb-title { font-size: 20px; }
  .mxmb-bookshelf .mxmb-author { font-size: 12px; margin-bottom: 10px; }
  .mxmb-bookshelf .mxmb-description { font-size: 13px; margin-bottom: 12px; }
  .mxmb-bookshelf .mxmb-store-links { gap: 6px; }
  .mxmb-bookshelf .mxmb-store-links .mxmb-store-link { min-height: 44px; padding: 8px 10px; font-size: 12px; }
  .mxmb-bookshelf .mxmb-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .mxmb-bookshelf .mxmb-detail-cover { max-width: 230px; width: 75%; margin-inline: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .mxmb-bookshelf .mxmb-store-link { transition: background-color .15s ease, color .15s ease; }
}
