/* v82: staff navigation and Knowledge Hub. Loaded after the existing theme. */
.staff-workspace .app-shell{grid-template-columns:250px minmax(0,1fr)}
.staff-workspace .app-shell .sidebar{background:#850c14;color:#fff;padding:24px 14px;border:0}
.staff-workspace .app-shell .brand{padding:0 4px 24px;margin:0 0 24px;border:0;border-bottom:1px solid #ffffff30;border-radius:0;background:none}
.staff-workspace .app-shell .brand-mark{display:none}
.staff-workspace .app-shell .brand-copy strong{color:#fff;font-size:23px;line-height:1.25}
.staff-workspace .app-shell .brand-copy span{color:#fff;font-size:10px;letter-spacing:.18em;margin-top:8px}
.staff-workspace .app-shell .sidebar-toggle{background:#ffffff12;color:#fff;border-color:#ffffff40;box-shadow:none}
.staff-workspace .app-shell .nav-title{color:#ffffffc9;font-size:10px;margin:25px 14px 10px}
.staff-workspace .app-shell .nav-item{color:#fff;font-size:14px;font-weight:500;gap:14px;padding:12px 30px 12px 14px;min-height:48px;border:0;border-radius:7px}
.staff-workspace .app-shell .nav-item:hover{background:#ffffff14;color:#fff}
.staff-workspace .app-shell .nav-item.active{background:#ffffff22;color:#fff;box-shadow:none}
.staff-workspace .app-shell .nav-item.active:after{position:absolute;left:0;top:9px;height:30px;width:3px;background:#fff;margin:0}
.staff-workspace .app-shell .nav-icon,.staff-workspace .app-shell .nav-item.active .nav-icon{width:24px;height:24px;color:#fff;background:none;box-shadow:none;border-radius:0}
.staff-workspace .nav-icon svg,.kb-file-icon svg,.kb-related svg{display:block;width:24px;height:24px;flex-shrink:0}
.staff-workspace .app-shell .nav-attention-dot{background:#fff;border:0;box-shadow:none;width:8px;height:8px;right:12px}
.staff-workspace .app-shell.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}
.staff-workspace .app-shell.sidebar-collapsed .brand{min-height:50px}
.staff-workspace .app-shell.sidebar-collapsed .nav-item{padding:12px;justify-content:center}
.staff-workspace .app-shell.sidebar-collapsed .nav-attention-dot{position:absolute;clip:auto;width:7px;height:7px;top:6px;right:5px;overflow:visible;transform:none}
.staff-workspace .app-shell .topbar{gap:16px;flex-wrap:wrap;padding:16px 24px}
.staff-workspace .topbar-left,.staff-workspace .topbar-account,.staff-workspace .user-chip{min-width:0;max-width:100%}
.staff-workspace .user-chip>span{overflow-wrap:anywhere}
.staff-workspace .command-search{display:none}
.staff-workspace .app-shell .content{min-width:0;padding:26px;max-width:100%;box-sizing:border-box}
.staff-workspace .main{min-width:0}
.staff-workspace .sidebar a:focus-visible,.staff-workspace .sidebar button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.staff-workspace .content a:focus-visible,.staff-workspace .content button:focus-visible{outline:3px solid #850c14;outline-offset:3px}
.staff-workspace .material-portal-hero{display:none}
.staff-workspace .material-scroll-actions{display:none}
.staff-workspace .learning-hub-tools{max-width:100%;min-width:0}
.staff-workspace .staff-announcement-search{min-width:0}
.staff-workspace .staff-announcement-search input{min-width:0;width:100%}
.staff-workspace .learning-hub-filter-row{flex-wrap:wrap}
.staff-workspace .material-reader-staff{min-width:0;padding:24px;border:1px solid #e1e5eb;border-radius:10px;box-shadow:none}
.staff-workspace .material-reader-staff .material-board{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;gap:0;padding:0;overflow:visible;scroll-snap-type:none}
.kb-material-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:18px;padding:24px 0;border-bottom:1px solid #e7e9ee;min-width:0}
.kb-material-row:last-child{border-bottom:0}
.kb-file-icon{display:grid;place-items:center;background:#fbf0f1;color:#850c14;width:44px;height:48px;border-radius:8px}
.kb-category{font-size:12px;font-weight:600;color:#850c14}
.kb-material-copy{min-width:0}
.kb-material-copy h3{margin:5px 0;font-size:19px;line-height:1.4;overflow-wrap:anywhere}
.kb-material-copy h3 a{color:#172033;text-decoration:none}
.kb-material-copy h3 a:hover{text-decoration:underline;color:#850c14}
.kb-material-copy p{font-size:14px;line-height:1.6;color:#637087;margin:5px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.kb-material-copy small{color:#697386;font-size:12px}
.staff-workspace .kb-open{background:#850c14;color:#fff;border:1px solid #850c14;box-shadow:none;font-size:13px;white-space:nowrap;padding:10px 14px;border-radius:7px}
.staff-workspace .material-learn-layout.is-staff-reader{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px;align-items:start}
.staff-workspace .material-learning-page{min-width:0;width:100%;max-width:100%;box-sizing:border-box;border:1px solid #e1e5eb;box-shadow:none;border-radius:10px;padding:28px}
.staff-workspace .material-learning-page .announcement-read-head{padding:0 0 24px;min-height:0;display:flex;flex-direction:column;align-items:flex-start;gap:14px;border-bottom:1px solid #e5e7eb}
.kb-breadcrumb{font-size:13px;color:#667085;overflow-wrap:anywhere}
.kb-breadcrumb a,.kb-back{color:#850c14;text-decoration:none}
.kb-back{font-size:14px}
.kb-back,.material-reader-action{transition:background-color var(--transition-fast,140ms) var(--ease-ui,ease-out),border-color var(--transition-fast,140ms) var(--ease-ui,ease-out),color var(--transition-fast,140ms) var(--ease-ui,ease-out)}
.kb-back:hover,.material-reader-action:hover{transform:none!important}
.staff-workspace .material-learning-page .announcement-read-meta{order:3;display:inline-block;background:#850c14;color:#fff;border-radius:6px;padding:5px 10px;font-size:12px;letter-spacing:0;text-transform:none}
.staff-workspace .material-learning-page .announcement-read-head h1{font-size:clamp(25px,2.3vw,34px);line-height:1.25;margin:0;overflow-wrap:anywhere}
.staff-workspace .material-reader-action{display:none}
.staff-workspace .material-learning-page .announcement-read-body{padding:24px 0 0;min-width:0}
.staff-workspace .material-learning-page .announcement-detail-content{max-width:100%;min-width:0;font-size:11pt;line-height:1.75;overflow-wrap:anywhere}
.staff-workspace .material-learning-page .rich-content img{max-width:100%!important;height:auto!important}
.staff-workspace .material-learning-page .rich-content table{display:block;max-width:100%;overflow:auto}
.staff-workspace .material-learning-page .rich-content pre{max-width:100%;overflow:auto}
.staff-workspace .material-attachment-viewer{max-width:100%;min-width:0;margin-top:28px;overflow:hidden;border:1px solid #dfe4eb;border-radius:8px;scroll-margin-top:110px}
.staff-workspace .material-attachment-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px;background:#f5f7fa}
.staff-workspace .material-attachment-head>div{min-width:0;flex:1 1 180px}
.staff-workspace .material-attachment-head strong{font-size:14px;overflow-wrap:anywhere}
.staff-workspace .material-attachment-head .button{font-size:12px;box-shadow:none;white-space:normal}
.staff-workspace .material-attachment-frame{width:100%;height:620px;border:0;display:block;min-width:0}
.staff-workspace .material-attachment-image img{max-width:100%;height:auto}
.kb-guide-panel{padding:22px;background:#fff;border:1px solid #e1e5eb;border-radius:10px;min-width:0}
.kb-guide-panel h2{font-size:17px;margin:0 0 14px}
.kb-guide-panel>a{display:block;color:#536078;font-size:14px;line-height:1.5;padding:9px 0;text-decoration:none;overflow-wrap:anywhere}
.kb-guide-panel>a:hover{color:#850c14;text-decoration:underline}
.kb-guide-panel .kb-related-heading{padding-top:24px;margin-top:20px;border-top:1px solid #e5e7eb}
.kb-guide-panel .kb-related{display:flex;align-items:center;gap:10px}
.kb-related>span:first-of-type{flex:1;min-width:0}
#material-details{scroll-margin-top:110px}
.knowledge-material-modal{place-items:start center;padding:8vh 24px 4vh;overflow:hidden}
.knowledge-material-modal-card{max-height:calc(100vh - 12vh);overflow-y:auto}
.knowledge-material-modal-card>.modal-head{position:sticky;top:0;z-index:5}
@media(max-width:1200px){.staff-workspace .material-learn-layout.is-staff-reader{grid-template-columns:minmax(0,1fr)}.kb-guide-panel{display:block}.staff-workspace .topbar-account{margin-left:0}}
@media(max-width:800px){
 .staff-workspace .app-shell,.staff-workspace .app-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}
 .staff-workspace .app-shell .sidebar{position:relative;min-height:0;height:auto;padding:16px}
 .staff-workspace .app-shell .brand{margin:0;padding:0 0 12px;min-height:50px}
 .staff-workspace .app-shell .sidebar-toggle{display:grid;position:static;width:36px;height:36px}
 .staff-workspace .app-shell.sidebar-collapsed .sidebar>.nav-title,.staff-workspace .app-shell.sidebar-collapsed .sidebar>.nav-item,.staff-workspace .app-shell.sidebar-collapsed .sidebar>.nav-group{display:none}
 .staff-workspace .app-shell.sidebar-collapsed .brand-copy{position:static;clip:auto;width:auto;height:auto;overflow:visible;white-space:normal}
 .staff-workspace .app-shell .content{padding:16px}
 .staff-workspace .app-shell .topbar{position:relative;padding:14px 16px}
 .staff-workspace .app-shell .topbar-account{position:static;transform:none;display:flex;width:auto;margin:0;flex:0 0 auto}
 .staff-workspace .app-shell .topbar{height:auto;min-height:72px;display:flex;align-items:center;justify-content:space-between}
 .staff-workspace .material-learning-page{padding:20px}
 .staff-workspace .learning-hub-filter-row{display:grid;grid-template-columns:minmax(0,1fr)}
 .staff-workspace .learning-hub-filter{min-width:0;width:100%}
 .kb-material-row{grid-template-columns:36px minmax(0,1fr);gap:12px}
 .kb-file-icon{width:36px;height:42px}
 .kb-open{grid-column:2;justify-self:start}
 .staff-workspace .material-reader-staff{padding:16px}
 .staff-workspace .material-attachment-frame{height:480px;min-height:0}
}
@media(max-width:760px){
 .knowledge-material-modal{place-items:start center;padding:12px}
 .knowledge-material-modal-card{max-height:calc(100dvh - 24px);border-radius:14px}
}

/* Knowledge reader navigation stays still during hover, focus and click. */
.all-role-sidebar .material-learning-page :is(.kb-back,.material-reader-action),
.all-role-sidebar .material-learning-page :is(.kb-back,.material-reader-action):is(:hover,:focus,:focus-visible,:active){
 transform:none!important;
 animation:none!important;
 transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease!important;
}

.material-learning-page .rich-content img[data-kb-media]{display:block;max-width:100%;height:auto;margin:16px 0;border-radius:6px}

/* Article contents mirror the authoring preview. */
.kb-section-links a{display:block;color:#536078;font-size:14px;line-height:1.5;padding:9px 0;text-decoration:none;overflow-wrap:anywhere}
.kb-section-links a:hover{color:#850c14;text-decoration:underline}
.kb-section-links .kb-subsection{padding-left:14px;font-size:13px}
.material-learning-page :is(h3,h4)[id^="kb-section-"]{scroll-margin-top:120px}
@media(min-width:1201px){.is-staff-reader .kb-guide-panel{position:sticky;top:120px;max-height:calc(100dvh - 140px);overflow:auto}}
@media(max-width:1200px){.is-staff-reader .kb-guide-panel{grid-row:1}.kb-section-links{display:flex;flex-wrap:wrap;gap:0 18px}.kb-section-links .kb-subsection{padding-left:0}}
/* Match the document editor's default headings without overriding chosen inline styles. */
.material-learning-page .announcement-detail-content h3{color:#981426;font-size:20px;font-weight:600;line-height:1.45;margin:27px 0 12px}
.material-learning-page .announcement-detail-content h4{color:#981426;font-size:17px;font-weight:600;line-height:1.5;margin:24px 0 12px}
@media(max-width:620px){.material-learning-page .announcement-detail-content h3{font-size:18px}}

/* Drive streams directly to the browser; IntraLink stores only its sharing URL. */
:is(.material-learning-page,.knowledge-material-modal) .kb-video{margin:24px 0;padding:18px;border:1px solid #e1e5eb;border-radius:9px;background:#fafbfc;min-width:0;max-width:100%;box-sizing:border-box}
:is(.material-learning-page,.knowledge-material-modal) .kb-video-label{display:block;margin-bottom:12px;font-size:14px;font-weight:600;color:#263044}
:is(.material-learning-page,.knowledge-material-modal) .kb-video-frame{aspect-ratio:16/9;position:relative;min-width:0;overflow:hidden;border-radius:6px;background:#202124}
:is(.material-learning-page,.knowledge-material-modal) .kb-video-frame iframe{display:block;position:absolute;inset:0;width:100%;height:100%;border:0}
:is(.material-learning-page,.knowledge-material-modal) .kb-video p{margin:10px 0 0;font-size:13px;line-height:1.5}
:is(.material-learning-page,.knowledge-material-modal) .kb-video a{color:#981426;font-weight:600}
:is(.material-learning-page,.knowledge-material-modal) .kb-video .kb-video-note{font-size:12px;color:#758195}
@media(max-width:620px){:is(.material-learning-page,.knowledge-material-modal) .kb-video{padding:12px}}
:is(.material-learning-page,.knowledge-material-modal) .kb-inline-file{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0;padding:15px;border:1px solid #e1e5eb;border-radius:8px;background:#fafbfc;overflow-wrap:anywhere}
:is(.material-learning-page,.knowledge-material-modal) .kb-inline-file strong{font-size:14px;font-weight:600;min-width:0}
:is(.material-learning-page,.knowledge-material-modal) .kb-inline-file a{font-size:13px;font-weight:600;color:#981426}

/* Match the shared editor's 11pt default for admin and staff readers. */
.material-learning-page .announcement-detail-content{font-size:11pt}
