/* ============================================================
   GratuityDue.com - Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --deep-green: #0F5B3E;
  --deep-green-700: #0a4530;
  --deep-green-50: #e8f1ec;
  --burgundy: #7A1F28;
  --burgundy-50: #f6ecee;
  --ink: #111111;
  --ink-70: #3a3a3a;
  --ink-50: #6a6a6a;
  --ink-30: #9c9c9c;
  --light-gray: #F2F4F5;
  --line: #E3E6E8;
  --line-soft: #EEF0F1;
  --bg: #FBFAF7;
  --bg-card: #FFFFFF;
  --gold: #B58E3B;

  /* Type */
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --arabic: "Noto Naskh Arabic", "Source Serif 4", serif;

  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px; --s9: 56px; --s10: 72px;
  --s11: 96px; --s12: 128px;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow: 0 1px 3px rgba(17, 17, 17, 0.05), 0 1px 2px rgba(17, 17, 17, 0.03);
  --shadow-lg: 0 8px 30px rgba(17, 17, 17, 0.07);

  --maxw: 1200px;
  --maxw-narrow: 880px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }

/* ----- Typography ----- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--deep-green);
}
.eyebrow.burgundy { color: var(--burgundy); }
.muted { color: var(--ink-50); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

/* ----- Layout ----- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s6); }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--s6); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(251, 250, 247, 0.92);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--s6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s6);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .wordmark-due { color: var(--deep-green); }
.brand .wordmark-tld {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-50);
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-left: 2px;
  align-self: center;
  padding-top: 6px;
}
.nav {
  display: flex; align-items: center; gap: var(--s7);
}
.nav a {
  font-size: 14px;
  color: var(--ink-70);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .15s;
}
.nav a:hover { color: var(--deep-green); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--deep-green);
}
.nav .ar-link {
  font-family: var(--arabic);
  font-size: 15px;
  border-left: 1px solid var(--line);
  padding-left: var(--s6);
}
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--line); padding: var(--s4) var(--s6); }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav.open a:last-child { border-bottom: 0; }
  .nav.open .ar-link { border-left: 0; padding-left: 0; }
  .nav.open a.active::after { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ============================================================
   LOGO - PNG asset
   ============================================================ */
.logo-shield {
  width: 32px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: background .15s, transform .1s, box-shadow .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--deep-green); color: #fff; }
