/* STEM Mầm Non learning library – all styles scoped to .smn-library.
 * Typography is inherited from the active theme (Ileana compatible).
 */
.smn-library{--smn-deep:#154d39;--smn-green:#17835b;--smn-text:#2b4b3d;--smn-muted:#668174;--smn-line:#dce9df;--smn-sky:#23b0cf;--smn-orange:#fa782d;--smn-purple:#77479b;--smn-lemon:#ffda64;--smn-cream:#faf9f1;--smn-mint:#e8f6ed;--smn-shadow:0 14px 38px rgba(26,72,49,.065);font-family:inherit!important;font-weight:400;font-size:16px;line-height:1.65;color:var(--smn-text);width:100%;max-width:none!important;margin:0!important;padding:0 0 32px!important;isolation:isolate;overflow:clip;background:#fff}
.smn-library *, .smn-library *::before, .smn-library *::after{box-sizing:border-box;font-family:inherit!important}
.smn-library :is(h1,h2,h3,p,figure,ul,li){margin:0;padding:0}
.smn-library :is(h1,h2,h3){letter-spacing:-.032em;font-weight:850!important;line-height:1.22;color:var(--smn-deep)!important;text-transform:none!important;font-style:normal!important}
.smn-library p{color:var(--smn-text);font-size:16px;line-height:1.75}
.smn-library a{text-decoration:none}
.smn-library img{max-width:100%}
.smn-library :is(a,button,input,select):focus-visible{outline:3px solid var(--smn-orange);outline-offset:4px}
.smn-library button{cursor:pointer;touch-action:manipulation}
.smn-library .smn-container{max-width:1190px;width:calc(100% - 48px);margin:0 auto!important}
.smn-library .smn-kicker{font-size:13px!important;font-weight:850!important;color:var(--smn-green)!important;letter-spacing:.12em;line-height:1.5!important;text-transform:uppercase}
.smn-library .smn-hero{background:linear-gradient(125deg,#fffdf5,#f3f9f4);border-bottom:6px solid transparent;border-image:linear-gradient(90deg,#854ea8 0 25%,#2fb7d7 25% 50%,#39b965 50% 75%,#ff812e 75% 100%) 1;padding:55px 0 52px;position:relative;overflow:hidden}
.smn-library .smn-hero::before{content:"";position:absolute;inset:0;opacity:.22;pointer-events:none;background-image:repeating-radial-gradient(ellipse 200px 45px at 12px 12px,transparent 0 37px,#bfd1c5 38px,transparent 40px);background-size:480px 130px}
.smn-library .smn-hero-inner{display:grid;grid-template-columns:1.45fr .55fr;gap:40px;align-items:center;position:relative;z-index:1}
.smn-library .smn-hero h2{font-size:clamp(36px,4.5vw,57px)!important;max-width:740px;margin:9px 0 15px!important}
.smn-library .smn-hero-copy>p:last-child{max-width:650px;font-size:18px;line-height:1.75;color:#546b5d}
.smn-library .smn-hero-art{height:225px;width:min(100%,310px);justify-self:end;position:relative;display:flex;align-items:center;justify-content:center}
.smn-library .smn-hero-door{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;width:200px;height:220px;border:9px solid #ffdf76;background:linear-gradient(150deg,#e1faf3 0%,#e5f1fc 46%,#f4e8fb 100%);border-radius:120px 120px 18px 18px;box-shadow:17px 16px 0 rgba(43,170,137,.13),0 8px 23px rgba(31,69,51,.1);transform:rotate(-5deg)}
.smn-library .smn-hero-door::before{content:"";position:absolute;width:96px;height:122px;border:8px solid #36b389;border-radius:70px 70px 9px 9px;bottom:24px;background:linear-gradient(#fff5d8 0 55%,#eafad9 55%);box-shadow:inset 0 0 0 5px #fff}
.smn-library .smn-hero-book{position:relative;z-index:1;color:#ed7134;font-size:69px;font-weight:900;line-height:1}
.smn-library .smn-hero-book-label{font-size:20px;line-height:1;color:var(--smn-deep);font-weight:900;position:relative;z-index:1;letter-spacing:.05em}
.smn-library .smn-hero-dot{position:absolute;border-radius:50%}.smn-library .smn-hero-dot.a{background:#7f53a9;width:24px;height:24px;left:3%;top:16%}.smn-library .smn-hero-dot.b{background:#f7a441;width:37px;height:37px;right:1%;top:34%}.smn-library .smn-hero-dot.c{background:#2db5ce;width:15px;height:15px;left:12%;bottom:9%}
.smn-library .smn-library-main{padding:45px 0 16px!important}
.smn-library .smn-intro-row{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:22px}
.smn-library .smn-intro-row h2{font-size:clamp(27px,3vw,35px)!important;margin-top:5px!important}
.smn-library .smn-intro-row>p{max-width:390px;font-size:15.5px;color:#667a6e}
.smn-library .smn-filters{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px 14px;padding:23px;border:1px solid #dbe9dd;border-radius:23px;background:#f7faf7;box-shadow:0 9px 25px rgba(22,79,58,.035);margin:0 0 26px!important;max-width:none!important}
.smn-library .smn-field{min-width:0;grid-column:span 3;display:flex;flex-direction:column;gap:7px;margin:0!important}
.smn-library .smn-field-search{grid-column:span 6}
.smn-library .smn-field>span{font-size:12px!important;line-height:1.3!important;letter-spacing:.075em;text-transform:uppercase;font-weight:800;color:#2a7254}
.smn-library .smn-field :is(input,select){appearance:auto!important;display:block;width:100%!important;min-width:0;max-width:100%!important;height:49px!important;min-height:49px!important;padding:10px 13px!important;margin:0!important;border:1px solid #d6e6da!important;border-radius:12px!important;background:#fff!important;color:var(--smn-deep)!important;font-family:inherit!important;font-size:15px!important;font-weight:500!important;box-shadow:none!important;text-transform:none!important;line-height:1.35!important}
.smn-library .smn-field input::placeholder{color:#90a498;opacity:1}
.smn-library .smn-field :is(input,select):focus{border-color:#29ad7d!important;outline:3px solid #dcf5e6;outline-offset:0}
.smn-library .smn-perpage{grid-column:span 2}
.smn-library .smn-filter-actions{grid-column:span 4;display:flex;align-items:end;gap:10px}
.smn-library .smn-btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 19px;background:#fff;border:1px solid #d4e5d7;border-radius:99px;color:var(--smn-deep)!important;font-size:15px!important;line-height:1.35!important;font-weight:800!important;text-decoration:none!important;white-space:nowrap;box-shadow:none}
.smn-library .smn-btn-primary{background:var(--smn-deep)!important;color:#fff!important;border-color:var(--smn-deep)!important}
.smn-library .smn-btn-primary:hover{background:#0d3d2b!important;color:#fff!important}
.smn-library .smn-reset{border:0!important;background:transparent!important;color:#48735f!important;text-decoration:underline!important;text-underline-offset:5px;font-size:14px!important;padding:10px 8px!important;height:48px}
.smn-library .smn-results{min-height:110px;scroll-margin-top:24px;transition:opacity .15s}
.smn-library.is-loading .smn-results{opacity:.35;pointer-events:none}
.smn-library .smn-results-head{font-size:14px;color:#688074;margin-bottom:18px}
.smn-library .smn-bookshelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 22px}
.smn-library .smn-book{min-width:0;display:flex;flex-direction:column;border:1px solid var(--smn-line);border-radius:25px;background:#fff;overflow:hidden;box-shadow:var(--smn-shadow);transition:transform .2s,box-shadow .2s}
.smn-library .smn-book:hover{transform:translateY(-4px);box-shadow:0 20px 38px rgba(24,81,48,.11)}
.smn-library .smn-book-cover{display:block;position:relative;padding:16px 31px 12px;background:linear-gradient(145deg,#f1f8f2,#fff6e9);border-bottom:1px solid #ebf0e8;height:252px}
.smn-library .smn-book:nth-child(4n+2) .smn-book-cover{background:linear-gradient(145deg,#f0f7fb,#f5eef9)}
.smn-library .smn-book:nth-child(4n+3) .smn-book-cover{background:linear-gradient(145deg,#f9f5e8,#eaf5ea)}
.smn-library .smn-book:nth-child(4n) .smn-book-cover{background:linear-gradient(145deg,#f9edf3,#f4f8ed)}
.smn-library .smn-book-arch{height:100%;max-width:200px;width:76%;margin:0 auto;display:flex;align-items:center;justify-content:center;position:relative;border:5px solid #fff;border-bottom-width:0;background:#fff;border-radius:124px 124px 5px 5px;overflow:hidden;box-shadow:0 3px 19px rgba(28,78,49,.09)}
.smn-library .smn-book-arch::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 5px 0 10px rgba(17,56,35,.08)}
.smn-library .smn-book-arch img{display:block;object-fit:contain!important;object-position:center;width:100%!important;height:100%!important;max-width:none!important;background:#fff}
.smn-library .smn-book-cover .smn-cover-spine{position:absolute}
.smn-library .smn-cover-fallback{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;background:linear-gradient(155deg,#d8f3e3,#dbebf6 66%,#f2e7f4);color:var(--smn-deep)!important;font-weight:850!important;font-size:20px;letter-spacing:.07em}
.smn-library .smn-cover-fallback .smn-cover-symbol{color:#f49a3e;font-size:65px;line-height:1}
.smn-library .smn-cover-fallback small{font-size:13px;color:#487b61;letter-spacing:.07em}
.smn-library .smn-book-spine{display:block;position:absolute;height:7px;left:7%;right:7%;bottom:9px;border-radius:99px;background:linear-gradient(90deg,#eab95f,#f6e4a9,#eab95f);box-shadow:0 3px 2px rgba(155,110,48,.16)}
.smn-library .smn-book-info{padding:19px 20px 20px!important;display:flex;flex-direction:column;gap:0;flex:1}
.smn-library .smn-book-eyebrow{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:10px;color:#1d8f62;font-size:12px;font-weight:800;line-height:1.35}
.smn-library .smn-book-eyebrow>span:first-child{padding:5px 8px;background:#e7f6ea;border-radius:99px}
.smn-library .smn-book-level{font-size:12px;color:#7a54a0;border-radius:99px;padding:5px 8px;background:#f4edf9}
.smn-library .smn-book-title{font-size:21px!important;line-height:1.37!important;margin:0 0 7px!important;font-weight:850!important;overflow-wrap:anywhere}
.smn-library .smn-book-title a{color:var(--smn-deep)!important}
.smn-library .smn-book-title a:hover{text-decoration:underline;text-decoration-color:#eab45f;text-underline-offset:4px}
.smn-library .smn-book-subject{color:#168a63!important;font-size:13px!important;font-weight:700!important;line-height:1.5!important;margin-bottom:9px!important}
.smn-library .smn-book-excerpt{font-size:15px!important;line-height:1.6!important;color:#667b70!important;margin-bottom:17px!important;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;min-height:70px}
.smn-library .smn-book-actions{margin-top:auto;display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding-top:12px;border-top:1px solid #e6eee7}
.smn-library .smn-book-action{border:1px solid #dbe8df!important;background:#f6faf7!important;border-radius:99px!important;padding:9px 12px!important;font-size:13px!important;font-weight:800!important;line-height:1.25!important;color:var(--smn-deep)!important;box-shadow:none!important;white-space:nowrap}
.smn-library .smn-book-action:hover{background:#e6f6eb!important;color:#0b4831!important}
.smn-library .smn-book-download{background:#e9f4fb!important;border-color:#d8ebf2!important;color:#17758b!important}
.smn-library .smn-share{border:1px solid #dbe8df!important;border-radius:99px!important;padding:8px 12px!important;margin-left:auto!important;background:#fff!important;color:var(--smn-deep)!important;box-shadow:none!important;font-weight:800!important;font-size:14px!important;line-height:1.3!important;min-width:38px;min-height:36px}
.smn-library .smn-share:hover{background:#f4edf9!important}
.smn-library .smn-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:32px auto 10px!important}
.smn-library .smn-page-link{display:flex;align-items:center;justify-content:center;min-width:43px;min-height:43px;padding:8px 12px;border:1px solid #dbe9dd;border-radius:50px;color:var(--smn-deep)!important;background:#fff!important;font-size:14px;font-weight:800;text-decoration:none!important}
.smn-library .smn-page-link:hover{background:#e8f7eb!important}.smn-library .smn-page-link.is-current{color:#fff!important;background:var(--smn-deep)!important;border-color:var(--smn-deep)}.smn-library .smn-page-dots{color:#789185;padding:0 4px}
.smn-library .smn-empty{text-align:center;padding:48px 22px;border:1px dashed #c7ddcc;background:#f9fcf8;border-radius:22px}
.smn-library .smn-empty-icon{font-size:50px}.smn-library .smn-empty h3{font-size:25px!important;margin:5px 0 7px!important}.smn-library .smn-empty p{font-size:16px;color:#647b6d}
.smn-library .smn-library-cta{background:#f0eaf7;border-radius:95px 25px 85px 26px;padding:33px 40px!important;margin-top:43px!important;margin-bottom:10px!important;display:flex;align-items:center;justify-content:space-between;gap:23px;position:relative;overflow:hidden}
.smn-library .smn-library-cta::after{content:"";position:absolute;width:175px;height:175px;border:24px solid rgba(129,75,158,.11);right:-15px;bottom:-92px;border-radius:50%;pointer-events:none}
.smn-library .smn-library-cta>div{position:relative;z-index:1}.smn-library .smn-library-cta h2{font-size:clamp(25px,2.5vw,34px)!important;margin:5px 0 6px!important}.smn-library .smn-library-cta p{font-size:15.5px;max-width:670px}.smn-library .smn-cta-btn{position:relative;z-index:1;background:var(--smn-deep)!important;color:#fff!important;border-color:var(--smn-deep)!important;white-space:nowrap}
.smn-modal-open{overflow:hidden!important}
.smn-library .smn-preview-dialog[hidden]{display:none!important}
.smn-library .smn-preview-dialog{position:fixed!important;inset:0!important;z-index:999999!important;background:rgba(12,30,22,.82);display:flex;align-items:center;justify-content:center;padding:20px}
.smn-library .smn-dialog-inner{width:min(1080px,100%);height:min(92vh,940px);display:flex;flex-direction:column;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.smn-library .smn-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:#f5faf6;border-bottom:1px solid #e2ebe2;color:var(--smn-deep)}
.smn-library .smn-dialog-top strong{font-size:17px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.smn-library .smn-dialog-top>div{display:flex;align-items:center;gap:13px;flex-shrink:0}
.smn-library .smn-dialog-top a{color:#206e51!important;font-size:14px;font-weight:700}
.smn-library .smn-dialog-top button{background:#fff!important;border:1px solid #d3e5d9!important;border-radius:50%!important;width:40px;height:40px;color:var(--smn-deep)!important;font-size:20px!important}
.smn-library .smn-dialog-inner iframe{border:0;width:100%;min-height:0;flex:1;background:#f4f6f4}
.smn-library .smn-dialog-note{font-size:13px!important;padding:7px 14px;background:#fff;color:#61786b!important}
/* Single resource page: archive-independent read and download view */
.smn-library.smn-single{padding:35px 0 75px!important;min-height:50vh;background:#fff}
.smn-library .smn-breadcrumb{display:flex;flex-wrap:wrap;gap:11px;font-size:14px;color:#658072;margin-bottom:25px}
.smn-library .smn-breadcrumb a{color:var(--smn-deep)!important;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#a7ccb6}
.smn-library .smn-single-head{background:linear-gradient(110deg,#f8f8ef,#eff9f5);padding:32px 38px 35px;border-radius:29px;margin-bottom:30px!important;border:1px solid #e4ede3}
.smn-library .smn-single-head h1{font-size:clamp(32px,4vw,49px)!important;max-width:1020px;margin:8px 0 11px!important}
.smn-library .smn-single-head>p:last-child{font-size:18px;max-width:870px;color:#5a7465}
.smn-library .smn-single-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:32px;align-items:start}
.smn-library .smn-single-side{display:flex;flex-direction:column;gap:18px;position:sticky;top:22px}
.smn-library .smn-side-cover{padding:19px 25px 0;border:1px solid var(--smn-line);border-radius:28px;background:linear-gradient(140deg,#eaf8f0,#edf5fc);box-shadow:var(--smn-shadow)}
.smn-library .smn-single-cover-inner{border:7px solid #fff;border-bottom-width:0;min-height:280px;aspect-ratio: .74;overflow:hidden;border-radius:150px 150px 7px 7px;background:#fff;display:flex;justify-content:center;align-items:center}
.smn-library .smn-single-cover-inner img{display:block;width:100%!important;height:100%!important;object-fit:contain!important}
.smn-library .smn-side-meta{border:1px solid var(--smn-line);border-radius:23px;padding:22px;background:#fff}
.smn-library .smn-side-meta h2{font-size:23px!important;margin:0 0 13px!important}
.smn-library .smn-side-meta-row{border-top:1px solid #e7efe8;padding:10px 0;display:flex;flex-direction:column;gap:2px}
.smn-library .smn-side-meta-row span{font-size:12px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:#7a9384}
.smn-library .smn-side-meta-row strong{font-size:15px;color:var(--smn-deep);font-weight:750;line-height:1.5}
.smn-library .smn-side-contact{border-radius:23px;padding:23px;background:#f1eaf8}
.smn-library .smn-side-contact strong{display:block;font-size:20px;line-height:1.3;color:var(--smn-deep)}
.smn-library .smn-side-contact p{font-size:15px;line-height:1.65;margin:8px 0 14px;color:#53685c}
.smn-library .smn-side-contact a{display:inline-block;border-radius:99px;padding:9px 15px;background:var(--smn-deep);color:#fff!important;font-size:14px;font-weight:800}
.smn-library .smn-single-body{min-width:0;border-radius:25px;border:1px solid #e4eee5;padding:29px 32px 35px;box-shadow:0 8px 24px rgba(25,70,51,.035)}
.smn-library .smn-content-body{font-size:18px!important;line-height:1.85!important;overflow-wrap:anywhere}
.smn-library .smn-content-body > * + *{margin-top:20px!important}
.smn-library .smn-content-body p{font-size:18px!important;line-height:1.85!important}
.smn-library .smn-content-body h2{font-size:clamp(25px,2.6vw,33px)!important;margin:33px 0 14px!important}
.smn-library .smn-content-body h3{font-size:clamp(21px,2.1vw,26px)!important;margin:27px 0 13px!important}
.smn-library .smn-content-body :is(ul,ol){margin:18px 0 22px!important;padding-left:25px!important}
.smn-library .smn-content-body li{margin:6px 0}
.smn-library .smn-content-body a{color:#0e8661!important;text-decoration:underline;text-underline-offset:3px}
.smn-library .smn-content-body img{height:auto!important;max-width:100%!important;border-radius:14px}
.smn-library .smn-content-body blockquote{background:#f2f8f3;border-left:5px solid #42b483;padding:15px 23px;border-radius:0 14px 14px 0}
.smn-library .smn-content-body table{display:block;overflow-x:auto;width:100%}
.smn-library .smn-teacher-note{background:#fff6e9;border:1px solid #f6dfb3;padding:20px 24px;border-radius:17px;margin-top:27px}
.smn-library .smn-teacher-note strong{display:block;font-size:19px;color:#795016;margin-bottom:5px}.smn-library .smn-teacher-note p{color:#665842;font-size:16px}
.smn-library .smn-pdf-section,.smn-library .smn-downloads{border-top:1px solid var(--smn-line);margin-top:33px;padding-top:28px}
.smn-library .smn-pdf-section h2,.smn-library .smn-downloads h2{font-size:clamp(25px,2.6vw,31px)!important;margin:0 0 10px!important}
.smn-library .smn-pdf-section p{font-size:15.5px;color:#62786b;margin-bottom:17px!important}
.smn-library .smn-pdf-section iframe{display:block;width:100%;height:620px;border:1px solid #d9e6dc;border-radius:15px;background:#f5f7f5}
.smn-library .smn-pdf-open{display:inline-block;font-size:15px;font-weight:800;margin-top:10px;color:#23795a!important;text-decoration:underline;text-underline-offset:4px}
.smn-library .smn-download-list{display:grid;gap:11px;margin-top:15px}
.smn-library .smn-download-row{display:flex;align-items:center;gap:13px;border:1px solid #e1ebe2;background:#fbfdfb;border-radius:15px;padding:14px 15px;color:var(--smn-deep)!important}
.smn-library .smn-download-row:hover{background:#edf8ef}
.smn-library .smn-download-row>span:nth-child(2){min-width:0;flex:1}
.smn-library .smn-download-row strong{display:block;font-size:15px;line-height:1.4;overflow-wrap:anywhere;font-weight:750}
.smn-library .smn-download-row small{display:block;font-size:12px;color:#819287;margin-top:3px}
.smn-library .smn-download-row b{font-size:14px;white-space:nowrap;color:#187d5a}
.smn-library .smn-download-fileicon{flex-shrink:0;min-width:54px;min-height:48px;border-radius:11px;background:#e4f2e9;display:flex;align-items:center;justify-content:center;color:#247b57;font-size:13px;font-weight:800}
.smn-library .smn-single-footer{border-top:1px solid var(--smn-line);margin-top:35px;padding-top:24px;display:flex;align-items:center;flex-wrap:wrap;gap:18px}
.smn-library .smn-single-footer>a{font-size:15px;color:var(--smn-deep)!important;text-decoration:underline;text-underline-offset:5px}
/* Gutenberg / Ileana: remove excess content wrapper gutters only on a library page. */
body:has(.smn-library[data-smn-library]) .wp-block-post-content:has(.smn-library[data-smn-library]){padding-block:0!important;margin-block:0!important}
body:has(.smn-library[data-smn-library]) .wp-block-html:has(.smn-library[data-smn-library]),body:has(.smn-library[data-smn-library]) .wp-block-shortcode:has(.smn-library[data-smn-library]){margin-block:0!important;padding-block:0!important}
@media(max-width:1080px){.smn-library .smn-filters{grid-template-columns:repeat(6,minmax(0,1fr))}.smn-library .smn-field{grid-column:span 2}.smn-library .smn-field-search{grid-column:span 4}.smn-library .smn-perpage{grid-column:span 2}.smn-library .smn-filter-actions{grid-column:span 4}.smn-library .smn-hero-inner{grid-template-columns:1.7fr .6fr}.smn-library .smn-single-grid{grid-template-columns:270px minmax(0,1fr);gap:22px}.smn-library .smn-single-body{padding:24px}}
@media(max-width:820px){.smn-library .smn-hero-art{width:220px}.smn-library .smn-hero-door{width:165px;height:193px}.smn-library .smn-hero h2{font-size:37px!important}.smn-library .smn-bookshelf{grid-template-columns:repeat(2,minmax(0,1fr))}.smn-library .smn-intro-row{align-items:start;flex-direction:column;gap:8px}.smn-library .smn-library-cta{padding:28px 32px!important}.smn-library .smn-single-grid{grid-template-columns:1fr}.smn-library .smn-single-side{position:static;display:grid;grid-template-columns:1fr 1fr;gap:14px;order:2}.smn-library .smn-single-body{order:1}.smn-library .smn-side-cover{grid-row:span 2}.smn-library .smn-single-cover-inner{min-height:320px}}
@media(max-width:650px){.smn-library{padding-bottom:14px!important}.smn-library .smn-container{width:calc(100% - 30px)}.smn-library .smn-hero{padding:35px 0 33px}.smn-library .smn-hero-inner{grid-template-columns:1fr;gap:10px}.smn-library .smn-hero h2{font-size:clamp(34px,8.8vw,44px)!important}.smn-library .smn-hero-copy>p:last-child{font-size:16px}.smn-library .smn-hero-art{display:none}.smn-library .smn-library-main{padding:35px 0 15px!important}.smn-library .smn-intro-row h2{font-size:27px!important}.smn-library .smn-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border-radius:17px;margin-bottom:23px!important}.smn-library .smn-field,.smn-library .smn-field-search{grid-column:span 2}.smn-library .smn-perpage{grid-column:span 1}.smn-library .smn-filter-actions{grid-column:span 2}.smn-library .smn-filters .smn-field:nth-of-type(5),.smn-library .smn-filters .smn-field:nth-of-type(6){grid-column:span 1}.smn-library .smn-bookshelf{grid-template-columns:1fr;gap:20px}.smn-library .smn-book-cover{height:248px}.smn-library .smn-book-info{padding:18px!important}.smn-library .smn-book-excerpt{min-height:auto}.smn-library .smn-library-cta{display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:26px 24px!important;border-radius:50px 20px 40px 20px;margin-top:29px!important}.smn-library .smn-cta-btn{width:100%}.smn-library .smn-library-cta h2{font-size:27px!important}.smn-library .smn-dialog-inner{height:96vh;border-radius:12px}.smn-library .smn-preview-dialog{padding:8px}.smn-library .smn-dialog-top{padding:10px}.smn-library .smn-dialog-top strong{font-size:14px}.smn-library .smn-dialog-top>div>a{font-size:12px;max-width:85px;line-height:1.2}.smn-library .smn-single-head{padding:24px 20px;border-radius:21px}.smn-library .smn-single-head h1{font-size:32px!important}.smn-library .smn-single-head>p:last-child{font-size:16px}.smn-library .smn-single-side{grid-template-columns:1fr}.smn-library .smn-side-cover{grid-row:auto}.smn-library .smn-single-body{padding:18px}.smn-library .smn-content-body,.smn-library .smn-content-body p{font-size:17px!important}.smn-library .smn-pdf-section iframe{height:480px}.smn-library .smn-download-row{padding:11px;gap:9px}.smn-library .smn-download-row b{font-size:12px}.smn-library .smn-single-footer{align-items:stretch;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.smn-library .smn-book,.smn-library .smn-btn{transition:none!important}}
/* Block themes: replace the regular post content with the plugin's single-resource view. */
body.single-smn_resource .wp-block-post-content:has(.smn-single){max-width:none!important;padding:0!important;margin-block:0!important}
body.single-smn_resource .wp-block-post-content .smn-library.smn-single{position:relative;left:50%;transform:translateX(-50%);width:100vw!important;max-width:none!important}
body.single-smn_resource .wp-block-post-title,body.single-smn_resource .wp-block-post-featured-image{display:none!important}

/* v1.1.0 — Single lesson: full-width, one reading column, no widget/sidebar. */
.smn-library.smn-single.smn-lesson{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;background:#fff;overflow:clip;min-height:auto}
.smn-library .smn-lesson-header{padding:35px 0 50px!important;background:#fbfaf3;position:relative;isolation:isolate;border-bottom:6px solid transparent;border-image:linear-gradient(90deg,#8350a3 0 25%,#26aecf 25% 50%,#34b76c 50% 75%,#ff8a48 75% 100%) 1}
.smn-library .smn-lesson-header::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;opacity:.24;background:repeating-radial-gradient(ellipse 170px 45px at 10px 9px,transparent 0 35px,#b4d0c0 36px,transparent 38px);background-size:420px 120px}
.smn-library .smn-lesson-header .smn-container{max-width:1000px}
.smn-library .smn-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 37px!important;font-size:14px;color:#6d8373}
.smn-library .smn-lesson-header .smn-kicker{margin:0 0 12px!important}
.smn-library .smn-lesson-header h1{font-size:clamp(34px,5vw,61px)!important;max-width:1040px;line-height:1.15!important;letter-spacing:-.045em!important;margin:0 0 18px!important;overflow-wrap:anywhere;text-wrap:balance}
.smn-library .smn-lesson-intro{font-size:clamp(17px,1.7vw,20px)!important;line-height:1.75!important;max-width:910px;color:#557063!important;margin:0 0 22px!important}
.smn-library .smn-lesson-tags{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:17px}
.smn-library .smn-lesson-tags span{display:inline-flex;align-items:center;border:1px solid #d8e7dc;color:#285640;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.83);font-size:13.5px;line-height:1.4;font-weight:700;max-width:100%}
.smn-library .smn-lesson-main{max-width:1000px;padding:42px 0 56px!important}
.smn-library .smn-lesson-cover{display:block;margin:0 0 34px!important;width:100%;height:auto;max-height:440px;overflow:hidden;border-radius:140px 36px 38px 36px;background:#f4f6ec;box-shadow:0 12px 40px rgba(20,68,44,.065)}
.smn-library .smn-lesson-cover img{display:block;width:100%!important;height:auto!important;max-height:440px!important;object-fit:cover!important;object-position:center!important}
.smn-library .smn-lesson-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;align-items:stretch;margin:0 0 34px!important}
.smn-library .smn-lesson-overview:has(> :only-child){grid-template-columns:1fr}
.smn-library .smn-lesson-overview-card{border-radius:23px 55px 22px 22px;background:#edf8f1;padding:26px 28px!important;border:1px solid #d9ebdf;min-width:0}
.smn-library .smn-lesson-materials{background:#fff7ea;border-color:#f4e4cd;border-radius:55px 23px 22px 22px}
.smn-library .smn-mini-label{display:inline-block;font-size:12px;font-weight:850;line-height:1.5;letter-spacing:.11em;color:#25845f}
.smn-library .smn-lesson-overview-card h2{font-size:clamp(23px,2.5vw,29px)!important;margin:6px 0 12px!important;line-height:1.26!important}
.smn-library .smn-lesson-bullets{list-style:none!important;margin:0!important;padding:0!important;display:grid;gap:11px;max-width:none!important}
.smn-library .smn-lesson-bullets li{position:relative;margin:0!important;padding:0 0 0 23px!important;font-size:16px!important;line-height:1.64!important;color:#395746!important;overflow-wrap:anywhere}
.smn-library .smn-lesson-bullets li::before{content:"✓";position:absolute;left:0;top:0;color:#23966f;font-weight:900}
.smn-library .smn-lesson-materials .smn-lesson-bullets li::before{content:"✦";color:#e78636}
.smn-library .smn-lesson-content,.smn-library .smn-lesson-viewer,.smn-library .smn-lesson-downloads{margin-top:34px!important;padding-top:29px!important;border-top:1px solid #e3ece4}
.smn-library .smn-lesson-content:first-child{margin-top:0!important;border:0!important;padding-top:0!important}
.smn-library .smn-section-head{margin:0 0 24px!important}
.smn-library .smn-section-head .smn-kicker{font-size:12px!important;margin:0 0 7px!important}
.smn-library .smn-section-head h2{font-size:clamp(28px,3.15vw,37px)!important;line-height:1.23!important;margin:0!important}
.smn-library .smn-lesson-content .smn-content-body{font-size:18px!important;line-height:1.86!important;overflow-wrap:anywhere}
.smn-library .smn-lesson-content .smn-content-body p{font-size:18px!important;line-height:1.84!important}
.smn-library .smn-lesson-content .smn-content-body>img,.smn-library .smn-lesson-content .smn-content-body figure{max-width:100%}
.smn-library .smn-lesson-content .smn-content-body figure img{border-radius:18px;max-width:100%!important;height:auto}
.smn-library .smn-lesson-content .smn-content-body figcaption{font-size:14px!important;color:#6f8174!important;line-height:1.5!important}
.smn-library .smn-lesson-content .smn-content-body .wp-block-embed iframe{max-width:100%}
.smn-library .smn-lesson-viewer{margin-top:35px!important}
.smn-library .smn-viewer-frame{border-radius:19px;border:1px solid #d9e6db;background:#f1f5f2;box-shadow:0 10px 25px rgba(27,64,42,.045);overflow:hidden;min-height:400px;aspect-ratio:16/10;position:relative}
.smn-library .smn-viewer-frame iframe{display:block;border:0!important;width:100%!important;height:100%!important;min-height:400px;position:absolute;inset:0;background:#f5f8f6}
.smn-library .smn-viewer-note{font-size:14.5px!important;line-height:1.65!important;color:#617768!important;margin:12px 0 0!important}
.smn-library .smn-viewer-note a{color:var(--smn-green)!important;text-decoration:underline;text-underline-offset:3px;font-weight:750}
.smn-library .smn-lesson-downloads .smn-download-list{gap:12px}
.smn-library .smn-lesson-downloads .smn-download-row{min-height:74px;border:1px solid #dfe9e0;border-radius:15px;background:#fcfdfb;padding:15px 17px;transition:background .15s}
.smn-library .smn-lesson-downloads .smn-download-row:hover{background:#ecf8ef}
.smn-library .smn-lesson-downloads .smn-download-row b{font-size:15px}
.smn-library .smn-lesson-no-file{background:#f5f9f6;border-radius:15px;padding:15px 19px;margin:25px 0 0!important;font-size:15px!important;color:#6a7c70!important}
.smn-library .smn-lesson-end{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:39px 0 0!important;padding-top:25px!important;border-top:1px solid #e3ebe5}
.smn-library .smn-lesson-end>a{color:var(--smn-deep)!important;font-size:16px!important;font-weight:800;text-decoration:underline;text-underline-offset:5px}
.smn-library .smn-lesson-end button{border:0}
.smn-library .smn-teacher-note{margin-top:31px!important}
.smn-library .smn-related{padding:56px 0 61px!important;border-top:1px solid #e6eee6;max-width:1190px!important}
.smn-library .smn-related-top{display:flex;align-items:end;justify-content:space-between;gap:22px;margin:0 0 22px!important}
.smn-library .smn-related-top h2{font-size:clamp(27px,3vw,35px)!important;margin:7px 0 0!important}
.smn-library .smn-related-top>a{color:var(--smn-deep)!important;font-weight:800;flex-shrink:0;text-decoration:underline;text-underline-offset:5px}
.smn-library .smn-related-grid{margin-top:0!important}
.smn-library .smn-related-grid .smn-book-title{font-size:20px!important}
.smn-library .smn-related-grid .smn-book-excerpt{min-height:unset}
.smn-library .smn-lesson-contact{padding:48px 0 60px!important;background:#fff}
.smn-library .smn-lesson-contact>.smn-container{background:#f0e8f7;border-radius:76px 26px 80px 28px;padding:35px 49px!important;display:flex;justify-content:space-between;align-items:center;gap:24px;position:relative;overflow:hidden}
.smn-library .smn-lesson-contact>.smn-container::after{content:"";position:absolute;width:180px;height:180px;border:22px solid rgba(121,69,151,.1);border-radius:50%;right:-43px;bottom:-85px;pointer-events:none}
.smn-library .smn-lesson-contact .smn-kicker{font-size:12px!important;color:#77539b!important}
.smn-library .smn-lesson-contact h2{font-size:clamp(25px,2.9vw,35px)!important;margin:8px 0 6px!important;line-height:1.28!important}
.smn-library .smn-lesson-contact p:not(.smn-kicker){font-size:16px!important;line-height:1.66!important;max-width:650px;color:#53675c!important}
.smn-library .smn-lesson-contact .smn-btn{position:relative;z-index:1;white-space:nowrap}
body.single-smn_resource :is(.entry-content,.wp-block-post-content):has(.smn-lesson){padding-block:0!important;margin-block:0!important}
body.single-smn_resource .wp-block-post-content .smn-library.smn-single.smn-lesson{position:relative;left:50%;transform:translateX(-50%);width:100vw!important;max-width:none!important}
body.single-smn_resource .wp-block-post-title,body.single-smn_resource .wp-block-post-featured-image{display:none!important}
@media(max-width:870px){.smn-library .smn-lesson-overview{grid-template-columns:1fr}.smn-library .smn-lesson-overview-card{border-radius:24px}.smn-library .smn-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.smn-library .smn-viewer-frame{aspect-ratio:16/11}.smn-library .smn-lesson-contact>.smn-container{padding:32px!important}}
@media(max-width:650px){.smn-library .smn-lesson-header{padding:23px 0 32px!important}.smn-library .smn-breadcrumb{margin-bottom:25px!important;font-size:13px}.smn-library .smn-lesson-header h1{font-size:clamp(30px,8vw,43px)!important}.smn-library .smn-lesson-main{padding:29px 0 38px!important}.smn-library .smn-lesson-cover{border-radius:55px 18px 18px 18px;margin-bottom:23px!important}.smn-library .smn-lesson-overview{gap:12px;margin-bottom:25px!important}.smn-library .smn-lesson-overview-card{padding:21px!important}.smn-library .smn-lesson-overview-card h2{font-size:24px!important}.smn-library .smn-lesson-content .smn-content-body,.smn-library .smn-lesson-content .smn-content-body p{font-size:17px!important;line-height:1.8!important}.smn-library .smn-section-head h2{font-size:26px!important}.smn-library .smn-viewer-frame{aspect-ratio:4/5;min-height:390px}.smn-library .smn-viewer-frame iframe{min-height:390px}.smn-library .smn-download-row b{font-size:12px!important}.smn-library .smn-lesson-end{align-items:stretch;flex-direction:column}.smn-library .smn-lesson-end button{width:100%}.smn-library .smn-related{padding:35px 0 39px!important}.smn-library .smn-related-grid{grid-template-columns:1fr}.smn-library .smn-related-top{align-items:start;flex-direction:column;gap:9px}.smn-library .smn-lesson-contact{padding:22px 0 36px!important}.smn-library .smn-lesson-contact>.smn-container{padding:27px 23px!important;display:flex;align-items:flex-start;flex-direction:column;gap:19px;border-radius:37px 21px 40px 21px}.smn-library .smn-lesson-contact .smn-btn{width:100%}}
.smn-library .smn-lesson-top-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:23px}
.smn-library .smn-lesson-top-actions .smn-btn{border:0}
.smn-library .smn-lesson-top-download{display:inline-flex;align-items:center;justify-content:center;min-height:49px;padding:12px 20px;border:1px solid #c6dacf;border-radius:99px;background:#fff;color:var(--smn-deep)!important;font-size:16px;font-weight:800;line-height:1.4}
.smn-library .smn-lesson-top-download:hover{background:#ebf7f0}
@media(max-width:650px){.smn-library .smn-lesson-top-actions{align-items:stretch;flex-direction:column}.smn-library .smn-lesson-top-actions .smn-btn,.smn-library .smn-lesson-top-download{width:100%}}
