/*
 * PROJ-1: project facts.
 * What a buyer asks first about a housing project, in one panel: where it is,
 * what is being built, how large it is and how far along. The registration
 * number of the project stands at the foot of the panel, beside the way to a
 * site visit. No price is stated here.
 */

.wprk-proj-1 .wprk-proj-1__panel {
	background-color: var(--wprk-card-bg);
	border: 1px solid var(--wprk-border);
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
}

.wprk-proj-1 .wprk-proj-1__panel > * {
	margin: 0;
	min-width: 0;
}

/*
 * The facts stand in a grid with a hairline between them. Each draws a line
 * at its end and under it; the lines at the far edge of the panel fall
 * outside it and are cut off.
 */
.wprk-section.wprk-proj-1 .wprk-proj-1__facts {
	gap: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-inline-end: -1px;
}

.wprk-section.wprk-proj-1 .wprk-proj-1__facts:last-child {
	margin-block-end: -1px;
}

.wprk-proj-1 .wprk-proj-1__fact {
	align-content: start;
	border-block-end: 1px solid var(--wprk-border);
	border-inline-end: 1px solid var(--wprk-border);
	display: grid;
	gap: 0.3rem;
	padding: var(--wp--preset--spacing--30);
}

.wprk-proj-1 .wprk-proj-1__fact > * {
	margin: 0;
	min-width: 0;
}

.wprk-proj-1 .wprk-proj-1__label {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.wprk-proj-1 .wprk-proj-1__value {
	color: var(--wprk-heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-variant-numeric: lining-nums;
	font-weight: var(--wp--custom--heading--weight);
	letter-spacing: var(--wp--custom--heading--tracking);
	line-height: 1.3;
	overflow-wrap: break-word;
}

/* The foot of the panel: the registration number, and the buttons at its end. */
.wprk-proj-1 .wprk-proj-1__foot {
	align-items: center;
	background-color: var(--wprk-soft);
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	justify-content: space-between;
	padding: var(--wp--preset--spacing--30);
}

.wprk-proj-1 .wprk-proj-1__foot > * {
	margin: 0;
	min-width: 0;
}

.wprk-proj-1 .wprk-proj-1__rera {
	flex: 1 1 20rem;
	font-size: var(--wp--preset--font-size--small);
	font-variant-numeric: lining-nums tabular-nums;
	line-height: 1.5;
	max-width: 40rem;
	overflow-wrap: break-word;
}

@media (min-width: 782px) {
	.wprk-proj-1 .wprk-proj-1__fact,
	.wprk-proj-1 .wprk-proj-1__foot {
		padding: var(--wp--preset--spacing--40);
	}
}

@media (min-width: 1024px) {
	.wprk-section.wprk-proj-1 .wprk-proj-1__facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Editor: the button that adds a fact keeps clear of the edges of the panel. */
.wprk-proj-1 .wprk-proj-1__facts > .block-list-appender {
	box-sizing: border-box;
	padding-inline: var(--wp--preset--spacing--30);
	width: 100%;
}
