/* KUTUB.IO-inspired search and cover cards, scoped to the SAMVEA document library. */
#samvea-library{background:#f6f8fb;padding:42px 0 65px;color:#293c60}#samvea-library h1{font-size:36px;margin:18px 0 15px}#samvea-library .sl-intro{max-width:760px;font-size:17px;line-height:1.8;margin-bottom:26px}#samvea-library .sl-back{color:#293c60;text-decoration:underline}#samvea-library .sl-search{display:grid;grid-template-columns:minmax(0,1fr) 170px auto auto;align-items:end;gap:15px;padding:23px;background:#fff;border:1px solid #dee5ed;border-radius:5px}#samvea-library label{display:block;font-size:13px;margin-bottom:8px;font-weight:600}#samvea-library input,#samvea-library select{width:100%;height:46px;padding:10px 12px;border:1px solid #cbd7e4;border-radius:3px;background:white}#samvea-library button,#samvea-library .sl-primary{border:1px solid #293c60;background:#293c60;color:white;padding:11px 18px;border-radius:3px;font-weight:600;line-height:22px;cursor:pointer}#samvea-library .sl-reset{background:#fff;color:#293c60}#samvea-library .sl-count{margin:24px 0 20px;font-weight:600}#samvea-library .sl-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:30px;align-items:start}#samvea-library .sl-book-card{display:grid;grid-template-columns:105px minmax(0,1fr);gap:24px;background:#fff;border:1px solid #e0e6ee;border-radius:5px;padding:22px;margin:0 0 22px;box-shadow:0 2px 6px #182b4610}#samvea-library .sl-book{width:105px;align-self:start;box-shadow:5px 8px 18px #182b4626;overflow:hidden;border-radius:3px}#samvea-library .sl-book img{width:100%;height:148px;object-fit:contain;background:#edf2f7;display:block}#samvea-library .sl-book-info h2{font-size:20px;line-height:1.4;margin:8px 0 12px}#samvea-library .sl-book-info p{font-size:14px;line-height:1.7;margin:0 0 14px;color:#617086}#samvea-library .sl-format,#samvea-library .sl-eyebrow{font-size:11px;font-weight:700;letter-spacing:1px;color:#247a96}#samvea-library .sl-card-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}#samvea-library .sl-card-actions button{padding:5px 13px;font-size:13px;background:white;color:#293c60}#samvea-library .sl-card-actions a{font-size:13px;font-weight:600;color:#293c60;text-decoration:underline}#samvea-library #document-preview{background:#fff;padding:25px;border:1px solid #e0e6ee;border-top:4px solid #43c3ea;border-radius:5px}#samvea-library #document-preview h2{font-size:22px;line-height:1.4;margin:12px 0 20px}#samvea-library .sl-preview-art{background:#f3f6fa;padding:14px;text-align:center;margin-bottom:20px}#samvea-library #preview-image{display:block;max-width:100%;max-height:430px;width:auto;margin:auto;box-shadow:0 4px 14px #182b4620}#samvea-library #preview-details{font-size:12px;color:#247a96}#samvea-library #preview-description{font-size:14px;line-height:1.8}#samvea-library .sl-primary{display:block;text-align:center;margin:18px 0 14px}#samvea-library #preview-open{display:block;text-align:center;font-size:13px;color:#293c60;text-decoration:underline}#samvea-library .sl-preview-status{font-size:12px;margin:10px 0 0}#samvea-library .sl-brief-art{background:#293c60;color:#fff;display:flex;flex-direction:column;gap:12px;padding:16px 10px;min-height:148px;font-size:10px;border-bottom:5px solid #43c3ea;text-align:left}#samvea-library .sl-brief-art strong{font-size:18px;line-height:1.3}#samvea-library .sl-brief-art small{font-size:8px;color:#43c3ea}#samvea-library #preview-brief{min-height:300px;padding:40px;font-size:22px}#samvea-library #preview-brief strong{font-size:34px}#samvea-library .sl-empty{background:#fff;padding:25px;border:1px solid #dee5ed}#samvea-library [hidden]{display:none!important}#samvea-library button:focus-visible,#samvea-library a:focus-visible,#samvea-library input:focus-visible,#samvea-library select:focus-visible{outline:3px solid #43c3ea;outline-offset:3px}#samvea-library .sl-book-card.is-selected{border-color:#43c3ea}@media(max-width:991px){#samvea-library .sl-layout{grid-template-columns:1fr}#samvea-library .sl-search{grid-template-columns:1fr 1fr}}@media(max-width:480px){#samvea-library h1{font-size:29px}#samvea-library .sl-search{padding:18px;gap:12px}#samvea-library .sl-search>div:first-child{grid-column:1/-1}#samvea-library .sl-book-card{grid-template-columns:80px minmax(0,1fr);gap:15px;padding:16px}#samvea-library .sl-book{width:80px}#samvea-library .sl-book img{height:113px}#samvea-library .sl-book-info h2{font-size:18px}#samvea-library .sl-search select{font-size:13px}#samvea-library #document-preview{padding:18px}}


/* Compact controls and a preview sized by the resource list. */
#samvea-library .sl-sr-only {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0 !important;
}
#samvea-library .sl-search { margin-bottom:24px; }
#samvea-library .sl-layout { align-items:stretch; }
#samvea-library .sl-layout > section { min-width:0; }
#samvea-library .sl-results { display:grid; gap:22px; }
#samvea-library .sl-book-card { margin:0; }
#samvea-library #document-preview {
  display:flex;
  flex-direction:column;
  scroll-margin-top:80px;
  min-width:0;
  min-height:0;
  contain:size;
}
#samvea-library #preview-title {
  flex:none;
  margin:0 0 20px;
}
#samvea-library .sl-preview-art {
  position:relative;
  flex:1;
  min-height:0;
  margin:0 0 20px;
}
#samvea-library #preview-image {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:auto;
  height:auto;
  max-width:calc(100% - 28px);
  max-height:calc(100% - 28px);
  margin:0;
  object-fit:contain;
}
#samvea-library #preview-description { flex:none; margin:0 0 18px; }
#samvea-library #preview-download { flex:none; margin:0; }
#samvea-library.is-filtered #document-preview { contain:none; }
#samvea-library.is-filtered .sl-preview-art { flex:none; height:360px; }
@media(max-width:991px) {
  #samvea-library #document-preview { contain:none; }
  #samvea-library .sl-preview-art,
  #samvea-library.is-filtered .sl-preview-art { flex:none; height:430px; }
}
@media(max-width:480px) {
  #samvea-library .sl-preview-art,
  #samvea-library.is-filtered .sl-preview-art { height:360px; }
}

/* Let the document cover use the full preview panel. */
#samvea-library #document-preview{padding:14px}
#samvea-library .sl-preview-art{padding:0;margin:0}
#samvea-library #preview-image{max-width:100%;max-height:100%}
