/* schoolwise.cloud brand tokens. The demo site uses these directly; the real app can adopt the same names
   (see docs/BRAND.md for the mapping to its shadcn/Tailwind variables).

   Palette, from the brand colour card: Dynamic Black #151314, Honey Beige #F5E1C9, Egg Liqueur #DECAA9, Apocalyptic Orange #F15228,
   plus white. The page and its panels are white; beige and egg liqueur are the warm tints; black is text and the few dark blocks;
   orange is the one action colour. Three status colours (green, amber, crimson) never stand in for the brand orange. */

@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('vendor/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('vendor/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  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 {
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;

  /* brand */
  --white: #ffffff;
  --black: #151314; --black-800: #2d2627; --black-700: #3a3532;
  --beige: #f5e1c9; --beige-50: #fdf9f4; --beige-100: #fbf2e7; --beige-200: #f8e9d7;
  --tan: #decaa9; --tan-200: #efe3cf; --tan-600: #b39a72;
  --orange: #f15228; --orange-hover: #f4693f; --orange-light: #f7714a; --orange-700: #a02e0c; --orange-600: #c23a10; --orange-300: #ff9c7a; --orange-200: #ffc8b3; --orange-100: #ffe5da; --orange-50: #fff3ee;

  /* roles (light): white page, white panels, warm tints */
  --bg: #ffffff; --surface: #ffffff; --surface-2: #fbf6ee; --glass: rgba(255, 255, 255, .78);
  --ink: #151314; --ink-soft: #3a3532; --muted: #675e55; --line: rgba(21, 19, 20, .09); --line-strong: rgba(21, 19, 20, .18);
  --primary: #151314; --primary-ink: #ffffff; --accent: #f15228; --accent-ink: #151314; --accent-text: #c23a10;
  --soft: #fbf2e7; --soft-ink: #151314;
  --good: #0f6f4d; --good-soft: #def4ea; --warn: #8f5a00; --warn-soft: #fff0d0; --bad: #c2253f; --bad-soft: #fde6ea; --info: #3a3532; --info-soft: #f5e1c9;
  --chart-1: #decaa9; --chart-2: #151314; --chart-line: #f15228; --chart-grid: rgba(21, 19, 20, .08);
  --track: #f3e8d6; --bar: #151314;
  --glow-a: rgba(241, 82, 40, .10); --glow-b: rgba(245, 225, 201, .85); --dot: rgba(21, 19, 20, .16);
  --logo-dark: #232428; /* the dark shape of the logo; the two oranges of the logo are fixed in the .lm-* rules below */

  /* shape and depth */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(21, 19, 20, .05), 0 1px 1px rgba(21, 19, 20, .03);
  --shadow-2: 0 1px 2px rgba(21, 19, 20, .05), 0 16px 36px -18px rgba(21, 19, 20, .22);
  --shadow-3: 0 2px 4px rgba(21, 19, 20, .05), 0 40px 90px -30px rgba(21, 19, 20, .34);

  /* motion: strong curves, never the built-in ones (see docs/BRAND.md) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 140ms; --t-hover: 160ms; --t-pop: 200ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e0c0d; --surface: #171415; --surface-2: #1e1a1b; --glass: rgba(23, 20, 21, .78);
    --ink: #f5e1c9; --ink-soft: #decaa9; --muted: #b7a98f; --line: rgba(245, 225, 201, .12); --line-strong: rgba(245, 225, 201, .24);
    --primary: #f5e1c9; --primary-ink: #151314; --accent-text: #ff7a4d;
    --soft: #26201f; --soft-ink: #f5e1c9;
    --good: #5fd0a0; --good-soft: #12362b; --warn: #f2b84b; --warn-soft: #3b2a08; --bad: #ff8a9c; --bad-soft: #3d1522; --info: #decaa9; --info-soft: #2a2322;
    --chart-1: #4b4036; --chart-2: #decaa9; --chart-grid: rgba(245, 225, 201, .1);
    --track: rgba(245, 225, 201, .14); --bar: #decaa9;
    --glow-a: rgba(241, 82, 40, .14); --glow-b: rgba(245, 225, 201, .05); --dot: rgba(245, 225, 201, .14); --logo-dark: #f5e1c9;
    --shadow-1: none; --shadow-2: 0 18px 40px -22px rgba(0, 0, 0, .6); --shadow-3: 0 50px 100px -30px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }
p { margin: 0 0 .6em; }
a { color: var(--accent-text); }
small { color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
.num, .kpi-value, td, .hb-val { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the schoolwise.cloud logo: the mark (inline SVG, see js/brand.js) and the wordmark in text. The mark is tall, so it is sized by height. */
.logo-mark { height: 46px; width: auto; flex: none; display: block; }
.logo-mark .lm-dark { fill: var(--logo-dark); } .logo-mark .lm-light { fill: #fe722a; } .logo-mark .lm-deep { fill: #fd5002; }
.wordmark { display: block; font-weight: 800; font-size: 1.3rem; line-height: 1.05; letter-spacing: -.045em; color: var(--ink); white-space: nowrap; }
.wordmark > span { color: var(--orange); }
