/* Porkbelly shared companion design, owned by Porkbelly Core.
 * Source of truth for navigation, full-bleed hero, content rail, brand tokens and responsive shell.
 * Does not style the separate Porkbelly Marketplace app or admin screens.
 * The two body classes deliberately outrank legacy page-embedded layout CSS during migration.
 */
body.pbcore-companion-design.pbcore-designed-page {
 --pb-ui-ink:#1d2637;--pb-ui-wine:#7d1645;--pb-ui-pink:#d83169;
 --pb-ui-line:#ecdce4;--pb-ui-surface:#fff9fb;
 --pb-content-width:1440px;--pb-edge:clamp(16px,3vw,46px);
 overflow-x:clip!important;
}
body.pbcore-companion-design.pbcore-designed-page :is(#content,.site-content,.ast-container,#primary,.content-area,.site-main,article.page,.entry-content,.sma-page-layout){min-width:0!important;box-sizing:border-box!important}
body.pbcore-companion-design.pbcore-designed-page :is(.site-content>.ast-container,.site-content .ast-container,#primary,.site-main,article.page,.entry-content,.entry-content>.sma-page-layout,.entry-content>.wp-block-group.sma-page-layout){
 width:100%!important;max-width:none!important;min-width:0!important;float:none!important;
 margin:0!important;padding:0!important;
}
body.pbcore-companion-design.pbcore-designed-page :is(.entry-header,.entry-title){display:none!important}
body.pbcore-companion-design.pbcore-designed-page .site-content{margin-top:0!important;padding-top:0!important;padding-bottom:0!important}
body.pbcore-companion-design.pbcore-designed-page .sma-page-layout{
 width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
 display:block!important;min-width:0!important;overflow-x:clip!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-page-layout *{box-sizing:border-box}
body.pbcore-companion-design.pbcore-designed-page .sma-page-layout>.sma-suite-navigation{
 display:grid!important;grid-template-columns:minmax(180px,1fr) auto auto!important;
 column-gap:clamp(12px,2.1vw,28px)!important;row-gap:12px!important;
 align-items:center!important;position:relative!important;z-index:2!important;
 width:100%!important;max-width:none!important;min-height:84px!important;
 margin:0!important;padding:14px max(20px,calc((100% - var(--pb-content-width))/2))!important;
 border:0!important;border-bottom:1px solid var(--pb-ui-line)!important;
 border-radius:0!important;background:#fff!important;box-shadow:0 4px 20px rgb(58 22 41 / 5%)!important;
 overflow:visible!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-suite-brand{
 grid-column:1!important;min-width:0!important;display:flex!important;align-items:center!important;
 gap:10px!important;max-width:100%!important;color:#271b25!important;
 line-height:1.22!important;text-decoration:none!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-suite-logo{flex:0 0 auto!important}
body.pbcore-companion-design.pbcore-designed-page .sma-suite-brand small{
 display:block!important;margin-top:3px!important;font-size:10px!important;
 line-height:1.2!important;letter-spacing:.07em!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-page-layout .sma-suite-links{
 grid-column:2!important;display:flex!important;align-items:center!important;justify-content:center!important;
 gap:5px!important;min-width:0!important;width:auto!important;max-width:100%!important;
 flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;
 overscroll-behavior-x:contain!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-suite-links::-webkit-scrollbar{display:none!important}
body.pbcore-companion-design.pbcore-designed-page .sma-suite-links a{
 display:inline-flex!important;flex:0 0 auto!important;min-height:40px!important;
 align-items:center!important;padding:10px 12px!important;font-size:13px!important;
 font-weight:700!important;line-height:1.2!important;white-space:nowrap!important;
 text-decoration:none!important;border-radius:12px!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-suite-links a[aria-current="page"]{
 background:#fcecf2!important;color:#99194b!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-suite-account{
 grid-column:3!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:43px!important;width:auto!important;max-width:100%!important;
 margin:0!important;padding:9px 15px!important;border-radius:12px!important;
 line-height:1.2!important;white-space:nowrap!important;text-decoration:none!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-page-layout>.sma-page-hero{
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 box-sizing:border-box!important;min-height:clamp(285px,31vw,430px)!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 margin:0!important;padding:clamp(45px,5.6vw,86px) max(22px,calc((100% - var(--pb-content-width))/2))!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:var(--pb-page-hero,linear-gradient(112deg,#2e1927 0%,#4e1c38 49%,#8d2450 100%))!important;
 color:#fff!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-page-hero>*{
 width:100%!important;max-width:940px!important;min-width:0!important;
 margin-left:0!important;margin-right:auto!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-page-hero .sma-hero-label{
 color:#ffd3e5!important;letter-spacing:.18em!important;
 font-size:clamp(11px,1.1vw,14px)!important;font-weight:800!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-page-hero h1{
 color:#fff!important;font-size:clamp(37px,5.1vw,70px)!important;
 line-height:1.1!important;letter-spacing:-.035em!important;
 overflow-wrap:break-word!important;word-break:normal!important;margin:22px 0!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-page-hero p:not(.sma-hero-label){
 color:#f9eaf0!important;font-size:clamp(16px,1.65vw,21px)!important;
 line-height:1.55!important;max-width:800px!important;
}
/* The complete plugin workspace follows the same rail. Only the hero background is full bleed. */
body.pbcore-companion-design.pbcore-designed-page .sma-page-layout>:not(.sma-suite-navigation):not(.sma-page-hero):not(style){
 display:block;min-width:0!important;
 width:calc(100% - (2 * var(--pb-edge)))!important;
 max-width:var(--pb-content-width)!important;
 margin:clamp(26px,4vw,58px) auto clamp(36px,5vw,75px)!important;
 padding:0!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-page-layout :is(
 .pbgm-app,.pbgm-body,.pbgm-corporate-body,.pbgm-star-body,.pbgm-star-find,.pbgm-star-filters,
 .pbgm-corporate-welcome,.pbgm-import-console,.pbgm-console-form,
 .smasc,.smasc-body,.star-id,.star-id-main,.star-id-grid
 ){
 min-width:0!important;max-width:100%!important;width:100%!important;
 margin-left:auto!important;margin-right:auto!important;
}
body.pbcore-companion-design.pbcore-designed-page .sma-page-layout :is(
 .smasc-card,.pbgm-panel,.pbgm-star-find,.pbgm-corporate-welcome,
 .pbgm-star-filters,.pbgm-star-footer,.star-id-card,.pbgm-channel-panel
){max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
body.pbcore-companion-design.pbcore-designed-page .sma-page-layout :is(input,select,textarea,button){min-width:0!important;max-width:100%!important}
body.pbcore-companion-design.pbcore-designed-page .site-footer{margin-top:0!important}
@media(max-width:980px){
 body.pbcore-companion-design.pbcore-designed-page .sma-page-layout>.sma-suite-navigation{
  grid-template-columns:minmax(0,1fr) auto!important;min-height:0!important;
  padding:14px var(--pb-edge) 12px!important;column-gap:14px!important;row-gap:12px!important;
 }
 body.pbcore-companion-design.pbcore-designed-page .sma-suite-brand{grid-column:1!important;grid-row:1!important}
 body.pbcore-companion-design.pbcore-designed-page .sma-suite-account{grid-column:2!important;grid-row:1!important}
 body.pbcore-companion-design.pbcore-designed-page .sma-page-layout .sma-suite-links{
  grid-column:1/-1!important;grid-row:2!important;min-width:0!important;
  width:100%!important;max-width:100%!important;
  justify-content:flex-start!important;scrollbar-width:thin!important;
  padding:0 0 8px!important;margin:0!important;
 }
 body.pbcore-companion-design.pbcore-designed-page .sma-page-layout>.sma-page-hero{
  min-height:0!important;padding:48px var(--pb-edge) 54px!important;
 }
}
@media(max-width:600px){
 body.pbcore-companion-design.pbcore-designed-page{--pb-edge:16px}
 body.pbcore-companion-design.pbcore-designed-page .sma-page-layout>.sma-suite-navigation{
  padding:13px 14px 12px!important;border-radius:0!important;
 }
 body.pbcore-companion-design.pbcore-designed-page .sma-suite-brand{font-size:17px!important;gap:8px!important}
 body.pbcore-companion-design.pbcore-designed-page .sma-suite-brand small{font-size:9px!important;letter-spacing:.04em!important}
 body.pbcore-companion-design.pbcore-designed-page .sma-suite-logo :is(svg,img){width:32px!important;height:32px!important}
 body.pbcore-companion-design.pbcore-designed-page .sma-suite-account{min-height:38px!important;font-size:12px!important;padding:9px 12px!important}
 body.pbcore-companion-design.pbcore-designed-page .sma-page-layout .sma-suite-links a{
  font-size:13px!important;padding:9px 11px!important;min-height:37px!important;
 }
 body.pbcore-companion-design.pbcore-designed-page .sma-page-layout>.sma-page-hero{padding:39px 20px 45px!important}
 body.pbcore-companion-design.pbcore-designed-page .sma-page-hero h1{
  font-size:clamp(34px,8.6vw,45px)!important;margin:19px 0!important;
 }
 body.pbcore-companion-design.pbcore-designed-page .sma-page-hero p:not(.sma-hero-label){font-size:16px!important}
 body.pbcore-companion-design.pbcore-designed-page .sma-page-layout>:not(.sma-suite-navigation):not(.sma-page-hero):not(style){
  width:calc(100% - 32px)!important;max-width:none!important;
  margin:23px auto 35px!important;padding:0!important;
 }
 body.pbcore-companion-design.pbcore-designed-page .sma-page-layout :is(
 .smasc-card,.pbgm-panel,.pbgm-star-find,.pbgm-star-footer,
 .pbgm-corporate-welcome,.star-id-card,.pbgm-channel-panel
 ){min-width:0!important;max-width:100%!important;padding-inline:clamp(15px,4vw,24px)!important}
}
@media(prefers-reduced-motion:reduce){body.pbcore-companion-design.pbcore-designed-page .sma-page-layout *{scroll-behavior:auto!important}}
