/* HPHT — legacy-port.css: rules ported (and tidied) from pixova-lite-child/
   to keep existing admin-content classes working. Loaded on all pages.
   Only includes rules that target markup we don't fully own (plugin output,
   page content using `.calendar-button` / `.green-text` / `.kayzp_*`, etc.). */

/* ───── pill CTA used inside post content & event-grid CTAs ───── */
.calendar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ff-body);
	min-width: 200px;
	height: 36px;
	padding-inline: var(--space-5);
	background: var(--c-surface);
	color: var(--c-primary);
	margin: var(--space-3) auto var(--space-6);
	border: 1px solid var(--c-primary);
	border-radius: 9999px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}
.calendar-button:hover { background: var(--c-primary); color: #fff; }

/* ───── inline "green" CTA used by ACF "100 Mile" challenge link & similar ───── */
.green-text { color: var(--c-secondary); }
a.green-text {
	display: inline-block;
	margin-block: var(--space-5);
	font-weight: 700;
	font-size: 1.125rem;
	border-bottom: 2px solid currentColor;
}
a.green-text:hover { color: var(--c-primary); }

/* ───── #works panel background (still used by some admin content) ───── */
#works { background: var(--c-accent); }

/* ───── gtranslate widget polish ───── */
.widget_gtranslate h3,
.widget_gtranslate .gtranslate_wrapper,
.gtranslate_wrapper { text-align: center; }
.widget_gtranslate h3,
.widget_gtranslate .widget-title {
	font-family: var(--ff-display);
	font-size: 1.25rem;
	margin-block: var(--space-6) var(--space-4);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
}
.gtranslate_wrapper img { vertical-align: middle; margin-inline: 2px; }

/* ───── post-type-archive Tribe read-more ───── */
.post-type-archive-tribe_events .tribe-events-read-more { color: var(--c-primary); }

/* ───── 100 Mile Challenge "sign-in" form (kayzp_*) — minimal, defensive ───── */
#kayzp_sign_in,
#kayzp_log_activity {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: var(--space-5);
}
#kayzp_sign_in > div,
#kayzp_log_activity > div { min-width: 320px; flex: 1 1 320px; }
#kayzp_sign_in label,
#kayzp_log_activity label {
	display: flex;
	flex-direction: column;
	margin-bottom: var(--space-4);
}

/* ───── 100 Mile dashboard ───── */
#kayzp_dashboard {
	background: #f1e8cf;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--space-10) var(--space-4) var(--space-8);
	border-radius: var(--radius-lg);
	position: relative;
}
#kayzp_dashboard h2 { margin-bottom: var(--space-8); }
#kayzp_total_user_miles {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	margin-bottom: var(--space-8);
}
#kayzp_total_user_miles h4 { margin: 0; font-size: 1.5rem; }
#kayzp_total_user_miles p {
	font-weight: 700;
	color: darkorange;
	font-size: 1.5rem;
	margin: 0;
}

.kayzp_dashboard_stages {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-5);
	padding: 0;
	list-style: none;
}
.kayzp_dashboard_stages li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
}
.kayzp_dashboard_stages li img { width: 84px; height: auto; }
.kayzp_dashboard_stages li .label {
	font-family: var(--ff-body);
	letter-spacing: 0.06em;
	font-size: 0.875rem;
	font-weight: 700;
	color: #1b761b;
}
.kayzp_dashboard_stages li .step {
	height: 36px;
	width: 36px;
	border-radius: 50%;
	background: #ff8c00;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 0.95rem;
	cursor: pointer;
}
.kayzp_dashboard_stages li.non_active img { filter: grayscale(1); }

/* ───── kayzp leaderboard / activity log tables ───── */
.kayzp_dashboard_activity_log,
.kayzp_leaderboard_table {
	width: 100%;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-block: var(--space-5);
}
.kayzp_dashboard_activity_log_row,
.kayzp_leaderboard_row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 0;
}
.kayzp_dashboard_activity_log_row + .kayzp_dashboard_activity_log_row,
.kayzp_leaderboard_row + .kayzp_leaderboard_row { border-top: 1px solid var(--c-border); }
.kayzp_dashboard_activity_log_row_title,
.kayzp_leaderboard_row_title {
	background: darkorange;
	color: #fff;
	font-weight: 700;
}
.kayzp_dashboard_activity_log_col,
.kayzp_leaderboard_col {
	padding: var(--space-3) var(--space-4);
	border-right: 1px solid var(--c-border);
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.kayzp_dashboard_activity_log_col:last-child,
.kayzp_leaderboard_col:last-child { border-right: 0; }

/* ───── join-challenge homepage section background override (matches original) ───── */
#join_100_mile_challenge { background: #fff; }
#join_100_mile_challenge .home-challenge__green { color: #089e15; }
#join_100_mile_challenge .home-challenge__badges img { width: 140px; }
