/* Brand public profile: an editorial layout, not a pile of information cards.
   No global control overrides, and no decoration on the brand's own logo. */
html[data-theme] .bd-profile-overlay{z-index:1200;background:rgb(11 9 16 / .56);padding:24px;align-items:center;}
html[data-theme] #app .bd-profile-overlay .bd-profile-panel{
 width:min(700px,100%);height:min(880px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);
 border-radius:24px;--bd-highlight:#251D41;--bd-accent-ink:#956FFF;--bd-focus:#956FFF;
}
html[data-theme="light"] #app .bd-profile-overlay .bd-profile-panel{--bd-highlight:#ECE5FB;--bd-accent-ink:#5F40EE;--bd-focus:#5F40EE;}
html[data-theme] #app .bd-profile-panel .bd-profile-header{padding:10px 20px;min-height:64px;flex-wrap:nowrap;}
html[data-theme] #app .bd-profile-panel .bp-return{
 display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;padding:8px 0;
 border:0!important;border-radius:8px!important;background:transparent!important;color:var(--bd-text)!important;
 font:550 calc(.875rem * var(--elan-ui-scale,1))/1.4 var(--elan-ui-font,system-ui)!important;text-align:left!important;
}
.bp-return svg{width:20px;height:20px;flex:none;}
html[data-theme] #app .bd-profile-panel .bd-profile-body{padding:0;scroll-padding:16px;background:var(--bd-panel)!important;}
.bp-brand{min-width:0;}
html[data-theme] .bp-masthead{height:145px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 75% 100%,#3B3152 0,transparent 65%),#1E172D;border-bottom:1px solid var(--bd-line);isolation:isolate;}
html[data-theme="light"] .bp-masthead{background:radial-gradient(ellipse at 80% 100%,#DAD3E8 0,transparent 65%),#ECE9F3;}
.bp-masthead--photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.bp-cover-preview{position:relative;aspect-ratio:3/1;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:var(--es-soft);color:var(--es-muted);min-width:0}
.bp-cover-preview img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.bp-cover-editor>p{font-size:14px;line-height:1.5;color:var(--es-muted)}
.bp-cover-editor [hidden]{display:none!important}
html[data-theme] #app .bp-cover-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
.bp-monogram{position:absolute;right:28px;bottom:-40px;font:700 160px/1 var(--elan-ui-font,system-ui);letter-spacing:-.08em;color:#5B5072;opacity:.35;}
html[data-theme="light"] .bp-monogram{color:#B7AECA;opacity:.6;}
.bp-masthead i{position:absolute;left:-50px;top:-75px;width:370px;height:370px;border:1px solid rgb(228 220 245 / .14);border-radius:46%;transform:rotate(-30deg);}
.bp-masthead i:nth-of-type(2){left:-78px;top:-78px;}
.bp-masthead i:nth-of-type(3){left:-106px;top:-81px;}
html[data-theme="light"] .bp-masthead i{border-color:rgb(56 45 90 / .12);}
.bp-content{padding:0 24px 28px;}
html[data-theme] #app .bd-profile-panel .bp-identity{
 position:relative;display:block;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;margin:0 0 18px!important;
}
html[data-theme] #app .bd-profile-panel .bp-identity .bp-logo{
 position:relative;top:-32px;width:80px;height:80px;margin-bottom:-15px;border-radius:20px;
 background:var(--bd-panel)!important;border:1px solid var(--bd-control);outline:5px solid var(--bd-panel);box-shadow:none;
}
html[data-theme] #app .bd-profile-panel .bp-logo img{object-fit:contain;border-radius:12px;}
.bp-intro{min-width:0;}
html[data-theme] .bp-eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font:500 calc(.875rem * var(--elan-ui-scale,1))/1.5 var(--elan-ui-font,system-ui);color:var(--bd-muted)!important;overflow-wrap:anywhere;}
html[data-theme] .bp-demo,html[data-theme] .bp-preview{display:inline-flex;padding:2px 8px;border:1px solid var(--bd-line);border-radius:999px;color:var(--bd-muted)!important;background:var(--bd-soft);font-size:inherit;}
html[data-theme] #app .bd-profile-panel .bp-identity h2{font:650 calc(1.875rem * var(--elan-ui-scale,1))/1.08 var(--elan-ui-font,system-ui);letter-spacing:-.04em;margin:10px 0 0;overflow-wrap:anywhere;}
html[data-theme] #app .bd-profile-panel .bp-identity .bp-sector{margin:8px 0 0;font-size:calc(.9375rem * var(--elan-ui-scale,1));color:var(--bd-muted)!important;}
html[data-theme] #app .bd-profile-panel .bp-identity .bp-tagline{font:500 calc(1.0625rem * var(--elan-ui-scale,1))/1.5 var(--elan-ui-font,system-ui);margin:12px 0 0;color:var(--bd-text)!important;overflow-wrap:anywhere;}
html[data-theme] .bp-quick-links{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 4px;padding:0;}
html[data-theme] .bp-quick-links a{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-width:44px;min-height:44px;padding:9px 14px;border:1px solid var(--bd-control);border-radius:999px;background:var(--bd-soft)!important;color:var(--bd-text)!important;text-decoration:none;font:550 calc(.9375rem * var(--elan-ui-scale,1))/1.4 var(--elan-ui-font,system-ui);overflow-wrap:anywhere;}
html[data-theme] .bp-quick-links a.bp-site-link{background:var(--bd-text)!important;color:var(--bd-panel)!important;border-color:var(--bd-text);}
html[data-theme] .bp-quick-links a:not(.bp-site-link){flex:0 0 44px;width:44px;height:44px;padding:0;}
.bp-quick-links svg,.bp-section-label svg{width:18px;height:18px;flex:none;}
html[data-theme] .bp-section{margin:24px 0 0;padding:22px 0 0;border:0;border-top:1px solid var(--bd-line);background:transparent;}
html[data-theme] .bp-section h3{margin:0 0 10px;font:600 calc(1.125rem * var(--elan-ui-scale,1))/1.4 var(--elan-ui-font,system-ui);letter-spacing:-.01em;color:var(--bd-text)!important;text-transform:none;overflow-wrap:anywhere;}
html[data-theme] .bp-section p,html[data-theme] .bp-empty{font:400 calc(1rem * var(--elan-ui-scale,1))/1.65 var(--elan-ui-font,system-ui);color:var(--bd-muted)!important;margin:0;white-space:pre-line;overflow-wrap:anywhere;}
.bp-section [hidden]{display:none!important;}
html[data-theme] .bp-section .bp-more{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;margin:4px 0 0;border:0;background:transparent!important;color:var(--bd-text)!important;text-decoration:underline;text-underline-offset:4px;font:550 calc(.875rem * var(--elan-ui-scale,1))/1.5 var(--elan-ui-font,system-ui);}
.bp-section-label{display:flex;gap:9px;align-items:center;margin-bottom:12px;}
.bp-section-label h3{margin:0!important;}
html[data-theme] #app .bd-profile-panel .bp-sports{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0;list-style:none;}
html[data-theme] #app .bd-profile-panel .bp-sports li{padding:7px 12px;margin:0;max-width:100%;border:0!important;border-radius:9px;background:var(--bd-soft)!important;color:var(--bd-text)!important;font:500 calc(.875rem * var(--elan-ui-scale,1))/1.4 var(--elan-ui-font,system-ui);overflow-wrap:anywhere;}
html[data-theme] .bp-empty{padding:10px 0 20px;}
/* The shell handles loading and errors too; no fixed footer obscures content. */
html[data-theme] .bd-profile-panel .bd-state{margin:24px;}
html[data-theme] #app .bp-editor-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
@media(max-width:650px){
 html[data-theme] .bd-profile-overlay{padding:max(8px,env(safe-area-inset-top,0px)) 0 0;align-items:end;}
 html[data-theme] #app .bd-profile-overlay .bd-profile-panel{height:calc(100dvh - max(8px,env(safe-area-inset-top,0px)));max-height:calc(100dvh - max(8px,env(safe-area-inset-top,0px)));border-radius:22px 22px 0 0;border-bottom:0;}
 html[data-theme] #app .bd-profile-panel .bd-profile-header{padding:8px 18px;min-height:60px;}
 .bp-content{padding:0 18px max(26px,env(safe-area-inset-bottom,0px));}
 html[data-theme] .bp-masthead{height:125px;}
 .bp-monogram{font-size:140px;bottom:-36px;}
 html[data-theme] #app .bd-profile-panel .bp-identity h2{font-size:calc(1.625rem * var(--elan-ui-scale,1));}
}
/* Foreground/background switch as one palette, including offscreen links.
   Interpolating both independently can produce illegible intermediate frames. */
@media(prefers-reduced-motion:no-preference){
 html:not([data-app-motion="reduced"]) .bp-quick-links a{transition:border-color 140ms ease;}
}
@media(hover:hover){html[data-theme] .bp-quick-links a:hover{border-color:var(--bd-text);}}
/* Demo pack brands: campaign photo, patch and campaigns. */
html[data-theme] .bp-showcase-photo{margin:0 0 14px;border-radius:12px;overflow:hidden;border:1px solid var(--bd-line);}
html[data-theme] .bp-showcase-photo img{display:block;width:100%;height:auto;max-height:320px;object-fit:cover;}
html[data-theme] .bp-showcase-photo figcaption{padding:8px 12px;font:400 calc(.875rem * var(--elan-ui-scale,1))/1.5 var(--elan-ui-font,system-ui);color:var(--bd-muted)!important;overflow-wrap:anywhere;}
html[data-theme] .bp-showcase-patch{display:flex;align-items:center;gap:12px;margin:0 0 14px;}
html[data-theme] .bp-showcase-patch img{width:96px;height:48px;object-fit:contain;flex:none;}
html[data-theme] .bp-showcase-patch span{font:400 calc(.875rem * var(--elan-ui-scale,1))/1.5 var(--elan-ui-font,system-ui);color:var(--bd-muted)!important;}
html[data-theme] .bp-campaigns{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
html[data-theme] .bp-campaigns li{display:grid;gap:2px;padding:12px 14px;border:1px solid var(--bd-line);border-radius:10px;}
html[data-theme] .bp-campaigns strong{font:600 calc(1rem * var(--elan-ui-scale,1))/1.4 var(--elan-ui-font,system-ui);color:var(--bd-text)!important;overflow-wrap:anywhere;}
html[data-theme] .bp-campaigns span,html[data-theme] .bp-campaigns small{font:400 calc(.875rem * var(--elan-ui-scale,1))/1.5 var(--elan-ui-font,system-ui);color:var(--bd-muted)!important;overflow-wrap:anywhere;}
.bp-demo-facts{display:flex;flex-wrap:wrap;gap:18px 36px;margin:18px 0}
.bp-demo-facts>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
.bp-demo-facts dt{font:400 calc(.875rem * var(--elan-ui-scale,1))/1.5 var(--elan-ui-font,system-ui);color:var(--bd-muted,var(--muted))}
.bp-demo-facts dd{margin:6px 0;font:600 calc(1rem * var(--elan-ui-scale,1))/1.5 var(--elan-ui-font,system-ui);color:var(--bd-text,var(--text))}
html[data-theme] .bd-logo.bd-logo-light,html[data-theme] .bd-logo.bd-logo-light img{background:#f4f5f0!important}
.bw-page>.bp-showcase{--bd-text:var(--text);--bd-muted:var(--muted);--bd-line:var(--line);--bd-panel:var(--card);max-width:540px;margin:24px auto;color:var(--text)}
