/* Esyoh ads: the same space above and below every ad, on every page and layout.
   Desktop 30px above / 40px below, mobile 25px above / 30px below (agreed 2026-12-02).
   Loaded from the footers, after styles-min.css. Generated by make_esy_css.py. */

/* 1. Remove the stray line breaks / empty spacer paragraphs right before and after an ad */
br:has(+ script + .esy_widget_container),
br:has(+ link + .esy_widget_container),
br:has(+ .esy_widget_container),
br:has(+ br + script + .esy_widget_container),
br:has(+ br + link + .esy_widget_container),
br:has(+ br + .esy_widget_container),
br:has(+ br + br + script + .esy_widget_container),
br:has(+ br + br + link + .esy_widget_container),
br:has(+ br + br + .esy_widget_container),
br:has(+ br + br + br + script + .esy_widget_container),
br:has(+ br + br + br + link + .esy_widget_container),
br:has(+ br + br + br + .esy_widget_container),
p:empty:has(+ script + .esy_widget_container),
p:empty:has(+ link + .esy_widget_container),
p:empty:has(+ .esy_widget_container),
p:empty:has(+ br + script + .esy_widget_container),
p:empty:has(+ br + link + .esy_widget_container),
p:empty:has(+ br + .esy_widget_container),
p:empty:has(+ br + br + script + .esy_widget_container),
p:empty:has(+ br + br + link + .esy_widget_container),
p:empty:has(+ br + br + .esy_widget_container),
p:empty:has(+ br + br + br + script + .esy_widget_container),
p:empty:has(+ br + br + br + link + .esy_widget_container),
p:empty:has(+ br + br + br + .esy_widget_container),
.esy_widget_container + script + br,
.esy_widget_container + script + br + br,
.esy_widget_container + script + script + br,
.esy_widget_container + script + script + br + br { display: none; }

/* 2. The block right before an ad adds no extra margin */
:is(p, ul, ol, table, div, h2, h3, h4):has(+ .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ br + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ br + br + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ br + br + br + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ br + br + br + link + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ br + br + br + script + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ br + br + link + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ br + br + script + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ br + link + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ br + script + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ link + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ script + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + br + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + br + br + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + br + br + br + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + br + br + br + link + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + br + br + br + script + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + br + br + link + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + br + br + script + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + br + link + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + br + script + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + link + .esy_widget_container),
:is(p, ul, ol, table, div, h2, h3, h4):has(+ style + script + .esy_widget_container) { margin-bottom: 0 !important; }

/* 3. Fixed space around the ad (padding above, so a floated intro photo cannot swallow it) */
.esy_widget_container { clear: both; padding-top: 14px; margin-top: 0; margin-bottom: 25px; }
.esy_widget_container:has(+ script + script + .esy_widget_container) { margin-bottom: 0; }   /* two ads in a row: no extra gap between them */

/* 4. Same ad title style on every page (bold maroon 25px, as already used on most pages) */
.esy_widget_container .esy_in_content_listings_container { padding-top: 10px; }
.esy_widget_container .esy_in_content_listings_container .esy_widget_header { text-transform: none; color: #720d36; font-weight: bold; font-size: 25px !important; line-height: 1.25; }

@media (max-width: 767px) {
  .esy_widget_container { padding-top: 9px; margin-bottom: 15px; }
  .esy_widget_container:has(+ script + script + .esy_widget_container) { margin-bottom: 0; }
}
