/* Ceondo custom styles for Forgejo, loaded via templates/custom/header.tmpl. */

/* Hide the "Help" link in the anonymous navbar (it points at forgejo.org/docs and
   would confuse customers). The href is the safe handle: nothing else on the page
   links there, and the rule survives Forgejo upgrades. */
a[href*="forgejo.org/docs"] {
  display: none !important;
}

/* Main accent: recolor Forgejo's red-orange primary to the Ceondo logo green
   (#5dad26). Forgejo hardcodes the whole shade ramp, so we set all of it; hover
   and active cascade from these. Loaded after the theme CSS, so :root wins in both
   light and dark mode. */
:root {
  /* Forgejo's primary palette is a symmetric ramp around primary: light-N is N
     steps *lighter* (light-7 = lightest, near white), dark-N is N steps *darker*
     (dark-7 = near black). The heatmap, hover/active, borders, etc. each pick
     specific shades, so the ramp must stay monotonic. Primary is the darker
     link/button green (#4a8a1e) for contrast; links and buttons share it (Forgejo
     has no separate link color). Generated by lightness steps, do not hand-edit a
     single value without keeping the order. */
  --color-primary:          #4a8a1e;
  --color-primary-contrast: #ffffff;

  --color-primary-light-1: #5da72a;
  --color-primary-light-2: #70c238;
  --color-primary-light-3: #87c95a;
  --color-primary-light-4: #9ecf7c;   /* the heatmap's lightest "Less" cell */
  --color-primary-light-5: #b8d8a1;
  --color-primary-light-6: #d1e4c3;
  --color-primary-light-7: #e9f1e4;

  --color-primary-dark-1: #3d7119;
  --color-primary-dark-2: #315c14;
  --color-primary-dark-3: #284b10;
  --color-primary-dark-4: #1f3b0d;
  --color-primary-dark-5: #162a09;
  --color-primary-dark-6: #101d06;
  --color-primary-dark-7: #091104;

  --color-primary-alpha-10: #4a8a1e19;
  --color-primary-alpha-20: #4a8a1e33;
  --color-primary-alpha-30: #4a8a1e4b;
  --color-primary-alpha-40: #4a8a1e66;
  --color-primary-alpha-50: #4a8a1e80;
  --color-primary-alpha-60: #4a8a1e99;
  --color-primary-alpha-70: #4a8a1eb3;
  --color-primary-alpha-80: #4a8a1ecc;
  --color-primary-alpha-90: #4a8a1ee1;
}
