:root, [data-theme="light"] { color-scheme: light; --panel: oklch(0.2372 0.0287 168.2); --on-panel: oklch(0.9578 0.0095 93.57); }
[data-theme="dark"] { color-scheme: dark; --panel: var(--surface); --on-panel: var(--text); }
::selection { color: var(--on-accent); background: var(--accent); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: var(--type-body-weight); }
/* The header stays sticky at a constant height (#230). Scroll padding keeps a focused control and its focus ring clear of it (WCAG 2.2 SC 2.4.11).
   Firefox scrolls a focused control only when it lies wholly outside the padded scrollport, so the start padding also spans two target heights:
   a control up to that tall that touches the header is then wholly outside and is scrolled below it. */
html { --ds-header-block: calc(var(--target-min) + var(--space-3) * 2 + var(--border-thin)); --ds-focus-reach: calc(var(--focus-width) + var(--focus-offset));
  scroll-padding-block: calc(var(--ds-header-block) + var(--target-min) * 2 + var(--ds-focus-reach)) calc(var(--ds-header-block) + var(--ds-focus-reach)); }
:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.ds-icon { inline-size: var(--icon-md); block-size: var(--icon-md); flex: none; }
.ds-icon--sm { inline-size: var(--icon-sm); block-size: var(--icon-sm); }
.ds-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-block-size: var(--target-min); padding-inline: var(--space-5); font-family: inherit; font-size: var(--type-small-size); line-height: var(--type-small-line); font-weight: var(--type-body-strong-weight); text-decoration: none; color: var(--text); background: var(--surface); border: var(--border-thin) solid var(--border-control); border-radius: var(--radius-md); cursor: pointer; transition: background-color 150ms, border-color 150ms, color 150ms; max-inline-size: 100%; text-align: center; }
.ds-btn:hover { background: var(--bg); border-color: var(--text); }
.ds-btn:active { background: var(--border); border-color: var(--text); }
.ds-btn--primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.ds-btn--primary:hover, .ds-btn--primary:active { color: var(--on-accent); background: var(--accent-hover); border-color: var(--accent-hover); }
.ds-btn--lg { min-block-size: var(--control-lg); padding-inline: var(--space-6); }
.ds-iconbtn { box-sizing: border-box; flex: none; inline-size: var(--target-min); block-size: var(--target-min); display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: var(--surface); border: var(--border-thin) solid var(--border-control); border-radius: var(--radius-md); cursor: pointer; transition: background-color 150ms, border-color 150ms, color 150ms; }
.ds-iconbtn:hover { background: var(--bg); border-color: var(--text); }
.ds-iconbtn:active { background: var(--border); border-color: var(--text); }
.ds-theme { display: inline-grid; place-items: center; }
.ds-theme .ds-icon { grid-area: 1 / 1; }
.ds-theme .ds-theme__dark { visibility: hidden; }
[data-theme="dark"] .ds-theme .ds-theme__light { visibility: hidden; }
[data-theme="dark"] .ds-theme .ds-theme__dark { visibility: visible; }
.ds-skip { position: absolute; inset-block-start: var(--space-2); inset-inline-start: var(--space-2); z-index: 10; box-sizing: border-box; min-block-size: var(--target-min); padding-inline: var(--space-4); display: inline-flex; align-items: center; font-size: var(--type-small-size); line-height: var(--type-small-line); font-weight: var(--type-body-strong-weight); color: var(--on-accent); background: var(--accent); border-radius: var(--radius-md); text-decoration: none; }
.ds-skip:not(:focus):not(.is-shown) { inline-size: 1px; block-size: 1px; min-block-size: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ds-header { position: sticky; inset-block-start: 0; z-index: 5; background: color-mix(in oklch, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-block-end: var(--border-thin) solid var(--border); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ds-header { background: var(--bg); } }
.ds-header__row { box-sizing: border-box; max-inline-size: var(--page-max); margin-inline: auto; padding: var(--space-3) var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); }
.ds-header__name { min-block-size: var(--target-min); display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--type-h3-size); line-height: var(--type-h3-line); font-weight: var(--type-h3-weight); color: var(--text); text-decoration: none; }
.ds-nav { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--ds-focus-reach) * 2); flex: 0 1 auto; margin-inline: auto; padding: var(--space-1); background: color-mix(in oklch, var(--border) 70%, var(--bg)); border-radius: var(--radius-lg); }
.ds-nav__item { box-sizing: border-box; min-block-size: var(--target-min); min-inline-size: var(--target-min); padding-inline: var(--space-4); display: inline-flex; align-items: center; justify-content: center; font-size: var(--type-small-size); line-height: var(--type-small-line); font-weight: var(--type-small-weight); color: var(--text); text-decoration: none; border-radius: var(--radius-md); transition: background-color 150ms, color 150ms; }
a.ds-nav__item:hover { background: var(--bg); }
a.ds-nav__item:active { background: var(--border); }
.ds-nav__item[aria-current="page"] { color: var(--text); background: var(--surface); font-weight: var(--type-body-strong-weight); box-shadow: 0 1px 2px color-mix(in oklch, var(--text) 14%, transparent); }
.ds-footer .ds-nav__item[aria-current="page"] { color: var(--accent); background: var(--accent-tint); box-shadow: none; }
.ds-nav__item--soon { color: var(--text-muted); }
/* #458: the nav icons show only in the phone bar; above 40rem the header nav stays text only. */
.ds-nav__icon { display: none; }
/* #459: the «المزيد» item shows only in the phone bar; above 40rem the footer holds its links. */
.ds-nav__item--more { display: none; }
/* #428 approved board NajdMobile.dc.html: up to 40rem the header's one nav is a floating bar at the bottom, one row of equal cells.
   A backdrop-filter makes its element the containing block of fixed descendants (Filter Effects 2), so on phones the header's glass
   moves to its ::before and the bar, fixed to the viewport, carries its own. The bar reaches var(--ds-bar-block) above the viewport's
   end, safe-area inset included: the footer ends with that padding, and the end scroll padding keeps a focused control clear of the
   bar (WCAG 2.2 SC 2.4.11); like the start padding it spans two more target heights, for Firefox (see the html rule above). */
