/*
 * Dyrektor — łącznik: wygląd wpisów z układem Dyrektora (spis treści, grafiki sekcji, karty produktów).
 * Ładowany tylko na wpisach, których treść ma klasę „dyrektor-blog”. Wszystko pod .dyrektor-blog, bez resetów globalnych.
 * Kolory z motywu (currentColor / inherit); akcent: --dyrektor-blog-accent (motyw może go ustawić na :root).
 * Ten sam plik ładuje panel Dyrektora na stronie szkicu.
 */

/* Nagłówki sekcji: kotwice spisu treści nie chowają się pod przyklejonym nagłówkiem motywu. */
.dyrektor-blog h2[id^="sekcja-"] {
	scroll-margin-top: 5rem;
}

/* Spis treści */
.dyrektor-blog .dyrektor-blog__toc {
	margin: 1.5em 0 2em;
	padding: 1em 1.25em;
	border: 1px solid rgba(127, 127, 127, 0.3);
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: 14px;
	background: rgba(127, 127, 127, 0.06);
	background: color-mix(in srgb, currentColor 4%, transparent);
}

.dyrektor-blog .dyrektor-blog__toc-title {
	margin: 0 0 0.5em;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	opacity: 0.7;
}

.dyrektor-blog .dyrektor-blog__toc ol {
	margin: 0;
	padding: 0 0 0 1.25em;
}

.dyrektor-blog .dyrektor-blog__toc li {
	margin: 0.25em 0;
	line-height: 1.45;
}

.dyrektor-blog .dyrektor-blog__toc a {
	color: var(--dyrektor-blog-accent, #4f7a5a);
	text-decoration: none;
}

.dyrektor-blog .dyrektor-blog__toc a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Grafiki sekcji: pełna szerokość treści, zaokrąglone rogi */
.dyrektor-blog .dyrektor-blog__figure {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 1.25em 0 1.5em;
}

.dyrektor-blog .dyrektor-blog__figure img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: none;
	border: 0;
	border-radius: 14px;
	background: none;
}

/* Siatka kart: 1 kolumna na wąskim ekranie, 2 od 640 px */
.dyrektor-blog .dyrektor-blog__cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin: 1.25em 0 1.75em;
}

@media (min-width: 640px) {
	.dyrektor-blog .dyrektor-blog__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Karta produktu: miniatura 112 px, obok kicker, nazwa, zdanie, cena i przycisk */
.dyrektor-blog a.dyrektor-blog__card {
	display: flex;
	gap: 14px;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 10px;
	border: 1px solid rgba(127, 127, 127, 0.3);
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: 14px;
	background: transparent;
	color: inherit;
	text-decoration: none;
	box-shadow: none;
	transition: border-color 0.15s ease;
}

.dyrektor-blog a.dyrektor-blog__card:hover {
	border-color: var(--dyrektor-blog-accent, #4f7a5a);
	color: inherit;
	text-decoration: none;
}

.dyrektor-blog a.dyrektor-blog__card:focus-visible {
	outline: 2px solid var(--dyrektor-blog-accent, #4f7a5a);
	outline-offset: 2px;
}

.dyrektor-blog .dyrektor-blog__card-media {
	display: block;
	flex: 0 0 112px;
	width: 112px;
	height: 112px;
	overflow: hidden;
	border-radius: 10px;
	background: rgba(127, 127, 127, 0.08);
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.dyrektor-blog .dyrektor-blog__card-media .dyrektor-blog__card-img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	object-fit: cover;
	object-position: center;
}

.dyrektor-blog .dyrektor-blog__card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.dyrektor-blog .dyrektor-blog__card-kicker {
	color: var(--dyrektor-blog-accent, #4f7a5a);
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.dyrektor-blog .dyrektor-blog__card-name {
	display: block;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.dyrektor-blog .dyrektor-blog__card-text {
	font-size: 0.875em;
	line-height: 1.4;
	opacity: 0.8;
}

.dyrektor-blog .dyrektor-blog__card-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
	margin-top: 4px;
}

.dyrektor-blog .dyrektor-blog__card__price {
	font-weight: 700;
	white-space: nowrap;
}

.dyrektor-blog .dyrektor-blog__card__button {
	display: inline-block;
	padding: 0.4em 0.9em;
	border-radius: 999px;
	background: var(--dyrektor-blog-accent, #4f7a5a);
	color: #fff;
	font-size: 0.8em;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

/* Siatka końcowa „Z tego wpisu w sklepie” */
.dyrektor-blog .dyrektor-blog__more {
	margin: 2.5em 0 0;
	padding-top: 1.25em;
	border-top: 1px solid rgba(127, 127, 127, 0.3);
	border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

.dyrektor-blog .dyrektor-blog__more-title {
	margin: 0 0 0.75em;
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.25;
}

.dyrektor-blog .dyrektor-blog__more .dyrektor-blog__cards {
	margin: 0;
}
