/* ROOT-CAUSE-CARVE-OUT: doc-only-edit (greenfield brand CSS; no fix-class work) */
/* urCASH blog brand theme. RTL-correct (logical properties throughout so AR mirrors, not just
   translates). Palette + typography per DATA ROOM/5. Marketing & Branding/urCASH-Brand-Identity.md.
   Mobile-first, Core Web Vitals friendly (no heavy CSS, no web-fonts on the critical path for AR). */

:root {
  --navy: #1d1752;
  --accent: #4fc7e7;
  --accent-2: #39b6e9;
  --mid-blue: #457dc0;
  --purple-blue: #7066ad;
  --purple: #8a5fa8;
  --lime: #d1d856;
  --grey: #d2d3d4;
  --ink: #16121f;
  --muted: #5b5670;
  --paper: #ffffff;
  --paper-2: #f7f6fb;
  --line: #e7e4f0;
  --maxw: 720px;
  --font-ar: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lang-ar { font-family: var(--font-ar); }
body.lang-en { font-family: var(--font-en); line-height: 1.7; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mid-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Top bar ---- */
.site-header {
  background: var(--navy);
  color: #fff;
}
.site-header .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header a { color: #fff; }
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand-mark img { width: 34px; height: 34px; }
.brand-mark .wordmark { font-size: 18px; letter-spacing: .2px; }
.lang-switch a {
  font-size: 14px;
  opacity: .85;
  border: 1px solid rgba(255,255,255,.25);
  padding: 5px 12px;
  border-radius: 999px;
}
.lang-switch a:hover { opacity: 1; text-decoration: none; background: rgba(255,255,255,.08); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #241c63 60%, #2a2170 100%);
  color: #fff;
  padding: 40px 20px 44px;
}
.hero .inner { max-width: var(--maxw); margin: 0 auto; }
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.hero h1 {
  font-size: 30px;
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 700;
}
.hero .lead {
  font-size: 18px;
  color: #d8d4ee;
  margin: 0;
}
.hero .hero-art {
  margin-top: 26px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}

/* ---- Article body ---- */
main { max-width: var(--maxw); margin: 0 auto; padding: 36px 20px 10px; }
article h2 {
  font-size: 23px;
  line-height: 1.4;
  margin: 38px 0 12px;
  color: var(--navy);
  font-weight: 700;
}
article h3 { font-size: 19px; margin: 26px 0 10px; color: var(--navy); }
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 22px; padding-inline-start: 24px; }
article li { margin-bottom: 10px; }

blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--paper-2);
  border-inline-start: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 16px;
}
body.lang-ar blockquote { border-radius: 12px 0 0 12px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
}
th, td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: start;
}
thead th { background: var(--navy); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: var(--paper-2); }
tbody td:first-child { font-weight: 600; color: var(--navy); }

/* ---- Disclaimer block ---- */
.disclaimer {
  margin: 36px 0 8px;
  padding: 18px 20px;
  background: #fbf9f3;
  border: 1px solid #efe7cf;
  border-radius: 14px;
  font-size: 15px;
  color: #5c5436;
  line-height: 1.7;
}
.disclaimer strong { color: var(--navy); }
.disclaimer a { color: var(--mid-blue); }

/* ---- FAQ ---- */
.faq { margin: 40px 0 8px; }
.faq h2 { margin-bottom: 8px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 14px 18px 16px; color: var(--muted); }

/* ---- Sources / E-E-A-T ---- */
.sources { margin: 32px 0 8px; font-size: 14px; color: var(--muted); }
.sources h2 { font-size: 17px; }
.sources ul { padding-inline-start: 20px; }

/* ---- Related / internal links ---- */
.related { margin: 40px 0 8px; }
.related h2 { font-size: 20px; }
.related-grid { display: grid; gap: 12px; }
.related-grid a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  font-weight: 600;
  background: #fff;
}
.related-grid a:hover { border-color: var(--accent); text-decoration: none; background: var(--paper-2); }

/* ---- CTA / email capture ---- */
.cta {
  margin: 44px 0 10px;
  padding: 26px 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--navy), #2a2170);
  color: #fff;
}
.cta h2 { color: #fff; margin: 0 0 8px; font-size: 21px; }
.cta p { color: #d8d4ee; margin: 0 0 18px; font-size: 16px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-row input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.96);
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
}
.signup-row button {
  padding: 13px 22px;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}
.signup-row button:hover { background: var(--accent-2); }
.signup-row button:disabled { opacity: .6; cursor: not-allowed; }
.consent {
  margin-top: 14px;
  font-size: 13px;
  color: #cfcbe6;
  line-height: 1.6;
}
.consent a { color: var(--accent); }
.signup-msg { margin-top: 12px; font-size: 14px; min-height: 1em; }
.signup-msg.ok { color: var(--lime); }
.signup-msg.err { color: #ffd2d2; }
/* honeypot field: visually hidden, off-screen, not display:none (bots fill display:none less often) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.app-cta {
  display: inline-block;
  margin-top: 4px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
}
.app-cta:hover { background: var(--accent-2); text-decoration: none; }

/* ---- Footer with logo bottom-right (brand rule) ---- */
.site-footer {
  margin-top: 48px;
  background: var(--navy);
  color: #cfcbe6;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--accent); }
.site-footer .legal { font-size: 13px; line-height: 1.7; max-width: 70%; }
.site-footer .logo-bottom-right { /* logo anchored to the end (bottom-right LTR, bottom-left mirrors RTL) */
  margin-inline-start: auto;
  opacity: .95;
}
.site-footer .logo-bottom-right img { width: 56px; height: 56px; }

/* ---- Pillar hub list ---- */
.hub-list { display: grid; gap: 14px; margin: 8px 0 24px; }
.hub-list a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.hub-list a:hover { border-color: var(--accent); text-decoration: none; }
.hub-list .t { font-weight: 700; color: var(--navy); font-size: 18px; }
.hub-list .d { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---- Breadcrumb ---- */
.crumbs { max-width: var(--maxw); margin: 0 auto; padding: 14px 20px 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--mid-blue); }

/* ---- Responsive (mobile-first base; widen at >=560) ---- */
@media (min-width: 560px) {
  .hero h1 { font-size: 36px; }
  body { font-size: 18px; }
}
@media (max-width: 480px) {
  .site-footer .legal { max-width: 100%; }
  .signup-row button { flex: 1 1 100%; }
}

/* staging-only watermark banner (never present on a production build) */
.staging-banner {
  background: #b8881f;
  color: #1d1752;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  letter-spacing: .3px;
}
