/**
 * העלון החודשי "אורות בכרמל": עמוד העלון, הארכיון ועמוד גיליון
 * (template-bulletin.php, template-bulletin-archive.php, single-bulletins.php).
 *
 * אותה משפחה כמו בית המדרש הדיגיטלי (page-7601.css): פתיח כחול עמוק עם קרני
 * אור זהובות, Frank Ruhl Libre בכותרות ו-Assistant בטקסט, קו זהב קצר,
 * כרטיסים לבנים עם קו זהב עליון על רקע נייר.
 * מה שמיוחד כאן: העלון עומד על הבמה הכהה כמו גיליון מודפס, והכריכות נראות
 * כחוברות (ערימת דפים דקה מאחור). לגיליון בלי תמונה יש כריכה מעוצבת.
 *
 * גדלים בפיקסלים ולא ב-rem: OceanWP קובע לשורש 10px.
 */

.ov-bl {
	--ink: var(--ov-ink, #131c26);
	--navy: var(--ov-navy, #002347);
	--navy-soft: var(--ov-navy-soft, #1c3a5e);
	--navy-deep: var(--ov-navy-deep, #001b38);
	--gold: var(--ov-gold, #d59b2a);
	--gold-bright: var(--ov-gold-bright, #f0b641);
	--gold-deep: var(--ov-gold-deep, #9a6c17);
	--sand: var(--ov-surface-alt, #f6f3ec);
	--line: var(--ov-border, #ece6d9);
	--muted: #5b6b7c;
	--display: 'Frank Ruhl Libre', Georgia, serif;
	--body: 'Assistant', system-ui, sans-serif;
	--wide: 1200px;
	--shadow-sm: 0 1px 2px rgba(0, 35, 71, 0.04), 0 4px 12px -4px rgba(0, 35, 71, 0.1);
	--shadow-md: 0 2px 4px rgba(0, 35, 71, 0.05), 0 18px 40px -16px rgba(0, 35, 71, 0.22);
	--shadow-lg: 0 4px 8px rgba(0, 35, 71, 0.06), 0 30px 60px -20px rgba(0, 35, 71, 0.34);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	font-family: var(--body);
	color: var(--ink);
}

.ov-bl *,
.ov-bl *::before,
.ov-bl *::after {
	box-sizing: border-box;
}

/* כל הרצועות מתחילות מאותו קו כמו ההדר */
.ov-bl-wrap,
.ov-bl-section,
.ov-bl-hero__inner,
.ov-bl-stage__head,
.ov-bl-stats {
	max-width: calc(var(--wide) + 2 * var(--ov-edge));
	margin-inline: auto;
	padding-inline: var(--ov-edge);
}

.ov-bl a:focus-visible {
	outline: 3px solid var(--gold-bright);
	outline-offset: 3px;
}

.ov-bl svg {
	flex: 0 0 auto;
}

.ov-bl-rule {
	display: block;
	width: 68px;
	height: 3px;
	border-radius: 100px;
	background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
}

/* ==========================================================================
   פתיח כהה (הבמה של הגיליון, והפתיח של הארכיון)
   ========================================================================== */

.ov-bl-stage,
.ov-bl-hero {
	position: relative;
	z-index: 0;
	overflow: hidden;
	color: #ffffff;
	background:
		radial-gradient(860px 520px at 100% 0%, rgba(213, 155, 42, 0.24), transparent 64%),
		radial-gradient(760px 520px at 0% 100%, rgba(28, 58, 94, 0.85), transparent 70%),
		linear-gradient(165deg, #06305c 0%, var(--navy) 46%, var(--navy-deep) 100%);
}

/* קרני האור: יוצאות מהפינה העליונה בצד ההתחלה (ימין) ודועכות */
.ov-bl-rays {
	position: absolute;
	z-index: -1;
	top: -950px;
	inset-inline-start: -950px;
	width: 1900px;
	height: 1900px;
	pointer-events: none;
	background: repeating-conic-gradient(from 4deg, rgba(240, 182, 65, 0.13) 0deg 1.6deg, transparent 1.6deg 7.5deg);
	-webkit-mask: radial-gradient(circle closest-side, #000000 8%, rgba(0, 0, 0, 0.55) 42%, transparent 100%);
	mask: radial-gradient(circle closest-side, #000000 8%, rgba(0, 0, 0, 0.55) 42%, transparent 100%);
}

.ov-bl-eyebrow {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.5;
	color: var(--gold-bright);
}

.ov-bl-eyebrow a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(240, 182, 65, 0.45);
	transition: border-color 0.25s ease, color 0.25s ease;
}

.ov-bl-eyebrow a:hover,
.ov-bl-eyebrow a:focus-visible {
	color: #ffffff;
	border-bottom-color: #ffffff;
}

.ov-bl-title {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(40px, 5.2vw, 64px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.ov-bl-stage .ov-bl-rule,
.ov-bl-hero .ov-bl-rule {
	margin: 24px 0 22px;
}

.ov-bl-lede {
	max-width: 46ch;
	margin: 0;
	font-size: 19px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}

/* ---------- כפתורים ---------- */

.ov-bl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	font-family: var(--body);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 100px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ov-bl-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* סמל הוואטסאפ מלא, לא קווי */
.ov-bl-btn svg[fill="currentColor"] {
	fill: currentColor;
	stroke: none;
}

.ov-bl-btn--gold {
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	border: 0;
	box-shadow: 0 12px 28px -10px rgba(213, 155, 42, 0.85);
}

.ov-bl-btn--gold:hover,
.ov-bl-btn--gold:focus-visible {
	color: var(--navy);
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -10px rgba(213, 155, 42, 0.95);
}

.ov-bl-btn--ghost {
	color: #ffffff;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.ov-bl-btn--ghost:hover,
.ov-bl-btn--ghost:focus-visible {
	color: var(--gold-bright);
	background: rgba(240, 182, 65, 0.08);
	border-color: var(--gold-bright);
}

.ov-bl-pill {
	display: inline-block;
	padding: 4px 13px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	border-radius: 100px;
}

/* ==========================================================================
   הבמה של הגיליון: כותרת, כרטיס הגיליון, והקורא
   ========================================================================== */

.ov-bl-stage__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: clamp(32px, 5vw, 72px);
	align-items: end;
	padding-block: clamp(52px, 8vh, 88px) 0;
}

/* כרטיס זכוכית, כמו "השיעור החדש" בבית המדרש */
.ov-bl-issue {
	position: relative;
	padding: 24px 26px 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 100%);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 24px;
	box-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.7);
}

.ov-bl-issue__name {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin: 16px 0 0;
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.1;
}

.ov-bl-issue__month {
	font-size: clamp(32px, 3.4vw, 42px);
	color: #ffffff;
}

.ov-bl-issue__year {
	font-size: clamp(24px, 2.4vw, 30px);
	color: var(--gold-bright);
}

/* "קובץ PDF · 3.4MB · 8 עמודים" */
.ov-bl-issue__meta,
.ov-bl-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 10px 0 0;
}

.ov-bl-issue__meta {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.66);
}

.ov-bl-issue__meta > span + span:not([hidden])::before,
.ov-bl-card__meta > span + span:not([hidden])::before {
	content: "·";
	margin-inline: 8px;
	opacity: 0.7;
}

.ov-bl-issue__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.ov-bl-issue__actions .ov-bl-btn {
	flex: 1 1 auto;
	min-height: 50px;
	padding: 0 20px;
	font-size: 16px;
}

.ov-bl-issue__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	font-size: 15px;
	font-weight: 700;
	color: var(--gold-bright);
	text-decoration: none;
	transition: color 0.25s ease;
}

.ov-bl-issue__more svg,
.ov-bl-head__link svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.3s var(--ease);
}

.ov-bl-issue__more:hover,
.ov-bl-issue__more:focus-visible {
	color: #ffffff;
}

.ov-bl-issue__more:hover svg,
.ov-bl-head__link:hover svg {
	transform: translateX(-4px);
}

/* ---------- הקורא ---------- */

.ov-bl-reader {
	position: relative;
	max-width: calc(1120px + 2 * var(--ov-edge));
	margin: clamp(28px, 5vh, 52px) auto 0;
	padding: 0 var(--ov-edge) clamp(40px, 6vh, 64px);
}

/* הילה זהובה חלשה מאחורי העלון, כאילו מונח באור */
.ov-bl-reader::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 6% 12% 10%;
	background: radial-gradient(closest-side, rgba(240, 182, 65, 0.22), rgba(240, 182, 65, 0.06) 60%, transparent 100%);
	filter: blur(10px);
	pointer-events: none;
}

/* שומר מקום לעלון עד ש-DearFlip מצייר אותו, כדי שהעמוד לא יקפוץ */
.ov-bl-reader__book {
	min-height: 440px;
}

.ov-bl-reader__fallback,
.ov-bl-stage__notice {
	margin: 0 auto;
	padding: 24px var(--ov-edge) 48px;
	max-width: calc(var(--wide) + 2 * var(--ov-edge));
	font-size: 17px;
	color: rgba(255, 255, 255, 0.8);
}

.ov-bl-reader__fallback a {
	color: var(--gold-bright);
}

/* הקורא שנפתח מעל העמוד (מכריכה בארכיון): אותה במה כהה במקום האפור של
   DearFlip. החלון נוסף ל-body, ולכן הסלקטור דרך המחלקה של העמוד. */
.ov-bulletin-view .df-lightbox-wrapper .df-lightbox-bg {
	background:
		radial-gradient(900px 620px at 50% 42%, rgba(213, 155, 42, 0.16), transparent 70%),
		linear-gradient(165deg, #06305c 0%, var(--ov-navy, #002347) 50%, var(--ov-navy-deep, #001b38) 100%);
}

/* ==========================================================================
   פתיח הארכיון: שלוש הכריכות האחרונות כמו ערימה על שולחן
   ========================================================================== */

.ov-bl-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(36px, 5vw, 76px);
	align-items: center;
	padding-block: clamp(48px, 7vh, 84px) clamp(36px, 5vh, 56px);
}

.ov-bl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.ov-bl-fan {
	position: relative;
	display: block;
	justify-self: center;
	width: min(100%, 440px);
	height: 450px;
	color: #ffffff;
	text-decoration: none;
}

.ov-bl-fan__item {
	position: absolute;
	top: 10px;
	left: 50%;
	width: 252px;
	transform-origin: 50% 90%;
	transition: transform 0.6s var(--ease);
}

.ov-bl-fan__item--1 {
	z-index: 3;
	transform: translateX(-50%);
}

.ov-bl-fan__item--2 {
	z-index: 2;
	transform: translateX(-50%) translateX(30%) rotate(8deg);
}

.ov-bl-fan__item--3 {
	z-index: 1;
	transform: translateX(-50%) translateX(-30%) rotate(-8deg);
}

.ov-bl-fan:hover .ov-bl-fan__item--1,
.ov-bl-fan:focus-visible .ov-bl-fan__item--1 {
	transform: translateX(-50%) translateY(-8px);
}

.ov-bl-fan:hover .ov-bl-fan__item--2,
.ov-bl-fan:focus-visible .ov-bl-fan__item--2 {
	transform: translateX(-50%) translateX(40%) rotate(11deg);
}

.ov-bl-fan:hover .ov-bl-fan__item--3,
.ov-bl-fan:focus-visible .ov-bl-fan__item--3 {
	transform: translateX(-50%) translateX(-40%) rotate(-11deg);
}

.ov-bl-fan .ov-bl-sheet {
	border-radius: 6px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -18px rgba(0, 0, 0, 0.75);
}

/* הכריכות שמאחור מעט כהות, כדי שהעליונה תבלוט */
.ov-bl-fan__item--2 .ov-bl-sheet::after,
.ov-bl-fan__item--3 .ov-bl-sheet::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 20, 45, 0.28);
}

.ov-bl-fan__label {
	position: absolute;
	z-index: 4;
	bottom: 0;
	left: 50%;
	padding: 7px 18px;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	border-radius: 100px;
	box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6);
	transform: translateX(-50%);
}

/* ---------- מספרים ---------- */

.ov-bl-stats {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin-block: 0;
}

.ov-bl-stats__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	padding-block: 26px 34px;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.ov-bl-stats__item + .ov-bl-stats__item {
	padding-inline-start: clamp(18px, 3vw, 36px);
	border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

.ov-bl-stats__num {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(34px, 3.6vw, 46px);
	font-weight: 700;
	line-height: 1;
	color: var(--gold-bright);
}

.ov-bl-stats__num--text {
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.25;
}

.ov-bl-stats__label {
	margin: 10px 0 0;
	font-size: 16px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   כותרות הרצועות
   ========================================================================== */

.ov-bl-section {
	padding-top: clamp(60px, 9vh, 96px);
}

.ov-bl-year {
	/* ההדר דביק: קישור לשנה עוצר מתחתיו */
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 70px);
}

.ov-bl-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 30px;
}

.ov-bl-head__kicker {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--gold-deep);
}

.ov-bl-head__title {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(30px, 3.4vw, 42px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--navy);
}

.ov-bl-head__title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 16px;
	border-radius: 100px;
	background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
}

.ov-bl-head__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--gold-deep);
	text-decoration: none;
	transition: color 0.25s ease;
}

