/**
 * Wrestletix Theme Print Stylesheet
 * Optimized for clean print and Save-as-PDF output of tool calculations and analyses
 */

@media print {
	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #000000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	html,
	body {
		font-size: 12pt;
		line-height: 1.5;
		margin: 0;
		padding: 0;
	}

	/* Hide interactive, navigational and non-essential UI */
	header,
	footer,
	nav,
	.skip-link,
	.wtx-site-header,
	.wtx-site-footer,
	.wtx-breadcrumbs,
	.wtx-tool-actions,
	.wtx-btn-action,
	.wtx-consent-banner,
	.wtx-author-box,
	.wtx-related-tools,
	.wtx-related-posts,
	.wtx-ad-container,
	.wtx-share-bar,
	button {
		display: none !important;
	}

	/* Expand containers */
	.wtx-container,
	.wtx-article-container,
	.wtx-tool-container {
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* Show links with URLs where useful */
	a[href^="http"]:after {
		content: " (" attr(href) ")";
		font-size: 85%;
	}

	/* Do not show internal anchor links or javascript links */
	a[href^="#"]:after,
	a[href^="javascript:"]:after {
		content: "";
	}

	/* Page Breaks */
	h1, h2, h3 {
		page-break-after: avoid;
		break-after: avoid;
	}

	table, figure, .wtx-card, .wtx-stat-card {
		page-break-inside: avoid;
		break-inside: avoid;
	}

	/* Borders for tables */
	table {
		border-collapse: collapse;
		width: 100%;
	}

	th, td {
		border: 1px solid #CCCCCC !important;
		padding: 6pt 8pt !important;
	}

	/* Open all details accordions for printing */
	details {
		display: block !important;
	}

	details > summary {
		font-weight: bold;
	}

	details[open] > summary::after,
	details > summary::after {
		display: none;
	}

	details > * {
		display: block !important;
	}
}
