/* ==========================================================================
   Selectsys brand facelift (Nov 2026) - loaded last on the PHP site and the WordPress blog.
   CoverPay-inspired system: primary #1B4BC4, deep #153A9A, navy #0C1B33; Manrope.
   The colour tokens themselves live in sx-tokens.css; this layer only sets the
   chrome treatments (header, announcement strip, footer), shared interaction
   states and typography that the token change alone cannot express.
   Contrast: white and #DCE5FA text on #153A9A / #1B4BC4 >= 6.6:1; footer link
   colours >= 6:1 on the darkest footer ground; focus rings visible on both grounds.
   ========================================================================== */

:root{
  --sx-grad-chrome: linear-gradient(90deg, #153A9A 0%, #1B4BC4 100%);
  --sx-grad-footer: linear-gradient(180deg, #153A9A 0%, #12317F 100%);
  --sx-grad-band:   linear-gradient(135deg, #153A9A 0%, #1B4BC4 100%);
}

/* ---------------------------------------------------------------- type */
body, .sx-page, .sx-footer, .sx-header, .btn, input, select, textarea, button{font-family:var(--sx-font)}
h1, h2, h3, h4, .h1, .h2, .h3, .h4{font-family:var(--sx-font);color:var(--sx-ink)}
h1, .h1, h2, .h2{letter-spacing:-.02em}

/* -------------------------------------------------------------- header */
body.sx-page .sx-header{background:var(--sx-grad-chrome) !important;box-shadow:0 1px 0 rgba(12,27,51,.12)}
body.sx-page .sx-nav .sx-link{color:#E3EAFB !important}
body.sx-page .sx-nav .sx-link:hover,
body.sx-page .sx-nav .sx-link:focus-visible,
body.sx-page .sx-nav .sx-link[aria-expanded="true"]{background-color:rgba(255,255,255,.16) !important;color:#fff !important}
body.sx-page .sx-header .sx-actions .sx-btn.primary{color:var(--sx-blue-deep) !important;font-weight:700 !important}
body.sx-page .sx-ann{background:#153A9A !important;border-top:1px solid rgba(255,255,255,.10);border-bottom:0}
body.sx-page .sx-ann .msg .ds,
body.sx-page .sx-ann .msg a{color:#C9D6F2 !important}

/* -------------------------------------------------------------- footer */
footer.sx-footer{background:var(--sx-grad-footer) !important;color:#DCE5FA;border-top:0}
footer.sx-footer .sx-footer-tagline{color:#DCE5FA !important}
footer.sx-footer .sx-footer-hq{color:#C9D6F2 !important;border-color:rgba(255,255,255,.16) !important}
footer.sx-footer .sx-footer-hq-label,
footer.sx-footer .sx-footer-label,
footer.sx-footer .sx-footer-index .sx-footer-label,
footer.sx-footer .sx-footer-group.compact .sx-footer-label{color:#C9D6F2 !important;border-color:rgba(255,255,255,.16) !important}
footer.sx-footer a,
footer.sx-footer .sx-footer-group a,
footer.sx-footer .sx-footer-inline a{color:#E3EAFB !important}
footer.sx-footer a:hover,
footer.sx-footer .sx-footer-group a:hover,
footer.sx-footer .sx-footer-inline a:hover{color:#fff !important;text-decoration:underline}
footer.sx-footer p, footer.sx-footer li, footer.sx-footer small, footer.sx-footer span{color:inherit}
footer.sx-footer .sx-footer-legal, footer.sx-footer .sx-footer-legal *{color:#C9D6F2 !important}
footer.sx-footer [class*="line"], footer.sx-footer hr{border-color:rgba(255,255,255,.16) !important}
footer.sx-footer a:focus-visible, footer.sx-footer button:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* ------------------------------------------------- buttons, links, focus */
.btn-primary,
.sx-btn.primary{background-color:var(--sx-blue) !important;border-color:var(--sx-blue) !important;color:#fff !important}
.btn-primary:hover, .btn-primary:focus-visible,
.sx-btn.primary:hover{background-color:var(--sx-blue-deep) !important;border-color:var(--sx-blue-deep) !important;color:#fff !important}
.btn-outline-primary{color:var(--sx-blue) !important;border-color:var(--sx-blue) !important;background:#fff !important}
.btn-outline-primary:hover, .btn-outline-primary:focus-visible{background:var(--sx-tint-blue) !important;color:var(--sx-blue-deep) !important}
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{outline:2px solid var(--sx-blue);outline-offset:2px;box-shadow:none}
.form-control:focus, .form-select:focus{border-color:var(--sx-blue) !important;box-shadow:0 0 0 3px rgba(27,75,196,.18) !important}

/* ------------------------------------------- text on blue grounds (contrast >= 4.5:1)
   Found by the page-family contrast crawl (DEFECT_REGISTER R-023). */
.sx-page .sx-section.ground-blue{background:var(--sx-grad-band)}
.sx-page .sx-section.ground-blue a:not(.sx-btn):not(.btn){color:#fff;text-decoration:underline}
.sx-page .sx-section.ground-blue em{color:#DCE5FA}
.sx-master .sxm-cta .sxm-wrap{background:var(--sx-grad-band);box-shadow:0 24px 48px -32px rgba(21,58,154,.55)}
.sx-master .sxm-cta .sxm-wrap :is(h2,h3){color:#fff !important}
.sx-master .sxm-cta .sxm-wrap :is(p,li){color:#E3EAFB !important}
.sx-master .sxm-cta .sxm-wrap a:not(.btn){color:#fff !important;text-decoration:underline}
.sx-master .sxm-cta .btn-light{color:var(--sx-blue-deep) !important}
body:not(.sx-loc) section.bg-primary a:not(.btn), body:not(.sx-loc) section.bg-primary .text-primary{color:#fff !important;text-decoration:underline}  /* location pages restyle this band as a light callout (sx-bpo.css) */
body.sx-loc.sx-legacy section.cta-section.efc > .container :is(p,li){color:#E3EAFB !important}
body.sx-loc.sx-legacy section.cta-section.efc > .container a:not(.btn){color:#fff !important}
.components h3{color:#fff !important}
/* comparison tables: header cells with .bg-light had white text on white (pre-existing) */
body table.styled-table th.bg-light, table th.bg-light{color:#0C1B33 !important}
