/* Porkbelly Design Contract 2.0 — Astra-compatible, shared between Core + companions.
   Two widths only: full canvas for colour, configured Astra rail for controls.
   Hero appearance varies by offering, functional work remains accessible on white. */
body.pb-unified{
 --pb-design-rail:var(--pb-astra-rail,1200px);
 --pb-design-gutter:clamp(16px,2.7vw,34px);
 --pb-ink:#252238;--pb-quiet:#635a68;--pb-border:#ecdce4;
 --pb-blush:linear-gradient(135deg,#fff 2%,#fff7fa 51%,#fff 96%);
 --pb-lilac:linear-gradient(125deg,#fdf9ff 0%,#f7f1ff 55%,#fff8fa 100%);
 --pb-sunrise:linear-gradient(125deg,#fff6f9 0%,#ffedf3 65%,#fff8ee 100%);
 --pb-hero-wine:radial-gradient(circle at 87% 10%,rgba(250,84,138,.25),transparent 40%),linear-gradient(112deg,#301b2a,#642440 68%,#8e3154);
 --pb-hero-rose:radial-gradient(circle at 80% 20%,rgba(255,175,205,.37),transparent 39%),linear-gradient(110deg,#561a38,#ad2e61 72%,#dc6c89);
 --pb-hero-plum:radial-gradient(circle at 85% 0%,rgba(211,145,243,.26),transparent 37%),linear-gradient(112deg,#221b32,#59315d 68%,#8f4375);
 --pb-hero-soft:radial-gradient(circle at 83% 20%,rgba(245,171,193,.34),transparent 40%),linear-gradient(120deg,#fff 0%,#fff4f8 55%,#f9e7f0 100%);
 --pb-hero-ivory:radial-gradient(circle at 80% 0%,rgba(239,198,225,.4),transparent 43%),linear-gradient(115deg,#fffdfb,#fdf4f7 65%,#f7f3ff);
 --pb-page-hero:var(--pb-hero-wine);
}
/* One content rail — never impose a narrower arbitrary width on forms and search panels. */
body.pb-unified .pbcore-app{width:100%!important;max-width:100%!important;min-width:0!important;isolation:isolate}
body.pb-unified .pbcore-app .pbcore-body{width:100%!important;max-width:var(--pb-design-rail)!important;padding-inline:var(--pb-design-gutter)!important;margin-inline:auto!important}
body.pb-unified .pbcore-app :is(.pbcore-form-page,.pbcore-agency-register){max-width:var(--pb-design-rail)!important}
body.pb-unified .pbcore-app :is(.pbcore-search,.pbcore-listings,.pbcore-belly-content,.pbcore-belly-paths){min-width:0!important}
/* Main app masthead stays full width on home AND every internal route. */
body.pb-unified .pbcore-app .pbcore-masthead{width:100%!important;max-width:none!important;background:#fff!important;border-bottom:1px solid #eee1e8!important;box-shadow:0 5px 23px rgba(48,17,36,.045);position:relative;z-index:15}
body.pb-unified .pbcore-app .pbcore-head{width:100%!important;max-width:var(--pb-design-rail)!important;padding:15px var(--pb-design-gutter)!important;margin:0 auto!important;display:flex!important;align-items:center!important;gap:clamp(7px,1.2vw,18px)!important;min-height:72px!important;background:transparent!important;border:0!important}
body.pb-unified .pbcore-head .pbcore-brand{min-width:0!important}
body.pb-unified .pbcore-head .pbcore-links{min-width:0!important}
body.pb-unified .pbcore-head .pbcore-back-inhead{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 38px;width:38px;height:38px;padding:0!important;border:1px solid #eedbe5!important;border-radius:11px!important;background:#fff9fc!important;color:#8f214f!important;font-size:22px!important;line-height:1!important;box-shadow:none!important}
body.pb-unified .pbcore-head .pbcore-back-inhead:hover{background:#fceaf1!important}
/* Back on listing detail pages remains within content; it must never create a new masthead-height strip. */
body.pb-unified .pbcore-detail>.pbcore-back,body.pb-unified .pbcore-form-page>.pbcore-back{display:inline-flex;align-items:center;margin:0 0 14px!important;padding:8px 0!important;min-height:35px!important}
/* Full-canvas hero with in-rail content, but not every product needs the same dark slab. */
body.pb-unified .pbcore-app :is(.pbcore-catalog-banner,.pbcore-belly-hero,.pbcore-studio-hero){background-image:var(--pb-app-hero,var(--pb-hero-wine))!important}
body.pb-unified .pbcore-app.pbcore-view-services{--pb-app-hero:var(--pb-hero-plum)}
body.pb-unified .pbcore-app.pbcore-view-opportunities{--pb-app-hero:var(--pb-hero-rose)}
body.pb-unified .pbcore-app.pbcore-view-belly{--pb-app-hero:var(--pb-hero-wine)}
body.pb-unified .pbcore-app.pbcore-view-studio{--pb-app-hero:var(--pb-hero-plum)}
body.pb-unified .pbcore-app.pbcore-view-agencies{--pb-app-hero:var(--pb-hero-soft)}
body.pb-unified .pbcore-app :is(.pbcore-section-main,.pbcore-landing-discover){background:#fff!important}
body.pb-unified .pbcore-app :is(.pbcore-band,.pbcore-section-membership){background:var(--pb-blush)!important}
body.pb-unified .pbcore-app :is(.pbcore-sector,.pbcore-list-card,.pbcore-work-launchers a,.pbcore-belly-tile){border-color:var(--pb-border)!important;border-radius:17px!important;box-shadow:0 13px 32px rgba(46,20,40,.038)!important}
body.pb-unified .pbcore-app .pbcore-belly-path{background:var(--pb-lilac)!important}
/* Listing tools and forms must align even when older standalone CSS sets inner max-width. */
body.pb-unified .pbcore-app :is(.pbcore-search,.pbcore-form,.pbcore-studio-request){width:100%;max-width:100%!important;box-sizing:border-box}
body.pb-unified .pbcore-app :is(input,select,textarea){min-width:0!important;max-width:100%!important}
/* Companion pages use one rail throughout: content width, cards and role workspaces. */
body.pb-unified.pbcore-designed-page .sma-page-layout>:not(.sma-suite-navigation):not(.sma-page-hero):not(style){max-width:var(--pb-design-rail)!important;width:calc(100% - 2 * var(--pb-design-gutter))!important;margin-inline:auto!important}
body.pb-unified.pbcore-designed-page .sma-page-layout :is(.pbgm-app,.smasc,.star-id,.pbgm-body,.smasc-body,.star-id-main){width:100%!important;max-width:100%!important;min-width:0!important}
body.pb-unified.pbcore-designed-page .sma-page-layout :is(.pbgm-panel,.smasc-card,.star-id-card,.pbgm-star-find){border-radius:18px!important;border-color:var(--pb-border)!important}
/* Page identities, not global overwrites. */
body.pb-view-gig-monster{--pb-page-hero:var(--pb-hero-plum)}
body.pb-view-gig-star,body.pb-view-star-gig{--pb-page-hero:var(--pb-hero-rose)}
body.pb-view-belly-staff,body.pb-view-star-media-staff-cloud{--pb-page-hero:var(--pb-hero-wine)}
body.pb-view-my-star-id,body.pb-view-star-id,body.pb-view-star-sign-in{--pb-page-hero:var(--pb-hero-ivory)}
body.pb-view-crew-staffing{--pb-page-hero:var(--pb-hero-plum)}
body.pb-view-join-bellycrew{--pb-page-hero:var(--pb-hero-soft)}
body.pb-view-director-crew-intake{--pb-page-hero:var(--pb-hero-rose)}
body.pb-view-director-crew-desk,body.pb-view-bellycrew-desk{--pb-page-hero:var(--pb-hero-wine)}
body.pb-view-gig-approval-office,body.pb-view-my-bellycrew{--pb-page-hero:var(--pb-hero-ivory)}
/* Light mastheads deliberately use navy text, not washed-out white. */
body.pb-unified:is(.pb-view-my-star-id,.pb-view-star-id,.pb-view-star-sign-in,.pb-view-join-bellycrew,.pb-view-my-bellycrew,.pb-view-gig-approval-office) .sma-page-layout>.sma-page-hero{color:var(--pb-ink)!important}
body.pb-unified:is(.pb-view-my-star-id,.pb-view-star-id,.pb-view-star-sign-in,.pb-view-join-bellycrew,.pb-view-my-bellycrew,.pb-view-gig-approval-office) .sma-page-hero :is(h1,p){color:var(--pb-ink)!important}
body.pb-unified:is(.pb-view-my-star-id,.pb-view-star-id,.pb-view-star-sign-in,.pb-view-join-bellycrew,.pb-view-my-bellycrew,.pb-view-gig-approval-office) .sma-page-hero .sma-hero-label{color:#a42b58!important}
/* Alternate white surface blocks for visual rhythm and legibility. */
body.pb-unified .sma-page-layout :is(.pbgm-star-find,.smasc-card,.star-id-card,.pbgm-panel){background:var(--pb-blush)!important}
body.pb-unified .sma-page-layout :is(.pbgm-star-find,.smasc-card,.star-id-card,.pbgm-panel) :is(h2,h3){color:var(--pb-ink)!important}
body.pb-unified .sma-page-layout :is(input,textarea,select){background:#fff!important;border-radius:12px!important}
/* Creative and BellyCrew share normal rail, and never leave a blank right screen column. */
body.pb-unified:has(.sdot-root) :is(.content-area,#primary,main.site-main,.entry-content,.wp-block-shortcode){width:100%!important;max-width:100%!important;min-width:0!important;flex-basis:100%!important;float:none!important}
body.pb-unified:has(.sdot-root) :is(#secondary,aside.widget-area){display:none!important}
body.pb-unified .sdot-root,body.pb-unified .bc-root{display:block;width:100%!important;max-width:100%!important;min-width:0!important}
body.pb-unified .sdot-root>.sdot-hero,body.pb-unified .bc-root>.bc-hero{width:100%!important;max-width:100%!important;border-radius:0!important;background:var(--pb-page-hero,var(--pb-hero-rose))!important}
body.pb-view-director-crew-intake .sdot-root>.sdot-hero{background:var(--pb-hero-rose)!important}
body.pb-view-crew-staffing .bc-root>.bc-hero{background:var(--pb-hero-plum)!important}
body.pb-view-join-bellycrew .bc-root>.bc-hero{background:var(--pb-hero-soft)!important;color:var(--pb-ink)!important}
body.pb-view-join-bellycrew .bc-hero :is(h1,p,.bc-kicker){color:var(--pb-ink)!important}
body.pb-unified .sdot-root .sdot-wrap,body.pb-unified .bc-root .bc-wrap{width:calc(100% - 2 * var(--pb-design-gutter))!important;max-width:var(--pb-design-rail)!important;margin-inline:auto!important}
body.pb-unified .sdot-root :is(.sdot-grid article,.sdot-panel),body.pb-unified .bc-root :is(.bc-grid article,.bc-panel){background:var(--pb-blush)!important;border-radius:18px!important}
/* Authorised inline application forms keep their original functionality. */
@media(max-width:980px){
 body.pb-unified .pbcore-head{min-height:65px!important;padding:11px var(--pb-design-gutter)!important}
 body.pb-unified .pbcore-head .pbcore-back-inhead{width:34px;height:34px;flex-basis:34px}
}
@media(max-width:767px){
 body.pb-unified .pbcore-app .pbcore-masthead{position:relative!important}
 body.pb-unified .pbcore-head{gap:8px!important;flex-wrap:wrap!important}
 body.pb-unified .pbcore-app .pbcore-body{padding-inline:16px!important}
 body.pb-unified .pbcore-app .pbcore-mobile-nav{max-width:100vw!important}
 body.pb-unified .pbcore-app .pbcore-section-main{padding-block:32px 56px!important}
 body.pb-unified .sdot-root .sdot-grid,body.pb-unified .bc-root .bc-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(min-width:768px){
 body.pb-unified .pbcore-app .pbcore-mobile-nav{display:none!important;visibility:hidden!important;pointer-events:none!important}
}
@media(prefers-reduced-motion:reduce){body.pb-unified *{scroll-behavior:auto!important}}

/* Astra may reserve a sidebar-sized primary content column even on a full-width page.
   Companion pages are self-contained app screens; release that column explicitly. */
body.pb-unified.pbcore-designed-page :is(.site-content>.ast-container,.content-area,#primary,.site-main,article.page,.entry-content,.wp-block-group.sma-page-layout){width:100%!important;max-width:100%!important;min-width:0!important;flex:1 1 100%!important;float:none!important;margin-inline:0!important;padding-inline:0!important}
body.pb-unified.pbcore-designed-page :is(#secondary,aside.widget-area){display:none!important}
/* The coloured hero CONTENT starts exactly on the same rail as white functional panels. */
body.pb-unified .pbcore-app :is(.pbcore-catalog-banner,.pbcore-belly-hero,.pbcore-studio-hero,.pbcore-hero){padding-inline:max(var(--pb-design-gutter),calc((100% - var(--pb-design-rail))/2 + var(--pb-design-gutter)))!important}
body.pb-unified .pbcore-app .pbcore-belly-inner{max-width:100%!important;margin-inline:0!important}
@media(max-width:767px){body.pb-unified .pbcore-app :is(.pbcore-catalog-banner,.pbcore-belly-hero,.pbcore-studio-hero,.pbcore-hero){padding-inline:16px!important}}
/* Contrast on pale hero variants takes precedence over the legacy white-on-wine text. */
body.pb-unified:is(.pb-view-my-star-id,.pb-view-star-id,.pb-view-star-sign-in,.pb-view-join-bellycrew,.pb-view-my-bellycrew,.pb-view-gig-approval-office) .sma-page-layout>.sma-page-hero p:not(.sma-hero-label){color:#3b3042!important}
body.pb-unified.pb-view-join-bellycrew .bc-root>.bc-hero :is(h1,p){color:#3b3042!important}
