/* PRESENCE KIT — COMPONENTS.
   TWO LAWS, both mechanically checkable (see KIT_API.md "Lints"):
     1. SEMANTIC TOKENS ONLY. No hex literal appears in this file. A component
        that points at a value instead of a role cannot be rebranded, and
        11 brands is 11 chances to prove it.
     2. LOGICAL PROPERTIES ONLY. margin-inline / padding-block / inset-inline-*
        / text-align:start. RTL is the DEFAULT writing mode here, not a
        retrofit — so there is no [dir=rtl] override block anywhere in the kit.
        A `margin-left` is a bug even when it looks right in English.

   Every component is defined ONCE. A variant is a modifier class on the same
   base, never a second component. */

/* ============================== primitives ============================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* ARABIC IS A BODY MODE, NOT A DIRECTION FLIP. The face changes, the leading
   floor rises (Arabic ascenders/descenders need it), and font-size-adjust puts
   a pinned Arabic face on the same optical x-height as the Latin one so a
   bilingual page does not look like two documents stapled together. */
:lang(ar), [lang="ar"] {
  font-family: var(--font-arabic);
  line-height: 1.75;
  font-size-adjust: 0.52;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3,
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 {
  font-family: var(--font-arabic-display);
  line-height: 1.4;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-heading);
  line-height: var(--leading-tight);
  margin-block: 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin-block: 0 var(--space-4); max-inline-size: 68ch; }
a  { color: var(--accent); text-underline-offset: 0.18em; }

.u-eyebrow {
  font-size: var(--step-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-block-end: var(--space-2);
}
/* Arabic has no case, so tracking+uppercase turns an eyebrow into noise. */
:lang(ar) .u-eyebrow, [lang="ar"] .u-eyebrow {
  text-transform: none;
  letter-spacing: 0;
}
.u-muted   { color: var(--ink-muted); }
.u-lead    { font-size: var(--step-1); color: var(--ink-muted); }
.u-center  { text-align: center; }
.u-stack > * + * { margin-block-start: var(--space-4); }

/* WESTERN DIGITS EVEN IN ARABIC (founder-facing numbers stay comparable across
   the two language renders of the same page). */
.u-num, time, .stat__value, .table td:has(> .u-num) {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "lnum" 1;
  unicode-bidi: plaintext;
}

/* AN LTR TECHNICAL STRING INSIDE ARABIC MUST BE ISOLATED, AND `plaintext` IS
   NOT ENOUGH. Bidi takes a run's direction from its FIRST STRONG character;
   `--surface` and `#F2F1ED` open with NEUTRALS (`-`, `#`), so inside an RTL
   paragraph they inherit RTL and render as `surface--` and `F2F1ED#` —
   reversed, with no error anywhere. Caught in the tondro-ar gallery, where
   every token label was backwards. Any code, id, hex, URL, filename, phone,
   IBAN or CR number on an Arabic page needs this; `.u-num` above covers the
   digits-only case, where a leading digit IS strong enough for plaintext. */
.u-code {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

/* FOCUS IS NEVER REMOVED, ONLY RESTYLED. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-input);
}

/* ================================= btn ================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-block-size: var(--control-min);          /* 44px floor, phone-first */
  padding-block: var(--control-pad-y);
  padding-inline: var(--control-pad-x);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
  /* A long Arabic label must not shove a sibling off the rail. */
  max-inline-size: 100%;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);        /* measured, never assumed white */
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--secondary:hover { background: var(--accent-soft); }

.btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: transparent;
  padding-inline: var(--space-3);
}
.btn--ghost:hover { background: var(--surface-3); color: var(--ink); }

.btn--danger {
  background: var(--status-err);
  color: var(--surface);
  border-color: var(--status-err);
}
.btn--danger:hover { filter: brightness(0.92); }

.btn--sm { min-block-size: var(--control-min-sm); padding-inline: var(--space-4);
           font-size: var(--step--1); }
.btn--lg { min-block-size: 52px; padding-inline: var(--space-6); font-size: var(--step-1); }
.btn--block { display: flex; inline-size: 100%; }

