/* ==========================================================
   אתר תכנים — יהדות ופרשת שבוע
   עיצוב: אדום · לבן · גוונים חמים | RTL
   ========================================================== */

/* ------- משתנים ------- */
:root {
  /* צבעים */
  --red:        #C62828;
  --red-dark:   #8E1B1B;
  --red-soft:   #F7DCDA;
  --gold:       #C79A3A;
  --gold-soft:  #F5E7C8;

  --cream:      #FFF8F1;
  --sand:       #F6E7D6;
  --sand-deep:  #EBD5BE;
  --white:      #FFFFFF;

  --ink:        #2B1A14;
  --ink-soft:   #6B5348;
  --ink-faint:  #75604F;

  --line:       #E4D0BC;

  /* טיפוגרפיה */
  --font-ui:    'Heebo', system-ui, 'Segoe UI', Arial, sans-serif;
  --font-read:  'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;

  /* מידות */
  --wrap:       1180px;
  --wrap-narrow: 760px;
  --radius:     14px;
  --radius-sm:  9px;

  /* צללים "קשיחים" — חתימת העיצוב */
  --shadow-hard:    4px 4px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);
  --shadow-red:     4px 4px 0 var(--red);
  --shadow-soft:    0 6px 22px rgba(43, 26, 20, .10);

  --border: 2px solid var(--ink);
}

/* ------- איפוס ------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ------- עזרי נגישות ------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 50%; top: -100px;
  transform: translateX(50%);
  background: var(--ink); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 1000; font-weight: 700; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ------- מעטפות ------- */
.wrap        { max-width: var(--wrap);        margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: 20px; }

/* ==========================================================
   כותרת עליונה
   ========================================================== */
.masthead {
  background: var(--sand);
  border-bottom: 3px solid var(--ink);
  padding: 14px 0 0;
}

.masthead__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
  position: relative;
}

/* שורת שירות עליונה */
.masthead__utility {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.searchbox {
  display: flex;
  align-items: center;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  overflow: hidden;
  height: 38px;
  max-width: 230px;
}
.searchbox input {
  border: 0; outline: 0; background: transparent;
  padding: 0 14px; font: inherit; font-size: 15px;
  width: 100%; min-width: 0; color: var(--ink);
}
.searchbox button {
  border: 0; background: var(--red); color: #fff;
  height: 100%; width: 42px;
  display: grid; place-items: center;
  cursor: pointer;
}
.searchbox button:hover { background: var(--red-dark); }

.utility-link {
  font-weight: 700; font-size: 14px;
  text-decoration: none; color: var(--ink);
  border: var(--border); border-radius: 999px;
  padding: .35rem .9rem; background: var(--gold-soft);
}
.utility-link:hover { background: var(--gold); color: var(--ink); }

/* מותג מרכזי */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 0 18px;
  text-align: center;
}
.brand__mark { flex: 0 0 auto; line-height: 0; }
.brand__mark svg { filter: drop-shadow(3px 3px 0 var(--ink)); }

.brand__text { display: flex; flex-direction: column; align-items: flex-start; }

.brand__name {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--red);
  text-shadow: 2px 2px 0 var(--ink);
}
.brand__tagline {
  font-size: clamp(.72rem, 1.8vw, .9rem);
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: .35rem;
}

