/* Work (/work/, /en/work/, /work/<slug>/): theme portfolio-2 section 1 (title, filter, card grid) and
   portfolio-details-1 sections 1-2, in the home's rounded panels. The cards' own rules come with pages/_portfolio.py
   (inline <style id="shf-pf-cards">), shared with the landing pages. */

.shf-page-work main p { text-wrap: pretty; }

/* ---- index: hero */
.shf-work { padding: 96px 0 110px; }
.shf-work__head { padding-bottom: 56px; }
.shf-work__title { margin: 6px auto 22px; max-width: 15ch; text-wrap: balance; line-height: 1.08; }
[dir=rtl] .shf-work__title { line-height: 1.22; }
.shf-work__lead { max-width: 62ch; margin-inline: auto; }
.shf-work .shf-work-tag { justify-content: center; }

.shf-work-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--at-neutral-100); }
.shf-work-stat { padding: 26px 24px 4px; border-inline-start: 1px solid var(--at-neutral-100); }
.shf-work-stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.shf-work-stat__value { font-size: clamp(36px, 3.6vw, 56px); font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--at-neutral-900); font-variant-numeric: tabular-nums; }
[dir=rtl] .shf-work-stat__value { text-align: right; }
.shf-work-stat__label { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--at-neutral-900); opacity: .72; max-width: 24ch; }

/* ---- index: filter (theme .filter-portfolio, its .at-btn.filter-btn pills) */
.shf-work-filter { margin-bottom: 44px; }
.shf-work-chip { gap: 8px; font-size: 15px; line-height: 1.3; padding: 10px 18px; cursor: pointer; }
.shf-work-chip__n { font-size: 12px; font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; }
.shf-work-chip:hover { border-color: var(--at-neutral-900); }
.shf-work-chip.active .shf-work-chip__n { opacity: .75; }
.shf-work-chip:focus-visible { outline: 2px solid var(--at-neutral-900); outline-offset: 3px; }
.shf-work-grid > [hidden] { display: none !important; }

/* ---- closing call to action (white panel, the theme's dark button) */
.shf-work-cta { padding: 64px 0; }
.shf-work-cta__title { color: var(--at-neutral-900); font-size: clamp(30px, 3.4vw, 52px); font-weight: 500; line-height: 1.2; }
.shf-work-cta .shf-work-cta__btn { flex: none; }
.shf-page-work a.at-btn:focus { color: #fefefe; }

/* ---- project page (portfolio-details-1 section 1) */
.shf-work-item { padding: 84px 0 100px; }
.shf-work-item__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 15px; color: var(--at-neutral-500); }
.shf-work-item__back:hover { color: var(--at-neutral-900); }
/* keyboard focus: main.css takes the outline off every link (a:focus { outline: none }); these get the site's ring */
.shf-work-item__back:focus-visible, .shf-work-item__start:focus-visible, .shf-sys-crumbs a:focus-visible {
  outline: 2px solid var(--at-neutral-900); outline-offset: 4px; border-radius: 4px; color: var(--at-neutral-900); }
.shf-work-item__back svg { display: block; }
[dir=ltr] .shf-work-item__back svg { transform: scaleX(-1); }
.shf-work-item__name { line-height: 1.05; }
[dir=rtl] .shf-work-item__name { line-height: 1.2; }
.shf-work-item__line { color: var(--at-neutral-500); font-weight: 500 !important; }
.shf-work-item__start .at-btn { margin-bottom: 6px !important; }
.shf-work-label { position: sticky; top: 130px; }
/* the section labels (لمحة، التحدي ...) were the theme's h6 (24px, 16px on phones) alone in their 5/12 column: they read
   as display titles now, the size of the page's other section heads */
