/*
 * Blog (inc/blog.php, home.php, category.php, single.php): the blog index and categories, article cards, the article
 * page, article blocks and the "מהבלוג" block on product category pages. Colours come from the theme tokens in style.css.
 */
.mp-blog, .mp-blogpost, .mp-blog-block {
	--blog-ink: #1f2a30;
	--blog-muted: #5b6770;
	--blog-line: #dfe5e8;
	--blog-soft: #eef4f6;
	--blog-warm: #fbf1e7;
	--blog-radius: 14px;
	font-family: "Heebo", sans-serif;
}

/* ---------- Blog index and categories ---------- */
.mp-blog { padding-block: 48px 72px; background: #fff; }
.mp-blog__head { max-width: 760px; margin-bottom: 32px; }
html:not(#mp-x) .mp-blog__title { margin: 0 0 12px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.2; color: var(--mp-primary); }
.mp-blog__intro { margin: 0; font-size: 18px; line-height: 1.6; color: var(--blog-muted); }
.mp-blog__intro p { margin: 0; }
.mp-blog__empty { padding: 32px; border: 1px dashed var(--blog-line); border-radius: var(--blog-radius); background: var(--blog-soft); font-size: 17px; text-align: center; color: var(--blog-muted); }

.mp-blog-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mp-blog-nav__chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid var(--blog-line); border-radius: 999px;
	background: #fff; color: var(--blog-ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s;
}
.mp-blog-nav__chip:hover, .mp-blog-nav__chip:focus-visible { border-color: var(--mp-primary); color: var(--mp-primary); }
.mp-blog-nav__chip.is-current, .mp-blog-nav__chip.is-current:hover { background: var(--mp-primary); border-color: var(--mp-primary); color: #fff; }

.mp-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }

/* ---------- Article card ---------- */
.mp-post-card { display: flex; flex-direction: column; min-width: 0; }
.mp-post-card__media { position: relative; display: block; aspect-ratio: 16 / 9.5; margin-bottom: 14px; border-radius: var(--blog-radius); overflow: hidden; background: var(--blog-soft); }
.mp-post-card__media img { display: block; width: 100%; height: 100%; padding: 12px; box-sizing: border-box; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s ease; }
.mp-post-card__media.is-photo img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
.mp-post-card__media.is-empty { display: flex; align-items: center; justify-content: center; }
.mp-post-card__media.is-empty img { width: 96px; height: 96px; padding: 0; border-radius: 16px; mix-blend-mode: normal; }
.mp-post-card:hover .mp-post-card__media img { transform: scale(1.04); }
.mp-post-card__chips { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mp-post-card__chip { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--mp-primary); font-size: 12.5px; font-weight: 700; line-height: 1.3; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.mp-post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; font-size: 13px; color: var(--blog-muted); }
.mp-post-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.mp-post-card__meta .mp-icon { width: 13px; height: 13px; fill: var(--mp-copper); }
html:not(#mp-x) .mp-post-card__title { margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.4; }
.mp-post-card__title a { color: var(--blog-ink); text-decoration: none; }
.mp-post-card__title a:hover { color: var(--mp-primary); }
.mp-post-card__more { margin-top: auto; align-self: flex-start; color: var(--mp-primary); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Pages ---------- */
.mp-blog .navigation.pagination { margin-top: 44px; }
.mp-blog .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mp-blog .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--blog-line);
	border-radius: 10px; color: var(--blog-ink); font-weight: 700; text-decoration: none;
}
.mp-blog .page-numbers.current { background: var(--mp-primary); border-color: var(--mp-primary); color: #fff; }
.mp-blog .page-numbers .mp-icon { width: 12px; height: 12px; fill: currentColor; }

/* ---------- "מהבלוג" on product category pages ---------- */
.mp-blog-block { margin: 48px 0 8px; padding-top: 32px; border-top: 1px solid var(--blog-line); text-align: start; }
.mp-blog-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
html:not(#mp-x) .mp-blog-block__title { margin: 0; font-size: 26px; font-weight: 800; color: var(--mp-primary); }
.mp-blog-block__all { color: var(--mp-primary); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Article blocks: product card, callouts, photos, pros and cons ---------- */
html:not(#mp-x) .mp-apc {
	display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; margin: 22px 0 26px; padding: 14px;
	border: 1px solid var(--blog-line); border-radius: var(--blog-radius); background: #fbfcfc; font-size: 16px; line-height: 1.5;
}
html:not(#mp-x) .mp-apc a { color: inherit; font-weight: inherit; text-decoration: none; }
.mp-apc__media { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; }
.mp-apc__media img { width: 100%; height: 100%; object-fit: contain; }
.mp-apc__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html:not(#mp-x) .mp-apc a.mp-apc__name { font-size: 16.5px; font-weight: 800; line-height: 1.4; color: var(--blog-ink); }
html:not(#mp-x) .mp-apc a.mp-apc__name:hover { color: var(--mp-primary); text-decoration: underline; }
.mp-apc__text { font-size: 14px; line-height: 1.55; color: var(--blog-muted); }
.mp-apc__fit { font-size: 14.5px; line-height: 1.5; }
.mp-apc__fit b { font-weight: 800; }
.mp-apc__fit.is-yes b { color: #2f7a3a; }
.mp-apc__fit.is-no b { color: #8a5a00; }
.mp-apc__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 6px; }
.mp-apc__min { font-size: 14px; font-weight: 700; color: var(--mp-primary); }
.mp-apc__stock { font-size: 14px; font-weight: 700; color: #8a5a00; }
.mp-apc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
html:not(#mp-x) .mp-apc a.mp-apc__link { font-size: 14px; font-weight: 700; color: var(--mp-primary); text-decoration: underline; text-underline-offset: 3px; }
.mp-apc__quote {
	display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--mp-copper);
	color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .2s;
}
.mp-apc__quote:hover, .mp-apc__quote:focus { background: var(--mp-primary); color: #fff; }

.mp-callout { margin: 24px 0; padding: 14px 18px; border-inline-start: 5px solid var(--mp-primary); border-radius: 12px; background: var(--blog-soft); }
.mp-callout--note { border-color: var(--mp-copper); background: var(--blog-warm); }
html:not(#mp-x) .mp-callout__label { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 15px; font-weight: 900; }
.mp-callout__label .mp-icon { width: 17px; height: 17px; fill: currentColor; }
html:not(#mp-x) .mp-callout__text { margin: 0; font-size: 16.5px; line-height: 1.7; }

.mp-fig { margin: 28px 0; }
.mp-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; padding: 12px; box-sizing: border-box; border: 1px solid var(--blog-line); border-radius: 16px; background: var(--fig-bg, #fff); object-fit: contain; }
.mp-fig.is-photo img { aspect-ratio: 4 / 3; padding: 0; border: 0; object-fit: cover; }

.mp-pc { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--blog-line); border-radius: var(--blog-radius); }
html:not(#mp-x) .mp-pc__title { margin: 0 0 10px; font-size: 16.5px; font-weight: 800; }
.mp-pc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
html:not(#mp-x) .mp-pc__label { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.mp-post__content .mp-pc ul { margin: 0; }
.mp-post__content .mp-pc li { padding-inline-start: 22px; font-size: 16px; line-height: 1.55; }
.mp-post__content .mp-pc li::before { top: 0; width: auto; height: auto; border-radius: 0; background: none; font-weight: 900; }
.mp-post__content .mp-pc .is-pros li::before { content: "✓"; color: #2f7a3a; }
.mp-post__content .mp-pc .is-cons li::before { content: "–"; color: #8a5a00; }

/* ---------- Article page: a 720px reading column shared by the head, the cover and the body ---------- */
.mp-blogpost { --post-w: 720px; background: #fff; color: var(--blog-ink); }
.mp-post__head, .mp-post__body, .mp-post__cover { width: min(var(--post-w), 100% - 32px); margin-inline: auto; }
.mp-post__head { padding-top: 28px; }
.mp-post__crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: 13.5px; color: var(--blog-muted); }
.mp-post__crumbs a { color: inherit; text-decoration: none; }
.mp-post__crumbs a:hover { color: var(--mp-primary); text-decoration: underline; }
html:not(#mp-x) .mp-post__title { margin: 0 0 14px; font-size: clamp(27px, 3.4vw, 36px); font-weight: 800; line-height: 1.25; color: var(--blog-ink); text-wrap: balance; }
.mp-post__dek { margin: 0 0 20px; font-size: 19px; line-height: 1.6; color: #44525a; }
.mp-post__byline { display: flex; align-items: center; gap: 12px; padding-block: 14px; border-block: 1px solid var(--blog-line); }
.mp-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--mp-primary); color: #fff; font-weight: 800; }
.mp-avatar img { display: block; width: 100%; height: 100%; }
.mp-post__avatar { text-decoration: none; }
.mp-post__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-post__author { font-size: 15px; font-weight: 800; color: var(--blog-ink); text-decoration: none; }
.mp-post__author:hover { color: var(--mp-primary); text-decoration: underline; }
.mp-post__dates { font-size: 13.5px; color: var(--blog-muted); }
.mp-share { display: flex; gap: 8px; margin-inline-start: auto; }
.mp-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--blog-line); border-radius: 50%; background: #fff; color: #33373d; cursor: pointer; transition: border-color .2s, background .2s; }
.mp-share__btn .mp-icon { width: 18px; height: 18px; fill: currentColor; }
.mp-share__btn.is-wa { color: #128c4b; }
.mp-share__btn.is-fb { color: #1877f2; }
.mp-share__btn:hover, .mp-share__btn:focus { border-color: var(--mp-primary); background: #fff; }
.mp-share__btn.is-done { border-color: var(--mp-primary); background: var(--mp-primary); color: #fff; }

.mp-post__cover { margin-block: 26px 8px; }
.mp-post__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; padding: 14px; box-sizing: border-box; border: 1px solid var(--blog-line); border-radius: 16px; background: #fff; object-fit: contain; }
.mp-post__cover.is-photo img { padding: 0; border: 0; object-fit: cover; }
.mp-post__cover figcaption, .mp-fig figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--blog-muted); }

.mp-post__body { padding-bottom: 56px; font-size: 18px; line-height: 1.8; }
.mp-post__content > :first-child { margin-top: 0; }
html:not(#mp-x) .mp-post__content h2 { margin: 46px 0 12px; font-family: "Heebo", sans-serif; font-size: 27px; font-weight: 800; line-height: 1.3; color: var(--blog-ink); scroll-margin-top: 100px; }
html:not(#mp-x) .mp-post__content h3 { margin: 30px 0 8px; font-family: "Heebo", sans-serif; font-size: 21px; font-weight: 800; line-height: 1.35; color: var(--blog-ink); scroll-margin-top: 100px; }
.mp-post__content p { margin: 0 0 18px; }
.mp-post__content ul, .mp-post__content ol { margin: 0 0 22px; padding: 0; }
.mp-post__content ul { list-style: none; }
.mp-post__content ul > li { position: relative; margin-bottom: 8px; padding-inline-start: 24px; }
.mp-post__content ul > li::before { content: ""; position: absolute; top: .72em; inset-inline-start: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--mp-copper); }
.mp-post__content ol { padding-inline-start: 26px; }
.mp-post__content ol > li { margin-bottom: 8px; padding-inline-start: 4px; }
.mp-post__content ol > li::marker { font-weight: 800; color: var(--mp-primary); }
html:not(#mp-x) .mp-post__content a:not([class]) { color: var(--mp-primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mp-post__content strong { color: var(--blog-ink); }
.mp-post__content blockquote { margin: 26px 0; padding: 4px 22px; border-inline-start: 4px solid var(--mp-secondary); font-size: 21px; font-weight: 700; line-height: 1.55; }
.mp-post__content table { width: 100%; margin: 8px 0 26px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.mp-post__content th, .mp-post__content td { padding: 11px 12px; border-bottom: 1px solid var(--blog-line); text-align: start; vertical-align: top; }
.mp-post__content th { background: var(--blog-soft); font-weight: 800; }
.mp-post__content tr > :first-child { font-weight: 700; }

.mp-post__points { margin: 26px 0 18px; padding: 18px 22px 10px; border-inline-start: 5px solid var(--mp-primary); border-radius: 12px; background: var(--blog-soft); }
.mp-post__points-title { margin: 0 0 8px; font-size: 15px; font-weight: 900; color: var(--mp-primary); }
.mp-post__points ul { margin: 0; padding: 0; list-style: none; }
.mp-post__points li { position: relative; margin-bottom: 8px; padding-inline-start: 26px; font-size: 16.5px; line-height: 1.6; }
.mp-post__points li::before { content: ""; position: absolute; top: .38em; inset-inline-start: 2px; width: 14px; height: 8px; border-bottom: 2.5px solid var(--mp-primary); border-left: 2.5px solid var(--mp-primary); transform: rotate(-45deg); }

.mp-post__toc { margin: 0 0 26px; border: 1px solid var(--blog-line); border-radius: 12px; background: #fff; }
.mp-post__toc summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; font-size: 16px; font-weight: 800; list-style: none; cursor: pointer; }
.mp-post__toc summary::-webkit-details-marker { display: none; }
.mp-post__toc summary::after { content: ""; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.mp-post__toc[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.mp-post__toc ol { margin: 0; padding: 0 18px 14px; padding-inline-start: 38px; font-size: 16px; line-height: 1.55; }
.mp-post__toc li { margin-bottom: 6px; }
.mp-post__toc a { color: var(--blog-ink); text-decoration: none; }
.mp-post__toc a:hover { color: var(--mp-primary); text-decoration: underline; }

.mp-picks { margin: 0 0 30px; }
.mp-picks__title { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.mp-picks__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.mp-pick { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--blog-line); border-radius: var(--blog-radius); background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.mp-pick:hover { border-color: var(--mp-primary); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.mp-pick__label { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--mp-secondary); color: #1f2a30; font-size: 12.5px; font-weight: 800; }
.mp-pick__img img { display: block; width: 100%; height: 120px; object-fit: contain; }
.mp-pick__name { font-size: 15px; font-weight: 700; line-height: 1.4; }
.mp-pick__stock { font-size: 13px; font-weight: 700; color: #8a5a00; }

.mp-post__faq { margin-top: 40px; }
html:not(#mp-x) .mp-post__faq h2 { margin: 0 0 10px; font-family: "Heebo", sans-serif; font-size: 25px; font-weight: 800; }
.mp-faq { border-top: 1px solid var(--blog-line); }
.mp-faq__item { border-bottom: 1px solid var(--blog-line); }
.mp-faq__q { position: relative; display: block; padding: 16px 0; padding-inline-end: 32px; font-size: 16.5px; font-weight: 700; list-style: none; cursor: pointer; }
.mp-faq__q::-webkit-details-marker { display: none; }
.mp-faq__q::after { content: ""; position: absolute; top: 50%; inset-inline-end: 6px; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.mp-faq__item[open] > .mp-faq__q::after { margin-top: -2px; transform: rotate(225deg); }
.mp-faq__q:focus-visible { outline: 3px solid var(--mp-secondary); outline-offset: 2px; }
.mp-faq__a { padding: 0 0 16px; font-size: 16px; line-height: 1.7; }
.mp-faq__a p { margin: 0 0 8px; }

html:not(#mp-x) .mp-post__cta { margin: 36px 0 0; text-align: center; }
.mp-post__cta .mp-btn { font-size: 18px; text-decoration: none; }

.mp-author { display: flex; align-items: flex-start; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--blog-line); }
.mp-author__body { min-width: 0; font-size: 15.5px; line-height: 1.65; }
.mp-author__body p { margin: 0 0 6px; }
.mp-author__name { font-size: 16px; font-weight: 800; }
.mp-author__body a { color: var(--mp-primary); font-weight: 700; }
.mp-author__how { font-size: 14px; color: var(--blog-muted); }

.mp-post__related { padding-block: 44px 64px; border-top: 1px solid var(--blog-line); background: #fafbfb; }
html:not(#mp-x) .mp-post__related-title { margin: 0 0 22px; font-size: 24px; font-weight: 800; color: var(--blog-ink); }

@media (max-width: 1024px) {
	.mp-blog { padding-inline: 16px; }
	.mp-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.mp-blog { padding-block: 28px 48px; }
	.mp-post__dek { font-size: 17px; }
	.mp-post__body { font-size: 17px; }
	html:not(#mp-x) .mp-post__content h2 { margin-top: 38px; font-size: 23px; }
	html:not(#mp-x) .mp-post__content h3 { font-size: 19px; }
	.mp-post__byline { flex-wrap: wrap; }
	.mp-share { width: 100%; margin-inline-start: 0; }
	.mp-post__cover { margin-top: 18px; }
	.mp-post__cover.is-photo img { aspect-ratio: 4 / 3; }
	.mp-post__content table { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; }
	html:not(#mp-x) .mp-apc { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; }
	.mp-apc__text { display: none; }
	.mp-pc__cols { grid-template-columns: 1fr; gap: 10px; }
	.mp-blog__intro { font-size: 16.5px; }
	.mp-blog__grid { grid-template-columns: 1fr; gap: 28px; }
}