.btn-primary:hover { background: var(--deep-green-700); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-green-outline { background: transparent; color: var(--deep-green); border: 1px solid var(--deep-green); }
.btn-green-outline:hover { background: var(--deep-green); color: #fff; }
.btn-text { padding: 4px 0; color: var(--deep-green); font-weight: 600; font-size: 14px; }
.btn-text:hover { color: var(--deep-green-700); }
.btn-text::after { content: ' ->'; transition: transform .15s; display: inline-block; }
.btn-text:hover::after { transform: translateX(3px); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s7);
}

.form-status {
  display: none;
  margin-top: var(--s4);
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--burgundy-50);
  color: var(--burgundy);
  font-size: 13px;
  line-height: 1.4;
}
.form-status.is-visible { display: block; }
[hidden] { display: none !important; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc-section {
  padding: var(--s7) 0 var(--s4);
}
.calc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s8) var(--s8) var(--s7);
  box-shadow: var(--shadow-sm);
}
.calc-card h2 {
  font-size: 28px;
  margin-bottom: var(--s7);
  font-weight: 500;
}
.calc-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) minmax(145px, 1fr) minmax(145px, 1fr) minmax(170px, 1.15fr) minmax(130px, 0.85fr);
  gap: var(--s4);
  align-items: end;
}
@media (max-width: 980px) {
  .calc-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .calc-card { padding: var(--s7) var(--s6); }
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-70);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.field-label .info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border: 1px solid var(--ink-30);
  border-radius: 50%;
  color: var(--ink-30);
  font-size: 9px;
  font-weight: 700;
  margin-left: 4px;
  cursor: help;
}
.input-row {
  display: flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
.input-row:focus-within {
  border-color: var(--deep-green);
  box-shadow: 0 0 0 3px rgba(15, 91, 62, 0.1);
}
.input-prefix {
  padding: 0 var(--s4);
  font-size: 13px;
  color: var(--ink-50);
  font-weight: 600;
  border-right: 1px solid var(--line);
  height: 100%;
  display: flex; align-items: center;
  background: var(--light-gray);
  border-radius: var(--radius) 0 0 var(--radius);
}
.input-row input {
  border: 0; outline: 0;
  background: transparent;
  padding: 0 var(--s4);
  font-size: 16px;
  width: 100%;
  height: 100%;
}
.input-row input[type="date"] {
  padding-right: var(--s3);
}
.select-row select {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 var(--s4);
  font-size: 16px;
  width: 100%;
  height: 100%;
  color: var(--ink);
  cursor: pointer;
}
.dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
.result-panel {
  grid-column: 1 / -1;
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: var(--s5) var(--s6);
  text-align: left;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 280px) max-content;
  align-items: center;
  gap: var(--s7);
}
.result-panel .result-summary {
  grid-column: 3;
  justify-self: end;
  text-align: center;
}
.result-panel .result-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  text-align: center;
}
.result-panel .result-value {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--deep-green);
  letter-spacing: -0.02em;
  margin-bottom: 0;
  line-height: 1;
}
.result-panel .result-value .currency {
  font-size: 16px;
  margin-right: 6px;
  color: var(--ink);
  font-weight: 500;
}
.result-panel .calculate-btn {
  width: 100%;
  grid-column: 2;
  background: var(--deep-green);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px;
  font-weight: 600;
  font-size: 14px;
}
.result-panel .calculate-btn:hover { background: var(--deep-green-700); }
@media (max-width: 980px) {
  .result-panel { grid-template-columns: 1fr; }
  .result-panel .result-summary { grid-column: auto; justify-self: start; }
  .result-panel .calculate-btn { grid-column: auto; }
}
.disclaimer-strip {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-50);
  flex-wrap: wrap;
  gap: var(--s3);
}
.disclaimer-strip .info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border: 1px solid var(--ink-30);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  margin-right: 8px;
  color: var(--ink-30);
  vertical-align: -3px;
}
.disclaimer-strip a {
  color: var(--deep-green);
  font-weight: 600;
}

/* Calc detail (expanded breakdown) */
.calc-details {
  margin-top: var(--s6);
  padding-top: var(--s6);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5) var(--s7);
}
@media (max-width: 760px) {
  .calc-details { grid-template-columns: repeat(2, 1fr); }
}
.calc-detail .label {
  font-size: 12px;
  color: var(--ink-50);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.calc-detail .value {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   HERO INTRO
   ============================================================ */
.hero {
  padding: var(--s10) 0 var(--s9);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s10);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
}
.hero h1 { margin-bottom: var(--s5); }
.hero p.lede { font-size: 17px; color: var(--ink-70); margin-bottom: var(--s6); max-width: 480px; }
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--light-gray);
  box-shadow: var(--shadow-soft);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   TRUST ROW
   ============================================================ */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s7);
  padding: var(--s7) var(--s7);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: var(--s4);
}
@media (max-width: 880px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: var(--s5); padding: var(--s6); }
}
.trust-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
}
.trust-item svg { width: 24px; height: 24px; color: var(--deep-green); stroke: currentColor; fill: none; stroke-width: 1.5; }
.trust-item .label { font-size: 13.5px; line-height: 1.45; color: var(--ink-70); }
.trust-item .label strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ============================================================
   RESOURCE LIBRARY
   ============================================================ */
