/*
 * Meetem design tokens — the one place colours, type, spacing, radii, shadows and motion are
 * defined. Served by both apps at /_content/Meetem.Meeting/css/meetem-tokens.css.
 *
 * Three layers:
 *   1. primitives  (--mt-navy-900, --mt-teal-400 …)  raw values, never used directly in pages
 *   2. semantic    (--mt-surface, --mt-text, --mt-accent …)  what pages and components use
 *   3. room        (--mt-tile-bg, --mt-control-bg …)  the call screen
 *
 * The brand is Meetem's own: the teal and deep navy of its logo. A partner room may set
 * --mt-brand / --mt-on-brand (clinic colour and the readable text colour for it); nothing else
 * changes, so contrast stays inside the system.
 *
 * tests/js/meetem-tokens.test.cjs reads this file and checks every text/background pair below
 * against WCAG 2.1 AA.
 */

@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/ibm-plex-sans-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: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(../fonts/ibm-plex-sans-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: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/ibm-plex-sans-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: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(../fonts/ibm-plex-sans-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: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/ibm-plex-sans-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: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(../fonts/ibm-plex-sans-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: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/ibm-plex-sans-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: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(../fonts/ibm-plex-sans-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; }

:root {
  /* ── 1. Primitives ─────────────────────────────────────────────── */
  --mt-navy-950: #070D18;
  --mt-navy-900: #0B1322;
  --mt-navy-850: #0F1A2D;
  --mt-navy-800: #14213A;
  --mt-navy-700: #1D2E4D;
  --mt-navy-600: #2A3F63;
  --mt-navy-500: #3D557E;
  --mt-slate-100: #EEF2F7;
  --mt-slate-200: #DCE3EC;
  --mt-slate-300: #B8C4D4;
  --mt-slate-400: #93A3B8;
  --mt-slate-500: #6E8098;
  --mt-teal-200: #9BE5EA;
  --mt-teal-300: #5FD3DB;
  --mt-teal-400: #2CBFC9;
  --mt-teal-500: #17A5B0;
  --mt-teal-700: #0A6971;
  --mt-red-300: #FCA5A5;
  --mt-red-600: #DC2626;
  --mt-red-700: #B91C1C;
  --mt-amber-300: #FCD34D;
  --mt-amber-700: #92400E;
  --mt-green-300: #86EFAC;
  --mt-green-700: #15803D;
  --mt-white: #FFFFFF;

  /* ── 2. Semantic ───────────────────────────────────────────────── */
  --mt-page: var(--mt-navy-950);
  --mt-surface: var(--mt-navy-900);
  --mt-surface-raised: var(--mt-navy-800);
  --mt-surface-hover: var(--mt-navy-700);
  --mt-scrim: rgba(7, 13, 24, 0.82);
  --mt-border: var(--mt-navy-600);
  --mt-border-strong: var(--mt-slate-500);
  --mt-text: var(--mt-slate-100);
  --mt-text-muted: var(--mt-slate-300);
  --mt-text-subtle: var(--mt-slate-400);
  --mt-accent: var(--mt-teal-400);
  --mt-accent-hover: var(--mt-teal-300);
  --mt-accent-soft: rgba(44, 191, 201, 0.14);
  --mt-on-accent: var(--mt-navy-950);
  --mt-link: var(--mt-teal-300);
  --mt-danger: var(--mt-red-600);
  --mt-danger-hover: var(--mt-red-700);
  --mt-on-danger: var(--mt-white);
  --mt-danger-text: var(--mt-red-300);
  --mt-danger-soft: rgba(220, 38, 38, 0.16);
  --mt-warning-text: var(--mt-amber-300);
  --mt-warning-soft: rgba(252, 211, 77, 0.12);
  --mt-warning-solid: var(--mt-amber-700);
  --mt-success-text: var(--mt-green-300);
  --mt-success-soft: rgba(134, 239, 172, 0.12);
  --mt-success-solid: var(--mt-green-700);
  --mt-focus: var(--mt-teal-200);
  /* Words in the accent colour (icons, small labels, a link being hovered), the strong and the
     usual tone; a line that only separates; a frosted pane. meetem-tokens-light.css redefines them. */
  --mt-accent-strong: var(--mt-teal-200);
  --mt-accent-text: var(--mt-teal-300);
  --mt-hairline: rgba(255, 255, 255, 0.08);
  --mt-hairline-strong: rgba(255, 255, 255, 0.16);
  --mt-btn-hover: var(--mt-navy-600);
  --mt-field-hover: var(--mt-slate-300);
  --mt-meter-bg: var(--mt-navy-700);
  --mt-skeleton-a: var(--mt-navy-850);
  --mt-skeleton-b: var(--mt-navy-700);
  --mt-grip: var(--mt-navy-500);
  --mt-glass: rgba(11, 19, 34, 0.72);
  --mt-glass-line: rgba(255, 255, 255, 0.09);
  --mt-glow: rgba(44, 191, 201, 0.16);
  --mt-glow-edge: rgba(44, 191, 201, 0.5);
  --mt-aurora-1: rgba(23, 165, 176, 0.26);
  --mt-aurora-2: rgba(61, 85, 126, 0.40);
  --mt-aurora-3: rgba(95, 211, 219, 0.12);
  --mt-dust: rgba(95, 211, 219, 0.70);
  --mt-dust-line: rgba(95, 211, 219, 0.16);
  /* A partner room's clinic colour (set inline on <html> by _RoomHead) and the text that reads on it. */
  --mt-brand: var(--mt-accent);
  --mt-on-brand: var(--mt-on-accent);

  /* ── 3. Room ───────────────────────────────────────────────────── */
  --mt-stage-bg: #05090F;
  --mt-tile-bg: var(--mt-navy-850);
  --mt-tile-label-bg: rgba(7, 13, 24, 0.78);
  --mt-control-bg: var(--mt-navy-700);
  --mt-control-hover: var(--mt-navy-600);
  --mt-control-on: var(--mt-teal-400);
  --mt-control-off: var(--mt-red-600);
  --mt-bar-bg: rgba(11, 19, 34, 0.94);

  /* ── Type ──────────────────────────────────────────────────────── */
  --mt-font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --mt-text-xs: 0.75rem;     /* 12px — the smallest text anywhere */
  --mt-text-sm: 0.875rem;
  --mt-text-md: 1rem;
  --mt-text-lg: 1.125rem;
  --mt-text-xl: 1.375rem;
  --mt-text-2xl: 1.75rem;
  --mt-leading: 1.55;
  --mt-leading-tight: 1.25;

  /* ── Spacing (4-point) ─────────────────────────────────────────── */
  --mt-space-1: 4px;
  --mt-space-2: 8px;
  --mt-space-3: 12px;
  --mt-space-4: 16px;
  --mt-space-5: 24px;
  --mt-space-6: 32px;
  --mt-space-7: 48px;

  /* ── Radii, shadows, sizes ─────────────────────────────────────── */
  --mt-radius-sm: 6px;
  --mt-radius-md: 10px;
  --mt-radius-lg: 16px;
  --mt-radius-pill: 999px;
  --mt-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --mt-shadow-2: 0 8px 24px rgba(0, 0, 0, 0.45);
  --mt-shadow-3: 0 20px 48px rgba(0, 0, 0, 0.55);
  --mt-touch: 44px;          /* the smallest touch target */

  /* ── Motion ────────────────────────────────────────────────────── */
  --mt-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mt-fast: 150ms;
  --mt-base: 200ms;
  --mt-slow: 250ms;

  /* ── Layers ────────────────────────────────────────────────────── */
  --mt-z-bar: 40;
  --mt-z-panel: 50;
  --mt-z-sheet: 60;
  --mt-z-overlay: 70;
  --mt-z-dialog: 80;
  --mt-z-toast: 90;
}

@media (prefers-reduced-motion: reduce) {
  :root { --mt-fast: 0ms; --mt-base: 0ms; --mt-slow: 0ms; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
