/**
 * Playable City Print Stylesheet.
 *
 * Implements styling of pages when they are printed.
 *
 * @package Playable_City
 */

@media print {

	div, h1, h2, h3, h4, h5, h6, p, ol, ul, li
	{
		width: auto !important;
		height: auto !important;
		min-height: 0 !important;
		color: #000;
		position: static !important;
	}

	/* Set sensible defaults */
	*, *:before, *:after
	{
		-webkit-transition: none !important;
		-moz-transition: none !important;
		transition: none !important;
		/* background: white !important; */
		box-sizing: inherit;
	}

	body
	{
		background: white !important;
		background-color: white !important;
		color: #000;
		font-size: 9pt;
		/* Text should be "readable" */
		font-family: serif;
		margin: 24pt;
		padding: 0;
	}

	/* Link style */
	a
	{
		color: #000 !important;
		text-decoration: underline;
	}

	/* Headings should be "legible" */
	h1, h2, h3, h4, h5, h6,
	.post h1, .post h2, .post h3, .post h4, .post h5, .post h6
	{
		padding-left: 0;
		padding-right: 0;
		color: #000;
		font-weight: bold;
		font-family: sans-serif;
		/* Avoid printed page breaks immediately after headers, or in middle of images or blockquotes */
		page-break-after: avoid;
		page-break-inside: avoid;
		text-transform: none;
	}

	/* Headings as links are superfluous */
	h1 a, h2 a, h3 a, h4 a, h5 a, h6 a
	{
		color: #000 !important
		text-decoration: none !important
	}

	/* Remove unnecessary elements */

	/* JetPack sharing */
	div.sharedaddy,
	#content div.sharedaddy,
	#main div.sharedaddy,

	/* WordPress */
	#wpadminbar,
	#site-navigation,
	.edit-link,
	.reply,
	.footer-menu,

	/* force comment form to be hidden */
	#respond
	{
		display: none !important
	}

	/* elements that must have white backgrounds */
	#masthead,
	#colophon,
	#news,
	#news .post:after,
	#cities,
	.post-type-archive-city #primary .city-list .city .entry-header a:after,
	#cities .city .entry-header a:after,
	#projects,
	.post-type-archive-project #primary .project-list .project .entry-header a:after,
	#projects .project .entry-header a:after,
	.single-project .site-main
	{
		background: white !important;
	}

	/* try not to break inside these elements */
	#news .post,
	.post-type-archive-city #primary .city-list .city,
	#cities .city,
	.post-type-archive-project #primary .project-list .project,
	#projects .project
	{
		page-break-inside: avoid;
	}

	/* Restore site title */
	.site-title
	{
		float: none !important;
	}

	.site-title a
	{
		display: inline;
		width: auto !important;
		height: auto !important;
		clip: auto !important;
		color: #000 !important;
		text-indent: 0;
		font-size: 11pt;
	}

	/* Handle page titles */
	.singular #primary .entry-header
	{
		height: auto;
		background-color: white !important;
	}

	.singular #primary .has-post-thumbnail .entry-header
	{
		height: 128pt;
	}

	.singular #primary .entry-header h1,
	.singular #primary .entry-header h2
	{
		padding-top: 0;
		font-size: 24pt;
		color: #000;
		text-align: left;
	}

	.singular #primary .has-post-thumbnail .entry-header h1,
	.singular #primary .has-post-thumbnail .entry-header h2
	{
		color: #fff;
		padding-top: 48pt;
		text-align: center;
	}

}
