/*
 * AST Mobile Gutters 1.0.0
 * Gives older pages the same 1.25rem side gutter on mobile that the newer
 * pages (1274, 1275, 1276) already set inline. Mobile only (max-width 781px).
 *
 * Why: Additional CSS sets .entry-content padding to 0 on body.page at mobile,
 * and core then also zeroes padding on nested .has-global-padding groups, so
 * plain alignwide groups (and bare paragraphs/headings) sit at 0px.
 *
 * Not touched: alignfull sections, groups with their own inline padding,
 * background or border, the homepage, pages whose content area is already
 * padded (5 racing tips, 8 football tips, 308 Irish racing tips, 990 Saturday
 * Five), the bookmakers page (9, casino/partner cards), header and footer.
 */
@media (max-width: 781px) {
	body.page:not(.home):not(.page-id-5):not(.page-id-8):not(.page-id-9):not(.page-id-308):not(.page-id-990) .entry-content.wp-block-post-content > .wp-block-group.alignwide.has-global-padding:not(.has-background):not(.has-border-color):not([style*="padding-left"]):not([style*="padding-right"]),
	body.page:not(.home):not(.page-id-5):not(.page-id-8):not(.page-id-9):not(.page-id-308):not(.page-id-990) .entry-content.wp-block-post-content > :is(p, h1, h2, h3, h4, h5, h6):not([style*="padding-left"]):not([style*="padding-right"]) {
		box-sizing: border-box;
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	/* Columns inside a newly padded group already get 1rem/.85rem side padding
	   from Additional CSS; drop it there so text is not double-indented. */
	body.page:not(.home):not(.page-id-5):not(.page-id-8):not(.page-id-9):not(.page-id-308):not(.page-id-990) .entry-content.wp-block-post-content > .wp-block-group.alignwide.has-global-padding:not(.has-background):not(.has-border-color):not([style*="padding-left"]):not([style*="padding-right"]) > .wp-block-columns {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* Safety net (browsers with :has support): undo the gutter on any such group
   that holds a plugin component which brings its own spacing. */
@media (max-width: 781px) {
	body.page:not(.home):not(.page-id-5):not(.page-id-8):not(.page-id-9):not(.page-id-308):not(.page-id-990) .entry-content.wp-block-post-content > .wp-block-group.alignwide.has-global-padding:not(.has-background):not(.has-border-color):not([style*="padding-left"]):not([style*="padding-right"]):has(section, .ast-casino-offers, .ast-other-partners, .ast-tg, .ast-rc, .ast-fc, .ast5, .s5-sport, .ast-stripe-pricing, .ast-account, .ast-calc) {
		padding-left: 0;
		padding-right: 0;
	}
}
