html[data-case-embedded] .jaf-navigation,html[data-case-embedded] .jaf-footer,html[data-case-embedded] .case-nav-v2,html[data-case-embedded] .tldr-btn,html[data-case-embedded] .tldr-panel,html[data-case-embedded] .tldr-overlay{display:none!important}
html[data-case-embedded] body{padding-top:0}
html[data-case-embedded] #jai-depth-proposal{padding-top:0}
html[data-case-embedded] #jai-depth-proposal .pd-depth-review{display:none}
html[data-case-embedded] #jai-depth-proposal :is(.pd-crumb,.pd-tag,.pd-next){display:none}
html[data-case-embedded] #jai-depth-proposal .pd-main{padding-top:32px}
html[data-case-embedded] #jai-depth-proposal .pd-toc,html[data-case-embedded] #jai-depth-proposal .pd-enterprise .pd-toc{top:24px;max-height:calc(100svh - 48px)}
html[data-case-embedded] #jai-depth-proposal .pd-chapter,html[data-case-embedded] #jai-depth-proposal .pd-enterprise .pd-chapter{scroll-margin-top:40px}
@media(max-width:1099px){html[data-case-embedded] #jai-depth-proposal .pd-chapter,html[data-case-embedded] #jai-depth-proposal .pd-enterprise .pd-chapter{scroll-margin-top:116px}}



/* Content scrolls behind the parent's fixed close bar, without shifting the intro. */
html[data-case-embedded][data-case-overlay]{--jaf-case-overlay-height:70px;scroll-padding-top:0}
html[data-case-embedded][data-case-overlay] body{padding-top:var(--jaf-case-overlay-height)}
html[data-case-embedded][data-case-overlay] #jai-depth-proposal .pd-toc,
html[data-case-embedded][data-case-overlay] #jai-depth-proposal .pd-enterprise .pd-toc{top:calc(var(--jaf-case-overlay-height) + 24px);max-height:calc(100svh - var(--jaf-case-overlay-height) - 48px)}
html[data-case-embedded][data-case-overlay] #jai-depth-proposal .pd-chapter,
html[data-case-embedded][data-case-overlay] #jai-depth-proposal .pd-enterprise .pd-chapter{scroll-margin-top:calc(var(--jaf-case-overlay-height) + 40px)}
html[data-case-embedded][data-case-overlay] body.jaf-legacy-navigation .case-body>.sidebar>.toc-inner{top:calc(var(--jaf-case-overlay-height) + 24px);max-height:calc(100svh - var(--jaf-case-overlay-height) - 48px)}
html[data-case-embedded][data-case-overlay] body.jaf-legacy-navigation .case-body .content-section{scroll-margin-top:calc(var(--jaf-case-overlay-height) + 40px)}
@media(max-width:1099px){
 html[data-case-embedded][data-case-overlay] #jai-depth-proposal .pd-toc,
 html[data-case-embedded][data-case-overlay] #jai-depth-proposal .pd-enterprise .pd-toc{max-height:none}
 html[data-case-embedded][data-case-overlay] #jai-depth-proposal .pd-chapter,
 html[data-case-embedded][data-case-overlay] #jai-depth-proposal .pd-enterprise .pd-chapter{scroll-margin-top:calc(var(--jaf-case-overlay-height) + 116px)}
 html[data-case-embedded][data-case-overlay] body.jaf-legacy-navigation .case-body>.sidebar{top:calc(var(--jaf-case-overlay-height) + 24px)}
 html[data-case-embedded][data-case-overlay] body.jaf-legacy-navigation .case-body>.sidebar>.toc-inner{top:auto;max-height:none}
 html[data-case-embedded][data-case-overlay] body.jaf-legacy-navigation .case-body .content-section{scroll-margin-top:calc(var(--jaf-case-overlay-height) + 116px)}
}
@media(max-width:700px){html[data-case-embedded][data-case-overlay]{--jaf-case-overlay-height:calc(72px + env(safe-area-inset-top))}}
