/* DigestPress Tools — /tools/ hub page card grid (v1.9.0).
   Loaded only on the page using the [dp_tools_hub] shortcode. */

.dpt-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 0 0 32px;
}

/* One tool card. position: relative anchors the stretched title link,
   so a click anywhere on the card opens the tool. */
.dpt-card {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dpt-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
	border-color: #558822;
}

.dpt-card-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: #eef6e6;
	color: #558822;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	flex: 0 0 auto;
}
.dpt-card-icon svg {
	display: block;
}

.dpt-card-title {
	font-size: 17px;
	line-height: 1.3;
	margin: 0 0 8px;
	font-weight: 700;
}
/* The theme colours links green and underlines them on hover with
   !important, so the title link needs its own scoped rules (and
   !important on hover) to keep the card's look. */
.dpt-card .dpt-card-title a {
	color: #1f2937;
	text-decoration: none;
}
.dpt-card .dpt-card-title a:hover,
.dpt-card .dpt-card-title a:focus {
	color: #558822;
	text-decoration: none !important;
}
/* Stretched link: the title link covers the whole card. */
.dpt-card .dpt-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.dpt-card:hover .dpt-card-title a {
	color: #558822;
}

.dpt-card-desc {
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
	margin: 0 0 14px;
	flex: 1 1 auto;
}

.dpt-card-link {
	font-size: 14px;
	font-weight: 600;
	color: #558822;
}

@media (max-width: 900px) {
	.dpt-hub-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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