/* article.css — how an article reads (Blogs). One stylesheet for the
   editor's writing column, the editor preview, the publish dialog's card and
   the public article page, so what the author writes is what readers see.
   ADALATIQ_LAWYER_WORKSPACE_DESIGN.md Parts C and D. Uses theme.css. */

.ar { --ar-col: 700px; max-width: var(--ar-col); margin: 0 auto; color: var(--text-dark); font-family: var(--font-serif); }
.ar[dir="rtl"], .ar [dir="rtl"] { text-align: right; }
/* Urdu reads best in Naskh with a taller line */
.ar:lang(ur), .ar-text:lang(ur), .ar-title:lang(ur), .ar-subtitle:lang(ur) { font-family: 'Noto Naskh Arabic', var(--font-serif); }

.ar-cover {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md);
  background: #efe8e1; margin: 0 0 32px;
}
.ar-title { font: 700 40px/1.2 var(--font-serif); letter-spacing: -0.01em; margin: 0 0 12px; overflow-wrap: anywhere; }
.ar-subtitle { font: 400 22px/1.45 var(--font-serif); color: var(--text-mid); margin: 0 0 24px; overflow-wrap: anywhere; }
.ar-title:lang(ur), .ar-subtitle:lang(ur) { line-height: 1.7; }

.ar-byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; margin-bottom: 32px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font); }
.ar-byline__name { font-weight: 700; font-size: 15px; color: var(--text-dark); text-decoration: none; }
.ar-byline__name:hover { text-decoration: underline; }
.ar-byline__meta { font-size: 13px; color: var(--text-light); }
.ar-byline .ui-badge { margin-inline-start: 6px; vertical-align: 1px; }

.ar-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; font-family: var(--font); }

.ar-text { font: 400 20px/1.75 var(--font-serif); color: #24303f; }
.ar-text:lang(ur) { line-height: 2.05; }
.ar-text p { margin: 0 0 1.1em; overflow-wrap: anywhere; }
.ar-text p:last-child { margin-bottom: 0; }
.ar-divider { border: 0; height: 1px; width: 64px; background: var(--border-strong); margin: 40px auto; }

/* list / dialog card */
.ar-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.ar-card:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); }
a.ar-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ar-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: linear-gradient(135deg, #f6ede4, #efe2d4); }
.ar-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ar-card__title { font: 700 19px/1.35 var(--font-serif); margin: 0; overflow-wrap: anywhere; }
.ar-card__sub { font: 400 15px/1.5 var(--font-serif); color: var(--text-mid); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-card__tags { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font); }
.ar-card__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 500 12.5px/1.3 var(--font); color: var(--text-light); }
.ar-card__author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ar-card__author span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-like { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

@media (max-width: 640px) {
  .ar-title { font-size: 30px; }
  .ar-subtitle { font-size: 19px; }
  .ar-text { font-size: 18px; }
  .ar-cover { margin-bottom: 24px; border-radius: var(--radius-sm); }
}

/* AdalatIQ's own posts (admin preview; the public page styles are in insights.css) */
.ar-brand { background: #fff; border: 1px solid var(--border, #e5e7eb); }
.ar-brand img { width: 62%; height: 62%; object-fit: contain; }
.ar-sources { margin: 32px 0 0; font-family: var(--font); font-size: 14.5px; }
.ar-sources h2 { font-size: 18px; margin: 0 0 10px; }
.ar-sources ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.ar-sources a { overflow-wrap: anywhere; }
.ar-sources li span { display: block; font-size: 13px; color: var(--text-light); }
.ar-sources--missing { color: #b42318; }
.ar-about { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; border-inline-start: 4px solid var(--text-light); background: rgba(0, 0, 0, .035); font-family: var(--font); }
.ar-about p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-mid); }
