/*
  Levi & Korsinsky shared design system
  File: app/static/brand.css
  Version: 1.3.1
  Date: 2026-11-13

  Use this file in ATS and Mission Control so colors, type, spacing,
  cards, pills, buttons, and tables stay in sync. Dark mode is
  html[data-theme="dark"] using the same L&K navy / green palette.

  Palette and type source (fetched 2026-11-13):
    https://zlk.com/
    https://zlk.com/assets/css/main.css          :root tokens, type, buttons, links
    https://zlk.com/assets/css/nav.css           nav serif, hover green
    https://zlk.com/assets/css/footer.css        footer navy #171D2F, divider #3D4962
    zlk.com header/hero navy is #26366B (sampled 2026-11-13); that is the ATS chrome navy
    https://zlk.com/assets/css/home_page.css     hero, kickers, case cards
    https://zlk.com/assets/images/LKLogo-Full-Optimized.svg  (white wordmark, mark fill #3f9f7f)
    https://zlk.com/assets/images/LKLogo-Full-Optimized-black.svg  (black wordmark, light backgrounds)
    https://zlk.com/assets/favicon/favicon.ico, apple-touch-icon.png, web-app-manifest-*.png
    Official icon.svg 404s on zlk.com; favicon.svg is the official mark cropped to the green square.

  Fonts are self-hosted Noto Serif / Noto Sans (SIL Open Font License).
  Official site files: latin 400/700 serif, latin 300/400 sans.
  App UI also ships Noto Sans 500/600/700 so font-weight: 500–700 is not faux-bold.
  Place the woff2 files in a fonts/ folder next to this stylesheet
  (ATS: app/static/fonts/, MC: web/brand/fonts/).

  How Mission Control should adopt it
    1. Copy this file (keep the version header) and the fonts/ folder.
    2. Link it before any app-specific stylesheet:
         <link rel="stylesheet" href="/static/brand.css">
       Optional preloads (see /workspace/brand/patch/templates/).
    3. Use the tokens and class names below. Do not re-declare :root
       colors unless you bump the version and change both apps together.
    4. App-specific layout (ATS sidebar, pipeline board, assistant bubble)
       stays in theme.css / assistant.css — not in this file.

  Class conventions
    Type:     .kicker  .lede  .muted  .brand  .name
    Buttons:  .btn  .btn.primary  .btn.quiet  button.on
    Cards:    .panel  .card  .row  .login-card  .sheet  .flash
    Pills:    .pill  .pill-source  .pill-role  .pill-seniority  .pill-school
              .status-pill.connected  .waiting  .coming_soon  .not_connected
    Tables:   table.grid  .people-table
    Avatars:  .avatar  .avatar.sm  .user-avatar
    Forms:    input, select, textarea, label, .stack, .fields, .check
    Empty:    .empty  .empty-state
    Badge:    .badge
    Top bar:  .topbar  .topbar-left  .topbar-title  .topbar-tools
    Footer:   .foot  .foot .ver  (version links to /changelog)

  Version token: html { --lk-brand-version: "1.3.0"; }
*/

/* Official zlk.com faces (latin subsets from zlk.com/assets/fonts/). */
@font-face {
  font-display: swap;
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/noto-serif-v33-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif 400 Fallback";
  src: local("Georgia");
  size-adjust: 109%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  font-weight: 400;
}
@font-face {
  font-display: swap;
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/noto-serif-v33-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif 700 Fallback";
  src: local("Georgia Bold"), local("Georgia");
  size-adjust: 97%;
  ascent-override: 110%;
  descent-override: 32%;
  line-gap-override: 0%;
  font-weight: 700;
}
@font-face {
  font-display: swap;
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/noto-sans-v42-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans 300 Fallback";
  src: local("Arial");
  size-adjust: 102.8%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  font-weight: 300;
}
@font-face {
  font-display: swap;
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/noto-sans-v42-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans 400 Fallback";
  src: local("Arial");
  size-adjust: 106.7%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  font-weight: 400;
}
/* Extra sans weights for app UI (same family, SIL OFL, latin static). */
@font-face {
  font-display: swap;
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/noto-sans-latin-500.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/noto-sans-latin-600.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/noto-sans-latin-700.woff2") format("woff2");
}