/* ================================ chip ================================= */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  block-size: 36px;                 /* the nav-rail chip height (§13) */
  padding-inline: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 600;
  white-space: nowrap;              /* rails scroll; chips never wrap */
  text-decoration: none;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--border-strong); }
.chip[aria-selected="true"], .chip--active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.chip__count {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
  font-weight: 500;
}

/* ================================ card ================================= */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.card--flat   { box-shadow: none; }
.card--link   { text-decoration: none; color: inherit; transition: border-color var(--dur) var(--ease); }
.card--link:hover { border-color: var(--border-strong); }
.card__title  { font-size: var(--step-1); margin: 0; color: var(--ink-heading); }
.card__body   { margin: 0; color: var(--ink-muted); }
.card__foot   { margin-block-start: auto; padding-block-start: var(--space-3);
                display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }

.card--media { padding: 0; overflow: hidden; }
.card--media .card__media {
  aspect-ratio: 16 / 9;
  inline-size: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface-3);
}
.card--media .card__inner { padding: var(--space-5); display: flex;
                            flex-direction: column; gap: var(--space-3); }

.card-grid {
  display: grid;
  /* minmax floor, never a fixed column count — the squeeze-bug guard. */
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-gap);
}

/* ================================ field ================================ */

.field { display: flex; flex-direction: column; gap: var(--space-2);
         margin-block-end: var(--space-4); }
.field__label { font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.field__label .req { color: var(--status-err); margin-inline-start: 2px; }
.field__hint  { font-size: var(--step--1); color: var(--ink-muted); margin: 0; }
.field__error { font-size: var(--step--1); color: var(--status-err); margin: 0;
                display: flex; gap: var(--space-2); align-items: center; }

.input, .select, .textarea {
  inline-size: 100%;
  min-block-size: var(--control-min);
  padding-block: var(--control-pad-y);
  padding-inline: var(--space-4);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  font: inherit;
  /* 16px MINIMUM or iOS Safari zooms the whole page on focus. The step-0 clamp
     floors at 0.95rem, so this is stated explicitly rather than inherited. */
  font-size: max(16px, var(--step-0));
  text-align: start;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-muted); opacity: 0.8; }
.textarea { min-block-size: 120px; resize: vertical; line-height: var(--leading-body); }
/* THE CARET IS A PSEUDO-ELEMENT, NOT A BACKGROUND IMAGE. `background-position`
   has no logical keyword — a gradient caret needs a `[dir=rtl]` override block,
   which is the one thing this kit refuses to contain. A wrapper + an
   `inset-inline-end` pseudo mirrors for free and costs one span.

   THE GLYPH ITSELF MUST BE MIRROR-SYMMETRIC, AND A ROTATED L-SHAPE IS NOT.
   The first build drew the chevron as `border-inline-end` + `border-block-end`
   turned `rotate(45deg)`. Logical BORDERS mirror under dir=rtl (the drawn edge
   moves to the other side); the TRANSFORM does not — rotation is a physical
   operation with no logical form. So under RTL the L-shape flipped while the
   rotation stayed put, and every Arabic select rendered a back-arrow `<`
   instead of a down caret. Ten of eleven brands ship Arabic-first, so this was
   the DEFAULT rendering, not an edge case.

   Fix: draw a mark that is symmetric about its own vertical axis, so mirroring
   is a no-op — a mask-painted chevron with no transform anywhere. A MASK, not
   a background-image, so the colour stays on --ink-muted (a data-URI fill
   would bake a literal and stop following the brand).
   GENERAL RULE for this kit: if a mark needs `transform` to point the right
   way, it will point the wrong way in RTL — redraw it symmetric instead. */
