/* Arabic & RTL preview (overview-ar.html). The page itself is the normal English docs page;
   only the demos inside [dir="rtl"] are Arabic. Everything is scoped to .arx so the docs styles
   are untouched. Light and dark values are both set here. */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 500;
  font-display: swap;
  src: url('../../assets/fonts/plex-arabic-500.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 600;
  font-display: swap;
  src: url('../../assets/fonts/plex-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 700;
  font-display: swap;
  src: url('../../assets/fonts/plex-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41;
}

.arx {
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-soft: #eff6ff;
  --bg: #f8faff;
  --card: #ffffff;
  --soft: #f2f5fb;
  --line: #e6ebf4;
  --line-2: #d0d5dd;
  --ink: #101828;
  --ink-2: #475467;
  --mut: #667085;
  --ok: #12b76a;
  --ok-bg: #ecfdf3;
  --ok-ink: #067647;
  --warn: #f79009;
  --warn-bg: #fffaeb;
  --warn-ink: #b54708;
  --err: #f04438;
  --err-bg: #fef3f2;
  --err-ink: #b42318;
  --sh: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -14px rgba(30, 50, 110, 0.25);
  --r: 12px;
  --ar-font: 'IBM Plex Sans Arabic', 'Poppins', system-ui, sans-serif;
}
html[data-px-theme='dark'] .arx {
  --brand: #3b82f6;
  --brand-2: #60a5fa;
  --brand-soft: #172340;
  --bg: #0d1220;
  --card: #141b2a;
  --soft: #1b2335;
  --line: #253048;
  --line-2: #334058;
  --ink: #eef2f8;
  --ink-2: #b4bccd;
  --mut: #8c98ae;
  --ok-bg: #0f2a1f;
  --ok-ink: #6ce9a6;
  --warn-bg: #2d2010;
  --warn-ink: #fdb022;
  --err-bg: #2f1517;
  --err-ink: #fda29b;
  --sh: 0 10px 28px -16px rgba(0, 0, 0, 0.7);
}
.arx [lang='ar'] {
  font-family: var(--ar-font);
  line-height: 1.7;
}
.arx h3,
.arx p,
.arx ol,
.arx ul,
.arx pre {
  margin: 0;
  padding: 0;
}
.arx ol,
.arx ul {
  list-style: none;
}
.arx a {
  color: inherit;
  text-decoration: none;
}
.arx button,
.arx input,
.arx select {
  font: inherit;
  color: inherit;
}
.arx code,
.arx pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.arx svg:not(.dp-ico) {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* directional icons are drawn pointing right and turned around in right-to-left demos */
.arx [dir='rtl'] .ar-flip {
  transform: scaleX(-1);
}
.arx .ar-mut {
  color: var(--mut);
}

.arx .ar-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--mut);
  white-space: nowrap;
}

.arx .ar-crumbs b {
  color: var(--ink);
  font-weight: 500;
}

.arx .ar-crumbs a:hover {
  color: var(--brand);
}

.arx /* breadcrumb chevrons point "forward",
.arx which is left in Arabic */
[dir='rtl'] .ar-crumbs .ar-dir {
  transform: scaleX(-1);
}

.arx .ar-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.arx .ar-seg button,
.arx .ar-seg a,
.arx .ar-seg span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-inline: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 12.5px;
  color: var(--mut);
  cursor: pointer;
}

.arx .ar-seg [aria-pressed='true'],
.arx .ar-seg [aria-current] {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.arx .ar-seg a {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 500;
}

.arx .ar-seg a:hover {
  color: var(--brand);
}

.arx /* typing specimen */
.ar-type {
  flex: none;
  width: min(330px, 40%);
}

.arx .ar-type__card {
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}

.arx .ar-type__bar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.arx .ar-type__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-2);
}

.arx .ar-type__bar span {
  margin-inline-start: auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font:
    600 11px/18px 'Poppins',
    sans-serif;
}

