/* Zidni website — emerald, gold and ivory from the app; Fraunces / IBM Plex for Latin, IBM Plex Sans Arabic for Arabic. */
:root {
  --bg: #F5F2EB;
  --surface: #FFFFFF;
  --ink: #16302B;
  --ink-2: #4A5E58;
  --line: #DDD5C6;
  --emerald: #0F5D52;
  --emerald-deep: #0A3B34;
  --gold: #946F2E;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0E1513; --surface: #161F1C; --ink: #ECE6D9; --ink-2: #B9C2BC; --line: #2E3A36; --emerald: #6DC2AC;
    --emerald-deep: #0A3B34; --gold: #D9B46E; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; }
[lang="ar"] body, body[lang="ar"], html[lang="ar"] body { font-family: var(--font-ar); }
a { color: var(--emerald); }
a:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: 20px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.brand img { border-radius: 9px; }
.brand .ar { font-family: var(--font-ar); font-weight: 600; font-size: 1.05rem; color: var(--ink-2); }
nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .95rem; }
nav a { text-decoration: none; color: var(--ink-2); }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
main { padding-block: 32px 56px; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; line-height: 1.2; margin: 0 0 6px; text-wrap: balance; }
html[lang="ar"] h1 { font-family: var(--font-ar); font-size: 2rem; }
h2 { font-size: 1.2rem; margin: 34px 0 8px; }
.effective { color: var(--ink-2); margin: 0 0 22px; font-size: .95rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
ul { padding-inline-start: 22px; }
li { margin-block: 4px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; }
th, td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
/* Phones: each table row becomes a small card, each cell titled with its column (data-label). */
@media (max-width: 640px) {
  .table-scroll { overflow: visible; border: 0; border-radius: 0; background: none; }
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; width: 100%; min-width: 0; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-scroll tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px; margin-bottom: 10px; }
  .table-scroll td { border: 0; padding: 6px 0; }
  .table-scroll td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
}
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-block: 10px; }
summary { cursor: pointer; font-weight: 600; }
.hero { background: var(--emerald-deep); color: #F6EFE3; border-radius: 22px; padding: 34px 26px; display: grid; gap: 14px; }
.hero h1 { color: #F6EFE3; }
.hero .ar-title { font-family: var(--font-ar); font-size: 1.6rem; font-weight: 600; margin: 0; }
.hero p { margin: 0; color: rgba(246,239,227,.85); }
.badge { display: inline-block; justify-self: start; background: #F6EFE3; color: #0A3B34; font-weight: 600; border-radius: 12px; padding: 10px 16px; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 22px; }
.grid .box h3 { margin: 0 0 4px; font-size: 1.02rem; }
.grid .box p { margin: 0; color: var(--ink-2); font-size: .95rem; }
footer { border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }
footer .wrap { padding-block: 18px 28px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
