/* Shared visual system for long-form blog articles. */
.single-shell:has(.article-lead) .single-header {
	max-width: 760px !important;
	padding-bottom: 1.5rem;
}

.single-shell:has(.article-lead) .single-title {
	max-width: 25ch;
	font-size: clamp(2rem, 4.5vw, 3.4rem) !important;
	line-height: 1.08;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.single-shell:has(.article-lead) .single-article {
	max-width: 760px !important;
	margin-top: 1.6rem !important;
}

.single-article .wp-block-post-content > .article-lead {
	margin-top: 0;
	font-size: clamp(1.16rem, 2.3vw, 1.38rem);
	line-height: 1.55;
	color: var(--mw-ink);
}

.single-article .wp-block-post-content > .article-featured-sketch {
	margin: 0 0 2.25rem !important;
}

.article-featured-sketch img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #e1e4eb;
	border-radius: 8px;
	background: #fafaf7;
}

.article-jump {
	margin: 1rem 0 1.8rem;
}

.article-jump a {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-height: 44px;
	color: var(--mw-coral);
	font-size: 0.95rem;
	font-weight: 650;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.article-jump a:focus-visible {
	outline: 2px solid var(--mw-coral);
	outline-offset: 5px;
}

.article-note {
	margin: 0 0 2.5rem !important;
	padding: clamp(1.2rem, 3vw, 2rem);
	border: 1px solid #dce2f3;
	border-radius: 6px;
	background: linear-gradient(135deg, #f0f3ff, #f7f8fc);
	box-shadow: 0 12px 30px -24px #243c7a66;
}

.article-note figcaption {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.4rem 1rem;
	flex-wrap: wrap;
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
	font-weight: 650;
	color: var(--mw-ink);
	text-align: left;
}

.article-note figcaption span {
	color: #526077;
	font-size: 0.8rem;
	font-weight: 400;
}

.article-note-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
}

.article-note-item + .article-note-item {
	border-left: 1px solid #d4dcef;
	padding-left: 1.4rem;
}

.article-note-number {
	display: block;
	margin-bottom: 0.8rem;
	color: var(--mw-coral);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.article-note-item h3 {
	margin: 0 0 0.6rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.04rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.article-note-item p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.6;
	color: #354159;
}

.single-article .wp-block-post-content > .article-question {
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
	counter-increment: article-question;
}

.single-article .wp-block-post-content {
	counter-reset: article-question;
}

.article-question::before {
	content: counter(article-question, decimal-leading-zero);
	flex: 0 0 auto;
	color: var(--mw-coral);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9rem;
	letter-spacing: 0;
}

.article-highlight {
	display: block;
	margin-top: 1rem;
	padding: clamp(1rem, 2.5vw, 1.4rem);
	border-left: 4px solid var(--mw-coral);
	border-radius: 0 6px 6px 0;
	background: linear-gradient(135deg, #f0f3ff, #f7f8fc);
	box-shadow: 0 12px 30px -24px #243c7a66;
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
	line-height: 1.45;
}

.article-example--card,
.article-exercise--card {
	margin: 2.6rem 0 2.5rem !important;
	padding: clamp(1.2rem, 3vw, 2rem);
	border: 1px solid #dce2f3;
	border-radius: 6px;
	background: linear-gradient(135deg, #f0f3ff, #f7f8fc);
	box-shadow: 0 12px 30px -24px #243c7a66;
}

.article-example--card > h2,
.article-exercise--card > h2 {
	margin: 0 0 0.75rem !important;
	padding: 0;
	border: 0;
	background: transparent;
}

.article-example--card > p,
.article-exercise--card > p,
.article-exercise--card > ol {
	margin-top: 0.85rem !important;
}

.article-exercise--card > ol {
	margin-bottom: 0 !important;
	padding-left: 1.4rem;
}

.article-exercise--card > p:last-child {
	margin-bottom: 0 !important;
}

.single-shell:has(.article-exercise-heading) [id="cwiczenie"] {
	scroll-margin-top: 2rem;
}

.single-article .wp-block-post-content > .article-next-step {
	font-weight: 650;
}

@media (min-width: 600px) and (max-width: 1100px) {
	.single-shell:has(.article-lead) .single-article .wp-block-post-content > p:not(.article-lead):not(.article-jump),
	.single-shell:has(.article-lead) .single-article .wp-block-post-content > ul,
	.single-shell:has(.article-lead) .single-article .wp-block-post-content > ol,
	.single-shell:has(.article-lead) .single-article .wp-block-post-content > blockquote {
		font-size: 1.05rem;
		line-height: 1.75;
	}
}

@media (max-width: 650px) {
	.single-shell:has(.article-lead) .single-header,
	.single-shell:has(.article-lead) .single-article {
		width: calc(100% - 2.5rem) !important;
	}

	.single-shell:has(.article-lead) .single-title {
		font-size: clamp(2rem, 7.5vw, 2.8rem) !important;
	}

	.article-note-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.article-note-item {
		display: grid;
		grid-template-columns: 1.6rem 1fr;
		column-gap: 0.6rem;
	}

	.article-note-item + .article-note-item {
		border-left: 0;
		border-top: 1px solid #d4dcef;
		padding: 1rem 0 0;
	}

	.article-note-number {
		grid-row: span 2;
		padding-top: 0.15rem;
	}

	.article-note-item p {
		grid-column: 2;
	}

	.article-note figcaption {
		margin-bottom: 1.1rem;
	}
}
