:root { --surface: #f4f4f4; --card: #fcfcfd; --deep: #052328; --brand: #0b5460; --teal: #009e9e; --teal-l: #6fd6d4; --eyebrow: #007070; --mist: #97cfd1; --aqua: #d0f4f3; --head: #202939; --body: #334155; --muted: #64748b; --ease: cubic-bezier(.4,0,.2,1); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--body); font: 300 16.5px/1.7 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", Inter, sans-serif; }
a { color: var(--brand); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1100px, 100% - 48px); margin-inline: auto; }
.top { background: var(--deep); color: rgba(244,244,244,.82); border-radius: 0 0 64px 64px; padding: 26px 0 64px; background-image: radial-gradient(700px 420px at 85% 0%, rgba(0,158,158,.25), transparent 65%); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img.icon { width: 36px; height: 36px; } .logo img.wm { height: 24px; width: auto; }
.back { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); color: #f4f4f4; text-decoration: none; font-size: 14px; }
.back svg { width: 16px; height: 16px; }
.top h1 { margin: 56px 0 10px; color: #f8fafc; font-weight: 600; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.03em; }
.top p.lead { max-width: 640px; font-size: 18px; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.meta span, .meta a { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); color: #e7fbfa; font-size: 13.5px; text-decoration: none; }
.meta .ar { font-family: "IBM Plex Sans Arabic", Inter, sans-serif; }
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; margin: 48px auto 120px; }
nav.toc { position: sticky; top: 24px; background: var(--card); border: 1px solid #edf0f2; border-radius: 24px; padding: 20px; font-size: 14px; }
nav.toc b { display: block; font-size: 13px; font-weight: 500; color: var(--eyebrow); margin-bottom: 10px; }
nav.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
nav.toc a { color: var(--body); text-decoration: none; display: block; padding: 4px 8px; border-radius: 8px; transition: background .15s var(--ease); }
nav.toc a:hover { background: var(--surface); color: var(--head); }
article.doc { background: var(--card); border: 1px solid #edf0f2; border-radius: 32px 8px; padding: 48px 52px; }
article.doc h2 { color: var(--head); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; scroll-margin-top: 20px; }
article.doc h2:first-child { margin-top: 0; }
article.doc h2 .n { display: inline-grid; place-items: center; min-width: 32px; height: 30px; margin-inline-end: 10px; border-radius: 9px; background: var(--surface); color: var(--brand); font-size: 14px; }
article.doc p { margin: 0 0 14px; }
article.doc strong { font-weight: 600; color: var(--head); }
article.doc ul { margin: 0 0 16px; padding-inline-start: 22px; }
article.doc li { margin-bottom: 8px; }
article.doc li::marker { color: var(--teal); }
.intro { font-size: 17.5px; color: var(--head); }
.table { overflow-x: auto; margin: 6px 0 22px; border: 1px solid #e6eaee; border-radius: 16px; }
.table:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
th { text-align: start; font-weight: 600; color: var(--head); background: var(--surface); padding: 12px 14px; }
td { padding: 12px 14px; border-top: 1px solid #edf0f2; vertical-align: top; }
td:first-child { font-weight: 500; color: var(--head); }
.updated { margin-top: 36px; padding-top: 18px; border-top: 1px solid #edf0f2; color: var(--muted); font-size: 14px; }
footer { background: var(--deep); color: rgba(244,244,244,.7); border-radius: 48px 48px 0 0; padding: 40px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: #f4f4f4; }
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
  nav.toc { position: static; }
  article.doc { padding: 30px 22px; border-radius: 24px 8px; }
  .top { border-radius: 0 0 40px 40px; padding-bottom: 48px; }
  .top h1 { margin-top: 40px; }
}
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }
/* touch: every standalone link at least 44px tall to tap, without moving any text */
@media (pointer: coarse), (max-width: 768px) {
  .logo { padding-block: 4px; margin-block: -4px; } /* 36 -> 44, no visible box so padding is invisible */
  .back, .meta a { position: relative; }
  .back::after, .meta a::after { content: ""; position: absolute; inset: -4px -1px; } /* bordered pills keep their look; tap area grows instead: 38 -> 44 */
  .meta a::after { inset: -7px -1px; } /* 32 -> 44; stays inside the 8px gap to the next row */
  nav.toc ol { gap: 0; }
  nav.toc a { display: flex; align-items: center; min-height: 44px; } /* 32 + 6 gap -> 44 per row */
}
