/* @pivotal/ui-luach — the luach views. Theme tokens with the apps' light values as fallbacks
   (zohar/public/style.css: .yearbar .blk .row-day .ck .dt .nm .go .qbar .card). Every rule is scoped to .luach. */
.luach { --lu-paper: var(--paper, #fbf7ec); --lu-ink: var(--ink, #1d1a14); --lu-mute: var(--mute, #8a7f6a); --lu-line: var(--line, #e4dac3);
  --lu-gold: var(--gold, #9a6b12); --lu-targ: var(--targ, var(--ok, #2f6b4f)); --lu-accent: var(--accent, #7a3e12); --lu-mark: var(--mark, #f1d98c66); --lu-chip: var(--chipbg, var(--paper-2, #efe5cd));
  --lu-hfont: var(--hfont, var(--f-he, 'SBL Hebrew', 'Taamey Frank', 'Noto Serif Hebrew', 'Times New Roman', serif)); color: var(--lu-ink); font-size: 15px; }
.luach a { color: var(--lu-gold); }
.luach .card { background: var(--lu-paper); border: 1px solid var(--lu-line); border-radius: 16px; padding: 14px 16px; margin: 12px 0; display: block; color: inherit; text-decoration: none; }
.luach .btn { border: 1px solid var(--lu-line); background: var(--lu-chip); color: inherit; border-radius: 10px; padding: 9px 14px; font: inherit; cursor: pointer; }
.luach .btn.small { padding: 6px 10px; font-size: 13px; }
.luach .fine { color: var(--lu-mute); font-size: 12px; line-height: 1.6; }
.luach .qbar { height: 7px; border-radius: 6px; background: var(--lu-chip); overflow: hidden; border: 1px solid var(--lu-line); margin-top: 6px; }
.luach .qbar > div { height: 100%; background: var(--lu-targ); }

/* the year / month bar */
.luach .yearbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0; }
.luach .yearbar b { text-align: center; font-weight: 600; }
.luach .yearbar b small { display: block; color: var(--lu-mute); font-weight: 400; font-size: 12px; }

/* limud dots: --c is the limud's colour */
.luach .dots { display: inline-flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.luach .ld { display: inline-grid; place-items: center; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--c); background: transparent; box-sizing: border-box; font-size: 7px; line-height: 1; color: #fff; }
.luach .ld.on { background: var(--c); }
.luach .ld.on::after { content: '✓'; }
.luach .ld.off { opacity: .25; border-style: dotted; }

/* month grid and week strip cells */
.luach .lu-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.luach .lu-dow { text-align: center; color: var(--lu-mute); font-size: 12px; padding: 2px 0 4px; }
.luach .lu-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 5px 2px 6px; border: 1px solid var(--lu-line); border-radius: 10px; background: var(--lu-paper); color: inherit; font: inherit; cursor: pointer; text-align: center; min-width: 0; }
.luach .lu-cell .hd { font-family: var(--lu-hfont); font-size: 17px; line-height: 1.1; }
.luach .lu-cell .wd { font-size: 11px; color: var(--lu-mute); }
.luach .lu-cell .gd { font-size: 10px; color: var(--lu-mute); white-space: nowrap; }
.luach .lu-cell .hol { font-size: 9.5px; color: var(--lu-gold); line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 10px; }
.luach .lu-cell .dots { margin-top: auto; }
.luach .lu-cell.shabbat, .luach .lu-cell.yomtov { background: var(--lu-chip); }
.luach .lu-cell.yomtov .hd { color: var(--lu-accent); }
.luach .lu-cell.today { outline: 2px solid var(--lu-gold); outline-offset: 1px; }
.luach .lu-cell.today .hd { color: var(--lu-gold); font-weight: 700; }
.luach .lu-cell.sel { border-color: var(--lu-ink); box-shadow: inset 0 0 0 1px var(--lu-ink); }
.luach .lu-cell.done { border-color: color-mix(in srgb, var(--lu-targ) 60%, var(--lu-line)); }
.luach .lu-cell.done .hd::after { content: ' ✓'; color: var(--lu-targ); font-size: 11px; }
.luach .lu-cell.none .hd { color: var(--lu-mute); }
.luach .lu-cell:focus-visible { outline: 2px solid var(--lu-accent); outline-offset: 2px; }
.luach .lu-pad { min-height: 1px; }
.luach .lu-strip .lu-cell { min-height: 72px; }
:root[lang="en"] .luach .lu-cell .hd, .luach[dir="ltr"] .lu-cell .hd { font-family: inherit; font-size: 15px; }

/* year view rows */
.luach .blk summary { list-style: none; cursor: pointer; }
.luach .blk summary::-webkit-details-marker { display: none; }
.luach .blk .when { color: var(--lu-gold); font-size: 13px; }
.luach .blk .nm { font-family: var(--lu-hfont); font-size: 21px; margin: 2px 0; }
.luach .blk.cur { border-color: var(--lu-gold); }
.luach .row-day { display: flex; gap: 10px; align-items: center; padding: 7px 2px; border-top: 1px solid var(--lu-line); text-decoration: none; color: inherit; font-size: 14px; }
.luach .row-day .dt { flex: 0 0 7.5em; color: var(--lu-mute); }
.luach .row-day .nm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; font-size: 13px; }
.luach .row-day .nm small { color: var(--lu-gold); overflow: hidden; text-overflow: ellipsis; }
.luach .row-day .ck { flex: 0 0 1.2em; color: var(--lu-targ); }
.luach .row-day.done .dt { color: var(--lu-targ); }
.luach .row-day.now { background: var(--lu-mark); border-radius: 8px; }
.luach .row-day.shabbat .dt, .luach .row-day.yomtov .dt { color: var(--lu-accent); }
.luach .row-day .go { color: var(--lu-mute); }
.luach[dir="ltr"] .row-day .dt { flex-basis: 8.6em; white-space: nowrap; }

