/* style.css — עיצוב אפליקציית זמני היום. Mobile-first, RTL, תמיכה במצב כהה. */

/* פונט Heebo מוטמע (וריאבילי, 100–900) — עברית אחידה בכל המכשירים, גם אופליין */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/heebo-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: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/heebo-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;
}

:root {
  --bg: #f2f5f9;
  --card-bg: #ffffff;
  --text: #1c2733;
  --muted: #64748b;
  --primary: #1a3a5c;
  --primary-light: #2d5f94;
  --accent: #c9a227;
  --border: #dbe3ec;
  --highlight: #fff7e0;
  --highlight-border: #e6c860;
  --shadow: 0 1px 3px rgba(16, 30, 54, 0.08), 0 4px 14px rgba(16, 30, 54, 0.06);
  --radius: 14px;
}

/* פלטה כהה — חלה אוטומטית לפי המערכת (אלא אם נבחר "בהיר" ידנית),
   או בכפייה כשנבחר "כהה" במתג שבכותרת (data-theme על שורש המסמך) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1722;
    --card-bg: #1a2634;
    --text: #e6edf5;
    --muted: #8ba0b8;
    --primary: #7fb2e5;
    --primary-light: #a8ccef;
    --accent: #e3c157;
    --border: #2c3d52;
    --highlight: #2a3040;
    --highlight-border: #907c2e;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1722;
  --card-bg: #1a2634;
  --text: #e6edf5;
  --muted: #8ba0b8;
  --primary: #7fb2e5;
  --primary-light: #a8ccef;
  --accent: #e3c157;
  --border: #2c3d52;
  --highlight: #2a3040;
  --highlight-border: #907c2e;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ===== Header ===== */
