/* ─── מפת האתר (/site-map) ───────────────────────────────────────
   Same visual language as /guides/grid-map: white rounded boxes, green
   lines, gold focus/hover, an energy "busbar" feeding every section. */
.sm-page { padding-top: 1.25rem; padding-bottom: 2.5rem; }
.sm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sm-head { text-align: center; margin-bottom: 1rem; }
.sm-hero { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 auto 0.5rem; }
.sm-flow, .sm-bus-flow { animation: smFlow 1.6s linear infinite; }
@keyframes smFlow { to { stroke-dashoffset: -32; background-position: -32px 0; } }
.sm-title { font-size: 2rem; color: var(--primary); margin: 0; }
.sm-lead { max-width: 640px; margin: 0.35rem auto 0; color: var(--text); }

.sm-tools { position: relative; max-width: 560px; margin: 1rem auto 0.6rem; }
.sm-sicon { position: absolute; inset-inline-start: 14px; top: 13px; color: var(--text-light); pointer-events: none; }
.sm-search { width: 100%; font: inherit; font-size: 1rem; padding: 0.75rem 2.6rem 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); min-height: 48px; }
.sm-search:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--primary); }
.sm-status { min-height: 1.2em; margin: 0.35rem 0 0; font-size: 0.86rem; color: var(--text-light); text-align: center; }

.sm-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 0 0 1.2rem; }
.sm-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--primary); font-size: 0.88rem; font-weight: 600; text-decoration: none; min-height: 36px; }
.sm-chip:hover, .sm-chip.is-hot { border-color: var(--primary-light); background: #F5FFF9; }
.sm-chip:focus-visible, .sm-link:focus-visible, .sm-home:focus-visible, .sm-sec-title a:focus-visible { outline: 3px solid #E0A100; outline-offset: 2px; }
.sm-chip.is-dim { opacity: 0.45; }

.sm-map { position: relative; }
.sm-home { display: flex; gap: 0.75rem; align-items: center; max-width: 520px; margin: 0 auto; padding: 0.85rem 1.1rem; background: var(--primary); color: #fff; border-radius: 14px; text-decoration: none; box-shadow: var(--shadow-md); }
.sm-home .sm-desc { color: #D9F2E6; display: block; font-size: 0.86rem; }
.sm-home-ic { display: inline-flex; width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.12); align-items: center; justify-content: center; color: var(--gold); flex: none; }
.sm-bus { position: relative; height: 26px; margin: 0 6%; border-bottom: 4px solid var(--primary); }
.sm-bus::before { content: ""; position: absolute; right: 50%; top: 0; height: 22px; border-right: 4px solid var(--primary); }
.sm-bus-flow { position: absolute; inset-inline: 0; bottom: -4px; height: 4px; background: repeating-linear-gradient(90deg, #00C9A7 0 6px, transparent 6px 16px); background-size: 32px 4px; }

.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem 1rem; padding-top: 22px; }
.sm-sec { position: relative; background: var(--card); border: 1.3px solid #D3DED8; border-radius: 14px; padding: 0.9rem 0.95rem 0.6rem; transition: border-color .15s, box-shadow .15s; }
.sm-feeder { position: absolute; top: -24px; right: 50%; height: 23px; border-right: 3px solid var(--primary-light); transition: border-color .15s; }
.sm-sec:hover, .sm-sec:focus-within, .sm-sec.is-hot { border-color: #E0A100; box-shadow: 0 0 0 2px #FDE68A, var(--shadow-md); }
.sm-sec:hover .sm-feeder, .sm-sec:focus-within .sm-feeder, .sm-sec.is-hot .sm-feeder { border-color: #E0A100; }
.sm-sec-head { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: start; margin-bottom: 0.5rem; }
.sm-sec-ic { display: inline-flex; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; background: #EDF5F0; color: var(--primary); }
.sm-sec-title { font-size: 1.12rem; margin: 0; }
.sm-sec-title a { color: var(--primary); text-decoration: none; }
.sm-sec-title a:hover { text-decoration: underline; }
.sm-sec-desc { margin: 0.1rem 0 0; font-size: 0.85rem; color: var(--text-light); }
.sm-count { font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--primary); border-radius: 999px; padding: 0.1rem 0.55rem; }

.sm-sec-wide { grid-column: 1 / -1; }
.sm-sec-wide > .sm-list { columns: 3 300px; column-gap: 1.6rem; border-right: 0; margin-right: 0; }
.sm-sec-wide > .sm-list > .sm-item { break-inside: avoid; border-right: 2px solid #CFE3D7; margin-right: 8px; }
.sm-list, .sm-sub { list-style: none; margin: 0; padding: 0; }
.sm-list { border-right: 2px solid #CFE3D7; margin-right: 18px; }
.sm-sub { border-right: 2px dashed #CFE3D7; margin: 0 22px 0.3rem 0; }
.sm-item { position: relative; }
.sm-link { display: block; position: relative; padding: 0.42rem 1.05rem 0.42rem 0.3rem; border-radius: 8px; text-decoration: none; color: var(--text); }
.sm-dot { position: absolute; right: -6px; top: 0.85rem; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--primary-light); }
.sm-item-sub .sm-dot { width: 8px; height: 8px; right: -5px; border-color: #8BB9A0; }
.sm-link:hover, .sm-item.is-match > .sm-link { background: #FFFBEB; }
.sm-link:hover .sm-dot, .sm-link:focus-visible .sm-dot { background: #F0B429; border-color: #B45309; }
.sm-ttl { display: block; font-weight: 600; font-size: 0.95rem; color: var(--primary-dark); }
.sm-desc { display: block; font-size: 0.82rem; color: var(--text-light); line-height: 1.45; }
.sm-tag { display: inline-flex; align-items: center; gap: 2px; font-size: 0.72rem; font-weight: 700; color: #fff; background: #475569; border-radius: 999px; padding: 0 0.45rem; vertical-align: 1px; }
.sm-item[hidden], .sm-sec[hidden] { display: none; }
.sm-empty { text-align: center; padding: 1.5rem; color: var(--text); }
.sm-foot { margin-top: 1.5rem; font-size: 0.82rem; color: var(--text-light); text-align: center; }
mark.sm-hl { background: #FDE68A; color: inherit; border-radius: 3px; padding: 0 1px; }

@media (max-width: 640px) {
  .sm-title { font-size: 1.6rem; }
  .sm-bus { margin: 0 12%; }
  .sm-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .sm-flow, .sm-bus-flow { animation: none; } }
@media print { .sm-tools, .sm-jump, .sm-hero, .sm-bus { display: none; } }
