/*
PORKBELLY SAFE APPEARANCE · 2026-11-03
Temporary launch safety gate: use the approved light palette independent of
OS/browser dark preference. Do not return to automatic dark appearance until
real, signed-in and guest browser acceptance tests pass.
This file is loaded only on the owning public product's pages, not wp-admin.
*/
:root { color-scheme: only light !important; }
:where(.pbcore-app,.sma-page-layout,.smasc,.pbgm-app,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial){color-scheme:only light!important;}

/* Explicit viewport scheme stops browser auto-dark from rewriting our surfaces. */
:root:has(.sc-root){color-scheme:only light;}

/* 1.1.3 · Creator/Rights/Podcasts — explicit dark palette with readable gradients. */
.sc-root{color-scheme:only light}

@media(forced-colors:active){.sc-root :is(.sc-hero h1,.sc-discovery-shell>summary strong){background:none!important;-webkit-text-fill-color:currentColor!important;color:CanvasText!important;}}
/* Labels and captions use fixed dark text in the original light stylesheet. */


/* PB COLOR CONTRACT 1.0 · Shared source: build_color_system.py
   Same visual hierarchy in light, dark and reduced-contrast situations.
   Only paint changes: no component measurements, position, display or navigation. */
:where(.pbcore-app,.pbgm-app,.sma-page-layout,.smasc,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial){
 --pb-ui-bg:#fffafd;--pb-ui-card:#ffffff;--pb-ui-card-soft:#fff3f8;
 --pb-ui-text:#312331;--pb-ui-muted:#635665;--pb-ui-line:#e3cbd9;
 --pb-ui-input:#ffffff;--pb-ui-hint:#726576;--pb-ui-accent:#942a5c;
 --pb-ui-focus:#a22f70;--pb-ui-grad-a:#7e254e;--pb-ui-grad-b:#a23774;
 --pb-ui-hero-text:#fff8fc;--pb-ui-hero-muted:#ffe6f2;
}

