/* GFSA front-end contrast guardrails. Keep shared text readable when global heading rules meet dark feature panels. */
.page-title-section h1,
.public-hero h1,
.public-hero h2,
.guide-hero h1,
.dev-hero h1,
.policy-hero h1,
.membership-hero h1,
.directory-hero h1,
.profile-hero h1,
.member-homepage-hero h1,
.dashboard-hero h1,
.dashboard-hero__title,
.cert-hero h1,
.tier-hero h1,
.org-hero h1,
.invite-hero h1,
.op-hero h1,
.srv-hero h1,
.ord-hero h1 {
    color: #fff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

.page-title-section p,
.public-hero p,
.guide-hero p,
.dev-hero p,
.policy-hero p,
.membership-hero p,
.directory-hero p,
.profile-hero p,
.member-homepage-hero p,
.dashboard-hero p,
.cert-hero p,
.tier-hero p,
.org-hero p,
.invite-hero p,
.op-hero p,
.srv-hero p,
.ord-hero p {
    color: rgba(255, 255, 255, .94) !important;
    opacity: 1 !important;
}

.public-hero a:not(.btn),
.guide-hero a:not(.btn),
.dev-hero a:not(.btn),
.policy-hero a:not(.btn),
.membership-hero a:not(.btn),
.directory-hero a:not(.btn),
.profile-hero a:not(.btn),
.member-homepage-hero a:not(.btn),
.dashboard-hero a:not(.btn),
.cert-hero a:not(.btn),
.tier-hero a:not(.btn),
.org-hero a:not(.btn),
.invite-hero a:not(.btn),
.op-hero a:not(.btn),
.srv-hero a:not(.btn),
.ord-hero a:not(.btn) {
    color: #ffe4ad !important;
    text-decoration: underline;
    text-underline-offset: .18em;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    color: #17233a;
    background-color: #fff;
}

input::placeholder,
textarea::placeholder {
    color: #667085 !important;
    opacity: 1 !important;
}

input:disabled,
select:disabled,
textarea:disabled {
    color: #475467 !important;
    background: #eef2f6 !important;
    opacity: 1 !important;
}

.alert-danger,
.org-alert--error,
.invite-error,
.op-error,
.srv-error,
.ord-error,
.tier-error {
    color: #7a1717 !important;
}

.alert-success,
.org-alert--success,
.op-ok,
.srv-success,
.ord-success,
.tier-success {
    color: #14532d !important;
}

.official-partner-badge {
    color: #684b25 !important;
}

.profile-card__meta {
    color: #596675 !important;
}

@media (forced-colors: active) {
    .page-title-section h1,
    .public-hero h1,
    .guide-hero h1,
    .dev-hero h1,
    .policy-hero h1,
    .membership-hero h1,
    .directory-hero h1,
    .profile-hero h1,
    .dashboard-hero h1,
    .tier-hero h1,
    .org-hero h1,
    .invite-hero h1,
    .op-hero h1,
    .srv-hero h1,
    .ord-hero h1 {
        color: CanvasText !important;
        text-shadow: none;
    }
}
