/* 01-base.css — Fonts, design tokens (light and dark), reset, icons.
   Part of the CRM stylesheet: the files load in number order (components/app_styles.html) and later
   rules win, exactly as when this was one file. */

/* ==========================================================================
   Realtor CRM — design system
   ========================================================================== */

/* Manrope, served from here (static/fonts, SIL OFL: OFL-Manrope.txt): Latin, Uzbek and Russian Cyrillic in one
   face. (Plus Jakarta Sans, before it, had no Cyrillic: Russian pages fell back to the system font.)
   One variable file per script covers every weight. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../../fonts/manrope-latin.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: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../../fonts/manrope-latin-ext.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: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../../fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../../fonts/manrope-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  /* Esdora brand tokens (brandbook 1.0, tokens.json). Ink carries text and buttons, Paper is the ground, Mint is
     the signature (about 10% of a screen, never text on light), Mint Deep is the readable mint: links, focus, "won". */
  --bg: #F4F5F2;              /* paper */
  --surface: #FFFFFF;
  --surface-2: #F8F9F7;
  --surface-3: #EAEDE8;       /* surface-sunken: table heads, wells, empty states */
  --border: #DDE1DA;          /* decorative dividers only */
  --border-soft: #E8EBE6;
  --border-strong: #848B85;   /* controls: inputs, checkboxes, secondary buttons (3.5 : 1) */
  --text: #0D1412;            /* ink */
  --text-2: #2A322E;
  --muted: #5B605A;           /* slate */
  --faint: #767D77;

  --mint: #2EE6A6;
  --on-mint: #0D1412;
  --accent: #087A55;          /* mint-deep */
  --accent-strong: #065E42;
  --accent-soft: #E3F4EC;
  --accent-soft-2: #C3E8D6;
  --primary: #0D1412;         /* primary buttons are Ink */
  --primary-strong: #26332F;
  --on-primary: #F4F5F2;
  --dark: #0D1412;
  --success: #087A55;  --success-soft: #E3F4EC;
  --warning: #9A4507;  --warning-soft: #FBEFE1;
  --danger: #B91C1C;   --danger-soft: #FCE8E8;
  --info: #1D4ED8;     --info-soft: #E6EEFD;

  /* The sidebar stays Ink in both themes. */
  --sidebar: #0D1412;
  --on-sidebar: #F4F5F2;
  --sidebar-muted: #A3ADA8;
  --sidebar-hover: #151F1C;
  --sidebar-active: #1C2724;
  --sidebar-line: #26332F;

  --radius-sm: 6px;
  --radius: 12px;             /* inputs, menus */
  --radius-lg: 20px;          /* cards, panels, modals */
  --radius-pill: 999px;       /* buttons, chips, badges: the capsule */
  --shadow-sm: 0 1px 2px rgba(13, 20, 18, .06), 0 2px 6px rgba(13, 20, 18, .06);
  --shadow: 0 8px 24px rgba(13, 20, 18, .12);
  --shadow-lg: 0 24px 64px rgba(13, 20, 18, .18);

  --sidebar-w: 240px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* stage / status palette: <name> = text, <name>-bg = soft fill (status colours always come with a word) */
  --slate: #5B605A;   --slate-bg: #EAEDE8;
  --orange: #9A4507;  --orange-bg: #FBEFE1;
  --blue: #1D4ED8;    --blue-bg: #E6EEFD;
  --purple: #7E22CE;  --purple-bg: #F3E8FD;
  --cyan: #0E7490;    --cyan-bg: #E0F2F7;
  --teal: #087A55;    --teal-bg: #E3F4EC;
  --amber: #9A4507;   --amber-bg: #FBEFE1;
  --green: #087A55;   --green-bg: #E3F4EC;
  --red: #B91C1C;     --red-bg: #FCE8E8;
}

[data-theme="dark"] {
  --bg: #0D1412;
  --surface: #151F1C;
  --surface-2: #18231F;
  --surface-3: #0A100E;
  --border: #26332F;
  --border-soft: #1C2724;
  --border-strong: #6B7A74;
  --text: #F4F5F2;
  --text-2: #D5DAD6;
  --muted: #A3ADA8;
  --faint: #7D8A84;
  --accent: #2EE6A6;
  --accent-strong: #6CF0C1;
  --accent-soft: #12352A;
  --accent-soft-2: #1A4A3A;
  --primary: #F4F5F2;
  --primary-strong: #FFFFFF;
  --on-primary: #0D1412;
  --dark: #F4F5F2;
  --success: #2EE6A6;  --success-soft: #12352A;
  --warning: #F5B547;  --warning-soft: #3A2A12;
  --danger: #F87171;   --danger-soft: #3B1A1A;
  --info: #7AA2F7;     --info-soft: #172440;
  --sidebar: #0A100E;
  --sidebar-hover: #121A17;
  --sidebar-active: #18231F;
  --slate: #A3ADA8; --slate-bg: #1C2724;
  --orange: #F5B547; --orange-bg: #3A2A12;
  --blue: #7AA2F7; --blue-bg: #172440;
  --purple: #C4A1F5; --purple-bg: #2A1D3D;
  --cyan: #67C7DE; --cyan-bg: #0F2E36;
  --teal: #2EE6A6; --teal-bg: #12352A;
  --amber: #F5B547; --amber-bg: #3A2A12;
  --green: #2EE6A6; --green-bg: #12352A;
  --red: #F87171; --red-bg: #3B1A1A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Nothing may make the page wider than the screen — phones (iOS above all) would let it be dragged sideways, showing
   a bare strip at the edge. `clip`, unlike `hidden`, does not create a scroll box, so the sticky top bar keeps working. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
[hidden] { display: none !important; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i-sm { width: 13px; height: 13px; }
svg.i-lg { width: 20px; height: 20px; }