/* #548 (WCAG 2.2 SC 1.4.4): the bar keeps one row of four equal cells while its content box holds four of its widest item, and is
   2 × 2 below that, so at 200% text no label leaves its cell. --ds-bar-fit is four widest items plus three gaps, in rem so it scales
   with the text: the widest item («الرئيسية» with its padding) measures 4.69rem in the small type and 3.81rem in the meta type below
   24rem. clamp() picks 25% or 50% columns by the sign of (fit − width) × 999; --ds-bar-wrap adds the second row to --ds-bar-block by
   the same test on the bar's content width, so the footer padding and the end scroll padding follow the taller bar.
   Token debt (#548 Done when 4): --ds-bar-pad 0.375rem and --ds-bar-radius 22px are the approved board's geometry (#428); tokens.css
   has no 6px space or 22px radius, and the nearest tokens (--space-1 or --space-2, --radius-lg or --radius-xl) would change it. */
@media (max-width: 40rem) { html { --ds-bar-block: calc(var(--ds-bar-item) + var(--ds-bar-wrap) + var(--ds-bar-pad) * 2 + var(--border-thin) * 2 + var(--space-4) + env(safe-area-inset-bottom, 0px));
    --ds-bar-pad: 0.375rem; --ds-bar-radius: 22px; --ds-bar-fit: 19.75rem;
    --ds-bar-wrap: clamp(0px, calc((var(--ds-bar-fit) - (100vw - var(--space-3) * 2 - var(--border-thin) * 2 - var(--ds-bar-pad) * 2)) * 999), calc(var(--ds-bar-item) + var(--space-1)));
    --ds-bar-item: max(var(--target-min), calc(1.25rem + 0.125rem + var(--type-small-size) * var(--type-small-line)));
    scroll-padding-block-end: calc(var(--ds-bar-block) + var(--target-min) * 2 + var(--ds-focus-reach)); }
  .ds-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ds-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in oklch, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); }
  .ds-header__row { padding-inline: var(--space-4); gap: var(--space-2) var(--space-3); }
  .ds-header__row > .ds-iconbtn { margin-inline-start: auto; }
  .ds-nav { position: fixed; inset-inline: var(--space-3); inset-block-end: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); z-index: 5; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(calc(25% - var(--space-1)), calc((var(--ds-bar-fit) - 100%) * 999), calc(50% - var(--space-1))), 1fr));
    gap: var(--space-1); padding: var(--ds-bar-pad); border-radius: var(--ds-bar-radius);
    background: color-mix(in oklch, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border: var(--border-thin) solid var(--border); }
  .ds-nav__item { padding-inline: var(--space-2); }
  /* #458 (Apple HIG Tab bars, Material 3 Navigation bar): each bar item is an icon over its label, both in the item's colour. */
  .ds-header .ds-nav__item { flex-direction: column; gap: 0.125rem; }
  .ds-header .ds-nav__icon { display: block; inline-size: 1.25rem; block-size: 1.25rem; }
  /* The board's 0.25rem gap is narrower than an outer focus ring, so in the bar the ring is drawn inside the item. */
  .ds-header .ds-nav__item:focus-visible { outline-offset: calc(var(--focus-width) * -1); }
  .ds-header .ds-nav__item[aria-current="page"] { color: var(--accent); background: var(--accent-tint); box-shadow: none; }
  /* #459 (Customer decision, option B): the bar's fourth item «المزيد» replaces the footer, which stays in the HTML but is not
     displayed; main ends with the bar's padding instead, so the last content still clears the bar. */
  .ds-header .ds-nav__item--more { display: inline-flex; }
  .ds-footer { display: none; }
  .ds-shell > main { padding-block-end: var(--ds-bar-block); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { @media (max-width: 40rem) { .ds-header::before, .ds-nav { background: var(--bg); } } }
@media (max-width: 40rem) and (prefers-reduced-transparency: reduce) { .ds-header::before, .ds-nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } .ds-nav { border-color: var(--border-strong); } }
@media (max-width: 40rem) and (forced-colors: active) { .ds-header::before, .ds-nav { background: Canvas; -webkit-backdrop-filter: none; backdrop-filter: none; } .ds-nav { border-color: CanvasText; } }
@media print and (max-width: 40rem) { .ds-header .ds-nav { display: none; } .ds-shell > main { padding-block-end: 0; } }
@media (max-width: 24rem) { html { --ds-bar-fit: 16.25rem; --ds-bar-item: max(var(--target-min), calc(1.25rem + 0.125rem + var(--type-meta-size) * var(--type-meta-line))); }
  .ds-nav__item { padding-inline: var(--space-1); font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
}
.ds-footer { background: var(--surface); border-block-start: var(--border-thin) solid var(--border); }
/* #310 site logo: a 3x3 grid of squares, the start-top one in the accent colour, painted with CSS gradients and a gradient mask (no image load, CSP img-src 'none'). */
.ds-header__name::before, .ds-footer__name::before { content: ""; flex: none; inline-size: 1.2em; block-size: 1.2em; background: linear-gradient(var(--accent), var(--accent)) 100% 0 / 30% 30% no-repeat, var(--text);
  -webkit-mask: repeating-linear-gradient(to right, #000 0 30%, transparent 30% 35%), repeating-linear-gradient(#000 0 30%, transparent 30% 35%); -webkit-mask-composite: source-in;
  mask: repeating-linear-gradient(to right, #000 0 30%, transparent 30% 35%), repeating-linear-gradient(#000 0 30%, transparent 30% 35%); mask-composite: intersect; }
@media (forced-colors: active) { .ds-header__name::before, .ds-footer__name::before { background: CanvasText; forced-color-adjust: none; } }
.ds-panel { box-sizing: border-box; padding: var(--space-7); border-radius: var(--radius-xl); background: var(--panel); color: var(--on-panel); }
.ds-panel .ds-section__title { color: var(--on-panel); }
/* #511: Home's contact card sits on the light surface in both themes, with no dark block; the rows take their colours from these two values. */
.ds-panel--surface { --panel: var(--surface); --on-panel: var(--text); border: var(--border-thin) solid var(--border-strong); }
@media (max-width: 40rem) { .ds-panel { padding: var(--space-6) var(--space-5); } }
/* #536 finding 7: Home's contact heading sits outside the card, on the shared edge of the other section heads; the card holds only
   the rows, with the card padding. */
.ds-panel--surface { padding: var(--space-5); }
.ds-footer__row { box-sizing: border-box; max-inline-size: var(--page-max); margin-inline: auto; padding: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ds-footer__name { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--type-small-size); line-height: var(--type-small-line); font-weight: var(--type-h1-weight); }
.ds-footer__meta { font-size: var(--type-small-size); line-height: var(--type-small-line); font-weight: var(--type-small-weight); color: var(--text-muted); }
/* #511: the hero has no grid background (approved Home prototype, version 7). */
.ds-hero { box-sizing: border-box; max-inline-size: var(--page-max); margin-inline: auto; padding: var(--space-9) var(--space-5) var(--space-8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-7) var(--space-8); }
.ds-hero__body { flex: 999 1 var(--hero-text-min); min-inline-size: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.ds-eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--type-small-size); line-height: var(--type-small-line); font-weight: var(--type-body-strong-weight); color: var(--accent); }
.ds-eyebrow::before { content: ""; inline-size: var(--space-5); block-size: var(--border-thick); background: var(--accent); }
/* #536 finding 11: the hero title steps between two type tokens instead of a viewport ramp: h1 below 48rem, display from 48rem. */
.ds-hero__title { margin: 0; font-size: var(--type-h1-size); line-height: var(--type-h1-line); font-weight: var(--type-display-weight); }
@media (min-width: 48rem) { .ds-hero__title { font-size: var(--type-display-size); line-height: var(--type-display-line); } }
/* #536 finding 12: the hero text takes the reading measure, so the desktop hero does not leave its inline-end half empty. */
.ds-hero__text { margin: 0; max-inline-size: var(--measure); font-size: var(--type-body-size); line-height: var(--type-body-line); color: var(--text-soft); }
.ds-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-block-start: var(--space-2); }
.ds-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--col-min), 100%), 1fr)); gap: var(--space-5); }
.ds-card { box-sizing: border-box; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface); border: var(--border-thin) solid var(--border-strong); border-radius: var(--radius-lg); }
.ds-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ds-card__icon { inline-size: var(--control-lg); block-size: var(--control-lg); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-tint); border-radius: var(--radius-md); }
.ds-card__title { margin: 0; font-size: var(--type-h3-size); line-height: var(--type-h3-line); font-weight: var(--type-h3-weight); }
.ds-card__text { margin: 0; font-size: var(--type-small-size); line-height: var(--type-small-line); color: var(--text-soft); }
/* #511 Home: a service card is one link holding its title and a trailing chevron; the whole card is the target. #536 finding 10: its
   title takes the whole body-strong type token (size, line and weight), so no title mixes two type styles. Finding 13: the card edge is
   the control border token, as on the outlined hero button, because the edge is the card's only sign of its clickable area. Finding 4:
   the title centres its text in the box it reserves on phones, so a one-line title lines up with the chevron. */
