/* Learning-page header only. Spacer prevents content jumping when pinned. */
#header-container.hjp-learning-header{position:fixed!important;top:var(--hjp-admin-offset,0px)!important;left:0!important;right:0!important;width:100%!important;z-index:999999!important;background:#fff}
.hjp-header-spacer{width:100%;pointer-events:none;flex-shrink:0}
.hjp5{overflow-anchor:none;--j5-line:#b7cde1}
.hjp5 button,.hjp5 .j5-secondary,.hjp5 .j5-nav-tab,.hjp5 .j5-level{border:1.5px solid #759fc3;background:linear-gradient(#fff,#e9f2fa);color:#173e69;font-weight:750;box-shadow:0 3px 0 #b8cde0;transition:box-shadow .12s,background .12s}
.hjp5 button:hover,.hjp5 .j5-secondary:hover,.hjp5 .j5-nav-tab:hover,.hjp5 .j5-level:hover{background:#dceeff;border-color:#1765c0;filter:none;box-shadow:0 3px 0 #7ba7cd}
.hjp5 button:active,.hjp5 .j5-secondary:active,.hjp5 .j5-nav-tab:active,.hjp5 .j5-level:active{box-shadow:0 1px 0 #7ba7cd}
.hjp5 .j5-primary,.hjp5 .j5-nav-tab.is-active,.hjp5 .j5-level.is-active{background:#1765c0;color:#fff;border-color:#0a4a96;box-shadow:0 3px 0 #093a75}
.hjp5 .j5-primary:hover,.hjp5 .j5-nav-tab.is-active:hover,.hjp5 .j5-level.is-active:hover{background:#0c53ab;color:#fff}
.hjp5 .j5-nav-tab{font-size:12px;padding:10px 12px;min-height:42px}
.hjp5 .j5-local-nav{flex-wrap:wrap;gap:12px}
.hjp5 .j5-local-nav nav{flex-wrap:wrap}
.hjp5 .j5-site-home{border-color:#1d617b;color:#15465b;background:#e4f6fa}
.hjp5 small,.hjp5 .j5-local-nav [data-sync]{color:#405e79}
.hjp5 .j5-eyebrow{color:#185b96;font-size:12px;font-weight:850;letter-spacing:1px}
.hjp5 .j5-level{min-width:54px;font-size:14px}
.hjp5 .j5-context-select>span{color:#1c4a72;font-size:12px;font-weight:750}
.hjp5 select,.hjp5 input[type=search]{border:1.5px solid #8caccc;color:#183d62;background:#fff}
.hjp5 .j5-step-nav{background:#e9f2fa;border:1px solid #a4c2db;padding:12px;border-radius:12px;gap:12px}
.hjp5 .j5-step-nav>.j5-secondary{font-size:12px;min-height:38px}
.hjp5 .j5-step-nav>span{color:#345775;font-size:12px}
.hjp5 .j5-quick-card,.hjp5 .j5-scene-option{border:1.5px solid #8fb2d1;background:#f0f6fc;box-shadow:0 3px 0 #c5d9e9}
.hjp5 .j5-quick-card:hover,.hjp5 .j5-scene-option:hover{border-color:#1765c0;background:#e2f0fd}
.hjp5 .j5-scene-option.is-active{background:#1765c0;color:#fff;border-color:#0a4a96;box-shadow:0 3px 0 #093a75}
.hjp5 .j5-scene-option.is-active small,.hjp5 .j5-scene-option.is-active>span:last-child{color:#fff}
.hjp5 .j5-scene-index{background:#d7e8f7;color:#123b65;font-size:12px}
.hjp5 .j5-scene-option.is-active .j5-scene-index{background:#fff;color:#134b8e}
.hjp5 .j5-timeline-track{gap:14px;padding:10px 3px 18px}
.hjp5 .j5-time-stop{flex:1 0 170px;padding:12px;border:1px solid #8dadcd;background:#edf5ff;border-radius:12px;gap:9px;box-shadow:0 3px 0 #bed2e5}
.hjp5 .j5-time-stop:nth-child(3n+2){background:#e9f9f7;border-color:#69aaa3}
.hjp5 .j5-time-stop:nth-child(3n){background:#fff4df;border-color:#cbab70}
.hjp5 .j5-time-stop::before{display:none}
.hjp5 .j5-time{display:inline-flex;align-self:flex-start;background:#174e8d;color:white;border-radius:6px;padding:4px 9px;font-size:13px}
.hjp5 .j5-time-photo{position:relative;display:block;width:100%}
.hjp5 .j5-time-photo img{height:100px;border-radius:8px;width:100%;object-fit:cover}
.hjp5 .j5-time-dot{position:absolute;right:6px;bottom:6px;width:28px;height:28px;background:#1765c0;color:white;border:2px solid #fff}
.hjp5 .j5-time-stop>strong{color:#153c67;font-size:14px;max-width:none}
.hjp5 .j5-time-stop>small{font-size:11px;line-height:1.5}
.hjp5 .j5-chat{display:grid;gap:14px}
.hjp5 .j5-turn{margin:0;border:1px solid #9cb9d6;border-left:4px solid #1765c0;background:#eef4fc;padding:16px 14px;border-radius:12px;gap:14px}
.hjp5 .j5-turn.role-b{background:#e9f8f5;border-color:#7cb7ad;border-left-color:#078170}
.hjp5 .j5-turn.is-current{box-shadow:0 0 0 2px #1765c040}
.hjp5 .j5-speaker{min-width:50px}
.hjp5 .j5-speaker>span{background:#174e8d;color:#fff;font-weight:800}
.hjp5 .role-b .j5-speaker>span{background:#097966}
.hjp5 .j5-speaker strong{color:#173c62;font-size:11px;font-weight:750}
.hjp5 .j5-speaker button{background:#1765c0;color:#fff;border-color:#0e4d98;min-height:36px;min-width:38px;box-shadow:0 2px 0 #073b7c;font-size:14px;margin-top:7px}
.hjp5 .j5-jp{font-size:19px;line-height:1.9;color:#102f52;font-weight:500;margin:0}
.hjp5 rt{color:#365f88;font-size:.55em}
.hjp5 .j5-turn-text>.j5-meaning{color:#284862;font-size:14px;line-height:1.65;border-top:1px solid #b9cee1;padding-top:7px;margin-top:7px}
.hjp5 .j5-turn-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.hjp5 .j5-turn-tools button{font-size:12px;padding:7px 10px;min-height:35px;border-radius:7px;color:#174a7b}
.hjp5 button[aria-pressed=true]{background:#174e8d;color:#fff;border-color:#0b3766;box-shadow:0 2px 0 #092b51}
.hjp5 .j5-player{background:#e7f1fb;border:1.5px solid #8daccc;padding:12px;gap:9px}
.hjp5 .j5-player [data-player-status]{color:#1b4873;font-size:12px;font-weight:650}
.hjp5 .j5-understand>.j5-section-head{background:linear-gradient(110deg,#133d6a,#1765c0);color:#fff;padding:18px 20px;border:0;border-radius:12px}
.hjp5 .j5-understand>.j5-section-head h2,.hjp5 .j5-understand>.j5-section-head .j5-eyebrow{color:#fff}
.hjp5 .j5-understand>.j5-section-head .j5-eyebrow{display:inline-block;background:#ffffff24;border:1px solid #ffffff55;padding:5px 9px;border-radius:6px;margin-bottom:5px}
.hjp5 .j5-insight{border-color:#94b6d3;border-left-color:#1765c0;background:#edf5ff}
.hjp5 .j5-insight:nth-child(3n+2){border-color:#7db7ae;border-left-color:#078170;background:#e9f8f5}
.hjp5 .j5-insight:nth-child(3n+3){border-color:#d1b374;border-left-color:#b8861b;background:#fff5e2}
.hjp5 .j5-insight-heading>span{background:#174e8d;color:#fff;padding:5px 8px;font-size:12px}
.hjp5 .j5-insight-heading h3{font-size:15px;color:#123e6a}
.hjp5 .j5-insight p{font-size:13px;color:#274a67}
.hjp5 .j5-insight p.j5-insight-jp{border:1px solid #aac4db;font-size:17px;padding:12px;color:#11355b}
.hjp5 .j5-context-note{border-color:#8daccc;background:#e7f1fc}
.hjp5 .j5-context-note p{color:#274b6c;font-size:13px}
.hjp5 .j5-phrases-heading{background:#174e8d;color:#fff;padding:10px 14px;border-radius:8px;font-size:16px}
.hjp5 .j5-phrase{border-color:#8caccc;border-left-color:#1765c0;background:#edf5ff}
.hjp5 .j5-phrase span{color:#284862;font-size:13px}
.hjp5 .j5-resolution{background:#e9f6ed;border:1.5px solid #83b394}
.hjp5 .j5-resolution .j5-eyebrow,.hjp5 .j5-resolution h3{color:#145b3b}
.hjp5 .j5-resolution li>span{background:#1a7851;color:#fff}
.hjp5 .j5-resolution li>p{color:#234b37;font-size:13px}
@media(max-width:680px){.hjp5 .j5-nav-tab{flex:1 1 calc(50% - 8px);font-size:12px;padding:9px 7px}.hjp5 .j5-levels>div{flex-wrap:wrap}.hjp5 .j5-level{padding:8px 11px}.hjp5 .j5-jp{font-size:18px}.hjp5 .j5-turn{padding:13px 10px;gap:10px}.hjp5 .j5-turn-tools{gap:6px}.hjp5 .j5-turn-tools button{font-size:11px;padding:6px 8px;min-height:34px}.hjp5 .j5-time-stop{flex-basis:170px}.hjp5 .j5-understand>.j5-section-head{padding:16px}.hjp5 .j5-understand h2{font-size:19px}.hjp5 .j5-player{flex-wrap:wrap}.hjp5 .j5-player [data-player-status]{flex:1 1 110px}}
@media(prefers-reduced-motion:reduce){.hjp5 button,.hjp5 a{transition:none}}
.hjp5 .j5-turn-tools button{border:1.5px solid #759fc3;background:linear-gradient(#fff,#e0edf8);font-weight:750;box-shadow:0 2px 0 #aac5db}
.hjp5 .j5-turn-tools button:hover{border-color:#1765c0;background:#d6eaff}
.hjp5 .j5-turn-tools button[aria-pressed=true]{background:#174e8d;color:#fff;border-color:#0b3766;box-shadow:0 2px 0 #092b51}
.hjp5 .j5-speaker button{border:1px solid #0e4d98;font-weight:750}
.hjp5 .j5-find-form button{flex-shrink:0;white-space:nowrap;min-width:54px}
.hjp5 .j5-player button{border:1.5px solid #759fc3;background:linear-gradient(#fff,#e0edf8);color:#174a7b;font-weight:750;min-width:36px;min-height:36px;padding:6px 9px;box-shadow:0 2px 0 #aac5db}
.hjp5 .j5-player button:hover{background:#d6eaff;border-color:#1765c0}
.hjp5 .j5-player button.is-active{background:#174e8d;color:white;border-color:#0b3766}
/* v0.8: account level, onboarding, footer navigation and draggable timeline. */
.hjp5 .j5-profile-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0 12px;flex-wrap:wrap}
.hjp5 .j5-personal-level{margin-left:auto;background:#e7f4fb;border-color:#5593bf;color:#154b78;font-size:12px;min-height:40px}
.hjp5 .j5-personal-level b{font-size:14px;background:#174e8d;color:#fff;border-radius:5px;padding:2px 7px}
.hjp5 .j5-local-nav{padding-top:0;gap:10px}
.hjp5 .j5-local-nav nav{margin-left:0}
.hjp5 .j5-page-footer{margin-top:32px;padding:22px 0 8px;border-top:1px solid #b7cde1;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.hjp5 .j5-page-footer nav{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.hjp5 .j5-page-footer a,.hjp5 .j5-page-footer button{font-size:12px;min-height:40px}
.hjp5 .j5-page-footer .j5-return-home{background:#fff;border-color:#8aaccc;color:#173e69}
.hjp5 .j5-page-footer small{font-size:12px}
.hjp5 .j5-timeline-controls{display:flex;gap:8px;flex-shrink:0}
.hjp5 .j5-timeline-controls button{width:38px;height:36px;padding:0;font-size:18px}
.hjp5 .j5-timeline-track{cursor:grab;touch-action:pan-x pan-y;overscroll-behavior-x:contain}
.hjp5 .j5-timeline-track img{-webkit-user-drag:none;user-select:none}
.hjp5 .j5-timeline-track.is-dragging,.hjp5 .j5-timeline-track.is-dragging *{cursor:grabbing;user-select:none}
.hjp5 .j5-timeline-track.is-dragging{scroll-snap-type:none;scroll-behavior:auto}
.hjp5 .j5-speaker button[aria-pressed=true]{background:#093e7a;border-color:#082a50;color:#fff;box-shadow:0 0 0 2px #1765c02b}
.hjp5 .j5-level-dialog{color:#173e69;font-family:var(--hd-font,inherit);background:#fff;border:1px solid #8aaece;border-radius:18px;padding:24px;width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;box-shadow:0 18px 80px #102e5950;box-sizing:border-box}
.hjp5 .j5-level-dialog::backdrop{background:#102e599c}
.hjp5 .j5-level-dialog h2{font-size:23px;margin:7px 0 0;line-height:1.35}
.hjp5 .j5-level-dialog p{font-size:13px;line-height:1.7;color:#365975;margin:14px 0}
.hjp5 .j5-dialog-title{display:flex;align-items:start;gap:12px}
.hjp5 .j5-dialog-title>div{flex:1}
.hjp5 .j5-dialog-title>button{width:36px;height:36px;padding:0;box-shadow:none;font-size:22px}
.hjp5 .j5-level-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.hjp5 .j5-level-options label{display:flex;align-items:start;gap:10px;padding:14px 12px;border:1.5px solid #a6c0d6;border-radius:10px;background:#f4f8fc;cursor:pointer;min-height:94px}
.hjp5 .j5-level-options label:has(input:checked){border-color:#1765c0;background:#e1effd;box-shadow:0 0 0 2px #1765c029}
.hjp5 .j5-level-options input{margin:5px 0 0;accent-color:#1765c0;flex:0 0 16px;width:16px;height:16px}
.hjp5 .j5-level-options strong{font-size:19px;color:#164d87;display:block}
.hjp5 .j5-level-options small{font-size:12px;line-height:1.6;display:block;margin-top:3px;color:#365975}
.hjp5 .j5-level-dialog form>button[type=submit]{width:100%;min-height:44px;font-size:14px;margin-top:8px}
.hjp5 .j5-level-dialog button:disabled{opacity:.55;cursor:default;box-shadow:none}
@media(max-width:680px){.hjp5 .j5-profile-row{gap:8px}.hjp5 .j5-personal-level{font-size:10px;padding:7px 8px;gap:4px}.hjp5 .j5-personal-level .j5-icon{display:none}.hjp5 .j5-personal-level b{font-size:12px}.hjp5 .j5-page-footer nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.hjp5 .j5-page-footer nav a,.hjp5 .j5-page-footer nav button{font-size:11px;padding:8px}.hjp5 .j5-level-dialog{padding:18px}.hjp5 .j5-level-dialog h2{font-size:21px}.hjp5 .j5-level-options{gap:8px}.hjp5 .j5-level-options label{padding:11px 9px;gap:7px}.hjp5 .j5-level-options small{font-size:11px}.hjp5 .j5-day-timeline .j5-section-head{gap:10px}.hjp5 .j5-timeline-controls{margin-left:auto}}
.hjp5 .j5-timeline-controls button:disabled{opacity:.38;cursor:default;box-shadow:none;background:#edf2f7;border-color:#b7cde1}

/* v0.9: match the shared Knowledge/Certificate frame on learning pages only. */
body.hjp9-study-page #content{box-sizing:border-box!important;width:calc(100% - 48px)!important;max-width:var(--hcm-frame-width,1200px)!important;margin:24px auto 0!important;padding:0!important}
body.hjp9-study-page #content-in{width:100%!important;max-width:none!important;margin:0!important;gap:0!important}
body.hjp9-study-page #main{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;flex:1 1 100%!important;margin:0!important;padding:24px!important;background:#fff!important;border-radius:14px!important}
body.hjp9-study-page #sidebar{display:none!important}
body.hjp9-study-page :is(#article,.article,.entry-content){width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.hjp9-study-page :is(.article-header.entry-header,#breadcrumb,.breadcrumb){display:none!important}
body.hjp9-study-page .hjp5{max-width:none;width:100%;margin:0;padding:0}
.hjp5 .j9-breadcrumb{display:flex;align-items:center;gap:10px;margin:0 0 18px;color:#8393a4;font-size:13px;line-height:1.5}
.hjp5 .j9-breadcrumb a{display:inline-flex;align-items:center;gap:7px;color:#53677d;text-decoration:none}
.hjp5 .j9-breadcrumb a:hover{color:#1765c0;text-decoration:underline}
.hjp5 .j9-breadcrumb .j5-icon{width:15px;height:15px}
.hjp5 .j9-current{padding:5px 11px;border-radius:8px;background:#e7f8f0;color:#247b57;font-weight:750}
.hjp5 .j5-profile-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;padding:0 0 18px;gap:12px}
.hjp5 .j9-brand{position:relative;text-align:center;font-size:clamp(17px,1.6vw,22px);font-weight:850;letter-spacing:1px;line-height:1.5;color:#123e6a;white-space:nowrap;padding:7px 0 12px;animation:j9-brand-enter .5s ease-out both}
.hjp5 .j9-brand:after{content:"";position:absolute;bottom:4px;left:14%;right:14%;height:4px;border-radius:6px;background:linear-gradient(90deg,#1765c0,#28bdba,#97d971);background-size:180% 100%;animation:j9-brand-glow 6s ease-in-out infinite}
.hjp5 .j5-personal-level{justify-self:end;margin-left:0;white-space:normal}
@keyframes j9-brand-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes j9-brand-glow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@media(max-width:900px){.hjp5 .j5-profile-row{grid-template-columns:1fr}.hjp5 .j9-profile-balance{display:none}.hjp5 .j9-brand{justify-self:center}.hjp5 .j5-personal-level{justify-self:end}.hjp5 .j9-brand:after{left:14%;right:14%}}
@media(max-width:768px){body.hjp9-study-page #content{width:calc(100% - 24px)!important;margin-top:12px!important}body.hjp9-study-page #main{padding:16px!important}.hjp5 .j9-breadcrumb{margin-bottom:10px}.hjp5 .j5-profile-row{gap:6px;padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){.hjp5 .j9-brand,.hjp5 .j9-brand:after{animation:none}}

/* Large topic collections stay compact and searchable. */
.hjp5 .j5-scene-menu [data-dialogue-filter]{display:block;width:100%;margin-top:10px;padding:10px;font-size:12px;border:1.5px solid #8caccc;border-radius:8px;color:#173e69;background:#fff}
.hjp5 .j10-scene-list{grid-column:1/-1;display:grid;gap:8px;max-height:540px;overflow:auto;overscroll-behavior:contain;padding:3px 5px 5px 0;scrollbar-width:thin}
@media(max-width:900px){.hjp5 .j10-scene-list{max-height:320px;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.10.1: shared typography, stable cards and concise navigation. */
.hjp5{font-family:var(--hd-font,inherit)}
.hjp5 :is(button,input,select,textarea){font-family:inherit}
.hjp5 .j9-breadcrumb{white-space:nowrap;flex-wrap:nowrap}
.hjp5 .j9-breadcrumb>a,.hjp5 .j9-current{flex-shrink:0;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.hjp5 .j5-time-stop{flex:0 0 200px;width:200px;min-width:200px;max-width:200px;height:270px;overflow:hidden}
.hjp5 .j5-time-stop>strong{height:63px;line-height:21px;overflow:auto;flex-shrink:0;width:100%;overflow-wrap:anywhere}
.hjp5 .j5-time-stop>small{margin-top:auto;flex-shrink:0}
.hjp5 .j5-time-photo{flex:0 0 100px}
.hjp5 .j11-library-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 24px}
.hjp5 .j11-library-stats>div{background:#edf5ff;border:1px solid #a4c2db;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.hjp5 .j11-library-stats strong{font-size:24px;color:#174e8d;line-height:1.2}
.hjp5 .j11-library-stats span{font-size:12px;color:#345775}
.hjp5 .j5-bottom-nav:empty{display:none}
@media(max-width:680px){.hjp5 .j5-time-stop{flex:0 0 180px;width:180px;min-width:180px;max-width:180px;height:270px}.hjp5 .j11-library-stats{gap:8px}.hjp5 .j11-library-stats>div{padding:12px 8px}.hjp5 .j11-library-stats strong{font-size:21px}.hjp5 .j11-library-stats span{font-size:11px}}
