/*
	Site-specific styles, layered on top of the HTML5 UP theme (main.css).
	Keep main.css unmodified so the theme can be updated; put overrides and additions here.
*/

/* Footer: icon / badge row */

	ul.icons.footer-badges {
		display: flex;
		align-items: center;
		list-style: none;
		padding: 0;
		margin: 0;
		gap: 15px;
	}

		/* center each icon / badge vertically, regardless of its height */
		ul.icons.footer-badges > li {
			display: flex;
			align-items: center;
		}

/* Footer: Credly badge (image link) */

	.credly-badge {
		display: inline-flex;
		border-bottom: none;
	}

/*
	Footer: Toptal "Top 3% Talent" badge.
	Adapted from Toptal's embed snippet; its short class names are scoped under .toptal-badge
	so they can't collide with anything else on the page.  Needs the Typekit "proxima-nova"
	stylesheet (https://use.typekit.net/kmj5qkr.css) linked by the page.
	The whole badge (.toptal-badge) is the link; "Hire me" (.f) is a span styled like a theme link,
	and highlights when anywhere on the badge is hovered.
*/

	.toptal-badge {
		--h: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
		display: inline-flex;
		align-items: center;
		font-family: proxima-nova, Arial, sans-serif;
		border-bottom: none;
	}

		.toptal-badge .h {
			display: inline-block;
			background: #25a9ef;
			padding: 1.2px;
			clip-path: var(--h);
			vertical-align: middle;
		}

		.toptal-badge .a {
			width: 40px;
			padding: 4.8px 0 8px;
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 1.6px;
			color: #fff;
			text-align: center;
			background: linear-gradient(153deg, #0667ff 18%, #204ecf 40%, #0f256e 80%);
			clip-path: var(--h);
			box-shadow: 0 5.6px 10px rgba(6, 30, 96, .35);
		}

		.toptal-badge .b {
			margin: 0;
			font-size: 3.8px;
			font-weight: 700;
			line-height: 1;
		}

		.toptal-badge .d {
			font-size: 3.2px;
			opacity: .8;
			margin-bottom: -1.2px;
		}

		.toptal-badge .f {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			padding: 0.8px 4px;
			border-radius: 1.2px;
			background: #296bff;
			color: #fff;
			font-size: 3.2px;
			font-weight: 500;
			text-decoration-thickness: .1px;
			text-underline-offset: 0.4px;
			border-bottom: dotted 1px;
			transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
		}

		.toptal-badge:hover .f {
			color: #9bf1ff;
			border-bottom-color: transparent;
		}