/* ניווט ראשי — סרגל גלולה */
.primary-nav {
  background: var(--white);
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -3px 0 rgba(0,0,0,.02);
}
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap;
}
.primary-nav a {
  display: block;
  padding: .85rem 1.25rem;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  color: var(--ink);
  border-inline-start: 1px solid var(--line);
  transition: background .15s ease, color .15s ease;
}
.primary-nav li:first-child a { border-inline-start: 0; }
.primary-nav a:hover { background: var(--red-soft); color: var(--red-dark); }
.primary-nav a[aria-current="page"] { background: var(--red); color: #fff; }

/* כפתור תפריט (מובייל) */
.nav-toggle {
  display: none;
  position: absolute;
  inset-inline-end: 20px; top: 8px;
  width: 42px; height: 38px;
  background: var(--white); border: var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 9px 9px;
}
.nav-toggle span {
  display: block; height: 2.5px; background: var(--ink);
  border-radius: 2px; margin: 0 0 4px;
}
.nav-toggle span:last-child { margin-bottom: 0; }

/* ==========================================================
   מקטעים כלליים
   ========================================================== */
.section { padding: 46px 0; }
.section--alt {
  background: var(--sand);
  border-block: 3px solid var(--ink);
}

.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ink);
}
.section__title {
  margin: 0;
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  position: relative;
}
.section__title::after {
  content: ''; display: block;
  width: 54px; height: 5px; background: var(--red);
  margin-top: .4rem; border-radius: 3px;
}
.section__more {
  font-weight: 800; font-size: .92rem;
  text-decoration: none; color: var(--red-dark);
}
.section__more:hover { text-decoration: underline; }

/* כותרת עמוד */
.page-head { padding: 40px 0 14px; }
.page-head__title {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  margin-bottom: .25em;
}
.page-head__title::after {
  content: ''; display: block;
  width: 78px; height: 6px; background: var(--red);
  margin-top: .3rem; border-radius: 3px;
}
.page-head__lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* ==========================================================
   גריד וכרטיסים
   ========================================================== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
  height: 100%;
}
.card:hover {
  transform: translate(2px, -3px);
  box-shadow: 6px 7px 0 var(--red);
}

.card__link {
  display: flex; flex-direction: column;
  height: 100%;
  text-decoration: none; color: inherit;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--sand-deep);
  border-bottom: var(--border);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* מציין־מקום דקורטיבי כשאין תמונה */
.card__media--empty {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(
      135deg,
      var(--sand) 0 14px,
      var(--sand-deep) 14px 28px
    );
}
.card__media--empty::after {
  content: '';
  position: absolute; inset: 14px;
  border: 2px solid rgba(198, 40, 40, .28);
  border-radius: var(--radius-sm);
}
.card__media-fallback {
  font-size: 2.2rem;
  color: var(--red);
  opacity: .55;
  position: relative;
  z-index: 1;
}

.card__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(43, 26, 20, .22);
  transition: background .16s ease;
}
.card:hover .card__play { background: rgba(43, 26, 20, .35); }

.card__body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; flex: 1;
}

.card__meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag {
  font-size: .68rem; font-weight: 900;
  letter-spacing: .04em;
  padding: .22rem .6rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--gold-soft);
  color: var(--ink);
}
.tag--video { background: var(--red); color: #fff; border-color: var(--ink); }

.card__cat { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }

.card__title {
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.32;
  margin: 0 0 .4rem;
}
.card:hover .card__title { color: var(--red-dark); }

.card__parasha {
  font-family: var(--font-read);
  font-size: .9rem; font-weight: 700;
  color: var(--red-dark);
  margin: 0 0 .4rem;
}

.card__excerpt {
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 0 0 .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__date {
  margin: auto 0 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-faint);
}

/* כרטיס מצומצם */
.card--compact .card__excerpt { display: none; }
.card--compact .card__title { font-size: 1rem; }
.card--compact .card__body { padding: 13px 14px 15px; }

/* ==========================================================
   אזור מומלצים (דף הבית)
   ========================================================== */
.hero { padding: 34px 0 6px; }
.hero__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.6fr 1fr;
}
.hero__slot--lead .card__title { font-size: clamp(1.4rem, 3vw, 2rem); }
.hero__slot--lead .card__media { aspect-ratio: 16 / 8.4; }
.hero__slot--lead .card__excerpt { -webkit-line-clamp: 4; font-size: 1rem; }
.hero__slot--side { display: grid; gap: 22px; }

