/* User preference: navy actions and smooth 3D book covers across Escolia. */
body{--es-premium-navy:#101c3b;--es-premium-hover:#223b66;--es-premium-line:#dce3ee}
body:not(.escolia-reference){--es-app-action:#101c3b;--es-app-action-hover:#223b66;--mb2-pb-accent1:#101c3b}
body.escolia-reference{--brand-action:#101c3b;--brand-action-dark:#223b66;--brand-primary:#101c3b;--brand-primary-dark:#223b66}
header.escolia-site-header{--escolia-action:#101c3b}
body :is(.hero-button,.login-link,.collections-all,.resources-catalogue,.finish-button,.support-action,.btn-primary,.mb2-pb-btn.typeprimary,.es-dashboard-actions a:not(.es-dashboard-secondary)){
 background:linear-gradient(135deg,#101c3b,#21395f)!important;border-color:#101c3b!important;color:#fff!important;border-radius:12px;box-shadow:0 4px 12px rgb(16 28 59 / 12%);transition:background .25s ease,box-shadow .35s ease,transform .35s cubic-bezier(.2,.7,.2,1),border-color .25s ease;
}
body :is(.hero-button,.login-link,.collections-all,.resources-catalogue,.finish-button,.support-action,.btn-primary,.mb2-pb-btn.typeprimary,.es-dashboard-actions a:not(.es-dashboard-secondary)):hover{background:linear-gradient(135deg,#1b3156,#2a4778)!important;box-shadow:0 8px 20px rgb(16 28 59 / 18%)}
body:not(.escolia-reference).custom-login #login button,body.pagelayout-mydashboard .block_myoverview .dashboard-card .myc-readmore,body:not(.escolia-reference).path-course-view a[href*="/mod/scorm/view.php"][style*="background-color"]{background:linear-gradient(135deg,#101c3b,#21395f)!important;border-color:#101c3b!important;color:#fff!important;box-shadow:0 4px 12px rgb(16 28 59 / 12%)}
header.escolia-site-header :is(.tool-login,.tool-user){background:#101c3b!important}
header.escolia-site-header :is(.tool-login,.tool-user):hover{background:#223b66!important}
body.escolia-reference .reference-header .menu-toggle{background:#101c3b!important;border-color:#101c3b!important;color:#fff}
body.escolia-reference .hero-button [data-hero]{opacity:1!important;visibility:visible!important;transform:none!important}
body.pagelayout-mydashboard .es-dashboard-eyebrow{color:#52607a!important}
body.pagelayout-mydashboard .es-dashboard-shortcut:hover{border-color:#bdc9db}
body.pagelayout-mydashboard .es-dashboard-actions a.es-dashboard-secondary{background:#fff;border-color:#ccd6e4;color:#101c3b}
body :is(.hero-button,.login-link,.collections-all,.resources-catalogue,.finish-button,.btn-primary,.mb2-pb-btn.typeprimary,.es-dashboard-actions a):focus-visible{outline:3px solid #1466cf;outline-offset:4px}
/* Actual book images keep their original assets and links; only the cover plane moves. */
.theme-course-item .image-wrap,.collection-art,.resource-preview-media{perspective:1100px}
.theme-course-item .image-wrap{overflow:visible!important}
.theme-course-item .image-wrap img,.collection-cover-main,.resource-preview-media img[src*="book-preview"]{transform-origin:35% 50%;transition:transform .7s cubic-bezier(.16,1,.3,1),filter .7s cubic-bezier(.16,1,.3,1),box-shadow .7s cubic-bezier(.16,1,.3,1);backface-visibility:hidden}
.theme-course-item .image-wrap img{border-inline-end:6px solid #f1ede4;border-radius:4px 2px 2px 4px;box-shadow:7px 8px 0 -3px #e4dfd5,12px 18px 24px rgb(16 28 59 / 14%);transform:perspective(1100px) rotateY(-5deg)}
body.escolia-reference .collection-cover-main{transform:perspective(1100px) rotateY(-5deg)!important;border-inline-end:5px solid #eee9df;filter:drop-shadow(8px 12px 10px rgb(16 28 59 / 14%))}
/* Background-image thumbnails become portrait book surfaces rather than rotating the whole card. */
body .dashboard-card>a:has(.dashboard-card-img){display:block;perspective:1100px;background:#f3f5fa;border-radius:17px 17px 0 0;padding-block:18px}
body .dashboard-card .dashboard-card-img{width:132px!important;height:190px!important;min-height:190px!important;margin:0 auto!important;background-color:#fff!important;background-size:contain!important;background-repeat:no-repeat;border-radius:4px 2px 2px 4px!important;border-inline-end:6px solid #f1ede4;box-shadow:7px 8px 0 -3px #e4dfd5,12px 16px 22px rgb(16 28 59 / 14%);transform-origin:35% 50%;transform:perspective(1100px) rotateY(-5deg);transition:transform .7s cubic-bezier(.16,1,.3,1),box-shadow .7s cubic-bezier(.16,1,.3,1);backface-visibility:hidden}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .theme-course-item:is(:hover,:focus-within) .image-wrap img,body .dashboard-card:is(:hover,:focus-within) .dashboard-card-img{transform:perspective(1100px) translateY(-8px) rotateY(-15deg) rotateX(3deg)!important;box-shadow:9px 10px 0 -3px #e4dfd5,18px 25px 30px rgb(16 28 59 / 19%)}
 .collection-link:is(:hover,:focus-visible) .collection-cover-main{transform:perspective(1100px) translateY(-10px) rotateY(-14deg) rotateX(3deg)!important;filter:drop-shadow(12px 18px 12px rgb(16 28 59 / 20%))}
 .resource-preview-media:hover img[src*="book-preview"]{transform:perspective(1100px) translateY(-5px) rotateY(-9deg) rotateX(2deg)}
 body :is(.hero-button,.login-link,.collections-all,.resources-catalogue,.finish-button,.btn-primary,.mb2-pb-btn.typeprimary,.es-dashboard-actions a):hover{transform:translateY(-2px)}
}
@media(prefers-reduced-motion:reduce){
 .theme-course-item .image-wrap img,.collection-cover-main,.resource-preview-media img[src*="book-preview"],body .dashboard-card .dashboard-card-img{transition:none!important;transform:none!important}
 body.escolia-reference .collection-cover-main{transform:none!important}
 body :is(.hero-button,.login-link,.collections-all,.resources-catalogue,.finish-button,.btn-primary,.mb2-pb-btn.typeprimary,.es-dashboard-actions a){transition:none!important;transform:none!important}
}
@media print{.theme-course-item .image-wrap img,body .dashboard-card .dashboard-card-img{transform:none!important;box-shadow:none}}

/* Journey cards are content links, separate from filled primary actions. */
body.escolia-reference .journey-scroll .journey-link{
 --step-surface:#fff8e9;--step-border:#eadcbb;
 background:var(--step-surface);border:1px solid var(--step-border);color:#101c3b;
 border-radius:18px;box-shadow:0 8px 24px rgb(16 28 59 / 8%);
 transition:border-color .25s ease,box-shadow .3s ease;
}
body.escolia-reference .journey-scroll .journey-step:nth-child(2) .journey-link{--step-surface:#edf4ff;--step-border:#d4e1f3}
body.escolia-reference .journey-scroll .journey-step:nth-child(3) .journey-link{--step-surface:#edf7f3;--step-border:#d3e7dd}
body.escolia-reference .journey-scroll .journey-step h3{color:#101c3b}
body.escolia-reference .journey-scroll .journey-step p{color:#46556e}
body.escolia-reference .journey-scroll .journey-count{background:#101c3b;color:#fff;box-shadow:0 3px 8px rgb(16 28 59 / 12%)}
body.escolia-reference .journey-scroll .journey-top .finish-symbol{color:#8a6509}
body.escolia-reference .journey-scroll .journey-link:hover{background:var(--step-surface);border-color:#b99640;box-shadow:0 12px 28px rgb(16 28 59 / 13%)}
body.escolia-reference .journey-scroll .journey-link:focus-visible{outline:3px solid #1466cf;outline-offset:4px}
@media(prefers-reduced-motion:reduce){body.escolia-reference .journey-scroll .journey-link{transition:none}}
