/**
 * Country PDF/print layout — plain CSS (no Tailwind build required).
 * Active when body has class strl-print-flow ( ?_strl_print= in URL ).
 */

@media screen {
	.strl-print-doc-header,
	.strl-print-source-url {
		display: none !important;
	}
}

@media print {
	body.strl-print-flow .strl-print-doc-header,
	body.strl-print-flow .strl-print-source-url {
		display: block !important;
		visibility: visible !important;
	}

	body.strl-print-flow .strl-print-doc-header {
		margin-bottom: 1.5rem;
		text-align: left;
	}

	body.strl-print-flow .strl-print-source-url {
		margin-top: 3rem;
		margin-bottom: 2.5rem;
		padding-top: 1.5rem;
		border-top: 1px solid #d1d5db;
		color: #000;
		font-size: 0.875rem;
	}

	body.strl-print-flow .strl-print-source-url a {
		color: #000;
		text-decoration: underline;
	}

	body.strl-print-flow .strl-print-source-url > p:first-of-type {
		font-weight: 600;
		color: #064864;
		margin-bottom: 0.5rem;
	}

	body.strl-print-flow .strl-print-doc-header img {
		display: block !important;
		visibility: visible !important;
		max-height: 96px;
		height: auto;
		width: auto;
		max-width: 220px;
		object-fit: contain;
		object-position: left;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	/* Legislation CTA in rich text (href pattern; see also strl_country_print_strip_legislation_cta). */
	body.strl-print-flow #main a.btn[href*="legislation"],
	body.strl-print-flow #main a[href*="legislation"].btn,
	body.strl-print-flow #main a.btn[href*="Legislation"],
	body.strl-print-flow #main a[href*="Legislation"].btn,
	body.strl-print-flow #main a.btn[href*="l%C3%A9gislation"],
	body.strl-print-flow #main a.btn[href*="législation"] {
		display: none !important;
	}

	body.strl-print-flow #site-header,
	body.strl-print-flow .offcanvas,
	body.strl-print-flow #mobile-menu,
	body.strl-print-flow .grecaptcha-badge,
	body.strl-print-flow footer.section {
		display: none !important;
	}

	body.strl-print-flow [data-print-page],
	body.strl-print-flow .strl-print-page-btn,
	body.strl-print-flow .strl-country-pdf-btn {
		display: none !important;
	}

	body.strl-print-flow .strl-print-exclude {
		display: none !important;
	}

	body.strl-print-flow #main {
		color: #000;
		font-size: 94%;
		line-height: 1.45;
		max-width: 100%;
	}

	body.strl-print-flow #main :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
		color: #064864;
	}

	body.strl-print-flow #main a:not(.btn) {
		color: #000;
		text-decoration: underline;
	}

	body.strl-print-flow .text-block .flex.flex-wrap {
		display: block !important;
	}

	body.strl-print-flow .text-block .flex.flex-wrap > div {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		min-width: 0 !important;
	}

	body.strl-print-flow .grid-container {
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	body.strl-print-flow .text-block.single-content .flex.flex-wrap > div:last-child > div {
		display: flex;
		flex-direction: column;
	}

	body.strl-print-flow .text-block.single-content .strl-sidebar-item-button {
		order: 40;
	}

	body.strl-print-flow .text-block.single-content .strl-sidebar-item-contact {
		order: 100;
	}

	body.strl-print-flow .strl-no-print {
		display: none !important;
	}

	/* Tooltip shortcode: show footnote body in print (was opacity-0 / off-screen). */
	body.strl-print-flow .tooltip-shortcode-wrapper {
		display: block !important;
		position: relative !important;
		margin: 0.35rem 0;
	}

	body.strl-print-flow .tooltip-shortcode-wrapper > button {
		display: inline !important;
		background: none !important;
		border: none !important;
		padding: 0 !important;
		font: inherit !important;
		color: #064864 !important;
		cursor: default !important;
	}

	body.strl-print-flow .tooltip-shortcode-wrapper > button i {
		display: none !important;
	}

	body.strl-print-flow .tooltip-shortcode-wrapper > button span {
		border-bottom: 0 !important;
	}

	body.strl-print-flow .tooltip-shortcode-wrapper > span[role='tooltip'] {
		position: static !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		transform: none !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		bottom: auto !important;
		width: auto !important;
		max-width: 100% !important;
		display: block !important;
		margin: 0.25rem 0 0 0 !important;
		padding: 0 0 0 0.5rem !important;
		border-left: 2px solid #064864 !important;
		z-index: auto !important;
		background: transparent !important;
		color: #000 !important;
		font-size: 0.8125rem !important;
		line-height: 1.4 !important;
		box-shadow: none !important;
	}

	body.strl-print-flow .tooltip-shortcode-wrapper > span[role='tooltip']::before {
		display: none !important;
		content: none !important;
	}

	body.strl-print-flow .tooltip-shortcode-wrapper > span[role='tooltip'] * {
		color: #000 !important;
	}

	body.strl-print-flow .grid-x {
		margin: 0 !important;
		max-width: 95% !important;
	}
}
