/* Shoavei Mayim — public site. Colours from the shul's current site: navy #222C64, amber #DA7900. */
@font-face { font-family: 'Noto Sans Hebrew'; src: url('fonts/NotoSansHebrew.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
:root {
  --navy: #222C64; --navy-d: #171e47; --navy-l: #2f3a7a; --amber: #DA7900; --amber-d: #b86500; --amber-s: #fdf1e2;
  --ink: #1b2033; --muted: #5d6478; --line: #e4e2dc; --bg: #f7f5f0; --card: #ffffff; --ok: #1f7a4d;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --he: 'Noto Sans Hebrew', 'Arial Hebrew', 'David', sans-serif;
  --r: 14px; --sh: 0 1px 2px rgba(23,30,71,.06), 0 6px 20px rgba(23,30,71,.07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--amber-d); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.he { font-family: var(--he); direction: rtl; unicode-bidi: isolate; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }

/* header */
.site-head { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: #e9ebf6; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 9px 12px; border-radius: 9px; letter-spacing: .01em; }
.nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--amber); border-radius: 9px 9px 2px 2px; }
.menu-btn { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; padding: 8px 12px; font: 600 .95rem var(--sans); }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; gap: 8px; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-d); flex-direction: column; align-items: stretch; padding: 8px 12px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 12px; font-size: 1.02rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); border-radius: 4px; }
  .brand img { height: 40px; }
}

