/* Yomi Central look-and-feel redo (Nov 9 2026, task 468d71e4; Joseph 👍 4:49 AM). Test copy first.
   Loaded LAST, so it only restyles: one "Today" card, line icons, a bottom tab bar, a full-width desktop layout,
   header "Yomi Central". Every id / handler / feature is the same as before. Rollback = remove this file's <link>
   and yc-redo.js's <script> (plus the index.html markup; see NOTES "REDO"). */
html.ycr{--ycTabH:0px;--hdr:#1f2a48;--yc-gold:#9a6d1e;--yc-r:20px}
html.ycr.night{--yc-gold:#eac38b;--hdr:#141830}
/* oldlook (Nov 9): the navy band + gold lines under the header are back (styles.css body::before/::after) */
.ycr .ic{display:block;flex:none}
svg.ic,svg.ic *{pointer-events:none}   /* clicks land on the button, not the icon (sheet close checks e.target) */

/* ---------- header: the old gold-framed Hebrew mark + serif wordmark (styles.css) are back (oldlook, Nov 9) ---------- */
.ycr .top .icon-btn svg{width:20px;height:20px}
.ycr .test-pill{font-size:.56rem;padding:0 7px 1px;letter-spacing:.12em}
@media (min-width:900px){.ycr .test-pill{left:auto;right:190px;transform:none;top:calc(env(safe-area-inset-top,0px) + 24px);border-radius:6px}}

/* ---------- tabs: the old gold pill tab bar under the header is back (styles.css .apptabs); the bottom bar is gone (oldlook, Nov 9) ---------- */
/* the three full-height tabs end above the bar */
html.ycr #shnView,html.ycr #halView,html.ycr #shmView{bottom:var(--ycTabH)}
html.ycr.shngap.vshn #shnView,html.ycr.shngap.vhal #halView,html.ycr.shngap.vshm #shmView{bottom:calc(var(--ycTabH) - var(--shnGap,0px))}
html.ycr.shnfs.vshn #shnView{bottom:0}
.ycr main{max-width:600px;padding-bottom:calc(var(--ycTabH) + 22px)}
.ycr .pass-toast{bottom:calc(var(--ycTabH) + 14px)}

/* ---------- the Today card ---------- */
.ycr .yc-today{--ink:#f4f1ea;--navy:#fff;--muted:#b9bfd2;--blue:#eac38b;--blue-2:#f3d9a8;--sky:#eac38b;--tint:rgba(255,255,255,.08);--tint-2:rgba(255,255,255,.16);--line:rgba(255,255,255,.12);--card:#17203a;--gold-ink:#eac38b;--gold-soft:rgba(234,195,139,.14);
  color:var(--ink);margin:14px 0 0;border-radius:24px;padding:18px 16px 16px;background:linear-gradient(165deg,#23263d 0%,#17284b 62%,#0e4462 100%);border:1px solid rgba(188,139,54,.32);box-shadow:0 14px 34px -18px rgba(14,26,60,.65)}
.ycr .yc-today .card{background:none;border:0;box-shadow:none;margin:0;padding:0;border-radius:0}
.ycr .yc-today .amud{text-align:left;overflow:visible;padding:0}
.ycr .yc-today .amud::before,.ycr .yc-today .amud::after,.ycr .yc-today .date::after{display:none}
.ycr .yc-today .date{margin:0;max-width:none;padding:0;font:600 .8rem/1.3 var(--sans);letter-spacing:0;text-transform:none;color:#eac38b}
.ycr .yc-today .title-btn{display:block;width:100%;text-align:left;padding:4px 0 0;margin:0;border-radius:12px}
.ycr .yc-today .title-btn:active{background:rgba(255,255,255,.05)}
.ycr .yc-today .title-btn .big{font-size:2.35rem;line-height:1.15;font-weight:700;color:#fff;text-align:right}
.ycr .yc-today .title-btn .en{font:400 1.6rem/1.2 var(--serif);letter-spacing:-.01em;color:#fff;margin-top:-2px}   /* oldlook (Nov 9): serif title again, same as the Halacha/Shmiras/Mishna titles */
.ycr .yc-today .sub{margin:4px 0 0;font-size:.82rem;color:var(--muted);min-height:0}
.ycr .yc-today .chip,.ycr .chip{background:rgba(234,195,139,.16);color:#eac38b;border:1px solid rgba(234,195,139,.5);letter-spacing:0;text-transform:none;font:600 .82rem/1.2 var(--sans);padding:7px 14px}
.ycr main > .chip,.ycr .hal-nav .chip{color:var(--yc-gold);border-color:var(--yc-gold);background:transparent}
/* player, inside the card */
.ycr .yc-today .player{margin-top:14px;background:rgba(8,12,30,.38);border-radius:16px;padding:12px 12px 10px}
.ycr .yc-today .src{font:600 .78rem/1.2 var(--sans);letter-spacing:0;text-transform:none;color:#dfe3ee}
.ycr .yc-today .src::before{display:none}
.ycr .yc-today .seek-wrap{margin:8px 0 2px}
.ycr .yc-today input[type=range]::-webkit-slider-thumb{background:#eac38b;border:0;width:16px;height:16px;margin-top:-5px}
.ycr .yc-today input[type=range]::-moz-range-thumb{background:#eac38b;border:0}
.ycr .yc-today input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(90deg,#eac38b 0,#eac38b var(--p),rgba(255,255,255,.16) var(--p))}
.ycr .yc-today input[type=range]::-moz-range-track{background:linear-gradient(90deg,#eac38b 0,#eac38b var(--p),rgba(255,255,255,.16) var(--p))}
.ycr .yc-today .seek-wrap .mk{background:#9fd0ff;box-shadow:none}
.ycr .yc-today .amud-tag:not(:empty){background:rgba(159,208,255,.14);border-color:rgba(159,208,255,.45);color:#9fd0ff;letter-spacing:0}
.ycr .yc-today .controls{gap:22px;margin:10px 0 2px}
.ycr .yc-today .ctl{width:52px;height:52px;background:none;color:#dfe3ee;gap:1px}
.ycr .yc-today .ctl .ic{width:26px;height:26px}
.ycr .yc-today .ctl small{font-size:.62rem;font-weight:600;margin:0}
.ycr .yc-today .ctl.play{width:64px;height:64px;background:#eac38b;color:#14284b;box-shadow:0 6px 18px -6px rgba(0,0,0,.5)}
.ycr .yc-today .ctl.play .ic{width:28px;height:28px}
.ycr .yc-today .speed-row{margin-top:6px;gap:6px}
.ycr .yc-today .speed-row .sm{height:32px;min-width:36px;padding:0 10px;font-size:.85rem;color:#eac38b;background:rgba(255,255,255,.07)}
.ycr .yc-today .amud-b-row{margin-top:8px;padding-top:6px}
.ycr .yc-today .link-btn{font:600 .8rem/1.2 var(--sans);letter-spacing:0;text-transform:none;color:#eac38b;min-height:36px}
.ycr .yc-today .vid-btn{font:600 .85rem/1.2 var(--sans);letter-spacing:0;text-transform:none;background:rgba(255,255,255,.07);border-color:rgba(234,195,139,.45);color:#eac38b;min-height:40px}
.ycr .yc-today .note{color:var(--muted)}
.ycr .yc-today .player.na .note#markNote{color:#eac38b}
/* the two big buttons */
.ycr .yc-act{display:flex;gap:10px;margin-top:12px}
.ycr .yc-btn{flex:1;min-width:0;min-height:48px;border:0;border-radius:14px;background:rgba(255,255,255,.1);color:#f4f1ea;display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 10px;font:600 .92rem/1.15 var(--sans);flex-wrap:wrap}
.ycr .yc-btn:active{background:rgba(255,255,255,.18)}
.ycr .yc-btn .ic{width:19px;height:19px}
.ycr .yc-btn small{display:none}
.ycr #openPages{background:#eac38b;color:#14284b}
.ycr #openPages:active{background:#f3d9a8}

/* prev / next with names */
.ycr .yc-nav{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:12px 2px 0}
.ycr .yc-nb,.ycr .yc-pick{display:flex;align-items:center;gap:3px;min-height:42px;padding:0 8px;border:0;border-radius:12px;background:none;color:var(--ink);font:600 .9rem/1.1 var(--sans);white-space:nowrap}
.ycr .yc-nb:active,.ycr .yc-pick:active{background:var(--tint)}
.ycr .yc-nb .ic{width:18px;height:18px;color:var(--muted)}
.ycr .yc-pick{color:var(--yc-gold);gap:6px;font-weight:600}
.ycr .yc-pick .ic{width:17px;height:17px}
.ycr .yc-nb span{overflow:hidden;text-overflow:ellipsis;max-width:34vw}
.ycr .yc-nb{min-width:0}
/* oldlook fix (Nov 9): at 360px "Sukkah 13a ›" pushed the page 10px sideways */
@media (max-width:380px){.ycr .yc-nav{gap:2px}.ycr .yc-nb,.ycr .yc-pick{padding:0 5px;font-size:.84rem}.ycr .yc-nb span{max-width:26vw}}

/* the small row under it: Chazarah · Overview · Recently played */
.ycr .yc-more{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:12px 0 4px}
.ycr .yc-more:empty{display:none}
.ycr .yc-more .ov-btn,.ycr .yc-more .chz-chip{margin:0;min-height:38px;padding:0 14px 0 11px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:600 .84rem/1 var(--sans);letter-spacing:0;text-transform:none;display:inline-flex;align-items:center;gap:6px;box-shadow:0 1px 2px rgba(42,45,68,.05)}
.ycr .yc-more .ov-btn span,.ycr .yc-more .chz-ic{color:var(--yc-gold);display:inline-flex}
.ycr .yc-more .ov-btn .ic,.ycr .yc-more .chz-ic .ic,.ycr .yc-more .ycc-hbtn .ic{width:16px;height:16px}
.ycr .yc-more .ov-btn.none{display:none}
.ycr .yc-more .chz-chip.due{background:var(--gold);border-color:var(--gold);color:#fff}
.ycr.night .yc-more .chz-chip.due{color:#1a1206}
.ycr .yc-more .chz-chip.due .chz-ic{color:inherit}
.ycr .ycc,.ycr .ycc-rp{border-radius:var(--yc-r);border-color:var(--line)}
.ycr .ycc-ic .ic,.ycr .ycc-rp-ic .ic{width:16px;height:16px}

/* settings: About moved here */
.ycr .yc-about{font-size:.8rem;line-height:1.55}

/* page viewer: names on the amud arrows, prev on the left */
.ycr .amud-nav #vPrevAmud{order:-1}
.ycr .amud-nav #vAmud{order:0}
.ycr .amud-nav #vNextAmud{order:1}
.ycr .amud-nav .sm,.ycr .v-foot .pg{display:inline-flex;align-items:center;gap:3px}
.ycr .mini .sm{display:inline-flex;align-items:center;justify-content:center;gap:1px}
.ycr .mini .sm small{font-size:.62rem;font-weight:700}
.ycr .vvid{display:inline-flex;align-items:center;gap:4px}
.ycr .p2-bar .sm{display:inline-flex;align-items:center;justify-content:center}
.ycr .icon-btn .ic{width:20px;height:20px}
.ycr .vctl .vsm{display:inline-flex;align-items:center;gap:1px}
.ycr .vctl .vsm small{font-size:.6rem}

/* ---------- no ALL CAPS anywhere ---------- */
.ycr .lbl,
.ycr .date,
.ycr .nav-btn small,
.ycr .chip,
.ycr .src,
.ycr .link-btn,
.ycr .big-btn,
.ycr .amud-nav,
.ycr .amud-nav .sm,
.ycr .pg,
.ycr .sheet h3,
.ycr .primary,
.ycr .secondary,
.ycr .vid-btn,
.ycr .p2-bar,
.ycr .soon b,
.ycr .hal-recent h3,
.ycr .vt-amud,
.ycr .chz-stats span,
.ycr .chz-set h3,
.ycr .ycc-lbl,
.ycr .ycc-tag,
.ycr .ycc-rp-head h3,
.ycr .ycs-head h2 small,
.ycr .ycs-body h3,
.ycr .ycs-lex,
.ycr .shm-day b,
.ycr .shm-h{text-transform:none!important;letter-spacing:0!important}
.ycr .sheet h3,.ycr .hal-recent h3,.ycr .chz-set h3,.ycr .ycc-rp-head h3,.ycr .ycs-body h3{font-size:.82rem;font-weight:700;color:var(--muted)}
.ycr .primary,.ycr .secondary{font-size:.95rem;font-weight:600}
.ycr .amud-nav .sm,.ycr .pg,.ycr .p2-bar{font-size:.85rem;font-weight:600}
.ycr .ycc-lbl,.ycr .ycc-tag{font-size:.75rem}

/* ---------- desktop / tablet: use the width ---------- */
@media (min-width:900px){
  html.ycr{--ycTabH:0px}
  .ycr .top{max-width:1180px;padding-left:28px;padding-right:28px}
  html.ycr #shnView,html.ycr #halView,html.ycr #shmView{bottom:0}
  .ycr main{max-width:1180px;padding:8px 28px 40px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);column-gap:28px;align-items:start;grid-auto-flow:row dense}
  .ycr main > *{grid-column:2}
  .ycr main > .yc-today{grid-column:1;grid-row:1 / span 8;margin-top:18px;padding:26px 26px 22px}
  .ycr main > .yc-nav{margin-top:22px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:4px}
  .ycr main > .yc-more{justify-content:flex-start}
  .ycr .yc-today .title-btn .big{font-size:3.1rem}
  .ycr .yc-today .title-btn .en{font-size:1.9rem}
  .ycr .yc-today .controls{gap:34px}
  .ycr .yc-nb span{max-width:none}
  .ycr .ycc,.ycr .ycc-rp{margin:12px 0}
}
.ycr .yc-prev{display:none}
@media (min-width:900px){
  .ycr main.has-prev{grid-template-columns:minmax(0,1fr) minmax(380px,460px)}
  .ycr main.has-prev > .yc-prev{display:flex;grid-column:1;grid-row:1 / span 12;flex-direction:column;margin-top:18px;padding:0;border:1px solid var(--line);border-radius:22px;background:var(--card);box-shadow:var(--shadow);overflow:hidden;text-align:left;color:var(--ink)}
  .ycr main.has-prev > .yc-prev[hidden]{display:none}
  .ycr main.has-prev > .yc-today{grid-column:2;grid-row:auto;padding:20px 18px 18px}
  .ycr main.has-prev .yc-today .title-btn .big{font-size:2.5rem}
  .ycr main.has-prev .yc-today .title-btn .en{font-size:1.55rem}
  .ycr .yc-prev-h{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);font:600 .9rem/1.2 var(--sans)}
  .ycr .yc-prev-o{color:var(--yc-gold);font-weight:600}
  .ycr .yc-prev-f{display:block;background:#fff;padding:10px;max-height:calc(100vh - 150px);overflow:hidden}
  .ycr .yc-prev-f canvas{display:block;width:100%;height:auto}
  .ycr .yc-prev-f canvas[hidden],.ycr .yc-prev-f img[hidden]{display:none}
  .ycr .yc-prev-f img{display:block;width:100%;height:auto;min-height:50vh;object-fit:contain;object-position:top}
  .ycr .yc-prev-f img[src]:not([data-ok]){background:linear-gradient(90deg,#f1ede4 0,#faf7f1 50%,#f1ede4 100%) 0 0/200% 100%;animation:ycShim 1.4s linear infinite}
  @keyframes ycShim{to{background-position:-200% 0}}
  .ycr.night .yc-prev-f{background:#f3eee4}
  .ycr .yc-prev:hover .yc-prev-o{text-decoration:underline}
}
