/* ==========================================================================
   Zmanim / times sheet — the public page IS the printable sheet.
   Screen: a card with a picker above it. Print: A4 portrait, chrome hidden.
   ========================================================================== */
body.zmanim-page { background: var(--bg); }
.zm-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 22px 0 14px;
}
.zm-toolbar .lbl { margin: 0; }
.zm-toolbar .select { width: auto; min-width: 240px; flex: 1 1 240px; max-width: 420px; }
.zm-toolbar .btn-ghost { margin-inline-start: auto; display: inline-flex; gap: 7px; }
.zm-signup { text-align: center; margin: 18px 0 40px; }

.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 36px 26px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin-inline: auto;
}
.sheet-head { display: flex; align-items: center; gap: 12px; justify-content: center; }
.sheet-logo { width: 46px; height: 46px; object-fit: contain; }
.sheet-brand-name { font-weight: 800; font-size: 17px; color: var(--brand); line-height: 1.2; }
.sheet-brand-sub { font-size: 12.5px; color: var(--ink-soft); }

.sheet-title {
  text-align: center; font-size: 30px; font-weight: 900; color: var(--brand);
  margin: 18px 0 4px; letter-spacing: -0.01em; line-height: 1.2;
}
.sheet-dates {
  text-align: center; font-size: 14.5px; color: var(--ink-mid);
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.sheet-dates .heb { color: var(--brand); font-weight: 600; }

.sheet-groups { margin-top: 22px; display: grid; gap: 18px; }
.zm-group { border-top: 2px solid var(--brand); padding-top: 10px; }
.zm-group-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-weight: 800; font-size: 15px; color: var(--brand); margin-bottom: 6px;
}
.zm-group-title .d { font-weight: 500; color: var(--ink-soft); font-size: 13px; direction: ltr; }
.zm-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-size: 16px;
}
.zm-row:last-child { border-bottom: 0; }
.zm-row .l { color: var(--ink); font-weight: 600; }
.zm-row .t {
  font-weight: 800; color: var(--brand); font-size: 19px; direction: ltr;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.zm-row .t.txt { font-weight: 500; color: var(--ink-mid); font-size: 15px; direction: inherit; }
.zm-row.over .t::after {
  content: "*"; color: var(--accent); font-size: 12px; vertical-align: super; margin-inline-start: 2px;
}
.zm-empty { text-align: center; color: var(--ink-soft); padding: 30px 0; }

/* Shown while config/schedule is in flight — see renderSheet(). */
.zm-skel { display: grid; gap: 10px; padding-top: 12px; }
.zm-skel span {
  display: block;
  height: 15px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--line) 25%, var(--paper-2, #f4efe9) 50%, var(--line) 75%);
  background-size: 240% 100%;
  animation: zm-shimmer 1.3s ease-in-out infinite;
}
.zm-skel span:nth-child(3n) { width: 82%; }
.zm-skel span:nth-child(3n + 2) { width: 91%; }
@keyframes zm-shimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) { .zm-skel span { animation: none; } }
@media print { .zm-skel { display: none; } }

.sheet-foot {
  margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-soft); line-height: 1.6; text-align: center;
}
.sheet-url { font-size: 11px; direction: ltr; margin-top: 2px; }

@media (max-width: 560px) {
  .sheet { padding: 24px 18px 18px; border-radius: var(--r); }
  .sheet-title { font-size: 24px; }
}

/* ---- Print: an A4 sheet, nothing else ----------------------------------- */
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  .no-print, .site-header, .zm-toolbar, .zm-signup { display: none !important; }
  html, body { background: #fff !important; }
  body { font-size: 15pt; }
  .wrap { max-width: none; padding: 0; }
  .sheet { border: 0; box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .sheet-title { font-size: 30pt; margin-top: 10mm; }
  .sheet-dates { font-size: 12.5pt; }
  .sheet-groups { margin-top: 10mm; gap: 8mm; }
  .zm-group-title { font-size: 13.5pt; }
  .zm-row { font-size: 14pt; padding: 3.2mm 0; border-bottom-color: #ccc; }
  .zm-row .t { font-size: 16pt; }
  .zm-row .t.txt { font-size: 12.5pt; }
  .zm-group, .zm-row { break-inside: avoid; }
  .sheet-foot { margin-top: 10mm; font-size: 10pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
