/* Shared language controls and bidirectional layout for the public static pages.
   Keep this after page styles. The approved films, marks and diagrams are not mirrored. */
@font-face {
  font-family: 'Site Noto Sans Arabic';
  src: url('/site-locale-arabic.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200F,U+202A-202E,U+2066-2069,U+FB50-FDFF,U+FE70-FEFF,U+10E60-10E7F,U+1EE00-1EEFF;
}

.site-language-slot {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-inline-size: 0;
}
.site-language-switcher {
  position: relative;
  flex: 0 0 auto;
  color: #103c30;
  font: 500 13px/1.5 'Geist', Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.site-language-switcher > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-inline-size: 76px;
  min-block-size: 44px;
  padding: 9px 11px;
  border: 1px solid #b9d0c4;
  border-radius: 12px;
  background: #fcfcf7;
  color: inherit;
  font: inherit;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
}
.site-language-switcher > summary::-webkit-details-marker { display: none; }
.site-language-switcher > summary::marker { content: ''; }
.site-language-switcher > summary::after {
  content: '';
  inline-size: 6px;
  block-size: 6px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  flex: none;
}
.site-language-switcher[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.site-language-switcher > summary :is(svg, img) {
  display: block;
  inline-size: 17px;
  block-size: 17px;
  margin: 0;
  flex: none;
}
.site-language-switcher > summary span {
  font: inherit;
  letter-spacing: 0;
  margin: 0;
  direction: ltr;
  unicode-bidi: isolate;
}
.site-language-switcher > div {
  position: absolute;
  z-index: 1000;
  inset-block-start: calc(100% + 9px);
  inset-inline-end: 0;
  inline-size: 196px;
  max-inline-size: calc(100vw - 24px);
  max-block-size: min(360px, calc(100dvh - 120px));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid #b9d0c4;
  border-radius: 16px;
  background: #fcfcf7;
  color: #103c30;
  box-shadow: 0 12px 32px #03140e26;
}
.site-language-switcher:not([open]) > div { display: none; }
.site-language-switcher > div > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  inline-size: 100%;
  min-block-size: 44px;
  min-inline-size: 0;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: 500 15px/1.6 'Site Noto Sans Arabic', 'Geist', Arial, sans-serif;
  letter-spacing: 0;
  text-align: start;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
}
.site-language-switcher > div > button:hover,
.site-language-switcher > div > button[aria-current='true'],
.site-language-switcher > div > button[aria-selected='true'] { background: #e5f1eb; }
.site-language-switcher > div > button[aria-current='true'],
.site-language-switcher > div > button[aria-selected='true'] { font-weight: 700; }
.site-language-switcher :is(summary, button):focus-visible {
  outline: 2px solid #008f83;
  outline-offset: 3px;
}

/* Header variants share one small control without creating an extra grid row. */
.site-header .header-actions { min-inline-size: 0; }
.story-header:has(.site-language-slot) { grid-template-columns: minmax(0,1fr) auto auto auto; }
:is(.site-header, .library-header, .review-header, .topbar):has(> .site-language-slot) {
  column-gap: clamp(12px, 2vw, 28px);
}
:is(.site-header, .library-header, .review-header, .topbar) > .site-language-slot { margin-inline-start: 0; }
.library-header:has(.site-language-slot) nav { flex-wrap: wrap; row-gap: 4px; }
.review-header:has(.site-language-slot) .review-label { min-inline-size: 0; }

/* Translated lines must wrap naturally; English artwork keeps its own geometry. */
html:not([lang='en']) :is(h1,h2,h3,h4,h5,h6,.thesis,.site-section-title) {
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}
html:not([lang='en']) :is(h1,h2,h3,h4,h5,h6) > span { white-space: normal; }
html:not([lang='en']) :is(.foundation-atlas h3 em,.build-months,.home-film-action,.foundation-atlas-next-action) { white-space: normal; }
html:not([lang='en']) :is(.hero h1,.hero-explanation,.hero-subline) { max-inline-size: 100%; }
html:not([lang='en']) :is(.section-kicker,.survive-kicker,.survive-film-meta,.film-meta,.edition-line,.chapter-label,.intro-line,.eyebrow) {
  flex-wrap: wrap;
  min-inline-size: 0;
  row-gap: 10px;
}
html:not([lang='en']) :is(.section-kicker,.survive-kicker,.survive-film-meta,.film-meta,.edition-line,.chapter-label,.intro-line) > * { min-inline-size: 0; }
html:not([lang='en']) :is(.button,.text-button,.cta,.back-link,.back,.survive-next>a,.proof a,.offer-bottom,.atlas-continue) {
  white-space: normal;
  overflow-wrap: break-word;
}
html:not([lang='en']) :is(.film-chrome,.film-underbar,.film-toolbar,.native-film-toolbar,.native-film-support,.atlas-top,.atlas-top-actions,.atlas-toolbar,.pj-controls) { flex-wrap: wrap; }
html:not([lang='en']) :is(.view-controls,.native-film-actions) > button { white-space: normal; }
html:not([lang='en']) :is(.survive-evidence-grid,.terms-grid,.explanation-grid,.reading-grid,.home-films-grid,.story-build-grid) > * { min-inline-size: 0; }
html:not([lang='en']) .survive-evidence-grid .evidence-line { white-space: normal; }
html:not([lang='en']) .survive-evidence-grid a { white-space: normal; }
html:not([lang='en']) :is(.chapter,.chapter-list button,.document-list a,.reading-card) { overflow-wrap: break-word; }

/* Arabic and Persian use proper joined-script fonts and comfortable leading.
   Explicit font declarations in the individual designs require this override. */
html[dir='rtl'] {
  --mono: 'Site Noto Sans Arabic', 'Geist Mono', monospace;
  --serif: 'Site Noto Sans Arabic', 'Bodoni Moda', serif;
  --sans: 'Site Noto Sans Arabic', 'Geist', Arial, sans-serif;
}
html[dir='rtl'] body,
html[dir='rtl'] :is(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,summary,dt,dd,li,th,td,small,strong,em,span,figcaption,blockquote) {
  font-family: 'Site Noto Sans Arabic', 'Geist', Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none;
}
html[dir='rtl'] :is(h1,h2,h3,h4,h5,h6,.thesis,.site-section-title),
html[dir='rtl'] :is(h1,h2,h3,h4,h5,h6,.thesis,.site-section-title) :is(em,span) { line-height: 1.4 !important; }
html[dir='rtl'] :is(em,i) { font-style: normal; }
html[dir='rtl'] :is(p,li,dd,blockquote,.chapter-name,.chapter-title,.intro-copy) { line-height: 1.85; }
html[dir='rtl'] :is(button,input,select,textarea,label,summary) { line-height: 1.65; }
html[dir='rtl'] svg text { font-family: 'Site Noto Sans Arabic', 'Geist', Arial, sans-serif !important; letter-spacing: 0 !important; }
html[dir='rtl'] :is(.brand,.footer-mark,.film-cover-mark) {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir='rtl'] .brand :is(span,b) {
  font-family: 'Geist', Arial, sans-serif !important;
  letter-spacing: .06em !important;
}
html[dir='rtl'] .header-actions,
html[dir='rtl'] .library-header nav,
html[dir='rtl'] .review-label,
html[dir='rtl'] .review-header .back-link {
  margin-left: 0;
  margin-inline-start: auto;
}
html[dir='rtl'] :is(.demo-card,.use-case-tabs button,.chapter,.chapter-list button,.evidence-heading,.evidence-open-action,.evidence-privacy,.payment-journey .pj-branch),
html[dir='rtl'] #atlas-dialog .atlas-chapters button,
html[dir='rtl'] #platform .atlas-entry-action button,
html[dir='rtl'] #agent-example :is(.pool-strip button,#pool-view),
html[dir='rtl'] #contact .rai-intro .section-kicker > span:last-child,
html[dir='rtl'] #intelligence .section-kicker > span:last-child:not(:first-child) { text-align: start; }
html[dir='rtl'] #main :is(.button,.text-button,.story-cta-row>a,.story-cta-row>button,.story-rai-inline>a,.story-proof-links>button,.foundation-atlas-controls button,.security-tabs button),
html[dir='rtl'] #main #contact :is(.rai-intent-links a,.rai-launch-signature),
html[dir='rtl'] #main #platform .section-kicker > a { text-align: start; }
html[dir='rtl'] :is(.survive-kicker,.survive-film-meta,.film-meta,.edition-line,.chapter-label,.foundation-study figcaption) > :last-child,
html[dir='rtl'] :is(.survive-evidence-heading p,.payment-journey .pj-demo-label,.payment-journey .pj-record dd) { text-align: end; }
html[dir='rtl'] :is(.offer+.offer,.terms-grid article+article,.survive-evidence-grid article+article,.chapter-nav a+a) {
  border-left: 0;
  border-inline-start: 1px solid var(--line,#c7d5cc);
}
html[dir='rtl'] .survive-evidence-grid article { border-left: 0; }
html[dir='rtl'] .survive-evidence-grid article+article { border-inline-start: 1px solid #c7d5cc; }
html[dir='rtl'] .terms-grid article:first-child { padding-left: 28px; padding-inline-start: 0; }
html[dir='rtl'] .terms-grid article:last-child { padding-right: 28px; padding-inline-end: 0; }
html[dir='rtl'] .chapter-nav a:first-child { padding-left: 28px; padding-inline-start: 0; }
html[dir='rtl'] .chapter-nav a:last-child { padding-right: 28px; padding-inline-end: 0; }
html[dir='rtl'] .chapter-nav b { margin-left: 0; margin-inline-start: auto; }
html[dir='rtl'] #choose .story-lane + .story-lane,
html[dir='rtl'] #platform .story-build-grid > article + article,
html[dir='rtl'] #contact .rai-paths > a + a { border-left: 0; border-inline-start: 1px solid var(--line); }
html[dir='rtl'] #choose .story-lane-tags > span + span::before { margin-right: 0; margin-inline-end: 8px; }
html[dir='rtl'] .name-history summary { margin-left: 0; margin-inline-start: calc((100% + var(--name-gap)) / 2); }
html[dir='rtl'] .library-header .back-link { padding-left: 0; padding-inline-start: 24px; border-left: 0; border-inline-start: 1px solid var(--line); }
html[dir='rtl'] :is(.reading-panel,.payment-journey .pj-authority) {
  border-left: 0;
  border-inline-start: 2px solid var(--teal,#7aab94);
}
html[dir='rtl'] .payment-journey .pj-authority { padding-left: 0; padding-inline-start: 18px; }
html[dir='rtl'] .payment-journey .pj-count { margin-left: 0; margin-inline-start: auto; }
html[dir='rtl'] .agent-controls { border-right: 0; border-inline-end: 1px solid var(--line); }
html[dir='rtl'] .use-case-tabs button[aria-selected='true'] { box-shadow: inset -2px 0 var(--teal); }
html[dir='rtl'] .chapter-meta time { border-left: 0; border-inline-start: 1px solid #cbd2cb; padding-left: 0; padding-inline-start: 13px; }
html[dir='rtl'] .chapter-arrow { right: auto; inset-inline-end: 16px; }
html[dir='rtl'] .chapter { padding-inline: 20px 42px; }
html[dir='rtl'] .atlas-sidebar { border-right: 0; border-inline-end: 1px solid #cad8ce; }
html[dir='rtl'] .atlas-privacy-points li+li::before { left: auto; inset-inline-start: -22px; }
html[dir='rtl'] #atlas-dialog .atlas-close { padding-left: 0; padding-inline-start: 12px; }
html[dir='rtl'] #survive-dialog header button { padding-left: 0; padding-inline-start: 20px; }
html[dir='rtl'] .atlas-page-controls label { margin-left: 0; margin-inline-start: 5px; }
html[dir='rtl'] .native-film-toolbar button span { margin-left: 0; margin-inline-start: 8px; }
html[dir='rtl'] .film-quality-picker .film-quality-listbox { right: auto; inset-inline-end: 0; }
html[dir='rtl'] #agent-example .pools-guide { left: auto; inset-inline-start: 0; }
html[dir='rtl'] #agent-example .pools-guide-close { right: auto; inset-inline-end: 8px; }
html[dir='rtl'] #agent-example .pools-help { right: auto; inset-inline-end: 0; }
html[dir='rtl'] #agent-example[data-interaction='active'] .pools-help { right: auto; inset-inline-end: 100px; }
html[dir='rtl'] #agent-example .counts b { margin-right: 0; margin-inline-end: 6px; }
html[dir='rtl'] .site-language-switcher > summary::after { transform: translateY(-2px) rotate(-45deg); }
html[dir='rtl'] .site-language-switcher[open] > summary::after { transform: translateY(2px) rotate(135deg); }

/* Only directional navigation is reversed. Media controls, charts, data and
   the English source document retain their time/coordinate/number ordering. */
html[dir='rtl'] :is(.back-link,.back) > span[aria-hidden='true'],
html[dir='rtl'] .chapter-nav b,
html[dir='rtl'] [data-atlas-prev],
html[dir='rtl'] [data-atlas-next] { scale: -1 1; }
html[dir='rtl'] :is(video,canvas,svg,input[type='range'],input[type='number'],input[type='email'],input[type='tel'],input[type='url'],time,code,pre,[dir='ltr'],.chart-bars,.mini-chart,.parallel-stages,.sequence-stages,.atlas-page-surface,.survive-stat,.film-quality-value) {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir='rtl'] :is(input[type='email'],input[type='tel'],input[type='url']) { text-align: left; }
html[dir='rtl'] #film.is-wide { left: auto; right: 50%; transform: translateX(50%); }

@media (max-width: 1100px) {
  .story-header:has(.site-language-slot) { grid-template-columns: minmax(0,1fr) auto auto; }
  .story-header:has(.site-language-slot) .header-location { display: none; }
  html:not([lang='en']) .hero h1 { inline-size: 100%; }
  html:not([lang='en']) :is(.hero-explanation,.hero-subline) { inline-size: min(100%,650px); }
}
@media (max-width: 850px) {
  html[dir='rtl'] .name-history summary { margin-inline-start: 0; }
}
@media (max-width: 800px) {
  html[dir='rtl'] .survive-evidence-grid article+article { border-inline-start: 0; }
  .library-header:has(.site-language-slot) { flex-wrap: wrap; column-gap: 14px; }
  .library-header:has(.site-language-slot) > .site-language-slot { margin-inline-start: auto; }
  .library-header:has(.site-language-slot) > nav { order: 3; flex-basis: 100%; margin-inline: 0; gap: 8px 24px; }
  html[dir='rtl'] .atlas-zoom-label { margin-left: 0; margin-inline-start: auto; }
}
@media (max-width: 700px) {
  :is(.site-header,.review-header,.topbar):has(> .site-language-slot) { flex-wrap: wrap; row-gap: 8px; }
  :is(.site-header,.review-header,.topbar):has(> .site-language-slot) > :is(.back-link,.back) { order: 3; flex-basis: 100%; margin-inline: 0; padding-block: 0; min-block-size: 36px; }
  :is(.site-header,.review-header,.topbar):has(> .site-language-slot) > .site-language-slot { margin-inline-start: auto; }
  .story-header:has(.site-language-slot) { block-size: auto; min-block-size: 76px; padding-block: 12px; gap: 4px 12px; grid-template-columns: minmax(0,1fr) auto; }
  .story-header:has(.site-language-slot) > .back-link { order: 3; grid-column: 1/-1; justify-self: start; padding-block: 0; min-block-size: 36px; }
  .story-header:has(.site-language-slot) > .site-language-slot { justify-self: end; }
  html[dir='rtl'] .chapter-nav a,
  html[dir='rtl'] .chapter-nav a:first-child,
  html[dir='rtl'] .chapter-nav a:last-child { padding-inline: 0; }
  html[dir='rtl'] .chapter-nav a+a { border-inline-start: 0; }
  html[dir='rtl'] #choose .story-lane + .story-lane,
  html[dir='rtl'] #platform .story-build-grid > article + article,
  html[dir='rtl'] #contact .rai-paths > a + a { border-inline-start: 0; }
  html:not([lang='en']) :is(.survive-kicker,.survive-film-meta,.film-meta) > span:last-child { max-inline-size: 100%; }
  html:not([lang='en']) :is(.survive-play,.film-cover-cta) { white-space: normal; max-inline-size: 90%; text-align: center; }
  html[dir='rtl'] :is(.survive-evidence-heading p,.payment-journey .pj-demo-label,.foundation-study figcaption > :last-child,.site-footer > span:last-child) { text-align: start; }
}
@media (max-width: 600px) {
  .site-header:has(.header-actions .site-language-switcher) { column-gap: 10px; padding-inline: 16px; }
  .header-actions:has(.site-language-switcher) { gap: 4px; }
  .site-language-switcher > summary { min-inline-size: 70px; gap: 6px; padding-inline: 9px; }
  .site-header:has(.header-actions .site-language-switcher) .brand { gap: 8px; }
  .site-header:has(.header-actions .site-language-switcher) .brand img { inline-size: 28px; block-size: 28px; }
  .site-header:has(.header-actions .site-language-switcher) .brand span { font-size: 20px; letter-spacing: .05em; }
  .header-actions:has(.site-language-switcher) .motion-toggle { inline-size: 34px; }
  html[dir='rtl'] .terms-grid article,
  html[dir='rtl'] .terms-grid article:first-child,
  html[dir='rtl'] .terms-grid article:last-child { padding-inline: 0; }
  html[dir='rtl'] :is(.terms-grid article+article,.offer+.offer) { border-inline-start: 0; }
  html[dir='rtl'] .native-film-toolbar button span { margin-inline-start: 4px; }
  html[dir='rtl'] #agent-example[data-interaction='active'] .pools-help { inset-inline-end: 95px; }
  html:not([lang='en']) :is(.section-kicker,.survive-kicker,.edition-line,.chapter-label) { align-items: start; }
  html:not([lang='en']) .site-header #main-nav.is-open { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 360px) {
  .site-header:has(.header-actions .site-language-switcher) .brand span { font-size: 17px; }
  .site-header:has(.header-actions .site-language-switcher) { padding-inline: 12px; column-gap: 6px; }
  .header-actions:has(.site-language-switcher) .motion-toggle { inline-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-language-switcher * { scroll-behavior: auto; transition: none; }
}

/* The wide foundation illustration overlaps inward in both reading directions. */
@media (min-width: 761px) {
  html[dir='rtl'] .foundation-atlas-art { margin-left: 0; margin-right: -10%; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  html[dir='rtl'] .foundation-atlas-art { margin-right: -16%; }
}
html[dir='rtl'] .survive-stat { font-family: 'Bodoni Moda', 'Site Noto Sans Arabic', serif !important; }

/* The decorative glass and its reading-safe fade follow the copy to the opposite
   side. Mirroring this decorative layer never mirrors the logo or film media. */
html[dir='rtl'] .hero-art { inset: -14% 29% 0 -10%; transform: scaleX(-1); }
html[dir='rtl'] #origin::after {
  background: linear-gradient(270deg, var(--ivory) 3%, rgba(248,248,241,.98) 36%, rgba(248,248,241,.95) 53%, rgba(248,248,241,.78) 65%, rgba(248,248,241,.12) 82%, transparent 92%);
}
@media (min-width: 1650px) {
  html[dir='rtl'] .hero-art { inset: -20% 26% -10% -8%; }
}
@media (max-width: 1180px) {
  html[dir='rtl'] .hero-art { right: 25%; left: -10%; }
}
@media (max-width: 900px) {
  html[dir='rtl'] .hero-art { right: 18%; left: -22%; }
}
@media (max-width: 640px) {
  html[dir='rtl'] .hero-art { inset: 0 -50% 0 -80%; }
  html[dir='rtl'] #origin::after {
    background: linear-gradient(270deg, rgba(248,248,241,.96), rgba(248,248,241,.87) 50%, rgba(248,248,241,.65));
  }
}

/* Keep the scrolling decorative glass and chapter scrims on the same side as
   the RTL composition; fixed-coordinate product diagrams remain unmirrored. */
html[dir='rtl'] #chevron-world { transform: scaleX(-1); }
html[dir='rtl'] #choose:has(.story-intro),
html[dir='rtl'] #platform:has(.story-build-heading),
html[dir='rtl'] #contact:has(.rai-intro),
html[dir='rtl'] #main #protocol.sovereign-section.commerce-chapter,
html[dir='rtl'] #main #aisco.aisco,
html[dir='rtl'] #main #ownership.ownership,
html[dir='rtl'] #main #contact.contact.closing-conversation {
  background: linear-gradient(260deg, rgba(248,248,241,.88), rgba(248,248,241,.64));
}
html[dir='rtl'] #intelligence {
  background: linear-gradient(260deg, rgba(248,250,244,.67), rgba(248,250,244,.88));
}
@media (max-width: 700px) {
  html[dir='rtl'] #choose:has(.story-intro),
  html[dir='rtl'] #platform:has(.story-build-heading),
  html[dir='rtl'] #contact:has(.rai-intro),
  html[dir='rtl'] #intelligence,
  html[dir='rtl'] #main #protocol.sovereign-section.commerce-chapter,
  html[dir='rtl'] #main #aisco.aisco,
  html[dir='rtl'] #main #ownership.ownership,
  html[dir='rtl'] #main #contact.contact.closing-conversation {
    background: linear-gradient(260deg, rgba(248,248,241,.88), rgba(248,248,241,.62));
  }
}

/* RTL geometry for the public pages. Coordinate-bound charts, security hotspots,
   film media and the approved marks retain their original geometry. */

/* The active payment marker follows the same reading order as its stage grid. */
html[dir='rtl'] .payment-journey .pj-traveller {
  left: auto;
  right: calc((var(--pj-position) + .5) * 100% / 6);
  transform: translate(50%, -50%);
}
html[dir='rtl'] .payment-journey :is(.pj-previous,.pj-next) > span[aria-hidden='true'] {
  scale: -1 1;
}

/* Reserve the trailing edge for the proof-card arrow, away from the title. */
html[dir='rtl'] #demos .story-proof-links strong {
  margin-left: 30px;
  margin-right: 0;
}
html[dir='rtl'] #demos .story-proof-links > :is(a,button) > :is(.story-proof-arrow,span[aria-hidden],b[aria-hidden],i) {
  right: auto;
  left: 27px;
}
@media (max-width: 450px) {
  html[dir='rtl'] #demos .story-proof-links > :is(a,button) > :is(.story-proof-arrow,span[aria-hidden],b[aria-hidden],i) {
    left: 20px;
  }
}

/* Keep the explorer's UI on its corresponding edge; projected 3D labels stay
   registered to their canvas coordinates. */
html[dir='rtl'] #agent-example :is(.view-status,.navigation-hint) { left: auto; right: 0; }
html[dir='rtl'] #agent-example .view-status { padding-left: 8px; padding-right: 0; }
html[dir='rtl'] #agent-example :is(.zoom-controls,.pools-exit) { right: auto; left: 0; }
html[dir='rtl'] #agent-example #inspector { right: auto; left: 16px; }
html[dir='rtl'] #agent-example .close-panel { right: auto; left: 8px; }
@media (max-width: 600px) {
  html[dir='rtl'] #agent-example #inspector { left: 0; }
}

/* Walkthrough close controls and illustration space follow the reading side. */
html[dir='rtl'] #demo-dialog [data-close-demo] { margin-left: 0; margin-right: auto; }
html[dir='rtl'] #demo-dialog.is-aisco :is(#demo-title,#demo-description) {
  margin-left: 60px;
  margin-right: 0;
}
html[dir='rtl'] #demo-dialog.is-aisco .ax-offer-art {
  background: radial-gradient(ellipse at 25% 45%, #dcefe250, #fcfdf7 70%);
}
html[dir='rtl'] #demo-dialog.is-aisco .ax-daily-editorial {
  border-right: 0;
  border-left: 1px solid #cadcc9;
}
@container aisco-workspace (max-width: 740px) {
  html[dir='rtl'] #demo-dialog.is-aisco .ax-offer-art {
    border-right: 0;
    border-left: 1px solid #d5e4d0;
  }
  html[dir='rtl'] #demo-dialog.is-aisco .ax-daily-editorial { border-left: 0; }
  html[dir='rtl'] #demo-dialog.is-aisco .ax-daily-editorial > img { right: auto; left: 22px; }
}
@container aisco-workspace (max-width: 480px) {
  html[dir='rtl'] #demo-dialog.is-aisco .ax-offer-art { border-left: 0; }
  html[dir='rtl'] #demo-dialog.is-aisco .ax-daily-editorial > img { left: auto; }
}

@media (max-width: 700px) {
  html[dir='rtl'] #demo-dialog.is-aisco #demo-title { margin-left: 52px; }
  html[dir='rtl'] #demo-dialog.is-aisco #demo-description { margin-left: 0; }
}

/* The Field's light follows the feature artwork as the grid reverses. */
html[dir='rtl'] .field-feature::before {
  background: radial-gradient(ellipse at 20% 52%, #164b3e, transparent 65%);
}
