/* Porkbelly Layout Rail 2.8.23 — unified site alignment contract.
 * Coloured canvas: edge-to-edge. Actual heading, controls and navigation: one rail.
 * Restrict to Porkbelly Core-marked routes and existing Creative Revenue reference pages. */
body.pb-unified,
body.pb-rail-system{
 --pb-layout-gutter:clamp(16px,2.7vw,34px);
 --pb-layout-rail:var(--pb-astra-rail,1200px);
 --pb-layout-body:calc(var(--pb-layout-rail) - 2 * var(--pb-layout-gutter));
}
/* Back button is a hero child positioned against the SAME rail used by hero copy.
   Replaces obsolete fixed 1380px back-position reference. */
body.pb-unified .pbcore-app :is(.pbcore-catalog-banner,.pbcore-belly-hero,.pbcore-studio-hero,.pbcore-hero,.pbcore-creative-hero) > .pbcore-back-hero{
 left:max(var(--pb-design-gutter),calc((100% - var(--pb-design-rail))/2 + var(--pb-design-gutter)))!important;
 right:auto!important;transform:none!important;
}
/* WordPress Gutenberg group and shortcode should occupy the canvas. The content
   rail belongs to the actual body, NOT to this outer shortcode wrapper. */
body.pb-unified.pbcore-designed-page .sma-page-layout > :not(.sma-suite-navigation):not(.sma-page-hero):not(style){
 width:100%!important;max-width:none!important;min-width:0!important;
 margin-inline:0!important;padding-inline:0!important;box-sizing:border-box!important;
}
body.pb-unified.pbcore-designed-page .sma-page-layout > .wp-block-shortcode:not(.sma-suite-navigation):not(.sma-page-hero):not(style),
body.pb-unified.pbcore-designed-page .sma-page-layout > .wp-block-group:not(.sma-suite-navigation):not(.sma-page-hero):not(style){
 width:100%!important;max-width:none!important;min-width:0!important;margin-inline:0!important;padding-inline:0!important;
}
/* Use identical left edges for the companion hero copy, suite navigation
   and white functional content. Both popular publishing pages use these blocks. */
body.pb-unified.pbcore-designed-page .sma-page-layout > .sma-page-hero{
 padding-inline:max(var(--pb-design-gutter),calc((100% - var(--pb-design-rail))/2 + var(--pb-design-gutter)))!important;
}
body.pb-unified.pbcore-designed-page .sma-page-layout > .sma-suite-navigation{
 padding-inline:max(var(--pb-design-gutter),calc((100% - var(--pb-design-rail))/2 + var(--pb-design-gutter)))!important;
}
body.pb-unified.pbcore-designed-page .sma-page-layout .sma-feature-only{
 width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:0!important;padding-inline:0!important;
}
body.pb-unified.pbcore-designed-page .sma-page-layout .sma-feature-only :is(.pbgm-body,.smasc-body,.star-id-main){
 box-sizing:border-box!important;width:calc(100% - 2 * var(--pb-design-gutter))!important;
 max-width:var(--pb-layout-body)!important;min-width:0!important;
 margin-left:auto!important;margin-right:auto!important;
 padding-left:0!important;padding-right:0!important;
}
body.pb-unified.pb-view-gig-monster .pbgm-app .pbgm-corporate-body,
body.pb-unified.pb-view-star-gig .pbgm-app .pbgm-discovery-body,
body.pb-unified.pb-view-star-media-staff-cloud .smasc-body{
 width:calc(100% - 2 * var(--pb-design-gutter))!important;
 max-width:var(--pb-layout-body)!important;
 margin-inline:auto!important;min-width:0!important;
}
/* Keep inner widgets on the same rail, not in isolated 990/1120/1580px widths. */
body.pb-unified.pbcore-designed-page :is(.pbgm-discovery-search,.pbgm-discovery-results,.pbgm-quick-intake,.pbgm-import-console,.pbgm-publisher-queue,.smasc-card,.smasc-core-banner,.smasc-gig-bridge){
 box-sizing:border-box!important;max-width:100%!important;min-width:0!important;
}
body.pb-unified.pb-view-gig-monster .pbgm-app :is(.pbgm-quick-intake,.pbgm-import-console,.pbgm-publisher-queue),
body.pb-unified.pb-view-star-gig .pbgm-app :is(.pbgm-discovery-search,.pbgm-discovery-results){width:100%!important}
body.pb-unified.pb-view-star-media-staff-cloud :is(.smasc-core-banner,.smasc-gig-bridge){
 width:100%!important;margin-inline:0!important;
}
/* Staff Cloud activity, staffing and approval panels always sit within their
   parent's content rail; no second, narrower rail inside the outer page. */
