/* Right-to-left fixes for ar/security.html (everything inside <main class="co co--security">).
   Load after css/teradix-rtl.css. Every selector starts with [dir="rtl"] and is scoped to
   .co--security, so it never reaches the newsroom page, which shares the .co classes.
   The grids and flex rows follow the direction on their own; this file only swaps what is
   physical (paddings, borders, the bullet, the hover nudge) and gives Arabic the line-height
   it needs. The illustrations change side with their column and are never flipped. */

/* ---- page head ---------------------------------------------------------- */
[dir="rtl"] .co--security .co-hero h1{line-height:var(--lh-ar-h1);max-width:16ch}
[dir="rtl"] .co--security .co-hero .lead,
[dir="rtl"] .co--security .co-split .lead,
[dir="rtl"] .co--security .co-cta .lead{line-height:1.75}

/* ---- the summary sheet beside the headline ------------------------------ */
[dir="rtl"] .co--security .co-spec__h b{line-height:var(--lh-ar-h3)}
[dir="rtl"] .co--security .co-spec__h span{line-height:var(--lh-ar-ui);margin-top:2px}
/* the labels lose their uppercase and tracking in Arabic, so they step up a size */
[dir="rtl"] .co--security .co-spec dt{font-size:14px;font-weight:500;line-height:var(--lh-ar-ui)}
[dir="rtl"] .co--security .co-spec dd{line-height:var(--lh-ar-ui)}
[dir="rtl"] .co--security .co-spec dd small{line-height:1.6}

/* ---- cards -------------------------------------------------------------- */
[dir="rtl"] .co--security .co-kicker{font-size:14px;line-height:var(--lh-ar-ui);margin-bottom:8px}
[dir="rtl"] .co--security .co-card h3,
[dir="rtl"] .co--security .co-fact h3{line-height:var(--lh-ar-h3)}
[dir="rtl"] .co--security .co-card p,
[dir="rtl"] .co--security .co-fact p{line-height:var(--lh-ar-copy)}

/* ---- text beside the bridge drawing ------------------------------------- */
[dir="rtl"] .co--security .co-split h2{max-width:18ch}
/* the bullet and its gutter move to the right of the text */
[dir="rtl"] .co--security .co-points li{padding-left:0;padding-right:22px;line-height:var(--lh-ar-copy)}
[dir="rtl"] .co--security .co-points li::before{left:auto;right:0;top:.78em}
/* the drawing is not mirrored (ERP on the left, suppliers on the right), so its three
   captions keep their physical order; each caption still reads right to left */
[dir="rtl"] .co--security .co-split__cap{direction:ltr;font-size:13.5px;line-height:var(--lh-ar-ui)}
[dir="rtl"] .co--security .co-split__cap span{direction:rtl;unicode-bidi:isolate}
[dir="rtl"] .co--security .co-split__cap span:nth-child(1){text-align:left}
[dir="rtl"] .co--security .co-split__cap span:nth-child(2){text-align:center}
[dir="rtl"] .co--security .co-split__cap span:nth-child(3){text-align:right}

/* ---- figures: Latin values read left to right and sit on the reading side - */
[dir="rtl"] .co--security .co-fact__n{unicode-bidi:plaintext;text-align:right}

/* ---- arrow links: the icon is flipped by the base, the nudge goes left -- */
[dir="rtl"] .co--security .co-go{line-height:var(--lh-ar-ui)}
[dir="rtl"] .co--security .co-go:hover svg{transform:translateX(-4px)}

/* ---- the plain note: the lime rule sits on the reading side ------------- */
[dir="rtl"] .co--security .co-note{border-left:1px solid var(--border);border-right:3px solid var(--lime)}
[dir="rtl"] .co--security .co-note p{line-height:var(--lh-ar-copy)}

@media(prefers-reduced-motion:reduce){
  [dir="rtl"] .co--security .co-go:hover svg{transform:none}
}
