/*!
Theme Name: Trinity Takeoff
Theme URI: https://superrad.dev
Author: Underscores.me
Author URI: https://superrad.dev
Description: Simple theme to manage Takeoffs.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: trinity-takeoff
*/

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

.site-header {
	display: none;
}

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

section {
	margin-bottom: 48px;
}

.print-doors-list .hide-for-doors-list {
	display: none !important;
}

.dropdown-item.selected {
	background-color: var(--bs-primary);
	color: var(--bs-white);
}

.card-body p:last-child,
.card-body dd:last-child {
	margin-bottom: 0;
}

@media print {
	.site-main {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	body *:first-child {
		page-break-before: avoid !important;
	}

	.print-doors-list .hide-for-doors-list,
	#print-doors-list {
		display: none !important;
	}

	.avoid-break {
		page-break-inside: avoid !important;
	}

	/* Hide elements that are not relevant to the printed page */
	.no-print, header, footer, nav, aside, select {
		display: none !important;
	}

	/* Image adjustments */
	img {
		max-width: 100% !important;
		page-break-inside: avoid;
	}

	/* Adjusting heading styles */
	h1, h2, h3, h4, h5, h6, .avoid-break {
		page-break-after: avoid;
	}

	/* Handling long URLs */
	a[href]:after {
		content: " (" attr(href) ")";
	}
}
