:root { --bg:#F4F5F7; --card:#FFFFFF; --ink:#16202E; --muted:#4A5563; --soft:#5A6472; --line:#E1E4E9; --accent:#1F4E8C; }
* { box-sizing: border-box; }
[x-cloak], [hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 Inter, system-ui, sans-serif; }
.he { font-family: 'Frank Ruhl Libre', serif; }
.wrap { max-width: 860px; margin: 0 auto; padding: 36px 16px 64px; display: flex; flex-direction: column; gap: 36px; }

.band { background: var(--accent); color: #FFFFFF; }
.band-inner { max-width: 860px; margin: 0 auto; padding: 14px 16px 44px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.bsd { align-self: flex-end; font-size: 14px; color: #B9CBE4; }
h1 { margin: 0; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 42px; line-height: 1.1; font-weight: 700; }
.band h1 { font-family: 'Frank Ruhl Libre', serif; font-size: 52px; line-height: 1.05; }
@media (max-width: 560px) { .band h1 { font-size: 38px; } }
.subtitle { font-size: 18px; color: #DCE6F3; }
.subtitle .he { font-size: 20px; }
.price-chips { max-width: 860px; margin: -22px auto 0; padding: 0 16px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.chip { background: #FFFFFF; border-radius: 999px; padding: 10px 20px; font-size: 16px; box-shadow: 0 2px 10px rgba(22, 32, 46, .12); }
.notice { text-align: center; color: var(--soft); margin: 0; }
.notice.error { color: #9B1C1C; }

.month { display: flex; flex-direction: column; gap: 12px; }
.month-head { display: flex; align-items: center; gap: 16px; padding: 4px 0; }
.ornament { flex: 1; display: flex; align-items: center; gap: 8px; }
.ornament span { flex: 1; height: 1px; background: #CDB98F; }
.ornament i { width: 7px; height: 7px; transform: rotate(45deg); background: #CDB98F; }
.month-head h2 { margin: 0; font-family: 'Frank Ruhl Libre', serif; font-size: 30px; font-weight: 700; }
.month-head .he { font-size: 32px; font-weight: 700; }

.week { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.week.past { opacity: .55; }
.when { width: 150px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.parsha { font-size: 24px; font-weight: 700; text-align: left; }
.hdate { font-size: 21px; font-weight: 500; color: #3D4652; text-align: left; }
.info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; font-weight: 600; color: #7A3D06; background: #FDF1E3; border-radius: 999px; padding: 3px 10px; }
.tag.chabad { color: #1F3F6E; background: #E6EEF8; }
.sponsor .name { font-size: 16px; font-weight: 600; }
.sponsor .reason { font-size: 15px; color: var(--muted); font-style: italic; }
.status { font-size: 15px; font-weight: 600; }
.status.open { color: var(--accent); }
.actions { display: flex; flex-direction: column; gap: 8px; width: 230px; }
@media (max-width: 560px) { .actions { width: 100%; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--accent); background: #fff; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--accent); color: #fff; }
.btn:hover { filter: brightness(0.95); }

.foot { margin: 0; text-align: center; font-size: 15px; color: var(--soft); }
.foot a { color: var(--accent); font-weight: 600; }

/* This week's kiddush page */
.band-inner.small { padding-bottom: 28px; }
.band-inner.small h1 { font-size: 40px; }
.card-page { align-items: center; gap: 20px; }
#card { width: 100%; max-width: 540px; height: auto; border-radius: 6px; box-shadow: 0 8px 30px rgba(22, 32, 46, .14); }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn.big { min-height: 48px; padding: 0 26px; font-size: 16px; gap: 10px; cursor: pointer; font-family: inherit; }
.back { font-size: 15px; font-weight: 600; color: var(--accent); }