.select-wrap { position: relative; display: block; }
.select-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: var(--space-4);
  inset-block-start: 50%;
  inline-size: 12px;
  block-size: 8px;
  margin-block-start: -4px;
  /* The paint comes from background-color; the data-URI only supplies an ALPHA
     shape, so its baked `black` stroke is not a colour literal in the brand
     sense — change --ink-muted and the caret follows. */
  background-color: var(--ink-muted);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6 L6 6.4 L11 1.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6 L6 6.4 L11 1.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
}
.select {
  appearance: none;
  padding-inline-end: var(--space-7);
}
.field--invalid .input, .field--invalid .select, .field--invalid .textarea {
  border-color: var(--status-err);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-block-size: var(--control-min);
  padding-block: var(--space-2);
  cursor: pointer;
}
.check input { inline-size: 20px; block-size: 20px; margin: 0; flex: 0 0 auto;
               accent-color: var(--accent); margin-block-start: 2px; }
.check__text { font-size: var(--step-0); }

/* ================================ table ================================ */

.table-wrap { inline-size: 100%; overflow-x: auto; border: 1px solid var(--border);
              border-radius: var(--radius-card); background: var(--surface-2); }
.table { inline-size: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table th, .table td {
  padding-block: var(--space-3);
  padding-inline: var(--space-4);
  text-align: start;               /* not `left` — the whole point */
  border-block-end: 1px solid var(--border);
  white-space: nowrap;
}
.table th { font-weight: 700; color: var(--ink-heading); background: var(--surface-3); }
.table tbody tr:last-child td { border-block-end: none; }
.table tbody tr:hover td { background: var(--accent-soft); }
.table--dense th, .table--dense td { padding-block: var(--space-2); }

/* =============================== badge ================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-block: 3px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
}
.badge--ok   { color: var(--status-ok);   background: var(--status-ok-bg);   border-color: var(--status-ok-line); }
.badge--warn { color: var(--status-warn); background: var(--status-warn-bg); border-color: var(--status-warn-line); }
.badge--err  { color: var(--status-err);  background: var(--status-err-bg);  border-color: var(--status-err-line); }
.badge--info { color: var(--status-info); background: var(--status-info-bg); border-color: var(--status-info-line); }
.badge--neutral { color: var(--ink-muted); background: var(--surface-3); border-color: var(--border); }
.badge__dot { inline-size: 7px; block-size: 7px; border-radius: 50%;
              background: currentColor; flex: 0 0 auto; }

/* ================================ hero ================================= */

.hero {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-section);
  align-items: center;
}
.hero__eyebrow { font-size: var(--step-eyebrow); letter-spacing: 0.14em;
                 text-transform: uppercase; color: var(--accent); }
:lang(ar) .hero__eyebrow, [lang="ar"] .hero__eyebrow { text-transform: none; letter-spacing: 0; }
.hero__title { font-size: var(--step-4); margin-block: 0 var(--space-4); }
.hero__lead  { font-size: var(--step-1); color: var(--ink-muted); max-inline-size: 60ch;
               margin-block: 0 var(--space-5); }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* SPLIT: copy + media side by side on a laptop, stacked on a phone. Container
   order is source order; `direction` on the frame mirrors it for free. */
.hero--split { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .hero--split { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-7); }
}
.hero__media { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover;
               border-radius: var(--radius-card); background: var(--surface-3); display: block; }

/* COVER: full-bleed image with a scrim. max-block-size uses svh, not vh —
   on iOS vh is the toolbar-retracted viewport, so 100vh overflows the fold. */
.hero--cover {
  min-block-size: min(72svh, var(--hero-max));
  align-content: center;
  padding-inline: var(--space-5);
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-card);
  text-align: center;
  overflow: hidden;
}
.hero--cover .hero__title, .hero--cover .hero__lead,
.hero--cover .hero__eyebrow { color: inherit; }
.hero--cover .hero__actions { justify-content: center; }

/* ============================ band / section =========================== */

.band { padding-block: var(--space-section); }
.band--sunk  { background: var(--surface-2); }
.band--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.band--accent h2, .band--accent h3, .band--accent .u-muted,
.band--accent .u-lead { color: inherit; opacity: 1; }
.band__head { margin-block-end: var(--space-6); }
.band__head .u-lead { max-inline-size: 62ch; }

/* ============================== stat block ============================= */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: var(--space-gap);
}
.stat { padding: var(--space-4); border-inline-start: 3px solid var(--accent);
        background: var(--surface-2); border-radius: var(--radius-input); }
