/* ============================================================
   Lawyers — design tokens
   "Judicial ledger" identity: navy ink + antique brass seal accent,
   ruled hairlines evoking a bound registry, not a generic SaaS look.
   ============================================================ */

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/NotoNaskhArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/NotoNaskhArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/NotoNaskhArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/NotoSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/NotoSansArabic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/NotoSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/NotoSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Sidebar is a fixed brand rail, not a themed surface: it stays navy
     ink with light text regardless of prefers-color-scheme/data-theme.
     Declared once here, outside the dark-mode overrides below, so it
     never inherits the --ink-950/--paper-50 flip those blocks apply. */
  --sidebar-bg: #12203a;
  --sidebar-border: rgba(255, 255, 255, 0.06);
  --sidebar-text: rgba(255, 255, 255, 0.78);
  --sidebar-text-strong: #ffffff;
  --sidebar-text-muted: #8a9cb2;
  --sidebar-brass: #cba86c;
  --sidebar-brass-line: #a9793b;
  --sidebar-active-bg: rgba(203, 168, 108, 0.12);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
  --sidebar-field-bg: rgba(255, 255, 255, 0.05);
  --sidebar-field-border: rgba(255, 255, 255, 0.08);
  --sidebar-card-border: rgba(255, 255, 255, 0.1);

  /* type */
  --font-display: "Noto Naskh Arabic", "Traditional Arabic", serif;
  --font-body: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --scale-xs: 0.75rem;
  --scale-sm: 0.8125rem;
  --scale-base: 0.9375rem;
  --scale-md: 1.0625rem;
  --scale-lg: 1.3125rem;
  --scale-xl: 1.75rem;
  --scale-2xl: 2.25rem;

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

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

  /* ---- light theme (default) ---- */
  --ink-950: #12203a;
  --ink-800: #1b3153;
  --ink-700: #24405f;
  --ink-500: #4a6480;
  --ink-300: #8a9cb2;

  --brass-700: #7c5a2a;
  --brass-500: #a9793b;
  --brass-300: #cba86c;
  --brass-100: #f1e4cb;

  --paper-0: #ffffff;
  --paper-50: #f6f6f1;
  --paper-100: #eeede4;
  --line-200: #dcdcd0;
  --line-300: #c7c6b8;

  --text-primary: var(--ink-950);
  --text-secondary: var(--ink-500);
  --text-on-accent: #fff8ec;

  --status-senior-bg: #e4efe6;
  --status-senior-fg: #2f6f4e;
  --status-trainee-bg: #f4ecd9;
  --status-trainee-fg: #8a6d1e;
  --status-pending-bg: #eaeef4;
  --status-pending-fg: #4a6480;
  --status-suspended-bg: #f7e4d6;
  --status-suspended-fg: #b4501e;
  --status-disbarred-bg: #f6dede;
  --status-disbarred-fg: #8b2e2e;
  --status-neutral-bg: #e9e9e4;
  --status-neutral-fg: #5b6472;

  --secret-bg: #2a1414;
  --secret-fg: #f2d9d9;

  --shadow-card: 0 1px 2px rgba(18, 32, 58, 0.06), 0 4px 16px rgba(18, 32, 58, 0.05);
  --shadow-modal: 0 12px 40px rgba(9, 15, 26, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink-950: #eef1f6;
    --ink-800: #d7dee8;
    --ink-700: #b9c4d4;
    --ink-500: #91a0b6;
    --ink-300: #5c6c84;

    --brass-700: #e2bd82;
    --brass-500: #c89a5c;
    --brass-300: #96723c;
    --brass-100: #2c2312;

    --paper-0: #101a2b;
    --paper-50: #0b1420;
    --paper-100: #172538;
    --line-200: #2a3b52;
    --line-300: #37485f;

    --text-primary: var(--ink-950);
    --text-secondary: var(--ink-500);
    --text-on-accent: #1a1206;

    --status-senior-bg: #163627;
    --status-senior-fg: #7bd6a4;
    --status-trainee-bg: #3a3116;
    --status-trainee-fg: #e0c064;
    --status-pending-bg: #1c2a3c;
    --status-pending-fg: #9fb3cc;
    --status-suspended-bg: #3a2416;
    --status-suspended-fg: #e69a63;
    --status-disbarred-bg: #3a1a1a;
    --status-disbarred-fg: #e88888;
    --status-neutral-bg: #262b33;
    --status-neutral-fg: #a7afba;

    --secret-bg: #431e1e;
    --secret-fg: #f6dcdc;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --ink-950: #eef1f6;
  --ink-800: #d7dee8;
  --ink-700: #b9c4d4;
  --ink-500: #91a0b6;
  --ink-300: #5c6c84;
  --brass-700: #e2bd82;
  --brass-500: #c89a5c;
  --brass-300: #96723c;
  --brass-100: #2c2312;
  --paper-0: #101a2b;
  --paper-50: #0b1420;
  --paper-100: #172538;
  --line-200: #2a3b52;
  --line-300: #37485f;
  --text-primary: var(--ink-950);
  --text-secondary: var(--ink-500);
  --text-on-accent: #1a1206;
  --status-senior-bg: #163627;
  --status-senior-fg: #7bd6a4;
  --status-trainee-bg: #3a3116;
  --status-trainee-fg: #e0c064;
  --status-pending-bg: #1c2a3c;
  --status-pending-fg: #9fb3cc;
  --status-suspended-bg: #3a2416;
  --status-suspended-fg: #e69a63;
  --status-disbarred-bg: #3a1a1a;
  --status-disbarred-fg: #e88888;
  --status-neutral-bg: #262b33;
  --status-neutral-fg: #a7afba;
  --secret-bg: #431e1e;
  --secret-fg: #f6dcdc;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.55);
}

:root[data-theme="light"] {
  --ink-950: #12203a;
  --ink-800: #1b3153;
  --ink-700: #24405f;
  --ink-500: #4a6480;
  --ink-300: #8a9cb2;
  --brass-700: #7c5a2a;
  --brass-500: #a9793b;
  --brass-300: #cba86c;
  --brass-100: #f1e4cb;
  --paper-0: #ffffff;
  --paper-50: #f6f6f1;
  --paper-100: #eeede4;
  --line-200: #dcdcd0;
  --line-300: #c7c6b8;
  --text-primary: var(--ink-950);
  --text-secondary: var(--ink-500);
  --text-on-accent: #fff8ec;
  --status-senior-bg: #e4efe6;
  --status-senior-fg: #2f6f4e;
  --status-trainee-bg: #f4ecd9;
  --status-trainee-fg: #8a6d1e;
  --status-pending-bg: #eaeef4;
  --status-pending-fg: #4a6480;
  --status-suspended-bg: #f7e4d6;
  --status-suspended-fg: #b4501e;
  --status-disbarred-bg: #f6dede;
  --status-disbarred-fg: #8b2e2e;
  --status-neutral-bg: #e9e9e4;
  --status-neutral-fg: #5b6472;
  --secret-bg: #2a1414;
  --secret-fg: #f2d9d9;
  --shadow-card: 0 1px 2px rgba(18, 32, 58, 0.06), 0 4px 16px rgba(18, 32, 58, 0.05);
  --shadow-modal: 0 12px 40px rgba(9, 15, 26, 0.35);
}
