
/* ---------- tokens ---------- */
:root {
  --ground: #EEE8E2;        /* Jerusalem limestone */
  --field: #FBF8F4;         /* paper, inputs only */
  --ink: #1F1B19;           /* basalt */
  --ink-soft: #5E5650;
  --line: #7A716A;          /* input and button borders */
  --seal: #5B2681;          /* mukhtar-stamp violet: ink only */
  --seal-text: #5B2681;
  --ph: #716963;            /* placeholder: quiet, still 5.1:1 on the field */
  --wash: #E2D7E8;
  --greek: #B4AAA2;         /* abstract stand-in for hidden details: a shape, never text */
  --err: #A3262C;
  --btn: #1F1B19; --btn-ink: #EEE8E2; --btn-hover: #3B3431;
  --course: #1F1B19; --course-ink: #EEE8E2; --course-soft: #B6ACA3; --course-seal: #9152A4; --course-rule: #433B37;
  --focus: #5B2681;
  --f-ar-d: "Archivo", "Noto Kufi Arabic", system-ui, sans-serif;
  --f-ar-t: "Archivo", "Noto Naskh Arabic", "Segoe UI", serif;
  --f-en: "Archivo", "Noto Kufi Arabic", system-ui, sans-serif;
  --f-data: "Archivo", system-ui, sans-serif;
  color-scheme: light;
  --fwd: to left; --start-x: right;   /* reading direction for dashes and the ledger wall */
}
/* without JS, ?lang=en#en keeps dir="rtl" on <html>: the English view sets its own direction */
html[dir="ltr"], html:not(.js):has(#en:target) { --fwd: to right; --start-x: left; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1E1A18; --field: #28231F; --ink: #EEE8E2; --ink-soft: #B6ACA3; --line: #8F857D;
    /* stamp ink on basalt: chroma, not whiteness, keeps it violet; a few degrees toward plum stops it reading lavender */
    --seal: #9152A4; --seal-text: #B272C6; --wash: #3D2A43; --greek: #5F5651; --err: #F2A09A; --ph: #9C928A;
    --btn: #EEE8E2; --btn-ink: #1F1B19; --btn-hover: #FFFFFF;
    --course: #1E1A18; --course-rule: #433B37;
    --focus: #EEE8E2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #1E1A18; --field: #28231F; --ink: #EEE8E2; --ink-soft: #B6ACA3; --line: #8F857D;
  --seal: #9152A4; --seal-text: #B272C6; --wash: #3D2A43; --greek: #5F5651; --err: #F2A09A; --ph: #9C928A;
  --btn: #EEE8E2; --btn-ink: #1F1B19; --btn-hover: #FFFFFF;
  --course: #1E1A18; --course-rule: #433B37;
  --focus: #EEE8E2;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 18px/1.85 var(--f-ar-t);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Without JS, ?lang=en#en still gives English: <html> keeps lang="ar", so every language rule below is written
   EN = html:is([lang=en], :not(.js):has(:where(#en:target)))  and  AR = html[lang=ar]:where(:not(:not(.js):has(#en:target))),
   with the specificity of html[lang]; the English blocks carry their own lang and dir for screen readers. */
html:is([lang="en"], :not(.js):has(:where(#en:target))) body { font: 400 17px/1.6 var(--f-en); }
html[lang="ar"]:where(:not(:not(.js):has(#en:target))) [data-l="en"], html:is([lang="en"], :not(.js):has(:where(#en:target))) [data-l="ar"] { display: none !important; }
html:not(.js):has(#en:target) body { direction: ltr; }
#en { position: absolute; top: 0; }
::selection { background: var(--wash); color: var(--ink); }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--seal); text-decoration-thickness: 2px; text-underline-offset: .28em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
bdi, .ltr { direction: ltr; unicode-bidi: isolate; }
.nw { white-space: nowrap; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { --gut: 40px; width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }
h1, h2, h3 { margin: 0; font-family: var(--f-ar-d); font-weight: 700; color: var(--ink); text-wrap: balance; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) :is(h1, h2, h3) { font-family: var(--f-en); font-stretch: 112%; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
.js-only { display: none !important; }
html.js .js-only { display: revert !important; }
html.js .no-js { display: none !important; }
html:not(.js) :is(.seg, .demo-note) { display: none !important; }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 10; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; font: 600 15px/1.4 var(--f-ar-d); text-decoration: none; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .skip { font-family: var(--f-en); }
.skip:focus { top: 12px; }

/* seal: never mirrored, always crisp */
.seal { display: block; shape-rendering: crispEdges; direction: ltr; flex: none; }
.seal-s { width: 64px; height: 40px; color: var(--seal); }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand-name { font: 700 19px/1 var(--f-data); font-stretch: 108%; letter-spacing: -.01em; direction: ltr; }
.brand-by { font: 600 15px/1 var(--f-ar-d); color: var(--ink-soft); }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .brand-by { font: 500 15px/1 var(--f-en); }
.tools { display: flex; align-items: center; gap: 6px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; font: 600 15px/1 var(--f-en); text-decoration: none; }
.lang:lang(ar) { font-family: var(--f-ar-d); }
.lang:hover { text-decoration: underline; text-decoration-color: var(--seal); }
.theme { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0; }
.theme svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; padding-block: 36px 56px; }
.hero h1 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.34; max-width: 15em; }
.hero h1 .s { display: block; text-wrap: balance; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .hero h1 { font-size: clamp(34px, 3.3vw, 47px); line-height: 1.08; max-width: 14em; }
.lead { margin-top: 22px; font-size: 20px; line-height: 1.8; color: var(--ink-soft); max-width: 33em; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .lead { font-size: 19px; line-height: 1.55; max-width: 34em; }
.lead bdi { font-family: var(--f-data); font-size: .92em; }

/* the finder */
.tool { margin-top: 36px; max-width: 560px; }
.lbl { display: block; font: 600 16px/1.5 var(--f-ar-d); margin-bottom: 10px; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .lbl { font: 600 16px/1.4 var(--f-en); }
.field-row { display: flex; gap: 0; }
.field-row input {
  flex: 1 1 auto; width: 100%; min-width: 0; height: 60px; padding: 0 18px;
  font: 500 20px/1 var(--f-data); color: var(--ink); background: var(--field);
  border: 2px solid var(--line); border-radius: 0; text-align: start;
}
.field-row input::placeholder { color: var(--ph); opacity: 1; font-weight: 400; }
/* Latin domain direction stays isolated; alignment follows the field label. */
.field-row input:placeholder-shown { direction: ltr; }
.field-row input, .addr { text-align: right; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) :is(.field-row input, .addr) { text-align: left; }
.field-row input:focus-visible { outline: 3px solid var(--focus); outline-offset: -5px; border-color: var(--ink); }
.field-row input[aria-invalid="true"] { border-color: var(--err); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 0; cursor: pointer; text-decoration: none;
  font: 600 16px/1.2 var(--f-ar-d); border: 2px solid var(--btn);
  transition: background-color .15s, color .15s, transform .08s;
}
html:is([lang="en"], :not(.js):has(:where(#en:target))) .btn { font: 600 16px/1.2 var(--f-en); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--btn); color: var(--btn-ink); }
.btn-solid:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--wash); }
/* the button follows the page direction, so its inline-start always meets the field: one shared edge */
.btn-go { height: 60px; flex: none; margin-inline-start: -2px; position: relative; }
.hint { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); text-wrap: balance; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .hint { font-size: 15px; line-height: 1.5; }
.hint bdi { font-family: var(--f-data); }
.err { margin-top: 10px; font: 600 15px/1.6 var(--f-ar-d); color: var(--err); display: flex; gap: 10px; align-items: baseline; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .err { font: 600 15px/1.5 var(--f-en); }
.err::before { content: ""; flex: none; width: 10px; height: 10px; border: 2px solid currentColor; transform: translateY(1px); }
.err[hidden] { display: none; }

.rule { font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .rule { line-height: 1.55; }
.rule bdi { font-family: var(--f-data); }
.out { margin-top: 24px; }
.out[hidden] { display: none; }
.addr { margin: 0; font: 600 27px/1.25 var(--f-data); font-variant-numeric: tabular-nums; letter-spacing: -.005em; color: var(--ink); direction: ltr; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.addr .lb { white-space: nowrap; }
.addr.tight .lb { white-space: normal; word-break: break-all; }
.addr .at { color: var(--seal-text); white-space: nowrap; }
.acts { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.acts .btn { min-width: 168px; }
.notes { margin-top: 14px; display: grid; gap: 6px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .notes { line-height: 1.5; }
.notes bdi { font-family: var(--f-data); white-space: nowrap; }
.notes p { position: relative; padding-inline-start: 16px; overflow-wrap: anywhere; }
.notes p::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 6px; height: 6px; background: var(--ink-soft); }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .notes p::before { top: .6em; }
.flash { animation: wash .5s ease-out; }
.flash .at { animation: copy-ink .5s ease-out; }
@keyframes wash { from { background: var(--wash); } to { background: transparent; } }
@keyframes copy-ink { from { color: var(--ink); } to { color: var(--seal-text); } }

/* Arabic Naskh sets optically small: secondary Arabic text gets more size than the Latin */
html[lang="ar"]:where(:not(:not(.js):has(#en:target))) :is(.hint, .rule, .notes, .route .cap, .inbox-lbl, .cta-how) { font-size: 17px; line-height: 1.75; }

/* ---------- hero figure ---------- */
.fig { margin: 0; --c: 19px; --row: 31px; --gap: 40px; }
.fig-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-bottom: 14px; max-width: calc(var(--c) * 16 + 24px); }
.fig-cap-t { font: 600 15px/1.5 var(--f-ar-d); color: var(--ink-soft); text-wrap: pretty; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .fig-cap-t { font: 600 15px/1.4 var(--f-en); }
.seg { display: inline-flex; gap: 2px; }
.seg button { min-height: 44px; padding: 0 12px; background: transparent; color: var(--ink-soft); border: 0; border-radius: 0; cursor: pointer;
  font: 600 15px/1.2 var(--f-ar-d); box-shadow: inset 0 -1px 0 var(--line); }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .seg button { font: 600 15px/1.2 var(--f-en); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--seal); }

.fig-body { position: relative; direction: ltr; text-align: left; width: calc(var(--c) * 16); }
.whois { margin: 0; display: grid; grid-template-columns: calc(var(--c) * 8) auto; font-family: var(--f-data); }
.whois dt { font: 400 14px/var(--row) var(--f-data); color: var(--ink-soft); white-space: nowrap; }
.whois dd { margin: 0; font: 500 15px/var(--row) var(--f-data); font-variant-numeric: tabular-nums; white-space: nowrap; position: relative; }
.whois .v { display: inline-block; position: relative; }
.whois .fake { display: none; position: absolute; left: 0; top: 0; white-space: nowrap; }
.uline { position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--seal); transform-origin: left center; }
.redact { position: absolute; z-index: 1; left: -4px; top: 50%; height: 18px; margin-top: -9px; background: var(--seal); transform-origin: 0 50%; transform: scaleX(0); }

.stage { position: relative; margin-top: var(--gap); width: calc(var(--c) * 16); height: calc(var(--c) * 10); }
.seal-h { width: 100%; height: 100%; color: var(--seal); position: relative; z-index: 2; }
.seal-h .glyph { transform-box: view-box; transform-origin: 50% 50%; }
/* the route: solid from the address down through the slot, dashed (out of sight) inside the seal, ending at the owner's inbox */
.wire { position: absolute; z-index: 1; left: calc(var(--c) * 8.5 - 1px); width: 2px;
  top: calc(-1 * var(--gap) - 4px); height: calc(var(--gap) + 4px + var(--c) * 8.5 - 6px); }
.wire::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--gap) + 4px + var(--c)); background: var(--seal); }
.wire::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--gap) + 4px + var(--c)); bottom: 0;
  background: repeating-linear-gradient(to bottom, var(--seal) 0 6px, transparent 6px 11px); }
.inbox { position: absolute; z-index: 3; left: calc(var(--c) * 8.5 - 6px); top: calc(var(--c) * 8.5 - 6px); width: 12px; height: 12px; border: 2px solid var(--ink); background: var(--ground); }
.ghost { position: absolute; inset: 0; border: 1px dashed var(--ink-soft); opacity: 0; pointer-events: none; }

.inbox-lbl { margin: 18px 0 0; display: flex; gap: 12px; align-items: baseline; font: 400 15px/1.6 var(--f-ar-t); color: var(--ink-soft); max-width: calc(var(--c) * 16 + 80px); }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .inbox-lbl { font: 400 15px/1.45 var(--f-en); }
.inbox-lbl .sq { flex: none; width: 12px; height: 12px; border: 2px solid var(--ink); transform: translateY(1px); }
.inbox-lbl b { display: block; font: 600 15px/1.6 var(--f-ar-d); color: var(--ink); }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .inbox-lbl b { font: 600 15px/1.4 var(--f-en); }
.seal-note { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.seal-note span { font: 700 16px/1 "Noto Kufi Arabic", sans-serif; color: var(--ink); }
/* in the "without" example the note sits inside the empty frame, where the seal would be */
.demo-note { position: absolute; z-index: 4; left: 0; top: calc(var(--row) * 6 + var(--gap)); width: calc(var(--c) * 16); height: calc(var(--c) * 10);
  margin: 0; padding: 12px 22px; display: flex; align-items: center; font: 400 15px/1.5 var(--f-en); color: var(--ink); text-align: start; }
html[dir="rtl"] .demo-note { direction: rtl; }
html[lang="ar"]:where(:not(:not(.js):has(#en:target))) .demo-note { font: 400 17px/1.7 var(--f-ar-t); }
.demo-note:empty { display: none; }

/* intro pre-state (painted before the first frame only where it will play) and the replay state:
   the owner's details are abstract bars here, never readable text */
:is(html.intro .fig, .fig.pre) .whois .pub { opacity: 0; }
:is(html.intro .fig, .fig.pre, .fig.without) .whois .fake { display: block; }
:is(html.intro .fig, .fig.pre, .fig.without):not(.real) .whois .fake { color: transparent; user-select: none;
  background: linear-gradient(var(--greek) 0 0) left center / 100% 7px no-repeat; }
:is(html.intro .fig, .fig.pre) :is(.glyph, .inbox, .inbox-lbl) { opacity: 0; }
:is(html.intro .fig, .fig.pre) .uline { transform: scaleX(0); }
:is(html.intro .fig, .fig.pre) .wire { clip-path: inset(0 0 100% 0); }
/* the "without" example: no seal, no relay */
.fig.without .whois .pub { opacity: 0; }
.fig.without :is(.seal-h, .wire, .inbox, .inbox-lbl, .seal-note) { opacity: 0; }
.fig.without .ghost { opacity: 1; }

/* ---------- sections ---------- */
.sec { padding-block: 104px; }
.sec + .sec { padding-top: 0; }
.hero + .sec { padding-top: 64px; }
.sec h2 { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.45; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .sec h2 { font-size: clamp(26px, 2.5vw, 35px); line-height: 1.15; font-stretch: 108%; }
.sec .intro-p { margin-top: 16px; max-width: 36em; color: var(--ink-soft); font-size: 19px; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .sec .intro-p { font-size: 18px; }
.sec .intro-p bdi { font-family: var(--f-data); }

/* public / kept ledger: the violet wall is the kept column's inline-start edge; one gap, in the email row */
.ledger { --wall: 22px; --pad: 33px; --dp: 11px; --dash: repeating-linear-gradient(var(--fwd), var(--seal) 0 6px, transparent 6px 11px);
  margin-top: 44px; width: 100%; max-width: 820px; border-collapse: collapse; table-layout: fixed; }
.ledger col.c-k { width: 128px; }
.ledger caption { text-align: start; }
.ledger th, .ledger td { padding: 0; text-align: start; vertical-align: middle; }
.ledger thead th { font: 600 15px/1.5 var(--f-ar-d); color: var(--ink-soft); padding-bottom: 14px; vertical-align: bottom; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .ledger thead th { font: 600 15px/1.4 var(--f-en); }
.ledger tbody th { font: 600 16px/1.5 var(--f-ar-d); height: 60px; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .ledger tbody th { font: 600 16px/1.4 var(--f-en); }
.ledger .pubv, .ledger .h-pub { text-align: end; padding-inline-end: var(--pad); }
.ledger .pubv { font: 500 16px/1.4 var(--f-data); font-variant-numeric: tabular-nums; }
.ledger .pubv bdi { white-space: nowrap; }
.ledger .kept, .ledger .h-kept { padding-inline-start: calc(var(--wall) + var(--pad)); }
.ledger .kept { color: var(--ink-soft); font-size: 17px; position: relative; text-wrap: pretty;
  background: linear-gradient(var(--seal) 0 0) var(--start-x) top / var(--wall) 100% no-repeat; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .ledger .kept { font-size: 16px; }
/* the email row: everything top-aligned on one known line, the wall continues below it */
.ledger { --ly: 30px; }
.ledger .cross > * { vertical-align: top; padding-top: 18px; padding-bottom: 46px; line-height: 24px; }
.ledger .cross .kept { color: var(--ink);
  background-image: linear-gradient(var(--seal) 0 0), linear-gradient(var(--seal) 0 0);
  background-size: var(--wall) calc(var(--ly) - 11px), var(--wall) calc(100% - var(--ly) - 11px);
  background-position: var(--start-x) top, var(--start-x) bottom; }
.ledger .cross .kept::before { content: ""; position: absolute; top: calc(var(--ly) - 1px); height: 2px;
  inset-inline-start: calc(var(--dp) - var(--pad)); width: calc(var(--pad) - var(--dp) + var(--wall) + var(--dp)); background: var(--dash); }
.ledger .cross .kept::after { content: ""; position: absolute; top: calc(var(--ly) - 6px); inset-inline-start: calc(var(--wall) + var(--dp));
  width: 12px; height: 12px; border: 2px solid var(--ink); }

/* wide screens: the ledger sits beside its heading, as the disclosure list does further down */
@media (min-width: 1200px) {
  .sec-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 72px; align-items: start; }
  .sec-split .ledger { margin-top: 12px; max-width: none; }
}

/* route */
.route { margin: 48px 0 0; display: grid; grid-template-columns: auto 1fr auto 1fr auto; column-gap: 16px; row-gap: 6px; align-items: center; max-width: 980px; }
.route .node { display: flex; align-items: center; gap: 10px; font: 600 16px/1.4 var(--f-ar-d); white-space: nowrap; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .route .node { font: 600 16px/1.4 var(--f-en); }
.route .node::before { content: ""; width: 12px; height: 12px; background: var(--ink); flex: none; }
.route .node.hid::before { background: transparent; border: 2px solid var(--ink); }
.route .node bdi { font: 600 16px/1.4 var(--f-data); }
.route .ln { height: 2px; background: var(--seal); }
.route .ln.d { background: repeating-linear-gradient(var(--fwd), var(--seal) 0 6px, transparent 6px 11px); }
.route .cap { font-size: 15px; line-height: 1.65; color: var(--ink-soft); padding-top: 6px; text-wrap: pretty; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .route .cap { line-height: 1.45; }
.route.r2 { margin-top: 30px; }

.rules { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 14px; max-width: 42em; }
.rules li { display: flex; gap: 14px; align-items: baseline; }
.rules li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--seal); transform: translateY(-3px); }
.rules .num { font: 600 1em/1 var(--f-data); font-variant-numeric: tabular-nums; color: var(--ink); }
.abuse { margin-top: 30px; font-size: 17px; }
.abuse a { font-family: var(--f-data); font-weight: 500; }

/* clients */
.client { max-width: 46em; }
.client h2 .s { display: block; }
.client p { margin-top: 16px; color: var(--ink-soft); }
.client p bdi { font-family: var(--f-data); }
.cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.client .cta-how { margin: 0; font-size: 15px; line-height: 1.5; }
/* wide screens: the offer sits beside its heading, on the same column line as the ledger and the limits */
@media (min-width: 1200px) {
  .client { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 72px; align-items: start; }
  .client > h2 { grid-column: 1; grid-row: 1 / span 2; }
  .client > :not(h2) { grid-column: 2; max-width: 36em; }
  .client > p { margin-top: 10px; }
}

/* disclosure course, then the footer: one dark block that closes the page */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.course { background: var(--course); color: var(--course-ink); }
.course h2, .course h3 { color: var(--course-ink); }
.course a { text-decoration-color: var(--course-seal); }
.course :focus-visible { outline-color: var(--course-ink); }
.course .intro-p { color: var(--course-soft); }
.open-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.open-list li { display: flex; gap: 18px; align-items: flex-start; font-size: 19px; line-height: 1.7; }
html:is([lang="en"], :not(.js):has(:where(#en:target))) .open-list li { font-size: 18px; line-height: 1.5; }
.open-list svg { flex: none; width: 24px; height: 18px; color: var(--course-seal); margin-top: .5em; shape-rendering: crispEdges; }
.sec.course { padding-block: 104px; }

.foot { background: var(--course); color: var(--course-ink); padding-block: 48px 64px; }
.foot-grid { border-top: 1px solid var(--course-rule); padding-top: 48px; }
.foot .seal-s { color: var(--course-seal); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start; }
.foot p { max-width: 46em; color: var(--course-soft); font-size: 16px; }
.foot p strong { color: var(--course-ink); font-weight: 500; }
.foot a { text-decoration-color: var(--course-seal); color: var(--course-ink); }
.foot a.data { font-family: var(--f-data); font-weight: 500; }
.foot :focus-visible { outline-color: var(--course-ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; font-size: 16px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.sec.course + .foot { padding-top: 0; }
/* dark: no band, the page is already basalt; a rule inside the content width marks the section */
.sec.course > .wrap { --rule-line: linear-gradient(var(--course-rule) 0 0) var(--gut) 0 / calc(100% - 2 * var(--gut)) 1px no-repeat; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sec.course > .wrap { background: var(--rule-line); padding-top: 96px; } :root:not([data-theme="light"]) .sec.course { padding-top: 0; } }
:root[data-theme="dark"] .sec.course > .wrap { background: var(--rule-line); padding-top: 96px; }
:root[data-theme="dark"] .sec.course { padding-top: 0; }

/* ---------- responsive ---------- */
@media (min-width: 1024px) {
  .fig { justify-self: center; }
  /* the route runs the full measure; the limits pair up (per-address limits, then what is refused, then what we never do) */
  .route { max-width: none; }
  .rules { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 72px; max-width: none; }
}
@media (max-width: 1279px) and (min-width: 1024px) {
  .fig { --c: 20px; }
}
@media (max-width: 1023px) {
  .wrap { --gut: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 599px) {
  body { font-size: 17px; line-height: 1.8; }
  html:is([lang="en"], :not(.js):has(:where(#en:target))) body { font-size: 16.5px; }
  html[lang="ar"]:where(:not(:not(.js):has(#en:target))) :is(.hint, .rule, .notes, .route .cap, .inbox-lbl, .cta-how) { font-size: 16px; line-height: 1.75; }
  html[lang="ar"]:where(:not(:not(.js):has(#en:target))) .demo-note { font-size: 16px; line-height: 1.6; padding: 10px 16px; }
  html:is([lang="en"], :not(.js):has(:where(#en:target))) .demo-note { padding: 10px 16px; }
  .wrap { --gut: 16px; }
  .top { min-height: 64px; }
  .brand { gap: 10px; }
  .brand-by { display: none; }
  .lang { padding-inline: 10px; }
  .hero { padding-block: 16px 48px; gap: 56px; }
  .hero h1 { font-size: 31px; line-height: 1.42; }
  /* one clause per line where it fits: the first clause always does, so the English H1 is at most three lines */
  html:is([lang="en"], :not(.js):has(:where(#en:target))) .hero h1 { font-size: clamp(23px, 7.05vw, 33px); font-stretch: 108%; }
  html:is([lang="en"], :not(.js):has(:where(#en:target))) .sec h2 { font-size: clamp(22px, 6.15vw, 26px); }
  .lead { margin-top: 14px; font-size: 17.5px; line-height: 1.75; }
  html:is([lang="en"], :not(.js):has(:where(#en:target))) .lead { font-size: 17px; line-height: 1.5; }
  .tool { margin-top: 22px; }
  .lbl { font-size: 15px; margin-bottom: 8px; }
  .field-row input { height: 56px; font-size: 19px; padding: 0 14px; }
  .btn-go { height: 56px; padding: 0 16px; }
  .addr { font-size: 21px; }
  .acts { gap: 10px; }
  .acts .btn { min-width: 0; flex: 1 1 0; padding: 0 12px; }
  .fig { --c: 17px; --row: 26px; --gap: 32px; }
  .fig-cap { margin-bottom: 14px; }
  .whois { grid-template-columns: calc(var(--c) * 7) auto; }
  .whois dt { font-size: 13px; }
  .whois dd { font-size: 14px; }
  .sec { padding-block: 72px; }
  .sec.course { padding-block: 72px; }
  .foot-grid { padding-top: 40px; }
  /* ledger: public value and kept value share one line; the wall runs down the kept column */
  .ledger { --wall: 16px; --pad: 16px; --dp: 8px; --ly: 43px; margin-top: 32px;
    --dash: repeating-linear-gradient(var(--fwd), var(--seal) 0 5px, transparent 5px 8px); }
  .ledger colgroup { display: none; }
  .ledger tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ledger thead .h-k { display: none; }
  .ledger thead th { padding-bottom: 10px; font-size: 14px; line-height: 1.45; }
  .ledger tbody tr { grid-template-rows: 30px auto; }
  .ledger tbody th, .ledger .cross > th { grid-row: 1; grid-column: 1; height: auto; padding: 10px 0 0; padding-inline-end: var(--pad);
    text-align: end; font-size: 13.5px; line-height: 20px; color: var(--ink-soft); }
  .ledger .pubv, .ledger .cross > .pubv { grid-row: 2; grid-column: 1; align-self: start; font-size: 14.5px; line-height: 26px; padding: 0 0 14px; padding-inline-end: var(--pad); }
  .ledger .cross .pubv { font-size: 13.5px; }
  .ledger .kept, .ledger .cross > .kept { grid-row: 1 / 3; grid-column: 2; font-size: 16px; line-height: 26px; padding: 30px 0 14px; padding-inline-start: calc(var(--wall) + 28px); }
  .ledger .h-kept { padding-inline-start: calc(var(--wall) + 12px); }
  .ledger .cross .kept { padding-bottom: 30px; }
  .ledger .cross .k2 { display: none; }
  .route { grid-template-columns: 12px 1fr; column-gap: 16px; row-gap: 0; margin-top: 36px; }
  .route > span:empty { display: none; }
  .route .node { grid-column: 1 / -1; }
  .route .node::before { margin-inline-end: 6px; }
  .route .ln { width: 2px; height: auto; min-height: 48px; justify-self: center; align-self: stretch; grid-column: 1 !important; }
  .route .ln.d { background: repeating-linear-gradient(to bottom, var(--seal) 0 6px, transparent 6px 11px) !important; }
  .route .cap { grid-column: 2 !important; padding-block: 10px 12px; align-self: center; }
  .route:not(.r2) > :nth-child(1) { grid-row: 1; }
  .route:not(.r2) > :nth-child(2), .route:not(.r2) > :nth-child(7) { grid-row: 2; }
  .route:not(.r2) > :nth-child(3) { grid-row: 3; }
  .route:not(.r2) > :nth-child(4), .route:not(.r2) > :nth-child(9) { grid-row: 4; }
  .route:not(.r2) > :nth-child(5) { grid-row: 5; }
  .route.r2 > :nth-child(1) { grid-row: 1; }
  .route.r2 > :nth-child(2), .route.r2 > :nth-child(5) { grid-row: 2; }
  .route.r2 > :nth-child(3) { grid-row: 3; }
  .route.r2 { margin-top: 28px; }
  .rules { margin-top: 44px; }
  .open-list li { font-size: 17.5px; }
}
@media (max-width: 379px) {
  .btn-go { padding: 0 12px; font-size: 15px; }
  .top { gap: 8px; } .brand { gap: 8px; } .brand-name { font-size: 17px; } .lang { padding-inline: 8px; } .tools { gap: 0; }
  .seal-s { width: 48px; height: 30px; }
  .hero h1 { font-size: 27px; }
  .ledger .cross .pubv bdi { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.site-nav{display:flex;flex-wrap:wrap;gap:4px 24px;flex-basis:100%;padding-block:12px;border-top:1px solid var(--line);font-size:15px}.top{flex-wrap:wrap}.site-nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration-thickness:1px;text-underline-offset:5px}.site-nav a[aria-current]{color:var(--seal-text);font-weight:600}.article{max-width:900px;padding-block:48px 80px}.article h1{font-size:clamp(30px,5vw,52px);line-height:1.6;margin:0 0 20px;font-family:var(--f-ar-d)}html[lang=en] .article h1{font-family:var(--f-en);line-height:1.2}.article .lead{font-size:22px;max-width:38em}.article section{margin-block:40px}.article h2{font-size:22px;margin-block:0 12px}.article p{max-width:42em;line-height:1.9}.eyebrow{font:600 17px var(--f-data);color:var(--seal-text)}.related{border-top:1px solid var(--line);margin-top:48px;padding-top:24px;display:grid;gap:12px}.related a{min-height:44px;display:flex;align-items:center}.sources{color:var(--ink-soft);font-size:15px}bdi{unicode-bidi:isolate}html[lang=ar] .article{text-align:right}html[lang=en] .article{text-align:left}@media(max-width:600px){.site-nav{gap:0 16px}.article{padding-block:32px 56px}.article .lead{font-size:19px}.article section{margin-block:30px}}
