/*
 * Manager Resources page — pairs with page-manager-resources.php.
 * Loaded only on that page template, see functions-enqueue-snippet.php.
 * Design handoff: design_handoff_manager_resources/ (high-fidelity,
 * colors/type/spacing/copy final per that bundle's README).
 *
 * Colors read from Avada's global --awb-color* vars first, same fallback
 * convention as shared.css/front-page.css.
 */

#gm-manager-resources {
	--gm-mgr-red: var(--awb-color2, #ed2e38);
	--gm-mgr-black: var(--awb-color1, #000000);
	max-width: 1040px;
	margin: 0 auto;
	padding: 48px 24px 64px;
	background: #FAFAFA;
	font-family: var(--awb-body-typography-font-family, 'Rubik', sans-serif);
	box-sizing: border-box;
}

.gm-mgr__badge {
	display: inline-block;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--gm-mgr-red);
	background: rgba(237, 46, 56, 0.08);
	padding: 4px 10px;
	border-radius: 4px;
	margin-bottom: 8px;
}

.gm-mgr__title {
	font-family: var(--awb-heading-typography-font-family, 'Roboto', sans-serif);
	font-weight: 900;
	font-size: clamp(28px, 5vw, 40px);
	color: var(--gm-mgr-black);
	line-height: 1.2;
	margin: 8px 0 6px;
}

.gm-mgr__subhead {
	font-weight: 400;
	font-size: 16px;
	color: #595959;
	max-width: 640px;
	line-height: 1.5;
	margin: 0 0 40px;
}

.gm-mgr__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

/* Resource tile — see inc/resource-tile.php */
.gm-resource-tile {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: #ffffff;
	border: 1px solid #E3E5E6;
	border-radius: 10px;
	padding: 24px;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
	box-sizing: border-box;
}
.gm-resource-tile:hover,
.gm-resource-tile:focus-visible {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	border-color: var(--gm-mgr-red);
}
.gm-resource-tile__icon {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: var(--gm-mgr-black);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.gm-resource-tile__title-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.gm-resource-tile__title {
	font-family: var(--awb-heading-typography-font-family, 'Roboto', sans-serif);
	font-weight: 700;
	font-size: 18px;
	color: var(--gm-mgr-black);
}
.gm-resource-tile__desc {
	display: block;
	font-weight: 400;
	font-size: 14px;
	color: #595959;
	line-height: 1.45;
	margin-top: 6px;
}

/* Empty-state placeholder — page-manager-resources.php only renders this
   while there are fewer than 2 real tiles. */
.gm-mgr__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 148px;
	border: 1.5px dashed #D6D9DA;
	border-radius: 10px;
	font-weight: 500;
	font-size: 13px;
	color: #B3B8BA;
	letter-spacing: 0.3px;
	text-align: center;
	box-sizing: border-box;
	padding: 24px;
}

@media (max-width: 600px) {
	#gm-manager-resources {
		padding: 32px 16px 48px;
	}
}
