/* Kids Zone — archive-kids-zone.php + single-kids-zone.php */

.kz {
	--kz-primary: #1c48f0;
	--kz-navy: #173968;
	--kz-text: #3f5e7f;
	--kz-sky: #eff6ff;
	--kz-border: #d3e4f5;
	--kz-divider: #e3edf8;
	--kz-pill: #edf3ff;
	--kz-white: #fff;
	--kz-primary-hover: #1238c9;
	--kz-button-hover-shadow: 0 4px 10px rgba(10, 23, 77, 0.18);

	--kz-radius-card: 24px;
	--kz-radius-art: 18px;
	--kz-radius-tag: 18px;
	--kz-radius-button: 29px;

	--kz-container: 1280px;

	font-family: "Rubik", sans-serif;
	color: var(--kz-text);
}

/* Desktop .header-wrap is position:fixed (80px); mobile header is sticky and needs no offset. */
@media (min-width: 768px) {
	.kz {
		padding-top: 80px;
	}
}

/* GeneratePress adds bottom padding to .site-content; the footer strip must touch the site footer. */
body.post-type-archive-kids-zone .site-content,
body.single-kids-zone .site-content {
	padding-bottom: 0;
}

/* style.css only makes .grid-container full-width on pages. */
body.post-type-archive-kids-zone .grid-container,
body.single-kids-zone .grid-container {
	width: auto;
	max-width: none;
}

.kz :focus-visible {
	outline: 3px solid var(--kz-primary);
	outline-offset: 3px;
}

.kz p {
	margin: 0;
}

/* ---------- Kids Zone nav bar ---------- */

.kz-nav {
	background: var(--kz-white);
}

.kz-nav__inner {
	display: grid;
	grid-template-columns: 300px 1fr auto;
	column-gap: 60px;
	align-items: center;
	max-width: var(--kz-container);
	min-height: 72px;
	margin-inline: auto;
	line-height: normal;
}

.kz-nav__title {
	font-size: 18px;
	font-weight: 500;
	color: var(--kz-navy);
}

.kz-nav__tagline {
	font-size: 17px;
	color: var(--kz-text);
}

.kz-nav__brand {
	font-size: 26px;
	font-weight: 700;
	color: var(--kz-primary);
}

/* ---------- Footer strip ---------- */

.kz-footer-strip {
	background: var(--kz-primary);
	color: var(--kz-white);
}

.kz-footer-strip__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	max-width: var(--kz-container);
	min-height: 112px;
	margin-inline: auto;
	line-height: normal;
}

.kz-footer-strip__title {
	font-size: 26px;
	font-weight: 700;
}

.kz-footer-strip__text {
	font-size: 16px;
}

/* ---------- Shared ---------- */

.kz h1,
.kz h2,
.kz h3 {
	margin: 0;
	font-family: inherit;
	line-height: normal;
}

.kz-dots {
	position: absolute;
	overflow: hidden;
	pointer-events: none;
}

.kz-dots img {
	position: absolute;
	top: 0;
	max-width: none;
}

/* Smooth even when the OS asks for reduced motion (product decision). */
html:has(.kz-home) {
	scroll-behavior: smooth;
}

/* Focused by kids-zone.js after scrolling, for screen readers only. */
#kz-cards:focus {
	outline: none;
}

/* ---------- Home: hero ---------- */

.kz-hero {
	position: relative;
	overflow: hidden;
	background: var(--kz-sky);
}

.kz-hero__inner {
	position: relative;
	display: flex;
	max-width: var(--kz-container);
	min-height: 428px;
	margin-inline: auto;
}

.kz-hero__content {
	position: relative;
	z-index: 1;
	flex: 0 0 640px;
	padding-top: 39px;
	padding-bottom: 32px;
}

.kz-hero__tag {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding-inline: 8px;
	border-radius: var(--kz-radius-tag);
	background: var(--kz-white);
	color: var(--kz-primary);
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
}

