/* Selected Work single — scoped to .sg-work-single */

.sg-work-single__back {
	margin: 0 0 var(--space-sm);
}

.sg-work-single__back a {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text-muted);
	text-decoration: none;
}

.sg-work-single__back a:hover,
.sg-work-single__back a:focus-visible {
	color: var(--color-accent);
}

.sg-work-single__hero-actions {
	margin: var(--space-md) 0 0;
}

.sg-work-single__cover {
	padding: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

.sg-work-single__figure {
	margin: 0;
	overflow: hidden;
	background: rgba(222, 214, 200, 0.28);
}

.sg-work-single__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top center;
}

.sg-work-single__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.75rem, 4vw, 2.75rem);
	align-items: start;
}

.sg-work-single__entry {
	max-width: 42rem;
}

.sg-work-single__entry h2 {
	margin: 1.75rem 0 0.65rem;
	font-size: clamp(1.125rem, 2vw, 1.3rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.sg-work-single__entry h2:first-child {
	margin-top: 0;
}

.sg-work-single__entry p {
	margin: 0 0 1em;
	color: var(--color-text-muted);
	line-height: 1.65;
}

.sg-work-single__entry p:last-child {
	margin-bottom: 0;
}

.sg-work-single__tasks {
	margin-top: 1.75rem;
}

.sg-work-single__tasks ul {
	margin: 0.65rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.sg-work-single__tasks li {
	position: relative;
	padding-left: 1rem;
	color: var(--color-text-muted);
	line-height: 1.55;
	font-size: 0.9875rem;
}

.sg-work-single__tasks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.35rem;
	height: 0.35rem;
	background: rgba(91, 102, 82, 0.55);
}

.sg-work-single__aside {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	min-width: 0;
}

.sg-work-single__panel {
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	background: rgba(255, 253, 252, 0.55);
}

.sg-work-single__panel-title {
	margin: 0 0 var(--space-sm);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-accent-soft);
}

.sg-work-single__tech {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.sg-work-single__tech li {
	padding: 0.3rem 0.65rem;
	font-size: 0.8125rem;
	line-height: 1.3;
	color: var(--color-text);
	border: 1px solid rgba(222, 214, 200, 0.9);
	background: var(--color-bg);
}

.sg-work-single__aside-back {
	margin: 0;
}

.sg-work-single__aside-back a {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text-muted);
	text-decoration: none;
}

.sg-work-single__aside-back a:hover,
.sg-work-single__aside-back a:focus-visible {
	color: var(--color-accent);
}

.sg-work-single__cta {
	margin-top: clamp(2.5rem, 6vw, 3.5rem);
	padding-top: clamp(1.5rem, 4vw, 2rem);
	border-top: 1px solid rgba(222, 214, 200, 0.75);
	max-width: 40rem;
}

.sg-work-single__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin: var(--space-md) 0 0;
}

@media (min-width: 960px) {
	.sg-work-single__layout {
		grid-template-columns: minmax(0, 1.45fr) minmax(14rem, 0.55fr);
		gap: clamp(2rem, 5vw, 3.5rem);
	}

	.sg-work-single__aside {
		position: sticky;
		top: calc(var(--header-offset, 5.5rem) + 1rem);
	}
}

/* Card focus polish shared with home/archive */
.sg-work-card__media:focus-visible,
.sg-work-card__title a:focus-visible,
.sg-work-card__action a:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

.sg-selected-work--archive {
	padding-top: 0;
}
