/**
 * MailPages email reset stylesheet.
 *
 * Loaded only on single mailpages_issue views.
 * All rules are scoped to .gs-mp-email to avoid affecting the active theme.
 *
 * Goals:
 *   - Constrain email container width so it does not overflow narrow viewports.
 *   - Make images and tables fluid/responsive.
 *   - Kill visible table borders and excess structural spacing.
 *   - Strip scaffold background colours so content inherits the page white.
 *   - Prevent fixed widths from clipping content on the right.
 *   - Prevent long URLs or unbreakable strings from causing horizontal scroll.
 *
 * These rules use !important to win over any class-based rules from the scoped
 * extracted email CSS (e.g. .mceWrapperOuter { background-color: #FAFAFA }).
 * Import-time HTML stripping removes inline styles; this file is the fallback.
 */

/* Container */
.gs-mp-email {
	max-width: 680px;
	margin-right: auto;
	margin-left: auto;
	overflow-x: hidden;
	word-wrap: break-word;
	overflow-wrap: break-word;
	background-color: #ffffff;
}

/* Tables and structural blocks — kill borders, backgrounds, and fixed widths */
.gs-mp-email table,
.gs-mp-email thead,
.gs-mp-email tbody,
.gs-mp-email tfoot,
.gs-mp-email tr,
.gs-mp-email td,
.gs-mp-email th,
.gs-mp-email div,
.gs-mp-email center {
	border: none !important;
	outline: none !important;
	background-color: transparent !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

/* Tables: full width and collapsed borders */
.gs-mp-email table {
	width: 100% !important;
	border-collapse: collapse !important;
}

/* Cells — allow natural reflow */
.gs-mp-email td,
.gs-mp-email th {
	word-break: break-word;
}

/* Images — scale down to fit, never overflow */
.gs-mp-email img {
	max-width: 100% !important;
	height: auto !important;
	display: inline-block;
}

/* Links */
.gs-mp-email a {
	word-break: break-all;
}
