/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typography */
html {
  font-family: "Assistant", "Alef", "Noto Sans Hebrew", sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  background: #fafafa;
  color: #333;
}

/* RTL + LTR automatic support */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

body {
  max-width: 850px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Navigation */
nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  padding: 0.25rem 0;
}
nav a[aria-current="page"] {
  border-bottom: 2px solid #444;
}

/* Headings */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #222;
}
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

/* Sections & Articles */
section, article, aside {
  margin-bottom: 2rem;
}

/* Lists */
ul {
  margin-top: 0.4rem;
  padding-inline-start: 1.2rem;
}
ul li {
  margin-bottom: 0.4rem;
}

/* Links */
a {
  color: #0068a5;
}
a:hover {
  text-decoration: underline;
}

/* Form Filters */
form {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
select {
  padding: 0.3rem 0.4rem;
  font-size: 1rem;
}

/* Info Cards (optional usage) */
.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem 1.3rem;
  border: 1px solid #e5e5e5;
  margin-bottom: 1rem;
}
.card h3 {
  margin-bottom: 0.4rem;
}

/* Lede / About Section */
.lede {
  max-width: 70ch;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f9f9f9;
  border-left: 4px solid #0068a5;
  line-height: 1.7;
}

.lede h2 {
  margin-top: 0;
  color: #222;
}

.lede p {
  color: #444;
  margin-bottom: 1rem;
}

.lede a {
  color: #0068a5;
  text-decoration: none;
  font-weight: 500;
}

.lede a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq-section {
  max-width: 70ch;
  margin: 2rem auto;
  padding: 1.5rem;
}

.faq-section h2 {
  color: #222;
  margin-bottom: 1.5rem;
}

.faq-section details {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  background: #fafafa;
}

.faq-section details[open] {
  background: #f0f8ff;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  color: #0068a5;
  user-select: none;
}

.faq-section summary:hover {
  text-decoration: underline;
}

.faq-section details p {
  margin-top: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Section Intro */
.section-intro {
  color: #666;
  margin-top: -0.6rem;
  margin-bottom: 1.2rem;
  max-width: 60ch;
  font-size: 0.95rem;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  text-align: center;
  color: #666;
}

/* Mobile Responsive (Israelis on phones!) */
@media (max-width: 768px) {
  body {
    padding: 1rem;
    max-width: 100%;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
  }

  nav {
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  nav a {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    background: #f0f0f0;
  }

  nav a[aria-current="page"] {
    background: #0068a5;
    color: white;
    border-bottom: none;
  }

  .lede {
    padding: 1rem;
    margin: 1.5rem auto;
  }

  .lede p {
    font-size: 0.95rem;
  }

  .faq-section {
    padding: 1rem;
    margin: 1.5rem auto;
  }

  .faq-section details {
    padding: 0.75rem;
  }

  .faq-section summary {
    font-size: 0.95rem;
  }

  article {
    margin-bottom: 1.5rem;
  }

  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  img {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }

  h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1rem;
    margin-top: 1.2rem;
  }

  nav {
    gap: 0.25rem;
    font-size: 0.8rem;
  }

  nav a {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
  }

  .lede h2,
  .faq-section h2 {
    font-size: 1rem;
  }

  .lede p,
  .faq-section details p {
    font-size: 0.9rem;
  }

  .section-intro {
    font-size: 0.85rem;
  }

  ul {
    padding-inline-start: 1rem;
  }

  ul li {
    font-size: 0.9rem;
  }

  footer {
    font-size: 0.75rem;
  }
}
