/* =============================================================
   ACF Spec Grid Widget
   ============================================================= */

.ae-spec-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

/* ── Card ──────────────────────────────────────────────────── */
.ae-spec-card {
	background: #f7f7f7;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: inherit;
	height: 320px;
}

/* ── Card Header ───────────────────────────────────────────── */
.ae-spec-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 1px solid #e0e0e0;
	flex-shrink: 0;
}

.ae-spec-card__title {
	font-size: 14px;
	font-weight: 700;
	color: #222;
	margin: 0;
	line-height: 1.3;
	text-transform: capitalize;
}

.ae-spec-card__scroll-up {
	font-size: 10px;
	color: #aaa;
	cursor: pointer;
	user-select: none;
	flex-shrink: 0;
	margin-left: 8px;
	line-height: 1;
}

/* ── Card Body (scrollable) ────────────────────────────────── */
.ae-spec-card__body {
	height: 220px;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 14px 16px;
	flex: 1;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
	color: #555;
	font-size: 13px;
	line-height: 1.5;
	background: #fff;
}

.ae-spec-card__body::-webkit-scrollbar {
	width: 5px;
}
.ae-spec-card__body::-webkit-scrollbar-track {
	background: transparent;
}
.ae-spec-card__body::-webkit-scrollbar-thumb {
	background-color: #ccc;
	border-radius: 10px;
}

/* Content inside body — spec key/value rows */
.ae-spec-card__content p,
.ae-spec-card__content .ae-spec-item {
	margin: 0 0 14px;
	padding: 0;
	line-height: 1.4;
}

.ae-spec-card__content p:last-child,
.ae-spec-card__content .ae-spec-item:last-child {
	margin-bottom: 0;
}

.ae-spec-card__content strong,
.ae-spec-card__content .ae-spec-label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	color: #222;
	margin-bottom: 2px;
}

/* Values that are links (e.g. "Up to 100 ft") inherit blue from theme */
.ae-spec-card__content a {
	color: #0066cc;
	text-decoration: none;
}
.ae-spec-card__content a:hover {
	text-decoration: underline;
}

/* ── Card Footer (scroll-down indicator) ──────────────────── */
.ae-spec-card__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 4px 16px 6px;
	flex-shrink: 0;
	border-top: 1px solid #e8e8e8;
}

.ae-spec-card__scroll-down {
	font-size: 10px;
	color: #aaa;
	cursor: pointer;
	user-select: none;
	line-height: 1;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.ae-spec-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.ae-spec-grid {
		grid-template-columns: 1fr;
	}
}
