/* ──────────────────────────────────────────────────────────────
   Maawa — blog (/blog). Builds on the static marketing sheet
   (palette, header, buttons, cards, FAQ — all logical properties,
   so it reads LTR as well as RTL) and adds long-form article type.
   ────────────────────────────────────────────────────────────── */
@import url('/design/ar.css');

/* English pages; Arabic keeps the sheet's Plex Arabic and taller leading. */
html[lang='en'] body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
}
/* Letter-spacing and monospace break the joins between Arabic letters. */
html[lang='ar'] .eyebrow, html[lang='ar'] .meta, html[lang='ar'] .answer > b {
  font-family: inherit;
  letter-spacing: 0;
}

.brand img { height: 22px; width: auto; display: block; }
.bar nav a[aria-current='page'] { color: var(--ink); }
@media (max-width: 600px) {
  .brand img { height: 17px; }
  .bar nav { gap: 0.75rem; flex-wrap: nowrap; }
  .bar nav a { font-size: 0.82rem; }
  /* Products stay linked from the footer and each article's call to action. */
  .bar nav a[href$='/maawa-x'], .bar nav a[href$='/os'] { display: none; }
}

/* ── blog index ─────────────────────────────────────────── */
.posts { display: grid; gap: 1rem; margin-block-start: 2rem; }
.post-card h2 { font-size: 1.3rem; margin-block-end: 0.4rem; }
.post-card p { margin-block-end: 0.6rem; }
.meta {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.meta b { color: var(--teal); font-weight: 600; }

/* ── article ────────────────────────────────────────────── */
article { max-width: 760px; }
article h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-block-end: 1rem; }
article h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-block-start: 2.8rem; }
article h3 { margin-block-start: 1.8rem; }
article p, article li { color: #c8c8cf; max-width: none; }
article ul, article ol { padding-inline-start: 1.3rem; margin: 0 0 1.1rem; }
article li { margin-block-end: 0.45rem; }
article li::marker { color: var(--violet); }
article strong { color: var(--ink); }
article a { color: var(--teal); text-underline-offset: 3px; }
article a:hover { color: var(--ink); }
article sup a { text-decoration: none; font-size: 0.75em; padding-inline-start: 1px; }

/* The answer up front: what an assistant should quote. */
.answer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--violet);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0 2rem;
}
.answer > b {
  display: block;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--violet);
  margin-block-end: 0.4rem;
}
.answer p { margin: 0; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: start; padding: 0.7rem 0.9rem; border-block-end: 1px solid var(--line-soft); vertical-align: top; }
th { background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap; }
td { color: #c8c8cf; }
tr:last-child td { border-block-end: 0; }
caption { caption-side: bottom; text-align: start; padding: 0.6rem 0.9rem; font-size: 0.82rem; color: var(--muted-2); }

.sources { border-block-start: 1px solid var(--line-soft); margin-block-start: 3rem; padding-block-start: 1.5rem; }
.sources h2 { font-size: 1.15rem; margin-block-start: 0; }
.sources ol { font-size: 0.88rem; }
.sources li { color: var(--muted); }

.cta { margin-block-start: 3rem; }
.cta p { color: #c8c8cf; }

.related { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-block-start: 1rem; }
.related .card h3 { font-size: 1rem; margin: 0; }
