/*
 Theme Name:   Bee1 Ultra Child - Yeholotped
 Theme URI:    https://yeholotped.co.il
 Description:  Studio Bee1 Ultra child theme for yeholotped.co.il (יכולות פדגוגיה – שיטת צמצום הפערים המואץ). Yeholot brand (navy #1E2158 + green), self-hosted Assistant, logo header, grouped book menu, breadcrumbs, previous/next chapter navigation, and a navy footer.
 Author:       Studio Bee1
 Author URI:   https://bee1.co.il
 Template:     bee1-ultra-theme
 Version:      1.0.4
 Requires PHP: 7.4
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  bee1-ultra-child-yeholotped
*/

/* ------------------------------------------------------------ fonts */
@font-face {
	font-family: "Assistant";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/assistant-hebrew.woff2") format("woff2");
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "Assistant";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/assistant-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Assistant";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/assistant-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------ tokens */
:root {
	--yp-navy: #1e2158;
	--yp-navy-2: #2b2f7a;
	--yp-green: #13b03a;
	--yp-green-bright: #00d93b;
	--yp-sky: #e9f3fb;
	--yp-ink: #1f2330;
	--yp-muted: #50566b;
	--yp-line: #e3e6ef;
	--yp-soft: #f5f7fb;
	--yp-read: 820px;
	--yp-wide: 1200px;
	--yp-radius: 14px;
}

/* ------------------------------------------------------------ base */
body,
button,
input,
select,
textarea {
	font-family: "Assistant", "Segoe UI", Arial, sans-serif;
}
body {
	color: var(--yp-ink);
	background: #fff;
	font-size: 18px;
	line-height: 1.8;
}
h1, h2, h3, h4, h5, h6 {
	color: var(--yp-navy);
	font-weight: 700;
	line-height: 1.3;
}
a {
	color: var(--yp-navy-2);
}
a:hover,
a:focus {
	color: var(--yp-green);
}
:focus-visible {
	outline: 3px solid var(--yp-green-bright);
	outline-offset: 2px;
}

/* ------------------------------------------------------------ header */
.site-header {
	background: #fff;
	border-block-end: 1px solid var(--yp-line);
	box-shadow: 0 2px 14px rgba(30, 33, 88, .06);
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .site-header {
	top: 32px;
}
.inside-header {
	max-width: var(--yp-wide);
	margin-inline: auto;
	padding-block: 12px;
	padding-inline: 20px;
	align-items: center;
	gap: 24px;
}
.site-logo img,
.site-logo .header-image {
	max-height: 64px;
	width: auto;
}
.main-title,
.site-description {
	display: none;
}
.main-navigation,
.main-navigation ul ul {
	background: transparent;
}
.main-navigation .main-nav > ul > li > a {
	color: var(--yp-navy);
	font-size: 17px;
	font-weight: 600;
	line-height: 64px;
	padding-inline: 14px;
	position: relative;
}
.main-navigation ul ul {
	background: #fff;
	border: 1px solid var(--yp-line);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(30, 33, 88, .12);
	padding-block: 8px;
	width: 300px;
}
.main-navigation .main-nav ul ul li a {
	color: var(--yp-ink);
	font-size: 16px;
	line-height: 1.5;
	padding: 9px 18px;
}
.main-navigation .main-nav ul ul li a:hover,
.main-navigation .main-nav ul ul li.current-menu-item > a {
	background: var(--yp-sky);
	color: var(--yp-navy);
}
.menu-toggle,
.mobile-menu-control-wrapper .menu-toggle {
	color: var(--yp-navy);
	background: transparent;
	font-size: 17px;
	font-weight: 600;
}

/* Hover + active like yeholot.org.il: solid green block, navy text. */
#site-navigation .main-nav > ul > li > a {
	color: var(--yp-navy) !important;
	background: transparent !important;
	transition: background-color .15s ease;
}
#site-navigation .main-nav > ul > li:hover > a,
#site-navigation .main-nav > ul > li.sfHover > a,
#site-navigation .main-nav > ul > li > a:focus-visible,
#site-navigation .main-nav > ul > li[class*="current-menu-"] > a,
#site-navigation .main-nav > ul > li.current-page-ancestor > a,
#site-navigation .main-nav > ul > li.current_page_ancestor > a {
	color: var(--yp-navy) !important;
	background: var(--yp-green-bright) !important;
}
#site-navigation .main-nav ul ul li > a {
	color: var(--yp-ink) !important;
	background: transparent !important;
}
#site-navigation .main-nav ul ul li:hover > a,
#site-navigation .main-nav ul ul li.sfHover > a,
#site-navigation .main-nav ul ul li > a:focus-visible,
#site-navigation .main-nav ul ul li[class*="current-menu-"] > a,
#site-navigation .main-nav ul ul li.current-page-ancestor > a {
	color: var(--yp-navy) !important;
	background: var(--yp-green-bright) !important;
}
/* Last two top items sit near the left edge in RTL: open their dropdown towards the right. */
#site-navigation .main-nav > ul > li:nth-last-child(-n+2) > ul,
#site-navigation .main-nav > ul > li:nth-last-child(-n+2):hover > ul,
#site-navigation .main-nav > ul > li:nth-last-child(-n+2).sfHover > ul {
	right: auto;
	left: 0;
}
body {
	overflow-x: clip;
}