.ds-card--link { flex-direction: row; align-items: center; color: inherit; text-decoration: none; border-color: var(--border-control); transition: border-color 150ms; }
.ds-card--link:hover { border-color: var(--text); }
.ds-card--link > .ds-card__title { flex: 1 1 0; min-inline-size: 0; display: flex; align-items: center; font-size: var(--type-body-strong-size); line-height: var(--type-body-strong-line); font-weight: var(--type-body-strong-weight); }
.ds-card--link > .ds-icon { color: var(--text-muted); }
.ds-badge { box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--space-1); padding-inline: var(--space-2); font-size: var(--type-meta-size); line-height: var(--type-meta-line); font-weight: var(--type-body-strong-weight); color: var(--text-muted); background: var(--bg); border: var(--border-thin) solid var(--border-strong); border-radius: var(--radius-sm); }
.ds-shell { min-block-size: 100vh; min-block-size: 100dvh; display: flex; flex-direction: column; }
.ds-shell > main { flex: 1 0 auto; }
.ds-main { box-sizing: border-box; max-inline-size: var(--page-max); margin-inline: auto; padding: var(--space-7) var(--space-5) var(--space-9); display: flex; flex-direction: column; gap: var(--space-8); }
.ds-hero + .ds-main { padding-block-start: 0; }
.ds-section { display: flex; flex-direction: column; gap: var(--space-5); }
/* #536 finding 8: on Home a section heading sits closer to its own cards than the cards sit to each other; the contact section is the one
   that holds the contact card (finding 7). */
