.market-library{width:min(1200px,calc(100% - 32px));margin:24px auto 62px;color:#233a30}
.market-library-hero{background:linear-gradient(112deg,#f5ecda,#e5ebdc);border:1px solid #e0d8c5;border-radius:26px;overflow:hidden;margin-bottom:24px}
.market-library-hero>div{max-width:680px;padding:clamp(24px,5vw,68px);background:linear-gradient(90deg,#f8f4e8 65%,#f8f4e8ea 88%,#f8f4e800)}
.market-library h1{font:500 clamp(2.15rem,5vw,4rem)/1.07 Georgia,'Times New Roman',serif;margin:0 0 14px;color:#234638}
.market-library h2{font:500 clamp(1.4rem,3vw,2rem)/1.15 Georgia,'Times New Roman',serif;color:#234638}
.market-library-hero p,.market-library-detail-copy p{max-width:48ch;line-height:1.55;margin:0 0 18px}
.market-library-filters{display:grid;grid-template-columns:2fr 1fr;gap:14px}.market-library-filters[hidden],.market-library [hidden]{display:none!important}
.market-library-filters label{display:grid;gap:6px;font-weight:700}.market-library-filters input,.market-library-filters select{border:1px solid #b6c3b4;background:#fffdf7;border-radius:10px;padding:10px 12px;color:#284638;font:inherit;min-width:0;width:100%}
.market-library-status{min-height:1.5rem;color:#526658;font-size:.9rem;margin:12px 0}.market-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:15px;align-items:stretch}
.market-library-card{background:#fffdf5;border:1px solid #ddd8c6;border-radius:16px;overflow:hidden}.market-library-card-link{display:grid;text-decoration:none;color:inherit;height:100%;grid-template-rows:auto 1fr}.market-library-card-link:hover strong{text-decoration:underline}
.market-library-photo{position:relative;overflow:hidden;min-height:120px;background:#f5f1e6;aspect-ratio:4/3}.market-library-photo img{position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box;object-fit:contain;padding:14px}
.market-library-card-text{padding:12px 15px 15px;display:grid;gap:5px}.market-library-card-text small,.market-library-category{color:#4f6455;font-weight:650}.market-library-card-text strong{line-height:1.3}.market-library-back{margin:0 0 14px}
.market-library-detail{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);gap:clamp(20px,5vw,64px);border:1px solid #e0d8c5;border-radius:20px;overflow:hidden;background:#fffdf5}.market-library-detail-copy{align-self:center;padding:clamp(16px,4vw,48px) clamp(18px,4vw,52px) clamp(16px,4vw,48px) 0}.market-library-detail .market-library-photo{aspect-ratio:1}
.market-library-copy{max-width:76ch}.market-library-copy p,.market-library-copy li{line-height:1.63}.market-library-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:14px;margin-top:18px}.market-library-tiles article{padding:16px 18px;background:#fffdf7;border:1px solid #ddd8c6;border-radius:14px}.market-library-tiles h2{margin:0 0 .4rem}
@media(max-width:620px){.market-library-detail,.market-library-filters{grid-template-columns:1fr}.market-library-detail-copy{padding:0 18px 22px}.market-library-detail .market-library-photo{aspect-ratio:4/3}.market-library-hero>div{background:#f8f4e8ec}.market-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.market-library-photo{min-height:85px}}

.market-library-tiles img{width:100%;height:auto;max-height:175px;object-fit:contain;margin-bottom:10px}

.market-library-review-form{max-width:610px;margin:32px 0 0;scroll-margin-top:9rem}.market-library-review-form label[hidden]{display:none}.market-library #review-status{scroll-margin-top:9rem}

.market-library-photo:empty{display:none}.market-library-detail:has(.market-library-photo:empty){grid-template-columns:1fr}.market-library-detail:has(.market-library-photo:empty) .market-library-detail-copy{padding:clamp(18px,4vw,48px)}
.market-photo-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);align-items:stretch}
.market-photo-hero>div{background:none}
.market-photo-hero>img{display:block;width:100%;height:100%;max-height:360px;min-height:250px;object-fit:cover}
.market-article-tile-photo{display:block;width:100%;aspect-ratio:16/10;object-fit:contain;background:#f5f1e6;border-radius:12px}
.market-article-cover{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:16px;margin:18px 0}
@media(max-width:660px){.market-photo-hero{grid-template-columns:1fr}.market-photo-hero>img{height:auto;min-height:0;aspect-ratio:16/9}}

.market-article-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:880px){.market-article-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.market-article-tiles{grid-template-columns:1fr}}

.market-library-detail .market-library-photo { background: #fff; }
.market-library-description { line-height: 1.6; }
.market-encyclopaedia-index .market-library-card { background: #fff; border-color: #dfdbcb; }
.market-encyclopaedia-index .market-library-photo { background: #fff; }
.market-encyclopaedia-index .market-library-photo img { padding: 10px; }
.market-encyclopaedia-index .market-library-photo-cover img { padding: 0; object-fit: cover; }
.market-encyclopaedia-index .market-library-card-text {
  background: #f8f4e9;
  border-top: 1px solid #eae4d5;
  padding: 11px 15px 14px;
}
.market-encyclopaedia-index .market-library-card-text small { color: #52675d; font-size: .78rem; }
.market-encyclopaedia-index .market-library-card-text strong { color: #203f34; }

.market-encyclopaedia-index .market-library-photo-bottom img { object-position: center bottom; }