@media(forced-colors:active){
 :where(.pbcore-app,.pbgm-app,.sma-page-layout,.smasc,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(h1,h2,h3,.pbcore-brandword,.sma-suite-brand>span:last-child){
 background-image:none!important;-webkit-text-fill-color:currentColor!important;color:CanvasText!important;
 }
}



/* Accessibility high-contrast mode: same geometry, stronger colours, solid readable titles. */
@media(prefers-contrast:more){
 :where(.pbcore-app,.pbgm-app,.sma-page-layout,.smasc,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial){
 --pb-ui-muted:CanvasText;--pb-ui-line:CanvasText;--pb-ui-hint:CanvasText;
 }
 :where(.pbcore-app,.pbgm-app,.sma-page-layout,.smasc,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial)
 :is(.pbcore-catalog-banner h1,.pbcore-quick-heading h2,.sma-suite-brand>span:last-child,.sc-hero h1,.bsocial-hero h1){
 background-image:none!important;-webkit-text-fill-color:currentColor!important;
 }
}

/* LAST CASCADE LAYER: high-contrast rendering always wins over gradients. */
@media(forced-colors:active){
 html body.pb-unified .pbcore-app :is(.pbcore-catalog-banner,.pbcore-quick-heading,.pbcore-agency-intro,.pbcore-agency-match-panel) :is(h1,h2),
 html body.pb-unified .pbcore-app .pbcore-head .pbcore-brandword,
 html body .sma-page-layout .sma-suite-brand>span:last-child,
 html body .star-id .star-id-hero h1,
 html body .sc-root .sc-hero h1,
 html body .bsocial .bsocial-hero h1,
 html body .sdo-site :is(h1,h2),
 html body .sdot-root :is(h1,h2){
  background:none!important;background-image:none!important;
  -webkit-text-fill-color:CanvasText!important;color:CanvasText!important;
 }
}
@media(prefers-contrast:more){
 html body.pb-unified .pbcore-app :is(.pbcore-catalog-banner,.pbcore-quick-heading) :is(h1,h2),
 html body .sma-page-layout .sma-suite-brand>span:last-child,
 html body .star-id .star-id-hero h1,
 html body .sc-root .sc-hero h1,
 html body .bsocial .bsocial-hero h1{
  background:none!important;background-image:none!important;
  -webkit-text-fill-color:currentColor!important;
 }
}


/* PB SURFACE/INK CONTRACT 2.0 — shared across Porkbelly cloud plugins.
 * A surface owns its text.  Light islands are not allowed to inherit dark-shell white.
 * Nothing in this contract changes dimensions, layout, animation, identity, or workflow.
 * This is the source copy; do not add one-off dark-mode colours to new widgets.
 */
:where(.pbcore-app,.pbgm-app,.sma-page-layout,.smasc,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial){
  --pb-surface:#ffffff;--pb-surface-alt:#fff8fb;--pb-on-surface:#302332;
  --pb-on-surface-muted:#645566;--pb-on-surface-hint:#776879;
  --pb-stroke:#ddc6d5;--pb-surface-input:#ffffff;
  --pb-interactive:#8a2458;--pb-interactive-hover:#702047;
  --pb-on-interactive:#ffffff;--pb-dark-surface:#302536;--pb-on-dark:#fff5fb;
  --pb-on-dark-muted:#e6d5e4;
  --pb-ink-gradient:linear-gradient(100deg,#65213c,#a23671 60%,#71408c);
}

/* Explicitly declare contrast for the browser's automatic theme handling.
 * Android forced-auto-dark may otherwise invert a panel but not its text. */

  :where(.pbcore-app,.pbgm-app,.sma-page-layout,.smasc,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial){color-scheme:only light;}


/* Current text rather than a transparent gradient must win in OS forced-colour mode. */
@media(forced-colors:active){
  :where(.pbcore-app,.pbgm-app,.sma-page-layout,.smasc,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(h1,h2,h3,h4,.pbcore-brandword,.sma-suite-brand>span:last-child){
    background-image:none!important;-webkit-text-fill-color:currentColor!important;
  }
}


/* Rights, Star Creator and StarPods: notes, empty states, forms and linked shows. */

 html body .sc-root :is(.sc-card,.sc-note,.sc-record,.sc-alert,.sc-filter-panel,.sc-directory,
 .sc-show,.sc-editor,.sc-production,.sc-awards,.sc-introbar,.sc-empty,.sc-entry){background-color:var(--pb-surface)!important;color:var(--pb-on-surface)!important;border-color:var(--pb-stroke)!important;}
 html body .sc-root :is(.sc-card,.sc-note,.sc-record,.sc-alert,.sc-filter-panel,.sc-directory,
 .sc-show,.sc-editor,.sc-production,.sc-awards,.sc-introbar,.sc-empty,.sc-entry) :is(p,small){color:var(--pb-on-surface-muted)!important;-webkit-text-fill-color:var(--pb-on-surface-muted)!important;}






/* PB READABILITY CONTRACT 3.0 — 2026-11-03
   Source-owned. No geometry, content, identity, booking, or transaction changes.
   Explicit surfaces plus their corresponding ink prevent mixed dark/white components.
   Decorative gradients are deliberately excluded from working copy. */
:where(.pbcore-app,.smasc,.pbgm-app,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial){
  --pb-safe-card:#fffafd;--pb-safe-ink:#302332;--pb-safe-muted:#605363;
  --pb-safe-hint:#716276;--pb-safe-border:#d9c2d3;
  --pb-safe-field:#fff;--pb-safe-soft:#fff3f8;--pb-safe-link:#852958;
  --pb-safe-dark:#27202e;--pb-safe-dark-ink:#fff2fa;--pb-safe-dark-muted:#e0d2e1;
}

/* Native darkening of a separately painted surface is not allowed. The app paints both. */
:where(.pbcore-app,.smasc,.pbgm-app,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial){color-scheme:only light;}
@media(forced-colors:active){
 :where(.pbcore-app,.smasc,.pbgm-app,.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(h1,h2,h3,h4,p,span,small,label,strong){
  background-image:none!important;-webkit-text-fill-color:CanvasText!important;color:CanvasText!important;
 }
}


/* Shared three-product companion navigation. Preserve the same nav geometry. */
html body.pb-unified .sma-page-layout .sma-suite-navigation{color-scheme:only light!important;background:#fffafd!important;background-image:none!important;color:#342638!important;border-color:#d9c2d3!important;}
html body.pb-unified .sma-page-layout .sma-suite-brand>span:last-child{background:none!important;background-image:none!important;-webkit-text-fill-color:#602943!important;color:#602943!important;}
.sma-page-layout .sma-suite-brand small{background:none!important;-webkit-text-fill-color:#914064!important;color:#914064!important;}
.sma-page-layout .sma-suite-links a{color:#55455c!important;-webkit-text-fill-color:#55455c!important;}
.sma-page-layout .sma-suite-links a.is-current{background:#fce6f1!important;color:#772447!important;-webkit-text-fill-color:#772447!important;}



/* Staff workspaces — Staff Office cards, notifications and HR forms. */
html body.pb-unified .smasc :is(.smasc-card,.smasc-panel,.smasc-activity-digest,.smasc-person,.smasc-workspace,.smasc-tablewrap,.smasc-form,.smasc-digest-line,.smasc-record,.smasc-find-result){
 background:var(--pb-safe-card)!important;color:var(--pb-safe-ink)!important;border-color:var(--pb-safe-border)!important;
 -webkit-text-fill-color:var(--pb-safe-ink)!important;
}
html body.pb-unified .smasc :is(.smasc-card,.smasc-panel,.smasc-activity-digest,.smasc-person,.smasc-workspace,.smasc-form,.smasc-digest-line,.smasc-record,.smasc-find-result)
 :is(h2,h3,h4,legend,label,summary,strong,b,.smasc-label,.smasc-section-head,.smasc-digest-head){
 background-image:none!important;color:var(--pb-safe-ink)!important;-webkit-text-fill-color:var(--pb-safe-ink)!important;
}
html body.pb-unified .smasc :is(.smasc-card,.smasc-panel,.smasc-activity-digest,.smasc-person,.smasc-workspace,.smasc-form,.smasc-digest-line,.smasc-record,.smasc-find-result)
 :is(p,small,time,td,.smasc-muted,.smasc-copy,.smasc-desc,.smasc-description){
 background-image:none!important;color:var(--pb-safe-muted)!important;-webkit-text-fill-color:var(--pb-safe-muted)!important;
}
html body.pb-unified .smasc :is(.smasc-digest-line strong,.smasc-digest-line b,.smasc-digest-line span,.smasc-digest-line time){
 color:var(--pb-safe-ink)!important;-webkit-text-fill-color:var(--pb-safe-ink)!important;
}
html body.pb-unified .smasc :is(input:not([type=checkbox]),select,textarea){
 color-scheme:only light;background:var(--pb-safe-field)!important;color:var(--pb-safe-ink)!important;
 -webkit-text-fill-color:var(--pb-safe-ink)!important;border-color:var(--pb-safe-border)!important;
}
html body.pb-unified .smasc :is(input,textarea)::placeholder{color:var(--pb-safe-hint)!important;-webkit-text-fill-color:var(--pb-safe-hint)!important;opacity:1!important;}
/* A quiet button stays high contrast even when its parent is on a dark canvas. */
html body.pb-unified .smasc .smasc-btn-quiet{background:var(--pb-safe-soft)!important;color:var(--pb-safe-link)!important;-webkit-text-fill-color:var(--pb-safe-link)!important;border-color:var(--pb-safe-border)!important;}
html body.pb-unified .smasc .smasc-btn:not(.smasc-btn-quiet){color:#fff!important;-webkit-text-fill-color:#fff!important;}
/* Staff hero remains a dark branded hero with white foreground, not a generic card. */
html body.pb-unified .smasc .smasc-hero :is(h1,h2,h3,p){color:#fff4fa!important;-webkit-text-fill-color:#fff4fa!important;}


/* Main marketplace: studios, opportunities, empty results, cards, account & check-in. */
html body.pb-unified .pbcore-app :is(.pbcore-intent-card,.pbcore-studio-card,.pbcore-model-card,.pbcore-agency-card,.pbcore-member-card,.pbcore-auth-card,.pbcore-landing-plan,.pbcore-empty,.pbcore-detail-sidebar,.pbcore-quick-group-links a,.pbcore-quick-links a){
 background:var(--pb-safe-card)!important;color:var(--pb-safe-ink)!important;border-color:var(--pb-safe-border)!important;
}
html body.pb-unified .pbcore-app :is(.pbcore-intent-card,.pbcore-studio-card,.pbcore-model-card,.pbcore-agency-card,.pbcore-member-card,.pbcore-auth-card,.pbcore-landing-plan,.pbcore-empty,.pbcore-detail-sidebar,.pbcore-quick-group-links a,.pbcore-quick-links a)
 :is(h2,h3,h4,strong,b,label,legend,summary){background-image:none!important;color:var(--pb-safe-ink)!important;-webkit-text-fill-color:var(--pb-safe-ink)!important;}
html body.pb-unified .pbcore-app :is(.pbcore-intent-card,.pbcore-studio-card,.pbcore-model-card,.pbcore-agency-card,.pbcore-member-card,.pbcore-auth-card,.pbcore-landing-plan,.pbcore-empty,.pbcore-detail-sidebar,.pbcore-quick-group-links a,.pbcore-quick-links a)
 :is(p,small,.pbcore-muted,.pbcore-subnote,.pbcore-desc){color:var(--pb-safe-muted)!important;-webkit-text-fill-color:var(--pb-safe-muted)!important;}
/* Preserve explicitly dark pricing/intro tiles with light ink. */
html body.pb-unified .pbcore-app :is(.pbcore-for-provider,.pbcore-for-client,.pbcore-landing-plan:last-child){background:var(--pb-safe-dark)!important;color:var(--pb-safe-dark-ink)!important;}
html body.pb-unified .pbcore-app :is(.pbcore-for-provider,.pbcore-for-client,.pbcore-landing-plan:last-child) :is(h2,h3,h4,strong,b,span){background-image:none!important;color:var(--pb-safe-dark-ink)!important;-webkit-text-fill-color:var(--pb-safe-dark-ink)!important;}
html body.pb-unified .pbcore-app :is(.pbcore-for-provider,.pbcore-for-client,.pbcore-landing-plan:last-child) p{color:var(--pb-safe-dark-muted)!important;-webkit-text-fill-color:var(--pb-safe-dark-muted)!important;}
/* Unboxed editorial sections sit on a light canvas irrespective of shell preference. */
html body.pb-unified .pbcore-app :is(.pbcore-studio-category-block,.pbcore-external-gigs,.pbcore-external-head){background:#fffafd!important;color:#302332!important;color-scheme:only light;}
html body.pb-unified .pbcore-app :is(.pbcore-studio-category-block,.pbcore-external-gigs,.pbcore-external-head) :is(h2,h3,h4,p,small,strong){background-image:none!important;color:#302332!important;-webkit-text-fill-color:#302332!important;}
html body.pb-unified .pbcore-app :is(.pbcore-studio-category-block,.pbcore-external-gigs) .pbcore-eyebrow{color:#932d5d!important;-webkit-text-fill-color:#932d5d!important;}
/* Check-In title is informational, not an ornamental cut-out gradient. */
html body.pb-unified .pbcore-app .pbcore-checkin-dialog{background-color:#fffbfe!important;background-image:linear-gradient(140deg,#fffbfe,#f7f2ff 64%,#ecf9ff)!important;color:#41243e!important;color-scheme:only light!important;}
html body.pb-unified .pbcore-app .pbcore-checkin-dialog{background-color:#fffbfe!important;background-image:linear-gradient(140deg,#fffbfe,#f7f2ff 64%,#ecf9ff)!important;color:#41243e!important;color-scheme:only light!important;}
html body.pb-unified .pbcore-app .pbcore-checkin-heading h2{background:none!important;color:#41243e!important;-webkit-text-fill-color:#41243e!important;}
/* Forms only change paint, never width or widget layout. */
html body.pb-unified .pbcore-app :is(input:not([type=checkbox]),select,textarea){background:var(--pb-safe-field)!important;color:var(--pb-safe-ink)!important;-webkit-text-fill-color:var(--pb-safe-ink)!important;border-color:var(--pb-safe-border)!important;}
html body.pb-unified .pbcore-app :is(input,textarea)::placeholder{color:var(--pb-safe-hint)!important;-webkit-text-fill-color:var(--pb-safe-hint)!important;opacity:1!important;}
/* App hero and approved cinematic surfaces retain white readable headings. */
html body.pb-unified .pbcore-app .pbcore-catalog-banner :is(h1,h2,h3,p){color:#fff7fc!important;-webkit-text-fill-color:#fff7fc!important;}


/* Gig Monster / Star Gig: approved listing cards and all states of search. */
html body.pb-unified .pbgm-app :is(.pbgm-panel,.pbgm-star-card,.pbgm-discovery-card,.pbgm-star-find-intro,.pbgm-star-filters,.pbgm-star-search,.pbgm-corporate-welcome,.pbgm-channel-panel,.pbgm-list-card,.pbgm-monster-card){background:var(--pb-safe-card)!important;color:var(--pb-safe-ink)!important;border-color:var(--pb-safe-border)!important;}
html body.pb-unified .pbgm-app :is(.pbgm-panel,.pbgm-star-card,.pbgm-discovery-card,.pbgm-star-find-intro,.pbgm-star-filters,.pbgm-star-search,.pbgm-corporate-welcome,.pbgm-channel-panel,.pbgm-list-card,.pbgm-monster-card)
 :is(h2,h3,h4,strong,b,legend,label,summary){background-image:none!important;color:var(--pb-safe-ink)!important;-webkit-text-fill-color:var(--pb-safe-ink)!important;}
html body.pb-unified .pbgm-app :is(.pbgm-panel,.pbgm-star-card,.pbgm-discovery-card,.pbgm-star-find-intro,.pbgm-star-filters,.pbgm-star-search,.pbgm-corporate-welcome,.pbgm-channel-panel,.pbgm-list-card,.pbgm-monster-card)
 :is(p,small,.pbgm-muted,.pbgm-description){background-image:none!important;color:var(--pb-safe-muted)!important;-webkit-text-fill-color:var(--pb-safe-muted)!important;}
html body.pb-unified .pbgm-app :is(input:not([type=checkbox]),select,textarea){background:var(--pb-safe-field)!important;color:var(--pb-safe-ink)!important;-webkit-text-fill-color:var(--pb-safe-ink)!important;border-color:var(--pb-safe-border)!important;}
html body.pb-unified .pbgm-app :is(input,textarea)::placeholder{color:var(--pb-safe-hint)!important;-webkit-text-fill-color:var(--pb-safe-hint)!important;opacity:1!important;}


/* Star ID, Rights & Royalties, StarPods, Creator, Director and Belly Social. */
html body :is(.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(.star-id-card,.sc-card,.sc-panel,.sc-box,.sc-case,.sc-form,.sdo-card,.sdot-card,.sdot-panel,.bsocial-card,.bsocial-post,.bsocial-panel){
 background:var(--pb-safe-card)!important;color:var(--pb-safe-ink)!important;border-color:var(--pb-safe-border)!important;
}
html body :is(.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(.star-id-card,.sc-card,.sc-panel,.sc-box,.sc-case,.sc-form,.sdo-card,.sdot-card,.sdot-panel,.bsocial-card,.bsocial-post,.bsocial-panel)
 :is(h2,h3,h4,strong,b,label,legend,summary){background-image:none!important;color:var(--pb-safe-ink)!important;-webkit-text-fill-color:var(--pb-safe-ink)!important;}
html body :is(.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(.star-id-card,.sc-card,.sc-panel,.sc-box,.sc-case,.sc-form,.sdo-card,.sdot-card,.sdot-panel,.bsocial-card,.bsocial-post,.bsocial-panel)
 :is(p,small,.muted,.sc-muted,.sdot-muted){color:var(--pb-safe-muted)!important;-webkit-text-fill-color:var(--pb-safe-muted)!important;}
html body :is(.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(input:not([type=checkbox]),select,textarea){background:var(--pb-safe-field)!important;color:var(--pb-safe-ink)!important;-webkit-text-fill-color:var(--pb-safe-ink)!important;border-color:var(--pb-safe-border)!important;}
html body :is(.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(input,textarea)::placeholder{color:var(--pb-safe-hint)!important;-webkit-text-fill-color:var(--pb-safe-hint)!important;opacity:1!important;}


/* PORKBELLY READABILITY V51 — functional text and its own painted surface.
   Solid text instead of inherited clipped gradients. No sizes, layout or endpoints changed.
   Scope: public-facing plugin roots; never wp-admin. 2026-11-03. */

/* Public product cards: solid functional text within self-painted surfaces. */
html body :is(.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(
 .star-id-card,.star-id-secondary,.star-id-notice,.sc-card,.sc-panel,.sc-editor,.sc-entry,
 .sc-awards,.sc-production,.sc-show,.sc-discovery-shell,.sc-record,.sc-form,.sc-box,
 .sdo-card,.sdo-section,.sdot-card,.sdot-panel,.sdot-formgrid,.bsocial-card,.bsocial-post,.bsocial-panel){
 --pb-v51-text:#352439;--pb-v51-muted:#625267;
}

html body :is(.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(
 .star-id-card,.star-id-secondary,.star-id-notice,.sc-card,.sc-panel,.sc-editor,.sc-entry,
 .sc-awards,.sc-production,.sc-show,.sc-discovery-shell,.sc-record,.sc-form,.sc-box,
 .sdo-card,.sdo-section,.sdot-card,.sdot-panel,.sdot-formgrid,.bsocial-card,.bsocial-post,.bsocial-panel)
 :is(h1,h2,h3,h4,h5,label,legend,summary,b,strong){
 background-image:none!important;color:var(--pb-v51-text)!important;-webkit-text-fill-color:var(--pb-v51-text)!important;
}
html body :is(.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(
 .star-id-card,.star-id-secondary,.star-id-notice,.sc-card,.sc-panel,.sc-editor,.sc-entry,
 .sc-awards,.sc-production,.sc-show,.sc-discovery-shell,.sc-record,.sc-form,.sc-box,
 .sdo-card,.sdo-section,.sdot-card,.sdot-panel,.sdot-formgrid,.bsocial-card,.bsocial-post,.bsocial-panel)
 :is(p,small,.muted,.sc-muted,.sdot-muted){color:var(--pb-v51-muted)!important;-webkit-text-fill-color:var(--pb-v51-muted)!important;}
/* Native options should reflect the same background and ink as the containing field. */
html body :is(.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) :is(input:not([type=checkbox]),textarea,select){-webkit-text-fill-color:currentColor!important;}
html body :is(.star-id,.sc-root,.sdo-site,.sdot-root,.bsocial) select option{color:#302438!important;background:#fffafd!important;}


