@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&family=Assistant:wght@300;400;500;600;700&family=Frank+Ruhl+Libre:wght@500;700;900&display=swap');

:root {
  --ink-1: #14171f;
  --ink-2: #2b303b;
  --ink-3: #5a6172;
  --ink-4: #9aa0ad;
  --line: #e6e8ee;
  --line-soft: #f0f2f6;
  --bg: #ffffff;
  --bg-2: #fafbfc;
  --bg-3: #f4f6fa;
  --brand: #1e3a8a;
  --brand-2: #2563eb;
  --accent: #d97706;
  --success: #15803d;
  --container: 760px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  direction: rtl;
  background: var(--bg);
  color: var(--ink-1);
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; transition: color 200ms var(--ease); }
a:hover { color: var(--accent); text-decoration: underline; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .row {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.brand-link { font-family: 'Frank Ruhl Libre', 'Heebo', serif; font-weight: 700; font-size: 1.15rem; color: var(--ink-1); }
.brand-link:hover { color: var(--brand-2); text-decoration: none; }
.brand-link .dot { color: var(--accent); }
.top-cta {
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink-1);
  color: #fff;
  transition: background 200ms var(--ease);
}
.top-cta:hover { background: var(--brand-2); color: #fff; text-decoration: none; }

/* Hero */
.hero { padding: 56px 0 32px; }
.hero .kicker {
  display: inline-block;
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  margin-bottom: 22px;
}
.hero .lede {
  font-size: 1.18rem;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 28px;
}
.hero .meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-family: 'Assistant', sans-serif;
  color: var(--ink-3);
  font-size: 0.92rem;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.hero .meta .sep { color: var(--ink-4); }

/* Article body */
.article h2 {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.25;
  color: var(--ink-1);
  margin: 56px 0 18px;
  letter-spacing: -0.01em;
}
.article h3 {
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--ink-1);
  margin: 32px 0 12px;
}
.article p {
  color: var(--ink-2);
  margin-bottom: 18px;
}
.article ul, .article ol { margin: 0 0 22px 0; padding-inline-start: 28px; }
.article ul li, .article ol li { color: var(--ink-2); margin-bottom: 8px; }
.article strong { color: var(--ink-1); font-weight: 700; }
.article hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 56px 0;
}

.callout {
  background: var(--bg-3);
  border-right: 4px solid var(--accent);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
  font-family: 'Assistant', sans-serif;
}
.callout p { color: var(--ink-2); margin: 0; }
.callout strong { color: var(--ink-1); }

.quote {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
}
.quote .quote-text {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 500;
  font-size: 1.18rem;
  font-style: italic;
  color: var(--ink-1);
  line-height: 1.6;
  margin-bottom: 14px;
}
.quote .quote-who {
  font-family: 'Assistant', sans-serif;
  font-size: 0.92rem;
  color: var(--ink-3);
}
.quote .quote-who strong { color: var(--ink-1); }

/* Cards / Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0 28px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h4 {
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-1);
  margin-bottom: 8px;
}
.card p {
  font-size: 0.95rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.65;
}

/* FAQ */
details.faq {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary {
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  color: var(--ink-1);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 1.04rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-family: 'Assistant', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink-3);
  transition: transform 200ms var(--ease);
  flex-shrink: 0;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* Mid-article CTA */
.mid-cta {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  margin: 40px 0;
  text-align: center;
}
.mid-cta h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
}
.mid-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 20px;
}
.mid-cta a {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 999px;
  transition: transform 200ms var(--ease);
}
.mid-cta a:hover { transform: translateY(-2px); text-decoration: none; color: var(--brand); }

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 50px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.site-footer .row { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.site-footer .col h5 {
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.site-footer .col p, .site-footer .col a {
  font-family: 'Assistant', sans-serif;
  font-size: 0.95rem;
  color: var(--ink-2);
  display: block; margin-bottom: 6px;
}
.site-footer .col a:hover { color: var(--brand-2); }
.site-footer .bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: 'Assistant', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-4);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* Related */
.related {
  margin: 48px 0 0;
  padding: 28px;
  background: var(--bg-3);
  border-radius: var(--radius-lg);
}
.related h4 {
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.related ul { list-style: none; padding: 0; margin: 0; }
.related ul li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-family: 'Heebo', sans-serif;
  font-weight: 600;
}
.related ul li:first-child { border-top: 0; }
.related ul li a { color: var(--ink-1); font-size: 1.02rem; }
.related ul li a:hover { color: var(--brand-2); text-decoration: none; }

/* Index hub */
.hub-grid { display: grid; gap: 16px; margin-top: 24px; }
.hub-card {
  display: block;
  padding: 24px 26px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-2);
  box-shadow: 0 12px 28px rgba(30,58,138,0.08);
  text-decoration: none;
}
.hub-card .hub-kicker {
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.hub-card h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  color: var(--ink-1);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.hub-card p {
  font-size: 0.96rem;
  color: var(--ink-3);
  margin: 0;
}

@media (max-width: 640px) {
  html, body { font-size: 17px; }
  .hero { padding: 36px 0 24px; }
  .article h2 { margin-top: 44px; }
  .mid-cta { padding: 26px 22px; }
  .quote { padding: 22px; }
}
