/* RTL overrides for the Arabic page. Loaded after style.css so it wins
   on equal specificity. Only physical left/right rules that would read
   backwards in RTL are touched; logical ones are left alone.
   The site header and nav stay left-to-right, as in the source. */

body {
  font-family: "Noto Naskh Arabic", "Source Serif 4", serif;
  line-height: 1.9;
}
h1, h2, h3, h4 {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
  letter-spacing: 0;
}

/* mono labels carry no case in Arabic, and tracked-out caps spacing
   breaks the joined script */
.eyebrow,
.footer__disclaimer,
.nav-overlay__foot {
  letter-spacing: .02em;
  text-transform: none;
}

/* header / nav remain LTR - brand wordmark and nav are English */
header.site .wrap,
nav.site {
  direction: ltr;
}

/* lists: markers sit on the right */
ul, ol {
  padding-left: 0;
  padding-right: 22px;
}

/* quoted patient speech: accent bar on the right */
blockquote {
  border-left: 0;
  border-right: 2px solid var(--petrol);
  padding: 2px 20px 2px 0;
}
blockquote p { direction: auto; }

.pull-quote {
  padding: 8px 40px 8px 0;
  border-left: 0;
  border-right: 2px solid var(--petrol);
}
.pull-quote::before {
  content: "\00AB"; /* Arabic quotation mark */
  left: auto;
  right: 10px;
}

/* callout accent bar moves to the right edge */
.callout {
  border-left: 1px solid var(--line);
  border-right: 3px solid var(--petrol);
  border-radius: var(--radius) 0 0 var(--radius);
}
.callout--warn { border-right-color: var(--ember); }
.band--dark .callout { border-right: 3px solid var(--petrol); }
.band--dark .callout--warn { border-right-color: var(--ember); }

/* the clinical note itself is English: keep it left-aligned */
.note-paper,
.note-paper__head,
.note-paper__sign {
  direction: ltr;
  text-align: left;
}
.note-paper { margin: 36px auto; }

/* fixed chrome injected by app.js */
.skip-link {
  left: auto;
  right: clamp(16px, 4vw, 40px);
}
.back-to-top {
  right: auto;
  left: clamp(16px, 3vw, 28px);
}
.reading-progress__bar { transform-origin: right center; }
