/* صفحات البوابات القديمة (amatti, …) — استرجاع Wayback */
body.legacy-portal {
  margin: 0;
  font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
  background: #eef2f6;
  color: #222;
  line-height: 1.65;
}
.legacy-wrap-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.legacy-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #f8f9fa;
  border-left: 1px solid #dee2e6;
  padding: 0 0 24px;
}
.legacy-sidebar-head {
  padding: 14px 16px;
  font-weight: 800;
  border-bottom: 1px solid #dee2e6;
  background: #fff;
}
.legacy-sidebar-nav a,
.legacy-menu-title {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}
.legacy-menu-block a { padding-right: 28px; font-size: 0.85rem; }
.legacy-menu-title {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.legacy-menu-link.is-active,
.legacy-sidebar-nav a:hover {
  background: #e8f0fe;
  color: #1d4ed8;
}
.legacy-ext::after {
  content: ' ↗';
  font-size: 0.75em;
  opacity: 0.85;
}
.legacy-page { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.legacy-navbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}
.legacy-menu-btn {
  border: none;
  background: #0d6efd;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.legacy-home-link { color: #111; font-weight: 700; text-decoration: none; }
.legacy-brand-link {
  margin-right: auto;
  font-size: 1.05rem;
  font-weight: 800;
  color: #15803d !important;
  text-decoration: none;
}
.legacy-main {
  flex: 1;
  padding: 12px 16px 28px;
  max-width: 960px;
}
.legacy-panel {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 18px;
  overflow: hidden;
}
.legacy-panel-head {
  padding: 16px 14px;
  background: #f1f3f5;
  border-bottom: 1px solid #dee2e6;
  text-align: center;
}
.legacy-panel-head h1 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.45; }
.legacy-panel-head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #374151; line-height: 1.5; }
.legacy-panel-body { padding: 18px 16px; }
.legacy-panel-body h2,
.legacy-panel-body h3 { text-align: center; }
.legacy-btn-wrap { text-align: center; margin: 16px 0; }
.legacy-btn-wrap a.button {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.legacy-keywords {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #374151;
}
.legacy-prose { font-size: 0.95rem; line-height: 1.75; }
.legacy-portal-foot {
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #dee2e6;
  background: #f8fafc;
}
.legacy-portal-foot a { color: #1d4ed8; }
@media (max-width: 768px) {
  .legacy-wrap-layout { flex-direction: column; }
  .legacy-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    bottom: 0;
    z-index: 500;
    transition: right 0.25s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,.15);
  }
  .legacy-wrap-layout.toggled .legacy-sidebar { right: 0; }
}
