/*
 * Salient bridge - the only rules that target the parent theme's own markup.
 * The selectors #header-outer, #top, #footer-outer and .container-wrap were checked against the
 * Salient 16.0.5 package supplied by WeStorix. Check them again on staging after updating Salient
 * to the current release; prefer the matching Salient theme option where one exists.
 */

/* One family everywhere. */
body.wx-site,
body.wx-site #header-outer,
body.wx-site #top nav > ul > li > a,
body.wx-site #footer-outer,
body.wx-site h1, body.wx-site h2, body.wx-site h3, body.wx-site h4, body.wx-site h5, body.wx-site h6,
body.wx-site input, body.wx-site select, body.wx-site textarea, body.wx-site button,
body.wx-site .nectar-button {
  font-family: Inter, system-ui, Arial, sans-serif;
}

body.wx-site { color: #1F2A44; text-align: left; overflow-x: clip; }

/* Header: white, fixed height, navy links. Height itself is set in Salient options (72 px). */
body.wx-site #header-outer { background-color: #fff; box-shadow: none; border-bottom: 1px solid #E1EAF6; }
body.wx-site #top nav > ul > li > a { color: #253761; font-weight: 500; font-size: 15px; letter-spacing: 0; text-transform: none; }

/* Visible keyboard focus on theme controls. */
body.wx-site a:focus-visible,
body.wx-site button:focus-visible,
body.wx-site [tabindex]:focus-visible { outline: 3px solid #4F71BF; outline-offset: 3px; }

/* Let full-bleed .wx-band sections sit flush: no theme padding above the first band. */
body.wx-site .container-wrap { padding-top: 0; padding-bottom: 0; }

/* Salient's widget footer and copyright bar are replaced by the WeStorix footer (functions.php). */
body.wx-site #footer-outer { display: none; }

/* Static site: neutralize entrance animation states if any element is left animated by mistake. */
body.wx-site [data-animation],
body.wx-site .nectar-fade-in,
body.wx-site .has-animation { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }

html { scroll-behavior: auto; scroll-padding-top: 88px; }

/* Salient's "footer reveal" effect reserves empty space for its own footer and casts a shadow
   over it. That footer is not used, so the space and the shadow are removed. Also switch the
   effect off in Salient > Footer. */
body.wx-site .container-wrap,
body.wx-site #ajax-content-wrap { margin-bottom: 0 !important; box-shadow: none !important; }
body.wx-site .container-wrap::after,
body.wx-site #ajax-content-wrap::after { box-shadow: none !important; }

/* News uses the WeStorix templates: no floating share button from the parent theme. */
body.wx-site .nectar-social.fixed { display: none !important; }

/* News articles: Salient treats them as posts with a see-through header (white menu text, its
   alternative logo) and reserves extra height under the text. The WeStorix article template has
   its own top band, so the header stays white with dark blue links and the reserved height goes.
   Also switch the see-through header off in Salient > Header Navigation > Transparent Header Effect. */
body.wx-site #header-outer.transparent { background-color: #fff !important; border-bottom: 1px solid #E1EAF6; }
body.wx-site #header-outer.transparent #top nav > ul > li > a,
body.wx-site #header-outer.transparent #top nav > ul > li > a > .menu-title-text { color: #253761 !important; opacity: 1 !important; }
body.wx-site.single-post .container-wrap,
body.wx-site.single-post .container-wrap > .main-content,
body.wx-site.single-post .container-wrap > .main-content > .row { min-height: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
/* ...and no space between the header and the article's top band. */
body.wx-site.single-post .container-wrap,
body.wx-site.single-post .container-wrap > .main-content,
body.wx-site.single-post .container-wrap > .main-content > .row { padding-top: 0 !important; margin-top: 0 !important; }
body.wx-site .container-wrap { background-color: #fff; }