.arx .ar-type__big {
  margin-top: 6px;
  font-size: 64px;
  line-height: 1.4;
  font-weight: 700;
  background: linear-gradient(270deg, #60a5fa, #2563eb 60%, #1e40af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arx .ar-type__line {
  display: flex;
  align-items: center;
  min-height: 30px;
  font-size: 18px;
  font-weight: 500;
}

.arx .ar-caret {
  width: 2px;
  height: 22px;
  margin-inline-start: 2px;
  background: var(--brand);
  animation: ar-blink 1s steps(1) infinite;
}

@keyframes ar-blink {
  50% {
    opacity: 0;
  }
}

.arx .ar-type__dir {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--mut);
}

.arx .ar-type__dir svg {
  font-size: 16px;
  color: var(--brand);
  transform: scaleX(-1); /* text runs from right to left */
  animation: ar-nudge 1.6s ease-in-out infinite;
}

@keyframes ar-nudge {
  50% {
    translate: -4px 0;
  }
}

.arx .ar-stat__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 19px;
}

.arx .ar-tone--blue {
  background: #eff6ff;
  color: #2563eb;
}

.arx .ar-tone--sky {
  background: #e0f2fe;
  color: #0284c7;
}

.arx .ar-tone--green {
  background: #ecfdf3;
  color: #079455;
}

.arx .ar-tone--amber {
  background: #fffaeb;
  color: #dc6803;
}

html[data-px-theme='dark'] .arx .ar-tone--blue {
  background: #172340;
  color: #60a5fa;
}

html[data-px-theme='dark'] .arx .ar-tone--sky {
  background: #0c2536;
  color: #38bdf8;
}

html[data-px-theme='dark'] .arx .ar-tone--green {
  background: #0f2a1f;
  color: #47cd89;
}

html[data-px-theme='dark'] .arx .ar-tone--amber {
  background: #2d2010;
  color: #fdb022;
}

.arx /* ================= sections ================= */
.ar-sec {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arx .ar-sec__head h2 {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
}

.arx .ar-sec__head p {
  max-width: 640px;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.arx .ar-card {
  padding: 20px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}

.arx .ar-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
}

.arx .ar-note,
.arx .ar-hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--mut);
}