.stat__value { display: block; font-family: var(--font-display);
               font-size: var(--step-3); color: var(--ink-heading); line-height: 1.1; }
.stat__label { font-size: var(--step--1); color: var(--ink-muted); }

/* ============================== logo strip ============================= */

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  justify-content: center;
}
.logos img, .logos .logos__item {
  block-size: 34px;
  inline-size: auto;
  opacity: 0.65;
  filter: grayscale(1);
  transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.logos img:hover, .logos .logos__item:hover { opacity: 1; filter: none; }
.logos__item { display: inline-flex; align-items: center; padding-inline: var(--space-4);
               border: 1px dashed var(--border); border-radius: var(--radius-input);
               color: var(--ink-muted); font-weight: 700; font-size: var(--step--1); }

/* ================================= faq ================================= */

.faq { border-block-end: 1px solid var(--border); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-block-size: var(--control-min);
  padding-block: var(--space-4);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--ink-heading);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-size: var(--step-2);
  color: var(--accent);
  line-height: 1;
  flex: 0 0 auto;
}
.faq[open] .faq__q::after { content: "\2212"; }
.faq__a { padding-block-end: var(--space-4); color: var(--ink-muted);
          max-inline-size: 68ch; margin: 0; }

/* =============================== cta rail ============================== */

.cta-rail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.cta-rail__copy { flex: 1 1 260px; }
.cta-rail__copy strong { display: block; font-size: var(--step-1); color: var(--ink-heading); }
.cta-rail__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ================================= nap ================================= */

.nap { display: grid; gap: var(--space-4);
       grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.nap__item { display: flex; flex-direction: column; gap: 2px; }
.nap__key  { font-size: var(--step-eyebrow); letter-spacing: 0.12em;
             text-transform: uppercase; color: var(--ink-muted); }
:lang(ar) .nap__key, [lang="ar"] .nap__key { text-transform: none; letter-spacing: 0; }
.nap__val  { color: inherit; }
/* A missing value is SHOWN as missing. The founder is deciding from this page;
   a blank slot reads as "designed that way", a marked one reads as a gap. */
.nap__val--missing { color: var(--ink-muted); font-style: italic; opacity: 0.7; }
.nap__social { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ============================== skeleton =============================== */

.skeleton {
  background: linear-gradient(90deg, var(--surface-3) 25%,
              var(--surface-2) 37%, var(--surface-3) 63%);
  background-size: 400% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: var(--radius-input);
  block-size: 1em;
}
.skeleton--title { block-size: 1.6em; max-inline-size: 60%; }
.skeleton--line  { margin-block-start: var(--space-2); }
.skeleton--card  { block-size: 160px; border-radius: var(--radius-card); }
@keyframes skeleton { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* =========================== empty / error ============================= */

/* A value slot with nothing in it yet (a <dd>, <td> or .value that has no
   fact to print). ONE shared treatment: the label stays, the slot is a ruled
   line at text height, so an empty field reads as a form waiting for its
   fact, never as a render that failed. :where() keeps specificity 0 so a
   brand can re-colour the rule (--slot-rule) or restyle the slot outright. */
:where([data-state="empty"]) {
  display: block;
  min-block-size: 1.3em;
  border-block-end: 1px solid var(--slot-rule, var(--border-strong));
  color: transparent;
}
:where(td[data-state="empty"]) { display: table-cell; }

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-7);
  padding-inline: var(--space-5);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--surface-2);
}
.state__icon { inline-size: 40px; block-size: 40px; border-radius: 50%;
               background: var(--accent-soft); display: grid; place-items: center;
               color: var(--accent); font-size: var(--step-1); font-weight: 700; }
.state__title { font-size: var(--step-1); color: var(--ink-heading); margin: 0; }
.state__body  { color: var(--ink-muted); margin: 0; max-inline-size: 46ch; }
.state--error { border-color: var(--status-err-line); background: var(--status-err-bg); }
.state--error .state__icon { background: var(--status-err-bg); color: var(--status-err); }