.ds-section[data-home], .ds-section:has(> .ds-panel--surface) { gap: var(--space-4); }
/* #536 findings 6 and 15: on Home each model's label and value share one line, and no value adds space under the last pair. Scoped to
   Home, because the service pages use .ds-pairs too. Each pair wraps like a contact row (finding 1): the value moves under its label
   when less than two target widths remain (200% text), so its words stay whole. Finding 9: the three models fit one row from 768px,
   with no orphan card. */
[data-home="models"] .ds-cards { grid-template-columns: repeat(auto-fit, minmax(min(var(--col-min-sm), 100%), 1fr)); }
[data-home="models"] .ds-pairs { gap: var(--space-2); }
[data-home="models"] .ds-pairs > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-3); }
[data-home="models"] .ds-pairs dt { flex: none; }
[data-home="models"] .ds-pairs dd { flex: 1 1 calc(var(--target-min) * 2); min-inline-size: 0; margin: 0; }
.ds-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.ds-section__title { margin: 0; font-size: var(--type-h2-size); line-height: var(--type-h2-line); font-weight: var(--type-h2-weight); }
.ds-pagehead { display: flex; flex-direction: column; gap: var(--space-3); max-inline-size: var(--measure); }
.ds-pagehead > .ds-btn { align-self: flex-start; }
.ds-pagehead__lead + .ds-btn { margin-block-start: var(--space-3); }
.ds-pagehead__title { margin: 0; font-size: var(--type-h1-size); line-height: var(--type-h1-line); font-weight: var(--type-h1-weight); }
.ds-pagehead__lead { margin: 0; font-size: var(--type-body-size); line-height: var(--type-body-line); color: var(--text-soft); }
/* FR-18 Services (#401, #310 prototype ServicesIndex and Service): cards at radius 24px in two columns, one column below 48rem. */
.ds-list { margin: 0; padding: 0; list-style: none; }
.ds-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 48rem) { .ds-cards--two { grid-template-columns: minmax(0, 1fr); } }
.ds-card--service { border-radius: var(--radius-xl); padding: var(--space-6); }
.ds-card__meta { margin: 0; font-size: var(--type-small-size); line-height: var(--type-small-line); color: var(--text-soft); }
.ds-card__more { align-self: flex-start; margin-block-start: auto; }
.ds-prose { margin: 0; max-inline-size: var(--measure); color: var(--text-soft); }
ul.ds-prose, .ds-steps { display: flex; flex-direction: column; gap: var(--space-2); padding-inline-start: var(--space-5); }
.ds-steps { margin: 0; max-inline-size: var(--measure); }
.ds-steps > li::marker { color: var(--accent); font-weight: var(--type-body-strong-weight); }
.ds-pairs { margin: 0; display: grid; gap: var(--space-1) var(--space-3); font-size: var(--type-small-size); line-height: var(--type-small-line); }
.ds-pairs dt { font-weight: var(--type-body-strong-weight); }
.ds-pairs dd { margin: 0 0 var(--space-2); color: var(--text-soft); }
.ds-table { inline-size: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--type-small-size); line-height: var(--type-small-line); }
/* #497: the services comparison is one card per shared model up to 40rem, where a four-column table splits Arabic words;
   the table shows above 40rem. Both are generated from the same typed source. */