:root {
  /* Official zlk.com :root tokens (main.css) */
  --ZLK-Green: #3F9F7F;
  --ZLK-Yellow: #ddc06e;
  --Nicole-Yellow: #F0AC32;
  --ZLK-HoverGreen: #80dfa1;
  --ZLK-HoverYellow: #FFFCCC;
  --ZLK-TableHoverGreen: #E9FAEF;
  --ZLK-Blue: #000465;
  --ZLK-LightBlue: #26366b;
  --ZLK-DarkBlue: #1E2C48;
  --ZLK-BGColor: #F8FAFD;
  --ZLK-PostTitleGrey: #282828;
  --ZLK-RegularFontColor: #333;

  /* Official supporting tokens */
  --ZLK-Transitions: all 0.25s;
  --ZLK-TransitionsSlow: all 0.5s;
  --ZLK-GreenShadow: 3px 3px 10px -3px var(--ZLK-Green);
  --ZLK-GreenShadowThin: 3px 3px 10px -6px var(--ZLK-Green);
  --ZLK-border: 1px #DDD solid;
  --ZLK-BorderColor: #DDD;
  --ZLK-InputBorder: #BDBDBD;
  --ZLK-ButtonHover: #26614d;
  --ZLK-ButtonHoverText: #CCC;
  --ZLK-ButtonShadow: #26614d;
  --ZLK-ButtonHoverShadow: #1a4536;
  --ZLK-AltBg: #EAEEF5;           /* .bg_color2 */
  --ZLK-TableStripe: #F1F3F9;     /* .ZLKDataTable even rows */
  --ZLK-Muted: #666;              /* h2+p */
  --ZLK-Navy: #26366B;            /* zlk.com header/hero (not the darker footer #171D2F) */
  --ZLK-NavyLine: #3D4962;        /* #footer_wrapper hr */

  /* Official type stacks and sizes (main.css :root) */
  --Serif400: "Noto Serif", "Noto Serif 400 Fallback", Georgia, serif;
  --Serif700: "Noto Serif", "Noto Serif 700 Fallback", Georgia, serif;
  --Sans300: "Noto Sans", "Noto Sans 300 Fallback", Arial, sans-serif;
  --Sans400: "Noto Sans", "Noto Sans 400 Fallback", Arial, sans-serif;
  --h1-fsize: 36px;
  --h2-fsize: 28px;
  --h3-fsize: 22px;
  --h4-fsize: 20px;
  --regular-fsize: 16px;
  --list-title-fsize: 18px;
  --post-content-fsize: 18px;

  /* Semantic aliases used by both apps */
  --ink: #333333;
  --muted: #666666;
  --paper: #F8FAFD;
  --card: #ffffff;
  --line: #DDDDDD;
  --accent: #3F9F7F;
  --accent-hover: #26614d; /* official .ZLKButtonG:hover, not the old #34886b */
  --accent-ink: #ffffff;
  --good: #1a4536;
  --warn: #8a5a10;
  --split: #f6ddd8;

  --sans: var(--Sans400);
  --serif: var(--Serif700);

  --shadow: 0 1px 2px rgba(23, 29, 47, 0.06), 0 1px 3px rgba(23, 29, 47, 0.04);
  --shadow-hover: 0 4px 12px rgba(23, 29, 47, 0.10);

  /* 8px grid — app density, not from zlk.com */
  --space: 8px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-brand: 4px; /* official .ZLKButtonG */

  /* Tag-pill contrast (readable on white cards) */
  --pill-source-bg: #E9FAEF;
  --pill-source-ink: #1a4536;
  --pill-role-bg: #e8eaf4;
  --pill-role-ink: #000465;
  --pill-seniority-bg: #fff4dc;
  --pill-seniority-ink: #1E2C48;
  --pill-school-bg: #f1f3f5;
  --pill-school-ink: #282828;

  --heading: var(--ZLK-Blue);
  --link: var(--ZLK-Green); /* official .post_content a / a.ZLKlinkG */
  --link-hover: var(--ZLK-Blue);
  --input-bg: #ffffff;
  --flash-border: #b7e0cc;
  --board-col: #EAEEF5;
  --board-col-hover: #dce8e3;
  --hover-bg: rgba(23, 49, 90, 0.06);
  --count-bg: rgba(23, 29, 47, 0.10);
  --count-ink: #1E2C48;
  --banner-bg: #FFF8E8;
  --banner-ink: #1E2C48;
  --banner-border: #E6C56E;
  --warn-bg: #FFF6E5;
  --warn-border: #F2C14E;
  --tab-ink: #666666;
  --tab-ink-on: #1E2C48;
  color-scheme: light;
}

