/* Content pages (guide, services, projects, cities, blog): built on legal.css (same colours, fonts, header bar, theme switch).
   Static file, no JavaScript needed to read a page; no visible scrollbars anywhere (owner rule). */
.cp main { max-width: 920px; padding-top: 18px; }
.cp .bar { max-width: 920px; }

/* section navigation under the bar: one row; on a phone it slides sideways (no visible scrollbar) */
.sitenav { display: flex; gap: 6px; max-width: 920px; margin: 14px auto 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.sitenav::-webkit-scrollbar { display: none; }
.sitenav a, .footnav a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--mute); text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.sitenav a[aria-current='page'] { color: var(--ink); border-color: var(--line); background: var(--panel); }
@media (hover: hover) { .sitenav a:hover, .footnav a:hover { color: var(--ink); } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 14px; padding: 0; list-style: none; font-size: .85rem; color: var(--mute); }
.crumbs li:not(:last-child)::after { content: '/'; margin-inline-start: 6px; opacity: .6; }
.crumbs a { color: var(--mute); text-decoration: none; } .crumbs a:hover { color: var(--lilac); }
.cp h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); line-height: 1.15; margin-bottom: 14px; letter-spacing: -.01em; }
html[lang='ar'] .cp h1 { line-height: 1.35; letter-spacing: 0; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--ink); opacity: .9; margin: 0 0 10px; }

/* long-form text */
.prose { margin-top: 26px; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.3; margin: 44px 0 12px; scroll-margin-top: 20px; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; color: var(--ink); }
.prose p, .prose li { font-size: 1.03rem; color: var(--mute); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 14px; padding-inline-start: 24px; }
.prose li { margin-bottom: 6px; }
.prose .note { margin: 18px 0; padding: 14px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.prose .note p { margin: 0; color: var(--ink); }
.tbl { margin: 16px 0 20px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 16px; }
.tbl::-webkit-scrollbar { display: none; }
.tbl table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--mute); }
.tbl thead th { color: var(--ink); background: var(--panel); }
.tbl tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

/* diagrams (inline SVG, colours from the theme) */
.diagram, .flow { margin: 22px 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption, .flow figcaption { margin-top: 8px; font-size: .88rem; color: var(--mute); text-align: center; }
.dg-l0 { fill: color-mix(in srgb, var(--brand) 16%, var(--panel)); } .dg-l1 { fill: color-mix(in srgb, var(--brand) 26%, var(--panel)); }
.dg-l2 { fill: color-mix(in srgb, var(--brand) 36%, var(--panel)); } .dg-l3 { fill: color-mix(in srgb, var(--brand) 48%, var(--panel)); }
.dg-l0, .dg-l1, .dg-l2, .dg-l3 { stroke: color-mix(in srgb, var(--lilac) 40%, transparent); }
.dg-code { fill: var(--ink); font: 800 20px var(--font); } .dg-name { fill: var(--ink); font: 700 15px var(--font); } .dg-desc { fill: var(--mute); font: 500 13px var(--font); }
html[lang='ar'] .dg-name, html[lang='ar'] .dg-desc { font-family: 'Cairo', var(--font); }
.flow ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.flow li { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .95rem; }
.flow li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; }
@media (max-width: 640px) { .flow ol { grid-template-columns: 1fr 1fr; } }

/* cards (hub pages, related pages) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 16px 0; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.card strong { color: var(--ink); font-size: 1.02rem; line-height: 1.4; } .card span { color: var(--mute); font-size: .92rem; line-height: 1.6; }
@media (hover: hover) { .card:hover { border-color: var(--lilac); } }
.empty { color: var(--mute); font-style: italic; }

/* FAQ */
.prose details { margin: 0 0 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.prose summary { cursor: pointer; padding: 15px 18px; color: var(--ink); font-weight: 700; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: '+'; float: inline-end; color: var(--lilac); font-weight: 800; }
.prose details[open] summary::after { content: '−'; }
.prose details p { padding: 0 18px 14px; margin: 0; }

/* related + call to action */
.related { margin-top: 40px; padding: 0; background: none; border: 0; }
.related h2 { font-size: 1.25rem; }
.cta { margin-top: 34px; padding: 28px; text-align: center; border-color: color-mix(in srgb, var(--brand) 50%, transparent); background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%), var(--panel); }
.cta h2 { font-size: 1.4rem; margin-bottom: 6px; } .cta p { margin: 0 0 14px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: linear-gradient(135deg, #8a5af5, #5d24b9); color: #fff; font-weight: 700; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (hover: hover) { .btn:hover { filter: brightness(1.08); } .btn.ghost:hover { border-color: var(--lilac); } }

.cp footer { max-width: 920px; }
.footnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 10px; }

/* product screenshots on the content pages (tools/make-pages.py shot_html): full text width, real aspect ratio, soft frame */
.shot { margin: 22px 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.shot figcaption { margin-top: 8px; font-size: .88rem; color: var(--mute); text-align: center; }