body.pb-unified.pb-view-star-media-staff-cloud .smasc-body > *{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
body.pb-unified.pb-view-star-media-staff-cloud .smasc-body :is(.smasc-columns,.smasc-metrics,.smasc-actions,.smasc-form){min-width:0!important}
/* Creative Revenue guide/workspace and signed agreement operations are separate
   plugins, but their reference pages should share the same site rail. */
body.pb-rail-system .site-content :is(.ast-container,#primary,.site-main,article.page,.entry-content,.wp-block-shortcode){
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin-inline:0!important;padding-inline:0!important;float:none!important;
}
body.pb-rail-system :is(.sdo-revenue-guide){
 width:calc(100% - 2 * var(--pb-layout-gutter))!important;
 max-width:var(--pb-layout-body)!important;
 margin:0 auto 56px!important;padding:clamp(24px,3vw,42px) 0 52px!important;
}
body.pb-rail-system .sdo-revenue-guide :is(.sdo-guide-hero,.sdo-guide-panel,.sdo-cloud-panel){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.pb-rail-system .sdo-revenue-guide :is(.sdo-cloud-nav,.sdo-workspace-actions){min-width:0!important}
/* Mobile and tablet preserve sensible gutters; never grow the viewport. */
@media(max-width:767px){
 body.pb-unified .pbcore-app :is(.pbcore-catalog-banner,.pbcore-belly-hero,.pbcore-studio-hero,.pbcore-hero,.pbcore-creative-hero) > .pbcore-back-hero{left:16px!important;top:19px!important}
 body.pb-unified.pbcore-designed-page .sma-page-layout > :is(.sma-page-hero,.sma-suite-navigation){padding-inline:16px!important}
 body.pb-unified.pbcore-designed-page .sma-page-layout .sma-feature-only :is(.pbgm-body,.smasc-body,.star-id-main),
 body.pb-unified.pb-view-gig-monster .pbgm-app .pbgm-corporate-body,
 body.pb-unified.pb-view-star-gig .pbgm-app .pbgm-discovery-body,
 body.pb-unified.pb-view-star-media-staff-cloud .smasc-body{width:calc(100% - 32px)!important;max-width:none!important}
 body.pb-rail-system .sdo-revenue-guide{width:calc(100% - 32px)!important;padding-top:20px!important}
}
@media(max-width:360px){
 body.pb-unified.pbcore-designed-page .sma-page-layout > :is(.sma-page-hero,.sma-suite-navigation){padding-inline:16px!important}
 body.pb-unified.pbcore-designed-page .sma-page-layout .sma-feature-only :is(.pbgm-body,.smasc-body,.star-id-main){width:calc(100% - 32px)!important}
}

/* Creative Director team desk: match the premium workplace theme instead of
   exposing an unstyled wp-admin-form table in the frontend. */
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap{box-sizing:border-box!important;width:calc(100% - 2 * var(--pb-design-gutter))!important;max-width:var(--pb-layout-body)!important;min-width:0!important;margin:36px auto 70px!important;padding:0!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap :is(h1,h2,h3){color:#302238!important;line-height:1.2!important;letter-spacing:-.025em!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap h2{margin:28px 0 13px!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap :is(input,select){box-sizing:border-box!important;min-height:45px!important;width:100%!important;max-width:100%!important;min-width:0!important;border:1px solid #e5cbd5!important;border-radius:12px!important;padding:10px 14px!important;background:#fff!important;color:#302238!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap form{min-width:0!important;max-width:100%!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap form label{display:block!important;font-weight:650!important;color:#3a3040!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap button.button-primary{background:linear-gradient(110deg,#94214e,#c53c6b)!important;color:#fff!important;border:0!important;border-radius:11px!important;padding:12px 21px!important;min-height:45px!important;font-weight:750!important;white-space:normal!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat{width:100%!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;border:1px solid #e8d7df!important;border-radius:12px!important;background:#fff!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat th,body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat td{padding:12px!important;overflow-wrap:anywhere!important;vertical-align:top!important;color:#372c3a!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat :is(th,td):last-child{width:42%!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat details{max-width:100%!important}
body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat details p{overflow-wrap:anywhere!important;white-space:normal!important}
@media(max-width:767px){
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap{width:calc(100% - 32px)!important;margin:24px auto 50px!important}
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat,
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat tbody,
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat tr,
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat td{display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat thead{display:none!important}
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat tr{padding:12px!important;border-bottom:1px solid #ead8e1!important}
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat td,
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat :is(th,td):last-child{border:0!important;width:100%!important;padding:8px!important}
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat td:nth-child(1)::before{content:'Candidate';display:block;font-weight:800;color:#952a53;margin-bottom:4px}
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat td:nth-child(2)::before{content:'Production seat';display:block;font-weight:800;color:#952a53;margin-bottom:4px}
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat td:nth-child(3)::before{content:'Status';display:block;font-weight:800;color:#952a53;margin-bottom:4px}
 body.pb-unified.pb-view-director-crew-desk .sdot-root .wrap table.widefat td:nth-child(4)::before{content:'Review details';display:block;font-weight:800;color:#952a53;margin-bottom:4px}
}


/* Header/check-in geometry lives in one first-paint contract: assets/header-first-paint.css. */
