/* =========================================================
Peninei Halakha - Native Footer
========================================================= */
.ph-pilot-footer {
	--ph-footer-red: #891202;
	--ph-footer-text: #29221c;
	--ph-footer-muted: #6f6258;
	--ph-footer-border: rgba(137, 18, 2, .18);
	color: var(--ph-footer-text);
	font-family: "ploni-aaa", "Assistant", Arial, sans-serif;
}

.ph-pilot-footer *,
.ph-pilot-footer *::before,
.ph-pilot-footer *::after { box-sizing: border-box; }

.ph-pilot-footer__inner {
	width: calc(100% - 160px);
	max-width: 1360px;
	margin-inline: auto;
	padding-inline: 0;
}

.ph-pilot-footer-bottom__inner {
	width: min(100%, 1140px);
	margin-inline: auto;
	padding-inline: 0;
}

.ph-pilot-footer-main { padding-block: 60.625px; }
.ph-pilot-footer-main.is-mobile-only { display: none; }
.ph-pilot-footer__desktop { align-items: stretch; }
.ph-pilot-footer__main-grid.is-brand-only { grid-template-columns: minmax(0, 1fr); }

.ph-pilot-footer__brand-column,
.ph-pilot-footer__column {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 23px;
}

.ph-pilot-footer__brand-column {
	width: 300px;
	max-width: 300px;
	justify-self: center;
}

.ph-pilot-footer__brand-column > * { width: 100%; }
.ph-pilot-footer__secondary-grid { min-width: 0; align-items: stretch; }
.ph-pilot-footer-block { min-width: 0; }
.ph-pilot-footer-block.is-desktop-hidden { display: none; }
.ph-pilot-footer-block.is-pinned { order: 1; }
.ph-pilot-footer-block.is-first-pinned { margin-block-start: auto; }

.ph-pilot-footer-block__title {
	margin: 0 0 8px;
	padding: 0;
	color: var(--ph-footer-text);
	font-size: 20px;
	font-weight: 600;
	line-height: 20px;
	text-align: start;
}

.ph-pilot-footer-block__text {
	font-size: 22px;
	line-height: 1.15;
	margin: 0 0 50px;
	text-align: center;
}

.ph-pilot-footer-block__linked-text { font-size: 16px; line-height: 1.55; }
.ph-pilot-footer-block__text > :first-child,
.ph-pilot-footer-block__linked-text > :first-child { margin-block-start: 0; }
.ph-pilot-footer-block__text > :last-child,
.ph-pilot-footer-block__linked-text > :last-child { margin-block-end: 0; }

.ph-pilot-footer-menu__list,
.ph-pilot-footer-menu__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ph-pilot-footer-menu__list { display: flex; flex-direction: column; gap: 8px; }
.ph-pilot-footer-menu__list li,
.ph-pilot-footer-menu__list li + li { margin: 0; padding: 0; line-height: 18px; }
.ph-pilot-footer-menu__list ul { padding-inline-start: 14px; margin-block-start: 8px; }

.ph-pilot-footer a { color: inherit; text-decoration: none; }
.ph-pilot-footer-menu a {
	display: inline;
	font-size: 18px;
	font-weight: 400;
	line-height: 18px;
}
.ph-pilot-footer a:hover { color: var(--ph-footer-red); text-decoration: underline; text-underline-offset: 3px; }
.ph-pilot-footer a:focus-visible { outline: 2px solid var(--ph-footer-red); outline-offset: 3px; border-radius: 2px; }

.ph-pilot-footer-block__image { display: block; max-width: 100%; height: auto; }
.ph-pilot-footer__brand-column > .ph-pilot-footer-block--image img {
	width: 230px;
	height: auto;
	max-width: 100%;
	margin-inline: auto;
}

.ph-pilot-footer-linked,
.ph-pilot-footer-pnina { position: relative; display: flex; align-items: center; gap: 13px; }

/* Generic linked-image blocks, e.g. Facebook. Pnina has its own media sizing below. */
.ph-pilot-footer-linked .ph-pilot-footer-block__media {
	width: min(36px, 33%);
	flex: 0 0 auto;
}

.ph-pilot-footer-linked .ph-pilot-footer-block__linked-text a,
.ph-pilot-footer-pnina .ph-pilot-footer-block__linked-text a { position: relative; z-index: 2; }
.ph-pilot-footer-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.ph-pilot-footer-pnina {
	position: relative;
	display: block;
	width: 300px;
	max-width: 100%;
	height: 50px;
	min-height: 50px;
	padding: 0;
	background: #fffdf2;
	border: 0;
	border-radius: 50px;
	box-shadow: 0 0 16px rgba(0, 0, 0, .2);
	overflow: visible;
}

