/* Q8Physics — approved wordmark with the graduation cap above 8. */
:root{--q8-green:#034832;--q8-gold:#d5b461;--q8-ivory:#fff9eb;--jp-green:var(--q8-green);--jp-gold:var(--q8-gold);--menu-green:var(--q8-green)}
.q8-brand{display:block!important;width:min(46vw,220px);max-width:100%;flex:0 1 auto;direction:ltr;text-decoration:none!important;line-height:1;min-width:0;padding:0!important;background:transparent!important;border:0!important;border-radius:8px;overflow:hidden;pointer-events:auto}
.q8-logo{display:block;width:100%!important;height:auto!important;max-width:100%;aspect-ratio:10/3;overflow:hidden;flex:none}
.q8-brand:focus-visible{outline:3px solid var(--q8-gold);outline-offset:4px}
header:has(>.q8-brand),.q8-brand-bar{background:var(--q8-green)!important;color:var(--q8-ivory)!important;border:0!important;border-radius:20px;padding:12px 18px;box-sizing:border-box;gap:14px}
header:has(>.q8-brand)>a:not(.q8-brand){color:var(--q8-ivory)!important}
.q8-brand-bar{display:flex;align-items:center;justify-content:center;margin-bottom:20px;min-height:64px}
#jp-admin-demo>header,#jp-editor>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 18px;min-height:66px}
#jp-editor>header>span,#jp-admin-demo>header>span{color:var(--q8-ivory)!important;font-family:Cairo,system-ui,sans-serif}
#jp-teacher .jp-window .jp-top{background:var(--q8-green)!important;margin:0!important;padding:0 16px!important;height:clamp(64px,17cqw,88px)!important;min-height:64px!important;border:0!important;border-radius:0 0 22px 22px!important;flex-shrink:0}
#jp-teacher .jp-window .jp-top::after{display:none!important}
#jp-teacher .jp-window .jp-top>.jp-home-logo{inset:auto!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:min(54%,280px)!important;padding:0!important;pointer-events:auto;border-radius:8px}
#jp-teacher .jp-window .jp-top>.jp-home-logo .q8-brand{width:100%!important;gap:0!important}
#jp-teacher .jp-window .jp-account-header{background:var(--q8-green)!important;border:0!important;border-radius:0 0 22px 22px!important;min-height:66px!important;height:auto!important;padding:8px 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
#jp-teacher .jp-window .jp-account-header .q8-brand{width:min(58%,220px)!important;position:static!important}
#jp-teacher .jp-window .jp-account-header .q8-brand::after{display:none!important}
#jp-teacher .jp-window .jp-profile{margin-inline-start:auto!important}
#jp-teacher .jp-window .jp-account-header .jp-profile-close{flex:none}
body:not(:has(#jp-teacher)) :is(.hero h1,h1,h2){color:var(--q8-green)}
@media(max-width:480px){header:has(>.q8-brand){padding:10px 12px;gap:8px}.q8-brand{width:min(46vw,190px)}.q8-brand-bar .q8-brand{width:min(58vw,210px)}#jp-admin-demo>header,#jp-editor>header{padding:10px 12px}#jp-admin-demo>header>span,#jp-editor>header>span{font-size:13px}#jp-teacher .jp-window .jp-top>.jp-home-logo{left:50%!important;width:54%!important}}
#jp-teacher .jp-window [data-screen="grade"]>[data-action="home"]{top:calc(clamp(64px,17cqw,88px) + 6px)!important;margin-top:0!important}
#jp-teacher .jp-window .jp-account-header .jp-profile-close{position:static!important;transform:none!important;inset:auto!important}
/* Lighter warm ivory surfaces, retaining the emerald and gold accents. */
:root{--jp-ivory:#fcf8f1;--jp-paper:#fffefb}
html,body{background:#fcf8f1!important}
#jp-teacher .jp-window,#jp-teacher .jp-window:has(.jp-panel:not([hidden])){background-color:#fffaf3!important;background-image:linear-gradient(#fffdf8cc,#fffdf8cc),url('/assets/scene-paper.svg')!important}
#jp-teacher .jp-window .jp-profile-menu,#jp-teacher .jp-window .jp-profile-content{background-color:#fffbf5!important}
#jp-teacher .jp-window [data-panel="teacher"]{background-color:#fffdf7dd}
#jp-teacher .jp-window .jp-teacher-threads{background:#f5f1e8ee}
/* Lesson name in the student quiz header. */
#jp-teacher #jp-current-quiz{color:#d5b461!important;-webkit-text-fill-color:#d5b461!important}

#jp-teacher .jp-window .jp-subscribe-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 20px;text-decoration:none;background:var(--q8-green);color:#fff9eb!important;-webkit-text-fill-color:#fff9eb!important;border-radius:12px;margin-block:12px}

/* Full-screen owner workspace with right navigation. */
body:has(.q8-admin-sidebar){padding-right:248px;min-height:100dvh}
.q8-admin-sidebar{position:fixed;right:0;top:0;bottom:0;width:248px;overflow-y:auto;background:#07513b;color:#fff9e9;display:flex;flex-direction:column;gap:8px;padding:24px 14px;z-index:50;border-left:1px solid #c6a44e;direction:rtl}
.q8-admin-sidebar a{display:block;color:#fff9e9;text-decoration:none;padding:13px 14px;border-radius:12px;line-height:1.6;overflow-wrap:anywhere}
.q8-admin-sidebar a:hover,.q8-admin-sidebar a[aria-current=page]{background:#ffffff20;color:#f1d184}
.q8-admin-sidebar .q8-panel-title{font-size:23px;font-weight:800;color:#e5c36e;margin-bottom:12px}
body:has(.q8-admin-sidebar) .shell,body:has(.q8-admin-sidebar) #jp-admin-demo{max-width:none!important;width:100%!important;min-height:100dvh;margin:0!important;padding:24px!important;box-sizing:border-box}
body:has(.q8-admin-sidebar) .jp-site-nav{display:none}
@media(max-width:700px){body:has(.q8-admin-sidebar){padding-right:126px}.q8-admin-sidebar{width:126px;padding:12px 6px;gap:5px}.q8-admin-sidebar a{font-size:12px;padding:10px 7px}.q8-admin-sidebar .q8-panel-title{font-size:16px}body:has(.q8-admin-sidebar) .shell,body:has(.q8-admin-sidebar) #jp-admin-demo{padding:12px!important;min-width:0}body:has(.q8-admin-sidebar) .grid{grid-template-columns:minmax(0,1fr)}}

/* One navigation column across all owner pages. */
body:has(>.q8-admin-sidebar){box-sizing:border-box!important;width:100%!important;margin:0!important;padding-right:248px!important}
body>.q8-admin-sidebar{box-sizing:border-box!important;background:#07513b!important}
body>.q8-admin-sidebar a{color:#fff9e9!important;-webkit-text-fill-color:#fff9e9!important}
body>.q8-admin-sidebar .q8-panel-title,body>.q8-admin-sidebar a[aria-current=page]{color:#e5c36e!important;-webkit-text-fill-color:#e5c36e!important}
body:has(.q8-admin-sidebar) #jp-admin-demo .jp-shell{display:block!important;grid-template-columns:minmax(0,1fr)!important}
body:has(.q8-admin-sidebar) #jp-admin-demo,body:has(.q8-admin-sidebar) #jp-editor{max-width:none!important;width:100%!important;margin:0!important;min-height:100dvh;padding:24px!important;box-sizing:border-box;overflow:visible!important;border:0!important;border-radius:0!important;background:#fcf8f1!important}
body:has(.q8-admin-sidebar) #jp-admin-demo main,body:has(.q8-admin-sidebar) #jp-editor main{min-width:0;width:100%;box-sizing:border-box}
@media(max-width:700px){body:has(>.q8-admin-sidebar){padding-right:126px!important}body:has(.q8-admin-sidebar) #jp-admin-demo,body:has(.q8-admin-sidebar) #jp-editor{padding:12px!important}}
body:has(>.q8-admin-sidebar)>main{max-width:none!important;width:100%!important;min-height:100dvh;margin:0!important;padding:24px!important;box-sizing:border-box}
@media(max-width:700px){body:has(>.q8-admin-sidebar)>main{padding:12px!important}}
/* Upright text throughout the administration workspace. */
body:has(.q8-admin-sidebar),body:has(.q8-admin-sidebar) *,body:has(.q8-admin-sidebar) *::before,body:has(.q8-admin-sidebar) *::after{font-style:normal!important;font-synthesis:none!important}

#jp-teacher .jp-window .jp-bag-list ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px;list-style:none;padding:0}
#jp-teacher .jp-window .jp-pdf-card{display:flex;flex-direction:column;align-items:center;gap:14px;background:#07513b!important;border:1px solid #d5b461;border-radius:16px;padding:22px 14px;text-decoration:none!important;text-align:center}
#jp-teacher .jp-window .jp-pdf-book{display:grid;place-items:center;width:92px;height:118px;border:3px solid #e6c878;border-left:10px double #e6c878;border-radius:5px 12px 12px 5px;box-shadow:4px 5px 0 #ffffff30;font:bold 25px Arial;color:#e6c878!important;-webkit-text-fill-color:#e6c878!important}
#jp-teacher .jp-window .jp-pdf-title{color:#e6c878!important;-webkit-text-fill-color:#e6c878!important;font-weight:700;overflow-wrap:anywhere}
/* Two portrait PDF books per row. CSS centimetres preserve the requested ratio. */
#jp-teacher .jp-window .jp-bag-list ul{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;width:100%!important;box-sizing:border-box}
#jp-teacher .jp-window .jp-bag-list ul>li{min-width:0!important;width:auto!important;list-style:none;margin:0!important;padding:0!important}
#jp-teacher .jp-window .jp-pdf-card{height:100%;box-sizing:border-box;padding:18px 10px!important;gap:16px!important;min-width:0;justify-content:flex-start}
#jp-teacher .jp-window .jp-pdf-book{position:relative;isolation:isolate;box-sizing:border-box;flex:none;width:2cm!important;height:3cm!important;min-width:2cm;max-width:2cm;min-height:3cm;border:2px solid #e6c878!important;border-left:8px ridge #c49e48!important;border-radius:3px 8px 8px 3px!important;background:linear-gradient(100deg,#123b2d 0%,#126047 25%,#07513b 100%)!important;transform:perspective(500px) rotateY(-12deg);box-shadow:5px 4px 0 #e9e0c8,7px 6px 0 #b89039,11px 10px 12px #001e2450!important;font:bold 22px Arial!important;overflow:visible}
#jp-teacher .jp-window .jp-pdf-book::before{content:'';position:absolute;inset:6px;border:1px solid #e6c87855;border-radius:2px 5px 5px 2px;pointer-events:none}
#jp-teacher .jp-window .jp-pdf-title{display:block!important;width:100%;font-size:16px!important;line-height:1.7!important;white-space:normal!important;overflow-wrap:anywhere}
