/* External links */
a[href^="https://"]:not([href^="https://11ty.dev"], [href^="https://www.11ty.dev"], .minilink, .elv-externalexempt) {
	text-decoration-color: var(--external-link-underline);
}
a[href^="https://"]:not([href^="https://11ty.dev"], [href^="https://www.11ty.dev"], .minilink, .elv-externalexempt):after {
	content: " ↗";
	font-family: system-ui, sans-serif;
	font-style: normal;
	font-weight: 900;
	color: var(--external-link-underline);
	padding-left: 0;
	font-size: 0.75em;
	line-height: 0.75;
	letter-spacing: -0.08333333333333em; /* -1px /12 */
}
/* Contains Font Awesome icon */
a[href^="https://"]:not([href^="https://11ty.dev"], [href^="https://www.11ty.dev"], .minilink, .elv-externalexempt):has(.fa11ty-icon):after {
	content: "";
}

/* External link hovers */
a[href^="https://"]:not([href^="https://11ty.dev"], [href^="https://www.11ty.dev"], .minilink, .elv-externalexempt):hover:after {
	color: inherit;
}

/* CSS-only favicons https://www.zachleat.com/web/external-link-favicons/
 * Limited to YouTube and GitHub only (most commonly used)
 */
a:is([href^="https://www.youtube.com"], [href^="https://youtube.com"]):not(.elv-externalexempt):before,
a[href^="https://github.com"]:not(.elv-externalexempt):before {
	content: "";
	display: inline-block;
	vertical-align: text-bottom;
	width: 1em;
	height: 1em;
	margin: 0 0.2em;
	background-size: contain;
	background-repeat: no-repeat;
}
a:is([href^="https://www.youtube.com"], [href^="https://youtube.com"]):not(.elv-externalexempt):after,
a[href^="https://github.com"]:not(.elv-externalexempt):after {
	display: none;
}

a:is([href^="https://www.youtube.com"], [href^="https://youtube.com"]):before {
	/* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. */
	/* https://fontawesome.com/icons/youtube?f=classic&s=brands */
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20576%20512%22%3E%3Cpath%20fill%3D%22%23f03%22%20d%3D%22M549.7%20124.1c-6.3-23.7-24.8-42.3-48.3-48.6C458.8%2064%20288%2064%20288%2064S117.2%2064%2074.6%2075.5c-23.5%206.3-42%2024.9-48.3%2048.6-11.4%2042.9-11.4%20132.3-11.4%20132.3s0%2089.4%2011.4%20132.3c6.3%2023.7%2024.8%2041.5%2048.3%2047.8C117.2%20448%20288%20448%20288%20448s170.8%200%20213.4-11.5c23.5-6.3%2042-24.2%2048.3-47.8%2011.4-42.9%2011.4-132.3%2011.4-132.3s0-89.4-11.4-132.3zm-317.5%20213.5V175.2l142.7%2081.2-142.7%2081.2z%22%2F%3E%3C%2Fsvg%3E");
}
a[href^="https://github.com"]:before {
	border-radius: 7px;
	box-shadow: 0px 0px 0px 2px #fff;
	background-color: #fff;
	/* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. */
	/* https://fontawesome.com/icons/github?f=classic&s=brands */
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20496%20512%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M165.9%20397.4c0%202-2.3%203.6-5.2%203.6-3.3%20.3-5.6-1.3-5.6-3.6%200-2%202.3-3.6%205.2-3.6%203-.3%205.6%201.3%205.6%203.6zm-31.1-4.5c-.7%202%201.3%204.3%204.3%204.9%202.6%201%205.6%200%206.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5%20.3-6.2%202.3zm44.2-1.7c-2.9%20.7-4.9%202.6-4.6%204.9%20.3%202%202.9%203.3%205.9%202.6%202.9-.7%204.9-2.6%204.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8%208C106.1%208%200%20113.3%200%20252c0%20110.9%2069.8%20205.8%20169.5%20239.2%2012.8%202.3%2017.3-5.6%2017.3-12.1%200-6.2-.3-40.4-.3-61.4%200%200-70%2015-84.7-29.8%200%200-11.4-29.1-27.8-36.6%200%200-22.9-15.7%201.6-15.4%200%200%2024.9%202%2038.6%2025.8%2021.9%2038.6%2058.6%2027.5%2072.9%2020.9%202.3-16%208.8-27.1%2016-33.7-55.9-6.2-112.3-14.3-112.3-110.5%200-27.5%207.6-41.3%2023.6-58.9-2.6-6.5-11.1-33.3%202.6-67.9%2020.9-6.5%2069%2027%2069%2027%2020-5.6%2041.5-8.5%2062.8-8.5s42.8%202.9%2062.8%208.5c0%200%2048.1-33.6%2069-27%2013.7%2034.7%205.2%2061.4%202.6%2067.9%2016%2017.7%2025.8%2031.5%2025.8%2058.9%200%2096.5-58.9%20104.2-114.8%20110.5%209.2%207.9%2017%2022.9%2017%2046.4%200%2033.7-.3%2075.4-.3%2083.6%200%206.5%204.6%2014.4%2017.3%2012.1C428.2%20457.8%20496%20362.9%20496%20252%20496%20113.3%20383.5%208%20244.8%208zM97.2%20352.9c-1.3%201-1%203.3%20.7%205.2%201.6%201.6%203.9%202.3%205.2%201%201.3-1%201-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7%201.3%20.3%202.9%202.3%203.9%201.6%201%203.6%20.7%204.3-.7%20.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3%20.7zm32.4%2035.6c-1.6%201.3-1%204.3%201.3%206.2%202.3%202.3%205.2%202.6%206.5%201%201.3-1.3%20.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6%201-1.6%203.6%200%205.9%201.6%202.3%204.3%203.3%205.6%202.3%201.6-1.3%201.6-3.9%200-6.2-1.4-2.3-4-3.3-5.6-2z%22%2F%3E%3C%2Fsvg%3E");
}
a[href^="https://github.com"].elv-skipicon:before {
	display: none;
}

/* Not in the facepile or in the community links cards */
.sites-site-vert a[href^="https://github.com"]:before,
.sites-site-vert a:is([href^="https://www.youtube.com"], [href^="https://youtube.com"]):before,
a[href^="https://youtube.com"].lty-playbtn:before,
.facepile a[href^="https://github.com"]:before {
	display: none;
}

/* Hide duplicate images */
a:is([href^="https://www.youtube.com"], [href^="https://youtube.com"]):not(.elv-externalexempt) .avatar,
a[href^="https://github.com"]:not(.elv-externalexempt) .avatar {
	display: none;
}