.shf-work-label .sec-2-home-5__list-item h2 { font-size: clamp(30px, 2.6vw, 42px) !important; line-height: 1.25; }
@media (max-width: 991.98px) { .shf-work-label .sec-2-home-5__list-item h2 { font-size: 26px !important; } }
.shf-work-item .sec-2-home-5__list-item { font-size: 17px; }
.shf-work-fact p:last-child { text-align: end; }
.shf-work-item__intro { line-height: 1.5; text-wrap: pretty; }
.shf-work-item__shot { margin: 64px 0 24px; border-radius: 24px; overflow: hidden; background: var(--at-neutral-100); aspect-ratio: 3 / 2; max-height: 820px; }
.shf-work-item__shot img { width: 100%; height: 100%; object-fit: cover; }
.shf-work-item__block { padding-top: 56px; }
.shf-work-item__block > [class*=col-lg-7] > :first-child { margin-top: 0; }
.shf-work-item__p { line-height: 1.75; margin-bottom: 18px; }
.shf-work-item__list { margin: 0; }
.shf-work-item__list li { font-size: 18px; line-height: 1.6; padding: 10px 0; border-bottom: 1px solid var(--at-neutral-100); }
.shf-work-item__list li::marker { color: var(--at-neutral-500); }
.shf-work-stack__item { padding: 8px 16px; border-radius: 100px; border: 1px solid var(--at-neutral-100); font-size: 15px; font-family: var(--shf-ff); color: var(--at-neutral-900); }
/* Arabic pages do not load Inter: their Latin names are set in the page font (as css/about.css does) */
[dir=rtl] .shf-work-stack__item { font-family: inherit; }

/* ---- project page: more work (portfolio-details-1 section 2) */
.shf-work-more { padding: 72px 0 84px; }
.shf-work-more__title { font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; }

@media (max-width: 991.98px) {
  .shf-work-label { position: static; margin-bottom: 8px; }
  .shf-work-item__block { padding-top: 40px; }
  .shf-work-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shf-work-stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .shf-work-stat:nth-child(n+3) { border-top: 1px solid var(--at-neutral-100); }
  .shf-work-stat { padding-bottom: 22px; }
}
@media (max-width: 767.98px) {
  .shf-work { padding: 56px 0 64px; }
  .shf-work__head { padding-bottom: 32px; }
  .shf-work-stats { margin-top: 40px; }
  .shf-work-stat { padding: 20px 14px 18px; }
  .shf-work-stat__label { font-size: 13.5px; }
  /* the dozen chips scroll sideways on a phone instead of stacking five rows deep */
  .shf-work-filter { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; margin: 0 -16px 28px;
    padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .shf-work-filter::-webkit-scrollbar { display: none; }
  .shf-work-chip { flex: none; font-size: 14px; padding: 9px 15px; }
  .shf-work-cta { padding: 44px 0; }
  .shf-work-item { padding: 48px 0 60px; }
  .shf-work-item__shot { margin: 40px 0 8px; border-radius: 16px; }
  .shf-work-item__list li { font-size: 16px; }
  .shf-work-more { padding: 48px 0 56px; }
}

/* ======================================================================================================================
   System pages (/work/<system>/, pages/_systems.py): the project page's head, then one rounded panel a chapter (the
   label card beside the heading), portfolio-details-4's steps and stats, the screens in frames, the architecture SVG,
   the data model and API in monospace, the delivery timeline. Neutral palette: colour only inside the product screens.
   ====================================================================================================================== */
.shf-page-system { --shf-mono: var(--shf-ff); --shf-latin: var(--shf-ff); }   /* Tajarib everywhere (site.css) */
/* Inter is loaded on English pages only: on Arabic pages the Latin labels use the page font's Latin (Thmanyah) */
html[lang=ar] .shf-page-system { --shf-latin: var(--at-ff-body); }

/* ---- head: crumbs, tags, the first screen */
.shf-sys-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: 24px; font-size: 14px; font-weight: 600; color: var(--at-neutral-500); }
[dir=rtl] .shf-sys-crumbs { letter-spacing: 0; }
.shf-sys-crumbs a { color: var(--at-neutral-500); }
.shf-sys-crumbs a:hover, .shf-sys-crumbs [aria-current] { color: var(--at-neutral-900); }
.shf-sys-crumbs span[aria-hidden] { margin: 0 10px; color: var(--at-neutral-300); }
.shf-sys-tags { margin-top: 24px !important; }
.shf-sys-tag { font-size: 13px; line-height: 1.5; padding: 7px 16px; }
[dir=rtl] .shf-sys-tag { letter-spacing: 0; }
.shf-sys-tag--kind { background: var(--at-neutral-900) !important; color: var(--at-neutral-0) !important; }
.shf-sys-hero { margin: 64px 0 0; }

/* ---- screens: browser and phone frames (neutral), the picture inside, the caption as text */
.shf-sys-shot { margin: 0; }
.shf-sys-shot__img { display: block; width: 100%; height: auto; }
.shf-sys-browser { overflow: hidden; border-radius: 18px; border: 1px solid var(--at-neutral-100); background: var(--at-neutral-0);
  box-shadow: 0 34px 70px -42px rgba(15, 15, 15, .45), 0 2px 6px rgba(15, 15, 15, .05); }
