/* acode.tech privacy policy. Same tokens and fonts as the homepage (deploy/acode-site/redesign/styles.css).
   No third-party request: fonts are self-hosted (SIL OFL 1.1). Logical properties: one sheet serves LTR and RTL. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(fonts/cairo-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ink: #151713;
  --ink-2: #20231d;
  --cream: #e9e8df;
  --paper: #f5f4ee;
  --white: #fffefa;
  --orange: #ff6b35;
  --rust: #a8390f;
  --muted: #464940;
  --muted-on-ink: #c3c3b6;
  --line: #c9c8bc;
  --line-on-ink: #3a3d35;
  --head: 'Space Grotesk', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'DM Sans', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lh-head: 1.12;
  --lh-body: 1.65;
  --track-tight: -0.03em;
  --gutter: 20px;
  --r-s: 10px;
  --r-m: 18px;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }
:lang(ar) { --lh-head: 1.4; --lh-body: 1.9; --track-tight: 0em; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1.0625rem/var(--lh-body) var(--body); overflow-wrap: break-word; }
a { color: var(--rust); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-ink :focus-visible { outline-color: var(--cream); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -64px; z-index: 10; padding: 10px 16px; border-radius: var(--r-s); background: var(--orange); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), 50rem); margin-inline: auto; }

.site-header { background: var(--ink); color: var(--cream); }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 68px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--cream); font: 700 1.25rem/1 var(--head); letter-spacing: var(--track-tight); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand i { color: var(--orange); font-style: normal; }
.lang ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lang a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: 10px; border-radius: 999px; color: var(--muted-on-ink); font: 600 .875rem/1 var(--head); text-decoration: none; }
.lang a:hover { color: var(--cream); }
.lang a[aria-current="true"] { background: var(--ink-2); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-on-ink); }

.page-head { padding-block: clamp(40px, 8vw, 88px) clamp(20px, 4vw, 40px); }
.eyebrow { margin: 0 0 12px; color: var(--rust); font: 700 .8125rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: .9375rem; }
h1 { margin: 0 0 16px; font: 700 clamp(2.2rem, 6vw, 3.75rem)/var(--lh-head) var(--head); letter-spacing: var(--track-tight); }
.lead { margin: 0 0 12px; max-width: 42rem; color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.updated { margin: 0; color: var(--muted); font-size: .9375rem; }

.toc { margin-block: 8px 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.toc h2 { margin: 0 0 8px; padding: 0; border: 0; font: 700 1rem/1.3 var(--head); letter-spacing: 0; }
.toc ol { margin: 0; padding-inline-start: 1.4em; columns: 2 16rem; column-gap: 32px; }
.toc li { margin: 0; break-inside: avoid; }
.toc a { display: inline-block; padding-block: 5px; }

main section { padding-block: clamp(28px, 4vw, 44px) 0; }
h2 { margin: 0 0 12px; padding-top: 20px; border-top: 1px solid var(--line); font: 700 clamp(1.4rem, 2.6vw, 1.875rem)/var(--lh-head) var(--head); letter-spacing: var(--track-tight); }
h3 { margin: 28px 0 8px; font: 700 1.125rem/1.3 var(--head); }
p, ul, ol, dl { margin: 0 0 14px; }
ul, ol { padding-inline-start: 1.3em; }
li { margin-bottom: 6px; }
li::marker { color: var(--rust); }
strong { font-weight: 700; }

.tablewrap { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
thead th { background: var(--paper); font: 700 .8125rem/1.3 var(--head); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 700; min-width: 9rem; }

.card { margin: 0 0 16px; padding: 18px 22px; border: 1px solid var(--line); border-inline-start: 5px solid var(--orange); border-radius: var(--r-m); background: var(--white); }
.card > :last-child { margin-bottom: 0; }

.site-footer { margin-top: clamp(48px, 8vw, 96px); background: var(--ink); color: var(--muted-on-ink); font-size: .9375rem; }
.site-footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 24px; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0; }
.site-footer a { display: inline-block; padding-block: 10px; color: var(--cream); }

@media print {
  .site-header, .site-footer, .toc, .skip-link { display: none; }
  body { background: #fff; }
  a { color: inherit; }
}
