/*
 * TheSybin — strona „Kurs 5 dni” (`kurs-5-dni`), faza LP: sekcje S1–S2 wg docs/TRESCI-MAPA.md §4.8 i §6.2 (dokument LP L273–L279).
 * Język wizualny sekcji „Pięć dni z Thesybinem” strony głównej (treść | zdjęcie) i ramki formularza stron Kontakt / Partnerzy:
 * kontener 1300 px, padding 100/50 px, rytm tła biała · kremowa, zdjęcia r 20, odznaka C10, liście C20.
 * Komponenty (nagłówek, przycisk, odznaka, pola formularza) — components.css; formularz — blok wtyczki Thesybin Leady
 * (`thesybin-leady/formularz-kursu`): tu wyłącznie układ sekcji i miejsce na blok, bez wnętrza bloku.
 * Znaczniki: patterns/kurs-5-dni-{opis,zapis}.php. Odstępstwa: docs/odstepstwa/kurs-5-dni.md.
 * Progi: tablet ≤1024, telefon ≤767.
 */

/* ==========================================================================
   Wspólne: sekcje pełnej szerokości
   ========================================================================== */

.ts-page-kurs-5-dni .ts-page-content > .wp-block-post-content {
	padding-inline: 0;
}

.ts-page-kurs-5-dni .wp-block-post-content > .ts-kurs-section {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 100px max(20px, calc((100% - 1280px) / 2));
	/* Obracana odznaka (C10) w trakcie ruchu nie poszerza strony (1.4.10) */
	overflow-x: clip;
}

body.ts-page-kurs-5-dni :where(.ts-kurs-section, .ts-kurs-section [class*="ts-kurs-"]) > * {
	margin-block: 0;
}

.ts-page-kurs-5-dni .ts-kurs-section .ts-heading em {
	font-weight: 400;
}

.ts-page-kurs-5-dni .ts-kurs-section :where(figure.wp-block-image) {
	margin: 0;
}

@media (max-width: 1024px) {
	.ts-page-kurs-5-dni .wp-block-post-content > .ts-kurs-section {
		padding-block: 50px;
	}
}

/* ==========================================================================
   S1. Opis kursu — treść z listą dni | zdjęcie z odznaką (biała)
   ========================================================================== */

.ts-page-kurs-5-dni .wp-block-post-content > .ts-kurs-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 40px 70px;
}

.ts-page-kurs-5-dni .ts-kurs-about__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.ts-page-kurs-5-dni .ts-kurs-about__lead {
	color: var(--wp--preset--color--body-text);
	font-size: 18px;
	line-height: 1.6;
}

/* Lista pięciu dni: numer niesie tekst „Dzień N” (bez znacznika listy), złota kreska po lewej, linie podziału jak w procesie Technologii */
.ts-page-kurs-5-dni .ts-kurs-days {
	display: grid;
	gap: 0;
	margin: 5px 0 0;
	padding: 0;
}

/* Znacznik ukryty przez ::marker (nie list-style: none — Safari/VoiceOver zachowuje wtedy semantykę listy) */
.ts-page-kurs-5-dni .ts-kurs-days > li::marker {
	content: "";
}

.ts-page-kurs-5-dni .ts-kurs-days > li {
	position: relative;
	margin: 0;
	padding: 12px 0 12px 22px;
	border-bottom: 1px solid var(--ts-divider);
	color: var(--wp--preset--color--body-text);
	font-size: 16px;
	line-height: 1.5;
}

.ts-page-kurs-5-dni .ts-kurs-days > li:first-child {
	border-top: 1px solid var(--ts-divider);
}

.ts-page-kurs-5-dni .ts-kurs-days > li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent);
	transform: translateY(-50%);
}

.ts-page-kurs-5-dni .ts-kurs-days strong {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.ts-page-kurs-5-dni .ts-kurs-about__actions {
	margin-top: 10px;
}

.ts-page-kurs-5-dni .ts-kurs-about__media {
	position: relative;
	min-width: 0;
	padding: 30px 40px 0 0;
}

.ts-page-kurs-5-dni .ts-kurs-about__photo {
	overflow: hidden;
	border-radius: var(--ts-radius-card);
}

.ts-page-kurs-5-dni .ts-kurs-section .ts-kurs-about__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 0.9;
	object-fit: cover;
}

.ts-page-kurs-5-dni .ts-kurs-about__seal {
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	line-height: 0;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.ts-page-kurs-5-dni .wp-block-post-content > .ts-kurs-about {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.ts-page-kurs-5-dni .ts-kurs-about__content {
		gap: 15px;
	}

	.ts-page-kurs-5-dni .ts-kurs-about__lead {
		font-size: 16px;
	}

	.ts-page-kurs-5-dni .ts-kurs-about__media {
		width: 100%;
		padding: 25px 30px 0 0;
	}

	.ts-page-kurs-5-dni .ts-kurs-section .ts-kurs-about__photo img {
		aspect-ratio: 1 / 0.5;
	}
}

@media (max-width: 767px) {
	.ts-page-kurs-5-dni .wp-block-post-content > .ts-kurs-about {
		gap: 30px;
	}

	.ts-page-kurs-5-dni .ts-kurs-about__media {
		width: 100%;
		padding: 20px 20px 0 0;
	}

	.ts-page-kurs-5-dni .ts-kurs-section .ts-kurs-about__photo img {
		aspect-ratio: 1 / 0.75;
	}
}

/* ==========================================================================
   S2. Formularz zapisu — kremowa; ramka r 20: ciemny panel 38 % | biała kolumna z formularzem i notą
   ========================================================================== */

.ts-page-kurs-5-dni .ts-kurs-signup__box {
	display: grid;
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
	max-width: 1100px;
	margin-inline: auto;
	overflow: hidden;
	border-radius: var(--ts-radius-card);
	background-color: var(--wp--preset--color--white);
	box-shadow: var(--ts-shadow-card);
}

.ts-page-kurs-5-dni .ts-kurs-signup__panel {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	min-width: 0;
	padding: 60px 50px;
}

.ts-page-kurs-5-dni .ts-kurs-signup__text {
	color: var(--wp--preset--color--white);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.6;
}

.ts-page-kurs-5-dni .ts-kurs-signup__form {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 25px;
	min-width: 0;
	padding: 60px 50px 50px;
}

.ts-page-kurs-5-dni .ts-kurs-signup__note {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 1024px) {
	.ts-page-kurs-5-dni .ts-kurs-signup__box {
		grid-template-columns: minmax(0, 1fr);
	}

	.ts-page-kurs-5-dni .ts-kurs-signup__panel {
		gap: 15px;
		padding: 40px 30px;
	}

	.ts-page-kurs-5-dni .ts-kurs-signup__text {
		font-size: 16px;
	}

	.ts-page-kurs-5-dni .ts-kurs-signup__form {
		gap: 20px;
		padding: 40px 30px 30px;
	}
}

@media (max-width: 767px) {
	.ts-page-kurs-5-dni .ts-kurs-signup__panel {
		padding: 30px 20px;
	}

	.ts-page-kurs-5-dni .ts-kurs-signup__form {
		padding: 30px 20px 20px;
	}

	.ts-page-kurs-5-dni .ts-kurs-signup__note {
		font-size: 15px;
	}
}
