/* The public shelf uses the same covers, prices and course destinations as the store. */
.mz67-home .mzshow-home {
    max-width: none;
    margin: clamp(24px, 4vw, 46px) 0 0;
    padding: 0;
    background: transparent;
    color: #183c34;
}
.mzshow-head,
.mzcm-catalog:has(.mzcm-catalog-search) > .mzp-store-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
}
.mzshow-head { margin: 0 0 16px; }
.mzshow-head h2, .mzcm-catalog:has(.mzcm-catalog-search) > .mzp-store-intro h2 { margin: 0; }
.mzshow-head > a, .mzshow-catalog-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    color: #235846;
    font-weight: 650;
    text-underline-offset: 4px;
}
.mzshow-home .mzp-store-grid, .mzcm-catalog:has(.mzcm-catalog-search) .mzp-store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.7vw, 22px);
}
.mzshow-home .mzp-store-grid .mzp-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #cfd9cd;
    border-radius: 12px;
    background: #fffdf8;
    padding: 0 18px 18px;
    margin: 0;
}
.mzshow-home .mzp-card .mzbook-jacket {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: clamp(154px, 14vw, 205px);
    margin: 0 -18px 14px;
    padding: 14px;
    background: #e8ede3;
    box-sizing: border-box;
}
.mzshow-home .mzbook-cover {
    display: block;
    height: 100%;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 3px 5px 10px #142d2526;
}
.mzshow-home .mzp-card > .mzp-meta { margin: 0; font-size: .85rem; }
.mzshow-home .mzp-card > h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin: 7px 0 10px; }
.mzshow-home .mzp-card > .mzp-price { margin: auto 0 8px; }
.mzshow-home .mzp-card > .mzp-link:last-child { align-self: flex-start; margin: 0; }
.mzshow-title, .mzshow-title > span, .mzshow-lines, .mzshow-lines > span { display: block; }
.mzshow-title > span + span {
    margin-top: 4px;
    color: #476357;
    font-weight: 550;
    font-size: .85em;
    line-height: 1.35;
}
.mzshow-lines > span + span { margin-top: .42em; color: #455c50; }
.mzshow-home .mzp-card > .mzshow-blurb,
.mzcm-catalog .mzp-card > .mzshow-blurb {
    display: block;
    overflow: visible;
    max-height: none;
    -webkit-line-clamp: unset;
    line-height: 1.52;
    font-size: .95rem;
    margin-bottom: 14px;
}
.mzbook-copy .mzshow-product-en { color: #476357; font-size: 1.12rem; margin: -.25rem 0 .75rem; font-weight: 600; }
.mzbook-copy .mzshow-product-intro { margin: 1rem 0 .65rem; max-width: 62ch; }
.mzbook-copy .mzshow-product-intro h3 { font-size: 1rem; margin: 0 0 .3em; }
.mzbook-copy .mzshow-product-intro p { margin: 0; }
.mzp-store-intro .mzshow-overview-en { line-height: 1.65; }

.mzcm-catalog:has(.mzcm-catalog-search) > .mzp-store-intro { margin: 0 0 12px; }
.mzp-front.mzcm-catalog .mzshow-catalog-links { display: flex; flex-wrap: wrap; gap: 0 15px; margin: 0; }
.mzp-front.mzcm-catalog .mzshow-catalog-links a { width: auto; padding: 0; margin: 0; font-size: .88rem; }
.mzp-front.mzcm-catalog > .mzcm-public-grid:not(.mzcm-detail) {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
}
.mzcm-catalog .mzcm-public-grid:not(.mzcm-detail) > .mzshow-filter {
    position: static !important;
    order: 0;
    width: 100% !important;
    box-sizing: border-box;
    padding: 14px;
    margin: 0;
    border-radius: 10px;
    border: 1px solid #c7d4ca;
    background: #f3f6f0;
}
.mzcm-catalog .mzcm-public-grid:not(.mzcm-detail) > .mzcm-results { order: 1; width: 100%; min-width: 0; }
.mzcm-catalog .mzshow-filter form.mzcm-catalog-search {
    display: grid !important;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, .8fr) minmax(180px, 1.3fr) auto !important;
    align-items: end;
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.mzcm-catalog .mzcm-catalog-search label { min-width: 0; display: block; margin: 0; font-size: .9rem; }
.mzcm-catalog .mzcm-catalog-search :is(select,input[type=search],button) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 3px 0 0;
}
.mzcm-catalog .mzcm-catalog-search select { text-overflow: ellipsis; }
.mzcm-catalog .mzcm-catalog-search .mzp-link { width: auto; justify-content: center; margin: 0; }
.mzcm-catalog .mzcm-catalog-search a { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 960px) {
    .mzshow-home .mzp-store-grid, .mzcm-catalog:has(.mzcm-catalog-search) .mzp-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
    .mzcm-catalog .mzshow-filter form.mzcm-catalog-search { grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) auto !important; }
    .mzcm-catalog .mzcm-catalog-search label:has(select[name=theme]) { grid-column: 2 / 4; }
    .mzcm-catalog .mzcm-catalog-search label:has(input[type=search]) { grid-column: 1 / 3; }
    .mzcm-catalog .mzcm-catalog-search button { grid-column: 3; }
    .mzcm-catalog .mzcm-catalog-search a { grid-column: 1 / -1; }
}
@media (max-width: 610px) {
    .mzshow-home .mzp-store-grid, .mzcm-catalog:has(.mzcm-catalog-search) .mzp-store-grid { grid-template-columns: minmax(0, 1fr); }
    .mzshow-home .mzp-card .mzbook-jacket { height: 145px; }
    .mzshow-head h2 { font-size: 1.45rem; }
}
