/* ================================================================
   Environment overrides — defeat leftover plugin CSS on the
   projectadresearch WordPress (pixfort-core, Elementor, WooCommerce)
   that ships from the original clone and otherwise overrides our theme.

   Everything here is scoped to `body.theme-ad-research` so it NEVER
   touches the site's other (Elementor-built) pages, and uses !important
   only where a plugin already uses it. Enqueued LAST (see functions.php)
   so it also wins any same-specificity ties.

   Symptom this fixes: pixfort forced `font-family:"Inter Tight"` on the
   body, so our Anek Telugu / Poppins never showed on the live server
   even though the theme CSS was loading correctly.
   ================================================================ */

/* --- Safety net: if any late/shutdown PHP fatal on the host injects WordPress's
       error-page markup (<body id="error-page"> + inline max-width:700px), that style
       leaks onto our merged body and caps the whole site to 700px (desktop renders
       tablet-size). Neutralise it so a stray backend error can't wreck the layout. --- */
#error-page { max-width: none !important; margin: 0 !important; padding: 0 !important; }
html body.theme-ad-research { max-width: none !important; }

/* --- Typography: reclaim our font stack from pixfort's Inter Tight --- */
body.theme-ad-research,
body.theme-ad-research p,
body.theme-ad-research a,
body.theme-ad-research li,
body.theme-ad-research span,
body.theme-ad-research td,
body.theme-ad-research th,
body.theme-ad-research label,
body.theme-ad-research input,
body.theme-ad-research select,
body.theme-ad-research textarea,
body.theme-ad-research button { font-family: var(--font-body) !important; }

body.theme-ad-research h1,
body.theme-ad-research h2,
body.theme-ad-research h3,
body.theme-ad-research h4,
body.theme-ad-research h5,
body.theme-ad-research h6,
body.theme-ad-research .ad-h1,
body.theme-ad-research .ad-h2,
body.theme-ad-research .ad-h3,
body.theme-ad-research .ad-h4,
body.theme-ad-research .ad-h5,
body.theme-ad-research .ad-display-1,
body.theme-ad-research .ad-eyebrow { font-family: var(--font-display) !important; }

body.theme-ad-research .ad-btn { font-family: var(--font-ui) !important; }

/* --- Control chrome: pixfort/Elementor add uppercasing, letter-spacing,
       and link underlines to global element selectors. Neutralise inside
       our components so buttons/links render as designed. --- */
body.theme-ad-research .ad-btn {
	text-transform: none !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
}
body.theme-ad-research .ad-nav a,
body.theme-ad-research .ad-footer a { text-decoration: none; }

/* --- WooCommerce default button skin can bleed onto our add-to-cart
       controls; keep our .ad-btn styling authoritative. --- */
/* :not(.ad-btn--gradient) matters — without it this rule strips the brand gradient off our
   own buttons (it is a background-image), leaving white text on a white panel. */
body.theme-ad-research .woocommerce a.ad-btn:not(.ad-btn--gradient),
body.theme-ad-research .woocommerce button.ad-btn:not(.ad-btn--gradient),
body.theme-ad-research a.ad-btn.button:not(.ad-btn--gradient),
body.theme-ad-research button.ad-btn:not(.ad-btn--gradient) {
	background-image: none;
	box-shadow: none;
}
