/*
 * TechBehemoths Awards 2026 vote note (this folder: inc/techbehemoths-vote-2026/). Design C5, 22 Nov 2026.
 *
 * Motion, played once:
 *   in   the card slides in from the right (from below on phones) on the site's arrival curve, carrying all its
 *        content; the photos, text, tray and close button settle a beat after it. Finished by about 1s. The note
 *        waits for their widget, so it arrives complete.
 *   out  the card accelerates back out the way it came (X, Esc, or a click or tap outside it), and the reopen
 *        button pops into the corner as it leaves.
 * Reduced motion: a plain fade, no movement.
 */

.vw-vote {
	--vw-vote-in: cubic-bezier(.16, 1, .3, 1);
	--vw-vote-ui: cubic-bezier(.2, .8, .2, 1);
	--vw-vote-out: cubic-bezier(.55, 0, .75, .25);
	--vw-vote-from: translate3d(calc(100% + 56px), 0, 0);
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 50;
	width: 293px;
	box-sizing: border-box;
	background: #FFFFFF;
	border: 1px solid #ECEAF2;
	border-radius: 22px;
	box-shadow: 0 18px 44px rgba(10, 10, 15, .14), 0 2px 6px rgba(10, 10, 15, .05);
	font-family: var(--vw-body, 'Instrument Sans'), system-ui, sans-serif;
	color: #0A0A0F;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: var(--vw-vote-from);
	transition: transform 420ms var(--vw-vote-out), opacity 260ms linear 160ms, visibility 0s linear 420ms;
}
.vw-vote[hidden] { display: none; }
.vw-vote.is-in {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: transform 760ms var(--vw-vote-in), opacity 200ms var(--vw-vote-ui), visibility 0s;
}

/* Photos, half over the top edge */
.vw-vote__faces {
	position: absolute;
	top: -20px;
	left: 16px;
	display: flex;
}
.vw-vote__face {
	display: block;
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 3px solid #FFFFFF;
	object-fit: cover;
	background: #F1F0F1;
	box-shadow: 0 4px 12px rgba(10, 10, 15, .12);
}
.vw-vote__face + .vw-vote__face { margin-left: -11px; }

/* Close button (fixed 22 Nov 17:30). A 32px circle. With a mouse the clickable area is exactly the circle, so the
   pointer, the hover and the click all agree; on touch screens it keeps a 44px target around it.
   Hover: a dark fill grows from the centre while the X turns white, both on one 220ms curve, so the X is never lost
   against its background mid-change (the old version switched the X to white instantly while the grey faded, and spun
   it 90°, which read as a flicker). Press: the circle dips to .92. */