.shf-sys-browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding-inline: 14px; direction: ltr;
  background: var(--at-neutral-50); border-bottom: 1px solid var(--at-neutral-100); }
.shf-sys-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--at-neutral-200); }
.shf-sys-phone { position: relative; padding: 10px; border-radius: 46px; background: #0e1014;
  box-shadow: 0 30px 60px -30px rgba(15, 15, 15, .5), inset 0 0 0 1.5px #2b2f38; }
.shf-sys-phone .shf-sys-shot__img { border-radius: 36px; }
/* the zoom-in's wrapper (main.js anim-zoomin) clips to the screen's rounded corners */
.shf-sys-phone .anim-zoomin-wrap { border-radius: 36px; }
.shf-sys-shot__cap { margin-top: 16px; max-width: 76ch; font-size: 16px; line-height: 1.65; color: var(--at-neutral-900); }
.shf-sys-shots { display: grid; gap: 64px; margin-top: 56px; }
.shf-sys-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 56px; }
.shf-sys-shot--mob { width: 300px; }
.shf-sys-shot--mob .shf-sys-shot__cap { font-size: 15px; }

/* ---- chapters */
.shf-sys-panel { padding: 88px 0 96px; }
.shf-sys-panel .sec-2-home-5__list-item { font-size: 17px; }
/* each chapter is its own panel (overflow hidden): its label stays at the top of the column, beside the heading */
.shf-sys-panel .shf-work-label { position: static; }
.shf-sys-h2 { margin: 0 0 14px; font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; line-height: 1.25; color: var(--at-neutral-900); text-wrap: balance; }
.shf-sys-sub { margin: 0 0 8px; max-width: 60ch; font-size: 18px; line-height: 1.6; color: var(--at-neutral-500); }
.shf-sys-lead { margin: 0; max-width: 36ch; font-size: var(--at-fz-font-2xl, 28px); font-weight: 400; line-height: 1.5; color: var(--at-neutral-900); text-wrap: pretty; }
.shf-sys-panel__main > :first-child { margin-top: 0; }
.shf-sys-h3 { margin: 52px 0 18px; font-size: 22px; font-weight: 600; line-height: 1.35; color: var(--at-neutral-900); }

/* portfolio-details-4 steps (challenge, users, workflow): neutral numbers, our columns at every width */
.shf-sys-steps { margin-top: 32px !important; }
/* a chapter whose label card is its heading (the challenge) starts its list level with the card */
.shf-sys-panel__main > .shf-sys-steps:first-child { margin-top: 0 !important; }
.shf-sys .shf-sys-step { align-items: baseline; padding: 20px 0; }
.shf-sys .shf-sys-step .sec-2-portfolio-details-4__step-num { color: var(--at-neutral-500); font-variant-numeric: tabular-nums; }
.shf-sys .shf-sys-step .sec-2-portfolio-details-4__step-desc { grid-column: auto; padding: 0; line-height: 1.65; }
.shf-sys .shf-sys-step--text { grid-template-columns: 48px minmax(0, 1fr); }
.shf-sys .shf-sys-step--pair { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.shf-sys .shf-sys-step--flow { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.25fr); }
.shf-sys-step__who { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.shf-sys-who { color: var(--at-neutral-900); }
.shf-sys-mono { font-family: var(--shf-mono); font-size: 13px; color: var(--at-neutral-500); }

/* modules (cards on a hairline) and where the AI works (soft cards) */
.shf-sys-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; margin-top: 52px !important; }
.shf-sys-mod { padding: 24px 0 30px; border-top: 1px solid var(--at-neutral-100); }
.shf-sys-mod__n { font-size: 13px; color: var(--at-neutral-500); font-variant-numeric: tabular-nums; }
.shf-sys-mod__name { margin: 10px 0 8px; font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--at-neutral-900); }
.shf-sys-mod__desc { font-size: 16px; line-height: 1.65; color: var(--at-neutral-500); }
.shf-sys-wide .shf-sys-h3 { margin-top: 40px; }
.shf-sys-ai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shf-sys-ai__item { padding: 24px 26px 26px; border-radius: 20px; background: var(--at-neutral-50); }
.shf-sys-ai__k { display: block; margin-bottom: 10px; font-family: var(--shf-latin); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--at-neutral-500); }
.shf-sys-ai__item p { font-size: 16.5px; line-height: 1.75; color: var(--at-neutral-900); }

