/* Half Skull: gradient placeholder for blog posts without a featured image (prefix hs-ph). */

/* the theme can hide an empty thumbnail box; the placeholder needs it */
html body .entry-thumb.no-thumb { display: block !important; overflow: hidden; }
html body .entry-thumb.no-thumb .entry-image { display: block !important; }

.hs-ph {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	aspect-ratio: 16 / 10;
	padding: 6%;
	box-sizing: border-box;
	overflow: hidden;
	isolation: isolate;
	border-radius: 20px;
	color: #fff;
	text-align: left;
	background: linear-gradient(var(--hsp-ang, 135deg), var(--hsp-a, #ff0225), var(--hsp-b, #131316));
	background-size: 130% 130%;
	background-position: 0% 50%;
	container-type: inline-size;
	transition: background-position .7s ease;
}
.hs-ph::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 60%),
		radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.6px) 0 0 / 16px 16px;
}
a:hover > .hs-ph, .item-post:hover .hs-ph { background-position: 100% 50%; }

.hs-ph__skull { position: absolute; right: -5%; bottom: -16%; z-index: -1; width: 54%; height: auto; fill: #fff; opacity: .13; transform: rotate(-8deg); }

.hs-ph__cat {
	align-self: flex-start;
	padding: .38em .85em;
	border-radius: 999px;
	background: rgba(255, 255, 255, .2);
	font-size: 12px;
	font-size: clamp(9px, 3.2cqw, 12px);
	font-weight: 800;
	letter-spacing: .12em;
	line-height: 1.1;
	text-transform: uppercase;
}
.hs-ph__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 22px;
	font-size: clamp(13px, 6.3cqw, 28px);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -.02em;
	text-wrap: balance;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}
.hs-ph__brand { font-size: 10px; font-size: clamp(8px, 2.6cqw, 11px); font-weight: 800; letter-spacing: .3em; opacity: .85; }

/* small thumbnails (sidebar lists, related posts): gradient and skull only */
@container (max-width: 190px) {
	.hs-ph__title, .hs-ph__brand, .hs-ph__cat { display: none; }
	.hs-ph__skull { right: 18%; bottom: 14%; width: 56%; opacity: .3; transform: none; }
}

@media (max-width: 767px) {
	.hs-ph { border-radius: 16px; aspect-ratio: 16 / 11; }
}
@media (prefers-reduced-motion: reduce) { .hs-ph { transition: none; } }

/* ====================================================================
   Single post: previous / next navigation, aligned to the article column
   ==================================================================== */
html body nav.post-navigation {
	width: 100%;
	max-width: 760px;
	margin: 40px auto 10px;
	padding: 0;
	float: none;
	clear: both;
}
html body nav.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 0;
	float: none;
}
html body nav.post-navigation .nav-links::before,
html body nav.post-navigation .nav-links::after { content: none !important; display: none !important; }
html body nav.post-navigation .nav-links a {
	display: block;
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 14px;
	border-radius: 22px;
	background: #fff;
	color: #131316;
	text-decoration: none;
	box-shadow: 0 0 0 1px rgba(19, 19, 22, .08), 0 8px 22px rgba(19, 19, 22, .07);
	transition: transform .2s, box-shadow .2s;
}
html body nav.post-navigation .nav-links a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 2, 37, .3), 0 14px 30px rgba(19, 19, 22, .12); }
html body nav.post-navigation .nav-links a[rel="next"] { grid-column: 2; text-align: right; }
html body nav.post-navigation .nav-links a[rel="prev"] { grid-column: 1; }
html body nav.post-navigation .media { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; }
html body nav.post-navigation a[rel="next"] .media { flex-direction: row-reverse; }
html body nav.post-navigation .media > img,
html body nav.post-navigation .media > a > img,
html body nav.post-navigation .media img.wp-post-image { flex: 0 0 88px; width: 88px; height: 88px; max-width: none; object-fit: cover; border-radius: 16px; }
/* the gradient placeholder becomes a small square tile here (text hides itself when this narrow) */
html body nav.post-navigation .hs-ph { flex: 0 0 88px; width: 88px; aspect-ratio: 1 / 1; padding: 0; border-radius: 16px; }
html body nav.post-navigation .media-body,
html body nav.post-navigation .wrapper-title-meta { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; width: auto; min-width: 0; max-width: 100%; }
html body nav.post-navigation .meta-nav { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff0225; }
html body nav.post-navigation .post-title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	color: #131316;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
@media (max-width: 640px) {
	html body nav.post-navigation { margin-top: 28px; }
	html body nav.post-navigation .nav-links { grid-template-columns: 1fr; }
	html body nav.post-navigation .nav-links a[rel="next"],
	html body nav.post-navigation .nav-links a[rel="prev"] { grid-column: 1; }
	html body nav.post-navigation .media > img,
	html body nav.post-navigation .hs-ph { flex-basis: 72px; width: 72px; height: 72px; }
}

/* equal-height cards, no stray theme divider under the pair */
html body nav.post-navigation { border: 0 !important; background: none !important; box-shadow: none !important; }
html body nav.post-navigation .nav-links { align-items: stretch; border: 0 !important; }
html body nav.post-navigation .nav-links a { display: flex; align-items: center; margin: 0 !important; height: auto; align-self: stretch; }
html body nav.post-navigation .nav-links a .media { height: 100%; }
