/* Shared-design summary panel shown above the designer when a #d= link is opened. */
.mz-share {
	max-width: 1280px;
	margin: 0 auto 28px;
	padding: 24px clamp(16px, 3vw, 32px);
	background: #fff;
	border: 1px solid #dfe3e9;
	border-inline-start: 4px solid var(--mz-accent, #2f5f8f);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(27, 42, 61, .07);
}

.mz-share__title {
	margin: 0 0 6px;
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	line-height: 1.3;
	color: var(--mz-primary, #1b2a3d);
}

.mz-share__lead {
	margin: 0 0 20px;
	max-width: 62ch;
	color: var(--mz-faint, #5b6270);
	line-height: 1.7;
}

.mz-share__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}

.mz-share__box {
	background: #f7f8fa;
	border: 1px solid #e6e9ee;
	border-radius: 11px;
	padding: 16px 18px;
}

.mz-share__box-title {
	margin: 0 0 12px;
	font-size: 1rem;
	color: var(--mz-primary, #1b2a3d);
}

.mz-share__row {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding: 5px 0;
	border-bottom: 1px dashed #e2e6ec;
	font-size: .94rem;
	line-height: 1.6;
}

.mz-share__row:last-child {
	border-bottom: 0;
}

.mz-share__key {
	flex: 0 0 38%;
	color: var(--mz-faint, #5b6270);
}

.mz-share__val {
	flex: 1 1 auto;
	color: var(--mz-primary, #1b2a3d);
	font-weight: 600;
}

.mz-share__person {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #e2e6ec;
}

.mz-share__person:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.mz-share__person-title {
	margin: 0 0 8px;
	font-size: .98rem;
	color: var(--mz-primary, #1b2a3d);
}

.mz-share__epitaph {
	margin-top: 10px;
}

.mz-share__epitaph-text {
	margin: 6px 0 0;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #e2e6ec;
	border-radius: 8px;
	white-space: pre-line;
	line-height: 1.8;
	color: var(--mz-primary, #1b2a3d);
}

.mz-share__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.mz-share__btn {
	appearance: none;
	border: 1px solid var(--mz-accent, #2f5f8f);
	background: #fff;
	color: var(--mz-accent, #2f5f8f);
	border-radius: 999px;
	padding: 10px 22px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.mz-share__btn:hover {
	background: #eef3f9;
}

.mz-share__btn--primary {
	background: var(--mz-primary, #1b2a3d);
	border-color: var(--mz-primary, #1b2a3d);
	color: #fff;
}

.mz-share__btn--primary:hover {
	background: #223549;
}

.mz-share__btn:focus-visible {
	outline: 3px solid #b45309;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.mz-share {
		padding: 18px 14px;
	}

	.mz-share__key {
		flex-basis: 45%;
	}
}

/* Contractor spec sheet bar under the designer. */
.mz-spec-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 1280px;
	margin: 18px auto 0;
	padding: 16px clamp(14px, 2.5vw, 24px);
	background: #f7f8fa;
	border: 1px solid #e6e9ee;
	border-radius: 12px;
}

.mz-spec-bar__note {
	margin: 0;
	flex: 1 1 320px;
	color: var(--mz-faint, #5b6270);
	line-height: 1.65;
}

.mz-spec-bar__actions {
	margin-top: 0;
}

.mz-spec-btn[disabled] {
	opacity: .7;
	cursor: progress;
}

/* ---- Contractor spec sheet document and overlay ---- */
.mz-doc-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: #e9ecf1;
	display: flex;
	flex-direction: column;
}

.mz-doc-overlay__bar {
	display: flex;
	gap: 10px;
	justify-content: center;
	padding: 12px;
	background: #fff;
	border-bottom: 1px solid #d6dae1;
	flex: 0 0 auto;
}

.mz-doc-overlay__body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 18px 12px 40px;
}

body.mz-doc-open {
	overflow: hidden;
}

.mz-doc {
	max-width: 820px;
	margin: 0 auto;
	background: #fff;
	color: #15202b;
	padding: 26px clamp(16px, 4vw, 34px);
	border-radius: 10px;
	box-shadow: 0 12px 36px rgba(21, 32, 43, .14);
	line-height: 1.6;
}

.mz-doc__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	border-bottom: 3px solid #1b2a3d;
	padding-bottom: 12px;
	margin-bottom: 16px;
}

.mz-doc__brand {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1b2a3d;
}

.mz-doc__title {
	margin: 4px 0 2px;
	font-size: 1.4rem;
	color: #15202b;
}

.mz-doc__meta {
	text-align: start;
	font-size: .85rem;
	color: #4b5563;
	display: flex;
	flex-direction: column;
	gap: 2px;
	white-space: nowrap;
}

.mz-doc__meta strong {
	font-size: 1rem;
	color: #15202b;
}

.mz-doc__h2 {
	font-size: .98rem;
	margin: 22px 0 8px;
	padding-bottom: 4px;
	border-bottom: 1px solid #d6dae1;
	color: #1b2a3d;
}

.mz-doc__shots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.mz-doc__shot {
	margin: 0;
}

.mz-doc__shot img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid #cfd4dc;
	border-radius: 6px;
}

.mz-doc__shot figcaption {
	font-size: .78rem;
	color: #4b5563;
	text-align: center;
	margin-top: 4px;
}

.mz-doc__table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9rem;
}

.mz-doc__table th,
.mz-doc__table td {
	border: 1px solid #cfd4dc;
	padding: 7px 10px;
	text-align: start;
	vertical-align: top;
}

.mz-doc__table th {
	background: #f1f3f6;
	width: 38%;
	font-weight: 600;
}

.mz-doc__blank {
	height: 30px;
}

.mz-doc__inscription {
	border: 2px solid #1b2a3d;
	border-radius: 8px;
	padding: 16px;
	text-align: center;
	white-space: pre-line;
	font-size: 1.1rem;
	line-height: 2.05;
}

.mz-doc__hint {
	font-size: .8rem;
	color: #4b5563;
	margin: 6px 0 0;
}

.mz-doc__sign {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 18px;
	font-size: .82rem;
	color: #4b5563;
}

.mz-doc__sign div {
	border-top: 1px solid #9aa2ae;
	padding-top: 6px;
}

.mz-doc__foot {
	margin-top: 20px;
	padding-top: 10px;
	border-top: 1px solid #d6dae1;
	font-size: .76rem;
	color: #4b5563;
}

.mz-doc__foot p {
	margin: 0 0 4px;
}

.mz-doc__link {
	direction: ltr;
	text-align: start;
	word-break: break-all;
	font-size: .68rem;
}

@media (max-width: 700px) {
	.mz-doc__shots {
		grid-template-columns: 1fr;
	}

	.mz-doc__head {
		flex-direction: column;
	}
}

@media print {
	body.mz-doc-open > *:not(.mz-doc-overlay) {
		display: none !important;
	}

	body.mz-doc-open .mz-doc-overlay {
		position: static;
		display: block;
		background: #fff;
	}

	body.mz-doc-open .mz-doc-overlay__bar {
		display: none;
	}

	body.mz-doc-open .mz-doc-overlay__body {
		overflow: visible;
		padding: 0;
	}

	body.mz-doc-open .mz-doc {
		max-width: none;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
	}

	.mz-doc__shots {
		grid-template-columns: repeat(3, 1fr);
	}

	.mz-doc__inscription,
	.mz-doc__table,
	.mz-doc__shots {
		break-inside: avoid;
	}

	@page {
		size: A4;
		margin: 12mm;
	}
}