/* Dark theme — same L&K palette, navy paper, green accent.
   Applied when html[data-theme="dark"]. System mode is resolved in a
   head script before CSS so the first paint already matches.
   Official site is light-only; these values are derived for contrast. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ZLK-BGColor: #26366B;
  --ZLK-PostTitleGrey: #F8FAFD;
  --ZLK-RegularFontColor: #E8ECF3;
  --ZLK-TableHoverGreen: #1a4536;
  --ink: #F8FAFD;
  --muted: #C5CDDA;
  --paper: #26366B;
  --card: #314786;
  --line: #4A5A86;
  --accent: #3F9F7F;
  --accent-hover: #80dfa1;
  --accent-ink: #171D2F;
  --good: #80dfa1;
  --warn: #ddc06e;
  --split: #4a322e;
  --heading: #F8FAFD;
  --link: #80dfa1;
  --link-hover: #E9FAEF;
  --input-bg: #1B2750;
  --flash-border: #3F9F7F;
  --shadow: 0 1px 2px rgba(38, 54, 107, 0.45), 0 1px 8px rgba(38, 54, 107, 0.35);
  --shadow-hover: 0 4px 16px rgba(38, 54, 107, 0.55);
  --pill-source-bg: #1a4536;
  --pill-source-ink: #E9FAEF;
  --pill-role-bg: #26366b;
  --pill-role-ink: #e8eaf4;
  --pill-seniority-bg: #3a2e14;
  --pill-seniority-ink: #fff4dc;
  --pill-school-bg: #2A3660;
  --pill-school-ink: #E8ECF3;
  --board-col: #1F2C58;
  --board-col-hover: #2A3A6E;
  --hover-bg: rgba(255, 255, 255, 0.08);
  --count-bg: rgba(255, 255, 255, 0.14);
  --count-ink: #F8FAFD;
  --banner-bg: #3A2E14;
  --banner-ink: #F8FAFD;
  --banner-border: #DDC06E;
  --warn-bg: #3A2E14;
  --warn-border: #DDC06E;
  --tab-ink: #C5CDDA;
  --tab-ink-on: #F8FAFD;
  --ZLK-NavyLine: #4A5A86;
}

@media only screen and (max-width: 768px) {
  :root {
    --h1-fsize: 32px;
    --h2-fsize: 24px;
    --h3-fsize: 20px;
  }
}

html { --lk-brand-version: "1.3.0"; }

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px; /* app density; official body size is --regular-fsize 16px */
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
}
h1, h2, h3, h4, .brand, .name, .person-name, .brand-text, .topbar-title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: normal;
  color: var(--heading);
}
h1 { font-size: 24px; line-height: 1.35; margin: 0 0 8px; }
h2 { font-size: 16px; line-height: 1.4; margin: 0 0 8px; }
h3 { font-size: 14px; line-height: 1.4; margin: 0; font-style: normal; }
a { color: var(--link); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a.btn, a.quiet, a.person-name, a.task-title, a.brand, a.brand-lockup,
.nav a, .settings-side a, .pipe-tab-link, .user-menu-list a { text-decoration: none; }
a.btn:hover, a.quiet:hover, a.person-name:hover, a.task-title:hover,
.nav a:hover, .settings-side a:hover, .pipe-tab-link:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--ZLK-Green); outline-offset: 2px; }

