/**
 * Neutralizes shop styling that leaks into the shared site header on plus.
 *
 * wrapper.php marks the ENTIRE page wrapper as .fp__woo-commerce on WooCommerce
 * pages -- header included. blog-style.css (served from www.fangraphs.com, not
 * editable here) contains bare-element rules scoped to that class which are
 * meant for shop content but land on the header chrome inside #top:
 *
 *   .fp__woo-commerce h1..h6  { border-bottom: 3px solid #50ae26;
 *                               max-width: 500px; color: #000; }
 *     -> the "green bar" in the search/nav dropdowns is two column headings
 *        side by side, each wearing that underline.
 *
 *   .fp__woo-commerce select,
 *   .fp__woo-commerce input:not([type=checkbox])
 *                             { font-size: 14px; border: 1px solid #bbb;
 *                               min-width: 150px; }
 *     -> shrank the MUI "Player & Blog Search" box and double-bordered it.
 *
 * Every rule here is scoped to #top, whose id out-specifies the leaking (0,n,n)
 * selectors regardless of stylesheet order. Loaded on the same condition
 * wrapper.php uses to add the class, so page and neutralizer always travel
 * together. None of this touches the shop content below the header.
 */

.fp__woo-commerce #top h1,
.fp__woo-commerce #top h2,
.fp__woo-commerce #top h3,
.fp__woo-commerce #top h4,
.fp__woo-commerce #top h5,
.fp__woo-commerce #top h6 {
	color: inherit;
	border-bottom: 0;
	max-width: none;
}

.fp__woo-commerce #top input:not([type="checkbox"]),
.fp__woo-commerce #top select {
	font-size: inherit;
	border: 0;
	min-width: 0;
}

/* -------------------------------------------------------------------------
 * Footer ad slots, hidden on plus's WooCommerce pages.
 *
 * The shared footer (extfooter.aspx) ships two Ezoic placeholders
 * (#ezoic-pub-ad-placeholder-124 above the footer bar, -113 inside it). With
 * no ad to fill them they reserve an empty grey band above the footer -- and
 * per the same decision as the below-header slot (extheader.php), the
 * membership shop carries no ad slots: every visitor here is a prospective
 * buyer mid-funnel. Scoped to this stylesheet, which only loads on WooCommerce
 * pages, so the rest of plus and every other subsite keep their footer ads.
 * ---------------------------------------------------------------------- */
#ezoic-pub-ad-placeholder-124,
#ezoic-pub-ad-placeholder-113 {
	display: none;
}

/* The rest of the pre-footer band: #footer ships ~30px of top padding plus a
   literal <br> in the extfooter.aspx markup before the footer bar. Together
   with the (now hidden) ad slot they formed the empty grey belt between page
   content and the "Updated" bar. Tightened on WooCommerce pages only. */
/* NOTE: a set of `body > #footer` rules once lived here, fighting a grey
   band above the footer bar. The band's real cause was a stray </div> in
   single-product.php closing #wrapper early and ejecting #footer onto the
   grey <body> (see the note in that template). With that fixed, #footer sits
   inside the white #wrapper and those selectors matched nothing -- removed
   rather than left as dead code. The ad-slot hides above remain: they are
   id-scoped and independent of nesting. */
