/* Porkbelly Unified Interface 1.0 — one design contract, owned by Core.
 * Only two widths: full-bleed sections and the Astra content rail.
 * This file intentionally does not change WordPress admin or Astra's own header.
 * Companion-specific business widgets remain independently owned.
 */
body.pb-unified {
 --pb-rail:var(--pb-astra-rail,1200px);
 --pb-gutter:clamp(16px,2.7vw,32px);
 --pb-wine:#7e1947;
 --pb-rose:#cf3168;
 --pb-ink:#232235;
 --pb-muted:#615564;
 --pb-line:#ead8e1;
 --pb-white:#fff;
 --pb-soft:linear-gradient(145deg,#fff 3%,#fff7fa 53%,#fff 100%);
 --pb-hero:radial-gradient(circle at 88% 20%,rgba(245,64,122,.25),transparent 38%),linear-gradient(114deg,#2b1726 0%,#54203e 59%,#91264f 100%);
 --pb-radius:18px;
 --pb-radius-lg:22px;
 --pb-content-width:var(--pb-rail);
 color:var(--pb-ink);
 overflow-x:clip;
}
body.pb-unified :where(.sma-page-layout,.pbcore-app,.bc-root,.sdot-root){
 width:100%;min-width:0;max-width:100%;box-sizing:border-box;
}
body.pb-unified :where(.sma-page-layout,.pbcore-app,.bc-root,.sdot-root) *,
body.pb-unified :where(.sma-page-layout,.pbcore-app,.bc-root,.sdot-root) *::before,
body.pb-unified :where(.sma-page-layout,.pbcore-app,.bc-root,.sdot-root) *::after{box-sizing:border-box;}
/* The ordinary page and its Astra wrapper may fill the viewport; content itself remains on the rail. */
body.pb-unified :is(.site-content>.ast-container,.site-content #primary,.site-content .site-main,.site-content article.page,.site-content .entry-content){
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;
 float:none!important;
}
body.pb-unified .site-content .entry-header:has(+.entry-content){display:none!important;}
body.pb-unified .site-content{overflow-x:clip;}
body.pb-unified :is(.sma-page-layout,.bc-root,.sdot-root){margin-left:0!important;margin-right:0!important;}
/* Shared rail. Functional content ALWAYS stays exactly within the Astra width. */
body.pb-unified .sma-page-layout > :not(.sma-suite-navigation):not(.sma-page-hero):not(style),
body.pb-unified .bc-root .bc-wrap:not(.bc-hero .bc-wrap),
body.pb-unified .sdot-root .sdot-wrap:not(.sdot-hero .sdot-wrap){
 width:calc(100% - 2 * var(--pb-gutter))!important;
 max-width:var(--pb-rail)!important;
 min-width:0!important;
 margin-left:auto!important;margin-right:auto!important;
}
body.pb-unified .sma-page-layout > .wp-block-shortcode,
body.pb-unified .sma-page-layout > .wp-block-group:not(.sma-page-hero):not(.sma-suite-navigation){
 max-width:var(--pb-rail)!important;
}
body.pb-unified .sma-page-layout :is(.smasc,.smasc-body,.pbgm-app,.pbgm-body,.pbgm-corporate-body,.pbgm-star-body,.star-id,.star-id-main){
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin-left:auto!important;margin-right:auto!important;
}
body.pb-unified .sma-page-layout :is(.pbgm-panel,.pbgm-star-find,.pbgm-star-filters,.pbgm-import-console,.pbgm-corporate-welcome,.pbgm-channel-panel,.star-id-card,.smasc-card){
 max-width:100%!important;min-width:0!important;
}
/* The shared programme navigation: a single desktop row and a deliberate mobile two-row layout. */
body.pb-unified .sma-page-layout > .sma-suite-navigation{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,auto) auto!important;
 align-items:center!important;gap:12px!important;
 width:100%!important;max-width:100%!important;min-height:80px!important;
 margin:0!important;padding:15px max(var(--pb-gutter),calc((100% - var(--pb-rail))/2))!important;
 border:0!important;border-bottom:1px solid var(--pb-line)!important;
 border-radius:0!important;background:#fff!important;box-shadow:0 4px 22px rgba(42,14,31,.045)!important;
 overflow:visible!important;position:relative!important;z-index:4!important;
}
body.pb-unified .sma-suite-brand{grid-column:1!important;min-width:0!important;overflow-wrap:normal;white-space:normal!important}
body.pb-unified .sma-suite-links{
 grid-column:2!important;display:flex!important;flex-wrap:nowrap!important;
 justify-content:flex-end!important;align-items:center!important;
 min-width:0!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain;
 scrollbar-width:thin;gap:6px!important;
}
body.pb-unified .sma-suite-links a{display:inline-flex!important;align-items:center;white-space:nowrap!important;flex:0 0 auto!important;min-height:40px!important;padding:10px 12px!important;font-size:13px!important;font-weight:700!important;border-radius:11px!important}
body.pb-unified .sma-suite-links :is(.is-current,[aria-current=page]){color:#942452!important;background:#fff0f5!important}
body.pb-unified .sma-suite-account{grid-column:3!important;white-space:nowrap!important;min-height:42px!important;margin:0!important;padding:10px 14px!important}
/* Full-width gradient HERO; its text follows the same rail start as cards/forms. */
body.pb-unified .sma-page-layout > .sma-page-hero,
body.pb-unified .bc-root > .bc-hero,
body.pb-unified .sdot-root > .sdot-hero{
 background:var(--pb-page-hero,var(--pb-hero))!important;
 border:0!important;border-radius:0!important;
 box-shadow:none!important;width:100%!important;max-width:100%!important;
 margin:0!important;min-width:0!important;
}
body.pb-unified .sma-page-layout > .sma-page-hero{
 min-height:clamp(250px,24vw,390px)!important;
 padding:clamp(46px,5.5vw,78px) max(var(--pb-gutter),calc((100% - var(--pb-rail))/2))!important;
 display:flex!important;flex-direction:column!important;justify-content:center!important;
}
body.pb-unified .sma-page-hero > *{max-width:min(100%,850px)!important;margin-left:0!important;margin-right:auto!important}
body.pb-unified .sma-page-hero h1{font-size:clamp(35px,4.8vw,64px)!important;line-height:1.1!important;letter-spacing:-.035em!important;overflow-wrap:normal!important;word-break:normal!important}
body.pb-unified .bc-root > .bc-hero,
body.pb-unified .sdot-root > .sdot-hero{padding:clamp(46px,5.5vw,78px) 0!important}
body.pb-unified .bc-hero .bc-wrap,
body.pb-unified .sdot-hero .sdot-wrap{width:calc(100% - 2 * var(--pb-gutter))!important;max-width:var(--pb-rail)!important;margin:0 auto!important}
body.pb-unified .bc-hero :is(h1,p),body.pb-unified .sdot-hero :is(h1,p){max-width:900px!important}
/* Consistent white functional content, soft surface cards, quiet input and CTA surfaces. */
body.pb-unified .sma-page-layout > :not(.sma-suite-navigation):not(.sma-page-hero):not(style){margin-top:clamp(28px,3.6vw,48px)!important;margin-bottom:clamp(38px,5vw,75px)!important;padding:0!important}
body.pb-unified .bc-root .bc-body,body.pb-unified .sdot-root .sdot-body{padding:clamp(28px,4vw,54px) 0 clamp(45px,6vw,84px)!important;}
body.pb-unified :is(.bc-panel,.bc-grid article,.sdot-panel,.sdot-grid article){
 background:var(--pb-soft)!important;
 border:1px solid var(--pb-line)!important;
 box-shadow:0 14px 36px rgba(53,25,44,.045)!important;
 border-radius:var(--pb-radius-lg)!important;
 min-width:0!important;
}
body.pb-unified .sma-page-layout :is(.smasc-card,.pbgm-panel,.pbgm-star-find,.star-id-card){background:var(--pb-soft)!important;box-shadow:0 12px 33px rgba(55,22,40,.035)!important;border-radius:var(--pb-radius)!important}
body.pb-unified :is(.sma-page-layout,.bc-root,.sdot-root) :is(input,select,textarea,button){max-width:100%!important;min-width:0!important}
body.pb-unified :is(.sma-page-layout,.bc-root,.sdot-root) :is(h1,h2,h3){overflow-wrap:break-word;word-break:normal}
body.pb-unified .bc-root :is(.bc-grid,.bc-gridform),body.pb-unified .sdot-root :is(.sdot-grid,.sdot-formgrid){gap:clamp(12px,1.8vw,22px)!important}
body.pb-unified .bc-root :is(.bc-button),body.pb-unified .sdot-root :is(.sdot-btn){background:linear-gradient(115deg,#941d4f,#d0386b)!important;color:#fff!important;border-radius:12px!important;transition:background .16s ease,transform .16s ease}
body.pb-unified .bc-root .bc-outline,body.pb-unified .sdot-root .sdot-light{background:#fff!important;color:#94214b!important}
body.pb-unified :is(.pbcore-app,.sma-page-layout,.bc-root,.sdot-root) :is(a,button,input,select,textarea):focus-visible{outline:3px solid #db5682!important;outline-offset:3px!important}
/* Porkbelly App: its body is Astra-aligned; backgrounds and band sections remain full-width. */
body.pb-unified .pbcore-app .pbcore-body,
body.pb-unified .pbcore-app .pbcore-head{
 max-width:var(--pb-rail)!important;min-width:0!important;
 padding-left:var(--pb-gutter)!important;padding-right:var(--pb-gutter)!important;
 margin-left:auto!important;margin-right:auto!important;
}
body.pb-unified .pbcore-app .pbcore-section-main{background:var(--pb-soft)}
body.pb-unified .pbcore-app :is(.pbcore-hero,.pbcore-catalog-banner,.pbcore-closer){background-image:var(--pb-app-hero, var(--pb-hero))}
body.pb-unified .pbcore-app .pbcore-band{background:var(--pb-soft)!important;color:var(--pb-ink)!important}
body.pb-unified .pbcore-app .pbcore-mobile-nav{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
/* Mobile/tablet: never allow a third hybrid page width or unbounded grid columns. */
@media(max-width:980px){
 body.pb-unified .sma-page-layout > .sma-suite-navigation{grid-template-columns:minmax(0,1fr) auto!important;row-gap:8px!important;padding:12px var(--pb-gutter)!important}
 body.pb-unified .sma-suite-brand{grid-column:1!important;grid-row:1!important;font-size:clamp(16px,4vw,21px)!important}
 body.pb-unified .sma-suite-account{grid-column:2!important;grid-row:1!important;font-size:12px!important}
 body.pb-unified .sma-page-layout .sma-suite-links{grid-column:1/-1!important;grid-row:2!important;width:100%!important;max-width:100%!important;min-width:0!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;padding:1px 0 6px!important;margin:0!important;scrollbar-width:thin!important;-webkit-overflow-scrolling:touch}
 body.pb-unified .sma-page-layout .sma-suite-links a{font-size:12px!important;min-height:38px!important;padding:9px 11px!important}
 body.pb-unified .sma-page-layout > .sma-page-hero{padding:46px var(--pb-gutter)!important;min-height:0!important}
}
@media(max-width:767px){
 body.pb-unified .pbcore-app.pbcore-nav-visible .pbcore-mobile-nav{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
 body.pb-unified .sma-page-layout :is(.pbgm-star-filters,.pbgm-corporate-metrics,.pbgm-channel-chooser,.smasc-columns,.smasc-metrics,.smasc-steps){grid-template-columns:minmax(0,1fr)!important}
 body.pb-unified .bc-root .bc-grid,body.pb-unified .sdot-root .sdot-grid,body.pb-unified .bc-root .bc-gridform,body.pb-unified .sdot-root .sdot-formgrid{grid-template-columns:minmax(0,1fr)!important}
 body.pb-unified .sma-page-layout :is(.pbgm-star-find,.pbgm-panel,.star-id-card,.smasc-card){padding-inline:clamp(15px,4vw,22px)!important}
 body.pb-unified .sma-page-hero h1{font-size:clamp(31px,9vw,45px)!important}
}
@media(prefers-reduced-motion:reduce){body.pb-unified :is(.bc-root,.sdot-root,.sma-page-layout,.pbcore-app) *{transition:none!important;scroll-behavior:auto!important}}
