/* ===== המועצה הדתית קדומים — Design System ===== */

:root {
  --a11y-font-scale: 1;
  /* מותג */
  --green-900: #0b3d2e;
  --green-800: #0f5132;
  --green-700: #1a472a;
  --green-600: #1f6b43;
  --green-500: #2d7d56;
  --green-tint: #e8f1ec;
  --green-tint-2: #f3f8f5;

  /* accent זהב */
  --gold: #c9a227;
  --gold-soft: #e3c558;
  --gold-tint: #fbf6e6;

  /* ניטרליים */
  --ink: #1c2620;
  --muted: #5f6f67;
  --line: #e2e8e4;
  --bg: #f6f9f7;
  --card: #ffffff;
  --white: #ffffff;

  --danger: #b3261e;

  /* מערכת */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(11, 61, 46, .06), 0 1px 2px rgba(11, 61, 46, .04);
  --shadow: 0 6px 24px rgba(11, 61, 46, .08);
  --shadow-lg: 0 18px 50px rgba(11, 61, 46, .14);
  --header-h: 70px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-body: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Frank Ruhl Libre', 'Heebo', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-800); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0; font-weight: 700; }

img { max-width: 100%; display: block; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title { font-family: var(--font-display); font-weight: 900; font-size: 1.18rem; color: var(--green-800); }
.brand-sub { font-size: .82rem; color: var(--gold); font-weight: 700; letter-spacing: .04em; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
  position: relative;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--green-tint); color: var(--green-800); }
.main-nav a.active { background: var(--green-800); color: #fff; }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--green-800);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Layout ===== */
.app-main { min-height: 60vh; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.page { animation: fade-up .5s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.page-loader { display: flex; justify-content: center; padding: 90px 0; }
.spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--green-tint);
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* כותרת עמוד */
.page-head {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff;
  padding: 46px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 240px at 85% -40%, rgba(201,162,39,.28), transparent 60%);
  pointer-events: none;
}
.page-head .container { position: relative; }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; }
.page-head p { margin: 10px 0 0; opacity: .9; font-size: 1.05rem; max-width: 640px; }
.page-eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: .82rem; letter-spacing: .08em; color: var(--gold-soft);
  text-transform: uppercase; margin-bottom: 8px;
}

.section { padding: 46px 0; }
.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--green-800);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 12px;
}
.section-title .ic { color: var(--gold); flex-shrink: 0; }
.section-sub { color: var(--muted); margin: 0 0 26px; font-size: 1.02rem; }

/* ===== Hero (Home) ===== */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(201,162,39,.30), transparent 60%),
    radial-gradient(600px 360px at 0% 100%, rgba(45,125,86,.5), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 70px 22px 78px;
  position: relative; text-align: center;
}
.hero-logo { width: auto; height: 124px; object-fit: contain; margin: 0 auto 20px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.3)); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 900; letter-spacing: -.01em; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); opacity: .92; margin: 14px auto 30px; max-width: 600px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; cursor: pointer;
  border: 0; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: #25d366; color: #062e16; box-shadow: 0 8px 22px rgba(37,211,102,.36); }
