/* Single post — sticky sidebar and featured image labels. Loaded after the main sheet. */

/* The right sidebar stays in view while reading. It is taller than the screen, so it
   scrolls inside itself; the 64px header (and the admin bar when logged in) stay clear. */
@media (min-width: 1024px) {
	.em-single-sidebar {
		position: sticky;
		top: calc(84px + var(--wp-admin--admin-bar--height, 0px));
		max-height: calc(100vh - 100px - var(--wp-admin--admin-bar--height, 0px));
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--em-border) transparent;
		padding-right: 4px;
	}
}

/* Featured image: the space is held at the image's shape and tinted while it loads. */
.em-featured-wrap img {
	aspect-ratio: 1200 / 630;
	height: auto;
	object-fit: cover;
	background: var(--em-bg-2);
}
/* The heavy shadow reads well on the dark page; on the light page it looked dirty. */
[data-theme='light'] .em-featured-wrap img {
	box-shadow: 0 10px 30px rgba(12, 18, 32, 0.12);
}

.em-fi-chip {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 3rem - 28px);
	padding: 6px 10px;
	border-radius: 999px;
	font: 600 13px/1.1 inherit;
	color: #E8EDF5;
	background: rgba(10, 16, 26, 0.78);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(232, 237, 245, 0.18);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}
.em-fi-chip svg { flex: none; }
.em-fi-chip--top { top: 14px; left: calc(1.5rem + 14px); }
.em-fi-chip--time { bottom: 14px; right: calc(1.5rem + 14px); }

@media (max-width: 640px) {
	.em-featured-wrap { padding: 0 0.75rem; }
	.em-featured-wrap img { border-radius: 12px; }
	.em-fi-chip { font-size: 12px; max-width: calc(100% - 1.5rem - 20px); }
	.em-fi-chip--top { top: 10px; left: calc(0.75rem + 10px); }
	.em-fi-chip--time { bottom: 10px; right: calc(0.75rem + 10px); }
}
