:root {
  --ink: #0d0d0d; --muted: #6b6b6b; --line: #e5e5e5; --bg: #f7f7f4; --surface: #fff;
  --olive: #7e7c24; --olive-soft: #f0efd8; --clay: #ad7a64; --clay-soft: #f6e8e1; --danger: #b42318;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Tajawal, "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; }
a { color: var(--olive); }
.top { background: #17170f; color: #fff; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 5; }
.top .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.top .brand img { height: 36px; }
.top nav a { color: #fff; opacity: .8; margin-inline-start: 16px; text-decoration: none; font-size: 14px; }
.top nav a:hover { opacity: 1; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px 20px 80px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
.toc { position: sticky; top: 80px; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.toc h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.toc ol { margin: 0; padding-inline-start: 18px; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--olive); }
main h1 { font-size: 30px; margin: 0 0 6px; }
main .lead { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
section { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; }
section h2 { margin: 0 0 12px; font-size: 22px; display: flex; align-items: center; gap: 10px; }
section h2 .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--olive); color: #fff; font-size: 15px; flex: none; }
section h3 { font-size: 17px; margin: 18px 0 6px; }
ol.steps { padding-inline-start: 22px; margin: 8px 0; }
ol.steps li { margin: 6px 0; }
ul { padding-inline-start: 22px; }
.tip, .warn, .note { border-radius: 12px; padding: 12px 16px; margin: 12px 0; font-size: 15px; }
.tip { background: var(--olive-soft); border: 1px solid #dcd9a8; }
.warn { background: var(--clay-soft); border: 1px solid #e6c9bd; }
.note { background: #f5f5f5; border: 1px solid var(--line); }
.tip::before { content: "💡 "; } .warn::before { content: "⚠️ "; }
figure { margin: 14px 0; }
figure img { width: 100%; border: 1px solid var(--line); border-radius: 12px; display: block; }
figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }
kbd, .btn { display: inline-block; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 8px; padding: 0 8px; font-size: 14px; font-family: inherit; }
.btn { background: #17170f; color: #fff; border-color: #17170f; border-radius: 999px; }
.btn.light { background: #fff; color: var(--ink); border-color: var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: right; vertical-align: top; }
th { font-weight: 700; background: #fafafa; }
.status { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.s-booked { background: #e0ecff; color: #1d4ed8; } .s-confirmed { background: var(--olive-soft); color: var(--olive); }
.s-arrived { background: #e6f4f1; color: #0f766e; } .s-started { background: #fff4d6; color: #92400e; }
.s-done { background: #eee; color: #444; } .s-noshow { background: #fde8e6; color: var(--danger); } .s-cancel { background: #f5f5f5; color: #666; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card strong { display: block; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 14px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }
@media (max-width: 860px) { .wrap { grid-template-columns: 1fr; } .toc { position: static; } .cards { grid-template-columns: 1fr; } }
@media print { .top, .toc { display: none; } .wrap { display: block; max-width: none; } section { break-inside: avoid; border: 0; padding: 0 0 18px; } figure img { max-width: 90%; } }

/* الجوال: لا عرض يتجاوز الشاشة */
html, body { max-width: 100%; overflow-x: hidden; }
.wrap, main, section { min-width: 0; }
section, .tip, .warn, .note, td, th, li, p { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .top { flex-wrap: wrap; padding: 10px 14px; }
  .top nav a { margin: 0 0 0 12px; }
  .wrap { padding: 16px 12px 60px; gap: 16px; }
  section { padding: 16px 14px; }
  main h1 { font-size: 24px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  table td, table th { white-space: normal; min-width: 120px; }
}