.kz .kz-hero__title {
	max-width: 616px;
	margin-top: 19px;
	color: var(--kz-navy);
	font-size: 62px;
	font-weight: 700;
}

.kz .kz-hero__text {
	max-width: 595px;
	margin-top: 16px;
	color: var(--kz-text);
	font-size: 22px;
	line-height: normal;
}

.kz-hero__actions {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-top: 30px;
}

.kz-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 278px;
	height: 58px;
	border-radius: var(--kz-radius-button);
	background: var(--kz-primary);
	color: var(--kz-white);
	font-size: 20px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.kz-hero__button:hover,
.kz-hero__button:focus-visible {
	background: var(--kz-primary-hover);
	box-shadow: var(--kz-button-hover-shadow);
	color: var(--kz-white);
}

/* GeneratePress colours a:focus/a:active dark blue; a clicked link keeps focus. */
.kz-hero__button:focus,
.kz-hero__button:active,
.kz-hero__button:visited {
	color: var(--kz-white);
}

.kz-hero__note {
	color: var(--kz-text);
	font-size: 16px;
	line-height: normal;
}

/* Art box = 650x460 Figma group; children are % of it. */
.kz-hero__art {
	position: absolute;
	top: -4px;
	left: -18px;
	width: 650px;
	aspect-ratio: 650 / 460;
	pointer-events: none;
}

.kz-hero__art img {
	display: block;
	max-width: none;
}

.kz-hero__sun {
	position: absolute;
	top: 9.565%;
	left: 1.538%;
	width: 46.154%;
	height: auto;
}

.kz-hero__orbit {
	position: absolute;
	top: 8.696%;
	left: 16.615%;
	width: 81.538%;
	height: 71.739%;
}

.kz-hero__dots {
	top: 5.87%;
	left: 0;
	width: 100%;
	height: 78.514%;
	opacity: 0.82;
}

.kz-hero__dots img {
	left: -130.31%;
	width: 230.31%;
	height: 100%;
}

.kz-art {
	position: absolute;
	top: 0;
	left: 2.154%;
	width: 98.462%;
	height: 100%;
	overflow: hidden;
}

.kz-art__flat,
.kz-art__box,
.kz-art__img {
	position: absolute;
}

.kz-art__flat img {
	position: absolute;
}

.kz-art__clouds {
	inset: 55.57% 27.45% 18.48% 18.7%;
}

.kz-art__clouds img {
	top: -1.04%;
	left: -0.36%;
	width: 100.72%;
	height: 102.09%;
}

.kz-art__stars {
	inset: 12.39% 7.97% 13.91% 9.84%;
}

.kz-art__stars img {
	top: -0.29%;
	left: -0.19%;
	width: 100.38%;
	height: 100.58%;
}

.kz-art__box {
	display: flex;
	align-items: center;
	justify-content: center;
}

.kz-art__part {
	position: relative;
	flex: none;
}

.kz-hero__art .kz-art__img img {
	width: 100%;
	height: 100%;
}

.kz-hero__art .kz-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ---------- Home: cards ---------- */

.kz-cards {
	position: relative;
	overflow: hidden;
	padding: 40px 0 80px;
	background: var(--kz-white);
}

.kz-cards__dots--start {
	top: 290px;
	left: 0;
	width: 180px;
	height: 220px;
	opacity: 0.26;
}

.kz-cards__dots--start img {
	left: -310.99%;
	width: 506.61%;
	height: 100%;
}

.kz-cards__dots--end {
	right: 0;
	bottom: 0;
	width: 360px;
	height: 76px;
	opacity: 0.32;
}

.kz-cards__dots--end img {
	left: -130.33%;
	width: 230.34%;
	height: 263.23%;
}

.kz-cards__inner {
	position: relative;
	max-width: var(--kz-container);
	margin-inline: auto;
}

