/* Case depth uses the same type and component grammar as the portfolio home. */
:root{--case-font:'DM Sans',Arial,sans-serif;--case-ink:#171715;--case-copy:#43433f;--case-card:#fff;--case-card-border:#242422;--case-card-radius:11px;--case-body-size:15px;--case-body-leading:1.9;--case-heading-size:clamp(29px,3.2vw,42px)}

/* Reading scale taken from the published STAR pages. */
body .case-intro-split .hero-section h1,
#jai-depth-proposal .pd-product .pd-case-hero-split h1{font-family:var(--case-font);font-size:clamp(38px,4.8vw,65px);font-weight:550;line-height:1.08;letter-spacing:-2.6px;text-wrap:wrap}
body .case-intro-split .hero-desc,
#jai-depth-proposal .pd-product .pd-case-heading .pd-intro{font:400 16px/1.75 var(--case-font);color:#42423e}
body .content-section .section-title,
#jai-depth-proposal .pd-product .pd-split h2,
#jai-depth-proposal .pd-product .pd-enterprise .pd-split h2{font-family:var(--case-font);font-size:var(--case-heading-size);font-weight:600;line-height:1.17;letter-spacing:-1.3px;color:#111110;max-width:none;width:auto;white-space:normal;text-wrap:wrap}
body .content-section .body-text,body .content-section .steps p,
#jai-depth-proposal .pd-product .pd-split .pd-copy,
#jai-depth-proposal .pd-product .pd-enterprise .pd-copy{font:400 var(--case-body-size)/var(--case-body-leading) var(--case-font);color:var(--case-copy)}
#jai-depth-proposal .pd-product .pd-split .pd-copy p{font:inherit;line-height:inherit}

/* Same number and method label as .star-decision-index / .star-method. */
#jai-depth-proposal .pd-product .pd-chapter-label{position:relative;display:block;width:auto;min-height:18px;margin:0 0 18px;padding:0 0 0 45px;font:400 10px/15px var(--case-font);letter-spacing:normal;text-transform:none;color:#585851}
#jai-depth-proposal .pd-product .pd-chapter-number{position:absolute;left:0;top:0;display:inline;width:auto;height:auto;min-width:0;padding:0;border:0;border-radius:0;background:transparent;color:#54544d;font:600 12px/18px var(--case-font);letter-spacing:normal}
body .content-section .section-label{display:flex;align-items:baseline;gap:29px;margin:0 0 18px;font:400 10px/15px var(--case-font);letter-spacing:normal;text-transform:none;color:#585851}
body .content-section .case-section-number{font:600 12px/18px var(--case-font);color:#54544d}

/* The same pill component used by the home and case summaries. */
body .case-intro-split .figma-cta,
#jai-depth-proposal .pd-product .b-pill-button{display:inline-flex;align-items:center;justify-content:center;gap:17px;min-height:35px;padding:7px 17px;border:2px solid #0b0b0b;border-radius:100px;background:#0b0b0b;color:#fff;font:500 11px/1.4 var(--case-font);text-decoration:none;white-space:normal;transition:background .2s,color .2s}
body .case-intro-split .figma-cta:hover,
#jai-depth-proposal .pd-product .b-pill-button:hover{background:transparent;color:#0b0b0b}
#jai-depth-proposal .pd-product .b-pill-button.b-outline{background:transparent;color:#0b0b0b}
#jai-depth-proposal .pd-product .b-pill-button.b-outline:hover{background:#0b0b0b;color:#fff}
body .case-intro-split .figma-cta svg,
#jai-depth-proposal .pd-product .pd-figma-link .pd-figma-logo{flex:none;width:12px;height:18px}

/* Home service cards: white, outlined, with the icon on the upper corner. */
#jai-depth-proposal .pd-product .pd-decision{position:relative;display:block;max-width:none;padding:30px 23px 25px;border:1.5px solid var(--case-card-border);border-radius:var(--case-card-radius);background:var(--case-card);overflow:visible}
#jai-depth-proposal .pd-product .pd-decision-symbol{position:absolute;top:-13px;right:17px;left:auto;display:grid;place-items:center;box-sizing:content-box;width:31px;height:31px;border:4px solid #f7f7f2;border-radius:50%;background:#0b0b0b;color:#fff}
#jai-depth-proposal .pd-product .pd-decision-symbol svg{width:17px;height:17px}
#jai-depth-proposal .pd-product .pd-component-label{display:none}
#jai-depth-proposal .pd-product .pd-decision h3,
#jai-depth-proposal .pd-product .pd-proof h3{margin:0;font:500 16px/1.35 var(--case-font);letter-spacing:-.4px;color:#171715}
#jai-depth-proposal .pd-product .pd-decision p,
#jai-depth-proposal .pd-product .pd-proof p{max-width:78ch;margin:10px 0 0;font:400 12px/1.7 var(--case-font);color:#484844}
#jai-depth-proposal .pd-product .pd-proof{gap:20px}
#jai-depth-proposal .pd-product .pd-proof>div{padding:30px 23px 25px;border:1.5px solid var(--case-card-border);border-radius:var(--case-card-radius);background:var(--case-card)}

/* Home FAQ shape, retaining the clear native disclosure interaction. */
#jai-depth-proposal .pd-product .pd-detail{border:1.5px solid #33332f;border-radius:10px;background:#fff}
#jai-depth-proposal .pd-product .pd-detail>summary{min-height:64px;padding:20px;gap:20px;font:500 14px/1.45 var(--case-font);color:#171715}
#jai-depth-proposal .pd-product .pd-detail>summary:hover{background:#f7f7f2}
#jai-depth-proposal .pd-product .pd-detail-toggle{width:28px;height:28px;border-color:#b7b7aa;background:transparent}
#jai-depth-proposal .pd-product .pd-detail>div{padding:20px;font:400 13px/1.8 var(--case-font);color:#484844}

/* Sources follow the editorial tools list, without a separate grey panel. */
#jai-depth-proposal .pd-product .pd-sources{padding:24px 0 0;border:0;border-top:1.5px solid #b8b8ad;border-radius:0;background:transparent}
#jai-depth-proposal .pd-product .pd-sources h3{font:500 20px/1.35 var(--case-font);letter-spacing:-.4px}
#jai-depth-proposal .pd-product .pd-sources a{font:400 13px/1.7 var(--case-font)}
#jai-depth-proposal .pd-product .pd-note{font:400 12px/1.7 var(--case-font)}
@media(max-width:1000px){:root{--case-body-size:14px}body .case-intro-split .hero-section h1,#jai-depth-proposal .pd-product .pd-case-hero-split h1{font-size:44px}}
@media(max-width:640px){:root{--case-body-leading:1.85;--case-heading-size:29px}body .case-intro-split .hero-section h1,#jai-depth-proposal .pd-product .pd-case-hero-split h1{font-size:37px;font-weight:600;letter-spacing:-1.6px}#jai-depth-proposal .pd-product .pd-chapter-label{padding-left:35px}body .content-section .section-label{gap:22px}body .case-intro-split .figma-cta,#jai-depth-proposal .pd-product .b-pill-button{min-height:46px;padding:11px 18px;gap:12px;font-size:14px;font-weight:550}#jai-depth-proposal .pd-product .pd-decision,#jai-depth-proposal .pd-product .pd-proof>div{padding:27px 20px 23px}#jai-depth-proposal .pd-product .pd-detail>summary,#jai-depth-proposal .pd-product .pd-detail>div{padding:18px 16px}}
@media(prefers-reduced-motion:reduce){body .case-intro-split .figma-cta,#jai-depth-proposal .pd-product .b-pill-button{transition:none}}

/* Capabilities and the project file form one action row beneath the facts. */
#jai-depth-proposal .pd-case-tools{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:22px 0 28px}
#jai-depth-proposal .pd-capability-group{flex:1;min-width:0}
#jai-depth-proposal .pd-case-tools .star-skills{flex:1;min-width:0;margin:0}
#jai-depth-proposal .pd-product .pd-case-tools .pd-figma-link{flex:none;align-self:flex-end;margin:0;white-space:nowrap}
#jai-depth-proposal .b-case-meta:not(.pd-meta-five)>div:nth-child(4){border-right:0}
#jai-depth-proposal .pd-product .b-case-meta.pd-meta-five{grid-template-columns:repeat(5,minmax(0,1fr))}
#jai-depth-proposal .b-case-meta.pd-meta-five>div{border-right:1px solid #a9a99e}
#jai-depth-proposal .b-case-meta.pd-meta-five>div:last-child{border-right:0}
#jai-depth-proposal .pd-product .pd-case-hero-split h1 em{font-family:'Source Serif 4',Georgia,serif;font-style:italic;font-weight:400;letter-spacing:-.035em}

/* Evidence context stays with its image or the disclosure it qualifies. */
#jai-depth-proposal .pd-product figcaption .pd-artifact-note{margin:14px 0 0;padding:14px 0 0;border-top:1px solid #deded2;color:#595951;font:400 13px/1.7 var(--case-font)}
#jai-depth-proposal .pd-artifact-note strong{display:block;margin-bottom:4px;color:#292925;font:500 13px/1.5 var(--case-font)}
#jai-depth-proposal .pd-product .pd-detail>div>.pd-note,#jai-depth-proposal .pd-product .pd-sources>.pd-note{margin:18px 0 0;padding:16px 0 0;border:0;border-top:1px solid #deded2;color:#595951;font:400 13px/1.75 var(--case-font)}
@media(max-width:900px){#jai-depth-proposal .pd-product .b-case-meta.pd-meta-five{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:24px}#jai-depth-proposal .b-case-meta.pd-meta-five>div:nth-child(even){border-right:0}#jai-depth-proposal .b-case-meta.pd-meta-five>div:last-child{grid-column:1/-1;border-top:1px solid #d8d8ce;padding-top:18px}}
@media(max-width:700px){#jai-depth-proposal .pd-case-tools{align-items:flex-start;flex-direction:column;gap:18px}#jai-depth-proposal .pd-product .pd-case-tools .pd-figma-link{align-self:flex-start}}

/* The image viewer keeps its name for assistive technology and one visible close. */
#jai-depth-proposal .pd-dialog-top{justify-content:flex-end}
#jai-depth-proposal .pd-dialog-top #pd-image-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.variant-b .star-skills-label,#jai-depth-proposal .pd-product .star-skills-label{margin:22px 0 10px;color:#292925;font:600 12px/1.5 var(--case-font)}
.variant-b .star-skills-label+.star-skills,#jai-depth-proposal .pd-product .star-skills-label+.star-skills{margin-top:0}
#jai-depth-proposal .pd-product .pd-capability-group>.star-skills-label{margin-top:0}

/* Round the outer frame once; inner image corners meet their caption cleanly. */
#jai-depth-proposal .pd-view-star .b-case-cover .pd-zoom img,
#jai-depth-proposal .pd-product .pd-figure .pd-zoom img,
.variant-b .b-case-cover>img,.variant-b .b-case-detail img,
body .case-intro-split .cover img{display:block;border-radius:0}
#jai-depth-proposal .pd-product .pd-figure>.pd-zoom{overflow:hidden;border-radius:0;background:transparent}

/* Keep the next level of detail beside the case's reading navigation. */
.variant-b .star-story-layout>.star-toc.jaf-toc-with-action,
#jai-depth-proposal .pd-view-star .star-story-layout>.star-toc.jaf-toc-with-action,
#jai-depth-proposal .pd-product .pd-toc.jaf-toc-with-action{display:flex;flex-direction:column;gap:0;overflow:hidden}
.jaf-toc-with-action>.jaf-toc-chapters{display:grid;gap:5px;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}
.jaf-toc-with-action>.pd-toc-label{flex:none}
.variant-b .star-toc.jaf-toc-with-action>.jaf-toc-action,
#jai-depth-proposal .pd-product .jaf-toc-with-action>.jaf-toc-action{display:flex;flex:none;flex-direction:row;align-items:center;justify-content:space-between;gap:9px;min-height:44px;margin:15px 0 0;padding:13px 10px 3px;border:0;border-top:1px solid #c7c7b9;border-radius:0;background:transparent;color:#53534a;font:500 12px/1.45 var(--case-font);text-decoration:none;text-align:left;white-space:normal}
.variant-b .star-toc.jaf-toc-with-action>.jaf-toc-action{padding:10px 12px;border:1px solid #bcbcb0;border-radius:999px;color:#292925}
.jaf-toc-action>span{flex:1;min-width:0}
.jaf-toc-action>img{display:block;flex:none;width:12px;height:18px;object-fit:contain}
.jaf-toc-action>svg{display:block;flex:none;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.variant-b .star-toc.jaf-toc-with-action>.jaf-toc-action:hover,
#jai-depth-proposal .pd-product .jaf-toc-with-action>.jaf-toc-action:hover{background:#e9e9df;color:#171715;text-decoration:underline;text-underline-offset:4px}
.jaf-toc-action:focus-visible{outline:2px solid #171715;outline-offset:-3px}
@media(max-width:1099px){.jaf-toc-with-action>.jaf-toc-chapters{overscroll-behavior-x:contain;overscroll-behavior-y:auto}}
@media(max-width:1099px){
 .variant-b .star-story-layout>.star-toc.jaf-toc-with-action,
 #jai-depth-proposal .pd-view-star .star-story-layout>.star-toc.jaf-toc-with-action{display:flex;max-height:none}
 .star-toc.jaf-toc-with-action>.jaf-toc-chapters{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible}
 .variant-b .star-toc.jaf-toc-with-action>.jaf-toc-action,
 #jai-depth-proposal .pd-view-star .star-toc.jaf-toc-with-action>.jaf-toc-action{justify-content:center;min-height:42px;margin-top:6px;padding:8px 12px}
 .star-toc.jaf-toc-with-action>.jaf-toc-action>span{flex:none}
 .variant-b .star-story-content .star-section{scroll-margin-top:170px}
 #jai-depth-proposal .pd-view-star .star-story-content .star-section{scroll-margin-top:228px}
 #jai-depth-proposal .pd-product .pd-toc.jaf-toc-with-action{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;max-height:none;padding:7px}
 #jai-depth-proposal .pd-toc.jaf-toc-with-action>.jaf-toc-chapters{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
 #jai-depth-proposal .pd-product .pd-toc.jaf-toc-with-action>.jaf-toc-action{gap:7px;min-height:44px;margin:0;padding:9px 10px;border:0;border-left:1px solid #c7c7b9;font-size:12px;white-space:nowrap}
}

/* Summary navigation reuses the hero's outlined pill, including its arrow. */
.variant-b .star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action.b-pill-button.b-outline,
#jai-depth-proposal .pd-view-star .star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action.b-pill-button.b-outline{display:inline-flex;flex:none;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;gap:17px;min-height:35px;margin:15px 0 0;padding:7px 17px;border:2px solid #0b0b0b;border-radius:100px;background:transparent;color:#141414;font:500 11px/1.4 var(--case-font);letter-spacing:normal;text-align:center;text-decoration:none;white-space:normal;transition:background .2s,color .2s}
.star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action>.jaf-toc-action-label{flex:0 1 auto;min-width:0;text-align:center}
.star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action>svg{display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.variant-b .star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action.b-pill-button.b-outline:hover{background:#141414;color:#fff;text-decoration:none}
#jai-depth-proposal .pd-view-star .star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action.b-pill-button.b-outline:hover{background:#0b0b0b;color:#fff;text-decoration:none}
@media(max-width:1099px){
 .variant-b .star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action.b-pill-button.b-outline,
 #jai-depth-proposal .pd-view-star .star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action.b-pill-button.b-outline{margin-top:6px}
}
@media(max-width:900px){
 .variant-b .star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action.b-pill-button.b-outline,
 #jai-depth-proposal .pd-view-star .star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action.b-pill-button.b-outline{gap:12px;min-height:46px;padding:11px 18px;font-size:14px;font-weight:550}
}
@media(prefers-reduced-motion:reduce){
 .variant-b .star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action.b-pill-button.b-outline,
 #jai-depth-proposal .pd-view-star .star-toc.jaf-toc-with-action[data-toc-action="full"]>.jaf-toc-action.b-pill-button.b-outline{transition:none}
}

/* Case summaries keep their existing masthead in flow and visible while reading. */
html:has(.b-page-shell>main.star-case){scroll-padding-top:0}
.variant-b .b-page-shell:has(>main.star-case){--case-navbar-height:90px}
html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case)>.masthead{position:sticky;top:0;z-index:40;height:var(--case-navbar-height);min-height:var(--case-navbar-height);background:#f7f7f2;box-shadow:0 1px 0 #c8c8bb}
html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case) .star-story-layout>.star-toc{top:calc(var(--case-navbar-height) + 18px);max-height:calc(100svh - var(--case-navbar-height) - 38px)}
html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case) .star-story-content .star-section{scroll-margin-top:calc(var(--case-navbar-height) + 38px)}
html[data-case-embedded] .variant-b .b-page-shell:has(>main.star-case)>.masthead{display:none}
@media(max-width:1099px){
 html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case) .star-story-layout>.star-toc{max-height:none}
 html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case) .star-story-content .star-section{scroll-margin-top:calc(var(--case-navbar-height) + 170px)}
}
@media(max-width:640px){
 .variant-b .b-page-shell:has(>main.star-case){--case-navbar-height:74px}
 html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case) .star-story-layout>.star-toc{top:calc(var(--case-navbar-height) + 8px)}
}

/* The existing masthead reserves its space while only the compact bar floats. */
html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case)>.masthead.jaf-case-header-scrolled{background:transparent;color:#171715;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case)>.masthead.jaf-case-header-scrolled>.header{position:fixed;z-index:80;top:max(12px,env(safe-area-inset-top));right:0;bottom:auto;left:0;width:calc(100% - 32px);max-width:1100px;height:68px;min-height:68px;margin:0 auto;padding:10px 20px;display:flex;align-items:center;gap:20px;border:1px solid rgba(255,255,255,.82);border-radius:24px;background:#f7f7f2;color:#171715;box-shadow:0 8px 28px #1717151f,inset 0 0 0 1px #17171514}
.variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-logo{min-width:0;min-height:44px;flex:0 1 auto;align-items:center;gap:12px}
.variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-logo img{width:72px;height:auto;flex:none;object-fit:contain}
.variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-brand-role{display:block;flex:0 0 78px;width:78px;max-width:78px;font-size:13.5px;font-weight:600;line-height:1.15;letter-spacing:0;white-space:normal;text-wrap:wrap}
.variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header nav{min-width:0;gap:24px;font-size:13px}
.variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 0}
.variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .header-tools{flex:none;margin-left:auto;align-items:center;gap:14px}
.variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-contact{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:10px 18px;font-size:13px;line-height:1.2}
.variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header :is(nav,nav a,.b-brand-role,.b-logo,.menu-toggle){color:#171715;opacity:1}
.variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header :is(.b-contact,.b-contact:hover){background:#171715;border-color:#171715;color:#fff;opacity:1}
.variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .menu-toggle span{background:#171715}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case)>.masthead.jaf-case-header-scrolled>.header{background:rgba(247,247,242,.82);-webkit-backdrop-filter:blur(18px) saturate(115%);backdrop-filter:blur(18px) saturate(115%)}
}
@media(prefers-reduced-transparency:reduce){
 html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case)>.masthead.jaf-case-header-scrolled>.header{background:#f7f7f2;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* Navigation centers on the page, independently of the logo and contact width. */
@media(min-width:801px){
 .variant-b .b-page-shell:has(>main.star-case)>.masthead:not(.jaf-case-header-scrolled)>.header{position:relative}
 .variant-b .b-page-shell:has(>main.star-case)>.masthead>.header>nav{position:absolute;top:50%;left:50%;margin:0;transform:translate(-50%,-50%)}
 .variant-b .b-page-shell:has(>main.star-case)>.masthead>.header>.header-tools{margin-left:auto}
}
@media(min-width:641px){
 html[lang=es] .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-brand-role{flex-basis:82px;width:82px;max-width:82px;font-size:12.5px}
}
@media(max-width:900px){
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .header-tools{gap:10px}
}
@media(max-width:640px){
 html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case)>.masthead.jaf-case-header-scrolled>.header{top:max(8px,env(safe-area-inset-top));width:calc(100% - 16px);height:64px;min-height:64px;padding:9px 10px;gap:8px;border-radius:22px}
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-logo{gap:8px}
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-logo img{width:56px}
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-brand-role{flex-basis:78px;width:78px;max-width:78px;font-size:12.5px}
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .header-tools{gap:6px}
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-contact{padding:10px;font-size:12px}
}
@media(max-width:380px){
 html:not([data-case-embedded]) .variant-b .b-page-shell:has(>main.star-case)>.masthead.jaf-case-header-scrolled>.header{gap:6px}
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-logo{gap:6px}
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-logo img{width:50px}
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-brand-role{flex-basis:70px;width:70px;max-width:70px;font-size:12px}
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .header-tools{gap:5px}
}
@media(max-width:340px){
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-logo img{width:48px}
 .variant-b .b-page-shell>.masthead.jaf-case-header-scrolled .header .b-brand-role{display:none}
}

/* On phones, global contact lives in the menu and resources stay beside the case facts. */
@media(max-width:700px){
 .variant-b .b-page-shell:has(>main.star-case)>.masthead>.header>.header-tools>.b-contact{display:none}
 #jai-depth-proposal .pd-product .pd-toc.jaf-toc-with-action[data-toc-action=figma]{grid-template-columns:minmax(0,1fr)}
 #jai-depth-proposal .pd-product .pd-toc.jaf-toc-with-action[data-toc-action=figma]>.jaf-toc-action{display:none}
 #jai-depth-proposal .pd-product .pd-toc.jaf-toc-with-action[data-toc-action=figma]>.jaf-toc-chapters{width:100%}
}
