/* Small-screen layer for the fixed-width (1000px table) desktop pages.
   Loaded on every page via menu_header.html; nothing here applies above 760px,
   so the desktop layout is unchanged. The mobile menu markup lives in
   menu_list_items.html. */

.mobile-nav { display: none; }

@media (max-width: 760px) {
	html, body { min-width: 0; }
	body { background-size: auto; }

	/* The page is built from nested tables with width="1000"/"1010"/"950". */
	table { width: 100% !important; max-width: 100%; height: auto !important; }
	td, th { width: auto !important; height: auto !important; }
	img, iframe, embed, object, video { max-width: 100%; height: auto; }

	/* Long words and URLs must not push the page wider than the screen. */
	p, li, td, h1, h2, h3, h4 { overflow-wrap: break-word; word-wrap: break-word; }
	p { font-size: 16px; }
	h2 { font-size: 17px; margin-top: 12px; }
	ul { padding-left: 20px; }

	/* Swap the image-button hover menu for a tap-to-open text menu. */
	.imrcmain0 { display: none !important; }
	.navigation { height: auto; background-image: none; background-color: #961334; }
	.mobile-nav { display: block; text-align: left; }
	.mobile-nav summary {
		cursor: pointer; padding: 12px 14px; color: #fff;
		font: bold 16px Verdana, Arial, Helvetica, sans-serif; list-style: none;
	}
	.mobile-nav summary::-webkit-details-marker { display: none; }
	.mobile-nav summary::before { content: "\2630\00a0\00a0"; }
	.mobile-nav ul { margin: 0; padding: 0 0 8px; list-style: none; }
	.mobile-nav li a {
		display: block; padding: 10px 14px; color: #fff; text-decoration: none;
		font: 15px Verdana, Arial, Helvetica, sans-serif;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}
	.mobile-nav li.sub a { padding-left: 32px; font-size: 14px; }

	/* Form fields: full width and large enough to tap. */
	input[type="text"], textarea { width: 100%; max-width: 100%; box-sizing: border-box; font-size: 16px; }
	input[type="submit"], input[type="reset"] { font-size: 16px; padding: 8px 14px; margin: 4px 0; }

	.contentfooter { height: auto; background-size: 100% auto; }
}