/* day card */
.luach .day .lu-step { display: flex; align-items: flex-start; gap: 8px; }
.luach .day .lu-step .mid { flex: 1; min-width: 0; text-align: center; }
.luach .day .nav { background: var(--lu-chip); border: 1px solid var(--lu-line); color: inherit; border-radius: 10px; width: 38px; height: 38px; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.luach .day .kicker { color: var(--lu-gold); font-size: 14px; font-weight: 600; }
.luach .day .meta { color: var(--lu-mute); font-size: 13px; margin-top: 3px; }
.luach .day .today-link { background: none; border: 0; color: var(--lu-gold); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; padding: 2px 6px; }
.luach .day.now { border-color: var(--lu-gold); }
.luach .lrows { margin-top: 10px; }
.luach .lrow { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--lu-line); }
.luach .lrow .ld { width: 12px; height: 12px; font-size: 9px; flex: none; }
.luach .lrow .main { flex: 1; min-width: 0; }
.luach .lrow .nm { font-weight: 600; font-size: 14px; }
.luach .lrow .pt { font-size: 13.5px; margin-top: 2px; }
.luach .lrow .pt small { color: var(--lu-mute); font-size: 12px; }
.luach .lrow.done .pt { color: var(--lu-mute); }
.luach .lrow.off { opacity: .6; }
.luach .lrow .offtext { color: var(--lu-mute); font-style: italic; }
.luach .lrow .ck { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--lu-line); background: none; color: transparent; font-weight: 700; font-size: 16px; cursor: pointer; flex: none; display: grid; place-items: center; }
.luach .lrow .ck[aria-pressed="true"] { background: var(--lu-targ); border-color: var(--lu-targ); color: #fff; }
.luach .lrow .go { font-size: 13px; text-decoration: none; padding: 5px 9px; border-radius: 8px; background: var(--lu-chip); border: 1px solid var(--lu-line); color: var(--lu-ink); font: inherit; cursor: pointer; white-space: nowrap; }
.luach .badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 999px; background: var(--lu-chip); border: 1px solid var(--lu-line); color: var(--lu-accent); vertical-align: middle; }
.luach .lu-foot { margin-top: 8px; display: flex; gap: 6px; align-items: center; }

@media (prefers-color-scheme: dark) { .luach .lu-cell.done .hd::after { color: var(--lu-targ); } }