.kicker {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.lede { color: var(--muted); margin: 0 0 24px; max-width: 62ch; }
.muted { color: var(--muted); }

/* Buttons */
button, .btn {
  font: inherit;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
button.primary, .btn.primary {
  background: var(--ZLK-Green);
  color: #fff;
  border-color: var(--ZLK-Green);
  font-family: var(--serif);
  font-weight: 700;
}
button.primary:hover, .btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
button.quiet, .btn.quiet, a.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
button.quiet:hover, a.quiet:hover { background: var(--paper); color: var(--ink); }
button.on { background: var(--ZLK-Blue); color: #fff; border-color: var(--ZLK-Blue); }
button.secondary, .btn.secondary, a.btn.secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
button.secondary:hover, .btn.secondary:hover, a.btn.secondary:hover {
  background: var(--hover-bg);
  color: var(--ink);
  border-color: var(--accent);
  text-decoration: none;
}

/* Forms */
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ZLK-Green);
  box-shadow: 0 0 0 3px rgba(63, 159, 127, 0.2);
  outline: none;
}
label { display: block; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* Cards, panels, flashes */
.panel, .row, .kpi, .card, .login-card, .sheet, .connection-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.panel { padding: 16px 20px; margin: 0 0 16px; }
.page-head { margin-bottom: 24px; align-items: end; }
.flash {
  background: var(--ZLK-TableHoverGreen);
  border: 1px solid var(--flash-border);
  color: var(--good);
  padding: 10px 14px;
  border-radius: var(--radius);
}

/* Avatars */
.avatar, .avatar.sm, .user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--avatar-bg, var(--ZLK-LightBlue));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex: 0 0 auto;
}
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.user-avatar {
  width: 28px;
  height: 28px;
  background: var(--ZLK-Green);
  margin-right: 8px;
  vertical-align: middle;
}

/* Pills / tags */
.pill, .status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill-source { background: var(--pill-source-bg); color: var(--pill-source-ink); }
.pill-role { background: var(--pill-role-bg); color: var(--pill-role-ink); }
.pill-seniority { background: var(--pill-seniority-bg); color: var(--pill-seniority-ink); }
.pill-school { background: var(--pill-school-bg); color: var(--pill-school-ink); }
.status-pill.connected { background: var(--pill-source-bg); color: var(--pill-source-ink); }
.status-pill.waiting, .status-pill.coming_soon { background: var(--pill-seniority-bg); color: var(--pill-seniority-ink); }
.status-pill.not_connected { background: var(--pill-school-bg); color: var(--pill-school-ink); }
.badge {
  background: var(--ZLK-Green);
  color: #fff;
  border-radius: 99px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

/* Tables */
.people-table, table.grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.people-table th, table.grid th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.people-table td, table.grid td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.people-table tr:last-child td, table.grid tr:last-child td { border-bottom: 0; }
.people-table tbody tr:hover, table.grid tbody tr:hover { background: var(--paper); }
.person-name, a.person-name { color: var(--heading); text-decoration: none; font-weight: 600; }
a.person-name:hover { color: var(--accent); text-decoration: none; }
.person-sub { color: var(--muted); font-size: 13px; }
.person-id { display: flex; gap: 12px; align-items: center; }

/* Empty states */
.empty, .empty-state, .board-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 24px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

/* Auth / public card on navy */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ZLK-Navy);
}
.login-page .login-card { width: min(400px, calc(100% - 32px)); padding: 32px; }
.login-page h1 { color: var(--heading); }


/* Shared navy sidebar visuals (layout/stickiness stays in each app). */
.shell-nav .navlabel {
  margin: 10px 8px 4px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shell-nav .nav a,
.shell-nav-foot a,
.shell-nav-foot button {
  color: rgba(255,255,255,0.88);
}
.shell-nav .nav a:hover,
.shell-nav-foot a:hover,
.shell-nav-foot button:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  text-decoration: none;
}
.shell-nav .nav a.on,
.shell-nav .nav a.active,
.shell-nav-foot a.on,
.shell-nav-foot a.active {
  background: rgba(63, 159, 127, 0.22);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--ZLK-Green);
}

/* Official lockup. White wordmark on navy / dark; black wordmark on light (login). */
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  padding: 8px 8px 16px;
  letter-spacing: normal;
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}
.brand-lockup .brand-text {
  color: #fff;
  font-family: var(--Serif400);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.3;
}
.login-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  margin: 0 0 18px;
}

