/* Henkilöstö Grid Shortcode Styles */

.henkilosto-grid {
	--columns: 4;
	--gap: 90px;
	--card-bg: #ffffff;
	--card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	--text-dark: #333333;
	--text-gray: #666666;
	--text-light-gray: #999999;
	display: grid;
	grid-template-columns: repeat(var(--columns), 1fr);
	gap: var(--gap);
	margin: 2rem 0;
	border-radius: 0;
}

/* Responsive design */
@media (max-width: 1024px) {
	.henkilosto-grid {
		--columns: 3;
		--gap: 2rem 1.25rem;
	}
}

@media (max-width: 768px) {
	.henkilosto-grid {
		--columns: 2;
		--gap: 1.5rem 1rem;
	}
}

@media (max-width: 480px) {
	.henkilosto-grid {
		--columns: 1;
		--gap: 1.5rem;
	}
}

/* Card container */
.henkilosto-card {
	display: flex;
	flex-direction: column;
	background: var(--card-bg);
	border-radius: 0;
	overflow: hidden;
	box-shadow: var(--card-shadow);
	transition: box-shadow 0.2s ease;
	text-align: center;
}

.henkilosto-card:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Image section */
.henkilosto-card__image {
	width: 100%;
	overflow: hidden;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top:50px;
}

.henkilosto-card__thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: 130px;
	max-height: 130px
}

.henkilosto-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.henkilosto-card__placeholder svg {
	width: 50%;
	height: 50%;
	opacity: 0.4;
	max-width: 130px;
	max-height: 130px;
}

/* Content section */
.henkilosto-card__content {
	padding: 50px 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Name */
.henkilosto-card__name {
	margin: 0 0 0.25rem 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--text-dark);
	line-height: 1.4;
	letter-spacing: 0.2px;
}

/* Position (Nimike) */
.henkilosto-card__position {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1;
}

/* Contact section */
.henkilosto-card__contact {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-top: auto;
}

/* Email & Phone links */
.henkilosto-card__email,
.henkilosto-card__phone {
	font-size: 16px;
	color: var(--text-light-gray);
	text-decoration: underline;
	word-break: break-word;
	transition: color 0.2s ease;
	display: block;
	line-height: 1.3;
}

.henkilosto-card__email:hover,
.henkilosto-card__phone:hover {
	color: var(--text-dark);
}

/* Empty state */
.henkilosto-grid + p {
	text-align: center;
	color: var(--text-gray);
	font-style: italic;
}