.arx .ar-hint {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.arx /* foundations */
.ar-found {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.arx .ar-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.arx .ar-sw {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.arx .ar-sw i {
  height: 52px;
  margin-bottom: 6px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.arx .ar-sw b {
  font-size: 13.5px;
  font-weight: 600;
}

.arx .ar-sw code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: end;
  font-size: 10.5px;
  color: var(--mut);
}

.arx .ar-scale {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.arx .ar-scale__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.arx .ar-scale__row:last-child {
  border-bottom: 0;
}

.arx .ar-scale__row code,
.arx .ar-space code,
.arx .ar-radius code {
  flex: none;
  direction: ltr;
  color: var(--mut);
  font-size: 11px;
}

.arx .ar-space {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.arx .ar-space div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arx .ar-space i {
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(270deg, #2563eb, #60a5fa);
}

.arx .ar-radius {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.arx .ar-radius div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arx .ar-radius i {
  width: 56px;
  height: 56px;
  background: var(--brand-soft);
  border: 2px solid var(--brand);
}

.arx .ar-shadows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.arx .ar-shadows span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 10px;
  background: var(--card);
  font-size: 13px;
  color: var(--ink-2);
}

.arx .ar-sh1 {
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.arx .ar-sh2 {
  box-shadow: 0 8px 18px -6px rgba(16, 24, 40, 0.18);
}

.arx .ar-sh3 {
  box-shadow: 0 22px 40px -14px rgba(16, 24, 40, 0.3);
}

html[data-px-theme='dark'] .arx .ar-shadows span {
  background: var(--soft);
}

.arx /* components grid */
.ar-comps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.arx .ar-comp--wide {
  grid-column: 1 / -1;
}

.arx .ar-demo {
  margin-top: 14px;
}

.arx .ar-wrap,
.arx .ar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.arx .ar-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arx /* buttons */
.ar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  border-radius: 9px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}

.arx .ar-btn svg {
  font-size: 17px;
}

.arx .ar-btn:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.arx .ar-btn:active {
  transform: translateY(1px);
}

.arx .ar-btn--soft {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
  color: var(--brand);
}

.arx .ar-btn--soft:hover {
  background: color-mix(in srgb, var(--brand) 16%, var(--card));
  border-color: transparent;
}

.arx .ar-btn--line {
  background: var(--card);
  border-color: var(--line-2);
  color: var(--ink);
}

.arx .ar-btn--line:hover {
  background: var(--soft);
  border-color: var(--line-2);
}

.arx .ar-btn--text {
  background: transparent;
  border-color: transparent;
  color: var(--brand);
}

.arx .ar-btn--text:hover {
  background: var(--brand-soft);
  border-color: transparent;
}

.arx .ar-btn--danger {
  background: #d92d20;
  border-color: #d92d20;
}

.arx .ar-btn--danger:hover {
  background: #b42318;
  border-color: #b42318;
}

.arx .ar-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.arx .ar-btn--block {
  width: 100%;
}

.arx /* the "previous" arrow points right (back) in Arabic */
.ar-btn > .ar-dir:not(.ar-flip) {
  transform: scaleX(1);
}

.arx /* fields */
.ar-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.arx .ar-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
  font-size: 13px;
}

.arx .ar-field > span:first-child {
  font-weight: 500;
}

.arx .ar-field small {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mut);
}

.arx .ar-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-inline: 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--mut);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.arx .ar-input svg {
  font-size: 17px;
}

.arx .ar-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.arx .ar-input input,
.arx .ar-input select {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.arx .ar-input input::placeholder {
  color: var(--mut);
}

.arx /* an email typed in Arabic UI still reads left-to-right,
.arx aligned to the start of the field */
.ar-input input[dir='ltr'] {
  text-align: right;
}

.arx .ar-select select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.arx .ar-field--err .ar-input {
  border-color: var(--err);
}

.arx .ar-field--err small {
  color: var(--err-ink);
}

.arx .ar-search {
  grid-column: 1 / -1;
  align-self: end;
}

.arx .ar-form > .ar-search {
  grid-column: auto;
  margin-top: auto;
}

.arx /* switches,
.arx checks,
.arx radios */
.ar-switch,
.arx .ar-check,
.arx .ar-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.arx .ar-switch input,
.arx .ar-check input,
.arx .ar-radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.arx .ar-switch i {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background-color 0.2s;
}

.arx .ar-switch i::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.25);
  transition: inset-inline-start 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.arx .ar-switch input:checked + i {
  background: var(--brand);
}

.arx .ar-switch input:checked + i::after {
  inset-inline-start: 19px;
}

.arx .ar-check i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  color: transparent;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.arx .ar-check i svg {
  font-size: 13px;
  stroke-width: 3;
}

.arx .ar-check input:checked + i {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.arx .ar-radios {
  display: flex;
  gap: 20px;
}

.arx .ar-radio i {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  transition: border 0.15s;
}

.arx .ar-radio input:checked + i {
  border: 6px solid var(--brand);
}

.arx .ar-switch input:focus-visible + i,
.arx .ar-check input:focus-visible + i,
.arx .ar-radio input:focus-visible + i {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.arx /* tabs */
.ar-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.arx .ar-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding-inline: 12px;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--mut);
  cursor: pointer;
}

.arx .ar-tabs button[aria-selected='true'] {
  color: var(--brand);
  font-weight: 600;
}

.arx .ar-tabs em {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 11.5px;
  font-style: normal;
  line-height: 18px;
  color: var(--ink-2);
}

.arx .ar-tabs button[aria-selected='true'] em {
  background: var(--brand-soft);
  color: var(--brand);
}

.arx .ar-tabs__ink {
  position: absolute;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition:
    left 0.3s cubic-bezier(0.65, 0, 0.35, 1),
    width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.arx .ar-tabs__panel {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.arx .ar-crumbs--demo {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--soft);
}

.arx /* alerts */
.ar-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border-inline-start: 3px solid;
  font-size: 13.5px;
  line-height: 1.6;
}

.arx .ar-alert svg {
  font-size: 18px;
  margin-top: 2px;
}

.arx .ar-alert div {
  display: flex;
  flex-direction: column;
}

.arx .ar-alert b {
  font-weight: 600;
}

.arx .ar-alert--ok {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: var(--ok-ink);
}

.arx .ar-alert--warn {
  background: var(--warn-bg);
  border-color: var(--warn);
  color: var(--warn-ink);
}

.arx .ar-alert--err {
  background: var(--err-bg);
  border-color: var(--err);
  color: var(--err-ink);
}

.arx /* badges,
.arx avatars,
.arx tooltip */
.ar-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.arx .ar-badge--green {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.arx .ar-badge--amber {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.arx .ar-badge--red {
  background: var(--err-bg);
  color: var(--err-ink);
}

.arx .ar-avs {
  display: inline-flex;
}

.arx .ar-avs i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-inline-end: -8px;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: linear-gradient(135deg, #93c5fd, #2563eb);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.arx .ar-avs i:nth-child(2) {
  background: linear-gradient(135deg, #fda4af, #e11d48);
}

.arx .ar-avs i:nth-child(3) {
  background: linear-gradient(135deg, #86efac, #059669);
}

.arx .ar-avs .ar-avs__more {
  background: var(--soft);
  color: var(--ink-2);
  font-size: 11.5px;
}

.arx .ar-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  translate: -50% 4px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #101828;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    translate 0.15s;
}

.arx .ar-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #101828;
}

.arx .ar-tipbtn:hover .ar-tip,
.arx .ar-tipbtn:focus-visible .ar-tip {
  opacity: 1;
  translate: -50% 0;
}

.arx .ar-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 16px 30px -12px rgba(16, 24, 40, 0.5);
  opacity: 0;
  translate: -50% 12px;
  pointer-events: none;
  transition:
    opacity 0.25s,
    translate 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.arx .ar-toast svg {
  color: #6ce9a6;
  stroke-width: 2.6;
}

.arx .ar-toast.is-on {
  opacity: 1;
  translate: -50% 0;
}

.arx /* card */
.ar-mcard {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.arx .ar-mcard__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arx .ar-mcard__head div {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.5;
}

.arx .ar-mcard__head b {
  font-size: 14.5px;
  font-weight: 600;
}

.arx .ar-mcard__head small {
  font-size: 12px;
  color: var(--mut);
}

.arx .ar-progress {
  height: 8px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.arx .ar-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(270deg, #60a5fa, #2563eb);
  animation: ar-fill 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes ar-fill {
  from {
    width: 0;
  }
}

.arx .ar-mcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
}

.arx .ar-mcard__foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 500;
}

.arx /* table + pagination */
.ar-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.arx .ar-tr {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.arx .ar-tr--h {
  border-top: 0;
  background: var(--soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mut);
}

.arx .ar-amt {
  font-weight: 600;
}

.arx .ar-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13.5px;
}

.arx .ar-pages > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--card);
}

.arx .ar-pages span {
  display: flex;
  gap: 4px;
}

.arx .ar-pages span a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--ink-2);
}

.arx .ar-pages span a[aria-current] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.arx /* stepper */
.ar-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.arx .ar-steps::before {
  content: '';
  position: absolute;
  inset-inline: 16px;
  top: 15px;
  height: 2px;
  background: linear-gradient(270deg, var(--brand) 50%, var(--line) 50%);
}

.arx .ar-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mut);
}