.ds-compare { display: none; }
@media (max-width: 40rem) { .ds-compare { display: flex; flex-direction: column; gap: var(--space-5); } .ds-compare__table { display: none; } }
.ds-table th, .ds-table td { padding: var(--space-3); text-align: start; vertical-align: top; border-block-end: var(--border-thin) solid var(--border); }
.ds-table thead th { font-weight: var(--type-body-strong-weight); color: var(--text-muted); border-block-end-color: var(--border-strong); }
.ds-table tbody th { font-weight: var(--type-body-strong-weight); }
/* #404 breadcrumb (#310 prototype Service and Components boards): the ancestors only, before <main>, on one muted line.
   The separator is CSS text with empty alternative text, so assistive technology skips it. U+2039 is a mirrored character
   (Unicode Bidi_Mirrored), so it is laid out left to right to keep it pointing left, along the RTL reading direction.
   Each link keeps the 44px target in both axes, whatever its text length (WCAG 2.2 SC 2.5.8, NFR-03). */
.ds-crumbs { box-sizing: border-box; inline-size: 100%; max-inline-size: var(--page-max); margin-inline: auto; padding: var(--space-5) var(--space-5) 0; }
.ds-crumbs + main > .ds-main { padding-block-start: var(--space-4); }
.ds-crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-1); font-size: 0.9375rem; line-height: var(--type-small-line); white-space: nowrap; }
.ds-crumbs li { display: inline-flex; align-items: center; gap: var(--space-1); min-inline-size: 0; }
.ds-crumbs li + li::before { content: "\2039" / ""; direction: ltr; unicode-bidi: isolate; color: var(--text-muted); }
.ds-crumbs a { box-sizing: border-box; min-block-size: var(--target-min); min-inline-size: var(--target-min); display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; text-underline-offset: 0.2em; }
.ds-crumbs a:hover, .ds-crumbs a:focus { text-decoration: underline; }
.ds-faq { display: flex; flex-direction: column; gap: var(--space-3); max-inline-size: var(--measure); }
.ds-faq details { background: var(--surface); border: var(--border-thin) solid var(--border-strong); border-radius: var(--radius-lg); }
.ds-faq summary { box-sizing: border-box; min-block-size: var(--target-min); padding: var(--space-3) var(--space-5); font-weight: var(--type-body-strong-weight); cursor: pointer; }
.ds-faq details > p { margin: 0; padding: 0 var(--space-5) var(--space-4); color: var(--text-soft); }
.ds-panel.ds-section { color: var(--on-panel); }
@media (max-width: 40rem) { .ds-main { padding: var(--space-6) var(--space-4) var(--space-8); gap: var(--space-7); }
  .ds-crumbs { padding-inline: var(--space-4); }
  /* #404, #310 prototype board Mobile.dc.html: hero padding 3rem 1.5rem. */
  .ds-hero { padding: var(--space-7) var(--space-5); }
  /* #511 prototype board: on phones the hero's two buttons stack; #536 finding 5: both take the content width, which no late web font
     can change, so their edges line up. Their labels start at the inline start: a centred label would move when the late web font
     changes its width (TC-NAVBAR-9). A service title reserves two lines of its own type token, so the late web font cannot change a
     card's height (TC-NAVBAR-9). */
  .ds-hero .ds-hero__actions { flex-direction: column; align-items: stretch; }
  .ds-hero .ds-hero__actions > .ds-btn { justify-content: flex-start; }
  .ds-card--link > .ds-card__title { min-block-size: calc(var(--type-body-strong-size) * var(--type-body-strong-line) * 2); }
  /* #536 finding 3: a phone service card has less inline padding, so its title keeps room for whole words at 200% text. Finding 1: the
     contact card has less inline padding too. */
  [data-home="services"] .ds-card--link { padding-inline: var(--space-4); }
  .ds-panel--surface { padding-inline: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) { .ds-btn, .ds-iconbtn, .ds-nav__item, .ds-card--link { transition: none; }
}
/* #460 contact rows (FR-19): one full-width link per channel, an icon in a tinted square, the name over a muted handle line, a trailing chevron.
   Rows are at least 3.5rem tall and 0.5rem apart, more than the focus ring's reach, so a focused row's ring never covers its neighbour. */
.ds-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
/* #536 finding 1: a row wraps, so its text moves under the icon when less than two target widths remain (200% text), instead of
   shrinking to one letter per line. */
.ds-row { box-sizing: border-box; inline-size: 100%; min-block-size: 3.5rem; padding: var(--space-2) var(--space-3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); color: inherit; text-decoration: none; background: color-mix(in oklch, var(--on-panel) 6%, var(--panel)); border-radius: var(--radius-md); transition: background-color 150ms; }
.ds-row:hover { background: color-mix(in oklch, var(--on-panel) 12%, var(--panel)); }
.ds-row__icon { flex: none; inline-size: 2.5rem; block-size: 2.5rem; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in oklch, var(--on-panel) 14%, var(--panel)); border-radius: var(--radius-md); }
.ds-row__text { flex: 1 1 calc(var(--target-min) * 2); min-inline-size: 0; display: flex; flex-direction: column; }
.ds-row__name { font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: var(--type-body-strong-weight); }
.ds-row__handle { font-size: var(--type-small-size); line-height: var(--type-small-line); color: color-mix(in oklch, var(--on-panel) 80%, var(--panel)); }
/* The handle keeps dir="ltr" in the markup, but its box stays RTL with plaintext bidi: the text reads left to right and ends at the row's
   inline start, so the late Latin web font swap cannot move its start edge (no layout shift, TC-NAVBAR-9 in Chromium). */