/* architecture: the build-time SVG (1200 units wide; text 10.5 units and up). Below 1200px it is drawn 1240px wide, so no
   text is under 10.5px, and scrolls sideways in its box (which starts at the right in Arabic). */
.shf-sys-arch { margin: 48px 0 0; }
.shf-sys-arch__scroll { position: relative; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border-radius: 16px; scrollbar-width: thin; }
.shf-sys-arch__scroll:focus-visible { outline: 2px solid var(--at-neutral-900); outline-offset: 3px; }
.shf-arch { display: block; width: 100%; height: auto; }
.shf-arch text { font-family: var(--at-ff-body); }
.shf-arch .shf-arch__band--0 { fill: var(--at-neutral-50); }
.shf-arch .shf-arch__band--1 { fill: var(--at-neutral-50); fill: color-mix(in srgb, var(--at-neutral-50) 50%, var(--at-neutral-0)); }
.shf-arch .shf-arch__layer { font-size: 13px; font-weight: 600; fill: var(--at-neutral-900); }
/* the lines carry the meaning: a grey between neutral-300 and -500, 3.6:1 on the bands in light mode and 5:1 in dark */
.shf-arch .shf-arch__edge { fill: none; stroke: var(--at-neutral-500); stroke: color-mix(in srgb, var(--at-neutral-500) 60%, var(--at-neutral-300)); stroke-width: 1.4; }
.shf-arch .shf-arch__tip { fill: var(--at-neutral-500); fill: color-mix(in srgb, var(--at-neutral-500) 60%, var(--at-neutral-300)); }
.shf-arch .shf-arch__node { fill: var(--at-neutral-0); stroke: var(--at-neutral-200); stroke-width: 1.3; }
.shf-arch .shf-arch__node--edge { fill: var(--at-neutral-50); }
.shf-arch .shf-arch__node--ext { stroke: var(--at-neutral-300); stroke-dasharray: 5 4; }
.shf-arch .shf-arch__node--ai { stroke: var(--at-neutral-900); }
.shf-arch .shf-arch__bar, .shf-arch .shf-arch__dot { fill: var(--at-neutral-900); }
.shf-arch .shf-arch__ico { fill: none; stroke: var(--at-neutral-900); stroke-width: 1.4; }
.shf-arch .shf-arch__ring { fill: none; stroke: var(--at-neutral-900); stroke-opacity: .35; }
.shf-arch .shf-arch__lbl { font-family: var(--shf-latin); font-weight: 600; fill: var(--at-neutral-900); }
.shf-arch .shf-arch__sub { fill: var(--at-neutral-500); }
.shf-arch .shf-arch__pill { fill: var(--at-neutral-0); stroke: var(--at-neutral-200); }
.shf-arch .shf-arch__elab { font-family: var(--shf-mono); font-size: 10.5px; fill: var(--at-neutral-900); }
.shf-arch .shf-arch__badge { fill: var(--at-neutral-900); }
.shf-arch .shf-arch__bnum { font-family: var(--shf-latin); font-size: 10.5px; font-weight: 600; fill: var(--at-neutral-0); }
/* the numbered badges' connections, under the diagram */
.shf-sys-arch__keys { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px !important; font-size: 14px; line-height: 1.5; color: var(--at-neutral-500); }
.shf-sys-arch__keys li { display: inline-flex; align-items: center; gap: 8px; }
.shf-sys-arch__num { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--at-neutral-900); color: var(--at-neutral-0); font: 600 11px/1 var(--shf-latin); font-variant-numeric: tabular-nums; }
.shf-sys-arch__keys code { font: 500 13px var(--shf-mono); color: var(--at-neutral-900); }
.shf-sys-arch__keys bdi { color: var(--at-neutral-900); }

/* data model (each entity in monospace, left to right; the cards follow the page's direction) and the API example */
.shf-sys-erd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.shf-sys-ent { padding: 18px 18px 12px; border: 1px solid var(--at-neutral-100); border-radius: 16px; background: var(--at-neutral-0); }
.shf-sys-ent__name { margin: 0 0 10px; font-family: var(--shf-mono); font-size: 15px; font-weight: 600; color: var(--at-neutral-900); }
/* a field: its name whole on the left, its type on the right, or on the next line when both do not fit (an enum breaks
   after its commas, <wbr>) */