.arx .ar-steps i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line-2);
  font-style: normal;
  font-weight: 600;
}

.arx .ar-steps .is-done i {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.arx .ar-steps .is-done i svg {
  stroke-width: 3;
}

.arx .ar-steps .is-on {
  color: var(--ink);
  font-weight: 600;
}

.arx .ar-steps .is-on i {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.arx /* modal */
.ar-modal {
  padding: 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgba(16, 24, 40, 0.45);
}

.arx .ar-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}

.arx .ar-modal__head svg {
  color: var(--mut);
}

.arx .ar-modal p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.arx .ar-modal__foot {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.arx /* patterns */
.ar-pats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.arx .ar-pat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.arx .ar-login__t {
  font-size: 18px;
  font-weight: 700;
}

.arx .ar-login small {
  margin-top: -10px;
}

.arx .ar-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.arx .ar-login__row .ar-check {
  font-size: 13px;
}

.arx .ar-login__row a {
  color: var(--brand);
}

.arx .ar-empty {
  align-items: center;
  text-align: center;
  padding: 20px 10px;
}

.arx .ar-empty__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 26px;
}

.arx .ar-empty b {
  font-size: 16px;
}

.arx .ar-empty small {
  margin-top: -8px;
  font-size: 13px;
  line-height: 1.6;
}

.arx .ar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arx .ar-chips button {
  height: 30px;
  padding-inline: 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.arx .ar-chips .is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.arx .ar-list {
  display: flex;
  flex-direction: column;
}

.arx .ar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.arx .ar-list li div {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.5;
}

.arx .ar-list b {
  font-size: 13.5px;
  font-weight: 600;
}

.arx .ar-list small {
  font-size: 12px;
  color: var(--mut);
}

.arx .ar-list .ar-avs i {
  margin: 0;
}

.arx /* icons */
.ar-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.arx .ar-dotc {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.arx .ar-dotc--blue {
  background: var(--brand);
}

.arx .ar-dotc--gray {
  background: var(--mut);
}

.arx .ar-icgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.arx .ar-icgrid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 10px;
  background: var(--soft);
  text-align: center;
}

.arx .ar-icgrid small {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-2);
}

.arx .ar-icpair {
  display: flex;
  gap: 8px;
  font-size: 20px;
}

.arx .ar-icpair .ar-ltr {
  color: var(--mut);
  opacity: 0.6;
}

.arx .ar-icpair .ar-flip {
  color: var(--brand);
  animation: ar-turn 3.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.arx /* the Arabic copy turns around: from the English direction to the Arabic one,
.arx then holds */
@keyframes ar-turn {
  0%,
  15% {
    transform: scaleX(1);
  }
  35%,
  100% {
    transform: scaleX(-1);
  }
}

.arx .ar-ic1 {
  font-size: 20px;
  color: var(--ink-2);
}

.arx .ar-hint__key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arx .ar-hint__key i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.arx .ar-k1 {
  background: var(--mut);
  opacity: 0.5;
}

.arx .ar-k2 {
  background: var(--brand);
}

.arx /* template */
.ar-tpl {
  padding: 14px;
}

.arx .ar-tpl__win {
  display: flex;
  min-height: 300px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}

.arx .ar-tpl__side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 190px;
  padding: 16px 12px;
  background: var(--card);
  border-inline-end: 1px solid var(--line);
  font-size: 13.5px;
}

.arx .ar-tpl__side b {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 14px;
  font-size: 15px;
}

.arx .ar-tpl__logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.arx .ar-tpl__side a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-inline: 10px;
  border-radius: 7px;
  color: var(--ink-2);
}

