/* Refined GitHub's file-age-color for the age column of the file list, off unless an admin or a user stylesheet sets
   --custom-file-age-color: 1 on :root. repo-file-age.js sets each date's --theme-file-age-heat (100% to 20% of orange
   in the last 23 days, then 0%) and --theme-file-age-dim (0.2 after four months, 0.4 after a year). Both are
   multiplied by the switch, so at 0, unset, or without the script, the date keeps the column's muted colour and full
   opacity. */
#repo-files-table .repo-file-cell.age [datetime] {
  color: color-mix(
    in srgb,
    var(--color-orange) calc(var(--theme-file-age-heat, 0%) * var(--custom-file-age-color, 0)),
    currentColor
  );
  opacity: calc(1 - var(--theme-file-age-dim, 0) * var(--custom-file-age-color, 0));
}