/* כשיש יותר משני מומלצים — הצד נערם */
.hero__grid > .hero__slot--side:nth-child(n+3) { grid-column: 2; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid > .hero__slot--side:nth-child(n+3) { grid-column: auto; }
}

/* ==========================================================
   שבבי נושאים
   ========================================================== */
.topic-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 26px;
}
.topic-row--filters { margin: 18px 0 20px; }

.topic-chip {
  display: inline-block;
  padding: .45rem 1.05rem;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-hard-sm);
  font-weight: 800; font-size: .9rem;
  text-decoration: none; color: var(--ink);
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}
.topic-chip:hover {
  background: var(--gold-soft); color: var(--ink);
  transform: translate(1px, -2px);
  box-shadow: 4px 5px 0 var(--ink);
}
.topic-chip.is-active {
  background: var(--red); color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.result-count {
  font-size: .86rem; font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.empty {
  padding: 34px 20px;
  text-align: center;
  background: var(--white);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

/* ==========================================================
   עימוד
   ========================================================== */
.pagination {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin: 40px 0 10px;
}
.pagination__link {
  min-width: 42px;
  padding: .45rem .7rem;
  text-align: center;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  font-weight: 800;
  text-decoration: none; color: var(--ink);
}
.pagination__link:hover { background: var(--gold-soft); color: var(--ink); }
.pagination__link.is-current { background: var(--red); color: #fff; }

/* ==========================================================
   עמוד מאמר / סרטון
   ========================================================== */
.article { padding-bottom: 20px; }

.article__head { padding: 34px 20px 22px; }

.breadcrumb {
  font-size: .82rem; font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 14px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }

.draft-banner {
  background: var(--gold-soft);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  font-weight: 700; font-size: .92rem;
}

.article__meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.article__parasha {
  font-family: var(--font-read);
  font-weight: 700; color: var(--red-dark);
}

.article__title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.16;
  margin-bottom: .35em;
}

.article__lead {
  font-family: var(--font-read);
  font-size: 1.16rem;
  line-height: 1.75;
  color: var(--ink-soft);
  border-inline-start: 5px solid var(--red);
  padding-inline-start: 1rem;
  margin-bottom: 1.2em;
}

.article__byline {
  font-size: .85rem; font-weight: 600;
  color: var(--ink-faint);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--ink);
}
.dot { color: var(--line); }

.article__cover {
  margin: 0 0 26px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

/* מסגרת וידאו רספונסיבית */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 28px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* גוף הטקסט */
.article__body {
  font-family: var(--font-read);
  font-size: 1.12rem;
  line-height: 1.95;
  padding-bottom: 26px;
}
.article__body h2 {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  margin: 1.9em 0 .55em;
  padding-bottom: .25em;
  border-bottom: 2px solid var(--line);
}
.article__body h3 {
  font-family: var(--font-ui);
  font-size: 1.22rem;
  margin: 1.6em 0 .45em;
  color: var(--red-dark);
}
.article__body ul, .article__body ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.article__body li { margin-bottom: .45em; }

.article__body blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.3rem;
  background: var(--gold-soft);
  border-inline-start: 5px solid var(--gold);
  border-radius: var(--radius-sm);
  font-style: italic;
}

.article__body img {
  border: var(--border);
  border-radius: var(--radius-sm);
  margin: 1.4em 0;
}

.article__body a { font-weight: 600; }

.article__body hr {
  border: 0; border-top: 2px solid var(--line);
  margin: 2.2em 0;
}

.article__body table {
  width: 100%; border-collapse: collapse;
  margin: 1.4em 0; font-size: .96rem;
  font-family: var(--font-ui);
}
.article__body th, .article__body td {
  border: 1px solid var(--line); padding: .6rem .8rem; text-align: start;
}
.article__body th { background: var(--sand); font-weight: 800; }

.article__foot {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 3px solid var(--ink);
}

.muted { color: var(--ink-faint); font-size: .9rem; }

/* ==========================================================
   כפתורים
   ========================================================== */
.btn {
  display: inline-block;
  padding: .62rem 1.3rem;
  background: var(--red);
  color: #fff;
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-ui);
  font-weight: 800; font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn:hover {
  color: #fff; background: var(--red-dark);
  transform: translate(1px, -2px);
  box-shadow: 4px 5px 0 var(--ink);
}
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink); }