.ds-row__handle > [dir] { display: block; direction: rtl; unicode-bidi: plaintext; text-align: end; }
.ds-row__chevron { flex: none; color: color-mix(in oklch, var(--on-panel) 80%, var(--panel)); }
/* #459 (#471 item 3, Customer comment on PR #468): the LinkedIn [in] mark takes LinkedIn's variant approved for its background
   (https://brand.linkedin.com/in-logo: only blue, black and white): white on a dark panel in both themes; on the «المزيد»
   groups and, from #511, on Home's contact card, which sit on --surface, black in the light theme and white in the dark theme.
   Forced colours use the system text colour. */
.ds-row[href^="https://www.linkedin.com/"] .ds-row__icon { color: white; }
.ds-group .ds-row[href^="https://www.linkedin.com/"] .ds-row__icon, .ds-panel--surface .ds-row[href^="https://www.linkedin.com/"] .ds-row__icon { color: black; }
[data-theme="dark"] .ds-group .ds-row[href^="https://www.linkedin.com/"] .ds-row__icon, [data-theme="dark"] .ds-panel--surface .ds-row[href^="https://www.linkedin.com/"] .ds-row__icon { color: white; }
/* #459: the «المظهر» row of the «المزيد» page is a button row: no button chrome, and its detail names the current theme. */
button.ds-row { margin: 0; border: 0; font: inherit; text-align: start; cursor: pointer; }
.ds-row.ds-theme { display: flex; }
.ds-row.ds-theme .ds-row__icon { display: inline-grid; place-items: center; }
.ds-theme__label--dark { display: none; }
[data-theme="dark"] .ds-theme__label--light { display: none; }
[data-theme="dark"] .ds-theme__label--dark { display: inline; }
/* PR #477 review: the «المزيد» page is three inset grouped lists on the page background, one --surface card per group, separated
   by one spacing token; rows inside a group touch, divided by a hairline, and their focus ring is drawn inside the row so it never
   covers a neighbour. The contact group's label is the small muted meta style. */