.resource-section { padding: var(--s10) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: var(--s7);
  gap: var(--s5);
}
.section-head h2 { font-size: 28px; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
@media (max-width: 880px) {
  .article-grid { grid-template-columns: 1fr; }
}
.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d4d8db; }
.article-thumb {
  aspect-ratio: 16 / 10;
  background: var(--light-gray);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.article-thumb svg { width: 70%; height: 70%; }
.article-thumb .featured-visual {
  width: 100%;
  height: 100%;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.article-body { padding: var(--s5) var(--s6) var(--s6); display: flex; flex-direction: column; flex: 1; }
.cat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
}
.article-card h3 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: var(--s3);
  font-weight: 500;
}
.article-card .excerpt {
  font-size: 14px; color: var(--ink-70); line-height: 1.55;
  margin-bottom: var(--s5);
  flex: 1;
}
.article-meta {
  font-size: 12px; color: var(--ink-50);
  display: flex; gap: var(--s4); align-items: center;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-30); }

/* ============================================================
   SEO CONTENT SECTION
   ============================================================ */
.seo-section { padding: var(--s10) 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seo-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--s10);
}
@media (max-width: 980px) {
  .seo-grid { grid-template-columns: 1fr; }
  .seo-grid .toc { position: relative; top: 0; }
}
.toc {
  position: sticky; top: 90px;
  align-self: start;
  font-size: 13.5px;
}
.toc h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-50); margin-bottom: var(--s4); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc ol li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  border-bottom: 1px solid var(--line-soft);
}
.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  align-self: start;
  padding: 10px 10px 10px 0;
  color: var(--ink-30);
  font-weight: 600;
  text-align: right;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}
.toc a {
  color: var(--ink-70);
  display: block;
  width: auto;
  padding: 10px;
  border-left: 2px solid transparent;
  transition: all .15s;
}
.toc a:hover { color: var(--deep-green); }
.toc a.active {
  color: var(--deep-green);
  border-left-color: var(--deep-green);
  font-weight: 600;
  background: transparent;
}
.toc ol li:has(a.active) { background: var(--deep-green-50); }
.toc ol li:has(a.active)::before { color: var(--deep-green); }

.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink-70); max-width: 720px; }
.prose h2 { font-size: 30px; margin-top: var(--s9); margin-bottom: var(--s4); color: var(--ink); font-weight: 500; }
.prose h2[id] { scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-top: var(--s7); margin-bottom: var(--s3); color: var(--ink); }
.prose p { margin-bottom: var(--s5); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 var(--s5); padding-left: 1.4em; }
.prose ul li, .prose ol li { margin-bottom: 8px; }
.prose a { color: var(--deep-green); border-bottom: 1px solid var(--deep-green-50); }
.prose a:hover { border-color: var(--deep-green); }
.prose blockquote, .tip-card {
  border-left: 3px solid var(--deep-green);
  background: var(--deep-green-50);
  padding: var(--s5) var(--s6);
  margin: var(--s6) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}
.tip-card .tip-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--deep-green); margin-bottom: 6px;
}
.tip-card.burgundy { border-color: var(--burgundy); background: var(--burgundy-50); }
.tip-card.burgundy .tip-label { color: var(--burgundy); }

/* Worked example */
.example-card {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: var(--s6);
  margin: var(--s6) 0;
  font-family: var(--sans);
  font-size: 14.5px;
}
.example-card .row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.example-card .row:last-child { border-bottom: 0; }
.example-card .row.total { font-weight: 700; font-size: 16px; padding-top: 14px; }
.example-card .row.total .v { color: var(--deep-green); font-family: var(--serif); font-size: 22px; }

/* FAQ */
.faq-section { padding: var(--s10) 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: var(--s5) 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  padding: var(--s2) 0;
  gap: var(--s4);
}
.faq-q .chev {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform .25s;
}
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding-top: var(--s3);
  color: var(--ink-70);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 760px;
}
.faq-item.open .faq-a { display: block; }