.arx .ar-tpl__side a.is-on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.arx .ar-tpl__main {
  flex: 1;
  min-width: 0;
  padding: 18px;
}

.arx .ar-tpl__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.arx .ar-tpl__head div {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.arx .ar-tpl__head b {
  font-size: 18px;
}

.arx .ar-tpl__head small {
  font-size: 12.5px;
}

.arx .ar-tpl__head .ar-btn {
  height: 36px;
  font-size: 13px;
}

.arx .ar-tpl__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.arx .ar-tpl__stats div {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  line-height: 1.5;
}

.arx .ar-tpl__stats small {
  font-size: 12px;
  color: var(--mut);
}

.arx .ar-tpl__stats b {
  font-size: 19px;
}

.arx .ar-up,
.arx .ar-down {
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.arx .ar-up {
  color: var(--ok);
}

.arx .ar-down {
  color: var(--err);
}

.arx .ar-tpl__chart {
  margin-top: 12px;
  padding: 14px 14px 8px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
}

.arx .ar-tpl__bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 90px;
}

.arx .ar-tpl__bars i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: color-mix(in srgb, #2563eb 30%, var(--card));
  animation: ar-grow 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.arx .ar-tpl__bars i:nth-child(6) {
  background: #2563eb;
}

@keyframes ar-grow {
  from {
    height: 6%;
  }
}

.arx .ar-tpl__days {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.arx .ar-tpl__days span {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  color: var(--mut);
}

.arx /* guidelines */
.ar-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.arx .ar-rule {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arx .ar-rule__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.arx .ar-rule p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.arx .ar-rule pre {
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #cbd5e1;
  line-height: 1.7;
  text-align: left;
  overflow-x: auto;
}

.arx .ar-rule p code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--soft);
}

.arx .ar-dd {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  font-size: 13.5px;
}

.arx .ar-dd span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
}

.arx .ar-dd svg {
  stroke-width: 2.6;
}

.arx .ar-dd__ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.arx .ar-dd__no {
  background: var(--err-bg);
  color: var(--err-ink);
}

.arx .ar-spaced {
  letter-spacing: 0.25em;
}

.arx .ar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mut);
}