/* ------------------------------------------------------------ content */
.site-content {
	padding-block: 0 56px;
}
.separate-containers .inside-article,
.one-container .site-content {
	padding: 0;
	background: transparent;
}
body:not(.home) .inside-article {
	max-width: var(--yp-read);
	margin-inline: auto;
	padding-inline: 20px;
}
.entry-header {
	margin-block: 8px 28px;
}
.entry-title {
	font-size: clamp(28px, 3.4vw, 40px);
}
.entry-content p,
.entry-content li {
	color: var(--yp-ink);
}
.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}
.yp-table-wrap {
	overflow-x: auto;
	margin-block: 1.6em;
}
.yp-table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}
.entry-content td,
.entry-content th {
	padding: .55em .8em;
	border-color: var(--yp-line);
	vertical-align: top;
}
.entry-content blockquote {
	border-inline-start: 4px solid var(--yp-green-bright);
	background: var(--yp-soft);
	padding: 16px 22px;
	margin-inline: 0;
	font-style: normal;
}

/* breadcrumbs */
.yp-breadcrumbs {
	max-width: var(--yp-read);
	margin: 28px auto 0;
	padding-inline: 20px;
	font-size: 16px;
	color: var(--yp-muted);
}
.yp-breadcrumbs a {
	color: var(--yp-muted);
	text-decoration: none;
}
.yp-breadcrumbs a:hover {
	color: var(--yp-navy);
	text-decoration: underline;
}
.yp-breadcrumbs .sep {
	margin-inline: 8px;
	color: #a6abbd;
}

/* chapter children list + prev/next */
.yp-children,
.yp-chapter-nav {
	max-width: var(--yp-read);
	margin: 40px auto 0;
	padding-inline: 20px;
}
.yp-children h2 {
	font-size: 22px;
	margin-block-end: 14px;
}
.yp-children ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.yp-children a {
	display: block;
	padding: 14px 18px;
	border: 1px solid var(--yp-line);
	border-radius: 10px;
	text-decoration: none;
	color: var(--yp-navy);
	font-weight: 600;
	background: #fff;
	transition: border-color .15s ease, background .15s ease;
}
.yp-children a:hover {
	border-color: var(--yp-green-bright);
	background: var(--yp-soft);
}
.yp-chapter-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	border-block-start: 1px solid var(--yp-line);
	padding-block-start: 24px;
}
.yp-chapter-nav a {
	display: block;
	padding: 14px 18px;
	border-radius: 10px;
	background: var(--yp-soft);
	text-decoration: none;
	color: var(--yp-navy);
	font-weight: 600;
	line-height: 1.45;
}
.yp-chapter-nav a span {
	display: block;
	font-size: 16px;
	font-weight: 400;
	color: var(--yp-muted);
}
.yp-chapter-nav .next {
	text-align: end;
}
.yp-chapter-nav a:hover {
	background: var(--yp-sky);
}