/* hero */
.hero { position: relative; color: #fff; background: var(--navy) url('img/hero-aron-wide.jpg') center 58% / cover no-repeat; } /* Oct 27: joshua's aron kodesh photo (old panorama kept as img/shul.jpg) */
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(23,30,71,.94) 0%, rgba(34,44,100,.8) 40%, rgba(34,44,100,.28) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
.hero .he-name { text-align: left; font-size: 1.35rem; color: #f6c27f; font-weight: 700; margin: 0 0 4px; }
.hero h1 { font: 700 clamp(2.2rem, 5vw, 3.4rem)/1.05 var(--serif); margin: 0 0 12px; letter-spacing: .01em; }
.hero .sub { color: #d9ddf0; margin: 0 0 20px; font-size: 1.05rem; }
.today-line { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: .98rem; color: #eef0fa; }
.today-line .dot { opacity: .5; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--amber); color: #fff; border-radius: 999px; padding: 3px 11px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.pill.soft { background: rgba(255,255,255,.14); color: #fff; }
.pill.light { background: var(--amber-s); color: var(--amber-d); }
.next-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px 24px; box-shadow: 0 18px 50px rgba(0,0,0,.28); border-top: 5px solid var(--amber); }
.next-card .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.next-card .what { font: 700 1.5rem/1.2 var(--serif); margin: 6px 0 2px; color: var(--navy); }
.next-card .time { font: 700 3.2rem/1 var(--serif); color: var(--navy); letter-spacing: -.01em; }
.next-card .time small { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.next-card .in { margin-top: 6px; color: var(--amber-d); font-weight: 700; }
.next-card .then { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.next-card .then b { color: var(--ink); }

/* sections & cards */
main { display: block; }
.section { padding: 34px 0; }
.section.tight { padding-top: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 20px 22px; border: 1px solid #ece9e1; min-width: 0; }
.card h2, .card h3 { font: 700 1.25rem/1.25 var(--serif); color: var(--navy); margin: 0 0 4px; }
.card .cap { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.eyebrow { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--amber-d); font-weight: 800; margin: 0 0 4px; }
.page-head { background: var(--navy); color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(218,121,0,.13); }
.page-head h1 { font: 700 clamp(1.8rem, 4vw, 2.5rem)/1.1 var(--serif); margin: 0 0 6px; position: relative; z-index: 1; }
.page-head p { margin: 0; color: #d6dbf0; position: relative; z-index: 1; max-width: 760px; }
.page-head .he { text-align: left; color: #f6c27f; font-weight: 700; display: block; margin-bottom: 4px; position: relative; z-index: 1; }

/* time lists */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #e7e4dc; }
.tl li:last-child { border-bottom: 0; }
.tl .l { color: var(--ink); }
.tl .l small { display: block; color: var(--muted); font-size: .8rem; }
.tl .t { font: 700 1.08rem var(--serif); color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl li.past .l, .tl li.past .t { color: #a3a7b5; }
.tl li.next { background: var(--amber-s); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 9px; border-bottom-color: transparent; }
.tl li.next .t { color: var(--amber-d); }
.tl li.zman .t { font-weight: 600; }
.tl li.sub { padding-top: 4px; }
.tl .grp { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; padding: 14px 0 4px; border: 0; }
.shabbos-card { background: linear-gradient(180deg, #fff 0%, #fff 70%, #fdf6ec 100%); border-top: 5px solid var(--navy); }
.shabbos-card .parsha { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.shabbos-card .parsha .he { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.note { background: var(--amber-s); border-left: 4px solid var(--amber); padding: 10px 12px; border-radius: 8px; font-size: .93rem; margin-top: 12px; }
.note.navy { background: #eef0f8; border-left-color: var(--navy); }

/* announcements */
.ann { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ann li { padding: 14px 16px; border-radius: 12px; background: #faf9f6; border: 1px solid #eeebe3; }
.ann li b { color: var(--navy); }
.ann .when { display: block; font-size: .8rem; color: var(--amber-d); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.empty { color: var(--muted); font-style: italic; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: var(--r); padding: 18px 18px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--sh); border: 1px solid #ece9e1; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(23,30,71,.12); color: var(--ink); }
.tile .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.tile b { font: 700 1.1rem var(--serif); color: var(--navy); }
.tile span { color: var(--muted); font-size: .92rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--navy); background: #fff; color: var(--navy); padding: 9px 16px; border-radius: 10px; font: 700 .95rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #f0f2f9; color: var(--navy); }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-l); color: #fff; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn.amber:hover { background: var(--amber-d); }
.btn[disabled] { opacity: .5; cursor: default; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* weekly schedule */
.weekbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.weekbar h2 { font: 700 1.35rem var(--serif); color: var(--navy); margin: 0; }
.weekbar .he { color: var(--muted); font-size: 1rem; margin-left: 8px; }
.sched-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--sh); border: 1px solid #ece9e1; }
table.sched { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 900px; table-layout: fixed; }
.sched col.lab { width: 200px; }
.sched th, .sched td { padding: 9px 10px; text-align: center; border-bottom: 1px solid #efece5; }
.sched thead th { background: var(--navy); color: #fff; font-weight: 700; vertical-align: top; padding: 12px 8px; }
.sched thead th .d { display: block; font: 700 1.02rem var(--serif); }
.sched thead th .hd { display: block; font-size: .78rem; color: #c9cfe8; font-weight: 500; margin-top: 2px; }
.sched thead th .bd { display: block; margin-top: 6px; }
.sched thead th .bd .pill { font-size: .7rem; padding: 2px 8px; margin: 2px 1px; }
.sched thead th.today { background: var(--amber); }
.sched thead th.today .hd { color: #fff3e3; }
.sched thead th.corner { text-align: left; background: var(--navy-d); }
.sched tbody th { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; background: #fbfaf7; position: sticky; left: 0; z-index: 1; }
.sched td { font: 700 1rem var(--serif); color: var(--navy); }
.sched td small { display: block; font: 600 .7rem var(--sans); color: var(--muted); letter-spacing: .02em; }
.sched td.today-col { background: #fff8ef; }
.sched td.na { color: #c7c9d1; font-weight: 400; }
.sched tr.grp th { background: #eef0f8; color: var(--navy); text-transform: uppercase; font-size: .74rem; letter-spacing: .14em; font-weight: 800; text-align: left; padding: 8px 10px; }
.sched tr.zm td { font-weight: 600; color: #39406a; font-size: .95rem; }
.sched td.flag { box-shadow: inset 0 0 0 2px #f2c14e; }
.sched td.ovr::after { content: '•'; color: var(--amber); margin-left: 2px; }
.daycards { display: none; }
.daycard { background: #fff; border-radius: var(--r); box-shadow: var(--sh); border: 1px solid #ece9e1; margin-bottom: 14px; overflow: hidden; }
.daycard header { background: var(--navy); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.daycard header b { font: 700 1.1rem var(--serif); }
.daycard header .hd { color: #c9cfe8; font-size: .85rem; }
.daycard.today header { background: var(--amber); }
.daycard.today header .hd { color: #fff4e6; }
.daycard .bd { padding: 8px 16px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.daycard .body { padding: 6px 16px 12px; }
.daycard details { border-top: 1px solid #efece5; padding: 8px 16px 12px; }
.daycard summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 4px 0; }
.zgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; margin-top: 6px; }
.zgrid div { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0; border-bottom: 1px dotted #e5e2da; }
.zgrid div span:last-child { font-weight: 700; color: #39406a; font-variant-numeric: tabular-nums; }
.legend { color: var(--muted); font-size: .88rem; margin-top: 12px; }
@media (max-width: 900px) { .sched-wrap { display: none; } .daycards { display: block; } }

/* shiurim */
.shiur { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.shiur .ic { width: 56px; height: 56px; border-radius: 14px; background: var(--amber-s); color: var(--amber-d); display: grid; place-items: center; font: 700 1.5rem var(--serif); }
.shiur h3 { margin-bottom: 2px; }
.shiur .who { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.shiur .tl li { padding: 6px 0; }
.shiur > div { min-width: 0; }
.shiur .tl .t { white-space: normal; text-align: right; }
.src { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* contact */
.map { width: 100%; height: 100%; min-height: 300px; object-fit: cover; border: 0; background: #e9e6df; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.contact-list .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.emerg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.emerg a { display: block; text-decoration: none; background: #fff; border: 1px solid #ece9e1; border-radius: 12px; padding: 12px 14px; box-shadow: var(--sh); }
.emerg b { display: block; color: var(--navy); }
.emerg span { color: var(--ink); font-variant-numeric: tabular-nums; }

/* footer */
.site-foot { background: var(--navy-d); color: #c9cee6; padding: 36px 0 26px; margin-top: 30px; font-size: .94rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.site-foot .he { text-align: left; }
.site-foot img { height: 44px; width: auto; margin-bottom: 12px; }
.site-foot a { color: #fff; }
.site-foot h4 { color: #fff; margin: 0 0 8px; font: 700 1rem var(--serif); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; font-size: .82rem; color: #9aa1c4; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 34px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 > .shabbos-card { grid-column: 1 / -1; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid3 { grid-template-columns: 1fr; }
  .section { padding: 24px 0; }
  .next-card .time { font-size: 2.7rem; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .emerg { grid-template-columns: 1fr; }
  .tiles { gap: 12px; }
  .tile { padding: 14px; }
  .tile span { font-size: .85rem; }
}
@media print {
  .site-head, .site-foot, .no-print, .menu-btn { display: none !important; }
  body { background: #fff; }
  .page-head { background: #fff; color: #000; padding: 0 0 8px; }
  .page-head::after { display: none; }
  .page-head p, .page-head .he { color: #333; }
  .sched-wrap { display: block !important; box-shadow: none; border: 0; overflow: visible; }
  .daycards { display: none !important; }
  table.sched { min-width: 0; font-size: 11px; }
  .sched th, .sched td { padding: 4px 5px; }
  .sched thead th, .sched thead th.today, .sched thead th.corner { background: #fff !important; color: #000; border-bottom: 2px solid #000; }
  .sched thead th .hd { color: #333; }
  .sched td.today-col { background: #fff; }
  .pill { background: #fff !important; color: #000 !important; border: 1px solid #000; }
}

.phone-only { display: none; }
@media (max-width: 700px) { .phone-only { display: block; } .shiur { grid-template-columns: 44px 1fr; gap: 12px; } .shiur .ic { width: 44px; height: 44px; font-size: 1.2rem; } }

/* Donate button in header (joshua, Oct 25: donation link on every page) */
.site-head .wrap { gap: 10px; }
.donate-btn { order: 3; margin-left: 8px; background: var(--amber); color: #fff !important; text-decoration: none; font-weight: 800; font-size: .95rem; padding: 9px 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.donate-btn:hover { background: var(--amber-d); color: #fff; }
@media (max-width: 860px) { .donate-btn { order: 0; margin-left: auto; padding: 8px 14px; font-size: .9rem; } }
@media print { .donate-btn { display: none; } }

.menu-btn { white-space: nowrap; }
@media (max-width: 400px) { .brand img { height: 34px; } }


/* ==========================================================================
   Schedule views: Day / Week / Month / Dates (range) + print (joshua, Oct 27)
   ========================================================================== */
.print-only { display: none; }
.sv-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sv-views { display: inline-flex; background: #fff; border: 1px solid var(--navy); border-radius: 12px; padding: 3px; gap: 2px; }
.sv-tab { border: 0; background: transparent; color: var(--navy); font: 700 .95rem var(--sans); padding: 8px 16px; border-radius: 9px; cursor: pointer; min-height: 40px; }
.sv-tab:hover { background: #f0f2f9; }
.sv-tab.on { background: var(--navy); color: #fff; }
.sv-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sv-arrow { font-size: 1.3rem; line-height: 1; padding: 7px 14px; min-width: 44px; }
.sv-range { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #fff; border: 1px solid #ece9e1; border-radius: var(--r); padding: 12px 14px; margin-bottom: 18px; box-shadow: var(--sh); }
.sv-range label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sv-range input[type=date] { font: 600 1rem var(--sans); color: var(--ink); padding: 8px 10px; border: 1px solid #cfd2de; border-radius: 10px; background: #fff; min-height: 42px; min-width: 150px; }
.sv-head { margin-bottom: 14px; }
.sv-head h2 { font: 700 1.45rem/1.25 var(--serif); }
.sv-head h2 .pill { vertical-align: middle; font-family: var(--sans); }
.sv-sub { color: var(--muted); margin-top: 2px; }
.sv-sub .he { margin: 0; font-size: 1rem; }
.sv-note { color: var(--amber-d); font-weight: 700; }
.sv-out .wk-block + .wk-block { margin-top: 26px; }
.wk-h { font: 700 1.1rem var(--serif); color: var(--navy); margin: 0 0 10px; }
table.sched.few { min-width: 0; }
.sched td.cxl { color: #9a3b1f; font: 600 .85rem var(--sans); }
.ovr-dot, .tl li.ovr .t::after { color: var(--amber); font-weight: 900; }
.tl li.ovr .t::after { content: ' •'; }
.tl li.cxl .t { color: #9a3b1f; font: 600 .9rem var(--sans); }
.daycard.shab header { background: var(--navy-d); }
.daycard.today header { background: var(--amber); }
/* day view: one roomy card at every width */
.dayview { max-width: 720px; }
.dayview .daycard .tl li { padding: 11px 0; }
.dayview .daycard .tl .t { font-size: 1.2rem; }
.dayview .daycard .zgrid { grid-template-columns: 1fr 1fr; }
/* range of up to a weekend on desktop: the table reads well; phone keeps cards (rule at 900px above) */
/* month grid */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month .mh { text-align: center; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 0; }
.month .mh .short { display: none; }
.mcell { display: flex; flex-direction: column; gap: 3px; min-height: 120px; background: #fff; border: 1px solid #ece9e1; border-radius: 10px; padding: 6px 7px 7px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(23,30,71,.05); min-width: 0; }
.mcell:hover { border-color: var(--navy); color: var(--ink); }
.mcell.out { background: transparent; border: 0; box-shadow: none; }
.mcell.shab { background: #f3f4fa; }
.mcell.special { border-color: #f0c98f; }
.mcell.today { border: 2px solid var(--amber); }
.mtop { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.mnum { font: 700 1.05rem var(--serif); color: var(--navy); }
.mcell.today .mnum { color: var(--amber-d); }
.mhe { font-size: .78rem; color: var(--muted); }
.mpar { font: 700 .74rem var(--sans); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbd { display: flex; flex-wrap: wrap; gap: 2px; }
.mbd .pill { font-size: .62rem; padding: 1px 6px; letter-spacing: 0; }
.mt { list-style: none; margin: 2px 0 0; padding: 0; font-size: .74rem; line-height: 1.35; }
.mt li { display: flex; justify-content: space-between; gap: 4px; }
.mt li span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mt li b { color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt li.ovr b::after { content: '•'; color: var(--amber); }
.mt li.cxl b { color: #9a3b1f; font-weight: 600; }
.mt li.more { color: var(--muted); font-style: italic; }
.mhint { display: none; color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.mshab { display: none; }
.mshab h3 { font: 700 1.1rem var(--serif); color: var(--navy); margin: 18px 0 8px; }
.mshab ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mshab a { display: block; background: #fff; border: 1px solid #ece9e1; border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--sh); }
.mshab a b { display: block; color: var(--navy); font-family: var(--serif); }
.mshab a span { font-size: .9rem; color: var(--ink); font-variant-numeric: tabular-nums; }
@media screen and (max-width: 1100px) { .mt li span { display: none; } .mt li { justify-content: flex-end; } }
@media screen and (max-width: 760px) {
  .sv-bar { flex-direction: column; align-items: stretch; }
  .sv-views { display: grid; grid-template-columns: repeat(4, 1fr); }
  .sv-tab { padding: 9px 4px; }
  .sv-nav { display: grid; grid-template-columns: auto 1fr auto auto; }
  .sv-range { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 12px; }
  .sv-range input[type=date] { min-width: 0; width: 100%; }
  .sv-range .btn { width: 100%; }
  .sv-head h2 { font-size: 1.25rem; }
  .dayview { max-width: none; }
  /* compact, tappable month grid */
  .month { gap: 3px; }
  .month .mh .long { display: none; } .month .mh .short { display: inline; }
  .month .mh { font-size: .7rem; letter-spacing: .02em; }
  .mcell { min-height: 54px; padding: 4px 3px; border-radius: 8px; align-items: center; gap: 1px; position: relative; }
  .mtop { flex-direction: column; align-items: center; gap: 0; }
  .mnum { font-size: 1rem; }
  .mhe { font-size: .66rem; }
  .mpar, .mbd, .mt { display: none; }
  .mcell.special::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--amber); }
  .mcell.shab { background: #e7e9f4; }
  .mhint, .mshab { display: block; }
}
@media print {
  @page { margin: 12mm; }
  .print-only { display: block; }
  .print-title { font: 700 11pt var(--sans); margin: 0 0 4px; color: #000; }
  .page-head { display: none; }
  .section { padding: 0; }
  .sv-bar, .sv-range, .mhint, .mshab, .skip { display: none !important; }
  .sv-head { margin: 0 0 8px; }
  .sv-head h2 { font-size: 15pt; color: #000; }
  .sv-head h2 .pill { display: none; }
  .sv-sub, .sv-sub .he { color: #000; }
  a { color: #000; text-decoration: none; }
  .wk-block { break-inside: avoid; page-break-inside: avoid; }
  .wk-block + .wk-block { break-before: page; page-break-before: always; margin-top: 0; }
  .wk-h { color: #000; }
  table.sched { font-size: 10.5pt; border: 1px solid #000; }
  .sched th, .sched td { border-bottom: 1px solid #bbb; color: #000 !important; }
  .sched tbody th { background: #fff; position: static; }
  .sched tr.grp th { background: #fff; border-top: 1.5px solid #000; border-bottom: 1px solid #000; color: #000; }
  .sched td small, .sched td.na { color: #444 !important; }
  .sched td.ovr::after, .tl li.ovr .t::after, .mt li.ovr b::after { color: #000; }
  .legend { color: #333; font-size: 8.5pt; margin-top: 6px; }
  .dayview .daycard, .daycard { box-shadow: none; border: 1px solid #000; break-inside: avoid; }
  .view-day .daycards, .view-day .dayview .daycard { display: block !important; }
  .daycard header, .daycard.today header, .daycard.shab header { background: #fff !important; color: #000; border-bottom: 1.5px solid #000; }
  .daycard header .hd, .daycard .tl .t, .daycard .tl .l, .daycard summary, .zgrid div span:last-child { color: #000 !important; }
  .daycard details > *:not(summary) { display: block; }
  .tl li.next { background: #fff; }
  .month { gap: 0; border-top: 1px solid #000; border-left: 1px solid #000; }
  .month .mh { border-right: 1px solid #000; border-bottom: 1px solid #000; color: #000; padding: 3px 0; }
  .mcell, .mcell.shab, .mcell.today, .mcell.special { background: #fff !important; border: 0; border-right: 1px solid #000; border-bottom: 1px solid #000; border-radius: 0; box-shadow: none; min-height: 0; break-inside: avoid; }
  .mcell.out { border-right: 1px solid #000; border-bottom: 1px solid #000; }
  .mnum, .mpar, .mt li b, .mt li span, .mhe { color: #000 !important; }
  .mt { font-size: 7.5pt; }
  .mt li span { display: inline !important; }
}
@media screen and (max-width: 760px) { .sv-range .btn { padding: 9px 8px; white-space: nowrap; } .zgrid div { gap: 8px; } }
@media screen and (max-width: 760px) { .sv-range { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sv-range > * { min-width: 0; } .sv-range input[type=date] { max-width: 100%; box-sizing: border-box; font-size: .95rem; padding: 8px; } }

/* ---- hero photo on phones: the taller crop of the aron kodesh, with a stronger overlay for the text ---- */
@media (max-width: 760px) {
  .hero { background-image: url('img/hero-aron-sm.jpg'); background-position: center 22%; }
  .hero::before { background: linear-gradient(180deg, rgba(23,30,71,.55) 0%, rgba(23,30,71,.82) 45%, rgba(23,30,71,.95) 100%); }
}
@media (min-width: 761px) and (max-width: 1100px) { .hero { background-image: url('img/hero-aron-tall.jpg'); background-position: center 30%; } }

/* ---- Oct 27: events (events.html + home) and the contact form ---- */
.ev-list { display: grid; gap: 16px; }
.ev-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 16px; align-items: start; }
.ev-card .ev-img { grid-column: 1 / -1; display: block; margin: -16px -16px 4px; }
.ev-card .ev-img img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px 16px 0 0; }
.ev-date { background: var(--navy); color: #fff; border-radius: 12px; text-align: center; padding: 6px 0 8px; line-height: 1.05; }
.ev-date span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #f6c27f; font-weight: 700; } .ev-date b { font-size: 1.6rem; }
.ev-body h3 { margin: 0 0 4px; font: 700 1.2rem var(--serif); color: var(--navy); }
.ev-when { margin: 0 0 8px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.ev-desc p { margin: 0 0 8px; } .ev-link { margin-top: 6px; }
.ev-card.compact { padding: 12px 14px; } .ev-card.compact h3 { font-size: 1.05rem; } .ev-card.compact .ev-when { margin: 0; }
.ev-list.compact { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ev-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; } .ev-head h2 { margin: 0; font: 700 1.35rem var(--serif); color: var(--navy); }
.ev-empty { background: #fff; border-radius: 16px; padding: 22px; color: var(--muted); box-shadow: var(--sh); }
.ev-past { margin-top: 26px; } .ev-past summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-bottom: 12px; }
.ev-list.past .ev-card { opacity: .8; }
@media (min-width: 900px) { .ev-card:not(.compact) { grid-template-columns: 72px 1fr; } .ev-card:not(.compact):has(.ev-img) { grid-template-columns: 300px 72px 1fr; } .ev-card:not(.compact) .ev-img { grid-column: 1; grid-row: 1 / span 2; margin: -16px 0 -16px -16px; } .ev-card:not(.compact) .ev-img img { height: 260px; max-height: none; border-radius: 16px 0 0 16px; } }
.cform label { display: block; font-weight: 700; color: var(--navy); margin: 12px 0 0; font-size: .95rem; } .cform label small { font-weight: 500; color: var(--muted); }
.cform input, .cform textarea { display: block; width: 100%; margin-top: 6px; font: 16px/1.4 var(--sans); padding: 11px 12px; border: 1px solid #cfd2dc; border-radius: 10px; background: #fff; color: var(--ink); }
.cform textarea { resize: vertical; min-height: 140px; }
.cform button { margin-top: 16px; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .cgrid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 10px 12px; font-weight: 600; margin: 10px 0 0; } .form-status.ok { background: #e8f3ea; color: #1d5b2a; } .form-status.bad { background: #fde8e8; color: #8a1c1c; }

.pol-li[hidden]{display:none!important}

/* ---- Oct 27 (late): Today's Learning (home), Learn Shabbos chart page, Dedications ---- */
@font-face { font-family: 'Gelasio'; src: url('fonts/Gelasio-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gelasio'; src: url('fonts/Gelasio-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gelasio'; src: url('fonts/Gelasio-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
.learn-card { border-top: 4px solid var(--amber); }
.learn-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.learn-item { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border: 1px solid #ece9e1; border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.learn-item .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
.learn-item .v { font: 700 1.35rem/1.25 var(--serif); color: var(--navy); }
.learn-item .he { text-align: left; color: var(--muted); font-size: .95rem; }
.learn-item .sub { color: var(--muted); font-size: .85rem; }
.learn-item .more { color: var(--amber-d); font-weight: 700; font-size: .9rem; margin-top: 4px; }
a.learn-item:hover { border-color: var(--amber); color: var(--ink); }
@media (max-width: 760px) { .learn-grid { grid-template-columns: 1fr; gap: 8px; } .learn-item { padding: 10px 12px; } }
.ls-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ls-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.linkbtn { background: none; border: 0; color: var(--amber-d); font: 700 .88rem var(--sans); cursor: pointer; padding: 2px 4px; }
.ls-today { margin: 0 0 12px; text-align: center; color: var(--navy); font-weight: 700; min-height: 1.5em; }
.ls-chart { max-width: 720px; margin: 0 auto; }
.ls-chart svg { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: var(--sh); }
.ls-btns { justify-content: center; margin-top: 16px; }
.ls-state { text-align: center; padding: 30px 0; }
@media print {
  .site-head, .site-foot, .page-head, .ls-bar, .ls-btns, .ls-today, .skip { display: none !important; }
  body { background: #fff; } .ls-page { padding: 0; } .ls-chart { max-width: none; width: 100%; } .ls-chart svg { box-shadow: none; border-radius: 0; max-height: 100vh; }
  @page { size: letter portrait; margin: 8mm; }
}
.ded-list { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.ded h2 { font: 700 1.25rem/1.25 var(--serif); color: var(--navy); margin: 0; }
.ded-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ded details > summary { list-style: none; cursor: pointer; } .ded details > summary::-webkit-details-marker { display: none; }
.ded-desc { color: var(--muted); font-size: .95rem; margin-top: 4px; } .ded-desc p { margin: 0 0 6px; }
.ded-go { flex: none; white-space: nowrap; }
.ded details[open] .ded-go { opacity: .55; }
.ded-form { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; }
.ded-form .wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .ded-top { flex-direction: column; align-items: stretch; } .ded-go { text-align: center; } }
