/* Aleem window identity: generated by tools/join_styles.py from fonts.css, aleem-mukhtalif.css, dhakaa.css, annabi-dhahabi.css, akhdar-dhahabi.css, mawthooq.css, motion.css.
   Edit those files, then run the tool again; a unit test fails while this file is out of date. */

/* ---- fonts.css ---- */
/* Noto Naskh Arabic, SIL Open Font License 1.1 (fonts/OFL.txt). Relative paths, never /fonts/. */
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:400;src:url("../fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-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 Naskh Arabic";font-style:normal;font-display:swap;font-weight:500;src:url("../fonts/noto-naskh-arabic-arabic-500-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-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 Naskh Arabic";font-style:normal;font-display:swap;font-weight:600;src:url("../fonts/noto-naskh-arabic-arabic-600-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-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 Naskh Arabic";font-style:normal;font-display:swap;font-weight:700;src:url("../fonts/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-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 Naskh Arabic";font-style:normal;font-display:swap;font-weight:400;src:url("../fonts/noto-naskh-arabic-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:500;src:url("../fonts/noto-naskh-arabic-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:600;src:url("../fonts/noto-naskh-arabic-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:700;src:url("../fonts/noto-naskh-arabic-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:400;src:url("../fonts/noto-naskh-arabic-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:500;src:url("../fonts/noto-naskh-arabic-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:600;src:url("../fonts/noto-naskh-arabic-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:700;src:url("../fonts/noto-naskh-arabic-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---- aleem-mukhtalif.css ---- */
/* Aleem different style (نمط عليم المختلف), the default: deep navy with a gold line (night),
   champagne with navy (day). Identity only, taken from Aleem v1.0.0; none of its functions.
   Part of the Aleem identity package v1.0.0. Self-contained: it defines every value of the shared schema
   (31 values) for each of its modes and borrows nothing from another style. Components read only these
   names (hsl(var(--primary)), var(--radius) ...), never a colour of their own.
   Selected by <html data-style="aleem-mukhtalif" data-mode="..."> through identity.js. */

/* night: also the safe default when no style, an unknown style, or a missing file is met */
:root,
:root[data-style="aleem-mukhtalif"],
:root[data-style="aleem-mukhtalif"][data-mode="night"] {
  --background: 216 72% 9%;
  --foreground: 43 50% 89%;
  --card: 216 62% 13%;
  --card-foreground: 43 50% 89%;
  --popover: 216 62% 13%;
  --popover-foreground: 43 50% 89%;
  --primary: 41 68% 55%;
  --primary-foreground: 216 80% 9%;
  --secondary: 215 48% 19%;
  --secondary-foreground: 42 30% 88%;
  --muted: 215 44% 17%;
  --muted-foreground: 40 16% 62%;
  --accent: 213 46% 21%;
  --accent-foreground: 42 42% 90%;
  --destructive: 0 62% 50%;
  --destructive-foreground: 0 0% 98%;
  --border: 214 38% 23%;
  --input: 214 38% 26%;
  --ring: 41 68% 55%;
  --signature: 41 68% 55%;
  --signature-text: 41 68% 55%;
  --deep: 218 80% 6%;
  --header: 216 72% 9%;
  --header-foreground: 43 50% 89%;
  --radius: 1.25rem;
  --radius-tile: 24%;
  --leading: 1.9;
  --glow-low: 0.35;
  --glow-high: 0.55;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* day */
:root[data-style="aleem-mukhtalif"][data-mode="day"] {
  --background: 42 45% 91%;
  --foreground: 216 68% 14%;
  --card: 44 50% 97%;
  --card-foreground: 216 68% 14%;
  --popover: 45 55% 98%;
  --popover-foreground: 216 68% 14%;
  --primary: 38 62% 42%;
  --primary-foreground: 216 68% 14%;
  --secondary: 42 30% 89%;
  --secondary-foreground: 216 58% 20%;
  --muted: 42 28% 88%;
  --muted-foreground: 216 18% 40%;
  --accent: 40 36% 86%;
  --accent-foreground: 216 68% 16%;
  --destructive: 0 68% 46%;
  --destructive-foreground: 0 0% 98%;
  --border: 40 22% 81%;
  --input: 40 22% 79%;
  --ring: 38 62% 42%;
  --signature: 38 62% 42%;
  --signature-text: 38 62% 33%;
  --deep: 216 68% 13%;
  --header: 42 45% 91%;
  --header-foreground: 216 68% 14%;
  --radius: 1.25rem;
  --radius-tile: 24%;
  --leading: 1.9;
  --glow-low: 0.35;
  --glow-high: 0.55;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* ---- dhakaa.css ---- */
/* Dhakaa style (نمط ذكاء): white paper, navy band and orange accent, from the colour system v3.
   Part of the Aleem identity package v1.0.0. Self-contained: it defines every value of the shared schema
   (31 values) for each of its modes and borrows nothing from another style. Components read only these
   names (hsl(var(--primary)), var(--radius) ...), never a colour of their own.
   Selected by <html data-style="dhakaa" data-mode="..."> through identity.js. */

/* day only: data-mode is ignored here, so a night choice cannot leave it half applied */
:root[data-style="dhakaa"] {
  --background: 0 0% 100%;
  --foreground: 214 19% 14%;
  --card: 0 0% 100%;
  --card-foreground: 214 19% 14%;
  --popover: 0 0% 100%;
  --popover-foreground: 214 19% 14%;
  --primary: 213 73% 22%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 17% 95%;
  --secondary-foreground: 213 73% 22%;
  --muted: 210 22% 93%;
  --muted-foreground: 215 12% 40%;
  --accent: 30 80% 94%;
  --accent-foreground: 214 19% 14%;
  --destructive: 26 90% 37%;
  --destructive-foreground: 0 0% 100%;
  --border: 216 23% 91%;
  --input: 213 21% 81%;
  --ring: 28 80% 52%;
  --signature: 28 80% 52%;
  --signature-text: 26 90% 37%;
  --deep: 213 73% 22%;
  --header: 213 73% 22%;
  --header-foreground: 0 0% 100%;
  --radius: 0.8rem;
  --radius-tile: 0.7rem;
  --leading: 1.75;
  --glow-low: 0;
  --glow-high: 0;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* ---- annabi-dhahabi.css ---- */
/* ذكاء العنابي الذهبي (annabi-dhahabi), Aleem 2.1.2, change C-14: from the Dhakaa Al-Abayat store: wine #6B1520, gold #D4AF37, cream #F3E6C8 (css/brand.css, css/store.css).
   Part of the Aleem identity package. Self-contained: it defines every value of the shared schema for each of
   its two modes, night and day, and borrows nothing from another style. Components read only these names.
   Selected by <html data-style="annabi-dhahabi" data-mode="..."> through identity.js. */

/* night */
:root[data-style="annabi-dhahabi"],
:root[data-style="annabi-dhahabi"][data-mode="night"] {
  --background: 347 82% 4%;
  --foreground: 42 64% 87%;
  --card: 349 64% 9%;
  --card-foreground: 42 64% 87%;
  --popover: 349 64% 9%;
  --popover-foreground: 42 64% 87%;
  --primary: 46 65% 52%;
  --primary-foreground: 353 53% 7%;
  --secondary: 351 57% 15%;
  --secondary-foreground: 42 64% 87%;
  --muted: 352 62% 10%;
  --muted-foreground: 35 38% 66%;
  --accent: 352 67% 25%;
  --accent-foreground: 40 72% 87%;
  --destructive: 350 73% 44%;
  --destructive-foreground: 0 0% 100%;
  --border: 22 38% 25%;
  --input: 23 38% 30%;
  --ring: 46 65% 52%;
  --signature: 46 65% 52%;
  --signature-text: 45 67% 63%;
  --deep: 354 83% 2%;
  --header: 347 82% 4%;
  --header-foreground: 42 64% 87%;
  --radius: 1.1rem;
  --radius-tile: 22%;
  --leading: 1.9;
  --glow-low: 0.3;
  --glow-high: 0.5;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* day */
:root[data-style="annabi-dhahabi"][data-mode="day"] {
  --background: 39 59% 93%;
  --foreground: 352 71% 13%;
  --card: 40 100% 98%;
  --card-foreground: 352 71% 13%;
  --popover: 40 100% 98%;
  --popover-foreground: 352 71% 13%;
  --primary: 352 67% 25%;
  --primary-foreground: 40 72% 87%;
  --secondary: 39 57% 87%;
  --secondary-foreground: 352 68% 17%;
  --muted: 39 52% 87%;
  --muted-foreground: 18 31% 33%;
  --accent: 41 56% 81%;
  --accent-foreground: 352 71% 13%;
  --destructive: 351 75% 40%;
  --destructive-foreground: 0 0% 100%;
  --border: 40 50% 77%;
  --input: 40 45% 73%;
  --ring: 355 68% 32%;
  --signature: 44 63% 44%;
  --signature-text: 42 79% 27%;
  --deep: 352 71% 13%;
  --header: 39 59% 93%;
  --header-foreground: 352 71% 13%;
  --radius: 1.1rem;
  --radius-tile: 22%;
  --leading: 1.9;
  --glow-low: 0.3;
  --glow-high: 0.5;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* ---- akhdar-dhahabi.css ---- */
/* ذكاء الأخضر الذهبي (akhdar-dhahabi), Aleem 2.1.4, change C-26: a deep green with the same gold as
   ذكاء العنابي الذهبي, so the gold styles come in more than one colour (the owner's choice, 20 October 2026).
   Part of the Aleem identity package. Self-contained: it defines every value of the shared schema for each of
   its two modes, night and day, and borrows nothing from another style. Components read only these names.
   Selected by <html data-style="akhdar-dhahabi" data-mode="..."> through identity.js. */

/* night */
:root[data-style="akhdar-dhahabi"],
:root[data-style="akhdar-dhahabi"][data-mode="night"] {
  --background: 158 70% 4%;
  --foreground: 42 64% 87%;
  --card: 157 58% 8%;
  --card-foreground: 42 64% 87%;
  --popover: 157 58% 8%;
  --popover-foreground: 42 64% 87%;
  --primary: 46 65% 52%;
  --primary-foreground: 158 60% 6%;
  --secondary: 156 45% 14%;
  --secondary-foreground: 42 64% 87%;
  --muted: 157 50% 9%;
  --muted-foreground: 40 30% 66%;
  --accent: 156 55% 21%;
  --accent-foreground: 40 72% 87%;
  --destructive: 350 73% 44%;
  --destructive-foreground: 0 0% 100%;
  --border: 100 22% 24%;
  --input: 100 22% 29%;
  --ring: 46 65% 52%;
  --signature: 46 65% 52%;
  --signature-text: 45 67% 63%;
  --deep: 160 80% 2%;
  --header: 158 70% 4%;
  --header-foreground: 42 64% 87%;
  --radius: 1.1rem;
  --radius-tile: 22%;
  --leading: 1.9;
  --glow-low: 0.3;
  --glow-high: 0.5;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* day */
:root[data-style="akhdar-dhahabi"][data-mode="day"] {
  --background: 48 45% 93%;
  --foreground: 158 65% 12%;
  --card: 48 80% 98%;
  --card-foreground: 158 65% 12%;
  --popover: 48 80% 98%;
  --popover-foreground: 158 65% 12%;
  --primary: 158 60% 21%;
  --primary-foreground: 42 72% 88%;
  --secondary: 48 40% 86%;
  --secondary-foreground: 158 60% 15%;
  --muted: 48 35% 86%;
  --muted-foreground: 150 22% 28%;
  --accent: 46 50% 80%;
  --accent-foreground: 158 65% 12%;
  --destructive: 351 75% 40%;
  --destructive-foreground: 0 0% 100%;
  --border: 46 35% 76%;
  --input: 46 30% 72%;
  --ring: 158 55% 27%;
  --signature: 44 63% 44%;
  --signature-text: 42 79% 27%;
  --deep: 158 65% 12%;
  --header: 48 45% 93%;
  --header-foreground: 158 65% 12%;
  --radius: 1.1rem;
  --radius-tile: 22%;
  --leading: 1.9;
  --glow-low: 0.3;
  --glow-high: 0.5;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* ---- mawthooq.css ---- */
/* الذكاء الموثوق (mawthooq), Aleem 2.1.2, change C-15: from the Trusted Intelligence identity: navy #000C24, cyan #00F0FC, gold #FEAF14, and its golden Thuluth wordmark (assets/wordmark-thuluth.png).
   Part of the Aleem identity package. Self-contained: it defines every value of the shared schema for each of
   its two modes, night and day, and borrows nothing from another style. Components read only these names.
   Selected by <html data-style="mawthooq" data-mode="..."> through identity.js. */

/* night */
:root[data-style="mawthooq"],
:root[data-style="mawthooq"][data-mode="night"] {
  --background: 220 100% 7%;
  --foreground: 217 100% 96%;
  --card: 218 82% 13%;
  --card-foreground: 217 100% 96%;
  --popover: 218 82% 13%;
  --popover-foreground: 217 100% 96%;
  --primary: 40 99% 54%;
  --primary-foreground: 220 100% 7%;
  --secondary: 217 76% 18%;
  --secondary-foreground: 217 100% 96%;
  --muted: 219 80% 14%;
  --muted-foreground: 216 35% 72%;
  --accent: 183 100% 49%;
  --accent-foreground: 220 100% 7%;
  --destructive: 358 75% 59%;
  --destructive-foreground: 220 100% 7%;
  --border: 219 58% 25%;
  --input: 220 56% 31%;
  --ring: 183 100% 49%;
  --signature: 40 99% 54%;
  --signature-text: 40 99% 64%;
  --deep: 226 100% 5%;
  --header: 220 100% 7%;
  --header-foreground: 217 100% 96%;
  --radius: 0.9rem;
  --radius-tile: 18%;
  --leading: 1.85;
  --glow-low: 0.3;
  --glow-high: 0.5;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* day */
:root[data-style="mawthooq"][data-mode="day"] {
  --background: 213 60% 97%;
  --foreground: 220 100% 7%;
  --card: 0 0% 100%;
  --card-foreground: 220 100% 7%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 100% 7%;
  --primary: 219 100% 18%;
  --primary-foreground: 0 0% 100%;
  --secondary: 215 54% 93%;
  --secondary-foreground: 219 100% 18%;
  --muted: 216 48% 94%;
  --muted-foreground: 218 23% 37%;
  --accent: 183 85% 90%;
  --accent-foreground: 203 100% 14%;
  --destructive: 358 67% 46%;
  --destructive-foreground: 0 0% 100%;
  --border: 215 37% 87%;
  --input: 216 39% 84%;
  --ring: 183 100% 26%;
  --signature: 41 100% 39%;
  --signature-text: 40 100% 24%;
  --deep: 220 100% 7%;
  --header: 213 60% 97%;
  --header-foreground: 220 100% 7%;
  --radius: 0.9rem;
  --radius-tile: 18%;
  --leading: 1.85;
  --glow-low: 0.3;
  --glow-high: 0.5;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* ---- motion.css ---- */
/* Aleem motion, shared by every style. Glow strength comes from the style (--glow-low, --glow-high),
   so a style without glow sets both to 0 and keeps the same movement. */
@keyframes alm-brain-pulse {
  0%, 100% { transform: scale(0.94); filter: drop-shadow(0 0 8px hsl(var(--signature) / var(--glow-low))); }
  50% { transform: scale(1.07); filter: drop-shadow(0 0 24px hsl(var(--signature) / var(--glow-high))); }
}
@keyframes alm-glow {
  0%, 100% { filter: drop-shadow(0 0 14px hsl(var(--signature) / var(--glow-low))); }
  50% { filter: drop-shadow(0 0 30px hsl(var(--signature) / var(--glow-high))); }
}
@keyframes alm-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes alm-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes alm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.alm-brain-pulse { animation: alm-brain-pulse 0.8s ease-in-out infinite; }
.alm-glow { animation: alm-glow 3s ease-in-out infinite; }
.alm-wave-bar { animation: alm-wave 1.1s ease-in-out infinite; transform-origin: center; }
.alm-typing-dot { animation: alm-typing 1.2s ease-in-out infinite; }
.alm-rise { animation: alm-rise 0.35s ease both; }
@media (prefers-reduced-motion: reduce) {
  .alm-brain-pulse, .alm-glow, .alm-wave-bar, .alm-typing-dot, .alm-rise { animation: none; }
}
