/* Shared by the public reader, initial HTML, dashboard preview and body editor. */
.article-prose, .article-byline {
  direction: rtl;
  text-align: start;
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
}
.article-prose > *,
.article-prose p,
.article-prose strong,
.article-prose em,
.article-prose a,
.article-prose li {
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}
.article-page-crawl,
.av-content {
  width: min(100%, 980px);
  max-width: 980px;
  margin-inline: auto;
  box-sizing: border-box;
}
.article-page-crawl { overflow-x: hidden; }
.av-body { box-sizing: border-box; }
.av-header { box-sizing: border-box; }
.article-prose {
  max-width: 800px;
  margin-inline: auto;
  color: #263242;
  font-size: clamp(18px, 1.15vw, 20px);
  font-weight: 400;
  line-height: 1.72;
}
.av-text.article-prose {
  width: min(100%, 800px);
  max-width: 800px;
  margin-inline: auto;
}
.deep-read-box {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 24px 20px;
}
.article-byline {
  display: block;
  max-width: 720px;
  margin: 0 auto 24px;
  color: #34485c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}
.article-prose p { margin: 0 0 .78em; font-size: inherit; font-weight: 400; line-height: inherit; }
.article-prose p:last-child { margin-bottom: 0; }
.article-prose strong { font-weight: 700; }
.article-prose em { font-style: italic; }
.article-prose h2, .article-prose h3 {
  margin: 1.6em 0 .65em;
  color: #06284b;
  font-weight: 700;
  line-height: 1.5;
}
.article-prose h2 { font-size: 25px; }
.article-prose h3 { font-size: 21px; }
.article-prose > :first-child { margin-top: 0; }
.article-prose blockquote {
  margin: 1.3em 0;
  padding: .65em 1em;
  border-inline-start: 3px solid #cc0000;
  background: #f2f6fa;
  color: #263d56;
  line-height: 1.9;
}
.article-prose ul, .article-prose ol { margin: .8em 0 1.2em; padding-inline: 1.6em 0; }
.article-prose li { margin: 0 0 .4em; }
.article-prose li p { margin-bottom: .4em; }
.article-prose a { color: #075985; text-decoration: underline; text-underline-offset: .15em; }
.article-prose img, .article-prose video, .article-prose iframe, .article-prose embed, .article-prose object {
  display: block;
  max-width: 100%;
  height: auto;
}
.article-prose a { overflow-wrap: anywhere; }
.article-prose :where(pre, code) { max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }
.av-video, .av-video-embed, .av-media-embed { max-width: 100%; }
.article-prose .article-dimensions { margin-top: 1.8em; padding-top: 1em; border-top: 2px solid #dbe4ee; }
.article-prose .article-dimensions > h2 { margin-top: 0; }
.deep-read-head { margin-bottom: 24px; }
#articleModal .modal-body { max-width: 820px; margin-inline: auto; }
#articleModal .modal-image { height: auto; max-height: none; object-fit: contain; margin: 24px 0; }
#articleModal .modal-head h2 { line-height: 1.5; overflow-wrap: anywhere; }
.rich-text-surface.article-prose { max-width: none; }
@media (min-width: 681px) and (max-width: 1100px) {
  .av-body { padding-inline: clamp(24px, 4vw, 36px); }
  .article-prose, .av-text { font-size: 19px; line-height: 1.88; }
  .article-prose h2, .av-text h2 { font-size: 24px; }
  .article-prose h3, .av-text h3 { font-size: 21px; }
}
@media (max-width: 680px) {
  .article-page-crawl, .av-content, #articleModal .modal-body { width: 100%; max-width: none; }
  /* Let the compact mobile header scroll with the article so it cannot cover
     or visually clip the first line while the reader swipes. */
  .av-header { position: relative; top: auto; min-height: 48px; padding: 10px 14px; }
  .av-back { font-size: 14px; }
  .av-body { padding: 20px 16px 8px; }
  .article-prose, .av-text {
    width: 100%;
    max-width: none;
    font-size: 18px;
    line-height: 1.8;
    text-align: right;
  }
  .article-prose p, .av-text p { margin-bottom: .7em; }
  .article-byline { font-size: 14px; margin-bottom: 16px; line-height: 1.75; }
  .article-prose h2, .av-text h2 { margin: 1.25em 0 .5em; font-size: 21px; line-height: 1.4; }
  .article-prose h3, .av-text h3 { margin: 1.1em 0 .45em; font-size: 18px; line-height: 1.45; }
  .article-prose blockquote, .av-text blockquote { margin: 1em 0; padding: .55em .75em; }
  .article-prose ul, .article-prose ol, .av-text ul, .av-text ol { margin: .7em 0 1em; padding-inline: 1.35em 0; }
  .article-prose li, .av-text li { margin-bottom: .25em; }
  .av-title { margin: 2px 0 10px; font-size: clamp(24px, 7vw, 29px); line-height: 1.38; }
  .av-meta { margin-bottom: 14px; gap: 4px 8px; }
  .av-video-embed, .av-media-embed { min-height: 300px; }
  /* av-body already supplies the mobile edge spacing; keep the reading card
     full width so its inner copy is not padded twice. */
  .deep-read-box { padding: 14px 16px 16px; }
}

@media (max-width: 374px) {
  .av-body { padding-inline: 14px; }
  .article-prose, .av-text { font-size: 18px; line-height: 1.78; }
  .av-title { font-size: 24px; }
}