.ov-bl-head__link:hover,
.ov-bl-head__link:focus-visible {
	color: var(--navy);
}

.ov-bl-head__count {
	margin: 0;
	padding: 6px 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--navy);
	background: #ffffff;
	border-radius: 100px;
	box-shadow: var(--shadow-sm);
}

/* ---------- קיצורי דרך לשנים ---------- */

.ov-bl-years {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 8px;
	padding-top: 28px;
}

.ov-bl-years__label {
	margin-inline-end: 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--muted);
}

.ov-bl-years__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 6px 16px;
	font-family: var(--display);
	font-size: 18px;
	font-weight: 700;
	color: var(--navy);
	text-decoration: none;
	background: #ffffff;
	border-radius: 100px;
	box-shadow: var(--shadow-sm);
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ov-bl-years__chip:hover,
.ov-bl-years__chip:focus-visible,
.ov-bl-years__chip.is-active {
	color: #ffffff;
	background: var(--navy);
}

.ov-bl-years__n {
	font-family: var(--body);
	font-size: 13px;
	font-weight: 700;
	color: var(--gold-deep);
	transition: color 0.25s ease;
}

.ov-bl-years__chip:hover .ov-bl-years__n,
.ov-bl-years__chip:focus-visible .ov-bl-years__n,
.ov-bl-years__chip.is-active .ov-bl-years__n {
	color: var(--gold-bright);
}