.ds-more { display: flex; flex-direction: column; gap: var(--space-5); }
.ds-more__group { display: flex; flex-direction: column; gap: var(--space-2); }
.ds-group__label { margin: 0; padding-inline: var(--space-3); font-size: var(--type-meta-size); line-height: var(--type-meta-line); font-weight: var(--type-meta-weight); color: var(--text-muted); }
/* #536 finding 14: the rows of Home's contact card take this group treatment, with token colours only. Two differences keep accepted
   cases: the rows stay apart, with the hairline centred in the space between them, so a focused row's ring stays clear of its neighbour
   (TC-CONTACT-13); a brand mark keeps the row's text colour (TC-ICON-4), and the LinkedIn rule above still applies. */
.ds-panel--surface .ds-rows { gap: var(--space-1); }
.ds-panel--surface .ds-rows > li + li { padding-block-start: var(--space-1); }
.ds-panel--surface .ds-row:not([href^="https://www.linkedin.com/"]) .ds-row__icon > svg[fill="currentColor"] { color: var(--text); }
.ds-rows.ds-group { gap: 0; background: var(--surface); border: var(--border-thin) solid var(--border); border-radius: var(--radius-lg); }
.ds-group > li + li, .ds-panel--surface .ds-rows > li + li { border-block-start: var(--border-thin) solid var(--border); }
.ds-group .ds-row { color: var(--text); background: transparent; border-radius: 0; }
.ds-panel--surface .ds-row { color: var(--text); background: transparent; }
.ds-group > li:first-child > .ds-row { border-start-start-radius: var(--radius-lg); border-start-end-radius: var(--radius-lg); }
.ds-group > li:last-child > .ds-row { border-end-start-radius: var(--radius-lg); border-end-end-radius: var(--radius-lg); }
.ds-group .ds-row:hover, .ds-panel--surface .ds-row:hover { background: color-mix(in oklch, var(--text) 5%, var(--surface)); }
.ds-group .ds-row:focus-visible, .ds-panel--surface .ds-row:focus-visible { outline-offset: calc(var(--focus-width) * -1); }
.ds-group .ds-row__icon, .ds-panel--surface .ds-row__icon { background: var(--accent-tint); color: var(--accent); }
.ds-group .ds-row__handle, .ds-group .ds-row__chevron, .ds-panel--surface .ds-row__handle, .ds-panel--surface .ds-row__chevron { color: var(--text-muted); }
/* The theme row's trailing switch (Apple HIG Toggles): its track and knob follow [data-theme]; on is the dark theme, with the knob at
   the inline end, so it mirrors in RTL. The knob is placed by flex alignment, not a transform, so it needs no direction logic. */