.shf-sys-ent li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; padding: 6px 0; border-top: 1px solid var(--at-neutral-100);
  font-family: var(--shf-mono); font-size: 12.5px; line-height: 1.45; }
.shf-sys-ent li b { flex: none; font-weight: 500; color: var(--at-neutral-900); white-space: nowrap; }
.shf-sys-ent li span { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; margin-inline-start: auto;
  color: var(--at-neutral-500); text-align: right; overflow-wrap: break-word; }
.shf-sys-ent__tag { font-style: normal; font-size: 10px; line-height: 1.5; padding: 0 6px; border: 1px solid var(--at-neutral-200); border-radius: 100px; color: var(--at-neutral-500); }
.shf-sys-ent__tag.is-key { border-color: var(--at-neutral-900); background: var(--at-neutral-900); color: var(--at-neutral-0); }
.shf-sys-rels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.shf-sys-rels li { padding: 6px 13px; border: 1px solid var(--at-neutral-100); border-radius: 100px; font-family: var(--shf-mono); font-size: 12.5px; color: var(--at-neutral-900); }
.shf-sys-api { margin-top: 48px; padding: 26px; border: 1px solid var(--at-neutral-100); border-radius: 20px; }
.shf-sys-api__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.shf-sys-api__m { padding: 4px 10px; border-radius: 6px; background: var(--at-neutral-900); color: var(--at-neutral-0); font-family: var(--shf-mono); font-size: 12px; font-weight: 600; }
.shf-sys-api__path { font-family: var(--shf-mono); font-size: 16px; color: var(--at-neutral-900); overflow-wrap: anywhere; }
.shf-sys-api__t { font-size: 16px; color: var(--at-neutral-500); }
.shf-sys-api__codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.shf-sys-code { min-width: 0; }
.shf-sys-code--wide { grid-column: 1 / -1; }
.shf-sys-code__label { margin: 0 0 8px; font-size: 14px; color: var(--at-neutral-500); }
.shf-sys-code pre { margin: 0; padding: 16px 18px; border-radius: 14px; background: #121212; color: #d4d4d4; direction: ltr; text-align: left;
  font: 400 12.5px/1.7 var(--shf-mono); white-space: pre; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.shf-sys-code pre code { font: inherit; color: inherit; }
.shf-sys-code .k { color: #fafafa; }
.shf-sys-code .s { color: #b8b8b8; }
.shf-sys-code .n { color: #8f8f8f; }
[data-bs-theme=dark] .shf-sys-code pre { background: #161616; border: 1px solid #262626; }

/* integrations and security */
.shf-sys-ints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; margin-top: 44px !important; }
.shf-sys-int { padding: 20px 0 22px; border-top: 1px solid var(--at-neutral-100); }
.shf-sys-int__name { margin: 0 0 6px; font-family: var(--shf-latin); font-size: 18px; font-weight: 600; color: var(--at-neutral-900); }
.shf-sys-int__desc { font-size: 16px; line-height: 1.6; color: var(--at-neutral-500); }
.shf-sys-sec { margin-top: 28px !important; }
.shf-sys-sec__item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--at-neutral-100); font-size: 17px; line-height: 1.65; color: var(--at-neutral-900); }
.shf-sys-sec__item:last-child { border-bottom: 1px solid var(--at-neutral-100); }
.shf-sys-sec__item svg { flex: none; margin-top: 4px; color: var(--at-neutral-900); }

/* delivery: one row a phase, its bar on the shared week track (starts at the right in Arabic) */
.shf-sys-plan { margin-top: 52px !important; border-top: 1px solid var(--at-neutral-100); }
.shf-sys-plan__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 14px 48px; padding: 24px 0; border-bottom: 1px solid var(--at-neutral-100); }
.shf-sys-plan__copy { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; }
.shf-sys-plan__n { grid-row: span 2; padding-top: 3px; font-size: 14px; color: var(--at-neutral-500); font-variant-numeric: tabular-nums; }
.shf-sys-plan__name { margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--at-neutral-900); }
.shf-sys-plan__items li { font-size: 15px; line-height: 1.6; color: var(--at-neutral-500); }
.shf-sys-plan__time { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.shf-sys-plan__weeks { font-size: 14px; font-weight: 600; color: var(--at-neutral-900); }
.shf-sys-plan__track { position: relative; display: block; height: 12px; border-radius: 12px; background-color: var(--at-neutral-50);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--wk) - 2px), var(--at-neutral-0) calc(var(--wk) - 2px) var(--wk)); }
.shf-sys-plan__track i { position: absolute; top: 0; bottom: 0; border-radius: 12px; background: var(--at-neutral-900); }
.shf-sys-plan__foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; margin: 28px 0 0; }
.shf-sys-plan__foot dt { font-size: 14px; font-weight: 400; color: var(--at-neutral-500); }
.shf-sys-plan__foot dd { margin: 4px 0 0; font-size: 17px; line-height: 1.65; color: var(--at-neutral-900); }
.shf-sys-targets { margin-top: 60px; }
.shf-sys .shf-sys-targets__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.shf-sys .shf-sys-target .sec-2-portfolio-details-4__stat-num { font-size: clamp(34px, 3.2vw, 48px); letter-spacing: -.03em; }
.shf-sys .shf-sys-target .sec-2-portfolio-details-4__stat-label { line-height: 1.55; }
/* Arabic: a time in words, «أقل من» set small before the figure (all the figures keep one baseline); no negative
   tracking on Arabic letters */