.vw-vote__x {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #3D3A48;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 220ms var(--vw-vote-ui);
}
.vw-vote__x-dot {
	position: relative;
	isolation: isolate;
	width: 32px;
	height: 32px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 1px solid #ECEAF2;
	background: #F6F5F8;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 220ms var(--vw-vote-ui), transform 180ms var(--vw-vote-ui);
}
.vw-vote__x-dot::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: 50%;
	background: #0A0A0F;
	opacity: 0;
	transform: scale(.5);
	transition: opacity 220ms var(--vw-vote-ui), transform 320ms var(--vw-vote-in);
}
.vw-vote__x svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
	.vw-vote__x {
		top: 12px;
		right: 12px;
		width: 32px;
		height: 32px;
	}
	.vw-vote__x:hover { color: #FFFFFF; }
	.vw-vote__x:hover .vw-vote__x-dot { border-color: #0A0A0F; }
	.vw-vote__x:hover .vw-vote__x-dot::before { opacity: 1; transform: none; }
}
.vw-vote__x:active { color: #FFFFFF; }
.vw-vote__x:active .vw-vote__x-dot { border-color: #0A0A0F; transform: scale(.92); }
.vw-vote__x:active .vw-vote__x-dot::before { opacity: 1; transform: none; }
.vw-vote__x:focus { outline: none; }
.vw-vote__x:focus-visible { color: #FFFFFF; }
.vw-vote__x:focus-visible .vw-vote__x-dot { border-color: #0A0A0F; outline: 2px solid #5A2FD6; outline-offset: 2px; }
.vw-vote__x:focus-visible .vw-vote__x-dot::before { opacity: 1; transform: none; }

/* Text */
.vw-vote__text {
	padding: 30px 18px 16px;
}
.vw-vote__text p { margin: 0; }
.vw-vote .vw-vote__title {
	margin: 0 0 6px;
	padding-right: 28px; /* keeps the first line clear of the close button */
	font-family: var(--vw-head, Poppins), sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: #0A0A0F;
	text-wrap: balance;
}
.vw-vote .vw-vote__body {
	font-size: 14px;
	line-height: 1.55;
	color: #6E6B7B;
	text-wrap: pretty;
}

/* The TechBehemoths widget, set into a tray. Their script makes it a fixed corner badge; here it sits in the card.
   Its height is theirs: the iframe reports it (241px at this width) and their script applies it. The tray holds that
   height while it loads, so the card doesn't change size. */
.vw-vote__tray {
	margin: 0 8px 8px;
	min-height: 241px;
	border-radius: 14px;
	background: #101010;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.vw-vote [data-tb-embedded-award] {
	width: 275px;
	max-width: 100%;
}
.vw-vote [data-tb-embedded-award] > div {
	position: static !important;
	inset: auto !important;
	z-index: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	border-radius: 14px !important;
	box-shadow: none !important;
	overflow: hidden;
	opacity: 0;
	transition: opacity 420ms var(--vw-vote-ui);
}
.vw-vote.is-ready [data-tb-embedded-award] > div { opacity: 1; }
.vw-vote [data-tb-embedded-award] > div > button { display: none !important; }
.vw-vote [data-tb-award-frame] {
	display: block;
	width: 100% !important;
	border: 0;
}
/* If their script can't load: a plain button to the vote page (hidden until then, so it never flashes). */
.vw-vote [data-tb-embedded-award] > a { display: none; }
.vw-vote.is-fallback [data-tb-embedded-award] > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin: 20px;
	padding: 12px 20px;
	border-radius: 10px;
	background: #3B72FF;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}
.vw-vote [data-tb-embedded-award] > a:hover { color: #FFFFFF; background: #2F62E6; }

/* Entrance: the content arrives with the card and is never hidden, so the card never shows up empty (Louie,
   16:58: it looked black without the text). Each layer travels a little further than the card and settles a beat
   later, which gives the slide its depth. Transform only, so it stays smooth while the page is still loading. */
@keyframes vw-vote-face {
	from { transform: translate3d(0, 8px, 0) scale(.9); }
	to { transform: none; }
}
@keyframes vw-vote-rise {
	from { transform: translate3d(0, 10px, 0); }
	to { transform: none; }
}
@keyframes vw-vote-x {
	from { transform: rotate(-90deg); }
	to { transform: none; }
}
.vw-vote.is-in .vw-vote__face { animation: vw-vote-face 680ms var(--vw-vote-in) 120ms backwards; }
.vw-vote.is-in .vw-vote__face + .vw-vote__face { animation-delay: 160ms; }
.vw-vote.is-in .vw-vote__title { animation: vw-vote-rise 680ms var(--vw-vote-in) 170ms backwards; }
.vw-vote.is-in .vw-vote__body { animation: vw-vote-rise 680ms var(--vw-vote-in) 200ms backwards; }
.vw-vote.is-in .vw-vote__tray { animation: vw-vote-rise 720ms var(--vw-vote-in) 230ms backwards; }
.vw-vote.is-in .vw-vote__x svg { animation: vw-vote-x 640ms var(--vw-vote-in) 260ms backwards; }


/* Reopen button (option A, 22 Nov 17:22): the TechBehemoths laurel in a dark circle, bottom right, after the note is
   closed. Pops in as the note leaves; "Vote for us" slides out beside it on hover or keyboard focus. */
.vw-vote-open {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 50;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: scale(.6);
	transition: transform 320ms cubic-bezier(.55, 0, .75, .25), opacity 200ms linear, visibility 0s linear 320ms;
	-webkit-tap-highlight-color: transparent;
}
.vw-vote-open[hidden] { display: none; }
.vw-vote-open.is-on {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: transform 560ms cubic-bezier(.16, 1, .3, 1), opacity 240ms cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.vw-vote-open__dot {
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .14);
	background: #0A0A0F;
	box-shadow: 0 10px 28px rgba(10, 10, 15, .28), 0 2px 6px rgba(10, 10, 15, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
}
.vw-vote-open__dot img {
	display: block;
	width: 32px;
	height: auto;
}
.vw-vote-open__label {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	height: 32px;
	padding: 0 14px;
	box-sizing: border-box;
	border-radius: 16px;
	background: #0A0A0F;
	color: #FFFFFF;
	font-family: var(--vw-head, Poppins), sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 32px;
	white-space: nowrap;
	box-shadow: 0 10px 28px rgba(10, 10, 15, .28), 0 2px 6px rgba(10, 10, 15, .12);
	pointer-events: none;
	opacity: 0;
	transform: translate3d(8px, -50%, 0);
	transition: opacity 200ms cubic-bezier(.2, .8, .2, 1), transform 320ms cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) {
	.vw-vote-open:hover .vw-vote-open__dot { transform: scale(1.06); }
	.vw-vote-open:hover .vw-vote-open__label { opacity: 1; transform: translate3d(0, -50%, 0); }
}
.vw-vote-open:focus { outline: none; }
.vw-vote-open:focus-visible .vw-vote-open__dot { outline: 2px solid #5A2FD6; outline-offset: 3px; }
.vw-vote-open:focus-visible .vw-vote-open__label { opacity: 1; transform: translate3d(0, -50%, 0); }
.vw-vote-open:active .vw-vote-open__dot { transform: scale(.96); }

/* Phones: along the bottom of the screen, in from below */
@media (max-width: 720px) {
	.vw-vote {
		--vw-vote-from: translate3d(0, calc(100% + 32px), 0);
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		width: auto;
	}
	.vw-vote-open {
		right: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.vw-vote,
	.vw-vote.is-in {
		transform: none;
		transition: opacity 240ms linear, visibility 0s linear 240ms;
	}
	.vw-vote.is-in { transition: opacity 240ms linear, visibility 0s; }
	.vw-vote *,
	.vw-vote.is-in * { animation: none !important; }
	.vw-vote__x-dot,
	.vw-vote__x-dot::before { transition: opacity 120ms linear, border-color 120ms linear; }
	.vw-vote__x-dot::before { transform: none; }
	.vw-vote__x:active .vw-vote__x-dot { transform: none; }
	.vw-vote [data-tb-embedded-award] > div { transition: opacity 200ms linear; }
	.vw-vote-open,
	.vw-vote-open.is-on { transform: none; transition: opacity 200ms linear, visibility 0s linear 200ms; }
	.vw-vote-open.is-on { transition: opacity 200ms linear, visibility 0s; }
	.vw-vote-open__dot,
	.vw-vote-open__label { transition: opacity 200ms linear; }
	.vw-vote-open:hover .vw-vote-open__dot,
	.vw-vote-open:active .vw-vote-open__dot { transform: none; }
}

@media print {
	.vw-vote,
	.vw-vote-open { display: none !important; }
}
