/* GO SPORTS PRO v5.4.1 — Universal Component Migration 1.0
   Migrates remaining non-semantic colored content panels to the governed graphite system.
   Metallic/chrome heroes and semantic status treatments are intentionally preserved. */
:root{
  --gsp-migration-surface:#121413;
  --gsp-migration-raised:#181b19;
  --gsp-migration-soft:#0d0f0e;
  --gsp-migration-border:#2a2f2b;
  --gsp-migration-text:#f4f5f3;
  --gsp-migration-muted:#9aa19b;
}

/* Explicit hero protection. */
:where(.workspace-hero,.inner-workspace-hero,.gsp-workspace-hero,.hero-metallic,.metallic-hero,
.executive-hero,.today-hero,.community-hero,.event-hero,.mission-hero,.command-hero,
[data-gsp-hero],[class*="metallic"][class*="hero"],[class*="hero"][style*="background-image"]){
  isolation:isolate;
}

/* Migrate legacy information shells and module panels. */
:where(
  [class*="connection"],[class*="overview"],[class*="summary"],[class*="brief"],
  [class*="dossier"],[class*="breakdown"],[class*="comparison"],[class*="timeline"],
  [class*="history"],[class*="monitoring"],[class*="assessment"],[class*="execution"],
  [class*="governance"],[class*="readiness"],[class*="diagnostic"],[class*="calibration"],
  [class*="inspector"],[class*="review"],[class*="matrix"],[class*="queue"],
  .jos-panel,.jos-card,.jos-section,.joe-os-command-center,.joe-os-brief-grid article,
  .joe-os-authority-stack article,.joe-os-app-dock button,
  .mission-app>section,.mission-app>header,.mission-app__grid>section,.mission-app__queue article,
  .mission-app__health article,.joe-nexus-v5,.joe-nexus-v5__grid>section,.joe-nexus-v5__story,
  .joe-nexus-v5__cross,.joe-nexus-v5__graph article,.joe-nexus-v5__cross article,.joe-nexus-v5 footer
):not(.workspace-hero):not(.inner-workspace-hero):not(.gsp-workspace-hero):not(.hero-metallic):not(.metallic-hero)
:not(.executive-hero):not(.today-hero):not(.community-hero):not(.event-hero):not(.mission-hero):not(.command-hero)
:not([data-gsp-hero]):not(.tag):not(.badge):not(.status-pill):not(.decision-pill){
  background-color:var(--gsp-migration-surface)!important;
  background-image:none!important;
  border-color:var(--gsp-migration-border)!important;
  box-shadow:none!important;
}

/* Nested operational content uses one raised graphite surface. */
:where(
  [class*="connection"] article,[class*="overview"] article,[class*="summary"] article,
  [class*="brief"] article,[class*="dossier"] article,[class*="breakdown"] article,
  [class*="comparison"] article,[class*="timeline"] article,[class*="history"] article,
  [class*="monitoring"] article,[class*="assessment"] article,[class*="execution"] article,
  [class*="governance"] article,[class*="readiness"] article,[class*="diagnostic"] article,
  [class*="calibration"] article,[class*="inspector"] article,[class*="review"] article,
  [class*="matrix"] article,[class*="queue"] article,
  [class*="connection"]>div,[class*="overview"]>div,[class*="summary"]>div,
  [class*="breakdown"]>div,[class*="comparison"]>div,[class*="assessment"]>div
):not(.workspace-hero):not([data-gsp-hero]){
  background-color:var(--gsp-migration-raised)!important;
  background-image:none!important;
  border-color:var(--gsp-migration-border)!important;
  box-shadow:none!important;
}

/* Known legacy blue/teal systems. */
:where(.nmi-panel,.nmi-comparison,.nmi-bottom article,.nmi-joe,.nmi-game-dossier,
.ao-head,.ao-panel,.ao-action,.ao-metrics article,.ao-cycle article,.ao-list article,.ao-result,
.oci-panel,.oci-kpis article,.oci-boundary,.oci-summary article,.oci-matrix article,.oci-detail>div,.oci-candidates article,
.mission-app,.mission-app__hero,.mission-app__queue dl div,.mission-app__progress,
.joe-os-command-center,.joe-os-titlebar,.joe-os-brief-grid article,.joe-os-authority-stack article,
.joe-nexus-v5,.joe-nexus-v5__hero,.joe-nexus-v5__grid>section,.joe-nexus-v5__story,.joe-nexus-v5__cross,
.joe-nexus-v5__graph article,.joe-nexus-v5__cross article,.joe-nexus-v5 footer){
  background-color:var(--gsp-migration-surface)!important;
  background-image:none!important;
  border-color:var(--gsp-migration-border)!important;
  box-shadow:none!important;
}

/* Preserve hierarchy without colored fills. */
:where(.section-eyebrow,.eyebrow,.kicker,[class*="eyebrow"],[class*="__eyebrow"],.ey){
  color:var(--gsp-brand)!important;
}
:where([class*="connection"] p,[class*="overview"] p,[class*="summary"] p,
[class*="brief"] p,[class*="dossier"] p,[class*="breakdown"] p,
[class*="monitoring"] p,[class*="assessment"] p,[class*="governance"] p){
  color:var(--gsp-migration-muted)!important;
}

/* Status colors are allowed only on compact semantic elements and values. */
:where(.tag,.badge,.status-pill,.decision-pill,[data-status],[data-gsp-component="status"]){
  background-image:none!important;
}

/* No decorative cyan/blue borders on migrated content. */
:where(.main-content,.workspace-content,.workspace-body,.dashboard-content,.engine-content)
  :where(section,article,div)[style*="border-color: rgb(0"],
:where(.main-content,.workspace-content,.workspace-body,.dashboard-content,.engine-content)
  :where(section,article,div)[style*="border-color:#0"]{
  border-color:var(--gsp-migration-border)!important;
}
