
/* eBook Store v1.8.0 — scoped storefront and account redesign */
.esm-home{--esm-ink:#16243e;--esm-blue:#203c86;--esm-accent:#ffce67;background:#f7f9fc!important;color:#16243e;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.esm-home .esm-top{background:#fff!important;color:#16243e!important;box-shadow:0 1px 0 #e9edf3;min-height:82px}
.esm-home .esm-brand b{color:#18284a;font-size:23px;letter-spacing:-.8px}
.esm-home .esm-brand em{color:#4c57d6}
.esm-home .esm-brand small{color:#738098}
.esm-home .esm-logo{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#edf0ff;font-size:25px}
.esm-home .esm-top nav a{color:#455572;font-weight:650;transition:color .2s}
.esm-home .esm-top nav a:hover{color:#514bd5}
.esm-home .esm-top-cta,.esm-home .esm-explore{background:#f5bb51!important;color:#142444!important;border-radius:12px;box-shadow:0 7px 20px #a4792330}
.esm-home .esm-hero{background:radial-gradient(ellipse at 84% 30%,#7e81d8 0%,transparent 37%),linear-gradient(120deg,#10254f 0%,#263d86 55%,#4743a5 100%)!important;min-height:500px;gap:22px}
.esm-home .esm-hero-copy{position:relative;z-index:2}
.esm-home .esm-eyebrow{color:#f9d98e;background:#ffffff15;border:1px solid #ffffff25;border-radius:40px;padding:9px 15px;display:inline-flex;letter-spacing:1.3px}
.esm-home .esm-hero h1{font-weight:850;line-height:1.08;max-width:780px}
.esm-home .esm-hero h1 span{color:#ffd67c}
.esm-home .esm-hero p{color:#e1e7fa;max-width:600px}
.esm-home .esm-hero-points span{padding:8px 12px;background:#ffffff13;border:1px solid #ffffff20;border-radius:9px}
.esm-home .esm-hero-art{height:330px;min-height:280px;isolation:isolate}
.esm-hero-glow{position:absolute;width:340px;height:340px;border-radius:50%;background:#ffffff18;filter:blur(4px)}
.esm-hero-book{position:absolute;display:flex;align-items:center;justify-content:center;width:180px;height:250px;border:8px solid #fff;border-radius:14px;background:linear-gradient(135deg,#fff,#e3e9ff);box-shadow:0 24px 45px #07102d65;overflow:hidden;transform:rotate(-9deg) translateX(-75px)}
.esm-hero-book img{width:100%!important;height:100%!important;object-fit:cover}
.esm-hero-book span{font-size:70px}
.esm-hero-book-2{transform:rotate(9deg) translateX(75px) translateY(4px);z-index:-1;background:#d9e9fb}
.esm-hero-book-3{transform:rotate(0deg) translateY(-18px);z-index:1;width:190px;height:265px}
.esm-home .esm-main{background:#f8fafd}
.esm-discovery{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:5px 0 34px}
.esm-discovery h2{font-size:clamp(24px,3vw,36px);margin:8px 0;color:#172848;letter-spacing:-.9px}
.esm-discovery p{color:#77839a;margin:0}
.esm-search-wrap{display:flex;align-items:center;gap:12px;min-width:min(100%,330px);background:#fff;border:1px solid #dfe5f0;box-shadow:0 7px 20px #1e326309;border-radius:14px;padding:4px 15px}
.esm-search-wrap span{font-size:26px;color:#6878a2}
.esm-home .esm-search{border:0;outline:0;min-height:48px;width:100%;background:transparent;color:#14243f;font:inherit;font-size:14px}
.esm-home .esm-section-head h2{font-size:clamp(23px,2.5vw,31px);letter-spacing:-.6px}
.esm-home .esm-categories{gap:14px}
.esm-home .esm-cat{background:#fff!important;border:1px solid #e7ebf4;border-radius:17px;box-shadow:0 8px 22px #263f6a0b;min-height:110px}
.esm-home .esm-cat.is-active{background:#eeedff!important;border:2px solid #7066db;box-shadow:0 10px 25px #5742c51b}
.esm-home .esm-cat:hover{background:#f5f4ff!important}
.esm-home .esm-grid{gap:22px}
.esm-home .esm-card{border:1px solid #e6eaf2!important;border-radius:20px;box-shadow:0 10px 35px #1c345414}
.esm-home .esm-cover{position:relative;height:270px;padding:19px;background:linear-gradient(140deg,#e8eefb,#f6f8fc)}
.esm-cover-tag{position:absolute;top:14px;left:14px;padding:6px 9px;border-radius:7px;background:#fff;color:#4b54a4;font-size:10px;font-weight:800;letter-spacing:.5px;box-shadow:0 3px 12px #19254a16;z-index:1}
.esm-home .esm-cover img{object-fit:contain;filter:drop-shadow(0 8px 12px #1c345126)}
.esm-home .esm-card-body{padding:20px}
.esm-home .esm-card h3{font-size:18px;letter-spacing:-.25px}
.esm-home .esm-description{font-size:13px;line-height:1.65}
.esm-home .esm-details-link{font-size:12px;color:#514bd0}
.esm-home .esm-price{font-size:25px;color:#182c50;border-top:1px solid #eef1f7;padding-top:15px;margin-top:auto}
.esm-price-label{display:block;color:#8994a8;font-size:11px;font-weight:600;margin-bottom:4px}
.esm-home .esm-email-label{color:#586782;font-size:12px}
.esm-home .esm-card .esm-email{border-radius:11px;padding:12px;border:1px solid #dce3f0}
.esm-home .esm-buy{background:#514bd4;border-radius:12px;font-size:14px;min-height:48px;box-shadow:0 7px 16px #514bd42c}
.esm-home .esm-buy:hover{background:#3932b1}
.esm-home .esm-preview{background:#f8f9ff;border:1px solid #e5e7fb;border-radius:12px}
.esm-home .esm-preview summary{color:#4945a6}
.esm-home .esm-trust{background:#edf2fb;border:1px solid #e2e8f5;border-radius:18px;padding:25px}
.esm-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:22px;background:#122346;color:#e3eaf8;padding:35px clamp(18px,6vw,100px)}
.esm-footer strong{font-size:20px;color:#fff}
.esm-footer p,.esm-footer small{color:#a9b8d2;font-size:12px}
.esm-footer-links{display:flex;flex-wrap:wrap;gap:20px}
.esm-footer a{color:#e3eaf8;text-decoration:none;font-size:13px}
.esm-footer a:hover{text-decoration:underline}
.esm-secondary-page{font-family:Inter,system-ui,sans-serif;max-width:1000px;margin:35px auto;padding:40px 18px;min-height:60vh;background:#f7f9fd;color:#172747}
.esm-secondary-panel{max-width:570px;margin:auto;padding:clamp(24px,5vw,50px);border:1px solid #e5e9f3;background:#fff;border-radius:22px;box-shadow:0 18px 50px #17274714}
.esm-secondary-panel h1{font-size:clamp(26px,3vw,38px);line-height:1.2;letter-spacing:-.8px;color:#172747}
.esm-secondary-panel p{color:#66758e;line-height:1.7}
.esm-secondary-panel a{color:#4d49c8;font-weight:700}
.esm-secondary-panel input[type=text],.esm-secondary-panel input[type=password]{width:100%;max-width:100%;padding:12px;border:1px solid #dce3ee;border-radius:10px}
.esm-secondary-panel input[type=submit],.esm-action-link{display:inline-block;background:#514bd4!important;color:#fff!important;padding:12px 22px;border:0;border-radius:11px;text-decoration:none;font-weight:700}
.esm-library-list{padding:0;list-style:none}
.esm-library-list li{display:flex;justify-content:space-between;gap:12px;padding:17px 0;border-bottom:1px solid #e8ecf3}
@media(max-width:900px){.esm-home .esm-top nav{gap:12px}.esm-home .esm-top nav a{font-size:12px}.esm-home .esm-hero{min-height:380px}.esm-hero-book{width:130px;height:190px}.esm-hero-book-3{width:145px;height:210px}}
@media(max-width:760px){.esm-home .esm-hero{grid-template-columns:1fr;padding-bottom:35px}.esm-home .esm-hero-art{height:210px;min-height:210px}.esm-hero-glow{width:210px;height:210px}.esm-hero-book{width:105px;height:150px}.esm-hero-book-3{width:120px;height:170px}.esm-discovery{align-items:stretch;flex-direction:column}.esm-search-wrap{width:100%}.esm-home .esm-cover{height:210px}.esm-home .esm-card-body{padding:13px}.esm-home .esm-card h3{font-size:14px}.esm-home .esm-card .esm-email{font-size:12px}.esm-home .esm-footer{padding:30px 20px}}
@media(max-width:400px){.esm-home .esm-cover{height:175px;padding:9px}.esm-home .esm-card-body{padding:10px}.esm-home .esm-card h3{font-size:13px}.esm-home .esm-buy{font-size:12px}.esm-home .esm-grid{gap:9px}}
@media(prefers-reduced-motion:reduce){.esm-home *{scroll-behavior:auto!important;transition:none!important}}

/* v1.8.2: isolated book detail view, mobile-safe and independent of theme width */
body.single-esm_book .entry-header,body.single-esm_book .wp-block-post-title,body.single-esm_book h1.entry-title,body.single-esm_book .page-header{display:none!important}
body.single-esm_book .entry-content,body.single-esm_book .wp-block-post-content,body.single-esm_book .site-main,body.single-esm_book article.esm_book{max-width:none!important;width:100%!important}
body.single-esm_book .entry-content,body.single-esm_book .wp-block-post-content{margin:0!important}
.esm-landing,.esm-landing *{box-sizing:border-box}
.esm-landing{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#192949;background:#f7f9fe;width:100%;max-width:1280px;margin:20px auto;padding:clamp(16px,3vw,44px);border-radius:20px;overflow-wrap:anywhere}
.esm-landing a{text-decoration:none}
.esm-landing-nav{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:0 0 28px}
.esm-landing-nav a{color:#4c47c4;font-weight:750;font-size:13px}
.esm-landing-layout{display:grid;grid-template-columns:minmax(0,0.85fr) minmax(0,1.15fr);gap:clamp(20px,4vw,56px);align-items:start}
.esm-landing-cover{background:#eaf0fa;border:1px solid #e0e7f3;border-radius:20px;padding:clamp(15px,3vw,35px);display:flex;align-items:center;justify-content:center;min-height:320px}
.esm-landing-cover img{width:100%;max-height:650px;object-fit:contain;filter:drop-shadow(0 12px 18px #182a4d35);border-radius:8px}
.esm-landing-cover .esm-cover-fallback{min-height:380px}
.esm-landing-info{min-width:0}
.esm-landing-label,.esm-landing-section-title>span{font-size:11px;font-weight:850;color:#6154cf;letter-spacing:1.5px}
.esm-landing-info h1{font-size:clamp(27px,3.5vw,46px);line-height:1.16;letter-spacing:-1px;color:#14264a;margin:12px 0 17px}
.esm-landing-cats{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 22px}
.esm-landing-cats span{background:#e9e8fc;border-radius:25px;padding:7px 12px;color:#554bb3;font-size:12px;font-weight:700}
.esm-landing-description{line-height:1.8;color:#52617b}
.esm-landing-description h2{font-size:22px;color:#192949;margin:16px 0 7px}
.esm-landing-description p{margin:6px 0 14px}
.esm-landing-features{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0}
.esm-landing-features span{background:#edf7f3;color:#18704c;padding:9px 11px;border-radius:10px;font-size:12px;font-weight:700}
.esm-landing-purchase{display:flex;flex-direction:column;gap:9px;padding:24px!important;border:1px solid #e3e8f3;border-radius:18px;background:#fff;box-shadow:0 12px 34px #152b5210}
.esm-landing-purchase .esm-price{font-size:34px;color:#17274a;font-weight:850;margin:0 0 12px}
.esm-landing-purchase .esm-email-label{font-size:13px;font-weight:700}
.esm-landing-purchase .esm-email{width:100%;padding:14px;border:1px solid #dbe3f0;border-radius:10px;font-size:15px}
.esm-landing-purchase .esm-buy{width:100%;min-height:51px;border:0;border-radius:11px;background:#514bd4;color:#fff;font-size:15px;font-weight:800;cursor:pointer}
.esm-landing-purchase .esm-status{font-size:13px;color:#5c6681}
.esm-landing-preview{margin:55px 0 30px}
.esm-landing-section-title{text-align:center;margin:0 auto 26px}
.esm-landing-section-title h2{font-size:clamp(25px,3vw,35px);margin:8px 0;color:#17284a}
.esm-landing-section-title p{color:#66748d}
.esm-landing-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.esm-landing-preview-grid a{display:flex;flex-direction:column;gap:10px;text-align:center;background:#fff;border:1px solid #e4e9f3;padding:12px;border-radius:14px;color:#485571;font-size:13px;font-weight:750;box-shadow:0 8px 20px #142a4b0c}
.esm-landing-preview-grid img{width:100%;aspect-ratio:1/1.35;object-fit:contain;background:#fff}
.esm-landing-bottom{margin:30px 0 0;background:linear-gradient(110deg,#182d64,#4945a6);color:#fff;padding:28px;border-radius:18px;text-align:center}
.esm-landing-bottom h2{color:#fff;margin:0 0 8px}
.esm-landing-bottom p{color:#e4e8fc}
.esm-landing-bottom a{display:inline-block;padding:12px 22px;background:#ffd16b;border-radius:11px;color:#172747;font-weight:800}
.esm-home .esm-grid .esm-card[hidden]{display:none!important}
@media(max-width:760px){
 .esm-home .esm-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .esm-landing{margin:0 auto;border-radius:0;padding:18px 14px}
 .esm-landing-layout{grid-template-columns:minmax(0,1fr);gap:22px}
 .esm-landing-cover{min-height:240px;padding:20px}
 .esm-landing-cover img{max-height:440px}
 .esm-landing-preview{margin-top:34px}
 .esm-landing-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .esm-landing-purchase{padding:18px!important}
}
@media(max-width:480px){
 .esm-home .esm-grid{grid-template-columns:1fr!important}
 .esm-home .esm-cover{height:260px!important}
 .esm-home .esm-card h3{font-size:18px!important}
 .esm-landing-preview-grid{gap:8px}
 .esm-landing-preview-grid a{padding:7px}
}

/* v1.8.4 homepage layout fixes */
body.esm-store-fullbleed .entry-header:has(+ .entry-content .esm-home),
body.esm-store-fullbleed .wp-block-post-title:has(+ .wp-block-post-content .esm-home){display:none}
.esm-home{width:100%;max-width:100%;overflow-x:clip}
.esm-home .esm-top{flex-wrap:wrap;gap:14px}
.esm-home .esm-top nav{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(8px,1.6vw,20px)}
.esm-home .esm-grid{align-items:stretch}
.esm-home .esm-card{min-width:0}
.esm-home .esm-card .esm-home-details-btn{display:block;text-align:center;margin-top:14px;background:#514bd4;color:#fff!important;padding:13px 10px;border-radius:11px;text-decoration:none;font-size:13px;font-weight:750}
.esm-home .esm-card .esm-home-details-btn:hover{background:#3833ae}
.esm-home .esm-card .esm-details-link{display:none}
@media(max-width:760px){.esm-home .esm-top{padding:15px!important}.esm-home .esm-top nav{width:100%;justify-content:center}.esm-home .esm-hero-art{max-width:100%;overflow:hidden}.esm-home .esm-main{min-width:0}.esm-home .esm-discovery{min-width:0}}

/* v1.9.0: full public-page redesign, scoped to eBook pages */
.esm-pages,.esm-pages *{box-sizing:border-box}
.esm-pages{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#17294b;background:#f6f8fd;max-width:1280px;margin:16px auto;border-radius:20px;overflow:hidden;box-shadow:0 12px 45px #17284d0c}
.esm-pages a{text-decoration:none}
.esm-site-nav{background:#fff;padding:20px clamp(20px,4vw,54px);display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;border-bottom:1px solid #e9edf6}
.esm-site-brand{color:#18294c!important;font-size:21px;font-weight:850;letter-spacing:-.6px}
.esm-site-brand span{color:#5249c8}
.esm-site-links{display:flex;gap:clamp(10px,2vw,26px);flex-wrap:wrap}
.esm-site-links a{color:#52617c;font-size:13px;font-weight:750;padding:9px 3px}
.esm-site-links a[aria-current=page]{color:#4d44c6;border-bottom:2px solid #514bd4}
.esm-pages-hero{background:radial-gradient(circle at 83% 22%,#6768c3,transparent 36%),linear-gradient(120deg,#122a5b,#383b95);padding:clamp(36px,6vw,72px) 24px;text-align:center;color:#fff}
.esm-pages-kicker{display:inline-block;color:#5a51c7;font-size:11px;letter-spacing:1.6px;font-weight:850}
.esm-pages-hero .esm-pages-kicker{color:#ffdb85}
.esm-pages-hero h1{font-size:clamp(31px,4vw,48px);line-height:1.15;letter-spacing:-1.2px;color:#fff;margin:13px 0}
.esm-pages-hero p{color:#e4e9fa;font-size:15px;line-height:1.65;margin:0}
.esm-pages-main{padding:clamp(22px,4vw,54px)}
.esm-account-grid,.esm-contact-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:24px;align-items:stretch}
.esm-feature-panel,.esm-aside-panel,.esm-library-empty{border:1px solid #e5e9f3;border-radius:20px;padding:clamp(22px,4vw,42px);background:#fff;box-shadow:0 9px 28px #172d5510}
.esm-feature-panel h2,.esm-aside-panel h2,.esm-library-empty h2{color:#18294c;font-size:clamp(23px,2.5vw,31px);line-height:1.25;letter-spacing:-.6px;margin:10px 0 14px}
.esm-feature-panel p,.esm-aside-panel p,.esm-library-empty p{color:#687791;line-height:1.75}
.esm-aside-panel{background:linear-gradient(155deg,#eae9ff,#f0f5ff)}
.esm-aside-emoji{font-size:60px;margin:10px 0}
.esm-aside-point{padding:12px 0;font-size:13px;font-weight:750;color:#384575}
.esm-feature-panel form{margin-top:22px}
.esm-feature-panel form p{margin:0 0 17px}
.esm-feature-panel form label{font-size:13px;font-weight:750;color:#3d4d6a}
.esm-feature-panel input[type=text],.esm-feature-panel input[type=password]{display:block;width:100%;max-width:100%;border:1px solid #dce3ef;border-radius:12px;padding:14px;margin:7px 0;background:#fff;color:#14274a;font-size:15px}
.esm-feature-panel input[type=submit],.esm-pages-primary{display:inline-block!important;background:#514bd4!important;color:#fff!important;border:0!important;border-radius:12px;padding:14px 22px!important;font-size:14px!important;font-weight:800!important;cursor:pointer;text-align:center}
.esm-feature-panel input[type=submit]:hover,.esm-pages-primary:hover{background:#3b35a8!important}
.esm-pages-secondary{display:inline-block;background:#eef0fa;color:#3e4580!important;border-radius:12px;padding:14px 22px;font-weight:750}
.esm-pages-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}
.esm-account-register{margin-top:18px;font-size:13px;color:#687791}
.esm-account-register a{color:#4d44c6;font-weight:750}
.esm-contact-email{margin-top:22px;overflow-wrap:anywhere}
.esm-contact-email a{color:#4b44bc}
.esm-aside-panel details{padding:16px 0;border-bottom:1px solid #cfd7ec}
.esm-aside-panel summary{cursor:pointer;font-size:14px;font-weight:750;color:#26385e}
.esm-aside-panel details p{font-size:13px}
.esm-library-empty{text-align:center;max-width:690px;margin:0 auto;padding:55px 30px}
.esm-empty-icon{font-size:65px}
.esm-library-empty p{max-width:470px;margin:0 auto 26px}
.esm-library-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:24px}
.esm-library-heading h2{margin:8px 0;color:#18294c}
.esm-library-count{background:#e9e8fb;border-radius:20px;padding:8px 13px;font-size:12px;color:#4d44c6;font-weight:800}
.esm-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.esm-library-book{min-width:0;background:#fff;border:1px solid #e4e9f3;border-radius:18px;overflow:hidden;box-shadow:0 9px 24px #172d5510}
.esm-library-cover{height:230px;background:linear-gradient(140deg,#e8edfc,#f7f9ff);display:flex;align-items:center;justify-content:center;padding:16px}
.esm-library-cover img{max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 7px 9px #17284c25)}
.esm-library-placeholder{font-size:80px}
.esm-library-book-body{padding:22px}
.esm-library-book-body h3{font-size:18px;color:#18294c;line-height:1.4}
.esm-library-book-body p{font-size:13px;color:#71809b}
.esm-library-book-body .esm-pages-primary{display:block!important;margin-top:17px}
.esm-site-footer{background:#122346;color:#fff;text-align:center;padding:34px 20px}
.esm-site-footer strong{font-size:20px}
.esm-site-footer p,.esm-site-footer small{color:#aab8d4;font-size:12px}
.esm-site-footer div{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;margin:20px 0}
.esm-site-footer a{color:#e4eaf7;font-size:13px}
.esm-home .esm-top nav{flex-wrap:wrap}
@media(max-width:760px){.esm-pages{margin:0;border-radius:0}.esm-account-grid,.esm-contact-grid{grid-template-columns:1fr}.esm-site-nav{justify-content:center}.esm-site-links{justify-content:center}.esm-pages-main{padding:18px}.esm-site-brand{width:100%;text-align:center}.esm-feature-panel,.esm-aside-panel{padding:24px}.esm-home .esm-top nav{display:flex!important;justify-content:center;gap:12px}.esm-home .esm-top nav a{font-size:12px}.esm-home .esm-top{justify-content:center}.esm-home .esm-brand{width:100%;justify-content:center}}
