/* SP2 — panel „Dziś w szkole” (4 kafelki). Lato, bordo #802a29, ciemny #2b1f1f, żółty #f3c13a.
   Kontrasty AA: #2b1f1f/#fff 15.6:1 · #5f5757/#fff 6.6:1 · #f3c13a/#2b1f1f 9.3:1 · #fff/#2b1f1f 15.6:1 · zielony #14632f/#fff 7.2:1 */

.sp2dz-wrap {
	container-type: inline-size;
	width: 100%;
}

.elementor-widget-sp2_dzis_w_szkole {
	width: 100%;
}

.sp2dz {
	--dz-accent: #802a29;
	--dz-text: #2b1f1f;
	--dz-muted: #5f5757;
	--dz-line: #ece7e4;
	--dz-soft: #f5f3f0;
	--dz-dark: #2b1f1f;
	--dz-yellow: #f3c13a;
	--dz-font: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, .95fr);
	overflow: hidden;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 30px 60px -30px rgba(43, 31, 31, .45), 0 8px 20px -10px rgba(43, 31, 31, .15);
	color: var(--dz-text);
	font-family: var(--dz-font);
	font-size: 17px;
	line-height: 1.4;
}

.sp2dz,
.sp2dz * {
	box-sizing: border-box;
}

.sp2dz p {
	margin: 0;
}

.sp2dz [hidden] {
	display: none !important;
}

.sp2dz__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 36px 34px 34px;
}

.sp2dz__col + .sp2dz__col {
	border-left: 1px solid var(--dz-line);
}

.sp2dz .sp2dz__eyebrow {
	margin: 0;
	color: var(--dz-text);
	font-family: var(--dz-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .16em;
	text-transform: uppercase;
}

/* ---------- Teraz ---------- */
.sp2dz__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sp2dz__live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #14632f;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.sp2dz__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #1f9d4c;
	box-shadow: 0 0 0 0 rgba(31, 157, 76, .5);
	animation: sp2dz-pulse 2s infinite;
}

@keyframes sp2dz-pulse {
	0% { box-shadow: 0 0 0 0 rgba(31, 157, 76, .45); }
	70% { box-shadow: 0 0 0 8px rgba(31, 157, 76, 0); }
	100% { box-shadow: 0 0 0 0 rgba(31, 157, 76, 0); }
}

.sp2dz__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin-top: 6px !important;
}

.sp2dz__title [data-dz-title] {
	font-size: clamp(34px, 2.2vw + 14px, 48px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -.03em;
}

.sp2dz__range {
	color: var(--dz-muted);
	font-size: 21px;
	font-variant-numeric: tabular-nums;
}

.sp2dz__bar {
	height: 10px;
	overflow: hidden;
	border-radius: 999px;
	background: #ece7e4;
}

.sp2dz__bar > span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--dz-accent);
	transition: width .6s ease;
}

.sp2dz__sub {
	font-size: 18px;
}

.sp2dz__sub strong {
	font-weight: 800;
}

.sp2dz .sp2dz__note {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding: 14px 18px;
	border-radius: 16px;
	background: var(--dz-soft);
	color: var(--dz-text);
	font-size: 16px;
	line-height: 1.35;
	text-decoration: none !important;
	transition: background-color .15s;
}

.sp2dz .sp2dz__note:hover {
	background: #ece7e4;
}

.sp2dz__bell {
	display: grid;
	flex: none;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #29abe2;
	color: #fff;
}

/* ---------- Następnie ---------- */
.sp2dz .sp2dz__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp2dz__item {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 !important;
	padding: 13px 18px;
	border-radius: 14px;
	background: var(--dz-soft);
	font-size: 18px;
}