.arx .ar-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 500;
}

.arx /* ================= page pieces (English chrome) ================= */
.arx .ar-type {
  position: absolute;
  right: 32px;
  top: 50%;
  z-index: 1;
  width: min(320px, 38%);
  transform: translateY(-50%);
}

.arx .ar-sec__head h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--color-content-primary, var(--ink));
}

.arx .ar-sec__head p {
  font-size: 13.5px;
  line-height: 21px;
}

.arx .ar-card > .ar-desc {
  margin-top: 2px;
  font-size: 13px;
  line-height: 20px;
  color: var(--mut);
}

.arx .ar-demo[dir='rtl'],
.arx .ar-pat[dir='rtl'] {
  font-size: 14px;
}

.arx .ar-sec {
  margin-top: 40px;
}

.arx /* rail */
.arx .ar-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.arx .ar-toc a {
  display: flex;
  align-items: center;
  height: 30px;
  padding-inline: 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-2);
}

.arx .ar-toc a:hover {
  background: var(--soft);
  color: var(--ink);
}

.arx .ar-toc a.is-on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
}

.arx .ar-set {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--mut);
}

.arx .ar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
}

.arx .ar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 1180px) {
  .arx .ar-rules,
  .arx .ar-pats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .arx .ar-comps,
  .arx .ar-icons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .arx .ar-rules,
  .arx .ar-pats,
  .arx .ar-form {
    grid-template-columns: 1fr;
  }
  .arx .ar-tpl__side {
    display: none;
  }
  .arx .ar-tr {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .arx .ar-tr > :nth-child(2) {
    display: none;
  }
  .arx .ar-icgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .arx *,
  .arx *::before,
  .arx *::after {
    animation: none !important;
    transition: none !important;
  }
}
.arx .ar-flip-ltr {
  transform: scaleX(-1);
}
@container (max-width: 720px) {
  .arx .ar-type {
    display: none;
  }
}
