/* סידור ותפילה. כל הערכים ניתנים לשינוי במסך "עיצוב הסידור" (משתני --sd-*). */

@font-face {
	font-family: "Taamey Frank CLM";
	src: url("fonts/TaameyFrankCLM-Medium.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Taamey Frank CLM";
	src: url("fonts/TaameyFrankCLM-Bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.mlm-sd {
	direction: rtl;
	text-align: right;
	unicode-bidi: isolate;
	box-sizing: border-box;
	max-width: var(--sd-width, 46rem);
	margin: 0 auto;
	padding: var(--sd-pad, 0);
	color: var(--sd-text, #1c1c1c);
	background-color: var(--sd-bg, transparent);
	border-radius: var(--sd-radius, 0);
}
.mlm-sd *, .mlm-sd *::before, .mlm-sd *::after { box-sizing: border-box; }

/* הגופן נכפה על גוף התפילה, כי ערכות עיצוב רבות מגדירות גופן שהניקוד בו לא מדויק */
.mlm-sd .mlm-sd-p,
.mlm-sd .mlm-sd-p *,
.mlm-sd .mlm-sd-sec-title {
	font-family: "Taamey Frank CLM", "Keter YG", "Ezra SIL", "SBL Hebrew", serif !important;
}
.mlm-sd.mlm-sd-sitefont .mlm-sd-p,
.mlm-sd.mlm-sd-sitefont .mlm-sd-p *,
.mlm-sd.mlm-sd-sitefont .mlm-sd-sec-title {
	font-family: inherit !important;
}

/* חלק */
.mlm-sd .mlm-sd-sec { margin-top: var(--sd-sec-gap, 2em); scroll-margin-top: 90px; }
.mlm-sd .mlm-sd-sec:first-of-type { margin-top: 0; }

.mlm-sd .mlm-sd-sec-title {
	font-size: calc(var(--sd-sec-size, 1.35rem) * var(--sd-scale, 1));
	font-weight: 700;
	color: var(--sd-sec, #7a5a1f);
	text-align: center;
	margin: 0 0 .8em;
	padding-bottom: .35em;
	border-bottom: 1px solid var(--sd-sec-line, #e8e1d2);
	line-height: 1.4;
}

/* פסקה */
.mlm-sd .mlm-sd-p {
	font-size: calc(var(--sd-size, 1.3rem) * var(--sd-scale, 1));
	line-height: var(--sd-lh, 1.95);
	text-align: var(--sd-align, justify);
	margin: 0 0 var(--sd-gap, .7em);
}
.mlm-sd .mlm-sd-p:last-child { margin-bottom: 0; }

/* כותרת בתוך הטקסט (בספריא: <big>) */
.mlm-sd .mlm-sd-head {
	text-align: center;
	color: var(--sd-head, #7a5a1f);
	margin-top: 1em;
}
.mlm-sd .mlm-sd-p big { font-size: var(--sd-head-size, 1.2em); line-height: 1.4; }
.mlm-sd .mlm-sd-head big { color: inherit; }

/* הוראה: בספריא <small> בלי ניקוד, למשל "בחזרת הש"ץ אומרים" */
.mlm-sd .mlm-sd-p small,
.mlm-sd .mlm-sd-p small.sd-i { font-size: var(--sd-note-size, .78em); color: var(--sd-note, #6b6b6b); }
.mlm-sd .mlm-sd-note {
	line-height: 1.7;
	background-color: var(--sd-note-bg, transparent);
	border-radius: 4px;
}
.mlm-sd .mlm-sd-note small.sd-i { font-size: calc(var(--sd-note-size, .78em) * 1.1); }

/* נוסח שנאמר רק לפעמים: בספריא <small> עם ניקוד (קדושה, עננו וכו'). נשאר קריא, מעט קטן יותר */
.mlm-sd .mlm-sd-p small.sd-alt { font-size: var(--sd-alt-size, .9em); color: var(--sd-alt, inherit); }
.mlm-sd .mlm-sd-alt {
	border-right: 3px solid var(--sd-alt-line, #e8e1d2);
	padding-right: .7em;
}

/* טקסט חופשי שהוסף בעריכת העמוד: בגופן של האתר */
.mlm-sd .mlm-sd-free { font-size: calc(1.05rem * var(--sd-scale, 1)); line-height: 1.75; }

/* מעבר בין נוסחים */
.mlm-sd .mlm-sd-switch {
	font-size: var(--sd-switch-size, .9rem);
	color: var(--sd-switch, #777);
	margin: 0 0 1.2em;
	text-align: var(--sd-switch-align, right);
}
.mlm-sd .mlm-sd-switch span { margin-left: .4em; }
.mlm-sd.mlm-sd-sw-link .mlm-sd-switch a { color: var(--sd-switch-link); }
.mlm-sd.mlm-sd-sw-bg .mlm-sd-switch { background: var(--sd-switch-bg); padding: .5em .9em; border-radius: 6px; }

/* תוכן עניינים */
.mlm-sd .mlm-sd-toc {
	background-color: var(--sd-toc-bg, #f7f4ec);
	border-radius: 6px;
	padding: .9em 1.1em;
	margin: 0 0 2em;
	font-size: .95rem;
}
.mlm-sd .mlm-sd-toc-title { font-weight: 700; margin: 0 0 .5em; }
.mlm-sd .mlm-sd-toc ol {
	margin: 0;
	padding: 0 1.3em 0 0;
	columns: var(--sd-toc-cols, 2);
	column-gap: 2em;
}
.mlm-sd .mlm-sd-toc li { margin: 0 0 .3em; break-inside: avoid; }
.mlm-sd .mlm-sd-toc a { color: var(--sd-toc-link, inherit); text-decoration: none; }
.mlm-sd .mlm-sd-toc a:hover { text-decoration: underline; }

/* תוכן עניינים נפתח, וקבוצות פנימיות */
.mlm-sd .mlm-sd-toc summary,
.mlm-sd-secnav-menu summary { cursor: pointer; list-style: none; }
.mlm-sd .mlm-sd-toc summary::-webkit-details-marker,
.mlm-sd-secnav-menu summary::-webkit-details-marker { display: none; }
.mlm-sd .mlm-sd-toc summary::before,
.mlm-sd-secnav-menu summary::before {
	content: "\25BE";
	display: inline-block;
	margin-left: .45em;
	font-size: .85em;
	transform: rotate(90deg);
	transition: transform .15s;
	opacity: .7;
}
.mlm-sd .mlm-sd-toc details[open] > summary::before,
.mlm-sd-secnav-menu details[open] > summary::before { transform: none; }
.mlm-sd .mlm-sd-toc.is-drop .mlm-sd-toc-title { margin: 0; }
.mlm-sd .mlm-sd-toc.is-drop details[open] > .mlm-sd-toc-title { margin-bottom: .6em; }
.mlm-sd .mlm-sd-toc-n { font-weight: 400; font-size: .85em; opacity: .65; }
.mlm-sd .mlm-sd-toc ol.mlm-sd-toc-tree { columns: 1; padding-right: 0; list-style: none; }
.mlm-sd .mlm-sd-toc .mlm-sd-toc-g { margin: 0 0 .25em; }
.mlm-sd .mlm-sd-toc .mlm-sd-toc-g > details > summary { font-weight: 700; padding: .15em 0; }
.mlm-sd .mlm-sd-toc .mlm-sd-toc-g ol {
	list-style: none;
	margin: .2em 0 .4em;
	padding: 0 1.3em 0 0;
	columns: var(--sd-toc-cols, 2);
	column-gap: 2em;
}
.mlm-sd .mlm-sd-toc ol.mlm-sd-toc-tree > li:not(.mlm-sd-toc-g) { padding-right: 1.3em; }

/* ייחוס */
.mlm-sd .mlm-sd-credit {
	margin: 2.5em 0 0;
	padding-top: 1em;
	border-top: 1px solid var(--sd-line, #e3e3e3);
	font-size: var(--sd-credit-size, .85rem);
	line-height: 1.7;
	color: var(--sd-credit, #666);
	text-align: var(--sd-credit-align, right);
}
.mlm-sd .mlm-sd-credit a { color: inherit; }

/* ניווט בין תפילות */
.mlm-sd .mlm-sd-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: .8rem;
	align-items: stretch;
	margin-top: 1.6em;
	padding-top: 1em;
	border-top: 1px solid var(--sd-line, #e3e3e3);
}
.mlm-sd .mlm-sd-nav a {
	display: flex;
	flex-direction: column;
	gap: .15em;
	padding: .7em 1em;
	border-radius: var(--sd-nav-radius, 6px);
	border: 1px solid var(--sd-nav-border, transparent);
	background-color: var(--sd-nav-bg, #f7f4ec);
	color: var(--sd-nav-color, inherit);
	text-decoration: none;
	line-height: 1.35;
}
.mlm-sd .mlm-sd-nav-title { font-size: var(--sd-nav-size, 1rem); }
.mlm-sd.mlm-sd-nav-links .mlm-sd-nav a { background: none; border: 0; padding: .3em 0; }
.mlm-sd.mlm-sd-nav-links .mlm-sd-nav a:hover .mlm-sd-nav-title { text-decoration: underline; }
.mlm-sd.mlm-sd-navlabel-hide .mlm-sd-nav-label { display: none; }
.mlm-sd.mlm-sd-navup-hide .mlm-sd-nav .mlm-sd-up { display: none; }
.mlm-sd .mlm-sd-nav a:hover { filter: brightness(.96); }
.mlm-sd .mlm-sd-nav .mlm-sd-next { text-align: left; }
.mlm-sd .mlm-sd-nav .mlm-sd-up { justify-content: center; text-align: center; font-size: .9rem; }
.mlm-sd .mlm-sd-nav-label { font-size: .8rem; opacity: .75; }
.mlm-sd .mlm-sd-nav-title { font-weight: 700; }

/* עמוד הנוסח: רשימת התפילות */
.mlm-sd.mlm-sd-index { max-width: none; }
.mlm-sd .mlm-sd-index-group { margin: 0 0 2em; }
.mlm-sd .mlm-sd-index-title {
	font-size: var(--sd-index-title-size, 1.3rem);
	color: var(--sd-index-title, #7a5a1f);
	text-align: var(--sd-index-title-align, right);
	margin: 0 0 .6em;
	padding-bottom: .3em;
	border-bottom: 1px solid var(--sd-index-line, var(--sd-line, #e3e3e3));
}
.mlm-sd .mlm-sd-index-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--sd-index-cols, 2), minmax(0, 1fr));
	gap: .3em 2em;
}
.mlm-sd .mlm-sd-index-list li { margin: 0; display: flex; }
.mlm-sd .mlm-sd-index-list a {
	flex: 1;
	display: flex;
	align-items: center;
	gap: .45em;
	padding: .35em 0;
	text-decoration: none;
	font-size: var(--sd-index-size, 1.05rem);
	font-weight: var(--sd-index-weight, 400);
	line-height: 1.35;
}
.mlm-sd.mlm-sd-ix-link .mlm-sd-index-list a { color: var(--sd-index-link); }
.mlm-sd.mlm-sd-ix-list .mlm-sd-index-list a:hover { text-decoration: underline; }
.mlm-sd.mlm-sd-ixal-center .mlm-sd-index-list a { justify-content: center; text-align: center; }
/* כרטיסים ולחצנים */
.mlm-sd.mlm-sd-ix-cards .mlm-sd-index-list,
.mlm-sd.mlm-sd-ix-buttons .mlm-sd-index-list { gap: var(--sd-index-gap, .6rem); }
.mlm-sd.mlm-sd-ix-cards .mlm-sd-index-list a,
.mlm-sd.mlm-sd-ix-buttons .mlm-sd-index-list a {
	padding: var(--sd-index-pad, .8em) calc(var(--sd-index-pad, .8em) * 1.3);
	background: var(--sd-index-bg, #f7f4ec);
	border: 1px solid var(--sd-index-border, #e8e1d2);
	border-radius: var(--sd-index-radius, 8px);
	transition: background-color .15s, filter .15s;
}
.mlm-sd.mlm-sd-ix-cards .mlm-sd-index-list a:hover,
.mlm-sd.mlm-sd-ix-buttons .mlm-sd-index-list a:hover { filter: brightness(.96); }
.mlm-sd.mlm-sd-ix-buttons .mlm-sd-index-list { display: flex; flex-wrap: wrap; }
.mlm-sd.mlm-sd-ix-buttons.mlm-sd-ixal-center .mlm-sd-index-list { justify-content: center; }
.mlm-sd.mlm-sd-ix-buttons .mlm-sd-index-list a { flex: 0 0 auto; padding-top: calc(var(--sd-index-pad, .8em) * .6); padding-bottom: calc(var(--sd-index-pad, .8em) * .6); }
/* סימן ליד כל תפילה */
.mlm-sd.mlm-sd-ixic-bullet .mlm-sd-index-list a::before { content: "\2022"; color: var(--sd-index-title, #7a5a1f); }
.mlm-sd.mlm-sd-ixic-arrow .mlm-sd-index-list a::after { content: "\2039"; margin-right: auto; opacity: .55; font-size: 1.2em; line-height: 1; }
.mlm-sd.mlm-sd-ixic-arrow.mlm-sd-ixal-center .mlm-sd-index-list a::after { margin-right: 0; }

/* עמוד ראשי: רשימת הנוסחים */
.mlm-sd.mlm-sd-nusachot { max-width: none; }
.mlm-sd.mlm-sd-nusachot ul {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(var(--sd-nus-cols, 3), minmax(0, 1fr)); gap: 1rem;
}
.mlm-sd.mlm-sd-nusachot li { margin: 0; display: flex; }
.mlm-sd.mlm-sd-nusachot a {
	flex: 1;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em;
	text-align: center;
	padding: var(--sd-nus-pad, 1.4em) 1em;
	border-radius: var(--sd-nus-radius, 8px);
	border: 1px solid var(--sd-nus-border, transparent);
	text-decoration: none;
	background-color: var(--sd-nus-bg, #f7f4ec);
	transition: transform .15s, filter .15s, box-shadow .15s;
}
.mlm-sd.mlm-sd-nus-colored a { color: var(--sd-nus-color); }
.mlm-sd .mlm-sd-nusach-text { display: flex; flex-direction: column; gap: .2em; }
.mlm-sd .mlm-sd-nusach-name { font-size: var(--sd-nus-name-size, 1.25rem); font-weight: 700; }
.mlm-sd .mlm-sd-nusach-desc { font-size: .95rem; opacity: .85; }
.mlm-sd .mlm-sd-nusach-count { font-size: .9rem; opacity: .75; }
.mlm-sd.mlm-sd-nuscount-hide .mlm-sd-nusach-count { display: none; }
.mlm-sd.mlm-sd-nusal-right a { align-items: flex-start; text-align: right; }
.mlm-sd.mlm-sd-nussh-soft a { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.mlm-sd.mlm-sd-nussh-strong a { box-shadow: 0 6px 22px rgba(0,0,0,.16); }
.mlm-sd.mlm-sd-nushv-darken a:hover { filter: brightness(.95); }
.mlm-sd.mlm-sd-nushv-lift a:hover { transform: translateY(-3px); }
/* רשימה */
.mlm-sd.mlm-sd-nus-list ul { display: block; }
.mlm-sd.mlm-sd-nus-list a {
	flex-direction: row; align-items: center; justify-content: space-between; text-align: right;
	padding: .8em 1em; margin-bottom: .5rem;
}
.mlm-sd.mlm-sd-nus-list .mlm-sd-nusach-text { align-items: flex-start; }
/* לחצנים */
.mlm-sd.mlm-sd-nus-buttons ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.mlm-sd.mlm-sd-nus-buttons.mlm-sd-nusal-right ul { justify-content: flex-start; }
.mlm-sd.mlm-sd-nus-buttons li { flex: 0 0 auto; }
.mlm-sd.mlm-sd-nus-buttons a { flex-direction: row; gap: .6em; padding: .6em 1.4em; }
.mlm-sd.mlm-sd-nus-buttons .mlm-sd-nusach-desc { display: none; }

.mlm-sd .mlm-sd-error {
	background: #fff6e5; border: 1px solid #f0d9a8; padding: .8em 1em; border-radius: 4px; font-size: .95rem;
}

@media (max-width: 600px) {
	.mlm-sd .mlm-sd-p { font-size: calc(var(--sd-size-m, 1.2rem) * var(--sd-scale, 1)); line-height: var(--sd-lh-m, 1.85); }
	.mlm-sd .mlm-sd-toc ol { columns: 1; }
	.mlm-sd .mlm-sd-index-list { grid-template-columns: repeat(var(--sd-index-cols-m, 1), minmax(0, 1fr)); }
	.mlm-sd.mlm-sd-nusachot ul { grid-template-columns: repeat(var(--sd-nus-cols-m, 1), minmax(0, 1fr)); }
	.mlm-sd .mlm-sd-nav { grid-template-columns: 1fr 1fr; }
	.mlm-sd .mlm-sd-nav .mlm-sd-up { grid-column: 1 / -1; order: 3; }
}

/* ===== לחצני ניווט בין חלקים ===== */
/* המחלקות is-side / is-bar / is-top / is-bottom נקבעות ב-sd-nav.js לפי רוחב המסך וההגדרות */
.mlm-sd-snav-holder { direction: rtl; }
.mlm-sd-secnav {
	position: fixed;
	z-index: 9990;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	width: max-content;
	max-width: 190px;
	font-family: inherit;
}
.mlm-sd-snav-right.is-side .mlm-sd-secnav { left: auto; right: 14px; }
.mlm-sd-secnav[hidden] { display: none; }
.mlm-sd-secnav button {
	appearance: none;
	margin: 0;
	min-width: var(--sd-snav-size, 40px);
	min-height: var(--sd-snav-size, 40px);
	padding: 0 .6em;
	border: 1px solid var(--sd-snav-border, #e8e1d2);
	border-radius: 8px;
	background: var(--sd-snav-bg, #fff);
	color: var(--sd-snav-color, #7a5a1f);
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
	font: inherit;
	font-size: .9rem;
	line-height: 1.25;
	cursor: pointer;
	transition: background-color .15s, opacity .15s;
}
.mlm-sd-secnav button:hover:not(:disabled) { filter: brightness(.96); }
.mlm-sd-secnav button:focus-visible { outline: 2px solid var(--sd-snav-color, #7a5a1f); outline-offset: 2px; }
.mlm-sd-secnav button:disabled { opacity: .35; cursor: default; }
.mlm-sd-secnav-cur { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .35em .6em !important; }
.mlm-sd-secnav-label { font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 170px; white-space: nowrap; }
.mlm-sd-secnav-count { font-size: .75rem; opacity: .7; }
.mlm-sd-snav-nolabel .mlm-sd-secnav-cur { display: none; }

.mlm-sd-secnav-menu {
	position: absolute;
	top: 50%;
	left: calc(100% + 8px);
	transform: translateY(-50%);
	width: 280px;
	max-height: 70vh;
	overflow: auto;
	background: var(--sd-snav-bg, #fff);
	border: 1px solid var(--sd-snav-border, #e8e1d2);
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0,0,0,.14);
	padding: .5em 0;
	text-align: right;
}
.mlm-sd-snav-right.is-side .mlm-sd-secnav-menu { left: auto; right: calc(100% + 8px); }
.mlm-sd-secnav-menu[hidden] { display: none; }
.mlm-sd-secnav-menu ol { list-style: none; margin: 0; padding: 0; }
.mlm-sd-secnav-menu ol ol { padding-right: 1em; }
.mlm-sd-secnav-menu li { margin: 0; }
.mlm-sd-secnav-menu a { display: block; padding: .45em 1em; color: inherit; text-decoration: none; font-size: .95rem; line-height: 1.35; }
.mlm-sd-secnav-menu a:hover, .mlm-sd-secnav-menu a:focus { background: rgba(0,0,0,.05); }
.mlm-sd-secnav-menu a.is-current { font-weight: 700; color: var(--sd-snav-color, #7a5a1f); background: rgba(0,0,0,.04); }
.mlm-sd-secnav-menu summary { padding: .45em 1em; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.mlm-sd-secnav-menu summary:hover { background: rgba(0,0,0,.05); }
.mlm-sd-secnav-menu .has-current > details > summary { color: var(--sd-snav-color, #7a5a1f); }
.mlm-sd-secnav-menu .mlm-sd-toc-n { font-weight: 400; font-size: .85em; opacity: .65; }

/* פס עליון או תחתון (במחשב ובטלפון) */
.mlm-sd-snav-holder.is-bar .mlm-sd-secnav {
	top: auto; bottom: auto; left: 0; right: 0; transform: none;
	width: auto; max-width: none;
	flex-direction: row;
	justify-content: center;
	gap: 0;
	padding: 6px 8px;
	background: var(--sd-snav-bg, #fff);
}
.mlm-sd-snav-holder.is-bottom .mlm-sd-secnav {
	bottom: 0;
	padding-bottom: calc(6px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--sd-snav-border, #e8e1d2);
	box-shadow: 0 -2px 10px rgba(0,0,0,.08);
}
.mlm-sd-snav-holder.is-top .mlm-sd-secnav {
	top: var(--sd-snav-top, 0px);
	border-bottom: 1px solid var(--sd-snav-border, #e8e1d2);
	box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
body.admin-bar .mlm-sd-snav-holder.is-top .mlm-sd-secnav { top: calc(var(--sd-snav-top, 0px) + 32px); }
@media (max-width: 782px) {
	body.admin-bar .mlm-sd-snav-holder.is-top .mlm-sd-secnav { top: calc(var(--sd-snav-top, 0px) + 46px); }
}
.mlm-sd-snav-holder.is-bar .mlm-sd-secnav button { box-shadow: none; }
.mlm-sd-snav-holder.is-bar .mlm-sd-secnav-cur { flex: 0 1 520px; margin: 0 6px; min-width: 0; }
.mlm-sd-snav-holder.is-bar .mlm-sd-secnav-label { max-width: 100%; }
.mlm-sd-snav-holder.is-bar .mlm-sd-secnav-menu {
	left: 50%; right: auto; transform: translateX(-50%);
	width: min(560px, calc(100vw - 16px));
	max-height: 60vh;
}
.mlm-sd-snav-holder.is-bottom .mlm-sd-secnav-menu { top: auto; bottom: calc(100% + 6px); }
.mlm-sd-snav-holder.is-top .mlm-sd-secnav-menu { top: calc(100% + 6px); bottom: auto; }
/* שהפס התחתון לא יסתיר את סוף התפילה */
body:has(.mlm-sd-snav-holder.is-bottom .mlm-sd-secnav:not([hidden])) { padding-bottom: 64px; }

/* סימון החלק הנוכחי בטקסט */
.mlm-sd.mlm-sd-hl .mlm-sd-sec { border-right: 3px solid transparent; padding-right: .8em; margin-right: -.8em; transition: border-color .25s; }
.mlm-sd.mlm-sd-hl .mlm-sd-sec.mlm-sd-current { border-right-color: var(--sd-hl, #e8e1d2); }

@media (max-width: 767px) {
	.mlm-sd-snav-holder.is-bar .mlm-sd-secnav-cur { flex: 1; }
	.mlm-sd-snav-holder.is-side .mlm-sd-secnav { left: 6px; max-width: 120px; }
	.mlm-sd-snav-holder.is-side.mlm-sd-snav-right .mlm-sd-secnav { left: auto; right: 6px; }
	.mlm-sd-snav-holder.is-side .mlm-sd-secnav-label { max-width: 100px; }
	.mlm-sd-snav-holder.is-side .mlm-sd-secnav-menu { width: 70vw; }
	.mlm-sd.mlm-sd-hl .mlm-sd-sec { padding-right: .5em; margin-right: -.5em; }
}

/* ===== הגדלה והקטנה של הטקסט ===== */
.mlm-sd-fs { display: flex; gap: 4px; align-items: center; direction: rtl; }
.mlm-sd .mlm-sd-fs-top { margin: 0 0 1em; justify-content: flex-end; }
.mlm-sd .mlm-sd-fs-top.is-right { justify-content: flex-start; }
.mlm-sd .mlm-sd-fs-top.is-center { justify-content: center; }
.mlm-sd-fs .mlm-sd-fs-btn {
	appearance: none;
	margin: 0;
	min-width: var(--sd-fs-size, 34px);
	height: var(--sd-fs-size, 34px);
	padding: 0 .5em;
	border: 1px solid var(--sd-fs-border, #e8e1d2);
	border-radius: var(--sd-fs-radius, 8px);
	background: var(--sd-fs-bg, #fff);
	color: var(--sd-fs-color, #7a5a1f);
	font: inherit;
	font-weight: 700;
	font-size: .95rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.mlm-sd-fs .mlm-sd-fs-inc { font-size: 1.1rem; }
.mlm-sd-fs .mlm-sd-fs-reset { font-weight: 400; font-size: .8rem; min-width: calc(var(--sd-fs-size, 34px) * 1.4); }
.mlm-sd-fs .mlm-sd-fs-btn:disabled { opacity: .35; cursor: default; }
.mlm-sd-fs .mlm-sd-fs-btn:focus-visible { outline: 2px solid var(--sd-fs-color, #7a5a1f); outline-offset: 2px; }
/* בתוך לחצני הניווט */
.mlm-sd-secnav .mlm-sd-fs-nav { justify-content: center; }
.mlm-sd-snav-holder.is-side .mlm-sd-secnav .mlm-sd-fs-nav { flex-direction: column; align-items: stretch; margin-top: 6px; }
.mlm-sd-snav-holder.is-side .mlm-sd-secnav .mlm-sd-fs-reset { display: none; }
.mlm-sd-snav-holder.is-bar .mlm-sd-secnav .mlm-sd-fs-nav { margin-right: 10px; padding-right: 10px; border-right: 1px solid var(--sd-snav-border, #e8e1d2); order: 9; }
.mlm-sd-snav-holder.is-bar .mlm-sd-secnav-prev { order: 1; }
.mlm-sd-snav-holder.is-bar .mlm-sd-secnav-cur { order: 2; }
.mlm-sd-snav-holder.is-bar .mlm-sd-secnav-next { order: 3; }
@media (max-width: 767px) {
	.mlm-sd-snav-holder.is-bar .mlm-sd-secnav .mlm-sd-fs-reset { display: none; }
	.mlm-sd-snav-holder.is-bar .mlm-sd-secnav .mlm-sd-fs-nav { margin-right: 6px; padding-right: 6px; }
}

@media print {
	.mlm-sd-fs { display: none !important; }
	.mlm-sd-snav-holder { display: none !important; }
}
