/* Public pages only. Keep the bright brand accent for decoration and dark
   surfaces; use a darker orange where white or small light-surface text needs
   WCAG AA contrast. No dimensions, visibility, pointer or layout rules here. */
:root {
    --contrast-orange-fill: #ff5c02;
    --contrast-orange-hover: #e05000;
    --contrast-orange-text: #b83f00;
}

/* Explicit controls and filled orange utilities. Disabled controls retain their
   existing styling and eligibility cues. !important also covers legacy inline
   colours; event handlers and their disabled-state logic stay unchanged. */
:is(
    .nav-signup-btn, .footer-newsletter-btn, .cta-btn-primary,
    .agency-btn, .acc-btn, .biz-hero-btn-primary, .biz-how-btn,
    .biz-cta-btn-primary, .hero-pill-cta-btn, .btn-steps-primary,
    .dp-btn-solid, .btn-orange, .btn-pill-orange, .btn-action-delivery,
    .package-photo-action-primary, .faq-primary-action, .faq-topic-pill.active,
    .nh-tab.active, .step-nav-card.active .step-nav-badge,
    .glass-panel .btn-primary,
    .bg-brand-orange.text-white, .bg-orange-500.text-white,
    .swal2-confirm[style*="rgb(249, 115, 22)"],
    .swal2-confirm[style*="rgb(255, 92, 0)"],
    [class~="bg-[#ff5c00]"].text-white,
    [class~="bg-[#FF4500]"].text-white,
    [class~="from-[#ff7a00]"].text-white,
    :is(#delivery-submit-btn, #moving-submit-btn):is([style*="background: #f97316"], [style*="background: rgb(249, 115, 22)"]),
    #confirm-location-btn,
    #nh-package-modal button[onclick="confirmPackageDetails()"]
):not(:disabled):not([aria-disabled="true"]):not(.disabled) {
    background-color: var(--contrast-orange-fill) !important;
    background-image: none !important;
    color: #ffffff !important;
}

:is(
    .nav-signup-btn, .footer-newsletter-btn, .cta-btn-primary,
    .agency-btn, .acc-btn, .biz-hero-btn-primary, .biz-how-btn,
    .biz-cta-btn-primary, .hero-pill-cta-btn, .btn-steps-primary,
    .dp-btn-solid, .btn-orange, .btn-pill-orange, .btn-action-delivery,
    .package-photo-action-primary, .faq-primary-action, .faq-topic-pill.active,
    .nh-tab.active, .glass-panel .btn-primary,
    .bg-brand-orange.text-white, .bg-orange-500.text-white,
    .swal2-confirm[style*="rgb(249, 115, 22)"],
    .swal2-confirm[style*="rgb(255, 92, 0)"],
    [class~="bg-[#ff5c00]"].text-white,
    [class~="bg-[#FF4500]"].text-white,
    [class~="from-[#ff7a00]"].text-white,
    :is(#delivery-submit-btn, #moving-submit-btn):is([style*="background: #f97316"], [style*="background: rgb(249, 115, 22)"]),
    #confirm-location-btn,
    #nh-package-modal button[onclick="confirmPackageDetails()"]
):not(:disabled):not([aria-disabled="true"]):not(.disabled):is(:hover, :focus-visible) {
    background-color: var(--contrast-orange-hover) !important;
}

/* Footer banner title uses white lettering per brand request. */
.footer-banner-title {
    color: #ffffff !important;
}

/* These selectors belong to light sections, not the orange-on-dark headings. */
:is(
    .mobile-nav-link.active, .mobile-nav-link:hover,
    .faq-all-link,
    .biz-how-eyebrow, .biz-step-num, .biz-features-eyebrow,
    .steps-eyebrow-text, .step-num-tag,
    .nh-sync-indicator, #landing-manifest-text,
    #nh-form-manifest [style*="text-decoration: underline"],
    #nh-location-modal [style*="color: #f97316"],
    #nh-package-modal [style*="color: #f97316"],
    .download-app-section [class~="text-[#ff5c00]"],
    .steps-bottom-action a[href$="/policy/driver-agreement"]
) {
    color: var(--contrast-orange-text) !important;
}

#sticky-scroll-section :is(.timeline-eyebrow, .sticky-step-text h2 strong) {
    color: #ff5c02 !important;
}

/* The vehicle label drops below the large-text threshold on mobile and sits
   over a grey gradient, so it needs a darker tone than the white-surface text. */
#nioBadgeModel {
    color: #9a3412 !important;
}

html:not(.dark) .site-navbar.scrolled :is(.nav-link-item:hover, .nav-login-link:hover) {
    color: var(--contrast-orange-text) !important;
}

/* Initials are text, even when their coloured circle is decorative. */
:is(.stacking-avatar-badge, .driver-stacking-avatar)[style*="#f97316"] {
    color: #0f172a !important;
}