.ov-bl-empty {
	padding-block: 48px;
	font-size: 18px;
	color: var(--muted);
}

/* ==========================================================================
   כרטיסי הגיליונות
   ========================================================================== */

.ov-bl-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* בארכיון חמישה בשורה, כמו מדף: יותר גיליונות בעין אחת */
.ov-bl-year .ov-bl-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 26px 20px;
}

.ov-bl-grid__item {
	margin: 0;
}

.ov-bl-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 16px 16px 18px;
	background: #ffffff;
	border-top: 3px solid transparent;
	border-radius: 18px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease;
}

.ov-bl-card:hover,
.ov-bl-card:focus-within,
.ov-bl-card.is-current {
	border-top-color: var(--gold);
}

.ov-bl-card:hover,
.ov-bl-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

/* הכריכה: חוברת עם שני דפים שמציצים מאחור (בצד השמאלי, כמו חוברת בעברית) */
.ov-bl-card__cover {
	position: relative;
	display: block;
	margin: 2px 2px 10px 10px;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.ov-bl-card__cover .ov-bl-sheet {
	box-shadow:
		0 0 0 1px rgba(0, 35, 71, 0.07),
		-4px 4px 0 -1px #ffffff,
		-4px 4px 0 0 rgba(0, 35, 71, 0.12),
		-8px 8px 0 -1px #ffffff,
		-8px 8px 0 0 rgba(0, 35, 71, 0.08),
		0 16px 28px -14px rgba(0, 35, 71, 0.45);
	transition: box-shadow 0.4s ease;
}

.ov-bl-sheet {
	position: relative;
	display: block;
	aspect-ratio: 210 / 297;
	overflow: hidden;
	background: var(--sand);
	border-radius: 5px;
	container-type: inline-size;
}

.ov-bl-sheet__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.7s var(--ease);
}