.btn--ghost { background: var(--white); color: var(--ink); }
.btn--ghost:hover { background: var(--gold-soft); color: var(--ink); }

.btn--sm { padding: .42rem .95rem; font-size: .85rem; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ==========================================================
   עמוד שגיאה
   ========================================================== */
.error-page { text-align: center; padding: 70px 20px 90px; }
.error-page__code {
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 900; line-height: 1;
  color: var(--red);
  text-shadow: 4px 4px 0 var(--ink);
  margin: 0 0 .1em;
}
.error-page__title { font-size: clamp(1.4rem, 4vw, 2rem); }
.error-page__message { color: var(--ink-soft); margin-bottom: 1.8em; }
.error-page p .btn { margin: 0 6px 8px; }

/* ==========================================================
   הודעות טופס
   ========================================================== */
.form-message {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  border: var(--border);
  font-weight: 700; font-size: .93rem;
  margin-bottom: 1rem;
}
.form-message--error   { background: var(--red-soft);  color: var(--red-dark); }
.form-message--success { background: #DCEFDC;          color: #1E5B24; }

/* ==========================================================
   עמוד אודות
   ========================================================== */
.about-stats {
  display: grid;
  gap: 16px;
  /* ארבעה בשורה, או שניים-שניים — אף פעם לא שלושה ועוד אחד יתום */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px 0 34px;
}
.about-stat {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 18px 20px;
  text-align: center;
}
.about-stat__num {
  display: block;
  font-size: 2.1rem; font-weight: 900;
  color: var(--red); line-height: 1.1;
}
.about-stat__label {
  display: block;
  font-size: .84rem; font-weight: 700;
  color: var(--ink-soft); margin-top: .2rem;
}

.about-sections {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  font-family: var(--font-ui);
  font-size: 1rem;
}
.about-sections li {
  padding: .6rem .9rem;
  margin-bottom: .5rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .14s ease, transform .14s ease;
}
.about-sections li:hover {
  border-color: var(--ink);
  transform: translateX(-3px);
}
.about-sections a { text-decoration: none; color: var(--ink); }
.about-sections a strong { color: var(--red-dark); }

/* ==========================================================
   עמוד יצירת קשר
   ========================================================== */
.contact-layout {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.7fr) 1fr;
  align-items: start;
  padding-bottom: 30px;
}

.contact-form-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 26px 26px 28px;
}

.contact-form .field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.contact-form label {
  font-family: var(--font-ui);
  font-size: .88rem; font-weight: 900;
}
.contact-form .req { color: var(--red); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: .65rem .85rem;
  font: inherit; font-family: var(--font-ui); font-size: .97rem;
  background: var(--cream);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-sm);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: 3px solid var(--red); outline-offset: 1px; background: var(--white);
}
.contact-form .hint {
  font-size: .8rem; color: var(--ink-faint);
  margin: .8rem 0 0;
}

/* מלכודת בוטים — מוסתרת מהעין אך לא מקוראי מסך בלבד */
.hp-field {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* אישור שליחה */
.sent-note { text-align: center; padding: 22px 10px; }
.sent-note__mark {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px;
  margin-bottom: .6rem;
  background: var(--red); color: #fff;
  border: var(--border); border-radius: 50%;
  box-shadow: var(--shadow-hard-sm);
  font-size: 1.7rem; font-weight: 900;
}
.sent-note h2 { margin-bottom: .3em; }
.sent-note p { color: var(--ink-soft); }

/* צד */
.contact-side { display: grid; gap: 18px; }
.side-note {
  background: var(--sand);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 18px 20px;
}
.side-note h2 {
  font-size: 1rem;
  margin-bottom: .6em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--sand-deep);
}
.side-note p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { margin-bottom: .45em; }
.side-links a {
  font-size: .93rem; font-weight: 700;
  text-decoration: none; color: var(--ink);
}
.side-links a:hover { color: var(--red); text-decoration: underline; }

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ==========================================================
   כותרת תחתונה
   ========================================================== */
