/* /screen — TV / kiosk display: one 16:9 screen, no scrolling, everything sized off the viewport */
html,body.tv{height:100%;overflow:hidden}
body.tv{margin:0;display:flex;flex-direction:column;background:var(--bg);cursor:none;user-select:none;font-size:1.6vh}
.tv .bsd{position:absolute;top:.8vh;right:1.2vw;font-size:1.6vh}

.tv-head{position:relative;flex:none;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2.5vw;padding:1.6vh 2.4vw 1.8vh;color:var(--navy);
  background:radial-gradient(ellipse 120% 3vh at 50% 100%,rgba(63,127,163,.20) 0 48%,transparent 50%),linear-gradient(180deg,#f4fafd 0%,#e6f2f8 55%,#d3e8f3 100%);
  border-bottom:.35vh solid var(--light)}
.tv-brand{display:flex;align-items:center;gap:1.4vw}
.tv-logo{height:17vh;width:auto;object-fit:contain;filter:drop-shadow(0 .3vh .8vh rgba(31,78,107,.18))}
.tv-names p{margin:0;line-height:1.2}
.tv-camp{font-family:"Belz",sans-serif;font-weight:800;font-size:3.9vh;color:var(--navy)}
.tv-campsub{white-space:nowrap;font-size:2vh;font-weight:600;color:#2f6587;margin-top:.4vh!important}
.tv-tag{display:inline-block;margin-top:1vh!important;padding:.3vh 1.2vw;border-radius:99px;background:var(--navy);color:#fff;font-size:2vh;font-weight:700}

.tv-tracker{display:grid;grid-template-columns:1fr 1fr;gap:2.4vw;background:var(--card);border-radius:1.6vh;box-shadow:0 .2vh .6vh rgba(31,78,107,.12);padding:1.6vh 2vw}
.tv-tracker[hidden]{display:none}
.tv-top{display:flex;align-items:baseline;gap:1vw;white-space:nowrap}
.tv-big,.tv-pct,.tv-tracker bdi{font-family:"Belz Num","Belz",sans-serif;font-variant-numeric:lining-nums}
.tv .tv-pct,.tv .tv-pct bdi{font-family:"Belz",sans-serif}
.tv-big{font-size:5.2vh;font-weight:800;color:var(--navy);line-height:1}
.tv-of{font-size:2.3vh;color:var(--ink);font-weight:600}
.tv-of bdi{font-weight:800}
.tv .tv-pct{font-family:"Belz",sans-serif;margin-inline-start:auto;font-size:3.6vh;font-weight:800;color:var(--navy2)}
.tv-bar{height:2vh;margin-top:1vh;background:#dcebf3}
.tv-bar i{transition:width 1.2s ease}
.tv-sub{margin-top:.7vh;font-size:1.9vh;color:var(--muted)}
.tv-sub bdi{font-weight:700;color:var(--ink)}

.tv .tv-main{max-width:none;width:100%;margin:0;flex:1;min-height:0;display:flex;flex-direction:column;padding:1.2vh 2vw 1vh}
.tv-stage{flex:1;min-height:0;display:flex;flex-direction:column;transition:opacity .6s ease}
.tv-stage.out{opacity:0}
.tv-mhead{flex:none;display:flex;align-items:baseline;gap:1.6vw;margin:0 .3vw .9vh}
.tv-month{margin:0;font-family:"Belz",sans-serif;font-weight:800;font-size:6.4vh;line-height:1;color:var(--navy)}
.tv-mcount{white-space:nowrap;margin:0;font-size:2.4vh;font-weight:600;color:var(--navy2)}
.tv-legend{list-style:none;display:flex;gap:1.4vw;margin:0 auto 0 0;padding:0;font-size:1.8vh;color:var(--ink)}
.tv-legend li{white-space:nowrap;display:flex;align-items:center;gap:.5vw}
.tv-legend .sw{width:2vh;height:2vh;border-radius:.5vh}
.sw-na{background:repeating-linear-gradient(135deg,#eceef0 0 4px,#e2e5e8 4px 8px);border:1px solid #c9ced3}

/* the shared month grid, stretched to the screen: 10 columns × 3 rows */
.tv .tv-grid{flex:1;min-height:0;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:.6vh .4vw;pointer-events:none}
.tv .tv-grid .cell{min-height:0;border-radius:1vh;padding:.7vh .5vw .6vh;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;cursor:none;transform:none!important}
.tv .tv-grid .cell:disabled{opacity:1;color:inherit}
.tv .tv-grid .cell .hd{font-size:3.4vh;line-height:1}
.tv .tv-grid .cell .pr{font-size:2.1vh;line-height:1.2;margin-top:.3vh}
.tv .tv-grid .cell .ev{font-size:2vh;line-height:1.15;margin-top:auto;text-align:center}
.tv .tv-grid .cell.taken .spn{font-size:2.15vh;line-height:1.12;margin-top:auto;-webkit-line-clamp:2;line-clamp:2}
.tv .tv-grid .cell .ev + .spn{margin-top:.4vh}
.tv .tv-grid .cell .sded{font-size:1.6vh;line-height:1.15;margin-top:.3vh;-webkit-line-clamp:3;line-clamp:3}
.tv .tv-grid .cell.blocked .na{font-size:1.7vh}
.tv .tv-grid .cell.today{box-shadow:inset 0 0 0 .35vh var(--navy)}
.tv .tv-grid .cell.taken.today{box-shadow:inset 0 0 0 .3vh #fff,0 0 0 .3vh var(--navy)}

.tv-dots{flex:none;display:flex;justify-content:center;gap:.5vw;padding-top:1vh}
.tv-dot{display:flex;align-items:center;gap:.4vw;padding:.45vh .9vw;border-radius:99px;border:1px solid var(--line);background:#fff;color:var(--navy);font-size:1.75vh;font-weight:600;transition:background .4s,color .4s}
.tv-dot .tv-dc{font-family:"Belz Num","Belz",sans-serif;font-size:1.5vh;color:var(--navy2)}
.tv-dot .tv-dc:empty{display:none}
.tv-dot.on{background:var(--navy);border-color:var(--navy);color:#fff}
.tv-dot.on .tv-dc{color:#cfe5f1}

.tv-hint{position:fixed;left:50%;bottom:9vh;transform:translateX(-50%);padding:1vh 2vw;border-radius:99px;background:rgba(23,50,63,.82);color:#fff;font-size:2.2vh;font-weight:700;transition:opacity 1s;z-index:5}
.tv-hint.gone{opacity:0}

.tv-campsub .itshe{color:inherit;font-weight:900;font-size:1.12em}

/* letterhead scene behind the TV view (Simcha 2026-11-09) */
body.tv{background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.62)),url('screen-bg.webp') center top/cover no-repeat fixed,#f4f8fb !important}