.ov-bl-card:hover .ov-bl-sheet__img {
	transform: scale(1.04);
}

/* בריחוף: כהות קלה ו"קריאה" במרכז הכריכה */
.ov-bl-card__cover .ov-bl-sheet::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 20, 45, 0.55) 0%, rgba(0, 20, 45, 0.15) 60%);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.ov-bl-card:hover .ov-bl-card__cover .ov-bl-sheet::after {
	opacity: 1;
}

.ov-bl-card__open {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	border-radius: 100px;
	box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6);
	opacity: 0;
	transform: translate(-50%, -40%);
	transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.ov-bl-card__open svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
}

.ov-bl-card:hover .ov-bl-card__open {
	opacity: 1;
	transform: translate(-50%, -50%);
}

/* בתחתית הכריכה: למעלה הוא היה מסתיר את שם העלון שעל הכריכה עצמה */
.ov-bl-card__badge {
	position: absolute;
	z-index: 2;
	bottom: 10px;
	inset-inline-start: 10px;
	padding: 4px 12px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	border-radius: 100px;
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
}

.ov-bl-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 6px 2px 0;
}

.ov-bl-card__title {
	margin: 0;
	font-family: var(--display);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--navy);
}

.ov-bl-card__meta {
	margin-top: 4px;
	font-size: 14.5px;
	color: var(--muted);
}

