/* Венец на дързост — front-end ballot */
.vnd-wrap {
	--vnd-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--vnd-font-head: 'Montserrat', var(--vnd-font-body);
	max-width: 720px;
	margin: 0 auto 40px;
	font-family: var(--vnd-font-body);
	color: #1f2a37;
}

/* Body copy uses Inter throughout the widget. */
.vnd-wrap,
.vnd-wrap input,
.vnd-wrap button {
	font-family: var(--vnd-font-body);
}

/* Headings, labels and the action button use Montserrat. */
.vnd-ballot-title,
.vnd-category-name,
.vnd-label,
.vnd-greeting,
.vnd-submit,
.vnd-done-title,
.vnd-done-text {
	font-family: var(--vnd-font-head);
}

.vnd-form {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
}

.vnd-notice {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	color: #475569;
}

.vnd-intro {
	margin: 0 0 14px;
	color: #475569;
}

.vnd-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.vnd-input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	font-size: 18px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 2px solid #d1d5db;
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vnd-input:focus {
	outline: none;
	border-color: #25a4b3;
	box-shadow: 0 0 0 4px rgba(37, 164, 179, 0.15);
}

.vnd-input.is-valid { border-color: #16a34a; }
.vnd-input.is-invalid { border-color: #dc2626; }

.vnd-greeting {
	margin-top: 12px;
	font-size: 17px;
	font-weight: 600;
	min-height: 24px;
}
.vnd-greeting.is-ok { color: #25a4b3; }
.vnd-greeting.is-err { color: #dc2626; }
.vnd-greeting.is-muted { color: #6b7280; font-weight: 500; }

.vnd-voted-note {
	margin-top: 6px;
	font-size: 16px;
	font-weight: 600;
	color: #dc2626;
}

.vnd-step-ballot {
	margin-top: 26px;
	border-top: 1px solid #eef2f7;
	padding-top: 20px;
}

.vnd-ballot-title {
	margin: 0 0 16px;
	font-size: 18px;
}

.vnd-category {
	border: 1px solid #eef2f7;
	border-radius: 12px;
	padding: 14px 16px 8px;
	margin: 0 0 16px;
}

.vnd-category-name {
	font-weight: 700;
	color: #0f766e;
	padding: 0 6px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.vnd-nominee {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 8px;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.12s ease;
}
.vnd-nominee:hover { background: #f1f5f9; }

.vnd-nominee input[type="radio"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: #25a4b3;
	flex: 0 0 auto;
}

.vnd-nominee-text { display: flex; flex-direction: column; }
.vnd-nominee-name { font-weight: 600; }
.vnd-nominee-aff { color: #6b7280; font-size: 13px; margin-top: 2px; }

.vnd-nominee.is-selected { background: #ecfeff; box-shadow: inset 0 0 0 1px #a5f3fc; }

.vnd-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 8px;
	padding: 15px 20px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	background: #25a4b3;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}
.vnd-submit:hover:not(:disabled) { background: #1d8a97; }
.vnd-submit:active:not(:disabled) { transform: translateY(1px); }
.vnd-submit:disabled { background: #cbd5e1; cursor: not-allowed; }

.vnd-error {
	margin-top: 12px;
	color: #dc2626;
	font-weight: 600;
	min-height: 20px;
}

.vnd-step-done { text-align: center; padding: 30px 10px; }
.vnd-done-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #ecfdf5;
	color: #16a34a;
	font-size: 34px;
	line-height: 64px;
}
.vnd-done-title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: #16a34a;
}
.vnd-done-text { margin: 0; font-size: 17px; font-weight: 600; color: #475569; }

/* ---------------------------------------------------------------------------
 * Phase 2 — final round finalist cards
 * ------------------------------------------------------------------------- */
.vnd-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 0 0 20px;
}

.vnd-card {
	position: relative;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.vnd-card:hover { border-color: #a5f3fc; box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08); }

/* Visually-hidden radio; the whole label is the click target. */
.vnd-card-radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.vnd-card-label {
	display: block;
	cursor: pointer;
	padding-bottom: 12px;
}

/* Portrait crop like the site's lecturer cards; top-anchored so heads are
   never cut off on tall headshots. */
.vnd-card-media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	background: #f1f5f9;
	overflow: hidden;
}
.vnd-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}
.vnd-card-media-empty {
	background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.vnd-card-body {
	display: block;
	padding: 12px 14px 0;
}
.vnd-card-name {
	display: block;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
}
.vnd-card-aff {
	display: block;
	color: #6b7280;
	font-size: 13px;
	margin-top: 4px;
}

/* Selected check badge (hidden until chosen). */
.vnd-card-check {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #25a4b3;
	color: #fff;
	font-size: 16px;
	line-height: 28px;
	text-align: center;
	transform: scale(0);
	transition: transform 0.15s ease;
}

/* "Прочети повече" button under a finalist card (voting + showcase pages). */
.vnd-card-bio {
	display: block;
	margin: 0 14px 14px;
	padding: 9px 14px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #25a4b3;
	background: rgba(37, 164, 179, 0.08);
	border: 1px solid rgba(37, 164, 179, 0.35);
	border-radius: 9px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}
.vnd-card-bio:hover {
	background: #25a4b3;
	color: #fff;
	text-decoration: none;
}

.vnd-card.is-selected {
	border-color: #25a4b3;
	box-shadow: 0 0 0 2px #25a4b3, 0 6px 20px rgba(37, 164, 179, 0.18);
}
.vnd-card.is-selected .vnd-card-check { transform: scale(1); }

/* Keyboard focus visibility on the hidden radio. */
.vnd-card-radio:focus-visible + .vnd-card-label {
	outline: 2px solid #25a4b3;
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
 * [vnd_finalists] — public showcase (no voting)
 * Same card language as the voting page, scaled up for a standalone page;
 * the flex column bottom-aligns the buttons, hover doesn't suggest selection.
 * ------------------------------------------------------------------------- */
.vnd-wrap-showcase { max-width: 1080px; }
.vnd-wrap-showcase .vnd-cards { gap: 24px; }

.vnd-card-static {
	display: flex;
	flex-direction: column;
}

/* Stretched link: covers the card so it's clickable anywhere; the button sits
   above it so its own hover/focus still work. */
.vnd-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.vnd-card-static .vnd-card-bio {
	position: relative;
	z-index: 2;
}
.vnd-card-static .vnd-card-body {
	padding: 14px 16px 12px;
	flex: 1;
}
.vnd-card-static .vnd-card-name {
	font-size: 18px;
}
.vnd-card-static .vnd-card-aff {
	font-size: 14px;
	margin-top: 5px;
}
.vnd-card-static .vnd-card-bio {
	font-size: 14px;
	padding: 11px 14px;
	margin: 0 16px 16px;
}

/* ---------------------------------------------------------------------------
 * Finalist sub-page — mirrors the conference site's lecturer profile
 * ------------------------------------------------------------------------- */
.vnd-profile {
	--vnd-navy: #024089;
	--vnd-ink: #191C1D;
	--vnd-muted: #5c6674;
	--vnd-line: #e3e8f0;
	--vnd-soft: #f4f6fa;
	box-sizing: border-box;
	max-width: 1140px;
	margin: 0 auto;
	padding: 150px 24px 90px;
	font-family: 'Onest', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--vnd-ink);
}
.vnd-profile * { box-sizing: border-box; }

.vnd-profile-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--vnd-muted);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.88rem;
	margin-bottom: 22px;
	transition: color 0.2s;
}
.vnd-profile-back:hover { color: var(--vnd-navy); }

.vnd-profile-grid {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 34px;
	align-items: start;
}

.vnd-profile-side {
	position: sticky;
	top: 90px;
}

.vnd-profile-ph {
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	position: relative;
	background: var(--vnd-soft);
	box-shadow: 0 20px 44px -30px rgba(2, 64, 137, 0.5);
}
.vnd-profile-ph img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}
.vnd-profile-ph-empty {
	background: linear-gradient(135deg, #e9edf3, #f4f6fa);
}

.vnd-profile-main { min-width: 0; }

.vnd-profile-name {
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	margin: 0 0 10px;
	color: var(--vnd-ink);
}

.vnd-profile-aff {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--vnd-navy);
	margin: 0 0 18px;
}

.vnd-profile-bio {
	font-size: 1rem;
	line-height: 1.75;
	color: #33404e;
	overflow-wrap: anywhere;
}
.vnd-profile-bio p { margin: 0 0 1em; }
.vnd-profile-bio ul,
.vnd-profile-bio ol { margin: 0 0 1em; padding-left: 1.3em; }
.vnd-profile-bio a { color: var(--vnd-navy); }

@media (max-width: 900px) {
	.vnd-profile { padding: 120px 18px 60px; }
	.vnd-profile-grid { grid-template-columns: 1fr; }
	.vnd-profile-side { position: static; }
}

@media (max-width: 600px) {
	.vnd-form { padding: 20px; }
	.vnd-input { font-size: 16px; }
	.vnd-cards { grid-template-columns: 1fr; }
}
