/* Exelion Voting — nominee profile page */
.evs-profile {
	--evs-accent: #d8b25a;
	--p-ink: #11131c;
	--p-ink-2: #1b1e2b;
	--p-line: rgba(255,255,255,.10);
	--p-text: #eef0f6;
	--p-muted: #9aa0b5;
	max-width: 960px;
	margin: 0 auto;
	color: var(--p-text);
}
.evs-profile-missing p { color: var(--p-muted); text-align: center; padding: 2rem 0; }

/* Hero card */
.evs-profile-card {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 1.75rem;
	padding: 1.75rem;
	border-radius: 20px;
	background:
		radial-gradient(120% 80% at 0% 0%, rgba(216,178,90,.10), transparent 55%),
		linear-gradient(180deg, var(--p-ink-2), var(--p-ink));
	border: 1px solid var(--p-line);
	border-top: 3px solid var(--evs-accent);
	box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
	color: var(--p-text);
	margin-bottom: 1.1rem;
}
.evs-profile-media { position: relative; }
.evs-profile-photo {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 16px;
	border: 2px solid var(--evs-accent);
	box-shadow: 0 0 34px -12px var(--evs-accent);
	background: rgba(255,255,255,.04);
}
.evs-profile-initial {
	display: flex; align-items: center; justify-content: center;
	font-size: 4.5rem; font-weight: 700;
	color: var(--evs-accent);
}

.evs-profile-cat {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .3rem .7rem;
	border-radius: 999px;
	background: rgba(255,255,255,.06);
	border: 1px solid var(--evs-accent);
	color: var(--evs-accent);
	font-size: .76rem; font-weight: 600;
	letter-spacing: .07em; text-transform: uppercase;
	margin-bottom: .85rem;
}
.evs-profile-name {
	margin: 0 0 .35rem;
	font-size: clamp(1.7rem, 3.6vw, 2.5rem);
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
	text-transform: capitalize;
}
.evs-profile-tagline { margin: 0 0 1rem; color: var(--p-muted); font-size: 1.02rem; }
.evs-profile-votes {
	display: inline-flex; align-items: baseline; gap: .45rem;
	margin: 0 0 1rem;
	padding: .55rem 1rem;
	border-radius: 12px;
	background: rgba(255,255,255,.05);
	border: 1px solid var(--p-line);
}
.evs-profile-votes strong { font-size: 1.7rem; color: var(--evs-accent); }
.evs-profile-votes span { font-size: .85rem; color: var(--p-muted); }
.evs-profile-bio { font-size: .95rem; line-height: 1.65; color: var(--p-muted); }
.evs-profile-bio p { margin: 0 0 .8rem; }

/* Share */
.evs-share { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--p-line); }
.evs-share-label {
	display: block; margin-bottom: .7rem;
	font-size: .76rem; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--evs-accent);
}
.evs-share-btns { display: flex; flex-wrap: wrap; gap: .55rem; }
.evs-share-btn {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .6rem .95rem;
	border-radius: 10px;
	border: 1px solid var(--p-line);
	background: rgba(255,255,255,.05);
	color: var(--p-text);
	font-size: .88rem; font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.evs-share-btn:hover { transform: translateY(-2px); border-color: var(--evs-accent); background: rgba(255,255,255,.09); color: #fff; }
.evs-wa:hover { border-color: #25d366; color: #25d366; }
.evs-fb:hover { border-color: #1877f2; color: #1877f2; }
.evs-x:hover  { border-color: #fff; color: #fff; }
.evs-copy.evs-copied { border-color: var(--evs-accent); color: var(--evs-accent); }
.evs-share-url {
	width: 100%; margin-top: .7rem;
	padding: .6rem .8rem;
	border-radius: 10px;
	border: 1px dashed var(--p-line);
	background: rgba(0,0,0,.25);
	color: var(--p-muted);
	font-size: .82rem;
}

/* Vote section */
.evs-profile-vote {
	padding: 1.5rem clamp(1.1rem, 3vw, 2rem);
	border-radius: 20px;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(216,178,90,.08), transparent 55%),
		linear-gradient(180deg, var(--p-ink-2), var(--p-ink));
	border: 1px solid var(--p-line);
	box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
	color: var(--p-text);
}
.evs-profile-voteh {
	margin: 0 0 1rem;
	font-size: clamp(1.15rem, 2.4vw, 1.45rem);
	font-family: Georgia, "Times New Roman", serif;
	color: var(--p-text);
	text-transform: capitalize;
}
/* The widget is nested inside our panel — drop its own panel + outer margin
   so there is no double border, double padding or dead space between them. */
.evs-profile-vote .evs-voting {
	background: none;
	border: 0;
	box-shadow: none;
	border-radius: 0;
	margin: 0;
	padding: 0;
	max-width: none;
}
.evs-profile-vote .evs-voting h3 { margin-top: 0; }
/* The widget is locked to this nominee — hide the picker steps. */
.evs-profile-vote .evs-voting.evs-locked .evs-steps,
.evs-profile-vote .evs-voting.evs-locked .evs-pane[data-pane="1"],
.evs-profile-vote .evs-voting.evs-locked .evs-pane[data-pane="2"],
.evs-profile-vote .evs-voting.evs-locked .evs-back { display: none !important; }

@media (max-width: 720px) {
	.evs-profile-card { grid-template-columns: 1fr; padding: 1.2rem; }
	.evs-profile-media { max-width: 220px; margin: 0 auto; }
	.evs-share-btn span { font-size: .84rem; }
}

/* ---- Theme-proofing -------------------------------------------------
   Themes commonly set heading/link colours globally. These rules raise
   specificity so the profile always reads correctly on its dark panel,
   whatever the surrounding page background is. */
.evs-profile .evs-profile-name,
.evs-profile h2.evs-profile-name { color: #fff; }
.evs-profile .evs-profile-tagline,
.evs-profile .evs-profile-bio,
.evs-profile .evs-profile-bio p { color: var(--p-muted); }
.evs-profile .evs-profile-votes strong { color: var(--evs-accent); }
.evs-profile .evs-profile-votes span { color: var(--p-muted); }
.evs-profile .evs-share-label { color: var(--evs-accent); }
.evs-profile .evs-share-btn,
.evs-profile a.evs-share-btn,
.evs-profile a.evs-share-btn:visited { color: var(--p-text); text-decoration: none; }
.evs-profile a.evs-share-btn:hover { color: #fff; }
.evs-profile .evs-share-url { color: var(--p-muted); background: rgba(0,0,0,.3); }
.evs-profile .evs-profile-voteh { color: var(--p-text); }
.evs-profile .evs-profile-cat { color: var(--evs-accent); }

/* Standalone render wrapper (when no profile page is configured) */
.evs-standalone-profile { max-width: 1080px; margin: 40px auto; }
