/* kumi by kozure: the app's look (25 Nov 2026; kumi repo docs/brand.md, artwork in kumi/brand/). Laid after
   peg.css, which stays the design handover's stylesheet as it came, and app.css. The Kozure kit: Ink / Paper
   neutrals, Space Grotesk + Inter + JetBrains Mono (self-hosted, fonts/), carbon #2440A0 for "act here"
   (buttons, links, the rule under the app bar), and the kit-wide status colours, always beside a word.
   It was the studio demo's skin from 5 Nov; on 25 Nov Drew made it every business's default. */

@import url("fonts/fonts.css");

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F1F0;
  --surface: #FFFFFF;
  --surface-2: #ECEAE6;
  --line: #DEDCD7;
  --line-strong: #8A8882;   /* control borders: 3.5:1 on white */
  --ink: #0B0B0C;
  --muted: #5F5E5A;         /* 6.4:1 on white */
  --brand: #0B0B0C;
  --on-brand: #F2F1F0;
  --primary: #2440A0;       /* carbon: 8.9:1 with white */
  --on-primary: #FFFFFF;
  --link: #2440A0;
  --focus: #2440A0;
  --met: #077A53;          --met-bg: #E7F3EE;
  --unmet: #B00020;        --unmet-bg: #FBE7EA;
  --unknown: #0B0B0C;      --unknown-bg: transparent; --unknown-edge: #5F5E5A;
  --waiting: #2440A0;      --waiting-bg: #E6E9F6;
  --banner: #0B0B0C;       --on-banner: #F2F1F0;
  --flag: #9A5B00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0B0C; --surface: #161617; --surface-2: #232325; --line: #2A2A2C; --line-strong: #6E6D69;
    --ink: #F2F1F0; --muted: #A3A29E;
    --brand: #000000; --on-brand: #F2F1F0; --primary: #7C8CFF; --on-primary: #0B0B0C; --link: #9DAAFF; --focus: #9DAAFF;
    --met: #4EFFC0; --met-bg: #0E2A20; --unmet: #FF6B7D; --unmet-bg: #3A1218;
    --unknown: #F2F1F0; --unknown-bg: transparent; --unknown-edge: #A3A29E;
    --waiting: #9DAAFF; --waiting-bg: #1A2140; --banner: #F2F1F0; --on-banner: #0B0B0C; --flag: #F0A43A;
  }
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0B0C; --surface: #161617; --surface-2: #232325; --line: #2A2A2C; --line-strong: #6E6D69;
  --ink: #F2F1F0; --muted: #A3A29E;
  --brand: #000000; --on-brand: #F2F1F0; --primary: #7C8CFF; --on-primary: #0B0B0C; --link: #9DAAFF; --focus: #9DAAFF;
  --met: #4EFFC0; --met-bg: #0E2A20; --unmet: #FF6B7D; --unmet-bg: #3A1218;
  --unknown: #F2F1F0; --unknown-bg: transparent; --unknown-edge: #A3A29E;
  --waiting: #9DAAFF; --waiting-bg: #1A2140; --banner: #F2F1F0; --on-banner: #0B0B0C; --flag: #F0A43A;
}

:root {
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --t-title: 600 28px/1.1 var(--font-display);
  --t-h2: 600 19px/1.2 var(--font-display);
  --t-label: 500 12px/1.25 var(--font-mono);
  --t-body: 400 16px/1.5 var(--font-text);
  --t-strong: 600 16px/1.35 var(--font-text);
  --t-small: 400 14px/1.4 var(--font-text);
  --t-price: 500 36px/1 var(--font-mono);
  --track: 0.04em;
}

body { -webkit-font-smoothing: antialiased; }
.screen__title { letter-spacing: -0.02em; }

/* The app bar: ink, a 3 px carbon rule under it. */
.appbar { border-bottom: 3px solid #2440A0; }
.wordmark { font: 700 26px/1 var(--font-display); letter-spacing: -0.045em; gap: 8px; align-items: center; }
.wordmark svg.wordmark__mark { width: 24px; height: 24px; margin-right: 2px; }
.wordmark__name { line-height: 1; padding-bottom: 3px; }
.signin__brand .wordmark svg.wordmark__mark { width: 36px; height: 36px; }
.appbar__title small.wordmark__by,
.wordmark__by { font: 500 12px/1 var(--font-display); letter-spacing: 0; text-transform: none; opacity: 1; color: #A3A29E; }
.wordmark__by i { font-style: normal; color: #4EFFC0; }
.signin__brand small.wordmark__by { font: 500 15px/1 var(--font-display); letter-spacing: 0; text-transform: none; opacity: 1; }
/* The business's name leads the app bar; a long one ends in an ellipsis, and the mark never shrinks. On a
   phone the bar is shared with Monday and Sign out, so the small "kumi" gives way (the mark says it). */
.wordmark svg.wordmark__mark { flex: none; }
.appbar__title .wordmark { min-width: 0; max-width: 100%; }
.wordmark__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .appbar__title .wordmark { font-size: 21px; gap: 6px; }
  .appbar__title .wordmark__by { display: none; }
  .appbar__end .btn--small { padding-left: 8px; padding-right: 8px; }
  /* The jobs screen carries its own Monday button right under the bar, so the bar's copy gives way too. */
  .appbar__end a[href="#/practice"] { display: none; }
}

/* Codes, hours and money line up: mono for codes and the headline figures; tables keep Inter's
   tabular figures, which line up as well and are narrower, so the tracker fits a phone. */
.row__num, .fig__value, .quote__price, .overlay__share { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.fig__value { font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.tbl { font: 400 14px/1.4 var(--font-text); font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 6px 8px; }

/* Carbon means "act here" and "chosen"; green is kept for on track / met. */
.card--rule { border-top-color: var(--primary); }
:root { accent-color: var(--primary); }
.choice input:checked + span { background: var(--waiting-bg); color: var(--primary); border-color: var(--primary); }
.btn { font-family: var(--font-text); }
.choice span { font-family: var(--font-text); }

/* The demo's own banner, quieter than the build's default yellow. */
.demo-banner { background: #E6E9F6; color: #1A2F78; font: 500 13px/1.3 var(--font-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demo-banner { background: #1A2140; color: #C9D0FF; } }

/* The home mark sits on ink without a tile; the wordmark link keeps the paper colour. */
.appbar__home svg.wordmark__mark { width: 22px; height: 22px; }
a.wordmark:focus-visible, .appbar__home:focus-visible { outline: 2px solid #7C8CFF; outline-offset: 2px; }
.figs--lead .fig__value { font-size: 26px; }
