:root {
  --navy: #16314d;
  --navy-deep: #10273f;
  --brass: #a77a38;
  --brass-soft: #c9a56b;
  --ink: #172d47;
  --muted: #6d604f;
  --paper: #f5eee1;
  --paper-strong: #fbf7ef;
  --line: #cbb895;
  --stage-w: 1920px;
  --stage-h: 1080px;
}

.signage-credit { align-self:center; min-width:0; padding:0 10px; color:#f7f0e2; font-size:clamp(8px,.55vw,12px); font-weight:700; text-align:center; white-space:nowrap; }
.signage-credit strong { display:block; color:var(--brass-soft); letter-spacing:.08em; }

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background: #111a24;
  font-family: "Segoe UI", Arial, sans-serif;
}

.tv-fixed-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #111a24;
}

.tv-fixed-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--stage-w);
  height: var(--stage-h);
  transform-origin: top left;
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.4), transparent 42%),
    url("../../server/layouts/common/backgrounds/jerusalem-stone.svg") center / cover,
    #eadbc1;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 540px 470px 70px;
  width: 100%;
  height: 100%;
}

.profile-small .layout {
  width: 1920px;
  height: 1080px;
  transform: scale(.6666667);
  transform-origin: top left;
}

.top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.editorial {
  padding: 50px 46px 28px 56px;
  background: linear-gradient(100deg, rgba(252,248,239,.94), rgba(248,240,226,.87));
  border-right: 2px solid rgba(156, 116, 59, .55);
}

.identity {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 120px;
}

.shul-logo-img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.shul-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: .95;
  letter-spacing: -1px;
  white-space: nowrap;
}

