/* Noto Sans Arabic, self-hosted (variable weight 400 to 800): the same letters on every phone, no request to Google, works offline. */
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/noto-sans-arabic/arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/noto-sans-arabic/latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Sanadi colour system. Three families with a nine-step scale each, plus status colours.
 * Rules: gold-500 is decoration only (lines, dots, soft fills); text in gold uses 700+.
 * Body text neutral-800, muted text neutral-600 (both AA on white and on the ground).
 * Contrast was measured, not guessed: every text pairing in use is 4.5:1 or better.
 * Nothing outside this file should write a colour value of its own. */
:root {
  --green-50: #f1f9f6;
  --green-100: #e2f3ee;
  --green-200: #c2e5dc;
  --green-300: #95d0c1;
  --green-400: #4ab59c;
  --green-500: #208872;
  --green-600: #176b57;
  --green-700: #135744;
  --green-800: #0f4538;
  --green-900: #0b3128;
  --gold-50: #fcf8ee;
  --gold-100: #f7edd3;
  --gold-200: #edd9ab;
  --gold-300: #dfbc77;
  --gold-400: #d2a956;
  --gold-500: #c99a3d;
  --gold-600: #9d7325;
  --gold-700: #7c5718;
  --gold-800: #5b3e10;
  --gold-900: #3d290a;
  --neutral-0: #ffffff;
  --neutral-50: #f6f4ee;
  --neutral-100: #eeece3;
  --neutral-200: #e2dfd3;
  --neutral-300: #cfcbbd;
  --neutral-400: #a8a597;
  --neutral-500: #7d7a6d;
  --neutral-600: #5f5c51;
  --neutral-700: #46443b;
  --neutral-800: #2f2e28;
  --neutral-900: #1c1c18;
  --danger-50: #fdeeed;
  --danger-100: #f9dad7;
  --danger-500: #d95656;
  --danger-600: #b3362f;
  --danger-700: #8f2a25;
  --info-50: #e8f3f7;
  --info-100: #d2e8ef;
  --info-600: #2f7c97;
  --info-700: #25617a;

  /* Roles: what a colour is for, so a page says "text" or "border", never a shade. */
  --font-sans: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --radius-card: 12px; --radius-field: 8px; --radius-button: 10px;
  --shadow-card: 0 1px 3px rgba(18, 61, 51, 0.07), 0 6px 16px rgba(18, 61, 51, 0.05);
  --color-ground: var(--neutral-50);
  --color-surface: #fff;
  --color-text: var(--neutral-800);
  --color-heading: var(--green-800);
  --color-muted: var(--neutral-600);
  --color-border: var(--neutral-200);
  --color-primary: var(--green-600);
  --color-primary-strong: var(--green-700);
  --color-accent: var(--gold-500);
  --color-accent-soft: var(--gold-100);
  --color-accent-text: var(--gold-700);

  /* Older names, kept so existing rules follow the new system. */
  --quran-primary: var(--green-600);
  --quran-primary-dark: var(--green-800);
  --quran-accent: var(--gold-500);
  --quran-ink: var(--green-900);
  --quran-surface: var(--neutral-50);
  --quran-gold: var(--gold-500);
  --quran-gold-deep: var(--gold-700);
  --quran-gold-soft: var(--gold-100);
  --quran-ground: var(--neutral-50);
  --quran-text: var(--neutral-800);
  --quran-heading: var(--green-800);
  --quran-muted: var(--neutral-600);
}
