/* Clinical Scenarios visual family, applied only to the seven requested top-level banners. */
@layer taplureFeatureBanners {
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero {
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
  position:relative!important;isolation:isolate!important;overflow:hidden!important;gap:12px!important;
  padding:clamp(20px,2vw,28px) calc(42% + clamp(20px,2vw,28px)) clamp(20px,2vw,28px) clamp(20px,2vw,28px)!important;min-height:clamp(200px,19.5vw,280px)!important;height:auto!important;max-height:none!important;
  background-color:#0b0e15!important;background-image:linear-gradient(90deg,#0b0e15 0%,#0b0e15 var(--tl-fade-start,32%),#0b0e15d9 var(--tl-fade-mid,42%),transparent var(--tl-fade-end,75%)),var(--tl-feature-image)!important;
  background-size:cover,contain!important;background-position:center,right center!important;background-repeat:no-repeat!important;
  border:1px solid #c5b8ed70!important;border-radius:14px!important;box-shadow:inset 0 1px 0 #f4ebff59,inset 0 -1px 0 #91b9db26,0 12px 30px #02051226!important;
  color:#f7f4fd!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-align:left!important;margin:0 0 24px!important;
 }
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero::before,
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero::after{content:none!important}
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero>.gs-art,
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero>.sunrise,
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero>.absolute{display:none!important}
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero>.tl-feature-art{display:none!important;pointer-events:none!important}
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero>:where(:not(.absolute):not(.gs-art):not(.tl-feature-art):not(.sunrise)){
  position:relative!important;z-index:1!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important;
  padding:0!important;margin:0!important;text-align:left!important;
 }
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero :is(h1,h2,.glass-banner-title){
  width:auto!important;max-width:100%!important;font-size:clamp(28px,2.6vw,40px)!important;font-weight:400!important;line-height:1.14!important;letter-spacing:.01em!important;
  color:#f7f4fd!important;-webkit-text-fill-color:#f7f4fd!important;text-shadow:0 1px 3px #03060c4d!important;text-align:left!important;margin:10px 0 12px!important;overflow-wrap:break-word!important;
 }
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero :is(p,.glass-banner-subtitle){
  max-width:100%!important;color:#e0e3ef!important;-webkit-text-fill-color:#e0e3ef!important;font-size:clamp(14px,1.2vw,16px)!important;line-height:1.55!important;
  text-shadow:none!important;text-align:left!important;margin:10px 0 0!important;
 }
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero :is(.eyebrow,.tl-feature-kicker,span.glass-banner-eyebrow){
  display:inline-flex!important;width:auto!important;max-width:100%!important;min-height:0!important;padding:3px 0 3px 12px!important;margin:0!important;
  border:0!important;border-left:2px solid #bb8cfa!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  color:#d7c0f5!important;-webkit-text-fill-color:#d7c0f5!important;font-size:clamp(12px,1.3vw,16px)!important;font-weight:400!important;line-height:1.4!important;letter-spacing:.1em!important;
 }
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero .hero-actions{display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin:24px 0 0!important}
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero :is(a,button){max-width:100%!important;min-height:44px!important;white-space:normal!important;line-height:1.45!important;overflow-wrap:break-word!important;}
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero>button{width:auto!important;align-self:flex-start!important;margin-top:18px!important}
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero #myBadgesButton{position:static!important;margin:24px 0 0!important;}
 /* Owner-requested removal: hide only the dashboard hero estimate, not readiness calculations or Progress. */
 html:root body .hero-card.tl-feature-hero>div.hero-progress{display:none!important;}
 html:root body .courses-workspace #studyPhotoBanner.tl-feature-hero .eyebrow{display:none!important;}
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero .flex:has(>a){justify-content:flex-start!important;}
 /* The Games banner is requested again; its original copy is reused. Game engines/menu styling stay intact. */
 html body #gamesHero:has(.tl-feature-hero){display:block!important;margin:0 0 20px!important;}
 html body #glassGameMenuIntro{display:none!important;}
 html body:has(#gameEngine:not(.hidden)) #gamesHero:has(.tl-feature-hero){display:none!important;}
 /* Retain the original locked-page visibility boundary for these decorative banners. */
 html[data-free-page-locked] body>:is(.tl-feature-hero,#gamesHero:has(.tl-feature-hero)){display:none!important;}
 /* Adapt to the actual banner width, including dashboard sidebars and embedded document viewports. */
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero.tl-feature-compact{
  padding:0 0 24px!important;min-height:0!important;gap:0!important;background:#0b0e15!important;
 }
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero.tl-feature-compact>.tl-feature-art{
  display:block!important;position:relative!important;inset:auto!important;order:-1!important;z-index:0!important;flex:0 0 auto!important;
  width:100%!important;max-width:none!important;height:clamp(100px,26vw,150px)!important;margin:0 0 24px!important;padding:0!important;
  background:#0b0e15 var(--tl-feature-image) center/contain no-repeat!important;border:0!important;border-bottom:1px solid #c5b8ed40!important;border-radius:0!important;
 }
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero.tl-feature-compact>:where(:not(.absolute):not(.gs-art):not(.tl-feature-art):not(.sunrise)){
  width:calc(100% - 40px)!important;max-width:calc(100% - 40px)!important;margin:0 20px!important;padding:0!important;
 }
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero.tl-feature-compact :is(h1,h2,.glass-banner-title){font-size:clamp(30px,7vw,40px)!important;margin-top:14px!important;}
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero.tl-feature-compact p{font-size:15px!important;line-height:1.6!important;}
 html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero.tl-feature-compact>button{width:auto!important;margin-top:20px!important;}
 @media(forced-colors:active){html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero{background:Canvas!important;border-color:CanvasText!important;box-shadow:none!important}html:root body :is(.hero-card,#studyPhotoBanner).tl-feature-hero :is(h1,h2,p,span,small,strong){color:CanvasText!important;-webkit-text-fill-color:CanvasText!important;text-shadow:none!important}}
}

/* Shared no-crop illustration contract. Keep complete source artwork and original aspect ratios. */
@layer taplureFeatureBanners {
 html:root body :is(.gs-art,.gs-course-art,.gs-game-art,.reef-host-art){background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;}
 html:root body #subjectGrid .subj-card:not(.gs-course-card)::before{background-size:contain!important;background-position:center!important;}
 html:root body :is(main,.content,#subjectGrid,.librarygrid,.structure-dialog,.muscle-library-entry,.scenario-subject-shelf,.lessonopening) img:not(.art-menu-image):not(.reef-avatar):not(.reef-avatar img):not([data-sprite]){object-fit:contain!important;object-position:center!important;}
 /* Keep the approved Clinical Scenarios composition and values, with its full artwork visible. */
 html:root body #landing #scenarioHero{min-height:0!important;background-size:contain!important;background-position:right center!important;}
 html:root body #landing #scenarioHero>.gs-art{background-size:contain!important;background-position:center!important;}
}

@layer taplureFeatureBanners {
 @media(max-width:600px){html:root body .dashboard-grid .course-grid{grid-template-columns:minmax(0,1fr)!important;}}
 @media(min-width:761px){html:root body #landing #scenarioHero{
  background-image:linear-gradient(90deg,#0b0e15 0%,#0b0e15 45%,#0b0e15a6 52%,transparent 68%),url('/assets/scenario-obsidian-neural-v1/hero.png')!important;
  background-size:cover,contain!important;background-position:center,right center!important;background-repeat:no-repeat!important;
 }}
}
