/*
 Theme Name: Predictive Safety
 Theme URI: https://sst.nyc
 Description: Astra child theme for SST.NYC — dark dashboard support, Obsidian Gold accents, zero Astra conflicts.
 Author: Predictive Safety LLC
 Author URI: https://sst.nyc
 Template: astra
 Version: 1.0.1
 Text Domain: predictive-safety
*/

/* =========================================================================
   Global: Kill Astra's gray text defaults on dark-themed pages
   These body classes are added by our plugins via body_class filter.
   ========================================================================= */

/* Affiliate Dashboard */
body.sst-affiliate-dashboard,
body.sst-affiliate-dashboard .site-content,
body.sst-affiliate-dashboard .ast-container,
body.sst-affiliate-dashboard .entry-content,
body.sst-affiliate-dashboard article {
    background: #08080a;
}

body.sst-affiliate-dashboard table,
body.sst-affiliate-dashboard th,
body.sst-affiliate-dashboard td {
    border-color: #2a2a32;
}

body.sst-affiliate-dashboard th {
    background: #18181f;
}

/* B2B Dashboard (future-proof) */
body.sst-b2b-dashboard,
body.sst-b2b-dashboard .site-content,
body.sst-b2b-dashboard .ast-container,
body.sst-b2b-dashboard .entry-content {
    background: #08080a;
}

/* Kill Astra page headers on dark-themed pages */
body.sst-affiliate-dashboard .ast-page-header-section,
body.sst-affiliate-dashboard .page-header,
body.sst-affiliate-dashboard .entry-header,
body.sst-affiliate-dashboard .elementor-widget-heading,
body.sst-affiliate-dashboard .ast-archive-description {
    display: none;
}

/* Astra form element resets for dark pages — buttons excluded (they have their own bg) */
body.sst-affiliate-dashboard select,
body.sst-affiliate-dashboard input,
body.sst-affiliate-dashboard textarea {
    color: inherit;
    background: inherit;
}

body.sst-affiliate-dashboard select option {
    background: #18181f;
    color: #f0f0f5;
}

/* =========================================================================
   Support Widget — fix gray-on-dark labels
   ========================================================================= */

.sst-widget-panel label,
.sst-widget-panel .sst-widget-field label {
    color: #c9a84c !important;
}

.sst-widget-panel .sst-widget-panel-body p,
.sst-widget-panel .sst-support-form p {
    color: #f0f0f5 !important;
}

/* =========================================================================
   Global: dark text on amber backgrounds (buttons, badges)
   Prevents Astra from overriding button text color
   ========================================================================= */

body.sst-affiliate-dashboard .sst-aff-btn--copy,
body.sst-affiliate-dashboard .sst-aff-share-btn,
body.sst-affiliate-dashboard .sst-aff-claim-btn,
body.sst-affiliate-dashboard .sst-aff-coach__open:hover,
body.sst-affiliate-dashboard .sst-aff-invoice-send {
    color: #0e1016 !important;
}