.ds-switch { flex: none; box-sizing: border-box; inline-size: 2.75rem; block-size: 1.625rem; padding: 0.1875rem; display: inline-flex; justify-content: flex-start; align-items: center; border-radius: var(--radius-full); background: var(--border-control); transition: background-color 150ms; }
.ds-switch__knob { inline-size: 1.25rem; block-size: 1.25rem; border-radius: var(--radius-full); background: var(--surface); }
[data-theme="dark"] .ds-switch { justify-content: flex-end; background: var(--accent); }
[data-theme="dark"] .ds-switch__knob { background: var(--on-accent); }
@media (max-width: 40rem) { .ds-main--compact { padding-block-start: var(--space-4); gap: var(--space-5); }
  .ds-main--compact .ds-pagehead__title { font-size: var(--type-h2-size); line-height: var(--type-h2-line); }
}
@media (forced-colors: active) { .ds-row { border: var(--border-thin) solid LinkText; } button.ds-row { border-color: ButtonText; }
  .ds-switch { border: var(--border-thin) solid ButtonText; background: Canvas; } .ds-switch__knob { background: ButtonText; }
  [data-theme="dark"] .ds-switch { background: Highlight; } [data-theme="dark"] .ds-switch__knob { background: HighlightText; }
}
@media (prefers-reduced-motion: reduce) { .ds-row, .ds-switch { transition: none; } }
/* #497: Arabic text wraps at its spaces. The shell keeps break-word only as the emergency fallback: it breaks a word only
   when that word alone is wider than its line (200% text at 320px), and its breaks never narrow min-content sizes, so a word
   that fits is never split (CSS Text 3 overflow-wrap). Only a token, such as a URL, an email address or a handle, may wrap
   at any character, inside its own element, so it cannot widen the page. */
.ds-shell { overflow-wrap: break-word; }
/* A flex item's automatic minimum is its longest word, which break-word does not shorten: the action item, the button and its
   label may shrink to the line, so the fallback can act there too (CSS Flexbox 1, automatic minimum size). */
.ds-hero__actions > li, .ds-btn, .ds-btn > span { min-inline-size: 0; }
.ds-token, .ds-row__handle [dir="ltr"] { overflow-wrap: anywhere; }