.site-footer {
  background: var(--ink);
  color: var(--sand);
  margin-top: 60px;
  border-top: 4px solid var(--red);
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding-block: 46px 34px;
}
.footer-brand {
  font-size: 1.5rem; color: var(--white);
  margin-bottom: .3em;
}
.footer-about { color: #C9B3A2; font-size: .95rem; max-width: 40ch; }

.footer-col h3 {
  font-size: .82rem; letter-spacing: .08em;
  color: var(--gold); margin-bottom: 1em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55em; }
.footer-col a {
  color: var(--sand); text-decoration: none; font-size: .95rem;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 18px;
}
.footer-bottom p {
  margin: 0; font-size: .84rem; color: #A8907F;
}

/* ==========================================================
   רספונסיביות
   ========================================================== */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }

  .masthead__utility { justify-content: flex-start; padding-inline-end: 56px; }
  .searchbox { max-width: 100%; flex: 1; }

  .brand { flex-direction: column; gap: 10px; padding-bottom: 14px; }
  .brand__text { align-items: center; }

  .primary-nav {
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .primary-nav ul {
    flex-direction: column;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .primary-nav[data-open="true"] ul { max-height: 460px; }
  .primary-nav a {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    text-align: center;
  }
  .primary-nav li:first-child a { border-top: 0; }

  .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .article__body { font-size: 1.06rem; line-height: 1.85; }
}

/* ------- הפחתת תנועה ------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------- הדפסה ------- */
@media print {
  .masthead, .site-footer, .article__foot, .section--alt { display: none; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; }
}

/* ==========================================================
   עמודים משפטיים — נגישות ופרטיות
   ========================================================== */
.legal-page h2 {
  margin-top: 1.9em;
  padding-bottom: .3em;
  border-bottom: 2px solid var(--sand-deep);
}
.legal-page h3 {
  margin-top: 1.3em;
  font-size: 1.05rem;
  color: var(--red-dark);
}
.legal-page ul { margin-bottom: 1.3em; }
.legal-page li { margin-bottom: .5em; }

.legal-page kbd {
  display: inline-block;
  padding: .12em .45em;
  font-family: var(--font-ui);
  font-size: .82em; font-weight: 700;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 1px 1px 0 var(--ink);
}
.legal-page code {
  padding: .1em .35em;
  font-size: .9em;
  background: var(--sand);
  border-radius: 4px;
}

.legal-summary {
  background: var(--sand);
  border: var(--border);
  border-inline-start: 6px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 20px 14px;
  margin-bottom: 1.6em;
}
.legal-summary h2 {
  margin-top: 0; border: 0; padding: 0;
  font-size: 1.05rem;
}
.legal-summary ul { margin-bottom: 0; }

/* מייל ישיר בעמוד יצירת קשר — כתובות ארוכות נשברות במקום לחרוג במובייל */
.side-email { margin-top: .4rem !important; }
.side-email a {
  font-family: var(--font-ui);
  font-weight: 800; color: var(--red-dark);
  overflow-wrap: anywhere;
}
.side-email a:hover { color: var(--red); }

/* ------- עמוד אודות: ביוגרפיה ------- */
.author-bio {
  background: var(--white);
  border: var(--border);
  border-inline-start: 6px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 20px 24px 8px;
  margin-bottom: 2em;
}
.author-bio h2 { margin-top: 0; }

.author-bio__intro { font-size: 1.12rem; font-weight: 600; }
@media (max-width: 720px) {
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