[dir=rtl] .shf-sys .shf-sys-target .sec-2-portfolio-details-4__stat-num { letter-spacing: 0; line-height: 1.15 !important; }
[dir=rtl] .shf-sys .shf-sys-target .sec-2-portfolio-details-4__stat-num > [dir=ltr] { letter-spacing: -.03em; }
.shf-sys-target__op { margin-inline-end: .3em; font-size: .42em; font-weight: 500; letter-spacing: 0; color: var(--at-neutral-500); }

@media (max-width: 1199.98px) {
  .shf-sys-erd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shf-arch { width: 1240px; max-width: none; }
}
@media (max-width: 991.98px) {
  .shf-sys-panel { padding: 64px 0 72px; }
  .shf-sys-h2 { margin-top: 18px; }
  .shf-sys-panel__main > .shf-sys-steps:first-child { margin-top: 16px !important; }
  .shf-sys-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shf-sys-erd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shf-sys .shf-sys-targets__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .shf-sys-crumbs { margin-bottom: 18px; font-size: 13px; }
  .shf-sys-hero { margin-top: 40px; }
  .shf-sys-browser { border-radius: 12px; }
  .shf-sys-browser__bar { height: 24px; gap: 5px; padding-inline: 10px; }
  .shf-sys-browser__bar i { width: 7px; height: 7px; }
  .shf-sys-shot__cap { font-size: 15px; }
  .shf-sys-shots { gap: 44px; margin-top: 40px; }
  .shf-sys-phones { gap: 40px; }
  .shf-sys-shot--mob { width: min(280px, 78vw); }
  .shf-sys-panel { padding: 48px 0 56px; }
  .shf-sys-sub { font-size: 16.5px; }
  .shf-sys-lead { margin-top: 16px; font-size: 22px; }
  .shf-sys-h3 { margin-top: 40px; font-size: 20px; }
  .shf-sys .shf-sys-step--text { grid-template-columns: 36px minmax(0, 1fr); }
  .shf-sys .shf-sys-step--pair { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .shf-sys .shf-sys-step--flow { grid-template-columns: 36px minmax(0, 1fr); row-gap: 6px; }
  .shf-sys .shf-sys-step--flow .sec-2-portfolio-details-4__step-desc { grid-column: 2; }
  .shf-sys-mods, .shf-sys-ai, .shf-sys-ints, .shf-sys-api__codes, .shf-sys-plan__row, .shf-sys-plan__foot { grid-template-columns: minmax(0, 1fr); }
  /* the entities slide sideways on a phone (one card and the edge of the next) instead of a long column */
  .shf-sys-erd { display: flex; gap: 12px; margin: 36px -16px 0; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .shf-sys-erd::-webkit-scrollbar { display: none; }
  .shf-sys-ent { flex: 0 0 82%; scroll-snap-align: start; }
  .shf-sys-mods { margin-top: 36px !important; }
  .shf-sys-ai__item { padding: 20px; }
  .shf-sys-api { padding: 18px; }
  .shf-sys-code pre { font-size: 12px; }
  .shf-sys-plan__row { padding: 20px 0; }
  .shf-sys-plan__time { padding-inline-start: 48px; }
  .shf-sys .shf-sys-targets__list { gap: 20px 16px; }
}
