/* "Get Involved with mindat.org" popup dialog.
   Copied verbatim from css/index_new.css (the #hp2-involved-* /
   .hp2-involved-* rules) so it can be reused outside the homepage without
   touching index2.php or its stylesheet. Keep in sync if the homepage
   version changes. */

#hp2-involved-shadow {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(20,26,28,.55);
	z-index: 5950;
	opacity: 0;
	transition: opacity .2s ease;
}
#hp2-involved-shadow.is-open {
	display: block;
	opacity: 1;
}
#hp2-involved-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 780px;
	max-width: 92vw;
	max-height: 88vh;
	overflow-y: auto;
	background: #fff;
	color: #33383d;
	border: 1px solid #e3e8ea;
	border-radius: 10px;
	z-index: 5951;
	box-shadow: 0 16px 48px rgba(20,30,32,.22);
	font-family: inherit;
}
#hp2-involved-modal.is-open {
	display: block;
}
#hp2-involved-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 14px 14px 26px;
	background-color: #098692;
	border-radius: 10px 10px 0 0;
	position: sticky;
	top: 0;
}
#hp2-involved-title {
	font-size: 17px;
	font-weight: 700;
	color: #fff;
}
#hp2-involved-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}
#hp2-involved-close:hover {
	background: rgba(255,255,255,.18);
}
#hp2-involved-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
#hp2-involved-body {
	padding: 32px 34px 30px 34px;
}
.hp2-involved-intro {
	max-width: 560px;
	margin: 0 auto 18px auto;
	text-align: center;
	font-size: 15px;
	line-height: 1.6;
	color: #4b5257;
}
.hp2-involved-cta-line {
	margin: 0 0 28px 0;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	color: #1c2024;
}

/* ===== four-step path ===== */
.hp2-involved-steps {
	display: flex;
	position: relative;
	margin: 0 0 30px 0;
}
.hp2-involved-steps::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 12.5%;
	right: 12.5%;
	height: 2px;
	background: #dde6e8;
	z-index: 0;
}
.hp2-involved-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 12px;
	position: relative;
	z-index: 1;
}
.hp2-involved-num {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	border-radius: 50%;
	background: #098692;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 12px;
}
.hp2-involved-stepcontent {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	width: 100%;
}
.hp2-involved-steptitle {
	font-weight: 700;
	font-size: 15px;
	color: #1c2024;
	margin-bottom: 4px;
}
.hp2-involved-stepdesc {
	margin: 0 0 12px 0;
	font-size: 13px;
	line-height: 1.45;
	color: #767f85;
}
.hp2-involved-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 999px;
	background: #098692;
	color: #fff;
	padding: 7px 18px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	margin-top: auto;
}
a.hp2-involved-btn:link, a.hp2-involved-btn:visited {
	color: #fff;
}
a.hp2-involved-btn:hover {
	background: #076e78;
	color: #fff;
	text-decoration: none;
}
a.hp2-involved-btn:focus-visible {
	outline: 2px solid #098692;
	outline-offset: 2px;
}
.hp2-involved-btn-done {
	background: #1a9a3d;
	color: #fff;
	cursor: default;
}

/* ===== contribution panel ===== */
.hp2-involved-panel {
	background: rgba(9,134,146,.07);
	border: 1px solid rgba(9,134,146,.16);
	border-radius: 8px;
	padding: 16px 20px;
	text-align: center;
}
.hp2-involved-panel p {
	margin: 0 0 12px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1c2024;
}
.hp2-involved-tags {
	display: flex;
	justify-content: center;
	gap: 30px;
}
.hp2-involved-tag {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #098692;
}
.hp2-involved-tag svg {
	width: 20px;
	height: 20px;
}

@media screen and (max-width: 640px) {
	#hp2-involved-body {
		padding: 26px 20px 24px 20px;
	}
	.hp2-involved-cta-line {
		margin-bottom: 22px;
	}

	.hp2-involved-steps {
		flex-direction: column;
		position: relative;
	}
	.hp2-involved-steps::before {
		top: 4px;
		bottom: 4px;
		left: 17px;
		right: auto;
		width: 2px;
		height: auto;
	}
	.hp2-involved-step {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		padding: 0 0 26px 0;
	}
	.hp2-involved-step:last-child {
		padding-bottom: 0;
	}
	.hp2-involved-num {
		margin-bottom: 0;
		margin-right: 14px;
	}
	.hp2-involved-stepcontent {
		align-items: flex-start;
	}
	a.hp2-involved-btn {
		width: 100%;
	}
	.hp2-involved-tags {
		gap: 20px;
	}
}
