:root {
  --cream: #f3efe4;
  --cream-2: #faf8f2;
  --surface: #ffffff;
  --ink: #1f2a26;
  --muted: #5f6b66;
  --line: #e4ded0;
  --forest: #1c3a2e;
  --green: #2d6e4f;
  --green-soft: #e6efe9;
  --terra: #9c4a33;
  --mustard: #8f6122;
  --slate: #34536a;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(28, 58, 46, .05), 0 8px 24px rgba(28, 58, 46, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 16.5px; line-height: 1.55;
  color: var(--ink); background: #fff;
}
a { color: var(--green); }
svg.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }
:focus-visible { outline: 3px solid #e0a33a; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent; transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-add {
  background: var(--terra); color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px #e9b9a9;
}
.btn-add .plus {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .25); font-size: 19px; line-height: 1;
}
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink);
  font-size: 18px; cursor: pointer;
}
.icon-btn:hover { background: rgba(0, 0, 0, .05); }
.icon-btn svg.i { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--forest); text-decoration: none; }
.logo-mark { width: 64px; height: 40px; }
.logo strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.logo small { display: block; color: var(--muted); font-size: 13.5px; }

.mainnav { background: var(--cream); }
.mainnav-in { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.navlinks { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.navlinks a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; color: var(--ink); text-decoration: none;
  font-weight: 600; white-space: nowrap; border-bottom: 2.5px solid transparent;
}
.navlinks a:hover { color: var(--green); }
.navlinks a.active { color: var(--green); border-bottom-color: var(--terra); }
#search-toggle { margin-inline-start: auto; }

/* Dark category bar */
.groupbar { background: var(--forest); position: sticky; top: 0; z-index: 20; }
.groupbar-in {
  display: flex; justify-content: center; gap: 2px;
  list-style: none; margin: 0 auto; min-height: 58px;
}
.groupbar-in > li { position: relative; }
.groupbar-in > li > a {
  display: inline-flex; align-items: center; gap: 6px; height: 58px; padding: 0 14px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15.5px; white-space: nowrap;
}
.groupbar-in > li > a .chev { opacity: .65; width: 14px; height: 14px; }
.groupbar-in > li:hover > a, .groupbar-in > li > a.active { background: rgba(255, 255, 255, .1); }
.dropdown {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 250px;
  padding: 8px; margin: 0; list-style: none;
  background: #fff; border-radius: 0 0 16px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.groupbar-in > li:hover .dropdown, .groupbar-in > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500;
}
.dropdown a:hover { background: var(--cream); }
.dropdown .n { color: var(--muted); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: 64px 0 72px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  margin: 0; font-size: clamp(42px, 5.4vw, 76px); font-weight: 900; white-space: nowrap; line-height: 1.02; letter-spacing: -1.5px;
  color: var(--forest);
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { margin: 22px 0 6px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--forest); }
.hero .sub { margin: 0 0 30px; font-size: 18px; color: var(--muted); }

.search { position: relative; }
.search input {
  width: 100%; height: 76px; padding: 0 30px 0 70px;
  border: 1px solid transparent; border-radius: 28px; background: #fff;
  font: inherit; font-size: 18px; color: var(--ink);
  box-shadow: 0 10px 30px rgba(28, 58, 46, .1);
}
.search input:focus { outline: none; border-color: var(--green); }
.search input::-webkit-search-cancel-button { display: none; }
.search .s-icon { position: absolute; inset-inline-end: 26px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .s-icon svg.i { width: 24px; height: 24px; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 15px; }
.pill {
  display: inline-flex; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; font-family: inherit;
}
.pill:hover { border-color: var(--green); color: var(--green); }

.hero-art { position: relative; }
.hero-art .frame {
  border-radius: 48px 48px 48px 140px; overflow: hidden; aspect-ratio: 1.45;
  box-shadow: 0 30px 60px rgba(28, 58, 46, .2);
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art .dots {
  position: absolute; top: -18px; inset-inline-end: -18px; width: 120px; height: 110px; z-index: -0;
  background-image: radial-gradient(#9fb8a6 2.2px, transparent 2.4px); background-size: 18px 18px;
}
.badge {
  position: absolute; bottom: 26px; inset-inline-start: -22px;
  padding: 16px 22px; background: #fff; border-radius: 22px; box-shadow: var(--shadow);
}
.badge b { display: block; font-size: 34px; font-weight: 800; color: var(--green); line-height: 1.1; }
.badge span { color: var(--ink); font-size: 15px; }

/* ---------- Sections ---------- */
main:focus { outline: none; }
.section { padding: 56px 0 8px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 26px; border-bottom: 2px solid var(--ink);
}
.section-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.section-head a { font-weight: 600; text-decoration: none; }

/* Carousel */
.carousel { position: relative; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14); cursor: pointer; display: grid; place-items: center; color: var(--ink);
}
.arrow.prev { inset-inline-start: -24px; }
.arrow.next { inset-inline-end: -24px; }

/* Listing card */
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow); }
.card-top { display: flex; align-items: flex-start; gap: 14px; }
.ico {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px;
  font-size: 24px; background: var(--g-soft, var(--green-soft)); color: var(--g, var(--green));
}
.ico svg.i { width: 24px; height: 24px; }
.card h3 { margin: 0; font-size: 18.5px; font-weight: 700; line-height: 1.3; }
.card .cat-link { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--g, var(--green)); text-decoration: none; }
.card .note { margin: 0; color: #46524d; font-size: 15.5px; }
.card .note.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.meta { display: flex; align-items: center; gap: 10px; color: #46524d; font-size: 15px; }
.meta a { color: inherit; }
.meta .dot { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.meta .dot svg.i { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.act {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  background: var(--forest); color: #fff;
}
.act span { direction: ltr; unicode-bidi: isolate; }
.act.wa { background: #e7f5ec; color: #1d8a4b; }
.act.light { background: var(--cream-2); color: var(--ink); border: 1px solid var(--line); }
.act:hover { filter: brightness(1.1); }

/* Category tiles */
.groups { display: grid; gap: 36px; }
.group-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 21px; font-weight: 700; }
.group-title a { color: inherit; text-decoration: none; }
.group-title .ico { width: 42px; height: 42px; border-radius: 13px; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  color: var(--ink); text-decoration: none; transition: .15s;
}
.tile:hover { border-color: var(--g); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .ico { width: 46px; height: 46px; font-size: 22px; }
.tile b { display: block; font-weight: 600; line-height: 1.3; }
.tile small { color: var(--muted); }
.tile.empty { opacity: .55; }

/* Boards */
.boards { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.board {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px;
  min-height: 270px; padding: 28px; border-radius: 26px; color: #fff; text-decoration: none;
  transition: transform .15s;
}
.board:hover { transform: translateY(-3px); }
.board .b-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: rgba(255, 255, 255, .16); margin-bottom: 14px; }
.board .b-ico svg.i { width: 26px; height: 26px; }
.board h3 { margin: 0; font-size: 26px; font-weight: 800; }
.board p { margin: 0; opacity: .85; font-size: 16.5px; max-width: 80%; }
.board .go { margin-top: auto; padding-top: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.board .bg { position: absolute; bottom: -30px; inset-inline-end: -20px; width: 150px; height: 150px; opacity: .12; }
.board .bg svg.i { width: 100%; height: 100%; stroke-width: 1.6; }

/* CTA band */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 56px 0 64px; padding: 40px 44px; border-radius: 30px; background: var(--cream);
}
.cta h2 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--forest); }
.cta p { margin: 0; color: var(--muted); }

/* Inner pages */
.page-hero { background: var(--cream); padding: 34px 0 30px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.page-title { display: flex; align-items: center; gap: 16px; }
.page-title .ico { width: 64px; height: 64px; font-size: 30px; border-radius: 20px; }
.page-title h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--forest); line-height: 1.15; }
.page-title p { margin: 4px 0 0; color: var(--muted); }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.subcats .pill.on { background: var(--forest); color: #fff; border-color: var(--forest); }
.filter {
  width: 100%; max-width: 440px; height: 50px; padding: 0 18px; margin-top: 20px;
  border: 1px solid var(--line); border-radius: 16px; font: inherit; background: #fff;
}
.list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); padding: 32px 0 64px; }
.empty-state { text-align: center; padding: 56px 16px 72px; color: var(--muted); }
.empty-state .big { font-size: 52px; }
.empty-state h2 { color: var(--ink); margin: 8px 0; }

mark { background: #fde7b0; color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Dialog ---------- */
.dialog {
  width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.dialog::backdrop { background: rgba(20, 35, 28, .55); }
.dialog form { padding: 26px 28px; display: grid; gap: 14px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog h2 { margin: 0; font-size: 24px; color: var(--forest); }
.dialog p { margin: 0; }
.dialog label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.dialog input, .dialog select, .dialog textarea {
  font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream-2);
}
.dialog input:focus, .dialog select:focus, .dialog textarea:focus { outline: 2px solid var(--green); border-color: transparent; background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; gap: 10px; }
.form-msg { font-size: 15px; color: var(--green); font-weight: 600; }
.form-msg:empty { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: rgba(255, 255, 255, .8); padding: 40px 0; font-size: 15px; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.footer-title { color: #fff; font-size: 20px; }
.footer p { margin: 6px 0 0; max-width: 640px; }
.footer .muted { color: rgba(255, 255, 255, .6); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .groupbar-in { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .groupbar-in::-webkit-scrollbar { display: none; }
  .dropdown { display: none; }
  .track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .boards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding: 36px 0 48px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: 2; }
  .badge { inset-inline-start: 12px; bottom: 14px; padding: 12px 16px; }
  .badge b { font-size: 26px; }
  .track { grid-auto-columns: 78%; }
  .arrow { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .topbar-in { min-height: 72px; }
  .logo-mark { width: 48px; }
  .logo strong { font-size: 18px; }
  .logo small { font-size: 12px; }
  .btn-add { height: 42px; padding: 0 14px; font-size: 15px; }
  .search input { height: 62px; border-radius: 20px; font-size: 16px; padding: 0 20px 0 56px; }
  .search .s-icon { inset-inline-end: 20px; }
  .boards { grid-template-columns: 1fr; }
  .board { min-height: 200px; }
  .cta { padding: 28px 24px; }
  .list { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { flex-direction: column; align-items: flex-start; gap: 8px; }
  .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ===== חשבון, אזור אישי, ניהול ===== */
.top-actions { display: flex; align-items: center; gap: 14px; }
.user-btn { gap: 10px; padding-inline-start: 8px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #fdf0d5; color: #8f6122; }
.group-title small { font-weight: 400; font-size: 15px; }
.grow { flex: 1; min-width: 0; }

.nav-ctas { display: flex; gap: 10px; }
.btn-news {
  height: 52px; padding: 0 16px; gap: 10px; background: var(--mustard); color: #fff; border-radius: 14px; text-align: start;
}
.btn-news span { display: flex; flex-direction: column; line-height: 1.2; }
.btn-news b { font-size: 15.5px; }
.btn-news small { font-size: 12.5px; font-weight: 400; opacity: .9; }
.btn-news svg.i { width: 24px; height: 24px; }
.btn-news.soon { background: #fff; color: var(--mustard); border: 1.5px dashed #d6b98a; cursor: default; }
.btn-news.soon:hover { filter: none; }

.fav { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.fav:hover { color: #c0392b; border-color: #f0c4bd; }
.fav.on { color: #c0392b; background: #fdeceA; border-color: #f0c4bd; }
.fav.on svg.i { fill: currentColor; }

.locked { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--green); cursor: pointer; text-align: start; }
span.locked { color: var(--muted); cursor: default; }
button.locked:hover { text-decoration: underline; }
.price { flex: none; font-weight: 800; font-size: 18px; color: var(--g); }

.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.s-pending { background: #fdf0d5; color: #8f6122; }
.s-approved { background: #e2f1e8; color: #1f6b43; }
.s-rejected, .s-blocked { background: #fbe4e0; color: #a1352a; }

.page-title .btn { flex: none; }
.page-title { flex-wrap: wrap; }
.me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 32px 24px 64px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel.wide, .notice { grid-column: 1 / -1; }
.panel h2 { margin: 0 0 16px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--cream); font-size: 14px; }
.notice { padding: 16px 20px; border-radius: 16px; background: #fdf6e6; border: 1px solid #f1dfb4; color: #6b4c18; font-weight: 500; }
.stack { display: grid; gap: 12px; max-width: 460px; }
.stack label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.stack input { font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream-2); }
.stack .btn { justify-self: start; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.row-acts { display: flex; gap: 8px; align-items: center; flex: none; }
.mini { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.mini.ok { background: var(--green); color: #fff; border-color: var(--green); }
.mini.no { color: #a1352a; border-color: #f0c4bd; }
.link-btn { font: inherit; border: 0; background: none; color: var(--green); text-decoration: underline; cursor: pointer; padding: 0; }
.list.tight { padding: 0; }

.tabs { display: flex; gap: 6px; padding: 5px; background: var(--cream); border-radius: 14px; }
.tab { flex: 1; font: inherit; font-weight: 600; padding: 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: var(--muted); }
.tab.on { background: #fff; color: var(--forest); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
#auth-form[data-mode="login"] .reg-only { display: none; }
.dialog label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.dialog label.check input { width: 20px; height: 20px; accent-color: var(--green); }
.form-msg { color: #a1352a; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 100;
  padding: 14px 22px; border-radius: 14px; background: var(--forest); color: #fff; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .me-grid { grid-template-columns: 1fr; padding: 24px 16px 48px; }
  .btn-news { height: 42px; padding: 0 10px; }
  .btn-news small { display: none; }
  .rows li { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .top-actions { gap: 8px; }
  .top-actions .btn-ghost { padding: 0 12px; height: 42px; font-size: 15px; }
  .user-btn .tag { display: none; }
}

/* ===== חדש בשכונה ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-grid.page { padding: 32px 0 64px; }
.news-card {
  display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px;
  border-bottom: 2px solid var(--forest); color: var(--ink); text-decoration: none; text-align: center;
}
.news-img { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--cream), #e5ddc8); display: grid; place-items: center; margin-bottom: 8px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-img span { color: #b9a77f; }
.news-img span svg.i { width: 56px; height: 56px; stroke-width: 1.4; }
.news-card time { font-size: 14px; color: var(--muted); }
.news-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--forest); line-height: 1.35; }
.news-card p { margin: 0; color: #46524d; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .more { align-self: center; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 12px; background: var(--cream); font-weight: 600; }
.news-card:hover .more { background: var(--forest); color: #fff; }
.news-article { max-width: 760px; padding: 36px 24px 64px; font-size: 18px; line-height: 1.75; }
.news-article img { width: 100%; border-radius: 20px; margin-bottom: 20px; }

/* ===== מידע שימושי ===== */
.sos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.sos-item {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 14px;
  background: #fbe9e4; color: #8a2f1c; text-decoration: none; border: 1px solid #f3cfc5;
}
.sos-item b { font-size: 20px; font-weight: 800; direction: ltr; }
.sos-item:hover { background: #f7d9d0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px 40px; }
.info-item { display: flex; gap: 18px; align-items: flex-start; }
.info-ico { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: #fdf1e2; font-size: 30px; }
.info-item h3 { margin: 4px 0 6px; font-size: 19px; font-weight: 800; }
.info-item p { margin: 0 0 4px; color: #46524d; }
.info-item a { color: #1565c0; }
.info-link { display: inline-block; margin-top: 6px; font-weight: 600; }

.news-form { display: grid; gap: 12px; margin-bottom: 16px; }
.news-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.news-form input, .news-form textarea { font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream-2); }
.news-form .btn { justify-self: start; }
.mini { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.mini svg.i { width: 14px; height: 14px; }

@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* ===== כניסה עם לינק ===== */
.dialog.auth { width: min(520px, calc(100% - 24px)); background: #faf8f2; }
.auth-in { padding: 24px 26px 22px; display: grid; gap: 14px; }
.auth-view { display: grid; gap: 14px; }
.auth-view[hidden] { display: none; }
.auth .dialog-head h2 { font-size: 23px; }
.dialog.auth form { padding: 0; }
.nl-box { display: grid; gap: 10px; margin: 0; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 16px; background: #f3efe4; }
.nl-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.radio:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.radio input { width: 18px; height: 18px; accent-color: var(--green); }
.btn-google { width: 100%; height: 50px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.btn-google[hidden], .or[hidden] { display: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.magic-hint { display: grid; gap: 4px; text-align: center; padding: 14px; border-radius: 16px; border: 1.5px solid #b9d2c1;
  background: linear-gradient(120deg, #f6e9e3, #e6efe9); }
.magic-hint b { color: var(--green); font-size: 17px; }
.magic-hint span { color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.auth-form input { font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.auth-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.btn-block { width: 100%; height: 52px; font-size: 17px; }
.fallback { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 16px; border-radius: 16px; background: #fbf1dd; border: 1.5px solid #ecd29c; margin-top: 4px; }
.sent-box { text-align: center; padding: 10px 6px; }
.sent-box .big { font-size: 54px; }
.sent-box h3 { margin: 4px 0 8px; font-size: 22px; color: var(--forest); }
.sent-box p { margin: 0 0 8px; }
.dev-note { font-size: 13px; color: #8f6122; background: #fdf6e6; border-radius: 8px; padding: 0 8px; }
.dev-note:empty { display: none; }
.dev-note a { color: #8f6122; font-weight: 700; }

/* ===== המלצות ===== */
.title-link { color: inherit; text-decoration: none; }
.title-link:hover { color: var(--g, var(--green)); text-decoration: underline; }
.recs-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.recs-link:hover { color: var(--green); }
.recs-link svg.i { width: 16px; height: 16px; }
.entry-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; padding: 32px 24px 64px; }
.recs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.recs-head h2 { margin: 0; }
.recs { list-style: none; margin: 0; padding: 0; }
.rec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: 0; }
.rec p { margin: 0 0 8px; font-size: 16.5px; }
.rec.pending { opacity: .75; }
.rec-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.rec-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.rec-card { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 20px; border-radius: 20px;
  background: var(--cream); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.rec-card:hover { border-color: var(--green); }
.rec-card p { margin: 0; font-size: 16.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rec-card span { font-size: 14px; color: var(--muted); }

.privacy-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.privacy-groups fieldset { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: grid; gap: 6px; }
.privacy-groups legend { font-weight: 700; padding: 0 6px; }
.check-inline { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--green); padding: 0 !important; }

@media (max-width: 860px) { .entry-grid { grid-template-columns: 1fr; padding: 24px 16px 48px; } }
.dialog input[type=radio], .dialog input[type=checkbox] { padding: 0; border: 0; background: none; }

/* ===== תחומים בסליידר (כרטיסי קבוצה) ===== */
.gboard { min-height: 320px; }
.gboard h3 a, .gboard .go { color: #fff; text-decoration: none; }
.gboard h3 a:hover { text-decoration: underline; }
.gboard p { max-width: none; }
.gchips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.gchip { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.gchip:hover { background: rgba(255, 255, 255, .3); }
.gboard .go { position: relative; z-index: 1; }

/* ===== נסיעות לישיבות ===== */
.section-head h2 svg.i { vertical-align: -0.15em; }
.ride-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ride-ctas.center { justify-content: center; }
#ride-filter .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
#ride-filter .pill.on { background: var(--forest); color: #fff; border-color: var(--forest); }
.ride-day { margin: 32px 0 0; font-size: 21px; font-weight: 800; color: var(--forest); }
.list.ride-list { padding: 16px 0 0; }
.ride { --g: #34536a; --g-soft: #e3ebf1; }
.ride-req { --g: #8f6122; --g-soft: #f5ecdc; }
.ride-kind { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--g); }
.ride .ride-dir { display: block; font-size: 14px; color: var(--muted); }
.seats { flex: none; display: grid; justify-items: center; padding: 6px 12px; border-radius: 14px; background: var(--g-soft); color: var(--g); font-size: 13px; line-height: 1.2; }
.seats b { font-size: 22px; }
.ride-by { font-size: 14.5px; }
.ride-empty { padding: 28px; border-radius: 24px; background: #e3ebf1; }
.ride-empty p { margin: 0; }
.ride-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ride-kinds .radio { font-size: 14.5px; padding: 10px 6px; text-align: center; }
#ride-form:not(:has(input[name=kind][value=offer]:checked)) .offer-only { display: none; }

.mail-body { white-space: pre-wrap; margin: 8px 0 0; padding: 12px; border-radius: 12px; background: var(--cream-2); font-size: 15px; max-height: 320px; overflow: auto; }
details summary { cursor: pointer; font-size: 14px; margin-top: 4px; }
@media (max-width: 560px) { .ride-kinds { grid-template-columns: 1fr; } }

.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.legal { max-width: 760px; padding-block: 8px 48px; line-height: 1.75; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal ul { padding-inline-start: 1.3em; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.footer-side { display: flex; flex-direction: column; gap: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* לוחות מודעות – קווי מתאר בלבד, כדי להבדיל מ"כל התחומים" */
.board-outline { background: var(--surface); color: var(--bc); border: 2px solid var(--bc); }
.board-outline:hover { background: color-mix(in srgb, var(--bc) 6%, #fff); }
.board-outline .b-ico { background: transparent; border: 2px solid var(--bc); }
.board-outline p { color: var(--ink); opacity: .8; }
.board-outline .bg { opacity: .07; }

/* אייקונים קוויים במקום אימוג'ים */
.empty-state .big svg.i, .sent-box .big svg.i { width: 52px; height: 52px; stroke-width: 1.5; color: var(--g, var(--green)); }
.page-title .ico svg.i { width: 32px; height: 32px; }
.info-ico svg.i { width: 30px; height: 30px; color: var(--terra); }
.btn svg.i { vertical-align: -0.2em; }

/* ---------- רכיב נגישות ---------- */
.a11y-widget { position: fixed; bottom: 18px; left: 18px; z-index: 900; font-family: "Rubik", system-ui, Arial, sans-serif; zoom: 1 !important; }
.a11y-fab { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #1d4f91; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.a11y-fab svg.i { width: 30px; height: 30px; }
.a11y-fab:hover { background: #163e73; }
.a11y-panel { position: absolute; bottom: 64px; left: 0; width: 310px; max-width: calc(100vw - 36px); max-height: calc(100vh - 100px); overflow: auto; background: #fff; color: #1f2a26; border: 1px solid #cfd6df; border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2); direction: rtl; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.a11y-head h2 { margin: 0; font-size: 18px; }
.a11y-x { border: 0; background: none; font-size: 18px; cursor: pointer; color: inherit; width: 36px; height: 36px; border-radius: 8px; }
.a11y-x:hover { background: #eef1f5; }
.a11y-zoom-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f3f5f8; border-radius: 12px; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.a11y-zoom-row span { flex: 1; }
.a11y-zoom-row button { width: 40px; height: 36px; border: 1px solid #b9c3cf; border-radius: 8px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: inherit; }
.a11y-zoom-row button:disabled { opacity: .4; cursor: default; }
.a11y-zoom-row output { min-width: 46px; text-align: center; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 2px solid #dde3ea; border-radius: 12px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: inherit; cursor: pointer; text-align: center; }
.a11y-grid button svg.i { width: 24px; height: 24px; }
.a11y-grid button:hover { border-color: #1d4f91; }
.a11y-grid button[aria-pressed="true"] { border-color: #1d4f91; background: #e8f0fb; color: #1d4f91; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 14.5px; }
.a11y-foot button { border: 0; background: none; font: inherit; color: #a3341f; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.a11y-foot a { color: #1d4f91; }

/* מצבים */
html.a11y-zoom :is(.topbar, .mainnav, .groupbar, main, .footer, dialog) { zoom: var(--a11y-zoom); }
html.a11y-contrast body { background: #fff !important; }
html.a11y-contrast :is(main, .footer, .topbar, .mainnav, .groupbar, dialog) { filter: contrast(1.35); }
html.a11y-contrast :is(main, .footer, dialog) :is(p, li, span, small, .muted, label) { color: #000 !important; opacity: 1 !important; }
html.a11y-mono :is(.topbar, .mainnav, .groupbar, main, .footer, dialog) { filter: grayscale(1); }
html.a11y-contrast.a11y-mono :is(.topbar, .mainnav, .groupbar, main, .footer, dialog) { filter: grayscale(1) contrast(1.35); }
html.a11y-links :is(main, .footer, .topbar, .mainnav, .groupbar, dialog) a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid #e0a33a; outline-offset: 1px; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: .01em; }
html.a11y-spacing :is(main, .footer, dialog) * { line-height: 1.9 !important; word-spacing: .16em !important; letter-spacing: .03em !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6 1.5L10 19z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 6 3, auto !important; }
@media print { .a11y-widget { display: none; } }
