/* היכל אירית — visual themes. The default (no data-theme) is the light v3 board in board.css.
   A = מלכותי (regal), B = ירושלמי (Jerusalem), C = מודרני חם (warm modern).
   Switch: ?theme=a|b|c|light on the URL for a preview, or "עיצוב הלוח" in the admin settings for the default. */
.ric { display: none; }

/* =====================================================================
   A · מלכותי — bordeaux frame with fine gold lattice, cream hall, serif headings
   ===================================================================== */
html[data-theme="a"] {
  --paper: #F5ECDF; --card: #FFFCF7; --line: #E9DAC4; --line2: #F1E6D6;
  --ink: #2A1A1D; --ink2: #4C3A3C; --muted: #806C66; --gold-l: #C9974F; --cream-t: #FFF5E8; --gold-t: #EDC795;
  --bd-deep: #4E061B;
  --shadow: 0 1px 2px rgba(78,6,27,.06), 0 16px 36px rgba(78,6,27,.10);
}
html[data-theme="a"], html[data-theme="a"] body { background: #F5ECDF; }
[data-theme="a"] .stage { background: var(--paper); --bandT: 228px; --bandB: 168px; }
[data-theme="a"] .stage.landscape { padding: 34px 50px 24px; grid-template-rows: 160px 24px 1fr 132px; row-gap: 22px; column-gap: 32px; }
[data-theme="a"] .stage.portrait { --bandT: 386px; --bandB: 312px; }
[data-theme="a"] .bg { background:
    radial-gradient(1100px 520px at 50% 30%, rgba(255,255,255,.75), transparent 70%),
    linear-gradient(180deg, #F7EFE4 0%, #F4EADC 100%); }
[data-theme="a"] .bg-pattern { display: block; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2264%22 height=%22110.85%22 viewBox=%220 0 64 110.85%22%3E%3Cg opacity=%220.045%22%3E%3Cg fill=%22none%22 stroke=%22%238A1C3A%22 stroke-width=%220.9%22%3E%3Cpath d=%22M32.0,14.712499999999999L20.74,34.21L43.26,34.21ZM32.0,40.7125L20.74,21.21L43.26,21.21ZM0,70.13749999999999L-11.26,89.64L11.26,89.64ZM0,96.13749999999999L-11.26,76.64L11.26,76.64ZM64,70.13749999999999L52.74,89.64L75.26,89.64ZM64,96.13749999999999L52.74,76.64L75.26,76.64Z%22/%3E%3Cpath d=%22M32.0,40.7125L32.0,55.425M0,70.13749999999999L0,55.425M64,70.13749999999999L64,55.425M32.0,14.712499999999999L32.0,0M0,96.13749999999999L0,110.85M64,96.13749999999999L64,110.85%22 opacity=%22.55%22/%3E%3C/g%3E%3Cg fill=%22%238A1C3A%22%3E%3Ccircle cx=%220%22 cy=%2227.7125%22 r=%221.5%22/%3E%3Ccircle cx=%2264%22 cy=%2227.7125%22 r=%221.5%22/%3E%3Ccircle cx=%2232.0%22 cy=%2283.13749999999999%22 r=%221.5%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); background-size: 64px 110.85px; background-position: center; }
[data-theme="a"] .bg::before, [data-theme="a"] .bg::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; }
[data-theme="a"] .bg::before { top: 0; height: var(--bandT);
  background:
    linear-gradient(var(--gold-l), var(--gold-l)) left 0 bottom 0 / 100% 2px no-repeat,
    linear-gradient(rgba(233,174,98,.55), rgba(233,174,98,.55)) left 0 bottom 7px / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2264%22 height=%22110.85%22 viewBox=%220 0 64 110.85%22%3E%3Cg opacity=%220.17%22%3E%3Cg fill=%22none%22 stroke=%22%23E9AE62%22 stroke-width=%221.1%22%3E%3Cpath d=%22M32.0,14.712499999999999L20.74,34.21L43.26,34.21ZM32.0,40.7125L20.74,21.21L43.26,21.21ZM0,70.13749999999999L-11.26,89.64L11.26,89.64ZM0,96.13749999999999L-11.26,76.64L11.26,76.64ZM64,70.13749999999999L52.74,89.64L75.26,89.64ZM64,96.13749999999999L52.74,76.64L75.26,76.64Z%22/%3E%3Cpath d=%22M32.0,40.7125L32.0,55.425M0,70.13749999999999L0,55.425M64,70.13749999999999L64,55.425M32.0,14.712499999999999L32.0,0M0,96.13749999999999L0,110.85M64,96.13749999999999L64,110.85%22 opacity=%22.55%22/%3E%3C/g%3E%3Cg fill=%22%23E9AE62%22%3E%3Ccircle cx=%220%22 cy=%2227.7125%22 r=%221.5%22/%3E%3Ccircle cx=%2264%22 cy=%2227.7125%22 r=%221.5%22/%3E%3Ccircle cx=%2232.0%22 cy=%2283.13749999999999%22 r=%221.5%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center top / 64px 110.85px,
    radial-gradient(900px 260px at 50% 0%, rgba(160,40,70,.45), transparent 75%),
    linear-gradient(180deg, #5C0A21 0%, #660822 55%, #5A0920 100%);
  box-shadow: 0 6px 24px rgba(78,6,27,.18); }
[data-theme="a"] .bg::after { bottom: 0; top: auto; height: var(--bandB);
  background:
    linear-gradient(var(--gold-l), var(--gold-l)) left 0 top 0 / 100% 2px no-repeat,
    linear-gradient(rgba(233,174,98,.55), rgba(233,174,98,.55)) left 0 top 7px / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2264%22 height=%22110.85%22 viewBox=%220 0 64 110.85%22%3E%3Cg opacity=%220.17%22%3E%3Cg fill=%22none%22 stroke=%22%23E9AE62%22 stroke-width=%221.1%22%3E%3Cpath d=%22M32.0,14.712499999999999L20.74,34.21L43.26,34.21ZM32.0,40.7125L20.74,21.21L43.26,21.21ZM0,70.13749999999999L-11.26,89.64L11.26,89.64ZM0,96.13749999999999L-11.26,76.64L11.26,76.64ZM64,70.13749999999999L52.74,89.64L75.26,89.64ZM64,96.13749999999999L52.74,76.64L75.26,76.64Z%22/%3E%3Cpath d=%22M32.0,40.7125L32.0,55.425M0,70.13749999999999L0,55.425M64,70.13749999999999L64,55.425M32.0,14.712499999999999L32.0,0M0,96.13749999999999L0,110.85M64,96.13749999999999L64,110.85%22 opacity=%22.55%22/%3E%3C/g%3E%3Cg fill=%22%23E9AE62%22%3E%3Ccircle cx=%220%22 cy=%2227.7125%22 r=%221.5%22/%3E%3Ccircle cx=%2264%22 cy=%2227.7125%22 r=%221.5%22/%3E%3Ccircle cx=%2232.0%22 cy=%2283.13749999999999%22 r=%221.5%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center bottom / 64px 110.85px,
    radial-gradient(900px 240px at 50% 100%, rgba(160,40,70,.40), transparent 75%),
    linear-gradient(0deg, #560A1F 0%, #660822 100%);
  box-shadow: 0 -6px 24px rgba(78,6,27,.16); }
[data-theme="a"] .mode-shabbat .bg, [data-theme="a"] .mode-erev .bg { background:
    radial-gradient(1100px 520px at 50% 30%, rgba(255,250,240,.85), transparent 70%),
    linear-gradient(180deg, #F8EEE0 0%, #F5E8D6 100%); }

/* header on bordeaux */
[data-theme="a"] .bh { color: var(--gold-t); opacity: .8; }
[data-theme="a"] .flag { height: 96px; padding: 9px 14px; background: #FFFBF4; border-radius: 16px;
  box-shadow: 0 0 0 2px var(--gold-l), 0 0 0 7px rgba(233,174,98,.16), 0 10px 26px rgba(0,0,0,.28); }
[data-theme="a"] .brand { gap: 30px; }
[data-theme="a"] .brand-text { border-right-color: rgba(237,199,149,.35); }
[data-theme="a"] h1 { color: var(--cream-t); font-weight: 700; font-size: 56px; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
[data-theme="a"] .sub { color: var(--gold-t); }
[data-theme="a"] .hdate { color: var(--cream-t); font-weight: 600; }
[data-theme="a"] .dayline { color: var(--gold-t); }
[data-theme="a"] .chip { background: rgba(247,139,41,.16); color: #FFE2BE; border: 1px solid rgba(233,174,98,.55); }
[data-theme="a"] .chip.soft { background: rgba(255,255,255,.07); color: var(--gold-t); border-color: rgba(237,199,149,.35); }
[data-theme="a"] .clock { color: var(--cream-t); font-weight: 200; }
[data-theme="a"] .clock .secs { color: #F9A95E; }
[data-theme="a"] .gdate { color: var(--gold-t); }

/* the pill sits on the gold edge of the frame */
[data-theme="a"] .rule > span { background: none; }
[data-theme="a"] .nowpill { background: #FFF9F0; color: #660822; border: 1.5px solid var(--gold-l); box-shadow: 0 0 0 5px rgba(245,236,223,.9), 0 6px 18px rgba(78,6,27,.18); font-weight: 600; }
[data-theme="a"] .nowpill.live { background: #F78B29; color: #fff; border-color: #F78B29; box-shadow: 0 0 0 5px rgba(245,236,223,.9), 0 6px 20px rgba(247,139,41,.35); }

/* cards: warm paper, double gold hairline, soft depth */
[data-theme="a"] .panel { background: var(--card); border: 1px solid #E5D3B8; border-radius: 22px;
  box-shadow: inset 0 0 0 6px var(--card), inset 0 0 0 7px rgba(201,151,79,.30), 0 1px 2px rgba(78,6,27,.06), 0 18px 40px rgba(78,6,27,.11); }
[data-theme="a"] .ptitle { font-weight: 700; font-size: 40px; color: #660822; padding: 24px 20px 22px; border-bottom: 0; }
[data-theme="a"] .ptitle::after { width: 200px; height: 14px; margin-left: -100px; bottom: -4px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%2214%22 viewBox=%220 0 200 14%22%3E%3Cg fill=%22none%22 stroke=%22%23C9974F%22 stroke-width=%221.4%22%3E%3Cpath d=%22M8 7H78M122 7H192%22 /%3E%3Cpath d=%22M84 7h8M108 7h8%22/%3E%3C/g%3E%3Cpath d=%22M100 1.5 105.5 7 100 12.5 94.5 7z%22 fill=%22%23F78B29%22/%3E%3Ccircle cx=%2280%22 cy=%227%22 r=%222%22 fill=%22%23C9974F%22/%3E%3Ccircle cx=%22120%22 cy=%227%22 r=%222%22 fill=%22%23C9974F%22/%3E%3C/svg%3E") center / 200px 14px no-repeat; }
[data-theme="a"] .ptitle small { color: var(--muted); }
[data-theme="a"] .plist { padding: 16px 22px 18px; }
[data-theme="a"] .pgroup { font-family: var(--serif); font-size: 24px; color: #8A1C3A; }
[data-theme="a"] .pgroup::before, [data-theme="a"] .pgroup::after { background: linear-gradient(90deg, transparent, #DCC5A3); }
[data-theme="a"] .pgroup::after { background: linear-gradient(270deg, transparent, #DCC5A3); }
[data-theme="a"] .prow { border-radius: 14px; border: 1px solid transparent; }
[data-theme="a"] .prow + .prow:not(.next):not(.live) { box-shadow: 0 -1px 0 #F0E4D2; }
[data-theme="a"] .prow .pt { font-weight: 600; color: #660822; }
[data-theme="a"] .prow.next, [data-theme="a"] .prow.live { background: linear-gradient(270deg, #FCEBD5 0%, #FFF8EE 100%); border-color: #F2D2A8; box-shadow: 0 4px 14px rgba(201,151,79,.16); }
[data-theme="a"] .prow.next + .prow, [data-theme="a"] .prow.live + .prow { box-shadow: none; }
[data-theme="a"] .zrow .zt { color: #660822; font-weight: 600; }
[data-theme="a"] .zrow + .zrow:not(.next) { box-shadow: 0 -1px 0 #F3E8D8; border-radius: 0; }
[data-theme="a"] .zrow.next { background: linear-gradient(270deg, #FCEBD5 0%, #FFF8EE 100%); border-radius: 12px; }
[data-theme="a"] .zrow.next + .zrow { box-shadow: none; }

/* slides */
[data-theme="a"] .slide.text, [data-theme="a"] .slide.list { background: radial-gradient(ellipse at 50% 0%, rgba(247,139,41,.08), transparent 60%), var(--card); }
[data-theme="a"] .slide.text::before { top: 26px; right: 26px; bottom: 26px; left: 26px; border: 1px solid rgba(201,151,79,.45); border-radius: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2244%22 height=%2244%22 viewBox=%220 0 44 44%22%3E%3Cg fill=%22none%22 stroke=%22%23C9974F%22 stroke-width=%221.3%22%3E%3Cpath d=%22M2 30V12a10 10 0 0 1 10-10h18%22/%3E%3Cpath d=%22M8 26V16a8 8 0 0 1 8-8h10%22 opacity=%22.6%22/%3E%3C/g%3E%3Cpath d=%22M12 12l3 0 0 3-3 0z%22 fill=%22%23F78B29%22 transform=%22rotate%2845 13.5 13.5%29%22/%3E%3C/svg%3E") right -1px top -1px / 44px no-repeat; box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px rgba(201,151,79,.25); }
[data-theme="a"] .slide.text::after { display: block; content: ""; position: absolute; left: 26px; bottom: 26px; width: 44px; height: 44px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2244%22 height=%2244%22 viewBox=%220 0 44 44%22%3E%3Cg fill=%22none%22 stroke=%22%23C9974F%22 stroke-width=%221.3%22%3E%3Cpath d=%22M2 30V12a10 10 0 0 1 10-10h18%22/%3E%3Cpath d=%22M8 26V16a8 8 0 0 1 8-8h10%22 opacity=%22.6%22/%3E%3C/g%3E%3Cpath d=%22M12 12l3 0 0 3-3 0z%22 fill=%22%23F78B29%22 transform=%22rotate%2845 13.5 13.5%29%22/%3E%3C/svg%3E") center / 44px no-repeat; transform: rotate(180deg); pointer-events: none; }
[data-theme="a"] .orn { color: var(--gold-l); }
[data-theme="a"] .s-title { color: #660822; }
[data-theme="a"] .s-note { background: #FBF1E3; border-color: #EAD3B0; color: #660822; }
[data-theme="a"] .slide.photo { background: #F3EADC; }
[data-theme="a"] .ph-cap { background: rgba(255,252,247,.95); border-top-color: #E9D8BE; }
[data-theme="a"] .ph-cap::before { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%2214%22 viewBox=%220 0 200 14%22%3E%3Cg fill=%22none%22 stroke=%22%23C9974F%22 stroke-width=%221.4%22%3E%3Cpath d=%22M8 7H78M122 7H192%22 /%3E%3Cpath d=%22M84 7h8M108 7h8%22/%3E%3C/g%3E%3Cpath d=%22M100 1.5 105.5 7 100 12.5 94.5 7z%22 fill=%22%23F78B29%22/%3E%3Ccircle cx=%2280%22 cy=%227%22 r=%222%22 fill=%22%23C9974F%22/%3E%3Ccircle cx=%22120%22 cy=%227%22 r=%222%22 fill=%22%23C9974F%22/%3E%3C/svg%3E") center / 120px 14px no-repeat; width: 120px; height: 14px; }
[data-theme="a"] .dots { bottom: 40px; }
[data-theme="a"] .dots i { background: #E2D0B6; }
[data-theme="a"] .progress { background: #F1E4D1; }
[data-theme="a"] .l-k { color: #660822; }
[data-theme="a"] .qr-box { box-shadow: 0 0 0 2px #E5CFA9, 0 0 0 8px #FBF1E3, 0 14px 34px rgba(78,6,27,.12); }

/* footer on bordeaux */
[data-theme="a"] .fbox { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid rgba(233,174,98,.45); border-radius: 18px; box-shadow: inset 0 0 0 5px rgba(0,0,0,0), inset 0 1px 0 rgba(255,255,255,.06); }
[data-theme="a"] .mode-shabbat .shabbatbox, [data-theme="a"] .mode-erev .shabbatbox { background: linear-gradient(90deg, rgba(247,139,41,.06), rgba(247,139,41,.16)); border-color: rgba(247,170,98,.65); }
[data-theme="a"] .mode-shabbat .prayers, [data-theme="a"] .mode-erev .prayers { border-color: #E5C79A; }
[data-theme="a"] .sb-head { border-left-color: rgba(237,199,149,.3); }
[data-theme="a"] .sb-k, [data-theme="a"] .sb-l { color: var(--gold-t); }
[data-theme="a"] .sb-p, [data-theme="a"] .sb-t { color: var(--cream-t); }
[data-theme="a"] .sb-item svg { width: 58px; height: 58px; padding: 8px; border-radius: 50%; background: #FFF6EA; box-shadow: 0 0 0 2px rgba(233,174,98,.6); }
[data-theme="a"] .cm-icon { background: #FFF6EA; border: 0; box-shadow: 0 0 0 2px rgba(233,174,98,.6); }
[data-theme="a"] .cm-k { color: var(--gold-t); }
[data-theme="a"] .cm-v { color: var(--cream-t); }
[data-theme="a"] .cm-v small { color: rgba(255,245,232,.68); }
[data-theme="a"] .status { color: rgba(255,245,232,.55); }
[data-theme="a"] .portrait .brand-text { border-right: 0; }
[data-theme="a"] .prow.live ~ .prow.next { background: #FBF5EC; border-color: #EFE0CB; box-shadow: none; }

/* =====================================================================
   B · ירושלמי — warm Jerusalem stone in golden light, frosted-glass cards
   ===================================================================== */
html[data-theme="b"] { --card: rgba(255,252,247,.74); --line: rgba(120,80,40,.14); --line2: rgba(120,80,40,.10);
  --ink: #2B1D1A; --ink2: #4D3A33; --muted: #7D6656; --glass: rgba(255,252,247,.64); --glass-b: rgba(255,255,255,.75);
  --gshadow: inset 0 1px 0 rgba(255,255,255,.85), 0 2px 6px rgba(90,50,20,.06), 0 22px 50px rgba(90,50,20,.16); }
html[data-theme="b"], html[data-theme="b"] body { background: #EADBC4; }
[data-theme="b"] .stage { background: #EADBC4; }
[data-theme="b"] .bg { background: #EADBC4; }
[data-theme="b"] .bg::before, [data-theme="b"] .bg::after { display: none; }
[data-theme="b"] .bg-glow { display: block; position: absolute; inset: -24px; animation: none; opacity: 1;
  background: url("images/bg_stone.jpg") center / cover no-repeat; filter: blur(2px) saturate(1.05) contrast(1.05); }
[data-theme="b"] .bg-pattern { display: block; position: absolute; inset: 0;
  background:
    radial-gradient(1400px 700px at 85% -10%, rgba(255,214,150,.42), transparent 65%),
    radial-gradient(1000px 600px at 0% 110%, rgba(140,60,40,.10), transparent 70%),
    linear-gradient(180deg, rgba(255,248,238,.34) 0%, rgba(250,238,222,.16) 55%, rgba(236,214,186,.14) 100%); }
[data-theme="b"] .mode-shabbat .bg-pattern, [data-theme="b"] .mode-erev .bg-pattern { background:
    radial-gradient(1400px 700px at 85% -10%, rgba(255,200,130,.50), transparent 65%),
    linear-gradient(180deg, rgba(255,246,232,.48) 0%, rgba(250,234,214,.30) 100%); }

/* glass surfaces */
[data-theme="b"] .top, [data-theme="b"] .panel, [data-theme="b"] .fbox {
  background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--gshadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); }
[data-theme="b"] .top { border-radius: 28px; padding: 0 34px 0 30px; }
[data-theme="b"] .portrait .top { padding: 18px 34px 22px; }
[data-theme="b"] .panel { border-radius: 26px; }
[data-theme="b"] .fbox { border-radius: 24px; }
[data-theme="b"] .bh { color: #660822; opacity: .7; top: 8px; right: 30px; font-size: 19px; }

[data-theme="b"] .flag { height: 98px; filter: drop-shadow(0 6px 14px rgba(102,8,34,.18)); }
[data-theme="b"] .brand-text { border-right-color: rgba(102,8,34,.16); }
[data-theme="b"] h1 { color: #660822; font-weight: 800; }
[data-theme="b"] .sub, [data-theme="b"] .dayline, [data-theme="b"] .gdate { color: #7A5F50; }
[data-theme="b"] .hdate { color: #3A2420; }
[data-theme="b"] .clock { color: #660822; font-weight: 300; }
[data-theme="b"] .chip.soft { background: rgba(255,243,231,.85); }

[data-theme="b"] .rule > span { background: linear-gradient(90deg, transparent, rgba(255,255,255,.85) 15%, rgba(255,255,255,.85) 85%, transparent); height: 1.5px; }
[data-theme="b"] .nowpill { background: rgba(255,252,247,.86); border-color: rgba(247,139,41,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

[data-theme="b"] .ptitle { border-bottom-color: rgba(120,80,40,.12); }
[data-theme="b"] .ptitle small { color: #8A7262; }
[data-theme="b"] .prow .pn { color: #2B1D1A; }
[data-theme="b"] .prow.next, [data-theme="b"] .prow.live, [data-theme="b"] .zrow.next { background: rgba(255,236,214,.85); box-shadow: 0 0 0 1px rgba(247,139,41,.22); }
[data-theme="b"] .prow.past, [data-theme="b"] .zrow.past { opacity: .42; }
[data-theme="b"] .pgroup::before, [data-theme="b"] .pgroup::after { background: rgba(120,80,40,.18); }
[data-theme="b"] .zrow .zn { color: #4D3A33; }

[data-theme="b"] .slides { background: var(--glass); }
[data-theme="b"] .slide.text, [data-theme="b"] .slide.list { background: radial-gradient(ellipse at 50% 0%, rgba(255,214,160,.30), transparent 60%), rgba(255,252,247,.55); }
[data-theme="b"] .slide.text::before { border-color: rgba(102,8,34,.12); }
[data-theme="b"] .slide.photo { background: rgba(244,232,216,.6); }
[data-theme="b"] .ph-cap { background: rgba(255,252,247,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
[data-theme="b"] .s-note { background: rgba(102,8,34,.07); border-color: rgba(102,8,34,.14); }
[data-theme="b"] .dots i { background: rgba(120,80,40,.22); }
[data-theme="b"] .progress { background: rgba(120,80,40,.12); }

[data-theme="b"] .sb-head { border-left-color: rgba(120,80,40,.16); }
[data-theme="b"] .cm-icon { background: rgba(255,243,231,.9); }
[data-theme="b"] .mode-shabbat .shabbatbox, [data-theme="b"] .mode-erev .shabbatbox { background: linear-gradient(90deg, rgba(255,252,247,.72), rgba(255,236,214,.82)); }
[data-theme="b"] .status { color: rgba(80,50,30,.55); }

/* =====================================================================
   C · מודרני חם — a bordeaux side column (clock + prayer times), light main area, icons
   ===================================================================== */
html[data-theme="c"] { --paper: #F6F2EE; --card: #FFFFFF; --line: #EEE6E0; --line2: #F4EEEA;
  --shadow: 0 1px 2px rgba(60,20,30,.04), 0 12px 32px rgba(60,20,30,.08); --side: #660822; }
html[data-theme="c"], html[data-theme="c"] body { background: #F6F2EE; }
[data-theme="c"] .stage { background: var(--paper); }
[data-theme="c"] .bg { background: radial-gradient(1200px 700px at 30% 0%, #FFFFFF, transparent 70%), linear-gradient(180deg, #F8F5F2, #F3EEE9); }
[data-theme="c"] .bg::after { display: none; }
[data-theme="c"] .bg::before { top: 0; bottom: 0; left: auto; right: 0; height: auto; width: 590px;
  background:
    radial-gradient(520px 420px at 70% 0%, rgba(190,60,90,.35), transparent 70%),
    radial-gradient(600px 500px at 30% 100%, rgba(247,139,41,.16), transparent 70%),
    linear-gradient(165deg, #7A0E2D 0%, #660822 45%, #4C0619 100%);
  box-shadow: -10px 0 40px rgba(76,6,25,.18); }
[data-theme="c"] .mode-shabbat .bg, [data-theme="c"] .mode-erev .bg { background: radial-gradient(1200px 700px at 30% 0%, #FFFDF9, transparent 70%), linear-gradient(180deg, #FAF4EE, #F5ECE3); }

/* landscape: the header dissolves into the grid so the clock can live in the side column */
[data-theme="c"] .stage.landscape { padding: 30px 40px 30px 44px; grid-template-columns: 532px 1fr 404px; column-gap: 46px; row-gap: 24px;
  grid-template-rows: 136px 168px 1fr 138px;
  grid-template-areas: "brand day rule" "clock slides zmanim" "prayers slides zmanim" "prayers bottom bottom"; }
[data-theme="c"] .landscape .top { display: contents; }
[data-theme="c"] .landscape .brand { grid-area: brand; position: relative; z-index: 1; gap: 22px; }
[data-theme="c"] .landscape .day { grid-area: day; position: relative; z-index: 1; text-align: right; padding: 0 6px; align-self: center; }
[data-theme="c"] .landscape .chips { justify-content: flex-start; }
[data-theme="c"] .landscape .clockbox { grid-area: clock; position: relative; z-index: 1; justify-self: stretch; align-self: center; min-width: 0; text-align: center;
  padding: 18px 0 16px; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
[data-theme="c"] .landscape .gdate { text-align: center; }
[data-theme="c"] .landscape .rule { grid-area: rule; justify-content: flex-start; align-self: center; }
[data-theme="c"] .landscape .rule > span { display: none; }
[data-theme="c"] .landscape .prayers { background: transparent; border: 0; box-shadow: none; border-radius: 0; }

/* side column type */
[data-theme="c"] .bh { color: rgba(255,255,255,.6); opacity: 1; right: 26px; top: 16px; font-size: 19px; }
[data-theme="c"] .flag { height: 84px; padding: 8px 12px; background: #fff; border-radius: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
[data-theme="c"] .brand-text { border-right: 0; padding-right: 0; }
[data-theme="c"] h1 { color: #fff; font-size: 44px; font-weight: 700; }
[data-theme="c"] .sub { color: rgba(255,255,255,.72); font-size: 23px; margin-top: 6px; }
[data-theme="c"] .clock { color: #fff; font-weight: 200; font-size: 132px; letter-spacing: -3px; }
[data-theme="c"] .clock .secs { color: #FFB46E; font-weight: 300; }
[data-theme="c"] .gdate { color: rgba(255,255,255,.75); font-size: 26px; margin-top: 12px; }

[data-theme="c"] .landscape .ptitle, [data-theme="c"] .portrait .prayers .ptitle { color: #fff; border-bottom-color: rgba(255,255,255,.12); text-align: right; padding: 8px 16px 18px; font-size: 34px; }
[data-theme="c"] .landscape .prayers .ptitle::after, [data-theme="c"] .portrait .prayers .ptitle::after { left: auto; right: 16px; margin-left: 0; width: 44px; }
[data-theme="c"] .prayers .plist { gap: 16px; padding: 16px 0 30px; justify-content: center; }
[data-theme="c"] .prayers .plist.dense { gap: 4px; justify-content: space-evenly; }
[data-theme="c"] .prayers .pgroup { color: rgba(255,255,255,.7); font-size: 21px; margin: 8px 4px 0; }
[data-theme="c"] .prayers .pgroup::before, [data-theme="c"] .prayers .pgroup::after { background: rgba(255,255,255,.16); }
[data-theme="c"] .prow { justify-content: flex-start; gap: 20px; padding: 15px 18px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); }
[data-theme="c"] .prow .pn { flex: 1; color: #fff; font-weight: 500; font-size: 40px; }
[data-theme="c"] .prow .pt { color: #fff; font-weight: 600; font-size: 54px; }
[data-theme="c"] .prow.star .pn { color: #fff; }
[data-theme="c"] .prow .ric { display: grid; place-items: center; flex: 0 0 auto; width: 62px; height: 62px; border-radius: 18px; background: rgba(255,255,255,.10); color: #fff; }
[data-theme="c"] .prow .ric svg { width: 34px; height: 34px; }
[data-theme="c"] .prow.past { opacity: .45; }
[data-theme="c"] .prow.next, [data-theme="c"] .prow.live { background: rgba(255,255,255,.13); border-color: rgba(247,139,41,.75); box-shadow: 0 10px 30px rgba(30,0,10,.25), inset 0 0 0 1px rgba(247,139,41,.25); }
[data-theme="c"] .prow.next .ric, [data-theme="c"] .prow.live .ric { background: #F78B29; color: #fff; box-shadow: 0 6px 16px rgba(247,139,41,.4); }
[data-theme="c"] .prow.next::before, [data-theme="c"] .prow.live::before { display: none; }
[data-theme="c"] .prow .in { left: 20px; top: 0; font-size: 19px; background: #F78B29; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
[data-theme="c"] .prow.live ~ .prow.next { background: rgba(255,255,255,.08); }
[data-theme="c"] .prow.live ~ .prow.next .in { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }
[data-theme="c"] .prow.live .pt { color: #fff; }
[data-theme="c"] .dense .prow { padding: 7px 16px; }
[data-theme="c"] .dense .prow .ric { width: 50px; height: 50px; border-radius: 14px; }
[data-theme="c"] .dense .prow .ric svg { width: 28px; height: 28px; }
[data-theme="c"] .dense .prow .pn { font-size: 34px; }
[data-theme="c"] .dense .prow .pt { font-size: 44px; }
[data-theme="c"] .prayers .empty { color: rgba(255,255,255,.7); }

/* main area */
[data-theme="c"] .landscape .hdate { color: #2A1A1E; font-size: 54px; }
[data-theme="c"] .landscape .dayline { color: #7C6E72; font-size: 28px; }
[data-theme="c"] .panel { border-radius: 30px; border: 1px solid #EFE7E1; }
[data-theme="c"] .zmanim .ptitle, [data-theme="c"] .landscape .zmanim .ptitle { color: #660822; text-align: right; padding: 20px 26px 16px; font-size: 32px; }
[data-theme="c"] .zmanim .ptitle::after { left: auto; right: 26px; margin-left: 0; width: 40px; }
[data-theme="c"] .zlist { padding: 8px 14px 12px; }
[data-theme="c"] .zrow { justify-content: flex-start; align-items: center; gap: 14px; padding: 4px 12px; }
[data-theme="c"] .zrow .zn { flex: 1; font-size: 27px; color: #4A3D41; }
[data-theme="c"] .zrow .zt { font-size: 32px; color: #660822; }
[data-theme="c"] .zrow .ric { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; background: #FFF3E7; color: #D9731C; }
[data-theme="c"] .zrow .ric svg { width: 25px; height: 25px; }
[data-theme="c"] .zrow.next { background: #FFF3E7; }
[data-theme="c"] .zrow.next .ric { background: #F78B29; color: #fff; }
[data-theme="c"] .zrow.next::before { display: none; }

[data-theme="c"] .slide.text, [data-theme="c"] .slide.list { background: radial-gradient(ellipse at 100% 0%, rgba(247,139,41,.08), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(102,8,34,.05), transparent 55%), #fff; }
[data-theme="c"] .slide.text::before { border: 0; }
[data-theme="c"] .orn { font-size: 0; letter-spacing: 0; margin-bottom: 28px; }
[data-theme="c"] .orn::before { content: ""; display: inline-block; width: 64px; height: 6px; border-radius: 6px; background: #F78B29; }
[data-theme="c"] .s-title { font-family: var(--sans); font-weight: 800; letter-spacing: -.5px; }
[data-theme="c"] .s-note { border-radius: 16px; background: #F7ECEF; border: 0; }
[data-theme="c"] .ph-cap { font-family: var(--sans); font-weight: 700; }
[data-theme="c"] .fbox { border-radius: 28px; border: 1px solid #EFE7E1; }
[data-theme="c"] .landscape .bottom { grid-template-columns: 1.15fr 1fr; gap: 28px; }
[data-theme="c"] .landscape .shabbatbox { padding: 0 24px; gap: 18px; }
[data-theme="c"] .landscape .sb-head { padding-left: 18px; }
[data-theme="c"] .landscape .sb-items { gap: 12px; }
[data-theme="c"] .landscape .sb-item { gap: 12px; }
[data-theme="c"] .landscape .sb-item svg { width: 54px; height: 54px; padding: 9px; border-radius: 16px; background: #FFF3E7; }
[data-theme="c"] .landscape .sb-t { font-size: 46px; }
[data-theme="c"] .landscape .sb-p { font-size: 38px; }
[data-theme="c"] .cm-icon { border-radius: 20px; border: 0; }
[data-theme="c"] .status { left: 44px; }
[data-theme="c"] .mode-shabbat .prayers, [data-theme="c"] .mode-erev .prayers { box-shadow: none; }

/* portrait: bordeaux header band, prayer times in a bordeaux card */
[data-theme="c"] .stage.portrait .top { position: relative; }
[data-theme="c"] .stage.portrait .prayers { background: linear-gradient(165deg, #7A0E2D 0%, #660822 50%, #4C0619 100%); border: 0; padding: 18px 16px 10px; }
[data-theme="c"] .stage.portrait .day .hdate { color: #fff; }
[data-theme="c"] .stage.portrait .day .dayline { color: rgba(255,255,255,.75); }
[data-theme="c"] .stage.portrait .prow .pn { font-size: 34px; }
[data-theme="c"] .stage.portrait .prow .pt { font-size: 44px; }
[data-theme="c"] .stage.portrait .prow .ric { width: 50px; height: 50px; border-radius: 14px; }
[data-theme="c"] .stage.portrait .prow { gap: 14px; padding: 10px 12px; }
[data-theme="c"] .stage.portrait .bg::before { left: 0; right: 0; width: auto; bottom: auto; height: 383px; box-shadow: 0 10px 40px rgba(76,6,25,.18); }
[data-theme="c"] .stage.portrait .nowpill { box-shadow: 0 0 0 5px rgba(246,242,238,.9), 0 6px 18px rgba(76,6,25,.2); }
[data-theme="c"] .prow.live ~ .prow.next { border-color: rgba(255,255,255,.16); box-shadow: none; }
[data-theme="c"] .prow.live ~ .prow.next .ric { background: rgba(255,255,255,.16); box-shadow: none; }

/* the "קורה עכשיו" sheet follows the theme's head */
[data-theme="a"] .ns-head, [data-theme="c"] .ns-head { background: linear-gradient(170deg, #761030 0%, #660822 60%, #560A1F 100%); border-bottom: 2px solid #C9974F; }
[data-theme="c"] .ns-head { border-bottom-color: #F78B29; }
[data-theme="a"] .ns-card, [data-theme="c"] .ns-card { border-top: 0; }
[data-theme="a"] .ns-head h2, [data-theme="c"] .ns-head h2 { color: #FFF5E8; }
[data-theme="a"] .ns-hsub { color: #EDC795; }
[data-theme="c"] .ns-hsub { color: rgba(255,255,255,.75); }
[data-theme="a"] .ns-x, [data-theme="c"] .ns-x { background: rgba(255,255,255,.14); color: #fff; }
[data-theme="a"] .ns-body { background: #F7EFE4; }
[data-theme="a"] .ns-head h2 { font-weight: 700; }
[data-theme="c"] .ns-body { background: #F6F2EE; }
[data-theme="b"] .ns-card { background: rgba(255,252,247,.86); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); }
[data-theme="b"] .ns-head, [data-theme="b"] .ns-foot { background: rgba(255,255,255,.55); }
[data-theme="b"] .ns-body { background: rgba(250,242,232,.6); }
[data-theme="a"] .nowbar, [data-theme="c"] .nowbar { background: linear-gradient(180deg, #6A0B26, #5C0921); border-top: 0; border-bottom: 2px solid #C9974F; }
[data-theme="c"] .nowbar { border-bottom-color: #F78B29; }
[data-theme="a"] .nowbar-txt, [data-theme="c"] .nowbar-txt, [data-theme="a"] .nowbar.live .nowbar-txt, [data-theme="c"] .nowbar.live .nowbar-txt { color: #FFF5E8; }
[data-theme="b"] .nowbar { background: rgba(255,252,247,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