/* ============================ reduced motion =========================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================== home section shapes ========================
   The brand-owned home (site_presence THE HOME SEAM) composes its sections
   from these neutral shapes, so a brand's page is built from real lists,
   tables and ruled fields rather than a generic card grid. Semantic tokens
   and logical properties only; a brand re-skins them in its own brand.css. */
.home-cols { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .home-cols { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
}
.home-cols > * { min-inline-size: 0; }
.home-cols h3 { font-size: var(--step-1); margin-block: 0 var(--space-3); }
.home-list { list-style: none; margin: 0; padding: 0; display: grid;
             grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
             column-gap: var(--space-5); }
.home-list > li { padding-block: var(--space-2); border-block-end: 1px solid var(--border); }
.home-list--single { grid-template-columns: 1fr; }
.home-list__meta { display: block; color: var(--ink-muted); font-size: var(--step--1); }
/* ARABIC LISTS READ AT BODY SIZE, TWO COLUMNS AT MOST (blind audit 2: an AR
   list laid four narrow columns of small muted text on a dark ground). Arabic
   glyphs sit smaller than Latin at the same size, so the AR meta line keeps the
   body step (its muted ink is each brand's readable-on-ground token), and a
   column is never narrower than half the frame. */
:lang(ar) .home-list, [lang="ar"] .home-list {
  grid-template-columns: repeat(auto-fill,
    minmax(min(100%, max(22rem, calc(50% - var(--space-5)))), 1fr)); }
:lang(ar) .home-list--single, [lang="ar"] .home-list--single { grid-template-columns: 1fr; }
:lang(ar) .home-list__meta, [lang="ar"] .home-list__meta { font-size: var(--step-0); }
.home-marks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
              gap: var(--space-2) var(--space-5); }
.home-marks > li { padding-inline-start: var(--space-3); border-inline-start: 2px solid var(--accent);
                   font-weight: 600; }
.home-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-4);
              counter-reset: home-step; }
.home-steps > li { counter-increment: home-step; display: grid; gap: var(--space-1);
                   grid-template-columns: 2.25rem 1fr; align-items: baseline; }
.home-steps > li::before { content: counter(home-step); font-family: var(--font-display);
                           font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.home-steps > li > * { grid-column: 2; margin: 0; }
.home-steps strong { color: var(--ink-heading); }
.home-fields { display: grid; margin: 0; gap: 0;
               grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
               border-block-start: 1px solid var(--border); }
.home-fields > div { padding-block: var(--space-3); border-block-end: 1px solid var(--border);
                     padding-inline-end: var(--space-4); }
.home-fields dt { font-size: var(--step--1); color: var(--ink-muted); margin: 0; }
.home-fields dd { margin: 0; font-weight: 600; color: var(--ink-heading); }
.home-fields dd[data-state="empty"] { min-block-size: 1.5em; border-block-end: 1px dashed var(--border); }
.home-pair { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .home-pair { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.home-pair > * { min-inline-size: 0; }
.home-figure { margin: 0; border: 1px solid var(--border); background: var(--surface-2); }
.home-figure img { display: block; inline-size: 100%; block-size: auto; object-fit: cover; }
.home-figure figcaption { padding-block: var(--space-2); padding-inline: var(--space-3);
                          font-size: var(--step--1); color: var(--ink-muted); }
.home-prose { max-inline-size: 72ch; }
.home-prose p { margin-block: 0 var(--space-3); }
.home-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-start: var(--space-5); }
.home-panel { border: 1px solid var(--border); padding: var(--space-6); background: var(--surface-2);
              display: grid; gap: var(--space-4); }
.home-panel > * { margin: 0; }
.table .u-num, .table td.u-num { text-align: end; }
/* A table whose first column is a sentence (targets, holdings, plant) wraps
   instead of scrolling; figure columns keep nowrap. */
.table--prose td, .table--prose th { white-space: normal; }
.table--prose td.u-num, .table--prose td[data-state] { white-space: nowrap; }
.table-wrap { max-inline-size: 100%; min-inline-size: 0; }
