/* Toolkits page */
.chs-breadcrumb a { color: inherit; text-decoration: none; }
.chs-breadcrumb a:hover { color: #E25957; }

.toolkits-intro { margin-bottom: 30px; }
.toolkits-empty { padding: 40px 0; }

/* Grid: 1 column on mobile, 2 on tablet, 3 on desktop */
.toolkits-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	padding: 20px 0 60px;
}
@media (min-width: 768px) { .toolkits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .toolkits-grid { grid-template-columns: repeat(3, 1fr); } }

.toolkit-tile {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	text-align: left;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
	transition: transform .2s ease, box-shadow .2s ease;
}
.toolkit-tile:hover,
.toolkit-tile:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
	outline: none;
}
.toolkit-tile:focus-visible { box-shadow: 0 0 0 3px #E25957; }

.toolkit-tile-image { display: block; aspect-ratio: 16 / 10; background: #f5f5f5; }
.toolkit-tile-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.toolkit-tile-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.toolkit-tile-title {
	font-family: 'Gilroy-SemiBold', sans-serif;
	font-size: 20px;
	line-height: 1.3;
	color: #222;
	margin-bottom: 10px;
}
.toolkit-tile-desc {
	color: #555;
	font-size: 15px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 16px;
}
.toolkit-tile-cta {
	margin-top: auto;
	color: #E25957;
	font-family: 'Gilroy-SemiBold', sans-serif;
	font-size: 15px;
}

/* Modal */
body.toolkit-modal-open { overflow: hidden; }
.toolkit-modal[hidden] { display: none; }
.toolkit-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.toolkit-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.toolkit-modal-panel {
	position: relative;
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 960px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 40px 30px 30px;
}
.toolkit-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: 0;
	font-size: 32px;
	line-height: 1;
	color: #555;
	cursor: pointer;
}
.toolkit-modal-close:hover { color: #E25957; }

.toolkit-modal-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .toolkit-modal-grid { grid-template-columns: 1fr 1fr; } }

.toolkit-modal-image { width: 100%; height: auto; border-radius: 6px; margin-bottom: 20px; }
.toolkit-modal-image[hidden] { display: none; }
.toolkit-modal-title { font-family: 'Gilroy-SemiBold', sans-serif; font-size: 26px; margin: 0 0 12px; }
.toolkit-modal-desc { color: #555; font-size: 15px; line-height: 1.6; }

.toolkit-form-note { font-family: 'Gilroy-SemiBold', sans-serif; margin-bottom: 15px; }
.toolkit-modal-form .wpcf7 label { display: block; width: 100%; margin-bottom: 12px; font-weight: normal; }
.toolkit-modal-form .wpcf7 input[type="text"],
.toolkit-modal-form .wpcf7 input[type="email"],
.toolkit-modal-form .wpcf7 input[type="tel"] {
	width: 100%;
	padding: 10px 12px;
	margin-top: 4px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.toolkit-modal-form .wpcf7 input[type="submit"] {
	width: 100%;
	padding: 12px;
	border: 0;
	border-radius: 4px;
	background: #E25957;
	color: #fff;
	font-family: 'Gilroy-SemiBold', sans-serif;
	font-size: 16px;
	cursor: pointer;
	transition: background .2s ease;
}
.toolkit-modal-form .wpcf7 input[type="submit"]:disabled {
	background: #ccc;
	color: #777;
	cursor: not-allowed;
}
/* Our own thank-you note replaces CF7's success box; CF7 error messages still show. */
.toolkit-modal-form .wpcf7 form.sent .wpcf7-response-output { display: none; }

.toolkit-download-fallback { margin-top: 15px; font-size: 14px; }
.toolkit-download-fallback[hidden] { display: none; }
.toolkit-download-fallback a { color: #E25957; text-decoration: underline; }
