/*
 * MNCRM theme
 *
 * Palette taken from the MNCRM ninja logo:
 *   green  #28B25D  (brand / accent)
 *   black  #070707  (primary buttons, text)
 *   peach  #FCCC9B
 *   white  #FFFFFF
 *
 * This file is NOT inside a cascade layer, so it wins over the base
 * theme tokens declared in `@layer twenty-ui { .light {...} .dark {...} }`.
 *
 * --mn-brand* is the green scale that replaces the UI accent blue.
 * The build step rewrites `var(--t-color-blue…)` to `var(--mn-brand…)` in
 * component styles only, so user-chosen "blue" tags/charts stay blue.
 */

.light {
  /* Brand green scale (light) */
  --mn-brand: #28b25d;
  --mn-brand1: #fbfefb;
  --mn-brand2: #f4fbf5;
  --mn-brand3: #e7f6ea;
  --mn-brand4: #d8f1dd;
  --mn-brand5: #c6e8cd;
  --mn-brand6: #afddba;
  --mn-brand7: #91cea2;
  --mn-brand8: #60b97f;
  --mn-brand9: #28b25d;
  --mn-brand10: #219f52;
  --mn-brand11: #1c7f43;
  --mn-brand12: #1c3b29;

  /* Accent tokens -> brand green */
  --t-accent-primary: #c6e8cd;
  --t-accent-secondary: #c6e8cd;
  --t-accent-tertiary: #e7f6ea;
  --t-accent-quaternary: #f4fbf5;
  --t-accent-accent3570: #60b97f;
  --t-accent-accent4060: #60b97f;
  --t-accent-accent1: #fbfefb;
  --t-accent-accent2: #f4fbf5;
  --t-accent-accent3: #e7f6ea;
  --t-accent-accent4: #d8f1dd;
  --t-accent-accent5: #c6e8cd;
  --t-accent-accent6: #afddba;
  --t-accent-accent7: #91cea2;
  --t-accent-accent8: #60b97f;
  --t-accent-accent9: #28b25d;
  --t-accent-accent10: #219f52;
  --t-accent-accent11: #1c7f43;
  --t-accent-accent12: #1c3b29;
}

.dark {
  /* Brand green scale (dark) */
  --mn-brand: #28b25d;
  --mn-brand1: #0e1511;
  --mn-brand2: #131b16;
  --mn-brand3: #172c20;
  --mn-brand4: #173b27;
  --mn-brand5: #1e4930;
  --mn-brand6: #26573a;
  --mn-brand7: #2f6845;
  --mn-brand8: #377b50;
  --mn-brand9: #28b25d;
  --mn-brand10: #34c06b;
  --mn-brand11: #57d388;
  --mn-brand12: #baf1c7;

  --t-accent-primary: #1e4930;
  --t-accent-secondary: #1e4930;
  --t-accent-tertiary: #172c20;
  --t-accent-quaternary: #131b16;
  --t-accent-accent3570: #377b50;
  --t-accent-accent4060: #377b50;
  --t-accent-accent1: #0e1511;
  --t-accent-accent2: #131b16;
  --t-accent-accent3: #172c20;
  --t-accent-accent4: #173b27;
  --t-accent-accent5: #1e4930;
  --t-accent-accent6: #26573a;
  --t-accent-accent7: #2f6845;
  --t-accent-accent8: #377b50;
  --t-accent-accent9: #28b25d;
  --t-accent-accent10: #34c06b;
  --t-accent-accent11: #57d388;
  --t-accent-accent12: #baf1c7;
}

/* Softer, rounder corners to match the round, friendly logo */
.light,
.dark {
  --t-border-radius-xs: 3px;
  --t-border-radius-sm: 6px;
  --t-border-radius-md: 10px;
  --t-border-radius-sm-round: 6px;
  --t-border-radius-md-round: 10px;
  --t-border-radius-lg-round: 14px;
}

/* Solid green buttons: a slightly deeper green keeps white labels readable */
[data-color='accent'][data-variant='solid'] {
  --mn-brand: #1fa053;
  --mn-brand10: #1a8f49;
  --mn-brand12: #147a3d;
}

/*
 * The sign-up page shows "By using …, you agree to the Terms of Service and
 * Privacy Policy" linking to twenty.com (Twenty Cloud terms). They do not apply
 * to a self-hosted MNCRM, so the note is hidden.
 */
div:has(> a[href*='twenty.com'][href*='terms']) {
  display: none !important;
}