.tagline {
  margin-top: 10px;
  color: var(--brass);
  font-size: 18px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 25px 0 22px;
  color: var(--brass);
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.ornament span { font-size: 18px; }

.date-parasha {
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  gap: 16px;
  height: 288px;
}

.date-card,
.parasha-card {
  border: 1px solid rgba(155, 121, 74, .58);
  background: rgba(251,247,239,.75);
  box-shadow: 0 2px 8px rgba(72, 49, 27, .07);
  padding: 28px 32px;
}

.date-card { border-radius: 12px 3px 3px 12px; }
.parasha-card { border-radius: 3px 12px 12px 3px; text-align: center; }

.day-name,
.section-kicker {
  color: var(--navy);
  font-size: 17px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.english-date {
  margin: 12px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1.03;
  white-space: nowrap;
}

.hebrew-date {
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.22;
}

.hebrew-date.secondary {
  margin-top: 7px;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
}

.parasha-he {
  margin: 18px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  line-height: 1;
  direction: rtl;
}

.parasha-rule {
  width: 72%;
  height: 1px;
  margin: 12px auto;
  background: var(--brass-soft);
}

.parasha-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.candles {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .8px;
}

.candles strong {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.photo-quarter {
  position: relative;
  height: 540px;
  margin: 0;
  overflow: hidden;
  background: #2a231d;
}

.photo-inner,
.slideshow-image {
  width: 100%;
  height: 100%;
}

.slideshow-image {
  display: block;
  object-fit: cover;
  transition: opacity .35s ease;
}

.photo-quarter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}

.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 30px;
  color: #fff8e8;
  background: rgba(18, 22, 26, .78);
  border-top: 1px solid rgba(198, 160, 102, .65);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.panels {
  display: grid;
  grid-template-columns: 1.03fr 1.08fr .92fr 1.17fr;
  gap: 16px;
  padding: 18px 52px 20px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(155, 121, 74, .5);
  border-radius: 10px;
  background: rgba(249,244,235,.92);
  box-shadow: 0 3px 10px rgba(58, 42, 26, .09);
}

.panel-title {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #f9f1df;
  background: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}

.panel-title .icon {
  color: var(--brass-soft);
  font-size: 20px;
}

.panel-body {
  height: calc(100% - 45px);
  padding: 20px 23px;
}

.scroll-list {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 35px;
  border-bottom: 1px dotted rgba(121, 96, 65, .36);
  font-size: 15px;
}

.row:last-child { border-bottom: 0; }
.row-label { min-width: 0; }
.label-en { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label-he { display: none; }
.time { padding-left: 14px; font-weight: 600; white-space: nowrap; }

.weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 4px 0 5px;
}

.weather-icon {
  width: 82px;
  height: 62px;
  color: var(--navy);
}

.weather-icon svg { width: 100%; height: 100%; }

.temperature {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: 1;
}

.condition {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.high-low {
  margin-top: 8px;
  text-align: center;
  font-size: 17px;
}

.forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dotted var(--line);
}

.forecast-day { text-align: center; font-size: 14px; }
.forecast-symbol { display: block; margin: 6px 0; font-size: 30px; }

.events-list {
  display: grid;
  gap: 15px;
}

.event {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
}

.event-date {
  padding: 6px 5px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-size: 11px;
  text-transform: uppercase;
}

.event-date strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.event-copy { font-size: 15px; line-height: 1.3; }
.event-copy strong { display: block; font-size: 16px; }

.events-note {
  margin-top: 20px;
  text-align: center;
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
}

.zone-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-soft);
  background: var(--navy-deep);
  border-top: 1px solid rgba(202, 166, 105, .52);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.footer-rule {
  width: 260px;
  height: 1px;
  margin: 0 24px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.alert-ribbon {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 15px 32px;
  color: white;
  background: #9b1d20;
}

.alert-ribbon.hidden,
.hidden { display: none !important; }

.alert-icon { margin-right: 18px; font-size: 42px; font-weight: 700; }
.alert-body { display: flex; flex-direction: column; }
.alert-kicker { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.alert-text { font-size: 28px; }

.profile-small .editorial { padding: 44px 40px 24px 48px; }
.profile-small .shul-name { font-size: 56px; }
.profile-small .panels { gap: 12px; padding-left: 44px; padding-right: 44px; }
.profile-small .panel-body { padding: 16px 18px; }
.profile-small .row { min-height: 32px; font-size: 14px; }

.profile-large .shul-name { font-size: 67px; }
.profile-large .english-date { font-size: 49px; }
.profile-large .panel-title { font-size: 18px; }
.profile-large .row { min-height: 37px; font-size: 16px; }
.profile-large .panel-body { padding: 22px 25px; }

@media (prefers-reduced-motion: reduce) {
  .slideshow-image { transition: none; }
}

/* Complete-data layout */
.comprehensive-editorial {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px 28px 0 34px;
}

.identity-compact {
  height: 104px;
  gap: 17px;
  border-bottom: 1px solid var(--line);
}

.identity-compact .shul-logo-img {
  width: 78px;
  height: 78px;
}

.identity-compact .identity-copy {
  min-width: 0;
  flex: 1;
}

.identity-compact .shul-name {
  font-size: 43px;
}

.rabbi-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.rabbi-line strong {
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.rabbi-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-data-grid {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin-top: 15px;
  border: 1px solid rgba(155,121,74,.5);
  background: rgba(251,247,239,.72);
}

.top-data-grid > .time-date-block,
.top-data-grid > .shabbat-block {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  height: 100%;
  box-sizing: border-box;
}

.time-date-block,
.shabbat-block {
  min-width: 0;
  padding: 12px 22px;
}

.shabbat-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.time-date-block {
  border-right: 1px solid var(--line);
}

.digital-clock {
  display: flex;
  align-items: flex-start;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  transform-origin: left top !important;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: .9;
}

.time-date-block .digital-clock.hidden {
  display: flex !important;
}

.time-date-block .clock-status {
  margin-top: 8px;
  color: #9b1d20;
  font-size: 10px;
}

.digital-clock small {
  margin: 6px 0 0 7px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
}

.digital-clock .clock-seconds {
  color: var(--brass);
  font-size: 11px;
}

.time-date-block .english-date {
  margin: 7px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  white-space: normal;
}

.date-pair {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.date-pair span + span {
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.mini-heading {
  color: var(--brass);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.parasha-pair {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 17px;
  font-family: Georgia, "Times New Roman", serif;
}

.parasha-title-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.parasha-pair strong {
  font-size: 31px;
  font-weight: 400;
}

.parasha-summary-credit {
  margin-top: 5px;
  color: var(--brass);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.parasha-pair span {
  flex: 0 0 auto;
  font-size: 35px;
}

.time-pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.time-pairs div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.time-pairs span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.time-pairs strong {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
}

.photo-qr {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 78px;
  width: 118px;
  padding: 8px;
  border: 1px solid var(--brass-soft);
  background: rgba(251,247,239,.96);
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  text-align: center;
}

.photo-qr img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.photo-qr span {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.data-panels {
  display: flex;
  gap: 10px;
  min-height: 0;
  padding: 12px 26px 14px;
}

.data-panels > .panel { flex: 1 1 0; }
.data-panels > .calendar-panel { flex-grow: 1.55; }
.data-panels > .community-panel { flex-grow: 1.1; }
.data-panels > .weather-panel { flex-grow: .95; }

.data-panels .panel {
  border-radius: 7px;
}

.data-panels .panel-title {
  height: 38px;
  font-size: 13px;
  letter-spacing: 1.5px;
}

.data-panels .panel-body {
  height: calc(100% - 38px);
  padding: 14px 16px;
}

.data-panels .row {
  min-height: 31px;
  font-size: 12px;
}

.data-panels .row .time {
  padding-left: 8px;
}

.calendar-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: calc(100% - 38px);
  padding: 13px 15px;
}

.calendar-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.calendar-live-facts {
  display: contents;
}

.calendar-fact {
  min-width: 0;
}

.calendar-fact span,
.calendar-body h3 {
  display: block;
  margin: 0 0 4px;
  color: var(--brass);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.calendar-fact strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.calendar-fact small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.calendar-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 0;
  padding: 10px 0;
}

.calendar-lists section + section {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.mini-event {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 9px;
  line-height: 1.15;
}

.mini-event strong,
.mini-event small {
  display: block;
}

.calendar-combined-event {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.calendar-combined-event strong {
  line-height: 1.2;
}

.calendar-combined-event small {
  margin-top: 2px;
  text-align: right;
}

/* Markup written by the shared client during SSE/sunset calendar refreshes. */
.today-chip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-bottom: 6px;
  font-size: 9px;
  line-height: 1.15;
}

.today-chip span {
  font-weight: 700;
}

.today-chip small {
  color: var(--muted);
  font-size: 8px;
}

.seasonal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 9px;
  line-height: 1.15;
}

.seasonal-copy,
.seasonal-meta {
  min-width: 0;
}

.seasonal-english,
.seasonal-hebrew,
.seasonal-meta span,
.seasonal-meta strong {
  display: block;
}

.seasonal-english {
  font-weight: 700;
}

.seasonal-hebrew,
.seasonal-meta {
  color: var(--muted);
  font-size: 8px;
}

.mini-event small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.parasha-summary {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.parasha-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.parasha-summary p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.custom-events {
  overflow: hidden;
}

.custom-events article {
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px dotted var(--line);
}

.custom-events article:last-child {
  margin: 0;
  border: 0;
}

.custom-events strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.custom-events p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.data-panels .weather-main {
  display: block;
  text-align: center;
}

.data-panels .weather-icon {
  width: 74px;
  height: 53px;
  margin: 0 auto 7px;
}

.data-panels .temperature {
  font-size: 45px;
}

.data-panels .forecast {
  gap: 2px;
  margin-top: 16px;
  padding-top: 12px;
}

.data-panels .forecast-day {
  font-size: 9px;
}

.data-panels .forecast-symbol {
  margin: 4px 0;
  font-size: 21px;
}

.operation-footer {
  display: grid;
  grid-template-columns: .8fr 1.35fr 1fr 1fr 1fr 1.2fr;
  align-items: center;
  color: #f7f0e2;
  background: var(--navy-deep);
  border-top: 1px solid rgba(202,166,105,.65);
}

.operation-item {
  min-width: 0;
  padding: 0 17px;
  border-right: 1px solid rgba(202,166,105,.45);
}

.operation-item:last-child {
  border-right: 0;
}

.operation-item > span {
  display: block;
  color: var(--brass-soft);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.operation-item > strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-item > small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #c9d2dc;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-item .connected { color: #9fd3b7; }
.operation-item .reconnecting { color: #e1bd77; }
.operation-item .disconnected { color: #ed9898; }

.profile-small .comprehensive-editorial { padding-left: 28px; padding-right: 24px; }
.profile-small .identity-compact .shul-name { font-size: 39px; }
.profile-small .data-panels { gap: 8px; padding-left: 20px; padding-right: 20px; }
.profile-small .data-panels .panel-body { padding-left: 12px; padding-right: 12px; }

.profile-large .identity-compact .shul-name { font-size: 47px; }
.profile-large .data-panels .row { font-size: 13px; }
.profile-large .custom-events p { font-size: 11px; }

/* Zmanim/prayer rotation: compositor-only, capped by JavaScript at 16 FPS. */
.motion-scroll-track {
  width: 100%;
  will-change: transform;
}

.motion-scroll-set {
  width: 100%;
}

.motion-scroll-set.clone {
  padding-top: 8px;
}

/* Weather occupies the upper half; the donation QR occupies the lower half. */
.weather-donation-body {
  display: grid;
  grid-template-rows: 1fr 1fr;
  padding: 0 !important;
}

.weather-half {
  min-height: 0;
  padding: 12px 12px 7px;
  overflow: hidden;
}

.weather-half .weather-main {
  display: flex;
  gap: 5px;
  margin: 0;
}

.weather-half .weather-icon {
  width: 53px;
  height: 39px;
  margin: 0;
}

.weather-half .temperature {
  font-size: 35px;
}

.weather-half .forecast {
  margin-top: 7px;
  padding-top: 6px;
}

.weather-half .forecast-symbol {
  margin: 1px 0;
  font-size: 14px;
}

.donation-half {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 25px 8px 7px;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.donation-half span {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  color: var(--brass);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-align: center;
  text-transform: uppercase;
}

.donation-half img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 92%;
  object-fit: contain;
  image-rendering: pixelated;
}

/* Profile typography: Small ≈ -20%, Medium baseline, Large ≈ +20%. */
.profile-small .identity-compact .shul-name { font-size: 34px; }
.profile-small .rabbi-line { font-size: 10px; }
.profile-small .rabbi-line strong { font-size: 10px; }
.profile-small .digital-clock { font-size: 50px; }
.profile-small .digital-clock small { font-size: 13px; }
.profile-small .time-date-block .english-date { font-size: 18px; }
.profile-small .date-pair { font-size: 11px; }
.profile-small .date-pair span + span { font-size: 14px; }
.profile-small .parasha-pair strong { font-size: 25px; }
.profile-small .parasha-pair span { font-size: 28px; }
.profile-small .time-pairs strong { font-size: 15px; }
.profile-small .data-panels .panel-title { font-size: 10px; }
.profile-small .data-panels .row { font-size: 10px; }
.profile-small .calendar-fact strong { font-size: 8px; }
.profile-small .mini-event,
.profile-small .parasha-summary p { font-size: 7px; }
.profile-small .custom-events strong { font-size: 11px; }
.profile-small .custom-events p { font-size: 8px; }
.profile-small .operation-item > span { font-size: 7px; }
.profile-small .operation-item > strong { font-size: 9px; }

.profile-large .identity-compact .shul-name { font-size: 52px; }
.profile-large .rabbi-line { font-size: 16px; }
.profile-large .rabbi-line strong { font-size: 14px; }
.profile-large .digital-clock { font-size: 74px; }
.profile-large .digital-clock small { font-size: 19px; }
.profile-large .time-date-block .english-date { font-size: 26px; }
.profile-large .date-pair { font-size: 17px; }
.profile-large .date-pair span + span { font-size: 22px; }
.profile-large .parasha-pair strong { font-size: 37px; }
.profile-large .parasha-pair span { font-size: 42px; }
.profile-large .time-pairs strong { font-size: 23px; }
.profile-large .data-panels .panel-title { font-size: 16px; }
.profile-large .data-panels .row { font-size: 14px; }
.profile-large .calendar-fact strong { font-size: 12px; }
.profile-large .mini-event,
.profile-large .parasha-summary p { font-size: 11px; }
.profile-large .custom-events strong { font-size: 17px; }
.profile-large .custom-events p { font-size: 12px; }
.profile-large .operation-item > span { font-size: 11px; }
.profile-large .operation-item > strong { font-size: 13px; }

/* Connection health belongs in the TV-operation footer, not beneath the date. */
.time-date-block .clock-status {
  display: none !important;
}

.parasha-inline-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 auto;
  min-height: 0;
  margin: -7px 0 0;
  color: var(--muted);
}

.parasha-inline-summary span {
  color: var(--brass);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.parasha-summary-static {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  font-size: 14px;
  line-height: 1.3;
  scrollbar-width: thin;
}

.parasha-summary-static::-webkit-scrollbar {
  width: 6px;
}

.parasha-summary-static::-webkit-scrollbar-thumb {
  background: rgba(155,121,74,.45);
  border-radius: 999px;
}

/* Correct physical-screen direction:
   Small screen = largest type; Medium = raised baseline; Large = smallest type. */
.profile-medium .identity-compact .shul-name { font-size: 45px; }
.profile-medium .rabbi-line { font-size: 14px; }
.profile-medium .rabbi-line strong { font-size: 13px; }
.profile-medium .digital-clock { font-size: 66px; }
.profile-medium .digital-clock small { font-size: 17px; }
.profile-medium .time-date-block .english-date { font-size: 24px; }
.profile-medium .date-pair { font-size: 15px; }
.profile-medium .date-pair span + span { font-size: 20px; }
.profile-medium .parasha-pair strong { font-size: 33px; }
.profile-medium .parasha-pair span { font-size: 37px; }
.profile-medium .time-pairs strong { font-size: 21px; }
.profile-medium .data-panels .panel-title { font-size: 14px; }
.profile-medium .data-panels .row { font-size: 13px; }
.profile-medium .calendar-fact strong { font-size: 11px; }
.profile-medium .mini-event,
.profile-medium .parasha-summary p { font-size: 10px; }
.profile-medium .custom-events strong { font-size: 15px; }
.profile-medium .custom-events p { font-size: 11px; }
.profile-medium .operation-item > span { font-size: 10px; }
.profile-medium .operation-item > strong { font-size: 12px; }
.profile-medium .weather-half .temperature { font-size: 39px; }
.profile-medium .weather-half .forecast-day { font-size: 10px; }
.profile-medium .weather-half .forecast-symbol { font-size: 16px; }
.profile-medium .donation-half span { font-size: 11px; }

.profile-small .identity-compact .shul-name { font-size: 54px; }
.profile-small .rabbi-line { font-size: 17px; }
.profile-small .rabbi-line strong { font-size: 15px; }
.profile-small .digital-clock { font-size: 78px; }
.profile-small .digital-clock small { font-size: 20px; }
.profile-small .time-date-block .english-date { font-size: 28px; }
.profile-small .date-pair { font-size: 18px; }
.profile-small .date-pair span + span { font-size: 23px; }
.profile-small .parasha-pair strong { font-size: 39px; }
.profile-small .parasha-pair span { font-size: 44px; }
.profile-small .time-pairs strong { font-size: 24px; }
.profile-small .data-panels .panel-title { font-size: 17px; }
.profile-small .data-panels .row { font-size: 15px; }
.profile-small .calendar-fact strong { font-size: 13px; }
.profile-small .mini-event { font-size: 12px; }
.profile-small .custom-events strong { font-size: 18px; }
.profile-small .custom-events p { font-size: 13px; }
.profile-small .operation-item > span { font-size: 12px; }
.profile-small .operation-item > strong { font-size: 14px; }
.profile-small .weather-half .temperature { font-size: 46px; }
.profile-small .weather-half .forecast-day { font-size: 12px; }
.profile-small .weather-half .forecast-symbol { font-size: 19px; }
.profile-small .donation-half span { font-size: 13px; }
.profile-small .parasha-inline-summary span,
.profile-small .parasha-inline-summary p { font-size: 11px; }

.profile-large .identity-compact .shul-name { font-size: 36px; }
.profile-large .rabbi-line { font-size: 11px; }
.profile-large .rabbi-line strong { font-size: 10px; }
.profile-large .digital-clock { font-size: 54px; }
.profile-large .digital-clock small { font-size: 14px; }
.profile-large .time-date-block .english-date { font-size: 19px; }
.profile-large .date-pair { font-size: 12px; }
.profile-large .date-pair span + span { font-size: 16px; }
.profile-large .parasha-pair strong { font-size: 27px; }
.profile-large .parasha-pair span { font-size: 30px; }
.profile-large .time-pairs strong { font-size: 16px; }
.profile-large .data-panels .panel-title { font-size: 11px; }
.profile-large .data-panels .row { font-size: 11px; }
.profile-large .calendar-fact strong { font-size: 9px; }
.profile-large .mini-event { font-size: 8px; }
.profile-large .custom-events strong { font-size: 12px; }
.profile-large .custom-events p { font-size: 9px; }
.profile-large .operation-item > span { font-size: 8px; }
.profile-large .operation-item > strong { font-size: 10px; }
.profile-large .weather-half .temperature { font-size: 31px; }
.profile-large .weather-half .forecast-day { font-size: 8px; }
.profile-large .weather-half .forecast-symbol { font-size: 13px; }
.profile-large .donation-half span { font-size: 9px; }
.profile-large .parasha-inline-summary span,
.profile-large .parasha-inline-summary p { font-size: 8px; }

/* Small and Large use the exact Medium top-half type scale. */
.profile-small .identity-compact .shul-name,
.profile-large .identity-compact .shul-name { font-size: 45px; }
.profile-small .rabbi-line,
.profile-large .rabbi-line { font-size: 14px; }
.profile-small .rabbi-line strong,
.profile-large .rabbi-line strong { font-size: 13px; }
.profile-small .digital-clock,
.profile-large .digital-clock { font-size: 66px; }
.profile-small .digital-clock small,
.profile-large .digital-clock small { font-size: 17px; }
.profile-small .time-date-block .english-date,
.profile-large .time-date-block .english-date { font-size: 24px; }
.profile-small .date-pair,
.profile-large .date-pair { font-size: 15px; }
.profile-small .date-pair span + span,
.profile-large .date-pair span + span { font-size: 20px; }
.profile-small .parasha-pair strong,
.profile-large .parasha-pair strong { font-size: 33px; }
.profile-small .parasha-pair span,
.profile-large .parasha-pair span { font-size: 37px; }
.profile-small .time-pairs strong,
.profile-large .time-pairs strong {
  color: #a02424;
  font-size: 21px;
}
.profile-small .mini-heading,
.profile-large .mini-heading,
.profile-small .time-pairs span,
.profile-large .time-pairs span { font-size: 11px; }

.profile-small .parasha-summary-static,
.profile-medium .parasha-summary-static,
.profile-large .parasha-summary-static {
  font-size: 14px;
}

.profile-small .parasha-inline-summary span,
.profile-large .parasha-inline-summary span {
  font-size: 9px;
  line-height: 13px;
}

/* Small Jewish Calendar uses the same readable content scale as Prayer Times. */
.profile-small .calendar-body h3,
.profile-small .calendar-fact span {
  font-size: 12px;
}

.profile-small .calendar-fact strong,
.profile-small .mini-event strong {
  font-size: 15px;
}

.profile-small .calendar-fact small,
.profile-small .mini-event small {
  font-size: 11px;
}

.profile-small .mini-event {
  grid-template-columns: 20px 1fr;
  gap: 7px;
  margin-bottom: 9px;
  line-height: 1.25;
}

.profile-small .calendar-combined-event,
.profile-medium .calendar-combined-event,
.profile-large .calendar-combined-event {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.profile-small .calendar-combined-event strong {
  font-size: 12px;
  line-height: 1.18;
}

.profile-small .calendar-combined-event small {
  font-size: 10px;
  line-height: 1.15;
}

.profile-small .today-chip,
.profile-small .seasonal-row {
  font-size: 15px;
  line-height: 1.25;
}

.profile-small .today-chip small,
.profile-small .seasonal-hebrew,
.profile-small .seasonal-meta {
  font-size: 11px;
}

.profile-medium .today-chip,
.profile-medium .seasonal-row {
  font-size: 10px;
}

.profile-large .today-chip,
.profile-large .seasonal-row {
  font-size: 8px;
}

.profile-large .today-chip small,
.profile-large .seasonal-hebrew,
.profile-large .seasonal-meta {
  font-size: 7px;
}

/* Large-screen lower half: wider schedules, two static columns, no rotation. */
.profile-large .data-panels > .dense-panel { flex-grow: 1.35; }
.profile-large .data-panels > .calendar-panel { flex-grow: 1.38; }
.profile-large .data-panels > .community-panel { flex-grow: 1.1; }
.profile-large .data-panels > .weather-panel { flex-grow: .72; }

.profile-large #zmanimScroll,
.profile-large #scheduleScroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  align-content: start;
}

.profile-large #zmanimScroll .row,
.profile-large #scheduleScroll .row {
  min-width: 0;
}

.profile-large #zmanimScroll .row:nth-child(even),
.profile-large #scheduleScroll .row:nth-child(even) {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.forecast .forecast-day:nth-child(n+4) {
  display: none;
}

/* Final top-half fit guards: keep the live clock/date block inside its column on every TV profile. */
.profile-small .time-date-block,
.profile-medium .time-date-block,
.profile-large .time-date-block {
  padding: 10px 18px;
  overflow: hidden;
}

.profile-small .digital-clock,
.profile-medium .digital-clock,
.profile-large .digital-clock {
  font-size: 54px;
  line-height: .92;
}

.profile-small .digital-clock small,
.profile-medium .digital-clock small,
.profile-large .digital-clock small {
  font-size: 13px;
}

.profile-small .time-date-block .english-date,
.profile-medium .time-date-block .english-date,
.profile-large .time-date-block .english-date {
  font-size: 18px;
  line-height: 1.05;
  margin: 6px 0 4px;
}

.profile-small .date-pair,
.profile-medium .date-pair,
.profile-large .date-pair {
  gap: 7px;
  font-size: 10px;
  line-height: 1.1;
}

.profile-small .date-pair span + span,
.profile-medium .date-pair span + span,
.profile-large .date-pair span + span {
  font-size: 13px;
}

.profile-small .time-pairs,
.profile-medium .time-pairs,
.profile-large .time-pairs {
  gap: 6px;
  margin-top: 5px;
  padding-top: 5px;
}

.profile-small .time-pairs span,
.profile-medium .time-pairs span,
.profile-large .time-pairs span {
  font-size: 8px;
  line-height: 1.1;
}

.profile-small .time-pairs strong,
.profile-medium .time-pairs strong,
.profile-large .time-pairs strong {
  color: #a02424;
  display: block;
  font-size: 14px;
  line-height: 1.05;
  white-space: nowrap;
}

.operation-footer { grid-template-columns:.8fr 1.2fr .9fr minmax(180px,1.5fr) .9fr .9fr 1.1fr; }

/* Sorek Large fit guards for Android TV: no clipped upscale and no Parasha title collision. */
.profile-large .parasha-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.profile-large .parasha-title-stack {
  overflow: hidden;
}

.profile-large .parasha-pair strong {
  display: block;
  line-height: 1.02;
}

.profile-large .parasha-pair > span {
  max-width: 190px;
  overflow: hidden;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Final Sorek Large readability pass. Keep true 1920x1080 fit, but raise type. */
.profile-large .identity-compact .shul-name {
  font-size: 52px;
}

.profile-large .rabbi-line {
  font-size: 15px;
}

.profile-large .rabbi-line strong {
  font-size: 14px;
}

.profile-large .digital-clock {
  font-size: 72px;
}

.profile-large .digital-clock small {
  font-size: 16px;
}

.profile-large .time-date-block .english-date {
  font-size: 25px;
}

.profile-large .date-pair {
  font-size: 13px;
}

.profile-large .date-pair span + span {
  font-size: 18px;
}

.profile-large .time-pairs span {
  font-size: 10px;
}

.profile-large .time-pairs strong {
  font-size: 19px;
}

.profile-large .mini-heading {
  font-size: 12px;
}

.profile-large .parasha-pair strong {
  font-size: 35px;
}

.profile-large .parasha-pair > span {
  max-width: 220px;
  font-size: 35px;
}

.profile-large .parasha-summary-static {
  font-size: 15px;
  line-height: 1.35;
}

.profile-large .data-panels .panel-title {
  font-size: 14px;
}

.profile-large .data-panels .row {
  min-height: 29px;
  font-size: 13px;
}

.profile-large .calendar-fact span,
.profile-large .calendar-body h3 {
  font-size: 11px;
}

.profile-large .calendar-fact strong {
  font-size: 13px;
}

.profile-large .calendar-fact small {
  font-size: 10px;
}

.profile-large .mini-event,
.profile-large .calendar-combined-event strong {
  font-size: 11px;
}

.profile-large .mini-event small,
.profile-large .calendar-combined-event small {
  font-size: 10px;
}

.profile-large .custom-events strong {
  font-size: 15px;
}

.profile-large .custom-events p {
  font-size: 11px;
}

.profile-large .weather-half .temperature {
  font-size: 36px;
}

.profile-large .weather-half .forecast-day {
  font-size: 10px;
}

.profile-large .weather-half .forecast-symbol {
  font-size: 16px;
}

.profile-large .donation-half span {
  font-size: 10px;
}

.profile-large .operation-item > span {
  font-size: 9px;
}

.profile-large .operation-item > strong {
  font-size: 11px;
}
