/* MAMS in full, Arabic twin (/ar/mams/info). Loaded ONLY by the Arabic page, from the head, so it sits before
   info.css in source order: every rule starts with [dir="rtl"] to win on specificity instead.
   info.css is written with physical left/right (it is shared with the English page and is not edited),
   so this file mirrors what needs mirroring and makes Arabic type readable (no letter-spacing, taller lines,
   bigger small labels). Added 2026-12-01. */

/* ---- Arabic type: no tracking, no caps, taller lines, labels big enough to read ---- */
[dir="rtl"] .mi :is(.mi__index, .mi__index-label, .mi__save, .msheet__head, .msheet__foot, .msheet__small, .cover__stats span, .estats span,
  .mwall span, .contents__label, .agent__brain, .agent__flag, .agent__mono, .use__tag, .use__go, .voice__tag, .brain__meta, .tile__tag,
  .vault__label, .vstats span, .fdr__stats span, .fdr__label, .days span, .pay b, .made__link, .ladder__label, .uses__more span, .steps4 span, .brain__n) {
  letter-spacing: 0; text-transform: none; }
[dir="rtl"] .msheet__head, [dir="rtl"] .msheet__foot { font-size: .8rem; }
[dir="rtl"] .mi__index { font-size: .86rem; }
[dir="rtl"] .mi__index-label, [dir="rtl"] .contents__label, [dir="rtl"] .ladder__label, [dir="rtl"] .fdr__label, [dir="rtl"] .vault__label { font-size: .82rem; }
[dir="rtl"] .mi__save { font-size: .84rem; }
[dir="rtl"] .msheet__small { font-size: .84rem; line-height: 1.8; }
[dir="rtl"] :is(.cover__stats span, .estats span, .mwall span, .vstats span, .fdr__stats span, .days span, .pay b, .brain__meta, .tile__tag, .made__link, .uses__more span, .use__go) { font-size: .8rem; line-height: 1.5; }
[dir="rtl"] :is(.agent__brain, .agent__flag, .use__tag, .voice__tag, .agent__mono) { font-size: .76rem; }
[dir="rtl"] .agent__mono { letter-spacing: .08em; }   /* the two-letter Latin monograms CD, VR... keep a little air */
[dir="rtl"] .agent__line, [dir="rtl"] .tile__line, [dir="rtl"] .steps4 p, [dir="rtl"] .days p, [dir="rtl"] .flow p, [dir="rtl"] .loop p { font-size: .9rem; line-height: 1.75; }
[dir="rtl"] .use p, [dir="rtl"] .brain p, [dir="rtl"] .facts span, [dir="rtl"] .extras span, [dir="rtl"] .pay span, [dir="rtl"] .fdr__path li { font-size: .95rem; line-height: 1.8; }
[dir="rtl"] .msheet h3 { line-height: 1.4; }
[dir="rtl"] .once__big { line-height: 1.45; }
[dir="rtl"] .callout { line-height: 1.7; }
[dir="rtl"] .cover__title { max-width: 16ch; }
[dir="rtl"] .mi .display--md { max-width: 24ch; }
[dir="rtl"] .estats b, [dir="rtl"] .tile__n { line-height: 1.1; }

/* a number with a plus sign keeps its order (5 + 1, 300+, 40+) */
[dir="rtl"] .cover__stats li:first-child b, [dir="rtl"] .fdr__stats b { direction: ltr; unicode-bidi: isolate; text-align: right; }

/* ---- the page index (sticky list): the rule sits on the right now ---- */
[dir="rtl"] .mi__index ol { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .mi__index a { border-left: 0; margin-left: 0; border-right: 2px solid transparent; margin-right: -1px; }
[dir="rtl"] .mi__index a[aria-current="true"] { border-right-color: var(--blue); }
[dir="rtl"] .mi__index a.is-ember[aria-current="true"] { border-right-color: var(--ember); }

/* ---- lists, callout, hover nudge ---- */
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 1.5rem; }
[dir="rtl"] .ticks li::before { left: auto; right: 0; }
[dir="rtl"] .callout { border-left: 0; border-right: 3px solid; }
[dir="rtl"] .contents__list a:hover { padding-left: 0; padding-right: .3rem; }

/* ---- decorative corners and glows move to the other side ---- */
[dir="rtl"] .msheet--cover { background: radial-gradient(60rem 40rem at 15% -10%, rgba(122, 108, 240, .22), transparent 60%), radial-gradient(40rem 30rem at 110% 110%, rgba(54, 224, 208, .14), transparent 60%), linear-gradient(180deg, #0b1017, #05070b); }
[dir="rtl"] .msheet--cover::after { right: auto; left: -12rem; }
[dir="rtl"] .msheet--ember { background: radial-gradient(50rem 32rem at 0% -10%, rgba(255, 122, 69, .22), transparent 60%), radial-gradient(30rem 24rem at 110% 100%, rgba(255, 179, 71, .1), transparent 60%), linear-gradient(180deg, #120c0a, #08070a); }
[dir="rtl"] .brain::after { right: auto; left: -3rem; }
[dir="rtl"] .tile { background: radial-gradient(18rem 10rem at 0% 0%, color-mix(in srgb, var(--c2) 22%, transparent), transparent 70%), linear-gradient(170deg, rgba(255, 255, 255, .04), rgba(2, 3, 5, .3)); }

/* ---- cards: text starts on the right, flags and big numerals sit on the left ---- */
[dir="rtl"] .agent, [dir="rtl"] .tile, [dir="rtl"] .ladder__steps button { text-align: right; }
[dir="rtl"] .agent__flag { right: auto; left: .8rem; }
[dir="rtl"] .use__n { right: auto; left: 1.3rem; }
[dir="rtl"] .use__go::after { content: " \2190"; }
[dir="rtl"] .made__link::after { content: " \2190"; }

/* ---- step flows: the little connector between boxes points the other way ---- */
[dir="rtl"] .flow li::after, [dir="rtl"] .loop li::after { right: auto; left: -.62rem; }

/* ---- bar charts grow from the right edge; the count sits at the far (left) end ---- */
[dir="rtl"] .fam b { text-align: left; }
[dir="rtl"] .js .mpanel.is-on .fam i { transform-origin: 100% 50%; }

/* ---- deal sheet ---- */
[dir="rtl"] .days, [dir="rtl"] .pay { text-align: right; }

/* ---- the tile animations that were anchored to the left edge are mirrored ---- */
[dir="rtl"] .fx-hooks i { left: auto; right: 0; transform-origin: 100% 100%; }
[dir="rtl"] .fx-hooks i:nth-child(1) { --r: 9deg; --x: 0; }
[dir="rtl"] .fx-hooks i:nth-child(2) { --r: 2deg; --x: -2.4rem; }
[dir="rtl"] .fx-hooks i:nth-child(3) { --r: -6deg; --x: -4.8rem; }
[dir="rtl"] .fx-frames i:nth-child(1) { left: auto; right: 0; --r: 8deg; }
[dir="rtl"] .fx-frames i:nth-child(2) { left: auto; right: 2.2rem; --r: 0deg; }
[dir="rtl"] .fx-frames i:nth-child(3) { left: auto; right: 4.4rem; --r: -8deg; }
@media (max-width: 600px) {
  [dir="rtl"] .fx-hooks i:nth-child(2) { --x: -1.3rem; }
  [dir="rtl"] .fx-hooks i:nth-child(3) { --x: -2.6rem; }
  [dir="rtl"] .msheet__head, [dir="rtl"] .msheet__foot { font-size: .74rem; }
}

/* ---- print keeps its own layout; only the arrows and alignment above apply ---- */