/* Sources */
.sources-section { padding: var(--s10) 0; background: var(--light-gray); }
.sources-section .container { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s9); }
@media (max-width: 880px) { .sources-section .container { grid-template-columns: 1fr; gap: var(--s6); } }
.sources-list { columns: 2; column-gap: var(--s8); }
@media (max-width: 880px) { .sources-list { columns: 1; } }
.sources-list .source { break-inside: avoid; margin-bottom: var(--s4); font-size: 14px; }
.sources-list .source strong { display: block; color: var(--ink); margin-bottom: 2px; }
.sources-list .source span { color: var(--ink-50); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--deep-green);
  color: #d6e2d9;
  padding: var(--s10) 0 var(--s7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: var(--s8);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand .wordmark-due { color: #d6e2d9; }
.footer-brand .brand .wordmark-tld { color: #a0b8a8; }
.footer-brand .logo-shield {
  width: 40px;
  height: 50px;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.4));
}
.footer-brand p { font-size: 14px; color: #a8c1b1; margin-top: var(--s4); max-width: 320px; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 var(--s4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #b6cabe; }
.footer-col ul li a:hover { color: #fff; }
.footer-disclaimer { font-size: 13px; color: #9eb5a6; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--s8);
  padding-top: var(--s5);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: #9eb5a6;
  flex-wrap: wrap; gap: var(--s3);
}

/* ============================================================
   ILLUSTRATIONS - line art (UAE skyline, scales, doc)
   ============================================================ */
.illus { stroke: var(--deep-green); stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illus .accent { stroke: var(--burgundy); }
.illus-fill { fill: var(--deep-green); }

/* ============================================================
   BLOG LISTING
   ============================================================ */
.page-head { padding: var(--s10) 0 var(--s7); border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: var(--s3); }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); }
.page-head p { font-size: 18px; color: var(--ink-70); max-width: 600px; margin-top: var(--s4); }

.about-hero { padding-bottom: var(--s8); }
.policy-hero { padding-bottom: var(--s8); }
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--s9);
  align-items: start;
}
.policy-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s9);
  align-items: start;
}
.about-actions {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s6);
}
.about-scorecard {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.about-scorecard div {
  padding: 18px;
  border-radius: 8px;
  background: var(--light-gray);
}
.about-scorecard strong {
  display: block;
  color: var(--deep-green);
  margin-bottom: 6px;
  font-size: 18px;
}
.about-scorecard span {
  display: block;
  color: var(--ink-70);
  line-height: 1.5;
  font-size: 14px;
}
.policy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: var(--s6);
  box-shadow: var(--shadow-sm);
}
.policy-card strong {
  display: block;
  color: var(--deep-green);
  font-size: 20px;
  margin-bottom: 10px;
}
.policy-card span {
  color: var(--ink-70);
  line-height: 1.6;
}
.policy-card a {
  color: var(--deep-green);
  border-bottom: 1px solid var(--deep-green-50);
}
.about-band { padding: var(--s8) 0 var(--s10); }
.about-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: var(--s9);
  align-items: start;
}
.about-nav {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: var(--s5);
}
.about-nav .eyebrow { margin-bottom: var(--s4); }
.about-nav a {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-70);
  font-size: 14px;
}
.about-nav a:hover { color: var(--deep-green); }
.about-prose section { scroll-margin-top: 110px; }
.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin: var(--s7) 0;
}
.about-feature-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: var(--s5);
}
.about-feature-grid h3 {
  margin-top: 0;
  font-size: 19px;
  color: var(--deep-green);
}
.about-feature-grid p {
  margin-bottom: 0;
  font-size: 15px;
}
@media (max-width: 980px) {
  .about-hero-grid,
  .policy-hero-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-nav {
    position: static;
  }
}
@media (max-width: 760px) {
  .about-feature-grid {
    grid-template-columns: 1fr;
  }
}