.ov-bl-card__meta:empty {
	display: none;
}

.ov-bl-card__actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 16px;
}

.ov-bl-card__read,
.ov-bl-card__dl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 100px;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ov-bl-card__read {
	flex: 1 1 auto;
	padding: 0 16px;
	font-size: 16px;
	color: #ffffff;
	background: var(--navy);
}

.ov-bl-card__read:hover,
.ov-bl-card__read:focus-visible {
	color: #ffffff;
	background: var(--navy-soft);
}

.ov-bl-card__dl {
	flex: 0 0 auto;
	padding: 0 14px;
	font-size: 13.5px;
	color: var(--navy);
	background: var(--sand);
}

.ov-bl-card__dl svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--gold-deep);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 0.25s ease;
}

.ov-bl-card__dl:hover,
.ov-bl-card__dl:focus-visible {
	color: #ffffff;
	background: var(--gold-deep);
}

.ov-bl-card__dl:hover svg,
.ov-bl-card__dl:focus-visible svg {
	stroke: #ffffff;
}

/* ==========================================================================
   כריכה מעוצבת: לגיליון שעוד אין לו תמונה
   (הגדלים יחסיים לרוחב הכריכה, cqw, כך שהיא נכונה בכל גודל)
   ========================================================================== */

.ov-bl-type {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-align: center;
	color: #ffffff;
	background:
		radial-gradient(120% 60% at 50% 0%, rgba(213, 155, 42, 0.35), transparent 70%),
		linear-gradient(170deg, #06305c 0%, var(--navy) 50%, var(--navy-deep) 100%);
}

/* קרני אור מהחלק העליון, כמו בפתיח */
.ov-bl-type::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -60%;
	left: -50%;
	width: 200%;
	height: 120%;
	background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(240, 182, 65, 0.16) 0deg 2deg, transparent 2deg 9deg);
	-webkit-mask: radial-gradient(closest-side, #000000 10%, transparent 100%);
	mask: radial-gradient(closest-side, #000000 10%, transparent 100%);
}

/* מסגרת זהב דקה */
.ov-bl-type::after {
	content: "";
	position: absolute;
	inset: 5cqw;
	border: 1px solid rgba(240, 182, 65, 0.45);
	border-radius: 2px;
}

.ov-bl-type__brand {
	position: absolute;
	top: 12cqw;
	font-family: var(--display);
	font-size: 10cqw;
	font-weight: 700;
	color: var(--gold-bright);
}

.ov-bl-type__month {
	max-width: 84cqw;
	font-family: var(--display);
	font-size: min(30cqw, calc(118cqw / var(--len, 2)));
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
}

.ov-bl-type__year {
	margin-top: 3cqw;
	font-family: var(--display);
	font-size: 11cqw;
	font-weight: 700;
	color: var(--gold-bright);
}

.ov-bl-type__org {
	position: absolute;
	bottom: 11cqw;
	font-size: 5.5cqw;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   הזמנה להפצה בוואטסאפ
   ========================================================================== */

.ov-bl-invite {
	padding-block: clamp(64px, 9vh, 100px) clamp(64px, 9vh, 104px);
}

.ov-bl-invite__panel {
	position: relative;
	z-index: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 32px;
	padding: clamp(30px, 4.5vw, 50px) clamp(24px, 4.5vw, 56px);
	overflow: hidden;
	color: #ffffff;
	background:
		radial-gradient(620px 380px at 0% 100%, rgba(213, 155, 42, 0.2), transparent 66%),
		linear-gradient(165deg, #06305c 0%, var(--navy) 50%, var(--navy-deep) 100%);
	border-radius: 24px;
	box-shadow: var(--shadow-lg);
}

/* כאן הקרניים יוצאות מהפינה התחתונה בצד הסוף, כמו סגירה של הפתיח */
.ov-bl-rays--end {
	top: auto;
	bottom: -950px;
	inset-inline-start: auto;
	inset-inline-end: -950px;
	opacity: 0.8;
}

.ov-bl-invite__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 72px;
	height: 72px;
	color: var(--gold-bright);
	border: 1.5px solid rgba(240, 182, 65, 0.55);
	border-radius: 50%;
}

.ov-bl-invite__icon svg {
	width: 34px;
	height: 34px;
}

.ov-bl-invite__text {
	flex: 1 1 320px;
}

.ov-bl-invite__kicker {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--gold-bright);
}

.ov-bl-invite__title {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}

.ov-bl-invite__lede {
	margin: 10px 0 0;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.ov-bl-invite__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ==========================================================================
   רוחבים
   ========================================================================== */

@media (max-width: 1180px) {
	.ov-bl-year .ov-bl-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1080px) {
	.ov-bl-year .ov-bl-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ov-bl-stage__head {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.ov-bl-issue {
		max-width: 560px;
	}

	.ov-bl-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
	}

	.ov-bl-fan {
		height: 400px;
	}

	.ov-bl-fan__item {
		width: 216px;
	}

	.ov-bl-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ov-bl-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	.ov-bl-fan {
		height: 330px;
	}

	.ov-bl-fan__item {
		width: 178px;
	}
}

@media (max-width: 680px) {
	.ov-bl-stage__head,
	.ov-bl-hero__inner {
		padding-block-start: 40px;
	}

	.ov-bl-lede {
		font-size: 17px;
	}

	.ov-bl-issue {
		padding: 20px 18px 18px;
		border-radius: 20px;
	}

	.ov-bl-issue__actions {
		flex-wrap: nowrap;
	}

	.ov-bl-issue__actions .ov-bl-btn {
		white-space: nowrap;
	}

	/* בנייד השיתוף הוא עיגול עם סמל הוואטסאפ, וההורדה מקבלת את כל השורה */
	.ov-bl-issue__actions .ov-bl-btn--share {
		flex: 0 0 50px;
		width: 50px;
		padding: 0;
	}

	.ov-bl-btn--share .ov-bl-btn__text {
		display: none;
	}

	.ov-bl-reader {
		padding-inline: 4px;
	}

	.ov-bl-reader__book {
		min-height: 360px;
	}

	.ov-bl-hero__actions .ov-bl-btn {
		width: 100%;
	}

	.ov-bl-stats {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ov-bl-stats__item {
		padding-block: 20px 22px;
	}

	.ov-bl-stats__item + .ov-bl-stats__item {
		padding-inline-start: 0;
		border-inline-start: 0;
	}

	.ov-bl-stats__item:nth-child(even) {
		padding-inline-start: 20px;
		border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
	}

	.ov-bl-stats__label {
		font-size: 15px;
	}

	.ov-bl-head {
		margin-bottom: 22px;
	}

	.ov-bl-grid,
	.ov-bl-year .ov-bl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}

	.ov-bl-card {
		padding: 10px 10px 12px;
		border-radius: 14px;
	}

	.ov-bl-card__cover {
		margin: 0 0 8px 6px;
	}

	.ov-bl-card__cover .ov-bl-sheet {
		box-shadow:
			0 0 0 1px rgba(0, 35, 71, 0.07),
			-3px 3px 0 -1px #ffffff,
			-3px 3px 0 0 rgba(0, 35, 71, 0.12),
			-6px 6px 0 -1px #ffffff,
			-6px 6px 0 0 rgba(0, 35, 71, 0.08),
			0 12px 22px -12px rgba(0, 35, 71, 0.45);
	}

	.ov-bl-card__badge {
		bottom: 6px;
		inset-inline-start: 6px;
		padding: 2px 9px;
		font-size: 11.5px;
	}

	.ov-bl-card__title {
		font-size: 19px;
	}

	.ov-bl-card__meta {
		font-size: 13.5px;
	}

	.ov-bl-card__actions {
		gap: 6px;
		padding-top: 12px;
	}

	.ov-bl-card__read {
		min-height: 40px;
		padding: 0 10px;
		font-size: 15px;
	}

	/* בנייד רק הסמל, בלי הגודל: אין מקום לשניהם */
	.ov-bl-card__dl {
		width: 40px;
		min-height: 40px;
		padding: 0;
	}

	.ov-bl-card__size {
		display: none;
	}

	.ov-bl-invite__icon {
		width: 58px;
		height: 58px;
	}

	.ov-bl-invite__icon svg {
		width: 28px;
		height: 28px;
	}

	.ov-bl-invite__actions,
	.ov-bl-invite__actions .ov-bl-btn {
		width: 100%;
	}
}

/* בלי ריחוף (מסך מגע): בלי הכיתוב "קריאה" על הכריכה, יש כפתור מתחת */
@media (hover: none) {
	.ov-bl-card__open,
	.ov-bl-card__cover .ov-bl-sheet::after {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ov-bl *,
	.ov-bl *::before,
	.ov-bl *::after {
		transition: none;
	}

	.ov-bl-card:hover,
	.ov-bl-card:focus-within,
	.ov-bl-card:hover .ov-bl-sheet__img,
	.ov-bl-btn--gold:hover {
		transform: none;
	}
}