.sp2dz__time {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sp2dz .sp2dz__link {
	align-self: flex-start;
	margin-top: auto;
	color: var(--dz-accent);
	font-size: 18px;
	font-weight: 800;
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 4px;
}

.sp2dz .sp2dz__link:hover {
	color: var(--dz-text);
}

/* ---------- Pogoda ---------- */
.sp2dz__wnow {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sp2dz__art {
	flex: none;
	width: 64px;
	height: 64px;
}

.sp2dz__art svg {
	width: 100%;
	height: 100%;
}

.sp2dz__wtemp {
	display: grid;
}

.sp2dz__deg {
	font-size: 56px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

.sp2dz__feels {
	color: var(--dz-muted);
	font-size: 17px;
}

.sp2dz__wdesc {
	color: var(--dz-text);
	font-size: 17px;
}

.sp2dz .sp2dz__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}

.sp2dz__chips li {
	margin: 0 !important;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--dz-soft);
	font-size: 16px;
	font-variant-numeric: tabular-nums;
}

.sp2dz__wet {
	color: #3d6a99;
}

/* ---------- Odliczanie (ciemny kafelek) ---------- */
.sp2dz__count {
	background: var(--dz-dark);
	color: #fff;
}

.sp2dz__col.sp2dz__count {
	border-left-color: var(--dz-dark);
}

.sp2dz .sp2dz__count .sp2dz__eyebrow {
	color: #fff;
}

.sp2dz__big {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: 4px !important;
}

.sp2dz__big [data-dz-days] {
	color: var(--dz-yellow);
	font-size: clamp(52px, 3vw + 22px, 72px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

.sp2dz__unit {
	font-size: 24px;
	font-weight: 700;
}

.sp2dz__hm {
	color: rgba(255, 255, 255, .85);
	font-size: 18px;
	font-variant-numeric: tabular-nums;
}

.sp2dz .sp2dz__link--light {
	color: var(--dz-yellow);
}

.sp2dz .sp2dz__link--light:hover {
	color: #fff;
}

.sp2dz a:focus-visible {
	outline: 3px solid #ffdd00 !important;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px #0b0c0c !important;
	border-radius: 6px;
}

/* warianty bez pogody / odliczania */
.sp2dz--c3 {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.05fr) minmax(0, 1fr);
}

.sp2dz--c2 {
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

/* ---------- średnio: 2 × 2 ---------- */
@container (max-width: 1100px) {
	.sp2dz {
		grid-template-columns: 1fr 1fr;
	}
	.sp2dz__col + .sp2dz__col {
		border-left: 0;
	}
	.sp2dz__col:nth-child(even) {
		border-left: 1px solid var(--dz-line);
	}
	.sp2dz__col:nth-child(n+3) {
		border-top: 1px solid var(--dz-line);
	}
	.sp2dz__col.sp2dz__count {
		border-color: var(--dz-dark);
	}
	.sp2dz--c3 .sp2dz__col:last-child {
		grid-column: 1 / -1;
		border-left: 0;
	}
}

/* ---------- mobile: jedna kolumna, kompaktowo ---------- */
@container (max-width: 620px) {
	.sp2dz {
		grid-template-columns: 1fr;
		border-radius: 22px;
		font-size: 16px;
	}
	.sp2dz__col {
		gap: 10px;
		padding: 22px 20px;
	}
	.sp2dz__col:nth-child(even) {
		border-left: 0;
	}
	.sp2dz__col + .sp2dz__col {
		border-top: 1px solid var(--dz-line);
	}
	.sp2dz .sp2dz__eyebrow,
	.sp2dz__live {
		font-size: 13px;
	}
	.sp2dz__title [data-dz-title] {
		font-size: 32px;
	}
	.sp2dz__range,
	.sp2dz__sub,
	.sp2dz__item,
	.sp2dz .sp2dz__link {
		font-size: 16px;
	}
	.sp2dz__item {
		padding: 10px 14px;
	}
	.sp2dz .sp2dz__note {
		margin-top: 4px;
		font-size: 14.5px;
		padding: 12px 14px;
	}
	.sp2dz__deg {
		font-size: 44px;
	}
	.sp2dz__art {
		width: 52px;
		height: 52px;
	}
	.sp2dz__big [data-dz-days] {
		font-size: 52px;
	}
	/* pogoda i odliczanie obok siebie, gdy jest miejsce */
}

@media (prefers-reduced-motion: reduce) {
	.sp2dz__dot {
		animation: none;
	}
	.sp2dz__bar > span {
		transition: none;
	}
}