.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, #14293f 100%);
  color: #fff;
  padding: env(safe-area-inset-top) 0 14px;
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-header { background: linear-gradient(135deg, #16283c 0%, #0d1826 100%); }
}
:root[data-theme="dark"] .app-header { background: linear-gradient(135deg, #16283c 0%, #0d1826 100%); }

.header-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 16px 0;
  text-align: center;
  position: relative;
}

/* קישור חזרה לאתר המארח (מוצג רק תחת hayomyom.net) — בצד שמאל,
   כדי לפנות את צד ימין ללוח המוקטן */
.back-link {
  position: absolute;
  inset-inline-end: 12px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2b1f08;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(180deg, #dcae52, #b98a2f);
  padding: 7px 15px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: filter 0.15s, transform 0.12s;
}
.back-link:hover { filter: brightness(1.08); transform: translateY(-1px); }
.back-link .bl-ico { width: 16px; height: 16px; flex-shrink: 0; }
.back-link[hidden] { display: none; }
@media (max-width: 480px) {
  .back-link .bl-long { display: none; }
  .back-link { font-size: 0.84rem; padding: 6px 12px; }
}

/* ===== הלוח המוקטן בכותרת (קישור לתצוגת הלוח המלאה) ===== */
.mini-dash {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin: 10px auto 0;
  background: #050608;
  border: 3px solid #23272d;
  border-radius: 14px;
  padding: 10px 18px;
  text-decoration: none;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.9), 0 3px 12px rgba(0, 0, 0, 0.45);
}
.mini-dash:hover { border-color: #3a414a; }

.mini-clock {
  direction: ltr;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: #cfe6ff;
  text-shadow: 0 0 7px rgba(160, 205, 255, 0.7), 0 0 20px rgba(110, 170, 255, 0.3);
}

.mini-next {
  display: flex;
  align-items: baseline;
  gap: 7px;
  max-width: 230px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.mini-next-name {
  color: #ff3b30;
  text-shadow: 0 0 4px rgba(255, 59, 48, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-next-time {
  color: #eaf4ff;
  direction: ltr;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 4px rgba(207, 230, 255, 0.5);
}

.mini-parasha {
  font-size: 0.78rem;
  font-weight: 700;
  color: #eaf4ff;
  text-shadow: 0 0 4px rgba(207, 230, 255, 0.5);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* במסכים רחבים הלוח נצמד לקצה הימני של הכותרת (מחוץ לעמודת התוכן),
   כדי שלא יסתיר את כפתורי הדפדוף שליד התאריך */
@media (min-width: 760px) {
  .app-header { position: relative; }
  .mini-dash {
    position: absolute;
    inset-inline-start: 14px;
    top: 12px;
    flex-direction: column;
    gap: 3px;
    margin: 0;
  }
}

.app-header h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.date-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hebrew-date { font-size: 1.1rem; font-weight: 700; }
.greg-date { font-size: 0.85rem; opacity: 0.85; }

.date-tools {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.date-tools input[type="date"] {
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  color-scheme: dark;
}

/* ===== Layout ===== */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 12px 40px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.card h2 { margin: 0 0 8px; font-size: 1.02rem; }

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.card-title-row h2 { margin: 0; }

.field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.field-row label { font-size: 0.9rem; }
.field-row select { flex: 1; }

select, input[type="number"], input[type="text"] {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card-bg);
  color: var(--text);
  max-width: 100%;
}

details summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--primary);
  margin: 6px 0;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}
.field-grid label {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: var(--muted);
  gap: 3px;
}

/* ===== Buttons ===== */
.small-btn {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.small-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .small-btn.primary { background: #2d5f94; border-color: #2d5f94; }
}
:root[data-theme="dark"] .small-btn.primary { background: #2d5f94; border-color: #2d5f94; }
.small-btn:active { transform: scale(0.97); }

.icon-btn {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.icon-btn:hover { background: rgba(128, 128, 128, 0.15); }

/* ===== Zmanim table ===== */
.zmanim-table {
  width: 100%;
  border-collapse: collapse;
}

.zmanim-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.zmanim-table tr:last-child td { border-bottom: none; }

.zman-name { text-align: right; }
.zman-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 1px;
}

.zman-time {
  text-align: left;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  white-space: nowrap;
}

tr.zman-next {
  background: var(--highlight);
  outline: 1px solid var(--highlight-border);
  border-radius: 8px;
}
tr.zman-next .zman-time::after {
  content: " ⬅";
  color: var(--accent);
  font-size: 0.8rem;
}

tr.zman-passed .zman-time { opacity: 0.55; font-weight: 500; }

.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.grow { flex: 1; min-width: 0; }

/* ===== לשוניות תצוגה ===== */
.view-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 3px;
  margin-bottom: 10px;
}
.view-tabs .tab {
  flex: 1;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 7px 4px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.view-tabs .tab.active {
  background: var(--card-bg);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* ===== טבלאות רחבות (שבועי / השוואה) ===== */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -6px;
}

/* בתצוגות הטבלאות הרחבות הכרטיס נפרץ מעמודת התוכן לכל רוחב המסך,
   כדי לצמצם את הצורך בגלילה אופקית */
#zmanim-card.wide {
  width: calc(100vw - 28px);
  margin-inline-start: calc((100% - (100vw - 28px)) / 2);
}
#zmanim-card.wide .matrix-table { width: 100%; }

.matrix-table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.82rem;
}
.matrix-table th, .matrix-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: center;
}
.matrix-table thead th {
  font-size: 0.75rem;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  vertical-align: bottom;
}
.matrix-table .row-head {
  text-align: right;
  font-weight: 600;
  position: sticky;
  inset-inline-start: 0;
  background: var(--card-bg);
  z-index: 1;
  box-shadow: -6px 0 6px -6px rgba(0,0,0,0.25);
}
.matrix-table td.time-cell {
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.matrix-table .col-today {
  background: var(--highlight);
}
.matrix-table thead th .day-heb { display: block; font-weight: 700; color: var(--text); font-size: 0.8rem; }
.matrix-table thead th .day-greg { display: block; font-size: 0.68rem; }
.matrix-table thead th .day-parasha {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===== לוח חודשי ===== */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.month-nav p { margin: 0; text-align: center; flex: 1; }

.m-motzash {
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--primary-light);
  font-weight: 700;
}

.m-parasha {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}

.month-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 588px;
  table-layout: fixed;
}
.month-table thead th {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 4px 2px;
  border-bottom: 2px solid var(--border);
}
.month-table thead th:last-child { color: var(--accent); font-weight: 700; }

.mcell {
  border: 1px solid var(--border);
  vertical-align: top;
  padding: 4px 5px;
  height: 74px;
  font-size: 0.72rem;
}
.mcell-empty { background: var(--bg); }
.mcell-shabbat { background: color-mix(in srgb, var(--highlight) 45%, transparent); }
.mcell-today {
  outline: 2px solid var(--highlight-border);
  outline-offset: -2px;
  background: var(--highlight);
}

.mcell-dates {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}
.m-heb { font-weight: 700; font-size: 0.88rem; }
.m-greg { color: var(--muted); font-size: 0.66rem; direction: ltr; }

.m-zman, .m-candles {
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1.35;
  white-space: nowrap;
}
.m-ico { font-size: 0.62rem; }
.m-time {
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.m-candles { color: var(--accent); font-weight: 700; }
.m-chag {
  font-size: 0.6rem;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== תוצאות חיפוש כתובת ===== */
.address-results { margin-top: 4px; }
.address-results .addr-item {
  display: block;
  width: 100%;
  text-align: right;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 8px 10px;
  margin: 4px 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.address-results .addr-item:hover { border-color: var(--primary); }
.address-results .addr-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 4px 0;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin: 18px 10px;
}

/* ===== Modal ===== */
.modal-backdrop[hidden] { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 12px;
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 16px 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 { margin: 0; font-size: 1.1rem; }

.modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-start;
}

.custom-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.custom-row label { font-size: 0.88rem; font-weight: 600; }
.custom-row select { width: 100%; }

@media (min-width: 480px) {
  .custom-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .custom-row label { flex: 0 0 40%; }
  .custom-row select { flex: 1; width: auto; }
}

/* ===== אייקוני SVG ===== */
.ico {
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ico-accent { color: var(--accent); }
.ico-primary { color: var(--primary); }

svg.m-ico {
  width: 0.72rem;
  height: 0.72rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.m-zman svg.m-ico { color: var(--muted); }

/* ===== כפתורי הפעולה בכותרת (מצב תצוגה, שיתוף, הדפסה) ===== */
.header-actions {
  position: absolute;
  inset-inline-end: 8px;
  top: 8px;
  display: flex;
  gap: 2px;
}
.header-icon {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  padding: 6px 8px;
}
.header-icon:hover { color: #fff; }
/* כשמוצג קישור החזרה — הכפתורים זזים הצידה כדי לא לחפוף אותו */
.back-link:not([hidden]) ~ .header-actions { inset-inline-end: 168px; }
@media (max-width: 480px) {
  .back-link:not([hidden]) ~ .header-actions { inset-inline-end: 110px; }
}

/* ===== שורת סיכום ההגדרות (מיקום + שיטה, מכווץ) ===== */
.settings-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 14px;
  margin-bottom: 14px;
  cursor: pointer;
  text-align: right;
}
.settings-summary .ico { color: var(--primary); font-size: 1.05em; }
.settings-summary #summary-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.settings-summary .chev { color: var(--muted); }
.settings-summary[hidden] { display: none; }

/* ===== קופץ בחירת תאריך עברי ===== */
.hebdate-pop {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hebdate-pop[hidden] { display: none; }
.hebdate-pop select {
  font-size: 0.85rem;
  padding: 4px 6px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.hebdate-pop select option { color: #1c2733; }

/* ===== פס עדכון גרסה ===== */
.update-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  z-index: 60;
  white-space: nowrap;
}
.update-bar[hidden] { display: none; }
.update-bar .small-btn.primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* ===== הודעה קופצת (Toast) ===== */
.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(92vw, 480px);
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 11px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  z-index: 70;
  text-align: center;
}
.toast[hidden] { display: none; }

.compare-hint { text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .compare-hint { display: none; } /* בעכבר יש tooltip — ההנחיה מיותרת */
}

/* ===== הדפסה — לוח נקי בשחור-לבן, מותאם לרוחב דף A4 ===== */
@media print {
  /* לא כופים גודל נייר (A4 כפוי הפיל מדפסות מסוימות) — רק שוליים;
     הטבלאות ממילא נצמדות לרוחב הדף בפועל דרך width:100% + table-layout:fixed */
  @page { margin: 10mm; }

  html, body { width: 100%; margin: 0; padding: 0; }
  body { background: #fff; color: #000; }
  .app-header {
    background: none;
    color: #000;
    box-shadow: none;
    padding: 0;
  }
  .mini-dash, .date-tools, .hebdate-pop, .header-actions, .back-link,
  .date-line .icon-btn, .view-tabs, .settings-summary, #settings-cards,
  .month-nav .small-btn, .update-bar, .toast, .compare-hint { display: none !important; }

  /* עמודת התוכן נפרשת לכל רוחב הדף */
  .container, .header-inner {
    max-width: none;
    width: 100%;
    padding: 0;
  }
  .card {
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
  }
  #zmanim-card.wide {
    width: 100%;
    margin-inline-start: 0;
  }

  /* הטבלאות הרחבות מתכווצות לרוחב הדף במקום להיחתך */
  .table-scroll { overflow: visible; margin: 0; }
  .matrix-table, .month-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed;
    font-size: 8pt;
  }
  .matrix-table th, .matrix-table td {
    padding: 3pt 2pt;
    white-space: nowrap;
    overflow: hidden;
  }
  /* עמודת שמות הזמנים רחבה מעמודות השעות, והשמות נשברים לשורה במקום להיחתך */
  .matrix-table .row-head {
    width: 18%;
    white-space: normal;
    overflow: visible;
    box-shadow: none;
    position: static;
    font-size: 7.5pt;
    line-height: 1.25;
  }
  .matrix-table thead th { font-size: 7pt; }
  .matrix-table thead th .day-heb { font-size: 7.5pt; }
  .matrix-table thead th .day-greg, .matrix-table thead th .day-parasha { font-size: 6.5pt; }

  .mcell {
    height: auto;
    padding: 2pt 3pt;
    font-size: 7pt;
  }
  .m-heb { font-size: 8pt; }
  .m-greg, .m-chag, .m-parasha { font-size: 6pt; }
  .month-table thead th { font-size: 7.5pt; padding: 2pt; }

  /* שורות ומשבצות לא נחתכות בין עמודים */
  .zmanim-table tr, .matrix-table tr, .month-table tr { break-inside: avoid; }

  .zmanim-table td { padding: 4pt 3pt; font-size: 9.5pt; }
  .zman-desc { font-size: 6.5pt; }

  .zmanim-table td, .matrix-table th, .matrix-table td, .mcell,
  .month-table thead th { border-color: #999; }
  tr.zman-next { background: none; outline: none; }
  tr.zman-next .zman-time::after { content: ""; }
  .mcell-today { outline: 1px solid #666; background: none; }
  .matrix-table .col-today, .mcell-shabbat { background: #f0f0f0; }
}