.filter-tabs {
  display: flex; gap: var(--s2); flex-wrap: wrap;
  margin-top: var(--s6);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
  margin-bottom: -1px;
}
.filter-tab {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-50);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: all .15s;
  cursor: pointer;
}
.filter-tab:hover { color: var(--ink); }
.filter-tab.active { color: var(--ink); border-bottom-color: var(--deep-green); font-weight: 600; }

.pagination {
  display: flex; justify-content: center; gap: 4px;
  margin-top: var(--s9);
  padding: var(--s6) 0;
}
.pagination button {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-70);
  background: #fff;
}
.pagination button.active { background: var(--deep-green); color: #fff; border-color: var(--deep-green); }
.pagination button:hover:not(.active) { border-color: var(--ink); color: var(--ink); }
.pagination button.next { width: auto; padding: 0 14px; }
.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  border-color: var(--line);
  color: var(--ink-30);
}
.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s8);
  text-align: center;
  color: var(--ink-50);
  background: rgba(255,255,255,0.55);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}
.contact-form textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  font: inherit;
  resize: vertical;
  margin-bottom: 24px;
}
.contact-success {
  background: var(--deep-green-50);
  border-radius: 10px;
  padding: 32px;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   BLOG POST
   ============================================================ */
.post-head { padding: var(--s8) 0 var(--s7); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 13px; color: var(--ink-50); margin-bottom: var(--s5); }
.breadcrumb a { color: var(--ink-50); }
.breadcrumb a:hover { color: var(--deep-green); }
.breadcrumb .sep { margin: 0 6px; color: var(--ink-30); }
.post-head h1 { font-size: clamp(34px, 4vw, 48px); margin-top: var(--s2); margin-bottom: var(--s5); max-width: 820px; }
.post-meta { font-size: 13px; color: var(--ink-50); display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-30); }
.post-meta strong { font-weight: 600; color: var(--ink-70); }

.post-hero {
  background: var(--light-gray);
  height: 280px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  margin: var(--s7) 0;
  border: 1px solid var(--line);
}
.post-hero svg { height: 70%; }
.post-hero .featured-visual {
  width: 100%;
  height: 100%;
}
.post-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.seo-article .lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-70);
  margin-bottom: var(--s7);
}
.seo-infographic {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 28px 0;
}
.seo-infographic div,
.stat-grid div {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 18px;
}
.seo-infographic strong {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--deep-green);
  color: #fff;
  margin-bottom: 12px;
}
.seo-infographic span,
.stat-grid span {
  display: block;
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.45;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.stat-grid strong {
  display: block;
  color: var(--deep-green);
  font-size: 26px;
  margin-bottom: 8px;
}
.internal-link-box {
  margin-top: 48px;
  padding: 32px;
  background: var(--deep-green);
  border-radius: 10px;
  color: #fff;
}
.internal-link-box h2 {
  color: #fff;
  margin-bottom: 10px;
}
.internal-link-box p {
  color: #d6e2d9;
}
.internal-link-box .btn {
  background: #fff;
  color: var(--deep-green);
}
.article-faq {
  margin-top: 48px;
}
@media (max-width: 760px) {
  .seo-infographic,
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.post-body { padding: var(--s8) 0 var(--s10); }
.post-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s9);
}
@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr; gap: var(--s6); }
}

