/**
 * Casa Terra Plan and specs (Figma villa pages "Plan and specs"): the plan sheet (paper, 1px
 * line, radius 24, 576 wide) beside the room table (600) on desktop; stacked on tablet (the
 * sheet centred) and phone. Room areas sit on the drawing as HTML labels (main.css
 * .ct-drawing__label).
 */

.ct-specs .ct-specs__heading {
	max-width: 792px;
}

.ct-specs .ct-eyebrow {
	text-transform: none;
}

.ct-specs .ct-section-title {
	font-size: var(--ct-fs-title);
	line-height: var(--ct-lh-title);
}

.ct-specs__grid {
	display: grid;
	grid-template-columns: minmax(0, 576fr) minmax(0, 600fr);
	align-items: start;
	gap: 24px;
}

.ct-specs__sheet {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--ct-c-line);
	border-radius: 24px;
	background: var(--ct-c-paper);
}

.ct-specs .ct-drawing__label--center {
	font-size: 16.5px;
	line-height: 22.5px;
}

.ct-specs .ct-drawing__label:not(.ct-drawing__label--center) {
	font-size: 18px;
	line-height: 24px;
}

.ct-specs__caption {
	padding: 0 36px 36px;
	color: var(--ct-muted);
	font-size: 18px;
	line-height: 24px;
}

.ct-specs__name {
	margin-bottom: 24px;
}

.ct-specs__table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--ct-fs-small);
	line-height: var(--ct-lh-small);
}

.ct-specs__table tr {
	border-bottom: 1px solid var(--ct-line);
}

.ct-specs__table td,
.ct-specs__table th {
	padding: 7px 0;
	vertical-align: baseline;
	text-align: left;
}

.ct-specs__key {
	width: 36px;
	padding-right: 12px;
	font-family: var(--ct-serif);
	font-size: 16px;
	line-height: 24px;
}

.ct-specs__room {
	font-weight: 400;
}

.ct-specs__note {
	margin-left: 12px;
	color: var(--ct-muted);
}

.ct-specs__area {
	width: 64px;
	padding-left: 12px;
	font-weight: 500;
	text-align: right !important;
	white-space: nowrap;
}

.ct-specs__totals {
	margin-top: 24px;
	font-weight: 500;
}

@media (max-width: 1024px) {
	.ct-specs__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.ct-specs__sheet {
		width: min(100%, 576px);
		margin-inline: auto;
	}

	.ct-specs__name {
		margin-bottom: 20px;
	}

	.ct-specs__totals {
		margin-top: 20px;
	}
}

@media (max-width: 767px) {
	.ct-specs__sheet {
		width: 100%;
	}

	/* The plan is drawn at 0.61 scale on phones; its labels follow. */
	.ct-specs .ct-drawing__label--center {
		font-size: 10px;
		line-height: 14px;
	}

	.ct-specs .ct-drawing__label:not(.ct-drawing__label--center) {
		font-size: 11px;
		line-height: 14px;
	}

	.ct-specs__caption {
		padding: 0 22px 22px;
		font-size: var(--ct-fs-small);
		line-height: var(--ct-lh-small);
	}

	.ct-specs__name {
		font-size: 22px;
		line-height: 28px;
	}
}