.btn-wa:hover { background: #1ebe5a; color: #062e16; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-gold { background: var(--gold); color: #3a2e05; box-shadow: 0 8px 22px rgba(201,162,39,.34); }
.btn-gold:hover { background: var(--gold-soft); color: #3a2e05; }

/* פס זמני שבת מהיר ב-hero */
.hero-zmanim {
  margin-top: 38px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.hero-zman-pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 12px 20px;
  min-width: 130px;
  backdrop-filter: blur(4px);
}
.hero-zman-pill .lbl { font-size: .8rem; opacity: .82; }
.hero-zman-pill .val { font-size: 1.35rem; font-weight: 800; font-family: var(--font-display); }

/* ===== כרטיסי ניווט מהיר (Home) ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.quick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  color: var(--ink);
  display: block;
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--green-500); color: var(--ink); }
.quick-card .qc-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-700);
  border-radius: 16px;
}
.quick-card h3 { font-size: 1.18rem; color: var(--green-800); margin-bottom: 5px; }
.quick-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ===== כרטיסים כלליים ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3e1d9; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-700);
  border-radius: 13px;
}
.card h3, .card h4 { color: var(--green-800); }
.card h3 { font-size: 1.22rem; }
.card h4 { font-size: 1.1rem; }
.card-body { color: var(--ink); font-size: .97rem; }
.card-body p { margin: 8px 0; }
.card-body a { font-weight: 600; }

.sub-item { padding: 12px 0; border-top: 1px dashed var(--line); }
.sub-item:first-child { border-top: 0; padding-top: 4px; }
.sub-item strong { color: var(--green-700); display: block; margin-bottom: 3px; }
.sub-item p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }

/* שורת מטא עם אייקון (טלפון/כתובת/שעה) */
.meta-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin: 7px 0; }
.meta-row .ic { color: var(--green-500); flex-shrink: 0; }
.meta-row a { color: var(--green-700); font-weight: 600; }

.tag {
  display: inline-block; background: var(--gold-tint); color: #8a6d12;
  border: 1px solid #ecdcae; padding: 3px 11px; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
}
.tag.green { background: var(--green-tint); color: var(--green-700); border-color: #c9ddd1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }

.pill-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 8px 16px;
  background: var(--green-700); color: #fff; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
}
.pill-link:hover { background: var(--green-800); color: #fff; }
.pill-link.waze { background: #33ccff; color: #03283a; }
.pill-link.waze:hover { background: #1bb8ee; color: #03283a; }
.pill-link.maps { background: #ea4335; color:#fff; }
.pill-link.maps:hover { background: #d23829; }

/* ===== חיפוש וסינון ===== */
.toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 24px;
}
.search-box {
  flex: 1 1 260px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 6px 4px 18px;
  box-shadow: var(--shadow-sm);
}
.search-box .ic { color: var(--muted); flex-shrink: 0; }
.search-box input {
  flex: 1; border: 0; outline: 0; font-family: inherit;
  font-size: 1rem; padding: 10px 0; background: transparent; color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  font-weight: 600; font-size: .9rem; font-family: inherit;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--green-500); color: var(--green-700); }
.chip.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.result-count { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.empty-state { text-align: center; color: var(--muted); padding: 50px 0; }

/* ===== זמנים ===== */
.zmanim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.zman-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.zman-card.shabbat {
  background: linear-gradient(160deg, var(--green-800), var(--green-600));
  color: #fff; border: 0;
}
.zman-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.3rem; }
.zman-card.shabbat h3 { color: #fff; }
.zman-card.shabbat .ic { color: var(--gold-soft); }
.zman-card h3 .ic { color: var(--gold); }
.parasha-name {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.25);
}
.zman-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.zman-card.shabbat .zman-row { border-color: rgba(255,255,255,.18); }
.zman-row:last-child { border-bottom: 0; }
.zman-name { color: var(--muted); font-size: .95rem; }
.zman-card.shabbat .zman-name { color: rgba(255,255,255,.85); }
.zman-time { font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.zman-card.shabbat .zman-time { color: var(--gold-soft); }

/* ===== טבלת תפילות ===== */
.synagogue-tabs { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.synagogue-tab { padding: 9px 22px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .95rem; color: var(--muted); transition: all .2s; }
.synagogue-tab.active { background: var(--green-800); color: #fff; }

.prayer-category { margin-bottom: 26px; }
.prayer-category h4 { color: var(--green-800); font-size: 1.18rem; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.prayer-category h4::before { content: ""; width: 5px; height: 20px; background: var(--gold); border-radius: 3px; }
.prayer-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.prayer-table th { background: var(--green-tint); color: var(--green-800); text-align: right; padding: 12px 16px; font-size: .9rem; }
.prayer-table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.prayer-time { font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; white-space: nowrap; width: 110px; }
.prayer-shuls { color: var(--ink); }

/* ===== חיפוש קברים ===== */
.grave-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 720px; }
.grave-box > p { color: var(--muted); margin-top: 0; }
.grave-input-row { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.grave-input-row input { flex: 1 1 220px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; font-family: inherit; font-size: 1rem; outline: 0; }
.grave-input-row input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-tint); }
.grave-results { display: grid; gap: 12px; margin-top: 8px; }
.grave-result {
  background: var(--green-tint-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.grave-result h4 { color: var(--green-800); font-size: 1.1rem; }
.grave-result p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.grave-map-link { background: var(--green-700); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: .9rem; white-space: nowrap; }
.grave-map-link:hover { background: var(--green-800); color: #fff; }
.grave-no-results { color: var(--danger); padding: 14px 0; }
.grave-hint { color: var(--muted); font-size: .88rem; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }

.grave-map-modal {
  position: fixed; inset: 0; background: rgba(8,28,20,.86);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; cursor: zoom-out;
  animation: fade-up .25s ease;
}
.grave-map-modal img { max-width: 95%; max-height: 90vh; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* ===== מודעות אבל ===== */
.avel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.avel-card {
  background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--green-700);
  border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-sm);
}
.avel-card .bsd { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .1em; margin-bottom: 6px; }
.avel-card h4 { color: var(--green-800); font-size: 1.18rem; text-align: center; }
.avel-card p { color: var(--ink); font-size: .94rem; margin: 8px 0; }
.avel-card img { border-radius: 10px; margin-top: 12px; cursor: zoom-in; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.85); margin-top: 60px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 50px 22px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; margin: 0; }
.footer-tag { color: rgba(255,255,255,.65); font-size: .92rem; margin: 4px 0 0; }
.footer-col h4 { color: var(--gold-soft); font-size: 1rem; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.78); margin: 7px 0; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 18px; font-size: .86rem; color: rgba(255,255,255,.55); }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ===== Skeleton ===== */
.skeleton { background: linear-gradient(90deg, #eef3f0 25%, #e2ebe6 37%, #eef3f0 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skel-card { height: 150px; border-radius: var(--radius); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 16px; border-radius: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .hero-inner { padding: 50px 18px 56px; }
  .section { padding: 34px 0; }
  .card { padding: 20px; }
  .brand-sub { display: none; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-start: 16px; }
}

/* ============================================================
   ===== סרגל נגישות (ת"י 5568) =====
   ============================================================ */

/* קישור דילוג לתוכן */
.a11y-skip {
  position: fixed; top: -60px; inset-inline-start: 50%; transform: translateX(50%);
  z-index: 2000; background: var(--green-800); color: #fff;
  padding: 12px 22px; border-radius: 0 0 12px 12px; font-weight: 700;
  transition: top .2s var(--ease);
}
.a11y-skip:focus { top: 0; color: #fff; outline: 3px solid var(--gold); }

/* כפתור צף לפתיחת הסרגל */
.a11y-fab {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 1500;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-800); color: #fff; border: 2px solid #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(11,61,46,.4);
  transition: transform .25s var(--ease), background .2s;
}
.a11y-fab:hover { transform: scale(1.08); background: var(--green-700); }
.a11y-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.a11y-fab.active { background: var(--gold); color: #3a2e05; }

/* פאנל הנגישות */
.a11y-panel {
  position: fixed; bottom: 88px; inset-inline-end: 22px; z-index: 1500;
  width: 320px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 18px;
  transform: translateY(14px) scale(.97); opacity: 0;
  transition: transform .25s var(--ease), opacity .25s; transform-origin: bottom left;
}
.a11y-panel.open { transform: none; opacity: 1; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.a11y-head h2 { font-size: 1.2rem; color: var(--green-800); }
.a11y-close {
  width: 34px; height: 34px; border: 0; background: var(--bg); border-radius: 10px;
  font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.a11y-close:hover { background: var(--green-tint); color: var(--green-800); }

.a11y-font-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  background: var(--green-tint-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
}
.a11y-step {
  flex-shrink: 0; width: 52px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: 11px; font-weight: 800; font-size: 1.05rem; color: var(--green-800); cursor: pointer;
  font-family: var(--font-body); transition: all .15s;
}
.a11y-step:hover { background: var(--green-800); color: #fff; }
.a11y-font-val { flex: 1; text-align: center; line-height: 1.2; }
.a11y-font-cap { display: block; font-size: .78rem; color: var(--muted); }
.a11y-font-val span:last-child { font-weight: 800; font-size: 1.05rem; color: var(--green-800); }

.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-opt {
  display: flex; align-items: center; gap: 9px; text-align: start;
  padding: 11px 12px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; font-family: var(--font-body);
  font-size: .92rem; font-weight: 600; color: var(--ink); transition: all .15s;
}
.a11y-opt:hover { border-color: var(--green-500); }
.a11y-opt.on { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.a11y-opt-ic { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }
.a11y-opt:focus-visible, .a11y-step:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }

.a11y-reset, .a11y-statement-link {
  width: 100%; margin-top: 10px; padding: 11px; border-radius: 12px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; border: 1px solid var(--line);
}
.a11y-reset { background: #fff; color: var(--danger); border-color: #f0d5d3; }
.a11y-reset:hover { background: #fdf3f2; }
.a11y-statement-link { background: var(--green-tint); color: var(--green-800); border-color: #c9ddd1; margin-top: 8px; }
.a11y-statement-link:hover { background: var(--green-800); color: #fff; }

/* הצהרת נגישות (מודל) */
.a11y-statement-overlay {
  position: fixed; inset: 0; z-index: 2100; background: rgba(8,28,20,.7);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade-up .25s ease;
}
.a11y-statement-box {
  background: #fff; border-radius: 18px; padding: 30px; max-width: 600px;
  max-height: 88vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg);
}
.a11y-statement-box h2 { color: var(--green-800); font-size: 1.5rem; margin-bottom: 14px; }
.a11y-statement-box h3 { color: var(--green-700); font-size: 1.1rem; margin: 18px 0 8px; }
.a11y-statement-box p { margin: 8px 0; color: var(--ink); line-height: 1.7; }
.a11y-statement-box ul { margin: 8px 0; padding-inline-start: 22px; color: var(--ink); line-height: 1.7; }
.a11y-statement-box .a11y-close { position: absolute; top: 18px; inset-inline-end: 18px; }
.a11y-statement-date { color: var(--muted); font-size: .88rem; margin-top: 16px !important; }

@media (max-width: 560px) {
  .a11y-fab { bottom: 78px; inset-inline-end: 16px; }
  .wa-float { bottom: 78px; }
  .a11y-panel { bottom: 16px; inset-inline-end: 16px; inset-inline-start: 16px; width: auto; max-height: 80vh; overflow-y: auto; }
}

/* ===== מצבי נגישות מוחלים על <html> ===== */

/* קנה מידה של גופן */
html.a11y-font { font-size: calc(100% * var(--a11y-font-scale)); }

/* ניגודיות גבוהה */
html.a11y-contrast {
  --bg: #fff; --card: #fff; --ink: #000; --muted: #1a1a1a; --line: #000;
  --green-800: #073d28; --green-700: #073d28; --green-600: #073d28;
}
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .card, html.a11y-contrast .quick-card, html.a11y-contrast .zman-card,
html.a11y-contrast .grave-box, html.a11y-contrast .prayer-table { border: 2px solid #000 !important; }
html.a11y-contrast a { text-decoration: underline; }

/* מצב כהה */
html.a11y-dark {
  --bg: #0e1512; --card: #16201b; --ink: #eef3f0; --muted: #aab9b1; --line: #2a382f;
  --green-tint: #1c2a23; --green-tint-2: #16201b; --white: #16201b;
}
html.a11y-dark body { background: #0e1512; }
html.a11y-dark .site-header { background: rgba(14,21,18,.92); }
html.a11y-dark .search-box, html.a11y-dark .chip, html.a11y-dark .synagogue-tabs,
html.a11y-dark .a11y-step, html.a11y-dark .a11y-opt { background: #16201b; }
html.a11y-dark .prayer-table, html.a11y-dark .grave-result { background: #16201b; }

/* גווני אפור */
html.a11y-grayscale { filter: grayscale(100%); }

/* הדגשת קישורים */
html.a11y-links a:not(.btn):not(.pill-link):not(.quick-card):not(.brand) {
  text-decoration: underline !important; text-underline-offset: 3px;
  outline: 1px dashed currentColor; outline-offset: 2px;
}

/* גופן קריא */
html.a11y-readable, html.a11y-readable body,
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable h4 {
  font-family: Arial, 'Heebo', sans-serif !important;
  letter-spacing: .01em;
}

/* ריווח שורות מוגדל */
html.a11y-spacing body { line-height: 2 !important; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing .card-body { line-height: 2 !important; letter-spacing: .03em; word-spacing: .12em; }

/* עצירת אנימציות */
html.a11y-no-anim *, html.a11y-no-anim *::before, html.a11y-no-anim *::after {
  animation-duration: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: 0s !important; scroll-behavior: auto !important;
}
html.a11y-no-anim .reveal { opacity: 1 !important; transform: none !important; }

/* סמן גדול */
html.a11y-big-cursor, html.a11y-big-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 2l30 18-13 3-3 13z" fill="black" stroke="white" stroke-width="2"/></svg>') 4 2, auto !important;
}

/* כיבוד העדפת מערכת — הפחתת תנועה */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== בתי כנסת: תמונה, מיקום ומניינים ===== */
.syn-card { display: flex; flex-direction: column; }
.syn-photo {
  width: calc(100% + 48px); margin: -24px -24px 16px; height: 180px; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0; cursor: zoom-in; display: block;
}
.syn-schedule { margin-top: 14px; }
.syn-schedule h5 { color: var(--green-800); font-size: .95rem; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--green-tint); }
.syn-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.syn-row:last-child { border-bottom: 0; }
.syn-row-name small { display: block; color: var(--muted); font-size: .78rem; }
.syn-label { color: var(--muted); font-weight: 400; font-size: .88rem; }
.syn-row-time { font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.syn-notice { margin-top: 12px; padding: 10px 12px; background: var(--gold-tint); border: 1px solid #ecdcae; border-radius: var(--radius-sm); font-size: .92rem; }
.syn-muted { color: var(--muted); font-size: .9rem; }
.eruv-thumb { width: 100%; max-height: 320px; object-fit: contain; background: var(--green-tint-2); border-radius: var(--radius-sm); margin-top: 8px; cursor: zoom-in; display: block; }

/* ===== דף הבית: שורות קרוסלה ===== */
.home-row { padding-top: 36px; padding-bottom: 36px; }
.home-row.tone-dark { background: #dcebe2; }
.home-row.tone-light { background: var(--green-tint-2); }
.home-row.tone-white { background: #fff; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.row-head .section-sub { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 8px; flex-shrink: 0; }
.carousel-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--green-700); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm);
}
/* מימין לשמאל: "הקודם" מימין מצביע ימינה, "הבא" משמאל מצביע שמאלה */
.carousel-btn.next .ic { transform: scaleX(-1); }
.carousel-btn:hover { background: var(--green-tint); }
.carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 14px; scrollbar-width: thin;
}
.mini-card {
  flex: 0 0 auto; width: 200px; scroll-snap-align: start; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px;
}
.mini-card.shiur, .mini-card.gemach { width: 260px; }
.mini-card.empty { width: 100%; max-width: 420px; }
.mini-time { font-size: 1.5rem; font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; }
.mini-time small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.mini-title { font-weight: 700; color: var(--green-800); }
.mini-muted { color: var(--muted); font-weight: 400; font-size: .88rem; }
.mini-sub { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 5px; }
.mini-sub .ic { color: var(--green-500); flex-shrink: 0; }
.mini-desc { color: var(--ink); font-size: .9rem; line-height: 1.45; }
.mini-card .tag { align-self: flex-start; }
/* זמני היום בדף הבית: שתי שורות במחשב, טבלה בטלפון */
.zmanim-home { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.zh-cell {
  background: #fff; border: 1px solid #c9ddd1; border-radius: var(--radius-sm); padding: 14px 12px;
  display: flex; flex-direction: column-reverse; gap: 4px; text-align: center; box-shadow: var(--shadow-sm);
}
.zh-time { font-size: 1.45rem; font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; }
.zh-name { font-weight: 700; color: var(--green-800); font-size: .92rem; }
.zh-cell.past { opacity: .55; }
.zh-cell.next { border-color: var(--green-600); box-shadow: 0 0 0 2px var(--green-500); }
.mini-badge {
  display: inline-block; background: var(--green-700); color: #fff; vertical-align: middle;
  font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px;
}
.mini-waze {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  background: #33ccff; color: #03283a; font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 999px;
}
.mini-waze:hover { background: #1bb8ee; color: #03283a; }
.row-more-wrap { margin-top: 18px; }
.row-more {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 24px; border-radius: 999px;
  background: var(--green-800); color: #fff; font-weight: 700; font-size: 1rem;
  box-shadow: 0 6px 16px rgba(15, 81, 50, .25); transition: background .2s, transform .2s;
}
.row-more:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.row-more .ic { transform: scaleX(-1); }
@media (max-width: 900px) {
  .zmanim-home { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .zmanim-home {
    grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid #c9ddd1;
    border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
  }
  .zh-cell {
    flex-direction: row; justify-content: space-between; align-items: center; text-align: right;
    border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); padding: 11px 16px;
  }
  .zh-cell:first-child { border-top: 0; }
  .zh-time { font-size: 1.1rem; }
  .zh-cell.next { box-shadow: none; background: var(--green-tint); }
  .row-more { width: 100%; justify-content: center; }
  .carousel-nav { display: none; }
  .mini-card { width: 160px; }
  .mini-card.shiur, .mini-card.gemach { width: 230px; }
}

/* כפתור הורדת טופס (PDF) */
.file-btn-wrap { display: block; margin: 4px 0 14px; }
.file-btn { padding: 11px 22px; font-size: .98rem; box-shadow: 0 6px 16px rgba(15, 81, 50, .22); }
.file-btn:hover { transform: translateY(-2px); }

@media (max-width: 640px) {
  .brand-logo { height: 44px; }
}