.toc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s6);
  position: sticky; top: 90px;
  align-self: start;
}
.toc-card h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-50); margin-bottom: var(--s4); }
.toc-card ol { list-style: none; padding: 0; margin: 0; counter-reset: toc2; font-size: 13.5px; }
.toc-card ol li {
  counter-increment: toc2;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  border-bottom: 1px solid var(--line-soft);
}
.toc-card ol li:last-child { border-bottom: 0; }
.toc-card ol li::before {
  content: counter(toc2) ".";
  align-self: start;
  padding: 10px 10px 10px 0;
  color: var(--ink-30);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.toc-card a {
  color: var(--ink-70);
  display: block;
  width: auto;
  padding: 10px;
  border-left: 2px solid transparent;
  transition: all .15s;
}
.toc-card a:hover { color: var(--deep-green); }
.toc-card a.active {
  color: var(--deep-green);
  border-left-color: var(--deep-green);
  font-weight: 600;
  background: transparent;
}
.toc-card ol li:has(a.active) { background: var(--deep-green-50); }
.toc-card ol li:has(a.active)::before { color: var(--deep-green); }
@media (max-width: 980px) {
  .toc-card { position: static; top: auto; }
}

.related-section { background: var(--light-gray); padding: var(--s9) 0; }

/* ============================================================
   UAE LABOUR LAW PAGE
   ============================================================ */
.law-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s9);
  padding: var(--s8) 0 var(--s10);
}
@media (max-width: 980px) {
  .law-grid { grid-template-columns: 1fr; gap: var(--s6); }
}
.chapter-nav { position: sticky; top: 90px; align-self: start; }
.chapter-nav h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-50); margin-bottom: var(--s4); }
.chapter-nav ol { list-style: none; padding: 0; margin: 0; counter-reset: chap; }
.chapter-nav ol li { counter-increment: chap; }
.chapter-nav ol li a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-70);
  border-left: 2px solid transparent;
  transition: all .15s;
}
.chapter-nav ol li a::before {
  content: counter(chap, decimal-leading-zero);
  color: var(--ink-30);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.chapter-nav ol li a:hover { color: var(--ink); }
.chapter-nav ol li a.active { color: var(--deep-green); border-left-color: var(--deep-green); font-weight: 600; background: var(--deep-green-50); }
.chapter-nav ol li a.active::before { color: var(--deep-green); }
@media (max-width: 980px) {
  .chapter-nav { position: static; top: auto; }
}

.law-content h2 { font-size: 32px; margin-bottom: var(--s2); }
.law-content .law-subtitle { font-size: 17px; color: var(--ink-70); margin-bottom: var(--s7); max-width: 620px; }
.law-chapter-section {
  scroll-margin-top: 110px;
  padding-bottom: var(--s8);
  margin-bottom: var(--s8);
  border-bottom: 1px solid var(--line);
}
.law-chapter-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.law-chapter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 8px;
}
.law-actions {
  margin-top: var(--s8);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.article-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s7);
  margin-bottom: var(--s5);
}
.article-box .article-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--burgundy);
  margin-bottom: var(--s3);
}
.article-box h3 { font-size: 22px; margin-bottom: var(--s4); }
.article-box p { font-size: 15.5px; color: var(--ink-70); line-height: 1.65; }
.article-box ul { font-size: 15.5px; color: var(--ink-70); line-height: 1.7; }
.article-box .plain-language {
  background: var(--deep-green-50);
  border-radius: var(--radius);
  padding: var(--s5);
  margin-top: var(--s5);
}
.article-box .plain-language .pl-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--deep-green);
  margin-bottom: 6px;
}
.article-box .plain-language p { color: var(--ink); margin: 0; font-size: 14.5px; }

/* ============================================================
   RTL (Arabic)
   ============================================================ */
html[dir="rtl"] body { font-family: var(--arabic); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: var(--arabic);
  letter-spacing: 0;
}
html[dir="rtl"] .nav .ar-link { border-left: 0; border-right: 1px solid var(--line); padding-left: 0; padding-right: var(--s6); }
html[dir="rtl"] .input-prefix { border-right: 0; border-left: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
html[dir="rtl"] .tip-card, html[dir="rtl"] .prose blockquote { border-left: 0; border-right: 3px solid var(--deep-green); border-radius: var(--radius) 0 0 var(--radius); }
html[dir="rtl"] .chapter-nav ol li a { border-left: 0; border-right: 2px solid transparent; }
html[dir="rtl"] .chapter-nav ol li a.active { border-right-color: var(--deep-green); }
html[dir="rtl"] .btn-text::after { content: ' ->'; }
html[dir="rtl"] .article-meta { direction: rtl; }
