/* ======================================================================
 Masterskills | Effective Management Library | Corporate Premium 2026
 Only two body sections: .sm-library-topics / .sm-library-catalog.
 Does not modify header, hero, footer or any other webpage.
 ====================================================================== */
.sm-library-topics,
.sm-library-catalog { background:transparent; padding:24px 0 30px; }
.sm-library-topics > .container,
.sm-library-catalog > .container { width:100%; max-width:100%; padding-inline:12px; }
.sm-library-section-heading { max-width:960px; margin:0 auto 34px; text-align:center; }
.sm-library-kicker { margin:0 0 13px; color:#b87b1a; font:800 12px/1.5 Tahoma,Arial,sans-serif; text-transform:uppercase; letter-spacing:.17em; }
.sm-library-title { margin:0; color:#103d61; font:800 clamp(25px,2.75vw,36px)/1.24 Tahoma,Arial,sans-serif; letter-spacing:-.025em; text-transform:none; }
.sm-library-section-intro { margin:15px auto 0; max-width:790px; color:#586f81; font:400 16px/1.72 Tahoma,Arial,sans-serif; }
.sm-library-topics-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:17px; align-items:stretch; }
.sm-library-topic-card { display:flex; min-width:0; flex-direction:column; align-items:center; justify-content:flex-start; text-align:center; padding:25px 19px 26px; background:#fff; border:1px solid #dbe6ee; border-radius:13px; box-shadow:0 8px 24px rgba(15,56,86,.045); }
.sm-library-topic-card > .sm-library-topic-icon.ms-icon-box { --ms-icon-size:65px; --ms-icon-svg-size:31px; --ms-icon-border-width:2px; --ms-icon-radius:13px; --ms-icon-shadow:3px 3px 0 rgba(7,59,99,.08); --ms-icon-spacing-bottom:19px; --ms-icon-background:#ffa925; --ms-icon-color:#092f4e; --ms-icon-border-color:#103d61; width:65px!important; max-width:65px!important; min-width:65px!important; height:65px!important; min-height:65px!important; margin:0 auto 20px!important; }
.sm-library-topic-card h3 { margin:0 0 11px; max-width:100%; color:#103d61; font:800 15px/1.42 Tahoma,Arial,sans-serif; text-transform:none; }
.sm-library-topic-card p { margin:0; color:#5d7283; font:400 14px/1.66 Tahoma,Arial,sans-serif; }
.sm-library-catalog-header { display:flex; justify-content:space-between; align-items:center; gap:30px; padding-bottom:27px; margin-bottom:25px; border-bottom:1px solid #e3ebf0; }
.sm-library-catalog-intro { max-width:820px; }
.sm-library-catalog-intro .sm-library-section-intro { margin:10px 0 0; }
.sm-library-pdf-label { display:inline-flex; flex:0 0 auto; align-items:center; gap:9px; padding:11px 15px; border:1px solid #e3d2ad; border-radius:8px; background:#fff8ea; color:#9c6614; font:800 11px/1.3 Tahoma,Arial,sans-serif; letter-spacing:.09em; white-space:nowrap; }
.sm-library-pdf-label svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.sm-library-books-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; gap:20px; width:100%; min-width:0; margin:0; padding:0; overflow:visible; }
.sm-library-book-card { min-width:0; display:flex; background:#fff; border:1px solid #dce6ed; border-radius:12px; overflow:hidden; box-shadow:0 8px 23px rgba(13,49,80,.055); transition:transform .2s ease, border-color .2s ease,box-shadow .2s ease; }
.sm-library-book-card:hover { transform:translateY(-4px); border-color:#d5b678; box-shadow:0 17px 35px rgba(13,49,80,.12); }
.sm-library-book-card:focus-within { outline:2px solid #c58a24; outline-offset:2px; }
.sm-library-book-link { display:flex; flex-direction:column; width:100%; min-width:0; color:#103d61; text-decoration:none; }
.sm-library-book-link:hover { text-decoration:none; }
.sm-library-book-link:focus-visible { outline:none; }
.sm-library-book-cover { min-height:246px; display:flex; align-items:center; justify-content:center; padding:21px 15px 14px; background:linear-gradient(180deg,#f6f9fb,#fff 90%); }
.sm-library-book-cover img { display:block; max-width:95%; width:auto; height:211px; max-height:211px; object-fit:contain; border:1px solid #e4e9ec; background:#fff; box-shadow:0 7px 17px rgba(9,45,73,.12); transition:transform .2s ease; }
.sm-library-book-card:hover .sm-library-book-cover img { transform:scale(1.025); }
.sm-library-book-info { flex:1 1 auto; display:flex; flex-direction:column; min-width:0; padding:13px 18px 18px; }
.sm-library-book-series { margin:0 0 10px; color:#b77b25; font:800 10px/1.5 Tahoma,Arial,sans-serif; letter-spacing:.055em; }
.sm-library-book-info h3 { margin:0 0 11px; color:#103d61; font:800 17px/1.4 Tahoma,Arial,sans-serif; overflow-wrap:break-word; }
.sm-library-book-description { margin:0 0 20px; color:#607586; font:400 13px/1.65 Tahoma,Arial,sans-serif; }
.sm-library-book-bottom { display:flex; align-items:flex-start; flex-wrap:wrap; justify-content:space-between; gap:11px; margin-top:auto; padding-top:15px; border-top:1px solid #e7edf1; }
.sm-library-book-category { display:inline-flex; max-width:100%; padding:5px 8px; background:#edf3f7; color:#4f697c; border-radius:5px; font:700 11px/1.35 Tahoma,Arial,sans-serif; }
.sm-library-book-action { display:inline-flex; gap:8px; align-items:center; margin-left:auto; color:#0c5b96; font:800 12px/1.4 Tahoma,Arial,sans-serif; white-space:nowrap; }
.sm-library-book-action > span { font-size:18px; line-height:1; transition:transform .2s ease; }
.sm-library-book-card:hover .sm-library-book-action > span { transform:translateX(3px); }
@media(max-width:1180px){
 .sm-library-topics-grid { gap:12px; }
 .sm-library-topic-card { padding:22px 15px 23px; }
 .sm-library-books-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
}
@media(max-width:930px){
 .sm-library-topics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
 .sm-library-section-heading { margin-bottom:26px; }
 .sm-library-books-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
 .sm-library-topic-card { padding:23px 16px; }
}
@media(max-width:680px){
 .sm-library-topics,.sm-library-catalog { padding:13px 0 21px; }
 .sm-library-topics > .container,.sm-library-catalog > .container { padding-inline:4px; }
 .sm-library-title { font-size:clamp(23px,5.8vw,30px); }
 .sm-library-section-intro { font-size:14px; line-height:1.68; }
 .sm-library-catalog-header { align-items:flex-start; flex-direction:column; gap:15px; margin-bottom:19px; padding-bottom:20px; }
 .sm-library-pdf-label { padding:8px 11px; font-size:10px; }
 .sm-library-book-info { padding:12px 12px 14px; }
 .sm-library-book-info h3 { font-size:15px; }
 .sm-library-book-cover { min-height:195px; padding:13px 9px 8px; }
 .sm-library-book-cover img { height:172px; max-height:172px; }
 .sm-library-book-description { font-size:12px; }
 .sm-library-book-bottom { gap:8px; }
}
@media(max-width:440px){
 .sm-library-topics-grid { grid-template-columns:1fr; gap:11px; }
 .sm-library-topic-card { padding:19px 17px 20px; }
 .sm-library-topic-card > .sm-library-topic-icon.ms-icon-box { --ms-icon-size:56px; --ms-icon-svg-size:27px; width:56px!important; height:56px!important; min-width:56px!important; min-height:56px!important; margin-bottom:13px!important; }
 .sm-library-topic-card p { font-size:13px; }
 .sm-library-books-grid { grid-template-columns:1fr; gap:12px; }
 .sm-library-book-link { flex-direction:row; }
 .sm-library-book-cover { align-self:stretch; min-height:0; flex:0 0 112px; padding:14px 10px; }
 .sm-library-book-cover img { width:auto; height:137px; max-width:100%; max-height:137px; }
 .sm-library-book-info { padding:15px 12px 13px; }
 .sm-library-book-series { font-size:9px; margin-bottom:7px; }
 .sm-library-book-info h3 { font-size:14px; margin-bottom:7px; }
 .sm-library-book-description { font-size:12.5px; line-height:1.55; margin-bottom:11px; }
 .sm-library-book-category { font-size:10px; padding:4px 7px; }
 .sm-library-book-action { font-size:11px; }
 .sm-library-book-bottom { padding-top:9px; }
}
@media(prefers-reduced-motion:reduce){ .sm-library-book-card,.sm-library-book-cover img,.sm-library-book-action > span {transition:none;} .sm-library-book-card:hover {transform:none;} }