.ph-pilot-footer-pnina > .ph-pilot-footer-card-link {
	position: absolute;
	inset: 0;
	display: block;
	z-index: 10;
	border-radius: inherit;
	cursor: pointer;
}
.ph-pilot-footer-pnina .ph-pilot-footer-block__linked-text a {
	position: relative;
	z-index: 11;
}

.ph-pilot-footer-pnina .ph-pilot-footer-block__media {
	position: absolute;
	top: 50%;
	width: 150px;
	height: 150px;
	transform: translateY(-50%);
	z-index: 2;
	pointer-events: none;
}
.ph-pilot-footer-pnina--image-right .ph-pilot-footer-block__media { right: -30px; left: auto; }
.ph-pilot-footer-pnina--image-left .ph-pilot-footer-block__media { left: -30px; right: auto; }
.ph-pilot-footer-pnina .ph-pilot-footer-block__image {
	width: 150px;
	height: 150px;
	max-width: none;
	max-height: none;
	object-fit: contain;
	margin: 0;
}
.ph-pilot-footer-pnina .ph-pilot-footer-block__linked-text {
	position: absolute;
	top: 0;
	width: 215px;
	height: 50px;
	padding: 0 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	line-height: 20.7px;
	color: var(--ph-footer-red);
	z-index: 3;
}
.ph-pilot-footer-pnina--image-right .ph-pilot-footer-block__linked-text { left: 0; right: auto; }
.ph-pilot-footer-pnina--image-left .ph-pilot-footer-block__linked-text { right: 0; left: auto; }
.ph-pilot-footer-pnina .ph-pilot-footer-block__linked-text p { margin: 0; }

.ph-pilot-footer__mobile { display: none; }
.ph-pilot-footer-bottom { border-block-start: 0; }
.ph-pilot-footer-bottom__inner {
	min-height: 57px;
	padding-block: 11px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px 24px;
	font-size: 18px;
	line-height: 1.4;
}
.ph-pilot-footer__copyright { margin: 0; }
.ph-pilot-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 9px; }
body.ph-pilot-footer-active { margin-bottom: 0; }

@media (max-width: 960px) {
	.ph-pilot-footer__inner {
		width: min(100%, 1440px);
		padding-inline: clamp(20px, 4vw, 64px);
	}
	.ph-pilot-footer__brand-column { width: auto; max-width: none; }
}

@media (max-width: 640px) {
	.ph-pilot-footer-main { padding-block: 38px 34px; }
	.ph-pilot-footer-main.is-mobile-only { display: block; }
	.ph-pilot-footer-main.is-desktop-only { display: none; }
	.ph-pilot-footer__desktop { display: none !important; }
	.ph-pilot-footer__mobile { display: flex; flex-direction: column; gap: 24px; }

	.ph-pilot-footer__mobile .ph-pilot-footer-block--image { text-align: center; }
	.ph-pilot-footer__mobile .ph-pilot-footer-block--image .ph-pilot-footer-block__image {
		width: 230px;
		max-width: 75vw;
		height: auto;
		margin-inline: auto;
	}
	.ph-pilot-footer__mobile .ph-pilot-footer-block__text {
		margin: 0 0 28px;
		font-size: 22px;
		line-height: 1.15;
		text-align: center;
	}
	.ph-pilot-footer__mobile .ph-pilot-footer-pnina {
		width: min(300px, calc(100vw - 60px));
		margin-inline: auto;
	}
	.ph-pilot-footer__mobile .ph-pilot-footer-block--pnina_yomit { margin-bottom: 50px; }
	.ph-pilot-footer__mobile .ph-pilot-footer-block--menu { width: 100%; }
	.ph-pilot-footer__mobile .ph-pilot-footer-block__title { margin-bottom: 8px; text-align: start; }
	.ph-pilot-footer__mobile .ph-pilot-footer-linked { justify-content: center; gap: 8px; }
	.ph-pilot-footer__mobile .ph-pilot-footer-linked .ph-pilot-footer-block__media {
		width: 36px;
		max-width: 36px;
		flex: 0 0 36px;
	}
	.ph-pilot-footer__mobile .ph-pilot-footer-linked .ph-pilot-footer-block__image {
		width: 36px;
		height: auto;
		max-width: 36px;
	}
	.ph-pilot-footer-bottom__inner {
		min-height: 57px;
		padding: 11px 20px;
		font-size: 18px;
		line-height: 1.4;
		justify-content: center;
		align-items: center;
		text-align: center;
		flex-direction: row;
	}
}