/* ------------------------------------------------------------ home */
.home .entry-header {
	display: none;
}
.home .inside-article {
	max-width: none;
	padding: 0;
}
.yp-hero {
	background: linear-gradient(160deg, var(--yp-navy) 0%, var(--yp-navy-2) 100%);
	color: #fff;
	overflow: hidden;
}
.yp-hero-inner {
	max-width: var(--yp-wide);
	margin-inline: auto;
	padding: 56px 20px 0;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	align-items: end;
	gap: 32px;
}
.yp-hero-text {
	padding-block-end: 56px;
}
.yp-hero .yp-kicker {
	display: inline-block;
	color: var(--yp-green-bright);
	font-weight: 700;
	font-size: 17px;
	letter-spacing: .02em;
	margin-block-end: 10px;
}
.yp-hero h1 {
	color: #fff;
	font-size: clamp(34px, 4.6vw, 56px);
	font-weight: 800;
	margin-block-end: 14px;
}
.yp-hero p {
	color: #d9dcf2;
	font-size: 20px;
	max-width: 560px;
}
.yp-hero-img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}
.yp-btn {
	display: inline-block;
	background: var(--yp-green-bright);
	color: var(--yp-navy) !important;
	font-weight: 700;
	font-size: 18px;
	padding: 13px 28px;
	border-radius: 999px;
	text-decoration: none;
	margin-block-start: 10px;
	margin-inline-end: 10px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.yp-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 217, 59, .35);
}
.yp-btn.ghost {
	background: transparent;
	color: #fff !important;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}
.yp-section {
	max-width: var(--yp-wide);
	margin-inline: auto;
	padding: 64px 20px 0;
}
.yp-section > h2 {
	font-size: clamp(26px, 3vw, 34px);
	margin-block-end: 8px;
}
/* full-bleed bands on the home page */
.home .site-content,
.home .content-area,
.home .site-main,
.home .entry-content {
	max-width: none;
	margin-block: 0;
}
.home .site-content {
	padding-block-start: 0;
}
.home .entry-content > .yp-hero,
.home .entry-content > .yp-quote,
.home .entry-content .yp-hero,
.home .entry-content .yp-quote {
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: none;
}
.yp-hero-img {
	min-width: 0;
}
.yp-cards a {
	min-height: 112px;
	justify-content: center;
}
.yp-section > .yp-lead {
	color: var(--yp-muted);
	max-width: 720px;
	margin-block-end: 28px;
}
.yp-intro {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.yp-intro div {
	background: var(--yp-soft);
	border-radius: var(--yp-radius);
	padding: 24px;
	border-block-start: 4px solid var(--yp-green-bright);
}
.yp-intro h3 {
	font-size: 21px;
	margin-block-end: 6px;
}
.yp-intro p {
	margin: 0;
	color: var(--yp-muted);
	font-size: 17px;
}
.yp-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.yp-cards a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 22px 24px;
	border: 1px solid var(--yp-line);
	border-radius: var(--yp-radius);
	text-decoration: none;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.yp-cards a:hover {
	border-color: var(--yp-green-bright);
	box-shadow: 0 10px 24px rgba(30, 33, 88, .08);
	transform: translateY(-2px);
}
.yp-cards .num {
	font-size: 16px;
	font-weight: 700;
	color: var(--yp-green);
}
.yp-cards .ttl {
	font-size: 20px;
	font-weight: 700;
	color: var(--yp-navy);
	line-height: 1.35;
}
.yp-cards .dsc {
	font-size: 16px;
	color: var(--yp-muted);
	line-height: 1.6;
}
.yp-quote {
	margin-block-start: 64px;
	background: var(--yp-sky);
}
.yp-quote .yp-section {
	padding-block: 48px;
	text-align: center;
}
.yp-quote p {
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
	color: var(--yp-navy);
	margin: 0 auto 18px;
	max-width: 860px;
	line-height: 1.5;
}

/* ------------------------------------------------------------ footer */
.yp-footer {
	background: var(--yp-navy);
	color: #c9cdea;
	margin-block-start: 0;
}
.yp-footer-inner {
	max-width: var(--yp-wide);
	margin-inline: auto;
	padding: 52px 20px 36px;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 40px;
}
.yp-footer h3 {
	color: #fff;
	font-size: 19px;
	margin-block-end: 14px;
}
.yp-footer p {
	font-size: 16px;
	line-height: 1.7;
	margin-block-end: 10px;
}
.yp-footer .yp-footer-logo {
	display: inline-block;
	background: #fff;
	border-radius: 10px;
	padding: 10px 14px;
	margin-block-end: 16px;
}
.yp-footer .yp-footer-logo img {
	display: block;
	height: 48px;
	width: auto;
}
.yp-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.yp-footer li {
	margin-block-end: 8px;
	font-size: 16px;
}
.yp-footer a {
	color: #fff;
	text-decoration: none;
}
.yp-footer a:hover {
	color: var(--yp-green-bright);
	text-decoration: underline;
}
.site-footer .site-info {
	background: #15173f;
	color: #a9aed3;
	font-size: 16px;
}
.site-footer .site-info a {
	color: #fff;
}
.site-footer .inside-site-info {
	max-width: var(--yp-wide);
	margin-inline: auto;
	padding-block: 16px;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
	.yp-cards,
	.yp-intro {
		grid-template-columns: repeat(2, 1fr);
	}
	.yp-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 768px) {
	body {
		font-size: 17px;
	}
	.admin-bar .site-header {
		top: 0;
	}
	.site-logo img,
	.site-logo .header-image {
		max-height: 46px;
	}
	.main-navigation .main-nav > ul > li > a {
		line-height: 1.5;
		padding-block: 12px;
	}
	.main-navigation .main-nav > ul > li > a::after {
		display: none;
	}
	.main-navigation ul ul {
		width: auto;
		box-shadow: none;
		border: 0;
		border-radius: 0;
	}
	.yp-hero-inner {
		grid-template-columns: 1fr;
		padding-block-start: 36px;
	}
	.yp-hero-text {
		padding-block-end: 8px;
	}
	.yp-hero p {
		font-size: 18px;
	}
	.yp-cards,
	.yp-intro,
	.yp-footer-inner,
	.yp-chapter-nav {
		grid-template-columns: 1fr;
	}
	.yp-section {
		padding-block-start: 44px;
	}
}
