/* ============================================================
   RiyalPlus — blog article layout.
   Loaded by Blog-*.html AFTER riyal.css + product.css.
   Bilingual: every rule that touches type has an html[lang="ar"]
   counterpart, because Geist carries no Arabic glyphs — an Arabic
   string under var(--display) falls back to a system face and
   reads as a different font (the Blog.html h1 bug, 2026-08-11).
   ============================================================ */

.art { max-width: 760px; }

/* —— Header block ———————————————————————————— */
.art-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
}
.art-cat::before { content: ''; width: 16px; height: 1px; background: var(--gold); }
html[lang="ar"] .art-cat { font-family: var(--arabic); font-size: 12px; letter-spacing: 0; text-transform: none; }

.art-meta {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em; margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap;
}
html[lang="ar"] .art-meta { font-family: var(--arabic); font-size: 12.5px; letter-spacing: 0; }

.art-lede { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-top: 24px; }
html[lang="ar"] .art-lede { line-height: 2; }

/* —— Body copy ————————————————————————————— */
.art h2 {
  font-family: var(--display); font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em; color: var(--ink); margin: 52px 0 14px;
  display: flex; gap: 14px; align-items: baseline; scroll-margin-top: 90px;
}
html[lang="ar"] .art h2 { font-family: var(--arabic); font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.art h2 .k { font-family: var(--mono); font-size: 12px; color: var(--gold); flex: none; }

.art h3 {
  font-family: var(--display); font-weight: 500; font-size: 16.5px;
  letter-spacing: -0.01em; color: var(--ink); margin: 30px 0 10px;
}
html[lang="ar"] .art h3 { font-family: var(--arabic); font-weight: 600; letter-spacing: 0; line-height: 1.6; }

.art p, .art li { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
html[lang="ar"] .art p, html[lang="ar"] .art li { line-height: 2; }
.art p { margin: 0 0 14px; }
.art ul, .art ol { margin: 0 0 14px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.art b { color: var(--ink); font-weight: 500; }

/* —— Callout: the "these two regimes differ here" box ——————
   Used wherever a zakat rule and an income-tax rule diverge, which
   is the single most common way a Saudi filing goes wrong.       */
.note {
  border: 1px solid var(--rule); border-inline-start: 2px solid var(--gold);
  border-radius: var(--r); background: var(--paper);
  padding: 18px 20px; margin: 0 0 20px;
}
.note .nt {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px;
}
html[lang="ar"] .note .nt { font-family: var(--arabic); font-size: 12px; letter-spacing: 0; text-transform: none; }
.note p:last-child { margin-bottom: 0; }

/* —— Table (same idiom as the legal pages) ————————— */
.art .tbl { border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; margin: 0 0 18px; }
.art .tr { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 12px 16px; font-size: 14px; line-height: 1.6; }
.art .tr + .tr { border-top: 1px solid var(--rule); }
.art .tr .c1 { color: var(--ink); font-weight: 500; }
.art .tr .c2 { color: var(--ink-2); }
@media (max-width: 640px){ .art .tr { grid-template-columns: 1fr; gap: 4px; } }

/* —— Sources — every article names the articles it rests on ——
   This is the "built on the rules" promise made checkable.      */
.srcs { margin-top: 56px; border-top: 1px solid var(--rule); padding-top: 26px; }
.srcs h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; font-weight: 400;
}
html[lang="ar"] .srcs h4 { font-family: var(--arabic); font-size: 12.5px; letter-spacing: 0; text-transform: none; }
.srcs ul { padding-inline-start: 20px; gap: 7px; }
.srcs li { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }

.disc { margin-top: 26px; font-size: 13px; line-height: 1.7; color: var(--ink-3); }
html[lang="ar"] .disc { line-height: 1.95; }

/* —— Footer nav: back to the blog + the next read ————— */
.art-next { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px){ .art-next { grid-template-columns: 1fr; } }
.art-next a {
  border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 20px 22px;
  background: var(--paper); transition: border-color var(--t-base), transform var(--t-base);
  display: flex; flex-direction: column; gap: 8px;
}
.art-next a:hover { border-color: var(--rule-2); transform: translateY(-2px); }
.art-next .lbl {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
}
html[lang="ar"] .art-next .lbl { font-family: var(--arabic); font-size: 12px; letter-spacing: 0; text-transform: none; }
.art-next .ttl { font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.3; color: var(--ink); }
html[lang="ar"] .art-next .ttl { font-family: var(--arabic); font-weight: 600; line-height: 1.6; }