.kz-cards__header {
	display: grid;
	grid-template-columns: 640px 590px;
	column-gap: 50px;
	align-items: baseline;
	margin-bottom: 32px;
}

.kz .kz-cards__title {
	color: var(--kz-navy);
	font-size: 34px;
	font-weight: 700;
}

.kz-cards__subtitle {
	color: var(--kz-text);
	font-size: 18px;
	line-height: normal;
}

.kz-cards__grid {
	display: grid;
	grid-template-columns: repeat(4, 300px);
	gap: 28px 26px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kz-card {
	margin: 0;
}

.kz-card__link {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 300px;
	padding: 9px;
	border: 1px solid var(--kz-border);
	border-radius: var(--kz-radius-card);
	background: var(--kz-white);
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.kz-card__link:hover,
a.kz-card__link:focus-visible {
	box-shadow: 0 10px 24px rgba(23, 57, 104, 0.12);
	transform: translateY(-3px);
}

.kz-card__art {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 158px;
	overflow: hidden;
	border-radius: var(--kz-radius-art);
	background: var(--kz-sky);
}

.kz-card__img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 137px;
}

.kz .kz-card__title {
	margin: 15px 13px 0;
	color: var(--kz-navy);
	font-size: 26px;
	font-weight: 700;
}

.kz-card__subtitle {
	margin: 10px 13px 0;
	color: var(--kz-text);
	font-size: 15px;
	line-height: normal;
}

/* The site font has no "←" glyph, so arrows use the Figma glyph outline (14×4.84 at 20px). */
.kz-arrow {
	display: block;
	flex: none;
	width: 14px;
	height: 4.84px;
}

.kz-card__arrow {
	position: absolute;
	bottom: 11px;
	left: 21px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 26px;
	border-radius: 13px;
	background: var(--kz-pill);
	color: var(--kz-primary);
}

.kz-card__arrow .kz-arrow {
	width: 22px;
	height: 7.67px;
}
/* ---------- Inner: hero ---------- */

.kz-inner-hero {
	position: relative;
	overflow: hidden;
	background: var(--kz-sky);
}

.kz-inner-hero__inner {
	position: relative;
	display: flex;
	max-width: var(--kz-container);
	min-height: 280px;
	margin-inline: auto;
}

.kz-inner-hero__content {
	position: relative;
	z-index: 1;
	flex: 0 0 620px;
	padding-top: 40px;
}

.kz-inner-hero__back {
	display: block;
	width: fit-content;
	color: var(--kz-primary);
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
	text-decoration: none;
}

.kz-inner-hero__back:hover,
.kz-inner-hero__back:focus-visible {
	color: var(--kz-primary);
	text-decoration: underline;
}

.kz .kz-inner-hero__title {
	margin-top: 44px;
	color: var(--kz-navy);
	font-size: 62px;
	font-weight: 700;
	line-height: 78px;
}

/* Banner area = 600x244 in Figma (x 290, y 18 on the 1920 frame). */
.kz-inner-hero__banner {
	position: absolute;
	top: 18px;
	left: -30px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 600px;
	height: 244px;
	pointer-events: none;
}

.kz-inner-hero__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.kz-inner-hero__banner .kz-hero__art {
	position: relative;
	top: auto;
	left: auto;
	width: auto;
	height: 100%;
}

/* ---------- Inner: content blocks ---------- */

.kz-blocks {
	position: relative;
	max-width: 780px;
	margin-inline: auto;
	padding: 34px 0 64px;
}

.kz-blocks__dots--start {
	top: 200px;
	left: -280px;
	width: 180px;
	height: 220px;
	opacity: 0.26;
}

.kz-blocks__dots--start img {
	left: -333.33%;
	width: 517.67%;
	height: 102.18%;
}

.kz-blocks__dots--end {
	right: -330px;
	bottom: 400px;
	width: 230px;
	height: 180px;
	opacity: 0.26;
}

.kz-blocks__dots--end img {
	top: -11.11%;
	left: -304.35%;
	width: 405.13%;
	height: 124.89%;
}

.kz-block {
	position: relative;
}

.kz-block + .kz-block {
	margin-top: 32px;
}

.kz-block--media + .kz-block--media {
	margin-top: 36px;
	padding-top: 36px;
	border-top: 1px solid var(--kz-divider);
}

.kz-block--text {
	color: var(--kz-text);
	font-size: 20px;
	line-height: 30px;
}

.kz .kz-block--text p {
	margin: 0 0 8px;
}

.kz .kz-block--text > :last-child {
	margin-bottom: 0;
}

.kz .kz-block--text > p:first-child {
	color: var(--kz-navy);
	font-size: 22px;
	line-height: 34px;
}

.kz-block--text a,
.kz-block__title a {
	color: var(--kz-primary);
	text-decoration: underline;
}

.kz .kz-block__title {
	margin-bottom: 16px;
	color: var(--kz-navy);
	font-size: 26px;
	font-weight: 700;
	line-height: 36px;
}

.kz-block__frame {
	overflow: hidden;
	border: 1px solid var(--kz-border);
	border-radius: var(--kz-radius-art);
}

.kz-block__frame iframe {
	display: block;
	width: 100%;
	border: 0;
}

.kz-block__frame--video {
	aspect-ratio: 16 / 9;
}

.kz-block__frame--video iframe {
	height: 100%;
}

@media (max-width: 1440px) {
	.kz-blocks__dots {
		display: none;
	}
}

/* ---------- Inner: downloads strip (Figma "דפי צביעה") ---------- */

/* Wider than the 780px text column: 1280px on desktop. */
.kz-block--downloads {
	--kz-dl-width: min(1280px, calc(100vw - 80px));
	width: var(--kz-dl-width);
	margin-inline: calc((100% - var(--kz-dl-width)) / 2);
}

.kz-downloads {
	display: grid;
	grid-template-columns: repeat(auto-fill, 302px);
	justify-content: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kz .kz-download {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 302px;
	margin: 0;
	padding: 21px 0 24px;
	border: 1.5px solid #dde7f4;
	border-radius: 20px;
	background: var(--kz-white);
	box-shadow: 0 6px 20px rgba(23, 56, 102, 0.07);
}

.kz-download__image {
	display: block;
	width: 258px;
	height: 280px;
}

.kz-download__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.kz-download__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 254px;
	height: 64px;
	border-radius: 12px;
	background: var(--kz-primary);
	color: var(--kz-white);
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	text-decoration: none;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.kz-download__button:hover,
.kz-download__button:focus-visible {
	background: var(--kz-primary-hover);
	box-shadow: var(--kz-button-hover-shadow);
	color: var(--kz-white);
}

.kz-download__button:focus,
.kz-download__button:active,
.kz-download__button:visited {
	color: var(--kz-white);
}

/* Figma "Friendly download arrow and tray": two SVG pieces placed by % of the icon box. */
.kz-download__icon {
	position: relative;
	flex: none;
	width: 44px;
	height: 44px;
}

.kz-download__icon img {
	position: absolute;
	display: block;
	max-width: none;
}

.kz-download__arrow {
	top: 6.25%;
	left: 19.89%;
	width: 60.22%;
	height: 74.58%;
}

.kz-download__tray {
	top: 61.17%;
	left: 3.88%;
	width: 92.24%;
	height: 34.95%;
}

/* ---------- Tablet (no Figma frame — fluid) ---------- */

@media (max-width: 1341px) {
	.kz-nav__inner,
	.kz-footer-strip__inner,
	.kz-hero__inner,
	.kz-cards__inner,
	.kz-inner-hero__inner {
		padding-inline: 30px;
	}

	.kz-nav__inner {
		grid-template-columns: auto 1fr auto;
		column-gap: 40px;
	}

	.kz-hero__content,
	.kz-inner-hero__content {
		flex: 0 1 55%;
	}

	.kz .kz-hero__title,
	.kz .kz-inner-hero__title {
		font-size: clamp(40px, 4.6vw, 62px);
		line-height: 1.25;
	}

	.kz .kz-hero__text {
		font-size: 20px;
	}

	.kz-hero__art {
		top: 20px;
		left: 10px;
		width: min(650px, 42vw);
	}

	.kz-cards__header {
		grid-template-columns: 1fr;
		row-gap: 8px;
	}

	.kz-cards__grid {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		justify-content: stretch;
	}

	.kz-inner-hero__banner {
		top: 50%;
		left: 10px;
		width: min(600px, 40vw);
		height: auto;
		aspect-ratio: 600 / 244;
		transform: translateY(-50%);
	}
}

@media (max-width: 840px) {
	.kz-blocks {
		padding-inline: 30px;
	}
}

/* ---------- Mobile (Figma: home ver 3, inner banner V2, inner page). Min font-size 16px. ---------- */

@media (max-width: 767px) {
	/* Nav bar */
	.kz-nav__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"title brand"
			"tagline tagline";
		column-gap: 16px;
		row-gap: 6px;
		min-height: 78px;
		padding: 13px 20px 9px;
	}

	.kz-nav__title {
		grid-area: title;
		font-size: 16px;
		line-height: 22px;
	}

	.kz-nav__tagline {
		grid-area: tagline;
		font-size: 16px;
		line-height: 22px;
	}

	.kz-nav__brand {
		grid-area: brand;
		font-size: 22px;
		line-height: 28px;
	}

	/* Footer strip */
	.kz-footer-strip__inner {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 13px;
		min-height: 112px;
		padding: 24px 20px;
	}

	.kz-footer-strip__title {
		font-size: 24px;
		line-height: 31px;
	}

	.kz-footer-strip__text {
		font-size: 16px;
		line-height: 22px;
	}

	/* Home hero */
	.kz-hero__inner {
		display: block;
		min-height: 448px;
		padding: 18px 20px 22px;
	}

	.kz-hero::after {
		content: "";
		position: absolute;
		top: 186px;
		right: 0;
		left: 0;
		height: 262px;
		background: linear-gradient(to bottom, rgba(239, 246, 255, 0) 0%, rgba(239, 246, 255, 0.94) 32%, var(--kz-sky) 100%);
		pointer-events: none;
	}

	.kz-hero__content {
		z-index: 2;
		padding-top: 0;
		padding-bottom: 0;
	}

	.kz-hero__tag {
		height: auto;
		min-height: 30px;
		padding: 4px 10px;
		font-size: 16px;
		line-height: 22px;
	}

	.kz .kz-hero__title {
		max-width: none;
		margin-top: 182px;
		font-size: 36px;
		line-height: 43px;
	}

	.kz .kz-hero__text {
		max-width: none;
		margin-top: 14px;
		font-size: 17px;
		line-height: 25px;
	}

	.kz-hero__actions {
		margin-top: 26px;
	}

	.kz-hero__button {
		display: none;
	}

	.kz-hero__note {
		font-size: 16px;
		line-height: 22px;
	}

	.kz-hero .kz-hero__art {
		top: 64px;
		left: 50%;
		width: 344.5px;
		transform: translateX(-50%);
	}

	.kz-hero .kz-hero__sun {
		top: 12.3%;
		left: 1.28%;
		width: 52.83%;
	}

	.kz-hero .kz-hero__orbit {
		top: 9.84%;
		left: 12.31%;
		width: 87.66%;
		height: 77.11%;
	}

	.kz-hero .kz-hero__dots {
		top: 3.69%;
		left: 0.12%;
		width: 102.76%;
		height: 62.35%;
	}

	/* Home cards */
	.kz-cards {
		padding: 28px 0 58px;
	}

	.kz-cards__inner {
		padding-inline: 16px;
	}

	.kz-cards__header {
		row-gap: 9px;
		margin-bottom: 20px;
		padding-inline: 4px;
	}

	.kz .kz-cards__title {
		font-size: 26px;
		line-height: 33px;
	}

	.kz-cards__subtitle {
		font-size: 16px;
		line-height: 22px;
	}

	.kz-cards__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.kz-card__link {
		display: grid;
		grid-template-columns: 112px 1fr;
		grid-template-rows: auto 1fr;
		column-gap: 16px;
		height: 132px;
		padding: 7px 8px;
		border-radius: 20px;
	}

	.kz-card__art {
		grid-row: 1 / span 2;
		height: 116px;
		border-radius: 14px;
	}

	.kz-card__img {
		max-width: 80%;
		max-height: 75%;
	}

	.kz .kz-card__title {
		margin: 8px 0 0;
		font-size: 19px;
		line-height: 25px;
	}

	.kz-card__subtitle {
		margin: 8px 0 0;
		font-size: 16px;
		font-weight: 500;
		line-height: 20px;
	}

	.kz-card__arrow {
		bottom: 12px;
		left: 15px;
		width: 40px;
		height: 24px;
	}

	.kz-card__arrow .kz-arrow {
		width: 20px;
		height: 6.97px;
	}

	.kz-cards__dots--start {
		display: none;
	}

	.kz-cards__dots--end {
		bottom: 4px;
		width: 208px;
		height: 44px;
	}

	/* Inner hero: banner moves under the title */
	.kz-inner-hero__inner {
		display: block;
		min-height: 232px;
		padding: 14px 24px 9px;
	}

	.kz-inner-hero__content {
		padding-top: 0;
	}

	.kz-inner-hero__back {
		font-size: 16px;
		line-height: 20px;
	}

	.kz .kz-inner-hero__title {
		margin-top: 8px;
		font-size: 32px;
		line-height: 40px;
	}

	.kz-inner-hero__banner {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		max-width: 480px;
		margin: 6px auto 0;
		transform: none;
	}

	/* Inner blocks */
	.kz-blocks {
		padding: 24px 16px 48px;
	}

	.kz-block + .kz-block {
		margin-top: 24px;
	}

	.kz-block--media + .kz-block--media {
		margin-top: 20px;
		padding-top: 20px;
	}

	.kz-block--text {
		font-size: 16px;
		line-height: 26px;
	}

	.kz .kz-block--text > p:first-child {
		font-size: 17px;
		line-height: 27px;
	}

	.kz .kz-block__title {
		margin-bottom: 12px;
		font-size: 19px;
		line-height: 28px;
	}

	.kz-block__frame {
		border-radius: 12px;
	}

	.kz-blocks__dots--end {
		display: block;
		right: auto;
		bottom: 17px;
		left: 16px;
		width: 82px;
		height: 24px;
	}

	.kz-blocks__dots--end img {
		top: -166.67%;
		left: -426.83%;
		width: 568.17%;
		height: 468.33%;
	}

	/* Downloads strip (Figma "Mobile V1"): 2 × 2 grid. */
	.kz-block--downloads {
		width: auto;
		margin-inline: 0;
	}

	.kz-downloads {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.kz .kz-download {
		gap: 8px;
		width: auto;
		height: 240px;
		padding: 6px 6px 12px;
		border: 1px solid #d6e3f7;
		border-radius: 12px;
		box-shadow: 0 3px 9px rgba(23, 56, 105, 0.06);
	}

	.kz-download__image {
		width: 100%;
		height: 168px;
	}

	.kz-download__button {
		width: 149px;
		max-width: 100%;
		height: 44px;
		flex: none;
		border-radius: 8px;
		font-size: 16px;
		line-height: 16px;
	}

	.kz-download__icon {
		width: 36px;
		height: 36px;
	}
}
